nptl/tst-cancel7: Add missing case label
[platform/upstream/glibc.git] / ChangeLog
1 2016-12-13  Florian Weimer  <fweimer@redhat.com>
2
3         * nptl/tst-cancel7.c (cmdline_process): Add missing case label.
4
5 2016-12-13  Florian Weimer  <fweimer@redhat.com>
6
7         * Rules (binaries-shared-tests, binaries-pie-tests)
8         (binaries-static-tests): Link with $(link-extra-libs-tests).
9         * Makeconfig (+link-pie-tests, +link-static-tests, +link-tests):
10         Remove $(link-extra-libs-tests).
11
12 2016-12-13  Rajalakshmi Srinivasaraghavan  <raji@linux.vnet.ibm.com>
13
14         * sysdeps/powerpc/powerpc64/multiarch/Makefile
15         (sysdep_routines): Add strncmp_power9.
16         * sysdeps/powerpc/powerpc64/multiarch/ifunc-impl-list.c
17         (strncmp): Add __strncmp_power9 to list of strncmp functions.
18         * sysdeps/powerpc/powerpc64/multiarch/strncmp-power9.S: New file.
19         * sysdeps/powerpc/powerpc64/multiarch/strncmp.c
20         (strncmp): Add __strncmp_power9 to ifunc list.
21         * sysdeps/powerpc/powerpc64/power9/strncmp.S: New file.
22
23 2016-12-12  Florian Weimer  <fweimer@redhat.com>
24
25         [BZ #17252]
26         Add getentropy, getrandom.
27         * stdlib/sys/random.h: New file.
28         (headers): Add it.
29         * stdlib/Makefile (routines): Add getentropy, getrandom.
30         (tests): Add tst-getrandom.
31         * stdlib/Versions (GLIBC_2.25): Add getrandom, getentropy.
32         * stdlib/getentropy.c: New file.
33         * stdlib/getrandom.c: Likewise.
34         * stdlib/tst-getrandom.c: Likewise.
35         * sysdeps/unix/sysv/linux/getentropy.c: Likewise.
36         * sysdeps/unix/sysv/linux/getrandom.c: Likewise.
37         * manual/crypt.texi (Unpredictable Bytes): New section.
38         * manual/math.texi (Pseudo-Random Numbers): Add cross-reference.
39         * sysdeps/arm/nacl/libc.abilist: Add getrandom, getentropy.
40         * sysdeps/unix/sysv/linux/aarch64/libc.abilist: Likewise.
41         * sysdeps/unix/sysv/linux/alpha/libc.abilist: Likewise.
42         * sysdeps/unix/sysv/linux/arm/libc.abilist: Likewise.
43         * sysdeps/unix/sysv/linux/hppa/libc.abilist: Likewise.
44         * sysdeps/unix/sysv/linux/i386/libc.abilist: Likewise.
45         * sysdeps/unix/sysv/linux/ia64/libc.abilist: Likewise.
46         * sysdeps/unix/sysv/linux/m68k/coldfire/libc.abilist: Likewise.
47         * sysdeps/unix/sysv/linux/m68k/m680x0/libc.abilist: Likewise.
48         * sysdeps/unix/sysv/linux/microblaze/libc.abilist: Likewise.
49         * sysdeps/unix/sysv/linux/mips/mips32/fpu/libc.abilist: Likewise.
50         * sysdeps/unix/sysv/linux/mips/mips32/nofpu/libc.abilist: Likewise.
51         * sysdeps/unix/sysv/linux/mips/mips64/n32/libc.abilist: Likewise.
52         * sysdeps/unix/sysv/linux/mips/mips64/n64/libc.abilist: Likewise.
53         * sysdeps/unix/sysv/linux/nios2/libc.abilist: Likewise.
54         * sysdeps/unix/sysv/linux/powerpc/powerpc32/fpu/libc.abilist:
55         Likewise.
56         * sysdeps/unix/sysv/linux/powerpc/powerpc32/nofpu/libc.abilist:
57         Likewise.
58         * sysdeps/unix/sysv/linux/powerpc/powerpc64/libc-le.abilist: Likewise.
59         * sysdeps/unix/sysv/linux/powerpc/powerpc64/libc.abilist: Likewise.
60         * sysdeps/unix/sysv/linux/s390/s390-32/libc.abilist: Likewise.
61         * sysdeps/unix/sysv/linux/s390/s390-64/libc.abilist: Likewise.
62         * sysdeps/unix/sysv/linux/sh/libc.abilist: Likewise.
63         * sysdeps/unix/sysv/linux/sparc/sparc32/libc.abilist: Likewise.
64         * sysdeps/unix/sysv/linux/sparc/sparc64/libc.abilist: Likewise.
65         * sysdeps/unix/sysv/linux/tile/tilegx/tilegx32/libc.abilist: Likewise.
66         * sysdeps/unix/sysv/linux/tile/tilegx/tilegx64/libc.abilist: Likewise.
67         * sysdeps/unix/sysv/linux/tile/tilepro/libc.abilist: Likewise.
68         * sysdeps/unix/sysv/linux/x86_64/64/libc.abilist: Likewise.
69         * sysdeps/unix/sysv/linux/x86_64/x32/libc.abilist: Likewise.
70
71 2016-12-10  Florian Weimer  <fweimer@redhat.com>
72
73         [BZ #20956]
74         * debug/tst-backtrace.h (NO_INLINE): Add noclone, weak attributes
75         as additional compiler barriers.
76         * debug/tst-backtrace2.c: Switch to <support/test-driver.c>.
77         (fn2, do_test): Declare with external linkage.
78         * debug/tst-backtrace3.c: Switch to <support/test-driver.c>.
79         (do_test): Declare with external linkage.
80         * debug/tst-backtrace4.c: Switch to <support/test-driver.c>.
81         (do_test): Declare with external linkage.
82         * debug/tst-backtrace5.c: Switch to <support/test-driver.c>.
83         (do_test): Declare with external linkage.
84
85 2016-12-10  Andreas Schwab  <schwab@linux-m68k.org>
86
87         * support/support_test_main.c (support_test_main): Use correct
88         timeout.
89
90 2016-12-09  Carlos O'Donell  <carlos@redhat.com>
91             Florian Weimer  <fweimer@redhat.com>
92
93         [BZ #16421]
94         * inet/netinet/in.h (struct in6_addr): Always define __u6_addr16
95         and __u6_addr32 members.
96         (IN6_IS_ADDR_UNSPECIFIED, IN6_IS_ADDR_LOOPBACK)
97         (IN6_IS_ADDR_LINKLOCAL, IN6_IS_ADDR_SITELOCAL)
98         (IN6_IS_ADDR_V4MAPPED, IN6_IS_ADDR_V4COMPAT, IN6_ARE_ADDR_EQUAL):
99         Use __u6_addr32.
100         * inet/tst-checks.c: Use <support/test-driver.c>
101         * inet/tst-checks-posix.c: New file.
102         * inet/Makefile (tests): Add it.
103         (CFLAGS-tst-checks-posix.c): Compile in C99 mode.
104
105 2016-12-09  Florian Weimer  <fweimer@redhat.com>
106
107         New subdirectory support for build and test infrastructure.
108         * extra-libs.mk (extra-libs-noinstall): Add variable.  Use it when
109         setting install-lib.
110         * Makeconfig (link-extra-libs-tests): Define.
111         (+link-pie-tests, +link-static-tests, +link-tests): Use
112         link-extra-libs-tests.
113         (rpath-dirs, all-subdirs): Add support.
114         (built-modules): Add libsupport.
115         (libsupport): Define.
116         * support: New directory.
117         * support/Makefile: New file.
118         * support/check.c: Likewise.
119         * support/check.h: Likewise.
120         * support/delayed_exit.c: Likewise.
121         * support/ignore_stderr.c: Likewise.
122         * support/oom_error.c: Likewise.
123         * support/set_fortify_handler.c: Likewise.
124         * support/support.h: Likewise.
125         * support/temp_file-internal.h: Likewise.
126         * support/temp_file.c: Likewise.
127         * support/test-driver.c: Likewise.
128         * support/test-driver.h: Likewise.
129         * support/test_main.c: Likewise.
130         * support/write_message.c: Likewise.
131         * support/xasprintf.c: Likewise.
132         * support/xcalloc.c: Likewise.
133         * support/xmalloc.c: Likewise.
134         * support/xpthread_barrier_destroy.c: Likewise.
135         * support/xpthread_barrier_init.c: Likewise.
136         * support/xpthread_barrier_wait.c: Likewise.
137         * support/xpthread_cancel.c: Likewise.
138         * support/xpthread_check_return.c: Likewise.
139         * support/xpthread_cond_wait.c: Likewise.
140         * support/xpthread_create.c: Likewise.
141         * support/xpthread_detach.c: Likewise.
142         * support/xpthread_join.c: Likewise.
143         * support/xpthread_mutex_lock.c: Likewise.
144         * support/xpthread_mutex_unlock.c: Likewise.
145         * support/xpthread_sigmask.c: Likewise.
146         * support/xpthread_spin_lock.c: Likewise.
147         * support/xpthread_spin_unlock.c: Likewise.
148         * support/xrealloc.c: Likweise.
149         * support/xsignal.h: Likewise.
150         * support/xthread.h: Likewise.
151         * support_tempfile.h: Likewise.
152         * test-skeleton.c: Include <support/support.h>, <support/xsignal.h>.
153         (TEST_DATA_LIMIT): Remove unused macro.
154         (_FAIL, FAIL_RET, FAIL_EXIT, FAIL_EXIT1): Remove.  Now in
155         <support/check.h>.
156         (oom_error, xmalloc, xcalloc, xrealloc, xasprintf, write_message)
157         (ignore_stderr, set_fortify_handler): Remove.  Now in
158         <support/support.h>.
159         (xpthread_sigmask): Remove.  Now in <support/xsignal.h>.
160         (xpthread_mutex_lock, xpthread_spin_lock, xpthread_cond_wait)
161         (xpthread_barrier_wait, xpthread_create, xpthread_detach)
162         (xpthread_join): Remove.  Now in <support/xthread.h>.
163         (TEST_FUNCTION, PREPARE, CLEANUP_HANDLER, CMDLINE_PROCESS):
164         Introduce legacy wrappers.
165         * dlfcn/Makefile (bug-atexit3-lib.so): Link with $(libsupport).
166         * dlfcn/bug-atexit3-lib.cc: Include <support/support.h>.
167         (write_message): Remove.
168         * dirent/opendir-tst1.c: Use <support/test-driver.h> instead of
169         test-skeleton.c.
170         * io/test-open-tmpfile: Likewise.
171         * io/tst-posix_fallocate-common.c: Likewise.
172         * libio/tst-fseek.c: Likewise.
173         * malloc/tst-malloc-backtrace.c: Likewise.
174         * malloc/tst-malloc-fork-deadlock.c: Likewise.
175         * malloc/tst-malloc-thread-exit.c: Likewise.
176         * nptl/tst-cancel7.c: Likewise.
177         * nptl/tst-cleanup0.c: Likewise.
178         * posix/tst-posix_fadvise-common.c: Likewise.
179         * rt/tst-shm.c: Likewise.
180         * time/bug-getdate1.c: Likewise.
181         * sysdeps/unix/sysv/linux/tst-fallocate-common.c: Likewise.
182         * sysdeps/unix/sysv/linux/tst-sync_file_range.c: Likewise.
183         * elf/Makefile (tst-piemod1.so): Link against libsupport.
184
185 2016-12-08  Joseph Myers  <joseph@codesourcery.com>
186
187         * Rules [$(run-built-tests) != no] (tests-expected): Add
188         $(tests-printers).
189         (tests): Do not pass $(tests-printers) to merge-test-results.sh.
190
191 2016-12-08  Andrew Senkevich  <andrew.senkevich@intel.com>
192
193         [BZ #20539]
194         * math/Makefile (install-lib-ldscripts): Add libm.a.
195         (install_subdir): Remove.
196         (install-others): Add.
197         ($(inst_libdir)/libm.a): Add rule for installation as
198         linker script.
199         * Makerules (install-lib.a): Filter out install-lib-ldscripts.
200
201 2016-12-08  Martin Galvan  <martin.galvan@tallertechnologies.com>
202
203         * INSTALL: Regenerated.
204         * Makeconfig: Add comments and whitespace to make the control flow
205         clearer.
206         (+link-printers-tests, +link-pie-printers-tests,
207         CFLAGS-printers-tests, installed-rtld-LDFLAGS,
208         built-rtld-LDFLAGS, link-libc-rpath,
209         link-libc-tests-after-rpath-link,
210         link-libc-printers-tests): New.
211         (rtld-LDFLAGS, rtld-tests-LDFLAGS, link-libc-tests-rpath-link,
212         link-libc-tests): Use the new variables as required.
213         * Makerules ($(py-const)): New rule.
214         generated: Add $(py-const).
215         * README.pretty-printers: New file.
216         * Rules (tests-printers-programs, tests-printers-out, py-env): New.
217         (others): Depend on $(py-const).
218         (tests): Depend on $(tests-printers-programs) or
219         $(tests-printers-out),
220         as required.  Pass $(tests-printers) to merge-test-results.sh.
221         * manual/install.texi: Add requirements for testing the pretty
222         printers.
223         * nptl/Makefile (gen-py-const-headers, pretty-printers,
224         tests-printers, CFLAGS-test-mutexattr-printers.c
225         CFLAGS-test-mutex-printers.c, CFLAGS-test-condattr-printers.c,
226         CFLAGS-test-cond-printers.c, CFLAGS-test-rwlockattr-printers.c
227         CFLAGS-test-rwlock-printers.c, tests-printers-libs): Define.
228         * nptl/nptl-printers.py: New file.
229         * nptl/nptl_lock_constants.pysym: Likewise.
230         * nptl/test-cond-printers.c: Likewise.
231         * nptl/test-cond-printers.py: Likewise.
232         * nptl/test-condattr-printers.c: Likewise.
233         * nptl/test-condattr-printers.py: Likewise.
234         * nptl/test-mutex-printers.c: Likewise.
235         * nptl/test-mutex-printers.py: Likewise.
236         * nptl/test-mutexattr-printers.c: Likewise.
237         * nptl/test-mutexattr-printers.py: Likewise.
238         * nptl/test-rwlock-printers.c: Likewise.
239         * nptl/test-rwlock-printers.py: Likewise.
240         * nptl/test-rwlockattr-printers.c: Likewise.
241         * nptl/test-rwlockattr-printers.py: Likewise.
242         * scripts/gen-py-const.awk: Likewise.
243         * scripts/test_printers_common.py: Likewise.
244         * scripts/test_printers_exceptions.py: Likewise.
245
246 2016-12-07  Joseph Myers  <joseph@codesourcery.com>
247
248         * scripts/build-many-glibcs.py (Context.__init__): Take strip
249         argument.
250         (Glibc.build_glibc): Strip installed shared libraries if
251         requested.
252         (get_parser): Add --strip option.
253         (main): Update Context call.
254
255 2016-12-07  Adhemerval Zanella  <adhemerval.zanella@linaro.org>
256             Dominik Vogt  <vogt@linux.vnet.ibm.com>
257
258         [BZ #20847]
259         * posix/execvpe.c (maybe_script_execute): Remove write past allocated
260         array bounds for else branch.
261         (__execvpe): Style fixes.
262         * posix/tst-vfork3.c (run_script): New function.
263         (create_script): Likewise.
264         (do_test): Use run_script internal function.
265         (do_prepare): Use create_script internal function.
266
267 2016-12-07  Andreas Schwab  <schwab@suse.de>
268
269         * sysdeps/unix/sysv/linux/x86/elision-conf.h
270         (__elision_available): Don't declare.
271         * sysdeps/unix/sysv/linux/x86/elision-conf.c
272         (__elision_available): Don't define.
273         (elision_init): Don't set __elision_available.
274
275 2016-12-07  Joseph Myers  <joseph@codesourcery.com>
276
277         [BZ #20940]
278         * sysdeps/ieee754/dbl-64/e_hypot.c (__ieee754_hypot): Do not
279         return Inf for arguments Inf and sNaN.
280         * sysdeps/ieee754/flt-32/e_hypotf.c (__ieee754_hypotf): Likewise.
281         * sysdeps/ieee754/ldbl-128/e_hypotl.c (__ieee754_hypotl):
282         Likewise.
283         * sysdeps/ieee754/ldbl-128ibm/e_hypotl.c (__ieee754_hypotl):
284         Likewise.
285         * sysdeps/ieee754/ldbl-96/e_hypotl.c (__ieee754_hypotl): Likewise.
286         * sysdeps/powerpc/fpu/e_hypot.c (TEST_INF_NAN): Do not return Inf
287         for arguments Inf and sNaN.  When returning a NaN, compute it by
288         arithmetic on the arguments.
289         * sysdeps/powerpc/fpu/e_hypotf.c (TEST_INF_NAN): Likewise.
290         * math/libm-test.inc (hypot_test_data): Add tests of sNaN
291         arguments.
292
293 2016-12-06  Joseph Myers  <joseph@codesourcery.com>
294
295         [BZ #20916]
296         * sysdeps/i386/fpu/e_powl.S (__ieee754_powl): Do not return 1 for
297         arguments (sNaN, 0) or (1, sNaN).  Do arithmetic on NaN arguments
298         to compute result.
299         * sysdeps/x86_64/fpu/e_powl.S (__ieee754_powl): Likewise.
300         * math/libm-test.inc (pow_test_data): Add tests of sNaN arguments.
301
302 2016-12-05  Torvald Riegel  <triegel@redhat.com>
303
304         * include/atomic.h (__atomic_check_size_ls): New.
305         (atomic_load_relaxed, atomic_load_acquire, atomic_store_relaxed,
306         atomic_store_release): Use it.
307         * sysdeps/x86/elide.h (ACCESS_ONCE): Remove.
308         (elision_adapt, ELIDE_LOCK): Use atomics.
309         * sysdeps/unix/sysv/linux/x86/elision-lock.c (__lll_lock_elision): Use
310         atomics and improve code comments.
311         * sysdeps/unix/sysv/linux/x86/elision-trylock.c
312         (__lll_trylock_elision): Likewise.
313
314 2016-12-04  Samuel Thibault  <samuel.thibault@ens-lyon.org>
315
316         * hurd/hurd.h: Cast errno constants to error_t to fix usage in C++
317         programs.
318
319 2016-12-02  Joseph Myers  <joseph@codesourcery.com>
320
321         [BZ #20916]
322         * sysdeps/ieee754/dbl-64/e_pow.c (__ieee754_pow): Do not return 1
323         for arguments (sNaN, 0) or (1, sNaN).  Do arithmetic on NaN
324         arguments to compute result.
325         * sysdeps/ieee754/flt-32/e_powf.c (__ieee754_powf): Do not return
326         1 for arguments (sNaN, 0) or (1, sNaN).
327         * sysdeps/ieee754/ldbl-128/e_powl.c (__ieee754_powl): Likewise.
328         * sysdeps/ieee754/ldbl-128ibm/e_powl.c (__ieee754_powl): Likewise.
329
330         [BZ #20919]
331         * sysdeps/ieee754/dbl-64/e_pow.c (__ieee754_pow): Do not return
332         NaN first argument when raised to power 0.
333         * math/w_pow.c (__pow): Do not check for NaN or zero results from
334         raising to power zero.
335         * math/w_powf.c (__powf): Likewise.
336         * math/w_powl.c (__powl): Likewise.
337         * sysdeps/ieee754/k_standard.c (__kernel_standard): Do not handle
338         pow (0, 0) or pow (NaN, 0).
339
340 2016-12-02  Carlos O'Donell  <carlos@redhat.com>
341
342         [BZ #20918]
343         * configure.ac: Test for static NSS cryptographic libraries and set
344         libc_cv_static_nss_crypt.
345         * configure: Regenerate.
346         * config.make.in (static-nss-crypt): Define.
347         * elf/Makefile (CFLAGS-tst-linkall-static.c): Define.
348         [ifeq (yesno,$(nss-crypt)$(static-nss-crypt))]
349         (CFLAGS-tst-linkall-static.c): Define.
350         ($(objpfx)tst-linkall-static): Remove libcrypt.a.
351         [ifeq (yesyes,$(nss-crypt)$(static-nss-crypt))]
352         ($(objpfx)tst-linkall-static): Define.
353         [ifeq (no,$(nss-crypt))] ($(objpfx)tst-linkall-static): Define.
354         * elf/tst-linkall-static.c [USE_CRYPT](references): Reference crypt().
355
356 2016-12-02  Florian Weimer  <fweimer@redhat.com>
357
358         * elf/Makefile [build-shared] (tests): Add tst-latepthread.
359         (one-hundred, tst-tls-many-dynamic-modules): Define.
360         (modules-names): Add $(tst-tls-many-dynamic-modules).
361         (tst-tls-manydynamic%mod.os): Build with special preprocessor
362         macros.
363         (tst-tls-manydynamic): Link against libdl, libpthread.
364         (tst-tls-manydynamic.out): The test needs the test modules at run
365         time.
366         * elf/tst-tls-manydynamic.c: New file.
367         * elf/tst-tls-manydynamic.h: Likewise.
368         * elf/tst-tls-manydynamicmod.c: Likewise.
369
370 2016-12-02  Florian Weimer  <fweimer@redhat.com>
371
372         * sysdeps/aarch64/tlsdesc.sym (TCBHEAD_DTV, DTV_COUNTER)
373         (TLS_DTV_UNALLOCATED): Add.
374         * sysdeps/aarch64/dl-tlsdesc.S (_dl_tlsdesc_dynamic): Use explicit
375         offsets.
376
377 2016-12-02  Stefan Liebler  <stli@linux.vnet.ibm.com>
378
379         * sysdeps/s390/fpu/libm-test-ulps: Regenerated.
380
381 2016-12-02  Stefan Liebler  <stli@linux.vnet.ibm.com>
382
383         * elf/Makefile (CFLAGS-tst-latepthreadmod.c):
384         Add -fno-optimize-sibling-calls.
385
386 2016-12-02  Joseph Myers  <joseph@codesourcery.com>
387
388         * math/bits/mathcalls.h [__GLIBC_USE (IEC_60559_BFP_EXT)] (llogb):
389         New declaration.
390         * math/tgmath.h [__GLIBC_USE (IEC_60559_BFP_EXT)] (llogb): New
391         macro.
392         * math/math.h [__GLIBC_USE (IEC_60559_BFP_EXT)] (__FP_LONG_MAX):
393         New macro.
394         [__GLIBC_USE (IEC_60559_BFP_EXT)] (FP_LLOGB0): Likewise.
395         [__GLIBC_USE (IEC_60559_BFP_EXT)] (FP_LLOGBNAN): Likewise.
396         * math/Versions (llogb): New libm symbol at version GLIBC_2.25.
397         (llogbf): Likewise.
398         (llogbl): Likewise.
399         * math/Makefile (gen-libm-calls): Add w_llogbF.
400         (tests): Add test-fp-llogb-constants.
401         * math/w_llogb_template.c: New file.  Based on
402         math/w_ilogb_template.c.
403         * math/libm-test.inc (llogb_test_data): New array.
404         (llogb_test): New function.
405         (main): Call llogb_test.
406         * math/test-fp-llogb-constants.c: New file.  Based on
407         math/test-fp-ilogb-constants.c.
408         * math/test-tgmath-ret.c (llogb): New CHECK_RET_CONST call.
409         (do_test): Call check_return_llogb.
410         * math/test-tgmath.c (NCALLS): Increase to 126.
411         (F(compile_test)): Call llogb.
412         (F(llogb)): New function.
413         * manual/math.texi (Exponents and Logarithms): Document llogb,
414         llogbf, llogbl, FP_LLOGB0 and FP_LLOGBNAN.
415         * manual/libm-err-tab.pl (@all_functions): Add llogb.
416         * sysdeps/ieee754/ldbl-opt/nldbl-llogb.c: New file.
417         * sysdeps/ieee754/ldbl-opt/w_llogbl.c: Likewise.
418         * sysdeps/ieee754/ldbl-opt/Makefile (libnldbl-calls): Add llogb.
419         (CFLAGS-nldbl-llogb.c): New variable.
420         * sysdeps/nacl/libm.abilist: Update.
421         * sysdeps/unix/sysv/linux/aarch64/libm.abilist: Likewise.
422         * sysdeps/unix/sysv/linux/alpha/libm.abilist: Likewise.
423         * sysdeps/unix/sysv/linux/arm/libm.abilist: Likewise.
424         * sysdeps/unix/sysv/linux/hppa/libm.abilist: Likewise.
425         * sysdeps/unix/sysv/linux/i386/libm.abilist: Likewise.
426         * sysdeps/unix/sysv/linux/ia64/libm.abilist: Likewise.
427         * sysdeps/unix/sysv/linux/m68k/coldfire/libm.abilist: Likewise.
428         * sysdeps/unix/sysv/linux/m68k/m680x0/libm.abilist: Likewise.
429         * sysdeps/unix/sysv/linux/microblaze/libm.abilist: Likewise.
430         * sysdeps/unix/sysv/linux/mips/mips32/libm.abilist: Likewise.
431         * sysdeps/unix/sysv/linux/mips/mips64/libm.abilist: Likewise.
432         * sysdeps/unix/sysv/linux/nios2/libm.abilist: Likewise.
433         * sysdeps/unix/sysv/linux/powerpc/powerpc32/fpu/libm.abilist:
434         Likewise.
435         * sysdeps/unix/sysv/linux/powerpc/powerpc32/nofpu/libm.abilist:
436         Likewise.
437         * sysdeps/unix/sysv/linux/powerpc/powerpc64/libm-le.abilist:
438         Likewise.
439         * sysdeps/unix/sysv/linux/powerpc/powerpc64/libm.abilist:
440         Likewise.
441         * sysdeps/unix/sysv/linux/s390/s390-32/libm.abilist: Likewise.
442         * sysdeps/unix/sysv/linux/s390/s390-64/libm.abilist: Likewise.
443         * sysdeps/unix/sysv/linux/sh/libm.abilist: Likewise.
444         * sysdeps/unix/sysv/linux/sparc/sparc32/libm.abilist: Likewise.
445         * sysdeps/unix/sysv/linux/sparc/sparc64/libm.abilist: Likewise.
446         * sysdeps/unix/sysv/linux/tile/tilegx/tilegx32/libm.abilist:
447         Likewise.
448         * sysdeps/unix/sysv/linux/tile/tilegx/tilegx64/libm.abilist:
449         Likewise.
450         * sysdeps/unix/sysv/linux/tile/tilepro/libm.abilist: Likewise.
451         * sysdeps/unix/sysv/linux/x86_64/64/libm.abilist: Likewise.
452         * sysdeps/unix/sysv/linux/x86_64/x32/libm.abilist: Likewise.
453
454 2016-12-01  Joseph Myers  <joseph@codesourcery.com>
455
456         * sysdeps/ieee754/ldbl-128/s_getpayloadl.c (getpayloadl): Use
457         _Float128 instead of long double.
458         * sysdeps/ieee754/ldbl-128/s_setpayloadl_main.c (FUNC): Likewise.
459
460         * sysdeps/alpha/setjmp.S (__sigsetjmp): Use hidden_def.
461         * sysdeps/hppa/setjmp.S (__sigsetjmp): Likewise.
462         * sysdeps/mips/mips64/setjmp.S (__sigsetjmp): Likewise.
463         * sysdeps/mips/setjmp.S (__sigsetjmp): Likewise.
464         * sysdeps/sh/sh3/setjmp.S (__sigsetjmp): Likewise.
465         * sysdeps/sh/sh4/setjmp.S (__sigsetjmp): Likewise.
466         * sysdeps/sparc/sparc32/setjmp.S (__sigsetjmp): Likewise.
467         * sysdeps/tile/setjmp.S (__sigsetjmp): Likewise.
468         * sysdeps/unix/sysv/linux/sparc/sparc64/setjmp.S (__sigsetjmp):
469         Likewise.
470
471 2016-12-01  Adhemerval Zanella  <adhemerval.zanella@linaro.org>
472
473         * sysdeps/powerpc/powerpc64/multiarch/strrchr-ppc64.c (weak_alias):
474         Remove redirection to __strrchr_ppc.
475
476 2016-12-01  Rajalakshmi Srinivasaraghavan  <raji@linux.vnet.ibm.com>
477
478         * sysdeps/powerpc/powerpc64/multiarch/Makefile
479         (sysdep_routines): Add strcmp_power9.
480         * sysdeps/powerpc/powerpc64/multiarch/ifunc-impl-list.c
481         (strcmp): Add __strcmp_power9 to list of strcmp functions.
482         * sysdeps/powerpc/powerpc64/multiarch/strcmp-power9.S: New file.
483         * sysdeps/powerpc/powerpc64/multiarch/strcmp.c
484         (strcmp): Add __strcmp_power9 to ifunc list.
485         * sysdeps/powerpc/powerpc64/power9/strcmp.S: New file.
486
487 2016-12-01  Joseph Myers  <joseph@codesourcery.com>
488
489         * bits/fp-logb.h: New file.
490         * sysdeps/ia64/bits/fp-logb.h: Likewise.
491         * sysdeps/m68k/m680x0/bits/fp-logb.h: Likewise.
492         * sysdeps/x86/bits/fp-logb.h: Likewise.
493         * math/Makefile (headers): Add bits/fp-logb.h.
494         * math/math.h: Include <bits/fp-logb.h>.
495         [__USE_ISOC99] (FP_ILOGB0): Define based on __FP_LOGB0_IS_MIN.
496         [__USE_ISOC99] (FP_ILOGBNAN): Define based on __FP_LOGBNAN_IS_MIN.
497         * bits/mathdef.h (FP_ILOGB0): Remove.
498         (FP_ILOGBNAN): Likewise.
499         * sysdeps/aarch64/bits/mathdef.h (FP_ILOGB0): Likewise.
500         (FP_ILOGBNAN): Likewise.
501         * sysdeps/alpha/bits/mathdef.h (FP_ILOGB0): Likewise.
502         (FP_ILOGBNAN): Likewise.
503         * sysdeps/ia64/bits/mathdef.h (FP_ILOGB0): Likewise.
504         (FP_ILOGBNAN): Likewise.
505         * sysdeps/m68k/m680x0/bits/mathdef.h (FP_ILOGB0): Likewise.
506         (FP_ILOGBNAN): Likewise.
507         * sysdeps/mips/bits/mathdef.h (FP_ILOGB0): Likewise.
508         (FP_ILOGBNAN): Likewise.
509         * sysdeps/powerpc/bits/mathdef.h (FP_ILOGB0): Likewise.
510         (FP_ILOGBNAN): Likewise.
511         * sysdeps/s390/bits/mathdef.h (FP_ILOGB0): Likewise.
512         (FP_ILOGBNAN): Likewise.
513         * sysdeps/sparc/bits/mathdef.h (FP_ILOGB0): Likewise.
514         (FP_ILOGBNAN): Likewise.
515         * sysdeps/x86/bits/mathdef.h (FP_ILOGB0): Likewise.
516         (FP_ILOGBNAN): Likewise.
517
518         * scripts/build-many-glibcs.py: Add bot to usage message.  Import
519         time module.
520         (Context.__init__): Initialize self.logsdir_old.
521         (Context.run_builds): Handle bot action.
522         (Context.bot_cycle): Copy logs directory before running builds.
523         (Context.bot_run_self): Take argument for whether to check
524         subprocess result.  Flush stdout before running subprocess.
525         (Context.bot): New function.
526         (get_parser): Allow bot action.
527
528 2016-11-30  Joseph Myers  <joseph@codesourcery.com>
529
530         * scripts/build-many-glibcs.py: Add bot-cycle to usage message.
531         Import email.mime.text, email.utils and smtplib modules.
532         (Context.__init__): Initialize self.bot_config_json.
533         (Context.run_builds): Handle bot-cycle action.
534         (Context.load_bot_config_json): New function.
535         (Context.part_build_old): Likewise.
536         (Context.bot_cycle): Likewise.
537         (Context.bot_build_mail): Likewise.
538         (Context.bot_run_self): Likewise.
539         (get_parser): Allow bot-cycle action.
540
541 2016-11-30  Adhemerval Zanella  <adhemerval.zanella@linaro.org>
542
543         * sysdeps/powerpc/powerpc64/multiarch/stpcpy-ppc64.c (weak_alias):
544         Remove redirection to __stpcpy_ppc.
545
546 2016-11-30  Florian Weimer  <fweimer@redhat.com>
547
548         Remove __libc_memalign from ld.so because it is unused.
549         * elf/dl-minimal.c: Update comment on the malloc implementation.
550         (malloc): Renamed from __libc_memalign, replacing the original
551         malloc implementation.  Replace the align parameter with
552         MALLOC_ALIGNMENT.
553         * elf/Versions (ld): Update comment and remove __libc_memalign.
554         * sysdeps/nacl/ld.abilist: Likewise.
555         * sysdeps/unix/sysv/linux/aarch64/ld.abilist: Likewise.
556         * sysdeps/unix/sysv/linux/alpha/ld.abilist: Likewise.
557         * sysdeps/unix/sysv/linux/arm/ld.abilist: Likewise.
558         * sysdeps/unix/sysv/linux/hppa/ld.abilist: Likewise.
559         * sysdeps/unix/sysv/linux/i386/ld.abilist: Likewise.
560         * sysdeps/unix/sysv/linux/ia64/ld.abilist: Likewise.
561         * sysdeps/unix/sysv/linux/m68k/coldfire/ld.abilist: Likewise.
562         * sysdeps/unix/sysv/linux/m68k/m680x0/ld.abilist: Likewise.
563         * sysdeps/unix/sysv/linux/microblaze/ld.abilist: Likewise.
564         * sysdeps/unix/sysv/linux/mips/mips32/ld.abilist: Likewise.
565         * sysdeps/unix/sysv/linux/mips/mips64/n32/ld.abilist: Likewise.
566         * sysdeps/unix/sysv/linux/mips/mips64/n64/ld.abilist: Likewise.
567         * sysdeps/unix/sysv/linux/nios2/ld.abilist: Likewise.
568         * sysdeps/unix/sysv/linux/powerpc/powerpc32/ld.abilist: Likewise.
569         * sysdeps/unix/sysv/linux/powerpc/powerpc64/ld.abilist: Likewise.
570         * sysdeps/unix/sysv/linux/powerpc/powerpc64/ld-le.abilist: Likewise.
571         * sysdeps/unix/sysv/linux/s390/s390-32/ld.abilist: Likewise.
572         * sysdeps/unix/sysv/linux/s390/s390-64/ld.abilist: Likewise.
573         * sysdeps/unix/sysv/linux/sh/ld.abilist: Likewise.
574         * sysdeps/unix/sysv/linux/sparc/sparc32/ld.abilist: Likewise.
575         * sysdeps/unix/sysv/linux/sparc/sparc64/ld.abilist: Likewise.
576         * sysdeps/unix/sysv/linux/tile/tilegx/tilegx32/ld.abilist: Likewise.
577         * sysdeps/unix/sysv/linux/tile/tilegx/tilegx64/ld.abilist: Likewise.
578         * sysdeps/unix/sysv/linux/tile/tilepro/ld.abilist: Likewise.
579         * sysdeps/unix/sysv/linux/x86_64/64/ld.abilist: Likewise.
580         * sysdeps/unix/sysv/linux/x86_64/x32/ld.abilist: Likewise.
581         * sysdeps/generic/localplt.data (ld.so): Likewise.
582         * sysdeps/unix/sysv/linux/aarch64/localplt.data (ld.so): Likewise.
583         * sysdeps/unix/sysv/linux/alpha/localplt.data (ld.so): Likewise.
584         * sysdeps/unix/sysv/linux/arm/localplt.data (ld.so): Likewise.
585         * sysdeps/unix/sysv/linux/hppa/localplt.data (ld.so): Likewise.
586         * sysdeps/unix/sysv/linux/i386/localplt.data (ld.so): Likewise.
587         * sysdeps/unix/sysv/linux/ia64/localplt.data (ld.so): Likewise.
588         * sysdeps/unix/sysv/linux/m68k/localplt.data (ld.so): Likewise.
589         * sysdeps/unix/sysv/linux/microblaze/localplt.data (ld.so): Likewise.
590         * sysdeps/unix/sysv/linux/nios2/localplt.data (ld.so): Likewise.
591         * sysdeps/unix/sysv/linux/powerpc/powerpc32/fpu/localplt.data
592         (ld.so): Likewise.
593         * sysdeps/unix/sysv/linux/powerpc/powerpc32/nofpu/localplt.data
594         (ld.so): Likewise.
595         * sysdeps/unix/sysv/linux/powerpc/powerpc64/localplt.data (ld.so):
596         Likewise.
597         * sysdeps/unix/sysv/linux/s390/localplt.data (ld.so): Likewise.
598         * sysdeps/unix/sysv/linux/sh/localplt.data (ld.so): Likewise.
599         * sysdeps/unix/sysv/linux/sparc/sparc32/localplt.data (ld.so): Likewise.
600         * sysdeps/unix/sysv/linux/sparc/sparc64/localplt.data (ld.so): Likewise.
601         * sysdeps/x86_64/localplt.data (ld.so): Likewise.
602
603 2016-11-30  Florian Weimer  <fweimer@redhat.com>
604
605         [BZ #16628]
606         Implement _dl_catch_error, _dl_signal_error in libc.so.
607         * elf/dl-error-skeleton.c: Rename from elf/dl-error.c.
608         (catch_hook): Define as thread-local or regular variable,
609         depending on DL_ERROR_BOOTSTRAP.
610         (CATCH_HOOK): Remove.
611         (dl_signal_error, _dl_catch_error): Use
612         catch_hook.  Add hidden definition for libc.
613         (_dl_receive_error, _dl_signal_cerror): Use catch_hook.  Compile
614         for DL_ERROR_BOOTSTRAP only.
615         * elf/dl-error.c: New file.
616         * elf/dl-error-minimal.c: Likewise.
617         * elf/tst-latepthread.c: Likewise.
618         * elf/tst-latepthreadmod.c: Likewise.
619         * elf/Makefile (routines): Add dl-error.
620         (dl-routines): Remove dl-error.
621         (rtld-routines): Add dl-error-minimal.
622         [build-shared] (tests): Add tst-latepthread.
623         (module-names): Add tst-latepthreadmod.
624         (LDFLAGS-tst-latepthreadmod.so): Enable lazy binding to undefined
625         symbol.
626         (tst-latepthreadmod.so): Link against libpthread.
627         (tst-latepthread): Link against libdbl.
628         * elf/Versions [libc] (GLIBC_PRIVATE): Add _dl_signal_error,
629         _dl_catch_error.
630         [ld] (GLIBC_PRIVATE): Likewise.
631         * elf/dl-close.c (_dl_cose): Call _dl_signal_error directly.
632         * elf/dl-libc.c (dlerror_run): Call _dl_catch_error directly.
633         * elf/dl-sym.c (do_sym): Call _dl_signal_error, _dl_catch_error
634         directly.
635         * elf/dl-tsd.c: Remove file.
636         * elf/rtld.c (_rtld_global_ro): Remove initializers for
637         _dl_catch_error, _dl_signal_error.
638         (_dl_initial_error_catch_tsd): Remove definition.
639         (do_preload): Remove initialization of dl_error_catch_tsd.
640         * dlfcn/dlerror.c (_dlerror_run): Call _dl_catch_error directly.
641         * dlfcn/dlinfo.c (dlinfo_doit): Call _dl_signal_error directly.
642         * dlfcn/dlmopen.c (dlmopen_doit): Likewise.
643         * dlfcn/dlopen.c (dlopen_doit): Likewise.
644         * nptl/nptl-init.c (__pthread_initialize_minimal_internal): Do not
645         set dl_error_catch_tsd.
646         * sysdeps/generic/ldsodefs.h (struct rtld_global): Remove
647         _dl_error_catch_tsd member.
648         (struct rtld_global_ro): Remove _dl_catch_error, _dl_signal_error
649         members.
650         (_dl_initial_error_catch_tsd): Remove declaration.
651         (_dl_dprintf): Provide definition for use outside of ld.so.
652         [!rtld] (_dl_signal_cerror): Redirect to _dl_signal_error.
653         (_dl_signal_error, _dl_catch_error): Make public.  Add hidden
654         prototype for libc.
655         * sysdeps/generic/localplt.data (ld.so): Add _dl_signal_error,
656         _dl_catch_error.
657         * sysdeps/unix/sysv/linux/aarch64/localplt.data (ld.so): Likewise.
658         * sysdeps/unix/sysv/linux/alpha/localplt.data (ld.so): Likewise.
659         * sysdeps/unix/sysv/linux/arm/localplt.data (ld.so): Likewise.
660         * sysdeps/unix/sysv/linux/hppa/localplt.data (ld.so): Likewise.
661         * sysdeps/unix/sysv/linux/i386/localplt.data (ld.so): Likewise.
662         * sysdeps/unix/sysv/linux/ia64/localplt.data (ld.so): Likewise.
663         * sysdeps/unix/sysv/linux/m68k/localplt.data (ld.so): Likewise.
664         * sysdeps/unix/sysv/linux/microblaze/localplt.data (ld.so):
665         Likewise.
666         * sysdeps/unix/sysv/linux/nios2/localplt.data (ld.so): Likewise.
667         * sysdeps/unix/sysv/linux/powerpc/powerpc32/fpu/localplt.data
668         (ld.so): Likewise.
669         * sysdeps/unix/sysv/linux/powerpc/powerpc32/nofpu/localplt.data
670         (ld.so): Likewise.
671         * sysdeps/unix/sysv/linux/powerpc/powerpc64/localplt.data (ld.so):
672         Likewise.
673         * sysdeps/unix/sysv/linux/s390/localplt.data (ld.so): Likewise.
674         * sysdeps/unix/sysv/linux/sh/localplt.data (ld.so): Likewise.
675         * sysdeps/unix/sysv/linux/sparc/sparc32/localplt.data (ld.so):
676         Likewise.
677         * sysdeps/unix/sysv/linux/sparc/sparc64/localplt.data (ld.so):
678         Likewise.
679         * sysdeps/x86_64/localplt.data (ld.so): Likewise.
680
681 2016-11-30  Florian Weimer  <fweimer@redhat.com>
682
683         [BZ #4099]
684         * libio/filedoalloc.c (_IO_file_doallocate): Limit buffer size to
685         _IO_BUFSIZ (8192).
686
687 2016-11-30  Carlos O'Donell  <carlos@redhat.com>
688
689         * PROJECTS: Remove file.
690
691 2016-11-29  Florian Weimer  <fweimer@redhat.com>
692
693         * iconvdata/gbk.c (BODY): Add Euro sign support (both directions).
694
695 2016-11-29  Yury Norov  <ynorov@caviumnetworks.com>
696             Steve Ellcey  <sellcey@caviumnetworks.com>
697
698         * sysdeps/unix/sysv/linux/generic/wordsize-32/fxstat.c: Do not define
699         fxstat if XSTAT_IS_XSTAT64 is set to non-zero.
700         * sysdeps/unix/sysv/linux/generic/wordsize-32/fxstatat.c: Ditto for
701         fxstatat.
702         * sysdeps/unix/sysv/linux/generic/wordsize-32/lxstat.c: Ditto for
703         lxstat.
704         * sysdeps/unix/sysv/linux/generic/wordsize-32/xstat.c: Ditto for xstat.
705         * sysdeps/unix/sysv/linux/generic/wordsize-32/fxstat64.c: New file.
706         * sysdeps/unix/sysv/linux/generic/wordsize-32/fxstatat64.c: New file.
707         * sysdeps/unix/sysv/linux/generic/wordsize-32/lxstat64.c: Make __lxstat
708         an alias of __lxstat64 if XSTAT_IS_XSTAT64 is set to non-zero.
709         * sysdeps/unix/sysv/linux/generic/wordsize-32/xstat64.c: Ditto for
710         __xstat.
711
712 2016-11-29  Florian Weimer  <fweimer@redhat.com>
713
714         * sysdeps/powerpc/powerpc64/setjmp-common.S (__GI___sigsetjmp):
715         Define.
716         * sysdeps/powerpc/powerpc32/setjmp.S (__sigsetjmp): Add hidden
717         definition.
718
719 2016-11-29  Florian Weimer  <fweimer@redhat.com>
720
721         * sysdeps/powerpc/powerpc32/fpu/__longjmp.S (__longjmp): Remove
722         version and turn into strong alias.  Remove compat symbol.
723
724         * sysdeps/unix/sysv/linux/powerpc/powerpc32/fpu/libc.abilist
725         (__longjmp): Remove.
726
727 2016-11-29  Joseph Myers  <joseph@codesourcery.com>
728
729         * bits/fp-fast.h: New file.
730         * sysdeps/aarch64/bits/fp-fast.h: Likewise.
731         * sysdeps/powerpc/bits/fp-fast.h: Likewise.
732         * math/Makefile (headers): Add bits/fp-fast.h.
733         * math/math.h: Include <bits/fp-fast.h>.
734         * bits/mathdef.h (FP_FAST_FMA): Remove.
735         (FP_FAST_FMAF): Likewise.
736         (FP_FAST_FMAL): Likewise.
737         * sysdeps/aarch64/bits/mathdef.h (FP_FAST_FMA): Likewise.
738         (FP_FAST_FMAF): Likewise.
739         * sysdeps/powerpc/bits/mathdef.h (FP_FAST_FMA): Likewise.
740         (FP_FAST_FMAF): Likewise.
741         * sysdeps/x86/bits/mathdef.h (FP_FAST_FMA): Likewise.
742         (FP_FAST_FMAF): Likewise.
743         (FP_FAST_FMAL): Likewise.
744         * sysdeps/arm/bits/mathdef.h: Remove file.
745         * sysdeps/hppa/fpu/bits/mathdef.h: Likewise.
746         * sysdeps/sh/sh4/bits/mathdef.h: Likewise.
747         * sysdeps/tile/bits/mathdef.h: Likewise.
748
749 2016-11-28  Joseph Myers  <joseph@codesourcery.com>
750
751         * math/w_ilogb_template.c: New file.  Based on math/w_ilogb.c.
752         * math/w_ilogb.c: Remove.
753         * math/w_ilogbf.c: Likewise.
754         * math/w_ilogbl.c: Likewise.
755         * sysdeps/ieee754/ldbl-opt/w_ilogb.c: Likewise.
756         * sysdeps/ieee754/ldbl-opt/w_ilogbl.c: Likewise.
757         * math/Makefile (gen-libm-calls): Add w_ilogbF.
758         (libm-calls): Remove w_ilogbF.
759         * sysdeps/ieee754/ldbl-opt/math-type-macros-double.h
760         (LDOUBLE_ilogbl_libm_version): New macro.
761
762         * sysdeps/unix/sysv/linux/ia64/tst-setcontext2.c: New file.
763
764         * sysdeps/ia64/fpu/libm-symbols.h: Make contents conditional on
765         [!__STRICT_ANSI__ && !__cplusplus].
766
767 2016-11-28  H.J. Lu  <hongjiu.lu@intel.com>
768
769         [BZ #20750]
770         * sysdeps/x86_64/sysdep.h (JUMPTARGET): Check SHARED instead
771         of PIC.
772
773 2016-11-28  Andrew Pinski  <andrew.pinski@caviumnetworks.com>
774             Yury Norov  <ynorov@caviumnetworks.com>
775             Steve Ellcey  <sellcey@caviumnetworks.com>
776
777         * sysdeps/aarch64/crti.S: Add include of sysdep.h.
778         (call_weak_fn): Use PTR_REG to get correct reg name in ILP32.
779         * sysdeps/aarch64/dl-irel.h: Add include of sysdep.h.
780         (elf_irela): Use AARCH64_R macro to get correct relocation in ILP32.
781         * sysdeps/aarch64/dl-machine.h: Add include of sysdep.h.
782         (elf_machine_load_address, RTLD_START, RTLD_START_1, RTLD_START,
783         elf_machine_type_class, ELF_MACHINE_JMP_SLOT, elf_machine_rela,
784         elf_machine_lazy_rel): Add ifdef's for ILP32 support.
785         * sysdeps/aarch64/dl-tlsdesc.S (_dl_tlsdesc_return,
786         _dl_tlsdesc_return_lazy, _dl_tlsdesc_dynamic,
787         _dl_tlsdesc_resolve_hold): Extend pointers in ILP32, use PTR_REG
788         to get correct reg name for ILP32.
789         * sysdeps/aarch64/dl-trampoline.S (ip01): New Macro.
790         (RELA_SIZE): New Macro.
791         (_dl_runtime_resolve, _dl_runtime_profile): Use new macros and PTR_REG
792         to support ILP32.
793         * sysdeps/aarch64/jmpbuf-unwind.h (_JMPBUF_CFA_UNWINDS_ADJ): Add
794         cast for ILP32 mode.
795         * sysdeps/aarch64/memcmp.S (memcmp): Extend arg pointers for ILP32 mode.
796         * sysdeps/aarch64/memcpy.S (memmove, memcpy): Ditto.
797         * sysdeps/aarch64/memset.S (__memset): Ditto.
798         * sysdeps/aarch64/strchr.S (strchr): Ditto.
799         * sysdeps/aarch64/strchrnul.S (__strchrnul): Ditto.
800         * sysdeps/aarch64/strcmp.S (strcmp): Ditto.
801         * sysdeps/aarch64/strcpy.S (strcpy): Ditto.
802         * sysdeps/aarch64/strlen.S (__strlen): Ditto.
803         * sysdeps/aarch64/strncmp.S (strncmp): Ditto.
804         * sysdeps/aarch64/strnlen.S (strnlen): Ditto.
805         * sysdeps/aarch64/strrchr.S (strrchr): Ditto.
806         * sysdeps/unix/sysv/linux/aarch64/clone.S: Ditto.
807         * sysdeps/unix/sysv/linux/aarch64/setcontext.S (__setcontext): Ditto.
808         * sysdeps/unix/sysv/linux/aarch64/swapcontext.S (__swapcontext): Ditto.
809         * sysdeps/aarch64/__longjmp.S (__longjmp): Extend pointers in ILP32,
810         change PTR_MANGLE call to use register numbers instead of names.
811         * sysdeps/unix/sysv/linux/aarch64/getcontext.S (__getcontext): Ditto.
812         * sysdeps/aarch64/setjmp.S (__sigsetjmp): Extend arg pointers for
813         ILP32 mode, change PTR_MANGLE calls to use register numbers.
814         * sysdeps/aarch64/start.S (_start): Ditto.
815         * sysdeps/aarch64/nptl/bits/pthreadtypes.h
816         (__PTHREAD_RWLOCK_INT_FLAGS_SHARED): New define.
817         (__SIZEOF_PTHREAD_ATTR_T, __SIZEOF_PTHREAD_MUTEX_T,
818         __SIZEOF_PTHREAD_MUTEXATTR_T, __SIZEOF_PTHREAD_COND_T,
819         __SIZEOF_PTHREAD_COND_COMPAT_T, __SIZEOF_PTHREAD_CONDATTR_T,
820         __SIZEOF_PTHREAD_RWLOCK_T, __SIZEOF_PTHREAD_RWLOCKATTR_T,
821         __SIZEOF_PTHREAD_BARRIER_T, __SIZEOF_PTHREAD_BARRIERATTR_T):
822         Make defined values dependent on __ILP32__.
823         * sysdeps/aarch64/nptl/bits/semaphore.h (__SIZEOF_SEM_T): Change define.
824         (sem_t): Change __align type.
825         * sysdeps/aarch64/sysdep.h (AARCH64_R, PTR_REG, PTR_LOG_SIZE, DELOUSE,
826         PTR_SIZE): New Macros.
827         (LDST_PCREL, LDST_GLOBAL) Update to use PTR_REG.
828         * sysdeps/unix/sysv/linux/aarch64/bits/fcntl.h (O_LARGEFILE):
829         Set when in ILP32 mode.
830         (F_GETLK64, F_SETLK64, F_SETLKW64): Only set in LP64 mode.
831         * sysdeps/unix/sysv/linux/aarch64/dl-cache.h (DL_CACHE_DEFAULT_ID):
832         Set elf flags for ILP32.
833         (add_system_dir): Set ILP32 library directories.
834         * sysdeps/unix/sysv/linux/aarch64/init-first.c
835         (_libc_vdso_platform_setup): Set minimum kernel version for ILP32.
836         * sysdeps/unix/sysv/linux/aarch64/ldconfig.h
837         (SYSDEP_KNOWN_INTERPRETER_NAMES): Add ILP32 names.
838         * sysdeps/unix/sysv/linux/aarch64/sigcontextinfo.h (GET_PC, SET_PC):
839         New Macros.
840         * sysdeps/unix/sysv/linux/aarch64/sysdep.h: Handle ILP32 pointers.
841
842 2016-11-28  Steve Ellcey  <sellcey@caviumnetworks.com>
843
844         * sysdeps/unix/sysv/linux/fstatfs64.c: Reorder include files,
845         only alias fstatfs and __fstatfs if STATFS_IS_STATFS64 is non-zero.
846         * sysdeps/unix/sysv/linux/statfs64.c: Ditto for statfs and __statfs.
847
848 2016-11-28  Joseph Myers  <joseph@codesourcery.com>
849
850         * sysdeps/unix/sysv/linux/nios2/sys/cachectl.h: Do not include
851         <asm/cachectl.h>.
852
853 2016-11-27  Zack Weinberg  <zackw@panix.com>
854
855         * libio/libio.h: Use __USE_GNU, not _GNU_SOURCE, in a conditional.
856         * test-skeleton.c: Include stdint.h to ensure uintptr_t is available.
857
858 2016-11-27  Samuel Thibault  <samuel.thibault@ens-lyon.org>
859
860         * hurd/hurd/signal.h (HURD_MSGPORT_RPC): Cast expressions results to
861         error_t to fix usage in C++ programs.
862
863 2016-11-26  Joseph Myers  <joseph@codesourcery.com>
864
865         * scripts/build-many-glibcs.py: Import datetime module.
866         (Context.__init__): Load JSON build state.  Initialize list of
867         status logs.
868         (Context.run_builds): Update saved build state.
869         (Context.add_makefile_cmdlist): Update list of status logs.
870         (Context.load_build_state_json): New function.
871         (Context.store_build_state_json): Likewise.
872         (Context.clear_last_build_state): Likewise.
873         (Context.update_build_state): Likewise.
874         (CommandList.status_logs): Likewise.
875
876 2016-11-25  Joseph Myers  <joseph@codesourcery.com>
877
878         * scripts/build-many-glibcs.py (Context.__init__): Save text of
879         script being executed.
880         (Context.get_script_text): New function.
881         (Context.exec_self): Likewise.
882         (Context.checkout): Re-exec script if changed by checkout process.
883
884 2016-11-24  Joseph Myers  <joseph@codesourcery.com>
885
886         * math/bits/mathcalls.h [__GLIBC_USE (IEC_60559_BFP_EXT)]
887         (setpayloadsig): New declaration.
888         * math/Versions (setpayloadsig): New libm symbol at version
889         GLIBC_2.25.
890         (setpayloadsigf): Likewise.
891         (setpayloadsigl): Likewise.
892         * math/Makefile (libm-calls): Add s_setpayloadsigF.
893         * math/libm-test.inc (RUN_TEST_Ff_b1): Call feclearexcept
894         (FE_ALL_EXCEPT) after initializing EXTRA_VAR.
895         (setpayloadsig_test_data): New array.
896         (setpayloadsig_test): New function.
897         (main): Call setpayloadsig_test.
898         * manual/arith.texi (FP Bit Twiddling): Document setpayloadsig,
899         setpayloadsigf and setpayloadsigl.
900         * manual/libm-err-tab.pl: Update comment on interfaces without
901         ulps tabulated.
902         * sysdeps/ieee754/dbl-64/s_setpayloadsig.c: New file.
903         * sysdeps/ieee754/flt-32/s_setpayloadsigf.c: Likewise.
904         * sysdeps/ieee754/ldbl-128/s_setpayloadsigl.c: Likewise.
905         * sysdeps/ieee754/ldbl-128ibm/s_setpayloadsigl.c: Likewise.
906         * sysdeps/ieee754/ldbl-96/s_setpayloadsigl.c: Likewise.
907         * sysdeps/ieee754/ldbl-opt/nldbl-setpayloadsig.c: Likewise.
908         * sysdeps/ieee754/ldbl-opt/Makefile (libnldbl-calls): Add
909         setpayloadsig.
910         (CFLAGS-nldbl-setpayloadsig.c): New variable.
911         * sysdeps/nacl/libm.abilist: Update.
912         * sysdeps/unix/sysv/linux/aarch64/libm.abilist: Likewise.
913         * sysdeps/unix/sysv/linux/alpha/libm.abilist: Likewise.
914         * sysdeps/unix/sysv/linux/arm/libm.abilist: Likewise.
915         * sysdeps/unix/sysv/linux/hppa/libm.abilist: Likewise.
916         * sysdeps/unix/sysv/linux/i386/libm.abilist: Likewise.
917         * sysdeps/unix/sysv/linux/ia64/libm.abilist: Likewise.
918         * sysdeps/unix/sysv/linux/m68k/coldfire/libm.abilist: Likewise.
919         * sysdeps/unix/sysv/linux/m68k/m680x0/libm.abilist: Likewise.
920         * sysdeps/unix/sysv/linux/microblaze/libm.abilist: Likewise.
921         * sysdeps/unix/sysv/linux/mips/mips32/libm.abilist: Likewise.
922         * sysdeps/unix/sysv/linux/mips/mips64/libm.abilist: Likewise.
923         * sysdeps/unix/sysv/linux/nios2/libm.abilist: Likewise.
924         * sysdeps/unix/sysv/linux/powerpc/powerpc32/fpu/libm.abilist:
925         Likewise.
926         * sysdeps/unix/sysv/linux/powerpc/powerpc32/nofpu/libm.abilist:
927         Likewise.
928         * sysdeps/unix/sysv/linux/powerpc/powerpc64/libm-le.abilist:
929         Likewise.
930         * sysdeps/unix/sysv/linux/powerpc/powerpc64/libm.abilist:
931         Likewise.
932         * sysdeps/unix/sysv/linux/s390/s390-32/libm.abilist: Likewise.
933         * sysdeps/unix/sysv/linux/s390/s390-64/libm.abilist: Likewise.
934         * sysdeps/unix/sysv/linux/sh/libm.abilist: Likewise.
935         * sysdeps/unix/sysv/linux/sparc/sparc32/libm.abilist: Likewise.
936         * sysdeps/unix/sysv/linux/sparc/sparc64/libm.abilist: Likewise.
937         * sysdeps/unix/sysv/linux/tile/tilegx/tilegx32/libm.abilist:
938         Likewise.
939         * sysdeps/unix/sysv/linux/tile/tilegx/tilegx64/libm.abilist:
940         Likewise.
941         * sysdeps/unix/sysv/linux/tile/tilepro/libm.abilist: Likewise.
942         * sysdeps/unix/sysv/linux/x86_64/64/libm.abilist: Likewise.
943         * sysdeps/unix/sysv/linux/x86_64/x32/libm.abilist: Likewise.
944
945         * scripts/build-many-glibcs.py: Import json module.
946         (Context.__init__): Take replace_sources argument.  Load
947         versions.json.
948         (Context.load_versions_json): New function.
949         (Context.store_json): Likewise.
950         (Context.store_versions_json): Likewise.
951         (Context.set_component_version): Likewise.
952         (Context.checkout): Update versions.json.  Check for and handle
953         changes of version.  Prefer previously explicitly specified
954         version to default version.
955         (Context.checkout_vcs): Return a revision identifier.
956         (Context.git_checkout): Likewise.
957         (Context.gcc_checkout): Likewise.
958         (get_parser): Add --replace-sources option.
959         (main): Pass replace_sources argument to Context call.
960
961 2016-11-24  Adhemerval Zanella  <adhemerval.zanella@linaro.org>
962
963         * sysdeps/nptl/fork.c (__libc_fork): Remove pid cache setting.
964         * nptl/allocatestack.c (allocate_stack): Likewise.
965         (__reclaim_stacks): Likewise.
966         (setxid_signal_thread): Obtain pid through syscall.
967         * nptl/nptl-init.c (sigcancel_handler): Likewise.
968         (sighandle_setxid): Likewise.
969         * nptl/pthread_cancel.c (pthread_cancel): Likewise.
970         * sysdeps/unix/sysv/linux/pthread_kill.c (__pthread_kill): Likewise.
971         * sysdeps/unix/sysv/linux/pthread_sigqueue.c (pthread_sigqueue):
972         Likewise.
973         * sysdeps/unix/sysv/linux/createthread.c (create_thread): Likewise.
974         * sysdeps/unix/sysv/linux/raise.c (raise): Remove old behaviour
975         comment.
976         * sysdeps/unix/sysv/linux/getpid.c: Remove file.
977         * nptl/descr.h (struct pthread): Change comment about pid value.
978         * nptl/pthread_getattr_np.c (pthread_getattr_np): Remove thread
979         pid assert.
980         * sysdeps/unix/sysv/linux/pthread-pids.h (__pthread_initialize_pids):
981         Do not set pid value.
982         * nptl_db/td_ta_thr_iter.c (iterate_thread_list): Remove thread
983         pid cache check.
984         * nptl_db/td_thr_validate.c (td_thr_validate): Likewise.
985         * sysdeps/aarch64/nptl/tcb-offsets.sym: Remove pid offset.
986         * sysdeps/alpha/nptl/tcb-offsets.sym: Likewise.
987         * sysdeps/arm/nptl/tcb-offsets.sym: Likewise.
988         * sysdeps/hppa/nptl/tcb-offsets.sym: Likewise.
989         * sysdeps/i386/nptl/tcb-offsets.sym: Likewise.
990         * sysdeps/ia64/nptl/tcb-offsets.sym: Likewise.
991         * sysdeps/m68k/nptl/tcb-offsets.sym: Likewise.
992         * sysdeps/microblaze/nptl/tcb-offsets.sym: Likewise.
993         * sysdeps/mips/nptl/tcb-offsets.sym: Likewise.
994         * sysdeps/nios2/nptl/tcb-offsets.sym: Likewise.
995         * sysdeps/powerpc/nptl/tcb-offsets.sym: Likewise.
996         * sysdeps/s390/nptl/tcb-offsets.sym: Likewise.
997         * sysdeps/sh/nptl/tcb-offsets.sym: Likewise.
998         * sysdeps/sparc/nptl/tcb-offsets.sym: Likewise.
999         * sysdeps/tile/nptl/tcb-offsets.sym: Likewise.
1000         * sysdeps/x86_64/nptl/tcb-offsets.sym: Likewise.
1001         * sysdeps/unix/sysv/linux/aarch64/clone.S: Remove pid and tid caching.
1002         * sysdeps/unix/sysv/linux/alpha/clone.S: Likewise.
1003         * sysdeps/unix/sysv/linux/arm/clone.S: Likewise.
1004         * sysdeps/unix/sysv/linux/hppa/clone.S: Likewise.
1005         * sysdeps/unix/sysv/linux/i386/clone.S: Likewise.
1006         * sysdeps/unix/sysv/linux/ia64/clone2.S: Likewise.
1007         * sysdeps/unix/sysv/linux/mips/clone.S: Likewise.
1008         * sysdeps/unix/sysv/linux/nios2/clone.S: Likewise.
1009         * sysdeps/unix/sysv/linux/powerpc/powerpc32/clone.S: Likewise.
1010         * sysdeps/unix/sysv/linux/powerpc/powerpc64/clone.S: Likewise.
1011         * sysdeps/unix/sysv/linux/s390/s390-32/clone.S: Likewise.
1012         * sysdeps/unix/sysv/linux/s390/s390-64/clone.S: Likewise.
1013         * sysdeps/unix/sysv/linux/sh/clone.S: Likewise.
1014         * sysdeps/unix/sysv/linux/sparc/sparc32/clone.S: Likewise.
1015         * sysdeps/unix/sysv/linux/sparc/sparc64/clone.S: Likewise.
1016         * sysdeps/unix/sysv/linux/tile/clone.S: Likewise.
1017         * sysdeps/unix/sysv/linux/x86_64/clone.S: Likewise.
1018         * sysdeps/unix/sysv/linux/aarch64/vfork.S: Remove pid set and reset.
1019         * sysdeps/unix/sysv/linux/alpha/vfork.S: Likewise.
1020         * sysdeps/unix/sysv/linux/arm/vfork.S: Likewise.
1021         * sysdeps/unix/sysv/linux/i386/vfork.S: Likewise.
1022         * sysdeps/unix/sysv/linux/ia64/vfork.S: Likewise.
1023         * sysdeps/unix/sysv/linux/m68k/clone.S: Likewise.
1024         * sysdeps/unix/sysv/linux/m68k/vfork.S: Likewise.
1025         * sysdeps/unix/sysv/linux/mips/vfork.S: Likewise.
1026         * sysdeps/unix/sysv/linux/nios2/vfork.S: Likewise.
1027         * sysdeps/unix/sysv/linux/powerpc/powerpc32/vfork.S: Likewise.
1028         * sysdeps/unix/sysv/linux/powerpc/powerpc64/vfork.S: Likewise.
1029         * sysdeps/unix/sysv/linux/s390/s390-32/vfork.S: Likewise.
1030         * sysdeps/unix/sysv/linux/s390/s390-64/vfork.S: Likewise.
1031         * sysdeps/unix/sysv/linux/sh/vfork.S: Likewise.
1032         * sysdeps/unix/sysv/linux/sparc/sparc32/vfork.S: Likewise.
1033         * sysdeps/unix/sysv/linux/sparc/sparc64/vfork.S: Likewise.
1034         * sysdeps/unix/sysv/linux/tile/vfork.S: Likewise.
1035         * sysdeps/unix/sysv/linux/x86_64/vfork.S: Likewise.
1036         * sysdeps/unix/sysv/linux/hppa/pt-vfork.S: Likewise.
1037         * sysdeps/unix/sysv/linux/tst-clone2.c (f): Remove direct pthread
1038         struct access.
1039         (clone_test): Remove function.
1040         (do_test): Rewrite to take in consideration pid is not cached anymore.
1041
1042 2016-11-24  Joseph Myers  <joseph@codesourcery.com>
1043
1044         * bits/flt-eval-method.h: New file.
1045         * sysdeps/m68k/m680x0/bits/flt-eval-method.h: Likewise.
1046         * sysdeps/s390/bits/flt-eval-method.h: Likewise.
1047         * sysdeps/x86/bits/flt-eval-method.h: Likewise.
1048         * math/Makefile (headers): Add bits/flt-eval-method.h.
1049         * math/math.h: Include <bits/flt-eval-method.h>.
1050         [__USE_ISOC99] (float_t): Define based on __GLIBC_FLT_EVAL_METHOD.
1051         [__USE_ISOC99] (double_t): Likewise.
1052         * bits/mathdef.h (float_t): Remove.
1053         (double_t): Likewise.
1054         * sysdeps/aarch64/bits/mathdef.h (float_t): Likewise.
1055         (double_t): Likewise.
1056         * sysdeps/alpha/bits/mathdef.h (float_t): Likewise.
1057         (double_t): Likewise.
1058         * sysdeps/arm/bits/mathdef.h (float_t): Likewise.
1059         (double_t): Likewise.
1060         * sysdeps/hppa/fpu/bits/mathdef.h (float_t): Likewise.
1061         (double_t): Likewise.
1062         * sysdeps/ia64/bits/mathdef.h (float_t): Likewise.
1063         (double_t): Likewise.
1064         * sysdeps/m68k/m680x0/bits/mathdef.h (float_t): Likewise.
1065         (double_t): Likewise.
1066         * sysdeps/mips/bits/mathdef.h (float_t): Likewise.
1067         (double_t): Likewise.
1068         * sysdeps/powerpc/bits/mathdef.h (float_t): Likewise.
1069         (double_t): Likewise.
1070         * sysdeps/s390/bits/mathdef.h (float_t): Likewise.
1071         (double_t): Likewise.
1072         * sysdeps/sh/sh4/bits/mathdef.h (float_t): Likewise.
1073         (double_t): Likewise.
1074         * sysdeps/sparc/bits/mathdef.h (float_t): Likewise.
1075         (double_t): Likewise.
1076         * sysdeps/tile/bits/mathdef.h (float_t): Likewise.
1077         (double_t): Likewise.
1078         * sysdeps/x86/bits/mathdef.h (float_t): Likewise.
1079         (double_t): Likewise.
1080
1081 2016-11-24  Aurelien Jarno  <aurelien@aurel32.net>
1082
1083         * sysdeps/x86_64/memcpy_chk.S (__memcpy_chk): Check for SHARED
1084         instead of PIC.
1085
1086 2016-11-23  Joseph Myers  <joseph@codesourcery.com>
1087
1088         [BZ #20859]
1089         * sysdeps/sh/sh4/bits/mathdef.h (FP_ILOGB0): Define to
1090         (-0x7fffffff) instead of 0x80000001.
1091         * math/test-fp-ilogb-constants.c: New file.
1092         * math/Makefile (tests): Add test-fp-ilogb-constants.
1093
1094 2016-11-23  Maciej W. Rozycki  <macro@imgtec.com>
1095
1096         * sysdeps/mips/mips32/crti.S (JALR_RELOC): New macro.
1097         (_init): Use it in place of hardcoded R_MIPS_JALR.
1098         * sysdeps/mips/mips64/n32/crti.S (JALR_RELOC): New macro.
1099         (_init): Use it in place of hardcoded R_MIPS_JALR.
1100         * sysdeps/mips/mips64/n64/crti.S (JALR_RELOC): New macro.
1101         (_init): Use it in place of hardcoded R_MIPS_JALR.
1102
1103 2016-11-23  Joseph Myers  <joseph@codesourcery.com>
1104
1105         [BZ #20787]
1106         * sysdeps/x86/bits/mathdef.h (float_t): Do not define to float if
1107         [__x86_64__] when __FLT_EVAL_METHOD__ is nonzero.
1108         (double_t): Do not define to double if [__x86_64__] when
1109         __FLT_EVAL_METHOD__ is nonzero.
1110         * sysdeps/x86/fpu/test-flt-eval-method-387.c: New file.
1111         * sysdeps/x86/fpu/test-flt-eval-method-sse.c: Likewise.
1112         * sysdeps/x86/fpu/Makefile [$(subdir) = math] (tests): Add
1113         test-flt-eval-method-387 and test-flt-eval-method-sse.
1114         [$(subdir) = math] (CFLAGS-test-flt-eval-method-387.c): New
1115         variable.
1116         [$(subdir) = math] (CFLAGS-test-flt-eval-method-sse.c): Likewise.
1117
1118 2016-11-23  Chris Metcalf  <cmetcalf@mellanox.com>
1119
1120         * scripts/build-many-glibcs.py (Context.add_all_configs): Revert
1121         use of -fno-isolate-erroneous-paths options for tilepro.
1122
1123 2016-11-23  Florian Weimer  <fweimer@redhat.com>
1124
1125         * elf/dl-load.c (_dl_map_object_from_fd): Delayed TLS data
1126         structure initialization is no longer needed.
1127
1128 2016-11-23  Joseph Myers  <joseph@codesourcery.com>
1129
1130         [BZ #20855]
1131         * bits/mathdef.h (float_t): Define to float.
1132         * math/test-flt-eval-method.c: New file.
1133         * math/Makefile (tests): Add test-flt-eval-method.
1134         (CFLAGS-test-flt-eval-method.c): New variable.
1135
1136 2016-11-22  Steve Ellcey  <sellcey@caviumnetworks.com>
1137
1138         * sysdeps/unix/sysv/linux/fstatfs64.c: Hide prototypes for fstatfs
1139         and __fstatfs.  Make them aliases of __fstatfs64 if
1140         STATFS_IS_STATFS64 is set to non-zero.
1141         * sysdeps/unix/sysv/linux/statfs64.c: Ditto for __statfs, statfs,
1142         and __statfs64.
1143         * sysdeps/unix/sysv/linux/generic/wordsize-32/fstatfs.c: Do not
1144         define __fstatfs and fstatfs if STATFS_IS_STATFS64 is non-zero.
1145         * sysdeps/unix/sysv/linux/generic/wordsize-32/statfs.c: Ditto
1146         for __statfs and statfs.
1147         * sysdeps/unix/sysv/linux/alpha/kernel_stat.h: Set STATFS_IS_STATFS64
1148         to 0.
1149         * sysdeps/unix/sysv/linux/generic/kernel_stat.h: Ditto.
1150         * sysdeps/unix/sysv/linux/hppa/kernel_stat.h: Ditto.
1151         * sysdeps/unix/sysv/linux/ia64/kernel_stat.h: Ditto.
1152         * sysdeps/unix/sysv/linux/kernel_stat.h: Ditto.
1153         * sysdeps/unix/sysv/linux/microblaze/kernel_stat.h: Ditto.
1154         * sysdeps/unix/sysv/linux/mips/kernel_stat.h: Ditto.
1155         * sysdeps/unix/sysv/linux/powerpc/powerpc32/kernel_stat.h: Ditto.
1156         * sysdeps/unix/sysv/linux/powerpc/powerpc64/kernel_stat.h: Ditto.
1157         * sysdeps/unix/sysv/linux/s390/s390-64/kernel_stat.h: Ditto.
1158         * sysdeps/unix/sysv/linux/sparc/sparc32/kernel_stat.h: Ditto.
1159         * sysdeps/unix/sysv/linux/sparc/sparc64/kernel_stat.h: Ditto.
1160         * sysdeps/unix/sysv/linux/x86_64/kernel_stat.h: Ditto.
1161
1162 2016-11-22  Andreas Schwab  <schwab@suse.de>
1163
1164         * misc/mkstemp.c: Include <fcntl.h>.
1165         * misc/mkstemps.c: Likewise.
1166         * misc/mkostemp.c: Likewise.
1167         * misc/mkostemps.c: Likewise.
1168
1169 2016-11-22  Adhemerval Zanella  <adhemerva.zanella@linaro.org>
1170
1171         [BZ #20847]
1172         * posix/execvpe.c (maybe_script_execute): Remove write past allocated
1173         array bounds.
1174         (__execvpe): Likewise.
1175
1176 2016-11-22  Joseph Myers  <joseph@codesourcery.com>
1177
1178         * scripts/build-many-glibcs.py (Context.add_all_configs): Also use
1179         -fno-isolate-erroneous-paths options for tilepro.
1180
1181 2016-11-21  Steve Ellcey  <sellcey@caviumnetworks.com>
1182
1183         * sysdeps/unix/sysv/linux/generic/kernel_stat.h: Set XSTAT_IS_XSTAT64
1184         to 0 when in 32 bit mode.
1185         * sysdeps/unix/sysv/linux/hppa/kernel_stat.h: Set XSTAT_IS_XSTAT64 to 0.
1186         * sysdeps/unix/sysv/linux/kernel_stat.h: Ditto.
1187         * sysdeps/unix/sysv/linux/microblaze/kernel_stat.h: Ditto.
1188         * sysdeps/unix/sysv/linux/mips/kernel_stat.h: Ditto.
1189         * sysdeps/unix/sysv/linux/powerpc/powerpc32/kernel_stat.h: Ditto.
1190         * sysdeps/unix/sysv/linux/sparc/sparc32/kernel_stat.h: Ditto.
1191         * sysdeps/unix/sysv/linux/fxstat.c: Replace #ifdef with #if on
1192         XSTAT_IS_XSTAT64 test.
1193         * sysdeps/unix/sysv/linux/fxstatat.c: Ditto.
1194         * sysdeps/unix/sysv/linux/generic/lxstat.c: Ditto.
1195         * sysdeps/unix/sysv/linux/generic/xstat.c: Ditto.
1196         * sysdeps/unix/sysv/linux/i386/fxstat.c: Ditto.
1197         * sysdeps/unix/sysv/linux/i386/fxstatat.c: Ditto.
1198         * sysdeps/unix/sysv/linux/i386/lxstat.c: Ditto.
1199         * sysdeps/unix/sysv/linux/i386/xstat.c: Ditto.
1200         * sysdeps/unix/sysv/linux/lxstat.c: Ditto.
1201         * sysdeps/unix/sysv/linux/mips/xstatconv.c: Ditto.
1202         * sysdeps/unix/sysv/linux/xstat.c: Ditto.
1203         * sysdeps/unix/sysv/linux/xstatconv.c: Ditto.
1204
1205 2016-11-19  Joseph Myers  <joseph@codesourcery.com>
1206
1207         * math/bits/mathcalls.h [__GLIBC_USE (IEC_60559_BFP_EXT)]
1208         (setpayload): New declaration.
1209         * math/Versions (setpayload): New libm symbol at version
1210         GLIBC_2.25.
1211         (setpayloadf): Likewise.
1212         (setpayloadl): Likewise.
1213         * math/Makefile (libm-calls): Add s_setpayloadF.
1214         * math/libm-test.inc (struct test_Ffp_b1_data): Rename to struct
1215         test_Ff_b1_data.
1216         (RUN_TEST_Ff_b1): New macro.
1217         (RUN_TEST_LOOP_Ff_b1): Likewise.
1218         (canonicalize_test_data): Update type.
1219         (setpayload_test_data): New array.
1220         (setpayload_test): New function.
1221         (main): Call setpayload_test.
1222         * manual/arith.texi (FP Bit Twiddling): Document setpayload,
1223         setpayloadf and setpayloadl.
1224         * manual/libm-err-tab.pl: Update comment on interfaces without
1225         ulps tabulated.
1226         * sysdeps/ieee754/dbl-64/s_setpayload.c: New file.
1227         * sysdeps/ieee754/dbl-64/s_setpayload_main.c: Likewise.
1228         * sysdeps/ieee754/dbl-64/wordsize-64/s_setpayload_main.c:
1229         Likewise.
1230         * sysdeps/ieee754/flt-32/s_setpayloadf.c: Likewise.
1231         * sysdeps/ieee754/flt-32/s_setpayloadf_main.c: Likewise.
1232         * sysdeps/ieee754/ldbl-128/s_setpayloadl.c: Likewise.
1233         * sysdeps/ieee754/ldbl-128/s_setpayloadl_main.c: Likewise.
1234         * sysdeps/ieee754/ldbl-128ibm/s_setpayloadl.c: Likewise.
1235         * sysdeps/ieee754/ldbl-128ibm/s_setpayloadl_main.c: Likewise.
1236         * sysdeps/ieee754/ldbl-96/s_setpayloadl.c: Likewise.
1237         * sysdeps/ieee754/ldbl-96/s_setpayloadl_main.c: Likewise.
1238         * sysdeps/ieee754/ldbl-opt/nldbl-setpayload.c: Likewise.
1239         * sysdeps/ieee754/ldbl-opt/Makefile (libnldbl-calls): Add
1240         setpayload.
1241         (CFLAGS-nldbl-setpayload.c): New variable.
1242         * sysdeps/nacl/libm.abilist: Update.
1243         * sysdeps/unix/sysv/linux/aarch64/libm.abilist: Likewise.
1244         * sysdeps/unix/sysv/linux/alpha/libm.abilist: Likewise.
1245         * sysdeps/unix/sysv/linux/arm/libm.abilist: Likewise.
1246         * sysdeps/unix/sysv/linux/hppa/libm.abilist: Likewise.
1247         * sysdeps/unix/sysv/linux/i386/libm.abilist: Likewise.
1248         * sysdeps/unix/sysv/linux/ia64/libm.abilist: Likewise.
1249         * sysdeps/unix/sysv/linux/m68k/coldfire/libm.abilist: Likewise.
1250         * sysdeps/unix/sysv/linux/m68k/m680x0/libm.abilist: Likewise.
1251         * sysdeps/unix/sysv/linux/microblaze/libm.abilist: Likewise.
1252         * sysdeps/unix/sysv/linux/mips/mips32/libm.abilist: Likewise.
1253         * sysdeps/unix/sysv/linux/mips/mips64/libm.abilist: Likewise.
1254         * sysdeps/unix/sysv/linux/nios2/libm.abilist: Likewise.
1255         * sysdeps/unix/sysv/linux/powerpc/powerpc32/fpu/libm.abilist:
1256         Likewise.
1257         * sysdeps/unix/sysv/linux/powerpc/powerpc32/nofpu/libm.abilist:
1258         Likewise.
1259         * sysdeps/unix/sysv/linux/powerpc/powerpc64/libm-le.abilist:
1260         Likewise.
1261         * sysdeps/unix/sysv/linux/powerpc/powerpc64/libm.abilist:
1262         Likewise.
1263         * sysdeps/unix/sysv/linux/s390/s390-32/libm.abilist: Likewise.
1264         * sysdeps/unix/sysv/linux/s390/s390-64/libm.abilist: Likewise.
1265         * sysdeps/unix/sysv/linux/sh/libm.abilist: Likewise.
1266         * sysdeps/unix/sysv/linux/sparc/sparc32/libm.abilist: Likewise.
1267         * sysdeps/unix/sysv/linux/sparc/sparc64/libm.abilist: Likewise.
1268         * sysdeps/unix/sysv/linux/tile/tilegx/tilegx32/libm.abilist:
1269         Likewise.
1270         * sysdeps/unix/sysv/linux/tile/tilegx/tilegx64/libm.abilist:
1271         Likewise.
1272         * sysdeps/unix/sysv/linux/tile/tilepro/libm.abilist: Likewise.
1273         * sysdeps/unix/sysv/linux/x86_64/64/libm.abilist: Likewise.
1274         * sysdeps/unix/sysv/linux/x86_64/x32/libm.abilist: Likewise.
1275
1276 2016-11-18  Adhemerval Zanella  <adhemerval.zanella@linaro.org>
1277
1278         * hurd/hurd.h (__hurd_fail_noerrno): Remove function.
1279         * include/unistd.h: Extend comment about __access_noerrno return
1280         semantics.
1281         * sysdeps/match/hurd/access.c (__hurd_fail_noerrno): Return -1.
1282         (access_common): Correct typo for EACCES.
1283
1284 2016-11-18  Chris Metcalf  <cmetcalf@mellanox.com>
1285
1286         * sysdeps/tile/math-tests.h: New file.
1287
1288         * sysdeps/unix/sysv/linux/tile/set_dataplane.c
1289         (__old_set_dataplane): Rename from set_dataplane and make a
1290         compatibility symbol.
1291         * sysdeps/unix/sysv/linux/tile/sys/dataplane.h: Remove file.
1292         * sysdeps/unix/sysv/linux/tile/Makefile (sysdep_headers): Remove
1293         sys/dataplane.h.
1294
1295 2016-11-18  Joseph Myers  <joseph@codesourcery.com>
1296
1297         * scripts/build-many-glibcs.py (Context.write_files): Make wrapper
1298         script quote words in command output to log suitably for input to
1299         the shell.
1300
1301 2016-11-18  Matthew Fortune  <Matthew.Fortune@imgtec.com>
1302             Maciej W. Rozycki  <macro@imgtec.com>
1303
1304         * sysdeps/mips/mips32/crti.S (_init): Add `.insn' pseudo-op at
1305         `.Lno_weak_fn' label.
1306         * sysdeps/mips/mips64/n32/crti.S (_init): Likewise.
1307         * sysdeps/mips/mips64/n64/crti.S (_init): Likewise.
1308
1309 2016-11-17  Adhemerval Zanella  <adhemerval.zanella@linaro.org>
1310             Yury Norov  <ynorov@caviumnetworks.com>
1311
1312         * bits/typesizes.h (__RLIM_T_MATCHES_RLIM64_T): define.
1313         * sysdeps/unix/sysv/linux/alpha/bits/typesizes.h
1314         (__RLIM_T_MATCHES_RLIM64_T): Likewise.
1315         * sysdeps/unix/sysv/linux/generic/bits/typesizes.h
1316         (__RLIM_T_MATCHES_RLIM64_T): Likewise.
1317         * sysdeps/unix/sysv/linux/s390/bits/typesizes.h [__s390x__]
1318         (__RLIM_T_MATCHES_RLIM64_T): Likewise.
1319         * sysdeps/unix/sysv/linux/sparc/bits/typesizes.h
1320         [__arch64__ || __sparcv9] (__RLIM_T_MATCHES_RLIM64_T): Likewise.
1321         * sysdeps/unix/sysv/linux/x86/bits/typesizes.h [__86_64__]
1322         (__RLIM_T_MATCHES_RLIM64_T): Likewise.
1323         * sysdeps/unix/sysv/linux/arm/Makefile [$(subdir) = resource]
1324         (sysdep_routines): Remove oldgetrlimit64.
1325         * sysdeps/unix/sysv/linux/i386/Makefile [$(subdir) = resource]
1326         (sysdep_routines): Likewise.
1327         * sysdeps/unix/sysv/linux/m68k/Makefile [$(subdir) = resource]
1328         (sysdep_routines): Likewise.
1329         * sysdeps/unix/sysv/linux/powerpc/powerpc32/Makefile
1330         [$(subdir) = resource] (sysdep_routines): Likewise.
1331         * sysdeps/unix/sysv/linux/s390/s390-32/Makefile
1332         [$(subdir) = resource] (sysdep_routines): Likewise.
1333         * sysdeps/unix/sysv/linux/arm/getrlimit64.c: Remove file.
1334         * sysdeps/unix/sysv/linux/arm/oldgetrlimit64.c: Likewise.
1335         * sysdeps/unix/sysv/linux/arm/oldgetrlimit.c: Likewise.
1336         * sysdeps/unix/sysv/linux/arm/oldsetrlimit.c: Likewise.
1337         * sysdeps/unix/sysv/linux/hppa/getrlimit64.c: Likewise.
1338         * sysdeps/unix/sysv/linux/i386/getrlimit64.c: Likewise.
1339         * sysdeps/unix/sysv/linux/i386/oldgetrlimit64.c: Likewise.
1340         * sysdeps/unix/sysv/linux/m68k/getrlimit64.c: Likewise.
1341         * sysdeps/unix/sysv/linux/m68k/oldgetrlimit64.c: Likewise.
1342         * sysdeps/unix/sysv/linux/powerpc/getrlimit64.c: Likewise.
1343         * sysdeps/unix/sysv/linux/powerpc/oldgetrlimit64.c: Likewise.
1344         * sysdeps/unix/sysv/linux/s390/s390-32/getrlimit64.c: Likewise.
1345         * sysdeps/unix/sysv/linux/s390/s390-32/oldgetrlimit64.c: Likewise.
1346         * sysdeps/unix/sysv/linux/sh/getrlimit64.c: Likewise.
1347         * sysdeps/unix/sysv/linux/wordsize-64/getrlimit64.c: Likewise.
1348         * sysdeps/unix/sysv/linux/wordsize-64/setrlimit64.c: Likewise.
1349         * sysdeps/sysv/linux/generic/wordsize-32/syscalls.list: Remove
1350         setrlimit and getrlimit.
1351         * sysdeps/unix/sysv/linux/hppa/syscalls.list: Likewise.
1352         * sysdeps/unix/sysv/linux/i386/syscalls.list: Likewise.
1353         * sysdeps/unix/sysv/linux/m68k/m680x0/syscalls.list: Likewise.
1354         * sysdeps/unix/sysv/linux/powerpc/powerpc32/syscalls.list: Likewise.
1355         * sysdeps/unix/sysv/linux/powerpc/powerpc64/syscalls.list: Likewise.
1356         * sysdeps/unix/sysv/linux/s390/s390-32/syscalls.list: Likewise.
1357         * sysdeps/unix/sysv/linux/sparc/sparc32/syscalls.list: Likewise.
1358         * sysdeps/unix/sysv/linux/syscalls.list: Likewise.
1359         * sysdeps/unix/sysv/linux/wordsize-64/syscalls.list: Likewise.
1360         * sysdeps/unix/sysv/linux/getrlimit.c: New file.
1361         * sysdeps/unix/sysv/linux/sparc/getrlimit64.c: Likewise.
1362         * sysdeps/unix/sysv/linux/setrlimit.c: Likewise.
1363         * sysdeps/unix/sysv/linux/getrlimit64.c (__getrlimit64): Handle
1364         __RLIM_T_MATCHES_RLIM64_T and add alias if defined.
1365         (__old_getrlimit64): Add compatibility symbol.
1366         * sysdeps/unix/sysv/linux/setrlimit64.c (__setrlimit): Likewise.
1367
1368 2016-11-17  Joseph Myers  <joseph@codesourcery.com>
1369
1370         * scripts/build-many-glibcs.py (Config.build_gcc): Configure with
1371         newly built gmp, mpfr and mpc.
1372
1373         * sysdeps/unix/sysv/linux/alpha/sys/user.h: Include <stddef.h>.
1374
1375 2016-11-16  Joseph Myers  <joseph@codesourcery.com>
1376
1377         * conform/Makefile (linknamespace-libs): Rename to
1378         linknamespace-libs-thr.
1379         (linknamespace-libs-posix): New variable.
1380         (linknamespace-libs-xsi): Likewise.
1381         (linknamespace-libs-XPG3): Include libcrypt.a.
1382         (linknamespace-libs-XPG4): Use $(linknamespace-libs-XPG3).
1383         (linknamespace-libs-POSIX): Use $(linknamespace-libs-thr).
1384         (linknamespace-libs-UNIX98): Use $(linknamespace-libs-xsi).
1385         (linknamespace-libs-XOPEN2K): Likewise.
1386         (linknamespace-libs-XOPEN2K8): Likewise.
1387         (linknamespace-libs-POSIX2008): Use $(linknamespace-libs-posix).
1388
1389         [BZ #20829]
1390         * stdio-common/Versions (__snprintf): Add to version
1391         GLIBC_PRIVATE.
1392         * include/stdio.h (__snprintf): Use libc_hidden_proto.
1393         * stdio-common/snprintf.c (__snprintf): Use libc_hidden_def.
1394         * crypt/sha256-crypt.c (__sha256_crypt_r): Use __snprintf instead
1395         of snprintf.
1396         * crypt/sha512-crypt.c (__sha512_crypt_r): Likewise.
1397
1398 2016-11-16  Zack Weinberg  <zackw@panix.com>
1399
1400         * string/string.h: Remove obsolete comment stating that
1401         strcoll_l and strxfrm_l have not yet been standardized.
1402
1403 2016-11-16  Adhemerval Zanella  <adhemerval.zanella@linaro.org>
1404
1405         * hurd/hurd.h (__hurd_fail_noerrno): New function.
1406         * include/unistd.h [IS_IN (rtld) || !defined SHARED]: Declare
1407         __access_noerrno.
1408         * io/access.c (__access_noerrno): New function.
1409         * sysdeps/mach/hurd/access.c (hurd_fail_seterrno): New function.
1410         (hurd_fail_seterrno): Likewise.
1411         (access_common): Likewise.
1412         (__access_noerrno): Likewise.
1413         * sysdeps/nacl/access.c (__access_noerrno): Likewise.
1414         * sysdeps/unix/sysv/linux/access.c (__access_noerrno): Likewise.
1415         * sysdeps/nacl/nacl-interfaces.h (NACL_CALL_NOERRNO): New
1416         macro.
1417
1418 2016-11-16  Joseph Myers  <joseph@codesourcery.com>
1419
1420         * sysdeps/unix/sysv/linux/sh/sh4/register-dump.h (register_dump):
1421         Only declare fpregs if [__SH_FPU_ANY__].
1422
1423 2016-11-15  Joseph Myers  <joseph@codesourcery.com>
1424
1425         * sysdeps/unix/sysv/linux/sh/sys/ucontext.h [__SH4__ || __SH4A__]:
1426         Make code unconditional.
1427         [!(__SH4__ || __SH4A__)]: Remove conditional code.
1428
1429 2016-11-15  Rical Jasan  <ricaljasan@pacific.net>
1430
1431         * manual/sysinfo.texi (S_APPEND): Delete.
1432         (S_IMMUTABLE): Likewise.
1433
1434 2016-11-15  Denis Kaganovich  <mahatma@eu.by>
1435             Magnus Granberg  <zorry@gentoo.org>
1436             Mike Frysinger  <vapier@gentoo.org>
1437
1438         [BZ #20662]
1439         * configure.ac (libc_cv_predef_stack_protector): Also check for
1440         __stack_chk_fail_local symbols.
1441         * configure: Regenerated.
1442
1443 2016-11-15  Florian Weimer  <fweimer@redhat.com>
1444
1445         * sysdeps/s390/s390-64/setjmp.S (NEED_COMPAT_SYMBOLS): New macro.
1446         (libc_hidden_def): Remove redefinition.
1447         (__sigsetjmp): Add hidden definition.
1448         * sysdeps/s390/s390-32/setjmp.S (NEED_COMPAT_SYMBOLS): New macro.
1449         (libc_hidden_def): Remove redefinition.
1450         (__sigsetjmp): Add hidden definition.
1451
1452 2016-11-14  Joseph Myers  <joseph@codesourcery.com>
1453
1454         * scripts/build-many-glibcs.py (os.path): Do not import.
1455         (Context): Inherit explicitly from object.  Remove blank line
1456         between class and docstring.
1457         (Config): Likewise.
1458         (Glibc): Likewise.
1459         (Command): Likewise.
1460         (CommandList): Likewise.
1461         (Context.write_files): Store chmod mode in a variable.
1462
1463         * sysdeps/unix/sysv/linux/tile/tilegx/configure.ac: Use
1464         LIBC_SLIBDIR_RTLDDIR for tilegx32.
1465         * sysdeps/unix/sysv/linux/tile/tilegx/configure: Regenerated.
1466
1467 2016-11-14  Zack Weinberg  <zackw@panix.com>
1468
1469         * sunrpc/Makefile (rpcgen-tests): Delete the .out file before
1470         creating or re-creating it.
1471
1472         * string/bits/string2.h: Fix typo in comment.
1473
1474 2016-11-14  Zack Weinberg  <zackw@panix.com>
1475
1476         * misc/sys/sysmacros.h (__SYSMACROS_DM, __SYSMACROS_DM1): New macros.
1477         (__SYSMACROS_DEPRECATION_MSG, __SYSMACROS_FST_DECL_TEMPL)
1478         (__SYSMACROS_FST_IMPL_TEMPL): Delete.
1479         (major, minor, makedev): Use __SYSMACROS_DM in definition, instead
1480         of redirected function names.
1481
1482         * misc/sys/cdefs.h (__glibc_macro_warning): Activate for clang >= 3.5
1483         as well.  Document that MESSAGE must be a single string literal.
1484
1485 2016-11-11  Joseph Myers  <joseph@codesourcery.com>
1486
1487         * scripts/build-many-glibcs.py: New file.
1488
1489         * stdlib/bug-getcontext.c: Include <libc-internal.h>.
1490         (do_test): Disable -Wmaybe-uninitialized around uses of
1491         except_mask.
1492
1493         * sysdeps/unix/sysv/linux/sh/sys/user.h: Include <stddef.h>.
1494
1495 2016-11-10  Chris Metcalf  <cmetcalf@mellanox.com>
1496
1497         * sysdeps/tile/tilepro/atomic-machine.h (atomic_store_relaxed)
1498         (atomic_store_release): Provide tilepro-specific implementations.
1499
1500 2016-11-10  Joseph Myers  <joseph@codesourcery.com>
1501
1502         * math/math.h (__MATH_TG): New macro.
1503         [__USE_ISOC99] (fpclassify): Define using __MATH_TG.
1504         [__USE_ISOC99] (signbit): Likewise.
1505         [__USE_ISOC99] (isfinite): Likewise.
1506         [__USE_ISOC99] (isnan): Likewise.
1507         [__USE_ISOC99] (isinf): Likewise.
1508         [__GLIBC_USE (IEC_60559_BFP_EXT)] (issignaling): Likewise.
1509         [__GLIBC_USE (IEC_60559_BFP_EXT)] (__MATH_EVAL_FMT2): New macro.
1510         [__GLIBC_USE (IEC_60559_BFP_EXT)] (iseqsig): Define using
1511         __MATH_TG and __MATH_EVAL_FMT2.
1512         * sysdeps/generic/math_private.h (fabs_tg): Define using
1513         __MATH_TG.
1514         * sysdeps/ieee754/ldbl-128ibm/bits/iscanonical.h
1515         [!__NO_LONG_DOUBLE_MATH] (__iscanonicalf): New macro.
1516         [!__NO_LONG_DOUBLE_MATH] (__iscanonical): Likewise.
1517         [!__NO_LONG_DOUBLE_MATH] (iscanonical): Define using __MATH_TG.
1518         * sysdeps/ieee754/ldbl-96/bits/iscanonical.h (__iscanonicalf): New
1519         macro.
1520         (__iscanonical): Likewise.
1521         (iscanonical): Define using __MATH_TG.
1522
1523 2016-11-10  Adhemerval Zanella  <adhemerval.zanella@linaro.org>
1524
1525         * sysdeps/unix/sysv/linux/sh/kernel-features.h: Add include
1526         guards.
1527
1528         * sysdeps/unix/sysv/linux/access.c: New file.
1529         * sysdeps/unix/sysv/linux/generic/access.c: Remove file.
1530
1531 2016-11-10  Steve Ellcey  <sellcey@caviumnetworks.com>
1532
1533         * sysdeps/tile/tilepro/bits/wordsize.h: Define __WORDSIZE32_SIZE_ULONG
1534         and __WORDSIZE32_PTRDIFF_LONG.
1535
1536 2016-11-10  Siddhesh Poyarekar  <siddhesh@sourceware.org>
1537
1538         * sysdeps/aarch64/libm-test-ulps: Regenerated.
1539
1540 2016-11-09  Adhemerval Zanella  <adhemerval.zanella@linaro.org>
1541
1542         * sysdeps/unix/sysv/linux/arm/truncate64.c: Remove file.
1543         * sysdeps/unix/sysv/linux/generic/wordsize-32/truncate.c: Likewise.
1544         * sysdeps/sysv/linux/generic/wordsize-32/truncate64.c: Likewise.
1545         * sysdeps/unix/sysv/linux/mips/mips32/truncate64.c: Likewise.
1546         * sysdeps/unix/sysv/linux/mips/mips64/truncate64.c: Likewise.
1547         * sysdeps/unix/sysv/linux/powerpc/powerpc32/truncate64.c: Likewise.
1548         * sysdeps/unix/sysv/linux/wordsize-64/truncate64.c: Likewise.
1549         * sysdeps/unix/sysv/linux/truncate.c: New file.
1550         * sysdeps/unix/sysv/linux/truncate64.c (truncate64): Use
1551         INLINE_SYSCALL_CALL, __ALIGNMENT_ARG and SYSCALL_LL64 macros.
1552         * sysdeps/unix/sysv/linux/mips/mips64/syscalls.list (truncate):
1553         Remove.
1554         * sysdeps/unix/sysv/linux/wordsize-64/syscalls.list (truncate):
1555         Likewise.
1556
1557         * posix/tst-truncate-common.c: New file.
1558         * posix/tst-truncate.c: Use tst-truncate-common.c.
1559         * posix/tst-truncate64.c: Likewise and add LFS tests.
1560         * sysdeps/unix/sysv/linux/arm/ftruncate64.c: Remove file.
1561         * sysdeps/unix/sysv/linux/generic/wordsize-32/ftruncate.c: Likewise.
1562         * sysdeps/unix/sysv/linux/generic/wordsize-32/ftruncate64.c: Likewise.
1563         * sysdeps/unix/sysv/linux/mips/mips32/ftruncate64.c: Likewise.
1564         * sysdeps/unix/sysv/linux/mips/mips64/ftruncate64.c: Likewise.
1565         * sysdeps/unix/sysv/linux/powerpc/powerpc32/ftruncate64.c: Likewise.
1566         * sysdeps/unix/sysv/linux/wordsize-64/ftruncate64.c: Likewise.
1567         * sysdeps/unix/sysv/linux/ftruncate.c: New file.
1568         * sysdeps/unix/sysv/linux/ftruncate64.c (__ftruncate64): Use
1569         INLINE_SYSCALL_CALL, __ALIGNMENT_ARG and SYSCALL_LL64 macros.
1570         [__OFF_T_MATCHES_OFF64_T] (ftruncate): Add alias.
1571         * sysdeps/unix/sysv/linux/mips/mips64/syscalls.list (ftruncate):
1572         Remove.
1573         * sysdeps/unix/sysv/linux/wordsize-64/syscalls.list (ftruncate):
1574         Likewise.
1575
1576 2016-11-08  Joseph Myers  <joseph@codesourcery.com>
1577
1578         [BZ #20790]
1579         * sunrpc/rpc_parse.c (get_prog_declaration): Increase buffer size
1580         to MAXLINESIZE.
1581         * sunrpc/bug20790.x: New file.
1582         * sunrpc/Makefile [$(run-built-tests) = yes] (rpcgen-tests): New
1583         variable.
1584         [$(run-built-tests) = yes] (tests-special): Add $(rpcgen-tests).
1585         [$(run-built-tests) = yes] ($(rpcgen-tests)): New rule.
1586
1587         * sysdeps/unix/sysv/linux/sh/localplt.data: New file.
1588
1589         * sysdeps/unix/sysv/linux/hppa/localplt.data: New file.
1590
1591         * sysdeps/unix/sysv/linux/alpha/localplt.data: Make __tls_get_addr
1592         optional in ld.so.  Allow R_ALPHA_GLOB_DAT relocation for malloc,
1593         calloc, realloc, free, memalign and __libc_memalign rather than
1594         making them optional.
1595
1596         * sysdeps/unix/sysv/linux/nios2/localplt.data: Add __extendsfdf2
1597         for libc.so.
1598
1599 2016-11-08  Adhemerval Zanella  <adhemerval.zanella@linaro.org>
1600
1601         * nptl/Makefile (libpthread-routines): Remove ptw-llseek and add
1602         ptw-lseek64.
1603         * sysdeps/unix/sysv/linux/Makefile (sysdeps_routines): Remove llseek.
1604         * sysdeps/unix/sysv/linux/alpha/Makefile  (sysdeps_routines):
1605         Likewise.
1606         * sysdeps/unix/sysv/linux/generic/wordsize-32/llseek.c: Remove file.
1607         * sysdeps/unix/sysv/linux/generic/wordsize-32/lseek.c: Remove file.
1608         * sysdeps/unix/sysv/linux/mips/mips64/llseek.c: Likewise.
1609         * sysdeps/unix/sysv/linux/llseek.c: Remove file.
1610         * sysdeps/unix/sysv/linux/lseek.c: New file.
1611         * sysdeps/unix/sysv/linux/lseek64.c: Add default Linux implementation.
1612         * sysdeps/unix/sysv/linux/mips/mips64/syscalls.list: Remove lseek and
1613         __libc_lseek64 from auto-generation.
1614         * sysdeps/unix/sysv/linux/wordsize-64/syscalls.list: Likewise.
1615         * sysdeps/unix/sysv/linux/x86_64/x32/lseek64.S: New file.
1616
1617 2016-11-07  Gabriel F. T. Gomes  <gftg@linux.vnet.ibm.com>
1618
1619         * nptl/tst-basic1.c (tf, do_test): Use write_message.
1620         * nptl/tst-cleanup1.c (do_test): Likewise.
1621         * nptl/tst-cleanup3.c (do_test): Likewise.
1622         * nptl/tst-key1.c (do_test): Likewise.
1623         * nptl/tst-key2.c (tf, do_test): Likewise.
1624         * nptl/tst-key3.c (tf, do_test): Likewise.
1625         * nptl/tst-stdio1.c (do_test): Likewise.
1626         * nptl/tst-stdio2.c (do_test): Likewise.
1627
1628         * nptl/tst-kill3.c (handler): Use write_message in place of write.
1629         * nptl/tst-kill6.c (handler): Likewise.
1630         * nptl/tst-tls2.c (CB): Likewise.
1631         * nptl/tst-tls3.c (CB): Likewise.
1632
1633 2016-11-07  Joseph Myers  <joseph@codesourcery.com>
1634
1635         * scripts/check-installed-headers.sh: Ignore sys/sysctl.h for x32.
1636
1637 2016-11-07  Yury Norov  <ynorov@caviumnetworks.com>
1638             Steve Ellcey  <sellcey@caviumnetworks.com>
1639
1640         * sysdeps/unix/sysv/linux/alpha/kernel-features.h: #define
1641           __ASSUME_ST_INO_64_BIT as 0
1642         * sysdeps/unix/sysv/linux/sh/kernel-features.h: Likewise.
1643         * sysdeps/unix/sysv/linux/fxstat64.c: Replace #ifdef with #if
1644           over the code where __ASSUME_ST_INO_64_BIT is used.
1645         * sysdeps/unix/sysv/linux/lxstat64.c: Likewise.
1646         * sysdeps/unix/sysv/linux/xstat64.c: Likewise.
1647         * sysdeps/unix/sysv/linux/xstatconv.c: Likewise.
1648
1649 2016-11-07  Florian Weimer  <fweimer@redhat.com>
1650
1651         * sysdeps/aarch64/nptl/bits/pthreadtypes.h (struct __pthread_mutex_s):
1652         Document ABI exposure of the __kind offset.
1653         * sysdeps/arm/nptl/bits/pthreadtypes.h (struct __pthread_mutex_s):
1654         Mention reason for the __kind offset exposure in the ABI.
1655         * sysdeps/hppa/nptl/bits/pthreadtypes.h (struct __pthread_mutex_s):
1656         Likewise.
1657         * sysdeps/ia64/nptl/bits/pthreadtypes.h (struct __pthread_mutex_s):
1658         Likewise.
1659         * sysdeps/m68k/nptl/bits/pthreadtypes.h (struct __pthread_mutex_s):
1660         Likewise.
1661         * sysdeps/microblaze/nptl/bits/pthreadtypes.h
1662         (struct __pthread_mutex_s): Likewise.
1663         * sysdeps/mips/nptl/bits/pthreadtypes.h (struct __pthread_mutex_s):
1664         Likewise.
1665         * sysdeps/nios2/nptl/bits/pthreadtypes.h (struct __pthread_mutex_s):
1666         Likewise.
1667         * sysdeps/s390/nptl/bits/pthreadtypes.h (struct __pthread_mutex_s):
1668         Likewise.
1669         * sysdeps/sh/nptl/bits/pthreadtypes.h (struct __pthread_mutex_s):
1670         Likewise.
1671         * sysdeps/sparc/nptl/bits/pthreadtypes.h (struct __pthread_mutex_s):
1672         Likewise.
1673         * sysdeps/tile/nptl/bits/pthreadtypes.h (struct __pthread_mutex_s):
1674         Likewise.
1675         * sysdeps/unix/sysv/linux/alpha/bits/pthreadtypes.h
1676         (struct __pthread_mutex_s): Likewise.
1677         * sysdeps/unix/sysv/linux/powerpc/bits/pthreadtypes.h
1678         (struct __pthread_mutex_s): Likewise.
1679         * sysdeps/x86/bits/pthreadtypes.h (struct __pthread_mutex_s):
1680         Likewise.
1681
1682 2016-11-07  Steve Ellcey  <sellcey@caviumnetworks.com>
1683
1684         * test-skeleton.c: Document do_test usage.
1685
1686 2016-11-06  Aurelien Jarno  <aurelien@aurel32.net>
1687
1688         * iconv/gconv.h (__gconv_info): Define __data element using a
1689         zero-length array.
1690
1691 2016-11-04  Steve Ellcey  <sellcey@caviumnetworks.com>
1692
1693         * math/test-tgmath2.c: Split up test function.
1694
1695 2016-11-04  Joseph Myers  <joseph@codesourcery.com>
1696
1697         * Rules (tests-expected): New variable, depending on
1698         $(run-built-tests).
1699         (tests): Pass $(tests-expected) to merge-test-results.sh, not
1700         $(tests).
1701
1702         * Rules [$(run-built-tests) = no] (tests): Do not depend on
1703         $(tests-unsupported).
1704
1705 2016-11-04  Adhemerval Zanella  <adhemerval.zanella@linaro.org>
1706
1707         * sysdeps/unix/sysv/linux/sparc/bits/wordsize.h
1708         (__WORDSIZE_TIME64_COMPAT32): Define for both 32 and  64 bits.
1709
1710 2016-11-04  Joseph Myers  <joseph@codesourcery.com>
1711
1712         [BZ #20768]
1713         * sysdeps/alpha/fpu/feholdexcpt.c (__feholdexcept): Call
1714         __fegetenv instead of fegetenv.
1715
1716         [BZ #14139]
1717         * manual/libm-err-tab.pl (%pplatforms): Initialize to empty.
1718         (find_files): Obtain platform name from libm-test-ulps-name and
1719         store in %pplatforms.
1720         (canonicalize_platform): Remove.
1721         (print_platforms): Use $pplatforms directly.
1722         (by_platforms): Do not allow for platforms missing from
1723         %pplatforms.
1724         * sysdeps/aarch64/libm-test-ulps-name: New file.
1725         * sysdeps/alpha/fpu/libm-test-ulps-name: Likewise.
1726         * sysdeps/arm/libm-test-ulps-name: Likewise.
1727         * sysdeps/generic/libm-test-ulps-name: Likewise.
1728         * sysdeps/hppa/fpu/libm-test-ulps-name: Likewise.
1729         * sysdeps/i386/fpu/libm-test-ulps-name: Likewise.
1730         * sysdeps/i386/i686/fpu/multiarch/libm-test-ulps-name: Likewise.
1731         * sysdeps/ia64/fpu/libm-test-ulps-name: Likewise.
1732         * sysdeps/m68k/coldfire/fpu/libm-test-ulps-name: Likewise.
1733         * sysdeps/m68k/m680x0/fpu/libm-test-ulps-name: Likewise.
1734         * sysdeps/microblaze/libm-test-ulps-name: Likewise.
1735         * sysdeps/mips/mips32/libm-test-ulps-name: Likewise.
1736         * sysdeps/mips/mips64/libm-test-ulps-name: Likewise.
1737         * sysdeps/nios2/libm-test-ulps-name: Likewise.
1738         * sysdeps/powerpc/fpu/libm-test-ulps-name: Likewise.
1739         * sysdeps/powerpc/nofpu/libm-test-ulps-name: Likewise.
1740         * sysdeps/s390/fpu/libm-test-ulps-name: Likewise.
1741         * sysdeps/sh/libm-test-ulps-name: Likewise.
1742         * sysdeps/sparc/fpu/libm-test-ulps-name: Likewise.
1743         * sysdeps/tile/libm-test-ulps-name: Likewise.
1744         * sysdeps/x86_64/fpu/libm-test-ulps-name: Likewise.
1745
1746         * sysdeps/unix/sysv/linux/mips/sys/user.h: Include <stddef.h>.
1747
1748         * sysdeps/unix/sysv/linux/mips/Makefile [$(subdir) = elf]
1749         (test-xfail-check-execstack): New variable.
1750
1751         * sysdeps/mips/localplt.data: New file.
1752
1753 2016-11-04  Yury Norov  <ynorov@caviumnetworks.com>
1754             Steve Ellcey  <sellcey@caviumnetworks.com>
1755
1756         * bits/wordsize.h: Add documentation.
1757         * sysdeps/aarch64/bits/wordsize.h : New file
1758         * sysdeps/generic/stdint.h (PTRDIFF_MIN, PTRDIFF_MAX): Update
1759         definitions.
1760         (SIZE_MAX): Change ifdef to if in __WORDSIZE32_SIZE_ULONG check.
1761         * sysdeps/gnu/bits/utmp.h (__WORDSIZE_TIME64_COMPAT32): Check
1762         with #if instead of #ifdef.
1763         * sysdeps/gnu/bits/utmpx.h (__WORDSIZE_TIME64_COMPAT32): Ditto.
1764         * sysdeps/mips/bits/wordsize.h (__WORDSIZE32_SIZE_ULONG,
1765         __WORDSIZE32_PTRDIFF_LONG, __WORDSIZE_TIME64_COMPAT32):
1766         Add or change defines.
1767         * sysdeps/powerpc/powerpc32/bits/wordsize.h: Likewise.
1768         * sysdeps/powerpc/powerpc64/bits/wordsize.h: Likewise.
1769         * sysdeps/s390/s390-32/bits/wordsize.h: Likewise.
1770         * sysdeps/s390/s390-64/bits/wordsize.h: Likewise.
1771         * sysdeps/sparc/sparc32/bits/wordsize.h: Likewise.
1772         * sysdeps/sparc/sparc64/bits/wordsize.h: Likewise.
1773         * sysdeps/tile/tilegx/bits/wordsize.h: Likewise.
1774         * sysdeps/tile/tilepro/bits/wordsize.h: Likewise.
1775         * sysdeps/unix/sysv/linux/alpha/bits/wordsize.h: Likewise.
1776         * sysdeps/unix/sysv/linux/powerpc/bits/wordsize.h: Likewise.
1777         * sysdeps/unix/sysv/linux/sparc/bits/wordsize.h: Likewise.
1778         * sysdeps/wordsize-32/bits/wordsize.h: Likewise.
1779         * sysdeps/wordsize-64/bits/wordsize.h: Likewise.
1780         * sysdeps/x86/bits/wordsize.h: Likewise.
1781
1782 2016-11-04  Wilco Dijkstra  <wdijkstr@arm.com>
1783             Kevin Petit  <kevin.petit@arm.com>
1784
1785         * sysdeps/aarch64/memchr.S (__memchr): New file.
1786
1787 2016-11-04  Joseph Myers  <joseph@codesourcery.com>
1788
1789         * sysdeps/tile/preconfigure: Accept tilegx* instead of tilegx.
1790
1791 2016-11-03  Joseph Myers  <joseph@codesourcery.com>
1792
1793         * conform/Makefile ($(linknamespace-header-tests)): Also depend on
1794         $(linknamespace-symlists-tests).
1795
1796 2016-11-02  Steve Ellcey  <sellcey@caviumnetworks.com>
1797
1798         * time/tst-strptime2.c: Ignore -Wformat-length warning.
1799
1800 2016-11-02  Florian Weimer  <fweimer@redhat.com>
1801             Carlos O'Donell  <carlos@redhat.com>
1802
1803         [Bug #20729]
1804         * resolv/res_send.c (send_vc): Revert DIAG_IGNORE_Os_NEEDS_COMMENT
1805         change to non -Os related diagnostic.  Use DIAG_IGNORE_Os_NEEDS_COMMENT
1806         for -Os related change.
1807
1808 2016-11-01  Steve Ellcey  <sellcey@caviumnetworks.com>
1809
1810         * stdio-common/tst-printf.c: Ignore -Wformat-length warning.
1811
1812 2016-11-01  Joseph Myers  <joseph@codesourcery.com>
1813
1814         [BZ #19673]
1815         * manual/math.texi (Exponents and Logarithms): Correct description
1816         of clog10.
1817
1818 2016-10-31  Carlos O'Donell  <carlos@redhat.com>
1819
1820         [Bz #20729]
1821         * locale/weight.h: Include libc-internal.h.
1822         * locale/weightwc.h: Likewise.
1823         * nptl/nptl_dbP.h: Likewise.
1824
1825 2016-10-31  Brent W. Baccala  <cosine@freesoft.org>
1826
1827         * sysdeps/mach/hurd/dl-sysdep.c (__mmap): Do not deallocate memobj_wr
1828         when it is MACH_PORT_NULL.
1829
1830 2016-10-31  Andreas Schwab  <schwab@suse.de>
1831
1832         [BZ #20707]
1833         * posix/glob.c (glob): Initialize pglob before checking for
1834         GLOB_BRACE.  Don't call glob recursively if pattern contains no
1835         valid brace expression despite GLOB_BRACE.
1836         * posix/globtest.sh: Test it.
1837
1838 2016-10-28  Carlos O'Donell  <carlos@redhat.com>
1839
1840         [BZ #20729]
1841         * include/libc-internal.h (DIAG_IGNORE_Os_NEEDS_COMMENT):
1842         Define.
1843         * iconvdata/iso-2022-cn-ext.c: Include libc-internal.h and ignore
1844         -Wmaybe-uninitialized for BODY macro only for -Os compiles.
1845         * locale/weight.h (findix): Ignore -Wmaybe-uninitialized error
1846         for seq2.back_us and seq1.back_us only for -Os compiles.
1847         * locale/weightwc.h (findix): Likewise.
1848         * nptl_db/thread_dbP.h: Ignore -Wmaybe-uninitialized error for
1849         DB_GET_FIELD_ADDRESS only for -Os compiles.
1850         * resolv/res_send (reopen): Ignore -Wmaybe-uninitialized error
1851         for slen only for -Os compiles.
1852         * string/strcoll_l.c (get_next_seq): Ignore
1853         -Wmaybe-uninitialized for seq2.save_idx and seq1.save_idx only
1854         for -Os compiles.
1855
1856         * elf/Makefile (CFALGS-tst-linkall-static): Remove.
1857         * include/crypt.h: New file.
1858
1859 2016-10-28  Gabriel F. T. Gomes  <gftg@linux.vnet.ibm.com>
1860
1861         * dlfcn/bug-atexit3-lib.cc (write_message): New function, copied
1862         from test-skeleton.c.
1863         (statclass): Replace calls to write with calls to write_message.
1864
1865 2016-10-28  Joseph Myers  <joseph@codesourcery.com>
1866
1867         * math/math.h
1868         [__GLIBC_USE (IEC_60559_BFP_EXT) && __GNUC_PREREQ (3, 3)] (SNANF):
1869         New macro.
1870         [__GLIBC_USE (IEC_60559_BFP_EXT) && __GNUC_PREREQ (3, 3)] (SNAN):
1871         Likewise.
1872         [__GLIBC_USE (IEC_60559_BFP_EXT) && __GNUC_PREREQ (3, 3)] (SNANL):
1873         Likewise.
1874         * manual/arith.texi (Infinity and NaN): Document SNANF, SNAN and
1875         SNANL.
1876         * math/test-double.h (snan_value_MACRO): New macro.
1877         * math/test-float.h (snan_value_MACRO): Likewise.
1878         * math/test-ldouble.h (snan_value_MACRO): Likewise.
1879         * math/libm-test.inc (issignaling_test_data): Add tests of
1880         snan_value_MACRO.
1881
1882 2016-10-28  Tulio Magno Quites Machado Filho  <tuliom@linux.vnet.ibm.com>
1883
1884         * nptl/pthread_rwlock_unlock.c: Add a comment explaining its
1885         behavior when eliding a lock not held by the current thread.
1886         * sysdeps/powerpc/nptl/elide.h: Likewise.
1887
1888 2016-10-28  Tulio Magno Quites Machado Filho  <tuliom@linux.vnet.ibm.com>
1889
1890         [BZ #20728]
1891         * sysdeps/unix/sysv/linux/powerpc/powerpc64/clone.S: Replace a
1892         branch to _exit() by a function call.
1893
1894 2016-10-28  Florian Weimer  <fweimer@redhat.com>
1895
1896         * malloc/malloc.c: Update chunk layout comments.
1897         (chunk_main_arena): Update comment.
1898
1899 2016-10-28  Florian Weimer  <fweimer@redhat.com>
1900
1901         * crypt/sha256.c, crypt/sha256-block.c,
1902         sysdeps/sparc/sparc64/multiarch/sha256-block.c: Rename
1903         sha256_process_block to __sha256_process_block.
1904         * crypt/sha512.c, crypt/sha512-block.c,
1905         sysdeps/sparc/sparc64/multiarch/sha512-block.c: Rename
1906         sha512_process_block to __sha512_process_block.
1907
1908 2016-10-28  Carlos O'Donell  <carlos@redhat.com>
1909
1910         * elf/Makefile (CFLAGS-tst-linkall-static): Define.
1911
1912         * math/test-nan-overflow.c: Include stdlib.h for malloc.
1913
1914 2016-10-28  H.J. Lu  <hongjiu.lu@intel.com>
1915
1916         [BZ #20019]
1917         * sysdeps/i386/dl-machine.h (elf_machine_rel): Check IFUNC
1918         definition in unrelocated shared library.
1919         * sysdeps/x86_64/dl-machine.h (elf_machine_rela): Likewise.
1920
1921 2016-10-28  Florian Weimer  <fweimer@redhat.com>
1922
1923         [BZ #20729]
1924         Support i386 builds with CFLAGS which imply -fno-omit-frame-pointer.
1925         * sysdeps/unix/sysv/linux/i386/Makefile
1926         (uses-6-syscall-arguments): Define.
1927         [subdir == misc] (CFLAGS-epoll_pwait.o, CFLAGS-epoll_pwait.os)
1928         (CFLAGS-mmap.o, CFLAGS-mmap.os, CFLAGS-mmap64.o, CFLAGS-mmap64.os)
1929         (CFLAGS-pselect.o, CFLAGS-pselect.os, CFLAGS-rtld-mmap.os): Use it.
1930         [subdir = sysvipc] (CFLAGS-semtimedop.o, CFLAGS-semtimedop.os):
1931         Likewise.
1932         [subdir = io] (CFLAGS-posix_fadvise64.o, CFLAGS-posix_fadvise64.os)
1933         (CFLAGS-posix_fallocate.o, CFLAGS-posix_fallocate.os)
1934         (CFLAGS-posix_fallocate64.o, CFLAGS-posix_fallocate64.os)
1935         (CFLAGS-sync_file_range.o, CFLAGS-sync_file_range.os)
1936         (CFLAGS-fallocate.o, CFLAGS-fallocate.os, CFLAGS-fallocate64.o)
1937         (CFLAGS-fallocate64.os): Likewise.
1938         [subdir = nptl] (CFLAGS-pthread_rwlock_timedrdlock.o)
1939         (CFLAGS-pthread_rwlock_timedrdlock.os)
1940         (CFLAGS-pthread_rwlock_timedwrlock.o)
1941         (CFLAGS-pthread_rwlock_timedwrlock.os, CFLAGS-sem_wait.o)
1942         (CFLAGS-sem_wait.os, CFLAGS-sem_timedwait.o)
1943         (CFLAGS-sem_timedwait.os): Likewise.
1944
1945 2016-10-28  Florian Weimer  <fweimer@redhat.com>
1946
1947         * elf/tst-linkall-static.c: New file.
1948         * elf/Makefile (tests-static): Add tst-linkall-static.
1949         (tst-linkall-static): Link against static libraries.
1950
1951 2016-10-27  Florian Weimer  <fweimer@redhat.com>
1952
1953         * malloc/malloc.c (sysmalloc): Initialize previous size field of
1954         mmaped chunks.
1955
1956 2016-10-28  Florian Weimer  <fweimer@redhat.com>
1957
1958         * malloc/malloc.c (struct malloc_chunk): Rename prev_size, size
1959         members to mchunk_prev_size, mchunk_size.
1960         (chunk_main_arena): Reverse sense and rename from
1961         chunk_non_main_arena.
1962         (prev_inuse, chunk_is_mmapped, chunk_main_arena): Use
1963         mchunk_size instead of size.
1964         (set_non_main_arena): Define.
1965         (chunksize): Use chunksize_nomask instead of direct member access.
1966         (chunksize_nomask): Define.
1967         (next_chunk): Use chunksize instead of direct member access.
1968         (prev_size, set_prev_size): Define.
1969         (prev_chunk): Use prev_size instead of direct member access.
1970         (inuse, set_inuse, clear_inuse): Use chunksize and mchunk_size member.
1971         (inuse_bit_at_offset, set_inuse_bit_at_offset)
1972         (clear_inuse_bit_at_offset): Use mchunk_size member instead of size.
1973         (mchunk_prev_size, mchunk_size): Poison tokens.
1974         (unlink): Use chunksize_nomask, prev_size accessors.
1975         (do_check_remalloced_chunk): Use chunk_main_arena accessor.
1976         (do_check_free_chunk): Use prev_size accessor.
1977         (sysmalloc): Use set_prev_size, set_head accessors.
1978         (munmap_chunk, mremap_chunk): Use prev_size accessor.
1979         (__libc_free): Use chunksize_nomask accessor.
1980         (_int_malloc): Use set_non_main_arena, chunksize_nomask,
1981         chunk_main_arena accessors.
1982         (_int_free): Use chunksize_nomask, prev_size accessors.
1983         (malloc_consolidate): Use chunksize, prev_size accessors.
1984         (_int_realloc): Use chunksize_nomask accessor.
1985         (_int_memalign): Use set_prev_size accessor.
1986         (__malloc_info): Use chunksize_nomask accessor.
1987         * malloc/hooks.c (mem2chunk_check): Use prev_size, prev_inuse
1988         accessors.
1989         * malloc/arena.c (arena_for_chunk): Use chunk_main_arena accessor.
1990         (heap_trim): Use chunksize_nomask, prev_size accessors.
1991
1992 2016-10-28  Joseph Myers  <joseph@codesourcery.com>
1993
1994         [BZ #19380]
1995         * stdlib/strtod_l.c (round_and_return): Force "inexact" exception
1996         for inexact results.
1997         * stdlib/gen-tst-strtod-round.c (string_to_fp): Return indication
1998         of inexact result where mpfr_subnormalize is the only inexact
1999         step.
2000         * stdlib/tst-strtod-round-data.h: Regenerated.
2001         * stdlib/tst-strtod-round-skeleton.c [!FE_INEXACT] (FE_INEXACT):
2002         Define to 0.
2003         (GEN_ONE_TEST): Test inexact exceptions raised are as expected.
2004
2005 2016-10-27  David S. Miller  <davem@davemloft.net>
2006
2007         * sysdeps/unix/sysv/linux/sparc/sys/user.h: Include stddef.h
2008
2009 2016-10-27  Siddhesh Poyarekar  <siddhesh@sourceware.org>
2010
2011         * malloc/malloc.c (do_set_mallopt_check): New function.
2012         (do_set_mmap_threshold): Likewise.
2013         (do_set_mmaps_max): Likewise.
2014         (do_set_top_pad): Likewise.
2015         (do_set_perturb_byte): Likewise.
2016         (do_set_trim_threshold): Likewise.
2017         (do_set_arena_max): Likewise.
2018         (do_set_arena_test): Likewise.
2019         (__libc_mallopt): Use them.
2020
2021 2016-10-26  Joseph Myers  <joseph@codesourcery.com>
2022
2023         * math/bits/mathcalls.h [__GLIBC_USE (IEC_60559_BFP_EXT)]
2024         (canonicalize): New declaration.
2025         * math/Versions (canonicalize): New libm symbol at version
2026         GLIBC_2.25.
2027         (canonicalizef): Likewise.
2028         (canonicalizel): Likewise.
2029         * math/Makefile (gen-libm-calls): Add s_canonicalizeF.
2030         * math/s_canonicalize_template.c: New file.
2031         * math/libm-test.inc: Update comment on functions tested and
2032         testing of NaN payloads.
2033         (TEST_NAN_PAYLOAD): New macro.
2034         (NO_TEST_INLINE): Update value.
2035         (XFAIL_TEST): Likewise.
2036         (ERRNO_UNCHANGED): Likewise.
2037         (ERRNO_EDOM): Likewise.
2038         (ERRNO_ERANGE): Likewise.
2039         (IGNORE_RESULT): Likewise.
2040         (NON_FINITE): Likewise.
2041         (TEST_SNAN): Likewise.
2042         (NO_TEST_MATHVEC): Likewise.
2043         (TEST_NAN_PAYLOAD_CANONICALIZE): New macro.
2044         (check_float_internal): Check NaN payloads if TEST_NAN_PAYLOAD.
2045         (struct test_Ffp_b1_data): New type.
2046         (RUN_TEST_Ffp_b1): New macro.
2047         (RUN_TEST_LOOP_Ffp_b1): Likewise.
2048         (canonicalize_test_data): New array.
2049         (canonicalize_test): New function.
2050         (main): Call canonicalize_test.
2051         * manual/arith.texi (FP Bit Twiddling): Document canonicalize,
2052         canonicalizef and canonicalizel.
2053         * manual/libm-err-tab.pl: Update comment on interfaces without
2054         ulps tabulated.
2055         * sysdeps/ieee754/ldbl-opt/nldbl-canonicalize.c: New file.
2056         * sysdeps/ieee754/ldbl-opt/s_canonicalizel.c: Likewise.
2057         * sysdeps/ieee754/ldbl-opt/Makefile (libnldbl-calls): Add
2058         canonicalize.
2059         (CFLAGS-nldbl-canonicalize.c): New variable.
2060         * sysdeps/ieee754/ldbl-128ibm/test-iscanonical-ldbl-128ibm.c: Move
2061         to ...
2062         * sysdeps/ieee754/ldbl-128ibm/test-canonical-ldbl-128ibm.c:
2063         ... here.
2064         (do_test): Also test canonicalizel.
2065         * sysdeps/ieee754/ldbl-128ibm/Makefile (tests): Change
2066         test-iscanonical-ldbl-128ibm to test-canonical-ldbl-128ibm.
2067         * sysdeps/ieee754/ldbl-128ibm/include/bits/iscanonical.h: New
2068         file.
2069         * sysdeps/ieee754/ldbl-128ibm/s_iscanonicall.c (__iscanonicall):
2070         Use libm_hidden_def.
2071         * sysdeps/ieee754/ldbl-96/test-iscanonical-ldbl-96.c: Move to ...
2072         * sysdeps/ieee754/ldbl-96/test-canonical-ldbl-96.c: ... here.
2073         (do_test): Also test canonicalizel.
2074         * sysdeps/ieee754/ldbl-96/Makefile (tests): Change
2075         test-iscanonical-ldbl-96 to test-canonical-ldbl-96.
2076         * sysdeps/ieee754/ldbl-96/include/bits/iscanonical.h: New file.
2077         * sysdeps/ieee754/ldbl-96/s_iscanonicall.c (__iscanonicall): Use
2078         libm_hidden_def.
2079         * sysdeps/generic/math-tests.h (SNAN_TESTS_PRESERVE_PAYLOAD): New
2080         macro.
2081         * sysdeps/mips/math-tests.h [__mips_hard_float && !__mips_nan2008]
2082         (SNAN_TESTS_PRESERVE_PAYLOAD): Likewise.
2083         * sysdeps/nacl/libm.abilist: Update.
2084         * sysdeps/unix/sysv/linux/aarch64/libm.abilist: Likewise.
2085         * sysdeps/unix/sysv/linux/alpha/libm.abilist: Likewise.
2086         * sysdeps/unix/sysv/linux/arm/libm.abilist: Likewise.
2087         * sysdeps/unix/sysv/linux/hppa/libm.abilist: Likewise.
2088         * sysdeps/unix/sysv/linux/i386/libm.abilist: Likewise.
2089         * sysdeps/unix/sysv/linux/ia64/libm.abilist: Likewise.
2090         * sysdeps/unix/sysv/linux/m68k/coldfire/libm.abilist: Likewise.
2091         * sysdeps/unix/sysv/linux/m68k/m680x0/libm.abilist: Likewise.
2092         * sysdeps/unix/sysv/linux/microblaze/libm.abilist: Likewise.
2093         * sysdeps/unix/sysv/linux/mips/mips32/libm.abilist: Likewise.
2094         * sysdeps/unix/sysv/linux/mips/mips64/libm.abilist: Likewise.
2095         * sysdeps/unix/sysv/linux/nios2/libm.abilist: Likewise.
2096         * sysdeps/unix/sysv/linux/powerpc/powerpc32/fpu/libm.abilist:
2097         Likewise.
2098         * sysdeps/unix/sysv/linux/powerpc/powerpc32/nofpu/libm.abilist:
2099         Likewise.
2100         * sysdeps/unix/sysv/linux/powerpc/powerpc64/libm-le.abilist:
2101         Likewise.
2102         * sysdeps/unix/sysv/linux/powerpc/powerpc64/libm.abilist:
2103         Likewise.
2104         * sysdeps/unix/sysv/linux/s390/s390-32/libm.abilist: Likewise.
2105         * sysdeps/unix/sysv/linux/s390/s390-64/libm.abilist: Likewise.
2106         * sysdeps/unix/sysv/linux/sh/libm.abilist: Likewise.
2107         * sysdeps/unix/sysv/linux/sparc/sparc32/libm.abilist: Likewise.
2108         * sysdeps/unix/sysv/linux/sparc/sparc64/libm.abilist: Likewise.
2109         * sysdeps/unix/sysv/linux/tile/tilegx/tilegx32/libm.abilist:
2110         Likewise.
2111         * sysdeps/unix/sysv/linux/tile/tilegx/tilegx64/libm.abilist:
2112         Likewise.
2113         * sysdeps/unix/sysv/linux/tile/tilepro/libm.abilist: Likewise.
2114         * sysdeps/unix/sysv/linux/x86_64/64/libm.abilist: Likewise.
2115         * sysdeps/unix/sysv/linux/x86_64/x32/libm.abilist: Likewise.
2116
2117         * sysdeps/ieee754/ldbl-opt/nldbl-getpayload.c: New file.
2118         * sysdeps/ieee754/ldbl-opt/Makefile (libnldbl-calls): Add
2119         getpayload.
2120         (CFLAGS-nldbl-getpayload.c): New variable.
2121
2122 2016-10-26  Gabriel F. T. Gomes  <gftg@linux.vnet.ibm.com>
2123
2124         * stdio-common/vfscanf.c (_IO_vfwscanf): Use read_int to parse
2125         integer from the format string.
2126
2127 2016-10-26  Florian Weimer  <fweimer@redhat.com>
2128
2129         [BZ #19473]
2130         * malloc/malloc.h (malloc_get_state, malloc_set_state): Remove
2131         declarations.
2132         * malloc/malloc.c (malloc_get_state, malloc_set_state): Remove
2133         weak aliases.
2134         * malloc/hooks.c (__malloc_get_state): Remove definition.
2135         (malloc_get_state): New stub implementation as
2136         compatibility symbol.
2137         (malloc_set_state): Rename from __malloc_set_state.  Turn into
2138         compat symbol.
2139         * malloc/tst-mallocstate.c: Rewrite to approximate how Emacs uses
2140         malloc_set_state.
2141         * malloc/Makefile (LDFLAGS-tst-mallocstate): Link with -rdynamic.
2142
2143 2016-10-26  Florian Weimer  <fweimer@redhat.com>
2144
2145         * iconvdata/iso646.c (enum variant): Drop illegal_var.
2146         (names): Turn into concatenation of strings.
2147         (gconv_init): Adapt iteration over names.
2148
2149 2016-10-26  Florian Weimer  <fweimer@redhat.com>
2150
2151         * iconvdata/ibm930.h (__ucs4_to_ibm930sb): Remove indirection and
2152         make const.
2153         * iconvdata/ibm933.h (__ucs4_to_ibm933sb): Likewise.
2154         * iconvdata/ibm935.h (__ucs4_to_ibm935sb): Likewise.
2155         * iconvdata/ibm939.h (__ucs4_to_ibm939sb): Likewise.
2156         * iconvdata/ibm930.c [TO_LOOP] (BODY): Store converted single-byte
2157         character in sbconv.
2158         * iconvdata/ibm933.c [TO_LOOP] (BODY): Likewise.
2159         * iconvdata/ibm935.c [TO_LOOP] (BODY): Likewise.
2160         * iconvdata/ibm939.c [TO_LOOP] (BODY): Likewise.
2161
2162 2016-10-26  Siddhesh Poyarekar  <siddhesh@sourceware.org>
2163
2164         * malloc/malloc.c (M_ARENA_TEST, M_ARENA_MAX): Remove.
2165
2166         * manual/memory.texi (M_TOP_PAD): Remove reference to sbrk.
2167         (M_TRIM_THRESHOLD): Likewise.
2168
2169         * manual/memory.texi (M_ARENA_TEST): Add documentation.
2170         (M_ARENA_MAX): Likewise.
2171         * malloc/malloc.c: Remove obsolete comment.
2172
2173         * manual/memory.texi: Add environment variable alternatives to
2174         setting mallopt parameters.
2175
2176 2016-10-26  Carlos O'Donell  <carlos@redhat.com>
2177
2178         * include/atomic.h
2179         [USE_COMPILER_ATOMIC_BUILTINS && !atomic_fetch_xor_release]
2180         (atomic_fetch_xor_release): Use atomic_compare_exchange_weak_release.
2181
2182 2016-10-25  Rajalakshmi Srinivasaraghavan  <raji@linux.vnet.ibm.com>
2183
2184         * stdlib/Makefile (tests): Add tst-strfrom and tst-strfrom-locale.
2185         * stdlib/tst-strfrom.h: New file.
2186         * stdlib/tst-strfrom.c: New file.
2187         * stdlib/tst-strfrom-locale.c: New file.
2188
2189         * stdlib/bug-strtod.c: Refactor based on GEN_TEST_STRTOD_FOREACH.
2190         * stdlib/bug-strtod2.c: Likewise.
2191         * stdlib/tst-strtod-round-skeleton.c: Likewise.
2192         * stdlib/tst-strtod6.c: Likewise.
2193         * stdlib/tst-strtod.h (GEN_TEST_STRTOD_FOREACH): Use strfrom.
2194
2195 2016-10-25  Gabriel F. T. Gomes  <gftg@linux.vnet.ibm.com>
2196
2197         * NEWS: Mention the addition of strfromd, strfromf, and strfroml.
2198         * manual/arith.texi: Document strfromd, strfromf, strfroml.
2199         * stdlib/Makefile: Add strfromd, strfromf, and strfroml.
2200         * stdlib/Versions (GLIBC_2.25): Add strfromd, strfromf, and strfroml.
2201         * stdlib/stdlib.h (strfromd): New declaration.
2202         (strfromf): Likewise.
2203         (strfroml): Likewise.
2204         * stdlib/strfrom-skeleton.c: New file.  Generic implementation for
2205         strfrom.
2206         * stdlib/strfromd.c: New file.
2207         * stdlib/strfromf.c: Likewise.
2208         * stdlib/strfroml.c: Likewise.
2209         * stdlib/bits/stdlib-ldbl.h: Add redirection from strfroml to strfromd.
2210         * sysdeps/ieee754/ldbl-opt/Makefile: Add rule for nldbl-strfroml.c.
2211         * sysdeps/ieee754/ldbl-opt/nldbl-strfroml.c: New file;
2212         * sysdeps/arm/nacl/libc.abilist: Update.
2213         * sysdeps/unix/sysv/linux/aarch64/libc.abilist: Likewise.
2214         * sysdeps/unix/sysv/linux/alpha/libc.abilist: Likewise.
2215         * sysdeps/unix/sysv/linux/arm/libc.abilist: Likewise.
2216         * sysdeps/unix/sysv/linux/hppa/libc.abilist: Likewise.
2217         * sysdeps/unix/sysv/linux/i386/libc.abilist: Likewise.
2218         * sysdeps/unix/sysv/linux/ia64/libc.abilist: Likewise.
2219         * sysdeps/unix/sysv/linux/m68k/coldfire/libc.abilist: Likewise.
2220         * sysdeps/unix/sysv/linux/m68k/m680x0/libc.abilist: Likewise.
2221         * sysdeps/unix/sysv/linux/microblaze/libc.abilist: Likewise.
2222         * sysdeps/unix/sysv/linux/mips/mips32/fpu/libc.abilist: Likewise.
2223         * sysdeps/unix/sysv/linux/mips/mips32/nofpu/libc.abilist: Likewise.
2224         * sysdeps/unix/sysv/linux/mips/mips64/n32/libc.abilist: Likewise.
2225         * sysdeps/unix/sysv/linux/mips/mips64/n64/libc.abilist: Likewise.
2226         * sysdeps/unix/sysv/linux/nios2/libc.abilist: Likewise.
2227         * sysdeps/unix/sysv/linux/powerpc/powerpc32/fpu/libc.abilist: Likewise.
2228         * sysdeps/unix/sysv/linux/powerpc/powerpc32/nofpu/libc.abilist: Likewise.
2229         * sysdeps/unix/sysv/linux/powerpc/powerpc64/libc-le.abilist: Likewise.
2230         * sysdeps/unix/sysv/linux/powerpc/powerpc64/libc.abilist: Likewise.
2231         * sysdeps/unix/sysv/linux/s390/s390-32/libc.abilist: Likewise.
2232         * sysdeps/unix/sysv/linux/s390/s390-64/libc.abilist: Likewise.
2233         * sysdeps/unix/sysv/linux/sh/libc.abilist: Likewise.
2234         * sysdeps/unix/sysv/linux/sparc/sparc32/libc.abilist: Likewise.
2235         * sysdeps/unix/sysv/linux/sparc/sparc64/libc.abilist: Likewise.
2236         * sysdeps/unix/sysv/linux/tile/tilegx/tilegx32/libc.abilist: Likewise.
2237         * sysdeps/unix/sysv/linux/tile/tilegx/tilegx64/libc.abilist: Likewise.
2238         * sysdeps/unix/sysv/linux/tile/tilepro/libc.abilist: Likewise.
2239         * sysdeps/unix/sysv/linux/x86_64/64/libc.abilist: Likewise.
2240         * sysdeps/unix/sysv/linux/x86_64/x32/libc.abilist: Likewise.
2241
2242 2016-10-25  Joseph Myers  <joseph@codesourcery.com>
2243
2244         * sysdeps/powerpc/powerpc32/power6/memset.S (memset): Use cmplwi
2245         instead of cmpli.
2246         * sysdeps/powerpc/powerpc64/power6/memset.S (memset): Use cmpldi
2247         instead of cmpli.
2248
2249 2016-10-24  Yury Norov  <ynorov@caviumnetworks.com>
2250
2251         * sysdeps/unix/sysv/linux/fxstat.c: Remove useless cast.
2252         * sysdeps/unix/sysv/linux/lxstat.c: Likewise.
2253         * sysdeps/unix/sysv/linux/xstat.c: Likewise.
2254         * sysdeps/unix/sysv/linux/i386/fxstat.c: Likewise.
2255         * sysdeps/unix/sysv/linux/i386/lxstat.c: Likewise.
2256         * sysdeps/unix/sysv/linux/i386/xstat.c: Likewise.
2257
2258 2016-10-24  Adhemerval Zanella  <adhemerval.zanella@linaro.org>
2259
2260         * sysdeps/unix/sysv/linux/pread.c (__libc_pread): Use SYSCALL_LL_PRW.
2261         * sysdeps/unix/sysv/linux/pwrite.c (__libc_pwrite): Likewise.
2262         * sysdeps/unix/sysv/linux/pread64.c (__libc_pread64): Use
2263         SYSCALL_LL64_PRW.
2264         * sysdeps/unix/sysv/linux/pwrite64.c (__libc_pwrite64): Likewise.
2265         * sysdeps/unix/sysv/linux/sh/kernel-features.h: Define
2266         __ASSUME_PRW_DUMMY_ARG.
2267         * sysdeps/unix/sysv/linux/sh/pread.c: Remove file.
2268         * sysdeps/unix/sysv/linux/sh/pread64.c: Likewise.
2269         * sysdeps/unix/sysv/linux/sh/pwrite.c: Likewise.
2270         * sysdeps/unix/sysv/linux/sh/pwrite64.c: Likewise.
2271         * sysdeps/unix/sysv/linux/sysdep.h: Define SYSCALL_LL_PRW and
2272         SYSCALL_LL_PRW64 based on __ASSUME_PRW_DUMMY_ARG.
2273
2274 2016-10-24  Steve Ellcey  <sellcey@caviumnetworks.com>
2275
2276         * sysdeps/unix/sysv/linux/tst-setgetname.c: Increase buffer size.
2277
2278 2016-10-22  Florian Weimer  <fweimer@redhat.com>
2279
2280         * math/math.h [__cplusplus] (iszero): Wrap C++ bits in extern
2281         "C++", to override a potential extern "C" directive around the
2282         header file inclusion.
2283
2284 2016-10-21  Joseph Myers  <joseph@codesourcery.com>
2285
2286         * benchtests/Makefile (CFLAGS-bench-sqrt.c): New variable.
2287
2288 2016-10-21  Paul E. Murphy  <murphyp@linux.vnet.ibm.com>
2289
2290         * sysdeps/powerpc/fpu/fenv_private.h:
2291         (_FPU_MASK_ALL): Rename to...
2292         (_FPU_ALL_TRAPS): New macro representing ISA VE OE UE ZE and
2293         XE FPSCR bits.
2294
2295         (_FPU_MASK_RN): New macro to mask out ISA RN bits in FPSCR.
2296
2297         (_FPU_MASK_ROUNDING): Rename to...
2298         (_FPU_MASK_NOT_RN_NI): New macro to mask out all but ISA RN and
2299         NI bits.
2300
2301         (_FPU_MASK_EXCEPT_ROUND): Rename to...
2302         (_FPU_MASK_TRAPS_RN): New macro to mask out exception enable
2303         bits and rounding bits.
2304
2305         (__libc_feholdbits_ppc): New inline function to mask, set,
2306         and pontentially clear FSPCR bits, and change MSR[FE] bits.
2307         (libc_feholdexcept_ppc): Redefine using __libc_feholdbits_ppc.
2308         (libc_feholdexcept_setround_ppc): Likewise.
2309
2310         (__libc_femergeenv_ppc): New function to dynamically mask both
2311         old and new FP environments and merge.
2312         (libc_fesetenv_ppc): Redefine in terms of __libc_femergeenv_ppc.
2313         (libc_feresetround_ppc): Likewise.
2314         (libc_feupdateenv_test_ppc): Likewise.
2315         (libc_feupdateenv_ppc): Likewise.
2316
2317         (libc_feholdsetround_ppc_ctx): Fix usage to include masking
2318         of ISA RN bits, and update macro names.
2319         (libc_feholdexcept_setround_ppc_ctx): Remove as it is
2320         effectively the same as the previously mentioned function.
2321
2322         (libc_feupdateenv_ppc_ctx): Replace libc_feupdatedenv_test_ppc
2323         usage with fe_resetround_ppc.
2324
2325         (libc_feholdexcept_setround_ctx): Remove, this doesn't appear
2326         to be used.
2327         (libc_feholdexcept_setround_ctxf): Likewise.
2328         (libc_feholdexcept_setround_ctxl): Likewise.
2329
2330 2016-10-21  Florian Weimer  <fweimer@redhat.com>
2331
2332         [BZ #20715]
2333         * math/math.h [__cplusplus] (iszero): Define as function template.
2334         * math/Makefile [CXX] (tests): Add test-math-iszero.
2335         (CFLAGS-test-math-iszero.cc): Set.
2336         * math/test-math-iszero.cc: New file.
2337
2338 2016-10-20  Joseph Myers  <joseph@codesourcery.com>
2339
2340         [BZ #20660]
2341         * sysdeps/arm/e_sqrt.c: New file.
2342         * sysdeps/arm/e_sqrtf.c: Likewise.
2343
2344 2016-10-19  Joseph Myers  <joseph@codesourcery.com>
2345
2346         [BZ #20718]
2347         * sysdeps/powerpc/powerpc32/fpu/s_copysignl.S (__copysignl): Do
2348         not use floating-point comparisons to test sign.
2349         * sysdeps/powerpc/powerpc64/fpu/s_copysignl.S (__copysignl):
2350         Likewise.
2351
2352         * math/bits/mathcalls.h [__GLIBC_USE (IEC_60559_BFP_EXT)]
2353         (getpayload): New declaration.
2354         * math/Versions (getpayload): New libm symbol at version
2355         GLIBC_2.25.
2356         (getpayloadf): Likewise.
2357         (getpayloadl): Likewise.
2358         * math/Makefile (libm-calls): Add s_getpayloadF.
2359         * math/libm-test.inc: Include <nan-high-order-bit.h>.
2360         (struct test_f_f_data): Add comment.
2361         (RUN_TEST_fp_f): New macro.
2362         (RUN_TEST_LOOP_fp_f): Likewise.
2363         (getpayload_test_data): New array.
2364         (getpayload_test): New function.
2365         (main): Call getpayload_test.
2366         * math/gen-libm-test.pl (parse_args): Handle 'p' in argument
2367         descriptor.
2368         * manual/arith.texi (FP Bit Twiddling): Document getpayload,
2369         getpayloadf and getpayloadl.
2370         * manual/libm-err-tab.pl: Update comment on interfaces without
2371         ulps tabulated.
2372         * sysdeps/ieee754/dbl-64/s_getpayload.c: New file.
2373         * sysdeps/ieee754/dbl-64/wordsize-64/s_getpayload.c: Likewise.
2374         * sysdeps/ieee754/flt-32/s_getpayloadf.c: Likewise.
2375         * sysdeps/ieee754/ldbl-128/s_getpayloadl.c: Likewise.
2376         * sysdeps/ieee754/ldbl-128ibm/s_getpayloadl.c: Likewise.
2377         * sysdeps/ieee754/ldbl-96/s_getpayloadl.c: Likewise.
2378         * sysdeps/nacl/libm.abilist: Update.
2379         * sysdeps/unix/sysv/linux/aarch64/libm.abilist: Likewise.
2380         * sysdeps/unix/sysv/linux/alpha/libm.abilist: Likewise.
2381         * sysdeps/unix/sysv/linux/arm/libm.abilist: Likewise.
2382         * sysdeps/unix/sysv/linux/hppa/libm.abilist: Likewise.
2383         * sysdeps/unix/sysv/linux/i386/libm.abilist: Likewise.
2384         * sysdeps/unix/sysv/linux/ia64/libm.abilist: Likewise.
2385         * sysdeps/unix/sysv/linux/m68k/coldfire/libm.abilist: Likewise.
2386         * sysdeps/unix/sysv/linux/m68k/m680x0/libm.abilist: Likewise.
2387         * sysdeps/unix/sysv/linux/microblaze/libm.abilist: Likewise.
2388         * sysdeps/unix/sysv/linux/mips/mips32/libm.abilist: Likewise.
2389         * sysdeps/unix/sysv/linux/mips/mips64/libm.abilist: Likewise.
2390         * sysdeps/unix/sysv/linux/nios2/libm.abilist: Likewise.
2391         * sysdeps/unix/sysv/linux/powerpc/powerpc32/fpu/libm.abilist:
2392         Likewise.
2393         * sysdeps/unix/sysv/linux/powerpc/powerpc32/nofpu/libm.abilist:
2394         Likewise.
2395         * sysdeps/unix/sysv/linux/powerpc/powerpc64/libm-le.abilist:
2396         Likewise.
2397         * sysdeps/unix/sysv/linux/powerpc/powerpc64/libm.abilist:
2398         Likewise.
2399         * sysdeps/unix/sysv/linux/s390/s390-32/libm.abilist: Likewise.
2400         * sysdeps/unix/sysv/linux/s390/s390-64/libm.abilist: Likewise.
2401         * sysdeps/unix/sysv/linux/sh/libm.abilist: Likewise.
2402         * sysdeps/unix/sysv/linux/sparc/sparc32/libm.abilist: Likewise.
2403         * sysdeps/unix/sysv/linux/sparc/sparc64/libm.abilist: Likewise.
2404         * sysdeps/unix/sysv/linux/tile/tilegx/tilegx32/libm.abilist:
2405         Likewise.
2406         * sysdeps/unix/sysv/linux/tile/tilegx/tilegx64/libm.abilist:
2407         Likewise.
2408         * sysdeps/unix/sysv/linux/tile/tilepro/libm.abilist: Likewise.
2409         * sysdeps/unix/sysv/linux/x86_64/64/libm.abilist: Likewise.
2410         * sysdeps/unix/sysv/linux/x86_64/x32/libm.abilist: Likewise.
2411
2412 2016-10-18  Adhemerval Zanella  <adhemerval.zanella@linaro.org>
2413
2414         * sysdeps/unix/sysv/linux/Makefile [$(subdir) = math] (tests): Move
2415         tst-fallocate{64}.
2416         * sysdeps/unix/sysv/linux/tst-fallocate-common.c: Check for EOPNOTSUPP
2417         on syscall return.
2418
2419 2016-10-17  Carlos O'Donell  <carlos@redhat.com>
2420
2421         [BZ #20689]
2422         * sysdeps/x86/cpu-features.c: Only enable FMA and AVX2 if AVX is
2423         usable.
2424
2425 2016-10-17  Joseph Myers  <joseph@codesourcery.com>
2426
2427         * sysdeps/generic/nan-high-order-bit.h: New file.
2428         * sysdeps/hppa/nan-high-order-bit.h: Likewise.
2429         * sysdeps/mips/nan-high-order-bit.h: Likewise.
2430         * sysdeps/hppa/math_private.h: Remove file.
2431         * sysdeps/mips/math_private.h (HIGH_ORDER_BIT_IS_SET_FOR_SNAN): Do
2432         not define here.
2433         * sysdeps/ieee754/dbl-64/s_issignaling.c: Include
2434         <nan-high-order-bit.h>.
2435         [HIGH_ORDER_BIT_IS_SET_FOR_SNAN]: Test with #if not #ifdef.
2436         * sysdeps/ieee754/dbl-64/s_totalorder.c: Include
2437         <nan-high-order-bit.h>.
2438         [HIGH_ORDER_BIT_IS_SET_FOR_SNAN]: Test with #if not #ifdef.
2439         * sysdeps/ieee754/dbl-64/s_totalordermag.c: Include
2440         <nan-high-order-bit.h>.
2441         [HIGH_ORDER_BIT_IS_SET_FOR_SNAN]: Test with #if not #ifdef.
2442         * sysdeps/ieee754/dbl-64/wordsize-64/s_issignaling.c: Include
2443         <nan-high-order-bit.h>.
2444         [HIGH_ORDER_BIT_IS_SET_FOR_SNAN]: Test with #if not #ifdef.
2445         * sysdeps/ieee754/dbl-64/wordsize-64/s_totalorder.c: Include
2446         <nan-high-order-bit.h>.
2447         [HIGH_ORDER_BIT_IS_SET_FOR_SNAN]: Test with #if not #ifdef.
2448         * sysdeps/ieee754/dbl-64/wordsize-64/s_totalordermag.c: Include
2449         <nan-high-order-bit.h>.
2450         [HIGH_ORDER_BIT_IS_SET_FOR_SNAN]: Test with #if not #ifdef.
2451         * sysdeps/ieee754/flt-32/s_issignalingf.c: Include
2452         <nan-high-order-bit.h>.
2453         [HIGH_ORDER_BIT_IS_SET_FOR_SNAN]: Test with #if not #ifdef.
2454         * sysdeps/ieee754/flt-32/s_totalorderf.c: Include
2455         <nan-high-order-bit.h>.
2456         [HIGH_ORDER_BIT_IS_SET_FOR_SNAN]: Test with #if not #ifdef.
2457         * sysdeps/ieee754/flt-32/s_totalordermagf.c: Include
2458         <nan-high-order-bit.h>.
2459         [HIGH_ORDER_BIT_IS_SET_FOR_SNAN]: Test with #if not #ifdef.
2460         * sysdeps/ieee754/ldbl-128/s_issignalingl.c: Include
2461         <nan-high-order-bit.h>.
2462         [HIGH_ORDER_BIT_IS_SET_FOR_SNAN]: Test with #if not #ifdef.
2463         * sysdeps/ieee754/ldbl-128/s_totalorderl.c: Include
2464         <nan-high-order-bit.h>.
2465         [HIGH_ORDER_BIT_IS_SET_FOR_SNAN]: Test with #if not #ifdef.
2466         * sysdeps/ieee754/ldbl-128/s_totalordermagl.c: Include
2467         <nan-high-order-bit.h>.
2468         [HIGH_ORDER_BIT_IS_SET_FOR_SNAN]: Test with #if not #ifdef.
2469         * sysdeps/ieee754/ldbl-128ibm/s_issignalingl.c: Include
2470         <nan-high-order-bit.h>.
2471         [HIGH_ORDER_BIT_IS_SET_FOR_SNAN]: Test with #if not #ifdef.
2472         * sysdeps/ieee754/ldbl-128ibm/s_totalorderl.c: Include
2473         <nan-high-order-bit.h>.
2474         [HIGH_ORDER_BIT_IS_SET_FOR_SNAN]: Test with #if not #ifdef.
2475         * sysdeps/ieee754/ldbl-128ibm/s_totalordermagl.c: Include
2476         <nan-high-order-bit.h>.
2477         [HIGH_ORDER_BIT_IS_SET_FOR_SNAN]: Test with #if not #ifdef.
2478         * sysdeps/ieee754/ldbl-96/s_issignalingl.c: Include
2479         <nan-high-order-bit.h>.
2480         [HIGH_ORDER_BIT_IS_SET_FOR_SNAN]: Test with #if not #ifdef.
2481         * sysdeps/ieee754/ldbl-96/s_totalorderl.c: Include
2482         <nan-high-order-bit.h>.
2483         [HIGH_ORDER_BIT_IS_SET_FOR_SNAN]: Test with #if not #ifdef.
2484         * sysdeps/ieee754/ldbl-96/s_totalordermagl.c: Include
2485         <nan-high-order-bit.h>.
2486         [HIGH_ORDER_BIT_IS_SET_FOR_SNAN]: Test with #if not #ifdef.
2487
2488 2016-10-17  Stefan Liebler  <stli@linux.vnet.ibm.com>
2489
2490         * sysdeps/s390/fpu/fix-fp-int-compare-invalid.h: New file.
2491
2492 2016-09-22  John David Anglin  <dave.anglin@bell.net>
2493
2494         * sysdeps/unix/sysv/linux/hppa/atomic-machine.h: Don't include
2495         abort-instr.h.
2496         (EFAULT): Remove conditional define.
2497         (ENOSYS): Likewise.
2498         (atomic_compare_and_exchange_val_acq): Use instruction nullification
2499         instead of conditional branch instructions.
2500
2501 2016-10-15  Joseph Myers  <joseph@codesourcery.com>
2502
2503         * math/bits/mathcalls.h [__GLIBC_USE (IEC_60559_BFP_EXT)]
2504         (totalordermag): New declaration.
2505         * math/tgmath.h [__GLIBC_USE (IEC_60559_BFP_EXT)] (totalordermag):
2506         New macro.
2507         * math/Versions (totalordermag): New libm symbol at version
2508         GLIBC_2.25.
2509         (totalordermagf): Likewise.
2510         (totalordermagl): Likewise.
2511         * math/Makefile (libm-calls): Add s_totalordermagF.
2512         * math/libm-test.inc (totalordermag_test_data): New array.
2513         (totalordermag_test): New function.
2514         (main): Call totalordermag_test.
2515         * math/test-tgmath.c (NCALLS): Increase to 125.
2516         (F(compile_test)): Call totalordermag.
2517         (F(totalordermag)): New function.
2518         * manual/arith.texi (FP Comparison Functions): Document
2519         totalordermag, totalordermagf and totalordermagl.
2520         * manual/libm-err-tab.pl: Update comment on interfaces without
2521         ulps tabulated.
2522         * sysdeps/ieee754/dbl-64/s_totalordermag.c: New file.
2523         * sysdeps/ieee754/dbl-64/wordsize-64/s_totalordermag.c: Likewise.
2524         * sysdeps/ieee754/flt-32/s_totalordermagf.c: Likewise.
2525         * sysdeps/ieee754/ldbl-128/s_totalordermagl.c: Likewise.
2526         * sysdeps/ieee754/ldbl-128ibm/s_totalordermagl.c: Likewise.
2527         * sysdeps/ieee754/ldbl-96/s_totalordermagl.c: Likewise.
2528         * sysdeps/ieee754/ldbl-opt/nldbl-totalordermag.c: Likewise.
2529         * sysdeps/ieee754/ldbl-opt/Makefile (libnldbl-calls): Add
2530         totalordermag.
2531         (CFLAGS-nldbl-totalordermag.c): New variable.
2532         * sysdeps/ieee754/ldbl-128ibm/test-totalorderl-ldbl-128ibm.c
2533         (do_test): Also test totalordermagl.
2534         * sysdeps/ieee754/ldbl-96/test-totalorderl-ldbl-96.c (do_test):
2535         Likewise.
2536         * sysdeps/nacl/libm.abilist: Update.
2537         * sysdeps/unix/sysv/linux/aarch64/libm.abilist: Likewise.
2538         * sysdeps/unix/sysv/linux/alpha/libm.abilist: Likewise.
2539         * sysdeps/unix/sysv/linux/arm/libm.abilist: Likewise.
2540         * sysdeps/unix/sysv/linux/hppa/libm.abilist: Likewise.
2541         * sysdeps/unix/sysv/linux/i386/libm.abilist: Likewise.
2542         * sysdeps/unix/sysv/linux/ia64/libm.abilist: Likewise.
2543         * sysdeps/unix/sysv/linux/m68k/coldfire/libm.abilist: Likewise.
2544         * sysdeps/unix/sysv/linux/m68k/m680x0/libm.abilist: Likewise.
2545         * sysdeps/unix/sysv/linux/microblaze/libm.abilist: Likewise.
2546         * sysdeps/unix/sysv/linux/mips/mips32/libm.abilist: Likewise.
2547         * sysdeps/unix/sysv/linux/mips/mips64/libm.abilist: Likewise.
2548         * sysdeps/unix/sysv/linux/nios2/libm.abilist: Likewise.
2549         * sysdeps/unix/sysv/linux/powerpc/powerpc32/fpu/libm.abilist:
2550         Likewise.
2551         * sysdeps/unix/sysv/linux/powerpc/powerpc32/nofpu/libm.abilist:
2552         Likewise.
2553         * sysdeps/unix/sysv/linux/powerpc/powerpc64/libm-le.abilist:
2554         Likewise.
2555         * sysdeps/unix/sysv/linux/powerpc/powerpc64/libm.abilist:
2556         Likewise.
2557         * sysdeps/unix/sysv/linux/s390/s390-32/libm.abilist: Likewise.
2558         * sysdeps/unix/sysv/linux/s390/s390-64/libm.abilist: Likewise.
2559         * sysdeps/unix/sysv/linux/sh/libm.abilist: Likewise.
2560         * sysdeps/unix/sysv/linux/sparc/sparc32/libm.abilist: Likewise.
2561         * sysdeps/unix/sysv/linux/sparc/sparc64/libm.abilist: Likewise.
2562         * sysdeps/unix/sysv/linux/tile/tilegx/tilegx32/libm.abilist:
2563         Likewise.
2564         * sysdeps/unix/sysv/linux/tile/tilegx/tilegx64/libm.abilist:
2565         Likewise.
2566         * sysdeps/unix/sysv/linux/tile/tilepro/libm.abilist: Likewise.
2567         * sysdeps/unix/sysv/linux/x86_64/64/libm.abilist: Likewise.
2568         * sysdeps/unix/sysv/linux/x86_64/x32/libm.abilist: Likewise.
2569
2570 2016-10-14  Steve Ellcey  <sellcey@caviumnetworks.com>
2571
2572         * sysdeps/ieee754/dbl-64/e_pow.c (checkint) Make conditions explicitly
2573         boolean.
2574
2575 2016-10-13  Joseph Myers  <joseph@codesourcery.com>
2576
2577         * math/s_ccosh_template.c (M_DECL_FUNC (__ccosh)): Instead of
2578         raising FE_INVALID with feraisexcept in case where part of
2579         argument is infinite, subtract that part of argument from itself.
2580         * math/s_cexp_template.c (M_DECL_FUNC (__cexp)): Likewise.
2581         * math/s_csin_template.c (M_DECL_FUNC (__csin)): Likewise.
2582         * math/s_csinh_template.c (M_DECL_FUNC (__csinh)): Likewise.
2583
2584 2016-10-12  Joseph Myers  <joseph@codesourcery.com>
2585
2586         * math/libm-test.inc (totalorder_test_data): Add more tests.
2587
2588 2016-10-12  Adhemerval Zanela  <adhemerval.zanella@linaro.org>
2589
2590         * sysdeps/unix/sysv/linux/mips/mips64/n64/posix_fadvise64.c:
2591         Undefine weak_alias and add a comment why mips64 require
2592         versioning.
2593
2594 2016-10-12  H.J. Lu  <hongjiu.lu@intel.com>
2595
2596         [BZ #20647]
2597         * sysdeps/x86/cacheinfo.c (handle_intel): Return -1 if the
2598         maximum CPUID level is less than 2.
2599
2600 2016-10-12  Joseph Myers  <joseph@codesourcery.com>
2601
2602         * math/bits/mathcalls.h [__GLIBC_USE (IEC_60559_BFP_EXT)]
2603         (totalorder): New declaration.
2604         * math/tgmath.h [__GLIBC_USE (IEC_60559_BFP_EXT)] (totalorder):
2605         New macro.
2606         * math/Versions (totalorder): New libm symbol at version
2607         GLIBC_2.25.
2608         (totalorderf): Likewise.
2609         (totalorderl): Likewise.
2610         * math/Makefile (libm-calls): Add s_totalorderF.
2611         * math/gen-libm-test.pl (parse_args): Escape quotes in test name
2612         string.
2613         * math/libm-test.inc (PAYLOAD_DIG): New macro.
2614         (qnan_value_pl): Likewise.
2615         (snan_value_pl): Likewise.
2616         (qnan_value): Define using qnan_value_pl.
2617         (snan_value): Define using snan_value_pl.
2618         (struct test_ff_i_data): Add comment about which tests use this
2619         structure.
2620         (RUN_TEST_ff_b): New macro.
2621         (RUN_TEST_LOOP_ff_b): Likewise.
2622         (totalorder_test_data): New array.
2623         (totalorder_test): New function.
2624         (main): Call totalorder_test.
2625         * math/test-tgmath.c (NCALLS): Increase to 122.
2626         (F(compile_test)): Call totalorder.
2627         (F(totalorder)): New function.
2628         * manual/arith.texi (FP Comparison Functions): Document
2629         totalorder, totalorderf and totalorderl.
2630         * manual/libm-err-tab.pl: Update comment on interfaces without
2631         ulps tabulated.
2632         * sysdeps/ieee754/dbl-64/s_totalorder.c: New file.
2633         * sysdeps/ieee754/dbl-64/wordsize-64/s_totalorder.c: Likewise.
2634         * sysdeps/ieee754/flt-32/s_totalorderf.c: Likewise.
2635         * sysdeps/ieee754/ldbl-128/s_totalorderl.c: Likewise.
2636         * sysdeps/ieee754/ldbl-128ibm/s_totalorderl.c: Likewise.
2637         * sysdeps/ieee754/ldbl-96/s_totalorderl.c: Likewise.
2638         * sysdeps/ieee754/ldbl-opt/nldbl-totalorder.c: Likewise.
2639         * sysdeps/ieee754/ldbl-opt/Makefile (libnldbl-calls): Add
2640         totalorder.
2641         (CFLAGS-nldbl-totalorder.c): New variable.
2642         * sysdeps/ieee754/ldbl-128ibm/test-totalorderl-ldbl-128ibm.c: New
2643         file.
2644         * sysdeps/ieee754/ldbl-128ibm/Makefile [$(subdir) = math] (tests):
2645         Add test-totalorderl-ldbl-128ibm.
2646         * sysdeps/ieee754/ldbl-96/test-totalorderl-ldbl-96.c: New file.
2647         * sysdeps/ieee754/ldbl-96/Makefile [$(subdir) = math] (tests): Add
2648         test-totalorderl-ldbl-96.
2649         * sysdeps/nacl/libm.abilist: Update.
2650         * sysdeps/unix/sysv/linux/aarch64/libm.abilist: Likewise.
2651         * sysdeps/unix/sysv/linux/alpha/libm.abilist: Likewise.
2652         * sysdeps/unix/sysv/linux/arm/libm.abilist: Likewise.
2653         * sysdeps/unix/sysv/linux/hppa/libm.abilist: Likewise.
2654         * sysdeps/unix/sysv/linux/i386/libm.abilist: Likewise.
2655         * sysdeps/unix/sysv/linux/ia64/libm.abilist: Likewise.
2656         * sysdeps/unix/sysv/linux/m68k/coldfire/libm.abilist: Likewise.
2657         * sysdeps/unix/sysv/linux/m68k/m680x0/libm.abilist: Likewise.
2658         * sysdeps/unix/sysv/linux/microblaze/libm.abilist: Likewise.
2659         * sysdeps/unix/sysv/linux/mips/mips32/libm.abilist: Likewise.
2660         * sysdeps/unix/sysv/linux/mips/mips64/libm.abilist: Likewise.
2661         * sysdeps/unix/sysv/linux/nios2/libm.abilist: Likewise.
2662         * sysdeps/unix/sysv/linux/powerpc/powerpc32/fpu/libm.abilist:
2663         Likewise.
2664         * sysdeps/unix/sysv/linux/powerpc/powerpc32/nofpu/libm.abilist:
2665         Likewise.
2666         * sysdeps/unix/sysv/linux/powerpc/powerpc64/libm-le.abilist:
2667         Likewise.
2668         * sysdeps/unix/sysv/linux/powerpc/powerpc64/libm.abilist:
2669         Likewise.
2670         * sysdeps/unix/sysv/linux/s390/s390-32/libm.abilist: Likewise.
2671         * sysdeps/unix/sysv/linux/s390/s390-64/libm.abilist: Likewise.
2672         * sysdeps/unix/sysv/linux/sh/libm.abilist: Likewise.
2673         * sysdeps/unix/sysv/linux/sparc/sparc32/libm.abilist: Likewise.
2674         * sysdeps/unix/sysv/linux/sparc/sparc64/libm.abilist: Likewise.
2675         * sysdeps/unix/sysv/linux/tile/tilegx/tilegx32/libm.abilist:
2676         Likewise.
2677         * sysdeps/unix/sysv/linux/tile/tilegx/tilegx64/libm.abilist:
2678         Likewise.
2679         * sysdeps/unix/sysv/linux/tile/tilepro/libm.abilist: Likewise.
2680         * sysdeps/unix/sysv/linux/x86_64/64/libm.abilist: Likewise.
2681         * sysdeps/unix/sysv/linux/x86_64/x32/libm.abilist: Likewise.
2682
2683 2016-10-11  Adhemerval Zanella  <adhemerval.zanella@linaro.org>
2684
2685         * sysdeps/unix/sysv/linux/Makefile (tests): Add tst-sync_file_range.
2686         * sysdeps/unix/sysv/linux/mips/mips32/sync_file_range.c: Remove file.
2687         * sysdeps/sysv/linux/powerpc/powerpc64/sync_file_range.c: Likewise.
2688         * sysdeps/unix/sysv/linux/sync_file_range.c: Use SYSCALL_LL64 and
2689         remove ENOSYS implementation.
2690         * sysdeps/unix/sysv/linux/tst-sync_file_range.c (sync_file_range):
2691         Consolidate all Linux implementations.
2692
2693 2016-10-11  Florian Weimer  <fweimer@redhat.com>
2694
2695         * resolv/Makefile (+cflags): Do not set -Wno-write-strings.
2696         * resolv/herror.c (herror): Cast away const-ness.
2697         * resolv/res_debug.c (__p_class_syms, __p_default_section_syms)
2698         (__p_update_section_syms, __p_type_syms, __p_rcode_syms): Likewise.
2699
2700 2016-10-11  Joseph Myers  <joseph@codesourcery.com>
2701
2702         * math/s_ccosh_template.c (M_DECL_FUNC (__ccosh)): Use M_NAN
2703         instead of M_NAN + M_NAN.
2704         * math/s_csinh_template.c (M_DECL_FUNC (__csinh)): Likewise.
2705
2706 2016-10-10  Samuel Thibault  <samuel.thibault@ens-lyon.org>
2707
2708         * misc/getauxval.c [!HAVE_AUX_VECTOR] (__getauxval): Do not define
2709         unused variable 'p'.
2710
2711 2016-10-09  Alan Modra  <amodra@gmail.com>
2712             Andreas Schwab  <schwab@linux-m68k.org>
2713
2714         [BZ #20554]
2715         * sysdeps/powerpc/powerpc32/ppc-mcount.S (_mcount)
2716         [PIC && !SHARED]: Set up PIC register for PLT call.
2717
2718 2016-10-07  Joseph Myers  <joseph@codesourcery.com>
2719
2720         * math/math.h [__GLIBC_USE (IEC_60559_BFP_EXT)] (iseqsig): Define
2721         conditional on value of [__FLT_EVAL_METHOD__].
2722         * math/test-iseqsig-excess-precision.c: New file.
2723         * math/Makefile (tests): Add test-iseqsig-excess-precision.
2724
2725 2016-10-07  Adhemerval Zanella  <adhemerval.zanella@linaro.org>
2726
2727         * math/s_iseqsig_template.c: Include math-private.h.
2728
2729         * posix/Makefile (tests): Add tst-posix_fadvise and tst-posix_fadvise64.
2730         * posix/tst-posix_fadvise.c: New file.
2731         * posix/tst-posix_fadvise64.c: Likewise.
2732         * posix/tst-posix_fadvise-common.c: Likewise.
2733         * sysdeps/unix/sysv/linux/arm/kernel-features.h
2734         (__ASSUME_FADVISE64_64_6ARG): Define.
2735         * sysdeps/unix/sysv/linux/powerpc/kernel-features.h
2736         [!__powerpc64__] (__ASSUME_FADVISE64_64_6ARG): Define.
2737         * sysdeps/unix/sysv/linux/tile/kernel-features.h
2738         [!LP64] (__ASSUME_FADVISE64_64_NO_ALIGN): Define.
2739         * sysdeps/unix/sysv/linux/arm/posix_fadvise64.c: Remove file.
2740         * sysdeps/unix/sysv/linux/generic/wordsize-32/posix_fadvise.c: Likewise.
2741         * sysdeps/unix/sysv/linux/i386/posix_fadvise64.S: Likewise.
2742         * sysdeps/unix/sysv/linux/mips/mips32/posix_fadvise.c: Likewise.
2743         * sysdeps/unix/sysv/linux/mips/mips32/posix_fadvise64.c: Likewise.
2744         * sysdeps/unix/sysv/linux/mips/mips64/n32/posix_fadvise.c: Likewise.
2745         * sysdeps/unix/sysv/linux/mips/mips64/n32/posix_fadvise64.c: Likewise.
2746         * sysdeps/unix/sysv/linux/mips/mips64/n64/posix_fadvise.c: Likewise.
2747         * sysdeps/unix/sysv/linux/powerpc/powerpc32/posix_fadvise.c: Likewise.
2748         * sysdeps/unix/sysv/linux/powerpc/powerpc32/posix_fadvise64.c:
2749         Likewise.
2750         * sysdeps/unix/sysv/linux/wordsize-64/posix_fadvise.c: Likewise.
2751         * sysdeps/unix/sysv/linux/wordsize-64/posix_fadvise64.c: Likewise.
2752         * sysdeps/unix/sysv/linux/mips/mips64/n64/posix_fadvise64.c
2753         (SHLIB_COMPAT(libc, GLIBC_2_2, GLIBC_2_3_3) [__posix_fadvise64_l64]:
2754         Alias to __posix_fadvise64_l32.
2755         (SHLIB_COMPAT(libc, GLIBC_2_2, GLIBC_2_3_3) [__posix_fadvise64_l32]:
2756         Add compat definition to posix_fadvise64.
2757         (SHLIB_COMPAT(libc, GLIBC_2_2, GLIBC_2_3_3) [__posix_fadvise64_l64]:
2758         Add versioned definition to posix_fadvise64.
2759         * sysdeps/unix/sysv/linux/posix_fadvise.c (posix_fadvise): Build iff
2760         __OFF_T_MATCHES_OFF64_T is defined, use INTERNAL_SYSCALL_CALL, add
2761         __ASSUME_FADVISE64_64_6ARG/__ASSUME_FADVISE64_64_NO_ALIGN support.
2762         * sysdeps/unix/sysv/linux/posix_fadvise64.c (posix_fadvise64): Add
2763         __ASSUME_FADVISE64_64_NO_ALIGN support and use INTERNAL_SYSCALL_CALL.
2764
2765         * io/Makefile (tests): Add tst-posix_fallocate and
2766         tst-posix_fallocate64.
2767         * io/tst-posix_fallocate-common.c: New file.
2768         * io/tst-posix_fallocate.c: Likewise.
2769         * io/tst-posix_fallocate64.c: Likewise.
2770         * sysdeps/unix/sysv/linux/mips/mips64/n32/posix_fallocate.c: Remove
2771         file.
2772         * sysdeps/unix/sysv/linux/mips/mips64/n32/posix_fallocate64.c:
2773         Likewise.
2774         * sysdeps/unix/sysv/linux/mips/mips64/n64/posix_fallocate.c: Likewise.
2775         * sysdeps/unix/sysv/linux/mips/mips64/n64/posix_fallocate64.c:
2776         Likewise.
2777         * sysdeps/unix/sysv/linux/wordsize-64/posix_fallocate.c: Likewise.
2778         * sysdeps/unix/sysv/linux/wordsize-64/posix_fallocate64.c: Likewise.
2779         * sysdeps/unix/sysv/linux/posix_fallocate.c (posix_fallocate): Use
2780         SYSCALL_LL to pass both offset and len arguments.
2781         * sysdeps/unix/sysv/linux/posix_fallocate64.c (posix_fallocate64):
2782         Likewise.
2783         * sysdeps/unix/sysv/linux/x86_64/syscalls.list (pwrite64): Add
2784         __libc_pwrite64 alias used by posix_fallocate64.
2785
2786         * sysdeps/unix/sysv/linux/Makefile (test): Add tst-fallocate and
2787         tst-fallocate64.
2788         * sysdeps/unix/sysv/linux/tst-fallocate.c: New file.
2789         * sysdeps/unix/sysv/linux/tst-fallocate64.c: Likewise.
2790         * sysdeps/unix/sysv/linux/tst-fallocate-common.c: Likewise.
2791         * sysdeps/unix/sysv/linux/mips/mips64/n32/fallocate.c: Remove file.
2792         * sysdeps/unix/sysv/linux/mips/mips64/n32/fallocate64.c: Likewise.
2793         * sysdeps/unix/sysv/linux/mips/mips64/n64/fallocate.c: Likewise.
2794         * sysdeps/unix/sysv/linux/mips/mips64/n64/fallocate64.c: Likewise.
2795         * sysdeps/unix/sysv/linux/wordsize-64/fallocate.c: Likewise.
2796         * sysdeps/unix/sysv/linux/wordsize-64/fallocate64.c: Likewise.
2797         * sysdeps/unix/sysv/linux/fallocate.c (fallocate): Use SYSCALL_LL
2798         macro on offset argument.
2799         * sysdeps/unix/sysv/linux/fallocate64.c (fallocate64): Use
2800         SYSCALL_LL64 on offset argument.
2801
2802         * sysdeps/unix/sysv/linux/Makefile (test): Add tst-fallocate and
2803         tst-fallocate64.
2804         * sysdeps/unix/sysv/linux/tst-fallocate.c: New file.
2805         * sysdeps/unix/sysv/linux/tst-fallocate64.c: Likewise.
2806         * sysdeps/unix/sysv/linux/tst-fallocate-common.c: Likewise.
2807         * sysdeps/unix/sysv/linux/mips/mips64/n32/fallocate.c: Remove file.
2808         * sysdeps/unix/sysv/linux/mips/mips64/n32/fallocate64.c: Likewise.
2809         * sysdeps/unix/sysv/linux/mips/mips64/n64/fallocate.c: Likewise.
2810         * sysdeps/unix/sysv/linux/mips/mips64/n64/fallocate64.c: Likewise.
2811         * sysdeps/unix/sysv/linux/wordsize-64/fallocate.c: Likewise.
2812         * sysdeps/unix/sysv/linux/wordsize-64/fallocate64.c: Likewise.
2813         * sysdeps/unix/sysv/linux/fallocate.c (fallocate): Use SYSCALL_LL
2814         macro on offset argument.
2815         * sysdeps/unix/sysv/linux/fallocate64.c (fallocate64): Use
2816         SYSCALL_LL64 on offset argument.
2817         * test-skeleton.c (FAIL_RET): Add macro.
2818         (FAIL_EXIT): Likewise.
2819         (FAIL_EXIT1): Likewise.
2820         (_FAIL): Likewise.
2821
2822 2016-10-07  Florian Weimer  <fweimer@redhat.com>
2823
2824         [BZ #20629]
2825         resolv: Remove RES_USEBSTRING and its implementation.
2826         * resolv/resolv.h (RES_USEBSTRING): Remove.
2827         * resolv/ns_name.c (NS_TYPE_ELT, DNS_LABELTYPE_BITSTRING)
2828         (digitvalue, encode_bitstring, decode_bitstring): Remove.
2829         (ns_name_ntop, ns_name_pton, ns_name_unpack, ns_name_skip)
2830         (labellen): Remove extended label types support.
2831         * resolv/res_debug.c (p_option): Remove RES_USEBSTRING handling.
2832         * resolv/res_init.c (res_setoptions): Likewise.
2833         * resolv/nss_dns/dns-host.c (_nss_dns_gethostbyaddr2_r): Likewise.
2834
2835 2016-10-07  Florian Weimer  <fweimer@redhat.com>
2836
2837         resolv: Remove RES_NOIP6DOTINT and its implementation.
2838         * resolv/resolv.h (RES_DEFAULT): Remove RES_NOIP6DOTINT.
2839         (RES_NOIP6DOTINT): Remove.
2840         * resolv/gethnamaddr.c (gethostbyaddr): Remove RES_NOIP6DOTINT
2841         handling.
2842         * resolv/res_debug.c (p_option): Likewise.
2843         * resolv/res_init.c (res_setoptions): Likewise.
2844         * resolv/nss_dns/dns-host.c (_nss_dns_gethostbyaddr2_r): Likewise.
2845
2846 2016-10-07  Florian Weimer  <fweimer@redhat.com>
2847
2848         resolv: Deprecate unimplemented flags.
2849         * misc/sys/cdefs.h (__glibc_macro_warning1)
2850         (__glibc_macro_warning): Define.
2851         * resolv/resolv.h (RES_AAONLY, RES_PRIMARY, RES_NOCHECKNAME)
2852         (RES_KEEPTSIG): Mark as deprecated.
2853         * resolv/res_debug.c (p_option): Remove RES_AAONLY, RES_PRIMARY,
2854         RES_NOCHECKNAME, RES_KEEPTSIG.
2855         * resolv/res_init.c (res_setoptions): Remove RES_NOCHECKNAME handling.
2856
2857 2016-10-07  Stefan Liebler  <stli@linux.vnet.ibm.com>
2858
2859         * nptl/pt-longjmp.c (DEFINE_LONGJMP): Use libc_ifunc macro.
2860         * sysdeps/unix/sysv/linux/s390/pt-longjmp.c (longjmp, siglongjmp):
2861         Use strong_alias to create symbols for glibc verison 2.19.
2862
2863 2016-10-07  Stefan Liebler  <stli@linux.vnet.ibm.com>
2864
2865         * nptl/pt-vfork.c (DEFINE_VFORK): Use libc_ifunc macro.
2866
2867 2016-10-07  Stefan Liebler  <stli@linux.vnet.ibm.com>
2868
2869         * nptl/pt-system.c (system_ifunc): Use libc_ifunc macro.
2870
2871 2016-10-07  Stefan Liebler  <stli@linux.vnet.ibm.com>
2872
2873         * rt/clock-compat.c (COMPAT_REDIRECT): Use libc_ifunc macro.
2874
2875 2016-10-07  Stefan Liebler  <stli@linux.vnet.ibm.com>
2876
2877         * sysdeps/unix/sysv/linux/powerpc/gettimeofday.c (__gettimeofday):
2878         Use libc_ifunc_hidden and libc_hidden_def macro. Redirect ifunced function
2879         in header for using it as type for ifunc function because __GI_* symbols
2880         for ppc32 do not target the ifunc symbols.
2881         * sysdeps/unix/sysv/linux/powerpc/time.c (time): Likewise.
2882
2883 2016-10-07  Stefan Liebler  <stli@linux.vnet.ibm.com>
2884
2885         * sysdeps/unix/sysv/linux/x86/gettimeofday.c (__gettimeofday):
2886         Use libc_ifunc_hidden macro. Use libc_hidden_def instead of
2887         libc_ifunc_hidden_def.
2888         * sysdeps/unix/sysv/linux/x86/time.c (time): Likewise.
2889         * sysdeps/unix/sysv/linux/i386/gettimeofday.c (__gettimeofday):
2890         Redirect ifunced function in header for using it as type of ifunc'ed
2891         function. Redefine libc_hidden_def to use fallback non ifunc'ed
2892         function for __GI_* symbol.
2893         * sysdeps/unix/sysv/linux/i386/time.c (time): Likewise.
2894         * include/libc-symbols.h
2895         (libc_ifunc_hidden_def, libc_ifunc_hidden_def1): Delete macro.
2896
2897 2016-10-07  Stefan Liebler  <stli@linux.vnet.ibm.com>
2898
2899         [BZ #20478]
2900         * sysdeps/s390/multiarch/ifunc-resolve.h
2901         (s390_vx_libc_ifunc2, s390_libc_ifunc): Use __ifunc from libc-symbols.h
2902         to create ifunc symbols.
2903         (s390_vx_libc_ifunc_init, s390_vx_libc_ifunc_redirected
2904         , s390_vx_libc_ifunc2_redirected, s390_libc_ifunc_init): New define.
2905         * sysdeps/s390/multiarch/memchr.c: Redirect ifunced function in header
2906         for using it as type for ifunc function.
2907         * sysdeps/s390/multiarch/mempcpy.c: Likewise.
2908         * sysdeps/s390/multiarch/rawmemchr.c: Likewise.
2909         * sysdeps/s390/multiarch/stpcpy.c: Likewise.
2910         * sysdeps/s390/multiarch/stpncpy.c: Likewise.
2911         * sysdeps/s390/multiarch/strcat.c: Likewise.
2912         * sysdeps/s390/multiarch/strchr.c: Likewise.
2913         * sysdeps/s390/multiarch/strcmp.c: Likewise.
2914         * sysdeps/s390/multiarch/strcpy.c: Likewise.
2915         * sysdeps/s390/multiarch/strcspn.c: Likewise.
2916         * sysdeps/s390/multiarch/strlen.c: Likewise.
2917         * sysdeps/s390/multiarch/strncmp.c: Likewise.
2918         * sysdeps/s390/multiarch/strncpy.c: Likewise.
2919         * sysdeps/s390/multiarch/strnlen.c: Likewise.
2920         * sysdeps/s390/multiarch/strpbrk.c: Likewise.
2921         * sysdeps/s390/multiarch/strrchr.c: Likewise.
2922         * sysdeps/s390/multiarch/strspn.c: Likewise.
2923         * sysdeps/s390/multiarch/wcschr.c: Likewise.
2924         * sysdeps/s390/multiarch/wcscmp.c: Likewise.
2925         * sysdeps/s390/multiarch/wcspbrk.c: Likewise.
2926         * sysdeps/s390/multiarch/wcsspn.c: Likewise.
2927         * sysdeps/s390/multiarch/wmemchr.c: Likewise.
2928         * sysdeps/s390/multiarch/wmemset.c: Likewise.
2929         * sysdeps/s390/s390-32/multiarch/memcmp.c: Likewise.
2930         * sysdeps/s390/s390-32/multiarch/memcpy.c: Likewise.
2931         * sysdeps/s390/s390-32/multiarch/memset.c: Likewise.
2932         * sysdeps/s390/s390-64/multiarch/memcmp.c: Likewise.
2933         * sysdeps/s390/s390-64/multiarch/memcpy.c: Likewise.
2934         * sysdeps/s390/s390-64/multiarch/memset.c: Likewise.
2935
2936 2016-10-07  Stefan Liebler  <stli@linux.vnet.ibm.com>
2937
2938         * include/libc-symbols.h (__ifunc_resolver):
2939         New macro is used by __ifunc* macros.
2940         (__ifunc): New macro uses gcc attribute ifunc or inline assembly
2941         depending on HAVE_GCC_IFUNC.
2942         (libc_ifunc, libm_ifunc): Use __ifunc as base macro.
2943         (libc_ifunc_redirected, libc_ifunc_hidden, libm_ifunc_init): New macro.
2944         * sysdeps/powerpc/powerpc32/power4/fpu/multiarch/s_finite.c:
2945         Redirect ifunced function in header for using as type for ifunc function.
2946         * sysdeps/powerpc/powerpc32/power4/fpu/multiarch/s_finitef.c: Likewise.
2947         * sysdeps/powerpc/powerpc32/power4/fpu/multiarch/s_isinf.c: Likewise.
2948         * sysdeps/powerpc/powerpc32/power4/fpu/multiarch/s_isinff.c: Likewise.
2949         * sysdeps/powerpc/powerpc32/power4/fpu/multiarch/s_isnan.c: Likewise.
2950         * sysdeps/powerpc/powerpc32/power4/multiarch/memcmp.c: Likewise.
2951         * sysdeps/powerpc/powerpc32/power4/multiarch/memcpy.c: Likewise.
2952         * sysdeps/powerpc/powerpc32/power4/multiarch/memmove.c: Likewise.
2953         * sysdeps/powerpc/powerpc32/power4/multiarch/mempcpy.c: Likewise.
2954         * sysdeps/powerpc/powerpc32/power4/multiarch/memset.c: Likewise.
2955         * sysdeps/powerpc/powerpc32/power4/multiarch/rawmemchr.c: Likewise.
2956         * sysdeps/powerpc/powerpc32/power4/multiarch/strchr.c: Likewise.
2957         * sysdeps/powerpc/powerpc32/power4/multiarch/strlen.c: Likewise.
2958         * sysdeps/powerpc/powerpc32/power4/multiarch/strncmp.c: Likewise.
2959         * sysdeps/powerpc/powerpc32/power4/multiarch/strnlen.c: Likewise.
2960         * sysdeps/powerpc/powerpc64/fpu/multiarch/s_finite.c: Likewise.
2961         * sysdeps/powerpc/powerpc64/fpu/multiarch/s_finitef.c: Likewise.
2962         * sysdeps/powerpc/powerpc64/fpu/multiarch/s_isinf.c: Likewise.
2963         * sysdeps/powerpc/powerpc64/fpu/multiarch/s_isinff.c: Likewise.
2964         * sysdeps/powerpc/powerpc64/fpu/multiarch/s_isnan.c: Likewise.
2965         * sysdeps/powerpc/powerpc64/multiarch/memcmp.c: Likewise.
2966         * sysdeps/powerpc/powerpc64/multiarch/mempcpy.c: Likewise.
2967         * sysdeps/powerpc/powerpc64/multiarch/rawmemchr.c: Likewise.
2968         * sysdeps/powerpc/powerpc64/multiarch/stpncpy.c: Likewise.
2969         * sysdeps/powerpc/powerpc64/multiarch/strcat.c: Likewise.
2970         * sysdeps/powerpc/powerpc64/multiarch/strchr.c: Likewise.
2971         * sysdeps/powerpc/powerpc64/multiarch/strcmp.c: Likewise.
2972         * sysdeps/powerpc/powerpc64/multiarch/strcpy.c: Likewise.
2973         * sysdeps/powerpc/powerpc64/multiarch/strncmp.c: Likewise.
2974         * sysdeps/powerpc/powerpc64/multiarch/strncpy.c: Likewise.
2975         * sysdeps/powerpc/powerpc64/multiarch/strnlen.c: Likewise.
2976         * sysdeps/powerpc/powerpc64/multiarch/strrchr.c: Likewise.
2977         * sysdeps/powerpc/powerpc64/multiarch/strstr.c: Likewise.
2978         * sysdeps/powerpc/powerpc64/multiarch/wcschr.c: Likewise.
2979         * sysdeps/powerpc/powerpc32/power4/fpu/multiarch/s_isnanf.c:
2980         Add libc_hidden_def() and use libc_ifunc_hidden() macro
2981         instead of libc_ifunc() macro.
2982         * sysdeps/powerpc/powerpc64/fpu/multiarch/s_isnanf.c: Likewise.
2983         * sysdeps/powerpc/powerpc64/multiarch/stpcpy.c: Likewise.
2984
2985 2016-10-07  Stefan Liebler  <stli@linux.vnet.ibm.com>
2986
2987         * config.h.in (HAVE_GCC_IFUNC): New undef.
2988         * configure.ac: Add check if gcc supports attribute ifunc feature.
2989         * configure: Regenerated.
2990         * manual/install.texi: Add recommendation for gcc with
2991         indirect-function support.
2992         * INSTALL: Regenerated.
2993
2994 2016-10-06  Joseph Myers  <joseph@codesourcery.com>
2995
2996         * math/math.h [__GLIBC_USE (IEC_60559_BFP_EXT)] (iseqsig): New
2997         macro.
2998         * math/bits/mathcalls.h [__GLIBC_USE (IEC_60559_BFP_EXT)]
2999         (__iseqsig): New declaration.
3000         * math/s_iseqsig_template.c: New file.
3001         * math/Versions (__iseqsigf): New libm symbol at version
3002         GLIBC_2.25.
3003         (__iseqsig): Likewise.
3004         (__iseqsigl): Likewise.
3005         * math/libm-test.inc (iseqsig_test_data): New array.
3006         (iseqsig_test): New function.
3007         (main): Call iseqsig_test.
3008         * math/Makefile (gen-libm-calls): Add s_iseqsigF.
3009         * manual/arith.texi (FP Comparison Functions): Document iseqsig.
3010         * manual/libm-err-tab.pl: Update comment on interfaces without
3011         ulps tabulated.
3012         * sysdeps/generic/fix-fp-int-compare-invalid.h: New file.
3013         * sysdeps/powerpc/fpu/fix-fp-int-compare-invalid.h: Likewise.
3014         * sysdeps/x86/fpu/fix-fp-int-compare-invalid.h: Likewise.
3015         * sysdeps/nacl/libm.abilist: Update.
3016         * sysdeps/unix/sysv/linux/aarch64/libm.abilist: Likewise.
3017         * sysdeps/unix/sysv/linux/alpha/libm.abilist: Likewise.
3018         * sysdeps/unix/sysv/linux/arm/libm.abilist: Likewise.
3019         * sysdeps/unix/sysv/linux/hppa/libm.abilist: Likewise.
3020         * sysdeps/unix/sysv/linux/i386/libm.abilist: Likewise.
3021         * sysdeps/unix/sysv/linux/ia64/libm.abilist: Likewise.
3022         * sysdeps/unix/sysv/linux/m68k/coldfire/libm.abilist: Likewise.
3023         * sysdeps/unix/sysv/linux/m68k/m680x0/libm.abilist: Likewise.
3024         * sysdeps/unix/sysv/linux/microblaze/libm.abilist: Likewise.
3025         * sysdeps/unix/sysv/linux/mips/mips32/libm.abilist: Likewise.
3026         * sysdeps/unix/sysv/linux/mips/mips64/libm.abilist: Likewise.
3027         * sysdeps/unix/sysv/linux/nios2/libm.abilist: Likewise.
3028         * sysdeps/unix/sysv/linux/powerpc/powerpc32/fpu/libm.abilist:
3029         Likewise.
3030         * sysdeps/unix/sysv/linux/powerpc/powerpc32/nofpu/libm.abilist:
3031         Likewise.
3032         * sysdeps/unix/sysv/linux/powerpc/powerpc64/libm-le.abilist:
3033         Likewise.
3034         * sysdeps/unix/sysv/linux/powerpc/powerpc64/libm.abilist:
3035         Likewise.
3036         * sysdeps/unix/sysv/linux/s390/s390-32/libm.abilist: Likewise.
3037         * sysdeps/unix/sysv/linux/s390/s390-64/libm.abilist: Likewise.
3038         * sysdeps/unix/sysv/linux/sh/libm.abilist: Likewise.
3039         * sysdeps/unix/sysv/linux/sparc/sparc32/libm.abilist: Likewise.
3040         * sysdeps/unix/sysv/linux/sparc/sparc64/libm.abilist: Likewise.
3041         * sysdeps/unix/sysv/linux/tile/tilegx/tilegx32/libm.abilist:
3042         Likewise.
3043         * sysdeps/unix/sysv/linux/tile/tilegx/tilegx64/libm.abilist:
3044         Likewise.
3045         * sysdeps/unix/sysv/linux/tile/tilepro/libm.abilist: Likewise.
3046         * sysdeps/unix/sysv/linux/x86_64/64/libm.abilist: Likewise.
3047         * sysdeps/unix/sysv/linux/x86_64/x32/libm.abilist: Likewise.
3048
3049 2016-10-06  Siddhesh Poyarekar  <siddhesh@sourceware.org>
3050
3051         * sysdeps/ieee754/dbl-64/s_sin.c (reduce_and_compute, do_sincos_1,
3052         do_sincos_2, sloww, sloww1): Update comments.
3053
3054         * sysdeps/ieee754/dbl-64/s_sincos.c (__sincos): Adjust calls to
3055         do_sincos_1 and do_sincos_2 to pass a boolean shift_quadrant.
3056
3057         * sysdeps/ieee754/dbl-64/s_sin.c (reduce_and_compute): Make
3058         K boolean and rename it.
3059         (__sin): Adjust.
3060         (__cos): Adjust.
3061
3062 2016-10-06  Rical Jasan  <ricaljasan@pacific.net>
3063             Siddhesh Poyarekar  <siddhesh@sourceware.org>
3064
3065         * manual/nss.texi: Fix typos in the manual.
3066
3067 2016-10-06  Rical Jasan  <ricaljasan@pacific.net>
3068
3069         * manual/contrib.texi: Fix typos in the manual.
3070
3071         * manual/maint.texi: Fix typos in the manual.
3072
3073         * manual/install.texi: Fix typos in the manual.
3074         * INSTALL: Regenerated.
3075
3076         * manual/lang.texi: Fix typos in the manual.
3077
3078         * manual/probes.texi: Fix typos in the manual.
3079
3080         * manual/threads.texi: Fix typos in the manual.
3081
3082         * manual/debug.texi: Fix typos in the manual.
3083
3084         * manual/crypt.texi: Fix typos in the manual.
3085
3086         * manual/conf.texi: Fix typos in the manual.
3087
3088         * manual/sysinfo.texi: Fix typos in the manual.
3089
3090         * manual/users.texi: Fix typos in the manual.
3091
3092         * manual/job.texi: Fix typos in the manual.
3093
3094         * manual/process.texi: Fix typos in the manual.
3095
3096         * manual/argp.texi: Fix typos in the manual.
3097         * manual/getopt.texi: Likewise.
3098         * manual/startup.texi: Likewise.
3099
3100         * manual/signal.texi: Fix typos in the manual.
3101
3102         * manual/setjmp.texi: Fix typos in the manual.
3103
3104         * manual/resource.texi: Fix typos in the manual.
3105
3106         * manual/time.texi: Fix typos in the manual.
3107
3108         * manual/arith.texi: Fix typos in the manual.
3109
3110         * manual/math.texi: Fix typos in the manual.
3111
3112         * manual/syslog.texi: Fix typos in the manual.
3113
3114         * manual/terminal.texi: Fix typos in the manual.
3115
3116         * manual/socket.texi: Fix typos in the manual.
3117
3118         * manual/filesys.texi: Fix typos in the manual.
3119
3120         * manual/llio.texi: Fix typos in the manual.
3121
3122         * manual/stdio.text: Fix typos in the manual.
3123
3124 2016-10-05  Siddhesh Poyarekar  <siddhesh@sourceware.org>
3125
3126         * sysdeps/ieee754/dbl-64/s_sin.c (do_sincos_1): Check N
3127         instead of K1.
3128
3129         * sysdeps/ieee754/dbl-64/s_sin.c (do_sincos_1): Rename K to
3130         SHIFT_QUADRANT and make it bool.
3131         (do_sincos_2): Likewise.
3132         (sloww): Likewise.
3133         (sloww1): Likewise.
3134         (__sin): Adjust calls to do_sincos_1 and do_sincos_2.
3135         (__cos): Likewise.
3136
3137 2016-10-05  Tulio Magno Quites Machado Filho  <tuliom@linux.vnet.ibm.com>
3138
3139         * sysdeps/powerpc/fpu/libm-test-ulps: Regenerated.
3140
3141 2016-10-04  Joseph Myers  <joseph@codesourcery.com>
3142
3143         * include/limits.h [__GLIBC_USE (IEC_60559_BFP_EXT)] (LONG_WIDTH):
3144         Define to __WORDSIZE, not conditional on [LONG_MAX ==
3145         0x7fffffffL].
3146         [__GLIBC_USE (IEC_60559_BFP_EXT)] (ULONG_WIDTH): Likewise.
3147
3148 2016-10-04  Tulio Magno Quites Machado Filho  <tuliom@linux.vnet.ibm.com>
3149
3150         * sysdeps/powerpc/sys/platform/ppc.h (__ppc_get_timebase): Replace
3151         inline by __inline__.
3152         (__ppc_yield, __ppc_mdoio, __ppc_mdoom, __ppc_set_ppr_med): Likewise.
3153         (__ppc_set_ppr_med_low, __ppc_set_ppr_low): Likewise.
3154         (__ppc_set_ppr_very_low, __ppc_set_ppr_med_high): Likewise.
3155         * sysdeps/unix/sysv/linux/powerpc/sys/ucontext.h: Require
3156         sigset_t from signal.h.
3157         * sysdeps/unix/sysv/linux/powerpc/sys/user.h: Include stddef.h,
3158         which is already required.
3159
3160 2016-10-04  Stefan Liebler  <stli@linux.vnet.ibm.com>
3161
3162         * sysdeps/s390/fpu/libm-test-ulps: Regenerated.
3163
3164 2016-10-03  Joseph Myers  <joseph@codesourcery.com>
3165
3166         * sysdeps/gnu/netinet/tcp.h (TCP_REPAIR_WINDOW): New macro.
3167         (struct tcp_repair_window): New type.
3168
3169 2016-10-02  Adhemerval Zanella  <adhemerval.zanella@linaro.org>
3170
3171         * libio/tst-memstream3.c: Include string.h.
3172
3173 2016-09-30  Adhemerval Zanella  <adhemerval.zanella@linaro.org>
3174
3175         [BZ #18241]
3176         [BZ #20181]
3177         * libio/Makefile (test): Add tst-memstream3 and tst-wmemstream3.
3178         * libio/memstream.c (_IO_mem_sync): Only append a null byte if
3179         write position is at the end the buffer.
3180         * libio/wmemstream.c (_IO_wmem_sync): Likewise.
3181         * libio/strops.c (_IO_str_switch_to_get_mode): New function.
3182         (_IO_str_seekoff): Set correct offset from negative displacement and
3183         set EINVAL for invalid ones.
3184         * libio/wstrops.c (enlarge_userbuf): Use correct function to calculate
3185         buffer length.
3186         (_IO_wstr_switch_to_get_mode): New function.
3187         (_IO_wstr_seekoff): Set correct offset from negative displacement and
3188         set EINVAL for invalid ones.
3189         * libio/tst-memstream3.c: New file.
3190         * libio/tst-wmemstream3.c: Likewise.
3191         * manual/examples/memstrm.c: Remove warning when priting size_t.
3192
3193 2016-09-30  Joseph Myers  <joseph@codesourcery.com>
3194
3195         * sysdeps/ieee754/dbl-64/dla.h [__FP_FAST_FMA] (DLA_FMS): Define
3196         macro to use __builtin_fma.
3197         * sysdeps/x86_64/fpu/dla.h: Remove file.
3198
3199         * sysdeps/ieee754/ldbl-128ibm/bits/iscanonical.h
3200         [__NO_LONG_DOUBLE_MATH] (__iscanonicall): Do not declare.
3201         [__NO_LONG_DOUBLE_MATH] (iscanonical): Define to evaluate to 1.
3202
3203 2016-09-30  Carlos O'Donell  <carlos@redhat.com>
3204
3205         [BZ #20292]
3206         * elf/Makefile (routines): Add dl-addr-obj.
3207         [ifeq (yesyes,$(have-fpie)$(build-shared))] (tests): Add
3208         tst-_dl_addr_inside_object.
3209         [ifeq (yesyes,$(have-fpie)$(build-shared))] (tests-pie): Likewise.
3210         [ifeq (yesyes,$(have-fpie)$(build-shared))]
3211         ($(objpfx)tst-_dl_addr_inside_object): Add $(objpfx)dl-addr-obj.os.
3212         [ifeq (yesyes,$(have-fpie)$(build-shared))]
3213         (CFLAGS-tst-_dl_addr_inside_object.c): Add $(PIE-ccflag).
3214         * elf/dl-addr.c: Remove _dl_addr_inside_object function.
3215         * elf/dl-open.c: Likewise.
3216         * elf/dl-addr-obj.c: New file.
3217         * elf/tst-_dl_addr_inside_object.c: New file.
3218
3219 2016-09-30  Joseph Myers  <joseph@codesourcery.com>
3220
3221         * math/math.h [__GLIBC_USE (IEC_60559_BFP_EXT)]: Include
3222         <bits/iscanonical.h>.
3223         * bits/iscanonical.h: New file.
3224         * math/s_iscanonicall.c: Likewise.
3225         * math/Versions (__iscanonicall): New libm symbol at version
3226         GLIBC_2.25.
3227         * math/libm-test.inc (iscanonical_test_data): New array.
3228         (iscanonical_test): New function.
3229         (main): Call iscanonical_test.
3230         * math/Makefile (headers): Add bits/iscanonical.h.
3231         (type-ldouble-routines): Add s_iscanonicall.
3232         * manual/arith.texi (Floating Point Classes): Document
3233         iscanonical.
3234         * manual/libm-err-tab.pl: Update comment on interfaces without
3235         ulps tabulated.
3236         * sysdeps/ieee754/ldbl-128ibm/bits/iscanonical.h: New file.
3237         * sysdeps/ieee754/ldbl-128ibm/s_iscanonicall.c: Likewise.
3238         * sysdeps/ieee754/ldbl-128ibm/test-iscanonical-ldbl-128ibm.c:
3239         Likewise.
3240         * sysdeps/ieee754/ldbl-128ibm/Makefile (tests): Add
3241         test-iscanonical-ldbl-128ibm.
3242         * sysdeps/ieee754/ldbl-96/bits/iscanonical.h: New file.
3243         * sysdeps/ieee754/ldbl-96/s_iscanonicall.c: Likewise.
3244         * sysdeps/ieee754/ldbl-96/test-iscanonical-ldbl-96.c: Likewise.
3245         * sysdeps/ieee754/ldbl-96/Makefile: Likewise.
3246         * sysdeps/unix/sysv/linux/i386/libm.abilist: Update.
3247         * sysdeps/unix/sysv/linux/ia64/libm.abilist: Likewise.
3248         * sysdeps/unix/sysv/linux/m68k/m680x0/libm.abilist: Likewise.
3249         * sysdeps/unix/sysv/linux/powerpc/powerpc32/fpu/libm.abilist:
3250         Likewise.
3251         * sysdeps/unix/sysv/linux/powerpc/powerpc32/nofpu/libm.abilist:
3252         Likewise.
3253         * sysdeps/unix/sysv/linux/powerpc/powerpc64/libm-le.abilist:
3254         Likewise.
3255         * sysdeps/unix/sysv/linux/powerpc/powerpc64/libm.abilist:
3256         Likewise.
3257         * sysdeps/unix/sysv/linux/x86_64/64/libm.abilist: Likewise.
3258         * sysdeps/unix/sysv/linux/x86_64/x32/libm.abilist: Likewise.
3259
3260 2016-09-29  Adhemerval Zanella  <adhemerval.zanella@linaro.org>
3261
3262         * string/bits/string3.h: Remove C++ style comments.
3263
3264 2016-09-29  Siddhesh Poyarekar  <siddhesh@sourceware.org>
3265
3266         * sysdeps/ieee754/dbl-64/s_sin.c (do_sincos_1): Use copysign
3267         instead of ternary condition.
3268         (do_sincos_2): Likewise.
3269         (__sin): Likewise.
3270         (__cos): Likewise.
3271         (slow): Likewise.
3272         (sloww): Likewise.
3273         (sloww1): Likewise.
3274         (bsloww): Likewise.
3275         (bsloww1): Likewise.
3276
3277         * sysdeps/ieee754/dbl-64/s_sin.c (do_cos_slow): use copysign
3278         instead of ternary condition.
3279         (do_sin_slow): Likewise.
3280         (do_sincos_1): Likewise.
3281         (do_sincos_2): Likewise.
3282         (__cos): Likewise.
3283         (sloww): Likewise.
3284         (sloww1): Likewise.
3285         (sloww2): Likewise.
3286         (bsloww): Likewise.
3287         (bsloww1): Likewise.
3288         (bsloww2): Likewise.
3289
3290         * sysdeps/ieee754/dbl-64/s_sin.c (slow1): Consolidate sign
3291         check from here...
3292         (slow2): ... and here...
3293         (__sin): ... to here.
3294
3295 2016-09-28  Joseph Myers  <joseph@codesourcery.com>
3296
3297         * math/math.h
3298         [__GLIBC_USE (IEC_60559_BFP_EXT) && !__SUPPORT_SNAN__] (iszero):
3299         Cast argument to its own type.
3300         * math/test-iszero-excess-precision.c: New file.
3301         * math/Makefile (tests): Add test-iszero-excess-precision.
3302         (CFLAGS-test-iszero-excess-precision.c): New variable.
3303
3304 2016-09-28  Rasmus Villemoes <rv@rasmusvillemoes.dk>
3305
3306         * sysdeps/unix/sysv/linux/spawni.c (posix_spawn_args): Remove pipe
3307         field, add err field.
3308         (__spawni_child): Report error through err member instead of pipe.
3309         (__spawnix): Likewise.
3310
3311 2016-09-28  Zack Weinberg  <zackw@panix.com>
3312
3313         * scripts/check-installed-headers.sh: Generalize treatment of
3314         sys/elf.h to all target architectures.
3315
3316         * sysdeps/unix/sysv/linux/s390/sys/ucontext.h: Restore accidentally-
3317         deleted typedef ucontext_t.
3318
3319 2016-09-26  Adhemerval Zanella  <adhemerval.zanella@linaro.org>
3320
3321         * sysdeps/unix/sysdep.h (__INTERNAL_SYSCALL0): New macro.
3322         (__INTERNAL_SYSCALL1): Likewise.
3323         (__INTERNAL_SYSCALL2): Likewise.
3324         (__INTERNAL_SYSCALL3): Likewise.
3325         (__INTERNAL_SYSCALL4): Likewise.
3326         (__INTERNAL_SYSCALL5): Likewise.
3327         (__INTERNAL_SYSCALL6): Likewise.
3328         (__INTERNAL_SYSCALL7): Likewise.
3329         (__INTERNAL_SYSCALL_NARGS_X): Likewise.
3330         (__INTERNAL_SYSCALL_NARGS): Likewise.
3331         (__INTERNAL_SYSCALL_DISP): Likewise.
3332         (INTERNAL_SYSCALL_CALL): Likewise.
3333         (__SYSCALL0): Rename to __INLINE_SYSCALL0.
3334         (__SYSCALL1): Rename to __INLINE_SYSCALL1.
3335         (__SYSCALL2): Rename to __INLINE_SYSCALL2.
3336         (__SYSCALL3): Rename to __INLINE_SYSCALL3.
3337         (__SYSCALL4): Rename to __INLINE_SYSCALL4.
3338         (__SYSCALL5): Rename to __INLINE_SYSCALL5.
3339         (__SYSCALL6): Rename to __INLINE_SYSCALL6.
3340         (__SYSCALL7): Rename to __INLINE_SYSCALL7.
3341         (__SYSCALL_NARGS_X): Rename to __INLINE_SYSCALL_NARGS_X.
3342         (__SYSCALL_NARGS): Rename to __INLINE_SYSCALL_NARGS.
3343         (__SYSCALL_DISP): Rename to __INLINE_SYSCALL_DISP.
3344         (__SYSCALL_CALL): Rename to INLINE_SYSCALL_CALL.
3345         (SYSCALL_CANCEL): Replace __SYSCALL_CALL with INLINE_SYSCALL_CALL.
3346
3347 2016-09-23  Joseph Myers  <joseph@codesourcery.com>
3348
3349         * math/math.h [__GLIBC_USE (IEC_60559_BFP_EXT)] (iszero): New
3350         macro.
3351         * math/libm-test.inc (iszero_test_data): New array.
3352         (iszero_test): New function.
3353         (main): Call iszero_test.
3354         * manual/arith.texi (Floating Point Classes): Document iszero.
3355         * manual/libm-err-tab.pl: Update comment on interfaces without
3356         ulps tabulated.
3357
3358 2016-09-23  Zack Weinberg  <zackw@panix.com>
3359
3360         * scripts/check-installed-headers.sh: New script.
3361         * Rules: In each directory that defines header files to be installed,
3362         run check-installed-headers.sh on them as a special test.
3363         * Makefile: Likewise for the headers installed at top level.
3364
3365         * include/aliases.h, include/alloca.h, include/argz.h
3366         * include/arpa/nameser.h, include/arpa/nameser_compat.h
3367         * include/elf.h, include/envz.h, include/err.h
3368         * include/execinfo.h, include/fpu_control.h, include/getopt.h
3369         * include/gshadow.h, include/ifaddrs.h, include/libintl.h
3370         * include/link.h, include/malloc.h, include/mcheck.h
3371         * include/mntent.h, include/netinet/ether.h
3372         * include/nss.h, include/obstack.h, include/printf.h
3373         * include/pty.h, include/resolv.h, include/rpc/auth.h
3374         * include/rpc/auth_des.h, include/rpc/auth_unix.h
3375         * include/rpc/clnt.h, include/rpc/des_crypt.h
3376         * include/rpc/key_prot.h, include/rpc/netdb.h
3377         * include/rpc/pmap_clnt.h, include/rpc/pmap_prot.h
3378         * include/rpc/pmap_rmt.h, include/rpc/rpc.h
3379         * include/rpc/rpc_msg.h, include/rpc/svc.h
3380         * include/rpc/svc_auth.h, include/rpc/xdr.h
3381         * include/rpcsvc/nis_callback.h, include/rpcsvc/nislib.h
3382         * include/rpcsvc/yp.h, include/rpcsvc/ypclnt.h
3383         * include/rpcsvc/ypupd.h, include/shadow.h
3384         * include/stdio_ext.h, include/sys/epoll.h
3385         * include/sys/file.h, include/sys/gmon.h, include/sys/ioctl.h
3386         * include/sys/prctl.h, include/sys/profil.h
3387         * include/sys/statfs.h, include/sys/sysctl.h
3388         * include/sys/sysinfo.h, include/ttyent.h, include/utmp.h
3389         * sysdeps/arm/nacl/include/bits/setjmp.h
3390         * sysdeps/mips/include/sys/asm.h
3391         * sysdeps/unix/sysv/linux/include/sys/sysinfo.h
3392         * sysdeps/unix/sysv/linux/include/sys/timex.h
3393         * sysdeps/x86/fpu/include/bits/fenv.h:
3394         Add #ifndef _ISOMAC guard around internal declarations.
3395         Add multiple-inclusion guard if not already present.
3396
3397 2016-09-23  Zack Weinberg  <zackw@panix.com>
3398
3399         * sysdeps/generic/sys/ucontext.h
3400         * sysdeps/arm/sys/ucontext.h
3401         * sysdeps/i386/sys/ucontext.h
3402         * sysdeps/m68k/sys/ucontext.h
3403         * sysdeps/mips/sys/ucontext.h
3404         * sysdeps/unix/sysv/linux/aarch64/sys/ucontext.h
3405         * sysdeps/unix/sysv/linux/alpha/sys/ucontext.h
3406         * sysdeps/unix/sysv/linux/arm/sys/ucontext.h
3407         * sysdeps/unix/sysv/linux/hppa/sys/ucontext.h
3408         * sysdeps/unix/sysv/linux/ia64/sys/ucontext.h
3409         * sysdeps/unix/sysv/linux/m68k/sys/ucontext.h
3410         * sysdeps/unix/sysv/linux/mips/sys/ucontext.h
3411         * sysdeps/unix/sysv/linux/nios2/sys/ucontext.h
3412         * sysdeps/unix/sysv/linux/powerpc/sys/ucontext.h
3413         * sysdeps/unix/sysv/linux/s390/sys/ucontext.h
3414         * sysdeps/unix/sysv/linux/sh/sys/ucontext.h
3415         * sysdeps/unix/sysv/linux/sparc/sys/ucontext.h
3416         * sysdeps/unix/sysv/linux/tile/sys/ucontext.h
3417         * sysdeps/unix/sysv/linux/x86/sys/ucontext.h:
3418         Include both bits/sigcontext.h and bits/sigstack.h.
3419         Fix grammar error in comment, if present.
3420
3421         * bits/sigstack.h
3422         * sysdeps/unix/sysv/linux/aarch64/bits/sigstack.h
3423         * sysdeps/unix/sysv/linux/alpha/bits/sigstack.h
3424         * sysdeps/unix/sysv/linux/bits/sigstack.h
3425         * sysdeps/unix/sysv/linux/ia64/bits/sigstack.h
3426         * sysdeps/unix/sysv/linux/mips/bits/sigstack.h
3427         * sysdeps/unix/sysv/linux/powerpc/bits/sigstack.h
3428         * sysdeps/unix/sysv/linux/sparc/bits/sigstack.h
3429         * bits/sigcontext.h
3430         * sysdeps/mach/hurd/i386/bits/sigcontext.h
3431         * sysdeps/unix/sysv/linux/bits/sigcontext.h
3432         * sysdeps/unix/sysv/linux/ia64/bits/sigcontext.h
3433         * sysdeps/unix/sysv/linux/sparc/bits/sigcontext.h:
3434         Add multiple inclusion guard.  Permit inclusion by sys/ucontext.h
3435         as well as signal.h, if this was not already allowed.  Request
3436         definition of size_t if necessary.  Minimize semantically-null
3437         differences across files.
3438
3439 2016-09-23  Zack Weinberg  <zackw@panix.com>
3440
3441         * time/time.h, bits/time.h, sysdeps/unix/sysv/linux/bits/time.h:
3442         Remove all logic conditional on __need macros.  Move all the
3443         conditionally defined types to their own headers...
3444         * time/bits/types/clock_t.h: Define clock_t here.
3445         * time/bits/types/clockid_t.h: Define clockid_t here.
3446         * time/bits/types/struct_itimerspec.h: Define struct itimerspec here.
3447         * time/bits/types/struct_timespec.h: Define struct timespec here.
3448         * time/bits/types/struct_timeval.h: Define struct timeval here.
3449         * time/bits/types/struct_tm.h: Define struct tm here.
3450         * time/bits/types/time_t.h: Define time_t here.
3451         * time/bits/types/timer_t.h: Define timer_t here.
3452         * time/Makefile: Install the new headers.
3453
3454         * bits/resource.h, io/fcntl.h, io/sys/poll.h, io/sys/stat.h
3455         * io/utime.h, misc/sys/select.h, posix/sched.h, posix/sys/times.h
3456         * posix/sys/types.h, resolv/netdb.h, rt/aio.h, rt/mqueue.h
3457         * signal/signal.h, pthread/semaphore.h, sysdeps/nptl/pthread.h
3458         * sysdeps/unix/sysv/linux/alpha/bits/resource.h
3459         * sysdeps/unix/sysv/linux/alpha/sys/acct.h
3460         * sysdeps/unix/sysv/linux/bits/resource.h
3461         * sysdeps/unix/sysv/linux/bits/timex.h
3462         * sysdeps/unix/sysv/linux/mips/bits/resource.h
3463         * sysdeps/unix/sysv/linux/net/ppp_defs.h
3464         * sysdeps/unix/sysv/linux/sparc/bits/resource.h
3465         * sysdeps/unix/sysv/linux/sys/acct.h
3466         * sysdeps/unix/sysv/linux/sys/timerfd.h
3467         * sysvipc/sys/msg.h, sysvipc/sys/sem.h, sysvipc/sys/shm.h
3468         * time/sys/time.h, time/sys/timeb.h
3469         Use the new bits/types headers.
3470
3471         * include/time.h: Remove __need logic.
3472         * include/bits/time.h
3473         * include/bits/types/clock_t.h, include/bits/types/clockid_t.h
3474         * include/bits/types/time_t.h, include/bits/types/timer_t.h
3475         * include/bits/types/struct_itimerspec.h
3476         * include/bits/types/struct_timespec.h
3477         * include/bits/types/struct_timeval.h
3478         * include/bits/types/struct_tm.h:
3479         New wrapper headers.
3480
3481 2016-09-23  Zack Weinberg  <zackw@panix.com>
3482
3483         * sysdeps/mach/hurd/net/if_ppp.h
3484         * sysdeps/unix/sysv/linux/net/if_ppp.h:
3485         Only define struct ifpppstatsreq and struct ifpppcstatsreq
3486         if __USE_MISC is defined, to ensure struct ifreq is declared.
3487
3488         * inet/netinet/ether.h: Condition all function prototypes
3489         on __USE_MISC, to ensure struct ether_addr is declared.
3490
3491         * socket/bits/types/struct_osockaddr.h: New header.
3492         * include/bits/types/struct_osockaddr.h: New wrapper.
3493         * socket/Makefile: Install the new header.
3494         * socket/sys/socket.h, inet/protocols/talkd.h:
3495         Refer to bits/types/struct_osockaddr.h for the definition of
3496         struct osockaddr.
3497
3498 2016-09-23  Zack Weinberg  <zackw@panix.com>
3499
3500         * bits/in.h, gmon/sys/gmon.h, inet/netinet/igmp.h
3501         * inet/protocols/routed.h, inet/protocols/talkd.h
3502         * inet/protocols/timed.h, io/fts.h, nptl_db/thread_db.h
3503         * resolv/arpa/nameser.h, resolv/resolv.h, sunrpc/rpc/rpc_des.h
3504         * sysdeps/generic/netinet/if_ether.h
3505         * sysdeps/generic/netinet/in_systm.h
3506         * sysdeps/generic/netinet/ip.h, sysdeps/generic/netinet/tcp.h
3507         * sysdeps/gnu/netinet/ip_icmp.h, sysdeps/gnu/netinet/tcp.h
3508         * sysdeps/gnu/netinet/udp.h, sysdeps/mach/hurd/net/ethernet.h
3509         * sysdeps/mach/hurd/net/if_arp.h
3510         * sysdeps/mach/hurd/net/if_ppp.h
3511         * sysdeps/mach/hurd/net/route.h, sysdeps/mach/sys/reboot.h
3512         * sysdeps/unix/sysv/linux/bits/in.h
3513         * sysdeps/unix/sysv/linux/net/ethernet.h
3514         * sysdeps/unix/sysv/linux/net/if_arp.h
3515         * sysdeps/unix/sysv/linux/net/if_ppp.h
3516         * sysdeps/unix/sysv/linux/net/if_shaper.h
3517         * sysdeps/unix/sysv/linux/net/route.h
3518         * sysdeps/unix/sysv/linux/netinet/if_ether.h
3519         * sysdeps/unix/sysv/linux/netinet/if_fddi.h
3520         * sysdeps/unix/sysv/linux/netinet/if_tr.h
3521         * sysdeps/unix/sysv/linux/netipx/ipx.h
3522         * sysdeps/unix/sysv/linux/sys/acct.h
3523         * include/arpa/nameser.h, include/resolv.h:
3524         Change all uses of u_char to unsigned char,
3525         u_short and ushort to unsigned short, u_int and uint to unsigned int,
3526         u_long and ulong to unsigned long, u_int8_t to uint8_t,
3527         u_int16_t to uint16_t, u_int32_t to uint32_t, quad_t to int64_t,
3528         and u_int64_t and u_quad_t to uint64_t.
3529
3530         * mach/sys/reboot.h: Remove two casts of integer literals
3531         to the types they already have.
3532
3533         * bits/in.h: Correct error in description of IP_MULTICAST_LOOP.
3534         * sysdeps/unix/sysv/linux/bits/in.h: Likewise.
3535         * sysdeps/unix/sysv/linux/netinet/if_ether.h: Change a comment
3536         from referring to 'unsigned char' to 'uint8_t' for consistency with
3537         the macro definition below.
3538
3539         * gmon/sys/gmon.h, inet/netinet/igmp.h, inet/protocols/talkd.h
3540         * io/fts.h, resolv/arpa/nameser.h, resolv/resolv.h
3541         * sunrpc/rpc/rpc_des.h, sysdeps/generic/netinet/ip.h
3542         * sysdeps/gnu/netinet/tcp.h, sysdeps/gnu/netinet/udp.h
3543         * sysdeps/mach/hurd/net/if_ppp.h, sysdeps/unix/sysv/linux/net/if_ppp.h
3544         * sysdeps/unix/sysv/linux/sys/acct.h
3545         * include/arpa/nameser.h, include/resolv.h:
3546         Fix indentation disrupted by mechanical edits.
3547
3548         * inet/protocols/talkd.h, resolv/arpa/nameser.h
3549         * sysdeps/generic/netinet/in_systm.h
3550         * sysdeps/gnu/netinet/ip_icmp.h, sysdeps/gnu/netinet/tcp.h
3551         * sysdeps/gnu/netinet/udp.h
3552         * sysdeps/unix/sysv/linux/net/ethernet.h
3553         * sysdeps/unix/sysv/linux/net/if_arp.h
3554         * sysdeps/unix/sysv/linux/net/if_ppp.h
3555         * sysdeps/unix/sysv/linux/net/if_shaper.h
3556         * sysdeps/unix/sysv/linux/netinet/if_fddi.h
3557         * sysdeps/unix/sysv/linux/netinet/if_tr.h
3558         * sysdeps/unix/sysv/linux/netipx/ipx.h
3559         * sysdeps/unix/sysv/linux/sys/acct.h
3560         Include stdint.h for uintNN_t definitions.
3561         Don't include sys/cdefs.h, features.h, or asm/types.h directly.
3562
3563 2016-09-23  Zack Weinberg  <zackw@panix.com>
3564
3565         * rpcsvc/nislib.h: Include rpcsvc/nis.h.
3566         * sysdeps/unix/sysv/linux/netrose/rose.h:
3567         Include sys/socket.h and netax25/ax25.h.
3568
3569         * inet/netinet/icmp6.h, inet/netinet/ip6.h
3570         * resolv/arpa/nameser_compat.h:
3571         Use __BYTE_ORDER etc. instead of BYTE_ORDER etc.
3572
3573         * sysdeps/unix/sysv/linux/sys/quota.h:
3574         Use __caddr_t instead of caddr_t.
3575         * sysdeps/unix/sysv/linux/sys/timerfd.h:
3576         Use __clockid_t instead of clockid_t.
3577
3578         * sysvipc/sys/ipc.h: Remove unnecessary #warning.
3579
3580         * argp/argp.h: Check whether _LIBC is defined before expanding it.
3581         * posix/glob.h: Check whether __USE_XOPEN2K8 is defined instead of
3582         expanding it.
3583
3584         * misc/sys/cdefs.h: Tidy up conditional nest defining __flexarr.
3585         Define __glibc_c99_flexarr_available to 1 when the compiler
3586         supports C99-compatible flexible array members, 0 otherwise.
3587         * sysdeps/unix/sysv/linux/bits/socket.h
3588         * sysdeps/mach/hurd/bits/socket.h
3589         * bits/socket.h: Use __glibc_c99_flexarr_available in
3590         definitions of struct cmsghdr and CMSG_DATA.
3591
3592 2016-09-23  Florian Weimer  <fweimer@redhat.com>
3593
3594         * manual/nss.texi (NSS Modules Interface): Adjust function return
3595         type to enum nss_status.  Document errnop argument.  Clarify
3596         h_errnop semantics.  Fix cross-reference formatting.
3597         (NSS Module Function Internals): Mention that *errnop needs to be
3598         set on failure, but not to zero.
3599
3600 2016-09-23  Florian Weimer  <fweimer@redhat.com>
3601
3602         * io/tst-open-tmpfile.c (wrap_open64, wrap_openat64)
3603         (get_random_name): New functions.
3604         (check_wrapper_flags_mode): Use linkat to give the new file a name
3605         determined by get_random_name.
3606         (do_test): Add calls to test open64 and openat64.
3607
3608 2016-09-23  Florian Weimer  <fweimer@redhat.com>
3609
3610         * test-skeleton.c: Remove #include <stdarg.h>.
3611
3612 2016-09-21  Alexandre Oliva <aoliva@redhat.com>
3613
3614         [BZ #19826]
3615         * elf/dl-tls.c (_dl_allocate_tls_init): Restore DTV early
3616         initialization of static TLS entries.
3617         * elf/dl-reloc.c (_dl_nothread_init_static_tls): Likewise.
3618         * nptl/allocatestack.c (init_one_static_tls): Likewise.
3619
3620 2016-09-22  Samuel Thibault  <samuel.thibault@ens-lyon.org>
3621
3622         * hurd/hurdmalloc.c (malloc_fork_prepare): Rename to
3623         _hurd_malloc_fork_prepare.
3624         (malloc_fork_parent): Rename to _hurd_malloc_fork_parent.
3625         (malloc_fork_child): Rename to _hurd_malloc_fork_child.
3626         (_hurd_fork_prepare_hook): Drop malloc_fork_prepare.
3627         (_hurd_fork_parent_hook): Drop malloc_fork_parent.
3628         (_hurd_fork_child_hook): Drop malloc_fork_child.
3629         * hurd/hurdmalloc.h (_hurd_malloc_fork_prepare,
3630         _hurd_malloc_fork_parent, _hurd_malloc_fork_child): Add declarations.
3631         * sysdeps/mach/hurd/fork.c (__fork): Call __malloc_fork_lock_parent
3632         after locking locks (notably hurd_dtable_lock). Call
3633         _hurd_malloc_fork_prepare after that. Call _hurd_malloc_fork_parent
3634         before __malloc_fork_unlock_parent and _hurd_malloc_fork_child before
3635         __malloc_fork_unlock_child.
3636         * sysdeps/mach/i386/syscall.S (syscall): Push back syscall number.
3637
3638 2016-09-21  James Greenhalgh  <james.greenhalgh@arm.com>
3639
3640         * soft-fp/extendhftf2.c: New.
3641         * soft-fp/fixhfti.c: Likewise.
3642         * soft-fp/fixunshfti.c: Likewise.
3643         * soft-fp/floattihf.c: Likewise.
3644         * soft-fp/floatuntihf.c: Likewise.
3645         * soft-fp/half.h: Likewise.
3646         * soft-fp/trunctfhf2.c: Likewise.
3647
3648 2016-09-21  Joseph Myers  <joseph@codesourcery.com>
3649
3650         * math/math.h [__GLIBC_USE (IEC_60559_BFP_EXT)] (issubnormal): New
3651         macro.
3652         * math/libm-test.inc (issubnormal_test_data): New array.
3653         (issubnormal_test): New function.
3654         * manual/arith.texi (Floating Point Classes): Document
3655         issubnormal.
3656         * manual/libm-err-tab.pl: Update comment on interfaces without
3657         ulps tabulated.
3658
3659         * sysdeps/generic/stdint.h: Define
3660         __GLIBC_INTERNAL_STARTING_HEADER_IMPLEMENTATION and include
3661         <bits/libc-header-start.h> instead of including <features.h>.
3662         [__GLIBC_USE (IEC_60559_BFP_EXT)] (INT8_WIDTH): New macro.
3663         [__GLIBC_USE (IEC_60559_BFP_EXT)] (UINT8_WIDTH): Likewise.
3664         [__GLIBC_USE (IEC_60559_BFP_EXT)] (INT16_WIDTH): Likewise.
3665         [__GLIBC_USE (IEC_60559_BFP_EXT)] (UINT16_WIDTH): Likewise.
3666         [__GLIBC_USE (IEC_60559_BFP_EXT)] (INT32_WIDTH): Likewise.
3667         [__GLIBC_USE (IEC_60559_BFP_EXT)] (UINT32_WIDTH): Likewise.
3668         [__GLIBC_USE (IEC_60559_BFP_EXT)] (INT64_WIDTH): Likewise.
3669         [__GLIBC_USE (IEC_60559_BFP_EXT)] (UINT64_WIDTH): Likewise.
3670         [__GLIBC_USE (IEC_60559_BFP_EXT)] (INT_LEAST8_WIDTH): Likewise.
3671         [__GLIBC_USE (IEC_60559_BFP_EXT)] (UINT_LEAST8_WIDTH): Likewise.
3672         [__GLIBC_USE (IEC_60559_BFP_EXT)] (INT_LEAST16_WIDTH): Likewise.
3673         [__GLIBC_USE (IEC_60559_BFP_EXT)] (UINT_LEAST16_WIDTH): Likewise.
3674         [__GLIBC_USE (IEC_60559_BFP_EXT)] (INT_LEAST32_WIDTH): Likewise.
3675         [__GLIBC_USE (IEC_60559_BFP_EXT)] (UINT_LEAST32_WIDTH): Likewise.
3676         [__GLIBC_USE (IEC_60559_BFP_EXT)] (INT_LEAST64_WIDTH): Likewise.
3677         [__GLIBC_USE (IEC_60559_BFP_EXT)] (UINT_LEAST64_WIDTH): Likewise.
3678         [__GLIBC_USE (IEC_60559_BFP_EXT)] (INT_FAST8_WIDTH): Likewise.
3679         [__GLIBC_USE (IEC_60559_BFP_EXT)] (UINT_FAST8_WIDTH): Likewise.
3680         [__GLIBC_USE (IEC_60559_BFP_EXT)] (INT_FAST16_WIDTH): Likewise.
3681         [__GLIBC_USE (IEC_60559_BFP_EXT)] (UINT_FAST16_WIDTH): Likewise.
3682         [__GLIBC_USE (IEC_60559_BFP_EXT)] (INT_FAST32_WIDTH): Likewise.
3683         [__GLIBC_USE (IEC_60559_BFP_EXT)] (UINT_FAST32_WIDTH): Likewise.
3684         [__GLIBC_USE (IEC_60559_BFP_EXT)] (INT_FAST64_WIDTH): Likewise.
3685         [__GLIBC_USE (IEC_60559_BFP_EXT)] (UINT_FAST64_WIDTH): Likewise.
3686         [__GLIBC_USE (IEC_60559_BFP_EXT)] (INTPTR_WIDTH): Likewise.
3687         [__GLIBC_USE (IEC_60559_BFP_EXT)] (UINTPTR_WIDTH): Likewise.
3688         [__GLIBC_USE (IEC_60559_BFP_EXT)] (INTMAX_WIDTH): Likewise.
3689         [__GLIBC_USE (IEC_60559_BFP_EXT)] (UINTMAX_WIDTH): Likewise.
3690         [__GLIBC_USE (IEC_60559_BFP_EXT)] (PTRDIFF_WIDTH): Likewise.
3691         [__GLIBC_USE (IEC_60559_BFP_EXT)] (SIG_ATOMIC_WIDTH): Likewise.
3692         [__GLIBC_USE (IEC_60559_BFP_EXT)] (SIZE_WIDTH): Likewise.
3693         [__GLIBC_USE (IEC_60559_BFP_EXT)] (WCHAR_WIDTH): Likewise.
3694         [__GLIBC_USE (IEC_60559_BFP_EXT)] (WINT_WIDTH): Likewise.
3695         * manual/arith.texi (Integers): Document these macros for types
3696         specified by width properties.
3697         * manual/lang.texi (Width of Type): Document these macros for
3698         other standard typedefs.
3699         * stdlib/tst-width-stdint.c: New file.
3700         * stdlib/Makefile (tests): Add tst-width-stdint.
3701
3702 2016-09-21  Florian Weimer  <fweimer@redhat.com>
3703
3704         [BZ #20016]
3705         * resolv/res_send.c (__libc_res_nsend): Remove USE_HOOK code.
3706         * resolv/res_data.c (res_send_setqhook, res_send_setrhook):
3707         Move ...
3708         * resolv/compat-hooks.c (res_send_setqhook, res_send_setrhook):
3709         ... here, as compatibility symbols in a new file.
3710         * resolv/Makefile (libresolv-routines): Add compat-hooks.
3711         * resolv/res_init.c (__res_vinit): Adjust member names.
3712         * include/resolv.h (res_send_setqhook, res_send_setrhook): Remove.
3713         * resolv/resolv.h (res_sendhookact, res_send_qhook)
3714         (res_send_rhook): Remove.
3715         (struct __res_state): Rename qhook, rhook members.
3716
3717 2016-09-21  Florian Weimer  <fweimer@redhat.com>
3718
3719         malloc: Use __libc_lock wrappers.
3720         * malloc/arena.c (list_lock, free_list_lock): Define using
3721         __libc_lock_define_initialized.
3722         (arena_lock): Adjust formatting.
3723         * malloc/malloc.c (struct malloc_state): Define mutex using
3724         __libc_lock_define.
3725         * sysdeps/generic/malloc-machine.h (mutex_t, mutex_init)
3726         (mutex_lock, mutex_trylock, mutex_unlock): Remove.
3727         * sysdeps/mach/hurd/malloc-machine.h (mutex_t, mutex_lock)
3728         (mutex_unlock, mutex_trylock): Remove.
3729         (__pthread_initialize): Remove unused macro.
3730         * sysdeps/nptl/malloc-machine.h (mutex_t, mutex_lock)
3731         (mutex_unlock, mutex_trylock): Remove.
3732
3733 2016-09-21  Florian Weimer  <fweimer@redhat.com>
3734
3735         [BZ #20592]
3736         Remove RR type classification macros.
3737         * resolv/arpa/nameser.h (ns_t_qt_p, ns_t_mrr_p, ns_t_rr_p)
3738         (ns_t_udp_p, ns_t_xfr_p): Remove.
3739
3740 2016-09-21  Florian Weimer  <fweimer@redhat.com>
3741
3742         Remove misleading version information.
3743         * resolv/arpa/nameser.h (__NAMESER): Remove.
3744         * resolv/arpa/nameser_compat.h (__BIND): Remove.
3745
3746 2016-09-21  Florian Weimer  <fweimer@redhat.com>
3747
3748         Remove the always-defined BIND_4_COMPAT macro.
3749         * resolv/arpa/nameser.h: Unconditionally include
3750         <arpa/nameser_compat.h>.
3751         (BIND_4_COMPAT): Remove.
3752         * resolv/res_comp.c: Do not check BIND_4_COMPAT.
3753
3754 2016-09-21  Florian Weimer  <fweimer@redhat.com>
3755
3756         [BZ #20591]
3757         Remove obsolete DNSSEC support.
3758         * resolv/arpa/nameser.h (ns_key_types, NS_KEY_*, NS_ALG_*)
3759         (NS_MD5_RSA_*, NS_DSA_*, NS_NXT_*, ns_sign, ns_sign2, ns_sign_tcp)
3760         (ns_sign_tcp2, ns_sign_tcp_init, ns_find_tsig, ns_verify)
3761         (ns_verify_tcp, ns_verify_tcp_init): Remove.
3762         (ns_cert_types): Add comment.
3763         * resolv/ns_print.c (ns_sprintrrf): Do not handle DNSSEC records
3764         separately.
3765         (KEY_RSA, KEY_HMAC_MD5, dst_s_id_calc, dst_s_get_int16)
3766         (dst_s_dns_key_id): Remove.
3767         * resolv/res_debug.c (__p_key_syms, __p_cert_syms): Remove unused
3768         variables.
3769
3770 2016-09-21  Florian Weimer  <fweimer@redhat.com>
3771
3772         [BZ #20524]
3773         * manual/string.texi (String/Array Comparison): Clarify the
3774         strverscmp behavior.
3775
3776 2016-09-21  Florian Weimer  <fweimer@redhat.com>
3777
3778         * test-skeleton.c (xasprintf): Add function.
3779         * io/tst-open-tmpfile.c: New test.
3780         * io/Makefile (tests): Add it.
3781
3782 2016-09-21  Florian Weimer  <fweimer@redhat.com>
3783
3784         Avoid running $(CXX) during build to obtain header file paths.
3785         * configure.ac (CXX_SYSINCLUDES, CXX_CMATH_HEADER): Set.
3786         * config.make.in (c++-cstdlib-header, c++-cmath-header): Define.
3787         * Makerules (cstdlib, cmath): Remove variables.  Use
3788         $(c++-cstdlib-header), $(c++-cmath-header) instead.
3789         * configure: Regenerate.
3790
3791 2016-09-21  Florian Weimer  <fweimer@redhat.com>
3792
3793         * Makeconfig (all-object-suffixes): Include .op only if
3794         $(build-profile).
3795
3796 2016-09-21  Florian Weimer  <fweimer@redhat.com>
3797
3798         * elf/sln.c: Remove HAVE_CONFIG_H, S_ISDIR, S_ISLNK preprocessor
3799         conditionals.  Do not define PATH_MAX.
3800
3801 2016-09-20  Adhemerval Zanella  <adhemerval.zanella@linaro.org>
3802
3803         * posix/Makefile (tests): Add tst-spawn3.
3804         * posix/tst-spawn3.c: New file.
3805         * sysdeps/unix/sysv/linux/spawni.c (__spawni_child): Close file descriptor
3806         if it is already opened for open action.
3807
3808         * sysdeps/unix/sysv/linux/spawni.c (__spawnix): Correctly block and unblock
3809         all signals when executing the clone vfork child.
3810         (SIGALL_SET): Remove macro.
3811
3812         * nptl/Makefile (tests): Add tst-exec5.
3813         * nptl/tst-exec5.c: New file.
3814         * sysdeps/unix/sysv/linux/spawni.c (__spawni): Correctly enable and disable
3815         asynchronous cancellation.
3816
3817 2016-09-20  Samuel Thibault  <samuel.thibault@ens-lyon.org>
3818
3819         * hurd/exc2signal.c: #include <hurd/signal.h>
3820         (_hurd_exception2signal): Replace 'exception', 'code', 'subcode',
3821         'sigcode', 'error' parameters with 'detail' parameter.  Fix code
3822         accordingly.
3823         * mach/mach_error.c (mach_error): Fix old-style function definition.
3824         * mach/errstring.c (mach_error_type, mach_error_string): Likewise.
3825
3826 2016-09-20  Paul E. Murphy  <murphyp@linux.vnet.ibm.com>
3827
3828         * math/Makefile (libm-calls): Remove s_nanF.
3829         (gen-libm-calls): Add s_nanF.
3830
3831         * math/s_nan.c: Refactor into ...
3832         * math/s_nan_template.c: New file.
3833
3834         * math/s_nanf.c: Removed.
3835         * math/s_nanl.c: Removed.
3836         * sysdeps/ieee754/ldbl-opt/s_nan.c: Removed.
3837         * sysdeps/ieee754/ldbl-opt/s_nanl.c: Removed.
3838
3839         * sysdeps/ieee754/ldbl-opt/math-type-macros-double.h:
3840         (LDOUBLE_nanl_libm_version): New macro.
3841
3842         * sysdeps/generic/math-type-macros-double.h:
3843         (M_STRTO_NAN): New macro.
3844         * sysdeps/generic/math-type-macros-float.h: Likewise.
3845         * sysdeps/generic/math-type-macros-ldouble.h: Likewise.
3846
3847         * sysdeps/generic/math-type-macros.h: Document
3848         M_STRTO_NAN.
3849
3850 2016-09-20  Paul E. Murphy  <murphyp@linux.vnet.ibm.com>
3851
3852         * math/s_nanf.c: Remove __nanf undef.
3853         * math/s_nan.c: Remove __nan undef.
3854         * math/s_nanl.c: Remove __nanl undef.
3855
3856         * sysdeps/generic/math_private.h (__nan): Remove macro
3857         override.
3858         (__nanf): Likewise.
3859         (__nanl): Likewise.
3860
3861 2016-09-20  Paul E. Murphy  <murphyp@linux.vnet.ibm.com>
3862
3863         * math/Makefile (gen-all-calls): New variable.
3864         (generated): Replace gen-libm-calls with gen-all-calls.
3865         (gen-libm-templates.stmp): Likewise.  Also, ensure
3866         the output directory exists or is created and add
3867         dependency on the Makefile.
3868         (calls): Move s_ldexpF into gen-calls.
3869         (gen-calls): New variable.
3870
3871         * math/s_ldexpf.c: Removed.
3872         * math/s_ldexpl.c: Removed.
3873         * math/s_ldexp.c: Refactored into ...
3874         * math/s_ldexp_template.c: New file.
3875
3876         * sysdeps/generic/math-type-macros-double.h: Remove
3877         redundant fall-through definition of declare_mgen_alias.
3878         (declare_mgen_alias_2): New macro.
3879
3880         * sysdeps/generc/math-type-macros.h (declare_mgen_alias_2):
3881         New macro for function aliased to two exported symbols.
3882
3883         * sysdeps/ieee754/ldbl-opt/s_ldexp.c: Update to use
3884         new template file.
3885         sysdeps/ieee754/ldbl-opt/s_ldexpl.c: Likewise.
3886
3887 2016-09-20  Florian Weimer  <fweimer@redhat.com>
3888
3889         * Makeconfig (all-object-suffixes): Remove .og.
3890         * Makerules (elide-routines.og): Remove.
3891         * sysdeps/i386/i686/Makefile (CFLAGS-.og, ASFLAGS-.og): Remove.
3892         * sysdeps/sparc/sparc32/sparcv9/Makefile (ASFLAGS-.og): Remove.
3893         * sysdeps/sparc/sparc64/Makefile (ASFLAGS-.op): Remove.
3894
3895 2016-09-20  Florian Weimer  <fweimer@redhat.com>
3896
3897         * scripts/sysd-rules.awk (BEGIN): Only generate rtld patterns for
3898         .os objects.
3899
3900 2016-09-19  Tulio Magno Quites Machado Filho  <tuliom@linux.vnet.ibm.com>
3901
3902         [BZ #20615]
3903         * sysdeps/powerpc/powerpc32/power9/multiarch/Implies: Replace
3904         fpu directory by non-fpu.
3905         * sysdeps/powerpc/powerpc64/power9/fpu/Implies: Remove dependency
3906         on non-fpu directory from a fpu directory.
3907
3908 2016-09-19  Joseph Myers  <joseph@codesourcery.com>
3909
3910         * include/limits.h: Define
3911         __GLIBC_INTERNAL_STARTING_HEADER_IMPLEMENTATION and include
3912         <bits/libc-header-start.h> instead of including <features.h>.
3913         [__GLIBC_USE (IEC_60559_BFP_EXT)] (CHAR_WIDTH): New macro.
3914         [__GLIBC_USE (IEC_60559_BFP_EXT)] (SCHAR_WIDTH): Likewise.
3915         [__GLIBC_USE (IEC_60559_BFP_EXT)] (UCHAR_WIDTH): Likewise.
3916         [__GLIBC_USE (IEC_60559_BFP_EXT)] (SHRT_WIDTH): Likewise.
3917         [__GLIBC_USE (IEC_60559_BFP_EXT)] (USHRT_WIDTH): Likewise.
3918         [__GLIBC_USE (IEC_60559_BFP_EXT)] (INT_WIDTH): Likewise.
3919         [__GLIBC_USE (IEC_60559_BFP_EXT)] (UINT_WIDTH): Likewise.
3920         [__GLIBC_USE (IEC_60559_BFP_EXT)] (LONG_WIDTH): Likewise.
3921         [__GLIBC_USE (IEC_60559_BFP_EXT)] (ULONG_WIDTH): Likewise.
3922         [__GLIBC_USE (IEC_60559_BFP_EXT)] (LLONG_WIDTH): Likewise.
3923         [__GLIBC_USE (IEC_60559_BFP_EXT)] (ULLONG_WIDTH): Likewise.
3924         * manual/lang.texi (Width of Type): Document these macros.
3925         * stdlib/tst-width.c: New file.
3926         * stdlib/Makefile (tests): Add tst-width.
3927
3928 2016-09-18  Samuel Thibault  <samuel.thibault@ens-lyon.org>
3929
3930         * intl/dcigettext.c (PATH_MAX): Call __pathconf instead of pathconf.
3931         * sysdeps/posix/dup.c (__dup): Call __fcntl instead of fcntl.
3932
3933 2016-09-15  Adhemerval Zanella  <adhemerval.zanella@linaro.org>
3934
3935         * nptl/sem_init.c (__new_sem_init): Init pad value to 0.
3936         * sysdeps/sparc/sparc32/sem_open.c: Remove file.
3937         * sysdeps/sparc/sparc32/sparcv9/sem_open.c: Likewise.
3938
3939 2016-09-15  Adhemerval Zanella  <adhemerval.zanella@linaro.org>
3940
3941         [BZ #18243]
3942         * rt/Makefile (test): Add tst-shm-cancel.
3943         * rt/tst-shm-cancel.c: New file.
3944         * sysdeps/posix/shm_open.c: Disable asynchronous cancellation.
3945
3946         [BZ #18243]
3947         * nptl/pthreadP.h (__pthread_testcancel): Add prototype and hidden_proto.
3948         * nptl/pthread_testcancel.c (pthread_cancel): Add internal aliais
3949         definition.
3950         * nptl/sem_timedwait.c (sem_timedwait): Add cancellation check for
3951         uncontended case.
3952         * nptl/sem_wait.c (__new_sem_wait): Likewise.
3953         * nptl/tst-cancel12.c (cleanup): Remove wrong cancellation point.
3954         (tf): Fix check for uncontended case.
3955         (do_test): Likewise.
3956         * nptl/tst-cancel13.c (cleanup): Remove wrong cancellation point.
3957         (tf): Fix check for uncontended case.
3958         (do_test): Likewise.
3959         * nptl/tst-cancel14.c (cleanup): Remove wrong cancellation point.
3960         (tf): Fix check for uncontended case.
3961         (do_test): Likewise.
3962         * nptl/tst-cancel15.c (cleanup): Remove wrong cancellation point.
3963         (tf): Fix check for uncontended case.
3964         (do_test): Likewise.
3965
3966         * sysdeps/sparc/sparc32/sem_wait.c: Remove file.
3967         * sysdeps/sparc/sparc32/sparcv9/sem_wait.c: Likewise.
3968
3969         [BZ #15765]
3970         * nptl/Makefile (tests): Add tst-sem16.
3971         * nptl/tst-sem16.c: New file.
3972         * nptl/sem_open.c (sem_open): Disable asynchronous cancellation.
3973
3974         * nptl/sem_open.c (sem_open): Init pad value to 0.
3975         * sysdeps/sparc/sparc32/sem_open.c: Remove file.
3976         * sysdeps/sparc/sparc32/sparcv9/sem_open.c: Likewise.
3977
3978 2016-09-15  Florian Weimer  <fweimer@redhat.com>
3979
3980         [BZ #20611]
3981         * inet/Makefile (routines): Add inet6_scopeid_pton.
3982         (tests): Add tst-inet6_scopeid_pton.
3983         * inet/inet6_scopeid_pton.c: New file.
3984         * inet/net-internal.h: Likewise.
3985         * inet/tst-inet6_scopeid_pton.c: New test.
3986         * inet/Versions (GLIBC_PRIVATE): Add __inet6_scopeid_pton.
3987         * resolv/res_init.c (__res_vinit): Use __inet6_scopeid_pton.
3988         * sysdeps/posix/getaddrinfo.c (gaih_inet): Likewise.
3989
3990 2016-09-14  Florian Weimer  <fweimer@redhat.com>
3991
3992         Remove support for compiling wrappers with PTW.
3993         * sysdeps/nptl/Makeconfig: Drop ptw- support.
3994         * nptl/Makefile (pthread-compat-wrappers): Define.
3995         (libpthread-routines): Use pthread-compat-wrappers.
3996         * sysdeps/unix/sysv/linux/alpha/Makefile
3997         (libpthread-routines, libpthread-shared-only-routines): Remove
3998         ptw- prefix.
3999         * sysdeps/s390/nptl/Makefile
4000         (libpthread-routines, libpthread-shared-only-routines): Likewise.
4001         * sysdeps/ia64/nptl/Makefile
4002         (libpthread-routines, libpthread-shared-only-routines): Likewise.
4003         * sysdeps/nacl/Makefile (libpthread-routines): Use
4004         pthread-compat-wrappers to filter the routines list instead of the
4005         ptw- prefix.
4006
4007 2016-09-13  Paul E. Murphy  <murphyp@linux.vnet.ibm.com>
4008
4009         * sysdeps/ieee754/ldbl-128/e_acoshl.c: Wrap long double literals
4010         with L() and remove explicit suffix, convert real literals
4011         which can be equivalentally substituted with integers, and
4012         transform -L(x) to L(-x).
4013
4014         * sysdeps/ieee754/ldbl-128/e_acosl.c: Likewise.
4015         * sysdeps/ieee754/ldbl-128/e_asinl.c: Likewise.
4016         * sysdeps/ieee754/ldbl-128/e_atan2l.c: Likewise.
4017         * sysdeps/ieee754/ldbl-128/e_atanhl.c: Likewise.
4018         * sysdeps/ieee754/ldbl-128/e_coshl.c: Likewise.
4019         * sysdeps/ieee754/ldbl-128/e_exp10l.c: Likewise.
4020         * sysdeps/ieee754/ldbl-128/e_expl.c: Likewise.
4021         * sysdeps/ieee754/ldbl-128/e_gammal_r.c: Likewise.
4022         * sysdeps/ieee754/ldbl-128/e_hypotl.c: Likewise.
4023         * sysdeps/ieee754/ldbl-128/e_j0l.c: Likewise.
4024         * sysdeps/ieee754/ldbl-128/e_j1l.c: Likewise.
4025         * sysdeps/ieee754/ldbl-128/e_jnl.c: Likewise.
4026         * sysdeps/ieee754/ldbl-128/e_lgammal_r.c: Likewise.
4027         * sysdeps/ieee754/ldbl-128/e_log10l.c: Likewise.
4028         * sysdeps/ieee754/ldbl-128/e_log2l.c: Likewise.
4029         * sysdeps/ieee754/ldbl-128/e_logl.c: Likewise.
4030         * sysdeps/ieee754/ldbl-128/e_powl.c: Likewise.
4031         * sysdeps/ieee754/ldbl-128/e_rem_pio2l.c: Likewise.
4032         * sysdeps/ieee754/ldbl-128/e_remainderl.c: Likewise.
4033         * sysdeps/ieee754/ldbl-128/e_sinhl.c: Likewise.
4034         * sysdeps/ieee754/ldbl-128/k_cosl.c: Likewise.
4035         * sysdeps/ieee754/ldbl-128/k_sincosl.c: Likewise.
4036         * sysdeps/ieee754/ldbl-128/k_sinl.c: Likewise.
4037         * sysdeps/ieee754/ldbl-128/k_tanl.c: Likewise.
4038         * sysdeps/ieee754/ldbl-128/lgamma_negl.c: Likewise.
4039         * sysdeps/ieee754/ldbl-128/s_asinhl.c: Likewise.
4040         * sysdeps/ieee754/ldbl-128/s_atanl.c: Likewise.
4041         * sysdeps/ieee754/ldbl-128/s_cbrtl.c: Likewise.
4042         * sysdeps/ieee754/ldbl-128/s_cosl.c: Likewise.
4043         * sysdeps/ieee754/ldbl-128/s_erfl.c: Likewise.
4044         * sysdeps/ieee754/ldbl-128/s_expm1l.c: Likewise.
4045         * sysdeps/ieee754/ldbl-128/s_fmal.c: Likewise.
4046         * sysdeps/ieee754/ldbl-128/s_frexpl.c: Likewise.
4047         * sysdeps/ieee754/ldbl-128/s_llrintl.c: Likewise.
4048         * sysdeps/ieee754/ldbl-128/s_llroundl.c: Likewise.
4049         * sysdeps/ieee754/ldbl-128/s_log1pl.c: Likewise.
4050         * sysdeps/ieee754/ldbl-128/s_lrintl.c: Likewise.
4051         * sysdeps/ieee754/ldbl-128/s_lroundl.c: Likewise.
4052         * sysdeps/ieee754/ldbl-128/s_nearbyintl.c: Likewise.
4053         * sysdeps/ieee754/ldbl-128/s_nextafterl.c: Likewise.
4054         * sysdeps/ieee754/ldbl-128/s_remquol.c: Likewise.
4055         * sysdeps/ieee754/ldbl-128/s_scalblnl.c: Likewise.
4056         * sysdeps/ieee754/ldbl-128/s_scalbnl.c: Likewise.
4057         * sysdeps/ieee754/ldbl-128/s_sincosl.c: Likewise.
4058         * sysdeps/ieee754/ldbl-128/s_sinl.c: Likewise.
4059         * sysdeps/ieee754/ldbl-128/s_tanhl.c: Likewise.
4060         * sysdeps/ieee754/ldbl-128/s_tanl.c: Likewise.
4061         * sysdeps/ieee754/ldbl-128/t_expl.h: Likewise.
4062         * sysdeps/ieee754/ldbl-128/t_sincosl.c: Likewise.
4063         * sysdeps/ieee754/ldbl-128/x2y2m1l.c: Likewise.
4064
4065 2016-09-13  Florian Weimer  <fweimer@redhat.com>
4066
4067         * resolv/res_init.c: Remove _LIBC_REENTRANT; it is always defined.
4068
4069 2016-09-10  Siddhesh Poyarekar  <siddhesh@sourceware.org>
4070
4071         * malloc/Makefile (tests): Remove individual static test names
4072         and just add all of tests-static.
4073
4074         * csu/libc-start.c (__libc_csu_irel): Remove declaration.
4075
4076 2016-09-07  Joseph Myers  <joseph@codesourcery.com>
4077
4078         * sysdeps/powerpc/powerpc32/e500/nofpu/fetestexceptflag.c: New
4079         file.
4080
4081         * sysdeps/sparc/fpu/fegetmode.c: New file.
4082         * sysdeps/sparc/fpu/fesetmode.c: Likewise.
4083
4084         * sysdeps/sh/sh4/fpu/fegetmode.c: New file.
4085         * sysdeps/sh/sh4/fpu/fesetmode.c: Likewise.
4086
4087         * sysdeps/s390/fpu/fegetmode.c: New file.
4088         * sysdeps/s390/fpu/fesetmode.c: Likewise.
4089
4090         * sysdeps/powerpc/fpu/fegetmode.c: New file.
4091         * sysdeps/powerpc/fpu/fesetmode.c: Likewise.
4092         * sysdeps/powerpc/nofpu/fegetmode.c: Likewise.
4093         * sysdeps/powerpc/nofpu/fesetmode.c: Likewise.
4094         * sysdeps/powerpc/powerpc32/e500/nofpu/fegetmode.c: Likewise.
4095         * sysdeps/powerpc/powerpc32/e500/nofpu/fesetmode.c: Likewise.
4096
4097         * sysdeps/mips/fpu/fegetmode.c: New file.
4098         * sysdeps/mips/fpu/fesetmode.c: Likewise.
4099
4100         * sysdeps/m68k/fpu/fegetmode.c: New file.
4101         * sysdeps/m69k/fpu/fesetmode.c: Likewise.
4102
4103         * sysdeps/ia64/fpu/fegetmode.c: New file.
4104         * sysdeps/ia64/fpu/fesetmode.c: Likewise.
4105
4106         * sysdeps/hppa/fpu/fegetmode.c: New file.
4107         * sysdeps/hppa/fpu/fesetmode.c: Likewise.
4108
4109         * sysdeps/arm/fegetmode.c: New file.
4110         * sysdeps/arm/fesetmode.c: Likewise.
4111
4112         * sysdeps/alpha/fpu/fegetmode.c: New file.
4113         * sysdeps/alpha/fpu/fesetmode.c: Likewise.
4114
4115         * sysdeps/aarch64/fpu/fegetmode.c: New file.
4116         * sysdeps/aarch64/fpu/fesetmode.c: Likewise.
4117
4118         * math/fegetmode.c: New file.
4119         * math/fesetmode.c: Likewise.
4120         * sysdeps/i386/fpu/fegetmode.c: Likewise.
4121         * sysdeps/i386/fpu/fesetmode.c: Likewise.
4122         * sysdeps/x86_64/fpu/fegetmode.c: Likewise.
4123         * sysdeps/x86_64/fpu/fesetmode.c: Likewise.
4124         * math/fenv.h: Update comment on inclusion of <bits/fenv.h>.
4125         [__GLIBC_USE (IEC_60559_BFP_EXT)] (fegetmode): New function
4126         declaration.
4127         [__GLIBC_USE (IEC_60559_BFP_EXT)] (fesetmode): Likewise.
4128         * bits/fenv.h [__GLIBC_USE (IEC_60559_BFP_EXT)] (femode_t): New
4129         typedef.
4130         [__GLIBC_USE (IEC_60559_BFP_EXT)] (FE_DFL_MODE): New macro.
4131         * sysdeps/aarch64/bits/fenv.h [__GLIBC_USE (IEC_60559_BFP_EXT)]
4132         (femode_t): New typedef.
4133         [__GLIBC_USE (IEC_60559_BFP_EXT)] (FE_DFL_MODE): New macro.
4134         * sysdeps/alpha/fpu/bits/fenv.h [__GLIBC_USE (IEC_60559_BFP_EXT)]
4135         (femode_t): New typedef.
4136         [__GLIBC_USE (IEC_60559_BFP_EXT)] (FE_DFL_MODE): New macro.
4137         * sysdeps/arm/bits/fenv.h [__GLIBC_USE (IEC_60559_BFP_EXT)]
4138         (femode_t): New typedef.
4139         [__GLIBC_USE (IEC_60559_BFP_EXT)] (FE_DFL_MODE): New macro.
4140         * sysdeps/hppa/fpu/bits/fenv.h [__GLIBC_USE (IEC_60559_BFP_EXT)]
4141         (femode_t): New typedef.
4142         [__GLIBC_USE (IEC_60559_BFP_EXT)] (FE_DFL_MODE): New macro.
4143         * sysdeps/ia64/bits/fenv.h [__GLIBC_USE (IEC_60559_BFP_EXT)]
4144         (femode_t): New typedef.
4145         [__GLIBC_USE (IEC_60559_BFP_EXT)] (FE_DFL_MODE): New macro.
4146         * sysdeps/m68k/fpu/bits/fenv.h [__GLIBC_USE (IEC_60559_BFP_EXT)]
4147         (femode_t): New typedef.
4148         [__GLIBC_USE (IEC_60559_BFP_EXT)] (FE_DFL_MODE): New macro.
4149         * sysdeps/microblaze/bits/fenv.h [__GLIBC_USE (IEC_60559_BFP_EXT)]
4150         (femode_t): New typedef.
4151         [__GLIBC_USE (IEC_60559_BFP_EXT)] (FE_DFL_MODE): New macro.
4152         * sysdeps/mips/bits/fenv.h [__GLIBC_USE (IEC_60559_BFP_EXT)]
4153         (femode_t): New typedef.
4154         [__GLIBC_USE (IEC_60559_BFP_EXT)] (FE_DFL_MODE): New macro.
4155         * sysdeps/nios2/bits/fenv.h [__GLIBC_USE (IEC_60559_BFP_EXT)]
4156         (femode_t): New typedef.
4157         [__GLIBC_USE (IEC_60559_BFP_EXT)] (FE_DFL_MODE): New macro.
4158         * sysdeps/powerpc/bits/fenv.h [__GLIBC_USE (IEC_60559_BFP_EXT)]
4159         (femode_t): New typedef.
4160         [__GLIBC_USE (IEC_60559_BFP_EXT)] (__fe_dfl_mode): New variable
4161         declaration.
4162         [__GLIBC_USE (IEC_60559_BFP_EXT)] (FE_DFL_MODE): New macro.
4163         * sysdeps/s390/fpu/bits/fenv.h [__GLIBC_USE (IEC_60559_BFP_EXT)]
4164         (femode_t): New typedef.
4165         [__GLIBC_USE (IEC_60559_BFP_EXT)] (FE_DFL_MODE): New macro.
4166         * sysdeps/sh/bits/fenv.h [__GLIBC_USE (IEC_60559_BFP_EXT)]
4167         (femode_t): New typedef.
4168         [__GLIBC_USE (IEC_60559_BFP_EXT)] (FE_DFL_MODE): New macro.
4169         * sysdeps/sparc/fpu/bits/fenv.h [__GLIBC_USE (IEC_60559_BFP_EXT)]
4170         (femode_t): New typedef.
4171         [__GLIBC_USE (IEC_60559_BFP_EXT)] (FE_DFL_MODE): New macro.
4172         * sysdeps/tile/bits/fenv.h [__GLIBC_USE (IEC_60559_BFP_EXT)]
4173         (femode_t): New typedef.
4174         [__GLIBC_USE (IEC_60559_BFP_EXT)] (FE_DFL_MODE): New macro.
4175         * sysdeps/x86/fpu/bits/fenv.h [__GLIBC_USE (IEC_60559_BFP_EXT)]
4176         (femode_t): New typedef.
4177         [__GLIBC_USE (IEC_60559_BFP_EXT)] (FE_DFL_MODE): New macro.
4178         * manual/arith.texi (FE_DFL_MODE): Document macro.
4179         (fegetmode): Document function.
4180         (fesetmode): Likewise.
4181         * math/Versions (fegetmode): New libm symbol at version
4182         GLIBC_2.25.
4183         (fesetmode): Likewise.
4184         * math/Makefile (libm-support): Add fegetmode and fesetmode.
4185         (tests): Add test-femode and test-femode-traps.
4186         * math/test-femode-traps.c: New file.
4187         * math/test-femode.c: Likewise.
4188         * sysdeps/powerpc/fpu/fenv_const.c (__fe_dfl_mode): Declare as
4189         alias for __fe_dfl_env.
4190         * sysdeps/powerpc/nofpu/fenv_const.c (__fe_dfl_mode): Likewise.
4191         * sysdeps/powerpc/powerpc32/e500/nofpu/fenv_const.c
4192         (__fe_dfl_mode): Likewise.
4193         * sysdeps/powerpc/Versions (__fe_dfl_mode): New libm symbol at
4194         version GLIBC_2.25.
4195         * sysdeps/nacl/libm.abilist: Update.
4196         * sysdeps/unix/sysv/linux/aarch64/libm.abilist: Likewise.
4197         * sysdeps/unix/sysv/linux/alpha/libm.abilist: Likewise.
4198         * sysdeps/unix/sysv/linux/arm/libm.abilist: Likewise.
4199         * sysdeps/unix/sysv/linux/hppa/libm.abilist: Likewise.
4200         * sysdeps/unix/sysv/linux/i386/libm.abilist: Likewise.
4201         * sysdeps/unix/sysv/linux/ia64/libm.abilist: Likewise.
4202         * sysdeps/unix/sysv/linux/m68k/coldfire/libm.abilist: Likewise.
4203         * sysdeps/unix/sysv/linux/m68k/m680x0/libm.abilist: Likewise.
4204         * sysdeps/unix/sysv/linux/microblaze/libm.abilist: Likewise.
4205         * sysdeps/unix/sysv/linux/mips/mips32/libm.abilist: Likewise.
4206         * sysdeps/unix/sysv/linux/mips/mips64/libm.abilist: Likewise.
4207         * sysdeps/unix/sysv/linux/nios2/libm.abilist: Likewise.
4208         * sysdeps/unix/sysv/linux/powerpc/powerpc32/fpu/libm.abilist:
4209         Likewise.
4210         * sysdeps/unix/sysv/linux/powerpc/powerpc32/nofpu/libm.abilist:
4211         Likewise.
4212         * sysdeps/unix/sysv/linux/powerpc/powerpc64/libm-le.abilist:
4213         Likewise.
4214         * sysdeps/unix/sysv/linux/powerpc/powerpc64/libm.abilist:
4215         Likewise.
4216         * sysdeps/unix/sysv/linux/s390/s390-32/libm.abilist: Likewise.
4217         * sysdeps/unix/sysv/linux/s390/s390-64/libm.abilist: Likewise.
4218         * sysdeps/unix/sysv/linux/sh/libm.abilist: Likewise.
4219         * sysdeps/unix/sysv/linux/sparc/sparc32/libm.abilist: Likewise.
4220         * sysdeps/unix/sysv/linux/sparc/sparc64/libm.abilist: Likewise.
4221         * sysdeps/unix/sysv/linux/tile/tilegx/tilegx32/libm.abilist:
4222         Likewise.
4223         * sysdeps/unix/sysv/linux/tile/tilegx/tilegx64/libm.abilist:
4224         Likewise.
4225         * sysdeps/unix/sysv/linux/tile/tilepro/libm.abilist: Likewise.
4226         * sysdeps/unix/sysv/linux/x86_64/64/libm.abilist: Likewise.
4227         * sysdeps/unix/sysv/linux/x86_64/x32/libm.abilist: Likewise.
4228
4229 2016-09-06  H.J. Lu  <hongjiu.lu@intel.com>
4230
4231         [BZ #20495]
4232         [BZ #20508]
4233         * sysdeps/x86/cpu-features.c (init_cpu_features): For Intel
4234         processors, set Use_dl_runtime_resolve_slow and set
4235         Use_dl_runtime_resolve_opt if XGETBV suports ECX == 1.
4236         * sysdeps/x86/cpu-features.h (bit_arch_Use_dl_runtime_resolve_opt):
4237         New.
4238         (bit_arch_Use_dl_runtime_resolve_slow): Likewise.
4239         (index_arch_Use_dl_runtime_resolve_opt): Likewise.
4240         (index_arch_Use_dl_runtime_resolve_slow): Likewise.
4241         * sysdeps/x86_64/dl-machine.h (elf_machine_runtime_setup): Use
4242         _dl_runtime_resolve_avx512_opt and _dl_runtime_resolve_avx_opt
4243         if Use_dl_runtime_resolve_opt is set.  Use
4244         _dl_runtime_resolve_slow if Use_dl_runtime_resolve_slow is set.
4245         * sysdeps/x86_64/dl-trampoline.S: Include <cpu-features.h>.
4246         (_dl_runtime_resolve_opt): New.  Defined for AVX and AVX512.
4247         (_dl_runtime_resolve): Add one for _dl_runtime_resolve_sse_vex.
4248         * sysdeps/x86_64/dl-trampoline.h (_dl_runtime_resolve_avx_slow):
4249         New.
4250         (_dl_runtime_resolve_opt): Likewise.
4251         (_dl_runtime_profile): Define only if _dl_runtime_profile is
4252         defined.
4253
4254 2016-09-06  Stefan Liebler  <stli@linux.vnet.ibm.com>
4255
4256         * sysdeps/unix/sysv/linux/s390/localplt.data: Mark ld.so:
4257         __libc_memalign with "+ RELA R_390_GLOB_DAT".
4258
4259 2016-09-06  Florian Weimer  <fweimer@redhat.com>
4260
4261         Convert malloc to __libc_lock.  Automated part, using this Perl
4262         s/// command:
4263           s/(?:\(void\)\s*)?mutex_((?:|un|try)lock|init)
4264             \s*\(\&([^\)]+)\)/__libc_lock_$1\ ($2)/gx;
4265         * malloc/malloc.c, malloc/arena.c, malloc/hooks.c: Perform
4266         conversion.
4267
4268 2016-09-05  Aurelien Jarno  <aurelien@aurel32.net>
4269
4270         * conform/Makefile (conformtest-header-tests): Pass -I. to $(PERL).
4271         (linknamespace-symlists-tests): Likewise.
4272         (linknamespace-header-tests): Likewise.
4273
4274 2016-09-03  Aurelien Jarno  <aurelien@aurel32.net>
4275
4276         [BZ #19810]
4277         * elf/dl-open.c (dl_open_worker): Set DF_1_NODELETE flag later.
4278         * elf/tst-noload.c: New test case.
4279         * elf/Makefile (tests): Add tst-noload.
4280
4281 2016-09-02  Roland McGrath  <roland@hack.frob.com>
4282
4283         * sysdeps/nacl/dup.c: Add libc_hidden_def.
4284
4285         * sysdeps/posix/wait3.c: Don't treat STAT_LOC as a union, since it's
4286         not any more.
4287
4288         * sysdeps/nacl/clock.c (clock): nacl_abi_clock_t -> nacl_irt_clock_t
4289
4290 2016-09-02  Siddhesh Poyarekar  <siddhesh@sourceware.org>
4291
4292         * sysdeps/ieee754/dbl-64/s_sin.c (do_cos): Mark as inline.
4293         (do_cos_slow): Likewise.
4294         (do_sin): Likewise.
4295         (do_sin_slow): Likewise.
4296         (slow): Likewise.
4297         (slow1): Likewise.
4298         (slow2): Likewise.
4299         (sloww): Likewise.
4300         (sloww1): Likewise.
4301         (sloww2): Likewise.
4302         (bsloww): Likewise.
4303         (bsloww1): Likewise.
4304         (bsloww2): Likewise.
4305         (cslow2): Likewise.
4306
4307         * sysdeps/ieee754/dbl-64/s_sin.c (__sin): Use do_sin.
4308
4309         * sysdeps/ieee754/dbl-64/s_sin.c (do_cos): Accept X and DX as input
4310         arguments.  Consolidate input partitioning from callers here.
4311         (do_cos_slow): Likewise.
4312         (do_sin): Likewise.
4313         (do_sin_slow): Likewise.
4314         (do_sincos_1): Remove the no longer necessary input partitioning.
4315         (do_sincos_2): Likewise.
4316         (__sin): Likewise.
4317         (__cos): Likewise.
4318         (slow1): Likewise.
4319         (slow2): Likewise.
4320         (sloww1): Likewise.
4321         (sloww2): Likewise.
4322         (bsloww1): Likewise.
4323         (bsloww2): Likewise.
4324         (cslow2): Likewise.
4325
4326 2016-09-02  Florian Weimer  <fweimer@redhat.com>
4327
4328         * stdio-common/vfscanf.c (_IO_vfwscanf): Use MB_LEN_MAX instead of
4329         MB_CUR_MAX to avoid race condition.  Avoid pointer arithmetic
4330         outside of allocated array.
4331
4332 2016-09-02  Florian Weimer  <fweimer@redhat.com>
4333
4334         * stdio-common/vfprintf.c (process_string_arg): Use MB_LEN_MAX
4335         instead of MB_CUR_MAX to avoid variable-length array.
4336
4337 2016-09-01  Paul E. Murphy  <murphyp@linux.vnet.ibm.com>
4338
4339         * math/Makefile (libm-calls): Remove k_rem_pio2F.
4340         (type-double-routines): Add k_rem_pio2.
4341         (type-float-routines): Add k_rem_pio2f.
4342
4343         * sysdeps/generic/math_private.h:
4344         (__kernel_rem_pio2l): Removed.
4345
4346         * math/k_rem_pio2l.c: Removed.
4347         * sysdeps/i386/fpu/k_rem_pio2l.c: Removed.
4348         * sysdeps/ia64/fpu/k_rem_pio2l.c: Removed.
4349         * sysdeps/m68k/m680x0/fpu/k_rem_pio2l.c: Removed.
4350         * sysdeps/x86_64/fpu/k_rem_pio2l.c: Removed.
4351
4352 2016-09-01  Paul E. Murphy  <murphyp@linux.vnet.ibm.com>
4353
4354         * math/Makefile (gen-libm-calls): Add s_fmin
4355         (libm-calls): Remove above.
4356
4357         * math/s_fmin.c: Refactor into ...
4358         * math/s_fmin_template.c: New file.
4359
4360         * math/s_fminf.c: Removed.
4361         * math/s_fminl.c: Removed.
4362         * sysdeps/ieee754/ldbl-opt/math-type-macros-double.h:
4363         (LDOUBLE_fmin_libm_version): New macro.
4364
4365         * sysdeps/ieee754/ldbl-opt/s_fmin.c: Removed.
4366         * sysdeps/ieee754/ldbl-opt/s_fminl.c: Removed.
4367
4368 2016-09-01  Paul E. Murphy  <murphyp@linux.vnet.ibm.com>
4369
4370         * math/Makefile: (gen-libm-calls): Add s_fmax.
4371         (libm-calls): Remove above.
4372
4373         * math/s_fmax.c: Refactor into ...
4374         * math/s_fmax_template.c: New file.
4375         * math/s_fmaxf.c: Removed.
4376         * math/s_fmaxl.c: Removed.
4377
4378         * sysdeps/ieee754/ldbl-opt/math-type-macros-double.h:
4379         (LDOUBLE_fmaxl_libm_version): New macro.
4380
4381         * sysdeps/ieee754/ldbl-opt/s_fmax.c: Removed.
4382         * sysdeps/ieee754/ldbl-opt/s_fmaxl.c: Removed.
4383
4384         * sysdeps/aarch64/fpu/s_fmax.c: Append fpu/ to include of
4385         s_fmin.c to pick the aarch64 version of the file.
4386         * sysdeps/aarch64/fpu/s_fmaxf.c: Likewise.
4387         * sysdeps/aarch64/fpu/s_fminf.c: Likewise.
4388
4389 2016-09-01  Paul E. Murphy  <murphyp@linux.vnet.ibm.com>
4390
4391         * math/Makefile: (gen-libm-calls): Add s_nextdown.
4392         (libm-calls): Remove above.
4393
4394         * math/s_nextdown.c: Refactor into ...
4395         * math/s_nextdown_template.c: New file.
4396         * math/s_nextdownf.c: Removed.
4397         * math/s_nextdownl.c: Removed.
4398
4399         * sysdeps/ieee754/ldbl-opt/s_nextdownl.c: New file.
4400
4401 2016-09-01  Paul E. Murphy  <murphyp@linux.vnet.ibm.com>
4402
4403         * math/Makefile (gen-libm-calls): Add s_fdim.
4404         (libm-calls): Move to above.
4405
4406         * math/s_fdim.c: Renamed and refactored into to ...
4407         * math/s_fdim_template.c: New file.
4408         * math/s_fdiml.c: Removed.
4409         * sysdeps/ieee754/ldbl-opt/s_fdim.c: Removed.
4410         * sysdeps/ieee754/ldbl-opt/s_fdiml.c: Removed.
4411
4412         * sysdeps/generic/math-type-macros-double.h:
4413         (declare_mgen_alias): Don't declare if already declared.
4414         * sysdeps/ieee754/ldbl-opt/math-type-macros-ldouble.h:
4415         Likewise.
4416
4417         * sysdeps/ieee754/ldbl-opt/math-type-macros-double.h:
4418         (declare_mgen_alias): Don't declare if already declared.
4419         (M_LIBM_NEED_COMPAT): Likewise.
4420         (declare_mgen_libm_compat): Likewise.
4421         (LDOUBLE_fdiml_libm_version): New macro.
4422
4423         * sysdeps/sparc/sparc32/sparcv9/fpu/multiarch/s_fdim.c:
4424         Include math/s_fdim.c now that ldbl-opt version is not needed.
4425         (declare_mgen_alias): New macro to disable aliasing.
4426
4427         * sysdeps/sparc/sparc32/sparcv9/fpu/multiarch/s_fdimf-vis3.c:
4428         (declare_mgen_alias): Likewise.
4429         * sysdeps/sparc/sparc32/sparcv9/fpu/multiarch/s_fdimf.c:
4430         (declare_mgen_alias): Likewise.
4431         * sysdeps/sparc/sparc32/sparcv9/fpu/multiarch/s_fdim-vis3.c:
4432         (declare_mgen_alias): Likewise.
4433         (M_LIBM_NEED_COMPAT): Likewise.
4434
4435 2016-09-01  Florian Weimer  <fweimer@redhat.com>
4436
4437         [BZ #20525]
4438         * sysdeps/unix/sysv/linux/sys/quota.h: Update copyright.
4439         Include <linux/quota.h>.
4440         (fs_to_dq_blocks): Hard-code BLOCK_SIZE as 1024, to match dbtob
4441         and btodb.
4442         (_LINUX_QUOTA_VERSION, MAXQUOTAS, USRQUOTA, GRPQUOTA, INITQFNAMES)
4443         (SUBCMDMASK, SUBCMDSHIFT, QCMD, Q_QUOTAON, Q_QUOTAOFF, Q_GETQUOTA)
4444         (Q_SETQUOTA, Q_SETUSE, Q_SYNC, Q_SETQLIM, Q_GETSTATS, Q_RSQUASH)
4445         (Q_GETFMT, Q_GETINFO, Q_SETINFO, Q_GETNEXTQUOTA, QIF_BLIMITS)
4446         (QIF_SPACE, QIF_ILIMITS, QIF_INODES, QIF_BTIME, QIF_ITIME)
4447         (QIF_LIMITS, QIF_USAGE, QIF_TIMES, QIF_ALL, IIF_BGRACE)
4448         (IIF_IGRACE, IIF_FLAGS, IIF_ALL): Remove.
4449         (struct dqblock, struct dqinfo): Use __uint64_t and __uint32_t
4450         types.
4451         * sysdeps/unix/sysv/linux/tst-quota.c: New test.
4452         * sysdeps/unix/sysv/linux/Makefile (tests): Add it.
4453
4454 2016-08-31  Paul E. Murphy  <murphyp@linux.vnet.ibm.com>
4455
4456         * sysdeps/ieee754/ldbl-128/e_gammal_r.c:
4457         (gammal_positive): Fix spacing.
4458         (__ieee754_gammal_r): Likewise.
4459
4460 2016-08-31  Paul E. Murphy  <murphyp@linux.vnet.ibm.com>
4461
4462         * sysdeps/ieee754/ldbl-128/math_ldbl.h:
4463         (_Float128): Define as long double, always.
4464         (L): Apply long double type suffix, always.
4465
4466         * sysdeps/ieee754/ldbl-128/e_acoshl.c: Rename long double
4467         _Float128, excepting comments.
4468
4469         * sysdeps/ieee754/ldbl-128/e_acosl.c: Likewise.
4470         * sysdeps/ieee754/ldbl-128/e_atan2l.c: Likewise.
4471         * sysdeps/ieee754/ldbl-128/e_atanhl.c: Likewise.
4472         * sysdeps/ieee754/ldbl-128/e_coshl.c: Likewise.
4473         * sysdeps/ieee754/ldbl-128/e_exp10l.c: Likewise.
4474         * sysdeps/ieee754/ldbl-128/e_expl.c: Likewise.
4475         * sysdeps/ieee754/ldbl-128/e_fmodl.c: Likewise.
4476         * sysdeps/ieee754/ldbl-128/e_gammal_r.c: Likewise.
4477         * sysdeps/ieee754/ldbl-128/e_hypotl.c: Likewise.
4478         * sysdeps/ieee754/ldbl-128/e_ilogbl.c: Likewise.
4479         * sysdeps/ieee754/ldbl-128/e_j0l.c: Likewise.
4480         * sysdeps/ieee754/ldbl-128/e_j1l.c: Likewise.
4481         * sysdeps/ieee754/ldbl-128/e_jnl.c: Likewise.
4482         * sysdeps/ieee754/ldbl-128/e_lgammal_r.c: Likewise.
4483         * sysdeps/ieee754/ldbl-128/e_log10l.c: Likewise.
4484         * sysdeps/ieee754/ldbl-128/e_log2l.c: Likewise.
4485         * sysdeps/ieee754/ldbl-128/e_logl.c: Likewise.
4486         * sysdeps/ieee754/ldbl-128/e_powl.c: Likewise.
4487         * sysdeps/ieee754/ldbl-128/e_rem_pio2l.c: Likewise.
4488         * sysdeps/ieee754/ldbl-128/e_remainderl.c: Likewise.
4489         * sysdeps/ieee754/ldbl-128/e_sinhl.c: Likewise.
4490         * sysdeps/ieee754/ldbl-128/gamma_productl.c: Likewise.
4491         * sysdeps/ieee754/ldbl-128/k_cosl.c: Likewise.
4492         * sysdeps/ieee754/ldbl-128/k_sincosl.c: Likewise.
4493         * sysdeps/ieee754/ldbl-128/k_sinl.c: Likewise.
4494         * sysdeps/ieee754/ldbl-128/k_tanl.c: Likewise.
4495         * sysdeps/ieee754/ldbl-128/lgamma_negl.c: Likewise.
4496         * sysdeps/ieee754/ldbl-128/lgamma_productl.c: Likewise.
4497         * sysdeps/ieee754/ldbl-128/s_asinhl.c: Likewise.
4498         * sysdeps/ieee754/ldbl-128/s_atanl.c: Likewise.
4499         * sysdeps/ieee754/ldbl-128/s_cbrtl.c: Likewise.
4500         * sysdeps/ieee754/ldbl-128/s_ceill.c: Likewise.
4501         * sysdeps/ieee754/ldbl-128/s_copysignl.c: Likewise.
4502         * sysdeps/ieee754/ldbl-128/s_cosl.c: Likewise.
4503         * sysdeps/ieee754/ldbl-128/s_erfl.c: Likewise.
4504         * sysdeps/ieee754/ldbl-128/s_expm1l.c: Likewise.
4505         * sysdeps/ieee754/ldbl-128/s_fabsl.c: Likewise.
4506         * sysdeps/ieee754/ldbl-128/s_finitel.c: Likewise.
4507         * sysdeps/ieee754/ldbl-128/s_floorl.c: Likewise.
4508         * sysdeps/ieee754/ldbl-128/s_fmal.c: Likewise.
4509         * sysdeps/ieee754/ldbl-128/s_fpclassifyl.c: Likewise.
4510         * sysdeps/ieee754/ldbl-128/s_frexpl.c: Likewise.
4511         * sysdeps/ieee754/ldbl-128/s_isinfl.c: Likewise.
4512         * sysdeps/ieee754/ldbl-128/s_isnanl.c: Likewise.
4513         * sysdeps/ieee754/ldbl-128/s_issignalingl.c: Likewise.
4514         * sysdeps/ieee754/ldbl-128/s_llrintl.c: Likewise.
4515         * sysdeps/ieee754/ldbl-128/s_llroundl.c: Likewise.
4516         * sysdeps/ieee754/ldbl-128/s_log1pl.c: Likewise.
4517         * sysdeps/ieee754/ldbl-128/s_logbl.c: Likewise.
4518         * sysdeps/ieee754/ldbl-128/s_lrintl.c: Likewise.
4519         * sysdeps/ieee754/ldbl-128/s_lroundl.c: Likewise.
4520         * sysdeps/ieee754/ldbl-128/s_modfl.c: Likewise.
4521         * sysdeps/ieee754/ldbl-128/s_nearbyintl.c: Likewise.
4522         * sysdeps/ieee754/ldbl-128/s_nextafterl.c: Likewise.
4523         * sysdeps/ieee754/ldbl-128/s_nextupl.c: Likewise.
4524         * sysdeps/ieee754/ldbl-128/s_remquol.c: Likewise.
4525         * sysdeps/ieee754/ldbl-128/s_rintl.c: Likewise.
4526         * sysdeps/ieee754/ldbl-128/s_roundl.c: Likewise.
4527         * sysdeps/ieee754/ldbl-128/s_scalblnl.c: Likewise.
4528         * sysdeps/ieee754/ldbl-128/s_scalbnl.c: Likewise.
4529         * sysdeps/ieee754/ldbl-128/s_sincosl.c: Likewise.
4530         * sysdeps/ieee754/ldbl-128/s_sinl.c: Likewise.
4531         * sysdeps/ieee754/ldbl-128/s_tanhl.c: Likewise.
4532         * sysdeps/ieee754/ldbl-128/s_tanl.c: Likewise.
4533         * sysdeps/ieee754/ldbl-128/s_truncl.c: Likewise.
4534         * sysdeps/ieee754/ldbl-128/t_expl.h: Likewise.
4535         * sysdeps/ieee754/ldbl-128/x2y2m1l.c: Likewise.
4536         * sysdeps/ieee754/ldbl-128/e_asinl.c: Likewise.
4537
4538         * sysdeps/ieee754/ldbl-128/s_signbitl.c: Rename long double
4539         _Float128, and include math_private.h.
4540         * sysdeps/ieee754/ldbl-128/t_sincosl.c: Likewise.
4541
4542         * sysdeps/ieee754/ldbl-128ibm/e_expl.c (L): Define using
4543         long double semantics.
4544         (_Float128): Likewise.
4545         * sysdeps/ieee754/ldbl-128ibm/e_j0l.c: Likewise.
4546         * sysdeps/ieee754/ldbl-128ibm/e_j1l.c: Likewise.
4547         * sysdeps/ieee754/ldbl-128ibm/e_lgammal_r.c: Likewise.
4548         * sysdeps/ieee754/ldbl-128ibm/s_cbrtl.c: Likewise.
4549
4550 2016-08-31  Stefan Liebler  <stli@linux.vnet.ibm.com>
4551
4552         * config.h.in (HAVE_S390_MIN_Z196_ZARCH_ASM_SUPPORT): New undefine.
4553         * sysdeps/s390/configure.ac: Add test for z196 zarch support.
4554         * sysdeps/s390/configure: Regenerated.
4555         * sysdeps/s390/fpu/fraiseexcpt.c (__feraiseexcept): Use ledbra
4556         instruction for raising over-/underflow if z196 zarch is supported
4557         by default.
4558         * sysdeps/s390/fpu/fsetexcptflg.c (fesetexceptflag): Correct comment.
4559
4560 2016-08-30  Svante Signell  <svante.signell@gmail.com>
4561
4562         * sysdeps/mach/hurd/adjtime.c (__adjtime): When OLDDELTA is NULL, make
4563         it point to a dumb buffer for RPC to fill it.
4564
4565 2016-08-30  Siddhesh Poyarekar  <siddhesh@sourceware.org>
4566
4567         * sysdeps/ieee754/dbl-64/s_sin.c (do_cos_slow): Use ternary
4568         instead of if/else.
4569         (do_sin_slow): Likewise.
4570         (do_sincos_1): Use fabs instead of if/else.
4571         (do_sincos_2): Likewise.
4572         (__sin): Likewise.
4573         (__cos): Likewise.
4574         (slow2): Likewise.
4575         (sloww): Likewise.
4576         (sloww1): Likewise.  Drop argument M.
4577         (sloww2): Use fabs instead of if/else.
4578         (bsloww): Likewise.
4579         (bsloww1): Likewise.
4580         (bsloww2): Likewise.
4581
4582         * sysdeps/ieee754/dbl-64/s_sin.c (reduce_and_compute): Add
4583         fall through comment.
4584         (do_sincos_1): Likewise.
4585
4586         * sysdeps/ieee754/dbl-64/s_sin.c (reduce_and_compute):
4587         Consolidate switch cases 0 and 2.
4588
4589 2016-08-29  Paul E. Murphy  <murphyp@linux.vnet.ibm.com>
4590
4591         * math/Makefile (libm-gen-calls): Add cpow, clog, clog10, cexp, cproj.
4592         (libm-calls): Remove the above.
4593
4594         * math/s_cexp_template.c: Update using type-generic macros.
4595         * math/s_clog10_template.c: Likewise.
4596         * math/s_cpow_template.c: Likewise.
4597         * math/s_clog_template.c: Likewise.
4598         * math/s_cproj_template.c: Likewise.
4599         * math/s_csqrt_template.c: Likewise.
4600
4601         * math/s_cexp.c: Removed.
4602         * math/s_cexpf.c: Removed.
4603         * math/s_cexpl.c: Removed.
4604         * math/s_clog10.c: Removed.
4605         * math/s_clog10f.c: Removed.
4606         * math/s_clog10l.c: Removed.
4607         * math/s_cpow.c: Removed.
4608         * math/s_cpowf.c: Removed.
4609         * math/s_cpowl.c: Removed.
4610         * math/s_clog.c: Removed.
4611         * math/s_clogf.c: Removed.
4612         * math/s_clogl.c: Removed.
4613         * math/s_cproj.c: Removed.
4614         * math/s_cprojf.c: Removed.
4615         * math/s_cprojl.c: Removed.
4616         * math/s_csqrt.c: Removed.
4617         * math/s_csqrtf.c: Removed.
4618         * math/s_csqrtl.c: Removed.
4619
4620         * sysdeps/alpha/fpu/s_cexpf.c: Update using templated version.
4621         * sysdeps/alpha/fpu/s_clog10f.c: Update using templated version.
4622         * sysdeps/alpha/fpu/s_clogf.c: Update using templated version.
4623         * sysdeps/alpha/fpu/s_cpowf.c: Update using templated version.
4624         * sysdeps/alpha/fpu/s_cprojf.c: Update using templated version.
4625         * sysdeps/alpha/fpu/s_csqrtf.c: Update using templated version.
4626
4627         * sysdeps/ieee754/ldbl-opt/s_cexp.c: Removed.
4628         * sysdeps/ieee754/ldbl-opt/s_cexpl.c: Removed.
4629         * sysdeps/ieee754/ldbl-opt/s_clog.c: Removed.
4630         * sysdeps/ieee754/ldbl-opt/s_clog10.c: Removed.
4631         * sysdeps/ieee754/ldbl-opt/s_clog10l.c: Removed.
4632         * sysdeps/ieee754/ldbl-opt/s_cpow.c: Removed.
4633         * sysdeps/ieee754/ldbl-opt/s_cpowl.c: Removed.
4634         * sysdeps/ieee754/ldbl-opt/s_cproj.c: Removed.
4635         * sysdeps/ieee754/ldbl-opt/s_cprojl.c: Removed.
4636         * sysdeps/ieee754/ldbl-opt/s_csqrt.c: Removed.
4637         * sysdeps/ieee754/ldbl-opt/s_csqrtl.c: Removed.
4638
4639         * sysdeps/ieee754/ldbl-opt/s_clogl.c: Update using templated
4640         version.
4641
4642         * sysdeps/m68k/m680x0/fpu/s_cexp.c: Refactor into.
4643         * sysdeps/m68k/m680x0/fpu/s_cexp_template.c: New file.
4644         * sysdeps/m68k/m680x0/fpu/s_cexpf.c: Removed.
4645         * sysdeps/m68k/m680x0/fpu/s_cexpl.c: Removed.
4646
4647 2016-08-29  Paul E. Murphy  <murphyp@linux.vnet.ibm.com>
4648
4649         * s_cexp_template.c: Copy of s_cexp.c.
4650         * s_clog_template.c: Copy of s_clog.c.
4651         * s_clog10_template.c: Copy of s_clog10.c.
4652         * s_cpow_template.c: Copy of s_cpow.c.
4653         * s_cproj_template.c: Copy of s_cproj.c.
4654         * s_csqrt_template.c: Copy of s_csqrt.c.
4655
4656 2016-08-29  Paul E. Murphy  <murphyp@linux.vnet.ibm.com>
4657
4658         [BZ #20517]
4659         * sysdeps/sparc/sparc32/sparcv9/fpu/multiarch/s_fdim.c:
4660         Include ldbl-opt/s_fdim.c to ensure fdiml@GLIBC_2.1 is
4661         exported.
4662
4663 2016-08-29  Joseph Myers  <joseph@codesourcery.com>
4664
4665         * math/fetestexceptflag.c: New file.
4666         * sysdeps/s390/fpu/fetestexceptflag.c: Likewise.  Comment by
4667         Stefan Liebler.
4668         * math/fenv.h [__GLIBC_USE (IEC_60559_BFP_EXT)]
4669         (fetestexceptflag): New function declaration.
4670         * manual/arith.texi (fetestexceptflag): Document function.
4671         * math/Versions (fetestexceptflag): New libm symbol at version
4672         GLIBC_2.25.
4673         * math/Makefile (libm-support): Add fetestexceptflag.
4674         (tests): Add test-fetestexceptflag.
4675         * math/test-fetestexceptflag.c: New file.
4676         * sysdeps/nacl/libm.abilist: Update.
4677         * sysdeps/unix/sysv/linux/aarch64/libm.abilist: Likewise.
4678         * sysdeps/unix/sysv/linux/alpha/libm.abilist: Likewise.
4679         * sysdeps/unix/sysv/linux/arm/libm.abilist: Likewise.
4680         * sysdeps/unix/sysv/linux/hppa/libm.abilist: Likewise.
4681         * sysdeps/unix/sysv/linux/i386/libm.abilist: Likewise.
4682         * sysdeps/unix/sysv/linux/ia64/libm.abilist: Likewise.
4683         * sysdeps/unix/sysv/linux/m68k/coldfire/libm.abilist: Likewise.
4684         * sysdeps/unix/sysv/linux/m68k/m680x0/libm.abilist: Likewise.
4685         * sysdeps/unix/sysv/linux/microblaze/libm.abilist: Likewise.
4686         * sysdeps/unix/sysv/linux/mips/mips32/libm.abilist: Likewise.
4687         * sysdeps/unix/sysv/linux/mips/mips64/libm.abilist: Likewise.
4688         * sysdeps/unix/sysv/linux/nios2/libm.abilist: Likewise.
4689         * sysdeps/unix/sysv/linux/powerpc/powerpc32/fpu/libm.abilist:
4690         Likewise.
4691         * sysdeps/unix/sysv/linux/powerpc/powerpc32/nofpu/libm.abilist:
4692         Likewise.
4693         * sysdeps/unix/sysv/linux/powerpc/powerpc64/libm-le.abilist:
4694         Likewise.
4695         * sysdeps/unix/sysv/linux/powerpc/powerpc64/libm.abilist:
4696         Likewise.
4697         * sysdeps/unix/sysv/linux/s390/s390-32/libm.abilist: Likewise.
4698         * sysdeps/unix/sysv/linux/s390/s390-64/libm.abilist: Likewise.
4699         * sysdeps/unix/sysv/linux/sh/libm.abilist: Likewise.
4700         * sysdeps/unix/sysv/linux/sparc/sparc32/libm.abilist: Likewise.
4701         * sysdeps/unix/sysv/linux/sparc/sparc64/libm.abilist: Likewise.
4702         * sysdeps/unix/sysv/linux/tile/tilegx/tilegx32/libm.abilist:
4703         Likewise.
4704         * sysdeps/unix/sysv/linux/tile/tilegx/tilegx64/libm.abilist:
4705         Likewise.
4706         * sysdeps/unix/sysv/linux/tile/tilepro/libm.abilist: Likewise.
4707         * sysdeps/unix/sysv/linux/x86_64/64/libm.abilist: Likewise.
4708         * sysdeps/unix/sysv/linux/x86_64/x32/libm.abilist: Likewise.
4709
4710 2016-08-26  Florian Weimer  <fweimer@redhat.com>
4711
4712         [BZ #20432]
4713         Avoid strong references to malloc-internal symbols when linking
4714         statically, to support statically interposed mallocs.
4715         * include/libc-symbols.h (call_function_static_weak): New macro.
4716         * malloc/Makefile (tests): Add tst-interpose-nothread,
4717         tst-interpose-thread, tst-interpose-static-nothread,
4718         tst-interpose-static-thread.
4719         (tests-static): Add tst-interpose-static-nothread,
4720         tst-interpose-static-thread.
4721         (extra-tests-objs): Add tst-interpose-aux-nothread.o,
4722         tst-interpose-aux-thread.o.
4723         (test-extras): Add tst-interpose-aux-nothread,
4724         tst-interpose-aux-thread.
4725         (tst-interpose-nothread, tst-interpose-static-nothread): Link with
4726         tst-interpose-aux-nothread.o.
4727         (tst-interpose-thread, tst-interpose-static-thread): Link with
4728         tst-interpose-aux-thread.o and libthread.
4729         * malloc/tst-interpose-aux-nothread.c: New file.
4730         * malloc/tst-interpose-aux-thread.c: Likewise.
4731         * malloc/tst-interpose-aux.c: Likewise.
4732         * malloc/tst-interpose-aux.h: Likewise.
4733         * malloc/tst-interpose-nothread.c: Likewise.
4734         * malloc/tst-interpose-skeleton.c: Likewise.
4735         * malloc/tst-interpose-static-nothread.c: Likewise.
4736         * malloc/tst-interpose-static-thread.c: Likewise.
4737         * malloc/tst-interpose-thread.c: Likewise.
4738         * nptl/tst-tls3-malloc.c: Use new interposed malloc.
4739         * sysdeps/mach/hurd/fork.c (__fork): Only call
4740         __malloc_fork_lock_parent, __malloc_fork_unlock_parent,
4741         __malloc_fork_unlock_child if defined.
4742         * sysdeps/nptl/fork.c (__libc_fork): Likewise.
4743
4744 2016-08-26  Adhemerval Zanella  <adhemerval.zanella@linaro.org>
4745
4746         * test-skeleton.c (delayed_exit_thread): Add initializer on struct
4747         timespec C99 designated initialization.
4748
4749 2016-08-26  Florian Weimer  <fweimer@redhat.com>
4750
4751         [BZ #19946]
4752         Avoid expected SIGALRM signals.
4753         * test-skeleton.c (xpthread_sigmask, xpthread_mutex_lock)
4754         (xpthread_spin_lock, xpthread_cond_wait, xpthread_barrier_wait)
4755         (xpthread_create, xpthread_detach, xpthread_join)
4756         (delayed_exit_thread, delayed_exit): New functions.
4757         * nptl/tst-cond3 (EXPECTED_SIGNAL): Remove.
4758         (tf): Use xpthread_cond_wait.
4759         (do_test): Likewise.  Replace alarm with delayed_exit.
4760         * nptl/tst-eintr1.c (EXPECTED_SIGNAL, TIMEOUT): Remove.
4761         (do_test): Call delayed_exit.  Report failure.
4762         * nptl/tst-eintr2.c (EXPECTED_SIGNAL, TIMEOUT): Remove.
4763         (do_test): Call delayed_exit.
4764         * nptl/tst-eintr3.c (EXPECTED_SIGNAL, TIMEOUT): Remove.
4765         (do_test): Call delayed_exit.  Use xpthread_join.  Report error.
4766         * nptl/tst-eintr4.c (EXPECTED_SIGNAL, TIMEOUT): Remove.
4767         (do_test): Call delayed_exit.  Use xpthread_barrier_wait.  Report
4768         error.
4769         * nptl/tst-eintr5.c (EXPECTED_SIGNAL, TIMEOUT): Remove.
4770         (do_test): Call delayed_exit.  Use xpthread_cond_wait.  Report
4771         error.
4772         * nptl/tst-exit2.c (EXPECTED_SIGNAL): Remove.
4773         (do_test): Call delayed_exit.
4774         * nptl/tst-exit3.c (EXPECTED_SIGNAL): Remove.
4775         (do_test): Call delayed_exit.
4776         * nptl/tst-mutex6.c (EXPECTED_SIGNAL): Remove.
4777         (do_test): Call delayed_exit instead of alarm.  Use
4778         xpthread_mutex_lock.
4779         * nptl/tst-rwlock5.c (EXPECTED_SIGNAL): Remove.
4780         (do_test): Call delayed_exit instead of alarm.  Use
4781         xpthread_mutex_lock.
4782         * nptl/tst-sem2.c (EXPECTED_SIGNAL): Remove.
4783         (do_test): Call delayed_exit instead of alarm.
4784         * nptl/tst-spin3.c (EXPECTED_SIGNAL): Remove.
4785         (do_test): Call delayed_exit instead of alarm.  Use
4786         xpthread_spin_lock.
4787         * nptl/tst-stdio1.c (EXPECTED_SIGNAL): Remove.
4788         (do_test): Call delayed_exit instead of alarm.  Use
4789         xpthread_join.
4790
4791 2016-08-26  H.J. Lu  <hongjiu.lu@intel.com>
4792
4793         * sysdeps/x86_64/dl-trampoline.h (_dl_runtime_resolve): Don't
4794         adjust CFA when allocating register save area on re-aligned
4795         stack.
4796
4797 2016-08-26  Florian Weimer  <fweimer@redhat.com>
4798
4799         * string/tst-cmp.c: New test.
4800         * string/Makefile (tests): Add it.
4801
4802 2016-08-25  Mark Wielaard  <mark@klomp.org>
4803
4804         * misc/tsearch.c (struct node_t): Reduce to 3 pointers if
4805         USE_MALLOC_LOW_BIT.  Define pointer/value accessors.
4806         (check_tree_recurse): Use newly defined accessors.
4807         (check_tree): Likewise.
4808         (maybe_split_for_insert): Likewise.
4809         (__tfind): Likewise.
4810         (__tdelete): Likewise.
4811         (trecurse): Likewise.
4812         (tdestroy_recurse): Likewise.
4813         (__tsearch): Likewise. And add asserts for malloc alignment.
4814         (__twalk): Cast root to node in case CHECK_TREE is defined.
4815
4816 2016-08-21  Samuel Thibault  <samuel.thibault@ens-lyon.org>
4817
4818         * scripts/check-local-headers.sh (exclude): Add mach_debug/.
4819
4820 2016-08-19  Paul E. Murphy  <murphyp@linux.vnet.ibm.com>
4821
4822         * math/Makefile (libm-gen-calls): Add
4823         catan, catanh, ctan, ctanh.
4824         (libm-calls): Remove the above.
4825
4826         * math/s_catan_template.c: Update using type-generic macros.
4827         * math/s_catanh_template.c: Likewise.
4828         * math/s_ctan_template.c: Likewise.
4829         * math/s_ctanh_template.c: Likewise.
4830
4831         * math/s_catanf.c: Removed.
4832         * math/s_catan.c: Removed.
4833         * math/s_catanl.c: Removed.
4834         * math/s_catanhf.c: Removed.
4835         * math/s_catanh.c: Removed.
4836         * math/s_catanhl.c: Removed.
4837         * math/s_ctanf.c: Removed.
4838         * math/s_ctan.c: Removed.
4839         * math/s_ctanl.c: Removed.
4840         * math/s_ctanhf.c: Removed.
4841         * math/s_ctanh.c: Removed.
4842         * math/s_ctanhl.c: Removed.
4843
4844         * sysdeps/ieee754/ldbl-opt/s_catanhl.c: Removed.
4845         * sysdeps/ieee754/ldbl-opt/s_catanl.c: Removed.
4846         * sysdeps/ieee754/ldbl-opt/s_ctan.c: Removed.
4847         * sysdeps/ieee754/ldbl-opt/s_ctanh.c: Removed.
4848         * sysdeps/ieee754/ldbl-opt/s_ctanhl.c: Removed.
4849         * sysdeps/ieee754/ldbl-opt/s_ctanl.c: Removed.
4850
4851         * sysdeps/alpha/fpu/s_catanf.c: Update to use template file.
4852         * sysdeps/alpha/fpu/s_catanhf.c: Likewise.
4853         * sysdeps/alpha/fpu/s_ctanf.c: Likewise.
4854         * sysdeps/alpha/fpu/s_ctanhf.c: Likewise.
4855
4856 2016-08-19  Paul E. Murphy  <murphyp@linux.vnet.ibm.com>
4857
4858         * s_catan_template.c: Copy of s_catan.c.
4859         * s_catanh_template.c: Copy of s_catanh.c.
4860         * s_ctan_template.c: Copy of s_ctan.c.
4861         * s_ctanh_template.c: Copy of s_ctanh.c.
4862
4863 2016-08-19  Paul E. Murphy  <murphyp@linux.vnet.ibm.com>
4864
4865         * math/Makefile (gen-libm-calls): Move
4866         casin, casinh, csin, csinh here.
4867         (libm-calls): Remove the above.
4868
4869         * math/s_casin_template.c: Update using type-generic macros.
4870         * math/s_casinh_template.c: Likewise.
4871         * math/s_csin_template.c: Likewise.
4872         * math/s_csinh_template.c: Likewise.
4873         * math/k_casinh_template.c: Likewise.
4874
4875         * math/s_casinf.c: Removed.
4876         * math/s_casin.c: Removed.
4877         * math/s_casinl.c: Removed.
4878         * math/s_casinh.c: Removed.
4879         * math/s_casinhf.c: Removed.
4880         * math/s_casinhl.c: Removed.
4881         * math/s_csin.c: Removed.
4882         * math/s_csinf.c: Removed.
4883         * math/s_csinl.c: Removed.
4884         * math/s_csinh.c: Removed.
4885         * math/s_csinhf.c: Removed.
4886         * math/s_csinhl.c: Removed.
4887         * math/k_casinh.c: Removed.
4888         * math/k_casinhf.c: Removed.
4889         * math/k_casinhl.c: Removed.
4890
4891         * sysdeps/alpha/fpu/s_casinf.c: Refactor using templated version.
4892         * sysdeps/alpha/fpu/s_casinhf.c: Likewise.
4893         * sysdeps/alpha/fpu/s_csinf.c: Likewise.
4894         * sysdeps/alpha/fpu/s_csinhf.c: Likewise.
4895
4896         * sysdeps/ieee754/ldbl-opt/s_casin.c: Removed.
4897         * sysdeps/ieee754/ldbl-opt/s_casinh.c: Removed.
4898         * sysdeps/ieee754/ldbl-opt/s_casinhl.c: Removed.
4899         * sysdeps/ieee754/ldbl-opt/s_casinl.c: Removed.
4900         * sysdeps/ieee754/ldbl-opt/s_csin.c: Removed.
4901         * sysdeps/ieee754/ldbl-opt/s_csinh.c: Removed.
4902         * sysdeps/ieee754/ldbl-opt/s_csinhl.c: Removed.
4903         * sysdeps/ieee754/ldbl-opt/s_csinl.c: Removed.
4904
4905         * sysdeps/m68k/m680x0/fpu/s_csin.c: Refactor into ...
4906         * sysdeps/m68k/m680x0/fpu/s_csin_template.c: New file.
4907         * sysdeps/m68k/m680x0/fpu/s_csinf.c: Removed.
4908         * sysdeps/m68k/m680x0/fpu/s_csinl.c: Removed.
4909
4910         * sysdeps/m68k/m680x0/fpu/s_csinh.c: Refactor into.
4911         * sysdeps/m68k/m680x0/fpu/s_csinh_template.c: New file.
4912         * sysdeps/m68k/m680x0/fpu/s_csinhf.c: Removed.
4913         * sysdeps/m68k/m680x0/fpu/s_csinhl.c: Removed.
4914
4915 2016-08-19  Paul E. Murphy  <murphyp@linux.vnet.ibm.com>
4916
4917         * s_casin_template.c: Copy of s_casin.c.
4918         * s_casinh_template.c: Copy of s_casinh.c.
4919         * s_csin_template.c: Copy of s_csin.c.
4920         * s_csinh_template.c: Copy of s_csinh.c.
4921         * k_casinh_template.c: Copy of k_casinh.c.
4922
4923 2016-08-19  H.J. Lu  <hongjiu.lu@intel.com>
4924
4925         * sysdeps/x86/cpu-features.h (bit_YMM_state): Set to (1 << 2).
4926
4927 2016-08-19  Paul E. Murphy  <murphyp@linux.vnet.ibm.com>
4928
4929         * sysdeps/ieee754/ldbl-128/gamma_productl.c:
4930         (mul_split) Remove, rename as mul_splitl, remove
4931         redundant float.h include, and include via mul_splitl.h
4932
4933         * sysdeps/ieee754/ldbl-128/lgamma_productl.c: Likewise.
4934         * sysdeps/ieee754/ldbl-128/x2y2m1l.c: Likewise.
4935         * sysdeps/ieee754/ldbl-96/gamma_product.c: Likewise.
4936         * sysdeps/ieee754/ldbl-96/lgamma_product.c: Likewise.
4937         * sysdeps/ieee754/ldbl-96/x2y2m1.c: Likewise.
4938
4939         * math/mul_splitl.h: New file.
4940
4941         * sysdeps/ieee754/dbl-64/gamma_product.c (mul_split):
4942         Move into mul_split.h, and remove redundant float.h include.
4943
4944         * sysdeps/ieee754/dbl-64/lgamma_product.c: Likewise.
4945         * sysdeps/ieee754/dbl-64/x2y2m1.c: Likewise.
4946         * sysdeps/ieee754/ldbl-128ibm/s_fmal.c: Likewise.
4947         * sysdeps/ieee754/ldbl-128ibm/x2y2m1.c: Likewise.
4948
4949         * math/mul_split.h: New file.
4950
4951 2016-08-19  Paul E. Murphy  <murphyp@linux.vnet.ibm.com>
4952
4953         * math/Makefile (libm-gen-calls): Move
4954         s_cacos, s_cacosh, s_ccos, s_ccosh from ...
4955         (libm-calls): Remove above.
4956
4957         * math/s_cacos_template.c: Update using type-generic macros.
4958         * math/s_cacosh_template.c: Likewise.
4959         * math/s_ccos_template.c: Likewise.
4960         * math/s_ccosh_template.c: Likwise.
4961
4962         * math/s_cacosf.c: Removed.
4963         * math/s_cacos.c: Removed.
4964         * math/s_cacosl.c: Removed.
4965         * math/s_cacoshf.c: Removed.
4966         * math/s_cacosh.c: Removed.
4967         * math/s_cacoshl.c: Removed.
4968         * math/s_ccosf.c: Removed.
4969         * math/s_ccos.c: Removed.
4970         * math/s_ccosl.c: Removed.
4971         * math/s_ccoshf.c: Removed.
4972         * math/s_ccosh.c: Removed.
4973         * math/s_ccoshl.c: Removed.
4974
4975         * sysdeps/ieee754/ldbl-opt/s_cacoshl.c: Removed.
4976         * sysdeps/ieee754/ldbl-opt/s_cacosl.c: Removed.
4977         * sysdeps/ieee754/ldbl-opt/s_ccos.c: Removed.
4978         * sysdeps/ieee754/ldbl-opt/s_ccosh.c: Removed.
4979         * sysdeps/ieee754/ldbl-opt/s_ccoshl.c: Removed.
4980         * sysdeps/ieee754/ldbl-opt/s_ccosl.c: Removed.
4981
4982         * sysdeps/m68k/m680x0/fpu/s_ccosh.c: Refactor into.
4983         * sysdeps/m68k/m680x0/fpu/s_ccosh_template.c: New file.
4984         * sysdeps/m68k/m680x0/fpu/s_ccoshf.c: Removed.
4985         * sysdeps/m68k/m680x0/fpu/s_ccoshl.c: Removed.
4986
4987         * sysdeps/alpha/fpu/s_cacosf.c: Update to use template file.
4988         * sysdeps/alpha/fpu/s_cacoshf.c: Likewise.
4989         * sysdeps/alpha/fpu/s_ccosf.c: Likewise.
4990         * sysdeps/alpha/fpu/s_ccoshf.c: Likewise.
4991
4992 2016-08-19  Paul E. Murphy  <murphyp@linux.vnet.ibm.com>
4993
4994         * s_cacos_template.c: Copy of s_cacos.c.
4995         * s_cacosh_template.c: Copy of s_cacosh.c.
4996         * s_ccos_template.c: Copy of s_ccos.c.
4997         * s_ccosh_template.c: Copy of s_ccosh.c.
4998
4999 2016-08-19  Paul E. Murphy  <murphyp@linux.vnet.ibm.com>
5000
5001         * stdlib/tst-strtod-round-skeleton.c:
5002         Refactored from tst-strtod-round.c.
5003
5004         (L_): New macro to apply literal modifier.
5005         (FNPFX): New macro to select str or wcs prefix.
5006         (CHAR): New macro to choose wchar_t or char.
5007         (STRM): New macro to choose printf for tested character type.
5008
5009         (STRTO): New macro to choose appropriate string -> real function.
5010         (FNPFXS): Stringitized version of FNPFX.
5011         (STR): Support for above macro.
5012         (STRX): Likewise.
5013
5014         (TEST): Update with above macros.
5015         (test): Likewise.
5016         (GEN_ONE_TEST): Likewise.
5017         (test_in_one_mode): Likewise.
5018
5019         * stdlib/tst-strtod-round.c: New file.
5020         * wcsmbs/tst-wcstod-round.c: New file.
5021
5022         * wcsmbs/Makefile: (tests): Add tst-wcstod-round
5023         (tst-wcstod-round): Add libm depencency for fesetround.
5024
5025 2016-08-19  Zack Weinberg  <zackw@panix.com>
5026
5027         * debug/tst-chk1.c: Add tests for fortification of bcopy and bzero.
5028
5029 2016-08-18  Torvald Riegel  <triegel@redhat.com>
5030
5031         [BZ #20477]
5032         * resolv/res_hconf.c (do_init): Use atomic access.
5033         * resolv/res_hconf.h: Add comments.
5034         * nscd/aicache.c (addhstaiX): Call _res_hconf_init unconditionally.
5035         * nss/getXXbyYY_r.c (REENTRANT_NAME): Likewise.
5036         * sysdeps/posix/getaddrinfo.c (gaih_inet): Likewise.
5037
5038 2016-08-18  Stefan Liebler  <stli@linux.vnet.ibm.com>
5039
5040         * sysdeps/ieee754/dbl-64/k_rem_pio2.c (__kernel_rem_pio2):
5041         Use DIAG_*_NEEDS_COMMENT macro to get rid of array-bounds warning.
5042         * sysdeps/ieee754/flt-32/k_rem_pio2f.c (__kernel_rem_pio2f):
5043         Likewise.
5044
5045 2016-08-18  Florian Weimer  <fweimer@redhat.com>
5046
5047         [BZ #16907]
5048         * argp/argp.h: Switch to __BEGIN_DECLS and __END_DECLS.
5049         (__THROW, __NTH, __attribute__, __restrict): Remove definitions.
5050         * argp/argp-fmtstream.h: Add __BEGIN_DECLS and __END_DECLS.
5051         (__attribute__): Remove definition.
5052
5053 2016-08-17  Paul E. Murphy  <murphyp@linux.vnet.ibm.com>
5054
5055         * sysdeps/ieee754/ldbl-128/e_asinl.c:
5056         Remove unused sqrtl declaration.
5057
5058 2016-08-17  Paul E. Murphy  <murphyp@linux.vnet.ibm.com>
5059
5060         * math/Makefile: (gen-libm-templates.stmp): New rule.
5061         (libm-calls): Move carg conj cimag and cabs into ...
5062         (gen-libm-calls): New variable.
5063         (generated): Inform Make objects from gen-libm-calls
5064         may be generated.
5065
5066         * sysdeps/generic/math-type-macros.h: New file.
5067         * sysdeps/generic/math-type-macros-float.h: Likewise.
5068         * sysdeps/generic/math-type-macros-double.h: Likewise.
5069         * sysdeps/generic/math-type-macros-ldouble.h: Likewise.
5070         * sysdeps/ieee754/ldbl-opt/math-type-macros-double.h: Likewise.
5071         * sysdeps/ieee754/ldbl-opt/math-type-macros-ldouble.h: Likewise.
5072
5073         * math/cabs.c: Refactor into
5074         * math/cabs_template.c: new file.
5075         * math/cabsf.c: Removed.
5076         * math/cabsl.c: Removed.
5077         * sysdeps/ieee754/ldbl-opt/cabsf.c: Removed.
5078         * sysdeps/ieee754/ldbl-opt/cabsl.c: Removed.
5079
5080         * math/carg.c: Refactor into
5081         * math/carg_template.c: new file.
5082         * math/cargf.c: Removed.
5083         * math/cargl.c: Removed.
5084         * sysdeps/ieee754/ldbl-opt/cargf.c: Removed.
5085         * sysdeps/ieee754/ldbl-opt/cargl.c: Removed.
5086
5087         * math/conj.c: Refactor into
5088         * math/conj_template.c: new file.
5089         * math/conjf.c: Removed.
5090         * math/conjl.c: Removed.
5091         * sysdeps/ieee754/ldbl-opt/conjf.c: Removed.
5092         * sysdeps/ieee754/ldbl-opt/conjl.c: Removed.
5093
5094         * math/cimag.c: Refactor into
5095         * math/cimag_template.c: new file.
5096         * math/cimagf.c: Removed.
5097         * math/cimagl.c: Removed.
5098         * sysdeps/ieee754/ldbl-opt/cimagf.c: Removed.
5099         * sysdeps/ieee754/ldbl-opt/cimagl.c: Removed.
5100
5101         * math/cimag.c: Refactor into
5102         * math/cimag_template.c: new file.
5103         * math/cimagf.c: Removed.
5104         * math/cimagl.c: Removed.
5105         * sysdeps/ieee754/ldbl-opt/cimagf.c: Removed.
5106         * sysdeps/ieee754/ldbl-opt/cimagl.c: Removed.
5107
5108 2016-08-17  Florian Weimer  <fweimer@redhat.com>
5109
5110         Reduce time to expected nptl/tst-once5 failure.
5111         * nptl/tst-once5.cc (TIMEOUT): Define.
5112
5113 2016-08-17  Florian Weimer  <fweimer@redhat.com>
5114
5115         [BZ #20452]
5116         Avoid additional copies of objects in libc.a in static libraries.
5117         * sysdeps/ia64/nptl/Makefile (libpthread-shared-only-routines):
5118         Add ptw-sysdep, ptw-sigblock, ptw-sigprocmask.
5119         * sysdeps/mips/Makefile (librt-shared-only-routines): Add
5120         rt-sysdep.
5121         * sysdeps/mips/nptl/Makefile (libpthread-shared-only-routines):
5122         Add nptl-sysdep.
5123         * sysdeps/s390/nptl/Makefile (libpthread-shared-only-routines):
5124         Add ptw-sysdep.
5125         * sysdeps/unix/alpha/Makefile (librt-shared-only-routines): Add
5126         rt-sysdep.
5127         * sysdeps/unix/sysv/linux/alpha/Makefile
5128         (libpthread-shared-only-routines): Add ptw-sysdep,
5129         ptw-sigprocmask, ptw-rt_sigaction.
5130         * sysdeps/unix/sysv/linux/ia64/Makefile
5131         (librt-shared-only-routines): Add rt-sysdep.
5132         * sysdeps/unix/sysv/linux/i386/Makefile
5133         (libpthread-shared-only-routines): Add libc-do-syscall.
5134         * sysdeps/unix/sysv/linux/microblaze/Makefile
5135         (libpthread-shared-only-routines): Add sysdep.
5136         * sysdeps/unix/sysv/linux/powerpc/Makefile
5137         (librt-shared-only-routines): Add rt-sysdep.
5138         (libpthread-shared-only-routines): Add sysdep.
5139         * sysdeps/unix/sysv/linux/s390/Makefile
5140         (librt-shared-only-routines): Add rt-sysdep.
5141         * sysdeps/unix/sysv/linux/sparc/Makefile
5142         (librt-shared-only-routines): Add rt-sysdep.
5143         (libpthread-shared-only-routines): Add sysdep.
5144         * sysdeps/unix/sysv/linux/tile/Makefile
5145         (libpthread-shared-only-routines): Likewise.
5146
5147 2016-08-16  Joseph Myers  <joseph@codesourcery.com>
5148
5149         * soft-fp/extended.h [_FP_W_TYPE_SIZE < 64] (FP_UNPACK_RAW_E):
5150         Mask implicit bit out of unpacked value.
5151         [_FP_W_TYPE_SIZE < 64] (FP_UNPACK_RAW_EP): Likewise.
5152         [_FP_W_TYPE_SIZE >= 64] (FP_UNPACK_RAW_E): Likewise.
5153         [_FP_W_TYPE_SIZE >= 64] (FP_UNPACK_RAW_EP): Likewise.
5154
5155         * sysdeps/sparc/fpu/fesetexcept.c: New file.
5156
5157         * sysdeps/sh/sh4/fpu/fesetexcept.c: New file.
5158
5159         * sysdeps/s390/fpu/fesetexcept.c: New file.
5160
5161         * sysdeps/powerpc/fpu/fesetexcept.c: New file.
5162         * sysdeps/powerpc/nofpu/fesetexcept.c: Likewise.
5163         * sysdeps/powerpc/powerpc32/e500/nofpu/fesetexcept.c: Likewise.
5164
5165         * sysdeps/mips/fpu/fesetexcept.c: New file.
5166
5167         * sysdeps/m68k/fpu/fesetexcept.c: New file.
5168
5169         * sysdeps/ia64/fpu/fesetexcept.c: New file.
5170
5171         * sysdeps/hppa/fpu/fesetexcept.c: New file.
5172
5173         * sysdeps/arm/fesetexcept.c: New file.
5174
5175         * sysdeps/alpha/fpu/fesetexcept.c: New file.
5176
5177         * sysdeps/aarch64/fpu/fesetexcept.c: New file.
5178
5179         * math/fesetexcept.c: New file.
5180         * sysdeps/i386/fpu/fesetexcept.c: Likewise.
5181         * sysdeps/x86_64/fpu/fesetexcept.c: Likewise.
5182         * math/fenv.h: Define
5183         __GLIBC_INTERNAL_STARTING_HEADER_IMPLEMENTATION and include
5184         <bits/libc-header-start.h> instead of including <features.h>.
5185         [__GLIBC_USE (IEC_60559_BFP_EXT)] (fesetexcept): New function
5186         declaration.
5187         * manual/arith.texi (fesetexcept): Document function.
5188         * math/Versions (fesetexcept): New libm symbol at version
5189         GLIBC_2.25.
5190         * math/Makefile (libm-support): Add fesetexcept.
5191         (tests): Add test-fesetexcept and test-fesetexcept-traps.
5192         * math/test-fesetexcept.c: New file.
5193         * math/test-fesetexcept-traps.c: Likewise.
5194         * sysdeps/nacl/libm.abilist: Update.
5195         * sysdeps/unix/sysv/linux/aarch64/libm.abilist: Likewise.
5196         * sysdeps/unix/sysv/linux/alpha/libm.abilist: Likewise.
5197         * sysdeps/unix/sysv/linux/arm/libm.abilist: Likewise.
5198         * sysdeps/unix/sysv/linux/hppa/libm.abilist: Likewise.
5199         * sysdeps/unix/sysv/linux/i386/libm.abilist: Likewise.
5200         * sysdeps/unix/sysv/linux/ia64/libm.abilist: Likewise.
5201         * sysdeps/unix/sysv/linux/m68k/coldfire/libm.abilist: Likewise.
5202         * sysdeps/unix/sysv/linux/m68k/m680x0/libm.abilist: Likewise.
5203         * sysdeps/unix/sysv/linux/microblaze/libm.abilist: Likewise.
5204         * sysdeps/unix/sysv/linux/mips/mips32/libm.abilist: Likewise.
5205         * sysdeps/unix/sysv/linux/mips/mips64/libm.abilist: Likewise.
5206         * sysdeps/unix/sysv/linux/nios2/libm.abilist: Likewise.
5207         * sysdeps/unix/sysv/linux/powerpc/powerpc32/fpu/libm.abilist:
5208         Likewise.
5209         * sysdeps/unix/sysv/linux/powerpc/powerpc32/nofpu/libm.abilist:
5210         Likewise.
5211         * sysdeps/unix/sysv/linux/powerpc/powerpc64/libm-le.abilist:
5212         Likewise.
5213         * sysdeps/unix/sysv/linux/powerpc/powerpc64/libm.abilist:
5214         Likewise.
5215         * sysdeps/unix/sysv/linux/s390/s390-32/libm.abilist: Likewise.
5216         * sysdeps/unix/sysv/linux/s390/s390-64/libm.abilist: Likewise.
5217         * sysdeps/unix/sysv/linux/sh/libm.abilist: Likewise.
5218         * sysdeps/unix/sysv/linux/sparc/sparc32/libm.abilist: Likewise.
5219         * sysdeps/unix/sysv/linux/sparc/sparc64/libm.abilist: Likewise.
5220         * sysdeps/unix/sysv/linux/tile/tilegx/tilegx32/libm.abilist:
5221         Likewise.
5222         * sysdeps/unix/sysv/linux/tile/tilegx/tilegx64/libm.abilist:
5223         Likewise.
5224         * sysdeps/unix/sysv/linux/tile/tilepro/libm.abilist: Likewise.
5225         * sysdeps/unix/sysv/linux/x86_64/64/libm.abilist: Likewise.
5226         * sysdeps/unix/sysv/linux/x86_64/x32/libm.abilist: Likewise.
5227
5228 2016-08-16  Florian Weimer  <fweimer@redhat.com>
5229
5230         * nptl/tst-tls3.c (default_stack_size_in_mb, stack_size_in_mb):
5231         New.
5232         (do_test): Apply default_stack_size_in_mb if not set.
5233         * nptl/tst-tls3-malloc.c (stack_size_in_mb): Override default.
5234
5235 2016-08-15  Andreas Schwab  <schwab@suse.de>
5236
5237         [BZ #20435]
5238         CVE-2016-6323
5239         * sysdeps/unix/sysv/linux/arm/setcontext.S (__startcontext): Mark
5240         as .cantunwind.
5241
5242 2016-08-12  Joseph Myers  <joseph@codesourcery.com>
5243
5244         * sysdeps/powerpc/fpu/fsetexcptflg.c (__fesetexceptflag): Add
5245         comment from fraiseexcpt.c.
5246
5247         * math/test-fexcept.c (feraiseexcept_exact): New function.
5248         (test_set): Call feraiseexcept_exact instead of feraiseexcept.
5249         (test_except): Likewise.
5250
5251 2016-08-10  Joseph Myers  <joseph@codesourcery.com>
5252
5253         [BZ #20455]
5254         * sysdeps/powerpc/fpu/fsetexcptflg.c (__fesetexceptflag): Mask out
5255         all FE_INVALID sub-exceptions from FPSCR when FE_INVALID specified
5256         to be restored.
5257
5258         * math/test-fexcept-traps.c: New file.
5259         * math/test-fexcept.c: Likewise.
5260         * math/Makefile (tests): Add test-fexcept and test-fexcept-traps.
5261         * sysdeps/generic/math-tests.h (EXCEPTION_SET_FORCES_TRAP): New
5262         macro.
5263         * sysdeps/powerpc/math-tests.h [!__NO_FPRS__]
5264         (EXCEPTION_SET_FORCES_TRAP): Likewise.
5265
5266 2016-08-09  Torvald Riegel  <triegel@redhat.com>
5267
5268         * include/atomic.h (atomic_fetch_and_relaxed,
5269         atomic_fetch_and_release, atomic_fetch_or_release,
5270         atomic_fetch_xor_release): New.
5271
5272 2016-08-06  Christian Seiler  <christian@iwakd.de>
5273
5274         [BZ #20444]
5275         * sysdeps/mach/hurd/recvmsg.c (__libc_recvmsg): Cope with aport being
5276         MACH_PORT_NULL.
5277
5278 2016-08-05  Aurelien Jarno  <aurelien@aurel32.net>
5279
5280         * math/s_fdim.c: Avoid alias renamed.
5281         * math/s_fdimf.c: Likewise.
5282         * sysdeps/sparc/sparc32/sparcv9/fpu/multiarch/Makefile
5283         [$(subdir) = math && $(have-as-vis3) = yes] (libm-sysdep_routines):
5284         Add s_fdimf-vis3, s_fdim-vis3.
5285         (CFLAGS-s_fdimf-vis3.c): New. Set to -Wa,-Av9d -mvis3.
5286         (CFLAGS-s_fdim-vis3.c): Likewise.
5287         sysdeps/sparc/sparc32/sparcv9/fpu/multiarch/s_fdim-vis3.c: New file.
5288         sysdeps/sparc/sparc32/sparcv9/fpu/multiarch/s_fdim.c: Likewise.
5289
5290 2016-08-05  Aurelien Jarno  <aurelien@aurel32.net>
5291
5292         * sysdeps/sparc/sparc32/sparcv9/fpu/multiarch/Makefile
5293         [$(subdir) = math && $(have-as-vis3) = yes] (libm-sysdep_routines):
5294         Remove s_fdimf-vis3, s_fdim-vis3.
5295         * sysdeps/sparc/sparc32/fpu/s_fdim.S: Delete file.
5296         * sysdeps/sparc/sparc32/fpu/s_fdimf.S: Likewise.
5297         * sysdeps/sparc/sparc32/sparcv9/fpu/multiarch/s_fdim-vis3.S: Likewise.
5298         * sysdeps/sparc/sparc32/sparcv9/fpu/multiarch/s_fdim.S: Likewise.
5299         * sysdeps/sparc/sparc32/sparcv9/fpu/multiarch/s_fdimf-vis3.S: Likewise.
5300         * sysdeps/sparc/sparc32/sparcv9/fpu/multiarch/s_fdimf.S: Likewise.
5301         * sysdeps/sparc/sparc32/sparcv9/fpu/s_fdim.S: Likewise.
5302         * sysdeps/sparc/sparc32/sparcv9/fpu/s_fdimf.S: Likewise.
5303         * sysdeps/sparc/sparc64/fpu/s_fdim.S: Likewise.
5304         * sysdeps/sparc/sparc64/fpu/s_fdimf.S: Likewise.
5305
5306 2016-08-05  Aurelien Jarno  <aurelien@aurel32.net>
5307
5308         * sysdeps/sparc/sparc32/sparcv9/Makefile (sysdep-CFLAGS): Add -mvis.
5309         * sysdeps/sparc/sparc64/Makefile (sysdep-CFLAGS): New. Define to
5310         -Wa,-Av9a -mvis.
5311
5312 2016-08-05  Paul E. Murphy  <murphyp@linux.vnet.ibm.com>
5313
5314         * math/gen-libm-test.pl (apply_lit): Rewrite to apply
5315         LIT() to individual constants in simple expressions
5316         after splitting on spaces.
5317         (_apply_lit): Rename replaced version, and use it to
5318         apply to what appears to be a token.
5319
5320         * math/libm-test.inc: Fix many, many issues with
5321         spacing.
5322
5323 2016-08-05  Joseph Myers  <joseph@codesourcery.com>
5324
5325         * math/math.h: Move comment about <bits/mathdef.h> definitions
5326         above inclusion of <bits/mathdef.h>.  Do not mention
5327         FLT_EVAL_METHOD, INFINITY or DECIMAL_DIG in that comment.
5328
5329 2016-08-05  Torvald Riegel  <triegel@redhat.com>
5330
5331         * include/atomic.h (atomic_exchange_relaxed): New.
5332
5333 2016-08-04  Joseph Myers  <joseph@codesourcery.com>
5334
5335         * math/e_scalb.c: Do not include <fenv.h>.
5336         (invalid_fn): Do calculation resulting in NaN instead of raising
5337         FE_INVALID and returning a NaN explicitly.
5338         * math/e_scalbf.c: Do not include <fenv.h>.
5339         (invalid_fn): Do calculation resulting in NaN instead of raising
5340         FE_INVALID and returning a NaN explicitly.
5341         * math/e_scalbl.c: Do not include <fenv.h>.
5342         (invalid_fn): Do calculation resulting in NaN instead of raising
5343         FE_INVALID and returning a NaN explicitly.
5344
5345 2016-08-04  Carlos O'Donell  <carlos@redhat.com>
5346
5347         * po/de.po: Updated from Translation Project.
5348         * po/fi.po: Likewise.
5349         * po/sv.po: Likewise.
5350
5351 2016-08-04  Florian Weimer  <fweimer@redhat.com>
5352
5353         [BZ #20452]
5354         Use sysdep.o from libc.a in static libraries.
5355         * sysdeps/unix/sysv/linux/i386/Makefile
5356         (libpthread-shared-only-routines): Add sysdep.
5357         (librt-shared-only-routines): Likewise.
5358
5359 2016-08-03  Joseph Myers  <joseph@codesourcery.com>
5360
5361         * math/tgmath.h (nextdown): Define if
5362         [__GLIBC_USE (IEC_60559_BFP_EXT)], not if [__USE_GNU].
5363         (nextup): Likewise.
5364
5365         * bits/libc-header-start.h (__GLIBC_USE_IEC_60559_FUNCS_EXT): New
5366         macro.
5367         * include/features.h (__STDC_WANT_IEC_60559_FUNCS_EXT__):
5368         Document.
5369         * manual/creature.texi (__STDC_WANT_IEC_60559_FUNCS_EXT__):
5370         Document macro.
5371         * manual/math.texi (exp10): Document as ISO from TS 18661-4:2015.
5372         (exp10f): Likewise.
5373         (exp10l): Likewise.
5374         * math/bits/mathcalls.h (exp10): Declare if
5375         [__GLIBC_USE (IEC_60559_FUNCS_EXT)], not [__USE_GNU].
5376
5377         * manual/arith.texi (nextup): Fix typo in last change.
5378
5379 2016-08-03  Zack Weinberg  <zackw@panix.com>
5380
5381         [BZ #19239]
5382         * NEWS: Inclusion of <sys/sysmacros.h> by <sys/types.h> is deprecated.
5383         * misc/sys/sysmacros.h: If __SYSMACROS_DEPRECATED_INCLUSION is defined,
5384         define major, minor, and makedev to issue deprecation warnings on use.
5385         If __SYSMACROS_DEPRECATED_INCLUSION is *not* defined, suppress
5386         previously-activated deprecation warnings for these macros and prevent
5387         subsequent inclusions of this header from having any effect.
5388         * posix/sys/types.h: Define __SYSMACROS_DEPRECATED_INCLUSION before
5389         including <sys/sysmacros.h>, and undefine it again afterward.
5390
5391 2016-08-03  Zack Weinberg  <zackw@panix.com>
5392
5393         * sysdeps/generic/sys/sysmacros.h: Delete file.
5394         * sysdeps/unix/sysv/linux/makedev.c: Delete file.
5395         * sysdeps/unix/sysv/linux/sys/sysmacros.h: Move file ...
5396         * bits/sysmacros.h: ... here; this encoding is now the generic
5397         encoding.  Now defines only the following macros:
5398         __SYSMACROS_DECLARE_MAJOR, __SYSMACROS_DEFINE_MAJOR,
5399         __SYSMACROS_DECLARE_MINOR, __SYSMACROS_DEFINE_MINOR,
5400         __SYSMACROS_DECLARE_MAKEDEV, __SYSMACROS_DEFINE_MAKEDEV.
5401
5402         * misc/sys/sysmacros.h, misc/makedev.c: New files that use
5403         bits/sysmacros.h and the above new macros to generate the
5404         public implementations of major, minor, and makedev.
5405         * misc/tst-makedev.c: New test.
5406         * include/sys/sysmacros.h: New wrapper.
5407
5408         * misc/Makefile (headers): Add sys/sysmacros.h, bits/sysmacros.h.
5409         (routines): Add makedev.
5410         (tests): Add tst-makedev.
5411         * misc/Versions [GLIBC_2.25]: Add gnu_dev_major, gnu_dev_minor,
5412         gnu_dev_makedev.
5413         * posix/Makefile (headers): Remove sys/sysmacros.h.
5414         * sysdeps/unix/sysv/linux/Makefile (sysdep_routines): Remove makedev.
5415
5416         * sysdeps/arm/nacl/libc.abilist: Add GLIBC_2.25,
5417         gnu_dev_major, gnu_dev_makedev, gnu_dev_minor.
5418         * sysdeps/unix/sysv/linux/aarch64/libc.abilist
5419         * sysdeps/unix/sysv/linux/alpha/libc.abilist
5420         * sysdeps/unix/sysv/linux/arm/libc.abilist
5421         * sysdeps/unix/sysv/linux/hppa/libc.abilist
5422         * sysdeps/unix/sysv/linux/i386/libc.abilist
5423         * sysdeps/unix/sysv/linux/ia64/libc.abilist
5424         * sysdeps/unix/sysv/linux/m68k/coldfire/libc.abilist
5425         * sysdeps/unix/sysv/linux/m68k/m680x0/libc.abilist
5426         * sysdeps/unix/sysv/linux/microblaze/libc.abilist
5427         * sysdeps/unix/sysv/linux/mips/mips32/fpu/libc.abilist
5428         * sysdeps/unix/sysv/linux/mips/mips32/nofpu/libc.abilist
5429         * sysdeps/unix/sysv/linux/mips/mips64/n32/libc.abilist
5430         * sysdeps/unix/sysv/linux/mips/mips64/n64/libc.abilist
5431         * sysdeps/unix/sysv/linux/nios2/libc.abilist
5432         * sysdeps/unix/sysv/linux/powerpc/powerpc32/fpu/libc.abilist
5433         * sysdeps/unix/sysv/linux/powerpc/powerpc32/nofpu/libc.abilist
5434         * sysdeps/unix/sysv/linux/powerpc/powerpc64/libc-le.abilist
5435         * sysdeps/unix/sysv/linux/powerpc/powerpc64/libc.abilist
5436         * sysdeps/unix/sysv/linux/s390/s390-32/libc.abilist
5437         * sysdeps/unix/sysv/linux/s390/s390-64/libc.abilist
5438         * sysdeps/unix/sysv/linux/sh/libc.abilist
5439         * sysdeps/unix/sysv/linux/sparc/sparc32/libc.abilist
5440         * sysdeps/unix/sysv/linux/sparc/sparc64/libc.abilist
5441         * sysdeps/unix/sysv/linux/tile/tilegx/tilegx32/libc.abilist
5442         * sysdeps/unix/sysv/linux/tile/tilegx/tilegx64/libc.abilist
5443         * sysdeps/unix/sysv/linux/tile/tilepro/libc.abilist
5444         * sysdeps/unix/sysv/linux/x86_64/64/libc.abilist
5445         * sysdeps/unix/sysv/linux/x86_64/x32/libc.abilist:
5446         Add GLIBC_2.25.
5447
5448         * include/features.h (__glibc_clang_prereq): New macro.
5449         * misc/sys/cdefs.h (__glibc_clang_has_extension)
5450         (__attribute_deprecated_msg__): New macros.
5451
5452 2016-08-03  Joseph Myers  <joseph@codesourcery.com>
5453
5454         * bits/libc-header-start.h (__GLIBC_USE_IEC_60559_BFP_EXT): New
5455         macro.
5456         * include/features.h (__STDC_WANT_IEC_60559_BFP_EXT__): Document.
5457         * manual/arith.texi (issignaling): Document as ISO from TS
5458         18661-1:2014.
5459         (nextup): Likewise.
5460         (nextupf): Likewise.
5461         (nextupl): Likewise.
5462         (nextdown): Likewise.
5463         (nextdownf): Likewise.
5464         (nextdownl): Likewise.
5465         * manual/creature.texi (__STDC_WANT_IEC_60559_BFP_EXT__): Document
5466         macro.
5467         * math/math.h: Define
5468         __GLIBC_INTERNAL_STARTING_HEADER_IMPLEMENTATION and include
5469         <bits/libc-header-start.h> instead of including <features.h>.
5470         (issignaling): Define if [__GLIBC_USE (IEC_60559_BFP_EXT)], not
5471         [__USE_GNU].
5472         * math/bits/mathcalls.h (nextdown): Declare if
5473         [__GLIBC_USE (IEC_60559_BFP_EXT)], not [__USE_GNU].
5474         (nextup): Likewise.
5475         (__issignaling): Likewise.
5476
5477 2016-08-03  Paul E. Murphy  <murphyp@linux.vnet.ibm.com>
5478
5479         * s_ccoshf.c (__ccoshf): Remove FE_INVALID
5480         check, and remove __glibc_likely hint
5481         from FP_INFINITE check.
5482         * s_csinhf.c (__csinhf): Likewise.
5483
5484         * s_ccoshl.c (__ccoshl): Remove __glibc_likely
5485         hint from FP_INFINITE check.
5486         * s_csinhl.c (__csinhl): Likewise.
5487
5488 2016-08-03  Paul E. Murphy  <murphyp@linux.vnet.ibm.com>
5489
5490         * math/Makefile (libm-calls): Insert F placeholder into
5491         object names.  Move w_lgamma_compat* routines into
5492         (libm-compat-calls): New variable.
5493         (libm-compat-calls-ldouble-yes): New variable.
5494         (calls): Insert F placeholder.
5495         (generated): Redefine using new type-foreach macro call.
5496         (routines): Likewise.
5497
5498         (types): New variable to hold a list of symbolic names
5499         for each type supported by the target machine.
5500         (libm-routines): Redefine using new types variable.
5501         (type-foreach): macro to replace fooF with the
5502         appropriately suffixed foo for each types.
5503
5504         (type-ldouble-suffix): New variable.
5505         (type-ldouble-routines): Likewise.
5506         (type-ldouble-yes): Likewise.
5507         (type-double-suffix): Likewise.
5508         (type-double-routines): Likewise.
5509         (type-float-suffix): Likewise.
5510         (type-float-routines): Likewise.
5511
5512         (dbl-only-routines): Remove.
5513         (long-c-yes): Likewise.
5514         (long-m-routines): Likewise.
5515         (long-m-support): Likewise.
5516         (long-m-yes): Likewise.
5517         (test-longdouble-yes): Likewise.
5518
5519         (test-float.o): Simplify by increasing the scope of the
5520         recipe which adds libm-test.stmp to the vector types.
5521         (test-ifloat.o): Likewise.
5522         (test-float-finite.o): Likewise.
5523         (test-double.o): Likewise
5524         (test-idouble.o): Likewise.
5525         (test-double-finite.o): Likewise.
5526         (test-ldouble.o): Likewise
5527         (test-ildoubl.o): Likewise.
5528         (test-ldouble-finite.o): Likewise.
5529
5530         (libm-tests): Redefine type tests using foreach and the
5531         list of types in types.
5532
5533         (CPPFLAGS-test-ildoubl.c): Rename to
5534         (CPPFLAGS-test-ildouble.c): New variable
5535
5536         * math/test-ildoubl.c: Rename to
5537         * math/test-ildouble.c: New file.
5538
5539 2016-08-03  Paul E. Murphy  <murphyp@linux.vnet.ibm.com>
5540
5541         * sysdeps/ieee754/ldbl-128/k_tanl.c (__kernal_tanl):
5542         Use fabsl instead of fabs.
5543         * sysdeps/ieee754/ldbl-128/s_logbl.c (__logbl):
5544         Likewise.
5545         * sysdeps/ieee754/ldbl-128/s_atanl.c (__kernel_tanl):
5546         Add long double suffix to constant to ensure proper
5547         promotion to long double.
5548
5549 2016-08-03  Tom Tromey  <tom@tromey.com>
5550
5551         [BZ #20311]
5552         * nptl_db/Makefile (headers): Add proc_service.h.
5553         * nptl_db/proc_service.h: Add include guard.  Use
5554         __BEGIN/__END_DECLS.
5555         (ps_get_thread_area, ps_pstop, ps_pcontinue, ps_lstop)
5556         (ps_lcontinue): Remove "const" from "struct ps_prochandle *"
5557         arguments.
5558
5559
5560 2016-08-03  Florian Weimer  <fweimer@redhat.com>
5561
5562         [BZ #17730]
5563         Avoid using memalign for TCB allocations.
5564         * elf/dl-tls.c (tcb_to_pointer_to_free_location): New.
5565         (_dl_allocate_tls_storage): Use malloc and manual alignment.
5566         Avoid alignment gap in the TLS_DTV_AT_TP case.
5567         (_dl_deallocate_tls): Use tcb_to_pointer_to_free_location to
5568         determine the pointer to free.
5569         * nptl/tst-tls3-malloc.c: New test.
5570         * nptl/Makefile (tests): Add it.
5571         (tst-tls3-malloc): Link with libdl, libpthread.
5572         (LDFLAGS-tst-tls3-malloc): Set.
5573         (tst-tls3-malloc.out): Depend on DSO used in test.
5574
5575 2016-08-03  Florian Weimer  <fweimer@redhat.com>
5576
5577         [BZ #17730]
5578         Avoid using memalign for TLS allocations.
5579         * sysdeps/generic/dl-dtv.h (struct dtv_pointer): New.  Replaces
5580         is_static member with to_free member.
5581         (union dtv): Use struct dtv_pointer.
5582         * csu/libc-tls.c (__libc_setup_tls): Set to_free member of struct
5583         dtv_pointer instead of is_static.
5584         * elf/dl-tls.c (_dl_allocate_tls_init): Likewise.
5585         (_dl_deallocate_tls): Free to_free member of struct dtv_pointer
5586         instead of val.
5587         (allocate_dtv_entry): New function.
5588         (allocate_and_init): Return struct dtv_pointer.  Call
5589         allocate_dtv_entry instead of __libc_memalign.
5590         (_dl_update_slotinfo): Free to_free member of struct dtv_pointer
5591         instead of val.
5592         (tls_get_addr_tail): Set to_free member of struct dtv_pointer
5593         instead of is_static.  Adjust call to allocate_and_init.
5594         * nptl/allocatestack.c (get_cached_stack): Free to_free member of
5595         struct dtv_pointer instead of val.
5596
5597 2016-08-03  Florian Weimer  <fweimer@redhat.com>
5598
5599         * malloc/malloc.c (INTERNAL_SIZE_T, SIZE_SZ, MALLOC_ALIGNMENT)
5600         (MALLOC_ALIGN_MASK): Move ...
5601         * malloc/malloc-internal.h: ... to here.
5602         * elf/dl-minimal.c (malloc): Allocate with MALLOC_ALIGNMENT.
5603
5604 2016-08-03  Joseph Myers  <joseph@codesourcery.com>
5605
5606         * sysdeps/gnu/netinet/udp.h (UDP_ENCAP_GTP0): New macro.
5607         (UDP_ENCAP_GTP1U): Likewise.
5608
5609         * sysdeps/unix/sysv/linux/bits/socket.h (PF_QIPCRTR): New macro.
5610         (PF_MAX): Update value.
5611         (AF_QIPCRTR): New macro.
5612
5613 2016-08-03  Aurelien Jarno  <aurelien@aurel32.net>
5614
5615         * sysdeps/ieee754/dbl-64/s_trunc.c: Avoid alias renamed.
5616         * sysdeps/ieee754/dbl-64/wordsize-64/s_trunc.c: Likewise.
5617         * sysdeps/ieee754/flt-32/s_truncf.c: Likewise.
5618         * sysdeps/sparc/sparc64/fpu/multiarch/Makefile
5619         [$(subdir) = math && $(have-as-vis3) = yes] (libm-sysdep_routines):
5620         Add s_ceilf-vis3, s_ceil-vis3, s_floorf-vis3, s_floor-vis3,
5621         s_truncf-vis3, s_trunc-vis3.
5622         (CFLAGS-s_ceilf-vis3.c): New. Set to -Wa,-Av9d -mvis3.
5623         (CFLAGS-s_ceil-vis3.c): Likewise.
5624         (CFLAGS-s_floorf-vis3.c): Likewise.
5625         (CFLAGS-s_floor-vis3.c): Likewise.
5626         (CFLAGS-s_truncf-vis3.c): Likewise.
5627         (CFLAGS-s_trunc-vis3.c): Likewise.
5628         * sysdeps/sparc/sparc64/fpu/multiarch/s_ceil-vis3.c: New file.
5629         * sysdeps/sparc/sparc64/fpu/multiarch/s_ceil.c: Likewise.
5630         * sysdeps/sparc/sparc64/fpu/multiarch/s_ceilf-vis3.c: Likewise.
5631         * sysdeps/sparc/sparc64/fpu/multiarch/s_ceilf.c: Likewise.
5632         * sysdeps/sparc/sparc64/fpu/multiarch/s_floor-vis3.c: Likewise.
5633         * sysdeps/sparc/sparc64/fpu/multiarch/s_floor.c: Likewise.
5634         * sysdeps/sparc/sparc64/fpu/multiarch/s_floorf-vis3.c: Likewise.
5635         * sysdeps/sparc/sparc64/fpu/multiarch/s_floorf.c: Likewise.
5636         * sysdeps/sparc/sparc64/fpu/multiarch/s_trunc-vis3.c: Likewise.
5637         * sysdeps/sparc/sparc64/fpu/multiarch/s_trunc.c: Likewise.
5638         * sysdeps/sparc/sparc64/fpu/multiarch/s_truncf-vis3.c: Likewise.
5639         * sysdeps/sparc/sparc64/fpu/multiarch/s_truncf.c: Likewise.
5640
5641 2016-08-02  David S. Miller  <davem@davemloft.net>
5642
5643         * sysdeps/sparc/sparc32/sparcv9/fpu/multiarch/s_nearbyint-vis3.S
5644         (__nearbyint_vis3): Don't check for sNaN before float register is
5645         loaded with the incoming argument.
5646         * sysdeps/sparc/sparc32/sparcv9/fpu/multiarch/s_nearbyintf-vis3.S
5647         (__nearbyintf_vis3): Likewise.
5648         * sysdeps/sparc/sparc32/sparcv9/fpu/s_nearbyint.S (__nearbyint):
5649         Likewise.
5650         * sysdeps/sparc/sparc32/sparcv9/fpu/s_nearbyintf.S (__nearbyintf):
5651         Likewise.
5652
5653         * string/test-strncmp.c (do_test_limit): Make sure the test data
5654         stream is aligned as required for the type "CHAR".
5655         (do_test): Likewise.
5656
5657 2016-08-03  Aurelien Jarno  <aurelien@aurel32.net>
5658
5659         * sysdeps/powerpc/ifunc-sel.h (ifunc_sel): Replace beqlr instructions
5660         by beq instructions jumping to the end of the function.
5661         * sysdeps/powerpc/ifunc-sel.h (ifunc_sel): Add "11", "12", "cr0" to the
5662         clobber list. Use "i" constraint instead of "X".
5663         (ifunc_one): Add "12" to the clobber list. Use "i" constraint instead
5664         of "X".
5665
5666 2016-08-02  Joseph Myers  <joseph@codesourcery.com>
5667
5668         * bits/libc-header-start.h: New file.
5669         * Makefile (headers): Add bits/libc-header-start.h.
5670         * include/features.h (__STDC_WANT_LIB_EXT2__): Document.
5671         (__GLIBC_USE): New macro.
5672         * libio/stdio.h: Define
5673         __GLIBC_INTERNAL_STARTING_HEADER_IMPLEMENTATION and include
5674         <bits/libc-header-start.h> instead of including <features.h>.
5675         (fmemopen): Declare also if [__GLIBC_USE (LIB_EXT2)].
5676         (open_memstream): Likewise.
5677         (vasprintf): Declare if [__GLIBC_USE (LIB_EXT2)], not [__USE_GNU].
5678         (__asprintf): Likewise.
5679         (asprintf): Likewise.
5680         (__getdelim): Declare also if [__GLIBC_USE (LIB_EXT2)].
5681         (getdelim): Likewise.
5682         (getline): Likewise.
5683         * string/string.h: Define
5684         __GLIBC_INTERNAL_STARTING_HEADER_IMPLEMENTATION and include
5685         <bits/libc-header-start.h> instead of including <features.h>.
5686         (strdup): Declare also if [__GLIBC_USE (LIB_EXT2)]
5687         (strndup): Likewise.
5688         * wcsmbs/wchar.h: Define
5689         __GLIBC_INTERNAL_STARTING_HEADER_IMPLEMENTATION and include
5690         <bits/libc-header-start.h> instead of including <features.h>.
5691         (open_wmemstream): Declare also if [__GLIBC_USE (LIB_EXT2)].
5692         * manual/creature.texi (__STDC_WANT_LIB_EXT2__): Document macro.
5693
5694 2016-08-02  Florian Weimer  <fweimer@redhat.com>
5695
5696         Support linking against compatibility symbols, for use in tests.
5697         * include/libc-symbols.h (symbol_version_reference): New macro.
5698         (symbol_version): Use it.
5699         * include/shlib-compat.h: Unconditionally include <abi-versions.h>.
5700         (compat_symbol): Use compat_symbol_reference.
5701         (compat_symbol_1, compat_symbol_2): Remove.
5702         (compat_symbol_reference, compat_symbol_reference_1)
5703         (compat_symbol_reference_2): New macro.  Use
5704         symbol_version_reference.
5705
5706 2016-08-02  Florian Weimer  <fweimer@redhat.com>
5707
5708         [BZ #19469]
5709         * malloc/Makefile (CPPFLAGS): Compile tests with
5710         -DTEST_NO_MALLOPT.
5711         * test-skeleton.c (main): Only call mallopt if !TEST_NO_MALLOPT.
5712
5713 2016-08-02  Andrew Senkevich  <andrew.senkevich@intel.com>
5714
5715         [BZ #20033]
5716         * sysdeps/x86_64/fpu/multiarch/svml_d_exp2_core_sse4.S: Call
5717         finite version.
5718         * sysdeps/x86_64/fpu/multiarch/svml_d_exp4_core_avx2.S: Likewise.
5719         * sysdeps/x86_64/fpu/multiarch/svml_d_exp8_core_avx512.S: Likewise.
5720         * sysdeps/x86_64/fpu/multiarch/svml_d_log2_core_sse4.S: Likewise.
5721         * sysdeps/x86_64/fpu/multiarch/svml_d_log4_core_avx2.S: Likewise.
5722         * sysdeps/x86_64/fpu/multiarch/svml_d_log8_core_avx512.S: Likewise.
5723         * sysdeps/x86_64/fpu/multiarch/svml_d_pow2_core_sse4.S: Likewise.
5724         * sysdeps/x86_64/fpu/multiarch/svml_d_pow4_core_avx2.S: Likewise.
5725         * sysdeps/x86_64/fpu/multiarch/svml_d_pow8_core_avx512.S: Likewise.
5726         * sysdeps/x86_64/fpu/multiarch/svml_s_expf16_core_avx512.S: Likewise.
5727         * sysdeps/x86_64/fpu/multiarch/svml_s_expf4_core_sse4.S: Likewise.
5728         * sysdeps/x86_64/fpu/multiarch/svml_s_expf8_core_avx2.S: Likewise.
5729         * sysdeps/x86_64/fpu/multiarch/svml_s_logf16_core_avx512.S: Likewise.
5730         * sysdeps/x86_64/fpu/multiarch/svml_s_logf4_core_sse4.S: Likewise.
5731         * sysdeps/x86_64/fpu/multiarch/svml_s_logf8_core_avx2.S: Likewise.
5732         * sysdeps/x86_64/fpu/multiarch/svml_s_powf16_core_avx512.S: Likewise.
5733         * sysdeps/x86_64/fpu/multiarch/svml_s_powf4_core_sse4.S: Likewise.
5734         * sysdeps/x86_64/fpu/multiarch/svml_s_powf8_core_avx2.S: Likewise.
5735         * sysdeps/x86_64/fpu/svml_d_exp2_core.S: Likewise.
5736         * sysdeps/x86_64/fpu/svml_d_log2_core.S: Likewise.
5737         * sysdeps/x86_64/fpu/svml_d_pow2_core.S: Likewise.
5738         * sysdeps/x86_64/fpu/svml_s_expf4_core.S: Likewise.
5739         * sysdeps/x86_64/fpu/svml_s_logf4_core.S: Likewise.
5740         * sysdeps/x86_64/fpu/svml_s_powf4_core.S: Likewise.
5741         * math/libm-test.inc (pow_test_data): Exclude tests for qNaN
5742         in zero power.
5743
5744 2016-08-02  Florian Weimer  <fweimer@redhat.com>
5745
5746         [BZ #20370]
5747         * malloc/arena.c (get_free_list): Update comment.  Assert that
5748         arenas on the free list have no attached threads.
5749         (remove_from_free_list): New function.
5750         (reused_arena): Call it.
5751
5752 2016-08-02  Aurelien Jarno  <aurelien@aurel32.net>
5753
5754         * sysdeps/alpha/fpu/s_ceil.c (__ceil): Add argument with itself
5755         when it is a NaN.
5756         [_IEEE_FP_INEXACT] Remove.
5757         * sysdeps/alpha/fpu/s_ceilf.c (__ceilf): Likewise.
5758         * sysdeps/alpha/fpu/s_floor.c (__floor): Add argument with itself
5759         when it is a NaN.
5760         [_IEEE_FP_INEXACT] Remove.
5761         * sysdeps/alpha/fpu/s_floorf.c (__floorf): Likewise.
5762         * sysdeps/alpha/fpu/s_rint.c (__rint): Add argument with itself
5763         when it is a NaN.
5764         * sysdeps/alpha/fpu/s_rintf.c (__rintf): Likewise.
5765         * sysdeps/alpha/fpu/s_trunc.c (__trunc): Return the input value
5766         when its absolute value is greater than 0x1.0p52.
5767         [_IEEE_FP_INEXACT] Remove.
5768         * sysdeps/alpha/fpu/s_truncf.c (__truncf): Return the input value
5769         when its absolute value is greater than 0x1.0p23.
5770         [_IEEE_FP_INEXACT] Remove.
5771
5772 2016-08-01  Carlos O'Donell  <carlos@redhat.com>
5773
5774         * version.h (RELEASE): Set to "development"
5775         (VERSION): Set to 2.24.90.
5776         * NEWS: Add 2.25 section.
5777
5778         * version.h (RELEASE): Set to "stable"
5779         (VERSION): Set to 2.24.
5780         * include/features.h (__GLIBC_MINOR__): Set to 24.
5781
5782         * NEWS: Add 2.24 fixed bugs.
5783         * po/libc.pot: Regenerate.
5784
5785 2016-08-01  Aurelien Jarno  <aurelien@aurel32.net>
5786
5787         * sysdeps/sparc/sparc32/sparcv9/fpu/multiarch/Makefile
5788         [$(subdir) = math] (libm-sysdep_routines): Remove.
5789         [$(subdir) = math && $(have-as-vis3) = yes] (libm-sysdep_routines):
5790         Remove s_ceilf-vis3, s_ceil-vis3, s_floorf-vis3, s_floor-vis3,
5791         s_truncf-vis3, s_trunc-vis3.
5792         * sysdeps/sparc/sparc64/fpu/multiarch/Makefile: Likewise.
5793         * sysdeps/sparc/sparc32/sparcv9/fpu/multiarch/s_ceil-vis2.S: Delete
5794         file.
5795         * sysdeps/sparc/sparc32/sparcv9/fpu/multiarch/s_ceil-vis3.S: Likewise.
5796         * sysdeps/sparc/sparc32/sparcv9/fpu/multiarch/s_ceil.S: Likewise.
5797         * sysdeps/sparc/sparc32/sparcv9/fpu/multiarch/s_ceilf-vis2.S: Likewise.
5798         * sysdeps/sparc/sparc32/sparcv9/fpu/multiarch/s_ceilf-vis3.S: Likewise.
5799         * sysdeps/sparc/sparc32/sparcv9/fpu/multiarch/s_ceilf.S: Likewise.
5800         * sysdeps/sparc/sparc32/sparcv9/fpu/multiarch/s_floor-vis2.S: Likewise.
5801         * sysdeps/sparc/sparc32/sparcv9/fpu/multiarch/s_floor-vis3.S: Likewise.
5802         * sysdeps/sparc/sparc32/sparcv9/fpu/multiarch/s_floor.S: Likewise.
5803         * sysdeps/sparc/sparc32/sparcv9/fpu/multiarch/s_floorf-vis2.S: Likewise.
5804         * sysdeps/sparc/sparc32/sparcv9/fpu/multiarch/s_floorf-vis3.S: Likewise.
5805         * sysdeps/sparc/sparc32/sparcv9/fpu/multiarch/s_floorf.S: Likewise.
5806         * sysdeps/sparc/sparc32/sparcv9/fpu/multiarch/s_trunc-vis3.S: Likewise.
5807         * sysdeps/sparc/sparc32/sparcv9/fpu/multiarch/s_trunc.S: Likewise.
5808         * sysdeps/sparc/sparc32/sparcv9/fpu/multiarch/s_truncf-vis3.S: Likewise.
5809         * sysdeps/sparc/sparc32/sparcv9/fpu/multiarch/s_truncf.S: Likewise.
5810         * sysdeps/sparc/sparc32/sparcv9/fpu/s_ceil.S: Likewise.
5811         * sysdeps/sparc/sparc32/sparcv9/fpu/s_ceilf.S: Likewise.
5812         * sysdeps/sparc/sparc32/sparcv9/fpu/s_floor.S: Likewise.
5813         * sysdeps/sparc/sparc32/sparcv9/fpu/s_floorf.S: Likewise.
5814         * sysdeps/sparc/sparc32/sparcv9/fpu/s_trunc.S: Likewise.
5815         * sysdeps/sparc/sparc32/sparcv9/fpu/s_truncf.S: Likewise.
5816         * sysdeps/sparc/sparc64/fpu/multiarch/s_ceil-vis2.S: Likewise.
5817         * sysdeps/sparc/sparc64/fpu/multiarch/s_ceil-vis3.S: Likewise.
5818         * sysdeps/sparc/sparc64/fpu/multiarch/s_ceil.S: Likewise.
5819         * sysdeps/sparc/sparc64/fpu/multiarch/s_ceilf-vis2.S: Likewise.
5820         * sysdeps/sparc/sparc64/fpu/multiarch/s_ceilf-vis3.S: Likewise.
5821         * sysdeps/sparc/sparc64/fpu/multiarch/s_ceilf.S: Likewise.
5822         * sysdeps/sparc/sparc64/fpu/multiarch/s_floor-vis2.S: Likewise.
5823         * sysdeps/sparc/sparc64/fpu/multiarch/s_floor-vis3.S: Likewise.
5824         * sysdeps/sparc/sparc64/fpu/multiarch/s_floor.S: Likewise.
5825         * sysdeps/sparc/sparc64/fpu/multiarch/s_floorf-vis2.S: Likewise.
5826         * sysdeps/sparc/sparc64/fpu/multiarch/s_floorf-vis3.S: Likewise.
5827         * sysdeps/sparc/sparc64/fpu/multiarch/s_floorf.S: Likewise.
5828         * sysdeps/sparc/sparc64/fpu/multiarch/s_trunc-vis3.S: Likewise.
5829         * sysdeps/sparc/sparc64/fpu/multiarch/s_trunc.S: Likewise.
5830         * sysdeps/sparc/sparc64/fpu/multiarch/s_truncf-vis3.S: Likewise.
5831         * sysdeps/sparc/sparc64/fpu/multiarch/s_truncf.S: Likewise.
5832         * sysdeps/sparc/sparc64/fpu/s_ceil.S: Likewise.
5833         * sysdeps/sparc/sparc64/fpu/s_ceilf.S: Likewise.
5834         * sysdeps/sparc/sparc64/fpu/s_floor.S: Likewise.
5835         * sysdeps/sparc/sparc64/fpu/s_floorf.S: Likewise.
5836         * sysdeps/sparc/sparc64/fpu/s_trunc.S: Likewise.
5837         * sysdeps/sparc/sparc64/fpu/s_truncf.S: Likewise.
5838
5839 2016-07-27  H.J. Lu  <hongjiu.lu@intel.com>
5840
5841         [BZ #20384]
5842         * sysdeps/x86_64/fpu/Makefile (extra-test-objs): Add
5843         test-double-libmvec-sincos-avx-main.o,
5844         test-double-libmvec-sincos-avx2-main.o,
5845         test-double-libmvec-sincos-main.o,
5846         test-float-libmvec-sincosf-avx-main.o,
5847         test-float-libmvec-sincosf-avx2-main.o and
5848         test-float-libmvec-sincosf-main.o.
5849         test-float-libmvec-sincosf-avx512-main.o.
5850         ($(objpfx)test-double-libmvec-sincos): Also link with
5851         $(objpfx)test-double-libmvec-sincos-main.o.
5852         ($(objpfx)test-double-libmvec-sincos-avx): Also link with
5853         $(objpfx)test-double-libmvec-sincos-avx-main.o.
5854         ($(objpfx)test-double-libmvec-sincos-avx2): Also link with
5855         $(objpfx)test-double-libmvec-sincos-avx2-main.o.
5856         ($(objpfx)test-float-libmvec-sincosf): Also link with
5857         $(objpfx)test-float-libmvec-sincosf-main.o.
5858         ($(objpfx)test-float-libmvec-sincosf-avx): Also link with
5859         $(objpfx)test-float-libmvec-sincosf-avx2-main.o.
5860         [$(config-cflags-avx512) == yes] (extra-test-objs): Add
5861         test-double-libmvec-sincos-avx512-main.o and
5862         ($(objpfx)test-double-libmvec-sincos-avx512): Also link with
5863         $(objpfx)test-double-libmvec-sincos-avx512-main.o.
5864         ($(objpfx)test-float-libmvec-sincosf-avx512): Also link with
5865         $(objpfx)test-float-libmvec-sincosf-avx512-main.o.
5866         (CFLAGS-test-double-libmvec-sincos.c): Removed.
5867         (CFLAGS-test-float-libmvec-sincosf.c): Likewise.
5868         (CFLAGS-test-double-libmvec-sincos-main.c): New.
5869         (CFLAGS-test-double-libmvec-sincos-avx-main.c): Likewise.
5870         (CFLAGS-test-double-libmvec-sincos-avx2-main.c): Likewise.
5871         (CFLAGS-test-float-libmvec-sincosf-main.c): Likewise.
5872         (CFLAGS-test-float-libmvec-sincosf-avx-main.c): Likewise.
5873         (CFLAGS-test-float-libmvec-sincosf-avx2-main.c): Likewise.
5874         (CFLAGS-test-float-libmvec-sincosf-avx512-main.c): Likewise.
5875         (CFLAGS-test-double-libmvec-sincos-avx.c): Set to -DREQUIRE_AVX.
5876         (CFLAGS-test-float-libmvec-sincosf-avx.c ): Likewise.
5877         (CFLAGS-test-double-libmvec-sincos-avx2.c): Set to
5878         -DREQUIRE_AVX2.
5879         (CFLAGS-test-float-libmvec-sincosf-avx2.c ): Likewise.
5880         (CFLAGS-test-double-libmvec-sincos-avx512.c): Set to
5881         -DREQUIRE_AVX512F.
5882         (CFLAGS-test-float-libmvec-sincosf-avx512.c): Likewise.
5883         * sysdeps/x86_64/fpu/test-double-libmvec-sincos.c: Rewritten.
5884         * sysdeps/x86_64/fpu/test-float-libmvec-sincosf.c: Likewise.
5885         * sysdeps/x86_64/fpu/test-double-libmvec-sincos-avx-main.c: New
5886         file.
5887         * sysdeps/x86_64/fpu/test-double-libmvec-sincos-avx2-main.c:
5888         Likewise.
5889         * sysdeps/x86_64/fpu/test-double-libmvec-sincos-avx512-main.c:
5890         Likewise.
5891         * sysdeps/x86_64/fpu/test-double-libmvec-sincos-main.c:
5892         Likewise.
5893         * sysdeps/x86_64/fpu/test-float-libmvec-sincosf-avx-main.c:
5894         Likewise.
5895         * sysdeps/x86_64/fpu/test-float-libmvec-sincosf-avx2-main.c:
5896         Likewise.
5897         * sysdeps/x86_64/fpu/test-float-libmvec-sincosf-avx512-main.c:
5898         Likewise.
5899         * sysdeps/x86_64/fpu/test-float-libmvec-sincosf-main.c:
5900         Likewise.
5901
5902 2016-07-27  Chung-Lin Tang  <cltang@codesourcery.com>
5903
5904         * sysdeps/unix/sysv/linux/nios2/localplt.data (__eqsf2): Remove.
5905
5906 2016-07-21  Gustavo Romero  <gromero@linux.vnet.ibm.com>
5907
5908         * sysdeps/unix/sysv/linux/powerpc/sys/ucontext.h: Fix missing verb
5909         and typo in a comment about AT_HWCAP entry.
5910
5911 2016-07-21  Szabolcs Nagy  <szabolcs.nagy@arm.com>
5912
5913         * sysdeps/aarch64/libm-test-ulps: Updated.
5914
5915 2016-07-20  Stefan Liebler  <stli@linux.vnet.ibm.com>
5916
5917         * sysdeps/s390/s390-32/memcpy.S (memcpy): Eliminate the usage
5918         of r13 as it is not restored in mvcle case.
5919
5920 2016-07-19  Mike Frysinger  <vapier@gentoo.org>
5921
5922         * sysdeps/unix/sysv/linux/microblaze/sysdep.h (inline_syscall0):
5923         Rename "ret" to "__ret".
5924         (inline_syscall1, inline_syscall2, inline_syscall3, inline_syscall4,
5925         inline_syscall5, inline_syscall6): Likewise.
5926
5927 2016-07-19   Will Newton  <will.newton@gmail.com>
5928
5929         * elf/elf.h (R_METAG_REL8, R_METAG_REL16, R_METAG_TLS_GD
5930         R_METAG_TLS_LDM, R_METAG_TLS_LDO_HI16, R_METAG_TLS_LDO_LO16,
5931         R_METAG_TLS_LDO, R_METAG_TLS_IE, R_METAG_TLS_IENONPIC,
5932         R_METAG_TLS_IENONPIC_HI16, R_METAG_TLS_IENONPIC_LO16,
5933         R_METAG_TLS_LE, R_METAG_TLS_LE_HI16, R_METAG_TLS_LE_LO16): New.
5934
5935 2016-07-18  H.J. Lu  <hongjiu.lu@intel.com>
5936
5937         * sysdeps/i386/Makefile (rtld-CFLAGS): New.
5938         [subdir == elf] (CFLAGS-.os): Replace -mno-sse -mno-mmx
5939         -mfpmath=387 with $(rtld-CFLAGS).
5940         [subdir != elf] (CFLAGS-.os): Compile rtld-*.os with
5941         $(rtld-CFLAGS).
5942
5943 2016-07-18   Ross Burton  <ross.burton@intel.com>
5944              Khem Raj  <raj.khem@gmail.com>
5945
5946         * elf/elf.h (R_METAG_HIADDR16, R_METAG_LOADDR16,
5947         R_METAG_ADDR32, R_METAG_NONE, R_METAG_RELBRANCH,
5948         R_METAG_GETSETOFF, R_METAG_REG32OP1, R_METAG_REG32OP2,
5949         R_METAG_REG32OP3, R_METAG_REG16OP1, R_METAG_REG16OP2,
5950         R_METAG_REG16OP3, R_METAG_REG32OP4, R_METAG_HIOG,
5951         R_METAG_LOOG, R_METAG_GNU_VTINHERIT, R_METAG_GNU_VTENTRY,
5952         R_METAG_HI16_GOTOFF, R_METAG_LO16_GOTOFF,
5953         R_METAG_GETSET_GOTOFF, R_METAG_GETSET_GOT, R_METAG_HI16_GOTPC,
5954         R_METAG_LO16_GOTPC, R_METAG_HI16_PLT, R_METAG_LO16_PLT,
5955         R_METAG_RELBRANCH_PLT, R_METAG_GOTOFF, R_METAG_PLT,
5956         R_METAG_COPY, R_METAG_JMP_SLOT, R_METAG_RELATIVE,
5957         R_METAG_GLOB_DAT, R_METAG_TLS_TPOFF, R_METAG_TLS_DTPMOD,
5958         R_METAG_TLS_DTPOFF): New.
5959
5960 2016-07-18  Siddhesh Poyarekar  <siddhesh@sourceware.org>
5961             Matt Clay  <mclay@lycos.com>
5962
5963         [BZ #20357]
5964         * sysdeps/ieee754/dbl-64/s_sin.c (sloww): Fix up condition
5965         to call __mpsin/__mpcos and to negate values.
5966         * math/auto-libm-test-in: Add test.
5967         * math/auto-libm-test-out: Regenerate.
5968
5969 2016-07-18  Zack Weinberg  <zackw@panix.com>
5970
5971         * grp/Makefile: Don't install the internal header grp-merge.h.
5972
5973 2016-07-18  Szabolcs Nagy  <szabolcs.nagy@arm.com>
5974
5975         * sysdeps/aarch64/libm-test-ulps: Regenerated.
5976
5977 2016-07-13  Samuel Thibault  <samuel.thibault@ens-lyon.org>
5978
5979         * bits/termios.h (TABDLY): Change macro to include TAB3 bit too.
5980
5981 2016-07-13  Adhemerval Zanella  <adhemerval.zanella@linaro.org>
5982
5983         [BZ #15368]
5984         * sysdeps/unix/sysv/linux/nptl-signals.h
5985         (__nptl_clear_internal_signals): New function.
5986         (__libc_signal_block_all): Likewise.
5987         (__libc_signal_block_app): Likewise.
5988         (__libc_signal_restore_set): Likewise.
5989         * sysdeps/unix/sysv/linux/pt-raise.c (raise): Use Linux raise.c
5990         implementation.
5991         * sysdeps/unix/sysv/linux/raise.c (raise): Reimplement to not use
5992         the cached pid/tid value in pthread structure.
5993
5994 2016-07-13  H.J. Lu  <hongjiu.lu@intel.com>
5995
5996         [BZ #20347]
5997         * sysdeps/i386/i686/fpu/multiarch/libm-test-ulps: Regenerated.
5998
5999 2016-07-12  H.J. Lu  <hongjiu.lu@intel.com>
6000
6001         [BZ #20348]
6002         * sysdeps/unix/sysv/linux/x86_64/syscalls.list: Add pread64,
6003         preadv64, pwrite64 and pwritev64.
6004
6005 2016-07-12  H.J. Lu  <hongjiu.lu@intel.com>
6006
6007         [BZ #20350]
6008         * posix/tst-preadwrite.c: Renamed to ...
6009         * posix/tst-preadwrite-common.c: This.
6010         (PREAD): Removed.
6011         (PWRITE): Likewise.
6012         (STRINGIFY): Likewise.
6013         (STRINGIFY2): Likewise.
6014         (do_prepare): Make it static and remove function arguments.
6015         (do_test): Likewise.
6016         (PREPARE): Updated.
6017         (TEST_FUNCTION): New.
6018         (name): Make it static.
6019         (fd): Likewise.
6020         (do_prepare): Use create_temp_file.
6021         (do_test): Renamed to ...
6022         (do_test_with_offset): This.  Make it static and accept offset.
6023         Properly check return value of PWRITE and PREAD.  Return bytes
6024         read.  Don't close fd nor unlink name.
6025         * posix/tst-preadwrite.c: Rewrite.
6026         * posix/tst-preadwrite64.c: Likewise.
6027
6028 2016-07-12  H.J. Lu  <hongjiu.lu@intel.com>
6029
6030         [BZ #20309]
6031         * configure.ac (have-mtls-dialect-gnu2): Set to yes if
6032         -mtls-dialect=gnu2 works.
6033         * configure: Regenerated.
6034         * elf/Makefile [have-mtls-dialect-gnu2 = yes]
6035         (tests): Add tst-gnu2-tls1.
6036         (modules-names): Add tst-gnu2-tls1mod.
6037         ($(objpfx)tst-gnu2-tls1): New.
6038         (tst-gnu2-tls1mod.so-no-z-defs): Likewise.
6039         (CFLAGS-tst-gnu2-tls1mod.c): Likewise.
6040         * elf/tst-gnu2-tls1.c: New file.
6041         * elf/tst-gnu2-tls1mod.c: Likewise.
6042         * sysdeps/x86_64/dl-tlsdesc.S (_dl_tlsdesc_dynamic): Add 8
6043         bytes for push in the PLT entry to align the stack.
6044
6045 2016-07-11  H.J. Lu  <hongjiu.lu@intel.com>
6046
6047         [BZ #20349]
6048         * sysdeps/unix/sysv/linux/x86_64/sysdep.h (LO_HI_LONG): New.
6049
6050 2016-07-11  Szabolcs Nagy  <szabolcs.nagy@arm.com>
6051
6052         [BZ #18707]
6053         * sysdeps/aarch64/Makefile (CFLAGS-mcount.c): Add -mgeneral-regs-only.
6054         * sysdeps/aarch64/sysdep.h (CALL_MCOUNT): Save argument registers.
6055
6056 2016-07-08  Adhemerval Zanella  <adhemerval.zanella@linaro.org>
6057
6058         * sysdeps/unix/sysv/linux/sysdep.h
6059         [__WORDSIZE == 64 || __ASSUME_WORDSIZE64_ILP32] (LO_HI_LONG): Remove
6060         guards.
6061         * misc/tst-preadvwritev-common.c: New file.
6062         * misc/tst-preadvwritev.c: Use tst-preadvwritev-common.c.
6063         * misc/tst-preadvwritev64.c: Use tst-preadwritev-common.c and add
6064         a check for files larger than 2GB.
6065
6066         * sysdeps/unix/sysv/linux/mips/kernel-features.h
6067         (__ASSUME_OFF_DIFF_OFF64): Remove define.
6068         * sysdeps/unix/sysv/linux/pread.c
6069         [__WORDSIZE != 64 || __ASSUME_OFF_DIFF_OFF64] (pread): Replace by
6070         __OFF_T_MATCHES_OFF64_T.
6071         * sysdeps/unix/sysv/linux/pread64.c
6072         [__WORDSIZE != 64 || __ASSUME_OFF_DIFF_OFF64] (pread64): Likewise.
6073         * sysdeps/unix/sysv/linux/preadv.c
6074         [__WORDSIZE != 64 || __ASSUME_OFF_DIFF_OFF64] (preadv): Likewise.
6075         * sysdeps/unix/sysv/linux/preadv64.c
6076         [__WORDSIZE != 64 || __ASSUME_OFF_DIFF_OFF64] (preadv64): Likewise.
6077         * sysdeps/unix/sysv/linux/pwrite.c
6078         [__WORDSIZE != 64 || __ASSUME_OFF_DIFF_OFF64] (pwrite): Likewise.
6079         * sysdeps/unix/sysv/linux/pwrite64.c
6080         [__WORDSIZE != 64 || __ASSUME_OFF_DIFF_OFF64] (pwrite64): Likewise.
6081         * sysdeps/unix/sysv/linux/pwritev.c
6082         [__WORDSIZE != 64 || __ASSUME_OFF_DIFF_OFF64] (pwritev): Likewise.
6083         * sysdeps/unix/sysv/linux/pwritev64.c
6084         [__WORDSIZE != 64 || __ASSUME_OFF_DIFF_OFF64] (pwritev64): Likewise.
6085
6086 2016-07-08  Chris Metcalf  <cmetcalf@mellanox.com>
6087
6088         * sysdeps/unix/sysv/linux/tile/kernel-features.h
6089         (__ASSUME_ALIGNED_REGISTER_PAIRS): Only define if !_LP64.
6090
6091 2016-07-08  Aurelien Jarno  <aurelien@aurel32.net>
6092
6093         * bits/in.h (__USE_KERNEL_IPV6_DEFS): Define to 0.
6094
6095 2016-07-08  Aurelien Jarno  <aurelien@aurel32.net>
6096
6097         [BZ #20240]
6098         * sysdeps/powerpc/powerpc32/power4/fpu/multiarch/Makefile
6099         (CFLAGS-s_modf-ppc32.c): New variable.
6100         (CFLAGS-s_modff-ppc32.c): Likewise.
6101         * sysdeps/powerpc/powerpc64/fpu/multiarch/Makefile
6102         (CFLAGS-s_modf-ppc64.c): Likewise.
6103         (CFLAGS-s_modff-ppc64.c): Likewise.
6104
6105 2016-07-07  Andreas Schwab  <schwab@suse.de>
6106
6107         [BZ #20263]
6108         * nptl/tst-robust10.c: New test.
6109         * nptl/Makefile (tests): Add tst-robust10.
6110
6111 2016-07-07  Jiyoung Yun  <t2wish@gmail.com>
6112
6113         [BZ #20263]
6114         * nptl/lowlevelrobustlock.c: Implement ETIMEDOUT logic.
6115
6116 2016-07-06  Stefan Liebler  <stli@linux.vnet.ibm.com>
6117
6118         * sysdeps/s390/linkmap.h (struct link_map_machine):
6119         Remove member gotplt and add member jmprel.
6120         * sysdeps/s390/s390-32/dl-machine.h
6121         (elf_machine_runtime_setup): Setup member jmprel with DT_JMPREL
6122         instead of gotplt with &got[3].
6123         (elf_machine_lazy_rel): Calculate address with reloc and jmprel.
6124         * sysdeps/s390/s390-64/dl-machine.h: Likewise.
6125
6126 2016-07-06  John David Anglin  <danglin@gcc.gnu.org>
6127
6128         * sysdeps/hppa/fpu/libm-test-ulps: Regenerate.
6129
6130 2016-07-06  Samuel Thibault  <samuel.thibault@ens-lyon.org>
6131
6132         * libio/iofopncook.c (_IO_cookie_read, _IO_cookie_write,
6133         _IO_cookie_seek, _IO_cookie_close, _IO_old_cookie_seek)
6134         [!PTR_DEMANGLE]: Do not call PTR_DEMANGLE.
6135         (set_callbacks) [!PTR_MANGLE]: Do not call PTR_MANGLE.
6136         * libio/vtables.c (_IO_vtable_check)
6137         [!PTR_DEMANGLE]: Do not call PTR_DEMANGLE.
6138         * libio/libioP.h (IO_set_accept_foreign_vtables)
6139         [!PTR_MANGLE]: Do not call PTR_MANGLE.
6140
6141 2016-07-05  H.J. Lu  <hongjiu.lu@intel.com>
6142
6143         [BZ #20314]
6144         * Makeconfig (CXXFLAGS): Prepend -I$(common-objpfx).
6145         * Makerules (before-compile): Add $(common-objpfx)cstdlib and
6146         $(common-objpfx)cmath.
6147         ($(common-objpfx)cstdlib): New target.
6148         ($(common-objpfx)cmath): Likewise.
6149
6150 2016-07-05  Chris Metcalf  <cmetcalf@mellanox.com>
6151
6152         * malloc/tst-malloc-thread-fail.c (TIMEOUT): Bump up to 30s.
6153
6154 2016-07-05  Rajalakshmi Srinivasaraghavan  <raji@linux.vnet.ibm.com>
6155
6156         [BZ #20327]
6157         * sysdeps/powerpc/powerpc64/power8/strcasecmp.S: Mask bits that
6158         are not part of the string.
6159
6160 2016-07-05  Adhemerval Zanella  <adhemerval.zanella@linaro.org>
6161
6162         * nptl/tst-cancel4-common.c (do_test): Add temporary fifo creation.
6163         * nptl/tst-cancel4-common.h (fifoname): New variable.
6164         (fifofd): Likewise.
6165         (cl_fifo): New function.
6166         * nptl/tst-cancel4.c (tf_sigpause): Replace SIGCANCEL usage by
6167         SIGINT.
6168         (tf_open): Add early cancel test.
6169
6170 2016-07-04  Andreas Schwab  <schwab@linux-m68k.org>
6171
6172         * sysdeps/m68k/Makefile (CFLAGS-mcount.c): Define.
6173
6174 2016-07-01  Maciej W. Rozycki  <macro@imgtec.com>
6175
6176         * sysdeps/generic/ldsodefs.h
6177         (dl_symbol_visibility_binds_local_p): New inline function.
6178         * elf/dl-addr.c (determine_info): Treat hidden and internal
6179         symbols as local.
6180         * elf/dl-lookup.c (do_lookup_x): Likewise.
6181         * elf/dl-reloc.c (RESOLVE_MAP): Likewise.
6182
6183 2016-07-01  Aurelien Jarno  <aurelien@aurel32.net>
6184
6185         * sparc/sparc32/sparcv9/fpu/s_nearbyint.S (__nearbyint): Trigger an
6186         invalid exception for a sNaN input.
6187         * sparc/sparc32/sparcv9/fpu/s_nearbyintf.S (__nearbyintf): Likewise.
6188         * sparc/sparc32/sparcv9/fpu/multiarch/s_nearbyint-vis3.S
6189         (__nearbyint_vis3): Likewise
6190         * sparc/sparc32/sparcv9/fpu/multiarch/s_nearbyintf-vis3.S
6191         (__nearbyintf_vis3): Likewise
6192         * sparc/sparc64/fpu/s_nearbyint.S (__nearbyint): Likewise.
6193         * sparc/sparc64/fpu/s_nearbyintf.S (__nearbyintf): Likewise.
6194         * sparc/sparc64/fpu/multiarch/s_nearbyint-vis3.S (__nearbyint_vis3):
6195         Likewise.
6196         * sparc/sparc64/fpu/multiarch/s_nearbyintf-vis3.S (__nearbyintf_vis3):
6197         Likewise.
6198
6199 2016-07-01  H.J. Lu  <hongjiu.lu@intel.com>
6200
6201         [BZ #20139]
6202         * config.h.in (HAVE_AVX512_ASM_SUPPORT): Renamed to ...
6203         (HAVE_AVX512DQ_ASM_SUPPORT): This.
6204         * sysdeps/x86_64/configure.ac: Require assembler from binutils
6205         2.24 or above.
6206         (HAVE_AVX512_ASM_SUPPORT): Removed.
6207         (HAVE_AVX512DQ_ASM_SUPPORT): New.
6208         * sysdeps/x86_64/configure: Regenerated.
6209         * sysdeps/x86_64/dl-trampoline.S: Make HAVE_AVX512_ASM_SUPPORT
6210         check unconditional.
6211         * sysdeps/x86_64/multiarch/ifunc-impl-list.c: Likewise.
6212         * sysdeps/x86_64/multiarch/memcpy.S: Likewise.
6213         * sysdeps/x86_64/multiarch/memcpy_chk.S: Likewise.
6214         * sysdeps/x86_64/multiarch/memmove-avx512-no-vzeroupper.S:
6215         Likewise.
6216         * sysdeps/x86_64/multiarch/memmove-avx512-unaligned-erms.S:
6217         Likewise.
6218         * sysdeps/x86_64/multiarch/memmove.S: Likewise.
6219         * sysdeps/x86_64/multiarch/memmove_chk.S: Likewise.
6220         * sysdeps/x86_64/multiarch/mempcpy.S: Likewise.
6221         * sysdeps/x86_64/multiarch/mempcpy_chk.S: Likewise.
6222         * sysdeps/x86_64/multiarch/memset-avx512-no-vzeroupper.S:
6223         Likewise.
6224         * sysdeps/x86_64/multiarch/memset-avx512-unaligned-erms.S:
6225         Likewise.
6226         * sysdeps/x86_64/multiarch/memset.S: Likewise.
6227         * sysdeps/x86_64/multiarch/memset_chk.S: Likewise.
6228         * sysdeps/x86_64/fpu/multiarch/svml_d_cos8_core_avx512.S: Check
6229         HAVE_AVX512DQ_ASM_SUPPORT instead of HAVE_AVX512_ASM_SUPPORT.
6230         * sysdeps/x86_64/fpu/multiarch/svml_d_exp8_core_avx512.S:
6231         Likewise.
6232         * sysdeps/x86_64/fpu/multiarch/svml_d_log8_core_avx512.S:
6233         Likewise.
6234         * sysdeps/x86_64/fpu/multiarch/svml_d_pow8_core_avx512.S:
6235         Likewise.
6236         * sysdeps/x86_64/fpu/multiarch/svml_d_sin8_core_avx512.S:
6237         Likewise.
6238         * sysdeps/x86_64/fpu/multiarch/svml_d_sincos8_core_avx512.:
6239         Likewise.
6240         * sysdeps/x86_64/fpu/multiarch/svml_s_cosf16_core_avx512.S:
6241         Likewise.
6242         * sysdeps/x86_64/fpu/multiarch/svml_s_expf16_core_avx512.S:
6243         Likewise.
6244         * sysdeps/x86_64/fpu/multiarch/svml_s_logf16_core_avx512.S:
6245         Likewise.
6246         * sysdeps/x86_64/fpu/multiarch/svml_s_powf16_core_avx512.S:
6247         Likewise.
6248         * sysdeps/x86_64/fpu/multiarch/svml_s_sincosf16_core_avx51:
6249         Likewise.
6250         * sysdeps/x86_64/fpu/multiarch/svml_s_sinf16_core_avx512.S:
6251         Likewise.
6252
6253 2016-07-01  Andrew Senkevich  <andrew.senkevich@intel.com>
6254
6255         [BZ #20024]
6256         * sysdeps/x86/fpu/test-math-vector-sincos.h: New.
6257         * sysdeps/x86_64/fpu/multiarch/svml_d_sincos2_core_sse4.S: Fixed ABI
6258         of this implementation of vector function.
6259         * sysdeps/x86_64/fpu/multiarch/svml_d_sincos4_core_avx2.S: Likewise.
6260         * sysdeps/x86_64/fpu/multiarch/svml_d_sincos8_core_avx512.S: Likewise.
6261         * sysdeps/x86_64/fpu/multiarch/svml_s_sincosf16_core_avx512.S:
6262         Likewise.
6263         * sysdeps/x86_64/fpu/multiarch/svml_s_sincosf4_core_sse4.S: Likewise.
6264         * sysdeps/x86_64/fpu/multiarch/svml_s_sincosf8_core_avx2.S: Likewise.
6265         * sysdeps/x86_64/fpu/svml_d_sincos2_core.S: Likewise.
6266         * sysdeps/x86_64/fpu/svml_d_sincos4_core.S: Likewise.
6267         * sysdeps/x86_64/fpu/svml_d_sincos4_core_avx.S: Likewise.
6268         * sysdeps/x86_64/fpu/svml_d_sincos8_core.S: Likewise.
6269         * sysdeps/x86_64/fpu/svml_s_sincosf16_core.S: Likewise.
6270         * sysdeps/x86_64/fpu/svml_s_sincosf4_core.S: Likewise.
6271         * sysdeps/x86_64/fpu/svml_s_sincosf8_core.S: Likewise.
6272         * sysdeps/x86_64/fpu/svml_s_sincosf8_core_avx.S: Likewise.
6273         * sysdeps/x86_64/fpu/test-double-vlen2-wrappers.c: Use another wrapper
6274         for testing vector sincos with fixed ABI.
6275         * sysdeps/x86_64/fpu/test-double-vlen4-avx2-wrappers.c: Likewise.
6276         * sysdeps/x86_64/fpu/test-double-vlen4-wrappers.c: Likewise.
6277         * sysdeps/x86_64/fpu/test-double-vlen8-wrappers.c: Likewise.
6278         * sysdeps/x86_64/fpu/test-float-vlen16-wrappers.c: Likewise.
6279         * sysdeps/x86_64/fpu/test-float-vlen4-wrappers.c: Likewise.
6280         * sysdeps/x86_64/fpu/test-float-vlen8-avx2-wrappers.c: Likewise.
6281         * sysdeps/x86_64/fpu/test-float-vlen8-wrappers.c: Likewise.
6282         * sysdeps/x86_64/fpu/test-double-libmvec-sincos-avx.c: New test.
6283         * sysdeps/x86_64/fpu/test-double-libmvec-sincos-avx2.c: Likewise.
6284         * sysdeps/x86_64/fpu/test-double-libmvec-sincos-avx512.c: Likewise.
6285         * sysdeps/x86_64/fpu/test-double-libmvec-sincos.c: Likewise.
6286         * sysdeps/x86_64/fpu/test-float-libmvec-sincosf-avx.c: Likewise.
6287         * sysdeps/x86_64/fpu/test-float-libmvec-sincosf-avx2.c: Likewise.
6288         * sysdeps/x86_64/fpu/test-float-libmvec-sincosf-avx512.c: Likewise.
6289         * sysdeps/x86_64/fpu/test-float-libmvec-sincosf.c: Likewise.
6290         * sysdeps/x86_64/fpu/Makefile: Added new tests.
6291
6292 2016-06-30  Aurelien Jarno  <aurelien@aurel32.net>
6293
6294         * sysdeps/unix/sysv/linux/sparc/sparc64/localplt.data: Add _Qp_cmp.
6295
6296 2016-06-30  Anton Blanchard  <anton@samba.org>
6297
6298         * sysdeps/powerpc/powerpc64/fpu/multiarch/Makefile
6299         [$(subdir) = math] (libm-sysdep_routines): Add s_sinf-power8 and
6300         s_sinf-ppc64.
6301         * sysdeps/powerpc/powerpc64/fpu/multiarch/s_sinf-power8.S: New file.
6302         * sysdeps/powerpc/powerpc64/fpu/multiarch/s_sinf-ppc64.c: Likewise.
6303         * sysdeps/powerpc/powerpc64/fpu/multiarch/s_sinf.c: Likewise.
6304         * sysdeps/powerpc/powerpc64/power8/fpu/s_sinf.S: Likewise.
6305
6306 2016-06-30  Tulio Magno Quites Machado Filho  <tuliom@linux.vnet.ibm.com>
6307
6308         * sysdeps/powerpc/fpu/libm-test-ulps: Update.
6309         * sysdeps/powerpc/powerpc64/fpu/multiarch/Makefile
6310         [$(subdir) = math] (libm-sysdep_routines): Add e_expf-power8 and
6311         e_expf-ppc64.
6312         * sysdeps/powerpc/powerpc64/fpu/multiarch/e_expf-power8.S: New file.
6313         * sysdeps/powerpc/powerpc64/fpu/multiarch/e_expf-ppc64.c: Likewise.
6314         * sysdeps/powerpc/powerpc64/fpu/multiarch/e_expf.c: Likewise.
6315         * sysdeps/powerpc/powerpc64/power8/fpu/e_expf.S: Likewise.
6316
6317 2016-06-30  John David Anglin  <danglin@gcc.gnu.org>
6318
6319         [BZ #20277]
6320         * sysdeps/hppa/start.S (_start): Correct loading of global pointer
6321         when SHARED is defined.
6322
6323 2016-06-30  H.J. Lu  <hongjiu.lu@intel.com>
6324
6325         * sysdeps/x86/cpu-features.h (bit_arch_Prefer_ERMS): New.
6326         (index_arch_Prefer_ERMS): Likewise.
6327         * sysdeps/x86_64/multiarch/memcpy.S (__new_memcpy): Return
6328         __memcpy_erms for Prefer_ERMS.
6329         * sysdeps/x86_64/multiarch/memmove-vec-unaligned-erms.S
6330         (__memmove_erms): Enabled for libc.a.
6331         * ysdeps/x86_64/multiarch/memmove.S (__libc_memmove): Return
6332         __memmove_erms or Prefer_ERMS.
6333         * sysdeps/x86_64/multiarch/mempcpy.S (__mempcpy): Return
6334         __mempcpy_erms for Prefer_ERMS.
6335         * sysdeps/x86_64/multiarch/memset.S (memset): Return
6336         __memset_erms for Prefer_ERMS.
6337
6338 2016-06-30  Andreas Schwab  <schwab@suse.de>
6339
6340         [BZ #20262]
6341         * nis/nss_nis/nis-initgroups.c (_nss_nis_initgroups_dyn): Return
6342         NSS_STATUS_SUCCESS when done.  Return NSS_STATUS_TRYAGAIN when out
6343         of memory.
6344
6345 2016-06-29  H.J. Lu  <hongjiu.lu@intel.com>
6346
6347         [BZ #18645]
6348         * nptl/Makefile (extra-test-objs): Add tst-cleanupx4aux.o.
6349         (test-extras): Add tst-cleanupx4aux.
6350         (CFLAGS-tst-cleanupx4aux.c): New.  Set to -fexceptions.
6351         ($(objpfx)tst-cleanupx4): Replace tst-cleanup4aux.o with
6352         tst-cleanupx4aux.o.
6353         * nptl/tst-cleanupx4aux.c: New file.
6354
6355 2016-06-30  Aurelien Jarno  <aurelien@aurel32.net>
6356
6357         * sysdeps/i386/i686/fpu/multiarch/libm-test-ulps: Regenerated.
6358
6359 2016-06-29  Andreas Schwab  <schwab@suse.de>
6360
6361         [BZ #20260]
6362         * sysdeps/x86/bits/string.h (__strncat_g) [!__i686__]: Compute the
6363         address before the beginning of the string as an integer to avoid
6364         array-bounds warning.
6365
6366 2016-06-28  Richard Henderson  <rth@redhat.com>
6367
6368         * elf/elf.h (EM_BPF): New.
6369         (EM_NUM): Update.
6370         (R_BPF_NONE, R_BPF_MAP_FD): New.
6371
6372         * elf/elf.h (EM_IAMCU, EM_SPU, EM_PDP10, EM_PDP11, EM_ARC_COMPACT,
6373         EM_VIDEOCORE, EM_TMM_GPP, EM_NS32K, EM_TPC, EM_SNP1K, EM_ST200,
6374         EM_IP2K, EM_MAX, EM_CR, EM_F2MC16, EM_MSP430, EM_BLACKFIN, EM_SE_C33,
6375         EM_SEP, EM_ARCA, EM_UNICORE, EM_EXCESS, EM_DXP, EM_ALTERA_NIOS2,
6376         EM_CRX, EM_XGATE, EM_C166, EM_M16C, EM_DSPIC30F, EM_CE, EM_M32C,
6377         EM_TSK3000, EM_RS08, EM_SHARC, EM_ECOG2, EM_SCORE7, EM_DSP24,
6378         EM_VIDEOCORE3, EM_LATTICEMICO32, EM_SE_C17, EM_TI_C6000, EM_TI_C2000,
6379         EM_TI_C5500, EM_TI_ARP32, EM_TI_PRU, EM_MMDSP_PLUS, EM_CYPRESS_M8C,
6380         EM_R32C, EM_TRIMEDIA, EM_QDSP6, EM_8051, EM_STXP7X, EM_NDS32,
6381         EM_ECOG1X, EM_MAXQ30, EM_XIMO16, EM_MANIK, EM_CRAYNV2, EM_RX,
6382         EM_METAG, EM_MCST_ELBRUS, EM_ECOG16, EM_CR16, EM_ETPU, EM_SLE9X,
6383         EM_L10M, EM_K10M, EM_AVR32, EM_STM8, EM_TILE64, EM_CUDA,
6384         EM_CLOUDSHIELD, EM_COREA_1ST, EM_COREA_2ND, EM_ARC_COMPACT2,
6385         EM_OPEN8, EM_RL78, EM_VIDEOCORE5, EM_78KOR, EM_56800EX, EM_BA1,
6386         EM_BA2, EM_XCORE, EM_MCHP_PIC, EM_KM32, EM_KMX32, EM_EMX16, EM_EMX8,
6387         EM_KVARC, EM_CDP, EM_COGE, EM_COOL, EM_NORC, EM_CSR_KALIMBA, EM_Z80,
6388         EM_VISIUM, EM_FT32, EM_MOXIE, EM_AMDGPU, EM_RISCV, EM_BPF): New.
6389         (EM_NUM): Update.
6390
6391 2016-06-28  Stefan Liebler  <stli@linux.vnet.ibm.com>
6392
6393         [BZ #18960]
6394         * locale/localeinfo.h (_NL_CURRENT_DEFINE):
6395         Set _nl_current_LC_CATEGORY_used to two instead of one.
6396
6397 2016-06-27  Aurelien Jarno  <aurelien@aurel32.net>
6398
6399         * sysdeps/mips/tst-mode-switch-1.c (main): Converted to ...
6400         (do_test): ... this.
6401         (TEST_FUNCTION): New macro.
6402          Include test-skeleton.c.
6403         * sysdeps/mips/tst-mode-switch-2.c (main): Likewise.
6404         * sysdeps/mips/tst-mode-switch-3.c (main): Likewise.
6405
6406 2016-06-27  Joseph Myers  <joseph@codesourcery.com>
6407
6408         [BZ #15479]
6409         * sysdeps/i386/fpu/s_trunc.S (__trunc): Save and restore
6410         floating-point environment rather than just control word.
6411         * sysdeps/i386/fpu/s_truncf.S (__truncf): Likewise.
6412         * sysdeps/i386/fpu/s_truncl.S (__truncl): Save and restore
6413         floating-point environment, with "invalid" exceptions merged in,
6414         rather than just control word.
6415         * sysdeps/x86_64/fpu/s_truncl.S (__truncl): Likewise.
6416         * math/libm-test.inc (trunc_test_data): Do not allow spurious
6417         "inexact" exceptions.
6418
6419         [BZ #15479]
6420         * sysdeps/i386/fpu/s_floor.S (__floor): Save and restore
6421         floating-point environment rather than just control word.
6422         * sysdeps/i386/fpu/s_floorf.S (__floorf): Likewise.
6423         * sysdeps/i386/fpu/s_floorl.S (__floorl): Save and restore
6424         floating-point environment, with "invalid" exceptions merged in,
6425         rather than just control word.
6426         * sysdeps/x86_64/fpu/s_floorl.S (__floorl): Likewise.
6427         * math/libm-test.inc (floor_test_data): Do not allow spurious
6428         "inexact" exceptions.
6429
6430         [BZ #15479]
6431         * sysdeps/i386/fpu/s_ceil.S (__ceil): Save and restore
6432         floating-point environment rather than just control word.
6433         * sysdeps/i386/fpu/s_ceilf.S (__ceilf): Likewise.
6434         * sysdeps/i386/fpu/s_ceill.S (__ceill): Save and restore
6435         floating-point environment, with "invalid" exceptions merged in,
6436         rather than just control word.
6437         * sysdeps/x86_64/fpu/s_ceill.S (__ceill): Likewise.
6438         * math/libm-test.inc (ceil_test_data): Do not allow spurious
6439         "inexact" exceptions.
6440
6441 2016-06-21  Aurelien Jarno  <aurelien@aurel32.net>
6442
6443         * sysdeps/unix/sysv/linux/mips/vfork.S (__vfork): Rename into
6444         __libc_vfork.
6445         (__vfork) [IS_IN (libc)]: Remove alias.
6446         (__libc_vfork) [IS_IN (libc)]: Define as an alias.
6447         * sysdeps/unix/sysv/linux/sparc/sparc32/vfork.S: Likewise.
6448         * sysdeps/unix/sysv/linux/sparc/sparc64/vfork.S: Likewise.
6449
6450 2016-06-24  Torvald Riegel  <triegel@redhat.com>
6451
6452         * nscd/cache.c (cache_add): Use new C11-like atomic operation instead
6453         of atomic_compare_and_exchange_bool_rel.
6454         * nptl/pthread_mutex_unlock.c (__pthread_mutex_unlock_full): Likewise.
6455         * include/atomic.h (atomic_compare_and_exchange_bool_rel,
6456         catomic_compare_and_exchange_bool_rel): Remove.
6457         * sysdeps/aarch64/atomic-machine.h
6458         (atomic_compare_and_exchange_bool_rel): Likewise.
6459         * sysdeps/alpha/atomic-machine.h
6460         (atomic_compare_and_exchange_bool_rel): Likewise.
6461         * sysdeps/arm/atomic-machine.h
6462         (atomic_compare_and_exchange_bool_rel): Likewise.
6463         * sysdeps/mips/atomic-machine.h
6464         (atomic_compare_and_exchange_bool_rel): Likewise.
6465         * sysdeps/microblaze/atomic-machine.h
6466         ( __arch_compare_and_exchange_bool_8_rel,
6467         __arch_compare_and_exchange_bool_16_rel): Likewise.
6468         * sysdeps/powerpc/atomic-machine.h
6469         ( __arch_compare_and_exchange_bool_8_rel,
6470         __arch_compare_and_exchange_bool_16_rel): Likewise.
6471         * sysdeps/powerpc/powerpc32/atomic-machine.h
6472         ( __arch_compare_and_exchange_bool_32_rel,
6473         __arch_compare_and_exchange_bool_64_rel): Likewise.
6474         * sysdeps/powerpc/powerpc64/atomic-machine.h
6475         ( __arch_compare_and_exchange_bool_32_rel,
6476         __arch_compare_and_exchange_bool_64_rel): Likewise.
6477         * sysdeps/tile/atomic-machine.h
6478         (atomic_compare_and_exchange_bool_rel): Likewise.
6479
6480 2016-06-23  Joseph Myers  <joseph@codesourcery.com>
6481
6482         [BZ #20296]
6483         * sysdeps/i386/fpu/e_scalbl.S (__ieee754_scalbl): Add arguments
6484         when either argument is a NaN.
6485         * sysdeps/x86_64/fpu/e_scalbl.S (__ieee754_scalbl): Likewise.
6486         * math/libm-test.inc (scalb_test_data): Add sNaN tests.
6487
6488         * math/libm-test.inc (snan_value_ld): New macro.
6489         (isgreater_test_data): Add sNaN tests.
6490         (isgreaterequal_test_data): Likewise.
6491         (isless_test_data): Likewise.
6492         (islessequal_test_data): Likewise.
6493         (islessgreater_test_data): Likewise.
6494         (isunordered_test_data): Likewise.
6495         (nextafter_test_data): Likewise.
6496         (nexttoward_test_data): Likewise.
6497         (remainder_test_data): Likewise.
6498         (remquo_test_data): Likewise.
6499         (significand_test_data): Likewise.
6500         * math/gen-libm-test.pl (%beautify): Add snan_value_ld.
6501
6502 2016-06-23  Siddhesh Poyarekar  <siddhesh@sourceware.org>
6503
6504         * posix/getconf.c: Define ALL_ENVIRONMENTS_DEFINED if all
6505         environment macros are defined.
6506         (main): Avoid execve if ALL_ENVIRONMENTS_DEFINED is defined.
6507
6508 2016-06-23  Florian Weimer  <fweimer@redhat.com>
6509
6510         [BZ #20191]
6511         Implement vtable verification in libio.
6512         * Makerules (shlib.lds): Place __libc_IO_vtables section.
6513         * debug/obprintf_chk.c (_IO_obstack_jumps): Define as vtable.
6514         * debug/vdprintf_chk.c (__vdprintf_chk): Call
6515         _IO_new_file_init_internal instead of _IO_file_init.
6516         * debug/vsnprintf_chk.c (_IO_strn_jumps): Define as vtable.
6517         * debug/vsprintf_chk.c (_IO_str_chk_jumps): Likewise.
6518         * libio/Makefile (routines): Add vtables.
6519         * libio/libioP.h (_IO_JUMPS_FUNC): Call IO_validate_vtable.
6520         (_IO_init): Remove, not for internal use.
6521         (_IO_init_internal): Declare, internal replacement for _IO_init.
6522         (_IO_file_init): Remove, not for internal use.
6523         (_IO_new_file_init): Remove, not for internal use.
6524         (_IO_new_file_init_internal): Declare, internal replacement for
6525         _IO_new_file_init.
6526         (_IO_old_file_init): Remove, not for internal use.
6527         (_IO_old_file_init_internal): Declare, internal replacement for
6528         _IO_old_file_init.
6529         (_IO_str_init_static, _IO_str_init_readonly): Remove, not for
6530         internal use.
6531         (__libc_IO_vtables, IO_accept_foreign_vtables, _IO_vtable_check):
6532         Declare.
6533         (libio_vtable): New macro.
6534         (IO_set_accept_foreign_vtables, _IO_validate_vtable): New inline
6535         functions.
6536         * libio/fileops.c (_IO_new_file_init_internal): Rename from
6537         _IO_new_file_init.
6538         (_IO_new_file_init): New externally visible wrapper which disables
6539         vtable verification.
6540         (_IO_file_jumps, _IO_file_jumps_mmap, _IO_file_jumps_maybe_mmap):
6541         Define as vtables.
6542         * libio/genops.c (_IO_init_internal): Rename from _IO_init.
6543         (_IO_init): New externally visible wrapper which disables
6544         vtable verification.
6545         * libio/iofdopen.c (_IO_new_fdopen): Call
6546         _IO_new_file_init_internal instead of _IO_file_init.  Adjust
6547         comment.
6548         * libio/iofopen.c (__fopen_internal): Call
6549         _IO_new_file_init_internal instead of _IO_file_init.
6550         * libio/iofopncook.c (_IO_cookie_jumps, _IO_old_cookie_jumps):
6551         Define as vtables.
6552         (_IO_cookie_init): Call _IO_init_internal instead of _IO_init,
6553         _IO_new_file_init_internal instead of _IO_file_init.
6554         * libio/iopopen.c (_IO_new_popen): Likewise.
6555         (_IO_proc_jumps): Define as vtable.
6556         * libio/iovdprintf.c (_IO_vdprintf): Call
6557         _IO_new_file_init_internal instead of _IO_file_init.
6558         * libio/memstream.c (_IO_mem_jumps): Define as vtable.
6559         (__open_memstream): Call _IO_init_internal instead of _IO_init.
6560         * libio/obprintf.c (_IO_obstack_jumps): Define as vtable.
6561         * libio/oldfileops.c (_IO_old_file_init_internal): Rename from
6562         _IO_old_file_init.
6563         (_IO_old_file_init): New externally visible wrapper which disables
6564         vtable verification.
6565         (_IO_old_file_jumps): Define as vtable.
6566         * libio/oldiofdopen.c (_IO_old_fdopen): Call
6567         _IO_old_file_init_internal instead of _IO_old_file_init.
6568         * libio/oldiofopen.c (_IO_old_fopen): Likewise.
6569         * libio/oldiopopen.c (_IO_old_popen): Likewise.
6570         (_IO_old_proc_jumps): Define as vtable.
6571         * libio/strops.c (_IO_str_jumps, _IO_strn_jumps, _IO_wstrn_jumps):
6572         Define as vtables.
6573         * libio/vtables.c: New file.
6574         * libio/wfileops.c (_IO_wfile_jumps, _IO_wfile_jumps_mmap)
6575         (_IO_wfile_jumps_maybe_mmap): Define as vtables.
6576         * libio/wmemstream.c (_IO_wmem_jumps): Define as vtable.
6577         * libio/wstrops.c (_IO_wstr_jumps): Likewise.
6578         * stdio-common/vfprintf.c (_IO_helper_jumps): Likewise.
6579         * stdlib/strfmon_l.c (__vstrfmon_l): Call _IO_init_internal
6580         instead of _IO_init.
6581
6582 2016-06-23  Florian Weimer  <fweimer@redhat.com>
6583
6584         * test-skeleton.c (xrealloc): Support deallocation with n == 0.
6585
6586 2016-06-23  Florian Weimer  <fweimer@redhat.com>
6587
6588         * test-skeleton.c (xmalloc, xcalloc, xrealloc): Mark as
6589         potentially unused.
6590
6591 2016-06-22  Florian Weimer  <fweimer@redhat.com>
6592
6593         * test-skeleton.c (write_message): New function.
6594         * malloc/tst-mallocfork2.c (write_message): Remove.
6595         * debug/tst-longjmp_chk2.c (write_indented): New function.
6596         (write_message): Remove.
6597         (stackoverflow_handler): Call write_indented.
6598
6599 2016-06-22  Joseph Myers  <joseph@codesourcery.com>
6600
6601         * sysdeps/i386/fpu/s_nearbyint.S (__nearbyint): Do not mask
6602         "inexact" exceptions after fnstenv.
6603         * sysdeps/i386/fpu/s_nearbyintf.S (__nearbyintf): Likewise.
6604         * sysdeps/i386/fpu/s_nearbyintl.S (__nearbyintl): Likewise.
6605         * sysdeps/x86_64/fpu/s_nearbyintl.S (__nearbyintl): Likewise.
6606
6607 2015-06-22  Zack Weinberg  <zackw@panix.com>
6608
6609         * sysdeps/generic/bits/hwcap.h: Moved to ...
6610         * bits/hwcap.h: Here.
6611
6612 2016-06-22  Wilco Dijkstra  <wdijkstr@arm.com>
6613
6614         * sysdeps/aarch64/memcpy.S (memcpy):
6615         Further tuning for performance.
6616
6617 2016-06-21  Florian Weimer  <fweimer@redhat.com>
6618
6619         [BZ #20284]
6620         * malloc/arena.c (reused_arena): Do not return NULL if we start
6621         out with a non-corrupted arena.
6622
6623 2016-06-21 Adhemerval Zanella  <adhemerval.zanella@linaro.org>
6624
6625         * misc/Makefile (tests): Add tst-preadvwritev and tst-preadvwritev64.
6626         * misc/tst-preadvwritev.c: New file.
6627         * misc/tst-preadvwritev64.c: Likewise.
6628         * sysdeps/unix/sysv/linux/preadv.c (preadv): Remove SYSCALL_LL{64}
6629         usage.
6630         * sysdeps/unix/sysv/linux/preadv64.c (preadv64): Likewise.
6631         * sysdeps/unix/sysv/linux/pwritev.c (pwritev): Likewise.
6632         * sysdeps/unix/sysv/linux/pwritev64.c (pwritev64): Likewise.
6633         * sysdeps/unix/sysv/linux/sysdep.h (LO_HI_LONG): New macro.
6634
6635 2016-06-20  Andrew Senkevich  <andrew.senkevich@intel.com>
6636
6637         [BZ #19654]
6638         * sysdeps/x86_64/fpu/Makefile: Added new tests.
6639         * sysdeps/x86_64/fpu/test-double-libmvec-alias-avx-main.c: New.
6640         * sysdeps/x86_64/fpu/test-double-libmvec-alias-avx-mod.c: Likewise.
6641         * sysdeps/x86_64/fpu/test-double-libmvec-alias-avx.c: Likewise.
6642         * sysdeps/x86_64/fpu/test-double-libmvec-alias-avx2-main.c: Likewise.
6643         * sysdeps/x86_64/fpu/test-double-libmvec-alias-avx2-mod.c: Likewise.
6644         * sysdeps/x86_64/fpu/test-double-libmvec-alias-avx2.c: Likewise.
6645         * sysdeps/x86_64/fpu/test-double-libmvec-alias-avx512-main.c: Likewise.
6646         * sysdeps/x86_64/fpu/test-double-libmvec-alias-avx512-mod.c: Likewise.
6647         * sysdeps/x86_64/fpu/test-double-libmvec-alias-avx512.c: Likewise.
6648         * sysdeps/x86_64/fpu/test-double-libmvec-alias-main.c: Likewise.
6649         * sysdeps/x86_64/fpu/test-double-libmvec-alias-mod.c: Likewise.
6650         * sysdeps/x86_64/fpu/test-double-libmvec-alias.c: Likewise.
6651         * sysdeps/x86_64/fpu/test-float-libmvec-alias-avx-main.c: Likewise.
6652         * sysdeps/x86_64/fpu/test-float-libmvec-alias-avx-mod.c: Likewise.
6653         * sysdeps/x86_64/fpu/test-float-libmvec-alias-avx.c: Likewise.
6654         * sysdeps/x86_64/fpu/test-float-libmvec-alias-avx2-main.c: Likewise.
6655         * sysdeps/x86_64/fpu/test-float-libmvec-alias-avx2-mod.c: Likewise.
6656         * sysdeps/x86_64/fpu/test-float-libmvec-alias-avx2.c: Likewise.
6657         * sysdeps/x86_64/fpu/test-float-libmvec-alias-avx512-main.c: Likewise.
6658         * sysdeps/x86_64/fpu/test-float-libmvec-alias-avx512-mod.c: Likewise.
6659         * sysdeps/x86_64/fpu/test-float-libmvec-alias-avx512.c: Likewise.
6660         * sysdeps/x86_64/fpu/test-float-libmvec-alias-main.c: Likewise.
6661         * sysdeps/x86_64/fpu/test-float-libmvec-alias-mod.c: Likewise.
6662         * sysdeps/x86_64/fpu/test-float-libmvec-alias.c: Likewise.
6663         * sysdeps/x86_64/fpu/test-libmvec-alias-mod.c: Likewise.
6664
6665 2016-06-20  Wilco Dijkstra  <wdijkstr@arm.com>
6666
6667         * sysdeps/aarch64/rawmemchr.S (__rawmemchr): New file.
6668         * sysdeps/aarch64/strlen.S (__strlen): Change to __strlen to avoid PLT.
6669
6670 2016-06-20  Wilco Dijkstra  <wdijkstr@arm.com>
6671
6672         * sysdeps/aarch64/memcpy.S (memcpy):
6673         Rewrite of optimized memcpy and memmove.
6674         * sysdeps/aarch64/memmove.S (memmove): Remove
6675         memmove code (merged into memcpy.S).
6676
6677 2016-06-20  Florian Weimer  <fweimer@redhat.com>
6678
6679         Consolidate machine-agnostic DTV definitions in <dl-dtv.h>.
6680         * sysdeps/generic/dl-dtv.h: New file.
6681         * sysdeps/aarch64/dl-tls.h (TLS_DTV_UNALLOCATED): Remove.
6682         * sysdeps/aarch64/nptl/tls.h: Include <dl-dtv.h>.
6683         (dtv_t): Remove.
6684         * sysdeps/alpha/dl-tls.h (TLS_DTV_UNALLOCATED): Remove.
6685         * sysdeps/alpha/nptl/tls.h: Include <dl-dtv.h>.
6686         (dtv_t): Remove.
6687         * sysdeps/arm/dl-tls.h (TLS_DTV_UNALLOCATED): Remove.
6688         * sysdeps/arm/nptl/tls.h: Include <dl-dtv.h>.
6689         (dtv_t): Remove.
6690         * sysdeps/hppa/dl-tls.h (TLS_DTV_UNALLOCATED): Remove.
6691         * sysdeps/hppa/nptl/tls.h: Include <dl-dtv.h>.
6692         (dtv_t): Remove.
6693         * sysdeps/i386/dl-tls.h (TLS_DTV_UNALLOCATED): Remove.
6694         * sysdeps/i386/nptl/tls.h: Include <dl-dtv.h>.
6695         (dtv_t): Remove.
6696         * sysdeps/ia64/dl-tls.h (TLS_DTV_UNALLOCATED): Remove.
6697         * sysdeps/ia64/nptl/tls.h: Include <dl-dtv.h>.
6698         (dtv_t): Remove.
6699         * sysdeps/m68k/dl-tls.h (TLS_DTV_UNALLOCATED): Remove.
6700         * sysdeps/m68k/nptl/tls.h: Include <dl-dtv.h>.
6701         (dtv_t): Remove.
6702         * sysdeps/mach/hurd/i386/tls.h: Include <dl-dtv.h>.
6703         (dtv_t): Remove.
6704         * sysdeps/microblaze/dl-tls.h (TLS_DTV_UNALLOCATED): Remove.
6705         * sysdeps/microblaze/nptl/tls.h: Include <dl-dtv.h>.
6706         (dtv_t): Remove.
6707         * sysdeps/mips/dl-tls.h (TLS_DTV_UNALLOCATED): Remove.
6708         * sysdeps/mips/nptl/tls.h: Include <dl-dtv.h>.
6709         (dtv_t): Remove.
6710         * sysdeps/nios2/dl-tls.h (TLS_DTV_UNALLOCATED): Remove.
6711         * sysdeps/nios2/nptl/tls.h: Include <dl-dtv.h>.
6712         (dtv_t): Remove.
6713         * sysdeps/powerpc/dl-tls.h (TLS_DTV_UNALLOCATED): Remove.
6714         * sysdeps/powerpc/nptl/tls.h: Include <dl-dtv.h>.
6715         (dtv_t): Remove.
6716         * sysdeps/s390/dl-tls.h (TLS_DTV_UNALLOCATED): Remove.
6717         * sysdeps/s390/nptl/tls.h: Include <dl-dtv.h>.
6718         (dtv_t): Remove.
6719         * sysdeps/sh/dl-tls.h (TLS_DTV_UNALLOCATED): Remove.
6720         * sysdeps/sh/nptl/tls.h: Include <dl-dtv.h>.
6721         (dtv_t): Remove.
6722         * sysdeps/sparc/dl-tls.h (TLS_DTV_UNALLOCATED): Remove.
6723         * sysdeps/sparc/nptl/tls.h: Include <dl-dtv.h>.
6724         (dtv_t): Remove.
6725         * sysdeps/x86_64/dl-tls.h (TLS_DTV_UNALLOCATED): Remove.
6726         * sysdeps/x86_64/nptl/tls.h: Include <dl-dtv.h>.
6727         (dtv_t): Remove.
6728
6729 2016-06-20  Florian Weimer  <fweimer@redhat.com>
6730
6731         Revert symbol poisoning of  __malloc_initialize_hook.
6732         * include/stdc-predef.h (__malloc_initialize_hook): Remove
6733         poisoning.
6734         * malloc/Makefile: Remove un-poisoning.
6735         * malloc/arena.c (ptmalloc_init): Use __malloc_initialize_hook
6736         instead of old__malloc_initialize_hook.
6737         * malloc/malloc-hooks.h: Likewise.
6738         * malloc/malloc.c: Likewise.
6739         * malloc/mcheck-init.c: Likewise.
6740
6741 2016-06-19  Carlos O'Donell  <carlos@redhat.com>
6742
6743         * sysdeps/unix/sysv/linux/times.c (__times): Expand comments.
6744
6745 2016-06-18  Aurelien Jarno  <aurelien@aurel32.net>
6746
6747         * sysdeps/unix/sysv/linux/mips/vfork.S (__vfork): Conditionalize
6748         hidden_def, weak_alias and strong_alias on [IS_IN (libc)].
6749         * sysdeps/unix/sysv/linux/sparc/sparc32/vfork.S: Likewise.
6750         * sysdeps/unix/sysv/linux/sparc/sparc64/vfork.S: Likewise.
6751
6752 2016-06-16  Rajalakshmi Srinivasaraghavan  <raji@linux.vnet.ibm.com>
6753
6754         * NEWS: Mention addition of nextup and nextdown.
6755         * manual/arith.texi: Document nextup and nextdown.
6756         * manual/libm-err-tab.pl: Add nextup and nextdown.
6757         * math/Makefile (libm-calls): Add s_nextdown and s_nextup.
6758         * math/Versions (libm): Add GLIBC_2.24.
6759         * math/bits/mathcalls.h: Add nextup and nextdown declaration.
6760         * math/libm-test.inc (nextafter_test_data) [TEST_COND_intel96]:
6761         Add new test.
6762         (nextafter_test_data) [TEST_COND_binary32]: Likewise.
6763         (nextafter_test_data) [TEST_COND_m68k96]: Likewise.
6764         (nextafter_test_data) [TEST_COND_binary64]: Likewise.
6765         (nextafter_test_data) [TEST_COND_binary128]: Likewise.
6766         (nextup_test_data): Likewise.
6767         (nextdown_test_data): Likewise.
6768         * math/s_nextdown.c: New file.
6769         * math/s_nextdownf.c: Likewise.
6770         * math/s_nextdownl.c: Likewise.
6771         * math/test-tgmath.c F(compile_test)): Add nextup and nextdown tests.
6772         F(nextup): New function.
6773         F(nextdown): Likewise.
6774         * math/tgmath.h: Add nextup and nextdown.
6775         * sysdeps/ieee754/flt-32/s_nextupf.c: New file.
6776         * sysdeps/ieee754/dbl-64/s_nextup.c: Likewise.
6777         * sysdeps/ieee754/ldbl-128/s_nextupl.c: Likewise.
6778         * sysdeps/ieee754/ldbl-128ibm/s_nextupl.c: Likewise.
6779         * sysdeps/ieee754/ldbl-96/s_nextupl.c: Likewise.
6780         * sysdeps/ieee754/ldbl-opt/Makefile (libnldbl-calls):
6781         Add nextup and nextdown.
6782         (CFLAGS-nldbl-nextup.c): New variable.
6783         (CFLAGS-nldbl-nextdown.c): Likewise.
6784         * sysdeps/ieee754/ldbl-opt/nldbl-nextdown.c: New file.
6785         * sysdeps/ieee754/ldbl-opt/nldbl-nextup.c: Likewise.
6786         * sysdeps/nacl/libm.abilist: Update.
6787         * sysdeps/unix/sysv/linux/aarch64/libm.abilist: Likewise.
6788         * sysdeps/unix/sysv/linux/alpha/libm.abilist: Likewise.
6789         * sysdeps/unix/sysv/linux/arm/libm.abilist: Likewise.
6790         * sysdeps/unix/sysv/linux/hppa/libm.abilist: Likewise.
6791         * sysdeps/unix/sysv/linux/i386/libm.abilist: Likewise.
6792         * sysdeps/unix/sysv/linux/ia64/libm.abilist: Likewise.
6793         * sysdeps/unix/sysv/linux/m68k/coldfire/libm.abilist: Likewise.
6794         * sysdeps/unix/sysv/linux/m68k/m680x0/libm.abilist: Likewise.
6795         * sysdeps/unix/sysv/linux/microblaze/libm.abilist: Likewise.
6796         * sysdeps/unix/sysv/linux/mips/mips32/libm.abilist: Likewise.
6797         * sysdeps/unix/sysv/linux/mips/mips64/libm.abilist: Likewise.
6798         * sysdeps/unix/sysv/linux/nios2/libm.abilist: Likewise.
6799         * sysdeps/unix/sysv/linux/powerpc/powerpc32/fpu/libm.abilist: Likewise.
6800         * sysdeps/unix/sysv/linux/powerpc/powerpc32/nofpu/libm.abilist:
6801         Likewise.
6802         * sysdeps/unix/sysv/linux/powerpc/powerpc64/libm-le.abilist: Likewise.
6803         * sysdeps/unix/sysv/linux/powerpc/powerpc64/libm.abilist: Likewise.
6804         * sysdeps/unix/sysv/linux/s390/s390-32/libm.abilist: Likewise.
6805         * sysdeps/unix/sysv/linux/s390/s390-64/libm.abilist: Likewise.
6806         * sysdeps/unix/sysv/linux/sh/libm.abilist: Likewise.
6807         * sysdeps/unix/sysv/linux/sparc/sparc32/libm.abilist: Likewise.
6808         * sysdeps/unix/sysv/linux/sparc/sparc64/libm.abilist: Likewise.
6809         * sysdeps/unix/sysv/linux/tile/tilegx/tilegx32/libm.abilist: Likewise.
6810         * sysdeps/unix/sysv/linux/tile/tilegx/tilegx64/libm.abilist: Likewise.
6811         * sysdeps/unix/sysv/linux/tile/tilepro/libm.abilist: Likewise.
6812         * sysdeps/unix/sysv/linux/x86_64/64/libm.abilist: Likewise.
6813         * sysdeps/unix/sysv/linux/x86_64/libmvec.abilist: Likewise.
6814         * sysdeps/unix/sysv/linux/x86_64/x32/libm.abilist: Likewise.
6815
6816 2016-06-16  Rical Jasan  <ricaljasan@pacific.net>
6817
6818         * manual/pattern.texi: Fix typos & grammar errors.
6819
6820 2016-06-16  Rical Jasan  <ricaljasan@pacific.net>
6821
6822         * manual/search.texi: Fix typos & grammar errors.
6823
6824 2016-06-16  Rical Jasan  <ricaljasan@pacific.net>
6825
6826         * manual/message.texi: Fix typos & grammar errors.
6827
6828 2016-06-16  Mike Frysinger  <vapier@gentoo.org>
6829
6830         * manual/contrib.texi: Fix spelling typos.
6831         * manual/crypt.texi: Likewise.
6832         * manual/filesys.texi: Likewise.
6833         * manual/locale.texi: Likewise.
6834         * manual/message.texi: Likewise.
6835         * manual/nss.texi: Likewise.
6836         * manual/string.texi: Likewise.
6837
6838 2016-06-16  Rical Jasan  <ricaljasan@pacific.net>
6839
6840         * manual/locale.texi: Fix typos & grammar errors.
6841
6842 2016-06-16  Rical Jasan  <ricaljasan@pacific.net>
6843
6844         * manual/charset.texi: Fix typos & grammar errors.
6845
6846 2016-06-16  Rical Jasan  <ricaljasan@pacific.net>
6847
6848         * manual/string.texi: Fix typos.
6849
6850 2016-06-16  Rical Jasan  <ricaljasan@pacific.net>
6851
6852         * manual/ctype.texi: Fix typos.
6853
6854 2016-06-16  Rical Jasan  <ricaljasan@pacific.net>
6855
6856         * manual/memory.texi: Fix various typos & grammar errors.
6857
6858 2016-06-14  Joseph Myers  <joseph@codesourcery.com>
6859
6860         [BZ #20255]
6861         * sysdeps/i386/fpu/s_fdim.c: New file.  Based on math/s_fdim.c.
6862         * math/libm-test.inc (fdim_test_data): Add another test.
6863
6864         [BZ #6796]
6865         [BZ #20255]
6866         [BZ #20256]
6867         * math/s_fdim.c: Include <math_private.h>.
6868         (__fdim): Use math_narrow_eval on result.
6869         * math/s_fdimf.c: Include <math_private.h>.
6870         (__fdimf): Use math_narrow_eval on result.
6871         * sysdeps/i386/fpu/s_fdim.S: Remove file.
6872         * sysdeps/i386/fpu/s_fdimf.S: Likewise.
6873         * sysdeps/i386/fpu/s_fdiml.S: Likewise.
6874         * sysdeps/i386/i686/fpu/s_fdim.S: Likewise.
6875         * sysdeps/i386/i686/fpu/s_fdimf.S: Likewise.
6876         * sysdeps/i386/i686/fpu/s_fdiml.S: Likewise.
6877         * sysdeps/powerpc/fpu/s_fdim.c: Likewise.
6878         * sysdeps/powerpc/fpu/s_fdimf.c: Likewise.
6879         * sysdeps/powerpc/powerpc32/fpu/s_fdim.c: Likewise.
6880         * sysdeps/powerpc/powerpc64/fpu/s_fdim.c: Likewise.
6881         * sysdeps/x86_64/fpu/s_fdiml.S: Likewise.
6882         * math/libm-test.inc (fdim_test_data): Expect errno setting on
6883         overflow.  Add sNaN tests.
6884
6885         * math/s_fdim.c (__fdim): Use islessequal and isinf instead of
6886         fpclassify.
6887         * math/s_fdimf.c (__fdimf): Likewise.
6888         * math/s_fdiml.c (__fdiml): Likewise.
6889
6890 2016-06-14  Rajalakshmi Srinivasaraghavan  <raji@linux.vnet.ibm.com>
6891
6892         * sysdeps/powerpc/powerpc64/multiarch/Makefile:
6893         (sysdep_routines): Add P8 and PPC64 strcasecmp/strncasecmp targets.
6894         * sysdeps/powerpc/powerpc64/multiarch/ifunc-impl-list.c:
6895         (__libc_ifunc_impl_list): Add entries for P8 and PPC64
6896         ifunc'ed strcasecmp/strncasecmp.
6897         * sysdeps/powerpc/powerpc64/multiarch/strcasecmp-power7.S:
6898         [EALIGN]: Removed.
6899         [END]: Likewise.
6900         [__strcasecmp]: Define instead of the above to control symbol name.
6901         * sysdeps/powerpc/powerpc64/multiarch/strcasecmp.c: Add IFUNC selector
6902         for __strcasecmp_power8.
6903         * sysdeps/powerpc/powerpc64/multiarch/strncase.c: Add IFUNC selector
6904         for __strncasecmp_power8.
6905         * sysdeps/powerpc/powerpc64/multiarch/strcasecmp-power8.S: New File.
6906         * sysdeps/powerpc/powerpc64/multiarch/strcasecmp-ppc64.c: Likewise.
6907         * sysdeps/powerpc/powerpc64/multiarch/strncase-power8.S: Likewise.
6908         * sysdeps/powerpc/powerpc64/multiarch/strncase-ppc64.c: Likewise.
6909         * sysdeps/powerpc/powerpc64/power8/strcasecmp.S: Likewise.
6910         * sysdeps/powerpc/powerpc64/power8/strncase.S: Likewise.
6911
6912 2016-06-13  Joseph Myers  <joseph@codesourcery.com>
6913
6914         [BZ #20252]
6915         * sysdeps/ieee754/dbl-64/e_atan2.c (__ieee754_atan2): Add both
6916         arguments when second argument is a NaN.
6917         * math/libm-test.inc (atan2_test_data): Add sNaN tests and more
6918         qNaN tests.
6919
6920         * math/libm-test.inc (cimag_test_data): Add sNaN tests.
6921         (conj_test_data): Likewise.
6922         (copysign_test_data): Likewise.
6923         (creal_test_data): Likewise.
6924         (fma_test_data): Likewise.
6925         (fmod_test_data): Likewise.
6926
6927         [BZ #20250]
6928         * sysdeps/i386/fpu/s_frexpl.S (__frexpl): Add non-finite input to
6929         itself.
6930         * sysdeps/ieee754/dbl-64/s_frexp.c (__frexp): Add non-finite or
6931         zero input to itself.
6932         * sysdeps/ieee754/dbl-64/wordsize-64/s_frexp.c (__frexp):
6933         Likewise.
6934         * sysdeps/ieee754/flt-32/s_frexpf.c (__frexpf): Likewise.
6935         * sysdeps/ieee754/ldbl-128/s_frexpl.c (__frexpl): Likewise.
6936         * sysdeps/ieee754/ldbl-128ibm/s_frexpl.c (__frexpl): Likewise.
6937         * sysdeps/ieee754/ldbl-96/s_frexpl.c (__frexpl): Likewise.
6938         * math/libm-test.inc (frexp_test_data): Add sNaN tests.
6939
6940 2016-06-13  Adhemerval Zanella  <adhemerval.zanella@linaro.org>
6941
6942         * nptl/Makefile (test): Add tst-cancel4_1 and tst-cancel4_2.
6943         * nptl/tst-cancel4-common.c: New file.
6944         * nptl/tst-cancel4-common.h: Likewise.
6945         * nptl/tst-cancel4.c: Move common definitions to
6946         tst-cancel4-common.{c,h} file.
6947         * nptl/tst-cancel4_1.c: New test.
6948         * nptl/tst-cancel4_2.c: New test.
6949
6950 2016-06-13  Florian Weimer  <fweimer@redhat.com>
6951
6952         [BZ #20248]
6953         * debug/tst-longjmp_chk2.c (pass): Use volatile sig_atomic_t.
6954         (write_message): New function.
6955         (stackoverflow_handler): Call it instead of printf, to avoid
6956         excessive stack usage by printf.
6957         (do_test): Restore SIGSEGV, SIGBUS default handlers.
6958
6959 2016-06-13  Adhemerval Zanella  <adhemerval.zanella@linaro.org>
6960
6961         * nptl/pthread_mutex_init.c [__ASSUME_FUTEX_LOCK_PI]
6962         (prio_inherit_missing): Remove define.
6963         * sysdeps/unix/sysv/linux/arm/kernel-features.h
6964         (__ASSUME_FUTEX_LOCK_PI): Likewise.
6965         * sysdeps/unix/sysv/linux/kernel-features.h (__ASSUME_FUTEX_LOCK_PI):
6966         Likewise.
6967         * sysdeps/unix/sysv/linux/m68k/kernel-features.h
6968         (__ASSUME_FUTEX_LOCK_PI): Likewise.
6969         * sysdeps/unix/sysv/linux/mips/kernel-features.h
6970         (__ASSUME_FUTEX_LOCK_PI): Likewise.
6971         * sysdeps/unix/sysv/linux/sparc/kernel-features.h
6972         (__ASSUME_FUTEX_LOCK_PI): Likewise.
6973
6974 2016-06-11  Paul Pluzhnikov  <ppluzhnikov@google.com>
6975
6976         [BZ #19670]
6977         [BZ #19672]
6978
6979         * io/test-lfs.c (do_prepare): Use xmalloc.
6980         * io/tst-fcntl.c (do_prepare): Likewise.
6981         * libio/tst-fopenloc.c (do_bz17916): Likewise.
6982         * libio/tst-mmap2-eofsync.c (do_prepare): Likewise.
6983         * login/tst-utmp.c (do_prepare): Likewise.
6984         * posix/tst-exec.c (do_prepare): Likewise.
6985         * posix/tst-pathconf.c (prepare): Likewise.
6986         * posix/tst-spawn.c (do_prepare): Likewise.
6987         * posix/tst-truncate.c (do_prepare): Likewise.
6988         * rt/tst-aio.c (do_prepare): Likewise.
6989         * rt/tst-aio64.c (do_prepare): Likewise.
6990
6991 2016-06-11  Florian Weimer  <fweimer@redhat.com>
6992
6993         [BZ #20237]
6994         * nss/nss_db/db-XXX.c (set*ent): Reset entidx to NULL.
6995         (get*ent): Set entidx to NULL during initialization.  If entidx is
6996         NULL, start iteration from the beginning.
6997
6998 2016-06-11  Florian Weimer  <fweimer@redhat.com>
6999
7000         * malloc/malloc.c (musable): Return correct size for dumped fake
7001         mmapped chunk.
7002
7003 2016-06-11  Florian Weimer  <fweimer@redhat.com>
7004
7005         [BZ #20222]
7006         * libio/iofopncook.c (_IO_cookie_read): Demangle callback pointer.
7007         (_IO_cookie_write): Likewise.
7008         (_IO_cookie_seek): Likewise.
7009         (_IO_cookie_close): Likewise.
7010         (_IO_old_cookie_seek): Likewise.
7011         (set_callbacks): New function.
7012         (_IO_cookie_init): Call set_callbacks to copy callbacks.
7013
7014 2016-06-11  Marko Myllynen  <myllynen@redhat.com>
7015
7016         * locale/programs/localedef.c (oldstyle_tables): Remove.
7017         * locale/programs/localedef.h (oldstyle_tables): Likewise.
7018
7019 2016-06-10  Joseph Myers  <joseph@codesourcery.com>
7020
7021         [BZ #20240]
7022         * math/Makefile (CFLAGS-s_modf.c): New variable.
7023         (CFLAGS-s_modff.c): Likewise.
7024         (CFLAGS-s_modfl.c): Likewise.
7025         * math/libm-test.inc (modf_test_data): Add sNaN tests.
7026
7027 2016-06-09  Carlos O'Donell  <carlos@redhat.com>
7028
7029         [BZ #20215]
7030         * misc/sys/cdefs.h [__GNUC_PREREQ (3,2)]: Undef __always_inline first.
7031         [!__GNUC_PREREQ (3,2)]: Likewise.
7032
7033 2016-06-10  Adhemerval Zanela  <adhemerval.zanella@linaro.org>
7034
7035         * conform/data/sys/socket.h-data (msghdr.msg_iovlen): Add xfail-.
7036         (msghdr.msg_controllen): Likewise.
7037         (cmsghdr.cmsg_len): Likewise.
7038         * nptl/Makefile (libpthread-routines): Remove ptw-oldrecvmsg and
7039         ptw-oldsendmsg.
7040         (CFLAGS-oldrecvmsg.c): Remove rule.
7041         (CFLAGS-oldsendmsg.c): Likewise.
7042         (CFLAGS-recvmsg.c): Add rule.
7043         (CFLAGS-sendmsg.c): Likewise.
7044         * sysdeps/unix/sysv/linux/Makefile (sysdep_routines): Remove
7045         oldrecvmsg, oldsendmsg, oldrecvmmsg, oldsendmmsg.
7046         (CFLAGS-recvmsg.c): Remove rule.
7047         (CFLAGS-sendmsg.c): Likewise.
7048         (CFLAGS-oldrecvmsg.c): Likewise.
7049         (CFLAGS-oldsendmsg.c): Likewise.
7050         (CFLAGS-recvmmsg.c): Likewise.
7051         * sysdeps/unix/sysv/linux/bits/socket.h (msghdr.msg_iovlen): Revert
7052         to kernel defined interfaces.
7053         (msghdr.msg_controllen): Likewise.
7054         (cmsghdr.cmsg_len): Likewise.
7055         (msghdr.__glibc_reserved1): Remove member.
7056         (msghdr.__glibc_reserved2): Likewise.
7057         (cmsghdr.__glibc_reserved1): Likewise.
7058         * sysdeps/unix/sysv/linux/oldrecvmmsg.c: Remove file.
7059         * sysdeps/unix/sysv/linux/oldrecvmsg.c: Likewise.
7060         * sysdeps/unix/sysv/linux/oldsendmmsg.c: Likewise.
7061         * sysdeps/unix/sysv/linux/oldsendmsg.c: Likewise.
7062         * sysdeps/unix/sysv/linux/recvmmsg.c: Revert back to previous
7063         version.
7064         * sysdeps/unix/sysv/linux/recvmsg.c: Likewise.
7065         * sysdeps/unix/sysv/linux/sendmmsg.c: Likewise.
7066         * sysdeps/unix/sysv/linux/sendmsg.c: Likewise.
7067         * sysdeps/unix/sysv/linux/aarch64/Versions [libc] (GLIBC_2.24):
7068         Remove recvmsg and sendmsg.
7069         * sysdeps/unix/sysv/linux/alpha/Versions [libc] (GLIBC_2.24):
7070         Likewise.
7071         * sysdeps/unix/sysv/linux/hppa/Versions [libc] (GLIBC_2.24):
7072         Likewise.
7073         * sysdeps/unix/sysv/linux/i386/Versions [libc] (GLIBC_2.24): Likewise.
7074         * sysdeps/unix/sysv/linux/m68k/Versions [libc] (GLIBC_2.24): Likewise.
7075         * sysdeps/unix/sysv/linux/microblaze/Versions [libc] (GLIBC_2.24):
7076         Likewise.
7077         * sysdeps/unix/sysv/linux/mips/mips32/Versions [libc] (GLIBC_2.24):
7078         Likewise.
7079         * sysdeps/unix/sysv/linux/mips/mips64/n32/Versions
7080         [libc] (GLIBC_2.24): Likewise.
7081         * sysdeps/unix/sysv/linux/nios2/Versions [libc] (GLIBC_2.24):
7082         Likewise.
7083         * sysdeps/unix/sysv/linux/powerpc/Versions [libc] (GLIBC_2.24):
7084         Likewise.
7085         * sysdeps/unix/sysv/linux/powerpc/powerpc64/Versions
7086         [libc] (GLIBC_2.24): Likewise.
7087         * sysdeps/unix/sysv/linux/s390/s390-32/Versions [libc] (GLIBC_2.24):
7088         Likewise.
7089         * sysdeps/unix/sysv/linux/s390/s390-64/Versions [libc] (GLIBC_2.24):
7090         Likewise.
7091         * sysdeps/unix/sysv/linux/sh/Versions [libc] (GLIBC_2.24): Likewise.
7092         * sysdeps/unix/sysv/linux/sparc/Versions [libc] (GLIBC_2.24):
7093         Likewise.
7094         * sysdeps/unix/sysv/linux/sparc/sparc64/Versions [libc] (GLIBC_2.24):
7095         Likewise.
7096         * sysdeps/unix/sysv/linux/tile/Versions [libc] (GLIBC_2.24):
7097         Likewise.
7098         * sysdeps/unix/sysv/linux/x86_64/Versions [libc] (GLIBC_2.24):
7099         Likewise.
7100         * sysdeps/unix/sysv/linux/tile/tilegx/tilegx64/Versions: Remove file
7101         * sysdeps/unix/sysv/linux/x86_64/64/Versions: Likewise.
7102         * sysdeps/unix/sysv/linux/mips/mips64/n64/Versions: Likewise.
7103         * sysdeps/unix/sysv/linux/aarch64/libc.abilist: Remove new 2.24
7104         version for {recv,send,recm,sendm}msg.
7105         * sysdeps/unix/sysv/linux/alpha/libc.abilist: Likewise.
7106         * sysdeps/unix/sysv/linux/arm/libc.abilist: Likewise.
7107         * sysdeps/unix/sysv/linux/hppa/libc.abilist: Likewise.
7108         * sysdeps/unix/sysv/linux/i386/libc.abilist: Likewise.
7109         * sysdeps/unix/sysv/linux/ia64/libc.abilist: Likewise.
7110         * sysdeps/unix/sysv/linux/m68k/coldfire/libc.abilist: Likewise.
7111         * sysdeps/unix/sysv/linux/m68k/m680x0/libc.abilist: Likewise.
7112         * sysdeps/unix/sysv/linux/microblaze/libc.abilist: Likewise.
7113         * sysdeps/unix/sysv/linux/mips/mips32/fpu/libc.abilist: Likewise.
7114         * sysdeps/unix/sysv/linux/mips/mips32/nofpu/libc.abilist: Likewise.
7115         * sysdeps/unix/sysv/linux/mips/mips64/n32/libc.abilist: Likewise.
7116         * sysdeps/unix/sysv/linux/mips/mips64/n64/libc.abilist: Likewise.
7117         * sysdeps/unix/sysv/linux/powerpc/powerpc32/fpu/libc.abilist:
7118         Likewise.
7119         * sysdeps/unix/sysv/linux/powerpc/powerpc32/nofpu/libc.abilist:
7120         Likewise.
7121         * sysdeps/unix/sysv/linux/powerpc/powerpc64/libc-le.abilist: Likewise.
7122         * sysdeps/unix/sysv/linux/powerpc/powerpc64/libc.abilist: Likewise.
7123         * sysdeps/unix/sysv/linux/s390/s390-32/libc.abilist: Likewise.
7124         * sysdeps/unix/sysv/linux/s390/s390-64/libc.abilist: Likewise.
7125         * sysdeps/unix/sysv/linux/nios2/libc.abilist: Likewise.
7126         * sysdeps/unix/sysv/linux/sh/libc.abilist: Likewise.
7127         * sysdeps/unix/sysv/linux/sparc/sparc32/libc.abilist: Likewise.
7128         * sysdeps/unix/sysv/linux/sparc/sparc64/libc.abilist: Likewise.
7129         * sysdeps/unix/sysv/linux/tile/tilegx/tilegx32/libc.abilist: Likewise.
7130         * sysdeps/unix/sysv/linux/tile/tilegx/tilegx64/libc.abilist: Likewise.
7131         * sysdeps/unix/sysv/linux/tile/tilepro/libc.abilist: Likewise.
7132         * sysdeps/unix/sysv/linux/x86_64/64/libc.abilist: Likewise.
7133         * sysdeps/unix/sysv/linux/x86_64/x32/libc.abilist: Likewise.
7134
7135 2016-06-10  Florian Weimer  <fweimer@redhat.com>
7136
7137         [BZ #19564]
7138         Remove __malloc_initialize_hook from the API.
7139         * malloc/malloc.h (__malloc_initialize_hook): Remove.
7140         * include/stdc-predef.h (__malloc_initialize_hook): Poison with
7141         #pragma GCC poison.
7142         * malloc/malloc-hooks.h: New file.
7143         * malloc/arena.c (ptmalloc_init): Use old__malloc_initialize_hook.
7144         * malloc/malloc.c (HAVE_MALLOC_INIT_HOOK): New.
7145         (old__malloc_initialize_hook): Rename from
7146         __malloc_initialize_hook to evade poisoning.  Turn into compat
7147         symbol.
7148         * malloc/mcheck-init.c (old__malloc_initialize_hook): Rename from
7149         __malloc_initialize_hook.
7150         * malloc/Makefile (poisoned_apis, unpoisoned_api_defines): New.
7151         (mallo.c, mcheck-init.c): Compile with unpoisoned symbol.
7152         * manual/memory.texi (Hooks for Malloc): Remove
7153         __malloc_initialize_hook.  Adjust hook example.
7154
7155 2016-06-09  Joseph Myers  <joseph@codesourcery.com>
7156
7157         [BZ #20235]
7158         * sysdeps/i386/fpu/e_log2l.S (__ieee754_log2l): Add NaN input to
7159         itself.
7160         * sysdeps/x86_64/fpu/e_log2l.S (__ieee754_log2l): Likewise.
7161         * math/libm-test.inc (log2_test_data): Add sNaN tests.
7162
7163         [BZ #20234]
7164         * sysdeps/ieee754/ldbl-128ibm/s_log1pl.c (__log1pl): Add positive
7165         infinity or NaN input to itself.
7166
7167         [BZ #20233]
7168         * sysdeps/ieee754/ldbl-128ibm/s_expm1l.c (__expm1l): Add NaN input
7169         to itself.
7170
7171         [BZ #20232]
7172         * sysdeps/ieee754/ldbl-128/s_expm1l.c (__expm1l): Add NaN input to
7173         itself.
7174
7175 2016-06-09  H.J. Lu  <hongjiu.lu@intel.com>
7176
7177         * sysdeps/x86_64/start.S (_start): Always indirect branch to
7178         __libc_start_main via GOT.
7179
7180 2016-06-09  H.J. Lu  <hongjiu.lu@intel.com>
7181
7182         * sysdeps/x86_64/memcopy.h: New file.
7183         * sysdeps/x86_64/wordcopy.c: Likewise.
7184
7185 2016-06-09  Florian Weimer  <fweimer@redhat.com>
7186
7187         Prevent GCC 6 <cstdlib> from including /usr/include/stdlib.h.
7188         * stdlib/tst-quick_exit.cc: Include <stdlib.h> instead of
7189         <cstdlib>.
7190         (optimization_barrier): New.
7191         (do_test): Use it.  Call quick_exit in the global namespace.
7192         * stdlib/tst-thread-quick_exit.cc: Include <stdlib.h>, <pthread.h>
7193         instead of <cstdlib>, <thread>.
7194         (optimization_barrier): New.
7195         (non_main_thread): Adjust declaration.  Call optimization_barrier.
7196         Call quick_exit in the global namespace.
7197         (do_test): Call optimization_barrier.  Use pthread_create,
7198         pthread_join instead of std::thread.
7199
7200 2016-06-09  Andreas Schwab  <schwab@suse.de>
7201
7202         [BZ #19755]
7203         * nscd/pwdcache.c (cache_addpw): Lock prune_run_lock while adding
7204         new entries in auto-propagate mode.
7205         * nscd/grpcache.c (cache_addgr): Likewise.
7206
7207 2016-06-09  Paul Pluzhnikov  <ppluzhnikov@google.com>
7208
7209         * test-skeleton.c (oom_error, xmalloc, xcalloc, xrealloc):
7210         New functions.
7211         (add_temp_file): Use them.
7212
7213 2016-06-09  Samuel Thibault  <samuel.thibault@ens-lyon.org
7214
7215         * mach/mach/mach_traps.h (mach_print): Add syscall declaration.
7216
7217 2016-06-08  Joseph Myers  <joseph@codesourcery.com>
7218
7219         [BZ #20229]
7220         * sysdeps/i386/fpu/s_log1pl.S (__log1pl): Add NaN input to itself.
7221         * sysdeps/x86_64/fpu/s_log1pl.S (__log1pl): Likewise.
7222         * math/libm-test.inc (log1p_test_data): Add sNaN tests.
7223
7224         [BZ #20228]
7225         * sysdeps/i386/fpu/e_log10l.S (__ieee754_log10l): Add NaN input to
7226         itself.
7227         * sysdeps/x86_64/fpu/e_log10l.S (__ieee754_log10l): Likewise.
7228         * math/libm-test.inc (log10_test_data): Add sNaN tests.
7229
7230         [BZ #20227]
7231         * sysdeps/i386/fpu/e_logl.S (__ieee754_logl): Add NaN input to
7232         itself.
7233         * sysdeps/i386/i686/fpu/e_logl.S (__ieee754_logl): Likewise.
7234         * sysdeps/x86_64/fpu/e_logl.S (__ieee754_logl): Likewise.
7235         * math/libm-test.inc (log_test_data): Add sNaN tests.
7236
7237         [BZ #20226]
7238         * sysdeps/i386/fpu/e_expl.S (IEEE754_EXPL): Add NaN argument to
7239         itself.
7240         * sysdeps/x86_64/fpu/e_expl.S (IEEE754_EXPL): Likewise.
7241         * math/libm-test.inc (exp_test_data): Add sNaN tests.
7242         (exp10_test_data): Likewise.
7243         (expm1_test_data): Likewise.
7244
7245         [BZ #20225]
7246         * math/s_ldexp.c (__ldexp): Add non-finite or zero argument to
7247         itself.
7248         * math/s_ldexpf.c (__ldexpf): Likewise.
7249         * math/s_ldexpl.c (__ldexpl): Likewise.
7250         * math/w_scalbln.c (__w_scalbln): Likewise.
7251         * math/w_scalblnf.c (__w_scalblnf): Likewise.
7252         * math/w_scalblnl.c (__w_scalblnl): Likewise.
7253         * math/libm-test.inc (scalbn_test_data): Add sNaN tests.
7254         (scalbln_test_data): Likewise.
7255
7256         [BZ #20224]
7257         * sysdeps/i386/fpu/s_cbrtl.S (__cbrtl): Add non-finite or zero
7258         argument to itself.
7259         * math/libm-test.inc (cbrt_test_data): Add sNaN tests.
7260
7261 2016-06-08  H.J. Lu  <hongjiu.lu@intel.com>
7262
7263         [BZ #19776]
7264         * sysdeps/x86_64/memcpy.S: Make it dummy.
7265         * sysdeps/x86_64/mempcpy.S: Likewise.
7266         * sysdeps/x86_64/memmove.S: New file.
7267         * sysdeps/x86_64/memmove_chk.S: Likewise.
7268         * sysdeps/x86_64/multiarch/memmove.S: Likewise.
7269         * sysdeps/x86_64/multiarch/memmove_chk.S: Likewise.
7270         * sysdeps/x86_64/memmove.c: Removed.
7271         * sysdeps/x86_64/multiarch/memcpy-avx-unaligned.S: Likewise.
7272         * sysdeps/x86_64/multiarch/memcpy-sse2-unaligned.S: Likewise.
7273         * sysdeps/x86_64/multiarch/memmove-avx-unaligned.S: Likewise.
7274         * sysdeps/x86_64/multiarch/memmove-sse2-unaligned-erms.S:
7275         Likewise.
7276         * sysdeps/x86_64/multiarch/memmove.c: Likewise.
7277         * sysdeps/x86_64/multiarch/memmove_chk.c: Likewise.
7278         * sysdeps/x86_64/multiarch/Makefile (sysdep_routines): Remove
7279         memcpy-sse2-unaligned, memmove-avx-unaligned,
7280         memcpy-avx-unaligned and memmove-sse2-unaligned-erms.
7281         * sysdeps/x86_64/multiarch/ifunc-impl-list.c
7282         (__libc_ifunc_impl_list): Replace
7283         __memmove_chk_avx512_unaligned_2 with
7284         __memmove_chk_avx512_unaligned.  Remove
7285         __memmove_chk_avx_unaligned_2.  Replace
7286         __memmove_chk_sse2_unaligned_2 with
7287         __memmove_chk_sse2_unaligned.  Remove __memmove_chk_sse2 and
7288         __memmove_avx_unaligned_2.  Replace __memmove_avx512_unaligned_2
7289         with __memmove_avx512_unaligned.  Replace
7290         __memmove_sse2_unaligned_2 with __memmove_sse2_unaligned.
7291         Remove __memmove_sse2.  Replace __memcpy_chk_avx512_unaligned_2
7292         with __memcpy_chk_avx512_unaligned.  Remove
7293         __memcpy_chk_avx_unaligned_2.  Replace
7294         __memcpy_chk_sse2_unaligned_2 with __memcpy_chk_sse2_unaligned.
7295         Remove __memcpy_chk_sse2.  Remove __memcpy_avx_unaligned_2.
7296         Replace __memcpy_avx512_unaligned_2 with
7297         __memcpy_avx512_unaligned.  Remove __memcpy_sse2_unaligned_2
7298         and __memcpy_sse2.  Replace __mempcpy_chk_avx512_unaligned_2
7299         with __mempcpy_chk_avx512_unaligned.  Remove
7300         __mempcpy_chk_avx_unaligned_2.  Replace
7301         __mempcpy_chk_sse2_unaligned_2 with
7302         __mempcpy_chk_sse2_unaligned.  Remove __mempcpy_chk_sse2.
7303         Replace __mempcpy_avx512_unaligned_2 with
7304         __mempcpy_avx512_unaligned.  Remove __mempcpy_avx_unaligned_2.
7305         Replace __mempcpy_sse2_unaligned_2 with
7306         __mempcpy_sse2_unaligned.  Remove __mempcpy_sse2.
7307         * sysdeps/x86_64/multiarch/memcpy.S (__new_memcpy): Support
7308         __memcpy_avx512_unaligned_erms and __memcpy_avx512_unaligned.
7309         Use __memcpy_avx_unaligned_erms and __memcpy_sse2_unaligned_erms
7310         if processor has ERMS.  Default to __memcpy_sse2_unaligned.
7311         (ENTRY): Removed.
7312         (END): Likewise.
7313         (ENTRY_CHK): Likewise.
7314         (libc_hidden_builtin_def): Likewise.
7315         Don't include ../memcpy.S.
7316         * sysdeps/x86_64/multiarch/memcpy_chk.S (__memcpy_chk): Support
7317         __memcpy_chk_avx512_unaligned_erms and
7318         __memcpy_chk_avx512_unaligned.  Use
7319         __memcpy_chk_avx_unaligned_erms and
7320         __memcpy_chk_sse2_unaligned_erms if if processor has ERMS.
7321         Default to __memcpy_chk_sse2_unaligned.
7322         * sysdeps/x86_64/multiarch/memmove-vec-unaligned-erms.S
7323         Change function suffix from unaligned_2 to unaligned.
7324         * sysdeps/x86_64/multiarch/mempcpy.S (__mempcpy): Support
7325         __mempcpy_avx512_unaligned_erms and __mempcpy_avx512_unaligned.
7326         Use __mempcpy_avx_unaligned_erms and __mempcpy_sse2_unaligned_erms
7327         if processor has ERMS.  Default to __mempcpy_sse2_unaligned.
7328         (ENTRY): Removed.
7329         (END): Likewise.
7330         (ENTRY_CHK): Likewise.
7331         (libc_hidden_builtin_def): Likewise.
7332         Don't include ../mempcpy.S.
7333         (mempcpy): New.  Add a weak alias.
7334         * sysdeps/x86_64/multiarch/mempcpy_chk.S (__mempcpy_chk): Support
7335         __mempcpy_chk_avx512_unaligned_erms and
7336         __mempcpy_chk_avx512_unaligned.  Use
7337         __mempcpy_chk_avx_unaligned_erms and
7338         __mempcpy_chk_sse2_unaligned_erms if if processor has ERMS.
7339         Default to __mempcpy_chk_sse2_unaligned.
7340
7341 2016-06-08  H.J. Lu  <hongjiu.lu@intel.com>
7342
7343         [BZ #19881]
7344         * sysdeps/x86_64/multiarch/memset-sse2-unaligned-erms.S: Folded
7345         into ...
7346         * sysdeps/x86_64/memset.S: This.
7347         (__bzero): Removed.
7348         (__memset_tail): Likewise.
7349         (__memset_chk): Likewise.
7350         (memset): Likewise.
7351         (MEMSET_CHK_SYMBOL): New. Define only if MEMSET_SYMBOL isn't
7352         defined.
7353         (MEMSET_SYMBOL): Define only if MEMSET_SYMBOL isn't defined.
7354         * sysdeps/x86_64/multiarch/memset-avx2.S: Removed.
7355         (__memset_zero_constant_len_parameter): Check SHARED instead of
7356         PIC.
7357         * sysdeps/x86_64/multiarch/Makefile (sysdep_routines): Remove
7358         memset-avx2 and memset-sse2-unaligned-erms.
7359         * sysdeps/x86_64/multiarch/ifunc-impl-list.c
7360         (__libc_ifunc_impl_list): Remove __memset_chk_sse2,
7361         __memset_chk_avx2, __memset_sse2 and __memset_avx2_unaligned.
7362         * sysdeps/x86_64/multiarch/memset-vec-unaligned-erms.S
7363         (__bzero): Enabled.
7364         * sysdeps/x86_64/multiarch/memset.S (memset): Replace
7365         __memset_sse2 and __memset_avx2 with __memset_sse2_unaligned
7366         and __memset_avx2_unaligned.  Use __memset_sse2_unaligned_erms
7367         or __memset_avx2_unaligned_erms if processor has ERMS.  Support
7368         __memset_avx512_unaligned_erms and __memset_avx512_unaligned.
7369         (memset): Removed.
7370         (__memset_chk): Likewise.
7371         (MEMSET_SYMBOL): New.
7372         (libc_hidden_builtin_def): Replace __memset_sse2 with
7373         __memset_sse2_unaligned.
7374         * sysdeps/x86_64/multiarch/memset_chk.S (__memset_chk): Replace
7375         __memset_chk_sse2 and __memset_chk_avx2 with
7376         __memset_chk_sse2_unaligned and __memset_chk_avx2_unaligned_erms.
7377         Use __memset_chk_sse2_unaligned_erms or
7378         __memset_chk_avx2_unaligned_erms if processor has ERMS.  Support
7379         __memset_chk_avx512_unaligned_erms and
7380         __memset_chk_avx512_unaligned.
7381
7382 2016-06-08  Paul E. Murphy  <murphyp@linux.vnet.ibm.com>
7383
7384         * math/gen-auto-libm-test.c (fp_format_desc): remove
7385         suffix member.
7386         (output_generic_value): Remove usage of suffix member,
7387         and the resulting unuse of the fp_format argument.
7388         (output_for_one_input_case): Remove unused fp_format
7389         parameter.
7390
7391         * math/auto-libm-test-out: Regenerate.
7392
7393         * math/libm-test.inc (TEST_COND_ldbl_128ibm): replace
7394         usage with TEST_COND_ibm128.
7395         (TEST_COND_flt_32): Remove.
7396         (TEST_COND_dbl_64): Remove.
7397         (TEST_COND_ldbl_96_intel): Remove.
7398         (TEST_COND_ldbl_96_m68k): Remove.
7399         (TEST_COND_ldbl_128): Remove.
7400
7401 2016-06-08  Paul E. Murphy  <murphyp@linux.vnet.ibm.com>
7402
7403         * auto-libm-test-in:
7404         Replace flt-32 usage with binary32.
7405         Replace dbl-64 usage with binary64.
7406         Replace ldbl-intel-96 usage with intel96.
7407         Replace ldbl-m68k-96 usage with m68k96.
7408         Replace ldbl-128ibm usage with ibm128.
7409         Replace ldbl-128 usage with binary128.
7410
7411         * auto-libm-test-out: Regenerate.
7412
7413 2016-06-08  Paul E. Murphy  <murphyp@linux.vnet.ibm.com>
7414
7415         * math/gen-libm-test.pl (all_floats_pfx): New lookup table.
7416         (parse_ulps): Dynamically generate type name matching
7417         string from all_floats.
7418         (get_ulps): Generate the ulps as an array instead.
7419         (output_ulps): Dynamically compose the type based
7420         on the number of supported formats, and print
7421         the indices as type specific helper macros.
7422
7423         * math/libm-test.inc: Remove comment about CHOOSE.
7424         (ulp_data): Generate the type in libm-test-ulps.h.
7425         (ULP_IDX): New macro.
7426         (find_ulps): Update usage of max_ulp.
7427
7428         * math/test-double-vlen2.h (CHOOSE): Remove.
7429         * math/test-double-vlen4.h (CHOOSE): Likewise.
7430         * math/test-double-vlen8.h (CHOOSE): Likewise.
7431         * math/test-float.c (CHOOSE): Likewise.
7432         * math/test-float-finite.c (CHOOSE): Likewise.
7433         * math/test-double.c (CHOOSE): Likewise.
7434         * math/test-double-finite.c (CHOOSE): Likewise.
7435         * math/test-idouble.c (CHOOSE): Likewise.
7436         * math/test-ifloat.c (CHOOSE): Likewise.
7437         * math/test-ildoubl.c (CHOOSE): Likewise.
7438         * math/test-ldouble-finite.c (CHOOSE): Likewise.
7439         * math/test-ldouble.c (CHOOSE): Likewise.
7440
7441         * math/test-float.h (TEST_FLOAT): Remove.
7442         * math/test-double.h (TEST_DOUBLE): Likewise.
7443         * math/test-ldouble.h (TEST_LDOUBLE): Likewise.
7444
7445 2016-06-08  Paul E. Murphy  <murphyp@linux.vnet.ibm.com>
7446
7447         * math/gen-libm-test.pl: (apply_lit): New subroutine.
7448         (parse_args): Strip C suffix from floating point literals
7449         typed with 'f' and wrap them with LIT().
7450
7451         * math/libm-tests.inc (RUN_TEST_LOOP_fj_f): New macro.
7452         (test_ff_f_data_nexttoward): Rename to
7453         (test_fj_f_data): New struct.
7454         (nexttoward_test_data): Relabel tests as
7455         TEST_fj_f instead of TEST_ff_f.
7456
7457 2016-06-08  Florian Weimer  <fweimer@redhat.com>
7458
7459         Emacs bug 23726.
7460         * malloc/malloc.c (dumped_main_arena_start): Update comment.
7461         (__libc_realloc): Correct size computation for dumped fake mmapped
7462         chunks.
7463
7464 2016-06-07  Joseph Myers  <joseph@codesourcery.com>
7465
7466         [BZ #20219]
7467         * sysdeps/i386/fpu/e_atanhl.S (__ieee754_atanhl): Add NaN argument
7468         to itself.
7469         * math/libm-test.inc (atanh_test_data): Add sNaN tests.
7470
7471         [BZ #20218]
7472         * sysdeps/i386/fpu/s_asinhl.S (__asinhl): Add non-finite argument
7473         to itself.
7474         * math/libm-test.inc (asinh_test_data): Add sNaN tests.
7475
7476 2016-06-07  H.J. Lu  <hongjiu.lu@intel.com>
7477
7478         [BZ #20195]
7479         * sysdeps/x86/cpu-features.c (get_common_indeces): Move FMA4
7480         check to ...
7481         (init_cpu_features): Here.
7482
7483 2016-06-07  Carlos O'Donell  <carlos@redhat.com>
7484
7485         [BZ #20214]
7486         * sysdeps/unix/sysv/linux/bits/in.h
7487         [defined _UAPI_LINUX_IN6_H || defined _UAPI_IPV6_H
7488          || defined _LINUX_IN6_H || defined _IPV6_H] (__USE_KERNEL_IPV6_DEFS):
7489         Define to 1.
7490         [!(defined _UAPI_LINUX_IN6_H || defined _UAPI_IPV6_H
7491          || defined _LINUX_IN6_H || defined _IPV6_H)] (__USE_KERNEL_IPV6_DEFS):
7492         Define to 0.
7493         [!__USE_KERNEL_IPV6_DEFS] (IPV6_ADD_MEMBERSHIP): Define.
7494         [!__USE_KERNEL_IPV6_DEFS] (IPV6_DROP_MEMBERSHIP): Define.
7495
7496 2016-06-06  Carlos O'Donell  <carlos@redhat.com>
7497
7498         [BZ #20198]
7499         * stdlib/Makefile (tests): Add tst-quick_exit, and
7500         tst-thread-quick_exit.
7501         [ifeq ($(have-cxx-thread_local),yes)]
7502         (CFLAGS-tst-quick_exit.o): Use -stdc=c++11.
7503         (CFLAGS-tst-thread-quick_exit.o): Likewise.
7504         (LDLIBS-tst-quick_exit): Use -lstdc++ for C++ program.
7505         (LDLIBS-tst-thread-quick_exit): Likewise.
7506         [ifneq ($(have-cxx-thread_local),yes)]
7507         (tests-unsupported): Add tst-quick_exit, and tst-thread-quick_exit.
7508         * stdlib/exit.c (__run_exit_handlers): Add run_dtors argument.
7509         If run_dtors is true call __call_tls_dtors.
7510         (exit): Call __run_exit_handlers with run_dtors set to true.
7511         * stdlib/exit.h: Add run_dtors argument to __run_exit_handlers
7512         definition.
7513         * stdlib/quick_exit.c (quick_exit): Remove function.
7514         (__new_quick_exit): New function.
7515         [SHLIB_COMPAT(libc, GLIBC_2_10, GLIBC_2_24)] (__old_quick_exit): New
7516         function.
7517         * stdlib/tst-quick_exit.cc: New file.
7518         * stdlib/tst-thread-quick_exit.cc: New file.
7519         * stdlib/Versions: Add quick_exit@GLIBC_2.24.
7520         * sysdeps/arm/nacl/libc.abilist: Add 'GLIBC_2.24 quick_exit F'.
7521         * sysdeps/unix/sysv/linux/aarch64/libc.abilist: Likewise
7522         * sysdeps/unix/sysv/linux/alpha/libc.abilist: Likewise
7523         * sysdeps/unix/sysv/linux/arm/libc.abilist: Likewise
7524         * sysdeps/unix/sysv/linux/hppa/libc.abilist: Likewise
7525         * sysdeps/unix/sysv/linux/i386/libc.abilist: Likewise
7526         * sysdeps/unix/sysv/linux/ia64/libc.abilist: Likewise
7527         * sysdeps/unix/sysv/linux/m68k/coldfire/libc.abilist: Likewise
7528         * sysdeps/unix/sysv/linux/m68k/m680x0/libc.abilist: Likewise
7529         * sysdeps/unix/sysv/linux/microblaze/libc.abilist: Likewise
7530         * sysdeps/unix/sysv/linux/mips/mips32/fpu/libc.abilist: Likewise
7531         * sysdeps/unix/sysv/linux/mips/mips32/nofpu/libc.abilist: Likewise
7532         * sysdeps/unix/sysv/linux/mips/mips64/n32/libc.abilist: Likewise
7533         * sysdeps/unix/sysv/linux/mips/mips64/n64/libc.abilist: Likewise
7534         * sysdeps/unix/sysv/linux/nios2/libc.abilist: Likewise
7535         * sysdeps/unix/sysv/linux/powerpc/powerpc32/fpu/libc.abilist: Likewise
7536         * sysdeps/unix/sysv/linux/powerpc/powerpc32/nofpu/libc.abilist: Likewise
7537         * sysdeps/unix/sysv/linux/powerpc/powerpc64/libc-le.abilist: Likewise
7538         * sysdeps/unix/sysv/linux/powerpc/powerpc64/libc.abilist: Likewise
7539         * sysdeps/unix/sysv/linux/s390/s390-32/libc.abilist: Likewise
7540         * sysdeps/unix/sysv/linux/s390/s390-64/libc.abilist: Likewise
7541         * sysdeps/unix/sysv/linux/sh/libc.abilist: Likewise
7542         * sysdeps/unix/sysv/linux/sparc/sparc32/libc.abilist: Likewise
7543         * sysdeps/unix/sysv/linux/sparc/sparc64/libc.abilist: Likewise
7544         * sysdeps/unix/sysv/linux/tile/tilegx/tilegx32/libc.abilist: Likewise
7545         * sysdeps/unix/sysv/linux/tile/tilegx/tilegx64/libc.abilist: Likewise
7546         * sysdeps/unix/sysv/linux/tile/tilepro/libc.abilist: Likewise
7547         * sysdeps/unix/sysv/linux/x86_64/64/libc.abilist: Likewise
7548         * sysdeps/unix/sysv/linux/x86_64/x32/libc.abilist: Likewise
7549
7550 2016-06-06  H.J. Lu  <hongjiu.lu@intel.com>
7551
7552         * sysdeps/x86_64/multiarch/memmove-vec-unaligned-erms.S: Fix
7553         a typo in comments.
7554
7555 2016-06-06  Joseph Myers  <joseph@codesourcery.com>
7556
7557         [BZ #20213]
7558         * sysdeps/ieee754/dbl-64/e_asin.c (__ieee754_asin): Add NaN
7559         argument to itself.
7560         * math/libm-test.inc (asin_test_data): Add sNaN tests.
7561
7562 2016-06-06  Adhemerval Zanella  <adhemerval.zanella@linaro.org>
7563
7564         * misc/Makefile (CFLAGS-pwritev.c): New variable: add cancellation
7565         required flags.
7566         (CFLAGS-pwritev64.c): Likewise.
7567         * sysdeps/unix/sysv/linux/generic/wordsize-32/pwritev.c: Remove file.
7568         * sysdeps/unix/sysv/linux/generic/wordsize-32/pwritev64.c: Likewise.
7569         * sysdeps/unix/sysv/linux/mips/mips64/n64/pwritev64.c: Likewise.
7570         * sysdeps/unix/sysv/linux/wordsize-64/pwritev.c: Likewise.
7571         * sysdeps/unix/sysv/linux/wordsize-64/pwritev64.: Likwise.
7572         * sysdeps/unix/sysv/linux/x86_64/x32/syscalls.list (pwritev): Remove
7573         syscall from auto-generation.
7574         * sysdeps/unix/sysv/linux/pwritev.c: Rewrite implementation.
7575         [WORDSIZE == 64] (pwritev64): Remove macro.
7576         [!PWRITEV] (PWRITEV): Likewise.
7577         [!PWRITEV] (PWRITEV_REPLACEMENT): Likewise.
7578         [!PWRITEV] (PWRITE): Likewise.
7579         [!PWRITEV] (OFF_T): Likewise.
7580         [!__ASSUME_PWRITEV] (PWRITEV_REPLACEMENT): Likewise.
7581         (LO_HI_LONG): Remove macro.
7582         [__WORDSIZE != 64 || __ASSUME_OFF_DIFF_OFF64] (pwritev): Add function.
7583         * sysdeps/unix/sysv/linux/pwritev64.c: Rewrite implementation.
7584         (PWRITEV): Remove macro.
7585         (PWRITEV_REPLACEMENTE): Likewise.
7586         (PWRITE): Likewise.
7587         (OFF_T): Likewise.
7588         (pwritev64): New function.
7589         * nptl/tst-cancel4.c (tf_writev): Add test.
7590
7591         * misc/Makefile (CFLAGS-preadv.c): New variable: add cancellation
7592         required flags.
7593         (CFLAGS-preadv64.c): Likewise.
7594         * sysdeps/unix/sysv/linux/generic/wordsize-32/preadv.c: Remove file.
7595         * sysdeps/unix/sysv/linux/generic/wordsize-32/preadv64.c: Likewise.
7596         * sysdeps/unix/sysv/linux/mips/mips64/n64/preadv64.c: Likewise.
7597         * sysdeps/unix/sysv/linux/wordsize-64/preadv.c: Likewise.
7598         * sysdeps/unix/sysv/linux/wordsize-64/preadv64.: Likwise.
7599         * sysdeps/unix/sysv/linux/x86_64/x32/syscalls.list (preadv): Remove
7600         syscall from auto-generation.
7601         * sysdeps/unix/sysv/linux/preadv.c: Rewrite implementation.
7602         [WORDSIZE == 64] (preadv64): Remove macro.
7603         [!PREADV] (PREADV): Likewise.
7604         [!PREADV] (PREADV_REPLACEMENT): Likewise.
7605         [!PREADV] (PREAD): Likewise.
7606         [!PREADV] (OFF_T): Likewise.
7607         [!__ASSUME_PREADV] (PREADV_REPLACEMENT): Likewise.
7608         (LO_HI_LONG): Remove macro.
7609         [__WORDSIZE != 64 || __ASSUME_OFF_DIFF_OFF64] (preadv): Add function.
7610         * sysdeps/unix/sysv/linux/preadv64.c: Rewrite implementation.
7611         (PREADV): Remove macro.
7612         (PREADV_REPLACEMENTE): Likewise.
7613         (PREAD): Likewise.
7614         (OFF_T): Likewise.
7615         (preadv64): New function.
7616         * nptl/tst-cancel4.c (tf_preadv): Add test.
7617
7618 2016-06-06  Joseph Myers  <joseph@codesourcery.com>
7619
7620         [BZ #20212]
7621         * sysdeps/ieee754/dbl-64/e_asin.c (__ieee754_acos): Add NaN
7622         argument to itself.
7623         * math/libm-test.inc (acos_test_data): Add sNaN tests.
7624
7625 2016-06-06  Tulio Magno Quites Machado Filho  <tuliom@linux.vnet.ibm.com>
7626
7627         * sysdeps/powerpc/powerpc64/power8/strcasestr.S (__strcasestr):
7628         New symbol defined as libc_hidden_def.
7629         (strcasestr): Became a weak alias to __strcasestr.
7630         * sysdeps/powerpc/powerpc64/power8/strncpy.S: Handle memset calls
7631         according to multi-arch support.  Move __stpncpy hidden
7632         definition from here to...
7633         * sysdeps/powerpc/powerpc64/power8/stpncpy.S: ...here.  Add
7634         symbol stpncpy.
7635         * sysdeps/powerpc/powerpc64/multiarch/stpncpy-power8.S: Undefine
7636         libc_hidden_builtin_def.
7637         * sysdeps/powerpc/powerpc64/multiarch/strncpy-power8.S: Specify which
7638         memset symbol to use when multi-arch support is available.
7639
7640 2016-06-06  Stefan Liebler  <stli@linux.vnet.ibm.com>
7641
7642         * dlfcn/tst-rec-dlopen.c: Include string.h.
7643
7644 2016-06-05  Paul Pluzhnikov  <ppluzhnikov@google.com>
7645
7646         * manual/install.texi: Remove mention of --without-tls
7647         * INSTALL: Regenerate.
7648
7649 2016-06-05  Florian Weimer  <fweimer@redhat.com>
7650
7651         * dlfcn/tst-rec-dlopen.c (custom_malloc_hook, old_malloc_hook):
7652         Remove.
7653         (call_function, interposed_malloc_called): New variables.
7654         (malloc): New function.
7655         (do_test): Do not change malloc hooks.  Initialize malloc.  Set
7656         and clear call_function as needed.
7657
7658 2016-06-04  Andreas Schwab  <schwab@linux-m68k.org>
7659
7660         * include/wchar.h (__wmemset): Use __typeof.
7661
7662 2016-06-03  Carlos O'Donell  <carlos@redhat.com>
7663
7664         * include/wchar.h (__wmemset): Declare function without typeof.
7665
7666 2016-06-03  Joseph Myers  <joseph@codesourcery.com>
7667
7668         [BZ #20205]
7669         * sysdeps/i386/fpu/s_nextafterl.c (__nextafterl): Do not adjust
7670         exponent when incrementing negative subnormal with low mantissa
7671         word zero.
7672         * math/libm-test.inc (nextafter_test_data) [TEST_COND_intel96]:
7673         Add another test.
7674
7675 2016-06-03  Florian Weimer  <fweimer@redhat.com>
7676
7677         * libio/wstrops.c (_IO_wstr_overflow, enlarge_userbuf): Use
7678         __wmemset instead of wmemset.
7679
7680 2016-06-02  Carlos O'Donell  <carlos@redhat.com>
7681
7682         * sysdeps/unix/sysv/linux/bits/in.h [defined _UAPI_LINUX_IN6_H ||
7683         defined _UAPI_IPV6_H]: Define __USE_KERNEL_IPV6_DEFS to 1.
7684         [!(defined _UAPI_LINUX_IN6_H || defined _UAPI_IPV6_H)]: Define
7685         __USE_KERNEL_IPV6_DEFS to 0.
7686         * inet/netinet/in.h: Use '#if !__USE_KERNEL_IPV6_DEFS'.
7687         Update comment.
7688
7689 2016-06-01  Florian Weimer  <fweimer@redhat.com>
7690
7691         [BZ #19861]
7692         Do not use IFUNC resolver with potentially unrelocated symbol.
7693         * nptl/pt-fork.c [HAVE_IFUNC]: Remove.
7694         (DEFINE_FORK): Remove macro and inline definition.
7695         (fork_alias): Renamed from fork_ifunc.
7696         (__fork_alias): Renamed from __fork_ifunc.
7697
7698 2016-05-30  Paul Pluzhnikov  <ppluzhnikov@google.com>
7699
7700         [BZ 19653]
7701         * inet/if_index.c (__protocol_available): Delete #if 0'd code.
7702         * inet/ruserpass.c (ruserpass): Delete #if 0'd code.
7703
7704 2016-05-30  Samuel Thibault  <samuel.thibault@ens-lyon.org>
7705
7706         * scripts/check-local-headers.sh (exclude): Add hurd/ihash.h, and
7707         include .*-.*/ in addition to .*-.*-.*/ (i.e. i386-gnu in addition to
7708         i386-linux-gnu).
7709         * sysdeps/mach/hurd/configure.ac (libc_cv_ld_gnu_indirect_function):
7710         Set to no.
7711         * sysdeps/mach/hurd/configure: Refresh.
7712
7713 2016-05-30  Adhemerval Zanella  <adhemerval.zanella@linaro.org>
7714
7715         [BZ #20178]
7716         * sysdeps/unix/sysv/linux/spawni.c (__spawni_child): Call _exit
7717         on failure instead of exit.
7718
7719 2016-05-30  Roland McGrath  <roland@hack.frob.com>
7720
7721         [BZ #3629]
7722         * manual/string.texi (Copying Strings and Arrays): stpcpy is part
7723         of POSIX.1-2008.
7724
7725 2016-05-30  Samuel Thibault  <samuel.thibault@ens-lyon.org>
7726
7727         * sysdeps/mach/hurd/i386/____longjmp_chk.S (____longjmp_chk) [PIC]:
7728           Use PLT entry for calling _hurd_self_sigstate.
7729
7730 2016-05-27  H.J. Lu  <hongjiu.lu@intel.com>
7731
7732         * sysdeps/x86/cacheinfo.c (init_cacheinfo): Count number of
7733         available logical processors with SMT level type sharing L2
7734         cache for Intel processors.
7735
7736 2016-05-27  Joseph Myers  <joseph@codesourcery.com>
7737
7738         [BZ #20160]
7739         * sysdeps/powerpc/powerpc64/fpu/s_ceil.S (__ceil): Add NaN
7740         argument to itself before returning the result.
7741         * sysdeps/powerpc/powerpc64/fpu/s_ceilf.S (__ceilf): Likewise.
7742         * sysdeps/powerpc/powerpc64/fpu/s_floor.S (__floor): Likewise.
7743         * sysdeps/powerpc/powerpc64/fpu/s_floorf.S (__floorf): Likewise.
7744         * sysdeps/powerpc/powerpc64/fpu/s_nearbyint.S (__nearbyint):
7745         Likewise.
7746         * sysdeps/powerpc/powerpc64/fpu/s_nearbyintf.S (__nearbyintf):
7747         Likewise.
7748         * sysdeps/powerpc/powerpc64/fpu/s_rint.S (__rint): Likewise.
7749         * sysdeps/powerpc/powerpc64/fpu/s_rintf.S (__rintf): Likewise.
7750         * sysdeps/powerpc/powerpc64/fpu/s_round.S (__round): Likewise.
7751         * sysdeps/powerpc/powerpc64/fpu/s_roundf.S (__roundf): Likewise.
7752         * sysdeps/powerpc/powerpc64/fpu/s_trunc.S (__trunc): Likewise.
7753         * sysdeps/powerpc/powerpc64/fpu/s_truncf.S (__truncf): Likewise.
7754
7755         [BZ #20160]
7756         * sysdeps/powerpc/powerpc32/fpu/s_ceil.S (__ceil): Add NaN
7757         argument to itself before returning the result.
7758         * sysdeps/powerpc/powerpc32/fpu/s_ceilf.S (__ceilf): Likewise.
7759         * sysdeps/powerpc/powerpc32/fpu/s_floor.S (__floor): Likewise.
7760         * sysdeps/powerpc/powerpc32/fpu/s_floorf.S (__floorf): Likewise.
7761         * sysdeps/powerpc/powerpc32/fpu/s_nearbyint.S (__nearbyint):
7762         Likewise.
7763         * sysdeps/powerpc/powerpc32/fpu/s_nearbyintf.S (__nearbyintf):
7764         Likewise.
7765         * sysdeps/powerpc/powerpc32/fpu/s_rint.S (__rint): Likewise.
7766         * sysdeps/powerpc/powerpc32/fpu/s_rintf.S (__rintf): Likewise.
7767         * sysdeps/powerpc/powerpc32/fpu/s_round.S (__round): Likewise.
7768         * sysdeps/powerpc/powerpc32/fpu/s_roundf.S (__roundf): Likewise.
7769         * sysdeps/powerpc/powerpc32/fpu/s_trunc.S (__trunc): Likewise.
7770         * sysdeps/powerpc/powerpc32/fpu/s_truncf.S (__truncf): Likewise.
7771
7772 2016-05-27  Paul E. Murphy  <murphyp@linux.vnet.ibm.com>
7773
7774         * libm-test.inc: Replace usage of M_El with
7775         (lit_e): New macro.
7776
7777 2016-05-27  Paul E. Murphy  <murphyp@linux.vnet.ibm.com>
7778
7779         * libm-test.inc: Replace usage of M_PI_4l with
7780         (lit_pi_4_d): New macro.
7781
7782 2016-05-27  Paul E. Murphy  <murphyp@linux.vnet.ibm.com>
7783
7784         * libm-test.inc: Replace usage of M_PIl with
7785         (lit_pi): New macro.
7786
7787 2016-05-27  Paul E. Murphy  <murphyp@linux.vnet.ibm.com>
7788
7789         * libm-test.inc: Replace usage of M_PI2l with
7790         (lit_pi_2_d): New macro.
7791
7792         * math/test-double.h (LITM): New macro.
7793         * math/test-float.h (LITM): Likewise.
7794         * math/test-ldouble.h (LITM): Likewise.
7795
7796 2016-05-27  Paul E. Murphy  <murphyp@linux.vnet.ibm.com>
7797
7798         * libm-test.inc (M_PI_34l): Rename to
7799         (lit_pi_3_m_4_d): New Macro.
7800         (M_PI_34_LOG10El): Rename to
7801         (lit_pi_3_m_4_ln10_m_d): New Macro.
7802         (M_PI2_LOG10El): Rename to
7803         (lit_pi_2_ln10_m_d):  New Macro.
7804         (M_PI4_LOG10El): Rename to
7805         (lit_pi_4_ln10_m_d):  New Macro.
7806         (M_PI_LOG10El): Rename to
7807         (lit_pi_ln10_d):  New Macro.
7808
7809 2016-05-27  Joseph Myers  <joseph@codesourcery.com>
7810
7811         [BZ #20157]
7812         * sysdeps/powerpc/powerpc32/fpu/s_fabsl.S (__fabsl): Use fsel to
7813         determine whether to negate low half if [_ARCH_PPCGR], and integer
7814         comparison otherwise.
7815         * sysdeps/powerpc/powerpc64/fpu/s_fabsl.S (__fabsl): Use fsel to
7816         determine whether to negate low half.
7817
7818         * math/libm-test.inc (NO_TEST_INLINE_FLOAT): Remove macro.
7819         (NO_TEST_INLINE_DOUBLE): Likewise.
7820         (TEST_COND_x86_64): Likewise.
7821         (TEST_COND_x86): Likewise.
7822         (M_PI_6l): Likewise.
7823
7824 2016-05-27  Paul E. Murphy  <murphyp@linux.vnet.ibm.com>
7825
7826         * math/libm-test.inc:
7827         (TEST_FLOAT): Change usage to TEST_COND_binary32.
7828         (TEST_DOUBLE): Change usage to TEST_COND_binary64.
7829         (TEST_LDOUBLE): Update usage to evaluate as true if
7830         the guarded tests match the property being tested.
7831         (LDBL_MAX_EXP): Change to MAX_EXP.
7832         (LDBL_MIN_EXP): Change to MIN_EXP.
7833         (LDBL_MANT_DIG): Change to MANT_DIG, except for
7834         nexttoward tests.
7835
7836 2016-05-27  Paul E. Murphy  <murphyp@linux.vnet.ibm.com>
7837
7838         * math/libm-test.inc:
7839         (TYPE_DECIMAL_DIG): Redefine using type supplied PREFIX macro.
7840         (TYPE_MIN): Likewise.
7841         (TYPE_TRUE_MIN): Likewise.
7842         (TYPE_MAX): Likewise.
7843         (MIN_EXP): Likewise.
7844         (MAX_EXP): Likewise.
7845         (MANT_DIG): Likewise.
7846
7847         (FSTR_MAX): New macro.
7848         (__CONCATX): Likewise.
7849         (QTYPE_STR): Likewise.
7850         (TEST_COND_binary32): Likewise.
7851         (TEST_COND_binary64): Likewise.
7852         (TEST_COND_binary128): Likewise.
7853         (TEST_COND_ibm128): Likewise.
7854         (TEST_COND_intel96): Likewise.
7855         (TEST_COND_m68k96): Likewise.
7856
7857         (TEST_COND_flt_32): Redefine as equivalent format test macro.
7858         (TEST_COND_dbl_64): Likewise.
7859         (TEST_COND_ldbl_96_intel): Likewise.
7860         (TEST_COND_ldbl_96_m68k): Likewise.
7861         (TEST_COND_ldbl_128): Likewise.
7862         (TEST_COND_ldbl_128ibm): Likewise.
7863
7864         (plus_zero): Redefine using LIT macro.
7865         (minus_zero): Likewise.
7866         (plus_infty): Redefine as (INF).
7867         (minux_infty): Redefine as (-INF).
7868         (max_value): Redefine as TYPE_MAX.
7869         (min_value): Redefine as TYPE_MIN.
7870         (min_subnorm_value): Redefine as TYPE_TRUE_MIN.
7871
7872         (print_float): Refactor to use snprintf to convert FLOAT values
7873         to string. This brings it closer to dropin replacement of strtof
7874         for the TS 18661 defined types.
7875         (update_stats): Likewise.
7876         (print_complex_function_ulps): Likewise.
7877         (print_max_error): Likewise.
7878         (print_complex_max_error): Likewise.
7879         (check_float_internal): Likewise.
7880
7881         * math/test-float.h (PREFIX): New macro.
7882         (LIT): Likewise.
7883         (TYPE_STR): Likewise.
7884         (FTOSTR): Likewise.
7885
7886         * math/test-double.h (PREFIX): New macro.
7887         (LIT): Likewise.
7888         (TYPE_STR): Likewise.
7889         (FTOSTR): Likewise.
7890
7891         * math/test-ldouble.h (PREFIX): New macro.
7892         (LIT): Likewise.
7893         (TYPE_STR): Likewise.
7894         (FTOSTR): Likewise.
7895
7896 2016-05-27  Joseph Myers  <joseph@codesourcery.com>
7897
7898         [BZ #20156]
7899         * sysdeps/ieee754/ldbl-128ibm/s_ceill.c (__ceill): Add high part
7900         to itself when zero or not finite.
7901         * sysdeps/ieee754/ldbl-128ibm/s_floorl.c (__floorl): Likewise.
7902         * sysdeps/ieee754/ldbl-128ibm/s_rintl.c (__rintl): Likewise.
7903         * sysdeps/ieee754/ldbl-128ibm/s_roundl.c (__roundl): Likewise.
7904         * sysdeps/ieee754/ldbl-128ibm/s_truncl.c (__truncl): Likewise.
7905
7906 2016-05-26  Joseph Myers  <joseph@codesourcery.com>
7907
7908         [BZ #20153]
7909         * sysdeps/ieee754/ldbl-128ibm/e_sqrtl.c (__ieee754_sqrtl): Return
7910         x * x + x for infinities and NaNs.
7911
7912         [BZ #20151]
7913         * sysdeps/ieee754/ldbl-128/e_j0l.c (__ieee754_j0l): Add NaN
7914         argument to itself before returning result.
7915         (__ieee754_y0l): Likewise.
7916         * sysdeps/ieee754/ldbl-128/e_j1l.c (__ieee754_j1l): Likewise.
7917         (__ieee754_y1l).
7918
7919         * math/libm-test.inc (acosh_test_data): Add sNaN tests.
7920         (atan_test_data): Likewise.
7921         (ceil_test_data): Likewise.
7922         (cos_test_data): Likewise.
7923         (cosh_test_data): Likewise.
7924         (erf_test_data): Likewise.
7925         (exp2_test_data): Likewise.
7926         (fabs_test_data): Likewise.
7927         (floor_test_data): Likewise.
7928         (ilogb_test_data): Likewise.
7929         (j0_test_data): Likewise.
7930         (j1_test_data): Likewise.
7931         (jn_test_data): Likewise.
7932         (lgamma_test_data): Likewise.
7933         (lrint_test_data): Likewise.
7934         (llrint_test_data): Likewise.
7935         (logb_test_data): Likewise.
7936         (lround_test_data): Likewise.
7937         (llround_test_data): Likewise.
7938         (nearbyint_test_data): Likewise.
7939         (rint_test_data): Likewise.
7940         (round_test_data): Likewise.
7941         (sin_test_data): Likewise.
7942         (sincos_test_data): Likewise.
7943         (sinh_test_data): Likewise.
7944         (sqrt_test_data): Likewise.
7945         (tan_test_data): Likewise.
7946         (tanh_test_data): Likewise.
7947         (tgamma_test_data): Likewise.
7948         (trunc_test_data): Likewise.
7949         (y0_test_data): Likewise.
7950         (y1_test_data): Likewise.
7951         (yn_test_data): Likewise.
7952
7953         * math/libm-test.inc: Update comment about NaN testing.
7954         (TEST_SNAN): New macro.
7955         (snan_value): Likewise.
7956         (enable_test): Disable tests of sNaNs when SNAN_TESTS fails.
7957         (fpclassify_test_data): Add sNaN tests.
7958         (isfinite_test_data): Likewise.
7959         (isinf_test_data): Likewise.
7960         (isnan_test_data): Likewise.
7961         (isnormal_test_data): Likewise.
7962         (issignaling_test_data): Likewise.
7963         (signbit_test_data): Likewise.
7964         * math/gen-libm-test.pl (%beautify): Add snan_value.
7965         (show_exceptions): Add argument $test_snan.
7966         (parse_args): Handle snan_value as non-finite.  Update call to
7967         show_exceptions.
7968         * math/Makefile (libm-test-no-inline-cflags): Add
7969         -fsignaling-nans.
7970
7971 2016-05-26  Adhemerval Zanella  <adhemerval.zanella@linaro.org>
7972
7973         * nptl/Makefile (CFLAGS-oldrecvfrom.c): Remove rule.
7974         (CFLAGS-oldsendmsg.c): Add rule.
7975         * sysdeps/unix/sysv/linux/hppa/Versions [libc] (GLIBC_2.24):
7976         Correct recvmsg symbol name.
7977         * sysdeps/unix/sysv/linux/i386/Versions [libc] (GLIBC_2.24):
7978         Likewise.
7979
7980 2016-05-25  Adhemerval Zanella  <adhemerval.zanella@linaro.org>
7981
7982         * sysdeps/unix/sysv/linux/Makefile
7983         [$(subdir) = socket] (sysdep_routines): Add oldrecvmmsg and
7984         oldsendmmsg.
7985         * sysdeps/unix/sysv/linux/aarch64/libc.abilist: Add recvmmsg and
7986         sendmmsg.
7987         * sysdeps/unix/sysv/linux/alpha/libc.abilist: Likewise.
7988         * sysdeps/unix/sysv/linux/ia64/libc.abilist: Likewise.
7989         * sysdeps/unix/sysv/linux/mips/mips64/n64/libc.abilist: Likewise.
7990         * sysdeps/sysv/linux/powerpc/powerpc64/libc-le.abilist: Likewise.
7991         * sysdeps/unix/sysv/linux/powerpc/powerpc64/libc.abilist: Likewise.
7992         * sysdeps/unix/sysv/linux/s390/s390-64/libc.abilist: Likewise.
7993         * sysdeps/unix/sysv/linux/sparc/sparc64/libc.abilist: Likewise.
7994         * sysdeps/unix/sysv/linux/tile/tilegx/tilegx64/libc.abilist:
7995         Likewise.
7996         * sysdeps/unix/sysv/linux/x86_64/64/libc.abilist: Likewise.
7997         * sysdeps/unix/sysv/linux/oldrecvmmsg.c: New file.
7998         * sysdeps/unix/sysv/linux/oldsendmmsg.c: Likewise.
7999         * sysdeps/unix/sysv/linux/recvmmsg.c (__recvmmsg): Adjust msghdr
8000         iovlen and controllen fields to adjust to POSIX specification.
8001         * sysdeps/unix/sysv/linux/sendmmsg.c (__sendmmsg): Likewise.
8002
8003         * conform/data/sys/socket.h-data (msghdr.msg_iovlen): Remove xfail-
8004         and change to correct expected type.
8005         (msghdr.msg_controllen): Likewise.
8006         (cmsghdr.cmsg_len): Likewise.
8007         * sysdeps/unix/sysv/linux/bits/socket.h (msghdr.msg_iovlen): Fix
8008         expected POSIX assumption about the size.
8009         (msghdr.msg_controllen): Likewise.
8010         (msghdr.__glibc_reserved1): Likewise.
8011         (msghdr.__glibc_reserved2): Likewise.
8012         (cmsghdr.cmsg_len): Likewise.
8013         (cmsghdr.__glibc_reserved1): Likewise.
8014         * nptl/Makefile (libpthread-routines): Remove ptw-recvmsg and ptw-sendmsg.
8015         Add ptw-oldrecvmsg and ptw-oldsendmsg.
8016         (CFLAGS-sendmsg.c): Remove rule.
8017         (CFLAGS-recvmsg.c): Likewise.
8018         (CFLAGS-oldsendmsg.c): Add rule.
8019         (CFLAGS-oldrecvmsg.c): Likewise.
8020         * sysdeps/unix/sysv/linux/alpha/Versions [libc] (GLIBC_2.24): Add
8021         recvmsg and sendmsg.
8022         * sysdeps/unix/sysv/linux/aarch64/Version [libc] (GLIBC_2.24):
8023         Likewise.
8024         * sysdeps/unix/sysv/linux/arm/Versions [libc] (GLIBC_2.24): Likewise.
8025         * sysdeps/unix/sysv/linux/hppa/Versions [libc] (GLIBC_2.24): Likewise.
8026         * sysdeps/unix/sysv/linux/i386/Versions [libc] (GLIBC_2.24): Likewise.
8027         * sysdeps/unix/sysv/linux/ia64/Versions [libc] (GLIBC_2.24): Likewise.
8028         * sysdeps/unix/sysv/linux/m68k/Versions [libc] (GLIBC_2.24): Likewise.
8029         * sysdeps/unix/sysv/linux/microblaze/Versions [libc] (GLIBC_2.24):
8030         Likewise.
8031         * sysdeps/unix/sysv/linux/mips/mips32/Versions [libc] (GLIBC_2.24):
8032         Likewise.
8033         * sysdeps/unix/sysv/linux/mips/mips64/n32/Versions [libc] (GLIBC_2.24):
8034         Likewise.
8035         * sysdeps/unix/sysv/linux/mips/mips64/Versions [libc] (GLIBC_2.24):
8036         Likewise.
8037         * sysdeps/unix/sysv/linux/nios2/Versions [libc] (GLIBC_2.24):
8038         Likewise.
8039         * sysdeps/unix/sysv/linux/powerpc/Versions [libc] (GLIBC_2.24):
8040         Likewise.
8041         * sysdeps/unix/sysv/linux/powerpc/powerpc64/Versions [libc]
8042         (GLIBC_2.24): Likewise.
8043         * sysdeps/unix/sysv/linux/s390/s390-32/Versions [libc] (GLIBC_2.24):
8044         Likewise.
8045         * sysdeps/unix/sysv/linux/s390/s390-64/Versions [libc] (GLIBC_2.24):
8046         Likewise.
8047         * sysdeps/unix/sysv/linux/sh/Versions [libc] (GLIBC_2.24): Likewise.
8048         * sysdeps/unix/sysv/linux/sparc/Versions [libc] (GLIBC_2.24):
8049         Likewise.
8050         * sysdeps/unix/sysv/linux/sparc/sparc64/Versions [libc] (GLIBC_2.24):
8051         Likewise.
8052         ( sysdeps/unix/sysv/linux/tile/Versions [libc] (GLIBC_2.24):
8053         Likewise.
8054         * sysdeps/unix/sysv/linux/tile/tilegx/tilegx64/Versions [libc]
8055         (GLIBC_2.24): Likewise.
8056         ( sysdeps/unix/sysv/linux/x86_64/64/Versions [libc] (GLIBC_2.24):
8057         Likewise.
8058         * sysdeps/unix/sysv/linux/x84_64/Versions [libc] (GLIBC_2.24):
8059         Likewise.
8060         * sysdeps/unix/sysv/linux/Makefile
8061         [$(subdir) = socket)] (sysdep_headers): Add oldrecvmsg and oldsendmsg.
8062         (CFLAGS-sendmsg.c): Add rule.
8063         (CFLAGS-recvmsg.c): Likewise.
8064         (CFLAGS-oldsendmsg.c): Likewise.
8065         (CFLAGS-oldrecvmsg.c): Likewise.
8066         * sysdeps/unix/sysv/linux/check_native.c (__check_native): Fix msghdr
8067         initialization.
8068         * sysdeps/unix/sysv/linux/check_pf.c (make_request): Likewise.
8069         * sysdeps/unix/sysv/linux/ifaddrs.c (__netlink_request): Likewise.
8070         * sysdeps/unix/sysv/linux/oldrecvmsg.c: New file.
8071         * sysdeps/unix/sysv/linux/oldsendmsg.c: Likewise.
8072         * sysdeps/unix/sysv/linux/recvmsg.c (__libc_recvmsg): Adjust msghdr
8073         iovlen and controllen fields to adjust to POSIX specification.
8074         * sysdeps/unix/sysv/linux/sendmsg.c (__libc_sendmsg): Likewise.
8075         * sysdeps/unix/sysv/linux/aarch64/libc.abilist: New version and
8076         added recvmsg and sendmsg.
8077         * sysdeps/unix/sysv/linux/alpha/libc.abilist: Likewise.
8078         * sysdeps/unix/sysv/linux/hppa/libc.abilist: Likewise.
8079         * sysdeps/unix/sysv/linux/i386/libc.abilist: Likewise.
8080         * sysdeps/unix/sysv/linux/ia64/libc.abilist: Likewise.
8081         * sysdeps/unix/sysv/linux/m68k/coldfire/libc.abilist: Likewise.
8082         * sysdeps/unix/sysv/linux/m68k/m680x0/libc.abilist: Likewise.
8083         * sysdeps/unix/sysv/linux/microblaze/libc.abilist: Likewise.
8084         * sysdeps/unix/sysv/linux/mips/mips32/fpu/libc.abilist: Likewise.
8085         * sysdeps/unix/sysv/linux/mips/mips32/nofpu/libc.abilist: Likewise.
8086         * sysdeps/unix/sysv/linux/mips/mips64/n32/libc.abilist: Likewise.
8087         * sysdeps/unix/sysv/linux/mips/mips64/n64/libc.abilist: Likewise.
8088         * sysdeps/unix/sysv/linux/nios2/libc.abilist: Likewise
8089         * sysdeps/unix/sysv/linux/powerpc/powerpc32/fpu/libc.abilist:
8090         Likewise.
8091         * sysdeps/unix/linux/powerpc/powerpc32/nofpu/libc.abilist: Likewise.
8092         * sysdeps/unix/sysv/linux/powerpc/powerpc64/libc-le.abilist: Likewise.
8093         * sysdepe/unix/sysv/linux/powerpc/powerpc64/libc.abilist: Likewise.
8094         Likewise.
8095         Likewise.
8096         * sysdeps/unix/sysv/linux/s390/s390-32/libc.abilist: Likewise.
8097         * sysdeps/unix/sysv/linux/s390/s390-64/libc.abilist: Likewise.
8098         * sysdeps/unix/sysv/linux/sh/libc.abilist: Likewise.
8099         * sysdeps/unix/sysv/linux/sparc/sparc32/libc.abilist: Likewise.
8100         * sysdeps/unix/sysv/linux/sparc/sparc64/libc.abilist: Likewise.
8101         * sysdeps/unix/sysv/linux/sparc/sparc64/libc.abilist: Likewise.
8102         * sysdeps/unix/sysv/linux/tile/tilegx/tilegx32/libc.abilist: Likewise.
8103         * sysdeps/unix/sysv/linux/tile/tilepro/libc.abilist: Likewise.
8104         * sysdeps/unix/sysv/linux/tile/tilegx/tilegx64/libc.abilist: Likewise.
8105         Likewise.
8106         * sysdeps/unix/sysv/linux/x86_64/64/libc.abilist: Likewise.
8107         * sysdeps/unix/sysv/linux/x86_64/x32/libc.abilist: Likewise.
8108
8109         * sysdeps/unix/sysv/linux/alpha/syscalls.list (recvmsg): Remove
8110         from auto-generation.
8111         (sendmsg): Likewise.
8112         * sysdeps/unix/sysv/linux/arm/syscalls.list (recvmsg): Likewise.
8113         (sendmsg): Likewise.
8114         * sysdeps/unix/sysv/linux/generic/syscalls.list (recvmsg): Likewise.
8115         (sendmsg): Likewise.
8116         * sysdeps/unix/sysv/linux/hppa/syscalls.list (recvmsg): Likewise.
8117         (sendmsg): Likewise.
8118         * sysdeps/unix/sysv/linux/ia64/syscalls.list (recvmsg): Likewise.
8119         (sendmsg): Likewise.
8120         * sysdeps/unix/sysv/linux/mips/syscalls.list (recvmsg): Likewise.
8121         (sendmsg): Likewise.
8122         * sysdeps/unix/sysv/linux/sparc/sparc64/syscalls.list (recvmsg):
8123         Likewise.
8124         (sendmsg): Likewise.
8125         * sysdeps/unix/sysv/linux/x86_64/syscalls.list (recvmsg): Likewise.
8126         (sendmsg): Likewise.
8127         * sysdeps/unix/sysv/linux/i386/kernel-features.h
8128         [__LINUX_KERNEL_VERSION >= 0x040300] (__ASSUME_SENDMSG_SYSCALL):
8129         Remove.
8130         [__LINUX_KERNEL_VERSION >= 0x040300] (__ASSUME_RECVMSG_SYSCALL):
8131         Likewise.
8132         [__LINUX_KERNEL_VERSION < 0x040300] (__ASSUME_SENDMSG_SYSCALL):
8133         Undefine.
8134         [__LINUX_KERNEL_VERSION < 0x040300] (__ASSUME_RECVMSG_SYSCALL):
8135         Likewise.
8136         * sysdeps/unix/sysv/linux/kernel-features.h
8137         (__ASSUME_SENDMSG_SYSCALL): Define.
8138         (__ASSUME_RECVMSG_SYSCALL): Likewise.
8139         * sysdeps/unix/sysv/linux/m68k/kernel-features.h
8140         [__LINUX_KERNEL_VERSION >= 0x040300] (__ASSUME_SENDMSG_SYSCALL):
8141         Remove.
8142         [__LINUX_KERNEL_VERSION >= 0x040300] (__ASSUME_RECVMSG_SYSCALL):
8143         Likewise.
8144         [__LINUX_KERNEL_VERSION < 0x040300] (__ASSUME_SENDMSG_SYSCALL):
8145         Undefine.
8146         [__LINUX_KERNEL_VERSION < 0x040300] (__ASSUME_RECVMSG_SYSCALL):
8147         Likewise.
8148         * sysdeps/unix/sysv/linux/s390/kernel-features.h
8149         [__LINUX_KERNEL_VERSION >= 0x040300] (__ASSUME_SENDMSG_SYSCALL):
8150         Remove.
8151         [__LINUX_KERNEL_VERSION >= 0x040300] (__ASSUME_RECVMSG_SYSCALL):
8152         Likewise.
8153         [__LINUX_KERNEL_VERSION < 0x040300] (__ASSUME_SENDMSG_SYSCALL):
8154         Undefine.
8155         [__LINUX_KERNEL_VERSION < 0x040300] (__ASSUME_RECVMSG_SYSCALL):
8156         Likewise.
8157         * sysdeps/unix/sysv/linux/microblaze/kernel-features.h
8158         (__ASSUME_SENDMSG_SYSCALL): Undefine.
8159         (__ASSUME_RECVMSG_SYSCALL): Likewise.
8160         * sysdeps/unix/sysv/linux/powerpc/kernel-features.h
8161         (__ASSUME_SENDMSG_SYSCALL): Likewise.
8162         (__ASSUME_RECVMSG_SYSCALL): Likewise.
8163         * sysdeps/unix/sysv/linux/sh/kernel-features.h
8164         (__ASSUME_SENDMSG_SYSCALL): Likewise.
8165         (__ASSUME_RECVMSG_SYSCALL): Likewise.
8166
8167 2016-05-25  Paul E. Murphy  <murphyp@linux.vnet.ibm.com>
8168
8169         * stdlib/gen-tst-strtod-round.c: Add backslash to
8170         compile command in comment.
8171         (printfp): Remove the literal suffix, and define an infinite
8172         value as INF to avoid expansion clash with INFINITY.
8173         (round_str): Remove the literal suffix.
8174         (round_for_all): Likewise, remove the now duplicate ldbl-64
8175         entry, and remove some magic constants.
8176
8177         * stdlib/tst-strtod-round.c: (TEST): Redefine to reduce
8178         duplication.  Remove duplicate dbl-64 and ldbl-64 entries.
8179         (ROUNDING_TESTS_long_double): Define as 0 for ibm128.
8180         (_CONCAT): New macro.
8181         (CONCAT): Likewise.
8182         (CHOOSE_ld): Likewise.
8183         (CHOOSE_f): Likewise.
8184         (CHOOSE_d): Likewise.
8185         (FTYPE_MEMBER): Likewise.
8186         (BOOL_MEMBER): Likewise.
8187         (STRUCT_FOREACH_FLOAT_FTYPE): Likewise.
8188         (STRUCT_FOREACH_FLOAT_BOOL): Likewise.
8189         (_XNTRY): Likewise.
8190         (XNTRY): Likewise.
8191         (_ENTRY): Likewise.
8192         (ENTRY): Likewise.
8193         (test_exactness): Generate members via macro.
8194         (test_results): Likewise.
8195         (test): Update members.
8196         (TEST): Redefine using new macros.
8197         (INF): New macro.
8198         (fetestmodes): New structure.
8199         (do_test): Refactor to be type generic.
8200         (test_in_one_mode): Refactor duplicate code into
8201         (GEN_ONE_TEST): New macro.
8202
8203         * stdlib/tst-strtod-round-data.h: Regenerate.
8204
8205         * stdlib/tst-strtod.h (GEN_TEST_STRTOD_FOREACH):
8206         Extend to pass additional arbitrary parameters to
8207         generators.
8208
8209 2016-05-25  Joseph Myers  <joseph@codesourcery.com>
8210
8211         [BZ #15479]
8212         * sysdeps/powerpc/powerpc64/fpu/s_ceil.S (__ceil): Move save of
8213         floating-point state after first floating-point operation on
8214         input.  Restore full floating-point state instead of just rounding
8215         mode.
8216         * sysdeps/powerpc/powerpc64/fpu/s_ceilf.S (__ceilf): Likewise.
8217         * sysdeps/powerpc/powerpc64/fpu/s_floor.S (__floor): Likewise.
8218         * sysdeps/powerpc/powerpc64/fpu/s_floorf.S (__floorf): Likewise.
8219         * sysdeps/powerpc/powerpc64/fpu/s_trunc.S (__trunc): Likewise.
8220         * sysdeps/powerpc/powerpc64/fpu/s_truncf.S (__truncf): Likewise.
8221
8222         [BZ #15479]
8223         * sysdeps/powerpc/powerpc32/fpu/s_ceil.S (__ceil): Move save of
8224         floating-point state after first floating-point operation on
8225         input.  Restore full floating-point state instead of just rounding
8226         mode.
8227         * sysdeps/powerpc/powerpc32/fpu/s_ceilf.S (__ceilf): Likewise.
8228         * sysdeps/powerpc/powerpc32/fpu/s_floor.S (__floor): Likewise.
8229         * sysdeps/powerpc/powerpc32/fpu/s_floorf.S (__floorf): Likewise.
8230         * sysdeps/powerpc/powerpc32/fpu/s_trunc.S (__trunc): Likewise.
8231         * sysdeps/powerpc/powerpc32/fpu/s_truncf.S (__truncf): Likewise.
8232
8233 2016-05-25  Stefan Liebler  <stli@linux.vnet.ibm.com>
8234
8235         [BZ #19727]
8236         * iconvdata/utf-16.c (BODY): Report an error if first word is not a
8237         valid high surrogate.
8238         * iconvdata/utf-32.c (BODY): Report an error if the value is in range
8239         of an utf16 surrogate.
8240         * iconv/gconv_simple.c (BODY): Likewise.
8241         * iconvdata/bug-iconv12.c: New file.
8242         * iconvdata/Makefile (tests): Add bug-iconv12.
8243
8244 2016-05-25  Stefan Liebler  <stli@linux.vnet.ibm.com>
8245
8246         [BZ #19726]
8247         * iconv/gconv_simple.c (ucs4le_internal_loop): Update inptrp and
8248         outptrp in case of an illegal input.
8249         * iconv/tst-iconv6.c: New file.
8250         * iconv/Makefile (tests): Add tst-iconv6.
8251
8252 2016-05-25  Stefan Liebler  <stli@linux.vnet.ibm.com>
8253
8254         * sysdeps/s390/utf16-utf32-z9.c: Disable cu42 instruction and report
8255         an error in case of a value in range of an utf16 low surrogate.
8256
8257 2016-05-25  Stefan Liebler  <stli@linux.vnet.ibm.com>
8258
8259         * sysdeps/s390/utf8-utf32-z9.c: Disable cu41 instruction and report
8260         an error in case of a value in range of an utf16 low surrogate.
8261
8262 2016-05-25  Stefan Liebler  <stli@linux.vnet.ibm.com>
8263
8264         * sysdeps/s390/s390-64/Makefile (iconvdata-subdirectory):
8265         Move to ...
8266         * sysdeps/s390/Makefile: ... here.
8267         * sysdeps/s390/s390-64/iso-8859-1_cp037_z900.c: Move to ...
8268         * sysdeps/s390/iso-8859-1_cp037_z900.c: ... here.
8269         (BRANCH_ON_COUNT): New define.
8270         (TR_LOOP): Use BRANCH_ON_COUNT instead of brctg.
8271         * sysdeps/s390/s390-64/utf16-utf32-z9.c: Move to ...
8272         * sysdeps/s390/utf16-utf32-z9.c: ... here and adjust to
8273         run on s390-32, too.
8274         * sysdeps/s390/s390-64/utf8-utf16-z9.c: Move to ...
8275         * sysdeps/s390/utf8-utf16-z9.c: ... here and adjust to
8276         run on s390-32, too.
8277         * sysdeps/s390/s390-64/utf8-utf32-z9.c: Move to ...
8278         * sysdeps/s390/utf8-utf32-z9.c: ... here and adjust to
8279         run on s390-32, too.
8280
8281 2016-05-25  Stefan Liebler  <stli@linux.vnet.ibm.com>
8282
8283         * sysdeps/s390/s390-64/utf16-utf32-z9.c: Use ifunc to select c,
8284         etf3eh or new vector loop-variant.
8285
8286 2016-05-25  Stefan Liebler  <stli@linux.vnet.ibm.com>
8287
8288         * sysdeps/s390/s390-64/utf8-utf16-z9.c: Use ifunc to select c,
8289         etf3eh or new vector loop-variant.
8290
8291 2016-05-25  Stefan Liebler  <stli@linux.vnet.ibm.com>
8292
8293         * sysdeps/s390/s390-64/utf8-utf32-z9.c: Use ifunc to select c, etf3eh
8294         or new vector loop-variant.
8295
8296 2016-05-25  Stefan Liebler  <stli@linux.vnet.ibm.com>
8297
8298         * sysdeps/s390/s390-64/iso-8859-1_cp037_z900.c (TROO_LOOP):
8299         Rename to TR_LOOP and usage of tr instead of troo instruction.
8300
8301 2016-05-25  Stefan Liebler  <stli@linux.vnet.ibm.com>
8302
8303         * sysdeps/s390/multiarch/gconv_simple.c: New File.
8304         * sysdeps/s390/multiarch/Makefile (sysdep_routines): Add gconv_simple.
8305
8306 2016-05-25  Stefan Liebler  <stli@linux.vnet.ibm.com>
8307
8308         * sysdeps/s390/multiarch/8bit-generic.c: New File.
8309         * sysdeps/s390/multiarch/gen-8bit.sh: New File.
8310         * sysdeps/s390/multiarch/Makefile (generate-8bit-table):
8311         New override define.
8312         * sysdeps/s390/multiarch/iconv/skeleton.c: Likewise.
8313
8314 2016-05-25  Stefan Liebler  <stli@linux.vnet.ibm.com>
8315
8316         * config.h.in (HAVE_S390_VX_GCC_SUPPORT): New macro undefine.
8317         * sysdeps/s390/configure.ac: Add test for S390 vector register
8318         support in gcc.
8319         * sysdeps/s390/configure: Regenerated.
8320
8321 2016-05-25  Stefan Liebler  <stli@linux.vnet.ibm.com>
8322
8323         * iconvdata/Makefile ($(inst_gconvdir)/gconv-modules):
8324         Install file from $(objpfx)gconv-modules.
8325         ($(objpfx)gconv-modules): Concatenate architecture specific file
8326         in variable sysdeps-gconv-modules and gconv-modules in src dir.
8327         * sysdeps/s390/gconv-modules: New file.
8328         * sysdeps/s390/s390-64/Makefile: ($(inst_gconvdir)/gconv-modules):
8329         Deleted.
8330         ($(objpfx)gconv-modules-s390): Deleted.
8331         (sysdeps-gconv-modules): New variable.
8332
8333 2016-05-24  Joseph Myers  <joseph@codesourcery.com>
8334
8335         [BZ #15479]
8336         * sysdeps/x86_64/fpu/multiarch/s_ceil.S (__ceil_sse41): Set bit 3
8337         of immediate operand to rounding instruction.
8338         * sysdeps/x86_64/fpu/multiarch/s_ceilf.S (__ceilf_sse41):
8339         Likewise.
8340         * sysdeps/x86_64/fpu/multiarch/s_floor.S (__floor_sse41):
8341         Likewise.
8342         * sysdeps/x86_64/fpu/multiarch/s_floorf.S (__floorf_sse41):
8343         Likewise.
8344
8345 2016-05-24  Paul E. Murphy  <murphyp@linux.vnet.ibm.com>
8346
8347         * math/libm-test.inc (MIN_EXP): Directly define as
8348         (DBL|LDBL|FLT)_MIN_EXP and fixup usage.
8349
8350 2016-05-24  Paul E. Murphy  <murphyp@linux.vnet.ibm.com>
8351
8352         * math/libm-test.inc (MANT_DIG): Directly define as
8353         (DBL|LDBL|FLT)_MANT_DIG and fixup usage.
8354
8355 2016-05-24  Paul E. Murphy  <murphyp@linux.vnet.ibm.com>
8356
8357         * stdlib/gen-tst-strtod-round.c (main):
8358           Change usage to more closely match the generated
8359           output.  Add usage and compilation instructions.
8360           (string_to_fp): Add and use FILE* parameter as
8361           output target.
8362           (print_fp): Likewise.
8363           (round_str): Likewise.
8364           (round_for_all): Likewise.
8365         * stdlib/tst-strtod-round.c (tests): Move into
8366         * stdlib/tst-strtod-round-data.h: New file.
8367
8368 2016-05-24  Joseph Myers  <joseph@codesourcery.com>
8369
8370         [BZ #15479]
8371         * sysdeps/ieee754/dbl-64/s_round.c (huge): Remove variable.
8372         (__round): Do not force "inexact" exception.
8373         * sysdeps/ieee754/dbl-64/wordsize-64/s_round.c (huge): Remove
8374         variable.
8375         (__round): Do not force "inexact" exception.
8376         * sysdeps/ieee754/flt-32/s_roundf.c (huge): Remove variable.
8377         (__roundf): Do not force "inexact" exception.
8378         * sysdeps/ieee754/ldbl-128/s_roundl.c (huge): Remove variable.
8379         (__roundl): Do not force "inexact" exception.
8380         * sysdeps/ieee754/ldbl-96/s_roundl.c (huge): Remove variable.
8381         (__roundl): Do not force "inexact" exception.
8382         * math/libm-test.inc (round_test_data): Do not allow spurious
8383         "inexact" exceptions.
8384
8385         [BZ #15479]
8386         * sysdeps/ieee754/dbl-64/s_floor.c: Do not mention "inexact"
8387         exception in comment.
8388         (huge): Remove variable.
8389         (__floor): Do not force "inexact" exception.
8390         * sysdeps/ieee754/dbl-64/wordsize-64/s_floor.c: Do not mention
8391         "inexact" exception in comment.
8392         (huge): Remove variable.
8393         (__floor): Do not force "inexact" exception.
8394         * sysdeps/ieee754/flt-32/s_floorf.c: Do not mention "inexact"
8395         exception in comment.
8396         (huge): Remove variable.
8397         (__floorf): Do not force "inexact" exception.
8398         * sysdeps/ieee754/ldbl-128/s_floorl.c: Do not mention "inexact"
8399         exception in comment.
8400         (huge): Remove variable.
8401         (__floorl): Do not force "inexact" exception.
8402
8403         [BZ #15479]
8404         * sysdeps/ieee754/dbl-64/s_ceil.c: Do not mention "inexact"
8405         exception in comment.
8406         (huge): Remove variable.
8407         (__ceil): Do not force "inexact" exception.
8408         * sysdeps/ieee754/dbl-64/wordsize-64/s_ceil.c: Do not mention
8409         "inexact" exception in comment.
8410         (huge): Remove variable.
8411         (__ceil): Do not force "inexact" exception.
8412         * sysdeps/ieee754/flt-32/s_ceilf.c (huge): Remove variable.
8413         (__ceilf): Do not force "inexact" exception.
8414         * sysdeps/ieee754/ldbl-128/s_ceill.c: Do not mention "inexact"
8415         exception in comment.
8416         (huge): Remove variable.
8417         (__ceill): Do not force "inexact" exception.
8418
8419 2016-05-24  H.J. Lu  <hongjiu.lu@intel.com>
8420
8421         * config.h.in (BIND_NOW): New.
8422         * configure.ac (BIND_NOW): New.  Defined for --enable-bind-now.
8423         * configure: Regenerated.
8424         * sysdeps/x86_64/sysdep.h (JUMPTARGET)[BIND_NOW]: Defined to
8425         indirect branch via the GOT slot.
8426
8427 2016-05-24  Stefan Liebler  <stli@linux.vnet.ibm.com>
8428
8429         [BZ #19765]
8430         * sysdeps/s390/mempcpy.S: New File.
8431         * sysdeps/s390/multiarch/mempcpy.c: Likewise.
8432         * sysdeps/s390/multiarch/Makefile (sysdep_routines): Add mempcpy.
8433         * sysdeps/s390/multiarch/ifunc-impl-list.c (__libc_ifunc_impl_list):
8434         Add mempcpy variants.
8435         * sysdeps/s390/s390-32/memcpy.S: Add mempcpy entry point.
8436         (memcpy): Adjust to be usable from mempcpy entry point.
8437         (__memcpy_mvcle): Likewise.
8438         * sysdeps/s390/s390-64/memcpy.S: Likewise.
8439         * sysdeps/s390/s390-32/multiarch/memcpy-s390.S: Add entry points
8440         ____mempcpy_z196, ____mempcpy_z10 and add __GI_ symbols for mempcpy.
8441         (__memcpy_z196): Adjust to be usable from mempcpy entry point.
8442         (__memcpy_z10): Likewise.
8443         * sysdeps/s390/s390-64/multiarch/memcpy-s390x.S: Likewise.
8444
8445 2016-05-24  Stefan Liebler  <stli@linux.vnet.ibm.com>
8446
8447         * sysdeps/s390/multiarch/ifunc-resolve.h (s390_libc_ifunc):
8448         Remove __GI_ symbol.
8449         * sysdeps/s390/s390-32/multiarch/memcmp-s390.S: Add __GI_memcmp symbol.
8450         * sysdeps/s390/s390-64/multiarch/memcmp-s390x.S: Likewise.
8451         * sysdeps/s390/s390-32/multiarch/memcpy-s390.S: Add __GI_memcpy symbol.
8452         * sysdeps/s390/s390-64/multiarch/memcpy-s390x.S: Likewise.
8453         * sysdeps/s390/s390-32/multiarch/memset-s390.S: Add __GI_memset symbol.
8454         * sysdeps/s390/s390-64/multiarch/memset-s390x.S: Likewise.
8455
8456 2016-05-24  Stefan Liebler  <stli@linux.vnet.ibm.com>
8457
8458         * sysdeps/s390/s390-64/memcpy.S (memcpy):
8459         Use cghi instead of chi to compare 64bit value.
8460
8461 2016-05-24  Stefan Liebler  <stli@linux.vnet.ibm.com>
8462
8463         * sysdeps/s390/s390-32/memcpy.S (memcpy):
8464         Jump to 1MB check before executing mvc-loop.
8465
8466 2016-05-24  Florian Weimer  <fweimer@redhat.com>
8467
8468         [BZ #6527]
8469         * malloc/malloc.c (MALLOC_ALIGNMENT): Use correct alignment
8470         unconditionally.
8471         * malloc/hooks.c (MALLOC_STATE_VERSION): Increase state version.
8472
8473 2016-05-23  Paul E. Murphy  <murphyp@linux.vnet.ibm.com>
8474
8475         * stdlib/tst-strtod6.c (do_test): Use new type generic
8476         invocation of the test function.
8477         (test): Refactor into ...
8478         (TEST_STRTOD): New macro base function.
8479
8480 2016-05-23  Paul E. Murphy  <murphyp@linux.vnet.ibm.com>
8481
8482         * stdlib/bug-strtod2.c (do_test): Refactor strtod usage into ...
8483         (TEST_STRTOD): New macro.
8484         (TEST_FUNCTION): Redefine to use STRTOD_TEST_FOREACH
8485
8486 2016-05-23  Paul E. Murphy  <murphyp@linux.vnet.ibm.com>
8487
8488         * stdlib/tst-strtod6.c (do_test): Use new type generic
8489         invocation of the test function.
8490         (test): Refactor into ...
8491         (TEST_STRTOD): New macro base function.
8492
8493 2016-05-23  Florian Weimer  <fweimer@redhat.com>
8494
8495         CVE-2016-4429
8496         [BZ #20112]
8497         * sunrpc/clnt_udp.c (clntudp_call): Use malloc/free for the error
8498         payload.
8499
8500 2016-05-23  Florian Weimer  <fweimer@redhat.com>
8501
8502         [BZ #20111]
8503         * bits/sockaddr.h (_SS_SIZE): Define.
8504         * 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/mach/hurd/bits/socket.h (_SS_SIZE): Remove.
8509         (_SS_PADSIZE): Adjust to account for all padding.
8510         (struct sockaddr_storage): Update comment.  Avoid implicit
8511         padding.
8512         * sysdeps/unix/bsd/bits/sockaddr.h (_SS_SIZE): Define.
8513         * sysdeps/unix/sysv/linux/bits/socket.h (_SS_SIZE): Remove.
8514         (_SS_PADSIZE): Adjust to account for all padding.
8515         (struct sockaddr_storage): Update comment.  Avoid implicit
8516         padding.
8517         * sysdeps/unix/sysv/linux/m68k/bits/sockaddr.h: New file.
8518         __SS_SIZE is 126 in this version.
8519         * inet/tst-sockaddr.c: New file.
8520         * inet/Makefile (tests): Add tst-sockaddr.c
8521         (tst-sockaddr.c): Compile with non-strict aliasing.
8522
8523 2016-05-23  Joseph Myers  <joseph@codesourcery.com>
8524
8525         * conform/data/limits.h-data (CHARCLASS_NAME_MAX): Also expect for
8526         [XPG3 || XPG4].
8527         (NL_ARGMAX): Also expect for [XPG3].
8528         (NL_LANGMAX): Likewise.
8529         (NL_MSGMAX): Likewise.
8530         (NL_NMAX): Likewise.
8531         (NL_SETMAX): Likewise.
8532         (NL_TEXTMAX): Likewise.
8533         (NZERO): Likewise.
8534         (TMP_MAX): Likewise.
8535         * conform/Makefile (test-xfail-XPG3/limits.h/conform): Remove
8536         variable.
8537
8538         * sysdeps/unix/sysv/linux/bits/socket.h (PF_KCM): New macro.
8539         (PF_MAX): Update value.
8540         (AF_KCM): New macro.
8541         (SOL_NETBEUI): Likewise.
8542         (SOL_LLC): Likewise.
8543         (SOL_DCCP): Likewise.
8544         (SOL_NETLINK): Likewise.
8545         (SOL_TIPC): Likewise.
8546         (SOL_RXRPC): Likewise.
8547         (SOL_PPPOL2TP): Likewise.
8548         (SOL_BLUETOOTH): Likewise.
8549         (SOL_PNPIPE): Likewise.
8550         (SOL_RDS): Likewise.
8551         (SOL_IUCV): Likewise.
8552         (SOL_CAIF): Likewise.
8553         (SOL_ALG): Likewise.
8554         (SOL_NFC): Likewise.
8555         (SOL_KCM): Likewise.
8556         (MSG_BATCH): New enum value and macro.
8557
8558 2016-05-20  H.J. Lu  <hongjiu.lu@intel.com>
8559
8560         [BZ #18185]
8561         * sysdeps/x86/cacheinfo.c (init_cacheinfo): Don't limit threads
8562         sharing L2 cache to 2 for Knights Landing.
8563
8564 2016-05-20  Joseph Myers  <joseph@codesourcery.com>
8565
8566         * conform/data/ftw.h-data (struct FTW): Do not expect for [XPG3].
8567         (FTW_DP): Do not expect for [XPG3 || XPG4].
8568         (FTW_SL): Do not expect for [XPG3].
8569         (FTW_SLN): Likewise.
8570         (FTW_PHYS): Likewise.
8571         (FTW_MOUNT): Likewise.
8572         (FTW_DEPTH): Likewise.
8573         (FTW_CHDIR): Likewise.
8574         (nftw): Likewise.
8575         * conform/Makefile (test-xfail-XPG3/ftw.h/conform): Remove
8576         variable.
8577
8578 2016-05-19  Rical Jasan  <ricaljasan@pacific.net>
8579
8580         * manual/errno.texi: Fix various typos & grammar errors.
8581
8582 2016-05-19  Rical Jasan  <ricaljasan@pacific.net>
8583
8584         * manual/intro.texi: Fix duplicated typo.
8585
8586 2016-05-19  Joseph Myers  <joseph@codesourcery.com>
8587
8588         [BZ #13304]
8589         * sysdeps/ieee754/ldbl-128ibm/s_fmal.c: Include <fenv.h>,
8590         <float.h>, <math_private.h> and <stdlib.h>.
8591         (add_split): New function.
8592         (mul_split): Likewise.
8593         (ext_val): New typedef.
8594         (store_ext_val): New function.
8595         (mul_ext_val): New function.
8596         (compare): New function.
8597         (add_split_ext): New function.
8598         (__fmal): After checking for Inf, NaN and zero, compute result as
8599         an exact sum of scaled double values in round-to-nearest before
8600         adding those up and adjusting for other rounding modes.
8601         * math/auto-libm-test-in: Remove xfail-rounding:ldbl-128ibm from
8602         tests of fma.
8603         * math/auto-libm-test-out: Regenerated.
8604
8605 2016-05-19  H.J. Lu  <hongjiu.lu@intel.com>
8606
8607         [BZ #20119]
8608         * sysdeps/x86/cacheinfo.c (init_cacheinfo): Correct Intel
8609         processor level type mask for CPUID with EAX == 11.
8610
8611 2016-05-19  H.J. Lu  <hongjiu.lu@intel.com>
8612
8613         * sysdeps/x86/cacheinfo.c (init_cacheinfo): Skip counting
8614         logical threads if the HTT bit is 0.
8615         * sysdeps/x86/cpu-features.h (bit_cpu_HTT): New.
8616         (index_cpu_HTT): Likewise.
8617         (reg_HTT): Likewise.
8618
8619 2016-05-19  H.J. Lu  <hongjiu.lu@intel.com>
8620
8621         [BZ #20115]
8622         * sysdeps/x86_64/multiarch/memset-vec-unaligned-erms.S (__memset):
8623         Remove alignments on jump targets.
8624
8625 2016-05-19  Joseph Myers  <joseph@codesourcery.com>
8626
8627         * conform/data/pwd.h-data (endpwent): Do not expect for [XPG3].
8628         (getpwent): Likewise.
8629         (setpwent): Likewise.
8630         * conform/Makefile (test-xfail-XPG3/pwd.h/conform): Remove
8631         variable.
8632
8633         * conform/data/search.h-data (insque): Do not expect for [XPG3].
8634         (remque): Likewise.
8635         * conform/Makefile (test-xfail-XPG3/search.h/conform): Remove
8636         variable.
8637
8638 2016-05-18  Joseph Myers  <joseph@codesourcery.com>
8639
8640         * math/libm-test.inc: Update comment not to refer to signs of NaNs
8641         not being tested.
8642
8643 2016-05-18  H.J. Lu  <hongjiu.lu@intel.com>
8644
8645         * sysdeps/unix/sysv/linux/x86_64/pthread_cond_timedwait.S
8646         (__condvar_cleanup2): Remove JUMPTARGET from  _Unwind_Resume
8647         call.
8648         * sysdeps/unix/sysv/linux/x86_64/pthread_cond_wait.S
8649         (__condvar_cleanup1): Likewise.
8650
8651 2016-05-18  H.J. Lu  <hongjiu.lu@intel.com>
8652
8653         * sysdeps/unix/sysv/linux/x86_64/cancellation.S (PTHREAD_UNWIND):
8654         New
8655         (__pthread_unwind): Renamed to ...
8656         (PTHREAD_UNWIND): This.
8657         (__pthread_enable_asynccancel): Replace
8658         JUMPTARGET(__pthread_unwind) with PTHREAD_UNWIND.
8659
8660 2016-05-18  Joseph Myers  <joseph@codesourcery.com>
8661
8662         * sysdeps/unix/sysv/linux/bits/sched.h [__USE_GNU]
8663         (CLONE_NEWCGROUP): New macro.
8664
8665         * sysdeps/unix/sysv/linux/sys/quota.h [_LINUX_QUOTA_VERSION >= 2]
8666         (Q_GETNEXTQUOTA): New macro.
8667
8668 2016-05-18  H.J. Lu  <hongjiu.lu@intel.com>
8669
8670         [BZ #19907]
8671         * benchtests/bench-memcpy.c (do_one_test): Clear the destination
8672         buffer updated by the previous run.
8673         * string/test-memcpy.c (do_one_test): Likewise.
8674         * benchtests/bench-memmove.c (do_one_test): Add a comment.
8675         * string/test-memmove.c (do_one_test): Likewise.
8676
8677 2016-05-17  Joseph Myers  <joseph@codesourcery.com>
8678
8679         [BZ #20094]
8680         * stdlib/stdlib.h (grantpt): Declare if [__USE_XOPEN_EXTENDED],
8681         not [__USE_XOPEN].
8682         (unlockpt): Likewise.
8683         (ptsname): Likewise.
8684         * conform/Makefile (test-xfail-XPG3/stdlib.h/conform): Remove
8685         variable.
8686
8687         [BZ #20076]
8688         * io/sys/stat.h (S_IFSOCK): Define for [__USE_XOPEN_EXTENDED]
8689         instead of [__USE_UNIX98].
8690         (S_ISSOCK): Likewise.
8691         * conform/Makefile (test-xfail-XPG4/sys/stat.h/conform): Remove
8692         variable.
8693
8694         [BZ #20074]
8695         * stdlib/stdlib.h (rand_r): Declare if [__USE_POSIX199506], not if
8696         [__USE_POSIX].
8697         * conform/Makefile (test-xfail-XPG4/stdlib.h/conform): Remove
8698         variable.
8699
8700         [BZ #20051]
8701         * posix/unistd.h [__USE_XOPEN_EXTENDED && !__USE_UNIX98]
8702         (ttyslot): Do not declare.
8703         * stdlib/stdlib.h [__USE_XOPEN_EXTENDED && !__USE_XOPEN2K]
8704         (ttyslot): New prototype.
8705         * conform/Makefile (test-xfail-XPG4/unistd.h/conform): Remove
8706         variable.
8707         (test-xfail-UNIX98/stdlib.h/conform): Likewise.
8708
8709 2016-05-17  Stefan Liebler  <stli@linux.vnet.ibm.com>
8710
8711         * nptl/tst-cancel17.c (do_test): Wait for finishing aio_read(&a).
8712
8713 2016-05-13  Florian Weimer  <fweimer@redhat.com>
8714
8715         Fix race condition in tst-mallocfork2, use fewer resources.
8716         * malloc/tst-mallocfork2.c (sigusr1_handler): Do not send SIGSTOP
8717         to current process group.
8718         (signal_sender): Yield in the non-sleeping case.
8719
8720 2016-05-13  Joseph Myers  <joseph@codesourcery.com>
8721
8722         * conform/data/stdlib.h-data (a64l): Do not expect for [XPG3].
8723         (ecvt): Likewise.
8724         (fcvt): Likewise.
8725         (gcvt): Likewise.
8726         (getsubopt): Likewise.
8727         (grantpt): Likewise.
8728         (initstate): Likewise.
8729         (l64a): Likewise.
8730         (mktemp): Likewise.
8731         (mkstemp): Likewise.
8732         (ptsname): Likewise.
8733         (random): Likewise.
8734         (realpath): Likewise.
8735         (setstate): Likewise.
8736         (srandom): Likewise.
8737         (ttyslot): Likewise.
8738         (unlockpt): Likewise.
8739         (valloc): Likewise.
8740
8741         * conform/data/string.h-data (strdup): Do not expect for [XPG3].
8742         * conform/Makefile (test-xfail-XPG3/string.h/conform): Remove
8743         variable.
8744
8745 2016-05-13  H.J. Lu  <hongjiu.lu@intel.com>
8746
8747         [BZ #20072]
8748         * sysdeps/i386/dl-machine.h (dl_platform_init): Call
8749         init_cpu_features only if SHARED is defined.
8750         * sysdeps/x86_64/dl-machine.h (dl_platform_init): Likewise.
8751
8752 2016-05-13  H.J. Lu  <hongjiu.lu@intel.com>
8753
8754         * sysdeps/x86/cacheinfo.c (init_cacheinfo): Check and support
8755         non-inclusive caches on Intel processors.
8756
8757 2016-05-13  Florian Weimer  <fweimer@redhat.com>
8758
8759         * malloc/malloc.c (dumped_main_arena_start)
8760         (dumped_main_arena_end): New variables.
8761         (DUMPED_MAIN_ARENA_CHUNK): New macro.
8762         (do_check_chunk): Skip dumped fake mmapped chunks.
8763         (munmap_chunk): Likewise.
8764         (__libc_free): Do not adjust statistics for fake mmapped chunks.
8765         (__libc_realloc): Adjust hardening check.  Always copy dumped fake
8766         mmapped chunks.
8767         * malloc/hooks.c (__malloc_set_state): Do not update main_arena.
8768         Mark dumped chunks as using mmap.  Update dumped_main_arena_start
8769         and dumped_main_arena_end to cover the dumped heap.
8770
8771 2016-05-12  Joseph Myers  <joseph@codesourcery.com>
8772
8773         * conform/data/time.h-data (getdate_err): Do not expect for
8774         [XPG3].
8775         (getdate): Likewise.
8776         * conform/Makefile (test-xfail-XPG3/time.h/conform): Remove
8777         variable.
8778
8779         * conform/data/unistd.h-data (F_LOCK): Do not expect for [XPG3].
8780         (F_ULOCK): Likewise.
8781         (F_TEST): Likewise.
8782         (F_TLOCK): Likewise.
8783         (useconds_t): Likewise.
8784         (intptr_t): Do not expect for [XPG3] or [XPG4].
8785         (brk): Do not expect for [XPG3]
8786         (fchown): Likewise.
8787         (fchdir): Likewise.
8788         (ftruncate): Likewise.
8789         (getdtablesize): Likewise.
8790         (gethostid): Likewise.
8791         (getpagesize): Likewise.
8792         (getpgid): Likewise.
8793         (getsid): Likewise.
8794         (getwd): Likewise.
8795         (lchown): Likewise.
8796         (lockf): Likewise.
8797         (readlink): Likewise.
8798         (sbrk): Likewise.
8799         (setpgrp): Likewise.
8800         (setregid): Likewise.
8801         (setreuid): Likewise.
8802         (symlink): Likewise.
8803         (sync): Likewise.
8804         (truncate): Likewise.
8805         (ualarm): Likewise.
8806         (usleep): Likewise.
8807         (vfork): Likewise.
8808         * conform/Makefile (test-xfail-XPG3/unistd.h/conform): Remove
8809         variable.
8810
8811         [BZ #20054]
8812         * posix/unistd.h (gethostname): Declare if [__USE_XOPEN_EXTENDED],
8813         not [__USE_UNIX98].
8814         * conform/data/unistd.h-data (gethostname): Do not expect for
8815         [XPG3].
8816
8817         * conform/data/fcntl.h-data [!POSIX] (S_IFMT): Do not expect.
8818         [!POSIX] (S_IFBLK): Likewise.
8819         [!POSIX] (S_IFCHR): Likewise.
8820         [!POSIX] (S_IFIFO): Likewise.
8821         [!POSIX] (S_IFREG): Likewise.
8822         [!POSIX] (S_IFDIR): Likewise.
8823         [!POSIX] (S_IFLNK): Likewise.
8824         [!POSIX] (S_IFSOCK): Likewise.
8825         * conform/Makefile (test-xfail-XPG3/fcntl.h/conform): Remove
8826         variable.
8827         (test-xfail-XPG4/fcntl.h/conform): Likewise.
8828
8829 2016-05-12  Wilco Dijkstra  <wdijkstr@arm.com>
8830
8831         * sysdeps/aarch64/memset.S (__memset):
8832         Rewrite of optimized memset.
8833
8834 2016-05-12  Florian Weimer  <fweimer@redhat.com>
8835
8836         [BZ #19703]
8837         Partially async-signal-safe fork for single-threaded processes.
8838         * sysdeps/nptl/fork.c (__libc_fork): Introduce multiple_threads
8839         variable.  Do not acquire and reset/release malloc and libio locks
8840         in single-threaded processes.
8841         * malloc/tst-mallocfork2.c: New file.
8842         * malloc/Makefile (tests): Add it.
8843
8844 2016-05-12  Florian Weimer  <fweimer@redhat.com>
8845
8846         * sysdeps/posix/getaddrinfo.c (gaih_inet_serv): Add tmpbuf
8847         argument.  Use scratch buffer instead of extend_alloca.
8848         (gethosts): Use scratch buffer instead of extend_alloca.
8849         (gaih_inet): Add tmpbuf argument.  Use scratch buffer instead of
8850         extend_alloca.
8851         (getaddrinfo): Allocate scratch buffer and pass it to gaih_inet.
8852
8853 2016-05-11  Joseph Myers  <joseph@codesourcery.com>
8854
8855         [BZ #20055]
8856         * termios/termios.h (pid_t): Define for [__USE_XOPEN_EXTENDED]
8857         instead of [__USE_UNIX98].
8858         (tcgetsid): Declare for [__USE_XOPEN_EXTENDED] instead of
8859         [__USE_UNIX98].
8860         * conform/data/termios.h-data (tcgetsid): Do not expect for
8861         [XPG3].
8862         * conform/Makefile (test-xfail-XPG3/termios.h/conform): Remove
8863         variable.
8864         (test-xfail-XPG4/termios.h/conform): Likewise.
8865
8866 2016-05-11  Florian Weimer  <fweimer@redhat.com>
8867
8868         Do not use mcheck in localedef.
8869         * locale/programs/localedef.c (turn_on_mcheck)
8870         (__malloc_initialize_hook): Remove.
8871
8872 2016-05-11  Stefan Liebler  <stli@linux.vnet.ibm.com>
8873
8874         * sysdeps/s390/s390-32/Makefile (pic-ccflag): Remove.
8875         * sysdeps/s390/s390-64/Makefile: Likewise.
8876
8877 2016-05-11  H.J. Lu  <hongjiu.lu@intel.com>
8878
8879         * sysdeps/i386/i686/multiarch/Makefile (gen-as-const-headers):
8880         Remove ifunc-defines.sym.
8881         * sysdeps/x86_64/multiarch/Makefile (gen-as-const-headers):
8882         Likewise.
8883         * sysdeps/i386/i686/multiarch/ifunc-defines.sym: Removed.
8884         * sysdeps/x86/rtld-global-offsets.sym: Likewise.
8885         * sysdeps/x86_64/multiarch/ifunc-defines.sym: Likewise.
8886         * sysdeps/x86/Makefile (gen-as-const-headers): Remove
8887         rtld-global-offsets.sym.
8888         * sysdeps/x86_64/multiarch/ifunc-defines.sym: Merged with ...
8889         * sysdeps/x86/cpu-features-offsets.sym: This.
8890         * sysdeps/x86/cpu-features.h: Include <cpu-features-offsets.h>
8891         instead of <ifunc-defines.h> and <rtld-global-offsets.h>.
8892
8893 2016-05-10  Joseph Myers  <joseph@codesourcery.com>
8894
8895         [BZ #20073]
8896         * io/sys/stat.h (fchmod): Declare for
8897         [__USE_POSIX199309 || __USE_XOPEN_EXTENDED], not [__USE_POSIX].
8898         * conform/Makefile (test-xfail-XPG3/sys/stat.h/conform): Remove
8899         variable.
8900
8901         * conform/data/sys/stat.h-data [XPG3] (S_IFLNK): Do not expect.
8902         [XPG3] (S_IFSOCK): Likewise.
8903         [XPG3] (S_ISVTX): Likewise.
8904         [XPG3] (S_ISLNK): Likewise.
8905         [XPG3] (S_ISSOCK): Likewise.
8906         [XPG3] (fchmod): Likewise.
8907         [XPG3] (lstat): Likewise.
8908         [XPG3] (mknod): Likewise.
8909
8910         * conform/data/sys/stat.h-data (st_blksize): Do not expect for
8911         [XPG3].  Expect type long and XFAIL for [XPG4].
8912         (st_blocks): Likewise.
8913
8914         [BZ #20044]
8915         * posix/unistd.h [__USE_UNIX98 && !__USE_XOPEN2K]
8916         (pthread_atfork): New prototype.
8917         * conform/Makefile (test-xfail-UNIX98/unistd.h/conform): Remove
8918         variable.
8919
8920         [BZ #20043]
8921         * posix/unistd.h [__USE_XOPEN && !__USE_XOPEN2K] (cuserid): New
8922         prototype.
8923
8924 2016-05-10  Florian Weimer  <fweimer@redhat.com>
8925
8926         [BZ #20017]
8927         * resolv/res_debug.c (p_secstodate): Call __gmtime_r instead of
8928         gmtime.
8929
8930 2016-05-10  Florian Weimer  <fweimer@redhat.com>
8931
8932         [BZ #19994]
8933         * sysdeps/posix/getaddrinfo.c (gethosts): Restore RES_USE_INET6
8934         flag in _res.options.
8935
8936 2016-05-09  Joseph Myers  <joseph@codesourcery.com>
8937
8938         * conform/data/sys/types.h-data (blkcnt_t): Do not expect for
8939         [XPG3 || XPG4].
8940         (blksize_t): Likewise.
8941         (clockid_t): Likewise.
8942         * conform/Makefile (test-xfail-XPG3/sys/types.h/conform): Remove
8943         variable.
8944         (test-xfail-XPG4/sys/types.h/conform): Likewise.
8945
8946 2016-05-09  Stefan Liebler  <stli@linux.vnet.ibm.com>
8947
8948         * sysdeps/unix/sysv/linux/s390/init-first.c:
8949         Add VDSO_SYMBOL(getcpu).
8950         (_libc_vdso_platform_setup): Initialize VDSO_SYMBOL(getcpu).
8951         * sysdeps/unix/sysv/linux/s390/libc-vdso.h:
8952         Add VDSO_SYMBOL(getcpu).
8953         * sysdeps/unix/sysv/linux/s390/s390-32/sysdep.h:
8954         New define HAVE_GETCPU_VSYSCALL.
8955         * sysdeps/unix/sysv/linux/s390/s390-64/sysdep.h: Likewise.
8956
8957 2016-05-08  H.J. Lu  <hongjiu.lu@intel.com>
8958
8959         * sysdeps/i386/cacheinfo.c: Include <sysdeps/x86/cacheinfo.c>
8960         instead of <sysdeps/x86_64/cacheinfo.c>.
8961         * sysdeps/x86_64/cacheinfo.c: Moved to ...
8962         * sysdeps/x86/cacheinfo.c: Here.
8963
8964 2016-05-04  Florian Weimer  <fweimer@redhat.com>
8965
8966         * malloc/malloc-internal.h: Adjust header file guard.
8967
8968 2016-05-04  Florian Weimer  <fweimer@redhat.com>
8969
8970         [BZ #19787]
8971         * inet/getnameinfo.c (check_sprintf_result): New function.
8972         (CHECKED_SNPRINTF): New macro.
8973         (gni_host_inet_numeric): Use CHECKED_SNPRINTF to write the scope
8974         to the host buffer.
8975         (gni_host_local): Use checked_copy to copy the host name.
8976         (gni_serv_inet): Use CHECKED_SNPRINTF to write the service name.
8977         (gni_serv_local): Use checked_copy to copy the service name.
8978         (getnameinfo): Remove unnecessary truncation of result buffers.
8979
8980 2016-05-04  Florian Weimer  <fweimer@redhat.com>
8981
8982         * inet/getnameinfo.c (gni_host_inet_numeric): Return EAI_OVERFLOW
8983         in case of inet_ntop failure.
8984
8985 2016-05-04  Florian Weimer  <fweimer@redhat.com>
8986
8987         * inet/getnameinfo.c (gni_host_inet_name): Use temporaries to
8988         avoid long lines.
8989         (gni_host_inet_numeric): Likewise.  Reduce scope of local
8990         variables.
8991         (gni_host_inet, gni_host_local): Add comment.
8992         (gni_host): Add comment.  Use temporary to avoid long lines.
8993
8994 2016-05-04  Gabriel F. T. Gomes  <gftg@linux.vnet.ibm.com>
8995
8996         * sysdeps/powerpc/powerpc64/power8/strncpy.S: Fix use of condition
8997         registers specifiers where general purpose registers specifiers should
8998         have been used.
8999
9000 2016-05-04  Florian Weimer  <fweimer@redhat.com>
9001
9002         [BZ #19779]
9003         CVE-2016-1234
9004         Avoid copying names of directory entries.
9005         * posix/glob.c (DIRENT_MUST_BE, DIRENT_MIGHT_BE_SYMLINK)
9006         (DIRENT_MIGHT_BE_DIR, CONVERT_D_INO, CONVERT_D_TYPE)
9007         (CONVERT_DIRENT_DIRENT64, REAL_DIR_ENTRY): Remove macros.
9008         (struct readdir_result): New type.
9009         (D_TYPE_TO_RESULT, D_INO_TO_RESULT, READDIR_RESULT_INITIALIZER)
9010         (GL_READDIR): New macros.
9011         (readdir_result_might_be_symlink, readdir_result_might_be_dir)
9012         (convert_dirent, convert_dirent64): New functions.
9013         (glob_in_dir): Use struct readdir_result.  Call convert_dirent or
9014         convert_dirent64.  Adjust references to the readdir result.
9015         * sysdeps/unix/sysv/linux/i386/glob64.c:
9016         (convert_dirent, GL_READDIR): Redefine for second file inclusion.
9017         * posix/bug-glob2.c (LONG_NAME): Define.
9018         (filesystem): Add LONG_NAME.
9019         (my_DIR): Increase the size of room_for_dirent.
9020
9021 2016-05-03  Joseph Myers  <joseph@codesourcery.com>
9022
9023         [BZ #20041]
9024         * misc/sys/select.h (__need_timespec): Only define if
9025         [__USE_XOPEN2K].
9026         * conform/Makefile (test-xfail-XPG4/sys/time.h/conform): Remove
9027         variable.
9028         (test-xfail-XPG4/utmpx.h/conform): Likewise.
9029         (test-xfail-UNIX98/sys/time.h/conform): Likewise.
9030         (test-xfail-UNIX98/utmpx.h/conform): Likewise.
9031
9032 2016-05-03  Paul E. Murphy  <murphyp@linux.vnet.ibm.com>
9033             Segher Boessenkool  <segher@gcc.gnu.org>
9034
9035         [BZ #20004]
9036         * sysdeps/unix/sysv/linux/powerpc/powerpc64/swapcontext.S:
9037         (__novec_swapcontext): Add missing load.
9038
9039 2016-05-02  Joseph Myers  <joseph@codesourcery.com>
9040
9041         [BZ #20023]
9042         * io/fcntl.h [__USE_XOPEN && !__USE_XOPEN2K8]: Do not include
9043         <time.h>.
9044         * conform/Makefile (test-xfail-UNIX98/fcntl.h/conform): Remove
9045         variable.
9046         (test-xfail-XOPEN2K/fcntl.h/conform): Likewise.
9047
9048 2016-05-02  Adhemerval Zanella  <adhemerval.zanella@linaro.org>
9049
9050         * sysdeps/unix/sysv/linux/powerpc/powerpc32/clone.S (__clone): Fix
9051         flags CLONE_VM compare.
9052
9053 2016-05-02  Florian Weimer  <fweimer@redhat.com>
9054
9055         [BZ #20031]
9056         * hesiod/hesiod.c (get_txt_records): Return error if TXT record is
9057         completely empty.
9058
9059 2016-05-02  Florian Weimer  <fweimer@redhat.com>
9060
9061         [BZ #19573]
9062         * hesiod/Makefile (libnss_hesiod-routines): Remove hesiod-init.
9063         * hesiod/nss_hesiod/hesiod-init.c: Remove file.
9064         * hesiod/nss_hesiod/nss_hesiod.h: Likewise.
9065         * hesiod/hesiod.h (__hesiod_res_get, __hesiod_res_set): Remove.
9066         (hesiod_init, hesiod_end, hesiod_to_bind, hesiod_resolve)
9067         (hesiod_free_list): Mark as hidden.
9068         * hesiod/hesiod_p (struct hesiod_p): Remove res, free_res,
9069         res_set, res_get.
9070         * hesiod/hesiod.c: Remove unnecessary forward declarations.
9071         (init, __hesiod_res_get, __hesiod_res_set): Remove.
9072         (hesiod_init): Remove obsolete res_ninit call.
9073         (hesiod_end): Do not free resolver state.  Do not invoke callback.
9074         (hesiod_bind): Do not call init.
9075         (get_txt_records): Use res_mkquery, res_send instead of
9076         res_nmkquery, res_nsend.
9077         * hesiod/nss_hesiod/hesiod-grp.c (lookup): Call hesiod_init
9078         instead of _nss_hesiod_init.
9079         (_nss_hesiod_initgroups_dyn): Likewise.
9080         * hesiod/nss_hesiod/hesiod-proto.c (lookup): Likewise.
9081         * hesiod/nss_hesiod/hesiod-pwd.c (lookup): Likewise.
9082         * hesiod/nss_hesiod/hesiod-service.c (lookup): Likewise.
9083
9084 2016-05-02  Florian Weimer  <fweimer@redhat.com>
9085
9086         * hesiod/hesiod_p.h (DEF_RHS): Remove.
9087         * hesiod/hesiod.c (hesiod_init): Remove code for handling DEF_RHS.
9088
9089 2016-05-02  Florian Weimer  <fweimer@redhat.com>
9090
9091         * hesiod/hesiod.h: Remove RCS keyword.
9092         * hesiod/hesiod_p.h: Likewise.
9093
9094         * hesiod/hesiod.c: Likewise.
9095
9096 2016-05-01  Arnas Udovičius  <arnas.udovicius@gmail.com>
9097
9098         [BZ #12450]
9099         * locale/iso-639.def: Add Samogitian/sgs.
9100
9101 2016-04-30  Andreas Schwab  <schwab@linux-m68k.org>
9102
9103         * sysdeps/m68k/Makefile (CFLAGS-gmon-start.c): Define.
9104
9105         * sysdeps/unix/sysv/linux/m68k/clone.S: Localize labels.
9106
9107 2016-04-29  Stephen Gallagher  <sgallagh@redhat.com>
9108             Carlos O'Donell  <carlos@redhat.com>
9109
9110         [BZ #19072]
9111         * grp/Makefile (headers): Add grp-merge.h
9112         (routines): Add grp-merge.
9113         * grp/getgrgid_r.c: Include grp-merge.h.
9114         (DEEPCOPY_FN): Define.
9115         (MERGE_FN): Define.
9116         * grp/getgrname_r.c: Include grp-merge.h.
9117         (DEEPCOPY_FN): Define.
9118         (MERGE_FN): Define.
9119         * grp/grp-merge.c: New file.
9120         * grp/grp-merge.h: New file.
9121         * include/grp-merge.h: New file.
9122         * grp/Versions: Define __merge_grp@GLIBC_PRIVATE, and
9123         __copy_grp@GLIBC_PRIVATE.
9124         * manual/nss.texi (Actions in the NSS configuration): Describe
9125         return, continue, and merge.
9126         * nscd/getgrgid_r.c: Include grp/grp-merge.h.
9127         (DEEPCOPY_FN): Define.
9128         (MERGE_FN): Define.
9129         * nscd/getgrnam_r.c: Include grp/grp-merge.h.
9130         (DEEPCOPY_FN): Define.
9131         (MERGE_FN): Define.
9132         * nss/getXXbyYY_r.c [!DEEPCOPY_FN]: Define __copy_einval.
9133         [!MERGE_FN]: Define __merge_einval.
9134         (CHECK_MERGE): Define.
9135         (REENTRANT_NAME): Process merge if do_merge is true.
9136         * nss/getnssent_r.c (__nss_setent): Process NSS_ACTION_MERGE.
9137         (__nss_getent_r): Likewise.
9138         * nss/nsswitch.c (nss_parse_service_list): Likewise.
9139         * nss/nsswitch.h (lookup_actions): Define NSS_ACTION_MERGE.
9140
9141 2016-04-29  Adhemerval Zanella  <adhemerval.zanella@linaro.org>
9142
9143         [BZ #20012]
9144         * libio/fmemopen.c (fmemopen_read): Use buffer maximum position, not
9145         length to calculate the buffer to read.
9146         (fmemopen_write): Set the buffer position based on bytes written.
9147         (fmemopen_seek): Return EINVAL for invalid whence modes.
9148
9149         [BZ #19957]
9150         * sysdeps/unix/sysv/linux/Makefile [$(subdir) == nptl] (test): Remove
9151         tst-getpid2.
9152         (test): Add tst-clone2.
9153         * sysdeps/unix/sysv/linux/tst-clone2.c: New file.
9154         * sysdeps/unix/sysv/linux/aarch64/clone.S (__clone): Do not change
9155         pid/tid fields for CLONE_VM.
9156         * sysdeps/unix/sysv/linux/alpha/clone.S (__clone): Likewise.
9157         * sysdeps/unix/sysv/linux/arm/clone.S (__clone): Likewise.
9158         * sysdeps/unix/sysv/linux/hppa/clone.S (__clone): Likewise.
9159         * sysdeps/unix/sysv/linux/ia64/clone2.S (__clone): Likewise,
9160         * sysdeps/unix/sysv/linux/i386/clone.S (__clone): Likewise.
9161         * sysdeps/unix/sysv/linux/mips/clone.S (__clone): Likewise.
9162         * sysdeps/unix/sysv/linux/m68k/clone.S (__clone): Likewise.
9163         * sysdeps/unix/sysv/linux/nios2/clone.S (__clone): Likewise.
9164         * sysdeps/unix/sysv/linux/powerpc/powerpc32/clone.S (__clone):
9165         Likewise.
9166         * sysdeps/unix/sysv/linux/powerpc/powerpc64/clone.S (__clone):
9167         Likewise.
9168         * sysdeps/unix/sysv/linux/s390/s390-32/clone.S (__clone): Likewise.
9169         * sysdeps/unix/sysv/linux/s390/s390-64/clone.S (__clone): Likewise.
9170         * sysdeps/unix/sysv/linux/sh/clone.S (__clone): Likewise.
9171         * sysdeps/unix/sysv/linux/sparc/sparc32/clone.S (__clone): Likewise.
9172         * sysdeps/unix/sysv/linux/sparc/sparc64/clone.S (__clone): Likewise.
9173         * sysdeps/unix/sysv/linux/tile/clone.S (__clone): Likewise.
9174         * sysdeps/unix/sysv/linux/x86_64/clone.S (__clone): Likewise.
9175         * sysdeps/unix/sysv/linux/tst-getpid2.c: Remove file.
9176
9177 2016-04-29  Florian Weimer  <fweimer@redhat.com>
9178
9179         [BZ #19642]
9180         * inet/getnameinfo.c (gni_host_inet_name, gni_host_inet_numeric)
9181         (gni_host_inet, gni_host_local, gni_host, gni_serv_inet)
9182         (gni_serv_local, gni_serv): New functions extracted from
9183         getnameinfo.
9184         (getnameinfo): Call gni_host and gni_serv to perform the
9185         processing.  Always free scratch buffer.
9186
9187 2016-04-29  Gabriel F. T. Gomes  <gftg@linux.vnet.ibm.com>
9188
9189         * sysdeps/powerpc/powerpc64/power8/strncpy.S: Call memset to pad the
9190         remaining bytes in the dest string, with zeros.
9191
9192 2016-04-29  Florian Weimer  <fweimer@redhat.com>
9193
9194         [BZ #20010]
9195         CVE-2016-3706
9196         * sysdeps/posix/getaddrinfo.c
9197         (convert_hostent_to_gaih_addrtuple): New function.
9198         (gethosts): Call convert_hostent_to_gaih_addrtuple.
9199         (gaih_inet): Use convert_hostent_to_gaih_addrtuple to convert
9200         AF_INET data.
9201
9202 2016-04-29  Florian Weimer  <fweimer@redhat.com>
9203
9204         glob: Simplify and document the interface for the GLOB_ALTDIRFUNC
9205         callback function gl_readdir.
9206         * posix/glob.c (NAMELEN, CONVERT_D_NAMLEN): Remove.
9207         (CONVERT_DIRENT_DIRENT64): Use strcpy instead of memcpy.
9208         (glob_in_dir): Remove len.  Use strdup instead of malloc and
9209         memcpy to copy the name.
9210         * manual/pattern.texi (Calling Glob): Document requirements for
9211         implementations of the gl_readdir callback function.
9212         * manual/examples/mkdirent.c: New example.
9213         * posix/bug-glob2.c (my_readdir): Set d_ino to 1 unconditionally,
9214         per the manual guidance.
9215         * posix/tst-gnuglob.c (my_readdir): Likewise.
9216
9217 2016-04-28  Joseph Myers  <joseph@codesourcery.com>
9218
9219         [BZ #20014]
9220         * libio/stdio.h (getc_unlocked): Declare if [__USE_POSIX199506],
9221         not [__USE_POSIX].
9222         (getchar_unlocked): Likewise.
9223         (putc_unlocked): Likewise.
9224         (putchar_unlocked): Likewise.
9225         (flockfile): Likewise.
9226         (ftrylockfile): Likewise.
9227         (funlockfile): Likewise.
9228         * conform/Makefile (test-xfail-XPG3/stdio.h/conform): Remove
9229         variable.
9230         (test-xfail-XPG4/stdio.h/conform): Likewise.
9231
9232         * conform/data/langinfo.h-data [XPG3 || XPG4 || UNIX98] (YESSTR):
9233         Expect constant.
9234         [XPG3 || XPG4 || UNIX98] (NOSTR): Likewise.
9235         * conform/Makefile (test-xfail-XPG3/langinfo.h/conform): Remove
9236         variable.
9237         (test-xfail-XPG4/langinfo.h/conform): Likewise.
9238         (test-xfail-UNIX98/langinfo.h/conform): Likewise.
9239
9240         * libio/stdio.h (off_t): Also define if [__USE_UNIX98].
9241         [__USE_LARGEFILE64] (off64_t): Likewise.
9242         * conform/Makefile (test-xfail-UNIX98/stdio.h/conform): Remove
9243         variable.
9244
9245 2016-04-28  Florian Weimer  <fweimer@redhat.com>
9246
9247         * inet/getnameinfo.c (getnameinfo): Do not preserve errno.
9248
9249 2016-04-28  Florian Weimer  <fweimer@redhat.com>
9250
9251         * resolv/inet_addr.c: Reindent preprocessor conditionals.
9252         * resolv/res_init.c: Likewise.
9253         * resolv/res_mkquery.c: Likewise.
9254
9255 2016-04-28  Florian Weimer  <fweimer@redhat.com>
9256
9257         * resolv/res_init.c (isascii): Do not define.  Use definition in
9258         <ctype.h>.
9259         * resolv/gethnamaddr.c: Remove USE_OPTIONS_H conditional.
9260         (LOG_AUTH): Remove.
9261         (SPRINTF): Remove, adjust caller.
9262         (MULTI_PTRS_ARE_ALIASES): Remove, always defined.
9263
9264 2016-04-28  Florian Weimer  <fweimer@redhat.com>
9265
9266         * resolv/nss_dns/dns-host.c (_nss_dns_gethostbyaddr2_r): Remove
9267         SUNSECURITY conditional.
9268         * resolv/gethnamaddr.c (gethostbyaddr): Likewise.
9269
9270 2016-04-28  Florian Weimer  <fweimer@redhat.com>
9271
9272         * resolv/arpa/nameser.h: Include <sys/types.h> unconditionally.
9273         * resolv/gethnamaddr.c: Use include files from conf/portability.h.
9274         Remove BSD-related preprocessor conditionals.
9275         * conf/portability.h: Remove.
9276
9277 2016-04-28  Florian Weimer  <fweimer@redhat.com>
9278
9279         * resolv/resolv.h: Remove __BIND_NOSTATIC conditional.
9280         * resolv/res_data.c: Likewise.
9281
9282 2016-04-28  Florian Weimer  <fweimer@redhat.com>
9283
9284         * resolv/res_comp.c: Remove code conditional on __ultrix__.
9285         * resolv/res_data.c: Remove code conditional on ultrix.
9286
9287 2016-04-28  Florian Weimer  <fweimer@redhat.com>
9288
9289         * resolv/res_init.c (RFC1535): Do not define.  Remove
9290         RFC1535 preprocessor conditionals.
9291         * resolv/README: Update.  Do not claim strict RFC 1535 compliance
9292         because there configuration options which make the resolver
9293         behavior different.
9294
9295 2016-04-28  Florian Weimer  <fweimer@redhat.com>
9296
9297         * resolv/gethnamaddr.c (RESOLVSORT): Do not define.  Remove
9298         RESOLVSORT preprocessor conditionals.
9299         * resolv/nss_dns/dns-host.c: Likewise.
9300         * resolv/res_init.c: Likewise.
9301
9302 2016-04-28  Florian Weimer  <fweimer@redhat.com>
9303
9304         * resolv/res_data.c: Remove code conditional on BIND_UPDATE.  It
9305         is never defined.
9306
9307 2016-04-28  Florian Weimer  <fweimer@redhat.com>
9308
9309         * inet/inet_lnaof.c: Remove SCSS keyword.
9310         * inet/inet_mkadr.c: Likewise.
9311         * inet/inet_net.c: Likewise.
9312         * inet/inet_netof.c: Likewise.
9313         * inet/rcmd.c: Likewise.
9314         * inet/rexec.c: Likewise.
9315         * inet/ruserpass.c: Likewise.
9316
9317 2016-04-28  Florian Weimer  <fweimer@redhat.com>
9318
9319         * resolv/inet_addr.c: Remove _LIBC conditionals.
9320         * resolv/res_data.c: Likewise.
9321         * resolv/res_init.c: Likewise.
9322         * resolv/res_mkquery.c: Likewise.
9323         * resolv/res_libc.c: Update comment.
9324         * resolv/README: Update.
9325
9326 2016-04-28  Florian Weimer  <fweimer@redhat.com>
9327
9328         * resolv/gethnamaddr.c: Remove SCSS keyword.
9329         * resolv/herror.c: Likewise.
9330         * resolv/inet_addr.c: Likewise.
9331         * resolv/inet_net_ntop.c: Likewise.
9332         * resolv/inet_net_pton.c: Likewise.
9333         * resolv/inet_neta.c: Likewise.
9334         * resolv/inet_ntop.c: Likewise.
9335         * resolv/inet_pton.c: Likewise.
9336         * resolv/ns_date.c: Remove RCS keyword.
9337         * resolv/ns_name.c: Likewise.
9338         * resolv/ns_netint.c: Likewise.
9339         * resolv/ns_parse.c: Likewise.
9340         * resolv/ns_print.c: Likewise.
9341         * resolv/ns_samedomain.c: Likewise.
9342         * resolv/ns_ttl.c: Likewise.
9343         * resolv/nsap_addr.c: Likewise.
9344         * resolv/res_comp.c: Remove SCSS and RCS keyword.
9345         * resolv/res_data.c: Remove RCS keyword.
9346         * resolv/res_debug.c: Remove SCSS and RCS keyword.
9347         * resolv/res_init.c: Likewise.
9348         * resolv/res_mkquery.c: Likewise.
9349         * resolv/res_query.c: Likewise.
9350         * resolv/res_send.c: Likewise.
9351
9352 2016-04-27  Joseph Myers  <joseph@codesourcery.com>
9353
9354         * conform/data/stdio.h-data (fdopen): Expect also for
9355         [XPG3 || XPG4].
9356
9357         * conform/data/stdio.h-data (flockfile): Also expect for [UNIX98].
9358         (fseeko): Likewise.
9359         (ftello): Likewise.
9360         (ftrylockfile): Likewise.
9361         (funlockfile): Likewise.
9362         (getc_unlocked): Likewise.
9363         (getchar_unlocked): Likewise.
9364         (putc_unlocked): Likewise.
9365         (putchar_unlocked): Likewise.
9366
9367 2016-04-27  Florian Weimer  <fweimer@redhat.com>
9368
9369         [BZ #19868]
9370         * resolv/nss_dns/dns-network.c (getanswer_r): Implement additional
9371         DNS packet syntax checks (which were not needed before).  Skip
9372         over non-PTR records.
9373
9374 2016-04-27  Florian Weimer  <fweimer@redhat.com>
9375
9376         * resolv/nss_dns/dns-network.c (offsetof): Remove macro
9377         definition.  Include <stddef.h> instead.
9378
9379 2016-04-27  Florian Weimer  <fweimer@redhat.com>
9380
9381         [BZ #19831]
9382         * resolv/nss_dns/dns-host.c (rrtype_to_rdata_length): New
9383         function.
9384         (getanswer_r): Check RDATA length against RRTYPE and QTYPE.
9385         (gaih_getanswer_slice): Check RDATA length against RRTYPE.
9386
9387 2016-04-27  Florian Weimer  <fweimer@redhat.com>
9388
9389         [BZ #19862]
9390         * resolv/nss_dns/dns-host.c (AskedForGot): Remove.
9391         (getanswer_r): Do not call syslog.
9392         (gaih_getanswer_slice): Likewise.
9393         * resolv/gethnamaddr.c (AskedForGot): Remove.
9394         (getanswer): Do not call syslog.
9395         (gethostbyaddr): Likewise.
9396
9397 2016-04-27  Joseph Myers  <joseph@codesourcery.com>
9398
9399         * conform/data/signal.h-data (union sigval): Expect also if
9400         [XOPEN2K].
9401         (struct sigevent): Likewise.
9402         (SIGEV_NONE): Likewise.
9403         (SIGEV_SIGNAL): Likewise.
9404         (SIGEV_THREAD): Likewise.
9405         (SIGRTMIN): Likewise.
9406         (SIGRTMAX): Likewise.
9407         * conform/Makefile (test-xfail-XOPEN2K/aio.h/conform): Remove
9408         variable.
9409         (test-xfail-XOPEN2K/mqueue.h/conform): Likewise.
9410
9411 2016-04-27  Florian Weimer  <fweimer@redhat.com>
9412
9413         [BZ #19830]
9414         * resolv/nss_dns/dns-host.c (getanswer_r): Check RDATA length.
9415         (gaih_getanswer_slice): Likewise.
9416         * resolv/nss_dns/dns-canon.c (_nss_dns_getcanonname_r): Likewise.
9417         Also check for availability of RR metadata.
9418
9419 2016-04-27  Florian Weimer  <fweimer@redhat.com>
9420
9421         [BZ #19825]
9422         * resolv/res_send.c (send_vc): Remove early *resplen2
9423         initialization.  Set *resplen2 on socket error.  Call
9424         close_and_return_error for other errors.
9425
9426 2016-04-27  Stefan Liebler  <stli@linux.vnet.ibm.com>
9427
9428         * sysdeps/unix/sysv/linux/netiucv/iucv.h
9429         (SOL_IUCV, SO_IPRMDATA_MSG, SO_MSGLIMIT, SO_MSGSIZE)
9430         (SCM_IUCV_TRGCLS): New define.
9431
9432 2016-04-26  Adhemerval Zanella  <adhemerval.zanella@linaro.org>
9433
9434         [BZ #20005]
9435         * libio/fmemopen.c (fmemopen_write): Update internal position after
9436         write.
9437         * stdio-common/Makefile (tests): Add tst-fmemopen4.c.
9438         * stdio-common/tst-fmemopen4.c: New file..
9439
9440 2016-04-26  Joseph Myers  <joseph@codesourcery.com>
9441
9442         [BZ #19996]
9443         * locale/langinfo.h (nl_langinfo_l): Declare if [__USE_XOPEN2K8],
9444         not [__USE_XOPEN2K].
9445         * conform/Makefile (test-xfail-XOPEN2K/langinfo.h/conform): Remove
9446         variable.
9447
9448         * conform/data/stdarg.h-data [XOPEN2K] (va_copy): Require macro.
9449         * conform/Makefile (test-xfail-XOPEN2K/stdarg.h/conform): Remove
9450         variable.
9451
9452         * libio/stdio.h (off_t): Define if [__USE_XOPEN2K], not
9453         [__USE_XOPEN2K8].
9454         [__USE_LARGEFILE64] (off64_t): Likewise.
9455         * conform/Makefile (test-xfail-XOPEN2K/stdio.h/conform): Remove
9456         variable.
9457
9458 2016-04-25  Joseph Myers  <joseph@codesourcery.com>
9459
9460         [BZ #19989]
9461         * libio/stdio.h (cuserid): Do not declare if
9462         [__USE_XOPEN2K && !__USE_GNU].
9463         * conform/Makefile (test-xfail-XOPEN2K8/stdio.h/conform): Remove
9464         variable.
9465
9466 2016-04-25  Paul E. Murphy  <murphyp@linux.vnet.ibm.com>
9467
9468         * sysdeps/powerpc/powerpc64/multiarch/Makefile:
9469         (sysdep_routines): Add P8 and PPC64 strcspn targets.
9470         * sysdeps/powerpc/powerpc64/multiarch/ifunc-impl-list.c:
9471         (__libc_ifunc_impl_list): Add entries for P8 and PPC64
9472         ifunc'ed strcspn.
9473         * sysdeps/powerpc/powerpc64/multiarch/strspn-power8.S:
9474         [EALIGN]: Removed.
9475         [END]: Likewise
9476         [STRSPN]: Define instead of the above to control symbol name.
9477         * sysdeps/powerpc/powerpc64/multiarch/strcspn-power8.S:
9478         New file.
9479         * sysdeps/powerpc/powerpc64/multiarch/strcspn-ppc64.c:
9480         Likewise.
9481         * sysdeps/powerpc/powerpc64/multiarch/strcspn.c:
9482         Likewise.
9483         * sysdeps/powerpc/powerpc64/power8/strcspn.S:
9484         Likewise.
9485         * sysdeps/powerpc/powerpc64/power8/strspn.S:
9486         [INITIAL_MASK]: New macro.
9487         [STRCSPN]: Likewise.
9488         [UPDATE_MASK]: Likewise.
9489         [USE_AS_STRCSPN]: Lisewise.
9490
9491 2016-04-25  Florian Weimer  <fweimer@redhat.com>
9492
9493         [BZ #19931]
9494         * stdio-common/tst-vfprintf-width-prec.c: New file.
9495         * stdio-common/Makefile (tests): Add tst-vfprintf-width-prec.
9496         (tests-special): Add tst-vfprintf-width-prec-mem.out.
9497         (generated): Add mtrace-related files.
9498         (tst-vfprintf-width-prec-ENV): Set MALLOC_TRACE.
9499         (tst-%-mem.out): New pattern rule, replaces
9500         tst-printf-bz18872-mem.out.
9501         * stdio-common/vfprintf.c (vfprintf): When handling a precision
9502         specifier, deallocate any previously allocated work buffer.
9503
9504 2016-04-25  Chung-Lin Tang  <cltang@codesourcery.com>
9505
9506         * sysdeps/unix/sysv/linux/nios2/setcontext.S (__startcontext):
9507         Add nop before __startcontext, add explaining comments.
9508
9509 2016-04-25  Samuel thibault  <samuel.thibault@ens-lyon.org>
9510
9511         RFC2292 macros were obsoleted by RFC3542, and should not be exposed
9512         any more. Notably since IPV6_PKTINFO has been reintroduced with a
9513         completely different API.
9514
9515         * bits/in.h (IPV6_PKTINFO): Rename to IPV6_2292PKTINFO.
9516         (IPV6_HOPOPTS): Rename to IPV6_2292HOPOPTS.
9517         (IPV6_DSTOPTS): Rename to IPV6_2292DSTOPTS.
9518         (IPV6_RTHDR): Rename to IPV6_2292RTHDR.
9519         (IPV6_PKTOPTIONS): Rename to IPV6_2292PKTOPTIONS.
9520         (IPV6_HOPLIMIT): Rename to IPV6_2292HOPLIMIT.
9521         (IPV6_RECVPKTINFO, IPV6_PKTINFO, IPV6_RECVHOPLIMIT, IPV6_HOPLIMIT,
9522         IPV6_RECVHOPOPTS, IPV6_HOPOPTS, IPV6_RTHDRDSTOPTS, IPV6_RECVRTHDR,
9523         IPV6_RTHDR, IPV6_RECVDSTOPTS, IPV6_DSTOPTS, IPV6_RECVPATHMTU,
9524         IPV6_PATHMTU, IPV6_DONTFRAG): New macros.
9525
9526 2016-04-23  H.J. Lu  <hongjiu.lu@intel.com>
9527
9528         * elf/dl-minimal.c (__libc_memalign): Mmap one extra page.
9529
9530 2016-04-23  Mike Frysinger  <vapier@gentoo.org>
9531
9532         * locale/programs/ld-time.c (time_finish): Set week_1stweek to 7
9533         when it is the default of 0.
9534
9535 2016-04-22  Rajalakshmi Srinivasaraghavan  <raji@linux.vnet.ibm.com>
9536
9537         * sysdeps/powerpc/locale-defines.sym:  Add new macros.
9538         * sysdeps/powerpc/powerpc64/multiarch/Makefile:
9539         (sysdep_routines): Add new strcasestr targets.
9540         * sysdeps/powerpc/powerpc64/multiarch/ifunc-impl-list.c:
9541         (__libc_ifunc_impl_list): Likewise.
9542         * sysdeps/powerpc/powerpc64/multiarch/strcasestr-power8.S: New file.
9543         * sysdeps/powerpc/powerpc64/multiarch/strcasestr-ppc64.c: New file.
9544         * sysdeps/powerpc/powerpc64/multiarch/strcasestr.c: New file.
9545         * sysdeps/powerpc/powerpc64/power8/Makefile:
9546         New file to add strcasestr-ppc64 to sysdep_routines.
9547         * sysdeps/powerpc/powerpc64/power8/strcasestr-ppc64.c: New file.
9548         * sysdeps/powerpc/powerpc64/power8/strcasestr.S: New file.
9549
9550 2016-04-20  Siddhesh Poyarekar  <sid@reserved-bit.com>
9551
9552         * benchtests/Makefile (wcsmbs-benchset): Include only for
9553         native builds and runs.
9554         (LOCALES): Likewise.
9555         (bench-build): Build timing-type here instead of the bench
9556         target.  Generate locale only for native builds.
9557         * benchtests/README: Add note for cross-building.
9558
9559         * benchtests/Makefile (bench-clean): Clean up extra-objs.
9560
9561         * benchtests/README: Update README to include instructions on
9562         using bench-build.
9563
9564         * Makefile.in (bench-build): New target.
9565         * Rules (PHONY): Add bench-build target.
9566         * benchtests/Makefile (bench): Depend on bench-build.
9567         (bench-build): New target.
9568
9569 2016-04-19  Samuel Thibault  <samuel.thibault@ens-lyon.org>
9570
9571         * sysdeps/mach/hurd/profil.c (update_waiter): Initialize
9572         profil_reply_port.
9573         (profile_waiter): Do not initialize profil_reply_port.
9574         * sysdeps/mach/hurd/profil.c (__profile_frequency): Return tick
9575         frequency instead of tick length in us.
9576
9577 2016-04-18  Wilco Dijkstra  <wdijkstr@arm.com>
9578
9579         [BZ #18712]
9580         * string/string-inlines.c (__STRING2_COPY_TYPE): Add, moved from string2.h.
9581         (__old_mempcpy_small): Likewise.
9582         (__old_strcpy_small): Likewise.
9583         (__old_stpcpy_small): Likewise.
9584         (__old_strpbrk_c2): Fix compat symbol name.
9585         (__old_strpbrk_c3): Likewise.
9586         * string/bits/string2.h (__STRING2_COPY_TYPE): Remove.
9587         (__mempcpy_small): Remove.
9588         (__strcpy_small): Remove.
9589         (__stpcpy_small): Remove.
9590
9591 2016-04-16  Robin van der Vliet <info@robinvandervliet.com>
9592
9593         [BZ #19400]
9594         * locale/iso-639.def: Add the Talossan/tzl language.
9595
9596 2016-04-16  Mike Frysinger  <vapier@gentoo.org>
9597
9598         [BZ #16983]
9599         * locale/programs/ld-address.c (address_finish): Update postal_fmt
9600         comment.  Add "ln" to strchr check on postal_fmt.
9601
9602 2016-04-16  Mike Frysinger  <vapier@gentoo.org>
9603
9604         * locale/programs/ld-telephone.c (telephone_finish): Add %t to the
9605         default tel_int_fmt.  Add "Cet" to strchr check on tel_int_fmt and
9606         tel_dom_fmt.
9607
9608 2016-04-15  Carlos Eduardo Seo  <cseo@linux.vnet.ibm.com>
9609
9610         * sysdeps/powerpc/powerpc64/multiarch/Makefile:
9611         (sysdep_routines): Added __strlen_power8.
9612         * sysdeps/powerpc/powerpc64/multiarch/ifunc-impl-list.c: Added
9613         __strlen_power8 entry.
9614         * sysdeps/powerpc/powerpc64/multiarch/strlen-power8.S: New file.
9615         Implementation for POWER8.
9616         * sysdeps/powerpc/powerpc64/multiarch/strlen.c: Added IFUNC selector
9617         for __strlen_power8.
9618         * sysdeps/powerpc/powerpc64/power8/strlen.S: New file.
9619         Implementation for POWER8.
9620
9621 2016-04-15  Mike Frysinger  <vapier@gentoo.org>
9622
9623         * locale/iso-4217.def: Add SSP and change ZMK to ZMW.
9624
9625 2016-04-15   H.J. Lu  <hongjiu.lu@intel.com>
9626
9627         * sysdeps/x86/cpu-features.c (init_cpu_features): Detect Intel
9628         Goldmont and Airmont processors.
9629
9630 2016-04-15  Wilco Dijkstra  <wdijkstr@arm.com>
9631
9632         * string/string.h: Use __GNUC_PREREQ(3,4) for bits/string2.h.
9633         * string/bits/string2.h (__STRING2_SMALL_GET16): Remove.
9634         (__STRING2_SMALL_GET32): Remove.
9635         (memset): Remove.
9636         (__memset_1): Remove.
9637         (__memset_gc): Remove.
9638         (__mempcpy): Remove.
9639         (mempcpy): Remove.
9640         (__mempcpy_args): Remove.
9641         (strchr): Remove.
9642         (strcpy): Remove.
9643         (strcpy_args): Remove.
9644         (__stpcpy_args): Remove.
9645         (__strcmp_cc): Remove.
9646         (__strcmp_gc): Remove.
9647         (strstr): Remove.
9648
9649 2016-04-15  Yvan Roux  <yvan.roux@linaro.org>
9650
9651         * stdlib/setenv.c (unsetenv): Fix ambiguous 'else'.
9652         * nis/nis_call.c (nis_server_cache_add): Likewise.
9653
9654 2016-04-14  Adhemerval Zanella  <adhemerval.zanella@linaro.org>
9655
9656         * sysdeps/unix/sysv/linux/sysdep.h: Include kernel-features.h.
9657
9658 2016-04-14  Florian Weimer  <fweimer@redhat.com>
9659
9660         * malloc/arena.c (__malloc_fork_lock_parent)
9661         (__malloc_fork_unlock_parent, __malloc_fork_unlock_child): Add
9662         internal_function attribute.
9663
9664 2016-04-14  Stefan Liebler  <stli@linux.vnet.ibm.com>
9665
9666         * stdio-common/printf_fp.c (__printf_fp_l):
9667         Rename ___printf_fp_l to __printf_fp_l and
9668         remove strong alias. Use libc_hidden_def instead
9669         of ldbl_hidden_def macro.
9670
9671 2016-04-14  Florian Weimer  <fweimer@redhat.com>
9672
9673         Remove malloc hooks from fork handler.  They are no longer needed
9674         because malloc runs right before fork, and no malloc calls from
9675         other fork handlers are not possible anymore.
9676         * malloc/malloc.c (malloc_atfork, free_atfork): Remove
9677         declarations.
9678         * malloc/arena.c (save_malloc_hook, save_free_hook, save_arena)
9679         (ATFORK_ARENA_PTR, malloc_atfork, free_atfork)
9680         (atfork_recursive_cntr): Remove.
9681         (__malloc_fork_lock_parent): Do not override malloc hooks and
9682         thread_arena.
9683         (__malloc_fork_unlock_parent): Do not restore malloc hooks and
9684         thread_arena.
9685         (__malloc_fork_unlock_child): Do not restore malloc hooks.  Use
9686         thread_arena instead of save_arena.
9687
9688 2016-04-14  Florian Weimer  <fweimer@redhat.com>
9689
9690         * sysdeps/nptl/malloc-machine.h (ATFORK_MEM, __dso_handle)
9691         (thread_atfork, thread_atfork_static): Remove.
9692         * sysdeps/mach/hurd/malloc-machine.h:
9693         (thread_atfork, thread_atfork_static): Remove.
9694
9695 2016-04-14  Florian Weimer  <fweimer@redhat.com>
9696
9697         [BZ #19431]
9698         Run the malloc fork handler as late as possible to avoid deadlocks.
9699         * malloc/malloc-internal.h: New file.
9700         * malloc/malloc.c: Include it.
9701         * malloc/arena.c (ATFORK_MEM): Remove.
9702         (__malloc_fork_lock_parent): Rename from ptmalloc_lock_all.
9703         Update comment.
9704         (__malloc_fork_unlock_parent): Rename from ptmalloc_unlock_all.
9705         (__malloc_fork_unlock_child): Rename from ptmalloc_unlock_all2.
9706         Remove outdated comment.
9707         (ptmalloc_init): Do not call thread_atfork.  Remove
9708         thread_atfork_static.
9709         * malloc/tst-malloc-fork-deadlock.c: New file.
9710         * Makefile (tests): Add tst-malloc-fork-deadlock.
9711         (tst-malloc-fork-deadlock): Link against libpthread.
9712         * manual/memory.texi (Aligned Memory Blocks): Update safety
9713         annotation comments.
9714         * sysdeps/nptl/fork.c (__libc_fork): Call
9715         __malloc_fork_lock_parent, __malloc_fork_unlock_parent,
9716         __malloc_fork_unlock_child.
9717         * sysdeps/mach/hurd/fork.c (__fork): Likewise.
9718
9719 2016-04-14  Florian Weimer  <fweimer@redhat.com>
9720
9721         [BZ #19613]
9722         Remove union wait.
9723         * bits/waitstatus.h (union wait, w_termsig, w_coredump, w_retcode)
9724         (w_stopsig, w_stopval): Remove.
9725         * include/sys/wait.h (__wait, __wait3, __wait4): Use int * for the
9726         stat_loc argument.
9727         * posix/sys/wait.h (__WAIT_INT, __WAIT_STATUS)
9728         (__WAIT_STATUS_DEFN): Remove.
9729         (WEXITSTATUS, WTERMSIG, WSTOPSIG, WIFEXITED, WIFSIGNALED)
9730         (WIFSTOPPED, WIFCONTINUED, WCOREDUMP): Remove __WAIT_INT.
9731         (wait, wait3, wait4): Use int * for the stat_loc argument.
9732         * posix/wait.c (__wait): Likewise.
9733         * posix/wait3.c (__wait3): Likewise.
9734         * posix/wait4.c (__wait4): Likewise.
9735         * stdlib/stdlib.h (__WAIT_INT, __WAIT_STATUS)
9736         (__WAIT_STATUS_DEFN): Remove.
9737         (WEXITSTATUS, WTERMSIG, WSTOPSIG, WIFEXITED, WIFSIGNALED)
9738         (WIFSTOPPED, WIFCONTINUED): Remove __WAIT_INT.
9739         * sysdeps/mach/hurd/wait4.c (__wait4): Use int * for the stat_loc
9740         argument.
9741         * sysdeps/posix/wait.c (__libc_wait): Likewise.
9742         * sysdeps/posix/wait3.c (__wait3): Likewise.
9743         * sysdeps/unix/bsd/wait.c (__libc_wait): Likewise.
9744         * sysdeps/unix/bsd/wait3.c (__wait3): Likewise.
9745         * sysdeps/unix/bsd/waitpid.c (__waitpid): Remove cast.
9746         * sysdeps/unix/sysv/linux/wait.c (__libc_wait): Use int * for the
9747         stat_loc argument.
9748         * manual/process.texi (BSD Wait Functions): Remove union wait.
9749
9750 2016-04-13  Andreas Schwab  <schwab@suse.de>
9751
9752         * elf/Makefile (extra-test-objs): Add tst-tlsalign-vars.o.
9753         (test-extras): Add tst-tlsalign-vars.
9754         * math/Makefile: Wrap long lines.
9755         (libm-vec-test-wrappers): Define.
9756         (test-extras): Add $(libm-vec-test-wrappers).
9757         (extra-test-objs): Add $(libm-vec-test-wrappers) objects.
9758         * nss/Makefile (extra-test-objs): Add nss_test1.os.
9759         * stdlib/Makefile (extra-test-objs): Add $(modules-names) objects.
9760         * sysdeps/x86_64/Makefile (test-extras): Add tst-quadmod1pie
9761         tst-quadmod2pie tst-audit4-aux tst-audit10-aux.
9762         (extra-test-objs): Add corresponding objects.
9763
9764 2016-04-12   H.J. Lu  <hongjiu.lu@intel.com>
9765
9766         [BZ #19928]
9767         * sysdeps/x86_64/cacheinfo.c (__x86_shared_non_temporal_threshold):
9768         New.
9769         (init_cacheinfo): Set __x86_shared_non_temporal_threshold to 6
9770         times of shared cache size.
9771         * sysdeps/x86_64/multiarch/memmove-avx-unaligned-erms.S
9772         (VMOVNT): New.
9773         * sysdeps/x86_64/multiarch/memmove-avx512-unaligned-erms.S
9774         (VMOVNT): Likewise.
9775         * sysdeps/x86_64/multiarch/memmove-sse2-unaligned-erms.S
9776         (VMOVNT): Likewise.
9777         (VMOVU): Changed to movups for smaller code sizes.
9778         (VMOVA): Changed to movaps for smaller code sizes.
9779         * sysdeps/x86_64/multiarch/memmove-vec-unaligned-erms.S: Update
9780         comments.
9781         (PREFETCH): New.
9782         (PREFETCH_SIZE): Likewise.
9783         (PREFETCHED_LOAD_SIZE): Likewise.
9784         (PREFETCH_ONE_SET): Likewise.
9785         Rewrite to use forward and backward loops, which move 4 vector
9786         registers at a time, to support overlapping addresses and use
9787         non temporal store if size is above the threshold and there is
9788         no overlap between destination and source.
9789
9790 2016-04-12  Alex Smith  <alex.smith@imgtec.com>
9791
9792         * sysdeps/unix/sysv/linux/mips/Makefile (sysdep_routines):
9793         Include dl-vdso.
9794         * sysdeps/unix/sysv/linux/mips/Versions: Add
9795         __vdso_clock_gettime.
9796         * sysdeps/unix/sysv/linux/mips/init-first.c: New file.
9797         * sysdeps/unix/sysv/linux/mips/libc-vdso.h: New file.
9798         * sysdeps/unix/sysv/linux/mips/mips32/sysdep.h:
9799         (INTERNAL_VSYSCALL_CALL): Define to be compatible with MIPS
9800         definitions of INTERNAL_SYSCALL_{ERROR_P,ERRNO}.
9801         (HAVE_CLOCK_GETTIME_VSYSCALL): Define.
9802         (HAVE_GETTIMEOFDAY_VSYSCALL): Define.
9803         * sysdeps/unix/sysv/linux/mips/mips64/n32/sysdep.h: Likewise.
9804         * sysdeps/unix/sysv/linux/mips/mips64/n64/sysdep.h: Likewise.
9805
9806 2016-04-11  Adhemerval Zanella  <adhemerval.zanella@linaro.org>
9807
9808         * sysdeps/unix/sysv/linux/arm/pwrite.c: Remove file.
9809         * sysdeps/unix/sysv/linux/arm/pwrite64.c: Likewise.
9810         * sysdeps/unix/sysv/linux/generic/wordsize-32/pwrite.c: Likewise.
9811         * sysdeps/unix/sysv/linux/generic/wordsize-32/pwrite64.c: Likewise.
9812         * sysdeps/unix/sysv/linux/mips/pwrite.c: Likewise.
9813         * sysdeps/unix/sysv/linux/mips/pwrite64.c: Likewise.
9814         * sysdeps/unix/sysv/linux/powerpc/powerpc32/pwrite.c: Likewise.
9815         * sysdeps/unix/sysv/linux/powerpc/powerpc32/pwrite64.c: Likewise.
9816         * sysdeps/unix/sysv/linux/wordsize-64/pwrite64.c: Likewise.
9817         * sysdeps/unix/sysv/linux/wordsize-64/syscalls.list (prite): Remove
9818         syscalls generation.
9819         * sysdeps/unix/sysv/linux/powerpc/powerpc32/sysdep.h
9820         [__NR_pwrite64] (__NR_write): Remove define.
9821         * sysdeps/unix/sysv/linux/powerpc/powerpc64/sysdep.h
9822         [__NR_pwrite64] (__NR_write): Remove define.
9823         * sysdeps/unix/sysv/linux/pwrite.c [__NR_pwrite64] (__NR_pwrite):
9824         Remove define.
9825         (__libc_pwrite): Use SYSCALL_LL macro on offset argument.
9826         * sysdeps/unix/sysv/linux/pwrite64.c [__NR_pwrite64] (__NR_pwrite):
9827         Remove define.
9828         (__libc_pwrite64): Use SYSCALL_LL64 macro on offset argument.
9829         * sysdeps/unix/sysv/linux/sh/pwrite.c: Rewrite using default
9830         Linux implementation as base.
9831         * sysdeps/unix/sysv/linux/sh/pwrite64.c: Likewise.
9832
9833         * sysdeps/unix/sysv/linux/arm/pread.c: Remove file.
9834         * sysdeps/unix/sysv/linux/arm/pread64.c: Likewise.
9835         * sysdeps/unix/sysv/linux/generic/wordsize-32/pread.c: Likewise.
9836         * sysdeps/unix/sysv/linux/generic/wordsize-32/pread64.c: Likewise.
9837         * sysdeps/unix/sysv/linux/powerpc/powerpc32/pread.c: Likewise,
9838         * sysdeps/unix/sysv/linux/powerpc/powerpc32/pread64.c: Likewise.
9839         * sysdeps/unix/sysv/linux/wordsize-64/pread64.c: Likewise.
9840         * sysdeps/unix/sysv/linux/wordsize-64/syscalls.list (pread): Remove
9841         syscall generation.
9842         * sysdeps/unix/sysv/linux/powerpc/powerpc32/sysdep.h
9843         [__NR_pread64] (__NR_pread): Remove define.
9844         * sysdeps/unix/sysv/linux/powerpc/powerpc64/sysdep.h:
9845         [__NR_pread64] (__NR_pread): Likewise.
9846         * sysdeps/unix/sysv/linux/pread.c [__NR_pread64] (__NR_pread): Remove
9847         define.
9848         (__libc_pread): Use SYSCALL_LL macro on offset argument.
9849         * sysdeps/unix/sysv/linux/pread64.c [__NR_pread64] (__NR_pread):
9850         Remove define.
9851         (__libc_pread64): Use SYSCALL_LL64 macro on offset argument.
9852         * sysdeps/unix/sysv/linux/sh/pread.c: Rewrite using default
9853         Linux implementation as base.
9854         * sysdeps/unix/sysv/linux/sh/pread64.c: Likewise.
9855         * sysdeps/unix/sysv/linux/mips/pread.c: Likewise.
9856         * sysdeps/unix/sysv/linux/mips/pread64.c: Likewise.
9857
9858         * sysdeps/unix/sysv/linux/generic/sysdep.h (__ALIGNMENT_ARG): Move
9859         definition.
9860         (__ALIGNMENT_COUNT): Likewise.
9861         * sysdeps/unix/sysv/linux/sysdep.h (__ALIGNMENT_ARG): To here.
9862         (__ALIGNMENT_COUNT): Likewise.
9863         (SYSCALL_LL): New define.
9864         (SYSCALL_LL64): Likewise.
9865         * sysdeps/unix/sysv/linux/mips/kernel-features.h:
9866         [_MIPS_SIM == _ABIO32] (__ASSUME_WORDSIZE64_ILP32): Define.
9867         * sysdeps/unix/sysv/linux/x86_64/kernel-features.h:
9868         [ILP32] (__ASUME_WORDSIZE64_ILP32): Likewise.
9869
9870         * sysdeps/unix/sysv/linux/arm/kernel-features.h
9871         (__ASSUME_ALIGNED_REGISTER_PAIRS): Define.
9872         * sysdeps/unix/sysv/linux/mips/kernel-features.h
9873         [_MIPS_SIM == _ABIO32] (__ASSUME_ALIGNED_REGISTER_PAIRS): Likewise.
9874         * sysdeps/unix/sysv/linux/powerpc/kernel-features.h
9875         [!__powerpc64__] (__ASSUME_ALIGNED_REGISTER_PAIRS): Likewise.
9876
9877 2016-04-11  Florian Weimer  <fweimer@redhat.com>
9878
9879         [BZ #19865]
9880         * resolv/nss_dns/dns-canon.c (_nss_dns_getcanonname_r): Restore
9881         original buffer before retry.
9882
9883 2016-04-10  Samuel Thibault  <samuel.thibault@ens-lyon.org>
9884
9885         * sysdeps/generic/ldsodefs.h (struct rtld_global_ro)
9886         [!HAVE_AUX_VECTOR]: Do not define _dl_auxv field.
9887         * misc/getauxval.c (__getauxval) [!HAVE_AUX_VECTOR]: Do not go through
9888         GLRO(dl_auxv) list.
9889         * sysdeps/unix/sysv/linux/ldsodefs.h (HAVE_AUX_VECTOR): Define before
9890         including <ldsodefs.h>.
9891         * sysdeps/nacl/ldsodefs.h (HAVE_AUX_VECTOR): Likewise.
9892
9893 2016-04-09  Nick Alcock  <nick.alcock@oracle.com>
9894
9895         * elf/rtld-Rules (rtld-compile-command.c): Add $(rtld-CFLAGS).
9896         * scripts/sysd-rules.awk: Substitute in $(CFLAGS) as well as
9897         $(CPPFLAGS).
9898
9899 2016-04-09  Khem Raj  <raj.khem@gmail.com>
9900
9901         [BZ #17950]
9902         * sysdeps/i386/Makefile [$(subdir) == elf] (CFLAGS-.os):
9903         Add -mfpmath=387.
9904
9905 2016-04-09  Mike Frysinger  <vapier@gentoo.org>
9906
9907         * sysdeps/i386/configure.ac: Change == to = when calling test.
9908         * sysdeps/x86_64/configure.ac: Likewise.
9909         * sysdeps/i386/configure: Regenerated.
9910         * sysdeps/x86_64/configure: Likewise.
9911
9912 2016-04-08  Mike Frysinger  <vapier@gentoo.org>
9913
9914         [BZ #16137]
9915         * benchtests/Makefile (LOCALES): Change iw_IL to he_IL.
9916         * benchtests/bench-strcoll.c (input_files): Likewise.
9917         * benchtests/strcoll-inputs/filelist#en_US.UTF-8: Likewise.
9918         * benchtests/strcoll-inputs/lorem_ipsum#iw_IL.UTF-8: Rename to ...
9919         * benchtests/strcoll-inputs/lorem_ipsum#he_IL.UTF-8: ... here.
9920
9921 2016-04-08  Joseph Myers  <joseph@codesourcery.com>
9922
9923         [BZ #19929]
9924         * include/bits/xopen_lim.h (NL_NMAX): Do not define if
9925         [__USE_XOPEN2K8 && !__USE_GNU].
9926         * conform/Makefile (test-xfail-XOPEN2K8/limits.h/conform): Remove
9927         variable.
9928
9929         [BZ #19925]
9930         * sysdeps/unix/sysv/linux/alpha/bits/termios.h (XCASE): Do not
9931         define if [!__USE_MISC && __USE_XOPEN2K].
9932         * sysdeps/unix/sysv/linux/bits/termios.h (XCASE): Likewise.
9933         * sysdeps/unix/sysv/linux/mips/bits/termios.h (XCASE): Likewise.
9934         * sysdeps/unix/sysv/linux/powerpc/bits/termios.h (XCASE):
9935         Likewise.
9936         * sysdeps/unix/sysv/linux/sparc/bits/termios.h (XCASE): Likewise.
9937         * conform/Makefile (test-xfail-XOPEN2K/termios.h/conform): Remove
9938         variable.
9939         (test-xfail-XOPEN2K8/termios.h/conform): Likewise.
9940
9941 2016-04-07  Paul E. Murphy  <murphyp@linux.vnet.ibm.com>
9942
9943         * sysdeps/powerpc/powerpc64/multiarch/Makefile:
9944         (sysdep_routines): Add new strspn targets.
9945         * sysdeps/powerpc/powerpc64/multiarch/ifunc-impl-list.c:
9946         (__libc_ifunc_impl_list): Add strspn.
9947         * sysdeps/powerpc/powerpc64/multiarch/strspn-power8.S:
9948         New file.
9949         * sysdeps/powerpc/powerpc64/multiarch/strspn-ppc64.c:
9950         Likewise.
9951         * sysdeps/powerpc/powerpc64/multiarch/strspn.c:
9952         Likewise.
9953         * sysdeps/powerpc/powerpc64/power8/strspn.S:
9954         Likewise.
9955
9956 2016-04-07  Florian Weimer  <fweimer@redhat.com>
9957
9958         * misc/hsearch_r.c: Include <limits.h>.
9959
9960 2016-04-07  Florian Weimer  <fweimer@redhat.com>
9961
9962         * malloc/scratch_buffer_set_array_size.c: Include <limits.h>.
9963
9964 2016-04-06   H.J. Lu  <hongjiu.lu@intel.com>
9965
9966         * sysdeps/x86_64/multiarch/memmove-vec-unaligned-erms.S
9967         (MEMCPY_SYMBOL): New.
9968         (MEMPCPY_SYMBOL): Likewise.
9969         (MEMMOVE_CHK_SYMBOL): Likewise.
9970         Replace MEMMOVE_SYMBOL with MEMMOVE_CHK_SYMBOL on __mempcpy_chk
9971         symbols.  Replace MEMMOVE_SYMBOL with MEMPCPY_SYMBOL on
9972         __mempcpy symbols.  Provide alias for __memcpy_chk in libc.a.
9973         Provide alias for memcpy in libc.a and ld.so.
9974
9975 2016-04-06   H.J. Lu  <hongjiu.lu@intel.com>
9976
9977         * sysdeps/x86_64/multiarch/memset-vec-unaligned-erms.S
9978         (MEMSET_CHK_SYMBOL): New.  Define if not defined.
9979         (__bzero): Check VEC_SIZE == 16 instead of USE_MULTIARCH.
9980         Disabled fro now.
9981         Replace MEMSET_SYMBOL with MEMSET_CHK_SYMBOL on __memset_chk
9982         symbols.  Properly check USE_MULTIARCH on __memset symbols.
9983
9984 2016-04-06   H.J. Lu  <hongjiu.lu@intel.com>
9985
9986         * benchtests/Makefile (string-benchset): Add memcpy-large,
9987         memmove-large and memset-large.
9988         * benchtests/bench-memcpy-large.c: New file.
9989         * benchtests/bench-memmove-large.c: Likewise.
9990         * benchtests/bench-memmove-large.c: Likewise.
9991         * benchtests/bench-string.h (TIMEOUT): Don't redefine.
9992
9993 2016-04-05   H.J. Lu  <hongjiu.lu@intel.com>
9994
9995         * sysdeps/x86_64/multiarch/memset-vec-unaligned-erms.S: Force
9996         32-bit displacement to avoid long nop between instructions.
9997
9998 2016-04-05   H.J. Lu  <hongjiu.lu@intel.com>
9999
10000         * sysdeps/x86_64/multiarch/memset-sse2-unaligned-erms.S: Add
10001         a comment on VMOVU and VMOVA.
10002
10003 2016-04-04  Florian Weimer  <fweimer@redhat.com>
10004
10005         [BZ #19633]
10006         Use specified locale for number formatting in strfmon_l.
10007         * locale/localeinfo.h (__nl_lookup, _nl_lookup_wstr)
10008         (__nl_lookup_word): New inline functions.
10009         * include/printf.h (__print_fp_l): Declare.
10010         * stdio-common/printf_fp.c (___printf_fp_l): Renamed from
10011         ___printf_fp.  Add locale argument.  Replace _NL_CURRENT with
10012         _nl_lookup and _NL_CURRENT_WORD with _nl_lookup_word.
10013         (___printf_fp): New function.
10014         * stdlib/strfmon_l.c (__printf_fp): Remove declaration.
10015         (__vstrfmon_l): Call __printf_fp_l instead of printf_fp.
10016         * stdlib/tst-strfmon_l.c (do_test): New test.
10017         * stdlib/Makefile (tests): Add kt.
10018         (LOCALES): Build additional locales.
10019         (tst-strfmon_l.out): Require locales.
10020
10021 2016-04-03   H.J. Lu  <hongjiu.lu@intel.com>
10022
10023         * sysdeps/x86_64/multiarch/memmove-avx-unaligned-erms.S: Skip
10024         if not in libc.
10025         * sysdeps/x86_64/multiarch/memmove-avx512-unaligned-erms.S:
10026         Likewise.
10027         * sysdeps/x86_64/multiarch/memset-avx2-unaligned-erms.S:
10028         Likewise.
10029         * sysdeps/x86_64/multiarch/memset-avx512-unaligned-erms.S:
10030         Likewise.
10031
10032 2016-04-03   H.J. Lu  <hongjiu.lu@intel.com>
10033
10034         * sysdeps/x86_64/multiarch/memmove-vec-unaligned-erms.S:
10035         (__mempcpy_erms, __memmove_erms): Moved before __mempcpy_chk
10036         with unaligned_erms.
10037         (__memmove_erms): Skip if source == destination.
10038         (__memmove_unaligned_erms): Don't check source == destination
10039         first.
10040
10041 2016-04-01   H.J. Lu  <hongjiu.lu@intel.com>
10042
10043         * sysdeps/x86/cpu-features.c (init_cpu_features): Don't set
10044         bit_arch_Fast_Copy_Backward for Intel Core proessors.
10045
10046 2016-04-01  Adhemerval Zanella  <adhemerval.zanella@linaro.org>
10047
10048         * string/strcspn.c (strcspn): Use PTR_ALIGN_DOWN.
10049         * string/strspn.c (strspn): Likewise.
10050
10051 2016-04-01   H.J. Lu  <hongjiu.lu@intel.com>
10052
10053         * benchtests/bench-memset.c (do_test): Support 64-byte
10054         alignment.
10055         (test_main): Test 64-byte alignment.
10056
10057 2016-04-01   H.J. Lu  <hongjiu.lu@intel.com>
10058
10059         * benchtests/bench-memmove.c (test_main): Test 64-byte
10060         alignment.
10061
10062 2016-04-01   H.J. Lu  <hongjiu.lu@intel.com>
10063
10064         * benchtests/bench-memcpy.c (test_main): Test 64-byte alignment.
10065
10066 2016-04-01  Adhemerval Zanella  <adhemerval.zanella@linaro.org>
10067
10068         * sysdeps/powerpc/powerpc64/strcspn.S: Remove file.
10069         * sysdeps/powerpc/powerpc64/strpbrk.S: Remove file.
10070         * sysdeps/powerpc/powerpc64/strspn.S: Remove file.
10071
10072         * string/strpbrk.c (strpbrk): Rewrite function.
10073         * string/bits/string2.h (strpbrk): Use __builtin_strpbrk.
10074         (__strpbrk_c2): Likewise.
10075         (__strpbrk_c3): Likewise.
10076         * string/string-inlines.c
10077         [SHLIB_COMPAT(libc, GLIBC_2_1_1, GLIBC_2_24)] (__strpbrk_c2):
10078         Likewise.
10079         [SHLIB_COMPAT(libc, GLIBC_2_1_1, GLIBC_2_24)] (__strpbrk_c3):
10080         Likewise.
10081
10082         * string/strspn.c (strcspn): Rewrite function.
10083         * string/bits/string2.h (strspn): Use __builtin_strcspn.
10084         (__strspn_c1): Remove inline function.
10085         (__strspn_c2): Likewise.
10086         (__strspn_c3): Likewise.
10087         * string/string-inlines.c
10088         [SHLIB_COMPAT(libc, GLIBC_2_1_1, GLIBC_2_24)] (__strspn_c1): Add
10089         compatibility symbol.
10090         [SHLIB_COMPAT(libc, GLIBC_2_1_1, GLIBC_2_24)] (__strspn_c2):
10091         Likewise.
10092         [SHLIB_COMPAT(libc, GLIBC_2_1_1, GLIBC_2_24)] (__strspn_c3):
10093         Likewise.
10094         * string/string-inlines.c: Include generic version.
10095
10096 2016-04-01  Wilco Dijkstra  <wdijkstr@arm.com>
10097             Adhemerval Zanella  <adhemerval.zanella@linaro.org>
10098
10099         * string/Version (libc): Add GLIBC_2.24.
10100         * string/strcspn.c (strcspn): Rewrite function.
10101         * string/bits/string2.h (strcspn): Use __builtin_strcspn.
10102         (__strcspn_c1): Remove inline function.
10103         (__strcspn_c2): Likewise.
10104         (__strcspn_c3): Likewise.
10105         * string/string-inline.c
10106         [SHLIB_COMPAT(libc, GLIBC_2_1_1, GLIBC_2_24)] (__strcspn_c1): Add
10107         compatibility symbol.
10108         [SHLIB_COMPAT(libc, GLIBC_2_1_1, GLIBC_2_24)] (__strcspn_c2):
10109         Likewise.
10110         [SHLIB_COMPAT(libc, GLIBC_2_1_1, GLIBC_2_24)] (__strcspn_c3):
10111         Likewise.
10112         * sysdeps/i386/string-inlines.c: Include generic string-inlines.c.
10113
10114 2016-04-01  Stefan Liebler  <stli@linux.vnet.ibm.com>
10115
10116         * sysdeps/s390/s390-32/dl-trampoline.h (_dl_runtime_resolve):
10117         Use ahi instead of aghi to adjust stack pointer.
10118
10119 2016-03-31  Paul E. Murphy  <murphyp@linux.vnet.ibm.com>
10120
10121         [BZ #19853]
10122         * stdio-common/tst-sprintf3.c [TEST_N]: Refactor
10123         TEST to take significant digits as second parameter.
10124         [TEST]: Redefine in terms of TEST_N taking 30
10125         significant digits.
10126         (do_test): Add test case to demonstrate precision
10127         failure in the ldbl-128ibm printf.
10128         * sysdeps/ieee754/ldbl-128ibm/ldbl2pm.c:
10129         (__mpn_extract_long_double): Carry 7 extra intermediate
10130         bits of precision to aide computing difference when
10131         signs differ.
10132
10133 2016-03-31   H.J. Lu  <hongjiu.lu@intel.com>
10134
10135         [BZ #19881]
10136         * sysdeps/x86_64/multiarch/Makefile (sysdep_routines): Add
10137         memset-sse2-unaligned-erms, memset-avx2-unaligned-erms and
10138         memset-avx512-unaligned-erms.
10139         * sysdeps/x86_64/multiarch/ifunc-impl-list.c
10140         (__libc_ifunc_impl_list): Test __memset_chk_sse2_unaligned,
10141         __memset_chk_sse2_unaligned_erms, __memset_chk_avx2_unaligned,
10142         __memset_chk_avx2_unaligned_erms, __memset_chk_avx512_unaligned,
10143         __memset_chk_avx512_unaligned_erms, __memset_sse2_unaligned,
10144         __memset_sse2_unaligned_erms, __memset_erms,
10145         __memset_avx2_unaligned, __memset_avx2_unaligned_erms,
10146         __memset_avx512_unaligned_erms and __memset_avx512_unaligned.
10147         * sysdeps/x86_64/multiarch/memset-avx2-unaligned-erms.S: New
10148         file.
10149         * sysdeps/x86_64/multiarch/memset-avx512-unaligned-erms.S:
10150         Likewise.
10151         * sysdeps/x86_64/multiarch/memset-sse2-unaligned-erms.S:
10152         Likewise.
10153         * sysdeps/x86_64/multiarch/memset-vec-unaligned-erms.S:
10154         Likewise.
10155
10156 2016-03-31   H.J. Lu  <hongjiu.lu@intel.com>
10157
10158         [BZ #19776]
10159         * sysdeps/x86_64/multiarch/Makefile (sysdep_routines): Add
10160         memmove-sse2-unaligned-erms, memmove-avx-unaligned-erms and
10161         memmove-avx512-unaligned-erms.
10162         * sysdeps/x86_64/multiarch/ifunc-impl-list.c
10163         (__libc_ifunc_impl_list): Test
10164         __memmove_chk_avx512_unaligned_2,
10165         __memmove_chk_avx512_unaligned_erms,
10166         __memmove_chk_avx_unaligned_2, __memmove_chk_avx_unaligned_erms,
10167         __memmove_chk_sse2_unaligned_2,
10168         __memmove_chk_sse2_unaligned_erms, __memmove_avx_unaligned_2,
10169         __memmove_avx_unaligned_erms, __memmove_avx512_unaligned_2,
10170         __memmove_avx512_unaligned_erms, __memmove_erms,
10171         __memmove_sse2_unaligned_2, __memmove_sse2_unaligned_erms,
10172         __memcpy_chk_avx512_unaligned_2,
10173         __memcpy_chk_avx512_unaligned_erms,
10174         __memcpy_chk_avx_unaligned_2, __memcpy_chk_avx_unaligned_erms,
10175         __memcpy_chk_sse2_unaligned_2, __memcpy_chk_sse2_unaligned_erms,
10176         __memcpy_avx_unaligned_2, __memcpy_avx_unaligned_erms,
10177         __memcpy_avx512_unaligned_2, __memcpy_avx512_unaligned_erms,
10178         __memcpy_sse2_unaligned_2, __memcpy_sse2_unaligned_erms,
10179         __memcpy_erms, __mempcpy_chk_avx512_unaligned_2,
10180         __mempcpy_chk_avx512_unaligned_erms,
10181         __mempcpy_chk_avx_unaligned_2, __mempcpy_chk_avx_unaligned_erms,
10182         __mempcpy_chk_sse2_unaligned_2, __mempcpy_chk_sse2_unaligned_erms,
10183         __mempcpy_avx512_unaligned_2, __mempcpy_avx512_unaligned_erms,
10184         __mempcpy_avx_unaligned_2, __mempcpy_avx_unaligned_erms,
10185         __mempcpy_sse2_unaligned_2, __mempcpy_sse2_unaligned_erms and
10186         __mempcpy_erms.
10187         * sysdeps/x86_64/multiarch/memmove-avx-unaligned-erms.S: New
10188         file.
10189         * sysdeps/x86_64/multiarch/memmove-avx512-unaligned-erms.S:
10190         Likwise.
10191         * sysdeps/x86_64/multiarch/memmove-sse2-unaligned-erms.S:
10192         Likwise.
10193         * sysdeps/x86_64/multiarch/memmove-vec-unaligned-erms.S:
10194         Likwise.
10195
10196 2016-03-31  Stefan Liebler  <stli@linux.vnet.ibm.com>
10197
10198         * sysdeps/s390/bits/link.h: (La_s390_vr) New typedef.
10199         (La_s390_32_regs): Append vector register lr_v24-lr_v31.
10200         (La_s390_64_regs): Likewise.
10201         (La_s390_32_retval): Append vector register lrv_v24.
10202         (La_s390_64_retval): Likeweise.
10203         * sysdeps/s390/s390-32/dl-trampoline.h (_dl_runtime_profile):
10204         Handle extended structs La_s390_32_regs and La_s390_32_retval.
10205         * sysdeps/s390/s390-64/dl-trampoline.h (_dl_runtime_profile):
10206         Handle extended structs La_s390_64_regs and La_s390_64_retval.
10207
10208 2016-03-31  Stefan Liebler  <stli@linux.vnet.ibm.com>
10209
10210         [BZ #19916]
10211         * sysdeps/s390/s390-32/dl-trampoline.S: Include dl-trampoline.h twice
10212         to create a non-vector/vector version for _dl_runtime_resolve and
10213         _dl_runtime_profile. Move implementation to ...
10214         * sysdeps/s390/s390-32/dl-trampoline.h: ... here.
10215         (_dl_runtime_resolve) Save and restore fpr/vrs.
10216         (_dl_runtime_profile) Save and restore vrs and fix some issues
10217         if _dl_call_pltexit is called.
10218         * sysdeps/s390/s390-32/dl-machine.h (elf_machine_runtime_setup):
10219         Choose the correct resolver function if running on a machine with vx.
10220         * sysdeps/s390/s390-64/dl-trampoline.S: Include dl-trampoline.h twice
10221         to create a non-vector/vector version for _dl_runtime_resolve and
10222         _dl_runtime_profile. Move implementation to ...
10223         * sysdeps/s390/s390-64/dl-trampoline.h: ... here.
10224         (_dl_runtime_resolve) Save and restore fpr/vrs.
10225         (_dl_runtime_profile) Save and restore vrs and fix some issues
10226         * sysdeps/s390/s390-64/dl-machine.h: (elf_machine_runtime_setup):
10227         Choose the correct resolver function if running on a machine with vx.
10228
10229 2016-03-31  Adhemerval Zanella  <adhemerval.zanella@linaro.org>
10230
10231         * elf/tst-dlsym-error.c: Include <string.h> for strchrnul.
10232
10233 2016-03-31  Florian Weimer  <fweimer@redhat.com>
10234
10235         [BZ #19509]
10236         * elf/dl-lookup.c (_dl_lookup_symbol_x): Report error even if
10237         skip_map != NULL.
10238         * elf/tst-dlsym-error.c: New file.
10239         * elf/Makefile (tests): Add tst-dlsym-error.
10240         (tst-dlsym-error): Link against libdl.
10241
10242 2016-03-29  Joseph Myers  <joseph@codesourcery.com>
10243
10244         * sysdeps/unix/sysv/linux/microblaze/kernel-features.h
10245         (__ASSUME_FUTIMESAT): Remove macro.
10246         * sysdeps/unix/sysv/linux/microblaze/futimesat.c: Remove file.
10247
10248 2016-03-29  Florian Weimer  <fweimer@redhat.com>
10249
10250         [BZ #19879]
10251         CVE-2016-3075
10252         * resolv/nss_dns/dns-network.c (_nss_dns_getnetbyname_r): Do not
10253         copy name.
10254
10255 2016-03-29  Florian Weimer  <fweimer@redhat.com>
10256
10257         [BZ #19837]
10258         * nss/nss_db/db-XXX.c (_nss_db_getENTNAME_r): Propagate ERANGE
10259         error if parse_line fails.
10260
10261 2016-03-28   H.J. Lu  <hongjiu.lu@intel.com>
10262
10263         * sysdeps/x86/cpu-features.h (bit_cpu_ERMS): New.
10264         (index_cpu_ERMS): Likewise.
10265         (reg_ERMS): Likewise.
10266
10267 2016-03-28  Aurelien Jarno  <aurelien@aurel32.net>
10268
10269         * sysdeps/unix/sysv/linux/sys/personality.h (UNAME26, FDPIC_FUNCPTRS,
10270         PER_LINUX_FDPIC): Add.
10271
10272 2016-03-28   H.J. Lu  <hongjiu.lu@intel.com>
10273
10274         * sysdeps/x86_64/multiarch/Makefile (sysdep_routines): Remove
10275         memcpy-avx512-no-vzeroupper.
10276         * sysdeps/x86_64/multiarch/memcpy-avx512-no-vzeroupper.S: Renamed
10277         to ...
10278         * sysdeps/x86_64/multiarch/memmove-avx512-no-vzeroupper.S: This.
10279         (MEMCPY): Don't define.
10280         (MEMCPY_CHK): Likewise.
10281         (MEMPCPY): Likewise.
10282         (MEMPCPY_CHK): Likewise.
10283         (MEMPCPY_CHK): Renamed to ...
10284         (__mempcpy_chk_avx512_no_vzeroupper): This.
10285         (MEMPCPY_CHK): Renamed to ...
10286         (__mempcpy_chk_avx512_no_vzeroupper): This.
10287         (MEMCPY_CHK): Renamed to ...
10288         (__memmove_chk_avx512_no_vzeroupper): This.
10289         (MEMCPY): Renamed to ...
10290         (__memmove_avx512_no_vzeroupper): This.
10291         (__memcpy_avx512_no_vzeroupper): New alias.
10292         (__memcpy_chk_avx512_no_vzeroupper): Likewise.
10293
10294 2016-03-28   H.J. Lu  <hongjiu.lu@intel.com>
10295
10296         [BZ #18858]
10297         * sysdeps/x86_64/multiarch/Makefile (sysdep_routines): Remove
10298         mempcpy-ssse3, mempcpy-ssse3-back, mempcpy-avx-unaligned
10299         and mempcpy-avx512-no-vzeroupper.
10300         * sysdeps/x86_64/multiarch/memcpy-avx-unaligned.S (MEMPCPY_CHK):
10301         New.
10302         (MEMPCPY): Likewise.
10303         * sysdeps/x86_64/multiarch/memcpy-avx512-no-vzeroupper.S
10304         (MEMPCPY_CHK): New.
10305         (MEMPCPY): Likewise.
10306         * sysdeps/x86_64/multiarch/memcpy-ssse3-back.S (MEMPCPY_CHK): New.
10307         (MEMPCPY): Likewise.
10308         * sysdeps/x86_64/multiarch/memcpy-ssse3.S (MEMPCPY_CHK): New.
10309         (MEMPCPY): Likewise.
10310         * sysdeps/x86_64/multiarch/mempcpy-avx-unaligned.S: Removed.
10311         * sysdeps/x86_64/multiarch/mempcpy-avx512-no-vzeroupper.S:
10312         Likewise.
10313         * sysdeps/x86_64/multiarch/mempcpy-ssse3-back.S: Likewise.
10314         * sysdeps/x86_64/multiarch/mempcpy-ssse3.S: Likewise.
10315
10316 2016-03-28   H.J. Lu  <hongjiu.lu@intel.com>
10317              Amit Pawar  <Amit.Pawar@amd.com>
10318
10319         [BZ #19583]
10320         * sysdeps/x86/cpu-features.c (init_cpu_features): Set
10321         Fast_Unaligned_Copy with Fast_Unaligned_Load for Intel
10322         processors.  Set Fast_Copy_Backward for AMD Excavator
10323         processors.
10324         * sysdeps/x86/cpu-features.h (bit_arch_Fast_Unaligned_Copy):
10325         New.
10326         (index_arch_Fast_Unaligned_Copy): Likewise.
10327         * sysdeps/x86_64/multiarch/memcpy.S (__new_memcpy): Check
10328         Fast_Unaligned_Copy instead of Fast_Unaligned_Load.
10329
10330 2016-03-25  Florian Weimer  <fweimer@redhat.com>
10331
10332         [BZ #19791]
10333         * resolv/res_send.c (close_and_return_error): New function.
10334         (send_dg): Initialize *resplen2 after reopen failure.  Call
10335         close_and_return_error for error returns.  On error paths without
10336         __res_iclose, initialze *resplen2 explicitly.  Update comment for
10337         successful return.
10338
10339 2016-03-25  Florian Weimer  <fweimer@redhat.com>
10340
10341         [BZ# 19860]
10342         * sysdeps/x86_64/tst-audit10.c (avx512_enabled): Always return
10343         zero if the compiler does not provide the AVX512F bit.
10344
10345 2016-03-24  Joseph Myers  <joseph@codesourcery.com>
10346
10347         [BZ #19848]
10348         * sysdeps/i386/fpu/e_powl.S (p3): Rename to p2 and change value
10349         from 8 to 4.
10350         (__ieee754_powl): Compare integer exponent against 4 not 8.
10351         * sysdeps/x86_64/fpu/e_powl.S (p3): Rename to p2 and change value
10352         from 8 to 4.
10353         (__ieee754_powl): Compare integer exponent against 4 not 8.
10354         * math/auto-libm-test-in: Add more tests of pow.
10355         * math/auto-libm-test-out: Regenerated.
10356         * sysdeps/i386/i686/fpu/multiarch/libm-test-ulps: Update.
10357         * sysdeps/x86_64/fpu/libm-test-ulps: Likewise.
10358
10359 2016-03-23  Aurelien Jarno  <aurelien@aurel32.net>
10360
10361         * sysdeps/unix/sysv/linux/futimens.c (futimens) [__NR_utimensat]:
10362         Make code unconditional.
10363         [!__NR_utimensat]: Remove conditional code.
10364         * sysdeps/unix/sysv/linux/lutimes.c (lutimes) [__NR_utimensat]:
10365         Make code unconditional.
10366         [!__NR_utimensat]: Remove conditional code.
10367         * sysdeps/unix/sysv/linux/utimensat.c (utimensat) [__NR_utimensat]:
10368         Make code unconditional.
10369         [!__NR_utimensat]: Remove conditional code.
10370
10371 2016-03-23  Aurelien Jarno  <aurelien@aurel32.net>
10372
10373         * sysdeps/unix/sysv/linux/dl-openat64.c (openat64) [__NR_openat]:
10374         Make code unconditional.
10375
10376 2016-03-23  Nick Alcock  <nick.alcock@oracle.com>
10377
10378         * sysdeps/unix/sysv/linux/i386/pthread_cond_timedwait.S: Reload
10379         call-clobbered %eax on retry path.
10380         * sysdeps/unix/sysv/linux/i386/pthread_cond_wait.S: Likewise.
10381
10382 2016-03-22  H.J. Lu  <hongjiu.lu@intel.com>
10383
10384         * sysdeps/x86_64/multiarch/memcpy-avx-unaligned.S (MEMCPY):
10385         Don't set %rcx twice before "rep movsb".
10386
10387 2016-03-22  H.J. Lu  <hongjiu.lu@intel.com>
10388
10389         [BZ #19583]
10390         * sysdeps/x86/cpu-features.c (get_common_indeces): Remove
10391         inline.  Check family before setting family, model and
10392         extended_model.  Set AVX, AVX2, AVX512, FMA and FMA4 usable
10393         bits here.
10394         (init_cpu_features): Replace HAS_CPU_FEATURE and
10395         HAS_ARCH_FEATURE with CPU_FEATURES_CPU_P and
10396         CPU_FEATURES_ARCH_P.  Set index_arch_AVX_Fast_Unaligned_Load
10397         for Intel processors with usable AVX2.  Call get_common_indeces
10398         for other processors with family == NULL.
10399         * sysdeps/x86/cpu-features.h (CPU_FEATURES_CPU_P): New macro.
10400         (CPU_FEATURES_ARCH_P): Likewise.
10401         (HAS_CPU_FEATURE): Use CPU_FEATURES_CPU_P.
10402         (HAS_ARCH_FEATURE): Use CPU_FEATURES_ARCH_P.
10403
10404 2016-03-22  Samuel Thibault  <samuel.thibault@ens-lyon.org>
10405
10406         * malloc/Makefile ($(objpfx)tst-malloc-backtrace,
10407         $(objpfx)tst-malloc-thread-exit, $(objpfx)tst-malloc-thread-fail): Use
10408         $(shared-thread-library) instead of hardcoding the path to libpthread.
10409
10410 2016-03-22  Joseph Myers  <joseph@codesourcery.com>
10411
10412         * sysdeps/unix/sysv/linux/kernel-features.h
10413         (__ASSUME_GETDENTS64_SYSCALL): Remove macro.
10414         * sysdeps/unix/sysv/linux/getdents.c
10415         [!__ASSUME_GETDENTS64_SYSCALL]: Remove conditional code.
10416         [!have_no_getdents64_defined]: Likewise.
10417         (__GETDENTS): Remove __have_no_getdents64 conditional.
10418
10419 2016-03-21  Joseph Myers  <joseph@codesourcery.com>
10420
10421         * sysdeps/unix/sysv/linux/kernel-features.h (__ASSUME_SIGNALFD4):
10422         Remove macro.
10423         * sysdeps/unix/sysv/linux/signalfd.c: Do not include
10424         <kernel-features.h>.
10425         (signalfd) [__NR_signalfd4]: Make code unconditional.
10426         (signalfd) [!__ASSUME_SIGNALFD4]: Remove conditional code.
10427
10428 2016-03-21  Adhemerval Zanella  <adhemerval.zanella@linaro.org>
10429
10430         * sysdeps/unix/sysv/linux/spawni.c (__spawnix): Fix implict checks
10431         style.
10432
10433 2016-03-21  H.J. Lu  <hongjiu.lu@intel.com>
10434
10435         * sysdeps/unix/sysv/linux/x86_64/cancellation.S
10436         (__pthread_enable_asynccancel): Use JUMPTARGET to call
10437         __pthread_unwind.
10438         * sysdeps/unix/sysv/linux/x86_64/pthread_cond_timedwait.S
10439         (__condvar_cleanup2): Use JUMPTARGET to call _Unwind_Resume.
10440         * sysdeps/unix/sysv/linux/x86_64/pthread_cond_wait.S
10441         (__condvar_cleanup1): Likewise.
10442
10443 2016-03-21  Dylan Alex Simon  <dylan-sourceware@dylex.net>
10444
10445         [BZ #19822]
10446         * math/Makefile ($(inst_libdir)/libm.so): Write output to $@.tmp and
10447         move it to the final $@ location.
10448
10449 2016-03-20  Adhemerval Zanella  <adhemerval.zanella@linaro.org>
10450
10451         * sysdeps/unix/sysv/linux/spawni.c (__spawnix): Fix invalid memory
10452         access where posix_spawn success and pid argument is null.
10453         * posix/tst-spawn.c (do_test): Add posix_spawn null pid argument for
10454         success case.
10455
10456 2016-03-20  Samuel Thibault  <samuel.thibault@ens-lyon.org>:
10457
10458         * sysdeps/mach/hurd/i386/c++-types.data: New file.
10459
10460         * sysdeps/mach/hurd/libc-lock.h (_IO_lock_inexpensive): Define to 1.
10461
10462         * sysdeps/generic/dl-fcntl.h: New file, adds attribute_hidden to __open
10463         and __fcntl.
10464         * sysdeps/mach/hurd/dl-fcntl.h: New file, adds attribute_hidden to
10465         __fcntl only.
10466         * include/fcntl.h [IS_IN (rtld)]: Include <dl-fcntl.h> instead of
10467         adding attribute_hidden to __open and __fcntl.
10468
10469         * sysdeps/mach/hurd/Makefile ($(common-objpfx)errnos.d): Strip
10470         "-include $(common-objpfx)libc-modules.h" from CPPFLAGS, and do not
10471         depend on libc-modules.h,
10472         * mach/Makefile ($(objpfx)mach-syscalls.mk): Depend on libc-modules.h.
10473
10474 2016-03-17  Joseph Myers  <joseph@codesourcery.com>
10475
10476         * sysdeps/unix/sysv/linux/kernel-features.h (__ASSUME_EVENTFD2):
10477         Remove macro.
10478         * sysdeps/unix/sysv/linux/eventfd.c: Remove file.
10479         * sysdeps/unix/sysv/linux/syscalls.list (eventfd): New syscall
10480         entry.
10481
10482         * sysdeps/unix/sysv/linux/kernel-features.h (__ASSUME_FALLOCATE):
10483         Remove macro.
10484         * sysdeps/unix/sysv/linux/wordsize-64/posix_fallocate.c: Do not
10485         include <kernel-features.h>.
10486         [!__ASSUME_FALLOCATE]: Remove conditional code.
10487         (posix_fallocate) [__NR_fallocate]: Make code unconditional.
10488
10489 2016-03-16  H.J. Lu  <hongjiu.lu@intel.com>
10490
10491         * sysdeps/x86_64/fpu/multiarch/svml_d_cos2_core_sse4.S
10492         (_ZGVbN2v_cos_sse4): Use JUMPTARGET to call cos.
10493         * sysdeps/x86_64/fpu/multiarch/svml_d_cos4_core_avx2.S
10494         (_ZGVdN4v_cos_avx2): Likewise.
10495         * sysdeps/x86_64/fpu/multiarch/svml_d_cos8_core_avx512.S
10496         (_ZGVdN4v_cos): Likewise.
10497         * sysdeps/x86_64/fpu/multiarch/svml_d_exp2_core_sse4.S
10498         (_ZGVbN2v_exp_sse4): Use JUMPTARGET to call exp.
10499         * sysdeps/x86_64/fpu/multiarch/svml_d_exp4_core_avx2.S
10500         (_ZGVdN4v_exp_avx2): Likewise.
10501         * sysdeps/x86_64/fpu/multiarch/svml_d_exp8_core_avx512.S
10502         (_ZGVdN4v_exp): Likewise.
10503         * sysdeps/x86_64/fpu/multiarch/svml_d_log2_core_sse4.S
10504         (_ZGVbN2v_log_sse4): Use JUMPTARGET to call log.
10505         * sysdeps/x86_64/fpu/multiarch/svml_d_log4_core_avx2.S
10506         (_ZGVdN4v_log_avx2): Likewise.
10507         * sysdeps/x86_64/fpu/multiarch/svml_d_log8_core_avx512.S
10508         (_ZGVdN4v_log): Likewise.
10509         * sysdeps/x86_64/fpu/multiarch/svml_d_pow2_core_sse4.S
10510         (_ZGVbN2vv_pow_sse4): Use JUMPTARGET to call pow.
10511         * sysdeps/x86_64/fpu/multiarch/svml_d_pow4_core_avx2.S
10512         (_ZGVdN4vv_pow_avx2): Likewise.
10513         * sysdeps/x86_64/fpu/multiarch/svml_d_pow8_core_avx512.S
10514         (_ZGVdN4vv_pow): Likewise.
10515         * sysdeps/x86_64/fpu/multiarch/svml_d_sin2_core_sse4.S
10516         (_ZGVbN2v_sin_sse4): Use JUMPTARGET to call sin.
10517         * sysdeps/x86_64/fpu/multiarch/svml_d_sin4_core_avx2.S
10518         (_ZGVdN4v_sin_avx2): Likewise.
10519         * sysdeps/x86_64/fpu/multiarch/svml_d_sin8_core_avx512.S
10520         (_ZGVdN4v_sin): Likewise.
10521         * sysdeps/x86_64/fpu/multiarch/svml_d_sincos2_core_sse4.S
10522         (_ZGVbN2vvv_sincos_sse4): Use JUMPTARGET to call sin and cos.
10523         * sysdeps/x86_64/fpu/multiarch/svml_d_sincos4_core_avx2.S
10524         (_ZGVdN4vvv_sincos_avx2): Likewise.
10525         * sysdeps/x86_64/fpu/multiarch/svml_d_sincos8_core_avx512.S
10526         (_ZGVdN4vvv_sincos): Likewise.
10527         * sysdeps/x86_64/fpu/multiarch/svml_s_cosf16_core_avx512.S
10528         (_ZGVdN8v_cosf): Use JUMPTARGET to call cosf.
10529         * sysdeps/x86_64/fpu/multiarch/svml_s_cosf4_core_sse4.S
10530         (_ZGVbN4v_cosf_sse4): Likewise.
10531         * sysdeps/x86_64/fpu/multiarch/svml_s_cosf8_core_avx2.S
10532         (_ZGVdN8v_cosf_avx2): Likewise.
10533         * sysdeps/x86_64/fpu/multiarch/svml_s_expf16_core_avx512.S
10534         (_ZGVdN8v_expf): Use JUMPTARGET to call expf.
10535         * sysdeps/x86_64/fpu/multiarch/svml_s_expf4_core_sse4.S
10536         (_ZGVbN4v_expf_sse4): Likewise.
10537         * sysdeps/x86_64/fpu/multiarch/svml_s_expf8_core_avx2.S
10538         (_ZGVdN8v_expf_avx2): Likewise.
10539         * sysdeps/x86_64/fpu/multiarch/svml_s_logf16_core_avx512.S
10540         (_ZGVdN8v_logf): Use JUMPTARGET to call logf.
10541         * sysdeps/x86_64/fpu/multiarch/svml_s_logf4_core_sse4.S
10542         (_ZGVbN4v_logf_sse4): Likewise.
10543         * sysdeps/x86_64/fpu/multiarch/svml_s_logf8_core_avx2.S
10544         (_ZGVdN8v_logf_avx2): Likewise.
10545         * sysdeps/x86_64/fpu/multiarch/svml_s_powf16_core_avx512.S
10546         (_ZGVdN8vv_powf): Use JUMPTARGET to call powf.
10547         * sysdeps/x86_64/fpu/multiarch/svml_s_powf4_core_sse4.S
10548         (_ZGVbN4vv_powf_sse4): Likewise.
10549         * sysdeps/x86_64/fpu/multiarch/svml_s_powf8_core_avx2.S
10550         (_ZGVdN8vv_powf_avx2): Likewise.
10551         * sysdeps/x86_64/fpu/multiarch/svml_s_sincosf16_core_avx512.S
10552         (_ZGVdN8vv_powf): Use JUMPTARGET to call sinf and cosf.
10553         * sysdeps/x86_64/fpu/multiarch/svml_s_sincosf4_core_sse4.S
10554         (_ZGVbN4vvv_sincosf_sse4): Likewise.
10555         * sysdeps/x86_64/fpu/multiarch/svml_s_sincosf8_core_avx2.S
10556         (_ZGVdN8vvv_sincosf_avx2): Likewise.
10557         * sysdeps/x86_64/fpu/multiarch/svml_s_sinf16_core_avx512.S
10558         (_ZGVdN8v_sinf): Use JUMPTARGET to call sinf.
10559         * sysdeps/x86_64/fpu/multiarch/svml_s_sinf4_core_sse4.S
10560         (_ZGVbN4v_sinf_sse4): Likewise.
10561         * sysdeps/x86_64/fpu/multiarch/svml_s_sinf8_core_avx2.S
10562         (_ZGVdN8v_sinf_avx2): Likewise.
10563         * sysdeps/x86_64/fpu/svml_d_wrapper_impl.h (WRAPPER_IMPL_SSE2):
10564         Use JUMPTARGET to call callee.
10565         (WRAPPER_IMPL_SSE2_ff): Likewise.
10566         (WRAPPER_IMPL_SSE2_fFF): Likewise.
10567         (WRAPPER_IMPL_AVX): Likewise.
10568         (WRAPPER_IMPL_AVX_ff): Likewise.
10569         (WRAPPER_IMPL_AVX_fFF): Likewise.
10570         (WRAPPER_IMPL_AVX512): Likewise.
10571         (WRAPPER_IMPL_AVX512_ff): Likewise.
10572         * sysdeps/x86_64/fpu/svml_s_wrapper_impl.h (WRAPPER_IMPL_SSE2):
10573         Likewise.
10574         (WRAPPER_IMPL_SSE2_ff): Likewise.
10575         (WRAPPER_IMPL_SSE2_fFF): Likewise.
10576         (WRAPPER_IMPL_AVX): Likewise.
10577         (WRAPPER_IMPL_AVX_ff): Likewise.
10578         (WRAPPER_IMPL_AVX_fFF): Likewise.
10579         (WRAPPER_IMPL_AVX512): Likewise.
10580         (WRAPPER_IMPL_AVX512_ff): Likewise.
10581         (WRAPPER_IMPL_AVX512_fFF): Likewise.
10582
10583 2016-03-16  Samuel Thibault  <samuel.thibault@ens-lyon.org>
10584
10585         * sysdeps/mach/hurd/openat.c (__openat): Add missing ellipsis.
10586         * resolv/gai_sigqueue.c (__gai_sigqueue): Add missing internal_function
10587         qualifier.
10588         * /rt/aio_sigqueue.c (__aio_sigqueue): Add missing attribute_hidden
10589         internal_function qualifiers.
10590
10591 2016-03-15  Carlos O'Donell <carlos@redhat.com>
10592
10593         * catgets/tst-catgets.c (do_bz17905): Mark result unused.
10594         * dlfcn/bug-dl-leaf-lib.c (check_val_fini): Mark ret unused.
10595         * math/atest-exp.c (exp_mpn): Mark chk unused.
10596         * math/atest-exp2.c (exp_mpn): Likwise.
10597         * sysdeps/arm/dl-machine.h (elf_machine_rela): Mark td unused.
10598         * sysdeps/i386/i686/dl-hash.h: Mark _dl_elf_hash unused.
10599
10600 2016-03-15  Joseph Myers  <joseph@codesourcery.com>
10601
10602         * sysdeps/unix/sysv/linux/kernel-features.h (__ASSUME_PPOLL):
10603         Remove macro.
10604         * sysdeps/unix/sysv/linux/ppoll.c: Do not include
10605         <kernel-features.h>.
10606         [__NR_ppoll]: Make code unconditional.
10607         [!__ASSUME_PPOLL]: Remove conditional code.
10608
10609         * sysdeps/unix/sysv/linux/kernel-features.h
10610         (__ASSUME_ACCEPT4_SYSCALL): Define unconditionally.
10611         (__ASSUME_ACCEPT4): Likewise.
10612         [__LINUX_KERNEL_VERSION >= 0x020621] (__ASSUME_RECVMMSG_SYSCALL):
10613         Define.
10614         [__LINUX_KERNEL_VERSION >= 0x020621] (__ASSUME_RECVMMSG):
10615         Likewise.
10616         [__LINUX_KERNEL_VERSION >= 0x030000] (__ASSUME_SENDMMSG_SYSCALL):
10617         Likewise.
10618         [__LINUX_KERNEL_VERSION >= 0x030000] (__ASSUME_SENDMMSG):
10619         Likewise.
10620         * sysdeps/unix/sysv/linux/aarch64/kernel-features.h: Remove file.
10621         * sysdeps/unix/sysv/linux/nios2/kernel-features.h: Likewise.
10622         * sysdeps/unix/sysv/linux/alpha/kernel-features.h
10623         (__ASSUME_RECVMMSG_SYSCALL): Do not define.
10624         (__ASSUME_ACCEPT4_SYSCALL): Likewise.
10625         (__ASSUME_SENDMMSG_SYSCALL): Likewise.
10626         * sysdeps/unix/sysv/linux/arm/kernel-features.h
10627         (__ASSUME_RECVMMSG_SYSCALL): Likewise.
10628         (__ASSUME_ACCEPT4_SYSCALL): Likewise.
10629         (__ASSUME_SENDMMSG_SYSCALL): Likewise.
10630         * sysdeps/unix/sysv/linux/hppa/kernel-features.h
10631         (__ASSUME_ACCEPT4_SYSCALL): Likewise.
10632         (__ASSUME_RECVMMSG_SYSCALL): Likewise.
10633         (__ASSUME_SENDMMSG_SYSCALL): Likewise.
10634         * sysdeps/unix/sysv/linux/i386/kernel-features.h
10635         [__LINUX_KERNEL_VERSION >= 0x020621] (__ASSUME_RECVMMSG_SYSCALL):
10636         Likewise.
10637         [__LINUX_KERNEL_VERSION >= 0x030000] (__ASSUME_SENDMMSG_SYSCALL):
10638         Likewise.
10639         (__ASSUME_ACCEPT4_SYSCALL): Undefine if [__LINUX_KERNEL_VERSION <
10640         0x040300] instead of defining if [__LINUX_KERNEL_VERSION >=
10641         0x040300].
10642         * sysdeps/unix/sysv/linux/ia64/kernel-features.h
10643         (__ASSUME_RECVMMSG_SYSCALL): Do not define.
10644         (__ASSUME_SENDMMSG_SYSCALL): Likewise.
10645         (__ASSUME_ACCEPT4_SYSCALL): Undefine if [__LINUX_KERNEL_VERSION <
10646         0x030300] instead of defining if [__LINUX_KERNEL_VERSION >=
10647         0x030300].
10648         [__LINUX_KERNEL_VERSION < 0x030300] (__ASSUME_ACCEPT4): Undefine.
10649         * sysdeps/unix/sysv/linux/m68k/kernel-features.h
10650         (__ASSUME_ACCEPT4_SYSCALL): Undefine if [__LINUX_KERNEL_VERSION <
10651         0x040300] instead of defining if [__LINUX_KERNEL_VERSION >=
10652         0x040300].
10653         (__ASSUME_RECVMMSG_SYSCALL): Likewise.
10654         (__ASSUME_SENDMMSG_SYSCALL): Likewise.
10655         * sysdeps/unix/sysv/linux/microblaze/kernel-features.h
10656         (__ASSUME_ACCEPT4_SYSCALL): Do not define.
10657         (__ASSUME_RECVMMSG_SYSCALL): Likewise.
10658         (__ASSUME_SENDMMSG_SYSCALL): Undefine if [__LINUX_KERNEL_VERSION <
10659         0x030300] instead of defining if [__LINUX_KERNEL_VERSION >=
10660         0x030300].
10661         * sysdeps/unix/sysv/linux/mips/kernel-features.h
10662         (__ASSUME_ACCEPT4_SYSCALL): Do not define.
10663         (__ASSUME_RECVMMSG_SYSCALL): Likewise.
10664         (__ASSUME_SENDMMSG_SYSCALL): Likewise.
10665         * sysdeps/unix/sysv/linux/powerpc/kernel-features.h
10666         (__ASSUME_ACCEPT4_SYSCALL): Likewise.
10667         (__ASSUME_RECVMMSG_SYSCALL): Likewise.
10668         (__ASSUME_SENDMMSG_SYSCALL): Likewise.
10669         * sysdeps/unix/sysv/linux/s390/kernel-features.h
10670         (__ASSUME_ACCEPT4_SYSCALL): Undefine if [__LINUX_KERNEL_VERSION <
10671         0x040300] instead of defining if [__LINUX_KERNEL_VERSION >=
10672         0x040300].
10673         (__ASSUME_RECVMMSG_SYSCALL): Likewise.
10674         (__ASSUME_SENDMMSG_SYSCALL): Likewise.
10675         * sysdeps/unix/sysv/linux/sh/kernel-features.h
10676         (__ASSUME_ACCEPT4_SYSCALL): Do not define.
10677         (__ASSUME_RECVMMSG_SYSCALL): Likewise.
10678         (__ASSUME_SENDMMSG_SYSCALL): Likewise.
10679         * sysdeps/unix/sysv/linux/sparc/kernel-features.h
10680         (__ASSUME_ACCEPT4_SYSCALL): Likewise.
10681         (__ASSUME_RECVMMSG_SYSCALL): Likewise.
10682         (__ASSUME_SENDMMSG_SYSCALL): Likewise.
10683         * sysdeps/unix/sysv/linux/tile/kernel-features.h
10684         (__ASSUME_ACCEPT4_SYSCALL): Likewise.
10685         (__ASSUME_RECVMMSG_SYSCALL): Likewise.
10686         (__ASSUME_SENDMMSG_SYSCALL): Likewise.
10687         * sysdeps/unix/sysv/linux/x86_64/kernel-features.h
10688         (__ASSUME_ACCEPT4_SYSCALL): Likewise.
10689         [__LINUX_KERNEL_VERSION >= 0x020621] (__ASSUME_RECVMMSG_SYSCALL):
10690         Likewise.
10691         [__LINUX_KERNEL_VERSION >= 0x030000] (__ASSUME_SENDMMSG_SYSCALL):
10692         Likewise.
10693
10694 2016-03-15  Andreas Schwab  <schwab@suse.de>
10695
10696         [BZ #19257]
10697         * resolv/res_init.c (__res_iclose): Use statp->nscount instead of
10698         statp->_u._ext.nscount as loop count.
10699
10700 2016-03-14  Andreas Schwab  <schwab@linux-m68k.org>
10701
10702         * math/test-signgam-finite-c99.c: Also #undef
10703         __LIBC_INTERNAL_MATH_INLINES.
10704         * math/test-signgam-main.c: Likewise.
10705
10706 2016-03-14  Joseph Myers  <joseph@codesourcery.com>
10707
10708         * bits/mman-linux.h [__USE_MISC] (MADV_FREE): New macro.
10709         * sysdeps/unix/sysv/linux/hppa/bits/mman.h [__USE_MISC]
10710         (MADV_FREE): Likewise.
10711         * sysdeps/unix/sysv/linux/bits/in.h (IPV6_HDRINCL): Likewise.
10712         * sysdeps/unix/sysv/linux/sys/epoll.h (enum EPOLL_EVENTS): Add
10713         EPOLLEXCLUSIVE.
10714
10715 2016-03-14  Carlos O'Donell  <carlos@redhat.com>
10716
10717         * timezone/README: Remove mention of checktab.awk. Mention wiki
10718         SharedSourceFiles.
10719
10720 2016-03-13  Samuel Thibault  <samuel.thibault@ens-lyon.org
10721
10722         * sysdeps/posix/waitid.c (OUR_WAITID): Test against WSTOPPED instead of
10723         WUNTRACED.
10724
10725 2016-03-11  Tulio Magno Quites Machado Filho  <tuliom@linux.vnet.ibm.com>
10726
10727         * malloc/malloc.c (malloc_consolidate): Replace 0 by NULL in
10728         order to match the type of p when calling atomic_exchange_acq().
10729
10730 2016-03-11  Rajalakshmi Srinivasaraghavan  <raji@linux.vnet.ibm.com>
10731
10732         * sysdeps/powerpc/powerpc32/power4/memcmp.S (memcmp): Rearrange
10733         cfi_offset calls.
10734         * sysdeps/powerpc/powerpc32/power6/memcpy.S (memcpy): Likewise.
10735         * sysdeps/powerpc/powerpc32/power7/memcmp.S (memcmp): Likewise.
10736         * sysdeps/powerpc/powerpc64/power4/memcmp.S (memcmp): Likewise.
10737         * sysdeps/powerpc/powerpc64/power7/memcmp.S (memcmp): Likewise.
10738         * sysdeps/powerpc/powerpc64/power7/strstr.S (strstr): Likewise.
10739
10740 2016-03-10  Carlos O'Donell  <carlos@redhat.com>
10741
10742         * timezone/checktab.awk: Removed.
10743
10744 2016-03-10  Joseph Myers  <joseph@codesourcery.com>
10745
10746         * manual/math.texi (Errors in Math Functions): Document relaxed
10747         accuracy goals for IBM long double.
10748         * math/libm-test.inc (test_exceptions): Always allow spurious
10749         "underflow" and "inexact" exceptions for IBM long double.
10750
10751 2016-03-10  H.J. Lu  <hongjiu.lu@intel.com>
10752
10753         [BZ #19762]
10754         * sysdeps/unix/sysv/linux/x86_64/64/dl-librecon.h
10755         (EXTRA_LD_ENVVARS): Add _arch_ to index_*/bit_*.
10756         * sysdeps/x86/cpu-features.c (init_cpu_features): Likewise.
10757         * sysdeps/x86/cpu-features.h (bit_*): Renamed to ...
10758         (bit_arch_*): This for feature array.
10759         (bit_*): Renamed to ...
10760         (bit_cpu_*): This for cpu array.
10761         (index_*): Renamed to ...
10762         (index_arch_*): This for feature array.
10763         (index_*): Renamed to ...
10764         (index_cpu_*): This for cpu array.
10765         [__ASSEMBLER__] (HAS_FEATURE): Add and use field.
10766         [__ASSEMBLER__] (HAS_CPU_FEATURE)): Pass cpu to HAS_FEATURE.
10767         [__ASSEMBLER__] (HAS_ARCH_FEATURE)): Pass arch to HAS_FEATURE.
10768         [!__ASSEMBLER__] (HAS_CPU_FEATURE): Replace index_##name and
10769         bit_##name with index_cpu_##name and bit_cpu_##name.
10770         [!__ASSEMBLER__] (HAS_ARCH_FEATURE): Replace index_##name and
10771         bit_##name with index_arch_##name and bit_arch_##name.
10772
10773 2016-03-09  Aurelien Jarno  <aurelien@aurel32.net>
10774
10775         [BZ #19792]
10776         * sysdeps/unix/sysv/linux/mips/makecontext.S (__makecontext):
10777         Terminate FDE before return label.
10778
10779 2016-03-09  Joseph Myers  <joseph@codesourcery.com>
10780
10781         [BZ #19790]
10782         * sysdeps/ieee754/ldbl-128ibm/s_rintl.c [USE_AS_NEARBYINTL]
10783         (rintl): Define as macro.
10784         [USE_AS_NEARBYINTL] (__rintl): Likewise.
10785         (__rintl) [USE_AS_NEARBYINTL]: Use SET_RESTORE_ROUND_NOEX instead
10786         of fesetround.  Ensure results are evaluated before end of scope.
10787         * sysdeps/ieee754/ldbl-128ibm/s_nearbyintl.c: Define
10788         USE_AS_NEARBYINTL and include s_rintl.c.
10789         * sysdeps/powerpc/fpu/fenv_private.h (libc_feholdsetround_ppc):
10790         Disable exception traps in new environment.
10791         (libc_feholdsetround_ppc_ctx): Likewise.
10792
10793 2016-03-08  Roland McGrath  <roland@hack.frob.com>
10794
10795         * sysdeps/x86_64/tst-audit10.c: #include <cpu-features.h>.
10796         * sysdeps/x86_64/tst-audit10-aux.c: Move audit_test extern decl ...
10797         (tst_audit10_aux) [__AVX512F__]: ... here.
10798
10799 2016-03-08  Aurelien Jarno  <aurelien@aurel32.net>
10800
10801         * include/sys/auxv.h: New file.
10802
10803 2016-03-08  H.J. Lu  <hongjiu.lu@intel.com>
10804
10805         [BZ #19759]
10806         * sysdeps/x86/bits/string.h (_HAVE_STRING_ARCH_mempcpy): New.
10807
10808 2016-03-08  Gabriel F. T. Gomes  <gftg@linux.vnet.ibm.com>
10809
10810         * sysdeps/powerpc/bits/fenvinline.h (feraiseexcept): Remove use of %s
10811         operand modifier.
10812         (feclearexcept): Likewise.
10813
10814 2016-03-08  Carlos Eduardo Seo  <cseo@linux.vnet.ibm.com>
10815
10816         * sysdeps/powerpc/dl-procinfo.c (_dl_powerpc_cap_flags): Updated
10817         to reflect the entire 32-bit HWCAP.
10818         * sysdeps/powerpc/dl-procinfo.h: Code cleanup.
10819         (_DL_HWCAP_FIRST): Removed.  Replaced by 0 accordingly.
10820
10821 2016-03-08  H.J. Lu  <hongjiu.lu@intel.com>
10822
10823         [BZ #19783]
10824         * benchtests/Makefile (run-bench): Replace $(rtld-prefix) with
10825         $(test-via-rtld-prefix).
10826         ($(binaries-bench)): Replace $(+link) with $(+link-tests).
10827
10828 2016-03-08  Florian Weimer  <fweimer@redhat.com>
10829
10830         * sunrpc/key_call.c (key_call_keyenvoy): Use int status instead of
10831         union wait.  Report any non-zero exit status as error.
10832
10833 2016-03-07  Adhemerval Zanella  <adhemerval.zanella@linaro.org>
10834
10835         * posix/tst-execvpe5.c (do_test): Fix fix test invocation when
10836         configured with --enable-hardcoded-path-in-tests.
10837
10838 2016-03-08  Joseph Myers  <joseph@codesourcery.com>
10839
10840         [BZ #19677]
10841         * sysdeps/ieee754/ldbl-128ibm/e_remainderl.c
10842         (__ieee754_remainderl): Put zero low parts in canonical form.
10843         * sysdeps/ieee754/ldbl-128ibm/test-fmodrem-ldbl-128ibm.c: New
10844         file.  Based on
10845         sysdeps/ieee754/ldbl-128ibm/test-fmodl-ldbl-128ibm.c.
10846         * sysdeps/ieee754/ldbl-128ibm/test-fmodl-ldbl-128ibm.c: Replace
10847         with wrapper round test-fmodrem-ldbl-128ibm.c.
10848         * sysdeps/ieee754/ldbl-128ibm/test-remainderl-ldbl-128ibm.c: New
10849         file.
10850         * sysdeps/ieee754/ldbl-128ibm/test-remquol-ldbl-128ibm.c:
10851         Likewise.
10852         * sysdeps/ieee754/ldbl-128ibm/Makefile (tests): Add
10853         test-remainderl-ldbl-128ibm and test-remquol-ldbl-128ibm.
10854
10855 2016-03-07  Florian Weimer  <fweimer@redhat.com>
10856
10857         [BZ #19610]
10858         * elf/ldconfig.c (opt_link): Update comment.
10859         (options): Update help string for option -X.
10860         (search_dir): Unlink stale symbolic link only if updating symbolic
10861         links.
10862         * elf/tst-ldconfig-X.sh: New file.
10863         * elf/Makefile (tests-special): Add tst-ldconfig-X.out.
10864         (tst-ldconfig-X.out): New rule to run tst-ldconfig-X.sh.
10865
10866 2016-03-07  Andreas Schwab  <schwab@suse.de>
10867
10868         * iconv/gconv_builtin.h ("=ascii->INTERNAL"): Correct min/max
10869         needed arguments.
10870
10871 2016-03-07  Hongjiu Zhang  <noctuorare@gmail.com>
10872
10873         [BZ #15333]
10874         * elf/sln.c (makesymlink): Change struct stat to stat64, and lstat
10875         to lstat64.
10876
10877 2016-03-07  Florian Weimer  <fweimer@redhat.com>
10878
10879         * libio/filedoalloc.c (isatty): Remove.
10880         (local_isatty): Add comment.  Call __isatty directly.
10881         (_IO_file_doallocate): Update comment.  Assume _LIBC.
10882         * libio/wfiledoalloc.c (isatty): Remove.
10883         (_IO_wfile_doallocate): Update comment.
10884
10885 2016-03-07  Florian Weimer  <fweimer@redhat.com>
10886
10887         [BZ #19269]
10888         * sysdeps/x86_64/Makefile (tst-audit4): Depend on
10889         tst-audit4-aux.o.
10890         (tst-audit10): Depend on tst-audit10-aux.o.
10891         (CFLAGS-tst-audit4-aux.c): Compile with AVX enabled.
10892         (CFLAGS-tst-audit10-aux.c): Compile with AVX512 enabled.
10893         * sysdeps/x86_64/tst-audit4.c (do_test): Call tst_audit4_aux
10894         instead of inline AVX code.
10895         * sysdeps/x86_64/tst-audit10.c (do_test): Call tst_audit10_aux
10896         instead of inline AVX512 code.
10897         * sysdeps/x86_64/tst-audit4-aux.c: New file
10898         * sysdeps/x86_64/tst-audit10-aux.c: New file
10899
10900         [BZ #19648]
10901         * test-skeleton.c (main): Do not set RLIMIT_DATA.
10902
10903 2016-03-07  Adhemerval Zanella  <adhemerval.zanella@linaro.org>
10904
10905         [BZ #14750]
10906         [BZ #10354]
10907         [BZ #18433]
10908         * include/sched.h (__clone): Add hidden prototype.
10909         (__clone2): Likewise.
10910         * include/unistd.h (__dup): Likewise.
10911         * posix/Makefile (tests): Add tst-spawn2.
10912         * posix/tst-spawn2.c: New file.
10913         * sysdeps/posix/dup.c (__dup): Add hidden definition.
10914         * sysdeps/unix/sysv/linux/aarch64/clone.S (__clone): Likewise.
10915         * sysdeps/unix/sysv/linux/alpha/clone.S (__clone): Likewise.
10916         * sysdeps/unix/sysv/linux/arm/clone.S (__clone): Likewise.
10917         * sysdeps/unix/sysv/linux/hppa/clone.S (__clone): Likewise.
10918         * sysdeps/unix/sysv/linux/i386/clone.S (__clone): Likewise.
10919         * sysdeps/unix/sysv/linux/ia64/clone2.S (__clone): Likewise.
10920         * sysdeps/unix/sysv/linux/m68k/clone.S (__clone): Likewise.
10921         * sysdeps/unix/sysv/linux/microblaze/clone.S (__clone): Likewise.
10922         * sysdeps/unix/sysv/linux/mips/clone.S (__clone): Likewise.
10923         * sysdeps/unix/sysv/linux/nios2/clone.S (__clone): Likewise.
10924         * sysdeps/unix/sysv/linux/powerpc/powerpc32/clone.S (__clone):
10925         Likewise.
10926         * sysdeps/unix/sysv/linux/powerpc/powerpc64/clone.S (__clone):
10927         Likewise.
10928         * sysdeps/unix/sysv/linux/s390/s390-32/clone.S (__clone): Likewise.
10929         * sysdeps/unix/sysv/linux/s390/s390-64/clone.S (__clone): Likewise.
10930         * sysdeps/unix/sysv/linux/sh/clone.S (__clone): Likewise.
10931         * sysdeps/unix/sysv/linux/sparc/sparc32/clone.S (__clone): Likewise.
10932         * sysdeps/unix/sysv/linux/sparc/sparc64/clone.S (__clone): Likewise.
10933         * sysdeps/unix/sysv/linux/tile/clone.S (__clone): Likewise.
10934         * sysdeps/unix/sysv/linux/x86_64/clone.S (__clone): Likewise.
10935         * sysdeps/unix/sysv/linux/nptl-signals.h
10936         (____nptl_is_internal_signal): New function.
10937         * sysdeps/unix/sysv/linux/spawni.c: New file.
10938
10939         * posix/execvpe.c (__execvpe): Remove dynamic allocation.
10940         * posix/Makefile (tests): Add tst-execvpe{1,2,3,4,5,6}.
10941         * posix/tst-execvp1.c (do_test): Use a macro to call execvp.
10942         * posix/tst-execvp2.c (do_test): Likewise.
10943         * posix/tst-execvp3.c (do_test): Likewise.
10944         * posix/tst-execvp4.c (do_test): Likewise.
10945         * posix/tst-execvpe1.c: New file.
10946         * posix/tst-execvpe2.c: Likewise.
10947         * posix/tst-execvpe3.c: Likewise.
10948         * posix/tst-execvpe4.c: Likewise.
10949         * posix/tst-execvpe5.c: Likewise.
10950         * posix/tst-execvpe6.c: Likewise.
10951
10952         [BZ #19534]
10953         * posix/execl.c (execl): Remove dynamic memory allocation.
10954         * posix/execle.c (execle): Likewise.
10955         * posix/execlp.c (execlp): Likewise.
10956
10957 2016-03-06  H.J. Lu  <hongjiu.lu@intel.com>
10958
10959         * sysdeps/x86_64/multiarch/memcpy-avx512-no-vzeroupper.S:
10960         Replace .text with .text.avx512.
10961         * sysdeps/x86_64/multiarch/memset-avx512-no-vzeroupper.S:
10962         Likewise.
10963
10964 2016-03-07  Aurelien Jarno  <aurelien@aurel32.net>
10965
10966         * sysdeps/generic/libnsl.abilist: New file.
10967         * sysdeps/generic/libutil.abilist: New file.
10968
10969 2016-03-06  H.J. Lu  <hongjiu.lu@intel.com>
10970
10971         [BZ #19762]
10972         * sysdeps/i386/i686/multiarch/bcopy.S (bcopy): Use
10973         HAS_ARCH_FEATURE with Fast_Rep_String.
10974         * sysdeps/i386/i686/multiarch/bzero.S (__bzero): Likewise.
10975         * sysdeps/i386/i686/multiarch/memcpy.S (memcpy): Likewise.
10976         * sysdeps/i386/i686/multiarch/memcpy_chk.S (__memcpy_chk):
10977         Likewise.
10978         * sysdeps/i386/i686/multiarch/memmove_chk.S (__memmove_chk):
10979         Likewise.
10980         * sysdeps/i386/i686/multiarch/mempcpy.S (__mempcpy): Likewise.
10981         * sysdeps/i386/i686/multiarch/mempcpy_chk.S (__mempcpy_chk):
10982         Likewise.
10983         * sysdeps/i386/i686/multiarch/memset.S (memset): Likewise.
10984         * sysdeps/i386/i686/multiarch/memset_chk.S (__memset_chk):
10985         Likewise.
10986
10987 2016-03-04  H.J. Lu  <hongjiu.lu@intel.com>
10988
10989         [BZ #19745]
10990         * sysdeps/x86_64/crti.S (_init): Replace PREINIT_FUNCTION@PLT
10991         with *%rax in call.
10992
10993 2016-03-04  H.J. Lu  <hongjiu.lu@intel.com>
10994
10995         [BZ #19745]
10996         * sysdeps/x86_64/start.S (_start): Replace __libc_start_main@PLT
10997         with *__libc_start_main@GOTPCREL(%rip) in call.
10998
10999 2016-03-04  Roland McGrath  <roland@hack.frob.com>
11000
11001         * Makefile (tests-special): Add $(objpfx)c++-types-check.out only
11002         inside conditional for nonempty $(CXX).
11003
11004         * math/Makefile (tests): Add test-math-isinff only if $(CXX) is
11005         nonempty.
11006
11007         * Makefile ($(objpfx)c++-types-check.out): Fix conditionalization
11008         to test for empty $(CXX) rather than $(CXX) of "no".
11009
11010 2016-03-04  H.J. Lu  <hongjiu.lu@intel.com>
11011
11012         * sysdeps/x86_64/Makefile (sysdep_noprof): Add comments.
11013
11014 2016-03-04  Amit Pawar  <Amit.Pawar@amd.com>
11015             H.J. Lu  <hongjiu.lu@intel.com>
11016
11017         [BZ #18880]
11018         * sysdeps/x86_64/multiarch/memcpy.S: Check Fast_Unaligned_Load,
11019         instead of Slow_BSF, and also check for Fast_Copy_Backward to
11020         enable __memcpy_ssse3_back.
11021
11022 2016-03-03  H.J. Lu  <hongjiu.lu@intel.com>
11023
11024         [BZ #19758]
11025         * sysdeps/unix/sysv/linux/x86_64/64/dl-librecon.h
11026         (EXTRA_LD_ENVVARS): Or in bit_Prefer_MAP_32BIT_EXEC.
11027
11028 2016-03-03  Paul Pluzhnikov  <ppluzhnikov@google.com>
11029
11030         [BZ #19490]
11031         * sysdeps/x86_64/_mcount.S (_mcount): Add unwind descriptor.
11032         (__fentry__): Likewise.
11033
11034 2016-03-03  H.J. Lu  <hongjiu.lu@intel.com>
11035
11036         * gmon/Makefile (noprof): Add $(sysdep_noprof).
11037         * sysdeps/x86_64/Makefile (sysdep_noprof): Add _mcount.
11038
11039 2016-03-01  H.J. Lu  <hongjiu.lu@intel.com>
11040
11041         * sysdeps/x86_64/_mcount.S (C_LABEL(_mcount)): Call
11042         __mcount_internal directly.
11043         (C_LABEL(__fentry__)): Likewise.
11044         * sysdeps/x86_64/setjmp.S __sigsetjmp): Call __sigjmp_save
11045         directly.
11046
11047 2016-03-01  H.J. Lu  <hongjiu.lu@intel.com>
11048
11049         * sysdeps/unix/sysv/linux/x86_64/__start_context.S
11050         (__start_context): Call __setcontext directly.
11051
11052 2016-02-26  Joseph Myers  <joseph@codesourcery.com>
11053
11054         * sysdeps/unix/sysv/linux/alpha/kernel-features.h
11055         [__LINUX_KERNEL_VERSION >= 0x020621]: Make code unconditional.
11056         [__LINUX_KERNEL_VERSION >= 0x030200]: Likewise.
11057         [__LINUX_KERNEL_VERSION < 0x020621]: Remove conditional code.
11058         * sysdeps/unix/sysv/linux/arm/kernel-features.h
11059         [__LINUX_KERNEL_VERSION >= 0x020621]: Make code unconditional.
11060         [__LINUX_KERNEL_VERSION >= 0x020624]: Likewise.
11061         [__LINUX_KERNEL_VERSION >= 0x030000]: Likewise.
11062         * sysdeps/unix/sysv/linux/hppa/kernel-features.h
11063         [__LINUX_KERNEL_VERSION >= 0x020622]: Likewise.
11064         [__LINUX_KERNEL_VERSION >= 0x030100]: Likewise.
11065         [__LINUX_KERNEL_VERSION < 0x020625]: Remove conditional code.
11066         * sysdeps/unix/sysv/linux/ia64/kernel-features.h
11067         [__LINUX_KERNEL_VERSION >= 0x020621]: Make code unconditional.
11068         [__LINUX_KERNEL_VERSION >= 0x030000]: Likewise.
11069         * sysdeps/unix/sysv/linux/m68k/kernel-features.h
11070         [__LINUX_KERNEL_VERSION < 0x030000]: Remove conditional code.
11071         * sysdeps/unix/sysv/linux/microblaze/kernel-features.h
11072         [__LINUX_KERNEL_VERSION >= 0x020621]: Make code unconditional.
11073         [__LINUX_KERNEL_VERSION < 0x020621]: Remove conditional code.
11074         [__LINUX_KERNEL_VERSION < 0x020625]: Likewise.
11075         * sysdeps/unix/sysv/linux/mips/kernel-features.h
11076         [__LINUX_KERNEL_VERSION >= 0x020621]: Make code unconditional.
11077         [__LINUX_KERNEL_VERSION >= 0x030100]: Likewise.
11078         [_MIPS_SIM == _ABIN32 && __LINUX_KERNEL_VERSION < 0x020623]:
11079         Remove conditional code.
11080         * sysdeps/unix/sysv/linux/powerpc/kernel-features.h
11081         [__LINUX_KERNEL_VERSION >= 0x020625]: Make code unconditional.
11082         [__LINUX_KERNEL_VERSION >= 0x030000]: Likewise.
11083         * sysdeps/unix/sysv/linux/sh/kernel-features.h
11084         [__LINUX_KERNEL_VERSION >= 0x020625]: Likewise.
11085         [__LINUX_KERNEL_VERSION >= 0x030000]: Likewise.
11086         [__LINUX_KERNEL_VERSION < 0x020625]: Remove conditional code.
11087         * sysdeps/unix/sysv/linux/sparc/kernel-features.h
11088         [__LINUX_KERNEL_VERSION >= 0x020621]: Make code unconditional.
11089         [__LINUX_KERNEL_VERSION >= 0x030000]: Likewise.
11090         * sysdeps/unix/sysv/linux/tile/kernel-features.h
11091         [__LINUX_KERNEL_VERSION >= 0x030000]: Likewise.
11092
11093 2016-02-24  Marko Myllynen  <myllynen@redhat.com>
11094
11095         * NEWS (2.23): Fix typo in bug 19048 text.
11096
11097 2016-02-24  Carlos O'Donell  <carlos@redhat.com>
11098
11099         [BZ #14259]
11100         * Makeconfig: Rename msgcatdir to localedir.
11101         Rename inst_msgcatdir to inst_localedir.
11102         * catgets/Makefile (catgets-CPPFLAGS): Use localedir.
11103         * config.make.in: Add localedir.
11104         * elf/Makefile ($(objpfx)sotruss): Use localedir.
11105         (ldd-rewrite): Likewise.
11106         * intl/Makefile: Rename inst_msgcatdir to inst_localedir.
11107         (install-others): Use inst_localedir.
11108         (CPPFLAGS): Use localedir.
11109         * locale/Makefile (locale-CPPFLAGS): Likewise.
11110         * po/Makefile (mo-installed): Use inst_localedir.
11111
11112         [BZ #19575]
11113         * localedata/charmaps/GB18030: Update comments regarding PAU to
11114         non-PUA mappings.
11115
11116 2016-02-24  Joseph Myers  <joseph@codesourcery.com>
11117
11118         * sysdeps/unix/sysv/linux/configure.ac (linux/fanotify.h): Do not
11119         test for header.
11120         * sysdeps/unix/sysv/linux/configure: Regenerated.
11121         * config.h.in (HAVE_LINUX_FANOTIFY_H): Remove #undef.
11122         * sysdeps/unix/sysv/linux/tst-fanotify.c [!HAVE_LINUX_FANOTIFY_H]:
11123         Remove conditional code.
11124         [HAVE_LINUX_FANOTIFY_H]: Make code unconditional.
11125
11126         * sysdeps/unix/sysv/linux/configure.ac (LIBC_LINUX_VERSION):
11127         Define to 3.2.0.
11128         (arch_minimum_kernel): Likewise.
11129         * sysdeps/unix/sysv/linux/configure: Regenerated.
11130         * sysdeps/unix/sysv/linux/i386/configure.ac (arch_minimum_kernel):
11131         Define to 2.6.32.
11132         * sysdeps/unix/sysv/linux/i386/configure: Regenerated.
11133         * sysdeps/unix/sysv/linux/x86_64/64/configure.ac
11134         (arch_minimum_kernel): Define to 2.6.32.
11135         * sysdeps/unix/sysv/linux/x86_64/64/configure: Regenerated.
11136         * README: Document Linux 3.2 requirement.
11137         * manual/install.texi (Linux): Document Linux 3.2 headers
11138         requirement.
11139         * INSTALL: Regenerated.
11140
11141 2016-02-24  Andreas Schwab  <schwab@suse.de>
11142
11143         * math/test-math-isinff.cc (do_test): Only call isinfl and isnanl
11144         if !NO_LONG_DOUBLE.
11145
11146 2016-02-22  Roland McGrath  <roland@hack.frob.com>
11147
11148         * sysdeps/arm/nacl/libc.abilist (GLIBC_2.23): Add GLIBC_2.23,
11149         fts64_children, fts64_close, fts64_open, fts64_read and fts64_set.
11150
11151 2016-02-22  Dmitry V. Levin  <ldv@altlinux.org>
11152
11153         [BZ #19512]
11154         * config.h.in (HAVE_BUILTIN_EXPECT): New macro.
11155
11156 2016-02-22  Stefan Liebler  <stli@linux.vnet.ibm.com>
11157
11158         * posix/tst-dir.c: Include libc-internal.h.
11159
11160 2016-02-20  Florian Weimer  <fweimer@redhat.com>
11161
11162         [BZ #19056]
11163         * dirent/dirent.h (readdir_r, readdir64_r): Mark as deprecated.
11164         * manual/filesys.texi (Reading/Closing Directory): Mention
11165         deprecaion.
11166         * posix/tst-dir.c (main): Disable deprecation warning in test.
11167
11168 2016-02-19  H.J. Lu  <hongjiu.lu@intel.com>
11169
11170         [BZ #19679]
11171         * sysdeps/x86_64/dl-trampoline.S (DL_RUNIME_UNALIGNED_VEC_SIZE):
11172         Renamed to ...
11173         (DL_RUNTIME_UNALIGNED_VEC_SIZE): This.  Set to 8.
11174         (DL_RUNIME_RESOLVE_REALIGN_STACK): Renamed to ...
11175         (DL_RUNTIME_RESOLVE_REALIGN_STACK): This.  Updated.
11176         (DL_RUNIME_RESOLVE_REALIGN_STACK): Renamed to ...
11177         (DL_RUNTIME_RESOLVE_REALIGN_STACK): This.
11178         * sysdeps/x86_64/dl-trampoline.h
11179         (DL_RUNIME_RESOLVE_REALIGN_STACK): Renamed to ...
11180         (DL_RUNTIME_RESOLVE_REALIGN_STACK): This.
11181
11182 2016-02-19  Mark Wielaard  <mjw@redhat.com>
11183
11184         * elf/elf.h: Add NT_ARM_SYSTEM_CALL.
11185
11186 2016-02-19  Mark Wielaard  <mjw@redhat.com>
11187
11188         * elf/elf.h (R_386_GOT32X): New.
11189         (R_386_NUM): Update.
11190         (R_X86_64_GOTPCRELX: New.
11191         (R_X86_64_REX_GOTPCRELX): New.
11192         (R_X86_64_NUM): Update.
11193
11194 2016-02-19  Mike Frysinger  <vapier@gentoo.org>
11195
11196         * test-skeleton.c (TIMEOUT): Change to 20 and adjust comment.
11197
11198 2016-02-19  Carlos O'Donell  <carlos@systemhalted.org>
11199
11200         * nptl/allocatestack.c (allocate_stack): Declare new stackaddr,
11201         assign attr->stackaddr to it, and adjust it down when
11202         _STACK_GROWS_UP.  Change all attr->stackaddr to stackaddr.
11203         [_STACK_GROWS_UP]: Delete assert.
11204         * nptl/pthread_create.c (START_THREAD_DEFN) [!_STACK_GROWS_DOWN]:
11205         Implement stack grows up logic.
11206         * nptl/pthread_getattr_np.c (pthread_getattr_np): Implement
11207         stack grows up logic.
11208
11209 2016-02-19  Adhemerval Zanella  <adhemerval.zanella@linaro.org>
11210
11211         * NEWS: Update with 2.24 template.
11212
11213 2016-02-19  Joseph Myers  <joseph@codesourcery.com>
11214
11215         [BZ #19678]
11216         * sysdeps/ieee754/ldbl-128ibm/s_nextafterl.c (__nextafterl):
11217         Ensure +0.0 is returned when taking the next value below the least
11218         positive value.
11219
11220 2016-02-19  Florian Weimer  <fweimer@redhat.com>
11221
11222         * sysdeps/generic/malloc-machine.h: Assume mutex_init is always
11223         available.  Do not define NO_THREADS.
11224         * malloc/malloc.c: Do not check NO_THREADS.
11225         * malloc/arena.c: Likewise.
11226
11227 2016-02-19  Florian Weimer  <fweimer@redhat.com>
11228
11229         * malloc/malloc.c (__libc_mallinfo): Update comment.
11230         (struct malloc_par): Remove max_total_mem member, it was always 0.
11231         (int_mallinfo): Store 0 into usmblks (no functional change).
11232         * malloc/hooks.c (struct malloc_state): Document that
11233         max_total_mem is always 0.
11234         * malloc/malloc.h (struct mallinfo): Dcoument that usmblks is
11235         always 0.
11236         * manual/memory.texi (Statistics of Malloc): Likewise.
11237
11238 2016-02-19  Florian Weimer  <fweimer@redhat.com>
11239
11240         * malloc/malloc.c (sysmalloc): Do not update arena_max.
11241         * malloc/arena.c (arena_max): Remove.
11242         (heap_trim, _int_new_arena): Do not update arena_max.
11243
11244 2016-02-19  Florian Weimer  <fweimer@redhat.com>
11245
11246         * resolv/res_init.c (res_ninit): Update comment.
11247
11248 2016-02-19  Florian Weimer  <fweimer@redhat.com>
11249
11250         [BZ #19505]
11251         * posix/spawn_int.h: Add headers and include guard.
11252         (__spawn_valid_fd): New function.
11253         * posix/spawn_faction_addopen.c
11254         (posix_spawn_file_actions_addopen): Use __spawn_valid_fd.
11255         * posix/spawn_faction_addclose.c
11256         (posix_spawn_file_actions_addclose): Likewise.
11257         * posix/spawn_faction_adddup2.c
11258         (posix_spawn_file_actions_adddup2): Likewise.  Add check for
11259         second file descriptor.
11260         * posix/spawn_valid_fd.c: New file.
11261         * posix/tst-posix_spawn-fd.c: New file.
11262         * posix/Makefile (routines): Add spawn_valid_fd.
11263         (tests): Add tst-posix_spawn-fd.
11264
11265 2016-02-19  Florian Weimer  <fweimer@redhat.com>
11266
11267         * malloc/tst-malloc-thread-exit.c: Include test-skeleton.c early.
11268         (do_test): Limit the number of arenas, so that we can use fewer
11269         outer threads.  Limit timeout to 3 seconds, in preparation for a
11270         larger TIMEOUT value.
11271
11272 2016-02-19  Joseph Myers  <joseph@codesourcery.com>
11273
11274         [BZ #19674]
11275         * sysdeps/ieee754/ldbl-128ibm/e_powl.c (__ieee754_powl): Include
11276         sign in overflowing and underflowing results when overflow or
11277         underflow is detected early.  Include sign in result before rather
11278         than after scaling.
11279
11280         [BZ #19603]
11281         * sysdeps/ieee754/ldbl-128ibm/e_remainderl.c
11282         (__ieee754_remainderl): Adjust sign of integer version of low part
11283         when taking absolute value of high part.
11284         * sysdeps/ieee754/ldbl-128ibm/s_remquol.c (__remquol): Likewise.
11285         * math/libm-test.inc (remainder_test_data): Add another test.
11286         (remquo_test_data): Likewise.
11287
11288 2016-02-18  Joseph Myers  <joseph@codesourcery.com>
11289
11290         [BZ #19602]
11291         * sysdeps/ieee754/ldbl-128ibm/e_fmodl.c (__ieee754_fmodl): Handle
11292         equal high parts and both low parts zero specially.
11293         * sysdeps/ieee754/ldbl-128ibm/test-fmodl-ldbl-128ibm.c: New test.
11294         * sysdeps/ieee754/ldbl-128ibm/Makefile [$(subdir) = math] (tests):
11295         Add test-fmodl-ldbl-128ibm.
11296
11297         [BZ #19595]
11298         * sysdeps/ieee754/ldbl-128ibm/e_fmodl.c (__ieee754_fmodl): Use
11299         common logic for all cases of shifting subnormal results.  Do not
11300         insert sign bit in shifted mantissa.  Always pass -1023 as biased
11301         exponent to ldbl_insert_mantissa in subnormal case.
11302
11303         [BZ #19594]
11304         * sysdeps/ieee754/ldbl-128ibm/s_roundl.c (__roundl): Use __round
11305         on high and low parts then adjust result and use
11306         ldbl_canonicalize_int if needed.
11307
11308         [BZ #19593]
11309         * sysdeps/ieee754/ldbl-128ibm/s_truncl.c (__truncl): Use __trunc
11310         on high part and __floor or __ceil on low part then use
11311         ldbl_canonicalize_int if needed.
11312
11313         [BZ #19592]
11314         * sysdeps/ieee754/ldbl-128ibm/s_ceill.c (__ceill): Use __ceil on
11315         high and low parts then use ldbl_canonicalize_int if needed.
11316
11317         [BZ #17899]
11318         * sysdeps/ieee754/ldbl-128ibm/math_ldbl.h (ldbl_canonicalize_int):
11319         New function.
11320         * sysdeps/ieee754/ldbl-128ibm/s_floorl.c (__floorl): Use __floor
11321         on high and low parts then use ldbl_canonicalize_int if needed.
11322
11323 2016-02-18  Adhemerval Zanella  <adhemerval.zanella@linaro.org>
11324
11325         * configure: Regenerated.
11326
11327         * po/libc.pot: Regenerated.
11328
11329         * po/be.po: Updated translation.
11330         * po/bg.po: Likewise.
11331         * po/ca.po: Likewise.
11332         * po/cs.po: Likewise.
11333         * po/da.po: Likewise.
11334         * po/el.po: Likewise.
11335         * po/eo.po: Likewise.
11336         * po/es.po: Likewise.
11337         * po/fi.po: Likewise.
11338         * po/fr.po: Likewise.
11339         * po/gl.po: Likewise.
11340         * po/hr.po: Likewise.
11341         * po/hu.po: Likewise.
11342         * po/ia.po: Likewise.
11343         * po/id.po: Likewise.
11344         * po/it.po: Likewise.
11345         * po/ja.po: Likewise.
11346         * po/lt.po: Likewise.
11347         * po/nb.po: Likewise.
11348         * po/nl.po: Likewise.
11349         * po/pt_BR.po: Likewise.
11350         * po/rw.po: Likewise.
11351         * po/sk.po: Likewise.
11352         * po/sl.po: Likewise.
11353         * po/sv.po: Likewise.
11354         * po/tr.po: Likewise.
11355         * po/zh_CN.po: Likewise.
11356         * po/zh_TW.po: Likewise.
11357
11358         * version.h (RELEAES): Set to "development".
11359         (VERSION): Set to 2.23.90.
11360
11361         * version.h (RELEASE): Set to "stable".
11362         (VERSION): Set to 2.23.
11363         * include/feature.h (__GLIBC_MINOR__): Set to 23.
11364
11365         * NEWS: Updated fixed bugs.
11366
11367 2016-02-18  H.J. Lu  <hongjiu.lu@intel.com>
11368             Wilco Dijkstra  <wdijkstr@arm.com>
11369
11370         [BZ #19462]
11371         * bits/string.h (_STRING_ARCH_unaligned): Renamed to ...
11372         (_STRING_INLINE_unaligned): This.
11373         * include/string.h: Include <string_private.h>.
11374         * string/bits/string2.h: Replace _STRING_ARCH_unaligned with
11375         _STRING_INLINE_unaligned.
11376         * sysdeps/aarch64/bits/string.h (_STRING_ARCH_unaligned): Removed.
11377         (_STRING_INLINE_unaligned): New.
11378         * sysdeps/aarch64/string_private.h: New file.
11379         * sysdeps/generic/string_private.h: Likewise.
11380         * sysdeps/m68k/m680x0/m68020/string_private.h: Likewise.
11381         * sysdeps/s390/string_private.h: Likewise.
11382         * sysdeps/x86/string_private.h: Likewise.
11383         * sysdeps/m68k/m680x0/m68020/bits/string.h
11384         (_STRING_ARCH_unaligned): Renamed to ...
11385         (_STRING_INLINE_unaligned): This.
11386         * sysdeps/s390/bits/string.h (_STRING_ARCH_unaligned): Renamed
11387         to ...
11388         (_STRING_INLINE_unaligned): This.
11389         * sysdeps/sparc/bits/string.h (_STRING_ARCH_unaligned): Renamed
11390         to ...
11391         (_STRING_INLINE_unaligned): This.
11392         * sysdeps/x86/bits/string.h (_STRING_ARCH_unaligned): Renamed
11393         to ...
11394         (_STRING_INLINE_unaligned): This.
11395
11396 2016-02-17  Andrew Senkevich  <andrew.senkevich@intel.com>
11397             H.J. Lu  <hongjiu.lu@intel.com>
11398
11399         [BZ #19590]
11400         * sysdeps/x86_64/fpu/svml_finite_alias.S (ALIAS_IMPL): Use PIC
11401         relocation.
11402
11403 2016-02-15  Carlos O'Donell  <carlos@redhat.com>
11404
11405         [BZ #18665]
11406         * resolv/nss_dns/dns-host.c (gaih_getanswer_slice): Always set
11407         *herrno_p.
11408         (gaih_getanswer): Document functional behviour. Return tryagain
11409         if any result is tryagain.
11410         * resolv/res_query.c (__libc_res_nsearch): Set buffer size to zero
11411         when freed.
11412         * resolv/res_send.c: Add copyright text.
11413         (__libc_res_nsend): Document that MAXPACKET is expected.
11414         (send_vc): Document. Remove buffer reuse.
11415         (send_dg): Document. Remove buffer reuse. Set *thisanssizp to set the
11416         size of the buffer. Add Dprint for truncated UDP buffer.
11417
11418 2016-02-14  Carlos O'Donell  <carlos@redhat.com>
11419
11420         * manual/install.texi: Latest tested is GCC 5.3, texinfo 6.0, gawk
11421         4.1.3, and sed 4.2.2. Remove po2test.sed comments.
11422         * INSTALL: Regenerate.
11423
11424 2016-02-14  Jakub Jelinek  <jakub@redhat.com>
11425             Jonathan Wakely  <jwakely@redhat.com>
11426             Carlos O'Donell  <carlos@redhat.com>
11427
11428         [BZ 19439]
11429         * math/Makefile (tests): Add test-math-isinff.
11430         (CFLAGS-test-math-isinff.cc): Use -std=gnu++11.
11431         * math/bits/mathcalls.h [__USE_MISC]: Use
11432         '|| __MATH_DECLARING_DOUBLE == 0' to relax definition of
11433         functions not in C++11 and which don't conflict e.g. isinff,
11434         isinfl etc.
11435         * math/test-math-isinff.cc: New file.
11436
11437 2016-02-12  Florian Weimer  <fweimer@redhat.com>
11438
11439         * misc/bug18240.c (do_test): Set RLIMIT_AS.
11440
11441 2016-02-11  Szabolcs Nagy  <szabolcs.nagy@arm.com>
11442
11443         [BZ #19529]
11444         * stdlib/Makefile (CFLAGS-tst-makecontext.c): Add -funwind-tables.
11445
11446 2016-02-04  Rajalakshmi Srinivasaraghavan  <raji@linux.vnet.ibm.com>
11447
11448         * sysdeps/powerpc/fpu/libm-test-ulps: Regenerated.
11449
11450 2016-02-01  Joseph Myers  <joseph@codesourcery.com>
11451
11452         [BZ #19550]
11453         * sysdeps/unix/sysv/linux/mips/mips32/mmap.c: New file.
11454         * sysdeps/unix/sysv/linux/mips/mips64/mmap64.c: Move to ....
11455         * sysdeps/unix/sysv/linux/mips/mips64/n64/mmap64.c: ... here.
11456         * sysdeps/unix/sysv/linux/mips/mips64/n32/mmap.c: New file.
11457         * sysdeps/unix/sysv/linux/mips/mips64/n32/syscalls.list (mmap64):
11458         New syscall entry.
11459         * sysdeps/unix/sysv/linux/mips/mips64/n64/syscalls.list (mmap):
11460         New syscall entry.
11461         * sysdeps/unix/sysv/linux/mips/mips64/syscalls.list (mmap): Remove
11462         syscall entry.
11463
11464 2016-01-27  Paul Eggert  <eggert@cs.ucla.edu>
11465
11466         [BZ #18240]
11467         * misc/hsearch_r.c (isprime, __hcreate_r): Protect against
11468         unsigned int wraparound.
11469
11470 2016-01-27  Florian Weimer  <fweimer@redhat.com>
11471
11472         [BZ #18240]
11473         * misc/bug18240.c: New test.
11474         * misc/Makefile (tests): Add it.
11475
11476 2016-01-28  Steve Ellcey  <sellcey@imgtec.com>
11477             Joseph Myers  <joseph@codesourcery.com>
11478
11479         * sysdeps/mips/memcpy.S (MEMCPY_NAME) [USE_DOUBLE]: Avoid word
11480         load in branch delay slot when less than a word of input left.
11481
11482 2016-01-27  Andreas Schwab  <schwab@suse.de>
11483
11484         * sysdeps/ieee754/ldbl-128ibm/s_erfl.c (half): Remove.
11485         * sysdeps/ieee754/ldbl-128ibm/s_log1pl.c (maxlog, big): Remove.
11486         * sysdeps/powerpc/fpu/s_cosf.c (one): Remove.
11487         * sysdeps/powerpc/fpu/e_hypotf.c (two30): Remove.
11488
11489 2016-01-26  David S. Miller  <davem@davemloft.net>
11490
11491         * sysdeps/unix/sysv/linux/sparc/sparc32/localplt.data: Add _Q_cmp.
11492
11493 2016-01-25  David S. Miller  <davem@davemloft.net>
11494
11495         * sysdeps/sparc/sparc32/Versions (GLIBC_2.23): Add entry for
11496         __sqrtl_finite.
11497         * sysdeps/sparc/sparc32/fpu/e_sqrtl.c (__sqrtl_finite): Define
11498         instead using versioned_symbol.
11499         * sysdeps/unix/sysv/linux/sparc/sparc32/libm.abilist: Fix ordering
11500         of entries.
11501
11502         * sysdeps/unix/sysv/linux/sparc/sparc32/libm.abilist: Move
11503         __sqrtl_finite to GLIBC_2.23
11504
11505 2016-01-25  Ricchard Henderson  <rth@redhat.com>
11506
11507         * sysdeps/alpha/fpu/libm-test-ulps: Update.
11508
11509 2016-01-25  Andreas Schwab  <schwab@suse.de>
11510
11511         [BZ #17514]
11512         * nptl/pthread_mutex_timedlock.c (pthread_mutex_timedlock)
11513         <case PTHREAD_MUTEX_ERRORCHECK_NP>: Don't do lock elision.
11514         * nptl/Makefile (tests): Add tst-mutex-errorcheck.
11515         * nptl/tst-mutex-errorcheck.c: New file.
11516
11517 2016-01-25  Paul E. Murphy  <murphyp@linux.vnet.ibm.com>
11518
11519         [BZ #18560]
11520         * sysdeps/unix/sysv/linux/powerpc/bits/ipc.h (__ipc): Remove.
11521         (IPCOP_semop): Likewise.
11522         (IPCOP_semget): Likewise.
11523         (IPCOP_semctl): Likewise.
11524         (IPCOP_msgsnd): Likewise.
11525         (IPCOP_msgrcv): Likewise.
11526         (IPCOP_msgget): Likewise.
11527         (IPCOP_msgctl): Likewise.
11528         (IPCOP_shmat): Likewise.
11529         (IPCOP_shmdt): Likewise.
11530         (IPCOP_shmget): Likewise.
11531         (IPCOP_shmctl): Likewise.
11532
11533 2016-01-22  Stefan Liebler  <stli@linux.vnet.ibm.com>
11534
11535         * string/tst-endian.c: Include <libc-internal.h>.
11536         (do_test): Ignore tautological-compare warnings around
11537         "htobeXX (beXXtoh (i)) != i" and
11538         "htoleXX (leXXtoh (i)) != i" if-statements.
11539
11540 2016-01-24  David S. Miller  <davem@davemloft.net>
11541
11542         * sysdeps/sparc/sparc32/fpu/e_sqrtl.c: New file.
11543         * sysdeps/sparc/sparc32/soft-fp/q_sqrt.c (__ieee754_sqrtl): Remove
11544         alias.
11545         * sysdeps/unix/sysv/linux/sparc/sparc32/libm.abilist: Add
11546         __sqrtl_finite.
11547
11548         * sysdeps/sparc/fpu/libm-test-ulps: Update.
11549
11550 2016-01-25  Maciej W. Rozycki  <macro@imgtec.com>
11551
11552         * sysdeps/unix/sysv/linux/mips/configure.ac: Set
11553         `arch_minimum_kernel' to 4.5.0 if 2008 NaN encoding is used.
11554         * sysdeps/unix/sysv/linux/mips/configure: Regenerate.
11555
11556 2016-01-22  Paul E. Murphy  <murphyp@linux.vnet.ibm.com>
11557
11558         * nptl/tst-setuid3.c (is_invalid_barrier_ret): New function.
11559         (thread_func): Use new function to simplify barrier check.
11560         (do_test): Use new function to simplify checking barrier exit
11561         code, and actually join the child thread.
11562
11563 2016-01-22  Paul E. Murphy  <murphyp@linux.vnet.ibm.com>
11564
11565         * sysdeps/unix/sysv/linux/powerpc/htm.h (__libc_tbegin): Remove
11566         semicolon.
11567         (__libc_tend): Likewise.
11568         (__libc_tabort): Likewise.
11569
11570 2016-01-22  Chung-Lin Tang  <cltang@codesourcery.com>
11571
11572         * sysdeps/nios2/libm-test-ulps: Update.
11573         * sysdeps/unix/sysv/linux/nios2/localplt.data (__gtdf2): Add.
11574         (__gtsf2): Likewise.
11575         (__unorddf2): Likewise.
11576         (__unordsf2): Likewise.
11577         (__ledf2): Likewise.
11578
11579 2016-01-20  Chris Metcalf  <cmetcalf@ezchip.com>
11580
11581         * nis/nis_table.c (__follow_path): Disable diagnostic for
11582         uninitialized variable that is a false positive for gcc 4.7.
11583         * stdio-common/vfscanf.c (_IO_vfwscanf): Likewise.
11584
11585 2016-01-20  Roland McGrath  <roland@hack.frob.com>
11586
11587         * sysdeps/nacl/lowlevellock-futex.h
11588         (lll_futex_wait, lll_futex_timed_wait, lll_futex_wake):
11589         Always evaluate PRIVATE argument.
11590
11591 2016-01-20  Paul Pluzhnikov  <ppluzhnikov@google.com>
11592
11593         [BZ #19490]
11594         * sysdeps/unix/sysv/linux/x86_64/pthread_cond_broadcast.S
11595         (pthread_cond_broadcast): Use ENTRY/END
11596         * sysdeps/unix/sysv/linux/x86_64/pthread_cond_signal.S
11597         (pthread_cond_signal): Likewise.
11598         * sysdeps/x86_64/nptl/pthread_spin_lock.S (pthread_spin_lock):
11599         Likewise.
11600         * sysdeps/x86_64/nptl/pthread_spin_trylock.S (pthread_spin_trylock):
11601         Likewise.
11602         * sysdeps/x86_64/nptl/pthread_spin_unlock.S (pthread_spin_unlock):
11603         Likewise.
11604
11605 2016-01-20  Joseph Myers  <joseph@codesourcery.com>
11606
11607         * sysdeps/ieee754/dbl-64/s_finite.c
11608         [NO_LONG_DOUBLE && LDBL_CLASSIFY_COMPAT] (__finitel): Define
11609         compat symbol at version GLIBC_2_1 and use GLIBC_2_1 in
11610         SHLIB_COMPAT condition for libm, not GLIBC_2_0.
11611         * sysdeps/ieee754/dbl-64/wordsize-64/s_finite.c
11612         [NO_LONG_DOUBLE && LDBL_CLASSIFY_COMPAT] (__finitel): Likewise.
11613
11614         * sysdeps/unix/sysv/linux/powerpc/powerpc32/nofpu/localplt.data
11615         (__gtsf2): Add as optional for libc.so.
11616         (__unordsf2): Likewise.
11617         (__signbit): Remove for libc.so.
11618         (__signbitl): Likewise.
11619
11620 2016-01-19  Stefan Liebler  <stli@linux.vnet.ibm.com>
11621
11622         * iconvdata/bug-iconv11.c (test_ibm93x):
11623         Use %zu printf format specifier for size_t argument.
11624
11625 2016-01-19  Joseph Myers  <joseph@codesourcery.com>
11626
11627         * math/gen-libm-test.pl (parse_ulps): Do not reduce
11628         already-recorded ulps.
11629         * sysdeps/arm/libm-test-ulps: Regenerated.
11630         * sysdeps/mips/mips32/libm-test-ulps: Likewise.
11631         * sysdeps/mips/mips64/libm-test-ulps: Likewise.
11632         * sysdeps/powerpc/nofpu/libm-test-ulps: Likewise.
11633
11634 2016-01-19  Andrew Senkevich  <andrew.senkevich@intel.com>
11635             Paul Pluzhnikov  <ppluzhnikov@google.com>
11636
11637         * sysdeps/x86_64/multiarch/ifunc-impl-list.c: Fixed build with
11638         assembler not supporting AVX-512.
11639
11640 2016-01-18  Stefan Liebler  <stli@linux.vnet.ibm.com>
11641
11642         * sysdeps/s390/fpu/libm-test-ulps: Regenerated.
11643
11644 2016-01-18  Joseph Myers  <joseph@codesourcery.com>
11645
11646         * sysdeps/mips/mips32/libm-test-ulps: Regenerated.
11647         * sysdeps/mips/mips64/libm-test-ulps: Likewise.
11648
11649         * sysdeps/powerpc/nofpu/libm-test-ulps: Regenerated.
11650
11651         * sysdeps/arm/libm-test-ulps: Regenerated.
11652
11653 2016-01-18  Paul Pluzhnikov  <ppluzhnikov@google.com>
11654
11655         [BZ #19451]
11656         * math/Makefile (libm-vec-tests): Move libraries after wrappers.o
11657
11658 2016-01-15  Stefan Liebler  <stli@linux.vnet.ibm.com>
11659
11660         [BZ #19486]
11661         * sysdeps/s390/fix-fp-int-convert-overflow.h: New File.
11662         * sysdeps/generic/fix-fp-int-convert-overflow.h
11663         (FIX_LDBL_LONG_CONVERT_OVERFLOW,
11664         FIX_LDBL_LLONG_CONVERT_OVERFLOW): New define.
11665         * sysdeps/arm/fix-fp-int-convert-overflow.h: Likewise.
11666         * sysdeps/mips/mips32/fpu/fix-fp-int-convert-overflow.h:
11667         Likewise.
11668         * sysdeps/ieee754/ldbl-128/s_lrintl.c (__lrintl):
11669         Avoid conversions to long int where inexact exceptions
11670         could be raised.
11671         * sysdeps/ieee754/ldbl-128/s_lroundl.c (__lroundl):
11672         Likewise.
11673         * sysdeps/ieee754/ldbl-128/s_llrintl.c (__llrintl):
11674         Avoid conversions to long long int where inexact exceptions
11675         could be raised.
11676         * sysdeps/ieee754/ldbl-128/s_llroundl.c (__llroundl):
11677         Likewise.
11678
11679 2016-01-17  Mike Frysinger  <vapier@gentoo.org>
11680
11681         * configure.ac: Rewrite error comment and use AC_MSG_ERROR.
11682         * configure: Regenerated.
11683
11684 2016-01-16  Andrew Senkevich  <andrew.senkevich@intel.com>
11685
11686         * sysdeps/x86_64/multiarch/memcpy_chk.S: Fixed typos.
11687
11688 2016-01-16  Mike Frysinger  <vapier@gentoo.org>
11689
11690         * sysdeps/unix/sysv/linux/sparc/bits/mman.h (MCL_ONFAULT): Move
11691         outside of comment.
11692
11693 2016-01-15  Torvald Riegel  <triegel@redhat.com>
11694
11695         * nptl/tst-barrier1.c: Add description on first line.
11696         * nptl/tst-barrier2.c: Likewise.
11697         * nptl/tst-barrier3.c: Likewise.
11698         * nptl/tst-barrier4.c: Likewise.
11699         * nptl/tst-barrier5.c: Likewise.
11700
11701 2016-01-15  Torvald Riegel  <triegel@redhat.com>
11702
11703         [BZ #18868]
11704         * nptl/pthread_barrier_init.c (__pthread_barrier_init): Apply fix.
11705
11706 2016-01-16  Andrew Senkevich  <andrew.senkevich@intel.com>
11707
11708         * sysdeps/x86_64/multiarch/Makefile (sysdep_routines): Added new files.
11709         * sysdeps/x86_64/multiarch/ifunc-impl-list.c: Added new tests.
11710         * sysdeps/x86_64/multiarch/memcpy-avx512-no-vzeroupper.S: New file.
11711         * sysdeps/x86_64/multiarch/mempcpy-avx512-no-vzeroupper.S: Likewise.
11712         * sysdeps/x86_64/multiarch/memmove-avx512-no-vzeroupper.S: Likewise.
11713         * sysdeps/x86_64/multiarch/memcpy.S: Added new IFUNC branch.
11714         * sysdeps/x86_64/multiarch/memcpy_chk.S: Likewise.
11715         * sysdeps/x86_64/multiarch/memmove.c: Likewise.
11716         * sysdeps/x86_64/multiarch/memmove_chk.c: Likewise.
11717         * sysdeps/x86_64/multiarch/mempcpy.S: Likewise.
11718         * sysdeps/x86_64/multiarch/mempcpy_chk.S: Likewise.
11719
11720 2016-01-15  Torvald Riegel  <triegel@redhat.com>
11721
11722         [BZ #13065]
11723         * nptl/pthread_barrier_wait.c (__pthread_barrier_wait): Replace with
11724         new implementation.
11725         * nptl/pthread_barrier_destroy.c (pthread_barrier_destroy): Likewise.
11726         * nptl/pthread_barrier_init.c (__pthread_barrier_init): Adapt.
11727         * sysdeps/nptl/internaltypes.h (pthread_barrier): Adapt.
11728         (BARRIER_IN_THRESHOLD): New macro.
11729         * nptl/pthread_barrierattr_setpshared.c
11730         (pthread_barrierattr_setpshared): Clean up.
11731         * nptl/tst-barrier4.c: Correct comment.
11732         * nptl/tst-barrier5.c: New file.
11733         * nptl/Makefile (tests): Add nptl/tst-barrier5.c.
11734         (gen-as-const-headers): Remove lowlevelbarrier.sym.
11735         * sysdeps/unix/sysv/linux/i386/pthread_barrier_wait.S: Remove.
11736         * sysdeps/unix/sysv/linux/x86_64/pthread_barrier_wait.S: Remove.
11737         * nptl/lowlevelbarrier.sym: Remove.
11738         * nptl/DESIGN-barrier.txt: Remove.
11739         * sysdeps/sparc/nptl/pthread_barrier_destroy.c: Remove.
11740         * sysdeps/sparc/nptl/pthread_barrier_init.c: Remove.
11741         * sysdeps/sparc/nptl/pthread_barrier_wait.c: Remove.
11742         * sysdeps/sparc/sparc32/pthread_barrier_wait.c: Replace with build
11743         error.
11744         * sysdeps/sparc/sparc32/sparcv9/pthread_barrier_wait.c: Use generic
11745         implementation.
11746
11747 2016-01-15  Paul E. Murphy  <murphyp@linux.vnet.ibm.com>
11748
11749         * rt/tst-mqueue5.c (thr): Cleanup misleading comment.
11750         (do_child): Mask SIGRTMIN while thr is running.
11751
11752 2016-01-15  Martin Sebor  <msebor@redhat.com>
11753
11754         [BZ #19432]
11755         * iconvdata/Makefile: Add bug-iconv11.
11756         * iconvdata/bug-iconv11.c: New test.
11757         * iconvdata/ibm930.c: Do not reject redundant shift sequences.
11758         * iconvdata/ibm933.c: Same.
11759         * iconvdata/ibm935.c: Same.
11760         * iconvdata/ibm937.c: Same.
11761         * iconvdata/ibm939.c: Same.
11762
11763 2016-01-15  Martin Sebor  <msebor@redhat.com>
11764
11765         [BZ #19443]
11766         * crypt/crypt_util.c [DEBUG] (_ufc_prbits): Correct format string.
11767         [DEBUG] (_ufc_set_bits): Declare used.
11768         * iconv/gconv_dl.c [DEBUG]: Add a missing include directive.
11769         [DEBUG] (print_all): Declare used.
11770         * resolv/res_send.c [DEBUG] (__libc_res_nsend): Explicitly convert
11771         operands of the ternary ?: expression to target type.
11772         * stdlib/rshift.c [DEBUG] (mpn_rshift): Use assert() instead of
11773         calling the undeclared abort.
11774         * time/mktime.c [DEBUG] (DEBUG): Rename to DEBUG_MKTIME.
11775
11776 2016-01-15  Martin Sebor  <msebor@redhat.com>
11777
11778         [BZ #18755]
11779         * iconv/skeleton.c (FUNCTION_NAME): Suppress -Wunused-but-set-variable
11780         warnings.
11781         * sysdeps/nptl/gai_misc.h (__gai_start_notify_thread): Same.
11782         (__gai_create_helper_thread): Same.
11783         * nscd/nscd.c (do_exit): Suppress -Wunused-variable.
11784         * iconvdata/iso-2022-cn-ext.c (BODY): Initialize local variable
11785         to suppress -Wmaybe-uninitialized warnings.
11786
11787 2016-01-15  H.J. Lu  <hongjiu.lu@intel.com>
11788
11789         [BZ #19465]
11790         * sysdeps/ieee754/dbl-64/s_fma.c (__fma): Call math_opt_barrier
11791         inside if.
11792         * sysdeps/ieee754/ldbl-128/s_fmal.c (__fmal): Likewise.
11793         * sysdeps/ieee754/ldbl-96/s_fma.c (__fma): Likewise.
11794         * sysdeps/ieee754/ldbl-96/s_fmal.c (__fmal): Likewise.
11795
11796 2016-01-14  H.J. Lu  <hongjiu.lu@intel.com>
11797
11798         [BZ #19466]
11799         * time/tst-mktime2.c (time_t_max): Removed.
11800         (time_t_min): Likewise.
11801         (TYPE_SIGNED): New.
11802         (TYPE_MINIMUM): Likewise.
11803         (TYPE_MAXIMUM): Likewise.
11804         (TIME_T_MIN): Likewise.
11805         (TIME_T_MAX): Likewise.
11806         (mktime_test): Replace time_t_max and time_t_min with TIME_T_MAX
11807         and TIME_T_MIN.
11808         (do_test): Likewise.
11809
11810 2016-01-14  Amit Pawar  <amit.pawar@amd.com>
11811
11812         [BZ #19467]
11813         * sysdeps/x86/cpu-features.c (init_cpu_features): Set
11814         index_Fast_Unaligned_Load flag for Excavator family CPUs.
11815
11816 2016-01-02  Marcin Kościelnicki  <koriakin@0x04.net>
11817
11818         * sysdeps/s390/nptl/tls.h (struct tcbhead_t): Add __private_ss field.
11819
11820 2016-01-13  Carlos O'Donell  <carlos@redhat.com>
11821
11822         * benchtests/Makefile (PYTHON): Define.
11823         (bench-func): Use $(PYTHON) to run python scripts.
11824         ($(objpfx)bench-%.c): Likewise.
11825
11826 2016-01-13  Flavio Cruz  <flaviocruz@gmail.com>
11827
11828         * hurd/lookup-retry.c (__hurd_file_name_lookup_retry): Do not remove
11829         leading slash when `file_name' is "/".
11830
11831 2016-01-12  Joseph Myers  <joseph@codesourcery.com>
11832
11833         * bits/mman-linux.h [!MCL_CURRENT] (MCL_ONFAULT): New macro.
11834         * sysdeps/unix/sysv/linux/alpha/bits/mman.h (MCL_ONFAULT):
11835         Likewise.
11836         * sysdeps/unix/sysv/linux/powerpc/bits/mman.h (MCL_ONFAULT):
11837         Likewise.
11838         * sysdeps/unix/sysv/linux/sparc/bits/mman.h (MCL_ONFAULT):
11839         Likewise.
11840         * sysdeps/unix/sysv/linux/sys/ptrace.h (PTRACE_GETSIGMASK): New
11841         enum constant and macro.
11842         (PTRACE_SETSIGMASK): Likewise.
11843         (PTRACE_SECCOMP_GET_FILTER): Likewise.
11844         * sysdeps/unix/sysv/linux/aarch64/sys/ptrace.h
11845         (PTRACE_GETSIGMASK): Likewise.
11846         (PTRACE_SETSIGMASK): Likewise.
11847         (PTRACE_SECCOMP_GET_FILTER): Likewise.
11848         * sysdeps/unix/sysv/linux/ia64/sys/ptrace.h (PTRACE_GETSIGMASK):
11849         Likewise.
11850         (PTRACE_SETSIGMASK): Likewise.
11851         (PTRACE_SECCOMP_GET_FILTER): Likewise.
11852         * sysdeps/unix/sysv/linux/powerpc/sys/ptrace.h
11853         (PTRACE_GETSIGMASK): Likewise.
11854         (PTRACE_SETSIGMASK): Likewise.
11855         (PTRACE_SECCOMP_GET_FILTER): Likewise.
11856         * sysdeps/unix/sysv/linux/s390/sys/ptrace.h (PTRACE_GETSIGMASK):
11857         Likewise.
11858         (PTRACE_SETSIGMASK): Likewise.
11859         (PTRACE_SECCOMP_GET_FILTER): Likewise.
11860         * sysdeps/unix/sysv/linux/sparc/sys/ptrace.h (PTRACE_GETSIGMASK):
11861         Likewise.
11862         (PTRACE_SETSIGMASK): Likewise.
11863         (PTRACE_SECCOMP_GET_FILTER): Likewise.
11864         * sysdeps/unix/sysv/linux/tile/sys/ptrace.h (PTRACE_GETSIGMASK):
11865         Likewise.
11866         (PTRACE_SETSIGMASK): Likewise.
11867         (PTRACE_SECCOMP_GET_FILTER): Likewise.
11868
11869 2016-01-11  Jonathan Wakely  <jwakely.gcc@gmail.com>
11870             Adhemerval Zanella  <adhemerval.zanella@linaro.org>
11871
11872         [BZ #19439]
11873         * math/bits/mathcalls.h
11874         [!__cplusplus || __cplusplus < 201103L] (isinf): Do not declare
11875         prototype.
11876         [!__cplusplus || __cplusplus < 201103L] (isnan): Likewise.
11877
11878 2016-01-11  Andreas Schwab  <schwab@suse.de>
11879
11880         [BZ #19253]
11881         * time/tzfile.c (__tzfile_default): Invalidate tzfile attribute
11882         cache when TZDEFRULES was used.
11883         * time/tst-tzname.c: New file.
11884         * time/Makefile (test): Add tst-tzname.
11885         (tst-tzname-ENV, CPPFLAGS-tst-tzname.c): Define.
11886         * timezone/Makefile (test-zones): Add $(posixrules-file).
11887         ($(testdata)/$(posixrules-file)): New rule.
11888
11889 2016-01-10  Paul Eggert  <eggert@cs.ucla.edu>
11890
11891         Fix doc quoting problems with Texinfo 5
11892         Without this change, in the info file output, Texinfo 5 quotes code
11893         in text with undirected single quotes 'like this' and generates
11894         code examples that with many PDF readers cannot be cut out of PDFs
11895         and pasted into code.
11896         * manual/libc.texinfo: Configure the libc manual like the GNU
11897         Emacs manual, by using @documentencoding and setting
11898         txicodequoteundirected and txicodequotebacktick.  This way,
11899         Texinfo 5 quotes code in text with directed single quotes ‘like
11900         this’ and produces examples that can be cut out of PDFs.  This
11901         change causes Texinfo 5 to generate info files that contain UTF-8
11902         characters in the set {'‘', '’', '“', '”', 'Ä', 'ä', 'ö', '−',
11903         '–', '—', '©', '⇒', '•', '…'}, which is OK nowadays.
11904
11905 2016-01-08  Tulio Magno Quites Machado Filho  <tuliom@linux.vnet.ibm.com>
11906
11907         * sysdeps/unix/sysv/linux/powerpc/htm.h (__libc_tbegin,
11908         __libc_tabort, __libc_tend): New wrappers that enforce compiler
11909         barriers to their respective compiler built-ins.
11910         * sysdeps/powerpc/nptl/elide.h (__get_new_count, ELIDE_LOCK,
11911         ELIDE_TRYLOCK, __elide_unlock): Use the new wrappers.
11912         * sysdeps/powerpc/sysdep.h: Likewise.
11913         * sysdeps/unix/sysv/linux/powerpc/elision-lock.c: Likewise.
11914         * sysdeps/unix/sysv/linux/powerpc/elision-trylock.c: Likewise.
11915         * sysdeps/unix/sysv/linux/powerpc/elision-unlock.c: Likewise.
11916
11917 2016-01-08  Marko Myllynen  <myllynen@redhat.com>
11918
11919         * scripts/config.guess: Revert previous shebang change.
11920         * scripts/config.sub: Likewise.
11921         * scripts/mkinstalldirs: Likewise.
11922
11923 2016-01-08  Carlos Eduardo Seo  <cseo@linux.vnet.ibm.com>
11924
11925         * sysdeps/powerpc/bits/hwcap.h: Add PPC_FEATURE2_ARCH_3_00 and
11926         PPC_FEATURE2_HAS_IEEE128.
11927         * sysdeps/powerpc/dl-procinfo.c:
11928         (_dl_powerpc_cap_flags): Add corresponding names to new capabilities.
11929
11930 2016-01-08  John David Anglin  <danglin@gcc.gnu.org>
11931
11932         [BZ #19415]
11933         * sysdeps/hppa/dl-fptr.c (_dl_fixup): Declare.
11934         (elf_machine_resolve): New.  Return address of _dl_runtime_resolve.
11935         (_dl_lookup_address): Rewrite using function resolver trampoline.
11936         * sysdeps/hppa/dl-lookupcfg.h (DL_LOOKUP_ADDRESS): Don't clear bottom
11937         two bits in address.
11938
11939 2016-01-07  Mike Frysinger  <vapier@gentoo.org>
11940
11941         * longlong.h: Change !__SHMEDIA__ to
11942         (!defined (__SHMEDIA__) || !__SHMEDIA__).
11943         Change __SHMEDIA__ to defined (__SHMEDIA__) && __SHMEDIA__.
11944
11945 2016-01-07  Daniel Jacobowitz  <dan@codesourcery.com>
11946             Joseph Myers  <joseph@codesourcery.com>
11947             Mark Shinwell  <shinwell@codesourcery.com>
11948             Andrew Stubbs  <ams@codesourcery.com>
11949             Rich Felker <dalias@libc.org>
11950
11951         * longlong.h (udiv_qrnnd): Add FDPIC compatible version for SH.
11952
11953 2016-01-07  Richard Henderson  <rth@redhat.com>
11954
11955         * longlong.h [__alpha] (umul_ppmm): Disable for c++.
11956
11957 2016-01-07  Mike Frysinger  <vapier@gentoo.org>
11958
11959         * sysdeps/unix/sysv/linux/fxstat64.c (___fxstat64): Change
11960         __ASSUME_ST_INO_64_BIT == 0 to !defined __ASSUME_ST_INO_64_BIT.
11961         * sysdeps/unix/sysv/linux/lxstat64.c (___lxstat64): Likewise.
11962         * sysdeps/unix/sysv/linux/xstat64.c (___xstat64): Likewise.
11963         * sysdeps/unix/sysv/linux/xstatconv.c (__xstat32_conv): Likewise.
11964
11965 2016-01-07  Paul Eggert  <eggert@cs.ucla.edu>
11966             Joseph Myers  <joseph@codesourcery.com>
11967
11968         * timezone/private.h: Update from tzcode 2015g.
11969         * timezone/tzfile.h: Likewise.
11970         * timezone/tzselect.ksh: Likewise.
11971         * timezone/zdump.c: Likewise.
11972         * timezone/zic.c: Likewise.
11973         * timezone/ialloc.c: Remove file.
11974         * timezone/scheck.c: Likewise.
11975         * timezone/Makefile (extra-objs): Remove variable.
11976         ($(objpfx)zic): Do not depend on scheck.o and ialloc.o.
11977         (tz-cflags): Add -DHAVE_GETTEXT -DUSE_LTZ=0
11978         -Wno-maybe-uninitialized.
11979         (CFLAGS-zdump.c): Remove -fwrapv -DNOID -DHAVE_GETTEXT.
11980         (CFLAGS-zic.c): Remove -DNOID -DHAVE_GETTEXT.
11981         (CFLAGS-ialloc.c): Remove variable.
11982         (CFLAGS-scheck.c): Likewise.
11983         * timezone/README: Update list of files from tzcode.
11984
11985 2016-01-07  Khem Raj  <raj.khem@gmail.com>
11986
11987         * argp/argp-fmtstream.c (__argp_fmtstream_free): Use fwrite_unlocked
11988         instead of __fxprintf when _LIBC is undefined.
11989
11990 2016-01-07  Marko Myllynen  <myllynen@redhat.com>
11991
11992         * catgets/test-gencat.sh: Remove space after shebang.
11993         * conform/GlibcConform.pm: Likewise.
11994         * conform/check-header-lists.sh: Likewise.
11995         * conform/conformtest.pl: Likewise.
11996         * conform/linknamespace.pl: Likewise.
11997         * conform/list-header-symbols.pl: Likewise.
11998         * debug/catchsegv.sh: Likewise.
11999         * elf/genrtldtbl.awk: Likewise.
12000         * elf/tst-pathopt.sh: Likewise.
12001         * elf/tst-rtld-load-self.sh: Likewise.
12002         * grp/tst_fgetgrent.sh: Likewise.
12003         * iconvdata/gen-8bit-gap-1.sh: Likewise.
12004         * iconvdata/gen-8bit-gap.sh: Likewise.
12005         * iconvdata/gen-8bit.sh: Likewise.
12006         * iconvdata/run-iconv-test.sh: Likewise.
12007         * intl/tst-gettext.sh: Likewise.
12008         * intl/tst-gettext2.sh: Likewise.
12009         * intl/tst-gettext4.sh: Likewise.
12010         * intl/tst-gettext6.sh: Likewise.
12011         * intl/tst-translit.sh: Likewise.
12012         * io/ftwtest-sh: Likewise.
12013         * libio/test-freopen.sh: Likewise.
12014         * locale/gen-translit.pl: Likewise.
12015         * malloc/tst-mtrace.sh: Likewise.
12016         * manual/check-safety.sh: Likewise.
12017         * manual/libc-texinfo.sh: Likewise.
12018         * manual/tsort.awk: Likewise.
12019         * manual/xtract-typefun.awk: Likewise.
12020         * nptl/tst-cancel-wrappers.sh: Likewise.
12021         * nptl/tst-tls6.sh: Likewise.
12022         * posix/globtest.sh: Likewise.
12023         * posix/tst-getconf.sh: Likewise.
12024         * posix/wordexp-tst.sh: Likewise.
12025         * scripts/check-c++-types.sh: Likewise.
12026         * scripts/check-local-headers.sh: Likewise.
12027         * scripts/config.guess: Likewise.
12028         * scripts/config.sub: Likewise.
12029         * scripts/cpp: Likewise.
12030         * scripts/cross-test-ssh.sh: Likewise.
12031         * scripts/documented.sh: Likewise.
12032         * scripts/evaluate-test.sh: Likewise.
12033         * scripts/gen-libc-abis: Likewise.
12034         * scripts/gen-sorted.awk: Likewise.
12035         * scripts/list-fixed-bugs.py: Likewise.
12036         * scripts/merge-test-results.sh: Likewise.
12037         * scripts/mkinstalldirs: Likewise.
12038         * scripts/rellns-sh: Likewise.
12039         * scripts/test-installation.pl: Likewise.
12040         * scripts/update-copyrights: Likewise.
12041         * stdio-common/tst-printf.sh: Likewise.
12042         * stdio-common/tst-unbputc.sh: Likewise.
12043         * stdlib/tst-fmtmsg.sh: Likewise.
12044         * stdlib/tst-setcontext3.sh: Likewise.
12045         * sysdeps/i386/tst-ld-sse-use.sh: Likewise.
12046         * sysdeps/unix/make-syscalls.sh: Likewise.
12047
12048 2016-01-06  John David Anglin  <dave.anglin@bell.net>
12049
12050         * sysdeps/hppa/nptl/pthread_spin_init.c (pthread_spin_init): Replace
12051         asm stw with atomic_exchange_rel.  Add explanatory comment.
12052         * sysdeps/hppa/nptl/pthread_spin_unlock.c (pthread_spin_unlock):
12053         Likewise.
12054
12055 2016-01-05  H.J. Lu  <hongjiu.lu@intel.com>
12056
12057         [BZ #19122]
12058         * include/unistd.h [IS_IN (rtld)]: Include <dl-unistd.h>.
12059         * sysdeps/generic/dl-unistd.h: New file.
12060         * sysdeps/mach/hurd/dl-unistd.h: Likewise.
12061
12062 2016-01-05  H.J. Lu  <hongjiu.lu@intel.com>
12063
12064          [BZ #19122]
12065          * include/sys/mman.h [IS_IN (rtld)]: Include <dl-mman.h>.
12066          * sysdeps/generic/dl-mman.h: New file.
12067          * sysdeps/mach/hurd/dl-mman.h: Likewise.
12068
12069 2016-01-05  Joseph Myers  <joseph@codesourcery.com>
12070
12071         * manual/texinfo.tex: Update to version 2016-01-04.21 with
12072         trailing whitespace removed.
12073         * scripts/config.guess: Update to version 2016-01-01.
12074         * scripts/config.sub: Update to version 2016-01-01.
12075         * scripts/move-if-change: Update from gnulib.
12076
12077 2016-01-04  Anton Blanchard  <anton@samba.org>
12078
12079         * sysdeps/ieee754/dbl-64/e_pow.c (log1): Use unsigned int
12080         for array indices.
12081         * sysdeps/ieee754/dbl-64/e_pow.c (my_log2): Likewise.
12082
12083 2016-01-04  Joseph Myers  <joseph@codesourcery.com>
12084
12085         * NEWS: Update copyright dates.
12086         * catgets/gencat.c (print_version): Likewise.
12087         * csu/version.c (banner): Likewise.
12088         * debug/catchsegv.sh: Likewise.
12089         * debug/pcprofiledump.c (print_version): Likewise.
12090         * debug/xtrace.sh (do_version): Likewise.
12091         * elf/ldconfig.c (print_version): Likewise.
12092         * elf/ldd.bash.in: Likewise.
12093         * elf/pldd.c (print_version): Likewise.
12094         * elf/sotruss.sh: Likewise.
12095         * elf/sprof.c (print_version): Likewise.
12096         * iconv/iconv_prog.c (print_version): Likewise.
12097         * iconv/iconvconfig.c (print_version): Likewise.
12098         * locale/programs/locale.c (print_version): Likewise.
12099         * locale/programs/localedef.c (print_version): Likewise.
12100         * login/programs/pt_chown.c (print_version): Likewise.
12101         * malloc/memusage.sh (do_version): Likewise.
12102         * malloc/memusagestat.c (print_version): Likewise.
12103         * malloc/mtrace.pl: Likewise.
12104         * manual/libc.texinfo: Likewise.
12105         * nptl/version.c (banner): Likewise.
12106         * nscd/nscd.c (print_version): Likewise.
12107         * nss/getent.c (print_version): Likewise.
12108         * nss/makedb.c (print_version): Likewise.
12109         * posix/getconf.c (main): Likewise.
12110         * scripts/test-installation.pl: Likewise.
12111         * sysdeps/unix/sysv/linux/lddlibc4.c (main): Likewise.
12112
12113         * All files with FSF copyright notices: Update copyright dates
12114         using scripts/update-copyrights.
12115         * intl/plural.c: Regenerated.
12116         * locale/programs/charmap-kw.h: Likewise.
12117         * locale/programs/locfile-kw.h: Likewise.
12118
12119 2016-01-02  Helge Deller  <deller@gmx.de>
12120
12121         [BZ #19285]
12122         * sysdeps/unix/sysv/linux/hppa/bits/mman.h (MAP_STACK): Define.
12123         (MAP_HUGETLB, MCL_ONFAULT): Likewise.
12124         (MADV_HUGEPAGE, MADV_NOHUGEPAGE, MADV_DONTDUMP, MADV_DODUMP): Likewise.
12125         (MADV_xxK_PAGES): Remove.
12126
12127 2016-01-01  Mike Frysinger  <vapier@gentoo.org>
12128
12129         [BZ #15421]
12130         * sysdeps/ia64/fpu/w_lgamma_main.c: Include math.h & math_private.h.
12131         [BUILD_LGAMMA]: Wrap all code by define.  Re-indent sub-preprocessor.
12132         * sysdeps/ia64/fpu/w_lgammaf_main.c: Likewise.
12133         * sysdeps/ia64/fpu/w_lgammal_main.c: Likewise.
12134
12135 2015-12-30  Dmitry V. Levin  <ldv@altlinux.org>
12136
12137         [BZ #19408]
12138         * sysdeps/unix/sysv/linux/personality.c: New file.
12139         * sysdeps/unix/sysv/linux/sparc/sparc64/personality.c: Likewise.
12140         * sysdeps/unix/sysv/linux/tst-personality.c: Likewise.
12141         * sysdeps/unix/sysv/linux/Makefile [$(subdir) == misc]
12142         (sysdep_routines): Add personality.
12143         (tests): Add tst-personality.
12144         * sysdeps/unix/sysv/linux/syscalls.list (personality): Move ...
12145         * sysdeps/unix/sysv/linux/wordsize-64/syscalls.list: ... here.
12146         * sysdeps/unix/sysv/linux/arm/syscalls.list (personality): New entry.
12147         * sysdeps/unix/sysv/linux/hppa/syscalls.list (personality): Likewise.
12148         * sysdeps/unix/sysv/linux/i386/syscalls.list (personality): Likewise.
12149         * sysdeps/unix/sysv/linux/m68k/syscalls.list (personality): Likewise.
12150         * sysdeps/unix/sysv/linux/microblaze/syscalls.list (personality):
12151         Likewise.
12152         * sysdeps/unix/sysv/linux/mips/mips64/n32/syscalls.list (personality):
12153         Likewise.
12154         * sysdeps/unix/sysv/linux/s390/s390-32/syscalls.list (personality):
12155         Likewise.
12156         * sysdeps/unix/sysv/linux/sh/syscalls.list (personality): Likewise.
12157         * sysdeps/unix/sysv/linux/x86_64/x32/syscalls.list (personality):
12158         Likewise.
12159
12160 2015-12-30  Aurelien Jarno  <aurelien@aurel32.net>
12161
12162         * sysdeps/unix/sysv/linux/arm/ioperm.c: Do not include <string.h>.
12163         (PATH_ARM_SYSTYPE): Remove.
12164         (PATH_CPUINFO): Likewise.
12165         (IO_BASE_FOOTBRIDGE): Likewise.
12166         (IO_SHIFT_FOOTBRIDGE): Likewise.
12167         (struct platform): Likewise.
12168         (init_iosys): Remove compatibility code for 2.4 kernels.
12169         * sysdeps/unix/sysv/linux/arm/localplt.data: Remove fscanf.
12170
12171 2015-12-29  Florian Weimer  <fweimer@redhat.com>
12172
12173         * malloc/tst-malloc-thread-fail.c: New file.
12174         * malloc/Makefile (tests): Add tst-malloc-thread-fail.
12175         (tst-malloc-thread-fail): Link against libpthread.
12176
12177 2015-12-29  Mike Frysinger  <vapier@gentoo.org>
12178
12179         * scripts/list-fixed-bugs.py: Import argparse.  Call main instead.
12180         (get_parser): New function.
12181         (main): New function.
12182
12183 2015-12-29  Rob Wu  <rob@robwu.nl>
12184
12185         [BZ #19369]
12186         * resolv/res_init.c (__res_vinit): Reset defdname before use.
12187
12188 2015-12-29  John David Anglin  <danglin@gcc.gnu.org>
12189
12190         [BZ #19270]
12191         * sysdeps/hppa/fpu/bits/mathdef.h (__NO_LONG_DOUBLE_MATH): Define.
12192
12193 2015-12-28  Mike Frysinger  <vapier@gentoo.org>
12194
12195         [BZ #15421]
12196         * sysdeps/ia64/fpu/w_lgamma_main.c: Change gammaf to gamma.
12197
12198 2015-12-23  Torvald Riegel  <triegel@redhat.com>
12199
12200         [BZ #13690]
12201         * sysdeps/nptl/lowlevellock.h (__lll_unlock): Do not access the lock
12202         after releasing it.
12203         (__lll_robust_unlock): Likewise.
12204         * nptl/pthread_mutex_unlock.c (__pthread_mutex_unlock_full): Likewise.
12205         * sysdeps/unix/sysv/linux/sparc/lowlevellock.h (lll_unlock): Likewise.
12206         (lll_robust_unlock): Likewise.
12207         * sysdeps/unix/sysv/linux/lowlevellock-futex.h (__lll_private_flag):
12208         Prevent warnings in callers.
12209
12210 2015-12-23  Florian Weimer  <fweimer@redhat.com>
12211
12212         * malloc/arena.c (list_lock): Update comment.
12213
12214 2015-12-22  Carlos Eduardo Seo  <cseo@linux.vnet.ibm.com>
12215
12216         * sysdeps/powerpc/hwcapinfo.c: Export symbol
12217         __parse_hwcap_and_convert_at_platform to libc.a.
12218
12219 2015-12-22  Carlos Eduardo Seo  <cseo@linux.vnet.ibm.com>
12220
12221         * sysdeps/powerpc/dl-procinfo.c (_dl_powerpc_platforms): Added
12222         platform and feature support for POWER9.
12223         * sysdeps/powerpc/dl-procinfo.h: Likewise.
12224         * sysdeps/powerpc/powerpc32/power9/Implies: New file.
12225         * sysdeps/powerpc/powerpc32/power9/fpu/multiarch/Implies: Likewise.
12226         * sysdeps/powerpc/powerpc32/power9/multiarch/Implies: Likewise.
12227         * sysdeps/powerpc/powerpc64/power9/Implies: Likewise, for powerpc64.
12228         * sysdeps/powerpc/powerpc64/power9/fpu/Implies: Likewise.
12229         * sysdeps/powerpc/powerpc64/power9/fpu/multiarch/Implies: Likewise.
12230         * sysdeps/powerpc/powerpc64/power9/multiarch/Implies: Likewise.
12231
12232 2015-12-22  Samuel Thibault  <samuel.thibault@ens-lyon.org>
12233
12234         Harmonize generic stdio-lock support with nptl
12235
12236         This fixes build when _IO_funlockfile is a macro, fixes build where
12237         _IO_acquire_lock_clear_flags2 is used, and fixes unlocking on unexpected
12238         stack unwind.
12239
12240         * sysdeps/generic/stdio-lock.h [__EXCEPTIONS] (_IO_acquire_lock,
12241         _IO_release_lock ): Use cleanup attribute on new
12242         _IO_acquire_lock_file variable instead of assuming that
12243         _IO_release_lock will be called.
12244         [!__EXCEPTIONS] (_IO_acquire_lock): Define to non-existing
12245         _IO_acquire_lock_needs_exceptions_enabled.
12246         (_IO_acquire_lock_clear_flags2): New macro.
12247
12248 2015-12-22  Adhemerval Zanella  <adhemerval.zanella@linaro.org>
12249
12250         * sysdeps/powerpc/fpu/libm-test-ulps: Regenerated.
12251
12252 2015-12-21  Florian Weimer  <fweimer@redhat.com>
12253
12254         [BZ #19182]
12255         * malloc/arena.c (list_lock): Document lock ordering requirements.
12256         (free_list_lock): New lock.
12257         (ptmalloc_lock_all): Comment on free_list_lock.
12258         (ptmalloc_unlock_all2): Reinitialize free_list_lock.
12259         (detach_arena): Update comment.  free_list_lock is now needed.
12260         (_int_new_arena): Use free_list_lock around detach_arena call.
12261         Acquire arena lock after list_lock.  Add comment, including FIXME
12262         about incorrect synchronization.
12263         (get_free_list): Switch to free_list_lock.
12264         (reused_arena): Acquire free_list_lock around detach_arena call
12265         and attached threads counter update.  Add two FIXMEs about
12266         incorrect synchronization.
12267         (arena_thread_freeres): Switch to free_list_lock.
12268         * malloc/malloc.c (struct malloc_state): Update comments to
12269         mention free_list_lock.
12270
12271 2015-12-21  Siddhesh Poyarekar  <siddhesh.poyarekar@linaro.org>
12272
12273         * sysdeps/ieee754/dbl-64/s_sin.c (csloww, csloww1, csloww2):
12274         Remove functions.
12275         (sloww, sloww1): Accept argument to offset quadrant.
12276         (sloww, sloww1, sloww2): Call __mpsin or __mpcos based on
12277         quadrant.
12278         (__sin, __cos): Consolidate common code into new functions.
12279         (reduce_sincos_1, do_sincos_1): New functions.
12280         * sysdeps/ieee754/dbl-64/s_sincos.c (__sincos): Use them.
12281
12282         * sysdeps/ieee754/dbl-64/s_sin.c (__sin, __cos): Move common
12283         code to new functions.
12284         (reduce_sincos_2, do_sincos_2): New functions.
12285         * sysdeps/ieee754/dbl-64/s_sincos.c (__sincos): Use them.
12286
12287         * sysdeps/ieee754/dbl-64/s_sin.c (__sin) [!IN_SINCOS]: Skip
12288         common code for sincos.
12289         (__cos) [!IN_SINCOS]: Likewise.
12290         * sysdeps/ieee754/dbl-64/s_sincos.c (reduce_and_compute_sincos):
12291         New function.
12292         (__sincos): Use it.
12293
12294 2015-12-20  Aurelien Jarno  <aurelien@aurel32.net>
12295
12296         * sysdeps/i386/fpu/libm-test-ulps: Move to ....
12297         * sysdeps/i386/i686/multiarch/fpu/libm-test-ulps: ...here.
12298         * sysdeps/i386/fpu/libm-test-ulps: Regenerate.
12299
12300 2015-12-19  Andrew Senkevich  <andrew.senkevich@intel.com>
12301
12302         * sysdeps/x86_64/multiarch/memset-avx512-no-vzeroupper.S: New file.
12303         * sysdeps/x86_64/multiarch/Makefile (sysdep_routines): Added new file.
12304         * sysdeps/x86_64/multiarch/ifunc-impl-list.c: Added new tests.
12305         * sysdeps/x86_64/multiarch/memset.S: Added new IFUNC branch.
12306         * sysdeps/x86_64/multiarch/memset_chk.S: Likewise.
12307         * sysdeps/x86/cpu-features.h (bit_Prefer_No_VZEROUPPER,
12308         index_Prefer_No_VZEROUPPER): New feature.
12309         * sysdeps/x86/cpu-features.c (init_cpu_features): Set the
12310         Prefer_No_VZEROUPPER for Knights Landing.
12311
12312 015-12-18  Torvald Riegel  <triegel@redhat.com>
12313
12314         * math/atest-exp2.c (mp_exp_m1): Remove.
12315
12316 2015-12-17  Adhemerval Zanella  <adhemerval.zanella@linaro.org>
12317
12318         * sysdeps/unix/sysdep.h (SYSCALL_CANCEL): Fix macro for zero argument
12319         syscalls.
12320         (__SYSCALL0): New macro.
12321         (__SYSCALL1): Likewise.
12322         (__SYSCALL2): Likewise.
12323         (__SYSCALL3): Likewise.
12324         (__SYSCALL4): Likewise.
12325         (__SYSCALL5): Likewise.
12326         (__SYSCALL6): Likewise.
12327         (__SYSCALL_CONCAT_X): Likewise.
12328         (__SYSCALL_CONCAT): Likewise.
12329         (__SYSCALL_DIST): Likewise.
12330         (__SYSCALL_CALL): Likewise.
12331
12332 2015-12-17  H.J. Lu  <hongjiu.lu@intel.com>
12333
12334         [BZ #19363]
12335         * sysdeps/unix/sysv/linux/x86_64/x32/times.c: New file.
12336
12337 2015-12-17  Adhemerval Zanella  <adhemerval.zanella@linaro.org>
12338
12339         [BZ #19375]
12340         * sysdeps/powerpc/power7/fpu/s_logb.c (__logb): Fix return for
12341         negative subnormals.
12342
12343 2015-12-16  H.J. Lu  <hongjiu.lu@intel.com>
12344
12345         * sysdeps/unix/sysv/linux/x86_64/sysdep.h
12346         (REGISTERS_CLOBBERED_BY_SYSCALL): New.
12347         (INTERNAL_SYSCALL_NCS): Use it.
12348         (INTERNAL_SYSCALL_NCS_TYPES): Likewise.
12349
12350 2015-12-16  Florian Weimer  <fweimer@redhat.com>
12351
12352         [BZ #19243]
12353         * malloc/arena.c (get_free_list): Remove assert and adjust
12354         reference count handling.  Add comment about reused_arena
12355         interaction.
12356         (reused_arena): Add comments abount get_free_list interaction.
12357         * malloc/tst-malloc-thread-exit.c: New file.
12358         * malloc/Makefile (tests): Add tst-malloc-thread-exit.
12359         (tst-malloc-thread-exit): Link against libpthread.
12360
12361 2015-12-15  H.J. Lu  <hongjiu.lu@intel.com>
12362
12363         [BZ #19367]
12364         * sysdeps/unix/sysv/linux/wordsize-64/mmap.c: New file.
12365         * sysdeps/unix/sysv/linux/x86_64/64/dl-librecon.h: Likewise.
12366         * sysdeps/unix/sysv/linux/x86_64/64/mmap.c: Likewise.
12367         * sysdeps/x86/cpu-features.h (bit_Prefer_MAP_32BIT_EXEC): New.
12368         (index_Prefer_MAP_32BIT_EXEC): Likewise.
12369
12370 2015-12-15  H.J. Lu  <hongjiu.lu@intel.com>
12371
12372         * sysdeps/x86/cpu-features.c (init_cpu_features): Enable
12373         Silvermont optimizations for Knights Landing.
12374
12375 2015-12-15  Andreas Schwab  <schwab@suse.de>
12376
12377         [BZ #17197]
12378         * iconvdata/ibm930.c (BODY for TO_LOOP): Record current DBCS state
12379         immediately after emitting SI.
12380         * iconvdata/ibm933.c (BODY for TO_LOOP): Likewise.
12381         * iconvdata/ibm935.c (BODY for TO_LOOP): Likewise.
12382         * iconvdata/ibm937.c (BODY for TO_LOOP): Likewise.
12383         * iconvdata/ibm939.c (BODY for TO_LOOP): Likewise.
12384         * iconvdata/bug-iconv10.c: New file.
12385         * iconvdata/Makefile (tests): Add bug-iconv10.
12386         ($(objpfx)bug-iconv10.out): New rule.
12387
12388 2015-12-15  Florian Weimer  <fweimer@redhat.com>
12389
12390         * dlfcn/tst-rec-dlopen.c (call_func): Cast dlsym result, fixing an
12391         aliasing violation.
12392
12393 2015-12-14  Joseph Myers  <joseph@codesourcery.com>
12394
12395         [BZ #18472]
12396         * sysdeps/unix/Makefile ($(objpfx)stub-syscalls.c): Handle entries
12397         for the form NAME@VERSION:OBSOLETED and generate SHLIB_COMPAT
12398         conditionals for them.
12399         * sysdeps/unix/make-syscalls.sh (emit_weak_aliases): Likewise.
12400         * sysdeps/unix/sysv/linux/sys/kdaemon.h: Remove file.
12401         * sysdeps/unix/sysv/linux/Makefile (sysdep_headers): Remove
12402         sys/kdaemon.h.
12403         * sysdeps/unix/sysv/linux/syscalls.list (bdflush): Make into
12404         compat-only syscall, obsoleted in glibc 2.23.
12405         (create_module): Likewise.
12406         (get_kernel_syms): Likewise.
12407         (query_module): Likewise.
12408         (uselib): Likewise.
12409         * manual/sysinfo.texi (System Parameters): Do not mention bdflush.
12410
12411 2015-12-11  Aurelien Jarno  <aurelien@aurel32.net>
12412
12413         * sysdeps/unix/sysv/linux/arm/ioperm.c: Do not include
12414         <linux/version.h>.
12415         [LINUX_VERSION_CODE >= KERNEL_VERSION(2,4,23)]: Remove
12416         conditional code.
12417         (init_iosys): Use CTL_BUS_ISA instead of BUS_ISA in iobase_name
12418         and ioshift_name initialization.
12419
12420 2015-12-11  Steve Ellcey  <sellcey@imgtec.com>
12421
12422         * sysdeps/ieee754/flt-32/k_rem_pio2f.c (__kernel_rem_pio2f):
12423         Fix indentation.
12424
12425 2015-12-11  Steve Ellcey  <sellcey@imgtec.com>
12426
12427         * stdio-common/vfscanf.c (_IO_vfscanf_internal): Fix indentation.
12428
12429 2015-12-11  Steve Ellcey  <sellcey@imgtec.com>
12430
12431         * stdlib/strtol_l.c (__strtol_l): Fix indentation.
12432
12433 2015-12-10  Aurelien Jarno  <aurelien@aurel32.net>
12434             Jakub Wilk  <jwilk@debian.org>
12435
12436         [BZ #19347]
12437         * sysdeps/unix/grantpt.c [!HAVE_PT_CHOWN] (grantpt): Do not try
12438         to change the group of the device to the tty group.
12439
12440 2015-12-10  Paul Eggert  <eggert@cs.ucla.edu>
12441
12442         Split large string section; add truncation advice
12443         * manual/examples/strncat.c: Remove.
12444         This example was misleading, as the code would have undefined
12445         behavior if "hello" was longer than SIZE.  Anyway, the manual
12446         shouldn't encourage strncpy+strncat for this sort of thing.
12447         * manual/string.texi (Copying Strings and Arrays): Split into
12448         three sections Copying Strings and Arrays, Concatenating Strings,
12449         and Truncating Strings, as this section was way too long.  All
12450         cross-referenced changed.  Add advice about string-truncation
12451         functions.  Remove misleading strncat example.
12452
12453 2015-12-10  Carlos O'Donell  <carlos@redhat.com>
12454
12455         * manual/nss.texi (NSS Modules Interface): Document
12456         NSS_STATUS_NOTFOUND and SUCCESS.
12457
12458 2015-12-09  Mike FABIAN  <mfabian@redhat.com>
12459
12460         [BZ 18568]
12461         * include/stdc-predef.h (__STDC_ISO_10646__): Update to
12462         201505L, for Unicode 8.
12463
12464 2015-12-09  Carlos O'Donell  <carlos@redhat.com>
12465
12466         * locale/C-translit.h: Regenerate.
12467
12468 2015-12-09  Mike FABIAN  <mfabian@redhat.com>
12469
12470         * locale/C-translit.h.in: Remove duplicate transliterations for U+0152
12471         and U+0153.
12472
12473 2015-12-09  Joseph Myers  <joseph@codesourcery.com>
12474
12475         [BZ #19351]
12476         * sysdeps/ieee754/ldbl-128ibm/e_logl.c (__ieee754_logl): When
12477         expanding log(1+z), compare z rather than its square with epsilon
12478         to determine when to avoid evaluating the expansion.
12479
12480         [BZ #19350]
12481         * sysdeps/ieee754/ldbl-128ibm/e_sinhl.c (__ieee754_sinhl):
12482         Increase overflow threshold.
12483
12484         [BZ #19349]
12485         * sysdeps/ieee754/ldbl-128ibm/s_tanhl.c (__tanhl): Return argument
12486         when small.
12487
12488         * sysdeps/unix/sysv/linux/i386/kernel-features.h
12489         [__LINUX_KERNEL_VERSION >= 0x040300] (__ASSUME_SOCKET_SYSCALL):
12490         New macro.
12491         [__LINUX_KERNEL_VERSION >= 0x040300]
12492         (__ASSUME_SOCKETPAIR_SYSCALL): Likewise.
12493         [__LINUX_KERNEL_VERSION >= 0x040300] (__ASSUME_BIND_SYSCALL):
12494         Likewise.
12495         [__LINUX_KERNEL_VERSION >= 0x040300] (__ASSUME_CONNECT_SYSCALL):
12496         Likewise.
12497         [__LINUX_KERNEL_VERSION >= 0x040300] (__ASSUME_LISTEN_SYSCALL):
12498         Likewise.
12499         [__LINUX_KERNEL_VERSION >= 0x040300] (__ASSUME_ACCEPT4_SYSCALL):
12500         Likewise.
12501         [__LINUX_KERNEL_VERSION >= 0x040300]
12502         (__ASSUME_ACCEPT4_FOR_ACCEPT_SYSCALL): Likewise.
12503         [__LINUX_KERNEL_VERSION >= 0x040300]
12504         (__ASSUME_GETSOCKOPT_SYSCALL): Likewise.
12505         [__LINUX_KERNEL_VERSION >= 0x040300]
12506         (__ASSUME_SETSOCKOPT_SYSCALL): Likewise.
12507         [__LINUX_KERNEL_VERSION >= 0x040300]
12508         (__ASSUME_GETSOCKNAME_SYSCALL): Likewise.
12509         [__LINUX_KERNEL_VERSION >= 0x040300]
12510         (__ASSUME_GETPEERNAME_SYSCALL): Likewise.
12511         [__LINUX_KERNEL_VERSION >= 0x040300] (__ASSUME_SENDTO_SYSCALL):
12512         Likewise.
12513         [__LINUX_KERNEL_VERSION >= 0x040300]
12514         (__ASSUME_SENDTO_FOR_SEND_SYSCALL): Likewise.
12515         [__LINUX_KERNEL_VERSION >= 0x040300] (__ASSUME_SENDMSG_SYSCALL):
12516         Likewise.
12517         [__LINUX_KERNEL_VERSION >= 0x040300] (__ASSUME_RECVFROM_SYSCALL):
12518         Likewise.
12519         [__LINUX_KERNEL_VERSION >= 0x040300]
12520         (__ASSUME_RECVFROM_FOR_RECV_SYSCALL): Likewise.
12521         [__LINUX_KERNEL_VERSION >= 0x040300] (__ASSUME_RECVMSG_SYSCALL):
12522         Likewise.
12523         [__LINUX_KERNEL_VERSION >= 0x040300] (__ASSUME_SHUTDOWN_SYSCALL):
12524         Likewise.
12525         * sysdeps/unix/sysv/linux/m68k/kernel-features.h
12526         [__LINUX_KERNEL_VERSION >= 0x040300] (__ASSUME_RECVMMSG_SYSCALL):
12527         Likewise.
12528         [__LINUX_KERNEL_VERSION >= 0x040300] (__ASSUME_SENDMMSG_SYSCALL):
12529         Likewise.
12530         [__LINUX_KERNEL_VERSION >= 0x040300] (__ASSUME_SOCKET_SYSCALL):
12531         Likewise.
12532         [__LINUX_KERNEL_VERSION >= 0x040300]
12533         (__ASSUME_SOCKETPAIR_SYSCALL): Likewise.
12534         [__LINUX_KERNEL_VERSION >= 0x040300] (__ASSUME_BIND_SYSCALL):
12535         Likewise.
12536         [__LINUX_KERNEL_VERSION >= 0x040300] (__ASSUME_CONNECT_SYSCALL):
12537         Likewise.
12538         [__LINUX_KERNEL_VERSION >= 0x040300] (__ASSUME_LISTEN_SYSCALL):
12539         Likewise.
12540         [__LINUX_KERNEL_VERSION >= 0x040300] (__ASSUME_ACCEPT4_SYSCALL):
12541         Likewise.
12542         [__LINUX_KERNEL_VERSION >= 0x040300]
12543         (__ASSUME_ACCEPT4_FOR_ACCEPT_SYSCALL): Likewise.
12544         [__LINUX_KERNEL_VERSION >= 0x040300]
12545         (__ASSUME_GETSOCKOPT_SYSCALL): Likewise.
12546         [__LINUX_KERNEL_VERSION >= 0x040300]
12547         (__ASSUME_SETSOCKOPT_SYSCALL): Likewise.
12548         [__LINUX_KERNEL_VERSION >= 0x040300]
12549         (__ASSUME_GETSOCKNAME_SYSCALL): Likewise.
12550         [__LINUX_KERNEL_VERSION >= 0x040300]
12551         (__ASSUME_GETPEERNAME_SYSCALL): Likewise.
12552         [__LINUX_KERNEL_VERSION >= 0x040300] (__ASSUME_SENDTO_SYSCALL):
12553         Likewise.
12554         [__LINUX_KERNEL_VERSION >= 0x040300]
12555         (__ASSUME_SENDTO_FOR_SEND_SYSCALL): Likewise.
12556         [__LINUX_KERNEL_VERSION >= 0x040300] (__ASSUME_SENDMSG_SYSCALL):
12557         Likewise.
12558         [__LINUX_KERNEL_VERSION >= 0x040300] (__ASSUME_RECVFROM_SYSCALL):
12559         Likewise.
12560         [__LINUX_KERNEL_VERSION >= 0x040300]
12561         (__ASSUME_RECVFROM_FOR_RECV_SYSCALL): Likewise.
12562         [__LINUX_KERNEL_VERSION >= 0x040300] (__ASSUME_RECVMSG_SYSCALL):
12563         Likewise.
12564         [__LINUX_KERNEL_VERSION >= 0x040300] (__ASSUME_SHUTDOWN_SYSCALL):
12565         Likewise.
12566         * sysdeps/unix/sysv/linux/microblaze/kernel-features.h
12567         (__ASSUME_SOCKET_SYSCALL): Likewise.
12568         (__ASSUME_BIND_SYSCALL): Likewise.
12569         (__ASSUME_CONNECT_SYSCALL): Likewise.
12570         (__ASSUME_LISTEN_SYSCALL): Likewise.
12571         (__ASSUME_ACCEPT_SYSCALL): Likewise.
12572         (__ASSUME_GETSOCKNAME_SYSCALL): Likewise.
12573         (__ASSUME_GETPEERNAME_SYSCALL): Likewise.
12574         (__ASSUME_SOCKETPAIR_SYSCALL): Likewise.
12575         (__ASSUME_SEND_SYSCALL): Likewise.
12576         (__ASSUME_SENDTO_SYSCALL): Likewise.
12577         (__ASSUME_RECV_SYSCALL): Likewise.
12578         (__ASSUME_RECVFROM_SYSCALL): Likewise.
12579         (__ASSUME_SHUTDOWN_SYSCALL): Likewise.
12580         (__ASSUME_GETSOCKOPT_SYSCALL): Likewise.
12581         (__ASSUME_SETSOCKOPT_SYSCALL): Likewise.
12582         (__ASSUME_SENDMSG_SYSCALL): Likewise.
12583         (__ASSUME_RECVMSG_SYSCALL): Likewise.
12584         * sysdeps/unix/sysv/linux/sh/kernel-features.h
12585         [__LINUX_KERNEL_VERSION >= 0x020625] (__ASSUME_SOCKET_SYSCALL):
12586         Likewise.
12587         [__LINUX_KERNEL_VERSION >= 0x020625] (__ASSUME_BIND_SYSCALL):
12588         Likewise.
12589         [__LINUX_KERNEL_VERSION >= 0x020625] (__ASSUME_CONNECT_SYSCALL):
12590         Likewise.
12591         [__LINUX_KERNEL_VERSION >= 0x020625] (__ASSUME_LISTEN_SYSCALL):
12592         Likewise.
12593         [__LINUX_KERNEL_VERSION >= 0x020625] (__ASSUME_ACCEPT_SYSCALL):
12594         Likewise.
12595         [__LINUX_KERNEL_VERSION >= 0x020625]
12596         (__ASSUME_GETSOCKNAME_SYSCALL): Likewise.
12597         [__LINUX_KERNEL_VERSION >= 0x020625]
12598         (__ASSUME_GETPEERNAME_SYSCALL): Likewise.
12599         [__LINUX_KERNEL_VERSION >= 0x020625]
12600         (__ASSUME_SOCKETPAIR_SYSCALL): Likewise.
12601         [__LINUX_KERNEL_VERSION >= 0x020625] (__ASSUME_SEND_SYSCALL):
12602         Likewise.
12603         [__LINUX_KERNEL_VERSION >= 0x020625] (__ASSUME_SENDTO_SYSCALL):
12604         Likewise.
12605         [__LINUX_KERNEL_VERSION >= 0x020625] (__ASSUME_RECV_SYSCALL):
12606         Likewise.
12607         [__LINUX_KERNEL_VERSION >= 0x020625] (__ASSUME_RECVFROM_SYSCALL):
12608         Likewise.
12609         [__LINUX_KERNEL_VERSION >= 0x020625] (__ASSUME_SHUTDOWN_SYSCALL):
12610         Likewise.
12611         [__LINUX_KERNEL_VERSION >= 0x020625]
12612         (__ASSUME_GETSOCKOPT_SYSCALL): Likewise.
12613         [__LINUX_KERNEL_VERSION >= 0x020625]
12614         (__ASSUME_SETSOCKOPT_SYSCALL): Likewise.
12615         [__LINUX_KERNEL_VERSION >= 0x020625] (__ASSUME_SENDMSG_SYSCALL):
12616         Likewise.
12617         [__LINUX_KERNEL_VERSION >= 0x020625] (__ASSUME_RECVMSG_SYSCALL):
12618         Likewise.
12619
12620 2015-12-09  Aurelien Jarno  <aurelien@aurel32.net>
12621
12622         * sysdeps/unix/sysv/linux/mips/configure.ac (has-mpf64): Define to
12623         record the current if the current ABI and CPU support the FP64
12624         extension.
12625         (has-modd-spreg): Define to record the current if the current ABI and
12626         CPU support 32-bit floating point values in odd FPU registers.
12627         * sysdeps/unix/sysv/linux/mips/configure: Regenerate.
12628         * sysdeps/mips/Makefile (tst-abi-fpxxomod): Only build when
12629         $(has-modd-spreg) equals yes.
12630         (tst-abi-fp64amod): Only build when $(has-mpf64) equals yes.
12631         (tst-abi-fp64mod): Only build when both $(has-mpf64) and
12632         $(has-modd-spreg) equal yes.
12633
12634 2015-12-09  Aurelien Jarno  <aurelien@aurel32.net>
12635
12636         * sysdeps/unix/grantpt.c (grantpt): Call__basename instead of
12637         basename.
12638
12639 2015-12-08  Siddhesh Poyarekar  <sid@reserved-bit.com>
12640
12641         * benchtests/Makefile (bench-math): Move ffs and ffsll...
12642         (bench-string): ... here.
12643         (bench): Add bench-string.
12644         (string-bench, wcsmbs-bench, stdlib-bench, stdio-common-bench): Rename
12645         to *-benchset to reflect what they are.
12646         (benchset): Adjust.
12647
12648         * benchtests/sincos-inputs: Add inputs from sin-inputs and
12649         cos-inputs.
12650
12651 2015-12-07  Andrew Senkevich  <andrew.senkevich@intel.com>
12652
12653         * sysdeps/x86/fpu/bits/math-vector.h: W/o -fopenmp use GCC 6.*
12654         __attribute__ ((__simd__)) for vector math function declarations.
12655
12656 2015-12-04  Paul Eggert  <eggert@cs.ucla.edu>
12657
12658         Fix typo in strncat, wcsncat manual entries
12659         * manual/string.texi (Copying and Concatenation): Fix typos in
12660         sample implementations of strncat and wcsncat, by having them use
12661         the old value of the destination length, not the new one.
12662
12663 2015-12-04  Joseph Myers  <joseph@codesourcery.com>
12664
12665         [BZ #16961]
12666         [BZ #16962]
12667         * math/s_nan.c (__nan): Use __strtod_nan instead of constructing a
12668         string on the stack for strtod.
12669         * math/s_nanf.c (__nanf): Use __strtof_nan instead of constructing
12670         a string on the stack for strtof.
12671         * math/s_nanl.c (__nanl): Use __strtold_nan instead of
12672         constructing a string on the stack for strtold.
12673         * stdlib/Versions (libc): Add __strtof_nan, __strtod_nan and
12674         __strtold_nan to GLIBC_PRIVATE.
12675         * math/test-nan-overflow.c: New file.
12676         * math/test-nan-payload.c: Likewise.
12677         * math/Makefile (tests): Add test-nan-overflow and
12678         test-nan-payload.
12679
12680 2015-12-04  Paul Eggert  <eggert@cs.ucla.edu>
12681
12682         Consistency about byte vs character in string.texi
12683         * manual/string.texi (String and Array Utilities):
12684         Distinguish more carefully among bytes, multibyte characters,
12685         and wide characters.  Use "byte" when talking about C 'char',
12686         to distinguish it more clearly from multibyte characters.
12687         Say "wide character" or "multibyte character" instead of
12688         "character", when a wide or multibyte character is intended.
12689         Similarly for "multibyte string" versus "string".
12690         Define these terms more carefully.
12691
12692 2015-12-03  Chris Metcalf  <cmetcalf@ezchip.com>
12693
12694         * sysdeps/arm/math_private.h (LDBL_CLASSIFY_COMPAT): New symbol.
12695         * sysdeps/microblaze/math_private.h (LDBL_CLASSIFY_COMPAT):
12696         Likewise.
12697         * sysdeps/mips/math_private.h (LDBL_CLASSIFY_COMPAT): Likewise.
12698         * sysdeps/nios2/math_private.h (LDBL_CLASSIFY_COMPAT): Likewise.
12699         * sysdeps/sh/math_private.h: New file.
12700         * sysdeps/m68k/coldfire/fpu/math_private.h: Likewise.
12701         * sysdeps/ieee754/dbl-64/s_finite.c [defined NO_LONG_DOUBLE &&
12702         defined LDBL_CLASSIFY_COMPAT]: Create compat symbol for internal
12703         long double function name.
12704         * sysdeps/ieee754/dbl-64/s_isinf.c: Likewise.
12705         * sysdeps/ieee754/dbl-64/s_isnan.c: Likewise.
12706         * sysdeps/ieee754/dbl-64/wordsize-64/s_finite.c: Likewise.
12707         * sysdeps/ieee754/dbl-64/wordsize-64/s_isinf.c: Likewise.
12708         * sysdeps/ieee754/dbl-64/wordsize-64/s_isnan.c: Likewise.
12709         * sysdeps/unix/sysv/linux/tile/tilegx/tilegx32/libc.abilist:
12710         Remove __finitel, __isinfl, and __isnanl.
12711         * sysdeps/unix/sysv/linux/tile/tilegx/tilegx64/libc.abilist:
12712         Likewise.
12713         * sysdeps/unix/sysv/linux/tile/tilepro/libc.abilist: Likewise.
12714         * sysdeps/unix/sysv/linux/tile/tilegx/tilegx32/libm.abilist:
12715         Remove __finitel.
12716         * sysdeps/unix/sysv/linux/tile/tilegx/tilegx64/libm.abilist:
12717         Likewise.
12718         * sysdeps/unix/sysv/linux/tile/tilepro/libm.abilist: Likewise.
12719
12720 2015-12-03  Andrew Senkevich  <andrew.senkevich@intel.com>
12721
12722         * math/Makefile ($(inst_libdir)/libm.so): Corrected path to
12723         installed libmvec_nonshared.a.
12724
12725 2015-12-03  Carlos Eduardo Seo  <cseo@linux.vnet.ibm.com>
12726
12727         * sysdeps/powerpc/Makefile (sysdep-dl-routines): Add hwcapinfo.
12728         (sysdep_routines): Likewise.
12729         (sysdep-rtld-routines): Likewise.
12730         [$(subdir) = nptl](tests): Add test-get_hwcap and test-get_hwcap-static
12731         [$(subdir) = nptl](tests-static): test-get_hwcap-static
12732         * sysdeps/powerpc/Versions: Added new
12733         __parse_hwcap_and_convert_at_platform symbol to GLIBC-2.23.
12734         * sysdeps/powerpc/hwcapinfo.c: New file.
12735         (__tcb_parse_hwcap_and_convert_at_platform): New function to initialize
12736         and parse hwcap, hwcap2 and platform number information.
12737         * sysdeps/powerpc/hwcapinfo.h: New file.  Creates global variables
12738         to store HWCAP+HWCAP2 and platform number.
12739         * sysdeps/powerpc/nptl/tcb-offsets.sym: Added new offsets
12740         for HWCAP+HWCAP2 and platform number in the TCB.
12741         * sysdeps/powerpc/nptl/tls.h: New functionality.  Stores
12742         the HWCAP, HWCAP2 and platform number in the TCB.
12743         (dtv): Added new fields for HWCAP+HWCAP2 and platform number.
12744         (TLS_INIT_TP): Included calls to add the hwcap and
12745         at_platform values in the TCB in TP initialization.
12746         (TLS_DEFINE_INIT_TP): Likewise.
12747         (THREAD_GET_HWCAP): New macro.
12748         (THREAD_SET_HWCAP): Likewise.
12749         (THREAD_GET_AT_PLATFORM): Likewise.
12750         (THREAD_SET_AT_PLATFORM): Likewise.
12751         * sysdeps/powerpc/powerpc32/dl-machine.h:
12752         (dl_platform_init): New function that calls
12753         __parse_hwcap_and_convert_at_platform for the dymanic linking case for
12754         powerpc32.
12755         * sysdeps/powerpc/powerpc64/dl-machine.h: Likewise, for powerpc64.
12756         * sysdeps/powerpc/test-get_hwcap-static.c: New file.  Testcase for
12757         this functionality, static linking case.
12758         * sysdeps/powerpc/test-get_hwcap.c: New file.  Likewise, dynamic
12759         linking case.
12760         * sysdeps/unix/sysv/linux/powerpc/libc-start.c: Added call to
12761         __parse_hwcap_and_convert_at_platform for the static linking case.
12762         * sysdeps/unix/sysv/linux/powerpc/powerpc32/ld.abilist:
12763         Included the new __parse_hwcap_and_convert_at_platform symbol in the
12764         ABI list for GLIBC 2.23.
12765         * sysdeps/unix/sysv/linux/powerpc/powerpc64/ld-le.abilist:
12766         Likewise.
12767         * sysdeps/unix/sysv/linux/powerpc/powerpc64/ld.abilist:
12768         Likewise.
12769
12770 2015-12-02  Ludovic Courtès  <ludo@gnu.org>
12771
12772         * configure.ac: Use 'pwd -P' instead of '/bin/pwd'.
12773         * configure: Regenerate.
12774         * io/ftwtest-sh: Use 'pwd -P' instead of '/bin/pwd'.
12775         * scripts/rellns-sh: Likewise.  Remove 'pwd' variable.
12776
12777 2015-12-02  Carlos O'Donell  <carlos@redhat.com>
12778
12779         * iconvdata/ibm930.c: Add comment explaining encoding uses.
12780         * iconvdata/ibm933.c: Likewise.
12781         * iconvdata/ibm935.c: Likewise.
12782         * iconvdata/ibm937.c: Likewise.
12783         * iconvdata/ibm939.c: Likewise.
12784
12785 2015-12-02  Adhemerval Zanella  <adhemerval.zanella@linaro.org>
12786
12787         * nptl/tst-cancel20.c (do_one_test): Move the pipe closing after
12788         pthread_join.
12789         * nptl/tst-cancel21.c (tf): Likewise.
12790
12791 2015-12-01  H.J. Lu  <hongjiu.lu@intel.com>
12792
12793         [BZ #19313]
12794         * bits/typesizes.h (__CPU_MASK_TYPE): New.
12795         * sysdeps/mach/hurd/bits/typesizes.h (__CPU_MASK_TYPE): Likewise.
12796         * sysdeps/nacl/bits/typesizes.h (__CPU_MASK_TYPE): Likewise.
12797         * sysdeps/unix/sysv/linux/alpha/bits/typesizes.h (__CPU_MASK_TYPE):
12798         Likewise.
12799         * sysdeps/unix/sysv/linux/generic/bits/typesizes.h (__CPU_MASK_TYPE):
12800         Likewise.
12801         * sysdeps/unix/sysv/linux/s390/bits/typesizes.h (__CPU_MASK_TYPE):
12802         Likewise.
12803         * sysdeps/unix/sysv/linux/sparc/bits/typesizes.h (__CPU_MASK_TYPE):
12804         Likewise.
12805         * sysdeps/unix/sysv/linux/x86/bits/typesizes.h (__CPU_MASK_TYPE):
12806         * sysdeps/unix/sysv/linux/bits/sched.h (__cpu_mask): Replace
12807         unsigned long int with __CPU_MASK_TYPE.
12808
12809 2015-12-01  Szabolcs Nagy  <szabolcs.nagy@arm.com>
12810
12811         * sysdeps/aarch64/libm-test-ulps: Regenerated.
12812
12813 2015-12-01  Joseph Myers  <joseph@codesourcery.com>
12814
12815         * sysdeps/ieee754/dbl-64/e_sqrt.c: Do not include uroot.h.
12816         (__ieee754_sqrt): Use hex float constants instead of tm256.x and
12817         t512.x.
12818         * sysdeps/ieee754/dbl-64/uroot.h: Remove file.
12819
12820 2015-11-30  Amit Pawar  <amit.pawar@amd.com>
12821
12822         [BZ #19214]
12823         * sysdeps/x86/cpu-features.c (get_common_indeces): Add an
12824         argument to return extended model.  Update family and model
12825         with extended family and model when family == 0x0f.
12826         (init_cpu_features): Updated.
12827
12828 2015-11-29  Samuel Thibault  <samuel.thibault@ens-lyon.org>
12829
12830         The RPC interface used by mmap uses the unsigned vm_offset_t, not the
12831         signed off_t, so 32bit bigger than 2GiB values are fine actually.
12832
12833         * sysdeps/mach/hurd/mmap64.c: New file.
12834
12835 2015-11-29  Thomas Schwinge  <thomas@codesourcery.com>
12836
12837         * sysdeps/mach/hurd/fork.c (__fork): Install correct number of send
12838         rights for its main user thread in NEWTASK.
12839
12840 2015-11-28  Maciej W. Rozycki  <macro@imgtec.com>
12841
12842         * sysdeps/mips/fpu_control.h (_FPU_RESERVED): Include ABS2008.
12843         (_FPU_DEFAULT, _FPU_IEEE) [__mips_nan2008]: Set ABS2008.
12844
12845 2015-11-27  Carlos O'Donell  <carlos@redhat.com>
12846
12847         [BZ #14259]
12848         * Makeconfig: Rename localedir to complocaledir.
12849         Rename inst_localedir to inst_complocaledir.
12850         * aclocal.m4: Rename libc_cv_localedir to libc_cv_complocaledir.
12851         * config.make.in: Use complocaledir and libc_cv_complocaledir.
12852         * configure.ac: Use libc_cv_complocaledir.
12853         * configure: Regenerate.
12854         * locale/Makefile: Use complocaledir. Rename define -DLOCALEDIR to
12855         -DCOMPLOCALEDIR.
12856         * locale/findlocale.c: Use COMPLOCALEDIR.
12857         * locale/loadarchive.c: Likewise.
12858         * locale/programs/locale.c: Likewise.
12859         * locale/programs/localedef.c: Likewise.
12860         * locale/programs/locarchive.c: Likewise.
12861         * localedata/Makefile: Use inst_complocaledir.
12862         * sysdeps/gnu/configure: Regenerate.
12863         * sysdeps/hppa/configure: Regenerate.
12864         * sysdeps/unix/sysv/linux/aarch64/configure: Regenerate.
12865         * sysdeps/unix/sysv/linux/mips/configure: Regenerate.
12866         * sysdeps/unix/sysv/linux/powerpc/powerpc64/configure: Regenerate.
12867         * sysdeps/unix/sysv/linux/s390/s390-64/configure: Regenerate.
12868         * sysdeps/unix/sysv/linux/sparc/sparc64/configure: Regenerate.
12869         * sysdeps/unix/sysv/linux/x86_64/64/configure: Regenerate.
12870         * sysdeps/unix/sysv/linux/x86_64/x32/configure: Regenerate.
12871
12872 2015-11-27  Andrew Senkevich  <andrew.senkevich@intel.com>
12873
12874         [BZ #19058]
12875         * math/Makefile ($(inst_libdir)/libm.so): Added libmvec_nonshared.a to
12876         AS_NEEDED.
12877         * sysdeps/x86/fpu/bits/math-vector.h: Removed code with asm aliases
12878         workaround.
12879         * sysdeps/x86_64/fpu/Makefile (libmvec-support,
12880         libmvec-static-only-routines): Added new file.
12881         * sysdeps/x86_64/fpu/svml_finite_alias.S: New file.
12882
12883 2015-11-25  Samuel Thibault  <samuel.thibault@ens-lyon.org>
12884
12885         * hurd/sigunwind.c (_hurdsig_longjmp_from_handler): Destroy reply port
12886         of interrupted RPC instead of restoring it.
12887
12888         * sysdeps/i386/setjmp.S (__sigsetjmp): Add hidden_def.
12889         * sysdeps/mach/hurd/accept4.c (__libc_accept4): Remove
12890         libc_hidden_def.
12891         * sysdeps/mach/hurd/dl-sysdep.c (__libc_stack_end): Initialize to get
12892         into initialized data instead of common. Define rtld_hidden_data_def.
12893         * sysdeps/mach/hurd/fxstatat64.c (__fxstatat64): Add libc_hidden_def.
12894         * sysdeps/mach/hurd/if_index.c (__if_freenameindex): Add
12895         libc_hidden_def.
12896         (if_freenameindex): Add libc_hidden_weak.
12897         (if_nameindex): Add libc_hidden_weak.
12898         * sysdeps/mach/hurd/open.c (_open64): Rename libc_hidden_weak into
12899         __open64.
12900         * sysdeps/mach/hurd/sigwait.c (__sigwait): Add libc_hidden_def.
12901         * sysdeps/mach/hurd/xmknodat.c (__xmknodat): Add libc_hidden_def.
12902         * sysdeps/mach/nanosleep.c: Include <time.h>
12903         (__nanosleep): Rename to __libc_nanosleep.
12904         (__nanosleep): Add weak_alias.
12905         (nanosleep): Update alias.
12906
12907 2015-11-24  Joseph Myers  <joseph@codesourcery.com>
12908
12909         * stdlib/strtod_nan.c: New file.
12910         * stdlib/strtod_nan_double.h: Likewise.
12911         * stdlib/strtod_nan_float.h: Likewise.
12912         * stdlib/strtod_nan_main.c: Likewise.
12913         * stdlib/strtod_nan_narrow.h: Likewise.
12914         * stdlib/strtod_nan_wide.h: Likewise.
12915         * stdlib/strtof_nan.c: Likewise.
12916         * stdlib/strtold_nan.c: Likewise.
12917         * sysdeps/ieee754/ldbl-128/strtod_nan_ldouble.h: Likewise.
12918         * sysdeps/ieee754/ldbl-128ibm/strtod_nan_ldouble.h: Likewise.
12919         * sysdeps/ieee754/ldbl-96/strtod_nan_ldouble.h: Likewise.
12920         * wcsmbs/wcstod_nan.c: Likewise.
12921         * wcsmbs/wcstof_nan.c: Likewise.
12922         * wcsmbs/wcstold_nan.c: Likewise.
12923         * stdlib/Makefile (routines): Add strtof_nan, strtod_nan and
12924         strtold_nan.
12925         * wcsmbs/Makefile (routines): Add wcstod_nan, wcstold_nan and
12926         wcstof_nan.
12927         * include/stdlib.h (__strtof_nan): Declare and use
12928         libc_hidden_proto.
12929         (__strtod_nan): Likewise.
12930         (__strtold_nan): Likewise.
12931         (__wcstof_nan): Likewise.
12932         (__wcstod_nan): Likewise.
12933         (__wcstold_nan): Likewise.
12934         * include/wchar.h (____wcstoull_l_internal): Declare.
12935         * stdlib/strtod_l.c: Do not include <ieee754.h>.
12936         (____strtoull_l_internal): Remove declaration.
12937         (STRTOF_NAN): Define macro.
12938         (SET_MANTISSA): Remove macro.
12939         (STRTOULL): Likewise.
12940         (____STRTOF_INTERNAL): Use STRTOF_NAN to parse NaN payload.
12941         * stdlib/strtof_l.c (____strtoull_l_internal): Remove declaration.
12942         (STRTOF_NAN): Define macro.
12943         (SET_MANTISSA): Remove macro.
12944         * sysdeps/ieee754/ldbl-128/strtold_l.c (STRTOF_NAN): Define macro.
12945         (SET_MANTISSA): Remove macro.
12946         * sysdeps/ieee754/ldbl-128ibm/strtold_l.c (STRTOF_NAN): Define
12947         macro.
12948         (SET_MANTISSA): Remove macro.
12949         * sysdeps/ieee754/ldbl-64-128/strtold_l.c (STRTOF_NAN): Define
12950         macro.
12951         (SET_MANTISSA): Remove macro.
12952         * sysdeps/ieee754/ldbl-96/strtold_l.c (STRTOF_NAN): Define macro.
12953         (SET_MANTISSA): Remove macro.
12954         * wcsmbs/wcstod_l.c (____wcstoull_l_internal): Remove declaration.
12955         * wcsmbs/wcstof_l.c (____wcstoull_l_internal): Likewise.
12956         * wcsmbs/wcstold_l.c (____wcstoull_l_internal): Likewise.
12957
12958         [BZ #19266]
12959         * stdlib/strtod_l.c (____STRTOF_INTERNAL): Check directly for
12960         upper case and lower case letters inside NAN(), not using TOLOWER.
12961         * stdlib/tst-strtod-nan-locale-main.c: New file.
12962         * stdlib/tst-strtod-nan-locale.c: Likewise.
12963         * stdlib/Makefile (tests): Add tst-strtod-nan-locale.
12964         [$(run-built-tests) = yes] ($(objpfx)tst-strtod-nan-locale.out):
12965         Depend on $(gen-locales).
12966         ($(objpfx)tst-strtod-nan-locale): Depend on $(libm).
12967         * wcsmbs/tst-wcstod-nan-locale.c: New file.
12968         * wcsmbs/Makefile (tests): Add tst-wcstod-nan-locale.
12969         [$(run-built-tests) = yes] ($(objpfx)tst-wcstod-nan-locale.out):
12970         Depend on $(gen-locales).
12971         ($(objpfx)tst-wcstod-nan-locale): Depend on $(libm).
12972
12973 2015-11-24  Chris Metcalf  <cmetcalf@ezchip.com>
12974
12975         * misc/tst-tsearch.c (TIMEOUT): Set to 10.
12976
12977         * sysdeps/tile/bits/mathdef.h (__NO_LONG_DOUBLE_MATH): Define.
12978         * sysdeps/unix/sysv/linux/tile/tilegx/tilegx32/libc.abilist: Add
12979         __finitel, __isinfl, and __isnanl.
12980         * sysdeps/unix/sysv/linux/tile/tilegx/tilegx64/libc.abilist:
12981         Likewise.
12982         * sysdeps/unix/sysv/linux/tile/tilepro/libc.abilist: Likewise.
12983         * sysdeps/unix/sysv/linux/tile/tilegx/tilegx32/libm.abilist: Add
12984         __finitel.
12985         * sysdeps/unix/sysv/linux/tile/tilegx/tilegx64/libm.abilist:
12986         Likewise.
12987         * sysdeps/unix/sysv/linux/tile/tilepro/libm.abilist: Likewise.
12988
12989 2015-11-24  Gleb Fotengauer-Malinovskiy  <glebfm@altlinux.org>
12990
12991         * malloc/memusage.c (me): Remove redundant getenv call.
12992
12993 2015-10-24  Florian Weimer  <fweimer@redhat.com>
12994
12995         [BZ #19143]
12996         [BZ #19164]
12997         * nptl/check-cpuset.h: Remove.
12998         * nptl/pthread_attr_setaffinity.c (__pthread_attr_setaffinity_new):
12999         Remove CPU set size check.
13000         * nptl/pthread_setattr_default_np.c (pthread_setattr_default_np):
13001         Likewise.
13002         * sysdeps/unix/sysv/linux/check-cpuset.h: Remove.
13003         * sysdeps/unix/sysv/linux/pthread_setaffinity.c
13004         (__kernel_cpumask_size, __determine_cpumask_size): Remove.
13005         (__pthread_setaffinity_new): Remove CPU set size check.
13006         * sysdeps/unix/sysv/linux/sched_setaffinity.c
13007         (__kernel_cpumask_size): Remove.
13008         (__sched_setaffinity_new): Remove CPU set size check.
13009         * manual/threads.texi (Default Thread Attributes): Remove stale
13010         reference to check_cpuset_attr, determine_cpumask_size in comment.
13011         * sysdeps/unix/sysv/linux/Makefile [$(subdir) == posix] (tests):
13012         Remove tst-getcpu.  Add tst-affinity, tst-affinity-pid.
13013         [$(subdir) == nptl] (tests): Add tst-thread-affinity-pthread,
13014         tst-thread-affinity-pthread2, tst-thread-affinity-sched.
13015         * sysdeps/unix/sysv/linux/tst-affinity.c: New file.
13016         * sysdeps/unix/sysv/linux/tst-affinity-pid.c: New file.
13017         * sysdeps/unix/sysv/linux/tst-skeleton-affinity.c: New skeleton test file.
13018         * sysdeps/unix/sysv/linux/tst-thread-affinity-sched.c: New file.
13019         * sysdeps/unix/sysv/linux/tst-thread-affinity-pthread.c: New file.
13020         * sysdeps/unix/sysv/linux/tst-thread-affinity-pthread2.c: New file.
13021         * sysdeps/unix/sysv/linux/tst-thread-skeleton-affinity.c: New
13022         skeleton test file.
13023         * sysdeps/unix/sysv/linux/tst-getcpu.c: Remove.  Superseded by
13024         tst-affinity-pid.
13025
13026 2015-11-24  Florian Weimer  <fweimer@redhat.com>
13027
13028         * scripts/update-abilist.sh: New file.
13029         * Makefile (+subdir_targets): Add subdir_update-all-abi.
13030         * Makerules (update-all-abi-%, update-all-abi)
13031         (subdir_update-all-abi): New targets.
13032         * elf/Makefile (update-all-abi): New target.
13033
13034 2015-11-24  Florian Weimer  <fweimer@redhat.com>
13035
13036         Replace MUTEX_INITIALIZER with _LIBC_LOCK_INITIALIZER in generic code.
13037         * sysdeps/mach/hurd/libc-lock.h (_LIBC_LOCK_INITIALIZER): Define.
13038         (__libc_lock_define_initialized): Use it.
13039         * sysdeps/nptl/libc-lockP.h (_LIBC_LOCK_INITIALIZER): Define.
13040         * malloc/arena.c (list_lock): Use _LIBC_LOCK_INITIALIZER.
13041         * malloc/malloc.c (main_arena): Likewise.
13042         * sysdeps/generic/malloc-machine.h (MUTEX_INITIALIZER): Remove.
13043         * sysdeps/nptl/malloc-machine.h (MUTEX_INITIALIZER): Remove.
13044
13045 2015-11-23  Joseph Myers  <joseph@codesourcery.com>
13046
13047         * sysdeps/unix/sysv/linux/aarch64/sys/ptrace.h
13048         (PTRACE_O_EXITKILL): New value in enum __ptrace_setoptions.
13049         (PTRACE_O_SUSPEND_SECCOMP): Likewise.
13050         (PTRACE_O_MASK): Update value.
13051         * sysdeps/unix/sysv/linux/ia64/sys/ptrace.h (PTRACE_O_EXITKILL):
13052         New value in enum __ptrace_setoptions.
13053         (PTRACE_O_SUSPEND_SECCOMP): Likewise.
13054         (PTRACE_O_MASK): Update value.
13055         * sysdeps/unix/sysv/linux/powerpc/sys/ptrace.h
13056         (PTRACE_O_SUSPEND_SECCOMP): New value in enum __ptrace_setoptions.
13057         (PTRACE_O_MASK): Update value.
13058         * sysdeps/unix/sysv/linux/s390/sys/ptrace.h
13059         (PTRACE_O_SUSPEND_SECCOMP): New value in enum __ptrace_setoptions.
13060         (PTRACE_O_MASK): Update value.
13061         * sysdeps/unix/sysv/linux/sparc/sys/ptrace.h
13062         (PTRACE_O_SUSPEND_SECCOMP): New value in enum __ptrace_setoptions.
13063         (PTRACE_O_MASK): Update value.
13064         * sysdeps/unix/sysv/linux/sys/ptrace.h (PTRACE_O_SUSPEND_SECCOMP):
13065         New value in enum __ptrace_setoptions.
13066         (PTRACE_O_MASK): Update value.
13067         * sysdeps/unix/sysv/linux/tile/sys/ptrace.h (PTRACE_O_EXITKILL):
13068         New value in enum __ptrace_setoptions.
13069         (PTRACE_O_SUSPEND_SECCOMP): Likewise.
13070         (PTRACE_O_MASK): Update value.
13071
13072         * sysdeps/unix/sysv/linux/netpacket/packet.h (PACKET_COPY_THRESH):
13073         New macro.
13074         (PACKET_AUXDATA): Likewise.
13075         (PACKET_ORIGDEV): Likewise.
13076         (PACKET_VERSION): Likewise.
13077         (PACKET_HDRLEN): Likewise.
13078         (PACKET_RESERVE): Likewise.
13079         (PACKET_TX_RING): Likewise.
13080         (PACKET_LOSS): Likewise.
13081         (PACKET_VNET_HDR): Likewise.
13082         (PACKET_TX_TIMESTAMP): Likewise.
13083         (PACKET_TIMESTAMP): Likewise.
13084         (PACKET_FANOUT): Likewise.
13085         (PACKET_TX_HAS_OFF): Likewise.
13086         (PACKET_QDISC_BYPASS): Likewise.
13087         (PACKET_ROLLOVER_STATS): Likewise.
13088         (PACKET_FANOUT_DATA): Likewise.
13089         (PACKET_MR_UNICAST): Likewise.
13090
13091         [BZ #19242]
13092         * stdlib/strtol_l.c (ISALPHA): Use _nl_C_locobj_ptr for locale.
13093         (TOUPPER): Likewise.
13094         * stdlib/tst-strtol-locale-main.c: New file.
13095         * stdlib/tst-strtol-locale.c: Likewise.
13096         * stdlib/Makefile (tests): Add tst-strtol-locale.
13097         [$(run-built-tests) = yes] (LOCALES): Add tr_TR.ISO-8859-9.
13098         [$(run-built-tests) = yes] ($(objpfx)tst-strtol-locale.out):
13099         Depend on $(gen-locales).
13100         * wcsmbs/tst-wcstol-locale.c: New file.
13101         * wcsmbs/Makefile (tests): Add tst-wcstol-locale.
13102         [$(run-built-tests) = yes] (LOCALES): Add tr_TR.UTF-8 and
13103         tr_TR.ISO-8859-9.
13104         [$(run-built-tests) = yes] ($(objpfx)tst-wcstol-locale.out):
13105         Depend on $(gen-locales).
13106
13107 2015-11-20  Roland McGrath  <roland@hack.frob.com>
13108
13109         * sysdeps/nacl/dl-map-segments.h (_dl_map_segments): Use
13110         __glibc_likely instead of __builtin_expect.  After falling back to
13111         dyncode_create in a non-ET_DYN case, use the allocate_code_data
13112         system interface to register the code pages as occupied.
13113
13114 2015-11-20  Joseph Myers  <joseph@codesourcery.com>
13115
13116         * sysdeps/arm/math_private.h [!_MATH_PRIVATE_H]: Change guard to
13117         [!ARM_MATH_PRIVATE_H].
13118         [!ARM_MATH_PRIVATE_H] (ARM_MATH_PRIVATE_H): Define macro.
13119         * sysdeps/hppa/math_private.h [!_MATH_PRIVATE_H]: Change guard to
13120         [!HPPA_MATH_PRIVATE_H].
13121         [!HPPA_MATH_PRIVATE_H] (HPPA_MATH_PRIVATE_H): Define macro.
13122         * sysdeps/i386/fpu/math_private.h [!_MATH_PRIVATE_H]: Change guard
13123         to [!I386_MATH_PRIVATE_H].
13124         [!I386_MATH_PRIVATE_H] (I386_MATH_PRIVATE_H): Define macro.
13125         * sysdeps/m68k/m680x0/fpu/math_private.h [!_MATH_PRIVATE_H]:
13126         Change guard to [!M68K_MATH_PRIVATE_H].
13127         [!M68K_MATH_PRIVATE_H] (M68K_MATH_PRIVATE_H): Define macro.
13128         * sysdeps/microblaze/math_private.h [!_MATH_PRIVATE_H]: Change
13129         guard to [!MICROBLAZE_MATH_PRIVATE_H].
13130         [!MICROBLAZE_MATH_PRIVATE_H] (MICROBLAZE_MATH_PRIVATE_H): Define
13131         macro.
13132         * sysdeps/mips/math_private.h [!_MATH_PRIVATE_H]: Change guard to
13133         [!MIPS_MATH_PRIVATE_H].
13134         [!MIPS_MATH_PRIVATE_H] (MIPS_MATH_PRIVATE_H): Define macro.
13135         * sysdeps/nios2/math_private.h [!_MATH_PRIVATE_H]: Change guard to
13136         [!NIO2_MATH_PRIVATE_H].
13137         [!NIO2_MATH_PRIVATE_H] (NIO2_MATH_PRIVATE_H): Define macro.
13138         * sysdeps/tile/math_private.h [!_MATH_PRIVATE_H]: Change guard to
13139         [!TILE_MATH_PRIVATE_H].
13140         [!TILE_MATH_PRIVATE_H] (TILE_MATH_PRIVATE_H): Define macro.
13141
13142         [BZ #15421]
13143         * sysdeps/ieee754/s_signgam.c (signgam): Rename to __signgam,
13144         initialize with 0 and define as weak alias of __signgam.
13145         * include/math.h [!_ISOMAC] (__signgam): Declare.
13146         * math/Makefile (libm-calls): Add w_lgamma_compat.
13147         (tests): Add test-signgam-uchar, test-signgam-uchar-init,
13148         test-signgam-uint, test-signgam-uint-init, test-signgam-ullong and
13149         test-signgam-ullong-init.
13150         (tests-static): Add test-signgam-uchar-static,
13151         test-signgam-uchar-init-static, test-signgam-uint-static,
13152         test-signgam-uint-init-static, test-signgam-ullong-static and
13153         test-signgam-ullong-init-static.
13154         (CFLAGS-test-signgam-uchar.c): New variable.
13155         (CFLAGS-test-signgam-uchar-init.c): Likewise.
13156         (CFLAGS-test-signgam-uchar-static.c): Likewise.
13157         (CFLAGS-test-signgam-uchar-init-static.c): Likewise.
13158         (CFLAGS-test-signgam-uint.c): Likewise.
13159         (CFLAGS-test-signgam-uint-init.c): Likewise.
13160         (CFLAGS-test-signgam-uint-static.c): Likewise.
13161         (CFLAGS-test-signgam-uint-init-static.c): Likewise.
13162         (CFLAGS-test-signgam-ullong.c): Likewise.
13163         (CFLAGS-test-signgam-ullong-init.c): Likewise.
13164         (CFLAGS-test-signgam-ullong-static.c): Likewise.
13165         (CFLAGS-test-signgam-ullong-init-static.c): Likewise.
13166         * math/Versions (libm): Add GLIBC_2.23.
13167         * math/lgamma-compat.h: New file.
13168         * math/test-signgam-main.c: Likewise.
13169         * math/test-signgam-uchar-init-static.c: Likewise.
13170         * math/test-signgam-uchar-init.c: Likewise.
13171         * math/test-signgam-uchar-static.c: Likewise.
13172         * math/test-signgam-uchar.c: Likewise.
13173         * math/test-signgam-uint-init-static.c: Likewise.
13174         * math/test-signgam-uint-init.c: Likewise.
13175         * math/test-signgam-uint-static.c: Likewise.
13176         * math/test-signgam-uint.c: Likewise.
13177         * math/test-signgam-ullong-init-static.c: Likewise.
13178         * math/test-signgam-ullong-init.c: Likewise.
13179         * math/test-signgam-ullong-static.c: Likewise.
13180         * math/test-signgam-ullong.c: Likewise.
13181         * math/w_lgamma.c: Rename to w_lgamma_main.c and replace by
13182         wrapper of w_lgamma_main.c.
13183         * math/w_lgamma_compat.c: New file.
13184         * math/w_lgamma_compatf.c: Likewise.
13185         * math/w_lgamma_compatl.c: Likewise.
13186         * math/w_lgamma_main.c: New file.  Based on w_lgamma.c.  Include
13187         <lgamma-compat.h>.  Condition contents on [BUILD_LGAMMA].  Support
13188         defining compatibility symbols.
13189         (__lgamma): Change to LGFUNC (__lgamma).  Use CALL_LGAMMA.
13190         * math/w_lgammaf.c: Rename to w_lgammaf_main.c and replace by
13191         wrapper of w_lgammaf_main.c.
13192         * math/w_lgammaf_main.c: New file.  Based on w_lgammaf.c.  Include
13193         <lgamma-compat.h>.  Condition contents on [BUILD_LGAMMA].  Support
13194         defining compatibility symbols.
13195         (__lgammaf): Change to LGFUNC (__lgammaf).  Use CALL_LGAMMA.
13196         * math/w_lgammal.c: Rename to w_lgammal_main.c and replace by
13197         wrapper of w_lgammal_main.c.
13198         * math/w_lgammal_main.c: New file.  Based on w_lgammal.c.  Include
13199         <lgamma-compat.h>.  Condition contents on [BUILD_LGAMMA].  Support
13200         defining compatibility symbols.
13201         (__lgammal): Change to LGFUNC (__lgammal).  Use CALL_LGAMMA.
13202         * sysdeps/ia64/fpu/lgamma-compat.h: New file.
13203         * sysdeps/ia64/fpu/w_lgamma.c: Move to ....
13204         * sysdeps/ia64/fpu/w_lgamma_main.c: ...here.  Include
13205         <lgamma-compat.h>.
13206         (__ieee754_lgamma): Change to LGFUNC (lgamma).  Use CALL_LGAMMA.
13207         (__ieee754_gamma): Define as alias.
13208         * sysdeps/ia64/fpu/w_lgammaf.c: Move to ....
13209         * sysdeps/ia64/fpu/w_lgammaf_main.c: ...here.  Include
13210         <lgamma-compat.h>.
13211         (__ieee754_lgammaf): Change to LGFUNC (lgammaf).  Use CALL_LGAMMA.
13212         (__ieee754_gammaf): Define as alias.
13213         * sysdeps/ia64/fpu/w_lgammal.c: Move to ....
13214         * sysdeps/ia64/fpu/w_lgammal_main.c: ...here.  Include
13215         <lgamma-compat.h>.
13216         (__ieee754_lgammal): Change to LGFUNC (lgammal).  Use CALL_LGAMMA.
13217         (__ieee754_gammal): Define as alias.
13218         * sysdeps/ieee754/ldbl-opt/w_lgamma.c: Move to ....
13219         * sysdeps/ieee754/ldbl-opt/w_lgamma_compat.c: ...here.  Include
13220         <math/w_lgamma_compat.c>.
13221         [LONG_DOUBLE_COMPAT(libm, GLIBC_2_0)] (__lgammal_dbl_compat):
13222         Define as alias of __lgamma_compat and use in defining lgammal.
13223         * sysdeps/ieee754/ldbl-opt/w_lgammal.c: Move to ....
13224         * sysdeps/ieee754/ldbl-opt/w_lgamma_compatl.c: ...here.  Include
13225         <math/lgamma-compat.h> and <math/w_lgamma_compatl.c>.
13226         (USE_AS_COMPAT): New macro.
13227         (LGAMMA_OLD_VER): Undefine and redefine.
13228         (lgammal): Do not define here.
13229         (gammal): Only define here if [GAMMA_ALIAS].
13230         * conform/linknamespace.pl (@whitelist): Remove signgam.
13231         * sysdeps/nacl/libm.abilist: Update.
13232         * sysdeps/unix/sysv/linux/aarch64/libm.abilist: Likewise.
13233         * sysdeps/unix/sysv/linux/alpha/libm.abilist: Likewise.
13234         * sysdeps/unix/sysv/linux/arm/libm.abilist: Likewise.
13235         * sysdeps/unix/sysv/linux/hppa/libm.abilist: Likewise.
13236         * sysdeps/unix/sysv/linux/i386/libm.abilist: Likewise.
13237         * sysdeps/unix/sysv/linux/ia64/libm.abilist: Likewise.
13238         * sysdeps/unix/sysv/linux/m68k/coldfire/libm.abilist: Likewise.
13239         * sysdeps/unix/sysv/linux/m68k/m680x0/libm.abilist: Likewise.
13240         * sysdeps/unix/sysv/linux/microblaze/libm.abilist: Likewise.
13241         * sysdeps/unix/sysv/linux/mips/mips32/libm.abilist: Likewise.
13242         * sysdeps/unix/sysv/linux/mips/mips64/libm.abilist: Likewise.
13243         * sysdeps/unix/sysv/linux/nios2/libm.abilist: Likewise.
13244         * sysdeps/unix/sysv/linux/powerpc/powerpc32/fpu/libm.abilist:
13245         Likewise.
13246         * sysdeps/unix/sysv/linux/powerpc/powerpc32/nofpu/libm.abilist:
13247         Likewise.
13248         * sysdeps/unix/sysv/linux/powerpc/powerpc64/libm-le.abilist:
13249         Likewise.
13250         * sysdeps/unix/sysv/linux/powerpc/powerpc64/libm.abilist:
13251         Likewise.
13252         * sysdeps/unix/sysv/linux/s390/s390-32/libm.abilist: Likewise.
13253         * sysdeps/unix/sysv/linux/s390/s390-64/libm.abilist: Likewise.
13254         * sysdeps/unix/sysv/linux/sh/libm.abilist: Likewise.
13255         * sysdeps/unix/sysv/linux/sparc/sparc32/libm.abilist: Likewise.
13256         * sysdeps/unix/sysv/linux/sparc/sparc64/libm.abilist: Likewise.
13257         * sysdeps/unix/sysv/linux/tile/tilegx/tilegx32/libm.abilist:
13258         Likewise.
13259         * sysdeps/unix/sysv/linux/tile/tilegx/tilegx64/libm.abilist:
13260         Likewise.
13261         * sysdeps/unix/sysv/linux/tile/tilepro/libm.abilist: Likewise.
13262         * sysdeps/unix/sysv/linux/x86_64/64/libm.abilist: Likewise.
13263         * sysdeps/unix/sysv/linux/x86_64/x32/libm.abilist: Likewise.
13264
13265 2015-11-20  Adhemerval Zanella  <adhemerval.zanella@linaro.org>
13266
13267         [BZ #16364]
13268         * sysdeps/unix/sysv/linux/sleep.c: Remove file.
13269         * sysdeps/posix/sleep.c (__sleep): Simplify cancellation handling.
13270
13271 2015-11-20  Stefan Liebler  <stli@linux.vnet.ibm.com>
13272
13273         * sysdeps/s390/fpu/bits/mathinline.h:
13274         Use __asm__ [__volatile__] instead of asm [volatile].
13275         * sysdeps/s390/abort-instr.h: Likewise.
13276         * sysdeps/s390/atomic-machine.h: Likewise.
13277         * sysdeps/s390/bits/string.h: Likewise.
13278         * sysdeps/s390/dl-tls.h: Likewise.
13279         * sysdeps/s390/fpu/e_sqrt.c: Likewise.
13280         * sysdeps/s390/fpu/e_sqrtf.c: Likewise.
13281         * sysdeps/s390/fpu/e_sqrtl.c: Likewise.
13282         * sysdeps/s390/fpu/fesetround.c: Likewise.
13283         * sysdeps/s390/fpu/fpu_control.h: Likewise.
13284         * sysdeps/s390/fpu/s_fma.c: Likewise.
13285         * sysdeps/s390/fpu/s_fmaf.c: Likewise.
13286         * sysdeps/s390/memusage.h: Likewise.
13287         * sysdeps/s390/multiarch/ifunc-resolve.h: Likewise.
13288         * sysdeps/s390/nptl/pthread_spin_lock.c: Likewise.
13289         * sysdeps/s390/nptl/pthread_spin_trylock.c: Likewise.
13290         * sysdeps/s390/nptl/pthread_spin_unlock.c: Likewise.
13291         * sysdeps/s390/nptl/tls.h: Likewise.
13292         * sysdeps/s390/s390-32/__longjmp.c: Likewise.
13293         * sysdeps/s390/s390-32/backtrace.c: Likewise.
13294         * sysdeps/s390/s390-32/dl-machine.h: Likewise.
13295         * sysdeps/s390/s390-32/multiarch/memcmp.c: Likewise.
13296         * sysdeps/s390/s390-32/stackguard-macros.h: Likewise.
13297         * sysdeps/s390/s390-32/tls-macros.h: Likewise.
13298         * sysdeps/s390/s390-64/__longjmp.c: Likewise.
13299         * sysdeps/s390/s390-64/backtrace.c: Likewise.
13300         * sysdeps/s390/s390-64/dl-machine.h: Likewise.
13301         * sysdeps/s390/s390-64/iso-8859-1_cp037_z900.c: Likewise.
13302         * sysdeps/s390/s390-64/multiarch/memcmp.c: Likewise.
13303         * sysdeps/s390/s390-64/stackguard-macros.h: Likewise.
13304         * sysdeps/s390/s390-64/tls-macros.h: Likewise.
13305         * sysdeps/s390/s390-64/utf16-utf32-z9.c: Likewise.
13306         * sysdeps/s390/s390-64/utf8-utf16-z9.c: Likewise.
13307         * sysdeps/s390/s390-64/utf8-utf32-z9.c: Likewise.
13308         * sysdeps/unix/sysv/linux/s390/brk.c: Likewise.
13309         * sysdeps/unix/sysv/linux/s390/elision-trylock.c: Likewise.
13310         * sysdeps/unix/sysv/linux/s390/s390-32/____longjmp_chk.c: Likewise.
13311         * sysdeps/unix/sysv/linux/s390/s390-32/sysdep.h: Likewise.
13312         * sysdeps/unix/sysv/linux/s390/s390-64/____longjmp_chk.c: Likewise.
13313         * sysdeps/unix/sysv/linux/s390/s390-64/sysdep.h: Likewise.
13314         * sysdeps/unix/sysv/linux/s390/sysconf.c: Likewise.
13315
13316 2015-11-19  Adhemerval Zanella  <azanella@linux.vnet.ibm.com>
13317             Paul E. Murphy  <murphyp@linux.vnet.ibm.com>
13318
13319         * sysdeps/powerpc/nptl/pthread_spin_lock.c (pthread_spin_lock):
13320         Add lwarx hint, and use macro for acquire instruction.
13321         * sysdeps/powerpc/nptl/pthread_spin_trylock.c (pthread_spin_trylock):
13322         Likewise.
13323         * sysdep/unix/sysv/linux/powerpc/pthread_spin_unlock.c: Move to ...
13324         * sysdeps/powerpc/nptl/pthread_spin_unlock.c: ... here, and
13325         update to use new atomic macros.
13326
13327 2015-11-19  Paul E. Murphy  <murphyp@linux.vnet.ibm.com>
13328
13329         * sysdeps/unix/sysv/linux/powerpc/elision-trylock.c
13330         (__lll_trylock_elision): Fix setting of adapt_count.
13331         * sysdeps/unix/sysv/linux/powerpc/htm.h
13332         (_ABORT_PERSISTENT): Define to clarify persistent aborts.
13333         (_ABORT_NESTED_TRYLOCK): Renumber, and make persistent.
13334         (_ABORT_SYSCALL): Renumber, and clarify definition.
13335         (_ABORT_LOCK_BUSY): Renumber, make non-persistent.
13336
13337 2015-11-19  Paul E. Murphy  <murphyp@linux.vnet.ibm.com>
13338
13339         * sysdeps/ieee754/ldbl-128ibm/mpn2ldl.c: Include gmp headers
13340         after system headers to prevent MIN/MAX redefinition.  Define
13341         HAVE_ALLOCA to preserve builtin alloca usage.
13342
13343 2015-11-17  Siddhesh Poyarekar  <siddhesh.poyarekar@linaro.org>
13344
13345         * sysdeps/ieee754/dbl-64/s_sin.c (__sin)[IN_SINCOS]: Mark function
13346         static and don't set or restore rounding.
13347         (__cos)[IN_SINCOS]: Likewise.
13348         * sysdeps/ieee754/dbl-64/s_sincos.c: Include s_sin.c.
13349         (__sincos): Set and restore rounding mode.  Remove check for infinite
13350         or NaN input.
13351
13352         * sysdeps/ieee754/dbl-64/s_sin.c: Remove redundant else clauses.
13353
13354         * benchtests/scripts/bench.py (_print_arg_data): Mark output variables
13355         as used.
13356
13357 2015-11-16  Florian Weimer  <fweimer@redhat.com>
13358
13359         * math/test-signgam-finite-c99.c (_Mlong_double_): Undefine.
13360
13361 2015-11-14  H.J. Lu  <hongjiu.lu@intel.com>
13362
13363         * config.make.in (have-glob-dat-reloc): New.
13364         * configure.ac (libc_cv_has_glob_dat): New.  Set to yes if
13365         target supports GLOB_DAT relocaton. AC_SUBST.
13366         * configure: Regenerated.
13367         * elf/Makefile (tests): Add tst-prelink.
13368         (tests-special): Add $(objpfx)tst-prelink-cmp.out.
13369         (tst-prelink-ENV): New.
13370         ($(objpfx)tst-prelink-conflict.out): Likewise.
13371         ($(objpfx)tst-prelink-cmp.out): Likewise.
13372         * sysdeps/x86/tst-prelink.c: Moved to ...
13373         * elf/tst-prelink.c: Here.
13374         * sysdeps/x86/tst-prelink.exp: Moved to ...
13375         * elf/tst-prelink.exp: Here.
13376         * sysdeps/x86/Makefile (tests): Don't add tst-prelink.
13377         (tst-prelink-ENV): Removed.
13378         ($(objpfx)tst-prelink-conflict.out): Likewise.
13379         ($(objpfx)tst-prelink-cmp.out): Likewise.
13380         (tests-special): Don't add $(objpfx)tst-prelink-cmp.out.
13381
13382 2015-11-13  Joseph Myers  <joseph@codesourcery.com>
13383
13384         [BZ #14551]
13385         * sysdeps/ieee754/ldbl-128ibm/mpn2ldbl.c: Include <errno.h>.
13386         (__mpn_construct_long_double): If high part overflows to infinity,
13387         set errno and recompute overflowed result of the correct sign.
13388         * sysdeps/ieee754/ldbl-128ibm/Makefile
13389         [$(subdir) = stdlib] (tests): Add tst-strtold-ldbl-128ibm.
13390         [$(subdir) = stdlib] ($(objpfx)tst-strtold-ldbl-128ibm): Depend on
13391         $(libm).
13392         * sysdeps/ieee754/ldbl-128ibm/tst-strtold-ldbl-128ibm.c: New file.
13393
13394 2015-11-12  Joseph Myers  <joseph@codesourcery.com>
13395
13396         [BZ #15479]
13397         [BZ #19238]
13398         * sysdeps/powerpc/powerpc32/fpu/s_round.S (__round): Save
13399         floating-point state after first operation on input.  Restore full
13400         state rather than just rounding mode.
13401         * sysdeps/powerpc/powerpc32/fpu/s_roundf.S (__roundf): Likewise.
13402         * sysdeps/powerpc/powerpc64/fpu/s_round.S (__round): Likewise.
13403         * sysdeps/powerpc/powerpc64/fpu/s_roundf.S (__roundf): Likewise.
13404
13405         [BZ #19235]
13406         * sysdeps/powerpc/powerpc64/fpu/s_llround.S (__llround): Do not
13407         add 0.5 to integer arguments.
13408         * sysdeps/powerpc/powerpc64/fpu/s_llroundf.S (__llroundf):
13409         Likewise.
13410         (.LC2): New object.
13411
13412 2015-11-11  Mike Frysinger  <vapier@gentoo.org>
13413
13414         * scripts/pylintrc (reports): Set to no.
13415
13416 2015-11-10  Roland McGrath  <roland@hack.frob.com>
13417
13418         * elf/dl-load.c (open_verify): Take new argument FD.
13419         Skip __open call if passed FD is not -1.
13420         (_dl_map_object, open_path): Update callers.
13421         * elf/dl-sysdep-open.h: New file.
13422         * elf/dl-load.c: Include it.
13423         (_dl_map_object): Try _dl_sysdep_open_object before ldconfig cache.
13424         * sysdeps/nacl/dl-sysdep.c (_dl_sysdep_open_object): New function.
13425         * sysdeps/nacl/dl-sysdep-open.h: New file.
13426         * sysdeps/nacl/nacl-interface-list.h: Move nacl_irt_resource_open
13427         from libc to rtld.
13428
13429 2015-11-10  Joseph Myers  <joseph@codesourcery.com>
13430
13431         [BZ #19228]
13432         * sysdeps/powerpc/powerpc32/fpu/s_nearbyint.S (__nearbyint): Save
13433         and restore full floating-point state.
13434         * sysdeps/powerpc/powerpc32/fpu/s_nearbyintf.S (__nearbyintf):
13435         Likewise.
13436         * sysdeps/powerpc/powerpc64/fpu/s_nearbyint.S (__nearbyint):
13437         Likewise.
13438         * sysdeps/powerpc/powerpc64/fpu/s_nearbyintf.S (__nearbyintf):
13439         Likewise.
13440         * math/test-nearbyint-except-2.c: New file.
13441         * math/Makefile (tests): Add test-nearbyint-except-2.
13442
13443 2015-11-10  H.J. Lu  <hongjiu.lu@intel.com>
13444
13445         [BZ #19178]
13446         * sysdeps/x86/Makefile (tests): Add tst-prelink.
13447         (tst-prelink-ENV): New.
13448         ($(objpfx)tst-prelink-conflict.out): Likewise.
13449         ($(objpfx)tst-prelink-cmp.out): Likewise.
13450         (tests-special): Add $(objpfx)tst-prelink-cmp.out.
13451         * sysdeps/x86/tst-prelink.c: New file.
13452         * sysdeps/x86/tst-prelink.exp: Likewise.
13453
13454 2015-11-10  Joseph Myers  <joseph@codesourcery.com>
13455
13456         * math/auto-libm-test-in: Add another test of pow.
13457         * math/auto-libm-test-out: Regenerated.
13458         * math/libm-test.inc (pow_test_data): Add another test.
13459
13460 2015-11-10  Adhemerval Zanella  <adhemerval.zanella@linaro.org>
13461
13462         [BZ #19219]
13463         * sysdeps/ia64/fpu/s_nearbyintl.S (__nearbyint): Define and
13464         weak_alias to nearbyintl.
13465
13466 2015-11-10  Wilco Dijkstra  <wdijkstr@arm.com>
13467
13468         * sysdeps/aarch64/bits/string.h: New file.
13469         (_STRING_ARCH_unaligned): Define.
13470
13471 2015-11-10  Wilco Dijkstra  <wdijkstr@arm.com>
13472
13473         * sysdeps/unix/sysv/linux/aarch64/localplt.data: Remove __signbit*.
13474         * sysdeps/unix/sysv/linux/arm/localplt.data: Likewise.
13475         * sysdeps/unix/sysv/linux/microblaze/localplt.data: Likewise.
13476         * sysdeps/unix/sysv/linux/nios2/localplt.data: Likewise.
13477         * sysdeps/unix/sysv/linux/powerpc/powerpc32/nofpu/localplt.data: Likewise.
13478
13479 2015-11-09  Ulrich Drepper  <drepper@gmail.com>
13480
13481         * elf/dl-load.c (_dl_map_object_from_fd): Add additional parameter
13482         for original name of the DSO.  Add it to the name list of the DSO
13483         if it is actually given.
13484         (_dl_map_object): Keep track of whether an audit module rewrote
13485         the file name.  If yes, pass the original name to
13486         _dl_map_object_from_fd in a new parameter, otherwise NULL.  When
13487         debugging is enabled, log the change of the file name.
13488         * sysdeps/mach/hur/dl-sysdep.c: Adjust commented-out call to
13489         _dl_map_object_from_fd.
13490         * elf/Makefile: Build and run tst-audit11 and tst-audit12.
13491         * elf/tst-audit11.c: New file
13492         * elf/tst-auditmod11.c: New file.
13493         * elf/tst-audit11mod1.c: New file.
13494         * elf/tst-audit11mod2.c: New file.
13495         * elf/tst-audit11mod2.map: New file.
13496         * elf/tst-audit12.c: New file
13497         * elf/tst-auditmod12.c: New file.
13498         * elf/tst-audit12mod1.c: New file.
13499         * elf/tst-audit12mod2.c: New file.
13500         * elf/tst-audit12mod2.map: New file.
13501         * elf/tst-audit12mod3.c: New file.
13502
13503 2015-11-09  Stefan Liebler  <stli@linux.vnet.ibm.com>
13504
13505         * sysdeps/s390/longjmp.c (longjmp, _longjmp, siglongjmp):
13506         Don't create weak aliases,
13507         because versioned symbols are created later.
13508         * sysdeps/s390/s390-32/setjmp.S
13509         (setjmp, _setjmp): Remove weak and rename to an unique name
13510         in SHARED case due to existing versioned symbols.
13511         * sysdeps/s390/s390-64/setjmp.S: Likewise.
13512         * sysdeps/unix/sysv/linux/s390/s390-32/getcontext.S
13513         (getcontext): Create weak alias only in non SHARED case.
13514         * sysdeps/unix/sysv/linux/s390/s390-64/getcontext.S: Likewise.
13515
13516 2015-11-09  Stefan Liebler  <stli@linux.vnet.ibm.com>
13517
13518         * sysdeps/unix/sysv/linux/s390/kernel-features.h:
13519         (__ASSUME_*_SYSCALL) Define new macros.
13520         * sysdeps/unix/sysv/linux/s390/s390-64/syscalls.list:
13521         Remove socketcall syscalls.
13522         * sysdeps/unix/sysv/linux/accept.c (__libc_accept):
13523         Use accept4 if defined __ASSUME_ACCEPT4_FOR_ACCEPT_SYSCALL.
13524         * sysdeps/unix/sysv/linux/recv.c (__libc_recv):
13525         Use recvfrom if defined __ASSUME_RECVFROM_FOR_RECV_SYSCALL.
13526         * sysdeps/unix/sysv/linux/send.c (__libc_send):
13527         Use sendto if defined __ASSUME_SENDTO_FOR_SEND_SYSCALL.
13528
13529 2015-11-09  Florian Weimer  <fweimer@redhat.com>
13530
13531         [BZ #12926]
13532         Terminate process on invalid netlink response.
13533         * sysdeps/unix/sysv/linux/netlinkaccess.h
13534         (__netlink_assert_response): Declare.
13535         * sysdeps/unix/sysv/linux/netlink_assert_response.c: New file.
13536         * sysdeps/unix/sysv/linux/Makefile [$(subdir) == inet]
13537         (sysdep_routines): Add netlink_assert_response.
13538         * sysdeps/unix/sysv/linux/check_native.c (__check_native): Call
13539         __netlink_assert_response.
13540         * sysdeps/unix/sysv/linux/check_pf.c (make_request): Likewise.
13541         * sysdeps/unix/sysv/linux/ifaddrs.c (__netlink_request): Likewise.
13542         * sysdeps/unix/sysv/linux/Versions (GLIBC_PRIVATE): Add
13543         __netlink_assert_response.
13544
13545 2015-11-07  H.J. Lu  <hongjiu.lu@intel.com>
13546
13547         [BZ #19178]
13548         * elf/dl-lookup.c (RTYPE_CLASS_VALID): New.
13549         (RTYPE_CLASS_PLT): Likewise.
13550         (RTYPE_CLASS_COPY): Likewise.
13551         (RTYPE_CLASS_TLS): Likewise.
13552         (_dl_debug_bindings): Use RTYPE_CLASS_TLS and RTYPE_CLASS_VALID
13553         to set relocation type class for DL_DEBUG_PRELINK.  Keep only
13554         ELF_RTYPE_CLASS_PLT and ELF_RTYPE_CLASS_COPY bits for
13555         DL_DEBUG_PRELINK.
13556
13557 2015-11-06  Joseph Myers  <joseph@codesourcery.com>
13558
13559         * math/test-signgam-finite.c (RUN_TESTS): Correct messages about
13560         calls with argument -0.5.
13561         * math/test-signgam-finite-c99.c (RUN_TESTS): Likewise.
13562
13563         * configure.ac (libc_cv_z_nodelete): Remove configure test.
13564         (libc_cv_z_nodlopen): Likewise.
13565         (libc_cv_z_initfirst): Likewise.
13566         * configure: Regenerated.
13567
13568 2015-11-06  Florian Weimer  <fweimer@redhat.com>
13569
13570         Simplify abilist format to be line-based.
13571         * scripts/abilist.awk: Collect descriptors in the descs variable.
13572         (emit): Write descs variable and sort it
13573         externally, with sort.
13574         * sysdeps/**/*.abilist: Convert to new format.
13575
13576 2015-11-06  Mark Wielaard  <mjw@redhat.com>
13577
13578         [BZ #11460]
13579         * io/Makefile (routines): Add fts64.
13580         (tests): Add tst-fts and tst-fts-lfs.
13581         (CFLAGS-fts64.c): New.
13582         * io/Versions (GLIBC_2.23): New.
13583         * io/fts.c: Replace FTS with FTSOBJ, FTSENT with FTSENTRY. Use
13584         function defines FTS_OPEN, FTS_CLOSE, FTS_READ, FTS_SET and
13585         FTS_CHILDREN. Define FTSOBJ, FTSENTRY, FTS_OPEN, FTS_CLOSE,
13586         FTS_READ, FTS_SET, FTS_CHILDREN, INO_T, STAT and LSTAT if necessary.
13587         * io/fts.h (FTS64): New if _USE_LARGEFILE64.
13588         (FTSENT64): Likewise.
13589         (fts64_children): Likewise.
13590         (fts64_close): Likewise.
13591         (fts64_open): Likewise.
13592         (fts64_read): Likewise.
13593         (fts64_set): Likewise.
13594         * io/fts64.c: New file.
13595         * io/tst-fts.c: New test.
13596         * io/tst-fts-lfs.c: Likewise.
13597         * sysdeps/unix/sysv/linux/aarch64/libc.abilist (GLIBC_2.23): Add
13598         GLIBC_2.23, fts64_children, fts64_close, fts64_open, fts64_read and
13599         fts64_set.
13600         * sysdeps/unix/sysv/linux/alpha/libc.abilist: Likewise.
13601         * sysdeps/unix/sysv/linux/arm/libc.abilist: Likewise.
13602         * sysdeps/unix/sysv/linux/hppa/libc.abilist: Likewise.
13603         * sysdeps/unix/sysv/linux/i386/libc.abilist: Likewise.
13604         * sysdeps/unix/sysv/linux/ia64/libc.abilist: Likewise.
13605         * sysdeps/unix/sysv/linux/m68k/coldfire/libc.abilist: Likewise.
13606         * sysdeps/unix/sysv/linux/m68k/m680x0/libc.abilist: Likewise.
13607         * sysdeps/unix/sysv/linux/microblaze/libc.abilist: Likewise.
13608         * sysdeps/unix/sysv/linux/mips/mips32/fpu/libc.abilist: Likewise.
13609         * sysdeps/unix/sysv/linux/mips/mips32/nofpu/libc.abilist: Likewise.
13610         * sysdeps/unix/sysv/linux/mips/mips64/n32/libc.abilist: Likewise.
13611         * sysdeps/unix/sysv/linux/mips/mips64/n64/libc.abilist: Likewise.
13612         * sysdeps/unix/sysv/linux/nios2/libc.abilist: Likewise.
13613         * sysdeps/unix/sysv/linux/powerpc/powerpc32/fpu/libc.abilist:
13614         Likewise.
13615         * sysdeps/unix/sysv/linux/powerpc/powerpc32/nofpu/libc.abilist:
13616         Likewise.
13617         * sysdeps/unix/sysv/linux/powerpc/powerpc64/libc.abilist: Likewise.
13618         * sysdeps/unix/sysv/linux/powerpc/powerpc64/libc-le.abilist: Likewise.
13619         * sysdeps/unix/sysv/linux/s390/s390-32/libc.abilist: Likewise.
13620         * sysdeps/unix/sysv/linux/s390/s390-64/libc.abilist: Likewise.
13621         * sysdeps/unix/sysv/linux/sh/libc.abilist: Likewise.
13622         * sysdeps/unix/sysv/linux/sparc/sparc32/libc.abilist: Likewise.
13623         * sysdeps/unix/sysv/linux/sparc/sparc64/libc.abilist: Likewise.
13624         * sysdeps/unix/sysv/linux/tile/tilegx/tilegx32/libc.abilist: Likewise.
13625         * sysdeps/unix/sysv/linux/tile/tilegx/tilegx64/libc.abilist: Likewise.
13626         * sysdeps/unix/sysv/linux/tile/tilepro/libc.abilist: Likewise.
13627         * sysdeps/unix/sysv/linux/x86_64/64/libc.abilist: Likewise.
13628         * sysdeps/unix/sysv/linux/x86_64/x32/libc.abilist: Likewise.
13629         * sysdeps/wordsize-64/fts.c: New file.
13630         * sysdeps/wordsize-64/fts64.c: Likewise.
13631         * sysdeps/unix/sysv/linux/mips/mips64/n64/fts.c: Likewise.
13632         * sysdeps/unix/sysv/linux/mips/mips64/n64/fts64.c: Likewise.
13633         * sysdeps/unix/sysv/linux/x86_64/x32/fts.c: likewise.
13634         * sysdeps/unix/sysv/linux/x86_64/x32/fts64.c: likewise.
13635
13636 2015-11-05  Joseph Myers  <joseph@codesourcery.com>
13637
13638         * math/libm-test.inc (NON_FINITE): New macro.
13639         (enable_test): Do not run tests flagged NON_FINITE if TEST_FINITE.
13640         * math/gen-libm-test.pl (show_exceptions): Add argument
13641         $non_finite.
13642         (parse_args): Update call to show_exceptions.
13643         * math/test-math-finite.h: New file.
13644         * math/test-math-no-finite.h: Likewise.
13645         * math/test-double-finite.c: Likewise.
13646         * math/test-float-finite.c: Likewise.
13647         * math/test-ldouble-finite.c: Likewise.
13648         * math/test-double.c: Include "test-math-no-finite.h".
13649         * math/test-float.c: Include "test-math-no-finite.h".
13650         * math/test-ldouble.c: Include "test-math-no-finite.h".
13651         * math/test-math-inline.h (TEST_FINITE): New macro.
13652         * math/test-math-vector.h (TEST_FINITE): Likewise.
13653         * math/Makefile (test-longdouble-yes): Add test-ldouble-finite.
13654         (libm-tests): Add test-float-finite and test-double-finite.
13655         ($(objpfx)test-float-finite.o): New dependency on
13656         $(objpfx)libm-test.stmp.
13657         ($(objpfx)test-double-finite.o): Likewise.
13658         ($(objpfx)test-ldouble-finite.o): Likewise.
13659         (libm-test-no-inline-cflags): New variable.
13660         (libm-test-finite-cflags): Likewise.
13661         (CFLAGS-test-float-finite.c): Likewise.
13662         (CFLAGS-test-double-finite.c): Likewise.
13663         (CFLAGS-test-ldouble-finite.c): Likewise.
13664         (CFLAGS-test-float.c): Use $(libm-test-no-inline-cflags).
13665         (CFLAGS-test-double.c): Likewise.
13666         (CFLAGS-test-ldouble.c): Likewise.
13667
13668 2015-11-05  Roland McGrath  <roland@hack.frob.com>
13669
13670         * io/fcntl.c (__fcntl): Add ... to prototype.
13671         * misc/ioctl.c (__ioctl): Likewise.
13672         * misc/syscall.c (syscall): Likewise.
13673
13674 2015-11-05  Joseph Myers  <joseph@codesourcery.com>
13675
13676         * scripts/list-fixed-bugs.py: New file.
13677
13678         [BZ #19213]
13679         * sysdeps/i386/fpu/e_log.S (__log_finite): Ensure +0 is always
13680         returned for argument 1.
13681         * sysdeps/i386/fpu/e_logf.S (__logf_finite): Likewise.
13682         * sysdeps/i386/fpu/e_logl.S (__logl_finite): Likewise.
13683         * sysdeps/i386/i686/fpu/e_logl.S (__logl_finite): Likewise.
13684         * sysdeps/x86_64/fpu/e_log10l.S (__log10l_finite): Likewise.
13685         * sysdeps/x86_64/fpu/e_log2l.S (__log2l_finite): Likewise.
13686         * sysdeps/x86_64/fpu/e_logl.S (__logl_finite): Likewise.
13687
13688         [BZ #19211]
13689         * math/bits/math-finite.h (lgamma): Set signgam if [__USE_MISC ||
13690         __USE_XOPEN], not if [!__USE_ISOC99].
13691         (lgammaf): Likewise.
13692         (lgammal): Likewise.
13693         (gamma): Set signgam unconditionally, not if [!__USE_ISOC99].
13694         (gammaf): Likewise.
13695         (gammal): Likewise.
13696         * math/test-signgam-finite-c11.c: New file.
13697         * math/test-signgam-finite-c99.c: Likewise.
13698         * math/test-signgam-finite.c: Likewise.
13699         * math/Makefile (tests): Add test-signgam-finite,
13700         test-signgam-finite-c99 and test-signgam-finite-c11.
13701         (CFLAGS-test-signgam-finite.c): New variable.
13702         (CFLAGS-test-signgam-finite-c99.c): Likewise.
13703         (CFLAGS-test-signgam-finite-c11.c): Likewise.
13704
13705         [BZ #19212]
13706         * include/features.h [(_XOPEN_SOURCE - 0) >= 500]: Change
13707         conditional to [defined _XOPEN_SOURCE && (_XOPEN_SOURCE - 0) >=
13708         500].
13709         [_POSIX_C_SOURCE >= 1]: Change conditional to [defined
13710         _POSIX_C_SOURCE && _POSIX_C_SOURCE >= 1].
13711         [(_POSIX_C_SOURCE - 0) >= 199309L]: Change conditional to [defined
13712         _POSIX_C_SOURCE && (_POSIX_C_SOURCE - 0) >= 199309L].
13713         [(_POSIX_C_SOURCE - 0) >= 199506L]: Change conditional to [defined
13714         _POSIX_C_SOURCE && (_POSIX_C_SOURCE - 0) >= 199506L].
13715         [(_POSIX_C_SOURCE - 0) >= 200112L]: Change conditional to [defined
13716         _POSIX_C_SOURCE && (_POSIX_C_SOURCE - 0) >= 200112L].
13717         [(_POSIX_C_SOURCE - 0) >= 200809L]: Change conditional to [defined
13718         _POSIX_C_SOURCE && (_POSIX_C_SOURCE - 0) >= 200809L].
13719
13720         [BZ #19209]
13721         * math/bits/math-finite.h (ldexp): Remove declaration.
13722         (ldexpf): Likewise.
13723         (ldexpl): Likewise.
13724
13725         [BZ #19205]
13726         * math/bits/math-finite.h (acosf): Condition declaration on
13727         [__USE_ISOC99].
13728         (acosl): Likewise.
13729         (acoshf): Likewise.
13730         (acoshl): Likewise.
13731         (asinf): Likewise.
13732         (asinl): Likewise.
13733         (atan2f): Likewise.
13734         (atan2l): Likewise.
13735         (atanhf): Likewise.
13736         (atanhl): Likewise.
13737         (coshf): Likewise.
13738         (coshl): Likewise.
13739         (expf): Likewise.
13740         (expl): Likewise.
13741         (fmodf): Likewise.
13742         (fmodl): Likewise.
13743         (hypot): Change condition to [__USE_XOPEN || __USE_ISOC99].
13744         (j0f): Change condition to [__USE_MISC && __USE_ISOC99].
13745         (j0l): Likewise.
13746         (y0f): Likewise.
13747         (y0l): Likewise.
13748         (j1f): Likewise.
13749         (j1l): Likewise.
13750         (y1f): Likewise.
13751         (y1l): Likewise.
13752         (jnf): Likewise.
13753         (jnl): Likewise.
13754         (ynf): Likewise.
13755         (ynl): Likewise.
13756         (lgammaf_r): Condition declaration on [__USE_ISOC99].
13757         (lgammal_r): Likewise.
13758         (__lgamma_r_finite): New declaration.
13759         (__lgammaf_r_finite): Likewise.
13760         (__lgammal_r_finite): Likewise.
13761         (lgamma): Use __lgamma_r_finite.
13762         (lgammaf): Condition definition on [__USE_ISOC99].  Use
13763         __lgammaf_r_finite.
13764         (lgammal): Condition definition on [__USE_ISOC99].  Use
13765         __lgammal_r_finite.
13766         (gamma): Do not define for [!__USE_MISC && __USE_XOPEN2K].  Use
13767         __lgamma_r_finite.
13768         (gammaf): Condition definition on [__USE_ISOC99].  Use
13769         __lgammaf_r_finite.
13770         (gammal): Condition definition on [__USE_ISOC99].  Use
13771         __lgammal_r_finite.
13772         (logf): Condition declaration on [__USE_ISOC99].
13773         (logl): Likewise.
13774         (log10f): Likewise.
13775         (log10l): Likewise.
13776         (ldexpf): Likewise.
13777         (ldexpl): Likewise.
13778         (powf): Likewise.
13779         (powl): Likewise.
13780         (remainder): Condition declaration on [__USE_XOPEN_EXTENDED ||
13781         __USE_ISOC99].
13782         (remainderf): Condition declaration on [__USE_ISOC99].
13783         (remainderl): Likewise.
13784         (scalb): Do not declare for [!__USE_MISC && __USE_XOPEN2K8].
13785         (scalbf): Change condition to [__USE_MISC && __USE_ISOC99].
13786         (scalbl): Likewise.
13787         (sinhf): Condition declaration on [__USE_ISOC99].
13788         (sinhl): Likewise.
13789         (sqrtf): Likewise.
13790         (sqrtl): Likewise.
13791
13792 2015-11-04  Joseph Myers  <joseph@codesourcery.com>
13793
13794         * sysdeps/arm/atomic-machine.h
13795         [__GNUC_PREREQ (4, 7) && __GCC_HAVE_SYNC_COMPARE_AND_SWAP_4]:
13796         Change conditional to [__GCC_HAVE_SYNC_COMPARE_AND_SWAP_4].
13797         [__GCC_HAVE_SYNC_COMPARE_AND_SWAP_4 && !__GNUC_PREREQ (4, 7)]:
13798         Remove conditional code.
13799         [!__GNUC_PREREQ (4, 7) || !__GCC_HAVE_SYNC_COMPARE_AND_SWAP_4]:
13800         Change conditional to [!__GCC_HAVE_SYNC_COMPARE_AND_SWAP_4].
13801         * sysdeps/i386/sysdep.h [__ASSEMBLER__ && __GNUC_PREREQ (4, 7)]:
13802         Change conditional to [__ASSEMBLER__].
13803         [__ASSEMBLER__ && !__GNUC_PREREQ (4, 7)]: Remove conditional code.
13804         [!__ASSEMBLER__ && __GNUC_PREREQ (4, 7)]: Change conditional to
13805         [!__ASSEMBLER__].
13806         [!__ASSEMBLER__ && !__GNUC_PREREQ (4, 7)]: Remove conditional
13807         code.
13808         * sysdeps/unix/sysv/linux/sh/atomic-machine.h (rNOSP): Remove
13809         conditional macro definitions.
13810         (__arch_compare_and_exchange_val_8_acq): Use "u" instead of rNOSP.
13811         (__arch_compare_and_exchange_val_16_acq): Likewise.
13812         (__arch_compare_and_exchange_val_32_acq): Likewise.
13813         (atomic_exchange_and_add): Likewise.
13814         (atomic_add): Likewise.
13815         (atomic_add_negative): Likewise.
13816         (atomic_add_zero): Likewise.
13817         (atomic_bit_set): Likewise.
13818         (atomic_bit_test_set): Likewise.
13819         * sysdeps/x86_64/atomic-machine.h [__GNUC_PREREQ (4, 7)]: Make
13820         code unconditional.
13821         [!__GNUC_PREREQ (4, 7)]: Remove conditional code.
13822
13823         * math/test-math-errno.h: New file.
13824         * math/test-math-inline.h (TEST_INLINE): Define to 1 instead of
13825         empty.
13826         (TEST_ERRNO): New macro.
13827         (TEST_EXCEPTIONS): Likewise.
13828         * math/test-math-no-inline.h (TEST_INLINE): Likewise.
13829         (TEST_EXCEPTIONS): Likewise.
13830         * math/test-math-vector.h (TEST_ERRNO): Likewise.
13831         * math/test-double.c: Include "test-math-errno.h".
13832         * math/test-float.c: Likewise.
13833         * math/test-ldouble.c: Likewise.
13834         * math/libm-test.inc (test_single_exception) [!TEST_INLINE]: Make
13835         code unconditional.
13836         (test_exceptions): Only run code if TEST_EXCEPTIONS.
13837         (test_single_errno) [!TEST_INLINE && !TEST_MATHVEC]: Make code
13838         unconditional.
13839         (test_errno): Only run code if TEST_ERRNO.
13840         (enable_test): Use "if" conditional on TEST_INLINE, not #ifdef.
13841
13842 2015-11-04  Florian Weimer  <fweimer@redhat.com>
13843
13844         * nptl/tst-once5.cc: Remove attribution.
13845
13846 2015-11-04  Joseph Myers  <joseph@codesourcery.com>
13847
13848         * math/auto-libm-test-in: Add more tests of sin, sincos, sinh,
13849         sqrt, tan, tanh, y0, y1 and yn.
13850         * math/auto-libm-test-out: Regenerated.
13851         * math/libm-test.inc (scalb_test_data): Add more tests.
13852         (scalbn_test_data): Likewise.
13853         (scalbln_test_data): Likewise.
13854         (signbit_test_data): Likewise.
13855         (sin_test_data): Likewise.
13856         (sincos_test_data): Likewise.
13857         (sinh_test_data): Likewise.
13858         (sqrt_test_data): Likewise.
13859         (tan_test_data): Likewise.
13860         (tanh_test_data): Likewise.
13861         (tgamma_test_data): Likewise.
13862         (y0_test_data): Likewise.
13863         (y1_test_data): Likewise.
13864         (yn_test_data): Likewise.
13865         (significand_test_data): Likewise.
13866         * sysdeps/i386/fpu/libm-test-ulps: Update.
13867
13868 2015-11-03  David Kastrup  <dak@gnu.org>
13869
13870         [BZ #18604]
13871         * assert/assert.h (assert): Don't macro-expand failed assertion
13872         expression in error message.
13873         * malloc/malloc.c (assert): Likewise.
13874
13875 2015-11-03  Joseph Myers  <joseph@codesourcery.com>
13876
13877         * configure.ac (libc_cv_ld_no_whole_archive): Remove configure
13878         test.
13879         * configure: Regenerated.
13880
13881 2015-11-02  Joseph Myers  <joseph@codesourcery.com>
13882
13883         * math/libm-test.inc (modf_test_data): Add more tests.
13884         (nearbyint_test_data): Likewise.
13885         (nextafter_test_data): Likewise.
13886         (nexttoward_test_data): Likewise.
13887         (pow_test_data): Likewise.
13888         (remainder_test_data): Likewise.
13889         (remquo_test_data): Likewise.
13890         (rint_test_data): Likewise.
13891
13892         [BZ #19201]
13893         * sysdeps/ieee754/dbl-64/e_remainder.c (__ieee754_remainder):
13894         Check for zero remainder in case of large exponents and ensure
13895         correct sign of result in that case.
13896         * math/libm-test.inc (remainder_test_data): Add more tests.
13897
13898         [BZ #6799]
13899         * math/s_nextafter.c: Include <errno.h>.
13900         (__nextafter): Set errno on overflow and underflow.
13901         * math/s_nexttowardf.c: Include <errno.h>.
13902         (__nexttowardf): Set errno on overflow and underflow.
13903         * sysdeps/i386/fpu/s_nextafterl.c: Include <errno.h>.
13904         (__nextafterl): Set errno on overflow and underflow.
13905         * sysdeps/i386/fpu/s_nexttoward.c: Include <errno.h>.
13906         (__nexttoward): Set errno on overflow and underflow.
13907         * sysdeps/i386/fpu/s_nexttowardf.c: Include <errno.h>.
13908         (__nexttowardf): Set errno on overflow and underflow.
13909         * sysdeps/ieee754/flt-32/s_nextafterf.c: Include <errno.h>.
13910         (__nextafterf): Set errno on overflow and underflow.
13911         * sysdeps/ieee754/ldbl-128/s_nextafterl.c: Include <errno.h>.
13912         (__nextafterl): Set errno on overflow and underflow.
13913         * sysdeps/ieee754/ldbl-128/s_nexttoward.c: Include <errno.h>.
13914         (__nexttoward): Set errno on overflow and underflow.
13915         * sysdeps/ieee754/ldbl-128/s_nexttowardf.c: Include <errno.h>.
13916         (__nexttowardf): Set errno on overflow and underflow.
13917         * sysdeps/ieee754/ldbl-128ibm/s_nextafterl.c: Include <errno.h>.
13918         (__nextafterl): Set errno on overflow and underflow.
13919         * sysdeps/ieee754/ldbl-128ibm/s_nexttoward.c: Include <errno.h>.
13920         (__nexttoward): Set errno on overflow and underflow.
13921         * sysdeps/ieee754/ldbl-128ibm/s_nexttowardf.c: Include <errno.h>.
13922         (__nexttowardf): Set errno on overflow and underflow.
13923         * sysdeps/ieee754/ldbl-96/s_nexttoward.c: Include <errno.h>.
13924         (__nexttoward): Set errno on overflow and underflow.
13925         * sysdeps/ieee754/ldbl-96/s_nexttowardf.c: Include <errno.h>.
13926         (__nexttowardf): Set errno on overflow and underflow.
13927         * sysdeps/ieee754/ldbl-opt/s_nexttowardfd.c: Include <errno.h>.
13928         (__nldbl_nexttowardf): Set errno on overflow and underflow.
13929         * sysdeps/m68k/m680x0/fpu/s_nextafterl.c: Include <errno.h>.
13930         (__nextafterl): Set errno on overflow and underflow.
13931         * math/libm-test.inc (nextafter_test_data): Do not allow errno
13932         setting to be missing on overflow.  Add more tests.
13933         (nexttoward_test_data): Likewise.
13934
13935         * configure.ac (libc_cv_initfini_array): Remove configure test.
13936         * configure: Regenerated.
13937
13938 2015-10-29  Joseph Myers  <joseph@codesourcery.com>
13939
13940         [BZ #19189]
13941         * sysdeps/ieee754/ldbl-128/s_log1pl.c (__log1pl): Make check for
13942         non-finite argument handle arguments with negative sign.
13943
13944         * math/libm-test.inc (j0_test_data): Do not test sign of zero
13945         result from infinite argument.
13946         (j1_test_data): Likewise.
13947         (jn_test_data): Likewise.
13948         (y0_test_data): Likewise.
13949         (y1_test_data): Likewise.
13950         (yn_test_data): Likewise.
13951
13952         [BZ #16171]
13953         * math/w_remainder.c (drem): Define as weak alias of __remainder.
13954         [NO_LONG_DOUBLE] (dreml): Define as weak alias of __remainder.
13955         * math/w_remainderf.c (dremf): Define as weak alias of
13956         __remainderf.
13957         * math/w_remainderl.c (dreml): Define as weak alias of
13958         __remainderl.
13959         * sysdeps/ia64/fpu/e_remainder.S (drem): Define as weak alias of
13960         __remainder.
13961         * sysdeps/ia64/fpu/e_remainderf.S (dremf): Define as weak alias of
13962         __remainderf.
13963         * sysdeps/ia64/fpu/e_remainderl.S (dreml): Define as weak alias of
13964         __remainderl.
13965         * sysdeps/ieee754/ldbl-opt/nldbl-remainder.c (dreml): Define as
13966         weak alias of remainderl.
13967         * sysdeps/ieee754/ldbl-opt/w_remainder.c
13968         [LONG_DOUBLE_COMPAT(libm, GLIBC_2_0)] (__drem): Define as strong
13969         alias of __remainder.
13970         [LONG_DOUBLE_COMPAT(libm, GLIBC_2_0)] (dreml): Use compat_symbol.
13971         * sysdeps/ieee754/ldbl-opt/w_remainderl.c (__dreml): Define as
13972         strong alias of __remainderl.
13973         (dreml): Use long_double_symbol.
13974         * math/Makefile (libm-calls): Remove w_drem.
13975         * sysdeps/ieee754/ldbl-opt/Makefile (libnldbl-calls): Remove drem.
13976         (CFLAGS-nldbl-drem.c): Remove variable.
13977         (CFLAGS-nldbl-remainder.c): Add -fno-builtin-dreml.
13978         * math/w_drem.c: Remove file.
13979         * math/w_dremf.c: Likewise.
13980         * math/w_dreml.c: Likewise.
13981         * sysdeps/ieee754/ldbl-opt/nldbl-drem.c: Likewise.
13982         * sysdeps/ieee754/ldbl-opt/w_drem.c: Likewise.
13983         * sysdeps/ieee754/ldbl-opt/w_dreml.c: Likewise.
13984
13985         * sysdeps/i386/configure.ac (cpuid.h): Do not test for header.
13986         * sysdeps/i386/configure: Regenerated.
13987         * sysdeps/x86_64/configure.ac (cpuid.h): Do not test for header.
13988         * sysdeps/x86_64/configure: Regenerated.
13989
13990         * configure.ac (libc_cv_asm_protected_directive): Remove configure
13991         test.
13992         (libc_cv_visibility_attribute): Likewise.
13993         (libc_cv_protected_data): Test unconditionally.
13994         (libc_cv_broken_visibility_attribute): Remove configure test.
13995         (libc_cv_have_sdata_section): Test unconditionally.
13996         * configure: Regenerated.
13997
13998         * include/libc-internal.h (libc_max_align_t): Remove typedef.
13999         * include/scratch_buffer.h: Include <stddef.h> instead of
14000         <libc-internal.h>.
14001         (struct scratch_buffer): Use max_align_t instead of
14002         libc_max_align_t.
14003
14004 2015-10-29  Florian Weimer  <fweimer@redhat.com>
14005
14006         * elf/dl-fini.c (_dl_fini): Rewrite to use variable-length array
14007         instead of extend_alloca.  Change control flow to avoid a goto.
14008         Remove assert which is trivially always true.
14009
14010 2015-10-28  Joseph Myers  <joseph@codesourcery.com>
14011
14012         [BZ #16068]
14013         * sysdeps/i386/fpu/fesetenv.c: Include <fpu_control.h>.
14014         (FE_ALL_EXCEPT_X86): New macro.
14015         (__fesetenv): Use FE_ALL_EXCEPT_X86 in most places instead of
14016         FE_ALL_EXCEPT.  Ensure precision control is included in
14017         floating-point state.  Ensure that FE_DFL_ENV and FE_NOMASK_ENV
14018         handle "denormal operand exception" and clear FZ and DAZ bits.
14019         * sysdeps/x86_64/fpu/fesetenv.c: Include <fpu_control.h>.
14020         (FE_ALL_EXCEPT_X86): New macro.
14021         (__fesetenv): Use FE_ALL_EXCEPT_X86 in most places instead of
14022         FE_ALL_EXCEPT.  Ensure precision control is included in
14023         floating-point state.  Ensure that FE_DFL_ENV and FE_NOMASK_ENV
14024         handle "denormal operand exception" and clear FZ and DAZ bits.
14025         * sysdeps/x86/fpu/test-fenv-sse-2.c: New file.
14026         * sysdeps/x86/fpu/test-fenv-x87.c: Likewise.
14027         * sysdeps/x86/fpu/Makefile [$(subdir) = math] (tests): Add
14028         test-fenv-x87 and test-fenv-sse-2.
14029         [$(subdir) = math] (CFLAGS-test-fenv-sse-2.c): New variable.
14030
14031         * math/libm-test.inc (BUILD_COMPLEX): Remove macro.
14032         * math/test-double.h (BUILD_COMPLEX): New macro.
14033         * math/test-float.h (BUILD_COMPLEX): Likewise.
14034         * math/test-ldouble.h (BUILD_COMPLEX): Likewise.
14035
14036         * math/libm-test.inc (min_subnorm_value): Use LDBL_TRUE_MIN,
14037         DBL_TRUE_MIN and FLT_TRUE_MIN instead of __LDBL_DENORM_MIN__,
14038         __DBL_DENORM_MIN__ and __FLT_DENORM_MIN__.
14039         * sysdeps/ieee754/dbl-64/s_fma.c (__fma): Refer to DBL_TRUE_MIN
14040         instead of DBL_DENORM_MIN in comment.
14041         * sysdeps/ieee754/ldbl-128/s_fmal.c (__fmal): Refer to
14042         LDBL_TRUE_MIN instead of LDBL_DENORM_MIN in comment.
14043         * sysdeps/ieee754/ldbl-128ibm/s_nextafterl.c: Include <float.h>.
14044         (__nextafterl): Use LDBL_TRUE_MIN instead of __LDBL_DENORM_MIN__.
14045         * sysdeps/ieee754/ldbl-96/s_fmal.c (__fmal): Refer to
14046         LDBL_TRUE_MIN instead of LDBL_DENORM_MIN in comment.
14047
14048 2015-10-28  Florian Weimer  <fweimer@redhat.com>
14049
14050         [BZ# 19048]
14051         * malloc/malloc.c (struct malloc_state): Update comment.  Add
14052         attached_threads member.
14053         (main_arena): Initialize attached_threads.
14054         * malloc/arena.c (list_lock): Update comment.
14055         (ptmalloc_lock_all, ptmalloc_unlock_all): Likewise.
14056         (ptmalloc_unlock_all2): Reinitialize arena reference counts.
14057         (deattach_arena): New function.
14058         (_int_new_arena): Initialize arena reference count and deattach
14059         replaced arena.
14060         (get_free_list, reused_arena): Update reference count and deattach
14061         replaced arena.
14062         (arena_thread_freeres): Update arena reference count and only put
14063         unreferenced arenas on the free list.
14064
14065 2015-10-28  Joseph Myers  <joseph@codesourcery.com>
14066
14067         [BZ #19181]
14068         * sysdeps/i386/fpu/fesetenv.c (__fesetenv): Clear already-raised
14069         SSE exceptions when argument is FE_DFL_ENV or FE_NOMASK_ENV.
14070         * sysdeps/x86_64/fpu/fesetenv.c (__fesetenv): Likewise.
14071         * math/test-fenv-clear-main.c: New file.
14072         * math/test-fenv-clear.c: Likewise.
14073         * math/Makefile (tests): Add test-fenv-clear.
14074         * sysdeps/x86/fpu/test-fenv-clear-sse.c: New file.
14075         * sysdeps/x86/fpu/Makefile [$(subdir) = math] (tests): Add
14076         test-fenv-clear-sse.
14077         [$(subdir) = math] (CFLAGS-test-fenv-clear-sse.c): New variable.
14078
14079         * math/libm-test.inc (TYPE_DECIMAL_DIG): Use LDBL_DECIMAL_DIG,
14080         DBL_DECIMAL_DIG and FLT_DECIMAL_DIG instead of __DECIMAL_DIG__,
14081         __DBL_DECIMAL_DIG__ and __FLT_DECIMAL_DIG__.
14082
14083 2015-10-28  Carlos Eduardo Seo  <cseo@linux.vnet.ibm.com>
14084
14085         * sysdeps/powerpc/libc-tls.c: New file. Provides __tls_get_addr () in
14086         static libc.
14087
14088 2015-10-28  Joseph Myers  <joseph@codesourcery.com>
14089
14090         * sysdeps/i386/configure.ac (libc_cv_cc_avx2): Remove configure
14091         test.
14092         * sysdeps/i386/configure: Regenerated.
14093         * sysdeps/x86_64/configure.ac (libc_cv_cc_avx2): Remove configure
14094         test.
14095         * sysdeps/x86_64/configure: Regenerated.
14096         * config.h.in (HAVE_AVX2_SUPPORT): Remove #undef.
14097         * sysdeps/x86_64/multiarch/Makefile (sysdep_routines): Add
14098         memset-avx2 unconditionally instead of conditionally on
14099         [$(config-cflags-avx2) = yes].
14100         * sysdeps/x86_64/multiarch/ifunc-impl-list.c
14101         (__libc_ifunc_impl_list) [HAVE_AVX2_SUPPORT]: Make code
14102         unconditional.
14103         * sysdeps/x86_64/multiarch/memset.S [HAVE_AVX2_SUPPORT]: Likewise.
14104         * sysdeps/x86_64/multiarch/memset_chk.S
14105         [IS_IN (libc) && SHARED && HAVE_AVX2_SUPPORT]: Change conditional
14106         to [IS_IN (libc) && SHARED].
14107
14108 2015-10-27  Joseph Myers  <joseph@codesourcery.com>
14109
14110         * sysdeps/arm/configure.ac (libc_cv_arm_tls_desc): Remove
14111         configure test.
14112         * sysdeps/arm/configure: Regenerated.
14113         * sysdeps/arm/Makefile [!have-arm-tls-desc] (have-arm-tls-desc):
14114         Define variable if not already defined.
14115
14116         [BZ #17404]
14117         * sysdeps/mips/atomic-machine.h
14118         [__GNUC_PREREQ (4, 8) || (__mips16 && __GNUC_PREREQ (4, 7))]:
14119         Change conditional to [__GNUC_PREREQ (4, 8) || __mips16].
14120         [__mips16 && !__GNUC_PREREQ (4, 7)]: Remove conditional code.
14121
14122         * resolv/res_send.c (send_vc) [__GNUC_PREREQ (4, 7)]: Make code
14123         unconditional.
14124         * soft-fp/fmadf4.c [__GNUC_PREREQ (4, 7)]: Likewise.
14125         [!__GNUC_PREREQ (4, 7)]: Remove conditional code.
14126         * soft-fp/fmasf4.c [__GNUC_PREREQ (4, 7)]: Make code
14127         unconditional.
14128         [!__GNUC_PREREQ (4, 7)]: Remove conditional code.
14129         * soft-fp/fmatf4.c [__GNUC_PREREQ (4, 7)]: Make code
14130         unconditional.
14131         [!__GNUC_PREREQ (4, 7)]: Remove conditional code.
14132         * stdlib/setenv.c
14133         [((__GNUC__ << 16) + __GNUC_MINOR__) >= ((4 << 16) + 7)]: Make
14134         code unconditional.
14135         [!(((__GNUC__ << 16) + __GNUC_MINOR__) >= ((4 << 16) + 7))]:
14136         Remove conditional code.
14137         * sysdeps/ieee754/dbl-64/e_lgamma_r.c
14138         (__ieee754_lgamma_r) [__GNUC_PREREQ (4, 7)]: Make code
14139         unconditional.
14140         (__ieee754_lgamma_r) [!__GNUC_PREREQ (4, 7)]: Remove conditional
14141         code.
14142         * sysdeps/ieee754/flt-32/e_lgammaf_r.c
14143         (__ieee754_lgammaf_r) [__GNUC_PREREQ (4, 7)]: Make code
14144         unconditional.
14145         (__ieee754_lgammaf_r) [!__GNUC_PREREQ (4, 7)]: Remove conditional
14146         code.
14147         * sysdeps/ieee754/ldbl-128/k_tanl.c
14148         (__kernel_tanl) [__GNUC_PREREQ (4, 7)]: Make code unconditional.
14149         (__kernel_tanl) [!__GNUC_PREREQ (4, 7)]: Remove conditional code.
14150         * sysdeps/ieee754/ldbl-128ibm/k_tanl.c
14151         (__kernel_tanl) [__GNUC_PREREQ (4, 7)]: Make code unconditional.
14152         (__kernel_tanl) [!__GNUC_PREREQ (4, 7)]: Remove conditional code.
14153         * sysdeps/ieee754/ldbl-96/e_lgammal_r.c
14154         (__ieee754_lgammal_r) [__GNUC_PREREQ (4, 7)]: Make code
14155         unconditional.
14156         (__ieee754_lgammal_r) [!__GNUC_PREREQ (4, 7)]: Remove conditional
14157         code.
14158         * sysdeps/ieee754/ldbl-96/k_tanl.c
14159         (__kernel_tanl) [__GNUC_PREREQ (4, 7)]: Make code unconditional.
14160         (__kernel_tanl) [!__GNUC_PREREQ (4, 7)]: Remove conditional code.
14161
14162         * nptl/tst-initializers1-c11.c: New file.
14163         * nptl/tst-initializers1-gnu11.c: Likewise.
14164         * nptl/Makefile (tests): Add these new tests.
14165         (CFLAGS-tst-initializers1-c11.c): New variable.
14166         (CFLAGS-tst-initializers1-gnu11.c): Likewise.
14167
14168         * Makeconfig (CFLAGS): Use -std=gnu11 instead of -std=gnu99.
14169         * Makefile ($(objpfx)c++-types-check.out): Filter out -std=gnu11
14170         instead of -std=gnu99.
14171         * configure.ac (systemtap): Test with -std=gnu11 instead of
14172         -std=gnu99.
14173         * configure: Regenerated.
14174         * math/gen-auto-libm-tests.c: Use -std=gnu11 instead of -std=gnu99
14175         in compilation command in comment.
14176
14177         * sysdeps/nptl/configure.ac: Remove file.
14178         * sysdeps/nptl/configure: Remove generated file.
14179         * configure.ac (libc_cv_forced_unwind): Do not substitute.
14180         * configure: Regenerated.
14181         * config.h.in (HAVE_FORCED_UNWIND): Remove #undef.
14182         * config.make.in (have-forced-unwind): Remove variable.
14183         * nptl/Makefile [$(have-forced-unwind) = yes]: Make code
14184         unconditional.
14185         * nptl/descr.h [HAVE_FORCED_UNWIND]: Likewise.
14186         * nptl/unwind.c [HAVE_FORCED_UNWIND]: Likewise.
14187         (__pthread_unwind) [!HAVE_FORCED_UNWIND]: Remove conditional code.
14188         * nptl/version.c [HAVE_FORCED_UNWIND]: Make code unconditional.
14189         * sysdeps/nptl/Makefile [$(have-forced-unwind) = yes]: Make code
14190         unconditional.
14191
14192 2015-10-27  Paul E. Murphy  <murphyp@linux.vnet.ibm.com>
14193
14194         [BZ #19174]
14195         * sysdeps/powerpc/nptl/elide.h (__elide_lock): Fix usage of
14196         .skip_lock_out_of_tbegin_retries.
14197         * sysdeps/unix/sysv/linux/powerpc/elision-lock.c
14198         (__lll_lock_elision): Likewise, and respect a value of
14199         try_tbegin <= 0.
14200
14201 2015-10-27  Carlos Eduardo Seo  <cseo@linux.vnet.ibm.com>
14202
14203         * elf/dl-support.c (_dl_aux_init): Added AT_PLATFORM to the case
14204         statement.
14205
14206 2015-10-27  Joseph Myers  <joseph@codesourcery.com>
14207
14208         * conform/Makefile (test-xfail-ISO11/complex.h/conform): Remove
14209         variable.
14210         (test-xfail-ISO11/stdalign.h/conform): Likewise.
14211         (test-xfail-ISO11/stdnoreturn.h/conform): Likewise.
14212
14213         * conform/GlibcConform.pm ($CFLAGS{"ISO11"}): Use -std=c11 instead
14214         of -std=c1x -D_ISOC11_SOURCE.
14215
14216         * configure.ac (libc_cv_compiler_ok): Require GCC 4.7 or later.
14217         * configure: Regenerated.
14218         * manual/install.texi (Tools for Compilation): Document
14219         requirement for GCC 4.7 or later.
14220         * INSTALL: Regenerated.
14221
14222 2015-10-27  Ludovic Courtès  <ludo@gnu.org>
14223
14224         * locale/loadlocale.c (_nl_intern_locale_data): Change assertion
14225         on CNT to a conditional jump to 'puntdata'.
14226
14227 2015-10-27  Joseph Myers  <joseph@codesourcery.com>
14228
14229         * configure.ac (libc_cv_gcc___thread): Remove configure test.
14230         (libc_cv_gcc_tls_model_attr): Likewise.
14231         * configure: Regenerated.
14232
14233         * configure.ac (libc_cv_need_minus_P): Remove configure test.
14234         * configure: Regenerated.
14235         * Makeconfig (asm-CPPFLAGS): Remove reference to -P in comment.
14236
14237 2015-10-26  Joseph Myers  <joseph@codesourcery.com>
14238
14239         * configure.ac (old_glibc_headers): Remove configure test.
14240         * configure: Regenerated.
14241         * config.make.in (old-glibc-headers): Remove variable.
14242         * Makefile [!$(install_root) && $(old-glibc-headers) = yes]
14243         (install): Remove dependency on remove-old-headers.
14244         (headers2_0): Remove variable.
14245         (remove-old-headers): Remove rule.
14246
14247         * configure.ac (libc_cv_dot_text): Remove configure test.
14248         (libc_cv_asm_set_directive): Use .text instead of
14249         ${libc_cv_dot_text} in configure test.
14250         * configure: Regenerated.
14251
14252 2015-10-26  Florian Weimer  <fweimer@redhat.com>
14253
14254         [BZ #19168]
14255         * sysdeps/x86_64/fpu/libm-test-ulps: Regenerated.
14256
14257 2015-10-26  Florian Weimer  <fweimer@redhat.com>
14258
14259         * configure.ac (CXX): Clear the variable if the C++ toolchain does
14260         not support static linking.
14261         * configure: Regenerate.
14262
14263 2015-10-23  Joseph Myers  <joseph@codesourcery.com>
14264
14265         * math/libm-test.inc (check_float_internal): Do not special-case
14266         errors up to 0.5 ulp.
14267
14268         * math/auto-libm-test-in: Add more tests of log, log10, log1p and
14269         log2.
14270         * math/auto-libm-test-out: Regenerated.
14271         * math/libm-test.inc (MAX_EXP): New macro.
14272         (ilogb_test_data): Add more tests.
14273         (isfinite_test_data): Likewise.
14274         (isgreater_test_data): Likewise.
14275         (isgreaterequal_test_data): Likewise.
14276         (isinf_test_data): Likewise.
14277         (isless_test_data): Likewise.
14278         (islessequal_test_data): Likewise.
14279         (islessgreater_test_data): Likewise.
14280         (isnan_test_data): Likewise.
14281         (isnormal_test_data): Likewise.
14282         (issignaling_test_data): Likewise.
14283         (isunordered_test_data): Likewise.
14284         (j0_test_data): Likewise.
14285         (j1_test_data): Likewise.
14286         (jn_test_data): Likewise.
14287         (lgamma_test_data): Likewise.
14288         (log_test_data): Likewise.
14289         (log10_test_data): Likewise.
14290         (log1p_test_data): Likewise.
14291         (log2_test_data): Likewise.
14292         (logb_test_data): Likewise.
14293         * sysdeps/x86_64/fpu/libm-test-ulps: Update.
14294
14295         [BZ #18611]
14296         * sysdeps/ieee754/dbl-64/e_j1.c (__ieee754_j1): Set errno and
14297         avoid excess range and precision on underflow.
14298         * sysdeps/ieee754/dbl-64/e_jn.c (__ieee754_jn): Likewise.
14299         * sysdeps/ieee754/flt-32/e_j1f.c (__ieee754_j1f): Likewise.
14300         * sysdeps/ieee754/flt-32/e_jnf.c (__ieee754_jnf): Likewise.
14301         * sysdeps/ieee754/ldbl-128/e_j1l.c (__ieee754_j1l): Set errno on
14302         underflow.
14303         * sysdeps/ieee754/ldbl-128/e_jnl.c (__ieee754_jnl): Likewise.
14304         * sysdeps/ieee754/ldbl-128ibm/e_jnl.c (__ieee754_jnl): Likewise.
14305         * sysdeps/ieee754/ldbl-96/e_j1l.c (__ieee754_j1l): Likewise.
14306         * sysdeps/ieee754/ldbl-96/e_jnl.c (__ieee754_jnl): Likewise.
14307         * math/auto-libm-test-in: Do not allow missing errno setting for
14308         tests of j1 and jn.
14309         * math/auto-libm-test-out: Regenerated.
14310
14311 2015-10-22  Joseph Myers  <joseph@codesourcery.com>
14312
14313         [BZ #15491]
14314         * sysdeps/i386/fpu/s_nearbyint.S (__nearbyint): Save and restore
14315         floating-point environment instead of clearing all exceptions.
14316         * sysdeps/i386/fpu/s_nearbyintf.S (__nearbyintf): Likewise.
14317         * sysdeps/i386/fpu/s_nearbyintl.S (__nearbyintl): Likewise,
14318         merging in "invalid" exceptions from frndint.
14319         * sysdeps/x86_64/fpu/s_nearbyintl.S (__nearbyintl): Likewise.
14320         * math/test-nearbyint-except.c: New file.
14321         * math/Makefile (tests): Add test-nearbyint-except.
14322
14323 2015-10-22  Chris Metcalf  <cmetcalf@ezchip.com>
14324
14325         * NEWS: Mention bug 18699 fixed by commit fe8c2b33aed0.
14326
14327         * sysdeps/tile/libm-test-ulps: Regenerated.
14328
14329 2015-10-22  Adhemerval Zanella  <adhemerval.zanella@linaro.org>
14330
14331         * sysdeps/unix/sysv/linux/powerpc/powerpc64/sync_file_range.c
14332         (__NR_sync_file_range2): Assume it is always defined.
14333         * sysdeps/unix/sysv/linux/mips/mips32/sync_file_range.c
14334         (__NR_sync_file_range): Assume it is always defined.
14335
14336 2015-10-22  Andreas Schwab  <schwab@suse.de>
14337
14338         * sysdeps/unix/sysv/linux/i386/fxstat.c (__fxstat): Use
14339         INTERNAL_SYSCALL_ERRNO.
14340         * sysdeps/unix/sysv/linux/i386/fxstatat.c (__fxstatat): Likewise.
14341         * sysdeps/unix/sysv/linux/i386/lockf64.c (lockf64): Likewise.
14342         * sysdeps/unix/sysv/linux/i386/lxstat.c (__lxstat): Likewise.
14343         * sysdeps/unix/sysv/linux/i386/sigaction.c (__libc_sigaction):
14344         Likewise.
14345         * sysdeps/unix/sysv/linux/i386/xstat.c (__xstat): Likewise.
14346
14347 2015-10-21  Joseph Myers  <joseph@codesourcery.com>
14348
14349         * io/tst-fcntl.c (fd): New static variable.
14350         (do_prepare): Open temporary file here....
14351         (do_test): ...not here.
14352
14353         * io/ftwtest-sh: Also trap on exit to remove temporary files.
14354
14355 2015-10-21  H.J. Lu  <hongjiu.lu@intel.com>
14356
14357         * sysdeps/unix/sysv/linux/i386/libc-do-syscall.S: Replace
14358         __GNUC_PREREQ (5,0) with OPTIMIZE_FOR_GCC_5.
14359         * sysdeps/unix/sysv/linux/i386/sysdep.h (OPTIMIZE_FOR_GCC_5):
14360         Moved before "#ifdef __ASSEMBLER__".
14361
14362 2015-10-21  Joseph Myers  <joseph@codesourcery.com>
14363
14364         [BZ #19156]
14365         * sysdeps/ieee754/ldbl-128/e_j0l.c (__ieee754_j0l): Return 1 for
14366         arguments very close to 0.
14367
14368 2015-10-21  Chris Metcalf  <cmetcalf@ezchip.com>
14369
14370         * sysdeps/unix/sysv/linux/tile/sysdep.h (PSEUDO_END)
14371         (PSEUDO_NOERRNO, PSEUDO_END_NOERRNO): Undef before defining.
14372
14373 2015-10-21  H.J. Lu  <hongjiu.lu@intel.com>
14374
14375         * sysdeps/unix/sysv/linux/i386/sysdep.h (OPTIMIZE_FOR_GCC_5):
14376         New.  Defined for GCC 5 and above when not compiling for
14377         profiling.
14378         Replace __GNUC_PREREQ (5,0) with OPTIMIZE_FOR_GCC_5.
14379
14380         * sysdeps/unix/sysv/linux/i386/Makefile (CFLAGS-epoll_pwait.c):
14381         Renamed to ...
14382         (CFLAGS-epoll_pwait.o): This.
14383         (CFLAGS-mmap.c): Renamed to ...
14384         (CFLAGS-mmap.o): This.
14385         (CFLAGS-mmap64.c): Renamed to ...
14386         (CFLAGS-mmap64.o): This.
14387         (CFLAGS-epoll_pwait.os): New.
14388         (CFLAGS-mmap.os): Likewise.
14389         (CFLAGS-mmap64.os): Likewise.
14390         (CFLAGS-semtimedop.os): Likewise.
14391         (CFLAGS-semtimedop.c): Renamed to ...
14392         (CFLAGS-semtimedop.o): This.
14393
14394 2015-10-21  Tulio Magno Quites Machado Filho  <tuliom@linux.vnet.ibm.com>
14395
14396         * debug/tst-backtrace4.c (handle_signal): Fix a comment and
14397         warning message.
14398
14399 2015-10-21  Joseph Myers  <joseph@codesourcery.com>
14400
14401         * Makeconfig (+gccwarn-c): Add -Wold-style-definition.
14402         * Makefile ($(objpfx)c++-types-check.out): Filter out
14403         $(+gccwarn-c) instead of -Wstrict-prototypes.
14404
14405         * io/fts.c (fts_open): Convert to prototype-style function
14406         definition.
14407         * malloc/mcheck.c (mcheck): Likewise.
14408         (mcheck_pedantic): Likewise.
14409         * posix/regexec.c (re_search_2_stub): Likewise.  Use
14410         internal_function.
14411         (re_search_internal): Likewise.
14412         * resolv/res_init.c [RESOLVSORT] (net_mask): Convert to
14413         prototype-style function definition.
14414         * sunrpc/clnt_udp.c (clntudp_call): Likewise.
14415         * sunrpc/pmap_rmt.c (clnt_broadcast): Likewise.
14416         * sunrpc/rpcsvc/rusers.x (xdr_utmp): Likewise.
14417         (xdr_utmpptr): Likewise.
14418         (xdr_utmparr): Likewise.
14419         (xdr_utmpidle): Likewise.
14420         (xdr_utmpidleptr): Likewise.
14421         (xdr_utmpidlearr): Likewise.
14422
14423         * math/auto-libm-test-in: Add more tests of hypot, j0, j1, jn,
14424         log, log10 and log2.
14425         * math/auto-libm-test-out: Regenerated.
14426         * math/libm-test.inc (fmod_test_data): Add more tests.
14427         (fpclassify_test_data): Likewise.
14428         (frexp_test_data): Likewise.
14429         (hypot_test_data): Likewise.
14430         (ilogb_test_data): Likewise.
14431
14432 2015-10-20  Joseph Myers  <joseph@codesourcery.com>
14433
14434         * debug/fortify_fail.c (__fortify_fail): Convert to
14435         prototype-style function definition.  Use internal_function.
14436         * libio/genops.c (save_for_backup): Convert to prototype-style
14437         function definition.
14438         * libio/wgenops.c (save_for_wbackup): Likewise.
14439         * login/grantpt.c (grantpt): Likewise.
14440         * login/ptsname.c (ptsname): Likewise.
14441         (__ptsname_r): Likewise.
14442         * login/unlockpt.c (unlockpt): Likewise.
14443         * mach/msgserver.c (__mach_msg_server): Likewise.
14444         * misc/efgcvt.c (__APPEND (FUNC_PREFIX, fcvt)): Likewise.
14445         (__APPEND (FUNC_PREFIX, ecvt)): Likewise.
14446         (__APPEND (FUNC_PREFIX, gcvt)): Likewise.
14447         * misc/efgcvt_r.c (__APPEND (FUNC_PREFIX, fcvt_r)): Likewise.
14448         (__APPEND (FUNC_PREFIX, ecvt_r)): Likewise.
14449         * nptl/cleanup_compat.c (_pthread_cleanup_push): Likewise.
14450         * nptl/cleanup_defer_compat.c (_pthread_cleanup_push_defer):
14451         Likewise.
14452         * nptl/libc_pthread_init.c (__libc_pthread_init): Likewise.  Use
14453         internal_function.
14454         * nptl/pthread_atfork.c (__pthread_atfork): Convert to
14455         prototype-style function definition.
14456         * nptl/pthread_create.c (__pthread_create_2_1): Likewise.
14457         [SHLIB_COMPAT(libpthread, GLIBC_2_0, GLIBC_2_1)]
14458         (__pthread_create_2_0): Likewise.
14459         * nptl/pthread_key_create.c (__pthread_key_create): Likewise.
14460         * nptl/register-atfork.c (__register_atfork): Likewise.
14461         * posix/glob.c (glob): Likewise.
14462         * posix/regcomp.c (re_comp): Likewise.
14463         * posix/regexec.c (re_exec): Likewise.
14464         * stdlib/add_n.c [__STDC__]: Make code unconditional.
14465         [!__STDC__]: Remove conditional code.
14466         * stdlib/cmp.c [__STDC__]: Make code unconditional.
14467         [!__STDC__]: Remove conditional code.
14468         * stdlib/divmod_1.c [__STDC__]: Make code unconditional.
14469         [!__STDC__]: Remove conditional code.
14470         * stdlib/divrem.c [__STDC__]: Make code unconditional.
14471         [!__STDC__]: Remove conditional code.
14472         * stdlib/lshift.c [__STDC__]: Make code unconditional.
14473         [!__STDC__]: Remove conditional code.
14474         * stdlib/mod_1.c [__STDC__]: Make code unconditional.
14475         [!__STDC__]: Remove conditional code.
14476         * stdlib/mul.c [__STDC__]: Make code unconditional.
14477         [!__STDC__]: Remove conditional code.
14478         * stdlib/mul_n.c [__STDC__]: Make code unconditional.
14479         [!__STDC__]: Remove conditional code.
14480         * stdlib/rshift.c [__STDC__]: Make code unconditional.
14481         [!__STDC__]: Remove conditional code.
14482         * stdlib/strtod.c (INTERNAL (STRTOF)): Convert to prototype-style
14483         function definition.
14484         (STRTOF): Likewise.
14485         * stdlib/strtod_l.c (__STRTOF): Likewise.
14486         * stdlib/strtol.c (INTERNAL (strtol)): Likewise.
14487         * stdlib/strtol_l.c (INTERNAL (__strtol_l)): Likewise.
14488         (__strtol_l): Likewise.
14489         * stdlib/sub_n.c [__STDC__]: Make code unconditional.
14490         [!__STDC__]: Remove conditional code.
14491         * string/memrchr.c (MEMRCHR): Convert to prototype-style function
14492         definition.
14493         * string/strcasecmp.c (LOCALE_PARAM_DECL): Remove macro.
14494         [USE_IN_EXTENDED_LOCALE_MODEL] (LOCALE_PARAM): Include argument
14495         type.
14496         (__strcasecmp): Convert to prototype-style function definition.
14497         * string/strncase.c (LOCALE_PARAM_DECL): Remove macro.
14498         [USE_IN_EXTENDED_LOCALE_MODEL] (LOCALE_PARAM): Include argument
14499         type.
14500         (__strncasecmp): Convert to prototype-style function definition.
14501         * sunrpc/pm_getport.c (__libc_rpc_getport): Likewise.
14502         * sunrpc/xdr.c (xdr_union): Likewise.
14503         * sunrpc/xdr_array.c (xdr_array): Likewise.
14504         * sunrpc/xdr_ref.c (xdr_reference): Likewise.
14505         * sysdeps/m68k/m680x0/fpu/s_atan.c (__CONCATX(__,FUNC)): Likewise.
14506         * sysdeps/m68k/m680x0/fpu/s_isinf.c (__CONCATX(__,FUNC)):
14507         Likewise.
14508         * sysdeps/m68k/m680x0/fpu/s_scalbn.c (__CONCATX(__scalbn,suffix):
14509         Likewise.
14510         * sysdeps/m68k/m680x0/fpu/s_sincos.c (CONCATX(__,FUNC)): Likewise.
14511         * sysdeps/unix/sysv/linux/i386/scandir64.c (__old_scandir64):
14512         Likewise.
14513         * time/strftime_l.c (LOCALE_PARAM_DECL): Remove macro.
14514         (LOCALE_PARAM_PROTO): Likewise.
14515         [_LIBC && USE_IN_EXTENDED_LOCALE_MODEL] (LOCALE_PARAM): Include
14516         argument type.
14517         (ut_argument_spec): Remove macro.
14518         (ut_argument_spec_iso): Rename to ut_argument_spec.
14519         (memcpy_lowcase): Use LOCALE_PARAM in declaration.  Convert to
14520         prototype-style function definition.
14521         (memcpy_uppcase): Likewise.
14522         (__strftime_internal): Likewise.
14523         (my_strftime): Likewise.
14524         * time/strptime_l.c (LOCALE_PARAM_PROTO): Remove macro.
14525         (LOCALE_PARAM_DECL): Likewise.
14526         [_LIBC] (LOCALE_PARAM): Include argument type.
14527         (__strptime_internal): Convert to prototype-style function
14528         definition.
14529         (strptime): Likewise.
14530         * wcsmbs/wcscasecmp.c (LOCALE_PARAM_DECL): Remove macro.
14531         [USE_IN_EXTENDED_LOCALE_MODEL] (LOCALE_PARAM): Include argument
14532         type.
14533         (__wcscasecmp): Convert to prototype-style function definition.
14534         * wcsmbs/wcsncase.c (LOCALE_PARAM_DECL): Remove macro.
14535         [USE_IN_EXTENDED_LOCALE_MODEL] (LOCALE_PARAM): Include argument
14536         type.
14537         (__wcsncasecmp): Convert to prototype-style function definition.
14538
14539         * crypt/md5-crypt.c (__md5_crypt_r): Convert to prototype-style
14540         function definition.
14541         * crypt/sha256-crypt.c (__sha256_crypt_r): Likewise.
14542         * crypt/sha512-crypt.c (__sha512_crypt_r): Likewise.
14543         * debug/backtracesyms.c (__backtrace_symbols): Likewise.
14544         * elf/dl-minimal.c (_itoa): Likewise.
14545         * hurd/hurdmalloc.c (malloc): Likewise.
14546         (free): Likewise.
14547         (realloc): Likewise.
14548         * inet/inet6_option.c (inet6_option_space): Likewise.
14549         (inet6_option_init): Likewise.
14550         (inet6_option_append): Likewise.
14551         (inet6_option_alloc): Likewise.
14552         (inet6_option_next): Likewise.
14553         (inet6_option_find): Likewise.
14554         * io/ftw.c (FTW_NAME): Likewise.
14555         (NFTW_NAME): Likewise.
14556         (NFTW_NEW_NAME): Likewise.
14557         (NFTW_OLD_NAME): Likewise.
14558         * libio/iofwide.c (_IO_fwide): Likewise.
14559         * libio/strops.c (_IO_str_init_static_internal): Likewise.
14560         (_IO_str_init_static): Likewise.
14561         (_IO_str_init_readonly): Likewise.
14562         (_IO_str_overflow): Likewise.
14563         (_IO_str_underflow): Likewise.
14564         (_IO_str_count): Likewise.
14565         (_IO_str_seekoff): Likewise.
14566         (_IO_str_pbackfail): Likewise.
14567         (_IO_str_finish): Likewise.
14568         * libio/wstrops.c (_IO_wstr_init_static): Likewise.
14569         (_IO_wstr_overflow): Likewise.
14570         (_IO_wstr_underflow): Likewise.
14571         (_IO_wstr_count): Likewise.
14572         (_IO_wstr_seekoff): Likewise.
14573         (_IO_wstr_pbackfail): Likewise.
14574         (_IO_wstr_finish): Likewise.
14575         * locale/programs/localedef.c (normalize_codeset): Likewise.
14576         * locale/programs/locarchive.c (add_locale_to_archive): Likewise.
14577         (add_locales_to_archive): Likewise.
14578         (delete_locales_from_archive): Likewise.
14579         * malloc/malloc.c (__libc_mallinfo): Likewise.
14580         * math/gen-auto-libm-tests.c (init_fp_formats): Likewise.
14581         * misc/tsearch.c (__tfind): Likewise.
14582         * nptl/pthread_attr_destroy.c (__pthread_attr_destroy): Likewise.
14583         * nptl/pthread_attr_getdetachstate.c
14584         (__pthread_attr_getdetachstate): Likewise.
14585         * nptl/pthread_attr_getguardsize.c (pthread_attr_getguardsize):
14586         Likewise.
14587         * nptl/pthread_attr_getinheritsched.c
14588         (__pthread_attr_getinheritsched): Likewise.
14589         * nptl/pthread_attr_getschedparam.c
14590         (__pthread_attr_getschedparam): Likewise.
14591         * nptl/pthread_attr_getschedpolicy.c
14592         (__pthread_attr_getschedpolicy): Likewise.
14593         * nptl/pthread_attr_getscope.c (__pthread_attr_getscope):
14594         Likewise.
14595         * nptl/pthread_attr_getstack.c (__pthread_attr_getstack):
14596         Likewise.
14597         * nptl/pthread_attr_getstackaddr.c (__pthread_attr_getstackaddr):
14598         Likewise.
14599         * nptl/pthread_attr_getstacksize.c (__pthread_attr_getstacksize):
14600         Likewise.
14601         * nptl/pthread_attr_init.c (__pthread_attr_init_2_1): Likewise.
14602         (__pthread_attr_init_2_0): Likewise.
14603         * nptl/pthread_attr_setdetachstate.c
14604         (__pthread_attr_setdetachstate): Likewise.
14605         * nptl/pthread_attr_setguardsize.c (pthread_attr_setguardsize):
14606         Likewise.
14607         * nptl/pthread_attr_setinheritsched.c
14608         (__pthread_attr_setinheritsched): Likewise.
14609         * nptl/pthread_attr_setschedparam.c
14610         (__pthread_attr_setschedparam): Likewise.
14611         * nptl/pthread_attr_setschedpolicy.c
14612         (__pthread_attr_setschedpolicy): Likewise.
14613         * nptl/pthread_attr_setscope.c (__pthread_attr_setscope):
14614         Likewise.
14615         * nptl/pthread_attr_setstack.c (__pthread_attr_setstack):
14616         Likewise.
14617         * nptl/pthread_attr_setstackaddr.c (__pthread_attr_setstackaddr):
14618         Likewise.
14619         * nptl/pthread_attr_setstacksize.c (__pthread_attr_setstacksize):
14620         Likewise.
14621         * nptl/pthread_condattr_setclock.c (pthread_condattr_setclock):
14622         Likewise.
14623         * nptl/pthread_create.c (__find_in_stack_list): Likewise.
14624         * nptl/pthread_getattr_np.c (pthread_getattr_np): Likewise.
14625         * nptl/pthread_mutex_cond_lock.c (__pthread_mutex_lock): Define to
14626         use internal_function.
14627         * nptl/pthread_mutex_init.c (__pthread_mutex_init): Convert to
14628         prototype-style function definition.
14629         * nptl/pthread_mutex_lock.c (__pthread_mutex_lock): Likewise.
14630         (__pthread_mutex_cond_lock_adjust): Likewise.  Use
14631         internal_function.
14632         * nptl/pthread_mutex_timedlock.c (pthread_mutex_timedlock):
14633         Convert to prototype-style function definition.
14634         * nptl/pthread_mutex_trylock.c (__pthread_mutex_trylock):
14635         Likewise.
14636         * nptl/pthread_mutex_unlock.c (__pthread_mutex_unlock_usercnt):
14637         Likewise.
14638         (__pthread_mutex_unlock): Likewise.
14639         * nptl_db/td_ta_clear_event.c (td_ta_clear_event): Likewise.
14640         * nptl_db/td_ta_set_event.c (td_ta_set_event): Likewise.
14641         * nptl_db/td_thr_clear_event.c (td_thr_clear_event): Likewise.
14642         * nptl_db/td_thr_event_enable.c (td_thr_event_enable): Likewise.
14643         * nptl_db/td_thr_set_event.c (td_thr_set_event): Likewise.
14644         * nss/makedb.c (process_input): Likewise.
14645         * posix/fnmatch.c (__strchrnul): Likewise.
14646         (__wcschrnul): Likewise.
14647         (fnmatch): Likewise.
14648         * posix/fnmatch_loop.c (FCT): Likewise.
14649         * posix/glob.c (globfree): Likewise.
14650         (__glob_pattern_type): Likewise.
14651         (__glob_pattern_p): Likewise.
14652         * posix/regcomp.c (re_compile_pattern): Likewise.
14653         (re_set_syntax): Likewise.
14654         (re_compile_fastmap): Likewise.
14655         (regcomp): Likewise.
14656         (regerror): Likewise.
14657         (regfree): Likewise.
14658         * posix/regexec.c (regexec): Likewise.
14659         (re_match): Likewise.
14660         (re_search): Likewise.
14661         (re_match_2): Likewise.
14662         (re_search_2): Likewise.
14663         (re_search_stub): Likewise.  Use internal_function
14664         (re_copy_regs): Likewise.
14665         (re_set_registers): Convert to prototype-style function
14666         definition.
14667         (prune_impossible_nodes): Likewise.  Use internal_function.
14668         * resolv/inet_net_pton.c (inet_net_pton): Convert to
14669         prototype-style function definition.
14670         (inet_net_pton_ipv4): Likewise.
14671         * stdlib/strtod_l.c (____STRTOF_INTERNAL): Likewise.
14672         * sysdeps/pthread/aio_cancel.c (aio_cancel): Likewise.
14673         * sysdeps/pthread/aio_suspend.c (aio_suspend): Likewise.
14674         * sysdeps/pthread/timer_delete.c (timer_delete): Likewise.
14675         * sysdeps/unix/sysv/linux/dl-openat64.c (openat64): Likewise.
14676         Make variadic.
14677         * time/strptime_l.c (localtime_r): Convert to prototype-style
14678         function definition.
14679         * wcsmbs/mbsnrtowcs.c (__mbsnrtowcs): Likewise.
14680         * wcsmbs/mbsrtowcs_l.c (__mbsrtowcs_l): Likewise.
14681         * wcsmbs/wcsnrtombs.c (__wcsnrtombs): Likewise.
14682         * wcsmbs/wcsrtombs.c (__wcsrtombs): Likewise.
14683
14684         * crypt/crypt.c (_ufc_doit_r): Convert to prototype-style function
14685         definition.
14686         (_ufc_doit_r): Likewise.
14687         * crypt/crypt_util.c (_ufc_copymem): Likewise.
14688         (_ufc_output_conversion_r): Likewise.
14689         * inet/inet_mkadr.c (__inet_makeaddr): Likewise.
14690         * inet/rcmd.c (rcmd_af): Likewise.
14691         (rcmd): Likewise.
14692         (ruserok_af): Likewise.
14693         (ruserok): Likewise.
14694         (ruserok2_sa): Likewise.
14695         (ruserok_sa): Likewise.
14696         (iruserok_af): Likewise.
14697         (iruserok): Likewise.
14698         (__ivaliduser): Likewise.
14699         (__validuser2_sa): Likewise.
14700         * inet/rexec.c (rexec_af): Likewise.
14701         (rexec): Likewise.
14702         * inet/ruserpass.c (ruserpass): Likewise.
14703         * locale/programs/xmalloc.c (xcalloc): Likewise.
14704         * manual/examples/timeval_subtract.c (timeval_subtract): Likewise.
14705         * math/w_drem.c (__drem): Likewise.
14706         * math/w_dremf.c (__dremf): Likewise.
14707         * math/w_dreml.c (__dreml): Likewise.
14708         * misc/daemon.c (daemon): Likewise.
14709         * resolv/res_debug.c (p_fqnname): Likewise.
14710         * stdlib/div.c (div): Likewise.
14711         * string/memcmp.c (memcmp_bytes): Likewise.
14712         * sunrpc/pmap_rmt.c (pmap_rmtcall): Likewise.
14713         * sunrpc/svc_udp.c (svcudp_bufcreate): Likewise.
14714
14715         * crypt/cert.c (main): Convert to prototype-style function
14716         definition.
14717         * io/pipe.c (__pipe): Likewise.
14718         * io/pipe2.c (__pipe2): Likewise.
14719         * misc/futimesat.c (futimesat): Likewise.
14720         * misc/utimes.c (__utimes): Likewise.
14721         * posix/execve.c (__execve): Likewise.
14722         * posix/execvp.c (execvp): Likewise.
14723         * posix/execvpe.c (__execvpe): Likewise.
14724         * posix/fexecve.c (fexecve): Likewise.
14725         * socket/socketpair.c (socketpair): Likewise.
14726         * stdlib/drand48-iter.c (__drand48_iterate): Likewise.
14727         * stdlib/erand48.c (erand48): Likewise.
14728         * stdlib/erand48_r.c (__erand48_r): Likewise.
14729         * stdlib/jrand48.c (jrand48): Likewise.
14730         * stdlib/jrand48_r.c (__jrand48_r): Likewise.
14731         * stdlib/lcong48.c (lcong48): Likewise.
14732         * stdlib/lcong48_r.c (__lcong48_r): Likewise.
14733         * stdlib/nrand48.c (nrand48): Likewise.
14734         * stdlib/nrand48_r.c (__nrand48_r): Likewise.
14735         * stdlib/seed48.c (seed48): Likewise.
14736         * stdlib/seed48_r.c (__seed48_r): Likewise.
14737         * sysdeps/mach/hurd/execve.c (__execve): Likewise.
14738         * sysdeps/mach/hurd/utimes.c (__utimes): Likewise.
14739         * sysdeps/unix/sysv/linux/fexecve.c (fexecve): Likewise.
14740
14741 2015-10-19  Joseph Myers  <joseph@codesourcery.com>
14742
14743         * configure.ac (libc_cv_asm_unique_object): Remove configure test.
14744         * configure: Regenerated.
14745         * config.h.in (HAVE_ASM_UNIQUE_OBJECT): Remove #undef.
14746         * elf/tst-unique1.c (do_test) [HAVE_ASM_UNIQUE_OBJECT]: Make code
14747         unconditional.
14748         * elf/tst-unique1mod1.c [HAVE_ASM_UNIQUE_OBJECT]: Likewise.
14749         * elf/tst-unique1mod2.c [HAVE_ASM_UNIQUE_OBJECT]: Likewise.
14750         * elf/tst-unique2.c (do_test) [HAVE_ASM_UNIQUE_OBJECT]: Likewise.
14751         (do_test) [!HAVE_ASM_UNIQUE_OBJECT]: Remove conditional code.
14752         * elf/tst-unique2mod1.c [HAVE_ASM_UNIQUE_OBJECT]: Make code
14753         unconditional.
14754         * elf/tst-unique2mod2.c [HAVE_ASM_UNIQUE_OBJECT]: Likewise.
14755
14756         * posix/Makefile (CFLAGS-regex.c): Remove variable.
14757         * resolv/Makefile (+cflags): Do not use -Wno-strict-prototypes.
14758
14759         * crypt/crypt-entry.c (__crypt_r): Convert to prototype-style
14760         function definition.
14761         * crypt/crypt_util.c (__encrypt_r): Likewise.
14762         * libio/genops.c (_IO_no_init): Likewise.
14763         * libio/iofopncook.c (_IO_fopencookie): Likewise.
14764         (_IO_old_fopencookie): Likewise.
14765         * libio/iofwrite_u.c (fwrite_unlocked): Likewise.
14766         * libio/iogetline.c (_IO_getline): Likewise.
14767         (_IO_getline_info): Likewise.
14768         * libio/iogetwline.c (_IO_getwline): Likewise.
14769         (_IO_getwline_info): Likewise.
14770         * libio/vsnprintf.c (_IO_vsnprintf): Likewise.
14771         * libio/vswprintf.c (_IO_vswprintf): Likewise.
14772         * locale/programs/simple-hash.c (insert_entry_2): Likewise.
14773         (find_entry): Likewise.
14774         (iterate_table): Likewise.
14775         (lookup): Likewise.
14776         * login/forkpty.c (forkpty): Likewise.
14777         * misc/hsearch_r.c (__hsearch_r): Likewise.
14778         * misc/select.c (__select): Likewise.
14779         * nptl/cleanup_defer_compat.c (_pthread_cleanup_pop_restore):
14780         Likewise.
14781         * nptl/old_pthread_cond_init.c (__pthread_cond_init_2_0):
14782         Likewise.
14783         * nptl/old_pthread_cond_timedwait.c
14784         (__pthread_cond_timedwait_2_0): Likewise.
14785         * nptl/pthread_barrier_init.c (__pthread_barrier_init): Likewise.
14786         * nptl/pthread_barrierattr_getpshared.c
14787         (pthread_barrierattr_getpshared): Likewise.
14788         * nptl/pthread_getschedparam.c (__pthread_getschedparam):
14789         Likewise.
14790         * nptl/pthread_mutex_setprioceiling.c
14791         (pthread_mutex_setprioceiling): Likewise.
14792         * nptl/pthread_mutexattr_getprioceiling.c
14793         (pthread_mutexattr_getprioceiling): Likewise.
14794         * nptl/pthread_rwlock_init.c (__pthread_rwlock_init): Likewise.
14795         * nptl/pthread_rwlock_timedrdlock.c (pthread_rwlock_timedrdlock):
14796         Likewise.
14797         * nptl/pthread_rwlock_timedwrlock.c (pthread_rwlock_timedwrlock):
14798         Likewise.
14799         * nptl/pthread_setschedparam.c (__pthread_setschedparam):
14800         Likewise.
14801         * socket/recvfrom.c (__recvfrom): Likewise.
14802         * socket/sendto.c (__sendto): Likewise.
14803         * socket/setsockopt.c (__setsockopt): Likewise.
14804         * stdio-common/_itoa.c (_itoa): Likewise.
14805         * stdio-common/_itowa.c (_itowa): Likewise.
14806         * stdio-common/reg-printf.c (__register_printf_specifier):
14807         Likewise.
14808         (__register_printf_function): Likewise.
14809         * stdio-common/tempname.c (__path_search): Likewise.
14810         * stdlib/addmul_1.c (mpn_addmul_1): Likewise.
14811         * stdlib/mul_1.c (mpn_mul_1): Likewise.
14812         * stdlib/random_r.c (__initstate_r): Likewise.
14813         * stdlib/setenv.c (__add_to_environ): Likewise.
14814         * stdlib/submul_1.c (mpn_submul_1): Likewise.
14815         * streams/getpmsg.c (getpmsg): Likewise.
14816         * streams/putmsg.c (putmsg): Likewise.
14817         * streams/putpmsg.c (putpmsg): Likewise.
14818         * sunrpc/clnt_raw.c (clntraw_call): Likewise.
14819         * sunrpc/clnt_tcp.c (clnttcp_call): Likewise.
14820         * sunrpc/clnt_udp.c (clntudp_create): Likewise.
14821         * sunrpc/clnt_unix.c (clntunix_call): Likewise.
14822         * sunrpc/pm_getport.c (pmap_getport): Likewise.
14823         * sunrpc/svc_udp.c (cache_get): Likewise.
14824         * sunrpc/xdr_array.c (xdr_vector): Likewise.
14825         * sysdeps/mach/hurd/getcwd.c
14826         (__canonicalize_directory_name_internal): Likewise.
14827         * sysdeps/mach/hurd/pselect.c (__pselect): Likewise.
14828         * sysdeps/mach/hurd/recvfrom.c (__recvfrom): Likewise.
14829         * sysdeps/mach/hurd/select.c (__select): Likewise.
14830         * sysdeps/posix/ttyname_r.c (getttyname_r): Likewise.
14831         * sysdeps/pthread/timer_settime.c (timer_settime): Likewise.
14832         * sysdeps/sparc/nptl/pthread_barrier_init.c
14833         (__pthread_barrier_init): Likewise.
14834         * sysdeps/unix/sysv/linux/hppa/pthread_cond_timedwait.c
14835         (__pthread_cond_timedwait): Likewise.
14836         * sysdeps/unix/sysv/linux/i386/putmsg.c (putmsg): Likewise.
14837         * sysdeps/unix/sysv/linux/s390/semtimedop.c (semtimedop):
14838         Likewise.
14839         * sysdeps/unix/sysv/linux/semtimedop.c (semtimedop): Likewise.
14840         * sysdeps/unix/sysv/linux/timer_settime.c (timer_settime):
14841         Likewise.
14842         * sysvipc/semtimedop.c (semtimedop): Likewise.
14843         * time/setitimer.c (__setitimer): Likewise.
14844         * time/strftime_l.c (emacs_strftime): Likewise.
14845
14846 2015-10-19  Mike Frysinger  <vapier@gentoo.org>
14847
14848         * config.make.in (have-ssp): Delete.
14849         (stack-protector): New variable.
14850         * configure.ac: Delete libc_cv_ssp export.  Add libc_cv_ssp_strong
14851         cache test for -fstack-protector-strong.  Export stack_protector to
14852         the best ssp flag.
14853         * configure: Regenerated.
14854         * login/Makefile (pt_chown-cflags): Always add $(stack-protector).
14855         * nscd/Makefile (CFLAGS-nscd): Likewise.
14856         * resolv/Makefile (CFLAGS-libresolv): Likewise.
14857
14858 2015-10-16  H.J. Lu  <hongjiu.lu@intel.com>
14859
14860         [BZ #19122]
14861         * include/sys/stat.h [IS_IN (rtld)] (__fxstatat64): Add
14862         attribute_hidden.
14863
14864 2015-10-19  Tulio Magno Quites Machado Filho  <tuliom@linux.vnet.ibm.com>
14865
14866         [BZ #18743]
14867         * sysdeps/powerpc/nptl/elide.h (__elide_lock): Move most of this
14868         code to...
14869         (ELIDE_LOCK): ...here.
14870         (__get_new_count): New function with part of the code from
14871         __elide_lock that updates the value of adapt_count after a
14872         transaction abort.
14873         (__elided_trylock): Moved this code to...
14874         (ELIDE_TRYLOCK): ...here.
14875
14876 2015-10-19  Mike Frysinger  <vapier@gentoo.org>
14877
14878         * configure.ac (AC_ARG_ENABLE(timezone-tools)): Tweak help phrasing.
14879         * configure: Regenerate.
14880         * INSTALL: Regenerate.
14881         * manual/install.texi (--disable-timezone-tools): Use @theglibc{}
14882         and tweak grammar.
14883
14884 2015-10-19  Geoffrey Thomas  <geofft@ldpreload.com>
14885
14886         * login/programs/pt_chown.c: Include signal.h
14887         (main): Clear any signal mask from the parent process.
14888
14889 2015-10-19  Joseph Myers  <joseph@codesourcery.com>
14890
14891         * configure.ac (libc_cv_gnu89_inline): Remove configure test.
14892         * configure: Regenerated.
14893         * config.make.in (gnu89-inline-CFLAGS): Remove variable.
14894         * Makeconfig (CFLAGS): Use -fgnu89-inline instead of
14895         $(gnu89-inline-CFLAGS).
14896
14897         * configure.ac (libc_cv_asm_weak_directive): Remove configure
14898         test.
14899         (libc_cv_asm_weakext_directive): Likewise.
14900         * configure: Regenerated.
14901         * config.h.in (HAVE_ASM_WEAK_DIRECTIVE): Remove #undef.
14902         (HAVE_ASM_WEAKEXT_DIRECTIVE): Likewise.
14903         * include/libc-symbols.h
14904         [!HAVE_ASM_WEAK_DIRECTIVE && !HAVE_ASM_WEAKEXT_DIRECTIVE]: Remove
14905         #error.
14906         [HAVE_ASM_WEAKEXT_DIRECTIVE]: Remove conditional code.
14907         [!HAVE_ASM_WEAKEXT_DIRECTIVE]: Make code unconditional.
14908
14909         * sysdeps/arm/backtrace.c (__backtrace): Convert to
14910         prototype-style function definition.
14911         * sysdeps/i386/backtrace.c (__backtrace): Likewise.
14912         * sysdeps/i386/ffs.c (__ffs): Likewise.
14913         * sysdeps/i386/i686/ffs.c (__ffs): Likewise.
14914         * sysdeps/ia64/nptl/pthread_spin_lock.c (pthread_spin_lock):
14915         Likewise.
14916         * sysdeps/ia64/nptl/pthread_spin_trylock.c (pthread_spin_trylock):
14917         Likewise.
14918         * sysdeps/ieee754/ldbl-128/e_log2l.c (__ieee754_log2l): Likewise.
14919         * sysdeps/ieee754/ldbl-128ibm/e_log2l.c (__ieee754_log2l):
14920         Likewise.
14921         * sysdeps/m68k/ffs.c (__ffs): Likewise.
14922         * sysdeps/m68k/m680x0/fpu/e_acos.c (FUNC): Likewise.
14923         * sysdeps/m68k/m680x0/fpu/e_fmod.c (FUNC): Likewise.
14924         * sysdeps/mach/adjtime.c (__adjtime): Likewise.
14925         * sysdeps/mach/gettimeofday.c (__gettimeofday): Likewise.
14926         * sysdeps/mach/hurd/_exit.c (_exit): Likewise.
14927         * sysdeps/mach/hurd/access.c (__access): Likewise.
14928         * sysdeps/mach/hurd/adjtime.c (__adjtime): Likewise.
14929         * sysdeps/mach/hurd/chdir.c (__chdir): Likewise.
14930         * sysdeps/mach/hurd/chmod.c (__chmod): Likewise.
14931         * sysdeps/mach/hurd/chown.c (__chown): Likewise.
14932         * sysdeps/mach/hurd/cthreads.c (cthread_keycreate): Likewise.
14933         (cthread_getspecific): Likewise.
14934         (cthread_setspecific): Likewise.
14935         (__libc_getspecific): Likewise.
14936         * sysdeps/mach/hurd/euidaccess.c (__euidaccess): Likewise.
14937         * sysdeps/mach/hurd/faccessat.c (faccessat): Likewise.
14938         * sysdeps/mach/hurd/fchdir.c (__fchdir): Likewise.
14939         * sysdeps/mach/hurd/fchmod.c (__fchmod): Likewise.
14940         * sysdeps/mach/hurd/fchmodat.c (fchmodat): Likewise.
14941         * sysdeps/mach/hurd/fchown.c (__fchown): Likewise.
14942         * sysdeps/mach/hurd/fchownat.c (fchownat): Likewise.
14943         * sysdeps/mach/hurd/flock.c (__flock): Likewise.
14944         * sysdeps/mach/hurd/fsync.c (fsync): Likewise.
14945         * sysdeps/mach/hurd/ftruncate.c (__ftruncate): Likewise.
14946         * sysdeps/mach/hurd/getgroups.c (__getgroups): Likewise.
14947         * sysdeps/mach/hurd/gethostname.c (__gethostname): Likewise.
14948         * sysdeps/mach/hurd/getitimer.c (__getitimer): Likewise.
14949         * sysdeps/mach/hurd/getlogin_r.c (__getlogin_r): Likewise.
14950         * sysdeps/mach/hurd/getpgid.c (__getpgid): Likewise.
14951         * sysdeps/mach/hurd/getrusage.c (__getrusage): Likewise.
14952         * sysdeps/mach/hurd/getsockname.c (__getsockname): Likewise.
14953         * sysdeps/mach/hurd/group_member.c (__group_member): Likewise.
14954         * sysdeps/mach/hurd/isatty.c (__isatty): Likewise.
14955         * sysdeps/mach/hurd/lchown.c (__lchown): Likewise.
14956         * sysdeps/mach/hurd/link.c (__link): Likewise.
14957         * sysdeps/mach/hurd/linkat.c (linkat): Likewise.
14958         * sysdeps/mach/hurd/listen.c (__listen): Likewise.
14959         * sysdeps/mach/hurd/mkdir.c (__mkdir): Likewise.
14960         * sysdeps/mach/hurd/mkdirat.c (mkdirat): Likewise.
14961         * sysdeps/mach/hurd/openat.c (__openat): Likewise.
14962         * sysdeps/mach/hurd/poll.c (__poll): Likewise.
14963         * sysdeps/mach/hurd/readlink.c (__readlink): Likewise.
14964         * sysdeps/mach/hurd/readlinkat.c (readlinkat): Likewise.
14965         * sysdeps/mach/hurd/recv.c (__recv): Likewise.
14966         * sysdeps/mach/hurd/rename.c (rename): Likewise.
14967         * sysdeps/mach/hurd/renameat.c (renameat): Likewise.
14968         * sysdeps/mach/hurd/revoke.c (revoke): Likewise.
14969         * sysdeps/mach/hurd/rewinddir.c (__rewinddir): Likewise.
14970         * sysdeps/mach/hurd/rmdir.c (__rmdir): Likewise.
14971         * sysdeps/mach/hurd/seekdir.c (seekdir): Likewise.
14972         * sysdeps/mach/hurd/send.c (__send): Likewise.
14973         * sysdeps/mach/hurd/setdomain.c (setdomainname): Likewise.
14974         * sysdeps/mach/hurd/setegid.c (setegid): Likewise.
14975         * sysdeps/mach/hurd/seteuid.c (seteuid): Likewise.
14976         * sysdeps/mach/hurd/setgid.c (__setgid): Likewise.
14977         * sysdeps/mach/hurd/setgroups.c (setgroups): Likewise.
14978         * sysdeps/mach/hurd/sethostid.c (sethostid): Likewise.
14979         * sysdeps/mach/hurd/sethostname.c (sethostname): Likewise.
14980         * sysdeps/mach/hurd/setlogin.c (setlogin): Likewise.
14981         * sysdeps/mach/hurd/setpgid.c (__setpgid): Likewise.
14982         * sysdeps/mach/hurd/setregid.c (__setregid): Likewise.
14983         * sysdeps/mach/hurd/setreuid.c (__setreuid): Likewise.
14984         * sysdeps/mach/hurd/settimeofday.c (__settimeofday): Likewise.
14985         * sysdeps/mach/hurd/setuid.c (__setuid): Likewise.
14986         * sysdeps/mach/hurd/shutdown.c (shutdown): Likewise.
14987         * sysdeps/mach/hurd/sigaction.c (__sigaction): Likewise.
14988         * sysdeps/mach/hurd/sigaltstack.c (__sigaltstack): Likewise.
14989         * sysdeps/mach/hurd/sigpending.c (sigpending): Likewise.
14990         * sysdeps/mach/hurd/sigprocmask.c (__sigprocmask): Likewise.
14991         * sysdeps/mach/hurd/sigsuspend.c (__sigsuspend): Likewise.
14992         * sysdeps/mach/hurd/socket.c (__socket): Likewise.
14993         * sysdeps/mach/hurd/symlink.c (__symlink): Likewise.
14994         * sysdeps/mach/hurd/symlinkat.c (symlinkat): Likewise.
14995         * sysdeps/mach/hurd/telldir.c (telldir): Likewise.
14996         * sysdeps/mach/hurd/truncate.c (__truncate): Likewise.
14997         * sysdeps/mach/hurd/umask.c (__umask): Likewise.
14998         * sysdeps/mach/hurd/unlink.c (__unlink): Likewise.
14999         * sysdeps/mach/hurd/unlinkat.c (unlinkat): Likewise.
15000         * sysdeps/mips/mips64/__longjmp.c (__longjmp): Likewise.
15001         * sysdeps/posix/alarm.c (alarm): Likewise.
15002         * sysdeps/posix/cuserid.c (cuserid): Likewise.
15003         * sysdeps/posix/dirfd.c (dirfd): Likewise.
15004         * sysdeps/posix/dup.c (__dup): Likewise.
15005         * sysdeps/posix/dup2.c (__dup2): Likewise.
15006         * sysdeps/posix/euidaccess.c (euidaccess): Likewise.
15007         (main): Likewise.
15008         * sysdeps/posix/flock.c (__flock): Likewise.
15009         * sysdeps/posix/fpathconf.c (__fpathconf): Likewise.
15010         * sysdeps/posix/getcwd.c (__getcwd): Likewise.
15011         * sysdeps/posix/gethostname.c (__gethostname): Likewise.
15012         * sysdeps/posix/gettimeofday.c (__gettimeofday): Likewise.
15013         * sysdeps/posix/isatty.c (__isatty): Likewise.
15014         * sysdeps/posix/killpg.c (killpg): Likewise.
15015         * sysdeps/posix/libc_fatal.c (__libc_fatal): Likewise.
15016         * sysdeps/posix/mkfifoat.c (mkfifoat): Likewise.
15017         * sysdeps/posix/raise.c (raise): Likewise.
15018         * sysdeps/posix/remove.c (remove): Likewise.
15019         * sysdeps/posix/rename.c (rename): Likewise.
15020         * sysdeps/posix/rewinddir.c (__rewinddir): Likewise.
15021         * sysdeps/posix/seekdir.c (seekdir): Likewise.
15022         * sysdeps/posix/sigblock.c (__sigblock): Likewise.
15023         * sysdeps/posix/sigignore.c (sigignore): Likewise.
15024         * sysdeps/posix/sigintr.c (siginterrupt): Likewise.
15025         * sysdeps/posix/signal.c (__bsd_signal): Likewise.
15026         * sysdeps/posix/sigset.c (sigset): Likewise.
15027         * sysdeps/posix/sigsuspend.c (__sigsuspend): Likewise.
15028         * sysdeps/posix/sysconf.c (__sysconf): Likewise.
15029         * sysdeps/posix/sysv_signal.c (__sysv_signal): Likewise.
15030         * sysdeps/posix/time.c (time): Likewise.
15031         * sysdeps/posix/ttyname.c (getttyname): Likewise.
15032         (ttyname): Likewise.
15033         * sysdeps/posix/ttyname_r.c (__ttyname_r): Likewise.
15034         * sysdeps/posix/utime.c (utime): Likewise.
15035         * sysdeps/powerpc/fpu/s_isnan.c (__isnan): Likewise.
15036         * sysdeps/powerpc/nptl/pthread_spin_lock.c (pthread_spin_lock):
15037         Likewise.
15038         * sysdeps/powerpc/nptl/pthread_spin_trylock.c
15039         (pthread_spin_trylock): Likewise.
15040         * sysdeps/pthread/aio_error.c (aio_error): Likewise.
15041         * sysdeps/pthread/aio_read.c (aio_read): Likewise.
15042         * sysdeps/pthread/aio_read64.c (aio_read64): Likewise.
15043         * sysdeps/pthread/aio_write.c (aio_write): Likewise.
15044         * sysdeps/pthread/aio_write64.c (aio_write64): Likewise.
15045         * sysdeps/pthread/flockfile.c (__flockfile): Likewise.
15046         * sysdeps/pthread/ftrylockfile.c (__ftrylockfile): Likewise.
15047         * sysdeps/pthread/funlockfile.c (__funlockfile): Likewise.
15048         * sysdeps/pthread/timer_create.c (timer_create): Likewise.
15049         * sysdeps/pthread/timer_getoverr.c (timer_getoverrun): Likewise.
15050         * sysdeps/pthread/timer_gettime.c (timer_gettime): Likewise.
15051         * sysdeps/s390/ffs.c (__ffs): Likewise.
15052         * sysdeps/s390/nptl/pthread_spin_lock.c (pthread_spin_lock):
15053         Likewise.
15054         * sysdeps/s390/nptl/pthread_spin_trylock.c (pthread_spin_trylock):
15055         Likewise.
15056         * sysdeps/sh/nptl/pthread_spin_lock.c (pthread_spin_lock):
15057         Likewise.
15058         * sysdeps/sparc/nptl/pthread_barrier_destroy.c
15059         (pthread_barrier_destroy): Likewise.
15060         * sysdeps/sparc/nptl/pthread_barrier_wait.c
15061         (__pthread_barrier_wait): Likewise.
15062         * sysdeps/sparc/sparc32/e_sqrt.c (__ieee754_sqrt): Likewise.
15063         * sysdeps/sparc/sparc32/pthread_barrier_wait.c
15064         (__pthread_barrier_wait): Likewise.
15065         * sysdeps/sparc/sparc32/sem_init.c (__old_sem_init): Likewise.
15066         * sysdeps/tile/memcmp.c (memcmp_common_alignment): Likewise.
15067         (memcmp_not_common_alignment): Likewise.
15068         (MEMCMP): Likewise.
15069         * sysdeps/tile/wordcopy.c (_wordcopy_fwd_aligned): Likewise.
15070         (_wordcopy_fwd_dest_aligned): Likewise.
15071         (_wordcopy_bwd_aligned): Likewise.
15072         (_wordcopy_bwd_dest_aligned): Likewise.
15073         * sysdeps/unix/bsd/ftime.c (ftime): Likewise.
15074         * sysdeps/unix/bsd/gtty.c (gtty): Likewise.
15075         * sysdeps/unix/bsd/stty.c (stty): Likewise.
15076         * sysdeps/unix/bsd/tcflow.c (tcflow): Likewise.
15077         * sysdeps/unix/bsd/tcflush.c (tcflush): Likewise.
15078         * sysdeps/unix/bsd/tcgetattr.c (__tcgetattr): Likewise.
15079         * sysdeps/unix/bsd/tcgetpgrp.c (tcgetpgrp): Likewise.
15080         * sysdeps/unix/bsd/tcsendbrk.c (tcsendbreak): Likewise.
15081         * sysdeps/unix/bsd/tcsetattr.c (tcsetattr): Likewise.
15082         * sysdeps/unix/bsd/tcsetpgrp.c (tcsetpgrp): Likewise.
15083         * sysdeps/unix/bsd/ualarm.c (ualarm): Likewise.
15084         * sysdeps/unix/bsd/wait3.c (__wait3): Likewise.
15085         * sysdeps/unix/getlogin_r.c (__getlogin_r): Likewise.
15086         * sysdeps/unix/sockatmark.c (sockatmark): Likewise.
15087         * sysdeps/unix/stime.c (stime): Likewise.
15088         * sysdeps/unix/sysv/linux/_exit.c (_exit): Likewise.
15089         * sysdeps/unix/sysv/linux/aio_sigqueue.c (__aio_sigqueue):
15090         Likewise.  Use internal_function.
15091         * sysdeps/unix/sysv/linux/arm/sigaction.c (__libc_sigaction):
15092         Convert to prototype-style function definition.
15093         * sysdeps/unix/sysv/linux/faccessat.c (faccessat): Likewise.
15094         * sysdeps/unix/sysv/linux/fchmodat.c (fchmodat): Likewise.
15095         * sysdeps/unix/sysv/linux/fpathconf.c (__fpathconf): Likewise.
15096         * sysdeps/unix/sysv/linux/gai_sigqueue.c (__gai_sigqueue):
15097         Likewise.  Use internal_function.
15098         * sysdeps/unix/sysv/linux/gethostid.c (sethostid): Convert to
15099         prototype-style function definition
15100         * sysdeps/unix/sysv/linux/getlogin_r.c (__getlogin_r_loginuid):
15101         Likewise.
15102         (__getlogin_r): Likewise.
15103         * sysdeps/unix/sysv/linux/getpt.c (__posix_openpt): Likewise.
15104         * sysdeps/unix/sysv/linux/hppa/pthread_cond_broadcast.c
15105         (__pthread_cond_broadcast): Likewise.
15106         * sysdeps/unix/sysv/linux/hppa/pthread_cond_destroy.c
15107         (__pthread_cond_destroy): Likewise.
15108         * sysdeps/unix/sysv/linux/hppa/pthread_cond_init.c
15109         (__pthread_cond_init): Likewise.
15110         * sysdeps/unix/sysv/linux/hppa/pthread_cond_signal.c
15111         (__pthread_cond_signal): Likewise.
15112         * sysdeps/unix/sysv/linux/hppa/pthread_cond_wait.c
15113         (__pthread_cond_wait): Likewise.
15114         * sysdeps/unix/sysv/linux/i386/getmsg.c (getmsg): Likewise.
15115         * sysdeps/unix/sysv/linux/i386/setegid.c (setegid): Likewise.
15116         * sysdeps/unix/sysv/linux/ia64/sigaction.c (__libc_sigaction):
15117         Likewise.
15118         * sysdeps/unix/sysv/linux/ia64/sigpending.c (sigpending):
15119         Likewise.
15120         * sysdeps/unix/sysv/linux/ia64/sigprocmask.c (__sigprocmask):
15121         Likewise.
15122         * sysdeps/unix/sysv/linux/mips/sigaction.c (__libc_sigaction):
15123         Likewise.
15124         * sysdeps/unix/sysv/linux/msgget.c (msgget): Likewise.
15125         * sysdeps/unix/sysv/linux/powerpc/powerpc32/ftruncate64.c
15126         (__ftruncate64): Likewise.
15127         * sysdeps/unix/sysv/linux/powerpc/powerpc32/truncate64.c
15128         (truncate64): Likewise.
15129         * sysdeps/unix/sysv/linux/pt-raise.c (raise): Likewise.
15130         * sysdeps/unix/sysv/linux/pthread_getcpuclockid.c
15131         (pthread_getcpuclockid): Likewise.
15132         * sysdeps/unix/sysv/linux/pthread_getname.c (pthread_getname_np):
15133         Likewise.
15134         * sysdeps/unix/sysv/linux/pthread_setname.c (pthread_setname_np):
15135         Likewise.
15136         * sysdeps/unix/sysv/linux/pthread_sigmask.c (pthread_sigmask):
15137         Likewise.
15138         * sysdeps/unix/sysv/linux/pthread_sigqueue.c (pthread_sigqueue):
15139         Likewise.
15140         * sysdeps/unix/sysv/linux/raise.c (raise): Likewise.
15141         * sysdeps/unix/sysv/linux/s390/s390-64/sigaction.c
15142         (__libc_sigaction): Likewise.
15143         * sysdeps/unix/sysv/linux/s390/s390-64/sigpending.c (sigpending):
15144         Likewise.
15145         * sysdeps/unix/sysv/linux/s390/s390-64/sigprocmask.c
15146         (__sigprocmask): Likewise.
15147         * sysdeps/unix/sysv/linux/semget.c (semget): Likewise.
15148         * sysdeps/unix/sysv/linux/semop.c (semop): Likewise.
15149         * sysdeps/unix/sysv/linux/setrlimit64.c (setrlimit64): Likewise.
15150         * sysdeps/unix/sysv/linux/shmat.c (shmat): Likewise.
15151         * sysdeps/unix/sysv/linux/shmdt.c (shmdt): Likewise.
15152         * sysdeps/unix/sysv/linux/shmget.c (shmget): Likewise.
15153         * sysdeps/unix/sysv/linux/sigaction.c (__libc_sigaction):
15154         Likewise.
15155         * sysdeps/unix/sysv/linux/sigpending.c (sigpending): Likewise.
15156         * sysdeps/unix/sysv/linux/sigprocmask.c (__sigprocmask): Likewise.
15157         * sysdeps/unix/sysv/linux/sigqueue.c (__sigqueue): Likewise.
15158         * sysdeps/unix/sysv/linux/sigstack.c (sigstack): Likewise.
15159         * sysdeps/unix/sysv/linux/sparc/sparc64/sigpending.c (sigpending):
15160         Likewise.
15161         * sysdeps/unix/sysv/linux/sparc/sparc64/sigprocmask.c
15162         (__sigprocmask): Likewise.
15163         * sysdeps/unix/sysv/linux/speed.c (cfgetospeed): Likewise.
15164         (cfgetispeed): Likewise.
15165         (cfsetospeed): Likewise.
15166         (cfsetispeed): Likewise.
15167         * sysdeps/unix/sysv/linux/tcflow.c (tcflow): Likewise.
15168         * sysdeps/unix/sysv/linux/tcflush.c (tcflush): Likewise.
15169         * sysdeps/unix/sysv/linux/tcgetattr.c (__tcgetattr): Likewise.
15170         * sysdeps/unix/sysv/linux/tcsetattr.c (tcsetattr): Likewise.
15171         * sysdeps/unix/sysv/linux/time.c (time): Likewise.
15172         * sysdeps/unix/sysv/linux/timer_create.c (timer_create): Likewise.
15173         * sysdeps/unix/sysv/linux/timer_delete.c (timer_delete): Likewise.
15174         * sysdeps/unix/sysv/linux/timer_getoverr.c (timer_getoverrun):
15175         Likewise.
15176         * sysdeps/unix/sysv/linux/timer_gettime.c (timer_gettime):
15177         Likewise.
15178         * sysdeps/unix/sysv/linux/x86_64/sigpending.c (sigpending):
15179         Likewise.
15180         * sysdeps/unix/sysv/linux/x86_64/sigprocmask.c (__sigprocmask):
15181         Likewise.
15182         * sysdeps/x86_64/backtrace.c (__backtrace): Likewise.
15183
15184 2015-10-17  Florian Weimer  <fweimer@redhat.com>
15185
15186         sunrpc: Rewrite with explicit TLS access using __thread.
15187         * sunrpc/rpc_thread.c (thread_rpc_vars): New TLS variable.
15188         (__rpc_thread_destroy, rpc_thread_multi): Access thread_rpc_vars
15189         directly.
15190         (__rpc_thread_variables): Access thread_rpc_vars directly.
15191         Eliminate redundant assignment of the tvp variable.
15192
15193 2015-10-17  Florian Weimer  <fweimer@redhat.com>
15194
15195         malloc: Rewrite with explicit TLS access using __thread.
15196         * sysdeps/generic/malloc-machine.h (tsd_key_t, tsd_key_create)
15197         (tsd_setspecific, tsd_getspecific): Remove.
15198         * sysdeps/mach/hurd/malloc-machine.h (tsd_key_t, tsd_key_create)
15199         (tsd_setspecific, tsd_getspecific): Likewise.
15200         * sysdeps/nptl/malloc-machine.h (tsd_key_t, tsd_key_create)
15201         (tsd_setspecific, tsd_getspecific): Likewise.
15202         * malloc/arena.c (thread_arena): New TLS variable.
15203         (arena_key): Remove variable.
15204         (arena_get): Use thread_arena.
15205         (arena_lookup): Remove macro.
15206         (malloc_atfork, free_atfork, ptmalloc_lock_all)
15207         (ptmalloc_unlock_all, ptmalloc_unlock_all2, ptmalloc_init)
15208         (_int_new_arena, get_free_list, reused_arena)
15209         (arena_thread_freeres): Use thread_arena.
15210         * manual/memory.texi (Basic Allocation): Remove arena_lookup,
15211         tsd_getspecific, tsd_setspecific from safety annotations.
15212         (Allocating Cleared Space): Remove arena_lookup from safety
15213         annotations.
15214
15215 2015-10-17  Florian Weimer  <fweimer@redhat.com>
15216
15217         * stdio-common/vfprintf.c (printf_positional): Rewrite to use
15218         struct scratch_buffer instead of extend_alloca.
15219
15220 2015-10-17  Florian Weimer  <fweimer@redhat.com>
15221
15222         * sysdeps/unix/sysv/linux/kernel-features.h
15223         (__ASSUME_SOCK_CLOEXEC): Remove.
15224         * include/sys/socket.h (__have_sock_cloexec): Remove declaration.
15225         (__have_paccept): Remove unused macro.
15226         * include/unistd.h (__have_sock_cloexec): Remove declaration.
15227         * misc/syslog.c (openlog_internal): Remove fallback code for
15228         !__ASSUME_SOCK_CLOEXEC.
15229         * nis/ypclnt.c (yp_bind_client_create): Remove fallback code for
15230         missing SOCK_CLOEXEC.
15231         * nscd/connections.c (have_sock_cloexec): Remove definition.
15232         (nscd_init): Remove fallback code for !__ASSUME_SOCK_CLOEXEC.
15233         * nscd/nscd_helper.c (open_socket): Remove fallback code for
15234         !__ASSUME_SOCK_CLOEXEC.
15235         * resolv/res_send.c (__have_o_nonblock): Remove definition.
15236         (reopen): Remove fallback code for !__ASSUME_SOCK_CLOEXEC.
15237         * socket/have_sock_cloexec.c (__have_sock_cloexec): Remove
15238         definition.
15239         * sunrpc/clnt_udp.c (__libc_clntudp_bufcreate): Remove fallback
15240         code for !__ASSUME_SOCK_CLOEXEC.
15241
15242 2015-10-17  Florian Weimer  <fweimer@redhat.com>
15243
15244         [BZ #18982]
15245         * manual/stdio.texi (Variable Arguments Output): Add portability
15246         note, explaining that vfprintf clobbers the va_list pointer.
15247
15248 2015-10-16  Joseph Myers  <joseph@codesourcery.com>
15249
15250         * math/libm-test.inc (fabs_test_data): Add more tests.
15251         (fdim_test_data): Likewise.
15252         (fma_test_data): Likewise.
15253         (fmax_test_data): Likewise.
15254         (fmin_test_data): Likewise.
15255         (fmod_test_data): Likewise.
15256
15257 2015-10-16  Steve Ellcey  <sellcey@imgtec.com>
15258
15259         * sysdeps/mips/memcpy.S (memcpy):  Add word copies for small aligned
15260         data.
15261
15262 2015-10-16  Joseph Myers  <joseph@codesourcery.com>
15263
15264         * math/libm-test.inc (ceil_test_data): Add more tests and more
15265         expectations for "inexact".
15266         (floor_test_data): Add more tests.
15267         (round_test_data): Likewise.
15268         (trunc_test_data): Likewise.
15269
15270         * crypt/cert.c (good_bye): Convert to prototype-style function
15271         definition.
15272         (get8): Likewise.
15273         (put8): Likewise.
15274         * crypt/crypt-entry.c (crypt): Likewise.
15275         (__fcrypt): Likewise.
15276         * crypt/crypt_util.c (_ufc_prbits): Likewise.
15277         (_ufc_set_bits): Likewise.
15278         (_ufc_clearmem): Likewise.
15279         (__init_des_r): Likewise.
15280         (shuffle_sb): Likewise.
15281         (shuffle_sb): Likewise.
15282         (_ufc_setup_salt_r): Likewise.
15283         (_ufc_mk_keytab_r): Likewise.
15284         (_ufc_dofinalperm_r): Likewise.
15285         (encrypt): Likewise.
15286         (__setkey_r): Likewise.
15287         (setkey): Likewise.
15288         * crypt/md5.c (md5_init_ctx): Likewise.
15289         (md5_read_ctx): Likewise.
15290         (md5_finish_ctx): Likewise.
15291         (md5_stream): Likewise.
15292         (md5_buffer): Likewise.
15293         (md5_process_bytes): Likewise.
15294         * crypt/sha256.c (__sha256_init_ctx): Likewise.
15295         (__sha256_finish_ctx): Likewise.
15296         (__sha256_process_bytes): Likewise.
15297         * crypt/sha512.c (__sha512_init_ctx): Likewise.
15298         (__sha512_finish_ctx): Likewise.
15299         (__sha512_process_bytes): Likewise.
15300         * ctype/isctype.c (__isctype): Likewise.
15301         * debug/backtrace.c (__backtrace): Likewise.
15302         * debug/backtracesymsfd.c (__backtrace_symbols_fd): Likewise.
15303         * debug/fgets_chk.c (__fgets_chk): Likewise.
15304         * debug/fgets_u_chk.c (__fgets_unlocked_chk): Likewise.
15305         * debug/memcpy_chk.c (__memcpy_chk): Likewise.
15306         * debug/memmove_chk.c (MEMMOVE_CHK): Likewise.
15307         * debug/mempcpy_chk.c (__mempcpy_chk): Likewise.
15308         * debug/memset_chk.c (__memset_chk): Likewise.
15309         * debug/strcat_chk.c (__strcat_chk): Likewise.
15310         * debug/strncat_chk.c (__strncat_chk): Likewise.
15311         * debug/strncpy_chk.c (__strncpy_chk): Likewise.
15312         * debug/vsprintf_chk.c (_IO_str_chk_overflow): Likewise.
15313         * dirent/dirfd.c (dirfd): Likewise.
15314         * dirent/getdents.c (__getdirentries): Likewise.
15315         * dirent/getdents64.c (getdirentries64): Likewise.
15316         * dirent/rewinddir.c (__rewinddir): Likewise.
15317         * dirent/seekdir.c (seekdir): Likewise.
15318         * dirent/telldir.c (telldir): Likewise.
15319         * elf/sln.c (makesymlinks): Likewise.
15320         (makesymlink): Likewise.
15321         * gmon/gmon.c (__moncontrol): Likewise.
15322         (__monstartup): Likewise.
15323         (write_hist): Likewise.
15324         (write_call_graph): Likewise.
15325         (write_bb_counts): Likewise.
15326         * grp/setgroups.c (setgroups): Likewise.
15327         * inet/inet_lnaof.c (inet_lnaof): Likewise.
15328         * inet/inet_net.c (inet_network): Likewise.
15329         * inet/inet_netof.c (inet_netof): Likewise.
15330         * inet/rcmd.c (rresvport_af): Likewise.
15331         (rresvport): Likewise.
15332         * io/access.c (__access): Likewise.
15333         * io/chdir.c (__chdir): Likewise.
15334         * io/chmod.c (__chmod): Likewise.
15335         * io/chown.c (__chown): Likewise.
15336         * io/close.c (__close): Likewise.
15337         * io/creat.c (creat): Likewise.
15338         * io/creat64.c (creat64): Likewise.
15339         * io/dup.c (__dup): Likewise.
15340         * io/dup2.c (__dup2): Likewise.
15341         * io/dup3.c (__dup3): Likewise.
15342         * io/euidaccess.c (__euidaccess): Likewise.
15343         * io/faccessat.c (faccessat): Likewise.
15344         * io/fchmod.c (__fchmod): Likewise.
15345         * io/fchmodat.c (fchmodat): Likewise.
15346         * io/fchown.c (__fchown): Likewise.
15347         * io/fchownat.c (fchownat): Likewise.
15348         * io/fcntl.c (__fcntl): Likewise.
15349         * io/flock.c (__flock): Likewise.
15350         * io/fts.c (fts_load): Likewise.
15351         (fts_close): Likewise.
15352         (fts_read): Likewise.
15353         (fts_set): Likewise.
15354         (fts_children): Likewise.
15355         (fts_build): Likewise.
15356         (fts_stat): Likewise.
15357         (fts_sort): Likewise.
15358         (fts_alloc): Likewise.
15359         (fts_lfree): Likewise.
15360         (fts_palloc): Likewise.
15361         (fts_padjust): Likewise.
15362         (fts_maxarglen): Likewise.
15363         (fts_safe_changedir): Likewise.
15364         * io/getwd.c (getwd): Likewise.
15365         * io/isatty.c (__isatty): Likewise.
15366         * io/lchown.c (__lchown): Likewise.
15367         * io/link.c (__link): Likewise.
15368         * io/linkat.c (linkat): Likewise.
15369         * io/lseek.c (__libc_lseek): Likewise.
15370         * io/mkdir.c (__mkdir): Likewise.
15371         * io/mkdirat.c (mkdirat): Likewise.
15372         * io/mkfifo.c (mkfifo): Likewise.
15373         * io/mkfifoat.c (mkfifoat): Likewise.
15374         * io/open.c (__libc_open): Likewise.
15375         * io/open64.c (__libc_open64): Likewise.
15376         * io/readlink.c (__readlink): Likewise.
15377         * io/readlinkat.c (readlinkat): Likewise.
15378         * io/rmdir.c (__rmdir): Likewise.
15379         * io/symlink.c (__symlink): Likewise.
15380         * io/symlinkat.c (symlinkat): Likewise.
15381         * io/ttyname.c (ttyname): Likewise.
15382         * io/ttyname_r.c (__ttyname_r): Likewise.
15383         * io/umask.c (__umask): Likewise.
15384         * io/unlink.c (__unlink): Likewise.
15385         * io/unlinkat.c (unlinkat): Likewise.
15386         * io/utime.c (utime): Likewise.
15387         * libio/clearerr.c (clearerr): Likewise.
15388         * libio/clearerr_u.c (clearerr_unlocked): Likewise.
15389         * libio/feof.c (_IO_feof): Likewise.
15390         * libio/feof_u.c (feof_unlocked): Likewise.
15391         * libio/ferror.c (_IO_ferror): Likewise.
15392         * libio/ferror_u.c (ferror_unlocked): Likewise.
15393         * libio/filedoalloc.c (_IO_file_doallocate): Likewise.
15394         * libio/fileno.c (__fileno): Likewise.
15395         * libio/fputc.c (fputc): Likewise.
15396         * libio/fputc_u.c (fputc_unlocked): Likewise.
15397         * libio/fputwc.c (fputwc): Likewise.
15398         * libio/fputwc_u.c (fputwc_unlocked): Likewise.
15399         * libio/freopen.c (freopen): Likewise.
15400         * libio/freopen64.c (freopen64): Likewise.
15401         * libio/fseek.c (fseek): Likewise.
15402         * libio/fseeko.c (fseeko): Likewise.
15403         * libio/fseeko64.c (fseeko64): Likewise.
15404         * libio/ftello.c (__ftello): Likewise.
15405         * libio/ftello64.c (ftello64): Likewise.
15406         * libio/fwide.c (fwide): Likewise.
15407         * libio/genops.c (_IO_un_link): Likewise.
15408         (_IO_link_in): Likewise.
15409         (_IO_least_marker): Likewise.
15410         (_IO_switch_to_main_get_area): Likewise.
15411         (_IO_switch_to_backup_area): Likewise.
15412         (_IO_switch_to_get_mode): Likewise.
15413         (_IO_free_backup_area): Likewise.
15414         (_IO_switch_to_put_mode): Likewise.
15415         (__overflow): Likewise.
15416         (__underflow): Likewise.
15417         (__uflow): Likewise.
15418         (_IO_setb): Likewise.
15419         (_IO_doallocbuf): Likewise.
15420         (_IO_default_underflow): Likewise.
15421         (_IO_default_uflow): Likewise.
15422         (_IO_default_xsputn): Likewise.
15423         (_IO_sgetn): Likewise.
15424         (_IO_default_xsgetn): Likewise.
15425         (_IO_sync): Likewise.
15426         (_IO_default_setbuf): Likewise.
15427         (_IO_default_seekpos): Likewise.
15428         (_IO_default_doallocate): Likewise.
15429         (_IO_init): Likewise.
15430         (_IO_old_init): Likewise.
15431         (_IO_default_sync): Likewise.
15432         (_IO_default_finish): Likewise.
15433         (_IO_default_seekoff): Likewise.
15434         (_IO_sputbackc): Likewise.
15435         (_IO_sungetc): Likewise.
15436         (_IO_set_column): Likewise.
15437         (_IO_set_column): Likewise.
15438         (_IO_adjust_column): Likewise.
15439         (_IO_get_column): Likewise.
15440         (_IO_init_marker): Likewise.
15441         (_IO_remove_marker): Likewise.
15442         (_IO_marker_difference): Likewise.
15443         (_IO_marker_delta): Likewise.
15444         (_IO_seekmark): Likewise.
15445         (_IO_unsave_markers): Likewise.
15446         (_IO_nobackup_pbackfail): Likewise.
15447         (_IO_default_pbackfail): Likewise.
15448         (_IO_default_seek): Likewise.
15449         (_IO_default_stat): Likewise.
15450         (_IO_default_read): Likewise.
15451         (_IO_default_write): Likewise.
15452         (_IO_default_showmanyc): Likewise.
15453         (_IO_default_imbue): Likewise.
15454         (_IO_iter_next): Likewise.
15455         (_IO_iter_file): Likewise.
15456         * libio/getc.c (_IO_getc): Likewise.
15457         * libio/getwc.c (_IO_getwc): Likewise.
15458         * libio/iofclose.c (_IO_new_fclose): Likewise.
15459         * libio/iofdopen.c (_IO_new_fdopen): Likewise.
15460         * libio/iofflush.c (_IO_fflush): Likewise.
15461         * libio/iofflush_u.c (__fflush_unlocked): Likewise.
15462         * libio/iofgetpos.c (_IO_new_fgetpos): Likewise.
15463         * libio/iofgetpos64.c (_IO_new_fgetpos64): Likewise.
15464         * libio/iofgets.c (_IO_fgets): Likewise.
15465         * libio/iofgets_u.c (__fgets_unlocked): Likewise.
15466         * libio/iofgetws.c (fgetws): Likewise.
15467         * libio/iofgetws_u.c (fgetws_unlocked): Likewise.
15468         * libio/iofopen64.c (_IO_fopen64): Likewise.
15469         * libio/iofopncook.c (_IO_cookie_read): Likewise.
15470         (_IO_cookie_write): Likewise.
15471         (_IO_cookie_seek): Likewise.
15472         (_IO_cookie_close): Likewise.
15473         (_IO_cookie_seekoff): Likewise.
15474         (_IO_old_cookie_seek): Likewise.
15475         * libio/iofputs.c (_IO_fputs): Likewise.
15476         * libio/iofputs_u.c (__fputs_unlocked): Likewise.
15477         * libio/iofputws.c (fputws): Likewise.
15478         * libio/iofputws_u.c (fputws_unlocked): Likewise.
15479         * libio/iofread.c (_IO_fread): Likewise.
15480         * libio/iofread_u.c (__fread_unlocked): Likewise.
15481         * libio/iofsetpos.c (_IO_new_fsetpos): Likewise.
15482         * libio/iofsetpos64.c (_IO_new_fsetpos64): Likewise.
15483         * libio/ioftell.c (_IO_ftell): Likewise.
15484         * libio/iofwrite.c (_IO_fwrite): Likewise.
15485         * libio/iogetdelim.c (_IO_getdelim): Likewise.
15486         * libio/iogets.c (_IO_gets): Likewise.
15487         * libio/iopadn.c (_IO_padn): Likewise.
15488         * libio/iopopen.c (_IO_new_proc_open): Likewise.
15489         (_IO_new_popen): Likewise.
15490         (_IO_new_proc_close): Likewise.
15491         * libio/ioputs.c (_IO_puts): Likewise.
15492         * libio/ioseekoff.c (_IO_seekoff_unlocked): Likewise.
15493         (_IO_seekoff): Likewise.
15494         * libio/ioseekpos.c (_IO_seekpos_unlocked): Likewise.
15495         (_IO_seekpos): Likewise.
15496         * libio/iosetbuffer.c (_IO_setbuffer): Likewise.
15497         * libio/iosetvbuf.c (_IO_setvbuf): Likewise.
15498         * libio/ioungetc.c (_IO_ungetc): Likewise.
15499         * libio/ioungetwc.c (ungetwc): Likewise.
15500         * libio/iovdprintf.c (_IO_vdprintf): Likewise.
15501         * libio/iovsscanf.c (_IO_vsscanf): Likewise.
15502         * libio/iowpadn.c (_IO_wpadn): Likewise.
15503         * libio/libc_fatal.c (__libc_fatal): Likewise.
15504         * libio/memstream.c (__open_memstream): Likewise.
15505         (_IO_mem_sync): Likewise.
15506         (_IO_mem_finish): Likewise.
15507         * libio/oldfileops.c (_IO_old_file_init): Likewise.
15508         (_IO_old_file_close_it): Likewise.
15509         (_IO_old_file_finish): Likewise.
15510         (_IO_old_file_fopen): Likewise.
15511         (_IO_old_file_attach): Likewise.
15512         (_IO_old_file_setbuf): Likewise.
15513         (_IO_old_do_write): Likewise.
15514         (old_do_write): Likewise.
15515         (_IO_old_file_underflow): Likewise.
15516         (_IO_old_file_overflow): Likewise.
15517         (_IO_old_file_sync): Likewise.
15518         (_IO_old_file_seekoff): Likewise.
15519         (_IO_old_file_write): Likewise.
15520         (_IO_old_file_xsputn): Likewise.
15521         * libio/oldiofclose.c (_IO_old_fclose): Likewise.
15522         * libio/oldiofdopen.c (_IO_old_fdopen): Likewise.
15523         * libio/oldiofgetpos.c (_IO_old_fgetpos): Likewise.
15524         * libio/oldiofgetpos64.c (_IO_old_fgetpos64): Likewise.
15525         * libio/oldiofopen.c (_IO_old_fopen): Likewise.
15526         * libio/oldiofsetpos.c (_IO_old_fsetpos): Likewise.
15527         * libio/oldiofsetpos64.c (_IO_old_fsetpos64): Likewise.
15528         * libio/oldiopopen.c (_IO_old_proc_open): Likewise.
15529         (_IO_old_popen): Likewise.
15530         (_IO_old_proc_close): Likewise.
15531         * libio/oldpclose.c (__old_pclose): Likewise.
15532         * libio/pclose.c (__new_pclose): Likewise.
15533         * libio/peekc.c (_IO_peekc_locked): Likewise.
15534         * libio/putc.c (_IO_putc): Likewise.
15535         * libio/putc_u.c (putc_unlocked): Likewise.
15536         * libio/putchar.c (putchar): Likewise.
15537         * libio/putchar_u.c (putchar_unlocked): Likewise.
15538         * libio/putwc.c (putwc): Likewise.
15539         * libio/putwc_u.c (putwc_unlocked): Likewise.
15540         * libio/putwchar.c (putwchar): Likewise.
15541         * libio/putwchar_u.c (putwchar_unlocked): Likewise.
15542         * libio/rewind.c (rewind): Likewise.
15543         * libio/setbuf.c (setbuf): Likewise.
15544         * libio/setlinebuf.c (setlinebuf): Likewise.
15545         * libio/vasprintf.c (_IO_vasprintf): Likewise.
15546         * libio/vscanf.c (_IO_vscanf): Likewise.
15547         * libio/vsnprintf.c (_IO_strn_overflow): Likewise.
15548         * libio/vswprintf.c (_IO_wstrn_overflow): Likewise.
15549         * libio/wfiledoalloc.c (_IO_wfile_doallocate): Likewise.
15550         * libio/wgenops.c (_IO_least_wmarker): Likewise.
15551         (_IO_switch_to_main_wget_area): Likewise.
15552         (_IO_switch_to_wbackup_area): Likewise.
15553         (_IO_wsetb): Likewise.
15554         (_IO_wdefault_pbackfail): Likewise.
15555         (_IO_wdefault_finish): Likewise.
15556         (_IO_wdefault_uflow): Likewise.
15557         (__woverflow): Likewise.
15558         (__wuflow): Likewise.
15559         (__wunderflow): Likewise.
15560         (_IO_wdefault_xsputn): Likewise.
15561         (_IO_wdefault_xsgetn): Likewise.
15562         (_IO_wdoallocbuf): Likewise.
15563         (_IO_wdefault_doallocate): Likewise.
15564         (_IO_switch_to_wget_mode): Likewise.
15565         (_IO_free_wbackup_area): Likewise.
15566         (_IO_switch_to_wput_mode): Likewise.
15567         (_IO_sputbackwc): Likewise.
15568         (_IO_sungetwc): Likewise.
15569         (_IO_adjust_wcolumn): Likewise.
15570         (_IO_init_wmarker): Likewise.
15571         (_IO_wmarker_delta): Likewise.
15572         (_IO_seekwmark): Likewise.
15573         (_IO_unsave_wmarkers): Likewise.
15574         * libio/wmemstream.c (open_wmemstream): Likewise.
15575         (_IO_wmem_sync): Likewise.
15576         (_IO_wmem_finish): Likewise.
15577         * locale/nl_langinfo.c (nl_langinfo): Likewise.
15578         * locale/nl_langinfo_l.c (__nl_langinfo_l): Likewise.
15579         * locale/programs/simple-hash.c (init_hash): Likewise.
15580         (delete_hash): Likewise.
15581         (insert_entry): Likewise.
15582         (set_entry): Likewise.
15583         (next_prime): Likewise.
15584         (is_prime): Likewise.
15585         * locale/programs/xmalloc.c (fixup_null_alloc): Likewise.
15586         (xmalloc): Likewise.
15587         (xrealloc): Likewise.
15588         * locale/programs/xstrdup.c (xstrdup): Likewise.
15589         * localedata/collate-test.c (xstrcoll): Likewise.
15590         * localedata/xfrm-test.c (xstrcmp): Likewise.
15591         * login/getlogin_r.c (__getlogin_r): Likewise.
15592         * login/getpt.c (__posix_openpt): Likewise.
15593         * login/login_tty.c (login_tty): Likewise.
15594         * login/setlogin.c (setlogin): Likewise.
15595         * mach/msg-destroy.c (__mach_msg_destroy): Likewise.
15596         (mach_msg_destroy_port): Likewise.
15597         (mach_msg_destroy_memory): Likewise.
15598         * malloc/mcheck.c (flood): Likewise.
15599         * misc/acct.c (acct): Likewise.
15600         * misc/brk.c (__brk): Likewise.
15601         * misc/chflags.c (chflags): Likewise.
15602         * misc/chroot.c (chroot): Likewise.
15603         * misc/fchflags.c (fchflags): Likewise.
15604         * misc/fstab.c (getfsspec): Likewise.
15605         (getfsfile): Likewise.
15606         * misc/fsync.c (fsync): Likewise.
15607         * misc/ftruncate.c (__ftruncate): Likewise.
15608         * misc/ftruncate64.c (__ftruncate64): Likewise.
15609         * misc/getdomain.c (getdomainname): Likewise.
15610         (getdomainname): Likewise.
15611         * misc/gethostname.c (__gethostname): Likewise.
15612         * misc/getpass.c (getpass): Likewise.
15613         * misc/getttyent.c (skip): Likewise.
15614         (value): Likewise.
15615         * misc/gtty.c (gtty): Likewise.
15616         * misc/hsearch.c (hsearch): Likewise.
15617         (hcreate): Likewise.
15618         * misc/hsearch_r.c (__hcreate_r): Likewise.
15619         (__hdestroy_r): Likewise.
15620         * misc/ioctl.c (__ioctl): Likewise.
15621         * misc/mkdtemp.c (mkdtemp): Likewise.
15622         * misc/mkostemp.c (mkostemp): Likewise.
15623         * misc/mkostemp64.c (mkostemp64): Likewise.
15624         * misc/mkostemps.c (mkostemps): Likewise.
15625         * misc/mkostemps64.c (mkostemps64): Likewise.
15626         * misc/mkstemp.c (mkstemp): Likewise.
15627         * misc/mkstemp64.c (mkstemp64): Likewise.
15628         * misc/mkstemps.c (mkstemps): Likewise.
15629         * misc/mkstemps64.c (mkstemps64): Likewise.
15630         * misc/mktemp.c (__mktemp): Likewise.
15631         * misc/preadv.c (preadv): Likewise.
15632         * misc/preadv64.c (preadv64): Likewise.
15633         * misc/pwritev.c (pwritev): Likewise.
15634         * misc/pwritev64.c (pwritev64): Likewise.
15635         * misc/readv.c (__readv): Likewise.
15636         * misc/revoke.c (revoke): Likewise.
15637         * misc/setdomain.c (setdomainname): Likewise.
15638         * misc/setegid.c (setegid): Likewise.
15639         * misc/seteuid.c (seteuid): Likewise.
15640         * misc/sethostid.c (sethostid): Likewise.
15641         * misc/sethostname.c (sethostname): Likewise.
15642         * misc/setregid.c (__setregid): Likewise.
15643         * misc/setreuid.c (__setreuid): Likewise.
15644         * misc/sstk.c (sstk): Likewise.
15645         * misc/stty.c (stty): Likewise.
15646         * misc/syscall.c (syscall): Likewise.
15647         * misc/syslog.c (setlogmask): Likewise.
15648         * misc/truncate.c (__truncate): Likewise.
15649         * misc/truncate64.c (truncate64): Likewise.
15650         * misc/ualarm.c (ualarm): Likewise.
15651         * misc/usleep.c (usleep): Likewise.
15652         * misc/ustat.c (ustat): Likewise.
15653         * misc/writev.c (__writev): Likewise.
15654         * nptl/cleanup_compat.c (_pthread_cleanup_pop): Likewise.
15655         * nptl/old_pthread_cond_broadcast.c
15656         (__pthread_cond_broadcast_2_0): Likewise.
15657         * nptl/old_pthread_cond_destroy.c (__pthread_cond_destroy_2_0):
15658         Likewise.
15659         * nptl/old_pthread_cond_signal.c (__pthread_cond_signal_2_0):
15660         Likewise.
15661         * nptl/old_pthread_cond_wait.c (__pthread_cond_wait_2_0):
15662         Likewise.
15663         * nptl/pt-raise.c (raise): Likewise.
15664         * nptl/pthread_barrier_destroy.c (pthread_barrier_destroy):
15665         Likewise.
15666         * nptl/pthread_barrier_wait.c (__pthread_barrier_wait): Likewise.
15667         * nptl/pthread_barrierattr_destroy.c
15668         (pthread_barrierattr_destroy): Likewise.
15669         * nptl/pthread_barrierattr_init.c (pthread_barrierattr_init):
15670         Likewise.
15671         * nptl/pthread_barrierattr_setpshared.c
15672         (pthread_barrierattr_setpshared): Likewise.
15673         * nptl/pthread_cond_broadcast.c (__pthread_cond_broadcast):
15674         Likewise.
15675         * nptl/pthread_cond_destroy.c (__pthread_cond_destroy): Likewise.
15676         * nptl/pthread_cond_init.c (__pthread_cond_init): Likewise.
15677         * nptl/pthread_cond_signal.c (__pthread_cond_signal): Likewise.
15678         * nptl/pthread_condattr_destroy.c (__pthread_condattr_destroy):
15679         Likewise.
15680         * nptl/pthread_condattr_getclock.c (pthread_condattr_getclock):
15681         Likewise.
15682         * nptl/pthread_condattr_getpshared.c
15683         (pthread_condattr_getpshared): Likewise.
15684         * nptl/pthread_condattr_init.c (__pthread_condattr_init):
15685         Likewise.
15686         * nptl/pthread_condattr_setpshared.c
15687         (pthread_condattr_setpshared): Likewise.
15688         * nptl/pthread_detach.c (pthread_detach): Likewise.
15689         * nptl/pthread_equal.c (__pthread_equal): Likewise.
15690         * nptl/pthread_getcpuclockid.c (pthread_getcpuclockid): Likewise.
15691         * nptl/pthread_getspecific.c (__pthread_getspecific): Likewise.
15692         * nptl/pthread_key_delete.c (pthread_key_delete): Likewise.
15693         * nptl/pthread_mutex_consistent.c (pthread_mutex_consistent):
15694         Likewise.
15695         * nptl/pthread_mutex_destroy.c (__pthread_mutex_destroy):
15696         Likewise.
15697         * nptl/pthread_mutex_getprioceiling.c
15698         (pthread_mutex_getprioceiling): Likewise.
15699         * nptl/pthread_mutexattr_destroy.c (__pthread_mutexattr_destroy):
15700         Likewise.
15701         * nptl/pthread_mutexattr_getprotocol.c
15702         (pthread_mutexattr_getprotocol): Likewise.
15703         * nptl/pthread_mutexattr_getpshared.c
15704         (pthread_mutexattr_getpshared): Likewise.
15705         * nptl/pthread_mutexattr_getrobust.c
15706         (pthread_mutexattr_getrobust): Likewise.
15707         * nptl/pthread_mutexattr_gettype.c (pthread_mutexattr_gettype):
15708         Likewise.
15709         * nptl/pthread_mutexattr_init.c (__pthread_mutexattr_init):
15710         Likewise.
15711         * nptl/pthread_mutexattr_setprioceiling.c
15712         (pthread_mutexattr_setprioceiling): Likewise.
15713         * nptl/pthread_mutexattr_setprotocol.c
15714         (pthread_mutexattr_setprotocol): Likewise.
15715         * nptl/pthread_mutexattr_setpshared.c
15716         (pthread_mutexattr_setpshared): Likewise.
15717         * nptl/pthread_mutexattr_setrobust.c
15718         (pthread_mutexattr_setrobust): Likewise.
15719         * nptl/pthread_mutexattr_settype.c (__pthread_mutexattr_settype):
15720         Likewise.
15721         * nptl/pthread_rwlock_destroy.c (__pthread_rwlock_destroy):
15722         Likewise.
15723         * nptl/pthread_rwlockattr_destroy.c (pthread_rwlockattr_destroy):
15724         Likewise.
15725         * nptl/pthread_rwlockattr_getkind_np.c
15726         (pthread_rwlockattr_getkind_np): Likewise.
15727         * nptl/pthread_rwlockattr_getpshared.c
15728         (pthread_rwlockattr_getpshared): Likewise.
15729         * nptl/pthread_rwlockattr_init.c (pthread_rwlockattr_init):
15730         Likewise.
15731         * nptl/pthread_rwlockattr_setkind_np.c
15732         (pthread_rwlockattr_setkind_np): Likewise.
15733         * nptl/pthread_rwlockattr_setpshared.c
15734         (pthread_rwlockattr_setpshared): Likewise.
15735         * nptl/pthread_setcancelstate.c (__pthread_setcancelstate):
15736         Likewise.
15737         * nptl/pthread_setcanceltype.c (__pthread_setcanceltype):
15738         Likewise.
15739         * nptl/pthread_setconcurrency.c (pthread_setconcurrency):
15740         Likewise.
15741         * nptl/pthread_setschedprio.c (pthread_setschedprio): Likewise.
15742         * nptl/pthread_setspecific.c (__pthread_setspecific): Likewise.
15743         * nptl/pthread_spin_destroy.c (pthread_spin_destroy): Likewise.
15744         * nptl/pthread_tryjoin.c (pthread_tryjoin_np): Likewise.
15745         * nptl/sem_close.c (sem_close): Likewise.
15746         * nptl/sem_destroy.c (__new_sem_destroy): Likewise.
15747         * nptl/sem_init.c (__old_sem_init): Likewise.
15748         * nptl/sigaction.c (__sigaction): Likewise.
15749         * nptl/unregister-atfork.c (__unregister_atfork): Likewise.
15750         * posix/_exit.c (_exit): Likewise.
15751         * posix/alarm.c (alarm): Likewise.
15752         * posix/confstr.c (confstr): Likewise.
15753         * posix/fpathconf.c (__fpathconf): Likewise.
15754         * posix/getgroups.c (__getgroups): Likewise.
15755         * posix/getpgid.c (__getpgid): Likewise.
15756         * posix/group_member.c (__group_member): Likewise.
15757         * posix/pathconf.c (__pathconf): Likewise.
15758         * posix/sched_getaffinity.c (sched_getaffinity): Likewise.
15759         * posix/sched_setaffinity.c (sched_setaffinity): Likewise.
15760         * posix/setgid.c (__setgid): Likewise.
15761         * posix/setpgid.c (__setpgid): Likewise.
15762         * posix/setuid.c (__setuid): Likewise.
15763         * posix/sleep.c (__sleep): Likewise.
15764         * posix/sysconf.c (__sysconf): Likewise.
15765         * posix/times.c (__times): Likewise.
15766         * posix/uname.c (__uname): Likewise.
15767         * posix/waitid.c (__waitid): Likewise.
15768         * pwd/getpw.c (__getpw): Likewise.
15769         * resolv/base64.c (b64_pton): Likewise.
15770         * resolv/gai_sigqueue.c (__gai_sigqueue): Likewise.
15771         * resolv/gethnamaddr.c (Dprintf): Likewise.
15772         (gethostbyname): Likewise.
15773         (gethostbyname2): Likewise.
15774         (gethostbyaddr): Likewise.
15775         (_sethtent): Likewise.
15776         (_gethtbyname): Likewise.
15777         (_gethtbyname2): Likewise.
15778         (_gethtbyaddr): Likewise.
15779         (map_v4v6_address): Likewise.
15780         (map_v4v6_hostent): Likewise.
15781         (addrsort): Likewise.
15782         (ht_sethostent): Likewise.
15783         (ht_gethostbyname): Likewise.
15784         (ht_gethostbyaddr): Likewise.
15785         * resolv/inet_net_ntop.c (inet_net_ntop): Likewise.
15786         (inet_net_ntop_ipv4): Likewise.
15787         * resolv/inet_neta.c (inet_neta): Likewise.
15788         * resolv/inet_ntop.c (inet_ntop): Likewise.
15789         (inet_ntop4): Likewise.
15790         (inet_ntop6): Likewise.
15791         * resolv/inet_pton.c (__inet_pton): Likewise.
15792         (inet_pton4): Likewise.
15793         (inet_pton6): Likewise.
15794         * resolv/res_debug.c (loc_aton): Likewise.
15795         (loc_ntoa): Likewise.
15796         * resource/getpriority.c (__getpriority): Likewise.
15797         * resource/getrusage.c (__getrusage): Likewise.
15798         * resource/nice.c (nice): Likewise.
15799         * resource/setpriority.c (__setpriority): Likewise.
15800         * resource/setrlimit64.c (setrlimit64): Likewise.
15801         * resource/vlimit.c (vlimit): Likewise.
15802         * resource/vtimes.c (vtimes): Likewise.
15803         * rt/aio_error.c (aio_error): Likewise.
15804         * rt/aio_return.c (aio_return): Likewise.
15805         * rt/aio_sigqueue.c (__aio_sigqueue): Likewise.
15806         * signal/kill.c (__kill): Likewise.
15807         * signal/killpg.c (killpg): Likewise.
15808         * signal/raise.c (raise): Likewise.
15809         * signal/sigaction.c (__sigaction): Likewise.
15810         * signal/sigaddset.c (sigaddset): Likewise.
15811         * signal/sigaltstack.c (sigaltstack): Likewise.
15812         * signal/sigandset.c (sigandset): Likewise.
15813         * signal/sigblock.c (__sigblock): Likewise.
15814         * signal/sigdelset.c (sigdelset): Likewise.
15815         * signal/sigempty.c (sigemptyset): Likewise.
15816         * signal/sigfillset.c (sigfillset): Likewise.
15817         * signal/sighold.c (sighold): Likewise.
15818         * signal/sigignore.c (sigignore): Likewise.
15819         * signal/sigintr.c (siginterrupt): Likewise.
15820         * signal/sigisempty.c (sigisemptyset): Likewise.
15821         * signal/sigismem.c (sigismember): Likewise.
15822         * signal/signal.c (signal): Likewise.
15823         * signal/sigorset.c (sigorset): Likewise.
15824         * signal/sigpause.c (__sigpause): Likewise.
15825         * signal/sigpending.c (sigpending): Likewise.
15826         * signal/sigprocmask.c (__sigprocmask): Likewise.
15827         * signal/sigrelse.c (sigrelse): Likewise.
15828         * signal/sigreturn.c (__sigreturn): Likewise.
15829         * signal/sigset.c (sigset): Likewise.
15830         * signal/sigsetmask.c (__sigsetmask): Likewise.
15831         * signal/sigstack.c (sigstack): Likewise.
15832         * signal/sigsuspend.c (__sigsuspend): Likewise.
15833         * signal/sigvec.c (sigvec_wrapper_handler): Likewise.
15834         * signal/sysv_signal.c (__sysv_signal): Likewise.
15835         * socket/accept.c (accept): Likewise.
15836         * socket/accept4.c (__libc_accept4): Likewise.
15837         * socket/bind.c (__bind): Likewise.
15838         * socket/connect.c (__connect): Likewise.
15839         * socket/getpeername.c (getpeername): Likewise.
15840         * socket/getsockname.c (__getsockname): Likewise.
15841         * socket/getsockopt.c (getsockopt): Likewise.
15842         * socket/listen.c (__listen): Likewise.
15843         * socket/recv.c (__recv): Likewise.
15844         * socket/recvmsg.c (__recvmsg): Likewise.
15845         * socket/send.c (__send): Likewise.
15846         * socket/sendmsg.c (__sendmsg): Likewise.
15847         * socket/shutdown.c (shutdown): Likewise.
15848         * socket/sockatmark.c (sockatmark): Likewise.
15849         * socket/socket.c (__socket): Likewise.
15850         * stdio-common/ctermid.c (ctermid): Likewise.
15851         * stdio-common/cuserid.c (cuserid): Likewise.
15852         * stdio-common/printf-prs.c (parse_printf_format): Likewise.
15853         * stdio-common/remove.c (remove): Likewise.
15854         * stdio-common/rename.c (rename): Likewise.
15855         * stdio-common/renameat.c (renameat): Likewise.
15856         * stdio-common/tempname.c (__gen_tempname): Likewise.
15857         * stdio-common/xbug.c (InitBuffer): Likewise.
15858         (AppendToBuffer): Likewise.
15859         (ReadFile): Likewise.
15860         * stdlib/a64l.c (a64l): Likewise.
15861         * stdlib/drand48_r.c (drand48_r): Likewise.
15862         * stdlib/getcontext.c (getcontext): Likewise.
15863         * stdlib/getenv.c (getenv): Likewise.
15864         * stdlib/l64a.c (l64a): Likewise.
15865         * stdlib/llabs.c (llabs): Likewise.
15866         * stdlib/lldiv.c (lldiv): Likewise.
15867         * stdlib/lrand48_r.c (lrand48_r): Likewise.
15868         * stdlib/mrand48_r.c (mrand48_r): Likewise.
15869         * stdlib/putenv.c (putenv): Likewise.
15870         * stdlib/random.c (__srandom): Likewise.
15871         (__initstate): Likewise.
15872         (__setstate): Likewise.
15873         * stdlib/random_r.c (__srandom_r): Likewise.
15874         (__setstate_r): Likewise.
15875         (__random_r): Likewise.
15876         * stdlib/secure-getenv.c (__libc_secure_getenv): Likewise.
15877         * stdlib/setcontext.c (setcontext): Likewise.
15878         * stdlib/setenv.c (setenv): Likewise.
15879         (unsetenv): Likewise.
15880         * stdlib/srand48.c (srand48): Likewise.
15881         * stdlib/srand48_r.c (__srand48_r): Likewise.
15882         * stdlib/swapcontext.c (swapcontext): Likewise.
15883         * stdlib/system.c (__libc_system): Likewise.
15884         * stdlib/tst-strtod.c (expand): Likewise.
15885         * stdlib/tst-strtol.c (expand): Likewise.
15886         * stdlib/tst-strtoll.c (expand): Likewise.
15887         * streams/fattach.c (fattach): Likewise.
15888         * streams/fdetach.c (fdetach): Likewise.
15889         * streams/getmsg.c (getmsg): Likewise.
15890         * streams/isastream.c (isastream): Likewise.
15891         * string/ffs.c (__ffs): Likewise.
15892         * string/ffsll.c (ffsll): Likewise.
15893         * string/memcmp.c (memcmp_common_alignment): Likewise.
15894         (memcmp_not_common_alignment): Likewise.
15895         (MEMCMP): Likewise.
15896         * string/memcpy.c (memcpy): Likewise.
15897         * string/memmove.c (MEMMOVE): Likewise.
15898         * string/memset.c (memset): Likewise.
15899         * string/rawmemchr.c (RAWMEMCHR): Likewise.
15900         * string/strchrnul.c (STRCHRNUL): Likewise.
15901         * string/strerror.c (strerror): Likewise.
15902         * string/strndup.c (__strndup): Likewise.
15903         * string/strverscmp.c (__strverscmp): Likewise.
15904         * sunrpc/clnt_raw.c (clntraw_freeres): Likewise.
15905         * sunrpc/clnt_tcp.c (clnttcp_geterr): Likewise.
15906         (clnttcp_freeres): Likewise.
15907         * sunrpc/clnt_unix.c (clntunix_freeres): Likewise.
15908         * sunrpc/pmap_prot.c (xdr_pmap): Likewise.
15909         * sunrpc/pmap_prot2.c (xdr_pmaplist): Likewise.
15910         * sunrpc/pmap_rmt.c (xdr_rmtcallres): Likewise.
15911         * sunrpc/rpc_prot.c (xdr_replymsg): Likewise.
15912         (xdr_callhdr): Likewise.
15913         * sunrpc/rpcinfo.c (udpping): Likewise.
15914         (tcpping): Likewise.
15915         (pstatus): Likewise.
15916         (pmapdump): Likewise.
15917         (brdcst): Likewise.
15918         (deletereg): Likewise.
15919         (getprognum): Likewise.
15920         (getvers): Likewise.
15921         (get_inet_address): Likewise.
15922         * sunrpc/svc_raw.c (svcraw_recv): Likewise.
15923         * sunrpc/svc_udp.c (svcudp_create): Likewise.
15924         (svcudp_stat): Likewise.
15925         (svcudp_recv): Likewise.
15926         (svcudp_reply): Likewise.
15927         (svcudp_getargs): Likewise.
15928         (svcudp_freeargs): Likewise.
15929         (svcudp_destroy): Likewise.
15930         * sunrpc/xdr.c (xdr_bytes): Likewise.
15931         (xdr_netobj): Likewise.
15932         (xdr_string): Likewise.
15933         (xdr_wrapstring): Likewise.
15934         * sunrpc/xdr_float.c (xdr_float): Likewise.
15935         (xdr_double): Likewise.
15936         * sunrpc/xdr_mem.c (xdrmem_setpos): Likewise.
15937         * sunrpc/xdr_ref.c (xdr_pointer): Likewise.
15938         * sysvipc/ftok.c (ftok): Likewise.
15939         * sysvipc/msgctl.c (msgctl): Likewise.
15940         * sysvipc/msgget.c (msgget): Likewise.
15941         * sysvipc/msgrcv.c (msgrcv): Likewise.
15942         * sysvipc/msgsnd.c (msgsnd): Likewise.
15943         * sysvipc/semget.c (semget): Likewise.
15944         * sysvipc/semop.c (semop): Likewise.
15945         * sysvipc/shmat.c (shmat): Likewise.
15946         * sysvipc/shmctl.c (shmctl): Likewise.
15947         * sysvipc/shmdt.c (shmdt): Likewise.
15948         * sysvipc/shmget.c (shmget): Likewise.
15949         * termios/cfmakeraw.c (cfmakeraw): Likewise.
15950         * termios/speed.c (cfgetospeed): Likewise.
15951         (cfgetispeed): Likewise.
15952         (cfsetospeed): Likewise.
15953         (cfsetispeed): Likewise.
15954         * termios/tcflow.c (tcflow): Likewise.
15955         * termios/tcflush.c (tcflush): Likewise.
15956         * termios/tcgetattr.c (__tcgetattr): Likewise.
15957         * termios/tcgetpgrp.c (tcgetpgrp): Likewise.
15958         * termios/tcgetsid.c (tcgetsid): Likewise.
15959         * termios/tcsendbrk.c (tcsendbreak): Likewise.
15960         * termios/tcsetpgrp.c (tcsetpgrp): Likewise.
15961         * time/adjtime.c (__adjtime): Likewise.
15962         * time/dysize.c (dysize): Likewise.
15963         * time/ftime.c (ftime): Likewise.
15964         * time/getitimer.c (__getitimer): Likewise.
15965         * time/gettimeofday.c (__gettimeofday): Likewise.
15966         * time/gmtime.c (__gmtime_r): Likewise.
15967         (gmtime): Likewise.
15968         * time/localtime.c (__localtime_r): Likewise.
15969         (localtime): Likewise.
15970         * time/offtime.c (__offtime): Likewise.
15971         * time/settimeofday.c (__settimeofday): Likewise.
15972         * time/stime.c (stime): Likewise.
15973         * time/strftime_l.c (tm_diff): Likewise.
15974         (iso_week_days): Likewise.
15975         * time/strptime.c (strptime): Likewise.
15976         * time/time.c (time): Likewise.
15977         * time/timespec_get.c (timespec_get): Likewise.
15978         * time/tzset.c (tzset_internal): Likewise.
15979         (compute_change): Likewise.
15980         (__tz_compute): Likewise.
15981         * wcsmbs/btowc.c (__btowc): Likewise.
15982         * wcsmbs/mbrlen.c (__mbrlen): Likewise.
15983         * wcsmbs/mbsinit.c (__mbsinit): Likewise.
15984         * wcsmbs/mbsrtowcs.c (__mbsrtowcs): Likewise.
15985         * wcsmbs/wcpcpy.c (__wcpcpy): Likewise.
15986         * wcsmbs/wcpncpy.c (__wcpncpy): Likewise.
15987         * wcsmbs/wcscat.c (__wcscat): Likewise.
15988         * wcsmbs/wcschrnul.c (__wcschrnul): Likewise.
15989         * wcsmbs/wcscmp.c (WCSCMP): Likewise.
15990         * wcsmbs/wcscpy.c (WCSCPY): Likewise.
15991         * wcsmbs/wcscspn.c (wcscspn): Likewise.
15992         * wcsmbs/wcsdup.c (wcsdup): Likewise.
15993         * wcsmbs/wcslen.c (__wcslen): Likewise.
15994         * wcsmbs/wcsncat.c (WCSNCAT): Likewise.
15995         * wcsmbs/wcsncmp.c (WCSNCMP): Likewise.
15996         * wcsmbs/wcsncpy.c (__wcsncpy): Likewise.
15997         * wcsmbs/wcsnlen.c (__wcsnlen): Likewise.
15998         * wcsmbs/wcspbrk.c (wcspbrk): Likewise.
15999         * wcsmbs/wcsrchr.c (WCSRCHR): Likewise.
16000         * wcsmbs/wcsspn.c (wcsspn): Likewise.
16001         * wcsmbs/wcsstr.c (wcsstr): Likewise.
16002         * wcsmbs/wcstok.c (wcstok): Likewise.
16003         * wcsmbs/wctob.c (wctob): Likewise.
16004         * wcsmbs/wmemchr.c (__wmemchr): Likewise.
16005         * wcsmbs/wmemcmp.c (WMEMCMP): Likewise.
16006         * wcsmbs/wmemcpy.c (__wmemcpy): Likewise.
16007         * wcsmbs/wmemmove.c (__wmemmove): Likewise.
16008         * wcsmbs/wmempcpy.c (__wmempcpy): Likewise.
16009         * wcsmbs/wmemset.c (__wmemset): Likewise.
16010         * wctype/wcfuncs.c (__towlower): Likewise.
16011         (__towupper): Likewise.
16012
16013         * sysdeps/unix/sysv/linux/i386/lowlevellock.h
16014         (lll_unlock_elision): Add adapt_count parameter.
16015
16016 2015-10-15  Joseph Myers  <joseph@codesourcery.com>
16017
16018         * sysdeps/nptl/configure.ac: Do not give errors based on the
16019         results of top-level configure tests.
16020         * sysdeps/nptl/configure: Regenerated.
16021
16022         * configure.ac (libc_cv_Bgroup): Remove configure test.
16023         * configure: Regenerated.
16024         * config.make.in (have-Bgroup): Remove variable.
16025
16026         * configure.ac (sizeof_long_double): Remove configure test.
16027         * configure: Regenerated.
16028         * config.make.in (sizeof-long-double): Remove variable.
16029
16030         * configure.ac (libc_cv_gcc_exceptions): Remove configure test.
16031         * configure: Regenerated.
16032         * sysdeps/arm/configure.ac (libc_cv_gcc_exceptions): Do not set
16033         variable.
16034         (exceptions): Likewise.
16035         * sysdeps/arm/configure: Regenerated.
16036         * config.make.in (exceptions): Remove variable.
16037         * Makeconfig (uses-callbacks): Use -fexceptions instead of
16038         $(exceptions).
16039         * debug/Makefile (CFLAGS-dprintf_chk.c): Likewise.
16040         (CFLAGS-vdprintf_chk.c): Likewise.
16041         (CFLAGS-printf_chk.c): Likewise.
16042         (CFLAGS-fprintf_chk.c): Likewise.
16043         (CFLAGS-vprintf_chk.c): Likewise.
16044         (CFLAGS-vfprintf_chk.c): Likewise.
16045         (CFLAGS-gets_chk.c): Likewise.
16046         (CFLAGS-fgets_chk.c): Likewise.
16047         (CFLAGS-fgets_u_chk.c): Likewise.
16048         (CFLAGS-fread_chk.c): Likewise.
16049         (CFLAGS-fread_u_chk.c): Likewise.
16050         (CFLAGS-wprintf_chk.c): Likewise.
16051         (CFLAGS-fwprintf_chk.c): Likewise.
16052         (CFLAGS-vwprintf_chk.c): Likewise.
16053         (CFLAGS-vfwprintf_chk.c): Likewise.
16054         (CFLAGS-fgetws_chk.c): Likewise.
16055         (CFLAGS-fgetws_u_chk.c): Likewise.
16056         * libio/Makefile (CFLAGS-fileops.c): Likewise.
16057         (CFLAGS-fputc.c): Likewise.
16058         (CFLAGS-fputwc.c): Likewise.
16059         (CFLAGS-freopen64.c): Likewise.
16060         (CFLAGS-freopen.c): Likewise.
16061         (CFLAGS-fseek.c): Likewise.
16062         (CFLAGS-fseeko64.c): Likewise.
16063         (CFLAGS-fseeko.c): Likewise.
16064         (CFLAGS-ftello64.c): Likewise.
16065         (CFLAGS-ftello.c): Likewise.
16066         (CFLAGS-fwide.c): Likewise.
16067         (CFLAGS-genops.c): Likewise.
16068         (CFLAGS-getc.c): Likewise.
16069         (CFLAGS-getchar.c): Likewise.
16070         (CFLAGS-getwc.c): Likewise.
16071         (CFLAGS-getwchar.c): Likewise.
16072         (CFLAGS-iofclose.c): Likewise.
16073         (CFLAGS-iofflush.c): Likewise.
16074         (CFLAGS-iofgetpos64.c): Likewise.
16075         (CFLAGS-iofgetpos.c): Likewise.
16076         (CFLAGS-iofgets.c): Likewise.
16077         (CFLAGS-iofgetws.c): Likewise.
16078         (CFLAGS-iofputs.c): Likewise.
16079         (CFLAGS-iofputws.c): Likewise.
16080         (CFLAGS-iofread.c): Likewise.
16081         (CFLAGS-iofsetpos64.c): Likewise.
16082         (CFLAGS-iofsetpos.c): Likewise.
16083         (CFLAGS-ioftell.c): Likewise.
16084         (CFLAGS-iofwrite.c): Likewise.
16085         (CFLAGS-iogetdelim.c): Likewise.
16086         (CFLAGS-iogetline.c): Likewise.
16087         (CFLAGS-iogets.c): Likewise.
16088         (CFLAGS-iogetwline.c): Likewise.
16089         (CFLAGS-ioputs.c): Likewise.
16090         (CFLAGS-ioseekoff.c): Likewise.
16091         (CFLAGS-ioseekpos.c): Likewise.
16092         (CFLAGS-iosetbuffer.c): Likewise.
16093         (CFLAGS-iosetvbuf.c): Likewise.
16094         (CFLAGS-ioungetc.c): Likewise.
16095         (CFLAGS-ioungetwc.c): Likewise.
16096         (CFLAGS-oldfileops.c): Likewise.
16097         (CFLAGS-oldiofclose.c): Likewise.
16098         (CFLAGS-oldiofgetpos64.c): Likewise.
16099         (CFLAGS-oldiofgetpos.c): Likewise.
16100         (CFLAGS-oldiofsetpos64.c): Likewise.
16101         (CFLAGS-oldiofsetpos.c): Likewise.
16102         (CFLAGS-peekc.c): Likewise.
16103         (CFLAGS-putc.c): Likewise.
16104         (CFLAGS-putchar.c): Likewise.
16105         (CFLAGS-putwc.c): Likewise.
16106         (CFLAGS-putwchar.c): Likewise.
16107         (CFLAGS-rewind.c): Likewise.
16108         (CFLAGS-wfileops.c): Likewise.
16109         (CFLAGS-wgenops.c): Likewise.
16110         (CFLAGS-oldiofopen.c): Likewise.
16111         (CFLAGS-iofopen.c): Likewise.
16112         (CFLAGS-iofopen64.c): Likewise.
16113         (CFLAGS-oldtmpfile.c): Likewise.
16114         * stdio-common/Makefile (CFLAGS-vfprintf.c): Likewise.
16115         (CFLAGS-fprintf.c): Likewise.
16116         (CFLAGS-printf.c): Likewise.
16117         (CFLAGS-vfwprintf.c): Likewise.
16118         (CFLAGS-vfscanf.c): Likewise.
16119         (CFLAGS-vfwscanf.c): Likewise.
16120         (CFLAGS-fscanf.c): Likewise.
16121         (CFLAGS-scanf.c): Likewise.
16122         (CFLAGS-isoc99_vfscanf.c): Likewise.
16123         (CFLAGS-isoc99_vscanf.c): Likewise.
16124         (CFLAGS-isoc99_fscanf.c): Likewise.
16125         (CFLAGS-isoc99_scanf.c): Likewise.
16126         * wcsmbs/Makefile (CFLAGS-isoc99_wscanf.c): Likewise.
16127         (CFLAGS-isoc99_fwscanf.c): Likewise.
16128         (CFLAGS-isoc99_vwscanf.c): Likewise.
16129         (CFLAGS-isoc99_vfwscanf.c): Likewise.
16130
16131         * io/test-lfs.c (do_prepare): Do not call add_temp_file until
16132         after mkstemp64.
16133         * login/tst-utmp.c (do_prepare): Likewise.
16134         * rt/tst-aio.c (do_prepare): Likewise.
16135         * rt/tst-aio64.c (do_prepare): Likewise.
16136
16137 2015-10-15  Paul E. Murphy  <murphyp@linux.vnet.ibm.com>
16138
16139         * sysdeps/unix/sysv/linux/powerpc/elision-lock.c
16140         (__lll_lock_elision): Remove adapt_count decrement...
16141         * sysdeps/unix/sysv/linux/powerpc/elision-trylock.c
16142         (__lll_trylock_elision): Likewise.
16143         * sysdeps/unix/sysv/linux/powerpc/elision-unlock.c
16144         (__lll_unlock_elision): ... to here. And utilize
16145         new adapt_count parameter.
16146         * sysdeps/unix/sysv/linux/powerpc/lowlevellock.h
16147         (__lll_unlock_elision): Update to include adapt_count
16148         parameter.
16149         (lll_unlock_elision): Pass pointer to adapt_count
16150         variable.
16151
16152 2015-10-15  Paul E. Murphy  <murphyp@linux.vnet.ibm.com>
16153
16154         * nptl/pthread_mutex_unlock.c (lll_unlock_elision):
16155         Add elision adapt_count parameter to list of arguments.
16156         * sysdeps/unix/sysv/linux/powerpc/lowlevellock.h
16157         (lll_unlock_elision): Update with new parameter list
16158         * sysdeps/unix/sysv/linux/s390/lowlevellock.h
16159         (lll_unlock_elision): Likewise.
16160         * sysdeps/unix/sysv/linux/x86_64/lowlevellock.h
16161         (lll_unlock_elision): Likewise.
16162
16163 2015-10-15  H.J. Lu  <hongjiu.lu@intel.com>
16164
16165         [BZ #19122]
16166         * include/sys/utsname.h [IS_IN (rtld)] (__uname): Add
16167         attribute_hidden.
16168
16169         * include/string.h [IS_IN (rtld)] (__stpcpy): Add
16170         attribute_hidden.
16171         [IS_IN (rtld)] (__strdup): Likewise.
16172         [IS_IN (rtld)] (__strerror_r): Likewise.
16173         [IS_IN (rtld)] (__strsep_g): Likewise.
16174         [IS_IN (rtld)] (memchr): Likewise.
16175         [IS_IN (rtld)] (memcmp): Likewise.
16176         [IS_IN (rtld)] (memcpy): Likewise.
16177         [IS_IN (rtld)] (memmove): Likewise.
16178         [IS_IN (rtld)] (memset): Likewise.
16179         [IS_IN (rtld)] (rawmemchr): Likewise.
16180         [IS_IN (rtld)] (stpcpy): Likewise.
16181         [IS_IN (rtld)] (strchr): Likewise.
16182         [IS_IN (rtld)] (strcmp): Likewise.
16183         [IS_IN (rtld)] (strlen): Likewise.
16184         [IS_IN (rtld)] (strnlen): Likewise.
16185         [IS_IN (rtld)] (strsep): Likewise.
16186
16187         * include/stdlib.h [IS_IN (rtld)] (unsetenv): Add
16188         attribute_hidden.
16189         [IS_IN (rtld)] (__strtoul_internal): Likewise.
16190
16191         * include/signal.h [IS_IN (rtld)] (__sigaction): Add
16192         attribute_hidden.
16193         [IS_IN (rtld)] (__libc_sigaction): Likewise.
16194
16195         * include/setjmp.h (__longjmp): Add attribute_hidden.
16196         [IS_IN (rtld)] (__sigsetjmp): Likewise.
16197
16198         * include/libc-internal.h [IS_IN (rtld)] (__profile_frequency):
16199         Add attribute_hidden.
16200
16201         * include/fcntl.h (__libc_fcntl): Add attribute_hidden.
16202         [IS_IN (rtld)] (__open): Likewise.
16203         [IS_IN (rtld)] (__fcntl): Likewise.
16204
16205         * include/dirent.h (__opendirat): Add attribute_hidden.
16206         (__getdents): Likewise.
16207         (__getdents64): Likewise.
16208         (__alloc_dir): Likewise.
16209         [IS_IN (rtld)] (__closedir): Likewise.
16210         [IS_IN (rtld)] (__fdopendir): Likewise.
16211         [IS_IN (rtld)] (__readdir): Likewise.
16212         [IS_IN (rtld)] (__readdir64): Likewise.
16213         [IS_IN (rtld)] (__rewinddir): Likewise.
16214
16215         * include/dlfcn.h (_dl_catch_error): Moved to ...
16216         * sysdeps/generic/ldsodefs.h (_dl_catch_error): Add
16217         attribute_hidden.
16218
16219         * sysdeps/generic/_itoa.h (_itoa): Add attribute_hidden.
16220         (_itoa_word): Likewise.
16221
16222         * elf/dl-runtime.c (_dl_fixup): Add attribute_hidden.
16223         * elf/dynamic-link.h (_dl_try_allocate_static_tls): Likewise.
16224         * sysdeps/generic/dl-cache.h (_dl_cache_libcmp): Likewise.
16225         * sysdeps/generic/ldsodefs.h (_dl_name_match_p): Likewise.
16226         (_dl_higher_prime_number): Likewise.
16227         (_dl_debug_printf_c): Likewise.
16228         (_dl_signal_cerror): Likewise.
16229         (_dl_receive_error): Likewise.
16230         (_dl_reloc_bad_type): Likewise.
16231         (_dl_resolve_conflicts): Likewise.
16232         (_dl_check_all_versions): Likewise.
16233         (_dl_check_map_versions): Likewise.
16234         (_dl_sort_fini): Likewise.
16235         (_dl_debug_initialize): Likewise.
16236         (_dl_init_paths): Likewise.
16237         (_dl_show_auxv): Likewise.
16238         (_dl_next_ld_env_entry): Likewise.
16239         (_dl_important_hwcaps): Likewise.
16240         (_dl_load_cache_lookup): Likewise.
16241         (_dl_update_slotinfo): Likewise.
16242         (_dl_show_scope): Likewise.
16243
16244         * sysdeps/generic/memcopy.h (_wordcopy_fwd_aligned): Add
16245         attribute_hidden.
16246         (_wordcopy_fwd_dest_aligned): Likewise.
16247         (_wordcopy_bwd_aligned): Likewise.
16248         (_wordcopy_bwd_dest_aligned): Likewise.
16249
16250         * sysdeps/i386/dl-lookupcfg.h (_dl_unmap): Add attribute_hidden.
16251         * sysdeps/i386/dl-tlsdesc.h (_dl_make_tlsdesc_dynamic):
16252         Likewise.
16253         * sysdeps/x86_64/dl-tlsdesc.h (_dl_make_tlsdesc_dynamic):
16254         Likewise.
16255         * sysdeps/x86_64/dl-lookupcfg.h (_dl_unmap): Likewise.
16256
16257 2015-10-15  H.J. Lu  <hongjiu.lu@intel.com>
16258
16259         * sysdeps/unix/sysv/linux/i386/sysdep.h: Add comments for
16260         GCC 5 requirement.
16261
16262 2015-10-15  Joseph Myers  <joseph@codesourcery.com>
16263
16264         * sysdeps/i386/configure.ac (libc_cv_as_i686): Remove configure
16265         test.
16266         * sysdeps/i386/configure: Regenerated.
16267         * sysdeps/i386/i686/Makefile [$(config-asflags-i686) = yes]: Make
16268         code unconditional.
16269
16270         * configure.ac (libc_cv_asm_previous_directive): Remove configure
16271         test.
16272         (libc_cv_asm_popsection_directive): Likewise.
16273         * configure: Regenerated.
16274         * config.h.in (HAVE_ASM_PREVIOUS_DIRECTIVE): Remove #undef.
16275         (HAVE_ASM_POPSECTION_DIRECTIVE): Likewise.
16276         * include/libc-symbols.h [HAVE_ASM_PREVIOUS_DIRECTIVE]
16277         (__make_section_unallocated): Make definition unconditional.
16278         [HAVE_ASM_POPSECTION_DIRECTIVE] (__make_section_unallocated):
16279         Remove conditional definition.
16280         [!HAVE_ASM_PREVIOUS_DIRECTIVE && !HAVE_ASM_POPSECTION_DIRECTIVE]
16281         (__make_section_unallocated): Likewise.
16282
16283         * configure.ac (libc_cv_gcc_static_libgcc): Remove configure test.
16284         * configure: Regenerated.
16285         * config.make.in (static-libgcc): Remove variable.
16286         * Makerules (build-shlib-helper): Use -static-libgcc instead of
16287         $(static-libgcc).
16288         (build-module-helper): Likewise.
16289
16290         * configure.ac (libc_cv_friendly_stddef): Remove configure test.
16291         * configure: Regenerated.
16292
16293 2015-10-15  Florian Weimer  <fweimer@redhat.com>
16294
16295         * stdio-common/vfscanf.c (MEMCPY): Remove macro.
16296         (struct char_buffer): New type.
16297         (char_buffer_start, char_buffer_size, char_buffer_error)
16298         (char_buffer_rewind, char_buffer_add): New functions.
16299         (ADDW): Remove macro, replaced by the char_buffer_add function.
16300         (_IO_vfscanf_internal): Rewrite using struct char_buffer instead
16301         of extend_alloca.  Make control flow more explicit.
16302
16303 2015-10-15  H.J. Lu  <hongjiu.lu@intel.com>
16304
16305         [BZ #19137]
16306         * sysdeps/unix/sysv/linux/i386/Makefile (CFLAGS-epoll_pwait.c):
16307         Add -fomit-frame-pointer.
16308         * sysdeps/unix/sysv/linux/i386/epoll_pwait.S: Remove file.
16309
16310 2015-10-15  H.J. Lu  <hongjiu.lu@intel.com>
16311
16312         * sysdeps/unix/sysv/linux/i386/libc-do-syscall.S
16313         (__libc_do_syscall): Defined only if !__GNUC_PREREQ (5,0).
16314         * sysdeps/unix/sysv/linux/i386/sysdep.h: Define assembler macros
16315         only if !__GNUC_PREREQ (5,0).
16316         (INTERNAL_SYSCALL_MAIN_6): Optimize for GCC 5.
16317         (INTERNAL_SYSCALL_MAIN_INLINE): Likewise.
16318         (INTERNAL_SYSCALL_NCS): Likewise.
16319         (LOADREGS_0): New macro for GCC 5.
16320         (ASMARGS_0): Likewise.
16321         (LOADREGS_1): Likewise.
16322         (ASMARGS_1): Likewise.
16323         (LOADREGS_2): Likewise.
16324         (ASMARGS_2): Likewise.
16325         (LOADREGS_3): Likewise.
16326         (ASMARGS_3): Likewise.
16327         (LOADREGS_4): Likewise.
16328         (ASMARGS_4): Likewise.
16329         (LOADREGS_5): Likewise.
16330         (ASMARGS_5): Likewise.
16331         (LOADREGS_6): Likewise.
16332         (ASMARGS_6): Likewise.
16333
16334 2015-10-15  H.J. Lu  <hongjiu.lu@intel.com>
16335
16336         * sysdeps/unix/sysv/linux/i386/Makefile (CFLAGS-mmap.c): Add
16337         -fomit-frame-pointer.
16338         (CFLAGS-mmap64.c): Likewise.
16339         (CFLAGS-semtimedop.c): Likewise.
16340         * sysdeps/unix/sysv/linux/i386/mmap.c: New file.
16341         * sysdeps/unix/sysv/linux/i386/mmap.S: Remove file.
16342         * sysdeps/unix/sysv/linux/i386/mmap64.S: Likewise.
16343         * sysdeps/unix/sysv/linux/i386/semtimedop.S: Likewise.
16344
16345 2015-10-15  Florian Weimer  <fweimer@redhat.com>
16346
16347         [BZ #18928]
16348         * sysdeps/generic/ldsodefs.h (struct rtld_global_ro): Remove
16349         _dl_pointer_guard member.
16350         * elf/rtld.c (_rtld_global_ro): Remove _dl_pointer_guard
16351         initializer.
16352         (security_init): Always set up pointer guard.
16353         (process_envvars): Do not process LD_POINTER_GUARD.
16354
16355 2015-10-14  Joseph Myers  <joseph@codesourcery.com>
16356
16357         [BZ #19134]
16358         * sysdeps/powerpc/powerpc32/fpu/s_lround.S (.LC1): New object.
16359         (.LC2): Likewise.
16360         (.LC3): Likewise.
16361         (__lround): Do not add 0.5 to integer or out-of-range arguments.
16362
16363 2015-10-14  Szabolcs Nagy  <szabolcs.nagy@arm.com>
16364
16365         [BZ #19129]
16366         * sysdeps/arm/dl-tlsdesc.S (_dl_tlsdesc_resolve_hold): Save and restore
16367         r0 and r1.
16368
16369 2015-10-14  Namhyung Kim  <namhyung@gmail.com>
16370
16371         * manaual/argp.texi (Specifying Argp Parsers): Fix typo.
16372
16373 2015-10-14  Carlos O'Donell  <carlos@redhat.com>
16374
16375         * include/stap-probe.h: Fix macro definition formatting.
16376
16377 2015-10-14  Florian Weimer  <fweimer@redhat.com>
16378
16379         [BZ #19074]
16380         * resolv/res_hconf.c (_res_hconf_reorder_addrs): Use atomics to
16381         load and store num_ifs.
16382
16383 2015-10-14  H.J. Lu  <hongjiu.lu@intel.com>
16384
16385         [BZ #18822]
16386         * sysdeps/unix/sysv/linux/sched_getaffinity.c
16387         (__sched_getaffinity_new): Add libc_hidden_proto and
16388         libc_hidden_def.
16389
16390 2015-10-14  H.J. Lu  <hongjiu.lu@intel.com>
16391
16392         [BZ #19007]
16393         * scripts/localplt.awk: Also allow GOT references.
16394         * sysdeps/unix/sysv/linux/i386/localplt.data: Mark
16395         _Unwind_Find_FDE, calloc, memalign, realloc and __libc_memalign
16396         with "+ REL R_386_GLOB_DAT".
16397         * sysdeps/x86_64/localplt.data: Mark calloc, memalign, realloc
16398         and __libc_memalign with "+ RELA R_X86_64_GLOB_DAT".
16399
16400 2015-10-14  H.J. Lu  <hongjiu.lu@intel.com>
16401
16402         * sysdeps/unix/sysv/linux/i386/brk.c (__brk): Use
16403         INLINE_SYSCALL_ERROR_RETURN_VALUE.
16404         * sysdeps/unix/sysv/linux/i386/fxstatat.c (__fxstatat):
16405         Likewise.
16406         * sysdeps/unix/sysv/linux/i386/setegid.c (setegid): Likewise.
16407         * sysdeps/unix/sysv/linux/i386/seteuid.c (seteuid): Likewise.
16408         * sysdeps/unix/sysv/linux/i386/fxstat.c (__fxstat): Use
16409         INTERNAL_SYSCALLINTERNAL_SYSCALL and
16410         INLINE_SYSCALL_ERROR_RETURN_VALUE.
16411         * sysdeps/unix/sysv/linux/i386/lockf64.c (lockf64): Likewise.
16412         * sysdeps/unix/sysv/linux/i386/lxstat.c (__lxstat): Likewise.
16413         * sysdeps/unix/sysv/linux/i386/sigaction.c (__libc_sigaction):
16414         Likewise.
16415         * sysdeps/unix/sysv/linux/i386/xstat.c (__xstat): Likewise.
16416
16417 2015-10-13  Joseph Myers  <joseph@codesourcery.com>
16418
16419         [BZ #19125]
16420         * sysdeps/powerpc/powerpc32/fpu/s_llround.c: Include <limits.h>,
16421         <math_private.h> and <stdint.h>.
16422         (__llround): Avoid conversions to and from long long int, and
16423         subtractions, where those might raise spurious exceptions.
16424         * sysdeps/powerpc/powerpc32/fpu/s_llroundf.c: Include
16425         <math_private.h> and <stdint.h>.
16426         (__llroundf): Avoid conversions to and from long long int, and
16427         subtractions, where those might raise spurious exceptions.
16428
16429 2015-10-13  H.J. Lu  <hongjiu.lu@intel.com>
16430
16431         * sysdeps/unix/sysv/linux/adjtime.c (ADJTIME): Use
16432         INLINE_SYSCALL_ERROR_RETURN_VALUE.
16433         * sysdeps/unix/sysv/linux/dl-openat64.c (openat64): Likewise.
16434         * sysdeps/unix/sysv/linux/eventfd.c (eventfd): Likewise.
16435         * sysdeps/unix/sysv/linux/faccessat.c (faccessat): Likewise.
16436         * sysdeps/unix/sysv/linux/fchmodat.c (fchmodat): Likewise.
16437         * sysdeps/unix/sysv/linux/fcntl.c (do_fcntl): Likewise.
16438         * sysdeps/unix/sysv/linux/futimens.c (futimens): Likewise.
16439         * sysdeps/unix/sysv/linux/futimes.c (__futimes): Likewise.
16440         * sysdeps/unix/sysv/linux/fxstat.c (__fxstat): Likewise.
16441         * sysdeps/unix/sysv/linux/fxstatat.c (__fxstatat): Likewise.
16442         * sysdeps/unix/sysv/linux/fxstatat64.c (__fxstatat64): Likewise.
16443         * sysdeps/unix/sysv/linux/lutimes.c (lutimes): Likewise.
16444         * sysdeps/unix/sysv/linux/lxstat.c (__lxstat): Likewise.
16445         * sysdeps/unix/sysv/linux/lxstat64.c (___lxstat64): Likewise.
16446         * sysdeps/unix/sysv/linux/mmap64.c (__mmap64): Likewise.
16447         * sysdeps/unix/sysv/linux/mq_open.c (__mq_open): Likewise.
16448         * sysdeps/unix/sysv/linux/mq_unlink.c (mq_unlink): Likewise.
16449         * sysdeps/unix/sysv/linux/prlimit.c (prlimit): Likewise.
16450         * sysdeps/unix/sysv/linux/readahead.c (__readahead): Likewise.
16451         * sysdeps/unix/sysv/linux/shmat.c (shmat): Likewise.
16452         * sysdeps/unix/sysv/linux/signalfd.c (signalfd): Likewise.
16453         * sysdeps/unix/sysv/linux/speed.c (cfsetospeed): Likewise.
16454         * sysdeps/unix/sysv/linux/tcsetattr.c (tcsetattr): Likewise.
16455         * sysdeps/unix/sysv/linux/ustat.c (ustat): Likewise.
16456         * sysdeps/unix/sysv/linux/utimensat.c (utimensat): Likewise.
16457         * sysdeps/unix/sysv/linux/xmknod.c (__xmknod): Likewise.
16458         * sysdeps/unix/sysv/linux/xmknodat.c (__xmknodat): Likewise.
16459         * sysdeps/unix/sysv/linux/xstat.c (__xstat): Likewise.
16460         * sysdeps/unix/sysv/linux/xstatconv.c (__xstat_conv): Likewise.
16461         (__xstat64_conv): Likewise.
16462         (__xstat32_conv): Likewise.
16463
16464 2015-10-13  H.J. Lu  <hongjiu.lu@intel.com>
16465
16466         * sysdeps/unix/sysv/linux/sysdep.h: New file.
16467         * sysdeps/unix/sysv/linux/i386/sysdep.c: Likewise.
16468         * sysdeps/unix/sysv/linux/alpha/sysdep.h: Include
16469         <sysdeps/unix/sysv/linux/sysdep.h>.
16470         * sysdeps/unix/sysv/linux/arm/sysdep.h: Likewise.
16471         * sysdeps/unix/sysv/linux/generic/sysdep.h: Likewise.
16472         * sysdeps/unix/sysv/linux/hppa/sysdep.h: Likewise.
16473         * sysdeps/unix/sysv/linux/ia64/sysdep.h: Likewise.
16474         * sysdeps/unix/sysv/linux/m68k/sysdep.h: Likewise.
16475         * sysdeps/unix/sysv/linux/microblaze/sysdep.h: Likewise.
16476         * sysdeps/unix/sysv/linux/mips/mips32/sysdep.h: Likewise.
16477         * sysdeps/unix/sysv/linux/mips/mips64/n32/sysdep.h: Likewise.
16478         * sysdeps/unix/sysv/linux/mips/mips64/n64/sysdep.h: Likewise.
16479         * sysdeps/unix/sysv/linux/powerpc/powerpc32/sysdep.h: Likewise.
16480         * sysdeps/unix/sysv/linux/powerpc/powerpc64/sysdep.h: Likewise.
16481         * sysdeps/unix/sysv/linux/s390/s390-32/sysdep.h: Likewise.
16482         * sysdeps/unix/sysv/linux/s390/s390-64/sysdep.h: Likewise.
16483         * sysdeps/unix/sysv/linux/sh/sysdep.h: Likewise.
16484         * sysdeps/unix/sysv/linux/sparc/sysdep.h: Likewise.
16485         * sysdeps/unix/sysv/linux/x86_64/sysdep.h: Likewise.
16486         * sysdeps/unix/sysv/linux/i386/Makefile [$(subdir) == csu]
16487         (sysdep-dl-routines): Add sysdep.
16488         [$(subdir) == nptl] (libpthread-routines): Likewise.
16489         [$(subdir) == rt] (librt-routines): Likewise.
16490         * sysdeps/unix/sysv/linux/i386/clone.S (__clone): Don't check
16491         PIC when branching to SYSCALL_ERROR_LABEL.
16492         * sysdeps/unix/sysv/linux/i386/sysdep.S: Removed.
16493         * sysdeps/unix/sysv/linux/i386/sysdep.h: Include
16494         <sysdeps/unix/sysv/linux/sysdep.h>.
16495         (SYSCALL_ERROR_LABEL): Changed to __syscall_error.
16496         (SYSCALL_ERROR_ERRNO): Removed.
16497         (SYSCALL_ERROR_HANDLER): Changed to empty.
16498         (SYSCALL_ERROR_HANDLER_TLS_STORE): Likewise.
16499         (__syscall_error): New prototype.
16500         [IS_IN (libc)] (INLINE_SYSCALL): New macro.
16501         (INLINE_SYSCALL_ERROR_RETURN_VALUE): Likewise.
16502
16503 2015-10-13  H.J. Lu  <hongjiu.lu@intel.com>
16504
16505         [BZ #19124]
16506         * sysdeps/x86_64/dl-trampoline.S [!HAVE_AVX512_ASM_SUPPORT]
16507         (_dl_runtime_resolve_avx512): Make it a hidden alias of
16508         _dl_runtime_resolve_avx.
16509         (_dl_runtime_profile_avx512): Make it a hidden alias of
16510         _dl_runtime_profile_avx.
16511
16512 2015-10-13  Joseph Myers  <joseph@codesourcery.com>
16513
16514         * sysdeps/powerpc/fpu/s_llround.c: Move to ....
16515         * sysdeps/powerpc/powerpc32/fpu/s_llround.c: ...here.
16516         * sysdeps/powerpc/fpu/s_llroundf.c: Move to ....
16517         * sysdeps/powerpc/powerpc32/fpu/s_llroundf.c: ...here.
16518
16519         [BZ #16422]
16520         * sysdeps/powerpc/powerpc32/fpu/configure.ac (libc_cv_ppc_fctidz):
16521         New configure test.
16522         * sysdeps/powerpc/powerpc32/fpu/configure: Regenerated.
16523         * config.h.in [_LIBC] (HAVE_PPC_FCTIDZ): New macro.
16524         * sysdeps/powerpc/powerpc32/fpu/s_llrint.c: Include <limits.h>,
16525         <math_private.h> and <stdint.h>.
16526         (__llrint): Avoid conversions to long long int where those might
16527         raise spurious exceptions.
16528         * sysdeps/powerpc/powerpc32/fpu/s_llrintf.c: Include
16529         <math_private.h> and <stdint.h>.
16530         (__llrintf): Avoid conversions to long long int where those might
16531         raise spurious exceptions.
16532
16533 2015-10-12  Andreas Schwab  <schwab@suse.de>
16534
16535         [BZ #18969]
16536         * debug/Makefile (LOCALES): Define.  Include gen-locales.mk.
16537         ($(objpfx)tst-chk1.out): Depend on $(gen-locales).
16538         * iconvdata/Makefile (LOCALES): Define.  Include gen-locales.mk.
16539         ($(objpfx)bug-iconv6.out, $(objpfx)tst-iconv7.out): Depend on
16540         $(gen-locales).
16541         * intl/Makefile (LOCALES): Define.  Include gen-locales.mk.
16542         ($(objpfx)tst-codeset.out, $(objpfx)tst-gettext.out)
16543         ($(objpfx)tst-gettext2.out, $(objpfx)tst-gettext3.out)
16544         ($(objpfx)tst-gettext4.out, $(objpfx)tst-gettext5.out)
16545         ($(objpfx)tst-gettext6.out, $(objpfx)tst-translit.out): Depend on
16546         $(gen-locales).
16547         * libio/Makefile (LOCALES): Define.  Include gen-locales.mk.
16548         ($(objpfx)bug-ftell.out, $(objpfx)bug-ungetwc1.out)
16549         ($(objpfx)bug-ungetwc2.out, $(objpfx)tst-fgetwc.out)
16550         ($(objpfx)tst-fgetws.out, $(objpfx)tst-fopenloc.out)
16551         ($(objpfx)tst-fputws.out, $(objpfx)tst-fseek.out)
16552         ($(objpfx)tst-ftell-active-handler.out)
16553         ($(objpfx)tst-ftell-append.out)
16554         ($(objpfx)tst-ftell-partial-wide.out, $(objpfx)tst-setvbuf1.out)
16555         ($(objpfx)tst-swscanf.out, $(objpfx)tst-ungetwc1.out)
16556         ($(objpfx)tst-ungetwc2.out, $(objpfx)tst-widetext.out)
16557         ($(objpfx)tst_wprintf2.out): Depend on $(gen-locales).
16558         * posix/Makefile (LOCALES): Define.  Include gen-locales.mk.
16559         ($(objpfx)bug-regex1.out, $(objpfx)bug-regex4.out)
16560         ($(objpfx)bug-regex5.out, $(objpfx)bug-regex6.out)
16561         ($(objpfx)bug-regex17.out, $(objpfx)bug-regex18.out)
16562         ($(objpfx)bug-regex19.out, $(objpfx)bug-regex20.out)
16563         ($(objpfx)bug-regex22.out, $(objpfx)bug-regex23.out)
16564         ($(objpfx)bug-regex25.out, $(objpfx)bug-regex26.out)
16565         ($(objpfx)bug-regex30.out, $(objpfx)bug-regex32.out)
16566         ($(objpfx)bug-regex33.out, $(objpfx)bug-regex34.out)
16567         ($(objpfx)bug-regex35.out, $(objpfx)tst-fnmatch.out)
16568         ($(objpfx)tst-fnmatch4.out, $(objpfx)tst-fnmatch5.out)
16569         ($(objpfx)tst-regex.out, $(objpfx)tst-regex2.out)
16570         ($(objpfx)tst-regexloc.out, $(objpfx)tst-rxspencer.out)
16571         ($(objpfx)tst-rxspencer-no-utf8.out): Depend on $(gen-locales).
16572         * stdio-common/Makefile (LOCALES): Define.  Include gen-locales.mk.
16573         ($(objpfx)bug14.out, $(objpfx)scanf13.out)
16574         ($(objpfx)test-vfprintf.out, $(objpfx)tst-grouping.out)
16575         ($(objpfx)tst-sprintf.out, $(objpfx)tst-sscanf.out)
16576         ($(objpfx)tst-swprintf.out): Depend on $(gen-locales).
16577         * stdlib/Makefile (LOCALES): Define.  Include gen-locales.mk.
16578         ($(objpfx)bug-strtod2.out, $(objpfx)testmb2.out)
16579         ($(objpfx)tst-strtod.out, $(objpfx)tst-strtod3.out)
16580         ($(objpfx)tst-strtod4.out, $(objpfx)tst-strtod5.out): Depend on
16581         $(gen-locales).
16582         * time/Makefile (LOCALES): Define.  Include gen-locales.mk.
16583         ($(objpfx)tst-ftime_l.out, $(objpfx)tst-strptime.out): Depend on
16584         $(gen-locales).
16585         * wcsmbs/Makefile (LOCALES): Define.  Include gen-locales.mk.
16586         ($(objpfx)tst-btowc.out, $(objpfx)tst-c16c32-1.out)
16587         ($(objpfx)tst-mbrtowc.out, $(objpfx)tst-mbrtowc2.out)
16588         ($(objpfx)tst-wcrtomb.out, $(objpfx)wcsmbs-tst1.out): Depend on
16589         $(gen-locales).
16590         * libio/tst_wprintf2.c (main): Use explicit locale.
16591         * wcsmbs/wcsmbs-tst1.c (main): Likewise.
16592
16593 2015-10-10  Samuel Thibault  <samuel.thibault@ens-lyon.org>
16594
16595         * hurd/hurd-raise.c (_hurd_raise_signal): Return error returned by
16596         __msg_sig_post.
16597         * hurd/hurd/signal.h (_hurd_raise_signal): Add int return type.
16598
16599 2015-10-09  Joseph Myers  <joseph@codesourcery.com>
16600
16601         * sysdeps/mips/mips32/libm-test-ulps: Regenerated.
16602         * sysdeps/mips/mips64/libm-test-ulps: Likewise.
16603
16604         * sysdeps/arm/libm-test-ulps: Regenerated.
16605
16606         [BZ #15470]
16607         * sysdeps/arm/fix-fp-int-convert-overflow.h: New file.
16608
16609         [BZ #16399]
16610         * sysdeps/generic/fix-fp-int-convert-overflow.h: New file.
16611         * sysdeps/ieee754/dbl-64/s_llrint.c: Include <fenv.h>, <limits.h>
16612         and <fix-fp-int-convert-overflow.h>.
16613         (__llrint) [FE_INVALID]: Force FE_INVALID exception as needed if
16614         FIX_DBL_LLONG_CONVERT_OVERFLOW.
16615         * sysdeps/ieee754/dbl-64/s_llround.c: Include <fenv.h>, <limits.h>
16616         and <fix-fp-int-convert-overflow.h>.
16617         (__llround) [FE_INVALID]: Force FE_INVALID exception as needed if
16618         FIX_DBL_LLONG_CONVERT_OVERFLOW.
16619         * sysdeps/ieee754/dbl-64/s_lrint.c: Include
16620         <fix-fp-int-convert-overflow.h>.
16621         (__lrint) [FE_INVALID]: Force FE_INVALID exception as needed if
16622         FIX_DBL_LLONG_CONVERT_OVERFLOW.
16623         * sysdeps/ieee754/dbl-64/s_lround.c: Include
16624         <fix-fp-int-convert-overflow.h>.
16625         (__lround) [FE_INVALID]: Force FE_INVALID exception as needed if
16626         FIX_DBL_LLONG_CONVERT_OVERFLOW.
16627         * sysdeps/ieee754/flt-32/s_llrintf.c: Include <fenv.h>, <limits.h>
16628         and <fix-fp-int-convert-overflow.h>.
16629         (__llrintf) [FE_INVALID]: Force FE_INVALID exception as needed if
16630         FIX_DBL_LLONG_CONVERT_OVERFLOW.
16631         * sysdeps/ieee754/flt-32/s_llroundf.c: Include <fenv.h>,
16632         <limits.h> and <fix-fp-int-convert-overflow.h>.
16633         (__llroundf) [FE_INVALID]: Force FE_INVALID exception as needed if
16634         FIX_DBL_LLONG_CONVERT_OVERFLOW.
16635         * sysdeps/ieee754/flt-32/s_lrintf.c: Include <fenv.h>, <limits.h>
16636         and <fix-fp-int-convert-overflow.h>.
16637         (__lrintf) [FE_INVALID]: Force FE_INVALID exception as needed if
16638         FIX_DBL_LLONG_CONVERT_OVERFLOW.
16639         * sysdeps/ieee754/flt-32/s_lroundf.c: Include <fenv.h>, <limits.h>
16640         and <fix-fp-int-convert-overflow.h>.
16641         (__lroundf) [FE_INVALID]: Force FE_INVALID exception as needed if
16642         FIX_DBL_LLONG_CONVERT_OVERFLOW.
16643         * sysdeps/mips/mips32/fpu/fix-fp-int-convert-overflow.h: New file.
16644
16645 2015-10-09  Carlos O'Donell  <carlos@redhat.com>
16646
16647         [BZ #18589]
16648         * string/bug-strcoll2.c: Adjust copyright, and remove contributed by.
16649         * string/Makefile ($(objpfx)bug-strcoll2.out): Depend on
16650         $(gen-locales).
16651
16652 2015-10-09  Adhemerval Zanella  <adhemerval.zanella@linaro.org>
16653             Phil Blundell <pb@pbcl.net>
16654
16655         * nptl/Makefile (tests): Add tst-cancel26.c and tst-cancel27.c.
16656         * nptl/tst-cancel26.c: New file.
16657         * nptl/tst-cancel27.c: Likewise.
16658
16659 2015-10-09  H.J. Lu  <hongjiu.lu@intel.com>
16660
16661         * sysdeps/x86_64/fpu/s_llrint.S (__lrint): Add alias only if
16662         __ILP32__ isn't defined.
16663         (lrint): Likewise.
16664         * sysdeps/x86_64/fpu/s_llrintf.S (__lrintf): Likewise.
16665         (lrintf): Likewise.
16666         * sysdeps/x86_64/fpu/s_llrintl.S (__lrintl): Likewise.
16667         (lrintl): Likewise.
16668         * sysdeps/x86_64/x32/fpu/s_lrint.S: New file.
16669         * sysdeps/x86_64/x32/fpu/s_lrintf.S: Likewise.
16670         * sysdeps/x86_64/x32/fpu/s_lrintl.S: Likewise.
16671
16672 2015-10-09  Adhemerval Zanella  <adhemerval.zanella@linaro.org>
16673
16674         * sysdeps/unix/sysv/linux/x86_64/pthread_cond_timedwait.S
16675         * sysdeps/unix/sysv/linux/x86_64/pthread_cond_wait.S
16676
16677         * sysdeps/unix/sysv/linux/i386/i686/pthread_cond_timedwait.S: Remove
16678         file.
16679         * sysdeps/unix/sysv/linux/i386/pthread_cond_timedwait.S: Likewise.
16680         * sysdeps/unix/sysv/linux/i386/pthread_cond_wait.S: Likewise.
16681
16682 2015-10-09  Joseph Myers  <joseph@codesourcery.com>
16683
16684         * sysdeps/i386/configure.ac (libc_cv_cc_novzeroupper): Remove
16685         configure test.
16686         * sysdeps/i386/configure: Regenerated.
16687         * sysdeps/x86_64/configure.ac (libc_cv_cc_novzeroupper): Remove
16688         configure test.
16689         * sysdeps/x86_64/configure: Regenerated.
16690         * sysdeps/x86_64/Makefile [$(config-cflags-novzeroupper) = yes]:
16691         Make code unconditional.
16692
16693         * sysdeps/i386/configure.ac (libc_cv_cc_fma4): Remove configure
16694         test.
16695         * sysdeps/i386/configure: Regenerated.
16696         * sysdeps/x86_64/configure.ac (libc_cv_cc_fma4): Remove configure
16697         test.
16698         * sysdeps/x86_64/configure: Regenerated.
16699         * sysdeps/x86_64/fpu/multiarch/Makefile [$(have-mfma4) = yes]:
16700         Make code unconditional.
16701         * sysdeps/x86_64/fpu/multiarch/e_asin.c [HAVE_FMA4_SUPPORT]:
16702         Likewise.
16703         * sysdeps/x86_64/fpu/multiarch/e_atan2.c [HAVE_FMA4_SUPPORT]:
16704         Likewise.
16705         [!HAVE_FMA4_SUPPORT]: Remove conditional code.
16706         * sysdeps/x86_64/fpu/multiarch/e_exp.c [HAVE_FMA4_SUPPORT]: Make
16707         code unconditional.
16708         [!HAVE_FMA4_SUPPORT]: Remove conditional code.
16709         * sysdeps/x86_64/fpu/multiarch/e_log.c [HAVE_FMA4_SUPPORT]: Make
16710         code unconditional.
16711         [!HAVE_FMA4_SUPPORT]: Remove conditional code.
16712         * sysdeps/x86_64/fpu/multiarch/e_pow.c [HAVE_FMA4_SUPPORT]: Make
16713         code unconditional.
16714         * sysdeps/x86_64/fpu/multiarch/s_atan.c [HAVE_FMA4_SUPPORT]: Make
16715         code unconditional.
16716         [!HAVE_FMA4_SUPPORT]: Remove conditional code.
16717         * sysdeps/x86_64/fpu/multiarch/s_fma.c [HAVE_FMA4_SUPPORT]: Make
16718         code unconditional.
16719         [!HAVE_FMA4_SUPPORT]: Remove conditional code.
16720         * sysdeps/x86_64/fpu/multiarch/s_fmaf.c [HAVE_FMA4_SUPPORT]: Make
16721         code unconditional.
16722         [!HAVE_FMA4_SUPPORT]: Remove conditional code.
16723         * sysdeps/x86_64/fpu/multiarch/s_sin.c [HAVE_FMA4_SUPPORT]: Make
16724         code unconditional.
16725         [!HAVE_FMA4_SUPPORT]: Remove conditional code.
16726         * sysdeps/x86_64/fpu/multiarch/s_tan.c [HAVE_FMA4_SUPPORT]: Make
16727         code unconditional.
16728         [!HAVE_FMA4_SUPPORT]: Remove conditional code.
16729         * config.h.in (HAVE_FMA4_SUPPORT): Remove #undef.
16730
16731         [BZ #19095]
16732         * sysdeps/ieee754/dbl-64/s_lrint.c (__lrint): Cast low part of
16733         mantissa to long int before shifting left.
16734
16735 2015-10-08  Joseph Myers  <joseph@codesourcery.com>
16736
16737         [BZ #19094]
16738         * sysdeps/ieee754/dbl-64/s_lrint.c: Include <fenv.h> and
16739         <limits.h>.
16740         (__lrint) [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_llrintl.c: Include <fenv.h> and
16743         <limits.h>.
16744         (__llrintl) [FE_INVALID || FE_INEXACT]: Force FE_INVALID exception
16745         when result overflows but exception would not result from cast.
16746         * sysdeps/ieee754/ldbl-128/s_lrintl.c: Include <fenv.h> and
16747         <limits.h>.
16748         (__lrintl) [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_llrintl.c: Include <fenv.h> and
16751         <limits.h>.
16752         (__llrintl) [FE_INVALID || FE_INEXACT]: Force FE_INVALID exception
16753         when result overflows but exception would not result from cast.
16754         * sysdeps/ieee754/ldbl-96/s_lrintl.c: Include <fenv.h> and
16755         <limits.h>.
16756         (__lrintl) [FE_INVALID || FE_INEXACT]: Force FE_INVALID exception
16757         when result overflows but exception would not result from cast.
16758         * math/libm-test.inc (lrint_test_data): Add more tests.
16759         (llrint_test_data): Likewise.
16760
16761 2015-10-08  Roland McGrath  <roland@hack.frob.com>
16762
16763         [BZ #18872]
16764         * stdio-common/Makefile ($(objpfx)tst-unbputc.out):
16765         Move out from under [$(run-built-tests) = yes] conditional.
16766         ($(objpfx)tst-printf.out, $(objpfx)tst-printf-bz18872.c): Likewise.
16767         ($(objpfx)tst-printf-bz18872-mem.out): Likewise.
16768
16769 2015-10-08  Carlos O'Donell  <carlos@redhat.com>
16770
16771         [BZ #18589]
16772         * string/Makefile (tests): Add bug-strcoll2.
16773         (LOCALES): Add cs_CZ.UTF-8.
16774         * string/bug-strcoll2.c (test_cs_CZ): Fix typo in FAIL string.
16775
16776         [BZ #18589]
16777         * string/bug-strcoll2.c: New file.
16778         * locale/categories.def: Revert commit
16779         f13c2a8dff2329c6692a80176262ceaaf8a6f74e.
16780         * locale/langinfo.h: Likewise.
16781         * locale/localeinfo.h: Likewise.
16782         * locale/C-collate.c: Likewise.
16783         * locale/programs/ld-collate.c (collate_output): Likewise.
16784         * string/strcoll_l.c (STRDIFF): Likewise.
16785         (STRCOLL): Likewise.
16786         * wcsmbs/wcscoll_l.c: Likewise.
16787
16788 2015-10-08  Joseph Myers  <joseph@codesourcery.com>
16789
16790         * math/libm-test.inc (lround_test_data): Do not expect the absence
16791         of "inexact" for some tests with non-integer arguments.
16792         (llround_test_data): Likewise.
16793
16794         * sysdeps/i386/configure.ac (libc_cv_cc_avx): Remove configure
16795         test.
16796         (libc_cv_cc_sse2avx): Likewise.
16797         * sysdeps/i386/configure: Regenerated.
16798         * sysdeps/i386/i686/multiarch/Makefile
16799         [$(subdir)$(config-cflags-avx) = mathyes]: Change conditional to
16800         [$(subdir) = math].
16801         * sysdeps/i386/i686/multiarch/s_fma-fma.c [HAVE_AVX_SUPPORT]: Make
16802         code unconditional.
16803         * sysdeps/i386/i686/multiarch/s_fma.c [HAVE_AVX_SUPPORT]:
16804         Likewise.
16805         * sysdeps/i386/i686/multiarch/s_fmaf-fma.c [HAVE_AVX_SUPPORT]:
16806         Likewise.
16807         * sysdeps/i386/i686/multiarch/s_fmaf.c [HAVE_AVX_SUPPORT]:
16808         Likewise.
16809         * sysdeps/x86_64/configure.ac (libc_cv_cc_avx): Remove configure
16810         test.
16811         (libc_cv_cc_sse2avx): Likewise.
16812         * sysdeps/x86_64/configure: Regenerated.
16813         * sysdeps/x86_64/Makefile [$(config-cflags-avx) = yes]: Make code
16814         unconditional.
16815         * sysdeps/x86_64/dl-trampoline.h (_dl_runtime_profile)
16816         [HAVE_AVX_SUPPORT || HAVE_AVX512_ASM_SUPPORT]: Make code
16817         unconditional.
16818         (_dl_runtime_profile)
16819         [!(HAVE_AVX_SUPPORT || HAVE_AVX512_ASM_SUPPORT)]: Remove
16820         conditional code.
16821         * sysdeps/x86_64/fpu/multiarch/Makefile
16822         [$(config-cflags-sse2avx) = yes]: Make code unconditional.
16823         * sysdeps/x86_64/fpu/multiarch/e_atan2.c
16824         [HAVE_FMA4_SUPPORT || HAVE_AVX_SUPPORT]: Likewise.
16825         * sysdeps/x86_64/fpu/multiarch/e_exp.c
16826         [HAVE_FMA4_SUPPORT || HAVE_AVX_SUPPORT]: Likewise.
16827         * sysdeps/x86_64/fpu/multiarch/e_log.c
16828         [HAVE_FMA4_SUPPORT || HAVE_AVX_SUPPORT]: Likewise.
16829         * sysdeps/x86_64/fpu/multiarch/s_atan.c
16830         [HAVE_FMA4_SUPPORT || HAVE_AVX_SUPPORT]: Likewise.
16831         * sysdeps/x86_64/fpu/multiarch/s_fma.c [HAVE_AVX_SUPPORT]:
16832         Likewise.
16833         * sysdeps/x86_64/fpu/multiarch/s_fmaf.c [HAVE_AVX_SUPPORT]:
16834         Likewise.
16835         * sysdeps/x86_64/fpu/multiarch/s_sin.c
16836         [HAVE_FMA4_SUPPORT || HAVE_AVX_SUPPORT]: Likewise.
16837         * sysdeps/x86_64/fpu/multiarch/s_tan.c
16838         [HAVE_FMA4_SUPPORT || HAVE_AVX_SUPPORT]: Likewise.
16839         * sysdeps/x86_64/multiarch/strcmp.S [HAVE_AVX_SUPPORT]: Likewise.
16840         * config.h.in (HAVE_AVX_SUPPORT): Remove #undef.
16841         (HAVE_SSE2AVX_SUPPORT): Likewise.
16842
16843 2015-10-07  Paul Pluzhnikov  <ppluzhnikov@google.com>
16844
16845         * stdio-common/tst-printf-bz18872.sh: Use attribute optimize
16846         instead of #pragma optimize.
16847
16848 2015-10-07  Carlos O'Donell  <carlos@redhat.com>
16849
16850         [BZ #17195]
16851         * malloc/arena.c (heap_trim): Apply trim_treshold to top_chunck size,
16852         as is similarly done in systrim and _int_free already.
16853
16854 2015-10-08  Samuel Thibault  <samuel.thibault@ens-lyon.org>
16855
16856         * sysdeps/mach/configure.ac (mach_interface_list): Add task_notify.
16857
16858 2015-10-07  Joseph Myers  <joseph@codesourcery.com>
16859
16860         [BZ #19088]
16861         * sysdeps/ieee754/dbl-64/s_lround.c: Include <fenv.h> and
16862         <limits.h>.
16863         (__lround) [FE_INVALID]: Force FE_INVALID exception when result
16864         overflows but exception would not result from cast.
16865         * sysdeps/ieee754/dbl-64/wordsize-64/s_lround.c: Include <fenv.h>
16866         and <limits.h>.
16867         (__lround) [FE_INVALID]: Force FE_INVALID exception when result
16868         overflows but exception would not result from cast.
16869         * sysdeps/ieee754/ldbl-128/s_llroundl.c: Include <fenv.h> and
16870         <limits.h>.
16871         (__llroundl) [FE_INVALID]: Force FE_INVALID exception when result
16872         overflows but exception would not result from cast.
16873         * sysdeps/ieee754/ldbl-128/s_lroundl.c: Include <fenv.h> and
16874         <limits.h>.
16875         (__lroundl) [FE_INVALID]: Force FE_INVALID exception when result
16876         overflows but exception would not result from cast.
16877         * sysdeps/ieee754/ldbl-96/s_llroundl.c: Include <fenv.h> and
16878         <limits.h>.
16879         (__llroundl) [FE_INVALID]: Force FE_INVALID exception when result
16880         overflows but exception would not result from cast.
16881         * sysdeps/ieee754/ldbl-96/s_lroundl.c: Include <fenv.h> and
16882         <limits.h>.
16883         (__lroundl) [FE_INVALID]: Force FE_INVALID exception when result
16884         overflows but exception would not result from cast.
16885         * math/libm-test.inc (lround_test_data): Add more tests.
16886         (llround_test_data): Likewise.
16887
16888 2015-10-07  Steve Ellcey  <sellcey@imgtec.com>
16889
16890         * timezone/Makefile (CFLAGS-zic.c): Add -Wno-unused-variable.
16891         (CFLAGS-ialloc.c): Ditto.
16892         (CFLAGS-scheck.c): Ditto.
16893
16894 2015-10-07  Carlos O'Donell  <carlos@redhat.com>
16895
16896         [BZ #19086]
16897         * manual/filesys.texi (Storage Allocation): Fix argument order for
16898         posix_fallocate64.
16899
16900 2015-10-07  Joseph Myers  <joseph@codesourcery.com>
16901
16902         [BZ #19085]
16903         * sysdeps/ieee754/ldbl-128/s_lrintl.c (__lrintl): Move test for
16904         exponent below 48 inside case for non-overflowing exponent.
16905         * sysdeps/ieee754/ldbl-128/s_lroundl.c (__lroundl): Likewise.
16906
16907 2015-10-07  Florian Weimer  <fweimer@redhat.com>
16908
16909         * iconvdata/cp737.h (from_idx): Add const.
16910         * iconvdata/cp775.h (from_idx): Likewise.
16911
16912 2015-10-07  Joseph Myers  <joseph@codesourcery.com>
16913
16914         * sysdeps/mips/mips64/Implies: Use ieee754/dbl-64/wordsize-64.
16915         * sysdeps/ieee754/dbl-64/wordsize-64/s_issignaling.c
16916         (__issignaling) [HIGH_ORDER_BIT_IS_SET_FOR_SNAN]: Remove #error.
16917
16918         [BZ #19079]
16919         * sysdeps/ieee754/dbl-64/wordsize-64/s_lround.c: Restore previous
16920         file, conditioned on [!_LP64].
16921         * sysdeps/ieee754/dbl-64/wordsize-64/s_llround.c
16922         [!_LP64] (__lround): Do not define as function or alias.
16923         [!_LP64] (lround): Likewise.
16924         [!_LP64] (__lroundl): Likewise.
16925         [!_LP64] (lroundl): Likewise.
16926         * sysdeps/tile/sysdep.h (REGISTER_CAST_INT32_TO_INT64): Remove
16927         macro.
16928         * sysdeps/x86_64/x32/sysdep.h (REGISTER_CAST_INT32_TO_INT64):
16929         Likewise.
16930
16931 2015-10-06  Joseph Myers  <joseph@codesourcery.com>
16932
16933         * math/libm-test.inc (lrint_test_data): Add more tests.
16934         (llrint_test_data): Likewise.
16935         (lround_test_data): Likewise.
16936         (llround_test_data): Likewise.
16937
16938         * math/libm-test.inc (lrint_test_data): Add tests used for llrint.
16939         (llrint_test_data): Add tests used for lrint.
16940
16941         * sysdeps/i386/configure.ac (libc_cv_cc_sse4): Remove configure
16942         test.
16943         * sysdeps/i386/configure: Regenerated.
16944         * sysdeps/i386/i686/multiarch/Makefile
16945         [$(config-cflags-sse4) = yes]: Make code unconditional.
16946         * sysdeps/i386/i686/multiarch/strcspn.S [HAVE_SSE4_SUPPORT]:
16947         Likewise.
16948         * sysdeps/i386/i686/multiarch/strspn.S [HAVE_SSE4_SUPPORT]:
16949         Likewise.
16950         * sysdeps/x86_64/configure.ac (libc_cv_cc_sse4): Remove configure
16951         test.
16952         * sysdeps/x86_64/configure: Regenerated.
16953         * sysdeps/x86_64/multiarch/Makefile [$(config-cflags-sse4) = yes]:
16954         Make code unconditional.
16955         * sysdeps/x86_64/multiarch/strcspn.S [HAVE_SSE4_SUPPORT]:
16956         Likewise.
16957         * sysdeps/x86_64/multiarch/strspn.S [HAVE_SSE4_SUPPORT]: Likewise.
16958         * config.h.in (HAVE_SSE4_SUPPORT): Remove #undef.
16959
16960         * scripts/rpm2dynsym.sh: Remove file.
16961
16962 2015-10-06  Florian Weimer  <fweimer@redhat.com>
16963
16964         * configure.ac (libc_cv_cxx_thread_local): Define.
16965         * configure: Regenerate.
16966         * config.make.in (have-cxx-thread_local): Define.
16967         * nptl/Makefile (CFLAGS-tst-thread_local1.o):
16968         (LDLIBS-tst-thread_local1): Define.
16969         (tests): Add tst-thread_local1.
16970         [have-cxx-thread_local != yes] (tests-unsupported): Add
16971         tst-thread_local1.
16972         * nptl/tst-thread_local1.cc: New file.
16973
16974 2015-10-06  Joseph Myers  <joseph@codesourcery.com>
16975
16976         [BZ #19078]
16977         * sysdeps/ieee754/ldbl-128ibm/w_expl.c (o_thres): Remove variable.
16978         (u_thres): Likewise.
16979         (__expl): Determine whether to call __kernel_standard_l based on
16980         value of result, not argument.
16981
16982         * math/libm-test.inc (scalb_test_data): Add more expectations for
16983         the "inexact" exception.
16984
16985         [BZ #19077]
16986         * sysdeps/ieee754/ldbl-128ibm/e_logl.c (__ieee754_logl): Return
16987         0.0L for argument 1.0L.
16988
16989         [BZ #19076]
16990         * sysdeps/ieee754/ldbl-128ibm/s_log1pl.c (__log1pl): Divide by
16991         constant 0.0L when computing infinite result.
16992
16993 2015-10-06  Florian Weimer  <fweimer@redhat.com>
16994
16995         [BZ #10432]
16996         * nis/nss_nis/nis-netgrp.c (_nss_nis_setnetgrent): Remove call to
16997         malloc_usable_size.
16998
16999 2015-10-06  Florian Weimer  <fweimer@redhat.com>
17000
17001         [BZ #19018]
17002         * stdlib/cxa_thread_atexit_impl.c (__cxa_thread_atexit_impl):
17003         Mangle function pointer before storing it.
17004         (__call_tls_dtors): Demangle function pointer before calling it.
17005
17006 2015-10-05  Paul Pluzhnikov  <ppluzhnikov@google.com>
17007
17008         [BZ #19012]
17009         * iconv/gconv_db.c (gen_steps): Check for additional errors.
17010         Clean up on failure.
17011
17012 2015-10-05  Joseph Myers  <joseph@codesourcery.com>
17013
17014         [BZ #19071]
17015         * sysdeps/ieee754/ldbl-96/s_lroundl.c (__lroundl): Use unsigned
17016         long int variable to store possibly incremented high part of
17017         mantissa.
17018         * math/libm-test.inc (lround_test_data): Add tests used for
17019         llround.  Use [LONG_MAX > 0x7fffffff] consistently as condition
17020         for tests requiring 64-bit long.  Do not condition tests on
17021         [TEST_FLOAT] unnecessarily.
17022         (llround_test_data): Add tests used for lround.  Add another
17023         expectation for the "inexact" exception.  Do not condition tests
17024         on [TEST_FLOAT] unnecessarily.
17025
17026         [BZ #887]
17027         [BZ #19049]
17028         [BZ #19050]
17029         * sysdeps/generic/fix-int-fp-convert-zero.h: New file.
17030         * sysdeps/ieee754/dbl-64/e_log10.c: Include
17031         <fix-int-fp-convert-zero.h>.
17032         (__ieee754_log10): Adjust signs as needed if FIX_INT_FP_CONVERT_ZERO.
17033         * sysdeps/ieee754/dbl-64/e_log2.c: Include
17034         <fix-int-fp-convert-zero.h>.
17035         (__ieee754_log2): Adjust signs as needed if FIX_INT_FP_CONVERT_ZERO.
17036         * sysdeps/ieee754/dbl-64/s_erf.c: Include
17037         <fix-int-fp-convert-zero.h>.
17038         (__erfc): Adjust signs as needed if FIX_INT_FP_CONVERT_ZERO.
17039         * sysdeps/ieee754/dbl-64/s_logb.c: Include
17040         <fix-int-fp-convert-zero.h>.
17041         (__logb): Adjust signs as needed if FIX_INT_FP_CONVERT_ZERO.
17042         * sysdeps/ieee754/flt-32/e_log10f.c: Include
17043         <fix-int-fp-convert-zero.h>.
17044         (__ieee754_log10f): Adjust signs as needed if FIX_INT_FP_CONVERT_ZERO.
17045         * sysdeps/ieee754/flt-32/e_log2f.c: Include
17046         <fix-int-fp-convert-zero.h>.
17047         (__ieee754_log2f): Adjust signs as needed if FIX_INT_FP_CONVERT_ZERO.
17048         * sysdeps/ieee754/flt-32/s_erff.c: Include
17049         <fix-int-fp-convert-zero.h>.
17050         (__erfcf): Adjust signs as needed if FIX_INT_FP_CONVERT_ZERO.
17051         * sysdeps/ieee754/flt-32/s_logbf.c: Include
17052         <fix-int-fp-convert-zero.h>.
17053         (__logbf): Adjust signs as needed if FIX_INT_FP_CONVERT_ZERO.
17054         * sysdeps/ieee754/ldbl-128ibm/s_erfl.c: Include
17055         <fix-int-fp-convert-zero.h>.
17056         (__erfcl): Adjust signs as needed if FIX_INT_FP_CONVERT_ZERO.
17057         * sysdeps/ieee754/ldbl-128ibm/s_logbl.c: Include
17058         <fix-int-fp-convert-zero.h>.
17059         (__logbl): Adjust signs as needed if FIX_INT_FP_CONVERT_ZERO.
17060         * sysdeps/powerpc/powerpc32/fpu/configure.ac: New file.
17061         * sysdeps/powerpc/powerpc32/fpu/configure: New generated file.
17062         * sysdeps/powerpc/powerpc32/fpu/fix-int-fp-convert-zero.h: New
17063         file.
17064         * config.h.in [_LIBC] (HAVE_PPC_FCFID): New macro.
17065
17066 2015-10-03  Paul Pluzhnikov  <ppluzhnikov@google.com>
17067
17068         * sysdeps/x86_64/fpu/libm-test-ulps: Regenerated.
17069
17070 2015-10-02  Joseph Myers  <joseph@codesourcery.com>
17071
17072         [BZ #19059]
17073         * math/s_nexttowardf.c (__nexttowardf): Do not return value from
17074         overflowing computation.
17075         * sysdeps/i386/fpu/s_nexttoward.c (__nexttoward): Likewise.
17076         * sysdeps/i386/fpu/s_nexttowardf.c (__nexttowardf): Likewise.
17077         * sysdeps/ieee754/ldbl-128/s_nexttoward.c (__nexttoward):
17078         Likewise.
17079         * sysdeps/ieee754/ldbl-128/s_nexttowardf.c (__nexttowardf):
17080         Likewise.
17081         * sysdeps/ieee754/ldbl-128ibm/s_nexttoward.c (__nexttoward):
17082         Likewise.
17083         * sysdeps/ieee754/ldbl-128ibm/s_nexttowardf.c (__nexttowardf):
17084         Likewise.
17085         * sysdeps/ieee754/ldbl-96/s_nexttoward.c (__nexttoward): Likewise.
17086         * sysdeps/ieee754/ldbl-96/s_nexttowardf.c (__nexttowardf):
17087         Likewise.
17088         * sysdeps/ieee754/ldbl-opt/s_nexttowardfd.c (__nldbl_nexttowardf):
17089         Likewise.
17090         * math/libm-test.inc (nexttoward_test_data): Add more tests.
17091
17092         * nss/rewrite_field.c (__nss_rewrite_field): Use
17093         internal_function.
17094         * nss/valid_field.c (__nss_valid_field): Likewise.
17095         * nss/valid_list_field.c (__nss_valid_list_field): Likewise.
17096
17097 2015-10-02  Florian Weimer  <fweimer@redhat.com>
17098
17099         [BZ #18724]
17100         * include/nss.h (NSS_INVALID_FIELD_CHARACTERS): Define.
17101         (__nss_invalid_field_characters, __nss_valid_field)
17102         (__nss_valid_list_field, __nss_rewrite_field): Declare.
17103         * nss/valid_field.c, nss/valid_list_field, nss/rewrite_field.c,
17104         tst-field.c: New file.
17105         * nss/Makefile (routines): Add valid_field, rewrite_field.
17106         (tests-static): Define unconditionally.
17107         (tests): Include tests-static.
17108         [build-static-nss] (tests-static): Use append.
17109         [build-static-nss] (tests): Remove modification.
17110         * nss/getent.c (print_group): Call putgrent.  Report error.
17111         (print_gshadow): Call putsgent.  Report error.
17112         (print_passwd): Call putpwent.  Report error.
17113         (print_shadow): Call putspent.  Report error.
17114         * include/pwd.h: Include <nss.h> instead of <nss/nss.h>.
17115         * pwd/pwd.h (putpwent): Remove incorrect nonnull attribute.
17116         * pwd/putpwent.c (putpwent): Use ISO function definition.  Check
17117         name, password, directory, shell fields for valid syntax.  Rewrite
17118         GECOS field to match syntax.
17119         * pwd/Makefile (tests): Add tst-putpwent.
17120         * pwd/tst-putpwent.c: New file.
17121         * grp/putgrent.c (putgrent): Convert to ISO function definition.
17122         Check grName, grpasswd, gr_mem fields for valid syntax.
17123         Change loop variable i to size_t.
17124         * grp/Makefile (tests): Add tst-putgrent.
17125         * grp/tst-putgrent.c: New file.
17126         * shadow/putspent.c (putspent): Check sp_namp, sp_pwdp fields for
17127         valid syntax.
17128         * shadow/Makefile (tests): Add tst-putspent.
17129         * shadow/tst-putspent.c: New file.
17130         * gshadow/putsgent.c (putsgent): Check sg_namp, sg_passwd, sg_adm,
17131         sg_mem fields for valid syntax.
17132         * gshadow/Makefile (tests): Add tst-putsgent.
17133         * gshadow/tst-putsgent.c: New file.
17134
17135 2015-10-01  Gabriel F. T. Gomes  <gftg@linux.vnet.ibm.com>
17136
17137         * sysdeps/powerpc/powerpc64/power8/strncpy.S: Added comments to some
17138         assembly instructions.
17139
17140 2015-10-01  Gabriel F. T. Gomes  <gftg@linux.vnet.ibm.com>
17141
17142         * sysdeps/powerpc/powerpc64/power8/strncpy.S: Remove or add register
17143         prefix from operands.
17144
17145 2015-10-01  Joseph Myers  <joseph@codesourcery.com>
17146
17147         [BZ #16347]
17148         [BZ #19046]
17149         * sysdeps/ieee754/ldbl-128/e_lgammal_r.c: Do not include
17150         <libc-internal.h>.
17151         (MAXLGM): Do not use diagnostic control macros.
17152         [LDBL_MANT_DIG == 106] (MAXLGM): Change value to overflow
17153         threshold for ldbl-128ibm.
17154         (__ieee754_lgammal_r): For large arguments, multiply by log - 1
17155         instead of multiplying by log then subtracting.
17156         * math/auto-libm-test-in: Add more tests of lgamma.
17157         * math/auto-libm-test-out: Regenerated.
17158
17159         * math/libm-test.inc (TYPE_DECIMAL_DIG): New macro.
17160         (TYPE_HEX_DIG): Likewise.
17161         (print_float): Use TYPE_DECIMAL_DIG - 1 and TYPE_HEX_DIG - 1 as
17162         precisions when printing floating-point numbers.
17163         (check_float_internal): Likewise.
17164
17165 2015-09-30  Joseph Myers  <joseph@codesourcery.com>
17166
17167         [BZ #16620]
17168         * sysdeps/ieee754/ldbl-128ibm/e_exp10l.c (log10_high): Use value
17169         of log (10) rounded downward to 48 bits.
17170         (log10_low): Use corresponding low part of log (10).
17171
17172         [BZ #19032]
17173         * sysdeps/i386/fpu/e_acosh.S (__ieee754_acosh): For arguments < 1,
17174         compute result as (x - x) / (x - x) not as 0 / 0.
17175         * sysdeps/i386/fpu/e_acoshf.S (__ieee754_acoshf): Likewise.
17176         * math/libm-test.inc (acosh_test_data): Add another test of acosh.
17177
17178         * math/auto-libm-test-in: Add more tests of acos, acosh, asin,
17179         atan, atan2, atanh, cbrt, cos, cosh, erf, erfc, exp, exp10, exp2
17180         and expm1.
17181         * math/auto-libm-test-out: Regenerated.
17182         * math/libm-test.inc (acos_test_data): Add more tests.
17183         (asin_test_data): Likewise.
17184         (asinh_test_data): Likewise.
17185         (atan_test_data): Likewise.
17186         (atanh_test_data): Likewise.
17187         (atan2_test_data): Likewise.
17188         (cbrt_test_data): Likewise.
17189         (ceil_test_data): Likewise.
17190         (copysign_test_data): Likewise.
17191         (cos_test_data): Likewise.
17192         (cosh_test_data): Likewise.
17193         (erf_test_data): Likewise.
17194         (erfc_test_data): Likewise.
17195         (exp_test_data): Likewise.
17196         (exp10_test_data): Likewise.
17197         (exp2_test_data): Likewise.
17198         (expm1_test_data): Likewise.
17199         * sysdeps/x86_64/fpu/libm-test-ulps: Update.
17200
17201 2015-09-30  H.J. Lu  <hongjiu.lu@intel.com>
17202
17203         [BZ #19006]
17204         * sysdeps/unix/sysv/linux/i386/i486/libc-lowlevellock.S: Moved
17205         to ...
17206         * sysdeps/unix/sysv/linux/i386/libc-lowlevellock.S: Here.
17207         * sysdeps/unix/sysv/linux/i386/i486/lll_timedlock_wait.c: Moved
17208         to ...
17209         * sysdeps/unix/sysv/linux/i386/lll_timedlock_wait.c: Here.
17210         * sysdeps/unix/sysv/linux/i386/i486/lll_timedwait_tid.c: Moved
17211         to ...
17212         * sysdeps/unix/sysv/linux/i386/lll_timedwait_tid.c: Here.
17213         * sysdeps/unix/sysv/linux/i386/i486/lowlevellock.S: Moved to ...
17214         * sysdeps/unix/sysv/linux/i386/lowlevellock.S: Here.
17215         * sysdeps/unix/sysv/linux/i386/i486/lowlevelrobustlock.S: Moved
17216         to ...
17217         * sysdeps/unix/sysv/linux/i386/lowlevelrobustlock.S: Here.
17218         * sysdeps/unix/sysv/linux/i386/i486/pthread_barrier_wait.S:
17219         Moved to ...
17220         * sysdeps/unix/sysv/linux/i386/pthread_barrier_wait.S: Here.
17221         * sysdeps/unix/sysv/linux/i386/i486/pthread_cond_broadcast.S:
17222         Moved to ...
17223         * sysdeps/unix/sysv/linux/i386/pthread_cond_broadcast.S: Here.
17224         * sysdeps/unix/sysv/linux/i386/i486/pthread_cond_signal.S: Moved
17225         to ...
17226         * sysdeps/unix/sysv/linux/i386/pthread_cond_signal.S: Here.
17227         * sysdeps/unix/sysv/linux/i386/i486/pthread_cond_timedwait.S:
17228         Moved to ...
17229         * sysdeps/unix/sysv/linux/i386/pthread_cond_timedwait.S: Here.
17230         * sysdeps/unix/sysv/linux/i386/i486/pthread_cond_wait.S: Moved
17231         to ...
17232         * sysdeps/unix/sysv/linux/i386/pthread_cond_wait.S: Here.
17233         * sysdeps/unix/sysv/linux/i386/i586/libc-lowlevellock.S:
17234         Removed.
17235         * sysdeps/unix/sysv/linux/i386/i586/lll_timedlock_wait.c:
17236         Likewise.
17237         * sysdeps/unix/sysv/linux/i386/i586/lll_timedwait_tid.c:
17238         Likewise.
17239         * sysdeps/unix/sysv/linux/i386/i586/lowlevellock.S: Likewise.
17240         * sysdeps/unix/sysv/linux/i386/i586/lowlevelrobustlock.S:
17241         Likewise.
17242         * sysdeps/unix/sysv/linux/i386/i586/pthread_barrier_wait.S:
17243         Likewise.
17244         * sysdeps/unix/sysv/linux/i386/i586/pthread_cond_broadcast.S:
17245         Likewise.
17246         * sysdeps/unix/sysv/linux/i386/i586/pthread_cond_signal.S:
17247         Likewise.
17248         * sysdeps/unix/sysv/linux/i386/i586/pthread_cond_timedwait.S:
17249         Likewise.
17250         * sysdeps/unix/sysv/linux/i386/i586/pthread_cond_wait.S:
17251         Likewise.
17252         * sysdeps/unix/sysv/linux/i386/i686/libc-lowlevellock.S:
17253         Likewise.
17254         * sysdeps/unix/sysv/linux/i386/i686/lll_timedlock_wait.c:
17255         Likewise.
17256         * sysdeps/unix/sysv/linux/i386/i686/lll_timedwait_tid.c:
17257         Likewise.
17258         * sysdeps/unix/sysv/linux/i386/i686/lowlevellock.S: Likewise.
17259         * sysdeps/unix/sysv/linux/i386/i686/lowlevelrobustlock.S:
17260         Likewise.
17261         * sysdeps/unix/sysv/linux/i386/i686/pthread_barrier_wait.S:
17262         Likewise.
17263         * sysdeps/unix/sysv/linux/i386/i686/pthread_cond_broadcast.S:
17264         Likewise.
17265         * sysdeps/unix/sysv/linux/i386/i686/pthread_cond_signal.S:
17266         Likewise.
17267         * sysdeps/unix/sysv/linux/i386/i686/pthread_cond_wait.S:
17268         Likewise.
17269         * sysdeps/unix/sysv/linux/i386/i686/pthread_cond_timedwait.S:
17270         Replace ../i486/pthread_cond_timedwait.S with
17271         ../pthread_cond_timedwait.S.
17272
17273 2015-09-30  Joseph Myers  <joseph@codesourcery.com>
17274
17275         * math/libm-test.inc (acos_test_data): Refine expectations for
17276         errno and "inexact" exceptions.
17277         (acosh_test_data): Likewise.
17278         (asin_test_data): Likewise.
17279         (asinh_test_data): Likewise.
17280         (atan_test_data): Likewise.
17281         (atanh_test_data): Likewise.
17282         (atan2_test_data): Likewise.
17283         (cbrt_test_data): Likewise.
17284         (ceil_test_data): Likewise.
17285         (copysign_test_data): Likewise.
17286         (cosh_test_data): Likewise.
17287         (erf_test_data): Likewise.
17288         (erfc_test_data): Likewise.
17289         (exp_test_data): Likewise.
17290         (exp10_test_data): Likewise.
17291         (exp2_test_data): Likewise.
17292         (expm1_test_data): Likewise.
17293         (fabs_test_data): Likewise.
17294         (floor_test_data): Likewise.
17295         (fma_test_data): Likewise.
17296         (fmax_test_data): Likewise.
17297         (fmin_test_data): Likewise.
17298         (fmod_test_data): Likewise.
17299         (fpclassify_test_data): Likewise.
17300         (frexp_test_data): Likewise.
17301         (hypot_test_data): Likewise.
17302         (ilogb_test_data): Likewise.
17303         (isgreater_test_data): Likewise.
17304         (isgreaterequal_test_data): Likewise.
17305         (isinf_test_data): Likewise.
17306         (isless_test_data): Likewise.
17307         (islessequal_test_data): Likewise.
17308         (islessgreater_test_data): Likewise.
17309         (isnan_test_data): Likewise.
17310         (isnormal_test_data): Likewise.
17311         (issignaling_test_data): Likewise.
17312         (isunordered_test_data): Likewise.
17313         (j0_test_data): Likewise.
17314         (j1_test_data): Likewise.
17315         (jn_test_data): Likewise.
17316         (lgamma_test_data): Likewise.
17317         (lrint_test_data): Likewise.
17318         (llrint_test_data): Likewise.
17319         (log_test_data): Likewise.
17320         (log10_test_data): Likewise.
17321         (log1p_test_data): Likewise.
17322         (log2_test_data): Likewise.
17323         (logb_test_data): Likewise.
17324         (lround_test_data): Likewise.
17325         (llround_test_data): Likewise.
17326         (modf_test_data): Likewise.
17327         (nearbyint_test_data): Likewise.
17328         (nextafter_test_data): Likewise.
17329         (nexttoward_test_data): Likewise.
17330         (pow_test_data): Likewise.
17331         (remainder_test_data): Likewise.
17332         (remquo_test_data): Likewise.
17333         (rint_test_data): Likewise.
17334         (round_test_data): Likewise.
17335         (signbit_test_data): Likewise.
17336         (sinh_test_data): Likewise.
17337         (sqrt_test_data): Likewise.
17338         (tanh_test_data): Likewise.
17339         (tgamma_test_data): Likewise.
17340         (trunc_test_data): Likewise.
17341         (y0_test_data): Likewise.
17342         (y1_test_data): Likewise.
17343         (yn_test_data): Likewise.
17344         (significand_test_data): Likewise.
17345
17346 2015-09-29  Carlos O'Donell  <carlos@redhat.com>
17347
17348         * manual/filesys.texi (Storage Allocation): Document that
17349         posix_fallocate emulation fails when fd is open with O_WRONLY.
17350
17351 2015-09-28  Joseph Myers  <joseph@codesourcery.com>
17352
17353         [BZ #19016]
17354         * sysdeps/generic/math_private.h (__x2y2m1f): Update comment to
17355         allow more cases with X^2 + Y^2 >= 0.5.
17356         * sysdeps/ieee754/dbl-64/x2y2m1.c (__x2y2m1): Likewise.  Add -1 as
17357         normal element in sum instead of special-casing based on values of
17358         arguments.
17359         * sysdeps/ieee754/dbl-64/x2y2m1f.c (__x2y2m1f): Update comment.
17360         * sysdeps/ieee754/ldbl-128/x2y2m1l.c (__x2y2m1l): Likewise.  Add
17361         -1 as normal element in sum instead of special-casing based on
17362         values of arguments.
17363         * sysdeps/ieee754/ldbl-128ibm/x2y2m1l.c (__x2y2m1l): Likewise.
17364         * sysdeps/ieee754/ldbl-96/x2y2m1.c [FLT_EVAL_METHOD != 0]
17365         (__x2y2m1): Update comment.
17366         * sysdeps/ieee754/ldbl-96/x2y2m1l.c (__x2y2m1l): Likewise.  Add -1
17367         as normal element in sum instead of special-casing based on values
17368         of arguments.
17369         * math/s_clog.c (__clog): Handle more cases using log1p without
17370         hypot.
17371         * math/s_clog10.c (__clog10): Likewise.
17372         * math/s_clog10f.c (__clog10f): Likewise.
17373         * math/s_clog10l.c (__clog10l): Likewise.
17374         * math/s_clogf.c (__clogf): Likewise.
17375         * math/s_clogl.c (__clogl): Likewise.
17376         * math/auto-libm-test-in: Add more tests of clog and clog10.
17377         * math/auto-libm-test-out: Regenerated.
17378         * sysdeps/i386/fpu/libm-test-ulps: Update.
17379         * sysdeps/x86_64/fpu/libm-test-ulps: Likewise.
17380
17381 2015-09-28  Martin Sebor  <msebor@redhat.com>
17382
17383         [BZ #18969]
17384         * string/Makefile (LOCALES): Define.
17385         (gen-locales.mk): Include.
17386         (test-strcasecmp.out, test-strncasecmp.out, tst-strxfrm.out)
17387         (tst-strxfrm2.out): Add deppendency on $(gen-locales).
17388         * string/tst-strxfrm2.c (do_test): Print the name of the locale
17389         on setlocale failure.
17390
17391 2015-09-26  Paul Pluzhnikov  <ppluzhnikov@google.com>
17392
17393         [BZ #18985]
17394         * time/strftime_l.c (a_wkday, f_wkday, a_month, f_month): Range check.
17395         (__strftime_internal): Likewise.
17396         * time/tst-strftime.c (do_bz18985): New test.
17397         (do_test): Call it.
17398
17399 2015-09-26  Joseph Myers  <joseph@codesourcery.com>
17400
17401         [BZ #18956]
17402         * sysdeps/ieee754/flt-32/e_powf.c (__ieee754_powf): Add 0x00400000
17403         not 0x0040000 for high bit of mantissa.  Mask with 0xfffff000 when
17404         extracting high part.
17405         * math/auto-libm-test-in: Add another test of pow.
17406         * math/auto-libm-test-out: Regenerated.
17407         * sysdeps/x86_64/fpu/libm-test-ulps: Update.
17408
17409 2015-09-25  Joseph Myers  <joseph@codesourcery.com>
17410
17411         [BZ #18825]
17412         * sysdeps/i386/fpu/i386-math-asm.h (FLT_NARROW_EVAL_UFLOW_NONNAN):
17413         New macro.
17414         (DBL_NARROW_EVAL_UFLOW_NONNAN): Likewise.
17415         (LDBL_CHECK_FORCE_UFLOW_NONNAN): Likewise.
17416         * sysdeps/i386/fpu/e_pow.S: Use DEFINE_DBL_MIN.
17417         (__ieee754_pow): Use DBL_NARROW_EVAL_UFLOW_NONNAN instead of
17418         DBL_NARROW_EVAL, reloading the PIC register as needed.
17419         * sysdeps/i386/fpu/e_powf.S: Use DEFINE_FLT_MIN.
17420         (__ieee754_powf): Use FLT_NARROW_EVAL_UFLOW_NONNAN instead of
17421         FLT_NARROW_EVAL.  Use separate return path for case when first
17422         argument is NaN.
17423         * sysdeps/i386/fpu/e_powl.S: Include <i386-math-asm.h>.  Use
17424         DEFINE_LDBL_MIN.
17425         (__ieee754_powl): Use LDBL_CHECK_FORCE_UFLOW_NONNAN, reloading the
17426         PIC register.
17427         * sysdeps/ieee754/dbl-64/e_pow.c (__ieee754_pow): Use
17428         math_check_force_underflow_nonneg.
17429         * sysdeps/ieee754/flt-32/e_powf.c (__ieee754_powf): Force
17430         underflow for subnormal result.
17431         * sysdeps/ieee754/ldbl-128/e_powl.c (__ieee754_powl): Likewise.
17432         * sysdeps/ieee754/ldbl-128ibm/e_powl.c (__ieee754_powl): Use
17433         math_check_force_underflow_nonneg.
17434         * sysdeps/x86/fpu/powl_helper.c (__powl_helper): Use
17435         math_check_force_underflow.
17436         * sysdeps/x86_64/fpu/x86_64-math-asm.h
17437         (LDBL_CHECK_FORCE_UFLOW_NONNAN): New macro.
17438         * sysdeps/x86_64/fpu/e_powl.S: Include <x86_64-math-asm.h>.  Use
17439         DEFINE_LDBL_MIN.
17440         (__ieee754_powl): Use LDBL_CHECK_FORCE_UFLOW_NONNAN.
17441         * math/auto-libm-test-in: Add more tests of pow.
17442         * math/auto-libm-test-out: Regenerated.
17443
17444 2015-09-25  Florian Weimer  <fweimer@redhat.com>
17445
17446         * nss/bug17079.c (init_test_items): Add diagnostic for
17447         inconsistent entries.
17448         (test_buffer_size): Skip inconsistent entries.
17449
17450 2015-09-25  Joseph Myers  <joseph@codesourcery.com>
17451
17452         [BZ #13304]
17453         * sysdeps/m68k/coldfire/nofpu/s_fma.c: New file.
17454         * sysdeps/m68k/coldfire/nofpu/s_fmaf.c: Likewise.
17455         * sysdeps/m68k/coldfire/nofpu/sfp-machine.h: Likewise.
17456
17457         [BZ #13304]
17458         * sysdeps/microblaze/s_fma.c: New file.
17459         * sysdeps/microblaze/s_fmaf.c: Likewise.
17460         * sysdeps/microblaze/sfp-machine.h: Likewise.
17461
17462 2015-09-25  Maciej W. Rozycki  <macro@imgtec.com>
17463
17464         [BZ #17250]
17465         * elf/dl-support.c (_dl_main_map): Don't initialize l_flags_1
17466         member.
17467
17468 2015-09-24  Joseph Myers  <joseph@codesourcery.com>
17469
17470         [BZ #18803]
17471         * sysdeps/i386/fpu/e_hypot.S: Use DEFINE_DBL_MIN.
17472         (MO): New macro.
17473         (__ieee754_hypot) [PIC]: Load PIC register.
17474         (__ieee754_hypot): Use DBL_NARROW_EVAL_UFLOW_NONNEG instead of
17475         DBL_NARROW_EVAL.
17476         * sysdeps/ieee754/dbl-64/e_hypot.c (__ieee754_hypot): Use
17477         math_check_force_underflow_nonneg in case where result might be
17478         tiny.
17479         * sysdeps/ieee754/ldbl-128/e_hypotl.c (__ieee754_hypotl):
17480         Likewise.
17481         * sysdeps/ieee754/ldbl-128ibm/e_hypotl.c (__ieee754_hypotl):
17482         Likewise.
17483         * sysdeps/ieee754/ldbl-96/e_hypotl.c (__ieee754_hypotl): Likewise.
17484         * sysdeps/powerpc/fpu/e_hypot.c (__ieee754_hypot): Likewise.
17485         * math/auto-libm-test-in: Add more tests of hypot.
17486         * math/auto-libm-test-out: Regenerated.
17487
17488 2015-09-24  Steve Ellcey  <sellcey@imgtec.com>
17489
17490         * sysdeps/mips/math_private.h (libc_fesetenv_mips): Mark cw as unused.
17491
17492 2015-09-24  Joseph Myers  <joseph@codesourcery.com>
17493
17494         * sysdeps/x86_64/fpu/x86_64-math-asm.h: New file.
17495         * sysdeps/x86_64/fpu/e_exp2l.S: Include <x86_64-math-asm.h>.
17496         (ldbl_min): Replace with use of DEFINE_LDBL_MIN.
17497         (__ieee754_exp2l): Use LDBL_CHECK_FORCE_UFLOW_NONNEG_NAN.
17498         * sysdeps/x86_64/fpu/e_expl.S: Include <x86_64-math-asm.h>.
17499         [!USE_AS_EXPM1L] (cmin): Replace with use of DEFINE_LDBL_MIN.
17500         (IEEE754_EXPL): Use LDBL_CHECK_FORCE_UFLOW_NONNEG.
17501
17502         * sysdeps/i386/fpu/e_atanh.S (__ieee754_atanh) [PIC]: Use
17503         LOAD_PIC_REG.
17504
17505         * sysdeps/i386/fpu/i386-math-asm.h (DEFINE_LDBL_MIN): New macro.
17506         (FLT_CHECK_FORCE_UFLOW): Likewise.
17507         (DBL_CHECK_FORCE_UFLOW): Likewise.
17508         (FLT_CHECK_FORCE_UFLOW_NARROW): Likewise.
17509         (DBL_CHECK_FORCE_UFLOW_NARROW): Likewise.
17510         (LDBL_CHECK_FORCE_UFLOW_NONNEG_NAN): Likewise.
17511         (FLT_CHECK_FORCE_UFLOW_NONNAN): Likewise.
17512         (DBL_CHECK_FORCE_UFLOW_NONNAN): Likewise.
17513         (FLT_CHECK_FORCE_UFLOW_NONNEG): Likewise.
17514         (DBL_CHECK_FORCE_UFLOW_NONNEG): Likewise.
17515         (LDBL_CHECK_FORCE_UFLOW_NONNEG): Likewise.
17516         * sysdeps/i386/fpu/e_asin.S: Include <i386-math-asm.h>.
17517         (dbl_min): Replace with use of DEFINE_DBL_MIN.
17518         (__ieee754_asin): Use DBL_CHECK_FORCE_UFLOW.
17519         * sysdeps/i386/fpu/e_asinf.S: Include <i386-math-asm.h>.
17520         (flt_min): Replace with use of DEFINE_FLT_MIN.
17521         (__ieee754_asinf): Use FLT_CHECK_FORCE_UFLOW.
17522         * sysdeps/i386/fpu/e_atan2.S: Include <i386-math-asm.h>.
17523         (dbl_min): Replace with use of DEFINE_DBL_MIN.
17524         (__ieee754_atan2): Use DBL_CHECK_FORCE_UFLOW_NARROW.
17525         * sysdeps/i386/fpu/e_atan2f.S: Include <i386-math-asm.h>.
17526         (flt_min): Replace with use of DEFINE_FLT_MIN.
17527         (__ieee754_atan2f): Use FLT_CHECK_FORCE_UFLOW_NARROW.
17528         * sysdeps/i386/fpu/e_atanh.S: Include <i386-math-asm.h>.
17529         (dbl_min): Replace with use of DEFINE_DBL_MIN.
17530         (__ieee754_atanh): Use DBL_CHECK_FORCE_UFLOW_NONNEG.
17531         * sysdeps/i386/fpu/e_atanhf.S: Include <i386-math-asm.h>.
17532         (flt_min): Replace with use of DEFINE_FLT_MIN.
17533         (__ieee754_atanhf): Use FLT_CHECK_FORCE_UFLOW_NONNEG.
17534         * sysdeps/i386/fpu/e_exp2l.S: Include <i386-math-asm.h>.
17535         (ldbl_min): Replace with use of DEFINE_LDBL_MIN.
17536         (__ieee754_exp2l): Use LDBL_CHECK_FORCE_UFLOW_NONNEG_NAN.
17537         * sysdeps/i386/fpu/e_expl.S: Include <i386-math-asm.h>.
17538         [!USE_AS_EXPM1L] (cmin): Replace with use of DEFINE_LDBL_MIN.
17539         (IEEE754_EXPL): Use LDBL_CHECK_FORCE_UFLOW_NONNEG.
17540         * sysdeps/i386/fpu/s_atan.S: Include <i386-math-asm.h>.
17541         (dbl_min): Replace with use of DEFINE_DBL_MIN.
17542         (__atan): Use DBL_CHECK_FORCE_UFLOW.
17543         * sysdeps/i386/fpu/s_atanf.S: Include <i386-math-asm.h>.
17544         (flt_min): Replace with use of DEFINE_FLT_MIN.
17545         (__atanf): Use FLT_CHECK_FORCE_UFLOW.
17546         * sysdeps/i386/fpu/s_expm1.S: Include <i386-math-asm.h>.
17547         (dbl_min): Replace with use of DEFINE_DBL_MIN.
17548         (__expm1): Use DBL_CHECK_FORCE_UFLOW.  Move underflow check after
17549         main computation.
17550         * sysdeps/i386/fpu/s_expm1f.S: Include <i386-math-asm.h>.
17551         (flt_min): Replace with use of DEFINE_FLT_MIN.
17552         (__expm1f): Use FLT_CHECK_FORCE_UFLOW.  Move underflow check after
17553         main computation.
17554         * sysdeps/i386/fpu/s_log1p.S: Include <i386-math-asm.h>.
17555         (dbl_min): Replace with use of DEFINE_DBL_MIN.
17556         (MO): New macro.
17557         (__log1p): Use MO.  Use DBL_CHECK_FORCE_UFLOW_NONNAN.
17558         * sysdeps/i386/fpu/s_log1pf.S: Include <i386-math-asm.h>.
17559         (flt_min): Replace with use of DEFINE_FLT_MIN.
17560         (MO): New macro.
17561         (__log1pf): Use MO.  Use FLT_CHECK_FORCE_UFLOW_NONNAN.
17562         * sysdeps/i386/fpu/s_log1pl.S (MO): New macro.
17563         (__log1pl): Use MO.
17564
17565         [BZ #19003]
17566         * sysdeps/x86_64/fpu/multiarch/Makefile (CFLAGS-e_pow-fma4.c): Add
17567         $(config-cflags-nofma).
17568
17569 2015-09-24  Szabolcs Nagy  <szabolcs.nagy@arm.com>
17570
17571         * sysdeps/aarch64/libm-test-ulps: Regenerated.
17572
17573 2015-09-23  Joseph Myers  <joseph@codesourcery.com>
17574
17575         * sysdeps/ieee754/flt-32/e_exp2f.c (TWOM100): Remove volatile.
17576         (TWO127): Likewise.
17577
17578         * sysdeps/generic/math_private.h (fabs_tg): New macro.
17579         (min_of_type): Likewise.
17580         (math_check_force_underflow): Likewise.
17581         (math_check_force_underflow_nonneg): Likewise.
17582         (math_check_force_underflow_complex): Likewise.
17583         * math/e_exp2l.c (__ieee754_exp2l): Use
17584         math_check_force_underflow_nonneg.
17585         * math/k_casinh.c (__kernel_casinh): Likewise.
17586         * math/k_casinhf.c (__kernel_casinhf): Likewise.
17587         * math/k_casinhl.c (__kernel_casinhl): Likewise.
17588         * math/s_catan.c (__catan): Use
17589         math_check_force_underflow_complex.
17590         * math/s_catanf.c (__catanf): Likewise.
17591         * math/s_catanh.c (__catanh): Likewise.
17592         * math/s_catanhf.c (__catanhf): Likewise.
17593         * math/s_catanhl.c (__catanhl): Likewise.
17594         * math/s_catanl.c (__catanl): Likewise.
17595         * math/s_ccosh.c (__ccosh): Likewise.
17596         * math/s_ccoshf.c (__ccoshf): Likewise.
17597         * math/s_ccoshl.c (__ccoshl): Likewise.
17598         * math/s_cexp.c (__cexp): Likewise.
17599         * math/s_cexpf.c (__cexpf): Likewise.
17600         * math/s_cexpl.c (__cexpl): Likewise.
17601         * math/s_clog.c (__clog): Use math_check_force_underflow_nonneg.
17602         * math/s_clog10.c (__clog10): Likewise.
17603         * math/s_clog10f.c (__clog10f): Likewise.
17604         * math/s_clog10l.c (__clog10l): Likewise.
17605         * math/s_clogf.c (__clogf): Likewise.
17606         * math/s_clogl.c (__clogl): Likewise.
17607         * math/s_csin.c (__csin): Use math_check_force_underflow_complex.
17608         * math/s_csinf.c (__csinf): Likewise.
17609         * math/s_csinh.c (__csinh): Likewise.
17610         * math/s_csinhf.c (__csinhf): Likewise.
17611         * math/s_csinhl.c (__csinhl): Likewise.
17612         * math/s_csinl.c (__csinl): Likewise.
17613         * math/s_csqrt.c (__csqrt): Use math_check_force_underflow.
17614         * math/s_csqrtf.c (__csqrtf): Likewise.
17615         * math/s_csqrtl.c (__csqrtl): Likewise.
17616         * math/s_ctan.c (__ctan): Use math_check_force_underflow_complex.
17617         * math/s_ctanf.c (__ctanf): Likewise.
17618         * math/s_ctanh.c (__ctanh): Likewise.
17619         * math/s_ctanhf.c (__ctanhf): Likewise.
17620         * math/s_ctanhl.c (__ctanhl): Likewise.
17621         * math/s_ctanl.c (__ctanl): Likewise.
17622         * stdlib/strtod_l.c (round_and_return): Use math_force_eval
17623         instead of volatile.
17624         * sysdeps/ieee754/dbl-64/e_asin.c (__ieee754_asin): Use
17625         math_check_force_underflow.
17626         * sysdeps/ieee754/dbl-64/e_atanh.c (__ieee754_atanh): Likewise.
17627         * sysdeps/ieee754/dbl-64/e_exp.c (__ieee754_exp): Do not use
17628         volatile when forcing underflow.
17629         * sysdeps/ieee754/dbl-64/e_exp2.c (__ieee754_exp2): Use
17630         math_check_force_underflow_nonneg.
17631         * sysdeps/ieee754/dbl-64/e_gamma_r.c (__ieee754_gamma_r):
17632         Likewise.
17633         * sysdeps/ieee754/dbl-64/e_j1.c (__ieee754_j1): Use
17634         math_check_force_underflow.
17635         * sysdeps/ieee754/dbl-64/e_jn.c (__ieee754_jn): Likewise.
17636         * sysdeps/ieee754/dbl-64/e_sinh.c (__ieee754_sinh): Likewise.
17637         * sysdeps/ieee754/dbl-64/s_asinh.c (__asinh): Likewise.
17638         * sysdeps/ieee754/dbl-64/s_atan.c (atan): Use
17639         math_check_force_underflow_nonneg.
17640         * sysdeps/ieee754/dbl-64/s_erf.c (__erf): Use
17641         math_check_force_underflow.
17642         * sysdeps/ieee754/dbl-64/s_expm1.c (__expm1): Likewise.
17643         * sysdeps/ieee754/dbl-64/s_fma.c (__fma): Use math_force_eval
17644         instead of volatile.
17645         * sysdeps/ieee754/dbl-64/s_log1p.c (__log1p): Use
17646         math_check_force_underflow.
17647         * sysdeps/ieee754/dbl-64/s_sin.c (__sin): Likewise.
17648         * sysdeps/ieee754/dbl-64/s_tan.c (tan): Use
17649         math_check_force_underflow_nonneg.
17650         * sysdeps/ieee754/dbl-64/s_tanh.c (__tanh): Use
17651         math_check_force_underflow.
17652         * sysdeps/ieee754/flt-32/e_asinf.c (__ieee754_asinf): Likewise.
17653         * sysdeps/ieee754/flt-32/e_atanhf.c (__ieee754_atanhf): Likewise.
17654         * sysdeps/ieee754/flt-32/e_exp2f.c (__ieee754_exp2f): Use
17655         math_check_force_underflow_nonneg.
17656         * sysdeps/ieee754/flt-32/e_gammaf_r.c (__ieee754_gammaf_r):
17657         Likewise.
17658         * sysdeps/ieee754/flt-32/e_j1f.c (__ieee754_j1f): Use
17659         math_check_force_underflow.
17660         * sysdeps/ieee754/flt-32/e_jnf.c (__ieee754_jnf): Likewise.
17661         * sysdeps/ieee754/flt-32/e_sinhf.c (__ieee754_sinhf): Likewise.
17662         * sysdeps/ieee754/flt-32/k_sinf.c (__kernel_sinf): Likewise.
17663         * sysdeps/ieee754/flt-32/k_tanf.c (__kernel_tanf): Likewise.
17664         * sysdeps/ieee754/flt-32/s_asinhf.c (__asinhf): Likewise.
17665         * sysdeps/ieee754/flt-32/s_atanf.c (__atanf): Likewise.
17666         * sysdeps/ieee754/flt-32/s_erff.c (__erff): Likewise.
17667         * sysdeps/ieee754/flt-32/s_expm1f.c (__expm1f): Likewise.
17668         * sysdeps/ieee754/flt-32/s_log1pf.c (__log1pf): Likewise.
17669         * sysdeps/ieee754/flt-32/s_tanhf.c (__tanhf): Likewise.
17670         * sysdeps/ieee754/ldbl-128/e_asinl.c (__ieee754_asinl): Likewise.
17671         * sysdeps/ieee754/ldbl-128/e_atanhl.c (__ieee754_atanhl):
17672         Likewise.
17673         * sysdeps/ieee754/ldbl-128/e_expl.c (__ieee754_expl): Use
17674         math_check_force_underflow_nonneg.
17675         * sysdeps/ieee754/ldbl-128/e_gammal_r.c (__ieee754_gammal_r):
17676         Likewise.
17677         * sysdeps/ieee754/ldbl-128/e_j1l.c (__ieee754_j1l): Use
17678         math_check_force_underflow.
17679         * sysdeps/ieee754/ldbl-128/e_jnl.c (__ieee754_jnl): Likewise.
17680         * sysdeps/ieee754/ldbl-128/e_sinhl.c (__ieee754_sinhl): Likewise.
17681         * sysdeps/ieee754/ldbl-128/k_sincosl.c (__kernel_sincosl):
17682         Likewise.
17683         * sysdeps/ieee754/ldbl-128/k_sinl.c (__kernel_sinl): Likewise.
17684         * sysdeps/ieee754/ldbl-128/k_tanl.c (__kernel_tanl): Likewise.
17685         * sysdeps/ieee754/ldbl-128/s_asinhl.c (__asinhl): Likewise.
17686         * sysdeps/ieee754/ldbl-128/s_atanl.c (__atanl): Likewise.
17687         * sysdeps/ieee754/ldbl-128/s_erfl.c (__erfl): Likewise.
17688         * sysdeps/ieee754/ldbl-128/s_expm1l.c (__expm1l): Likewise.
17689         * sysdeps/ieee754/ldbl-128/s_fmal.c (__fmal): Use math_force_eval
17690         instead of volatile.
17691         * sysdeps/ieee754/ldbl-128/s_log1pl.c (__log1pl): Use
17692         math_check_force_underflow.
17693         * sysdeps/ieee754/ldbl-128/s_tanhl.c (__tanhl): Likewise.
17694         * sysdeps/ieee754/ldbl-128ibm/e_asinl.c (__ieee754_asinl): Use
17695         math_check_force_underflow.
17696         * sysdeps/ieee754/ldbl-128ibm/e_atanhl.c (__ieee754_atanhl):
17697         Likewise.
17698         * sysdeps/ieee754/ldbl-128ibm/e_gammal_r.c (__ieee754_gammal_r):
17699         Use math_check_force_underflow_nonneg.
17700         * sysdeps/ieee754/ldbl-128ibm/e_jnl.c (__ieee754_jnl): Use
17701         math_check_force_underflow.
17702         * sysdeps/ieee754/ldbl-128ibm/e_sinhl.c (__ieee754_sinhl):
17703         Likewise.
17704         * sysdeps/ieee754/ldbl-128ibm/k_sincosl.c (__kernel_sincosl):
17705         Likewise.
17706         * sysdeps/ieee754/ldbl-128ibm/k_sinl.c (__kernel_sinl): Likewise.
17707         * sysdeps/ieee754/ldbl-128ibm/k_tanl.c (__kernel_tanl): Likewise.
17708         * sysdeps/ieee754/ldbl-128ibm/s_asinhl.c (__asinhl): Likewise.
17709         * sysdeps/ieee754/ldbl-128ibm/s_atanl.c (__atanl): Likewise.
17710         * sysdeps/ieee754/ldbl-128ibm/s_erfl.c (__erfl): Likewise.
17711         * sysdeps/ieee754/ldbl-128ibm/s_tanhl.c (__tanhl): Likewise.
17712         * sysdeps/ieee754/ldbl-96/e_asinl.c (__ieee754_asinl): Likewise.
17713         * sysdeps/ieee754/ldbl-96/e_atanhl.c (__ieee754_atanhl): Likewise.
17714         * sysdeps/ieee754/ldbl-96/e_gammal_r.c (__ieee754_gammal_r): Use
17715         math_check_force_underflow_nonneg.
17716         * sysdeps/ieee754/ldbl-96/e_j1l.c (__ieee754_j1l): Use
17717         math_check_force_underflow.
17718         * sysdeps/ieee754/ldbl-96/e_jnl.c (__ieee754_jnl): Likewise.
17719         * sysdeps/ieee754/ldbl-96/e_sinhl.c (__ieee754_sinhl): Likewise.
17720         * sysdeps/ieee754/ldbl-96/k_sinl.c (__kernel_sinl): Likewise.
17721         * sysdeps/ieee754/ldbl-96/k_tanl.c (__kernel_tanl): Use
17722         math_check_force_underflow_nonneg.
17723         * sysdeps/ieee754/ldbl-96/s_asinhl.c (__asinhl): Use
17724         math_check_force_underflow.
17725         * sysdeps/ieee754/ldbl-96/s_erfl.c (__erfl): Likewise.
17726         * sysdeps/ieee754/ldbl-96/s_fmal.c (__fmal): Use math_force_eval
17727         instead of volatile.
17728         * sysdeps/ieee754/ldbl-96/s_tanhl.c (__tanhl): Use
17729         math_check_force_underflow.
17730
17731         * math/s_nexttowardf.c (__nexttowardf): Use math_narrow_eval.
17732         * stdlib/strtod_l.c: Include <math_private.h>.
17733         (overflow_value): Use math_narrow_eval.
17734         (underflow_value): Likewise.
17735         * sysdeps/i386/fpu/s_nexttoward.c (__nexttoward): Likewise.
17736         * sysdeps/i386/fpu/s_nexttowardf.c (__nexttowardf): Likewise.
17737         * sysdeps/ieee754/dbl-64/e_gamma_r.c (gamma_positive): Likewise.
17738         (__ieee754_gamma_r): Likewise.
17739         * sysdeps/ieee754/dbl-64/gamma_productf.c (__gamma_productf):
17740         Likewise.
17741         * sysdeps/ieee754/dbl-64/k_rem_pio2.c (__kernel_rem_pio2):
17742         Likewise.
17743         * sysdeps/ieee754/dbl-64/lgamma_neg.c (__lgamma_neg): Likewise.
17744         * sysdeps/ieee754/dbl-64/s_erf.c (__erfc): Likewise.
17745         * sysdeps/ieee754/dbl-64/s_llrint.c (__llrint): Likewise.
17746         * sysdeps/ieee754/dbl-64/s_lrint.c (__lrint): Likewise.
17747         * sysdeps/ieee754/flt-32/e_gammaf_r.c (gammaf_positive): Likewise.
17748         (__ieee754_gammaf_r): Likewise.
17749         * sysdeps/ieee754/flt-32/k_rem_pio2f.c (__kernel_rem_pio2f):
17750         Likewise.
17751         * sysdeps/ieee754/flt-32/lgamma_negf.c (__lgamma_negf): Likewise.
17752         * sysdeps/ieee754/flt-32/s_erff.c (__erfcf): Likewise.
17753         * sysdeps/ieee754/flt-32/s_llrintf.c (__llrintf): Likewise.
17754         * sysdeps/ieee754/flt-32/s_lrintf.c (__lrintf): Likewise.
17755         * sysdeps/ieee754/ldbl-128/s_llrintl.c (__llrintl): Do not use
17756         volatile.
17757         * sysdeps/ieee754/ldbl-128/s_lrintl.c (__lrintl): Likewise.
17758         * sysdeps/ieee754/ldbl-128/s_nexttoward.c (__nexttoward): Use
17759         math_narrow_eval.
17760         * sysdeps/ieee754/ldbl-128ibm/s_nexttoward.c (__nexttoward):
17761         Likewise.
17762         * sysdeps/ieee754/ldbl-128ibm/s_nexttowardf.c (__nexttowardf):
17763         Likewise.
17764         * sysdeps/ieee754/ldbl-96/gamma_product.c (__gamma_product):
17765         Likewise.
17766         * sysdeps/ieee754/ldbl-96/s_llrintl.c (__llrintl): Do not use
17767         volatile.
17768         * sysdeps/ieee754/ldbl-96/s_lrintl.c (__lrintl): Likewise.
17769         * sysdeps/ieee754/ldbl-96/s_nexttoward.c (__nexttoward): Use
17770         math_narrow_eval.
17771         * sysdeps/ieee754/ldbl-96/s_nexttowardf.c (__nexttowardf):
17772         Likewise.
17773         * sysdeps/ieee754/ldbl-opt/s_nexttowardfd.c (__nldbl_nexttowardf):
17774         Likewise.
17775
17776 2015-09-22  H.J. Lu  <hongjiu.lu@intel.com>
17777
17778         * nptl/Versions: Remove ignored symbols.
17779
17780 2015-09-22  Florian Weimer  <fweimer@redhat.com>
17781
17782         * nss/bug17079.c: Renamed from nss/bug18287.c.  Add description.
17783         * nss/Makefile (tests): Update.
17784
17785 2015-09-22  Florian Weimer  <fweimer@redhat.com>
17786
17787         * nss/bug18287.c: New file.
17788         * nss/Makefile (tests): Add bug18287.
17789
17790 2015-09-22  Samuel Thibault  <samuel.thibault@ens-lyon.org>
17791
17792         * mach/Versions (__mach_host_self_): Add symbol.
17793
17794 2015-09-21  Samuel Thibault  <samuel.thibault@ens-lyon.org>
17795
17796         * sysdeps/mach/hurd/mmap.c (__mmap): Use __vm_page_size instead of
17797         vm_page_size.
17798
17799 2015-09-19  Samuel Thibault  <samuel.thibault@ens-lyon.org>
17800
17801         Really fix sysdeps/i386/fpu/s_scalbn.S build
17802
17803         * math/Versions (libc: GLIBC_2_20): New (empty) version set.
17804         (libc: GLIBC_2_22): Remove unused version set.
17805
17806 2015-09-18  Mike Frysinger  <vapier@gentoo.org>
17807
17808         * config.make.in (enable-timezone-tools): New variable.
17809         * configure.ac (AC_ARG_ENABLE(timezone-tools)): New configure flag.
17810         (enable_timezone_tools): Export to generated files.
17811         * configure: Regenerate.
17812         * INSTALL: Regenerate.
17813         * manual/install.texi (--disable-timezone-tools): Document new flag.
17814         * timezone/Makefile (install-sbin, install-bin-script): Wrap in a
17815         ifeq ($(enable-timezone-tools),yes) check.
17816
17817 2015-09-18  Joseph Myers  <joseph@codesourcery.com>
17818
17819         * timezone/Makefile: Revert previous change.
17820
17821         [BZ #18980]
17822         * sysdeps/i386/fpu/i386-math-asm.h (DEFINE_FLT_MIN): New macro.
17823         (DEFINE_DBL_MIN): Likewise.
17824         (FLT_NARROW_EVAL_UFLOW_NONNEG_NAN): Likewise.
17825         (DBL_NARROW_EVAL_UFLOW_NONNEG_NAN): Likewise.
17826         (FLT_NARROW_EVAL_UFLOW_NONNEG): Likewise.
17827         (DBL_NARROW_EVAL_UFLOW_NONNEG): Likewise.
17828         * sysdeps/i386/fpu/e_exp.S: Include <i386-math-asm.h>.
17829         (dbl_min): Replace with use of DEFINE_DBL_MIN.
17830         (__ieee754_exp): Use DBL_NARROW_EVAL_UFLOW_NONNEG_NAN.
17831         (__exp_finite): Use DBL_NARROW_EVAL_UFLOW_NONNEG.
17832         * sysdeps/i386/fpu/e_exp10.S: Include <i386-math-asm.h>.
17833         (dbl_min): Replace with use of DEFINE_DBL_MIN.
17834         (__ieee754_exp10): Use DBL_NARROW_EVAL_UFLOW_NONNEG_NAN.
17835         * sysdeps/i386/fpu/e_exp10f.S: Include <i386-math-asm.h>.
17836         (flt_min): Replace with use of DEFINE_FLT_MIN.
17837         (__ieee754_exp10f): Use FLT_NARROW_EVAL_UFLOW_NONNEG_NAN.
17838         * sysdeps/i386/fpu/e_exp2.S: Include <i386-math-asm.h>.
17839         (dbl_min): Replace with use of DEFINE_DBL_MIN.
17840         (__ieee754_exp2): Use DBL_NARROW_EVAL_UFLOW_NONNEG_NAN.
17841         * sysdeps/i386/fpu/e_exp2f.S: Include <i386-math-asm.h>.
17842         (flt_min): Replace with use of DEFINE_FLT_MIN.
17843         (__ieee754_exp2f): Use FLT_NARROW_EVAL_UFLOW_NONNEG_NAN.
17844         * sysdeps/i386/fpu/e_expf.S: Include <i386-math-asm.h>.
17845         (flt_min): Replace with use of DEFINE_FLT_MIN.
17846         (__ieee754_expf): Use FLT_NARROW_EVAL_UFLOW_NONNEG_NAN.
17847         (__expf_finite): Use FLT_NARROW_EVAL_UFLOW_NONNEG.
17848         * sysdeps/i386/fpu/e_hypot.S: Include <i386-math-asm.h>.
17849         (__ieee754_hypot): Use DBL_NARROW_EVAL.
17850         * sysdeps/i386/fpu/e_hypotf.S: Include <i386-math-asm.h>.
17851         (__ieee754_hypotf): Use FLT_NARROW_EVAL.
17852         * sysdeps/i386/fpu/e_pow.S: Include <i386-math-asm.h>.
17853         (__ieee754_pow): Use DBL_NARROW_EVAL.
17854         * sysdeps/i386/fpu/e_powf.S: Include <i386-math-asm.h>.
17855         (__ieee754_powf): Use FLT_NARROW_EVAL.
17856         * sysdeps/i386/i686/fpu/multiarch/e_expf-sse2.S
17857         (__ieee754_expf_sse2): Convert double-precision result to single
17858         precision.
17859         * sysdeps/i386/fpu/libm-test-ulps: Update.
17860
17861 2015-09-18  Wilco Dijkstra  <wdijkstr@arm.com>
17862
17863         * timezone/Makefile: Ignore unused variable errors due to private.h
17864         (time_t_min) and (time_t_max).
17865         * timezone/private.h (time_t_min): Revert removal.  (time_t_max):
17866         Likewise.
17867
17868 2015-09-18  Joseph Myers  <joseph@codesourcery.com>
17869
17870         [BZ #18981]
17871         * sysdeps/i386/fpu/i386-math-asm.h: New file.
17872         * sysdeps/i386/fpu/e_scalb.S: Include <i386-math-asm.h>.
17873         (__ieee754_scalb): Use DBL_NARROW_EVAL.
17874         * sysdeps/i386/fpu/e_scalbf.S: Include <i386-math-asm.h>.
17875         (__ieee754_scalbf): Use FLT_NARROW_EVAL.
17876         * sysdeps/i386/fpu/s_scalbn.S: Include <i386-math-asm.h>.
17877         (__scalbn): Use DBL_NARROW_EVAL.
17878         * sysdeps/i386/fpu/s_scalbnf.S: Include <i386-math-asm.h>.
17879         (__scalbnf): Use FLT_NARROW_EVAL.
17880
17881 2015-09-18  Wilco Dijkstra  <wdijkstr@arm.com>
17882
17883         * math/w_tgamma.c (__ieee754_gamma_r): Use explicit sign check.
17884         * math/w_tgammaf.c (__ieee754_gammaf_r): Likewise.
17885         * math/w_tgammal.c (__ieee754_gammal_r): Likewise.
17886         * stdio-common/printf_fp.c (___printf_fp):
17887         Use signbit to get the sign. Use isinf macro to allow inlining.
17888         * stdio-common/printf_fphex.c (__printf_fphex): Likewise.
17889         * stdio-common/printf_size.c (__printf_size): Likewise.
17890
17891 2015-09-18  Mike Frysinger  <vapier@gentoo.org>
17892
17893         * timezone/Makefile ($(testdata)/XT%): Call $(make-target-directory).
17894
17895 2015-09-18  Joseph Myers  <joseph@codesourcery.com>
17896
17897         [BZ #18980]
17898         * sysdeps/generic/math_private.h: Include <float.h>.
17899         (math_narrow_eval): New macro.
17900         [FLT_EVAL_METHOD != 0] (excess_precision): Likewise.
17901         * sysdeps/ieee754/dbl-64/e_cosh.c (__ieee754_cosh): Use
17902         math_narrow_eval on overflowing return value.
17903         * sysdeps/ieee754/dbl-64/e_lgamma_r.c (__ieee754_lgamma_r):
17904         Likewise.
17905         * sysdeps/ieee754/dbl-64/e_sinh.c (__ieee754_sinh): Likewise.
17906         * sysdeps/ieee754/flt-32/e_coshf.c (__ieee754_coshf): Likewise.
17907         * sysdeps/ieee754/flt-32/e_lgammaf_r.c (__ieee754_lgammaf_r):
17908         Likewise.
17909         * sysdeps/ieee754/flt-32/e_sinhf.c (__ieee754_sinhf): Likewise.
17910
17911 2015-09-18  Wilco Dijkstra  <wdijkstr@arm.com>
17912
17913         * include/math.h: Remove __isinf_ns, __isinf_nsf, __isinf_nsl.
17914         * math/Makefile: Remove isinf_ns.c.
17915         * math/divtc3.c (__divtc3): Replace __isinf_nsl with isinf.
17916         * math/multc3.c (__multc3): Likewise.
17917         * math/s_casin.c (__casin): Likewise.
17918         * math/s_casinf.c (__casinf): Likewise.
17919         * math/s_casinl.c (__casinl): Likewise.
17920         * math/s_cproj.c (__cproj): Likewise.
17921         * math/s_cprojf.c (__cprojf): Likewise.
17922         * math/s_cprojl.c (__cprofl): Likewise.
17923         * math/s_ctan.c (__ctan): Likewise.
17924         * math/s_ctanf.c (__ctanf): Likewise.
17925         * math/s_ctanh.c (__ctanh): Likewise.
17926         * math/s_ctanhf.c (__ctanhf): Likewise.
17927         * math/s_ctanhl.c (__ctanhl): Likewise.
17928         * math/s_ctanl.c (__ctanl): Likewise.
17929         * math/w_fmod.c (__fmod): Likewise.
17930         * math/w_fmodf.c (__fmodf): Likewise.
17931         * math/w_fmodl.c (_fmodl): Likewise.
17932         * math/w_remainder.c (__remainder): Likewise.
17933         * math/w_remainderf.c (__remainderf): Likewise.
17934         * math/w_remainderl.c (__remainderl): Likewise.
17935         * math/w_scalb.c (__scalb): Likewise.
17936         * math/w_scalbf.c (__scalbf): Likewise.
17937         * math/w_scalbl.c (__scalbl): Likewise.
17938         * sysdeps/ieee754/dbl-64/s_isinf_ns.c: Deleted file.
17939         * sysdeps/ieee754/dbl-64/s_sincos.c (__sincos): Replace __isinf_ns
17940         with isinf.
17941         * sysdeps/ieee754/dbl-64/wordsize-64/math_private.h: Deleted file.
17942         * sysdeps/ieee754/dbl-64/wordsize-64/s_isinf_ns.c: Deleted file.
17943         * sysdeps/ieee754/flt-32/e_exp2f.c (__ieee754_exp2f): Replace
17944         __isinf_nsf with isinf.
17945         * sysdeps/ieee754/flt-32/math_private.h: Deleted file.
17946         * sysdeps/ieee754/flt-32/s_isinf_nsf.c: Deleted file.
17947         * sysdeps/ieee754/ldbl-128/s_isinf_nsl.c: Deleted file.
17948         * sysdeps/ieee754/ldbl-128/s_sincosl.c (__sincosl): Replace __isinf_nsl
17949         with isinf.
17950         * sysdeps/ieee754/ldbl-128ibm/s_cprojl.c(__cprojll): Replace
17951         __isinf_nsl with isinf.
17952         * sysdeps/ieee754/ldbl-128ibm/s_ctanl.c(__ctanl): Replace __isinf_nsl
17953         with isinf.
17954         * sysdeps/ieee754/ldbl-128ibm/s_isinf_nsl.c: Deleted file.
17955         * sysdeps/ieee754/ldbl-128ibm/s_sincosl.c (__sincosl): Replace
17956         __isinf_nsl with isinf.
17957         * sysdeps/ieee754/ldbl-96/s_isinf_nsl.c: Deleted file.
17958         * sysdeps/ieee754/ldbl-96/s_sincosl.c (__sincosl): Replace __isinf_nsl
17959         with isinf.
17960
17961 2015-09-18  Wilco Dijkstra  <wdijkstr@arm.com>
17962
17963         * resolv/base64.c (rcsid): Remove unused static.
17964         * sysdeps/ieee754/dbl-64/atnat2.h (qpi1): Remove unused
17965         static.  (tqpi1): Likewise.
17966         * sysdeps/ieee754/dbl-64/uexp.h (one): Likewise.
17967         * sysdeps/ieee754/dbl-64/upow.h (sqrt_2): Likewise.
17968         * sysdeps/ieee754/flt-32/e_log10f.c (one): Likewise.
17969         * sysdeps/ieee754/flt-32/s_cosf.c (one): Likewise.
17970         * sysdeps/ieee754/ldbl-128/e_lgammal_r.c (zero): Likewise.
17971         * sysdeps/ieee754/ldbl-128/s_erfl.c (half): Likewise.
17972         * sysdeps/ieee754/ldbl-128/s_log1pl.c (maxlog): Likewise.
17973         * timezone/private.h (time_t_min): Likewise.  (time_t_max):
17974         Likewise.
17975
17976 2015-09-18  H.J. Lu  <hongjiu.lu@intel.com>
17977
17978         * sysdeps/nptl/jmp-unwind.c: Include <libc-lock.h> instead of
17979         <nptl/pthreadP.h>.
17980         (_longjmp_unwind): Use __libc_ptf_call.
17981         * sysdeps/unix/sysv/linux/s390/jmp-unwind.c: Likewise.
17982
17983 2015-09-18  David Lamparter  <equinox-gentoo@diac24.net>
17984
17985         * sysdeps/arm/setjmp.S: Change PIC to SHARED.
17986         * sysdeps/arm/__longjmp.S: Likewise.
17987
17988 2015-09-18  Wilco Dijkstra  <wdijkstr@arm.com>
17989
17990         * sysdeps/ieee754/dbl-64/s_signbit.c (__signbit):
17991         Use __builtin_signbit.
17992         * sysdeps/ieee754/flt-32/s_signbitf.c (__signbitf):
17993         Use __builtin_signbitf.
17994         * sysdeps/ieee754/ldbl-128/s_signbitl.c (__signbitl):
17995         Use __builtin_signbitl.
17996         * sysdeps/ieee754/ldbl-128ibm/s_signbitl.c (___signbitl): Likewise.
17997         * sysdeps/ieee754/ldbl-96/s_signbitl.c (__signbitl): Likewise.
17998
17999 2015-09-18  Wilco Dijkstra  <wdijkstr@arm.com>
18000
18001         [BZ #15367]
18002         [BZ #17441]
18003
18004         * math/Makefile: Build test-snan.c with -fsignaling-nans.
18005         * math/math.h (fpclassify): Use __builtin_fpclassify when
18006         available.  (signbit): Use __builtin_signbit(f/l).
18007         (isfinite): Use__builtin_isfinite.  (isnormal): Use
18008         __builtin_isnormal.  (isnan): Use __builtin_isnan.
18009         (isinf): Use __builtin_isinf_sign.
18010
18011 2015-09-18  Wilco Dijkstra  <wdijkstr@arm.com>
18012
18013         * benchtests/Makefile: Add bench-math-inlines, link with libm.
18014         * benchtests/bench-math-inlines.c: New benchmark.
18015         * benchtests/bench-util.h: New file.
18016         * benchtests/bench-util.c: New file.
18017         * benchtests/bench-skeleton.c: Add include of bench-util.c/h.
18018
18019 2015-09-18  Carlos O'Donell  <carlos@redhat.com>
18020
18021         * elf/tst-dlmopen1.c: Define TEST_SO.
18022         (do_test): Use TEST_SO.
18023
18024         * elf/dl-load.c: Include libc-internal.h.
18025         (_dl_map_object_from_fd): Use ALIGN_UP and ALIGN_DOWN.
18026
18027 2015-09-18  Vincent Bernat  <vincent@bernat.im>
18028
18029         [BZ #17887]
18030         * time/strptime_l.c (__strptime_internal): Make %z accept
18031         [+-]HH:MM time zones.
18032
18033 2015-09-18  Vincent Bernat  <vincent@bernat.im>
18034
18035         [BZ #17886]
18036         * time/strptime_l.c (__strptime_internal): Make %z accept Z as a
18037         valid time zone.
18038
18039 2015-09-17  Mike Frysinger  <vapier@gentoo.org>
18040
18041         * sysdeps/unix/sysv/linux/alpha/Makefile (CFLAGS-fdatasync.c): Delete.
18042         * sysdeps/unix/sysv/linux/alpha/fdatasync.c: Delete.
18043         * sysdeps/unix/sysv/linux/alpha/kernel-features.h
18044         (__ASSUME_FDATASYNC): Delete.
18045
18046 2015-09-17  Joseph Myers  <joseph@codesourcery.com>
18047
18048         * conform/linknamespace.pl: Require weak undefined symbols to be
18049         in the standard namespace.
18050         (%strong_syms): Rename to %seen_syms.
18051         (%strong_seen): Rename to %seen_where.
18052
18053 2015-09-17  H.J. Lu  <hongjiu.lu@intel.com>
18054
18055         [BZ #18970]
18056         * misc/error.c (error): Replace pthread_setcancelstate with
18057         __pthread_setcancelstate.
18058         (error_at_line): Likewise.
18059         * posix/wordexp.c (parse_comm): Likewise.
18060         * stdlib/fmtmsg.c (fmtmsg): Likewise.
18061         * nptl/forward.c (pthread_setcancelstate): Renamed to ...
18062         (__pthread_setcancelstate): This.
18063         (pthread_setcancelstate): Add an alias.
18064         * nptl/nptl-init.c (pthread_functions): Replace
18065         ptr_pthread_setcancelstate with ptr___pthread_setcancelstate.
18066         * sysdeps/nptl/pthread-functions.h (pthread_functions): Likewise.
18067         * nptl/pthreadP.h (__pthread_setcancelstate): Mark it with
18068         hidden_proto.
18069         * nptl/pthread_setcancelstate.c (__pthread_setcancelstate): Mark
18070         it with hidden_def.
18071         * sysdeps/nptl/libc-lockP.h (__pthread_setcancelstate): New.
18072         (pthread_setcancelstate): Renamed to ...
18073         (__pthread_setcancelstate): This.
18074         * sysdeps/unix/sysv/linux/fatal-prepare.h (FATAL_PREPARE): Use
18075         __libc_ptf_call with __pthread_setcancelstate.
18076
18077 2015-09-17  Joseph Myers  <joseph@codesourcery.com>
18078             Andreas Schwab  <schwab@suse.de>
18079
18080         [BZ #17118]
18081         * math/s_ctan.c (__ctan): Determine sign of zero real part of
18082         result when imaginary part of argument is infinite using sine and
18083         cosine.
18084         * math/s_ctanf.c (__ctanf): Likewise.
18085         * math/s_ctanl.c (__ctanl): Likewise.
18086         * math/s_ctanh.c (__ctanh): Determine sign of zero imaginary part
18087         of result when real part of argument is infinite using sine and
18088         cosine.
18089         * math/s_ctanhf.c (__ctanhf): Likewise.
18090         * math/s_ctanhl.c (__ctanhl): Likewise.
18091         * math/libm-test.inc (ctan_test_data): Add more tests of ctan.
18092         (ctanh_test_data): Add more tests of ctanh.
18093
18094 2015-09-17  Joseph Myers  <joseph@codesourcery.com>
18095
18096         [BZ #15384]
18097         * sysdeps/ieee754/dbl-64/s_finite.c (FINITE): Use same constant as
18098         bit-mask as in subtraction.
18099         * sysdeps/ieee754/dbl-64/wordsize-64/s_finite.c (__finite):
18100         Likewise.
18101         * sysdeps/ieee754/flt-32/s_finitef.c (FINITEF): Likewise.
18102         * sysdeps/ieee754/ldbl-128/s_finitel.c (__finitel): Likewise.
18103         * sysdeps/ieee754/ldbl-128ibm/s_finitel.c (__finitel): Likewise.
18104
18105         [BZ #18951]
18106         * sysdeps/ieee754/dbl-64/e_gamma_r.c (__ieee754_gamma_r): Force
18107         underflow exception for small results.
18108         * sysdeps/ieee754/flt-32/e_gammaf_r.c (__ieee754_gammaf_r):
18109         Likewise.
18110         * sysdeps/ieee754/ldbl-128/e_gammal_r.c (__ieee754_gammal_r):
18111         Likewise.
18112         * sysdeps/ieee754/ldbl-128ibm/e_gammal_r.c (__ieee754_gammal_r):
18113         Likewise.
18114         * sysdeps/ieee754/ldbl-96/e_gammal_r.c (__ieee754_gammal_r):
18115         Likewise.
18116         * math/auto-libm-test-in: Add more tests of tgamma.
18117         * math/auto-libm-test-out: Regenerated.
18118
18119 2015-09-17  Andreas Schwab  <schwab@suse.de>
18120
18121         * sysdeps/unix/sysv/linux/sparc/sparc64/semctl.c: Readd.
18122
18123 2015-09-16  Joseph Myers  <joseph@codesourcery.com>
18124
18125         [BZ #18977]
18126         * math/bits/mathcalls.h
18127         [!__USE_MISC && __USE_XOPEN && !__MATH_DECLARING_DOUBLE] (j0): Do
18128         not declare.
18129         [!__USE_MISC && __USE_XOPEN && !__MATH_DECLARING_DOUBLE] (j1):
18130         Likewise.
18131         [!__USE_MISC && __USE_XOPEN && !__MATH_DECLARING_DOUBLE] (jn):
18132         Likewise.
18133         [!__USE_MISC && __USE_XOPEN && !__MATH_DECLARING_DOUBLE] (y0):
18134         Likewise.
18135         [!__USE_MISC && __USE_XOPEN && !__MATH_DECLARING_DOUBLE] (y1):
18136         Likewise.
18137         [!__USE_MISC && __USE_XOPEN && !__MATH_DECLARING_DOUBLE] (yn):
18138         Likewise.
18139         * conform/data/math.h-data
18140         [!ISO99 && !ISO11 && !POSIX && !POSIX2008] (j0f): Do not expect
18141         function.
18142         [!ISO99 && !ISO11 && !POSIX && !POSIX2008] (j1f): Likewise.
18143         [!ISO99 && !ISO11 && !POSIX && !POSIX2008] (jnf): Likewise.
18144         [!ISO99 && !ISO11 && !POSIX && !POSIX2008] (y0f): Likewise.
18145         [!ISO99 && !ISO11 && !POSIX && !POSIX2008] (y1f): Likewise.
18146         [!ISO99 && !ISO11 && !POSIX && !POSIX2008] (ynf): Likewise.
18147         [!ISO99 && !ISO11 && !POSIX && !POSIX2008] (j0l): Likewise.
18148         [!ISO99 && !ISO11 && !POSIX && !POSIX2008] (j1l): Likewise.
18149         [!ISO99 && !ISO11 && !POSIX && !POSIX2008] (jnl): Likewise.
18150         [!ISO99 && !ISO11 && !POSIX && !POSIX2008] (y0l): Likewise.
18151         [!ISO99 && !ISO11 && !POSIX && !POSIX2008] (y1l): Likewise.
18152         [!ISO99 && !ISO11 && !POSIX && !POSIX2008] (ynl): Likewise.
18153
18154         [BZ #6803]
18155         * math/s_ldexp.c (scalbn): Define as weak alias of __ldexp.
18156         [NO_LONG_DOUBLE] (scalbnl): Define as weak alias of __ldexp.
18157         * math/s_ldexpf.c (scalbnf): Define as weak alias of __ldexpf.
18158         * math/s_ldexpl.c (scalbnl): Define as weak alias of __ldexpl.
18159         * sysdeps/i386/fpu/s_scalbn.S (scalbn): Remove alias.
18160         * sysdeps/i386/fpu/s_scalbnf.S (scalbnf): Likewise.
18161         * sysdeps/i386/fpu/s_scalbnl.S (scalbnl): Likewise.
18162         * sysdeps/ieee754/dbl-64/s_scalbn.c (scalbn): Likewise.
18163         [NO_LONG_DOUBLE] (scalbnl): Likewise.
18164         * sysdeps/ieee754/dbl-64/wordsize-64/s_scalbn.c (scalbn):
18165         Likewise.
18166         [NO_LONG_DOUBLE] (scalbnl): Likewise.
18167         * sysdeps/ieee754/flt-32/s_scalbnf.c (scalbnf): Likewise.
18168         * sysdeps/ieee754/ldbl-128/s_scalbnl.c (scalbnl): Likewise.
18169         * sysdeps/ieee754/ldbl-128ibm/s_scalbnl.c (scalbnl): Remove
18170         long_double_symbol calls.
18171         * sysdeps/ieee754/ldbl-64-128/s_scalbnl.c (scalbnl): Likewise.
18172         * sysdeps/ieee754/ldbl-opt/s_ldexpl.c (__ldexpl_2): Define as
18173         strong alias of __ldexpl.
18174         (scalbnl): Define using long_double_symbol.
18175         * sysdeps/m68k/m680x0/fpu/s_scalbn.c (__CONCATX(scalbn,suffix)):
18176         Remove alias.
18177         * sysdeps/sparc/sparc64/soft-fp/s_scalbnl.c (scalbnl): Likewise.
18178         * sysdeps/x86_64/fpu/s_scalbnl.S (scalbnl): Likewise.
18179         * math/libm-test.inc (scalbn_test_data): Add errno expectations.
18180         (scalbln_test_data): Add more errno expectations.
18181
18182 2015-09-16  Justus Winter  <4winter@informatik.uni-hamburg.de>
18183
18184         Cache the host port like we cache the task port.  This way we do not
18185         need to call the kernel just to get the port.  Furthermore, we no
18186         longer increase the reference count on every invocation of
18187         `mach_host_self'.
18188
18189         * mach/mach/mach_traps.h (__mach_host_self, mach_host_self):
18190         Protect declarations against the macro expansion.
18191         * mach/mach_init.c (__mach_host_self_): New variable.
18192         (mach_init): Initialize `__mach_host_self_'.
18193         * mach/mach_init.h (__mach_host_self_): New declaration.
18194         (__mach_host_self, mach_host_self): New macros.
18195         * sysdeps/mach/hurd/dl-sysdep.c (_dl_sysdep_start_cleanup):
18196         Release reference.
18197
18198 2015-09-16  Joseph Myers  <joseph@codesourcery.com>
18199
18200         [BZ #4404]
18201         * po/de.po: Update from Translation Project.
18202
18203         [BZ #16415]
18204         * sysdeps/ieee754/ldbl-128/s_expm1l.c (maxlog): Remove variable.
18205         (__expm1l): Remove code to handle positive infinity and overflow.
18206         * sysdeps/ieee754/ldbl-128ibm/s_expm1l.c (maxlog): Remove
18207         variable.
18208         (__expm1l): Remove code to handle positive infinity and overflow.
18209
18210 2015-09-16  Paul Eggert  <eggert@cs.ucla.edu>
18211             Paul Pluzhnikov  <ppluzhnikov@google.com>
18212
18213         [BZ #18872]
18214         * stdio-common/Makefile (tst-printf-bz18872): New test.
18215         (tst-printf-bz18872-mem.out): Likewise.
18216         * stdio-common/tst-printf-bz18872.sh: Generate new test.
18217         * stdio-common/vfprintf.c: Fix memory leaks.
18218
18219 2015-09-16  Andreas Schwab  <schwab@suse.de>
18220
18221         [BZ #17244]
18222         * sysdeps/unix/sysv/linux/semctl.c (__old_semctl, __new_semctl):
18223         Remove extra va_start/va_end calls.
18224
18225         [BZ #17243]
18226         * posix/execl.c (execl): Add missing va_end.
18227         * posix/execle.c (execle): Likewise.
18228         * posix/execlp.c (execlp): Likewise.
18229
18230 2015-09-15  Roland McGrath  <roland@hack.frob.com>
18231
18232         * misc/sys/param.h [!MAXHOSTNAMELEN && HOST_NAME_MAX]
18233         (MAXHOSTNAMELEN): Define it to HOST_NAME_MAX.
18234
18235 2015-09-15  Joseph Myers  <joseph@codesourcery.com>
18236
18237         [BZ #18967]
18238         * math/math.h (__MATH_DECLARING_DOUBLE): New macro.  Define and
18239         undefine around includes of <bits/mathcalls.h>.
18240         * math/bits/mathcalls.h [!__USE_MISC && __USE_XOPEN2K] (isnan): Do
18241         not declare function.
18242         [!__USE_MISC && __USE_XOPEN2K] (gamma): Likewise.
18243         [!__USE_MISC && (!__MATH_DECLARING_DOUBLE || __USE_XOPEN2K8)]
18244         (scalb): Likewise.
18245         * math/tgmath.h [!__USE_MISC && __USE_XOPEN_EXTENDED] (scalb): Do
18246         not define macro.
18247         * conform/Makefile (test-xfail-XOPEN2K/math.h/conform): Remove
18248         variable.
18249         (test-xfail-XOPEN2K/tgmath.h/conform): Likewise.
18250         (test-xfail-XOPEN2K8/math.h/conform): Likewise.
18251         (test-xfail-XOPEN2K8/tgmath.h/conform): Likewise.
18252
18253         [BZ #18857]
18254         * sysdeps/ieee754/ldbl-128ibm/s_nearbyintl.c (__nearbyintl): Just
18255         return non-finite argument without doing ordered comparisons on
18256         it.
18257
18258         [BZ #16296]
18259         * math/fenv.h (fegetround): Use __attribute_pure__.
18260         * include/fenv.h (__fegetround): Likewise.
18261
18262         [BZ #18595]
18263         * math/s_ctan.c (__ctan): Force underflow exception for results
18264         whose real or imaginary part has small absolute value.
18265         * math/s_ctanf.c (__ctanf): Likewise.
18266         * math/s_ctanh.c (__ctanh): Likewise.
18267         * math/s_ctanhf.c (__ctanhf): Likewise.
18268         * math/s_ctanhl.c (__ctanhl): Likewise.
18269         * math/s_ctanl.c (__ctanl): Likewise.
18270         * math/auto-libm-test-in: Do not allow missing underflow for ctan
18271         and ctanh.  Add more tests of ctan and ctanh.
18272
18273         [BZ #15918]
18274         * sysdeps/ieee754/flt-32/e_hypotf.c (__ieee754_hypotf): Simplify
18275         handling of cases where one argument is an infinity.
18276
18277         [BZ #18875]
18278         [BZ #18966]
18279         * sysdeps/i386/fpu/e_exp10.S (dbl_min): New object.
18280         (MO): New macro.
18281         (__ieee754_exp10): For small results, force underflow exception
18282         and remove excess range and precision from return value.
18283         * sysdeps/i386/fpu/e_exp10f.S (flt_min): New object.
18284         (MO): New macro.
18285         (__ieee754_exp10f): For small results, force underflow exception
18286         and remove excess range and precision from return value.
18287         * math/auto-libm-test-in: Add more tests of exp10.
18288         * math/auto-libm-test-out: Regenerated.
18289
18290 2015-09-14  Joseph Myers  <joseph@codesourcery.com>
18291
18292         [BZ #18875]
18293         [BZ #18961]
18294         * sysdeps/i386/fpu/e_exp.S (dbl_min): New object.
18295         (MO): New macro.
18296         (__ieee754_exp): For small results, force underflow exception and
18297         remove excess range and precision from return value.
18298         (__exp_finite): Likewise.
18299         * sysdeps/i386/fpu/e_expf.S (flt_min): New object.
18300         (MO): New macro.
18301         (__ieee754_expf): For small results, force underflow exception and
18302         remove excess range and precision from return value.
18303         (__expf_finite): Likewise.
18304         * math/auto-libm-test-in: Add more tests of exp.
18305         * math/auto-libm-test-out: Regenerated.
18306
18307         [BZ #16521]
18308         [BZ #18875]
18309         * math/e_exp2l.c (__ieee754_exp2l): Force underflow exception for
18310         small results.
18311         * sysdeps/i386/fpu/e_exp2.S (dbl_min): New object.
18312         (MO): New macro.
18313         (__ieee754_exp2): For small results, force underflow exception and
18314         remove excess range and precision from return value.
18315         * sysdeps/i386/fpu/e_exp2f.S (flt_min): New object.
18316         (MO): New macro.
18317         (__ieee754_exp2f): For small results, force underflow exception
18318         and remove excess range and precision from return value.
18319         * sysdeps/i386/fpu/e_exp2l.S (ldbl_min): New object.
18320         (MO): New macro.
18321         (__ieee754_exp2l): Force underflow exception for small results.
18322         * sysdeps/ieee754/dbl-64/e_exp2.c (__ieee754_exp2): Likewise.
18323         * sysdeps/ieee754/flt-32/e_exp2f.c (__ieee754_exp2f): Likewise.
18324         * sysdeps/x86_64/fpu/e_exp2l.S (ldbl_min): New object.
18325         (MO): New macro.
18326         (__ieee754_exp2l): Force underflow exception for small results.
18327         * math/auto-libm-test-in: Add more tests or exp2.
18328         * math/auto-libm-test-out: Regenerated.
18329
18330 2015-09-14  Carlos O'Donell  <carlos@redhat.com>
18331
18332         * malloc/malloc.c (systrim): Use ALIGN_DOWN.
18333
18334         * Makefile ($(objpfx)check-local-headers.out): Redirect stdin from
18335         /dev/null.
18336
18337 2015-09-13  Samuel Thibault  <samuel.thibault@ens-lyon.org>
18338
18339         * sysdeps/mach/hurd/Makefile ($(patsubst %,$(hurd-objpfx)hurd/%.%,auth
18340         io fs process)): Drop spurious backslash.
18341
18342 2015-09-12  Rasmus Villemoes  <rv@rasmusvillemoes.dk>
18343
18344         * sysdeps/unix/sysv/linux/getsysstats.c (__get_phys_pages):
18345         Use sysinfo system call instead of parsing /proc/meminfo.
18346         * sysdeps/unix/sysv/linux/getsysstats.c (__get_avphys_pages):
18347         Likewise.
18348
18349 2015-09-11  Mike Frysinger  <vapier@gentoo.org>
18350
18351         [BZ #16985]
18352         * programs/localedef.c (main): Display argv[remaining] when
18353         output_path is NULL.
18354
18355 2015-09-11  Joseph Myers  <joseph@codesourcery.com>
18356
18357         * math/auto-libm-test-in: Add more tests of acos, acosh, asin,
18358         asinh, atan, atan2, atanh, cabs, carg, cos, csqrt, erfc, exp,
18359         exp10, exp2, log, log1p, log2, pow, sin, sincos, sinh, tan and
18360         tanh.
18361         * math/auto-libm-test-out: Regenerated.
18362         * sysdeps/i386/fpu/libm-test-ulps: Update.
18363         * sysdeps/mips/mips32/libm-test-ulps: Likewise.
18364         * sysdeps/mips/mips64/libm-test-ulps: Likewise.
18365         * sysdeps/x86_64/fpu/libm-test-ulps: Likewise.
18366
18367 2015-09-11  Roland McGrath  <roland@hack.frob.com>
18368
18369         * sysdeps/nacl/Makefile [$(subdir) = misc] (sysdep_headers):
18370         Use 'override' keyword to freeze the value here, preventing
18371         the addition of sys/mtio.h by sysdeps/gnu/Makefile.
18372
18373 2015-09-11  Joseph Myers  <joseph@codesourcery.com>
18374
18375         [BZ #14912]
18376         * sysdeps/aarch64/bits/atomic.h: Move to ...
18377         * sysdeps/aarch64/atomic-machine.h: ...here.
18378         (_AARCH64_BITS_ATOMIC_H): Rename macro to
18379         _AARCH64_ATOMIC_MACHINE_H.
18380         * sysdeps/alpha/bits/atomic.h: Move to ...
18381         * sysdeps/alpha/atomic-machine.h: ...here.
18382         * sysdeps/arm/bits/atomic.h: Move to ...
18383         * sysdeps/arm/atomic-machine.h: ...here.  Update comments.
18384         * bits/atomic.h: Move to ...
18385         * sysdeps/generic/atomic-machine.h: ...here.
18386         (_BITS_ATOMIC_H): Rename macro to _ATOMIC_MACHINE_H.
18387         * sysdeps/i386/bits/atomic.h: Move to ...
18388         * sysdeps/i386/atomic-machine.h: ...here.
18389         * sysdeps/ia64/bits/atomic.h: Move to ...
18390         * sysdeps/ia64/atomic-machine.h: ...here.
18391         * sysdeps/m68k/coldfire/bits/atomic.h: Move to ...
18392         * sysdeps/m68k/coldfire/atomic-machine.h: ...here.
18393         (_BITS_ATOMIC_H): Rename macro to _ATOMIC_MACHINE_H.
18394         * sysdeps/m68k/m680x0/m68020/bits/atomic.h: Move to ...
18395         * sysdeps/m68k/m680x0/m68020/atomic-machine.h: ...here.
18396         * sysdeps/microblaze/bits/atomic.h: Move to ...
18397         * sysdeps/microblaze/atomic-machine.h: ...here.
18398         * sysdeps/mips/bits/atomic.h: Move to ...
18399         * sysdeps/mips/atomic-machine.h: ...here.
18400         (_MIPS_BITS_ATOMIC_H): Rename macro to _MIPS_ATOMIC_MACHINE_H.
18401         * sysdeps/powerpc/bits/atomic.h: Move to ...
18402         * sysdeps/powerpc/atomic-machine.h: ...here.  Update comments.
18403         * sysdeps/powerpc/powerpc32/bits/atomic.h: Move to ...
18404         * sysdeps/powerpc/powerpc32/atomic-machine.h: ...here.  Update
18405         comments.  Include <atomic-machine.h> instead of <bits/atomic.h>.
18406         * sysdeps/powerpc/powerpc64/bits/atomic.h: Move to ...
18407         * sysdeps/powerpc/powerpc64/atomic-machine.h: ...here.  Include
18408         <atomic-machine.h> instead of <bits/atomic.h>.
18409         * sysdeps/s390/bits/atomic.h: Move to ...
18410         * sysdeps/s390/atomic-machine.h: ...here.
18411         * sysdeps/sparc/sparc32/bits/atomic.h: Move to ...
18412         * sysdeps/sparc/sparc32/atomic-machine.h: ...here.
18413         (_BITS_ATOMIC_H): Rename macro to _ATOMIC_MACHINE_H.
18414         * sysdeps/sparc/sparc32/sparcv9/bits/atomic.h: Move to ...
18415         * sysdeps/sparc/sparc32/sparcv9/atomic-machine.h: ...here.
18416         * sysdeps/sparc/sparc64/bits/atomic.h: Move to ...
18417         * sysdeps/sparc/sparc64/atomic-machine.h: ...here.
18418         * sysdeps/tile/bits/atomic.h: Move to ...
18419         * sysdeps/tile/atomic-machine.h: ...here.
18420         * sysdeps/tile/tilegx/bits/atomic.h: Move to ...
18421         * sysdeps/tile/tilegx/atomic-machine.h: ...here.  Include
18422         <sysdeps/tile/atomic-machine.h> instead of
18423         <sysdeps/tile/bits/atomic.h>.
18424         (_BITS_ATOMIC_H): Rename macro to _ATOMIC_MACHINE_H.
18425         * sysdeps/tile/tilepro/bits/atomic.h: Move to ...
18426         * sysdeps/tile/tilepro/atomic-machine.h: ...here.  Include
18427         <sysdeps/tile/atomic-machine.h> instead of
18428         <sysdeps/tile/bits/atomic.h>.
18429         (_BITS_ATOMIC_H): Rename macro to _ATOMIC_MACHINE_H.
18430         * sysdeps/unix/sysv/linux/arm/bits/atomic.h: Move to ...
18431         * sysdeps/unix/sysv/linux/arm/atomic-machine.h: ...here.  Include
18432         <sysdeps/arm/atomic-machine.h> instead of
18433         <sysdeps/arm/bits/atomic.h>.
18434         * sysdeps/unix/sysv/linux/hppa/bits/atomic.h: Move to ...
18435         * sysdeps/unix/sysv/linux/hppa/atomic-machine.h: ...here.
18436         (_BITS_ATOMIC_H): Rename macro to _ATOMIC_MACHINE_H.
18437         * sysdeps/unix/sysv/linux/m68k/coldfire/bits/atomic.h: Move to ...
18438         * sysdeps/unix/sysv/linux/m68k/coldfire/atomic-machine.h: ...here.
18439         (_BITS_ATOMIC_H): Rename macro to _ATOMIC_MACHINE_H.
18440         * sysdeps/unix/sysv/linux/nios2/bits/atomic.h: Move to ...
18441         * sysdeps/unix/sysv/linux/nios2/atomic-machine.h: ...here.
18442         (_NIOS2_BITS_ATOMIC_H): Rename macro to _NIOS2_ATOMIC_MACHINE_H.
18443         * sysdeps/unix/sysv/linux/sh/bits/atomic.h: Move to ...
18444         * sysdeps/unix/sysv/linux/sh/atomic-machine.h: ...here.
18445         * sysdeps/x86_64/bits/atomic.h: Move to ...
18446         * sysdeps/x86_64/atomic-machine.h: ...here.
18447         * include/atomic.h: Include <atomic-machine.h> instead of
18448         <bits/atomic.h>.
18449
18450         * sysdeps/mips/mips32/libm-test-ulps: Update.
18451         * sysdeps/mips/mips64/libm-test-ulps: Likewise.
18452
18453         [BZ #18952]
18454         * sysdeps/ieee754/ldbl-128/e_lgammal_r.c (__ieee754_lgammal_r): Do
18455         not convert non-integer negative arguments to int to determine the
18456         value of signgam.
18457         * math/auto-libm-test-in: Add more tests of lgamma.
18458         * math/auto-libm-test-out: Regenerated.
18459
18460         * math/auto-libm-test-in: Add more tests of acosh, atanh, cbrt,
18461         cosh, csqrt, erfc, expm1 and lgamma.
18462         * math/auto-libm-test-out: Regenerated.
18463         * sysdeps/i386/fpu/libm-test-ulps: Update.
18464         * sysdeps/x86_64/fpu/libm-test-ulps: Likewise.
18465
18466 2015-09-10  Joseph Myers  <joseph@codesourcery.com>
18467
18468         [BZ #2542]
18469         [BZ #2543]
18470         [BZ #2558]
18471         * sysdeps/ieee754/dbl-64/e_lgamma_r.c (__ieee754_lgamma_r): Call
18472         __lgamma_neg for arguments from -28.0 to -2.0.
18473         * sysdeps/ieee754/flt-32/e_lgammaf_r.c (__ieee754_lgammaf_r): Call
18474         __lgamma_negf for arguments from -15.0 to -2.0.
18475         * sysdeps/ieee754/ldbl-128/e_lgammal_r.c (__ieee754_lgammal_r):
18476         Call __lgamma_negl for arguments from -48.0 or -50.0 to -2.0.
18477         * sysdeps/ieee754/ldbl-96/e_lgammal_r.c (__ieee754_lgammal_r):
18478         Call __lgamma_negl for arguments from -33.0 to -2.0.
18479         * sysdeps/ieee754/dbl-64/lgamma_neg.c: New file.
18480         * sysdeps/ieee754/dbl-64/lgamma_product.c: Likewise.
18481         * sysdeps/ieee754/flt-32/lgamma_negf.c: Likewise.
18482         * sysdeps/ieee754/flt-32/lgamma_productf.c: Likewise.
18483         * sysdeps/ieee754/ldbl-128/lgamma_negl.c: Likewise.
18484         * sysdeps/ieee754/ldbl-128/lgamma_productl.c: Likewise.
18485         * sysdeps/ieee754/ldbl-128ibm/lgamma_negl.c: Likewise.
18486         * sysdeps/ieee754/ldbl-128ibm/lgamma_productl.c: Likewise.
18487         * sysdeps/ieee754/ldbl-96/lgamma_negl.c: Likewise.
18488         * sysdeps/ieee754/ldbl-96/lgamma_product.c: Likewise.
18489         * sysdeps/ieee754/ldbl-96/lgamma_productl.c: Likewise.
18490         * sysdeps/generic/math_private.h (__lgamma_negf): New prototype.
18491         (__lgamma_neg): Likewise.
18492         (__lgamma_negl): Likewise.
18493         (__lgamma_product): Likewise.
18494         (__lgamma_productl): Likewise.
18495         * math/Makefile (libm-calls): Add lgamma_neg and lgamma_product.
18496         * math/auto-libm-test-in: Add more tests of lgamma.
18497         * math/auto-libm-test-out: Regenerated.
18498         * sysdeps/i386/fpu/libm-test-ulps: Update.
18499         * sysdeps/x86_64/fpu/libm-test-ulps: Likewise.
18500
18501 2015-09-09  Justin Maggard  <jmaggard@netgear.com>
18502
18503         [BZ #18675]
18504         * sysdeps/posix/fpathconf.c (__fpathconf): Use __fstatvfs64.
18505
18506 2015-09-08  Joseph Myers  <joseph@codesourcery.com>
18507
18508         [BZ #14912]
18509         * bits/libc-lock.h: Move to ...
18510         * sysdeps/generic/libc-lock.h: ...here.
18511         (_BITS_LIBC_LOCK_H): Rename macro to _LIBC_LOCK_H.
18512         * sysdeps/mach/hurd/bits/libc-lock.h: Move to ...
18513         * sysdeps/mach/hurd/libc-lock.h: ...here.
18514         (_BITS_LIBC_LOCK_H): Rename macro to _LIBC_LOCK_H.
18515         [_LIBC]: Include <libc-lockP.h> instead of <bits/libc-lockP.h>.
18516         * sysdeps/mach/bits/libc-lock.h: Move to ...
18517         * sysdeps/mach/libc-lock.h: ...here.
18518         (_BITS_LIBC_LOCK_H): Rename macro to _LIBC_LOCK_H.
18519         * sysdeps/nptl/bits/libc-lock.h: Move to ...
18520         * sysdeps/nptl/libc-lock.h: ...here.
18521         (_BITS_LIBC_LOCK_H): Rename macro to _LIBC_LOCK_H.
18522         * sysdeps/nptl/bits/libc-lockP.h: Move to ...
18523         * sysdeps/nptl/libc-lockP.h: ...here.
18524         (_BITS_LIBC_LOCKP_H): Rename macro to _LIBC_LOCKP_H.
18525         * crypt/crypt_util.c: Include <libc-lock.h> instead of
18526         <bits/libc-lock.h>.
18527         * dirent/scandir-tail.c: Likewise.
18528         * dlfcn/dlerror.c: Likewise.
18529         * elf/dl-close.c: Likewise.
18530         * elf/dl-iteratephdr.c: Likewise.
18531         * elf/dl-lookup.c: Likewise.
18532         * elf/dl-open.c: Likewise.
18533         * elf/dl-support.c: Likewise.
18534         * elf/dl-writev.h: Likewise.
18535         * elf/rtld.c: Likewise.
18536         * grp/fgetgrent.c: Likewise.
18537         * gshadow/fgetsgent.c: Likewise.
18538         * gshadow/sgetsgent.c: Likewise.
18539         * iconv/gconv_conf.c: Likewise.
18540         * iconv/gconv_db.c: Likewise.
18541         * iconv/gconv_dl.c: Likewise.
18542         * iconv/gconv_int.h: Likewise.
18543         * iconv/gconv_trans.c: Likewise.
18544         * include/link.h: Likewise.
18545         * inet/getnameinfo.c: Likewise.
18546         * inet/getnetgrent.c: Likewise.
18547         * inet/getnetgrent_r.c: Likewise.
18548         * intl/bindtextdom.c: Likewise.
18549         * intl/dcigettext.c: Likewise.
18550         * intl/finddomain.c: Likewise.
18551         * intl/gettextP.h: Likewise.
18552         * intl/loadmsgcat.c: Likewise.
18553         * intl/localealias.c: Likewise.
18554         * intl/textdomain.c: Likewise.
18555         * libidn/idn-stub.c: Likewise.
18556         * libio/libioP.h: Likewise.
18557         * locale/duplocale.c: Likewise.
18558         * locale/freelocale.c: Likewise.
18559         * locale/newlocale.c: Likewise.
18560         * locale/setlocale.c: Likewise.
18561         * login/getutent_r.c: Likewise.
18562         * login/getutid_r.c: Likewise.
18563         * login/getutline_r.c: Likewise.
18564         * login/utmp-private.h: Likewise.
18565         * login/utmpname.c: Likewise.
18566         * malloc/mtrace.c: Likewise.
18567         * misc/efgcvt.c: Likewise.
18568         * misc/error.c: Likewise.
18569         * misc/fstab.c: Likewise.
18570         * misc/getpass.c: Likewise.
18571         * misc/mntent.c: Likewise.
18572         * misc/syslog.c: Likewise.
18573         * nis/nis_call.c: Likewise.
18574         * nis/nis_callback.c: Likewise.
18575         * nis/nss-default.c: Likewise.
18576         * nis/nss_compat/compat-grp.c: Likewise.
18577         * nis/nss_compat/compat-initgroups.c: Likewise.
18578         * nis/nss_compat/compat-pwd.c: Likewise.
18579         * nis/nss_compat/compat-spwd.c: Likewise.
18580         * nis/nss_nis/nis-alias.c: Likewise.
18581         * nis/nss_nis/nis-ethers.c: Likewise.
18582         * nis/nss_nis/nis-grp.c: Likewise.
18583         * nis/nss_nis/nis-hosts.c: Likewise.
18584         * nis/nss_nis/nis-network.c: Likewise.
18585         * nis/nss_nis/nis-proto.c: Likewise.
18586         * nis/nss_nis/nis-pwd.c: Likewise.
18587         * nis/nss_nis/nis-rpc.c: Likewise.
18588         * nis/nss_nis/nis-service.c: Likewise.
18589         * nis/nss_nis/nis-spwd.c: Likewise.
18590         * nis/nss_nisplus/nisplus-alias.c: Likewise.
18591         * nis/nss_nisplus/nisplus-ethers.c: Likewise.
18592         * nis/nss_nisplus/nisplus-grp.c: Likewise.
18593         * nis/nss_nisplus/nisplus-hosts.c: Likewise.
18594         * nis/nss_nisplus/nisplus-initgroups.c: Likewise.
18595         * nis/nss_nisplus/nisplus-network.c: Likewise.
18596         * nis/nss_nisplus/nisplus-proto.c: Likewise.
18597         * nis/nss_nisplus/nisplus-pwd.c: Likewise.
18598         * nis/nss_nisplus/nisplus-rpc.c: Likewise.
18599         * nis/nss_nisplus/nisplus-service.c: Likewise.
18600         * nis/nss_nisplus/nisplus-spwd.c: Likewise.
18601         * nis/ypclnt.c: Likewise.
18602         * nptl/libc_pthread_init.c: Likewise.
18603         * nss/getXXbyYY.c: Likewise.
18604         * nss/getXXent.c: Likewise.
18605         * nss/getXXent_r.c: Likewise.
18606         * nss/nss_db/db-XXX.c: Likewise.
18607         * nss/nss_db/db-netgrp.c: Likewise.
18608         * nss/nss_db/nss_db.h: Likewise.
18609         * nss/nss_files/files-XXX.c: Likewise.
18610         * nss/nss_files/files-alias.c: Likewise.
18611         * nss/nsswitch.c: Likewise.
18612         * posix/regex_internal.h: Likewise.
18613         * posix/wordexp.c: Likewise.
18614         * pwd/fgetpwent.c: Likewise.
18615         * resolv/res_hconf.c: Likewise.
18616         * resolv/res_libc.c: Likewise.
18617         * shadow/fgetspent.c: Likewise.
18618         * shadow/lckpwdf.c: Likewise.
18619         * shadow/sgetspent.c: Likewise.
18620         * socket/opensock.c: Likewise.
18621         * stdio-common/reg-modifier.c: Likewise.
18622         * stdio-common/reg-printf.c: Likewise.
18623         * stdio-common/reg-type.c: Likewise.
18624         * stdio-common/vfprintf.c: Likewise.
18625         * stdio-common/vfscanf.c: Likewise.
18626         * stdlib/abort.c: Likewise.
18627         * stdlib/cxa_atexit.c: Likewise.
18628         * stdlib/fmtmsg.c: Likewise.
18629         * stdlib/random.c: Likewise.
18630         * stdlib/setenv.c: Likewise.
18631         * string/strsignal.c: Likewise.
18632         * sunrpc/auth_none.c: Likewise.
18633         * sunrpc/bindrsvprt.c: Likewise.
18634         * sunrpc/create_xid.c: Likewise.
18635         * sunrpc/key_call.c: Likewise.
18636         * sunrpc/rpc_thread.c: Likewise.
18637         * sysdeps/arm/backtrace.c: Likewise.
18638         * sysdeps/generic/ldsodefs.h: Likewise.
18639         * sysdeps/generic/stdio-lock.h: Likewise.
18640         * sysdeps/generic/unwind-dw2-fde.c: Likewise.
18641         * sysdeps/i386/backtrace.c: Likewise.
18642         * sysdeps/ieee754/ldbl-opt/nldbl-compat.c: Likewise.
18643         * sysdeps/m68k/backtrace.c: Likewise.
18644         * sysdeps/mach/hurd/cthreads.c: Likewise.
18645         * sysdeps/mach/hurd/dirstream.h: Likewise.
18646         * sysdeps/mach/hurd/malloc-machine.h: Likewise.
18647         * sysdeps/nptl/malloc-machine.h: Likewise.
18648         * sysdeps/nptl/stdio-lock.h: Likewise.
18649         * sysdeps/posix/dirstream.h: Likewise.
18650         * sysdeps/posix/getaddrinfo.c: Likewise.
18651         * sysdeps/posix/system.c: Likewise.
18652         * sysdeps/pthread/aio_suspend.c: Likewise.
18653         * sysdeps/s390/s390-32/backtrace.c: Likewise.
18654         * sysdeps/s390/s390-64/backtrace.c: Likewise.
18655         * sysdeps/unix/sysv/linux/check_pf.c: Likewise.
18656         * sysdeps/unix/sysv/linux/if_index.c: Likewise.
18657         * sysdeps/unix/sysv/linux/s390/s390-32/getutent_r.c: Likewise.
18658         * sysdeps/unix/sysv/linux/s390/s390-32/getutid_r.c: Likewise.
18659         * sysdeps/unix/sysv/linux/s390/s390-32/getutline_r.c: Likewise.
18660         * sysdeps/unix/sysv/linux/shm-directory.c: Likewise.
18661         * sysdeps/unix/sysv/linux/system.c: Likewise.
18662         * sysdeps/x86_64/backtrace.c: Likewise.
18663         * time/alt_digit.c: Likewise.
18664         * time/era.c: Likewise.
18665         * time/tzset.c: Likewise.
18666         * wcsmbs/wcsmbsload.c: Likewise.
18667         * nptl/tst-initializers1.c (do_test): Refer to <libc-lock.h>
18668         instead of <bits/libc-lock.h> in comment.
18669
18670 2015-09-08  Andrew Bennett  <andrew.bennett@imgtec.com>
18671
18672         * sysdeps/mips/bits/atomic.h [_MIPS_SIM == _ABIO32] (MIPS_PUSH_MIPS2):
18673         Only use .set mips2 if the current ISA is below mips2.
18674         * sysdeps/mips/sys/tas.h [_MIPS_SIM == _ABIO32] (_test_and_set):
18675         Likewise.
18676         * sysdeps/mips/nptl/tls.h (READ_THREAD_POINTER): Only use .set
18677         mips32r2 if the current ISA is below mips32r2.
18678         * sysdeps/mips/tls-macros.h (TLS_RDHWR): New define.
18679         (TLS_IE): Updated to use the TLD_RDHWR macro.
18680         (TLS_LE): Likewise.
18681         * sysdeps/unix/mips/sysdep.h (__mips_isa_rev): Moved out of #ifdef
18682         __ASSEMBLER__ condition.
18683
18684 2015-09-08  Samuel Thibault  <samuel.thibault@ens-lyon.org>
18685
18686         Fix parallel build of before-compile targets.
18687
18688         * sysdeps/mach/Makefile ($(patsubst
18689         mach%,m\%h%,$(mach-before-compile))): Move rule to dedicated
18690         mach-before-compile target.
18691         * sysdeps/mach/hurd/Makefile ($(patsubst %,$(hurd-objpfx)hurd/%.%,auth
18692         io fs process)): Move rule to dedicated hurd-before-compile target.
18693
18694 2015-09-06  Samuel Thibault  <samuel.thibault@ens-lyon.org>
18695
18696         Fix rules generating headers in hurd/ and mach/ when initial make call
18697         has subdir= explicitly set.
18698
18699         * sysdeps/mach/Makefile ($(patsubst
18700         mach%,m\%h%,$(mach-before-compile))): Force subdir to mach when
18701         calling $(MAKE).
18702         * sysdeps/mach/hurd/Makefile ($(patsubst %,$(hurd-objpfx)hurd/%.%,auth
18703         io fs process)): Force subdir to hurd when calling $(MAKE).
18704         ($(common-objpfx)hurd/../mach/RPC_task_get_sampled_pcs.c): Force
18705         subdir to mach when calling $(MAKE).
18706
18707 2015-09-06  Manolis Ragkousis  <manolis837@gmail.com>
18708
18709         Check sysheaders when looking for Mach and Hurd headers
18710
18711         * sysdeps/mach/configure.ac: Add sysheaders check.
18712         * sysdeps/mach/configure: Regenerate.
18713         * sysdeps/mach/hurd/configure.ac: Add sysheaders check.
18714         * sysdeps/mach/hurd/configure: Regenerate.
18715
18716 2015-09-04  Roland McGrath  <roland@hack.frob.com>
18717
18718         [BZ #18921]
18719         * sysdeps/posix/opendir.c (need_isdir_precheck) [O_DIRECTORY]:
18720         Fix inverted sense of test of 'o_directory_works' value.
18721         Reported by Pádraig Brady <P@draigBrady.com>, diagnosed by
18722         Bernhard Voelker <mail@bernhard-voelker.de>.
18723
18724 2015-09-04  Joseph Myers  <joseph@codesourcery.com>
18725
18726         [BZ #14912]
18727         * bits/linkmap.h: Move to ...
18728         * sysdeps/generic/linkmap.h: ...here.
18729         * sysdeps/aarch64/bits/linkmap.h: Move to ...
18730         * sysdeps/aarch64/linkmap.h: ...here.
18731         * sysdeps/arm/bits/linkmap.h: Move to ...
18732         * sysdeps/arm/linkmap.h: ...here.
18733         * sysdeps/hppa/bits/linkmap.h: Move to ...
18734         * sysdeps/hppa/linkmap.h: ...here.
18735         * sysdeps/ia64/bits/linkmap.h: Move to ...
18736         * sysdeps/ia64/linkmap.h: ...here.
18737         * sysdeps/mips/bits/linkmap.h: Move to ...
18738         * sysdeps/mips/linkmap.h: ...here.
18739         * sysdeps/s390/bits/linkmap.h: Move to ...
18740         * sysdeps/s390/linkmap.h: ...here.
18741         * sysdeps/sh/bits/linkmap.h: Move to ...
18742         * sysdeps/sh/linkmap.h: ...here.
18743         * sysdeps/x86/bits/linkmap.h: Move to ...
18744         * sysdeps/x86/linkmap.h: ...here.
18745         * include/link.h: Include <linkmap.h> instead of <bits/linkmap.h>.
18746
18747 2015-09-04  Andreas Schwab  <schwab@suse.de>
18748
18749         [BZ #18635]
18750         * sysdeps/unix/sysv/linux/powerpc/powerpc32/makecontext.S
18751         (__makecontext): Terminate FDE before return label.
18752         (__novec_makecontext): Likewise.
18753
18754 2015-09-04  Carlos Eduardo Seo  <cseo@linux.vnet.ibm.com>
18755
18756         * sysdeps/unix/sysv/linux/socketpair.c: Use the address of the
18757         first member of struct sv in syscall macro.
18758
18759 2015-09-04  Joseph Myers  <joseph@codesourcery.com>
18760
18761         [BZ #14912]
18762         * bits/stdio-lock.h: Move to ...
18763         * sysdeps/generic/stdio-lock.h: ...here.
18764         (_BITS_STDIO_LOCK_H): Rename macro to _STDIO_LOCK_H.
18765         * sysdeps/nptl/bits/stdio-lock.h: Move to ...
18766         * sysdeps/nptl/stdio-lock.h: ...here.
18767         (_BITS_STDIO_LOCK_H): Rename macro to _STDIO_LOCK_H.
18768         * include/libio.h: Include <stdio-lock.h> instead of
18769         <bits/stdio-lock.h>.
18770         * sysdeps/nptl/fork.c: Likewise.
18771         * sysdeps/pthread/flockfile.c: Likewise.
18772         * sysdeps/pthread/ftrylockfile.c: Likewise.
18773         * sysdeps/pthread/funlockfile.c: Likewise.
18774
18775         [BZ #14912]
18776         * sysdeps/unix/sysv/linux/m68k/bits/m68k-vdso.h: Move to ...
18777         * sysdeps/unix/sysv/linux/m68k/m68k-vdso.h: ...here.
18778         * sysdeps/unix/sysv/linux/m68k/coldfire/bits/atomic.h: Include
18779         <m68k-vdso.h> instead of <bits/m68k-vdso.h>.
18780         * sysdeps/unix/sysv/linux/m68k/init-first.c: Likewise.
18781         * sysdeps/unix/sysv/linux/m68k/m68k-helpers.S: Likewise.
18782         * sysdeps/unix/sysv/linux/m68k/m68k-vdso.c: Likewise.
18783
18784 2015-09-03  Roland McGrath  <roland@hack.frob.com>
18785
18786         * elf/Makefile (test-xfail-tst-protected1a): New variable.
18787         (test-xfail-tst-protected1b): New variable.
18788
18789 2015-09-03  Joseph Myers  <joseph@codesourcery.com>
18790
18791         [BZ #14912]
18792         * bits/libc-tsd.h: Move to ...
18793         * sysdeps/generic/libc-tsd.h: ...here.
18794         (_GENERIC_BITS_LIBC_TSD_H): Rename macro to _GENERIC_LIBC_TSD_H.
18795         * sysdeps/mach/hurd/bits/libc-tsd.h: Move to ...
18796         * sysdeps/mach/hurd/libc-tsd.h: ...here.
18797         (_BITS_LIBC_TSD_H): Rename macro to _LIBC_TSD_H.
18798         * include/ctype.h: Include <libc-tsd.h> instead of
18799         <bits/libc-tsd.h>.
18800         * include/rpc/rpc.h: Likewise.
18801         * locale/localeinfo.h: Likewise.
18802         * sunrpc/rpc_thread.c: Likewise.
18803         * sysdeps/mach/hurd/malloc-machine.h: Likewise.
18804         * sysdeps/nptl/malloc-machine.h: Likewise.
18805
18806         * Makefile (headers): Remove bits/libc-lock.h.
18807         * libio/Makefile (headers): Remove bits/stdio-lock.h.
18808
18809         * libio/libio.h [_IO_MTSAFE_IO]: Remove include of
18810         <bits/stdio-lock.h> and commented-out include of <comthread.h>.
18811         * include/libio.h [!_ISOMAC && _IO_MTSAFE_IO]: Include
18812         <bits/stdio-lock.h>.
18813         * stdio-common/scanf15.c (_IO_MTSAFE_IO): Undefine.
18814         * stdio-common/scanf17.c (_IO_MTSAFE_IO): Likewise.
18815
18816 2015-09-01  Paul Pluzhnikov  <ppluzhnikov@google.com>
18817
18818         [BZ #18757]
18819         * libio/iofopncook.c (_IO_fopencookie): Set errno on failure.
18820         * libio/test-fmemopen.c (do_bz18820): Extend the test to cover
18821         BZ #18757.
18822
18823 2015-09-01  Paul Pluzhnikov  <ppluzhnikov@google.com>
18824
18825         * malloc/mtrace.pl: Filter out NULL entries.
18826
18827 2015-09-01  Joseph Myers  <joseph@codesourcery.com>
18828
18829         * inet/netinet/in.h (IPPROTO_MPLS): New enum value and macro.
18830         * sysdeps/unix/sysv/linux/bits/in.h (IP_BIND_ADDRESS_NO_PORT): New
18831         macro.
18832
18833         * sysdeps/gnu/netinet/tcp.h (TCP_NOTSENT_LOWAT): New macro.
18834         (TCP_CC_INFO): Likewise.
18835         (TCP_SAVE_SYN): Likewise.
18836         (TCP_SAVED_SYN): Likewise.
18837
18838 2015-08-31  Brett Neumeier <brett@neumeier.us>
18839
18840         [BZ #18870]
18841         * sysdeps/sparc/sparc32/sem_open.c: Add missing #include
18842
18843 2015-08-31  Paul Eggert  <eggert@cs.ucla.edu>
18844
18845         [BZ #18873]
18846         Fix broken overflow check in posix_fallocate
18847         * sysdeps/posix/posix_fallocate.c (posix_fallocate):
18848         * sysdeps/posix/posix_fallocate64.c (__posix_fallocate64_l64):
18849         Fix parenthesization typo.
18850
18851 2015-08-28  Mike Frysinger  <vapier@gentoo.org>
18852
18853         [BZ #18887]
18854         * misc/Makefile (tests): Add tst-mntent-blank-corrupt and
18855         tst-mntent-blank-passno.
18856         * misc/mntent_r.c (__getmntent_r): Do not read past buffer[0].
18857         * misc/tst-mntent-blank-corrupt.c: New test.
18858         * misc/tst-mntent-blank-passno.c: New test ripped from ...
18859         * misc/tst-mntent.c (do_test): ... here.
18860
18861 2015-08-29  Mike Frysinger  <vapier@gentoo.org>
18862
18863         [BZ #4404]
18864         * po/de.po: Fix SIGALRM typo.
18865
18866 2015-08-28  James Perkins  <james@loowit.net>
18867
18868         * time/tst-strptime2.c (tests): Replace short list of test
18869         strings for strptime %z specifier with code which exhaustively
18870         tests every combination of sign and 0 to 5 digits. Tests for
18871         rejection of invalid strings.
18872
18873 2015-08-28  James Perkins  <james@loowit.net>
18874
18875         [BZ #16141]
18876         * time/strptime_l.c (__strptime_internal): Fix %z minutes
18877         calculation, removing incorrect decimal time rounding, so that
18878         all minute values result in a valid seconds value.
18879         * time/strptime_l.c (__strptime_internal): Extend %z time zone
18880         offset range limits to UTC-99:59 through UTC+99:59 to parse
18881         current and historical use cases.
18882         * time/tst-strptime2.c (tests): Modify and add tests for the
18883         strptime %z input field descriptor, specifically conversion of
18884         minutes to seconds and validating an offset range of -9959 to
18885         +9959.
18886
18887 2015-08-27  Adhemerval Zanella  <adhemerval.zanella@linaro.org>
18888             Dmitry V. Levin  <ldv@altlinux.org>
18889
18890         [BZ #18877]
18891         * posix/Makefile (tests): Add tst-mmap-offset.
18892         * posix/tst-mmap.c: New file.
18893         * sysdeps/unix/sysv/linux/generic/wordsize-32/mmap.c (__mmap): Fix
18894         offset calculation for negative values.
18895
18896 2015-08-27  H.J. Lu  <hongjiu.lu@intel.com>
18897
18898         * sysdeps/i386/init-arch.h: New file.
18899         * sysdeps/i386/i586/init-arch.h: Likewise.
18900         * sysdeps/i386/i686/init-arch.h: Likewise.
18901         * sysdeps/x86/cpu-features.c (init_cpu_features): Set bit_I586
18902         bit if CX8 is available.  Set bit_I686 bit if CMOV is available.
18903         * sysdeps/x86/cpu-features.h (bit_I586): New.
18904         (bit_I686): Likewise.
18905         (bit_CX8): Likewise.
18906         (bit_CMOV): Likewise.
18907         (index_CX8): Likewise.
18908         (index_CMOV): Likewise.
18909         (index_I586): Likewise.
18910         (index_I686): Likewise.
18911         (reg_CX8): Likewise.
18912         (reg_CMOV): Likewise.
18913         (HAS_I586): Defined as HAS_ARCH_FEATURE (I586) if i586 isn't
18914         available at compile-time.
18915         (HAS_I686): Defined as HAS_ARCH_FEATURE (I686) if i686 isn't
18916         available at compile-time.
18917         * sysdeps/x86/init-arch.h (USE_I586): New macro.
18918         (USE_I686): Likewise.
18919
18920 2015-08-27  H.J. Lu  <hongjiu.lu@intel.com>
18921
18922         * sysdeps/i386/bcopy.S: New file.
18923         * sysdeps/i386/bzero.S: Likewise.
18924         * sysdeps/i386/memcpy.S: Likewise.
18925         * sysdeps/i386/memmove.S: Likewise.
18926         * sysdeps/i386/mempcpy.S: Likewise.
18927         * sysdeps/i386/memset.S: Likewise.
18928         * sysdeps/i386/bzero.c: Removed.
18929         * sysdeps/i386/memset.c: Likewise.
18930         * sysdeps/i386/i586/memcpy_chk.S: Likewise.
18931         * sysdeps/i386/i586/mempcpy_chk.S: Likewise.
18932         * sysdeps/i386/i586/memset_chk.S: Likewise.
18933         * sysdeps/i386/i686/memcpy_chk.S: Moved to ...
18934         * sysdeps/i386/memcpy_chk.S: Here.
18935         * sysdeps/i386/i686/memmove_chk.S: Moved to ...
18936         * sysdeps/i386/memmove_chk.S: Here.
18937         * sysdeps/i386/i686/mempcpy_chk.S: Moved to ...
18938         * sysdeps/i386/mempcpy_chk.S: Likewise.
18939         * sysdeps/i386/i686/memset_chk.S: Moved to ...
18940         * sysdeps/i386/memset_chk.S: Likewise.
18941
18942 2015-08-27  Steve Ellcey  <sellcey@imgtec.com>
18943
18944         * soft-fp/fmasf4.c: Add include of sys/cdefs.h.
18945         Move DIAG_PUSH_NEEDS_COMMENT, DIAG_IGNORE_NEEDS_COMMENT to front of
18946         file, move DIAG_POP_NEEDS_COMMENT to end of file.
18947         * soft-fp/fmadf4.c: Ditto.
18948         * soft-fp/fmatf4.c: Ditto.
18949
18950 2015-08-27  H.J. Lu  <hongjiu.lu@intel.com>
18951
18952         * sysdeps/i386/i586/Implies: Removed.
18953         * sysdeps/i386/i686/Implies: Likewise.
18954
18955 2015-08-27  H.J. Lu  <hongjiu.lu@intel.com>
18956
18957         * sysdeps/i386/i486/strlen.S: Moved to ...
18958         * sysdeps/i386/strlen.S: Here.
18959
18960 2015-08-27  H.J. Lu  <hongjiu.lu@intel.com>
18961
18962         * sysdeps/i386/i486/strcat.S: Moved to ...
18963         * sysdeps/i386/strcat.S: Here.
18964
18965 2015-08-27  H.J. Lu  <hongjiu.lu@intel.com>
18966
18967         * sysdeps/i386/i486/pthread_spin_trylock.S: Moved to ...
18968         * sysdeps/i386/pthread_spin_trylock.S: Here.
18969         * sysdeps/i386/i586/pthread_spin_trylock.S: Removed.
18970         * sysdeps/i386/i686/pthread_spin_trylock.S: Updated.
18971
18972 2015-08-27  H.J. Lu  <hongjiu.lu@intel.com>
18973
18974         * sysdeps/i386/i486/string-inlines.c: Moved to ...
18975         * sysdeps/i386/string-inlines.c: Here.
18976
18977 2015-08-27  H.J. Lu  <hongjiu.lu@intel.com>
18978
18979         * sysdeps/i386/i486/htonl.S: Moved ...
18980         * sysdeps/i386/htonl.S: here.
18981
18982 2015-08-27  H.J. Lu  <hongjiu.lu@intel.com>
18983
18984         * sysdeps/i386/i486/bits/atomic.h: Moved to ...
18985         * sysdeps/i386/bits/atomic.h: Here.
18986
18987 2015-08-27  H.J. Lu  <hongjiu.lu@intel.com>
18988
18989         * sysdeps/i386/i486/Versions: Removed.
18990
18991 2015-08-27  Gleb Fotengauer-Malinovskiy  <glebfm@altlinux.org>
18992
18993         [BZ #2898]
18994         * misc/mktemp.c: Add mkdtemp to the link_warning message.
18995         Based on patch by Aurelien Jarno.
18996
18997 2015-08-26  Stan Shebs  <stanshebs@google.com>
18998
18999         * sysdeps/ieee754/ldbl-96/k_tanl.c: Include <libc-internal.h>.
19000         (__kernel_tanl): Ignore uninitialized warnings around use of SIGN.
19001
19002 2015-08-26  Carlos Eduardo Seo  <cseo@linux.vnet.ibm.com>
19003
19004         * sysdeps/powerpc/bits/hwcap.h: Add PPC_FEATURE2_HTM_NOSC.
19005         * sysdeps/powerpc/dl-procinfo.c:
19006         (_dl_powerpc_cap_flags): Added descriptor for this hwcap
19007         feature so it shows when LD_SHOW_AUXV=1.
19008
19009 2015-08-26  Paul E. Murphy  <murphyp@linux.vnet.ibm.com>
19010
19011         * sysdeps/unix/sysv/linux/powerpc/elision-lock.c
19012         (__arch_compare_and_exchange_val_32_acq): Remove and use common
19013         definition.  ISA 2.07B no longer requires full sync.
19014
19015 2015-08-26  Mike Frysinger  <vapier@gentoo.org>
19016
19017         [BZ #18863]
19018         * sysdeps/unix/sysv/linux/mips/bits/siginfo.h (siginfo_t): Add _sigsys.
19019         (si_call_addr): Define.
19020         (si_syscall): Define.
19021         (si_arch): Define.
19022
19023 2015-08-26  H.J. Lu  <hongjiu.lu@intel.com>
19024
19025         * sysdeps/i386/i586/bzero.S (USE_AS_BZERO): New.
19026         * sysdeps/i386/i686/bzero.S (USE_AS_BZERO): Likewise.
19027         * sysdeps/i386/i586/memset.S (BZERO_P): Removed.
19028         Check USE_AS_BZERO/SHARED instead of BZERO_P/PIC.
19029         (__memset_zero_constant_len_parameter): New.
19030         * sysdeps/i386/i686/memset.S (BZERO_P): Removed.
19031         Check USE_AS_BZERO/SHARED instead of BZERO_P/PIC.
19032         (__memset_zero_constant_len_parameter): Don't define if
19033         __memset_chk or USE_AS_BZERO are defined.
19034
19035         * sysdeps/i386/i586/memcpy.S (MEMPCPY_P): Removed.
19036         Check USE_AS_MEMPCPY/SHARED instead of MEMPCPY_P/PIC.
19037         * sysdeps/i386/i586/mempcpy.S (USE_AS_MEMPCPY): New.
19038
19039         * sysdeps/x86/Makefile [$(subdir) == elf] (CFLAGS-.os,
19040         tests-special, $(objpfx)tst-ld-sse-use.out): Moved to ...
19041         * sysdeps/i386/Makefile [$(subdir) == elf] (CFLAGS-.os,
19042         tests-special, $(objpfx)tst-ld-sse-use.out): Here.  Update
19043         comments.
19044         * sysdeps/x86_64/Makefile [$(subdir) == elf] (CFLAGS-.os): Add
19045         -mno-mmx for $(all-rtld-routines).
19046         * sysdeps/x86/tst-ld-sse-use.sh: Moved to ...
19047         * sysdeps/i386/tst-ld-sse-use.sh: Here.  Replace x86-64 with
19048         i386.
19049
19050 2015-08-26  Stefan Liebler  <stli@linux.vnet.ibm.com>
19051
19052         * sysdeps/generic/unwind.h
19053         (_Unwind_Word): Use __mode__(__unwind_word__)
19054         instead of __mode__(__word__).
19055         (_Unwind_Sword): Likewise.
19056
19057         * sysdeps/s390/s390-64/utf8-utf16-z9.c
19058         (MAX_NEEDED_INPUT): New define.
19059         (MAX_NEEDED_OUTPUT): New define.
19060
19061         * NEWS: New item for IBM z13 string optimizations.
19062
19063         * sysdeps/s390/multiarch/memrchr-c.c: New File.
19064         * sysdeps/s390/multiarch/memrchr-vx.S: Likewise.
19065         * sysdeps/s390/multiarch/memrchr.c: Likewise.
19066         * sysdeps/s390/multiarch/Makefile
19067         (sysdep_routines): Add memrchr functions.
19068         * sysdeps/s390/multiarch/ifunc-impl-list-common.c
19069         (__libc_ifunc_impl_list_common): Add ifunc test for memrchr.
19070
19071         * sysdeps/s390/multiarch/wmemcmp-c.c: New File.
19072         * sysdeps/s390/multiarch/wmemcmp-vx.S: Likewise.
19073         * sysdeps/s390/multiarch/wmemcmp.c: Likewise.
19074         * sysdeps/s390/multiarch/Makefile
19075         (sysdep_routines): Add wmemcmp functions.
19076         * sysdeps/s390/multiarch/ifunc-impl-list-common.c
19077         (__libc_ifunc_impl_list_common): Add ifunc test for wmemcmp.
19078         * benchtests/bench-wmemcmp.c: New File.
19079         * benchtests/Makefile (wcsmbs-bench): Add wmemcmp.
19080
19081         * sysdeps/s390/multiarch/wmemset-c.c: New File.
19082         * sysdeps/s390/multiarch/wmemset-vx.S: Likewise.
19083         * sysdeps/s390/multiarch/wmemset.c: Likewise.
19084         * sysdeps/s390/multiarch/Makefile
19085         (sysdep_routines): Add wmemset functions.
19086         * sysdeps/s390/multiarch/ifunc-impl-list-common.c
19087         (__libc_ifunc_impl_list_common): Add ifunc test for wmemset.
19088         * wcsmbs/wmemset.c: Use WMEMSET if defined.
19089         * string/test-memset.c: Add wmemset support.
19090         * wcsmbs/test-wmemset.c: New File.
19091         * wcsmbs/Makefile (strop-tests): Add wmemset.
19092         * benchtests/bench-memset.c: Add wmemset support.
19093         * benchtests/bench-wmemset.c: New File.
19094         * benchtests/Makefile (wcsmbs-bench): Add wmemset.
19095
19096         * sysdeps/s390/multiarch/memccpy-c.c: New File.
19097         * sysdeps/s390/multiarch/memccpy-vx.S: Likewise.
19098         * sysdeps/s390/multiarch/memccpy.c: Likewise.
19099         * sysdeps/s390/multiarch/Makefile
19100         (sysdep_routines): Add memccpy functions.
19101         * sysdeps/s390/multiarch/ifunc-impl-list-common.c
19102         (__libc_ifunc_impl_list_common): Add ifunc test for memccpy.
19103         * string/memccpy.c: Use MEMCCPY if defined.
19104
19105         * sysdeps/s390/multiarch/memchr-vx.S: New File.
19106         * sysdeps/s390/multiarch/memchr.c: Likewise.
19107         * sysdeps/s390/multiarch/rawmemchr-c.c: Likewise.
19108         * sysdeps/s390/multiarch/rawmemchr-vx.S: Likewise.
19109         * sysdeps/s390/multiarch/rawmemchr.c: Likewise.
19110         * sysdeps/s390/multiarch/wmemchr-c.c: Likewise.
19111         * sysdeps/s390/multiarch/wmemchr-vx.S: Likewise.
19112         * sysdeps/s390/multiarch/wmemchr.c: Likewise.
19113         * sysdeps/s390/s390-32/multiarch/memchr.c: Likewise.
19114         * sysdeps/s390/s390-64/multiarch/memchr.c: Likewise.
19115         * sysdeps/s390/multiarch/Makefile (sysdep_routines): Add memchr, wmemchr
19116         and rawmemchr functions.
19117         * sysdeps/s390/multiarch/ifunc-impl-list-common.c
19118         (__libc_ifunc_impl_list_common): Add ifunc test for memchr, rawmemchr
19119         and wmemchr.
19120         * wcsmbs/wmemchr.c: Use WMEMCHR if defined.
19121         * string/test-memchr.c: Add wmemchr support.
19122         * wcsmbs/test-wmemchr.c: New File.
19123         * wcsmbs/Makefile (strop-tests): Add wmemchr.
19124         * benchtests/bench-memchr.c: Add wmemchr support.
19125         * benchtests/bench-wmemchr.c: New File.
19126         * benchtests/Makefile (wcsmbs-bench): wmemchr.
19127
19128         * sysdeps/s390/multiarch/strcspn-c.c: New File.
19129         * sysdeps/s390/multiarch/strcspn-vx.S: Likewise.
19130         * sysdeps/s390/multiarch/strcspn.c: Likewise.
19131         * sysdeps/s390/multiarch/wcscspn-c.c: Likewise.
19132         * sysdeps/s390/multiarch/wcscspn-vx.S: Likewise.
19133         * sysdeps/s390/multiarch/wcscspn.c: Likewise.
19134         * sysdeps/s390/multiarch/Makefile (sysdep_routines): Add strcspn and
19135         wcscspn functions.
19136         * sysdeps/s390/multiarch/ifunc-impl-list.c
19137         (__libc_ifunc_impl_list): Add ifunc test for strcspn, wcscspn.
19138         * wcsmbs/wcscspn.c: Use WCSCSPN if defined.
19139         * string/test-strcspn.c: Add wcscspn support.
19140         * wcsmbs/test-wcscspn.c: New File.
19141         * wcsmbs/Makefile (strop-tests): Add wcscspn.
19142         * benchtests/bench-strcspn.c: Add wcscspn support.
19143         * benchtests/bench-wcscspn.c: New File.
19144         * benchtests/Makefile (wcsmbs-bench): Add wcscspn.
19145
19146         * sysdeps/s390/multiarch/strpbrk-c.c: New File.
19147         * sysdeps/s390/multiarch/strpbrk-vx.S: Likewise.
19148         * sysdeps/s390/multiarch/strpbrk.c: Likewise.
19149         * sysdeps/s390/multiarch/wcspbrk-c.c: Likewise.
19150         * sysdeps/s390/multiarch/wcspbrk-vx.S: Likewise.
19151         * sysdeps/s390/multiarch/wcspbrk.c: Likewise.
19152         * sysdeps/s390/multiarch/Makefile (sysdep_routines): Add strpbrk and
19153         wcspbrk functions.
19154         * sysdeps/s390/multiarch/ifunc-impl-list.c
19155         (__libc_ifunc_impl_list): Add ifunc test for strpbrk, wcspbrk.
19156         * wcsmbs/wcspbrk.c: Use WCSPBRK if defined.
19157         * string/test-strpbrk.c: Add wcspbrk support.
19158         * wcsmbs/test-wcspbrk.c: New File.
19159         * wcsmbs/Makefile (strop-tests): Add wcspbrk.
19160         * benchtests/bench-strpbrk.c: Add wcspbrk support.
19161         * benchtests/bench-wcspbrk.c: New File.
19162         * benchtests/Makefile (wcsmbs-bench): Add wcspbrk.
19163
19164         * sysdeps/s390/multiarch/strspn-c.c: New File.
19165         * sysdeps/s390/multiarch/strspn-vx.S: Likewise.
19166         * sysdeps/s390/multiarch/strspn.c: Likewise.
19167         * sysdeps/s390/multiarch/wcsspn-c.c: Likewise.
19168         * sysdeps/s390/multiarch/wcsspn-vx.S: Likewise.
19169         * sysdeps/s390/multiarch/wcsspn.c: Likewise.
19170         * wcsmbs/wcsspn.c: Use WCSSPN if defined.
19171         * sysdeps/s390/multiarch/Makefile (sysdep_routines): Add strspn and
19172         wcsspn functions.
19173         * sysdeps/s390/multiarch/ifunc-impl-list.c
19174         (__libc_ifunc_impl_list): Add ifunc test for strspn, wcsspn.
19175         * string/test-strspn.c: Add wcsspn support.
19176         * wcsmbs/test-wcsspn.c: New File.
19177         * wcsmbs/Makefile (strop-tests): Add wcsspn.
19178         * benchtests/bench-strspn.c: Add wcsspn support.
19179         * benchtests/bench-wcsspn.c: New File.
19180         * benchtests/Makefile (wcsmbs-bench): Add wcsspn.
19181
19182         * sysdeps/s390/multiarch/strrchr-c.c: New File.
19183         * sysdeps/s390/multiarch/strrchr-vx.S: Likewise.
19184         * sysdeps/s390/multiarch/strrchr.c: Likewise.
19185         * sysdeps/s390/multiarch/wcsrchr-c.c: Likewise.
19186         * sysdeps/s390/multiarch/wcsrchr-vx.S: Likewise.
19187         * sysdeps/s390/multiarch/wcsrchr.c: Likewise.
19188         * sysdeps/s390/multiarch/Makefile (sysdep_routines): Add strrchr and
19189         wcsrchr functions.
19190         * sysdeps/s390/multiarch/ifunc-impl-list.c
19191         (__libc_ifunc_impl_list): Add ifunc test for strrchr, wcsrchr.
19192         * benchtests/bench-wcsrchr.c: New File.
19193         * benchtests/Makefile (wcsmbs-bench): Add wcsrchr.
19194
19195         * sysdeps/s390/multiarch/strchrnul-c.c: New File.
19196         * sysdeps/s390/multiarch/strchrnul-vx.S: Likewise.
19197         * sysdeps/s390/multiarch/strchrnul.c: Likewise.
19198         * sysdeps/s390/multiarch/wcschrnul-c.c: Likewise.
19199         * sysdeps/s390/multiarch/wcschrnul-vx.S: Likewise.
19200         * sysdeps/s390/multiarch/wcschrnul.c: Likewise.
19201         * sysdeps/s390/multiarch/Makefile (sysdep_routines): Add strchrnul and
19202         wcschrnul functions.
19203         * sysdeps/s390/multiarch/ifunc-impl-list.c
19204         (__libc_ifunc_impl_list): Add ifunc test for strchrnul, wcschrnul.
19205         * wcsmbs/wcschrnul.c: Use WCSCHRNUL if defined.
19206         * string/test-strchr.c: Add wcschrnul support.
19207         * wcsmbs/test-wcschrnul.c: New File.
19208         * wcsmbs/Makefile (strop-tests): Add wcschrnul.
19209         * benchtests/bench-strchr.c: Add wcschrnul support.
19210         * benchtests/bench-wcschrnul.c: New File.
19211         * benchtests/Makefile (wcsmbs-bench): Add wcschrnul.
19212
19213         * sysdeps/s390/multiarch/strchr-c.c: New File.
19214         * sysdeps/s390/multiarch/strchr-vx.S: Likewise.
19215         * sysdeps/s390/multiarch/strchr.c: Likewise.
19216         * sysdeps/s390/multiarch/wcschr-c.c: Likewise.
19217         * sysdeps/s390/multiarch/wcschr-vx.S: Likewise.
19218         * sysdeps/s390/multiarch/wcschr.c: Likewise.
19219         * sysdeps/s390/multiarch/Makefile (sysdep_routines): Add strchr and
19220         wcschr functions.
19221         * sysdeps/s390/multiarch/ifunc-impl-list.c
19222         (__libc_ifunc_impl_list): Add ifunc test for strchr, wcschr.
19223         * string/strchr.c (STRCHR): Define and use macro.
19224         * benchtests/bench-wcschr.c: New File.
19225         * benchtests/Makefile (wcsmbs-bench): Add wcschr.
19226
19227         * sysdeps/s390/multiarch/strncmp-c.c: New File.
19228         * sysdeps/s390/multiarch/strncmp-vx.S: Likewise.
19229         * sysdeps/s390/multiarch/strncmp.c: Likewise.
19230         * sysdeps/s390/multiarch/wcsncmp-c.c: Likewise.
19231         * sysdeps/s390/multiarch/wcsncmp-vx.S: Likewise.
19232         * sysdeps/s390/multiarch/wcsncmp.c: Likewise.
19233         * sysdeps/s390/multiarch/Makefile (sysdep_routines): Add strncmp and
19234         wcsncmp functions.
19235         * sysdeps/s390/multiarch/ifunc-impl-list.c
19236         (__libc_ifunc_impl_list): Add ifunc test for strncmp, wcsncmp.
19237         * wcsmbs/wcsncmp.c (WCSNCMP): Define and use macro.
19238         * benchtests/bench-strncmp.c: Add wcsncmp support.
19239         * benchtests/bench-wcsncmp.c: New File.
19240         * benchtests/Makefile (wcsmbs-bench): Add wcsncmp.
19241
19242         * sysdeps/s390/multiarch/strcmp-vx.S: New File.
19243         * sysdeps/s390/multiarch/strcmp.c: Likewise.
19244         * sysdeps/s390/multiarch/wcscmp-c.c: Likewise.
19245         * sysdeps/s390/multiarch/wcscmp-vx.S: Likewise.
19246         * sysdeps/s390/multiarch/wcscmp.c: Likewise.
19247         * sysdeps/s390/s390-32/multiarch/strcmp.c: Likewise.
19248         * sysdeps/s390/s390-64/multiarch/strcmp.c: Likewise.
19249         * sysdeps/s390/multiarch/Makefile (sysdep_routines): Add strcmp and
19250         wcscmp functions.
19251         * sysdeps/s390/multiarch/ifunc-impl-list.c
19252         (__libc_ifunc_impl_list): Add ifunc test for strcmp, wcscmp.
19253         * string/strcmp.c (STRCMP): Define and use macro.
19254         * benchtests/bench-wcscmp.c: New File.
19255         * benchtests/Makefile (wcsmbs-bench): Add wcscmp.
19256         * sysdeps/s390/bits/string.h: Fix typo: _HAVE_STRING_ARCH_strcmp
19257         instead of _HAVE_STRING_ARCH_memchr.
19258
19259         * sysdeps/s390/multiarch/strncat-c.c: New File.
19260         * sysdeps/s390/multiarch/strncat-vx.S: Likewise.
19261         * sysdeps/s390/multiarch/strncat.c: Likewise.
19262         * sysdeps/s390/multiarch/wcsncat-c.c: Likewise.
19263         * sysdeps/s390/multiarch/wcsncat-vx.S: Likewise.
19264         * sysdeps/s390/multiarch/wcsncat.c: Likewise.
19265         * sysdeps/s390/multiarch/Makefile (sysdep_routines): Add strncat and
19266         wcsncat functions.
19267         * sysdeps/s390/multiarch/ifunc-impl-list.c
19268         (__libc_ifunc_impl_list): Add ifunc test for strncat, wcsncat.
19269         * wcsmbs/wcsncat.c (WCSNCAT): Define and use macro.
19270         * string/test-strncat.c: Add wcsncat support.
19271         * wcsmbs/test-wcsncat.c: New File.
19272         * wcsmbs/Makefile (strop-tests): Add wcsncat.
19273         * benchtests/bench-strncat.c: Add wcsncat support.
19274         * benchtests/bench-wcsncat.c: New File.
19275         * benchtests/Makefile (wcsmbs-bench): Add wcsncat.
19276
19277         * sysdeps/s390/multiarch/strcat-c.c: New File.
19278         * sysdeps/s390/multiarch/strcat-vx.S: Likewise.
19279         * sysdeps/s390/multiarch/strcat.c: Likewise.
19280         * sysdeps/s390/multiarch/wcscat-c.c: Likewise.
19281         * sysdeps/s390/multiarch/wcscat-vx.S: Likewise.
19282         * sysdeps/s390/multiarch/wcscat.c: Likewise.
19283         * sysdeps/s390/multiarch/Makefile (sysdep_routines): Add strcat and
19284         wcscat functions.
19285         * sysdeps/s390/multiarch/ifunc-impl-list.c
19286         (__libc_ifunc_impl_list): Add ifunc test for strcat, wcscat.
19287         * string/strcat.c (STRCAT): Define and use macro.
19288         * wcsmbs/wcscat.c: Use WCSCAT if defined.
19289         * string/test-strcat.c: Add wcscat support.
19290         * wcsmbs/test-wcscat.c: New File.
19291         * wcsmbs/Makefile (strop-tests): Add wcscat.
19292         * benchtests/bench-strcat.c: Add wcscat support.
19293         * benchtests/bench-wcscat.c: New File.
19294         * benchtests/Makefile (wcsmbs-bench): Add wcscat.
19295
19296         * sysdeps/s390/multiarch/stpncpy-c.c: New File.
19297         * sysdeps/s390/multiarch/stpncpy-vx.S: Likewise.
19298         * sysdeps/s390/multiarch/stpncpy.c: Likewise.
19299         * sysdeps/s390/multiarch/wcpncpy-c.c: Likewise.
19300         * sysdeps/s390/multiarch/wcpncpy-vx.S: Likewise.
19301         * sysdeps/s390/multiarch/wcpncpy.c: Likewise.
19302         * sysdeps/s390/multiarch/Makefile (sysdep_routines): Add stpncpy and
19303         wcpncpy functions.
19304         * sysdeps/s390/multiarch/ifunc-impl-list.c
19305         (__libc_ifunc_impl_list): Add ifunc test for stpncpy, wcpncpy.
19306         * wcsmbs/wcpncpy.c: Use WCPNCPY if defined.
19307         * string/test-stpncpy.c: Add wcpncpy support.
19308         * wcsmbs/test-wcpncpy.c: New File.
19309         * wcsmbs/Makefile (strop-tests): Add wcpncpy.
19310         * benchtests/bench-stpncpy.c: Add wcpncpy support.
19311         * benchtests/bench-wcpncpy.c: New File.
19312         * benchtests/Makefile (wcsmbs-bench): Add wcpncpy.
19313
19314         * sysdeps/s390/multiarch/strncpy-vx.S: New File.
19315         * sysdeps/s390/multiarch/strncpy.c: Likewise.
19316         * sysdeps/s390/multiarch/wcsncpy-c.c: Likewise.
19317         * sysdeps/s390/multiarch/wcsncpy-vx.S: Likewise.
19318         * sysdeps/s390/multiarch/wcsncpy.c: Likewise.
19319         * sysdeps/s390/s390-32/multiarch/strncpy.c: Likewise.
19320         * sysdeps/s390/s390-64/multiarch/strncpy.c: Likewise.
19321         * sysdeps/s390/multiarch/Makefile (sysdep_routines): Add strncpy and
19322         wcsncpy functions.
19323         * wcsmbs/wcsncpy.c: Use WCSNCPY if defined.
19324         * sysdeps/s390/multiarch/ifunc-impl-list.c
19325         (__libc_ifunc_impl_list): Add ifunc test for strncpy, wcsncpy.
19326         * string/test-strncpy.c: Add wcsncpy support.
19327         * wcsmbs/test-wcsncpy.c: New File.
19328         * wcsmbs/Makefile (strop-tests): Add wcsncpy.
19329         * benchtests/bench-strncpy.c: Add wcsncpy support.
19330         * benchtests/bench-wcsncpy.c: New File.
19331         * benchtests/Makefile (wcsmbs-bench): Add wcsncpy
19332
19333         * sysdeps/s390/multiarch/stpcpy-c.c: New File.
19334         * sysdeps/s390/multiarch/stpcpy-vx.S: Likewise.
19335         * sysdeps/s390/multiarch/stpcpy.c: Likewise.
19336         * sysdeps/s390/multiarch/wcpcpy-c.c: Likewise.
19337         * sysdeps/s390/multiarch/wcpcpy-vx.S: Likewise.
19338         * sysdeps/s390/multiarch/wcpcpy.c: Likewise.
19339         * sysdeps/s390/multiarch/Makefile (sysdep_routines): Add stpcpy and
19340         wcpcpy functions.
19341         * string/stpcpy.c: Use STPCPY if defined.
19342         * wcsmbs/wcpcpy.c: Use WCPCPY if defined.
19343         * sysdeps/s390/multiarch/ifunc-impl-list.c
19344         (__libc_ifunc_impl_list): Add ifunc test for stpcpy, wcpcpy.
19345         * string/test-stpcpy.c: Add wcpcpy support.
19346         * wcsmbs/test-wcpcpy.c: New File.
19347         * wcsmbs/Makefile (strop-tests): Add wcpcpy.
19348         * benchtests/bench-stpcpy.c: Add wcpcpy support.
19349         * benchtests/bench-wcpcpy.c: New File.
19350         * benchtests/Makefile (wcsmbs-bench): Add wcpcpy.
19351
19352         * sysdeps/s390/multiarch/strcpy-vx.S: New File.
19353         * sysdeps/s390/multiarch/strcpy.c: Likewise.
19354         * sysdeps/s390/multiarch/wcscpy-c.c: Likewise.
19355         * sysdeps/s390/multiarch/wcscpy-vx.S: Likewise.
19356         * sysdeps/s390/multiarch/wcscpy.c: Likewise.
19357         * sysdeps/s390/s390-32/multiarch/strcpy.c: Likewise.
19358         * sysdeps/s390/s390-64/multiarch/strcpy.c: Likewise.
19359         * sysdeps/s390/multiarch/Makefile (sysdep_routines): Add strcpy and
19360         wcscpy functions.
19361         * sysdeps/s390/multiarch/ifunc-impl-list.c
19362         (__libc_ifunc_impl_list): Add ifunc test for strcpy, wcscpy.
19363         * benchtests/bench-wcscpy.c: New File.
19364         * benchtests/Makefile (wcsmbs-bench): Add wcscpy.
19365
19366         * sysdeps/s390/multiarch/strnlen-c.c: New File.
19367         * sysdeps/s390/multiarch/strnlen-vx.S: Likewise.
19368         * sysdeps/s390/multiarch/strnlen.c: Likewise.
19369         * sysdeps/s390/multiarch/wcsnlen-c.c: Likewise.
19370         * sysdeps/s390/multiarch/wcsnlen-vx.S: Likewise.
19371         * sysdeps/s390/multiarch/wcsnlen.c: Likewise.
19372         * sysdeps/s390/multiarch/Makefile (sysdep_routines): Add strnlen and
19373         wcsnlen functions.
19374         * sysdeps/s390/multiarch/ifunc-impl-list.c
19375         (__libc_ifunc_impl_list): Add ifunc test for strnlen, wcsnlen.
19376         * wcsmbs/wcsnlen.c: Use WCSNLEN if defined.
19377         * string/test-strnlen.c: Add wcsnlen support.
19378         * wcsmbs/test-wcsnlen.c: New File.
19379         * wcsmbs/Makefile (strop-tests): Add wcsnlen.
19380         * benchtests/bench-strnlen.c: Add wcsnlen support.
19381         * benchtests/bench-wcsnlen.c: New File.
19382         * benchtests/Makefile (wcsmbs-bench): Add wcsnlen.
19383
19384         * sysdeps/s390/multiarch/Makefile: New File.
19385         * sysdeps/s390/multiarch/strlen-c.c: Likewise.
19386         * sysdeps/s390/multiarch/strlen-vx.S: Likewise.
19387         * sysdeps/s390/multiarch/strlen.c: Likewise.
19388         * sysdeps/s390/multiarch/wcslen-c.c: Likewise.
19389         * sysdeps/s390/multiarch/wcslen-vx.S: Likewise.
19390         * sysdeps/s390/multiarch/wcslen.c: Likewise.
19391         * string/strlen.c (STRLEN): Define and use macro.
19392         * sysdeps/s390/multiarch/ifunc-impl-list.c
19393         (IFUNC_VX_IMPL): New macro function.
19394         (__libc_ifunc_impl_list): Add ifunc test for strlen, wcslen.
19395         * benchtests/Makefile (wcsmbs-bench): New variable.
19396         (string-bench-all): Added wcsmbs-bench.
19397         * benchtests/bench-wcslen.c: New File.
19398
19399         * sysdeps/s390/multiarch/ifunc-resolve.h (s390_vx_libc_ifunc,
19400         s390_vx_libc_ifunc2): New macro function.
19401
19402         * config.h.in (HAVE_S390_VX_ASM_SUPPORT): New macro undefine.
19403         * sysdeps/s390/configure.ac: Add test for S390 vector instruction
19404         assembler support.
19405         * sysdeps/s390/configure: Regenerated.
19406
19407         * sysdeps/s390/dl-procinfo.c (_dl_s390_cap_flags): Add z13.
19408         * sysdeps/s390/dl-procinfo.h (_DL_PLATFORMS_COUNT): Increased.
19409
19410         * sysdeps/s390/dl-procinfo.c (_dl_s390_platforms): Add vector flag.
19411         * sysdeps/s390/dl-procinfo.h: Add vector capability.
19412         * sysdeps/unix/sysv/linux/s390/bits/hwcap.h (HWCAP_S390_VX): Define.
19413
19414         * sysdeps/s390/s390-32/multiarch/Makefile (sysdep_routines):
19415         Remove ifunc-resolve, add memset-s390, memcpy-s390, memcmp-s390.
19416         * sysdeps/s390/s390-32/multiarch/ifunc-resolve.c: Delete File.
19417         * sysdeps/s390/s390-32/multiarch/memcmp.S: Move to ...
19418         * sysdeps/s390/s390-32/multiarch/memcmp-s390.S: ... here.
19419         (memcmp, bcmp): Use __memcmp_default as alias source.
19420         * sysdeps/s390/s390-32/multiarch/memcmp.c: New File.
19421         * sysdeps/s390/s390-32/memcmp.S (__memcmp_g5):
19422         Rename to __memcmp_default.
19423         * sysdeps/s390/s390-32/multiarch/memcpy.S: Move to ...
19424         * sysdeps/s390/s390-32/multiarch/memcpy-s390.S: ... here.
19425         (memcpy): Use __memcpy_default as alias source.
19426         * sysdeps/s390/s390-32/multiarch/memcpy.c: New File.
19427         * sysdeps/s390/s390-32/memcpy.S (__memcpy_g5):
19428         Rename to __memcpy_default.
19429         * sysdeps/s390/s390-32/multiarch/memset.S: Move to ...
19430         * sysdeps/s390/s390-32/multiarch/memset-s390.S: ... here.
19431         (memset): Use __memset_default as alias source.
19432         * sysdeps/s390/s390-32/multiarch/memset.c: New File.
19433         * sysdeps/s390/s390-32/memset.S (__memset_g5):
19434         Rename to __memset_default.
19435         * sysdeps/s390/s390-64/multiarch/Makefile (sysdep_routines):
19436         Remove ifunc-resolve, add memset-s390x, memcpy-s390x, memcmp-s390x.
19437         * sysdeps/s390/s390-64/multiarch/ifunc-resolve.c: Delete File.
19438         * sysdeps/s390/s390-64/multiarch/memcmp.S: Move to ...
19439         * sysdeps/s390/s390-64/multiarch/memcmp-s390x.S: ... here.
19440         (memcmp, bcmp): Use __memcmp_default as alias source.
19441         * sysdeps/s390/s390-64/multiarch/memcmp.c: New File.
19442         * sysdeps/s390/s390-64/memcmp.S (__memcmp_z900):
19443         Rename to __memcmp_default.
19444         * sysdeps/s390/s390-64/multiarch/memcpy.S: Move to ...
19445         * sysdeps/s390/s390-64/multiarch/memcpy-s390x.S: ... here.
19446         (memcpy): Use __memcpy_default as alias source.
19447         * sysdeps/s390/s390-64/multiarch/memcpy.c: New File.
19448         * sysdeps/s390/s390-64/memcpy.S (__memcpy_z900):
19449         Rename to __memcpy_default.
19450         * sysdeps/s390/s390-64/multiarch/memset.S: Move to ...
19451         * sysdeps/s390/s390-64/multiarch/memset-s390x.S: ... here.
19452         (memset): Use __memset_default as alias source.
19453         * sysdeps/s390/s390-64/multiarch/memset.c: New File.
19454         * sysdeps/s390/s390-64/memset.S (__memset_z900):
19455         Rename to __memset_default.
19456         * sysdeps/s390/multiarch/ifunc-resolve.h: New File.
19457         * sysdeps/s390/multiarch/ifunc-impl-list.c: New File.
19458
19459         [BZ #18610]
19460         * sysdeps/s390/fpu/bits/fenv.h (fenv_t): Rename
19461         __ieee_instruction_pointer to __unused.
19462         * sysdeps/s390/fpu/fesetenv.c (__fesetenv): Remove usage of
19463         __ieee_instruction_pointer.
19464         * sysdeps/s390/fpu/fclrexcpt.c (feclearexcept): Fix dxc-field handling.
19465         * sysdeps/s390/fpu/fgetexcptflg.c (fegetexceptflag): Likewise.
19466         * sysdeps/s390/fpu/fsetexcptflg.c (fesetexceptflag): Likewise.
19467         * sysdeps/s390/fpu/ftestexcept.c (fetestexcept): Likewise.
19468         * sysdeps/s390/fpu/fpu_control.h (_FPU_RESERVED):
19469         Mark dxc-field as reserved.
19470
19471 2015-08-25  Roland McGrath  <roland@hack.frob.com>
19472
19473         * sysdeps/nacl/start.c (_start): Call __nacl_main instead of main
19474         if the weak reference is not null.
19475
19476 2015-08-25  H.J. Lu  <hongjiu.lu@intel.com>
19477
19478         * sysdeps/x86_64/strcmp.S: Remove "#if !IS_IN (libc)".
19479
19480         [BZ #11214]
19481         * sysdeps/unix/sysv/linux/Makefile (tst-getpid2-ENV): Removed.
19482
19483 2015-08-25  Rajalakshmi Srinivasaraghavan  <raji@linux.vnet.ibm.com>
19484
19485         * sysdeps/unix/sysv/linux/powerpc/kernel-features.h: Define new macros.
19486         * sysdeps/unix/sysv/linux/accept.c: Call direct system call.
19487         * sysdeps/unix/sysv/linux/bind.c: Call direct system call.
19488         * sysdeps/unix/sysv/linux/connect.c: Call direct system call.
19489         * sysdeps/unix/sysv/linux/getpeername.c: Call direct system call.
19490         * sysdeps/unix/sysv/linux/getsockname.c: Call direct system call.
19491         * sysdeps/unix/sysv/linux/getsockopt.c: Call direct system call.
19492         * sysdeps/unix/sysv/linux/listen.c: Call direct system call.
19493         * sysdeps/unix/sysv/linux/recv.c: Call direct system call.
19494         * sysdeps/unix/sysv/linux/recvfrom.c: Call direct system call.
19495         * sysdeps/unix/sysv/linux/recvmsg.c: Call direct system call.
19496         * sysdeps/unix/sysv/linux/send.c: Call direct system call.
19497         * sysdeps/unix/sysv/linux/sendmsg.c: Call direct system call.
19498         * sysdeps/unix/sysv/linux/sendto.c: Call direct system call.
19499         * sysdeps/unix/sysv/linux/setsockopt.c: Call direct system call.
19500         * sysdeps/unix/sysv/linux/shutdown.c: Call direct system call.
19501         * sysdeps/unix/sysv/linux/socket.c: Call direct system call.
19502         * sysdeps/unix/sysv/linux/socketpair.c: Call direct system call.
19503
19504 2015-08-25  Paul E. Murphy  <murphyp@linux.vnet.ibm.com>
19505
19506         * sysdeps/powerpc/powerpc32/sysdep.h (ABORT_TRANSACTION): Use
19507         register other than r0 for tabort, it has special meaning.
19508         * sysdeps/powerpc/powerpc64/sysdep.h (ABORT_TRANSACTION): Likewise.
19509         * sysdeps/unix.sysv/linux/powerpc/syscall.S (syscall): Abort
19510         transaction before starting syscall.
19511
19512 2015-08-25  Rajalakshmi Srinivasaraghavan  <raji@linux.vnet.ibm.com>
19513
19514         * sysdeps/powerpc/powerpc64/power7/strstr.S: Handle worst case.
19515
19516 2015-08-25  H.J. Lu  <hongjiu.lu@intel.com>
19517
19518         * sysdeps/x86_64/strlen.S: Replace %xmm[8-12] with %xmm[0-4].
19519
19520         * sysdeps/x86_64/rtld-memcmp.c: Removed.
19521         * sysdeps/x86_64/rtld-memset.S: Likewise.
19522         * sysdeps/x86_64/rtld-strchr.S: Likewise.
19523         * sysdeps/x86_64/rtld-strlen.S: Likewise.
19524         * sysdeps/x86_64/multiarch/rtld-memcmp.c: Likewise.
19525         * sysdeps/x86_64/multiarch/rtld-memset.S: Likewise.
19526
19527         * sysdeps/x86_64/memset.S: Replace %xmm8 with %xmm0.
19528
19529 2015-08-25  Ondřej Bílka  <neleai@seznam.cz>
19530
19531         * debug/strcpy_chk.c: Improve performance.
19532         * debug/stpcpy_chk.c: Likewise.
19533         * sysdeps/x86_64/strcpy_chk.S: Remove.
19534         * sysdeps/x86_64/stpcpy_chk.S: Remove.
19535
19536         [BZ #18240]
19537         * misc/hsearch_r.c (__hcreate_r): Handle overflow.
19538
19539 2015-08-25  H.J. Lu  <hongjiu.lu@intel.com>
19540
19541         [BZ #15128]
19542         * sysdeps/x86_64/Makefile [$(subdir) == elf] (tests): Add
19543         ifuncmain8.
19544         (modules-names): Add ifuncmod8.
19545         ($(objpfx)ifuncmain8): New rule.
19546         * sysdeps/x86_64/dl-machine.h: Include <dl-procinfo.h> and
19547         <cpuid.h>.
19548         (elf_machine_runtime_setup): Use _dl_runtime_resolve_sse,
19549         _dl_runtime_resolve_avx, or _dl_runtime_resolve_avx512,
19550         _dl_runtime_profile_sse, _dl_runtime_profile_avx, or
19551         _dl_runtime_profile_avx512, based on HAS_ARCH_FEATURE.
19552         * sysdeps/x86_64/dl-trampoline.S: Rewrite.
19553         * sysdeps/x86_64/dl-trampoline.h: Likewise.
19554         * sysdeps/x86_64/ifuncmain8.c: New file.
19555         * sysdeps/x86_64/ifuncmod8.c: Likewise.
19556         * sysdeps/x86_64/nptl/tcb-offsets.sym (RTLD_SAVESPACE_SSE):
19557         Removed.
19558         * sysdeps/x86_64/nptl/tls.h (__128bits): Removed.
19559         (tcbhead_t): Change rtld_must_xmm_save to __glibc_unused1.
19560         Change rtld_savespace_sse to __glibc_unused2.
19561         (RTLD_CHECK_FOREIGN_CALL): Removed.
19562         (RTLD_ENABLE_FOREIGN_CALL): Likewise.
19563         (RTLD_PREPARE_FOREIGN_CALL): Likewise.
19564         (RTLD_FINALIZE_FOREIGN_CALL): Likewise.
19565
19566 2015-08-24  Wilco Dijkstra  <wdijkstr@arm.com>
19567
19568         * sysdeps/aarch64/bzero.S (__bzero): Remove.
19569
19570 2015-08-24  Wilco Dijkstra  <wdijkstr@arm.com>
19571
19572         * sysdeps/aarch64/fpu/math_private.h (libc_feholdsetround_aarch64_ctx):
19573         Unconditionally set __fpcr to avoid uninialized warning.
19574         (libc_feholdsetround_noex_aarch64_ctx): Likewise.
19575
19576 2015-08-24  Siddhesh Poyarekar  <siddhesh@redhat.com>
19577
19578         * malloc/arena.c (arena_get_retry): Don't use main_arena if it
19579         is corrupt.
19580
19581         * malloc/arena.c (arena_get2): Drop unused argument.
19582         (arena_lock): Adjust.
19583         (arena_get_retry): Likewise.
19584
19585 2015-08-24  Andreas Schwab  <schwab@suse.de>
19586
19587         * sysdeps/unix/sysv/linux/kernel-features.h (__ASSUME_IPC64):
19588         Don't define.
19589         * sysdeps/unix/sysv/linux/powerpc/kernel-features.h
19590         (__ASSUME_IPC64): Don't undef.
19591         * sysdeps/unix/sysv/linux/msgctl.c: Don't check for __ASSUME_IPC64.
19592         * sysdeps/unix/sysv/linux/semctl.c: Likewise.
19593         * sysdeps/unix/sysv/linux/shmctl.c: Likewise.
19594         * sysdeps/unix/sysv/linux/i386/msgctl.c: Remove.
19595         * sysdeps/unix/sysv/linux/i386/semctl.c: Remove.
19596         * sysdeps/unix/sysv/linux/i386/shmctl.c: Remove.
19597         * sysdeps/unix/sysv/linux/m68k/msgctl.c: Remove.
19598         * sysdeps/unix/sysv/linux/m68k/semctl.c: Remove.
19599         * sysdeps/unix/sysv/linux/m68k/shmctl.c: Remove.
19600         * sysdeps/unix/sysv/linux/s390/s390-32/msgctl.c: Remove.
19601         * sysdeps/unix/sysv/linux/s390/s390-32/semctl.c: Remove.
19602         * sysdeps/unix/sysv/linux/s390/s390-32/shmctl.c: Remove.
19603         * sysdeps/unix/sysv/linux/sh/msgctl.c: Remove.
19604         * sysdeps/unix/sysv/linux/sh/semctl.c: Remove.
19605         * sysdeps/unix/sysv/linux/sh/shmctl.c: Remove.
19606         * sysdeps/unix/sysv/linux/sparc/sparc32/msgctl.c: Remove.
19607         * sysdeps/unix/sysv/linux/sparc/sparc32/semctl.c: Remove.
19608         * sysdeps/unix/sysv/linux/sparc/sparc32/shmctl.c: Remove.
19609         * sysdeps/unix/sysv/linux/sparc/sparc64/msgctl.c: Remove.
19610         * sysdeps/unix/sysv/linux/sparc/sparc64/semctl.c: Remove.
19611         * sysdeps/unix/sysv/linux/sparc/sparc64/shmctl.c: Remove.
19612
19613 2015-08-21  Mike Frysinger  <vapier@gentoo.org>
19614
19615         * manual/Makefile (install): Only build manual when perl is available.
19616
19617 2015-08-21  Carlos Eduardo Seo  <cseo@linux.vnet.ibm.com>
19618
19619         * sysdeps/powerpc/powerpc32/power4/multiarch/memchr.c: Replace
19620         '#undef memcpy' by '#undef memchr'.
19621
19622 2015-08-21  Carlos Eduardo Seo  <cseo@linux.vnet.ibm.com>
19623
19624         * sysdeps/powerpc/powerpc64/multiarch/memchr-ppc64.c: Make
19625         memchr not point to the internal __GI_memchr implementation.
19626
19627 2015-08-20  Joseph Myers  <joseph@codesourcery.com>
19628
19629         * timezone/Makefile (CFLAGS-zdump.c): Remove
19630         -Wno-strict-prototypes.
19631         (CFLAGS-zic.c): Likewise.
19632         (CFLAGS-ialloc.c): Likewise.
19633         (CFLAGS-scheck.c): Likewise.
19634
19635         * Makeconfig [$(enable-werror) = yes] (+gccwarn): Do not add
19636         -Wno-error=undef.
19637
19638 2015-08-20  H.J. Lu  <hongjiu.lu@intel.com>
19639
19640         * i386/i686/multiarch/strcasestr-c.c: Removed.
19641         * x86_64/multiarch/strcasestr.c: Likewise.
19642         * x86_64/multiarch/ifunc-impl-list.c (__libc_ifunc_impl_list):
19643         Remove strcasestr.
19644
19645 2015-08-20  Joseph Myers  <joseph@codesourcery.com>
19646
19647         * math/Makefile (CFLAGS): Don't add -Wno-uninitialized.
19648
19649         * sysdeps/ieee754/ldbl-128ibm/s_nearbyintl.c: Always initialize
19650         variables for high and low parts before possibly modifying them.
19651
19652 2015-08-20  H.J. Lu  <hongjiu.lu@intel.com>
19653
19654         * sysdeps/i386/i686/multiarch/init-arch.h: Removed.
19655         * sysdeps/unix/sysv/linux/x86/init-arch.h: Likewise.
19656         * sysdeps/x86_64/cacheinfo.c: Include <init-arch.h> instead
19657         of "multiarch/init-arch.h".
19658         * sysdeps/x86_64/multiarch/init-arch.h: Renamed to ...
19659         * sysdeps/x86/init-arch.h: This.
19660
19661 2015-08-20  H.J. Lu  <hongjiu.lu@intel.com>
19662
19663         * sysdeps/i386/i686/multiarch/init-arch.c: Removed.
19664         * sysdeps/unix/sysv/linux/x86/init-arch.c: Likewise.
19665
19666 2015-08-20  Ondřej Bílka  <neleai@seznam.cz>
19667
19668         [BZ #17787]
19669         * manual/macros.texi: Add twoexp macro.
19670         * manual/filesys.texi: Fix exponents.
19671         * manual/llio.texi: Likewise.
19672         * manual/stdio.texi: Likewise.
19673
19674 2015-08-20  Florian Weimer  <fweimer@redhat.com>
19675
19676         * sysdeps/x86/elide.h (ELIDE_UNLOCK): Document crash due to
19677         incorrect use.
19678
19679 2015-08-19  Joseph Myers  <joseph@codesourcery.com>
19680
19681         [BZ #18370]
19682         * math/s_csqrt.c (__csqrt): Force underflow exception for results
19683         whose real or imaginary part has small absolute value.
19684         * math/s_csqrtf.c (__csqrtf): Likewise.
19685         * math/s_csqrtl.c (__csqrtl): Likewise.
19686         * math/auto-libm-test-in: Add more tests of csqrt.
19687         * math/auto-libm-test-out: Regenerated.
19688         * sysdeps/i386/fpu/libm-test-ulps: Update.
19689
19690 2015-08-19  Gabriel F. T. Gomes  <gftg@linux.vnet.ibm.com>
19691
19692         * sysdeps/powerpc/sys/platform/ppc.h (__ppc_set_ppr_med_high,
19693         __ppc_set_ppr_very_low): New functions.
19694         * manual/platform.texi: Add documentation about
19695         __ppc_set_ppr_med_high and __ppc_set_ppr_very_low.
19696
19697 2015-08-19  Wilco Dijkstra  <wdijkstr@arm.com>
19698
19699         * string/stpncpy.c (stpncpy): Improve performance using
19700         __strnlen/memcpy/memset.
19701
19702 2015-08-19  Andrew Senkevich  <andrew.senkevich@intel.com>
19703
19704         [BZ #18796]
19705         * scripts/test-installation.pl: Don't add -lmvec to build options if
19706         libmvec wasn't built.
19707
19708 2015-08-19   Petar Jovanovic  <petar.jovanovic@rt-rk.com>
19709
19710         [BZ #14341]
19711         * elf/dynamic-link.h (elf_machine_lazy_rel): Properly handle the
19712         case when there is a gap between DT_REL and DT_JMPREL sections.
19713         * sysdeps/x86_64/Makefile (tests): Add tst-split-dynreloc.
19714         (LDFLAGS-tst-split-dynreloc): New.
19715         (tst-split-dynreloc-ENV): Likewise.
19716         * sysdeps/x86_64/tst-split-dynreloc.c: New file.
19717         * sysdeps/x86_64/tst-split-dynreloc.lds: Likewise.
19718
19719 2015-08-19  H.J. Lu  <hongjiu.lu@intel.com>
19720
19721         [BZ #18822]
19722         * sysdeps/unix/sysv/linux/xstatconv.h (__xstat_conv): Add
19723         attribute_hidden.
19724         (__xstat64_conv): Likewise.
19725         (__xstat32_conv): Likewise.
19726
19727 2015-08-19  H.J. Lu  <hongjiu.lu@intel.com>
19728
19729         [BZ #18822]
19730         * sysdeps/unix/sysv/linux/i386/makecontext.S (__makecontext):
19731         Don't load %ebx when calling __setcontext.  Call __setcontext
19732         with HIDDEN_JUMPTARGET.
19733         * sysdeps/unix/sysv/linux/i386/setcontext.S (__setcontext): Add
19734         libc_hidden_def.
19735
19736 2015-08-19  H.J. Lu  <hongjiu.lu@intel.com>
19737
19738         * sysdeps/i386/i686/Makefile
19739         [$(subdir) == string] (sysdep_routines): Moved to ...
19740         * sysdeps/i386/Makefile: Here.
19741         * sysdeps/i386/i686/cacheinfo.c: Moved to ...
19742         * sysdeps/i386/cacheinfo.c: Here.
19743         * sysdeps/unix/sysv/linux/i386/sysconf.c: Removed.
19744         * sysdeps/unix/sysv/linux/i386/i686/sysconf.c: Likewise.
19745         * sysdeps/unix/sysv/linux/x86_64/sysconf.c: Moved to ...
19746         * sysdeps/unix/sysv/linux/x86/sysconf.c: Here.
19747
19748 2015-08-19  H.J. Lu  <hongjiu.lu@intel.com>
19749
19750         * sysdeps/x86/cpu-features.h (HAS_I586): Defined to 1 if
19751         __i586__ is defined.
19752         (HAS_I686): Defined to 1 if __i686__ is defined.
19753
19754 2015-08-19  Joseph Myers  <joseph@codesourcery.com>
19755
19756         * elf/Makefile [$(have-z-execstack) = yes]
19757         (CPPFLAGS-tst-execstack.c): New variable.
19758
19759         * login/tst-utmp.c [_HAVE_UT_TYPE || defined UTMPX]: Change
19760         conditional to [defined UTMPX || _HAVE_UT_TYPE].
19761         [_HAVE_UT_TV || defined UTMPX]: Change conditional to [defined
19762         UTMPX || _HAVE_UT_TV].
19763         [_HAVE_UT_TV - 0 || defined UTMPX]: Change conditional to [defined
19764         UTMPX || _HAVE_UT_TV - 0].
19765
19766 2015-08-18  Joseph Myers  <joseph@codesourcery.com>
19767
19768         * sysdeps/mips/dl-machine.h [__mips_isa_rev < 6]: Change
19769         conditionals to [!defined __mips_isa_rev || __mips_isa_rev < 6].
19770         * sysdeps/mips/machine-gmon.h [__mips_isa_rev < 6]: Likewise.
19771
19772 2015-08-18  Carlos Eduardo Seo  <cseo@linux.vnet.ibm.com>
19773
19774         * sysdeps/powerpc/dl-procinfo.c:
19775         (_dl_powerpc_cap_flags): Added missing strings for some
19776         hwcap features.
19777         * sysdeps/powerpc/dl-procinfo.h: Updated hwcap bit count.
19778
19779 2015-08-18  Paul Eggert  <eggert@cs.ucla.edu>
19780
19781         Port the 0x7efe...feff pattern to GCC 6.
19782         See Steve Ellcey's bug report in:
19783         https://sourceware.org/ml/libc-alpha/2015-07/msg00673.html
19784         * string/memrchr.c (MEMRCHR):
19785         * string/rawmemchr.c (RAWMEMCHR):
19786         * string/strchr.c (strchr):
19787         * string/strchrnul.c (STRCHRNUL):
19788         Rewrite code to avoid issues with signed shift overflow.
19789
19790 2015-08-18  H.J. Lu  <hongjiu.lu@intel.com>
19791
19792         * sysdeps/x86/cpu-features.c (init_cpu_features): Check
19793         whether cpuid is available only if HAS_CPUID is 0.
19794         * sysdeps/x86/cpu-features.h (HAS_CPUID): New.
19795         (HAS_I586): Likewise.
19796         (HAS_I686): Likewise.
19797
19798 2015-08-18  Zack Weinberg  <zackw@panix.com>
19799
19800         * misc/Versions (libc): Add GLIBC_2.23.
19801
19802 2015-08-18  Alan Modra  <amodra@gmail.com>
19803
19804         [BZ #18421]
19805         * sysdeps/hppa/start.S [SHARED]: Use .section .data.rel.ro and define
19806         .Lp__global.
19807         (_start): Load %dp via .Lp__global.
19808         [!SHARED]: Use .section .rodata.
19809
19810 2015-08-18  Mike Frysinger  <vapier@gentoo.org>
19811
19812         * sysdeps/unix/sysv/linux/hppa/bits/timerfd.h: New file.
19813         * sysdeps/unix/sysv/linux/hppa/sys/timerfd.h: Delete.
19814
19815 2015-08-18  Mike Frysinger  <vapier@gentoo.org>
19816
19817         * sysdeps/unix/sysv/linux/hppa/bits/signalfd.h: New file.
19818         * sysdeps/unix/sysv/linux/hppa/sys/signalfd.h: Delete.
19819
19820 2015-08-18  Mike Frysinger  <vapier@gentoo.org>
19821
19822         * sysdeps/unix/sysv/linux/hppa/bits/inotify.h: New file.
19823         * sysdeps/unix/sysv/linux/hppa/sys/inotify.h: Delete.
19824
19825 2015-08-18  Mike Frysinger  <vapier@gentoo.org>
19826
19827         * sysdeps/unix/sysv/linux/hppa/bits/eventfd.h: New file.
19828         * sysdeps/unix/sysv/linux/hppa/sys/eventfd.h: Delete.
19829
19830 2015-08-18  Mike Frysinger  <vapier@gentoo.org>
19831
19832         * sysdeps/unix/sysv/linux/hppa/bits/epoll.h: New file.
19833         * sysdeps/unix/sysv/linux/hppa/sys/epoll.h: Delete.
19834
19835 2015-08-18  Mike Frysinger  <vapier@gentoo.org>
19836
19837         * sysdeps/unix/sysv/linux/hppa/bits/sigaction.h (SA_RESETHAND,
19838         SA_NODEFER, SA_RESTART): Define when __USE_XOPEN2K8 is defined.
19839
19840 2015-08-18  Mike Frysinger  <vapier@gentoo.org>
19841
19842         * sysdeps/unix/sysv/linux/hppa/bits/shm.h (SHM_EXEC): Define.
19843
19844 2015-08-18  Mike Frysinger  <vapier@gentoo.org>
19845
19846         * sysdeps/unix/sysv/linux/hppa/bits/atomic.h: Delete
19847         kernel-features.h include.  Delete __ASSUME_LWS_CAS checks.
19848         * sysdeps/unix/sysv/linux/hppa/kernel-features.h
19849         (__ASSUME_LWS_CAS): Delete.
19850
19851 2015-08-18  Mike Frysinger  <vapier@gentoo.org>
19852
19853         * sysdeps/hppa/configure.ac: Delete binutils tls checks.
19854         * sysdeps/hppa/configure: Regenerated.
19855         * sysdeps/hppa/dl-machine.h: Delete USE_TLS and USE___THREAD checks.
19856         * sysdeps/hppa/libc-tls.c: Delete USE_TLS checks.
19857         * sysdeps/hppa/nptl/tls.h: Likewise.
19858
19859 2015-08-17  Joseph Myers  <joseph@codesourcery.com>
19860
19861         [BZ #18823]
19862         * math/s_csqrt.c (__csqrt): Increase threshold and scale factor
19863         for scaling up small arguments.
19864         * math/s_csqrtf.c (__csqrtf): Likewise.
19865         * math/s_csqrtl.c (__csqrtl): Likewise.
19866         * math/auto-libm-test-in: Add more tests of csqrt.
19867         * math/auto-libm-test-out: Regenerated.
19868
19869 2015-08-17  Andreas Schwab  <schwab@suse.de>
19870
19871         * sysdeps/unix/sysv/linux/powerpc/Versions (libm): Add empty
19872         version set GLIBC_2.19.
19873
19874 2015-08-16  Zack Weinberg  <zackw@panix.com>
19875
19876         [BZ #18681]
19877         * misc/regexp.h: This interface is no longer supported.
19878         Remove all contents, leaving only an #error directive.
19879         * misc/regexp.c (loc1, loc2, locs, step, advance):
19880         Demote to compatibility symbols.
19881
19882 2015-08-15  Paul Pluzhnikov  <ppluzhnikov@google.com>
19883
19884         [BZ #18084]
19885         * debug/tst-backtrace2.c (do_test): Add test for BZ #18084.
19886         * sysdeps/arm/backtrace.c (__backtrace): Handle size <= 0.
19887         * sysdeps/i386/backtrace.c (__backtrace): Likewise.
19888         * sysdeps/m68k/backtrace.c (__backtrace): Likewise.
19889         * sysdeps/microblaze/backtrace.c (__backtrace): Likewise.
19890         * sysdeps/s390/s390-32/backtrace.c (__backtrace): Likewise.
19891         * sysdeps/s390/s390-64/backtrace.c (__backtrace): Likewise.
19892         * sysdeps/sparc/backtrace.c (__backtrace): Likewise.
19893         * sysdeps/x86_64/backtrace.c (__backtrace): Likewise.
19894
19895 2015-08-15  Zack Weinberg  <zackw@panix.com>
19896
19897         [BZ #18795]
19898         * string/bits/string3.h (stpncpy): Call __stpncpy_chk if the
19899         buffer length is known to be too large, not if it's known to be
19900         small enough.
19901         * debug/tst-chk1.c (do_test): Do all tests for catching a buffer
19902         overflow at runtime, involving a length parameter, twice: once
19903         with a compile-time constant length parameter, once without.
19904
19905 2015-08-14  Joseph Myers  <joseph@codesourcery.com>
19906
19907         [BZ #18824]
19908         * sysdeps/ieee754/dbl-64/s_fma.c (__fma): Increase threshold for
19909         scaling x * y up instead of down.
19910         * sysdeps/ieee754/ldbl-128/s_fmal.c (__fmal): Likewise.
19911         * sysdeps/ieee754/ldbl-96/s_fmal.c (__fmal): Likewise.
19912         * math/auto-libm-test-in: Add more tests of fma.
19913         * math/auto-libm-test-out: Regenerated.
19914
19915 2015-08-14  Paul Pluzhnikov  <ppluzhnikov@google.com>
19916
19917         * sysdeps/x86_64/fpu/libm-test-ulps: Regenerated.
19918
19919 2015-08-14  Siddhesh Poyarekar  <siddhesh@redhat.com>
19920
19921         * sysdeps/x86_64/fpu/multiarch/s_floorf.S (__floorf): Remove
19922         unnecessary movq.
19923         * sysdeps/x86_64/fpu/multiarch/s_nearbyint.S (__nearbyint):
19924         Likewise.
19925
19926 2015-08-13  Joseph Myers  <joseph@codesourcery.com>
19927
19928         * math/auto-libm-test-in: Add more tests of acos, acosh, asin,
19929         asinh, atan, atan2, atanh, cabs, cbrt, cosh, csqrt, erf, erfc,
19930         exp, exp2, lgamma, log, log1p, log2, pow, sin, sincos, tan, tanh
19931         and tgamma.
19932         * math/auto-libm-test-out: Regenerated.
19933         * sysdeps/i386/fpu/libm-test-ulps: Update.
19934         * sysdeps/x86_64/fpu/libm-test-ulps: Likewise.
19935
19936         [BZ #16520]
19937         * sysdeps/ieee754/dbl-64/s_tanh.c: Include <float.h>.
19938         (__tanh): Force underflow exception for arguments with small
19939         absolute value.
19940         * sysdeps/ieee754/flt-32/s_tanhf.c: Include <float.h>.
19941         (__tanhf): Force underflow exception for arguments with small
19942         absolute value.
19943         * sysdeps/ieee754/ldbl-128/s_tanhl.c: Include <float.h>.
19944         (__tanhl): Force underflow exception for arguments with small
19945         absolute value.
19946         * sysdeps/ieee754/ldbl-128ibm/s_tanhl.c: Include <float.h>.
19947         (__tanhl): Force underflow exception for arguments with small
19948         absolute value.
19949         * sysdeps/ieee754/ldbl-96/s_tanhl.c: Include <float.h>.
19950         (__tanhl): Force underflow exception for arguments with small
19951         absolute value.
19952         * math/auto-libm-test-in: Add more tests of tanh.
19953         * math/auto-libm-test-out: Regenerated.
19954         * sysdeps/i386/fpu/libm-test-ulps: Update.
19955
19956 2015-08-13  H.J. Lu  <hongjiu.lu@intel.com>
19957
19958         * sysdeps/x86/cpu-features.c (init_cpu_features): Call
19959         __get_cpuid_max if not compiling for i586, i686 nor x86-64.
19960
19961 2015-08-13  H.J. Lu  <hongjiu.lu@intel.com>
19962
19963         * sysdeps/unix/sysv/linux/x86/elision-conf.h: Don't include
19964         <cpuid.h>.
19965
19966 2015-08-13  H.J. Lu  <hongjiu.lu@intel.com>
19967
19968         * sysdeps/unix/sysv/linux/x86/elision-conf.c (elision_init):
19969         Replace HAS_RTM with HAS_CPU_FEATURE (RTM).
19970
19971 2015-08-13  H.J. Lu  <hongjiu.lu@intel.com>
19972
19973         * math/Makefile ($(addprefix $(objpfx), $(libm-vec-tests))):
19974         Remove $(objpfx)init-arch.o.
19975         * sysdeps/x86_64/fpu/Makefile (libmvec-support): Remove
19976         init-arch.
19977         * sysdeps/x86_64/fpu/math-tests-arch.h (avx_usable): Removed.
19978         (INIT_ARCH_EXT): Defined as empty.
19979         (CHECK_ARCH_EXT): Replace HAS_XXX with HAS_ARCH_FEATURE (XXX).
19980         * sysdeps/x86_64/fpu/multiarch/svml_d_cos2_core.S: Remove
19981         __init_cpu_features call.  Replace HAS_XXX with
19982         HAS_CPU_FEATURE/HAS_ARCH_FEATURE (XXX).
19983         * sysdeps/x86_64/fpu/multiarch/svml_d_cos4_core.S: Likewise.
19984         * sysdeps/x86_64/fpu/multiarch/svml_d_cos8_core.S: Likewise.
19985         * sysdeps/x86_64/fpu/multiarch/svml_d_exp2_core.S: Likewise.
19986         * sysdeps/x86_64/fpu/multiarch/svml_d_exp4_core.S: Likewise.
19987         * sysdeps/x86_64/fpu/multiarch/svml_d_exp8_core.S: Likewise.
19988         * sysdeps/x86_64/fpu/multiarch/svml_d_log2_core.S: Likewise.
19989         * sysdeps/x86_64/fpu/multiarch/svml_d_log4_core.S: Likewise.
19990         * sysdeps/x86_64/fpu/multiarch/svml_d_log8_core.S: Likewise.
19991         * sysdeps/x86_64/fpu/multiarch/svml_d_pow2_core.S: Likewise.
19992         * sysdeps/x86_64/fpu/multiarch/svml_d_pow4_core.S: Likewise.
19993         * sysdeps/x86_64/fpu/multiarch/svml_d_pow8_core.S: Likewise.
19994         * sysdeps/x86_64/fpu/multiarch/svml_d_sin2_core.S: Likewise.
19995         * sysdeps/x86_64/fpu/multiarch/svml_d_sin4_core.S: Likewise.
19996         * sysdeps/x86_64/fpu/multiarch/svml_d_sin8_core.S: Likewise.
19997         * sysdeps/x86_64/fpu/multiarch/svml_d_sincos2_core.S: Likewise.
19998         * sysdeps/x86_64/fpu/multiarch/svml_d_sincos4_core.S: Likewise.
19999         * sysdeps/x86_64/fpu/multiarch/svml_d_sincos8_core.S: Likewise.
20000         * sysdeps/x86_64/fpu/multiarch/svml_s_cosf16_core.S: Likewise.
20001         * sysdeps/x86_64/fpu/multiarch/svml_s_cosf4_core.S: Likewise.
20002         * sysdeps/x86_64/fpu/multiarch/svml_s_cosf8_core.S: Likewise.
20003         * sysdeps/x86_64/fpu/multiarch/svml_s_expf16_core.S: Likewise.
20004         * sysdeps/x86_64/fpu/multiarch/svml_s_expf4_core.S: Likewise.
20005         * sysdeps/x86_64/fpu/multiarch/svml_s_expf8_core.S: Likewise.
20006         * sysdeps/x86_64/fpu/multiarch/svml_s_logf16_core.S: Likewise.
20007         * sysdeps/x86_64/fpu/multiarch/svml_s_logf4_core.S: Likewise.
20008         * sysdeps/x86_64/fpu/multiarch/svml_s_logf8_core.S: Likewise.
20009         * sysdeps/x86_64/fpu/multiarch/svml_s_powf16_core.S: Likewise.
20010         * sysdeps/x86_64/fpu/multiarch/svml_s_powf4_core.S: Likewise.
20011         * sysdeps/x86_64/fpu/multiarch/svml_s_powf8_core.S: Likewise.
20012         * sysdeps/x86_64/fpu/multiarch/svml_s_sincosf16_core.S: Likewise.
20013         * sysdeps/x86_64/fpu/multiarch/svml_s_sincosf4_core.S: Likewise.
20014         * sysdeps/x86_64/fpu/multiarch/svml_s_sincosf8_core.S: Likewise.
20015         * sysdeps/x86_64/fpu/multiarch/svml_s_sinf16_core.S: Likewise.
20016         * sysdeps/x86_64/fpu/multiarch/svml_s_sinf4_core.S: Likewise.
20017         * sysdeps/x86_64/fpu/multiarch/svml_s_sinf8_core.S: Likewise.
20018
20019 2015-08-13  H.J. Lu  <hongjiu.lu@intel.com>
20020
20021         * sysdeps/i386/i686/fpu/multiarch/e_expf.c: Replace HAS_XXX
20022         with HAS_CPU_FEATURE/HAS_ARCH_FEATURE (XXX).
20023         * sysdeps/i386/i686/fpu/multiarch/s_cosf.c: Likewise.
20024         * sysdeps/i386/i686/fpu/multiarch/s_cosf.c: Likewise.
20025         * sysdeps/i386/i686/fpu/multiarch/s_sincosf.c: Likewise.
20026         * sysdeps/i386/i686/fpu/multiarch/s_sinf.c: Likewise.
20027         * sysdeps/i386/i686/multiarch/ifunc-impl-list.c: Likewise.
20028         * sysdeps/i386/i686/multiarch/s_fma.c: Likewise.
20029         * sysdeps/i386/i686/multiarch/s_fmaf.c: Likewise.
20030         * sysdeps/i386/i686/multiarch/bcopy.S: Remove __init_cpu_features
20031         call.  Merge SHARED and !SHARED.  Add LOAD_GOT_AND_RTLD_GLOBAL_RO.
20032         Use LOAD_FUNC_GOT_EAX to load function address.  Replace HAS_XXX
20033         with HAS_CPU_FEATURE/HAS_ARCH_FEATURE (XXX).
20034         * sysdeps/i386/i686/multiarch/bzero.S: Likewise.
20035         * sysdeps/i386/i686/multiarch/memchr.S: Likewise.
20036         * sysdeps/i386/i686/multiarch/memcmp.S: Likewise.
20037         * sysdeps/i386/i686/multiarch/memcpy.S: Likewise.
20038         * sysdeps/i386/i686/multiarch/memcpy_chk.S: Likewise.
20039         * sysdeps/i386/i686/multiarch/memmove.S: Likewise.
20040         * sysdeps/i386/i686/multiarch/memmove_chk.S: Likewise.
20041         * sysdeps/i386/i686/multiarch/mempcpy.S: Likewise.
20042         * sysdeps/i386/i686/multiarch/mempcpy_chk.S: Likewise.
20043         * sysdeps/i386/i686/multiarch/memrchr.S: Likewise.
20044         * sysdeps/i386/i686/multiarch/memset.S: Likewise.
20045         * sysdeps/i386/i686/multiarch/memset_chk.S: Likewise.
20046         * sysdeps/i386/i686/multiarch/rawmemchr.S: Likewise.
20047         * sysdeps/i386/i686/multiarch/strcasecmp.S: Likewise.
20048         * sysdeps/i386/i686/multiarch/strcat.S: Likewise.
20049         * sysdeps/i386/i686/multiarch/strchr.S: Likewise.
20050         * sysdeps/i386/i686/multiarch/strcmp.S: Likewise.
20051         * sysdeps/i386/i686/multiarch/strcpy.S: Likewise.
20052         * sysdeps/i386/i686/multiarch/strcspn.S: Likewise.
20053         * sysdeps/i386/i686/multiarch/strlen.S: Likewise.
20054         * sysdeps/i386/i686/multiarch/strncase.S: Likewise.
20055         * sysdeps/i386/i686/multiarch/strnlen.S: Likewise.
20056         * sysdeps/i386/i686/multiarch/strrchr.S: Likewise.
20057         * sysdeps/i386/i686/multiarch/strspn.S: Likewise.
20058         * sysdeps/i386/i686/multiarch/wcschr.S: Likewise.
20059         * sysdeps/i386/i686/multiarch/wcscmp.S: Likewise.
20060         * sysdeps/i386/i686/multiarch/wcscpy.S: Likewise.
20061         * sysdeps/i386/i686/multiarch/wcslen.S: Likewise.
20062         * sysdeps/i386/i686/multiarch/wcsrchr.S: Likewise.
20063         * sysdeps/i386/i686/multiarch/wmemcmp.S: Likewise.
20064
20065 2015-08-13  H.J. Lu  <hongjiu.lu@intel.com>
20066
20067         * sysdeps/x86_64/fpu/multiarch/e_asin.c: Replace HAS_XXX with
20068         HAS_CPU_FEATURE/HAS_ARCH_FEATURE (XXX).
20069         * sysdeps/x86_64/fpu/multiarch/e_atan2.c: Likewise.
20070         * sysdeps/x86_64/fpu/multiarch/e_exp.c: Likewise.
20071         * sysdeps/x86_64/fpu/multiarch/e_log.c: Likewise.
20072         * sysdeps/x86_64/fpu/multiarch/e_pow.c: Likewise.
20073         * sysdeps/x86_64/fpu/multiarch/s_atan.c: Likewise.
20074         * sysdeps/x86_64/fpu/multiarch/s_fma.c: Likewise.
20075         * sysdeps/x86_64/fpu/multiarch/s_fmaf.c: Likewise.
20076         * sysdeps/x86_64/fpu/multiarch/s_sin.c: Likewise.
20077         * sysdeps/x86_64/fpu/multiarch/s_tan.c: Likewise.
20078         * sysdeps/x86_64/fpu/multiarch/s_ceil.S: Use
20079         LOAD_RTLD_GLOBAL_RO_RDX and HAS_CPU_FEATURE (SSE4_1).
20080         * sysdeps/x86_64/fpu/multiarch/s_ceilf.S: Likewise.
20081         * sysdeps/x86_64/fpu/multiarch/s_floor.S: Likewise.
20082         * sysdeps/x86_64/fpu/multiarch/s_floorf.S: Likewise.
20083         * sysdeps/x86_64/fpu/multiarch/s_nearbyint.S : Likewise.
20084         * sysdeps/x86_64/fpu/multiarch/s_nearbyintf.S: Likewise.
20085         * sysdeps/x86_64/fpu/multiarch/s_rintf.S: Likewise.
20086         * sysdeps/x86_64/fpu/multiarch/s_rintf.S : Likewise.
20087         * sysdeps/x86_64/multiarch/ifunc-impl-list.c: Likewise.
20088         * sysdeps/x86_64/multiarch/sched_cpucount.c: Likewise.
20089         * sysdeps/x86_64/multiarch/strstr.c: Likewise.
20090         * sysdeps/x86_64/multiarch/memmove.c: Likewise.
20091         * sysdeps/x86_64/multiarch/memmove_chk.c: Likewise.
20092         * sysdeps/x86_64/multiarch/test-multiarch.c: Likewise.
20093         * sysdeps/x86_64/multiarch/memcmp.S: Remove __init_cpu_features
20094         call.  Add LOAD_RTLD_GLOBAL_RO_RDX.  Replace HAS_XXX with
20095         HAS_CPU_FEATURE/HAS_ARCH_FEATURE (XXX).
20096         * sysdeps/x86_64/multiarch/memcpy.S: Likewise.
20097         * sysdeps/x86_64/multiarch/memcpy_chk.S: Likewise.
20098         * sysdeps/x86_64/multiarch/mempcpy.S: Likewise.
20099         * sysdeps/x86_64/multiarch/mempcpy_chk.S: Likewise.
20100         * sysdeps/x86_64/multiarch/memset.S: Likewise.
20101         * sysdeps/x86_64/multiarch/memset_chk.S: Likewise.
20102         * sysdeps/x86_64/multiarch/strcat.S: Likewise.
20103         * sysdeps/x86_64/multiarch/strchr.S: Likewise.
20104         * sysdeps/x86_64/multiarch/strcmp.S: Likewise.
20105         * sysdeps/x86_64/multiarch/strcpy.S: Likewise.
20106         * sysdeps/x86_64/multiarch/strcspn.S: Likewise.
20107         * sysdeps/x86_64/multiarch/strspn.S: Likewise.
20108         * sysdeps/x86_64/multiarch/wcscpy.S: Likewise.
20109         * sysdeps/x86_64/multiarch/wmemcmp.S: Likewise.
20110
20111 2015-08-13  H.J. Lu  <hongjiu.lu@intel.com>
20112
20113         * sysdeps/i386/dl-machine.h: Include <cpu-features.c>.
20114         (dl_platform_init): Call init_cpu_features.
20115         * sysdeps/i386/dl-procinfo.c (_dl_x86_cpu_features): New.
20116         * sysdeps/i386/i686/cacheinfo.c
20117         (DISABLE_PREFERRED_MEMORY_INSTRUCTION): Removed.
20118         * sysdeps/i386/i686/multiarch/Makefile (aux): Remove init-arch.
20119         * sysdeps/i386/i686/multiarch/Versions: Removed.
20120         * sysdeps/i386/i686/multiarch/ifunc-defines.sym (KIND_OFFSET):
20121         Removed.
20122         * sysdeps/i386/ldsodefs.h: Include <cpu-features.h>.
20123         * sysdeps/unix/sysv/linux/x86/Makefile
20124         (libpthread-sysdep_routines): Remove init-arch.
20125         * sysdeps/unix/sysv/linux/x86_64/dl-procinfo.c: Include
20126         <sysdeps/x86_64/dl-procinfo.c> instead of
20127         sysdeps/generic/dl-procinfo.c>.
20128         * sysdeps/x86/Makefile [$(subdir) == csu] (gen-as-const-headers):
20129         Add cpu-features-offsets.sym and rtld-global-offsets.sym.
20130         [$(subdir) == elf] (sysdep-dl-routines): Add dl-get-cpu-features.
20131         [$(subdir) == elf] (tests): Add tst-get-cpu-features.
20132         [$(subdir) == elf] (tests-static): Add
20133         tst-get-cpu-features-static.
20134         * sysdeps/x86/Versions: New file.
20135         * sysdeps/x86/cpu-features-offsets.sym: Likewise.
20136         * sysdeps/x86/cpu-features.c: Likewise.
20137         * sysdeps/x86/cpu-features.h: Likewise.
20138         * sysdeps/x86/dl-get-cpu-features.c: Likewise.
20139         * sysdeps/x86/libc-start.c: Likewise.
20140         * sysdeps/x86/rtld-global-offsets.sym: Likewise.
20141         * sysdeps/x86/tst-get-cpu-features-static.c: Likewise.
20142         * sysdeps/x86/tst-get-cpu-features.c: Likewise.
20143         * sysdeps/x86_64/dl-procinfo.c: Likewise.
20144         * sysdeps/x86_64/cacheinfo.c (__cpuid_count): Removed.
20145         Assume USE_MULTIARCH is defined and don't check it.
20146         (is_intel): Replace __cpu_features with GLRO(dl_x86_cpu_features).
20147         (is_amd): Likewise.
20148         (max_cpuid): Likewise.
20149         (intel_check_word): Likewise.
20150         (__cache_sysconf): Don't call __init_cpu_features.
20151         (__x86_preferred_memory_instruction): Removed.
20152         (init_cacheinfo): Don't call __init_cpu_features. Replace
20153         __cpu_features with GLRO(dl_x86_cpu_features).
20154         * sysdeps/x86_64/dl-machine.h: <cpu-features.c>.
20155         (dl_platform_init): Call init_cpu_features.
20156         * sysdeps/x86_64/ldsodefs.h: Include <cpu-features.h>.
20157         * sysdeps/x86_64/multiarch/Makefile (aux): Remove init-arch.
20158         * sysdeps/x86_64/multiarch/Versions: Removed.
20159         * sysdeps/x86_64/multiarch/cacheinfo.c: Likewise.
20160         * sysdeps/x86_64/multiarch/init-arch.c: Likewise.
20161         * sysdeps/x86_64/multiarch/ifunc-defines.sym (KIND_OFFSET):
20162         Removed.
20163         * sysdeps/x86_64/multiarch/init-arch.h: Rewrite.
20164
20165 2015-08-12  Paul Pluzhnikov  <ppluzhnikov@google.com>
20166
20167         [BZ #18820]
20168         * libio/Makefile (test-fmemopen-mem): New test.
20169         * libio/test-fmemopen.c (do_bz18820): New test.
20170         * libio/fmemopen.c (__fmemopen): Fix memory leak.
20171         * libio/oldfmemopen.c (__old_fmemopen): Likewise.
20172
20173 2015-08-12  Paul Pluzhnikov  <ppluzhnikov@google.com>
20174
20175         [BZ #16734]
20176         * libio/libioP.h (ROUND_TO_PAGE, ALLOC_BUF, ALLOC_WBUF): Delete.
20177         (FREE_BUF): Delete.
20178         * libio/libio.h (_IO_FILE_complete): Delete unused _freeres_size.
20179         * libio/genops.c (_IO_setb): Use malloc and free directly.
20180         (_IO_default_doallocate, _IO_default_finish): Likewise.
20181         ( _IO_unbuffer_all): Likewise.
20182         ( libc_freeres_fn): Likewise.
20183         * libio/filedoalloc.c (_IO_file_doallocate): Likewise.
20184         * libio/wfiledoalloc.c (_IO_wfile_doallocate): Likewise.
20185         * libio/wgenops.c (_IO_wsetb, _IO_wdefault_finish): Likewise.
20186         (_IO_wdefault_doallocate): Likewise.
20187
20188 2015-08-11  Paul Pluzhnikov  <ppluzhnikov@google.com>
20189
20190         [BZ #18086]
20191         * sysdeps/posix/nice.c (nice): Restore old errno.
20192         * posix/tst-nice.c (do_test): Add test for BZ #18086.
20193
20194 2015-08-10  Ondrej Bilka  <neleai@seznam.cz>
20195
20196         * sysdeps/powerpc/powerpc64/multiarch/stpcpy.c: Fix ifunc.
20197
20198 2015-08-10  Adhemerval Zanella  <adhemerval.zanella@linaro.org>
20199
20200         * sysdeps/powerpc/powerpc64/power7/memmove.S (bcopy): Changing to
20201         __bcopy and add a weak_alias to bcopy.
20202         * sysdeps/powerpc/powerpc64/power7/strstr.S (strstr): Use __strnlen
20203         for static build.
20204
20205         * string/stpcpy.c (__stpcpy): Use STPCPY to redefine symbol name and
20206         cleanup macro usage.
20207         * string/strcpy.c (strcpt): Use STRCPY to redefine symbol name.
20208         * sysdeps/powerpc/powerpc64/multiarch/stpcpy-power7.S: Remove file.
20209         * sysdeps/powerpc/powerpc64/multiarch/stpcpy-ppc64.S: Likewise.
20210         * sysdeps/powerpc/powerpc64/multiarch/strcpy-power7.S: Likewise.
20211         * sysdeps/powerpc/powerpc64/multiarch/strcpy-ppc64.S: Likewise.
20212         * sysdeps/powerpc/powerpc64/power7/stpcpy.S: Likewise.
20213         * sysdeps/powerpc/powerpc64/power7/strcpy.S: Likewise.
20214         * sysdeps/powerpc/powerpc64/power7/strcpy.c: Likewise.
20215         * sysdeps/powerpc/powerpc64/stpcpy.S: Likewise.
20216         * sysdeps/powerpc/powerpc64/strcpy.S: Likewise.
20217         * sysdeps/powerpc/powerpc64/multiarch/stpcpy.c
20218         [SHARED && IS_IN (libc)]: Include <string/strcpy.c>.
20219         * sysdeps/powerpc/powerpc64/multiarch/stpcpy.c
20220         [SHARED && IS_IN (libc)]: Include <string/stpcpy.c>.
20221         * sysdeps/powerpc/powerpc64/multiarch/stpcpy-power7.c: New file.
20222         * sysdeps/powerpc/powerpc64/multiarch/stpcpy-ppc64.c: Likewise.
20223         * sysdeps/powerpc/powerpc64/multiarch/strcpy-power7.c: Likewise.
20224         * sysdeps/powerpc/powerpc64/multiarch/strcpy-ppc64.c: Likewise.
20225         * sysdeps/powerpc/powerpc64/power7/strcpy.c: Likewise.
20226
20227         * sysdeps/powerpc/powerpc64/power7/strnlen.S (__strnlen): Add
20228         libc_hidden_def.
20229         (strnlen): Remove libc_hidden_builtin_def and add libc_hidden_def.
20230
20231         * sysdeps/powerpc/powerpc64/power7/Makefile [$(subdir) = string]
20232         (sysdep_routines): Add strstr-ppc64.
20233         * sysdeps/powerpc/powerpc64/power7/strstr-ppc64.c: New file.
20234
20235 2015-08-10  Maxim Ostapenko  <m.ostapenko@partner.samsung.com>
20236
20237         [BZ #18778]
20238         * elf/Makefile (tests): Add Add tst-nodelete2.
20239         (modules-names): Add tst-nodelete2mod.
20240         (tst-nodelete2mod.so-no-z-defs): New.
20241         ($(objpfx)tst-nodelete2): Likewise.
20242         ($(objpfx)tst-nodelete2.out): Likewise.
20243         (LDFLAGS-tst-nodelete2): Likewise.
20244         * elf/dl-close.c (_dl_close_worker): Move DF_1_NODELETE clearing
20245         out of loop through all loaded libraries.
20246         * elf/tst-nodelete2.c: New file.
20247         * elf/tst-nodelete2mod.c: Likewise.
20248         * elf/tst-znodelete-zlib.cc: Delete.
20249
20250 2015-08-11  Andreas Schwab  <schwab@suse.de>
20251
20252         * sysdeps/unix/sysv/linux/openat.c (OPENAT_NOT_CANCEL): Don't define.
20253         * sysdeps/unix/sysv/linux/wordsize-64/openat.c
20254         (__openat64_nocancel): Likewise.
20255
20256 2015-08-11  Joseph Myers  <joseph@codesourcery.com>
20257
20258         * math/auto-libm-test-in: Add more tests of acosh, asin, asinh,
20259         atanh, cabs, carg, cbrt, cosh, csqrt, erf, erfc, exp, exp10,
20260         expm1, hypot, log, log10, log1p, log2, pow, sinh, tan and tgamma.
20261         * math/auto-libm-test-out: Regenerated.
20262         * sysdeps/i386/fpu/libm-test-ulps: Update.
20263         * sysdeps/x86_64/fpu/libm-test-ulps: Likewise.
20264
20265 2015-08-10  Joseph Myers  <joseph@codesourcery.com>
20266
20267         [BZ #18790]
20268         * sysdeps/ieee754/ldbl-128ibm/s_tanhl.c (__tanhl): Increase
20269         threshold for returning +/- 1.
20270         * math/auto-libm-test-in: Add more tests of tanh.
20271         * math/auto-libm-test-out: Regenerated.
20272         * sysdeps/i386/fpu/libm-test-ulps: Update.
20273
20274 2015-08-10  Andreas Schwab  <schwab@suse.de>
20275
20276         [BZ #18781]
20277         * sysdeps/unix/sysv/linux/openat.c (__OPENAT) [MORE_OFLAGS]: Add
20278         MORE_OFLAGS to oflag.
20279         * io/test-lfs.c (do_test): Test openat64.
20280
20281 2015-08-10  Joseph Myers  <joseph@codesourcery.com>
20282
20283         [BZ #18789]
20284         * sysdeps/ieee754/ldbl-128ibm/e_sinhl.c (__ieee754_sinhl): Use
20285         smaller threshold for returning the argument.
20286         * math/auto-libm-test-in: Add more tests of sinh.
20287         * math/auto-libm-test-out: Regenerated.
20288         * sysdeps/i386/fpu/libm-test-ulps: Update.
20289
20290 2015-08-09  H.J. Lu  <hongjiu.lu@intel.com>
20291
20292         [BZ #18674]
20293         * sysdeps/i386/tst-auditmod3b.c (la_objsearch): Add a missing
20294         break.
20295
20296 2015-08-09  Andreas Schwab  <schwab@linux-m68k.org>
20297
20298         * timezone/Makefile (tzbases, tzlinks, tzfiles): Don't define.
20299         (generated): Don't add $(addprefix z.,$(tzfiles)).
20300
20301 2015-08-09  Mike Frysinger  <vapier@gentoo.org>
20302
20303         * nptl/tst-cancel-wrappers.sh: Change 3rd arg to gensub to 1.
20304         * scripts/sysd-rules.awk: Likewise.
20305
20306 2015-08-09  Mike Frysinger  <vapier@gentoo.org>
20307
20308         * iconvdata/tst-tables.sh: Change echo -n to printf.
20309         * nss/db-Makefile: Likewise.
20310         * posix/tst-getconf.sh: Likewise.
20311         * stdio-common/tst-unbputc.sh: Likewise.
20312
20313 2015-08-09  Mike Frysinger  <vapier@gentoo.org>
20314
20315         * sysdeps/unix/sysv/linux/hppa/bits/mman.h [__USE_MISC]: Move all
20316         MADV_*_PAGES defines behind this feature check.
20317
20318 2015-08-09  John David Anglin  <danglin@gcc.gnu.org>
20319
20320         [BZ #18480]
20321         * sysdeps/unix/sysv/linux/hppa/sysdep.h (LOAD_ARGS_0, LOAD_ARGS_1,
20322         LOAD_ARGS_2, LOAD_ARGS_3, LOAD_ARGS_4, LOAD_ARGS_5, LOAD_ARGS_6):
20323         Define.
20324         (LOAD_REGS_0, LOAD_REGS_1, LOAD_REGS_2, LOAD_REGS_3, LOAD_REGS_4,
20325         LOAD_REGS_5, LOAD_REGS_6): Update.
20326         (INTERNAL_SYSCALL): Update using new LOAD defines.
20327         (INTERNAL_SYSCALL_NCS): Likewise.
20328         * sysdeps/unix/sysv/linux/hppa/syscall.c (syscall): Likewise.
20329
20330 2015-08-08  Paul Pluzhnikov  <ppluzhnikov@google.com>
20331
20332         [BZ #16734]
20333         * libio/genops.c (_IO_unbuffer_all): Free wide buffer as well.
20334
20335 2015-08-08  Paul Pluzhnikov  <ppluzhnikov@google.com>
20336
20337         [BZ #17905]
20338         * catgets/Makefile (tst-catgets-mem): New test.
20339         * catgets/catgets.c (catopen): Don't use unbounded alloca.
20340         * catgets/open_catalog.c (__open_catalog): Likewise.
20341         * catgets/tst-catgets.c (do_bz17905): Test unbounded alloca.
20342
20343 2015-08-08  John David Anglin  <danglin@gcc.gnu.org>
20344
20345         [BZ #18787]
20346         * sysdeps/unix/sysv/linux/hppa/bits/atomic.h (_LWS_CLOBBER): Revise
20347         clobber registers.
20348         (atomic_compare_and_exchange_val_acq): Use register asms to assign
20349         operand registers.  Use register %r20 for EAGAIN and EDEADLOCK checks.
20350         Cast return to __typeof (oldval).
20351
20352 2015-08-08  Mike Frysinger  <vapier@gentoo.org>
20353
20354         * sysdeps/unix/sysv/linux/microblaze/sysdep.h: Wrap the whole file
20355         in _LINUX_MICROBLAZE_SYSDEP_H defines.  Include sysdeps/unix/sysdep.h
20356         and delete sys/syscall.h include.
20357
20358 2015-08-07  Joseph Myers  <joseph@codesourcery.com>
20359
20360         [BZ #16517]
20361         * sysdeps/ieee754/dbl-64/s_tan.c: Include <float.h>.
20362         (tan): Force underflow exception for arguments with small absolute
20363         value.
20364         * sysdeps/ieee754/flt-32/k_tanf.c: Include <float.h>.
20365         (__kernel_tanf): Force underflow exception for arguments with
20366         small absolute value.
20367         * sysdeps/ieee754/ldbl-128/k_tanl.c: Include <float.h>.
20368         (__kernel_tanl): Force underflow exception for arguments with
20369         small absolute value.
20370         * sysdeps/ieee754/ldbl-128ibm/k_tanl.c: Include <float.h>.
20371         (__kernel_tanl): Force underflow exception for arguments with
20372         small absolute value.
20373         * sysdeps/ieee754/ldbl-96/k_tanl.c: Include <float.h>.
20374         (__kernel_tanl): Force underflow exception for arguments with
20375         small absolute value.
20376         * math/auto-libm-test-in: Add more tests of tan.
20377         * math/auto-libm-test-out: Regenerated.
20378
20379 2015-08-07  Samuel Thibault  <samuel.thibault@ens-lyon.org>
20380
20381         Fix sysdeps/i386/fpu/s_scalbn.S build
20382
20383         * math/Versions (libc: GLIBC_2_22): New (empty) version set.
20384
20385 2015-08-07  Mike Frysinger  <vapier@gentoo.org>
20386
20387         * sysdeps/hppa/dl-symaddr.c (_dl_symbol_address): Add rtld_hidden_def.
20388
20389 2015-08-07  Samuel Thibault  <samuel.thibault@ens-lyon.org>
20390
20391         Fix gcrt0.o compilation
20392
20393         When static-start-installed-name is different from
20394         start-installed-name, we must not use the shared objects.
20395
20396         * csu/Makefile
20397         (extra-objs): Add gmon-start.o when building shared library and
20398         $(static-start-installed-name) is different from
20399         $(start-installed-name).
20400         $(objpfx)g$(static-start-installed-name): When building shared
20401         library and $(static-start-installed-name) is different from
20402         $(static-start-installed-name), revert to non-shared rule,
20403         i.e. using $(objpfx)% and gmon-start.o.
20404
20405 2015-08-06  Joseph Myers  <joseph@codesourcery.com>
20406
20407         [BZ #16519]
20408         * sysdeps/ieee754/dbl-64/e_sinh.c: Include <float.h>.
20409         (__ieee754_sinh): Force underflow exception for arguments with
20410         small absolute value.
20411         * sysdeps/ieee754/flt-32/e_sinhf.c: Include <float.h>.
20412         (__ieee754_sinhf): Force underflow exception for arguments with
20413         small absolute value.
20414         * sysdeps/ieee754/ldbl-128/e_sinhl.c: Include <float.h>.
20415         (__ieee754_sinhl): Force underflow exception for arguments with
20416         small absolute value.
20417         * sysdeps/ieee754/ldbl-128ibm/e_sinhl.c: Include <float.h>.
20418         (__ieee754_sinhl): Force underflow exception for arguments with
20419         small absolute value.
20420         * sysdeps/ieee754/ldbl-96/e_sinhl.c: Include <float.h>.
20421         (__ieee754_sinhl): Force underflow exception for arguments with
20422         small absolute value.
20423         * math/auto-libm-test-in: Add more tests of sinh.
20424         * math/auto-libm-test-out: Regenerated.
20425         * sysdeps/i386/fpu/libm-test-ulps: Update.
20426
20427 2015-08-06  Paul Pluzhnikov  <ppluzhnikov@google.com>
20428
20429         * libio/oldfileops.c: Include unistd.h.
20430
20431 2015-08-06  Mike Frysinger  <vapier@gentoo.org>
20432
20433         * stdlib/isomac.c: Include ctype.h.
20434
20435 2015-08-06  Arjun Shankar  <arjun.is@lostca.se>
20436
20437         * dirent/tst-seekdir.c (main): Converted to ...
20438         (do_test): ... this.
20439         (TEST_FUNCTION): New macro.
20440         Include test-skeleton.c.
20441         * elf/tst-dlmodcount.c (main): Converted to ...
20442         (do_test): ... this.
20443         (TEST_FUNCTION): New macro.
20444         Include test-skeleton.c.
20445         * elf/tst-order-main.c (main): Converted to ...
20446         (do_test): ... this.
20447         (TEST_FUNCTION): New macro.
20448         Include test-skeleton.c.
20449         * elf/tst-pie2.c (main): Converted to ...
20450         (do_test): ... this.
20451         (TEST_FUNCTION): New macro.
20452         Include test-skeleton.c.
20453         * inet/tst-ether_aton.c (main): Converted to ...
20454         (do_test): ... this.
20455         (TEST_FUNCTION): New macro.
20456         Include test-skeleton.c.
20457         * misc/tst-mntent.c (main): Converted to ...
20458         (do_test): ... this.
20459         (TEST_FUNCTION): New macro.
20460         Include test-skeleton.c.
20461         * misc/tst-tsearch.c (main): Converted to ...
20462         (do_test): ... this.
20463         (TEST_FUNCTION): New macro.
20464         Include test-skeleton.c.
20465         * posix/tst-regexloc.c (main): Converted to ...
20466         (do_test): ... this.
20467         (TEST_FUNCTION): New macro.
20468         Include test-skeleton.c.
20469         * resolv/tst-aton.c (main): Converted to ...
20470         (do_test): ... this.
20471         (TEST_FUNCTION): New macro.
20472         Include test-skeleton.c.
20473         * stdio-common/test-fwrite.c (main): Converted to ...
20474         (do_test): ... this.
20475         (TEST_FUNCTION): New macro.
20476         Include test-skeleton.c.
20477         * stdio-common/tst-ferror.c (main): Converted to ...
20478         (do_test): ... this.
20479         (TEST_FUNCTION): New macro.
20480         Include test-skeleton.c.
20481         * stdio-common/tst-printf.c (main): Converted to ...
20482         (do_test): ... this.
20483         (TEST_FUNCTION): New macro.
20484         Include test-skeleton.c.
20485         * stdio-common/tst-printfsz.c (main): Converted to ...
20486         (do_test): ... this.
20487         (TEST_FUNCTION): New macro.
20488         Include test-skeleton.c.
20489         * stdlib/tst-strtod.c (main): Converted to ...
20490         (do_test): ... this.
20491         (TEST_FUNCTION): New macro.
20492         Include test-skeleton.c.
20493         * string/tst-strlen.c (main): Converted to ...
20494         (do_test): ... this.
20495         (TEST_FUNCTION): New macro.
20496         Include test-skeleton.c.
20497         * string/tst-svc.c (main): Converted to ...
20498         (do_test): ... this.
20499         (TEST_FUNCTION): New macro.
20500         Include test-skeleton.c.
20501         * time/tst-strptime.c (main): Converted to ...
20502         (do_test): ... this.
20503         (TEST_FUNCTION): New macro.
20504         Include test-skeleton.c.
20505         * timezone/tst-timezone.c (main): Converted to ...
20506         (do_test): ... this.
20507         (TEST_FUNCTION): New macro.
20508         Include test-skeleton.c.
20509
20510 2015-08-05  Zack Weinberg  <zackw@panix.com>
20511
20512         * misc/regexp.h: Update comments.
20513
20514 2015-08-05  Andreas Schwab  <schwab@linux-m68k.org>
20515
20516         [BZ #18635]
20517         * sysdeps/unix/sysv/linux/m68k/m680x0/makecontext.S: Add nop
20518         before return label.
20519
20520 2015-08-05  H.J. Lu  <hongjiu.lu@intel.com>
20521
20522         [BZ #18661]
20523         * sysdeps/x86_64/fpu/s_cosf.S (__cosf): Align stack to 16 bytes
20524         when calling __errno_location.
20525         * sysdeps/x86_64/fpu/s_sincosf.S (__sincosf): Likewise.
20526         * sysdeps/x86_64/fpu/s_sinf.S (__sinf): Likewise.
20527
20528 2015-08-05  H.J. Lu  <hongjiu.lu@intel.com>
20529
20530         [BZ #18661]
20531         * sysdeps/unix/sysv/linux/x86_64/lowlevellock.S
20532         (__lll_timedwait_tid): Align stack to 16 bytes when calling
20533         __gettimeofday.
20534
20535 2015-08-05  H.J. Lu  <hongjiu.lu@intel.com>
20536
20537         [BZ #18661]
20538         * sysdeps/unix/sysv/linux/x86_64/__start_context.S
20539         (__start_context): Don't use pop to restore %rdi so that stack
20540         is aligned to 16 bytes when calling __setcontext.
20541
20542 2015-08-05  H.J. Lu  <hongjiu.lu@intel.com>
20543
20544         * sysdeps/x86_64/multiarch/memcpy-sse2-unaligned.S: Compile
20545         only for libc.
20546         * sysdeps/x86_64/multiarch/strcmp-sse2-unaligned.S: Likewise.
20547
20548 2015-08-05  Wilco Dijkstra  <wdijkstr@arm.com>
20549
20550         * string/string.h: (mempcpy): Redirect to __mempcpy_inline.
20551         (__mempcpy): Likewise.  (__mempcpy_inline): New inline function.
20552         * sysdeps/sparc/bits/string.h: (_HAVE_STRING_ARCH_mempcpy): Define.
20553
20554 2015-08-05  Wilco Dijkstra  <wdijkstr@arm.com>
20555
20556         * string/memccpy.c (memccpy):
20557         Improve performance by using memchr/memcpy/__mempcpy.
20558
20559 2015-08-05  Wilco Dijkstra  <wdijkstr@arm.com>
20560
20561         * string/strncpy.c (strncpy):
20562         Improve performance by using __strnlen/memcpy.
20563
20564 2015-08-05  Wilco Dijkstra  <wdijkstr@arm.com>
20565
20566         * sysdeps/aarch64/fpu/feenablxcpt.c (feenableexcept):
20567         Optimize to avoid an unnecessary FPCR read.
20568
20569 2015-08-05  Wilco Dijkstra  <wdijkstr@arm.com>
20570
20571         * sysdeps/aarch64/fpu/fesetenv.c (fesetenv):
20572         Optimize to reduce FPCR/FPSR accesses.
20573
20574 2015-08-05  H.J. Lu  <hongjiu.lu@intel.com>
20575
20576         * locale/loadarchive.c (_nl_archive_subfreeres): Also check
20577         dead->data[category] != NULL.
20578
20579 2015-08-05  Joseph Myers  <joseph@codesourcery.com>
20580
20581         [BZ #18647]
20582         * sysdeps/ieee754/flt-32/e_powf.c (__ieee754_powf): For large y
20583         and |x| close to 1, use absolute value of x when computing log.
20584         * math/auto-libm-test-in: Add more tests of pow.
20585         * math/auto-libm-test-out: Regenerated.
20586
20587 2015-08-05  Adhemerval Zanella  <adhemerval.zanella@linaro.org>
20588
20589         * sysdeps/unix/sysv/linux/arm/mmap.c: Add file.
20590         * sysdeps/unix/sysv/linux/arm/mmap.S: Remove file.
20591         * sysdeps/unix/sysv/linux/arm/mmap64.S: Likewise.
20592
20593 2015-08-05  Marko Myllynen  <myllynen@redhat.com>
20594
20595         [BZ #18525]
20596         * locales/km_KH: Remove timezone definition.
20597         * locales/lo_LA: Likewise.
20598         * locales/my_MM: Likewise.
20599         * locales/nan_TW@latin: Likewise.
20600         * locales/th_TH: Likewise.
20601         * locales/uk_UA: Likewise.
20602
20603 2015-08-05  Daniel Marjamäki  <daniel.marjamaki@evidente.se>
20604
20605         [BZ #18265]
20606         * wcsmbs/wchar.h (wcscat): Add __nonnull attribute.
20607         (wcsncat): Likewise.
20608         (wcscmp): Likewise.
20609         (wcsncmp): Likewise.
20610
20611 2015-08-05  Mike Frysinger  <vapier@gentoo.org>
20612
20613         * test-skeleton.c (usage): New function.
20614         (main): Call usage when opt is '?'.
20615
20616 2015-08-05  Mike Frysinger  <vapier@gentoo.org>
20617
20618         * sysdeps/unix/sysv/linux/mmap64.c: Move MMAP2_PAGE_SHIFT define
20619         before first use.
20620
20621 2015-08-05  Mike Frysinger  <vapier@gentoo.org>
20622
20623         * nptl/allocatestack.c (allocate_stack): Move stacktop decl down to
20624         bottom and under _STACK_GROWS_DOWN.  Move the stacktop assignment
20625         in there too.
20626
20627 2015-08-05  Carlos O'Donell  <carlos@systemhalted.org>
20628
20629         * version.h (RELEASE): Set to "development".
20630         (VERSION): Set to "2.22.90"
20631
20632         * version.h (RELEASE): Set to "stable".
20633         (VERSION): Set to "2.22"
20634         * include/features.h (__GLIBC_MINOR__): Set to 22.
20635
20636 2015-08-04  Chris Metcalf  <cmetcalf@ezchip.com>
20637
20638         * sysdeps/tile/tilepro/bits/atomic.h (__atomic_update):
20639         Restructure macro to avoid "value computed is not used" warning.
20640         (atomic_compare_and_exchange_val_acq): Likewise.
20641
20642 2015-08-04  Andreas Schwab  <schwab@suse.de>
20643
20644         [BZ #18635]
20645         * sysdeps/unix/sysv/linux/i386/makecontext.S: Terminate FDE before
20646         ret.
20647         * sysdeps/i386/i686/Makefile (test-xfail-tst-makecontext): Remove.
20648
20649 2015-08-01  Carlos O'Donell  <carlos@redhat.com>
20650
20651         * po/pl.po: Updated translation.
20652         * po/uk.po: Likewise.
20653         * po/fi.po: Likewise.
20654         * po/ko.po: Likewise.
20655         * po/ru.po: Likewise.
20656         * po/vi.po: Likewise.
20657
20658 2015-07-31  Zack Weinberg  <zackw@panix.com>
20659
20660         [BZ #18681]
20661         * regexp.h: Add unconditional #warning stating that this header
20662         will be removed soon.  Revise banner comment to match.
20663         (compile): Consistently use ERROR instead of RETURN to report
20664         errors (partial fix for bz#18681).
20665         * regexp.c: Don't include regexp.h. Remove some unnecessary
20666         declarations.
20667
20668 2015-07-31  Carlos O'Donell  <carlos@redhat.com>
20669
20670         * po/libc.pot: Regenerated.
20671
20672 2015-07-30  Andrew Senkevich  <andrew.senkevich@intel.com>
20673
20674         [BZ #18740]
20675         * sysdeps/x86_64/fpu/Makefile (double-vlen2-arch-ext-cflags,
20676         float-vlen4-arch-ext-cflags): Removed.
20677         * math/Makefile (CFLAGS-test-double-vlen2-wrappers.c,
20678         CFLAGS-test-float-vlen4-wrappers.c): Likewise.
20679
20680 2015-07-30  Mike Frysinger  <vapier@gentoo.org>
20681
20682         [BZ #14113]
20683         * sysdeps/hppa/nptl/bits/pthreadtypes.h (pthread_mutex_t): Change
20684         aligned to __aligned__.
20685         (pthread_cond_t, pthread_rwlock_t): Likewise.
20686
20687 2015-07-30  Torvald Riegel  <triegel@redhat.com>
20688
20689         * sysdeps/unix/sysv/linux/hppa/lowlevellock.h: Remove file.
20690
20691 2015-07-30  Mike Frysinger  <vapier@gentoo.org>
20692
20693         * sysdeps/unix/sysv/linux/hppa/bits/sigaction.h: Include bits/wordsize.h.
20694         (struct sigaction): Change sa_flags from a long to an int, and add
20695         __glibc_reserved0 before it for padding when __WORDSIZE is 64.
20696
20697 2015-07-30  Mike Frysinger  <vapier@gentoo.org>
20698
20699         * hppa/sysdep.h: Delete sys/syscall.h and config.h includes.
20700         * sysdeps/unix/sysv/linux/hppa/sysdep-cancel.h: Delete
20701         sysdeps/generic/sysdep.h include.
20702         * sysdeps/unix/sysv/linux/hppa/sysdep.h: Wrap the whole file in
20703         _LINUX_HPPA_SYSDEP_H defines.  Include sysdeps/unix/sysdep.h and
20704         sysdeps/hppa/sysdep.h.
20705         (ENTRY, PSEUDO): Undefine before defining.
20706
20707 2015-07-30  Mike Frysinger  <vapier@gentoo.org>
20708
20709         * sysdeps/unix/sysv/linux/hppa/sysdep.h (INLINE_SYSCALL): Rewrite
20710         from scratch to use INTERNAL_SYSCALL.
20711
20712 2015-07-29  H.J. Lu  <hongjiu.lu@intel.com>
20713
20714         [BZ #18078]
20715         * scripts/check-localplt.awk: Support alternate relocations.
20716         * scripts/localplt.awk: Also check relocations in DT_RELA/DT_REL
20717         sections.
20718         * sysdeps/unix/sysv/linux/i386/localplt.data: Mark free and
20719         malloc entries with + REL R_386_GLOB_DAT.
20720         * sysdeps/x86_64/localplt.data: New file.
20721
20722 2015-07-29  Andrew Senkevich  <andrew.senkevich@intel.com>
20723
20724         [BZ #18731]
20725         * sysdeps/x86_64/fpu/math-tests-arch.h: Added AVX runtime check.
20726         * sysdeps/x86_64/fpu/test-double-vlen4.c: Likewise.
20727         * sysdeps/x86_64/fpu/test-float-vlen8.c: Likewise.
20728
20729 2015-07-27  Mike Frysinger  <vapier@gentoo.org>
20730
20731         * sysdeps/unix/sysv/linux/ia64/localplt.data: Delete __tls_get_addr.
20732
20733 2015-07-27  Mike Frysinger  <vapier@gentoo.org>
20734
20735         * sysdeps/ia64/bits/atomic.h (atomic_exchange_and_add): Define
20736         directly in terms of __sync_fetch_and_add and delete (int) cast.
20737
20738 2015-07-27  Mike Frysinger  <vapier@gentoo.org>
20739
20740         * sysdeps/unix/sysv/linux/ia64/Makefile (CPPFLAGS): Delete
20741         the -D_ASM_IA64_CURRENT_H flag.
20742
20743 2015-07-27  Mike Frysinger  <vapier@gentoo.org>
20744
20745         [BZ #18641]
20746         * pwd/pwd.h (putpwent): Delete __nonnull markings.
20747
20748 2015-07-27  Andreas Schwab  <schwab@suse.de>
20749
20750         * conform/conformtest.pl (checknamespace): Filter out string
20751         literals while tokenizing.
20752
20753 2015-07-26  Chung-Lin Tang  <cltang@codesourcery.com>
20754
20755         * sysdeps/nios2/dl-sysdep.h (DL_EXTERN_PROTECTED_DATA): Define.
20756         * sysdeps/nios2/dl-machine.h (elf_machine_type_class): Handle
20757         ELF_RTYPE_CLASS_EXTERN_PROTECTED_DATA.
20758
20759 2015-07-26  Chung-Lin Tang  <cltang@codesourcery.com>
20760
20761         * nptl/tst-join7mod.c: Add #include <string.h>.
20762
20763 2015-07-25  Chung-Lin Tang  <cltang@codesourcery.com>
20764
20765         * sysdeps/nios2/libm-test-ulps: Update.
20766
20767 2015-07-25  Chung-Lin Tang  <cltang@codesourcery.com>
20768
20769         * sysdeps/unix/sysv/linux/nios2/setcontext.S (__setcontext):
20770         Fix order of arguments to the rt_sigprocmask syscall.
20771         * sysdeps/unix/sysv/linux/nios2/swapcontext.S (__swapcontext):
20772         Likewise.
20773
20774 2015-07-24  Roland McGrath  <roland@hack.frob.com>
20775
20776         * sysdeps/nacl/bits/fcntl.h (O_SHLOCK, O_EXLOCK): Macros removed.
20777
20778 2015-07-24  Siddhesh Poyarekar  <siddhesh@redhat.com>
20779
20780         [BZ #18457]
20781         * nptl/Makefile (tests): New test case tst-join7.
20782         (modules-names): New test case module tst-join7mod.
20783         * nptl/tst-join7.c: New file.
20784         * nptl/tst-join7mod.c: New file.
20785         * Makeconfig (tls-model): Pass -ftls-model=initial-exec for
20786         all translation units in libc.so, libpthread.so and rtld.
20787
20788 2015-07-24  Adhemerval Zanella  <adhemerval.zanella@linaro.org>
20789
20790         * sysdeps/powerpc/fpu/libm-test-ulps: Update.
20791
20792 2015-07-24  Andrew Senkevich  <andrew.senkevich@intel.com>
20793
20794         * sysdeps/x86_64/fpu/multiarch/svml_d_cos8_core.S: Fixed AVX512 IFUNC.
20795         * sysdeps/x86_64/fpu/multiarch/svml_d_exp8_core.S: Likewise.
20796         * sysdeps/x86_64/fpu/multiarch/svml_d_log8_core.S: Likewise.
20797         * sysdeps/x86_64/fpu/multiarch/svml_d_pow8_core.S: Likewise.
20798         * sysdeps/x86_64/fpu/multiarch/svml_d_sin8_core.S: Likewise.
20799         * sysdeps/x86_64/fpu/multiarch/svml_d_sincos8_core.S: Likewise.
20800         * sysdeps/x86_64/fpu/multiarch/svml_s_cosf16_core.S: Likewise.
20801         * sysdeps/x86_64/fpu/multiarch/svml_s_expf16_core.S: Likewise.
20802         * sysdeps/x86_64/fpu/multiarch/svml_s_logf16_core.S: Likewise.
20803         * sysdeps/x86_64/fpu/multiarch/svml_s_powf16_core.S: Likewise.
20804         * sysdeps/x86_64/fpu/multiarch/svml_s_sincosf16_core.S: Likewise.
20805         * sysdeps/x86_64/fpu/multiarch/svml_s_sinf16_core.S: Likewise.
20806         * sysdeps/x86_64/fpu/svml_d_wrapper_impl.h: Fixed wrappers to AVX2.
20807         * sysdeps/x86_64/fpu/svml_s_wrapper_impl.h: Likewise.
20808         * sysdeps/x86_64/fpu/multiarch/svml_s_expf16_core_avx512.S: Fixed KNL
20809         implementation.
20810
20811 2015-07-24  Szabolcs Nagy  <szabolcs.nagy@arm.com>
20812
20813         [BZ #17711]
20814         * sysdeps/aarch64/dl-sysdep.h (DL_EXTERN_PROTECTED_DATA): Define.
20815         * sysdeps/aarch64/dl-machine.h (elf_machine_type_class): Handle
20816         ELF_RTYPE_CLASS_EXTERN_PROTECTED_DATA.
20817         * sysdeps/arm/dl-sysdep.h (DL_EXTERN_PROTECTED_DATA): Define.
20818         * sysdeps/arm/dl-machine.h (elf_machine_type_class): Handle
20819         ELF_RTYPE_CLASS_EXTERN_PROTECTED_DATA.
20820
20821 2015-07-24  Siddhesh Poyarekar  <siddhesh@redhat.com>
20822
20823         * stdlib/cxa_thread_atexit_impl.c: Use the lock name dl_load_lock
20824         instead of just saying load lock in the comments.
20825
20826 2015-07-23  Roland McGrath  <roland@hack.frob.com>
20827
20828         * sysdeps/unix/Subdirs: Moved ...
20829         * sysdeps/posix/Subdirs: ... here.
20830         * login/pty.h (struct termios, struct winsize): Add forward decls.
20831         * login/openpty.c (openpty): Put ioctl call under [TIOCSWINSZ].
20832         * sysdeps/nacl/glob.c: Just #include <sysdeps/wordsize-64/glob.c>.
20833         * sysdeps/arm/nacl/libc.abilist: Updated.
20834         * sysdeps/nacl/libutil.abilist: New file.
20835
20836         * bits/signum.h: Update comments to mention 1003.1-2013 too.
20837         (SIGWINCH): New macro.
20838
20839         * sysdeps/nacl/getdtsz.c (getdtablesize): Add missing weak_alias.
20840         * sysdeps/arm/nacl/libc.abilist: Add it.
20841
20842 2015-07-23  Mike Frysinger  <vapier@gentoo.org>
20843
20844         * conform/linknamespace.pl (@whitelist): Add matherrf and matherrl.
20845
20846 2015-07-23  Mike Frysinger  <vapier@gentoo.org>
20847
20848         * sysdeps/unix/sysv/linux/ia64/bits/sigaction.h (struct sigaction):
20849         Swap __glibc_reserved0 and sa_flags order.
20850
20851 2015-07-23  Siddhesh Poyarekar  <siddhesh@redhat.com>
20852
20853         [BZ #18657]
20854         * elf/dl-close.c (_dl_close_worker): Don't unload DSO if there
20855         are pending TLS destructor calls.
20856         * include/link.h (struct link_map): Add concurrency note for
20857         L_TLS_DTOR_COUNT.
20858         * stdlib/cxa_thread_atexit_impl.c (__cxa_thread_atexit_impl):
20859         Don't touch the link map flag.  Atomically increment
20860         l_tls_dtor_count.
20861         (__call_tls_dtors): Atomically decrement l_tls_dtor_count.
20862         Avoid taking the load lock and don't touch the link map flag.
20863         * stdlib/tst-tls-atexit-nodelete.c: New test case.
20864         * stdlib/Makefile (tests): Use it.
20865         * stdlib/tst-tls-atexit.c (do_test): dlopen
20866         tst-tls-atexit-lib.so again before dlclose.  Add conditionals
20867         to allow tst-tls-atexit-nodelete test case to use it.
20868
20869 2015-07-22  Mike Frysinger  <vapier@gentoo.org>
20870
20871         * sysdeps/unix/sysv/linux/ia64/bits/msq.h: Change sys/types.h include
20872         to bits/types.h.
20873         (msgqnum_t): New typedef.
20874         (msglen_t): Likewise.
20875         (struct msqid_ds): Update comment.  Change msg_qnum type to msgqnum_t
20876         and msg_qbytes type to msglen_t.
20877
20878 2015-07-22  Mike Frysinger  <vapier@gentoo.org>
20879
20880         * sysdeps/unix/sysv/linux/ia64/bits/stat.h (struct stat): Rename
20881         pad0 to __glibc_reserved0.
20882         (struct stat64): Likewise.
20883
20884 2015-07-22  Mike Frysinger  <vapier@gentoo.org>
20885
20886         * sysdeps/unix/sysv/linux/ia64/bits/sigaction.h (struct sigaction):
20887         Change sa_flags from a long to an int and add __glibc_reserved0 before
20888         it for padding.
20889
20890 2015-07-22  Mike Frysinger  <vapier@gentoo.org>
20891
20892         * sysdeps/unix/sysv/linux/ia64/bits/siginfo.h (siginfo_t): Make struct
20893         anonymous by deleting "siginfo" name.
20894
20895 2015-07-21  Roland McGrath  <roland@hack.frob.com>
20896
20897         * sysdeps/nacl/nacl-interface-list.h: Remove nacl_irt_filename.
20898         * sysdeps/nacl/open.c (__libc_open): Use __nacl_irt_dev_filename
20899         rather than __nacl_irt_filename.
20900         * sysdeps/nacl/xstat.c (__xstat): Likewise.
20901
20902         * NEWS: New item for arm-nacl port.
20903         * sysdeps/arm/nacl/libc.abilist: New file.
20904         * sysdeps/nacl/ld.abilist: New file.
20905         * sysdeps/nacl/libBrokenLocale.abilist: New file.
20906         * sysdeps/nacl/libanl.abilist: New file.
20907         * sysdeps/nacl/libcrypt.abilist: New file.
20908         * sysdeps/nacl/libdl.abilist: New file.
20909         * sysdeps/nacl/libm.abilist: New file.
20910         * sysdeps/nacl/libpthread.abilist: New file.
20911         * sysdeps/nacl/libresolv.abilist: New file.
20912         * sysdeps/nacl/librt.abilist: New file.
20913
20914 2015-07-21  Chris Metcalf  <cmetcalf@ezchip.com>
20915
20916         * sysdeps/unix/sysv/linux/tile/makecontext.c (__makecontext): Call
20917         __startcontext to initialize the new context.
20918         * sysdeps/unix/sysv/linux/tile/setcontext.S (__startcontext): Set
20919         up CFI directive to forbid further backtracing.
20920
20921 2015-07-21  Marko Myllynen  <myllynen@redhat.com>
20922
20923         * charmaps/ANSI_X3.110-1983: Remove obsolete repertoire map
20924         reference.
20925         * charmaps/ANSI_X3.4-1968: Likewise.
20926         * charmaps/BS_4730: Likewise.
20927         * charmaps/BS_VIEWDATA: Likewise.
20928         * charmaps/CP1250: Likewise.
20929         * charmaps/CP1251: Likewise.
20930         * charmaps/CP1252: Likewise.
20931         * charmaps/CP1253: Likewise.
20932         * charmaps/CP1254: Likewise.
20933         * charmaps/CP1255: Likewise.
20934         * charmaps/CP1256: Likewise.
20935         * charmaps/CSN_369103: Likewise.
20936         * charmaps/EBCDIC-DK-NO: Likewise.
20937         * charmaps/GB_1988-80: Likewise.
20938         * charmaps/GREEK-CCITT: Likewise.
20939         * charmaps/GREEK7: Likewise.
20940         * charmaps/INIS-8: Likewise.
20941         * charmaps/ISIRI-3342: Likewise.
20942         * charmaps/ISO_2033-1983: Likewise.
20943         * charmaps/ISO_5427-EXT: Likewise.
20944         * locales/POSIX: Likewise.
20945         * locales/ar_SA: Likewise.
20946         * locales/be_BY: Likewise.
20947         * locales/be_BY@latin: Likewise.
20948         * locales/ca_ES: Likewise.
20949         * locales/cs_CZ: Likewise.
20950         * locales/da_DK: Likewise.
20951         * locales/de_BE: Likewise.
20952         * locales/de_CH: Likewise.
20953         * locales/de_LU: Likewise.
20954         * locales/en_AU: Likewise.
20955         * locales/en_BW: Likewise.
20956         * locales/en_CA: Likewise.
20957         * locales/en_DK: Likewise.
20958         * locales/en_GB: Likewise.
20959         * locales/en_IE: Likewise.
20960         * locales/en_NZ: Likewise.
20961         * locales/en_ZA: Likewise.
20962         * locales/en_ZW: Likewise.
20963         * locales/es_AR: Likewise.
20964         * locales/es_BO: Likewise.
20965         * locales/es_CL: Likewise.
20966         * locales/es_CO: Likewise.
20967         * locales/es_DO: Likewise.
20968         * locales/es_EC: Likewise.
20969         * locales/es_ES: Likewise.
20970         * locales/es_HN: Likewise.
20971         * locales/es_MX: Likewise.
20972         * locales/es_PA: Likewise.
20973         * locales/es_PE: Likewise.
20974         * locales/es_PY: Likewise.
20975         * locales/es_SV: Likewise.
20976         * locales/es_US: Likewise.
20977         * locales/es_UY: Likewise.
20978         * locales/es_VE: Likewise.
20979         * locales/et_EE: Likewise.
20980         * locales/fa_IR: Likewise.
20981         * locales/fo_FO: Likewise.
20982         * locales/fr_CA: Likewise.
20983         * locales/fr_CH: Likewise.
20984         * locales/gv_GB: Likewise.
20985         * locales/he_IL: Likewise.
20986         * locales/hr_HR: Likewise.
20987         * locales/id_ID: Likewise.
20988         * locales/is_IS: Likewise.
20989         * locales/it_CH: Likewise.
20990         * locales/iw_IL: Likewise.
20991         * locales/kl_GL: Likewise.
20992         * locales/ko_KR: Likewise.
20993         * locales/kw_GB: Likewise.
20994         * locales/lg_UG: Likewise.
20995         * locales/lt_LT: Likewise.
20996         * locales/lv_LV: Likewise.
20997         * locales/mi_NZ: Likewise.
20998         * locales/nhn_MX: Likewise.
20999         * locales/nl_BE: Likewise.
21000         * locales/pl_PL: Likewise.
21001         * locales/sk_SK: Likewise.
21002         * locales/sl_SI: Likewise.
21003         * locales/sv_FI: Likewise.
21004         * locales/tl_PH: Likewise.
21005         * locales/tr_TR: Likewise.
21006         * locales/vi_VN: Likewise.
21007
21008 2015-07-21  Khem Raj  <raj.khem@gmail.com>
21009
21010         [BZ #17475]
21011         * benchtests/strcoll-inputs/filelist#en_US.UTF-8: Adjust for rename
21012         of tu_IN and bh_IN.
21013
21014 2015-07-21  Mike Frysinger  <vapier@gentoo.org>
21015
21016         [BZ #18694]
21017         * sysdeps/unix/sysv/linux/sparc/bits/sigaction.h: Include
21018         bits/wordsize.h.
21019         (sigaction): Declare __glibc_reserved0 only when __WORDSIZE is 64.
21020
21021 2015-07-21  Siddhesh Poyarekar  <siddhesh@redhat.com>
21022
21023         * stdlib/tst-tls-atexit-lib.c (do_foo): Rename to reg_dtor.
21024         * stdlib/tst-tls-atexit.c: (is_loaded): New function.
21025         (spawn_thread): New function.
21026         (load): Rename to reg_dtor_and_close.  Move dlopen to...
21027         (do_test): ... here.  Use IS_LOADED to test for its
21028         availability.
21029
21030 2015-07-21  Andreas Schwab  <schwab@linux-m68k.org>
21031
21032         * sysdeps/m68k/m680x0/fpu/libm-test-ulps: Update.
21033
21034 2015-07-20  H.J. Lu  <hongjiu.lu@intel.com>
21035
21036         [BZ #18696]
21037         * sysdeps/unix/sysv/linux/x86/bits/siginfo.h (_sigfault): Add
21038         si_addr_bnd.
21039         (si_lower): New.
21040         (si_upper): Likewise.
21041
21042 2015-07-16  David S. Miller  <davem@davemloft.net>
21043
21044         * sysdeps/sparc/fpu/libm-test-ulps: Regenerated.
21045
21046 2015-07-16  Adhemerval Zanella  <adhemerval.zanella@linaro.org>
21047
21048         * libio/fmemopen.c (__fmemopen): Fix 'w' openmode with provided
21049         buffer.
21050         * stdio-common/tst-fmemopen2.c (do_test_with_buffer): Fix typo and
21051         fail output information.
21052
21053 2015-07-16  Rajalakshmi Srinivasaraghavan  <raji@linux.vnet.ibm.com>
21054
21055         * sysdeps/powerpc/powerpc64/multiarch/Makefile: Add strstr-power7
21056         and strstr-ppc64..
21057         * sysdeps/powerpc/powerpc64/multiarch/ifunc-impl-list.c: Likewise.
21058         * sysdeps/powerpc/powerpc64/power7/strstr.S: New File.
21059         * sysdeps/powerpc/powerpc64/multiarch/strstr-power7.S: New File.
21060         * sysdeps/powerpc/powerpc64/multiarch/strstr-ppc64.c: New File.
21061         * sysdeps/powerpc/powerpc64/multiarch/strstr.c: New File.
21062
21063 2015-07-16  Mike Frysinger  <vapier@gentoo.org>
21064
21065         * sysdeps/hppa/Versions (GLIBC_PRIVATE): Delete _dl_unmap.
21066         * sysdeps/hppa/dl-lookupcfg.h (_dl_unmap): Add attribute_hidden.
21067         * sysdeps/ia64/Versions (GLIBC_PRIVATE): Delete _dl_unmap.
21068         * sysdeps/ia64/dl-lookupcfg.h (_dl_unmap): Add attribute_hidden.
21069
21070 2015-07-16  Mike Frysinger  <vapier@gentoo.org>
21071
21072         * elf/dl-symaddr.c (_dl_symbol_address): Add rtld_hidden_def.
21073         * sysdeps/hppa/dl-lookupcfg.h (_dl_symbol_address): Add
21074         rtld_hidden_proto.
21075         * sysdeps/ia64/dl-lookupcfg.h (_dl_symbol_address): Likewise.
21076
21077 2015-07-16  Siddhesh Poyarekar  <siddhesh@redhat.com>
21078
21079         * tst-nodelete-opened.c (do_test): Add comment to clarify how
21080         the test can fail.
21081
21082         * stdlib/cxa_thread_atexit_impl.c: Whitespace fixup.
21083
21084         [BZ #18676]
21085         * elf/tst-nodelete-opened.c: New test case.
21086         * elf/tst-nodelete-opened-lib.c: New test case module.
21087         * elf/Makefile (tests, modules-names): Use them.
21088         * elf/dl-open.c (dl_open_worker): Set DF_1_NODELETE flag
21089         early.
21090
21091 2015-07-15  David S. Miller  <davem@davemloft.net>
21092
21093         * sysdeps/sparc/nptl/pthread_barrier_init.c: Include
21094         futex-intenal.h
21095         * sysdeps/sparc/sparc32/sparcv9/Makefile (nscd): Add cpu_relax.
21096         * sysdeps/sparc/sparc64/Makefile: Likewise.
21097         * sysdeps/sparc/sparc32/sparcv9/bits/atomic.h (atomic_spin_nop):
21098         Remove space from macro define.
21099         * sysdeps/sparc/sparc64/bits/atomic.h (atomic_spin_nop): Likewise.
21100
21101 2015-07-15  Pravin Satpute  <psatpute@redhat.com>
21102
21103         [BZ #17475]
21104         * locale/iso-639.def: Update Bhili and Tulu language codes as
21105         per iso639-3.
21106
21107 2015-07-15  Arjun Shankar  <arjun.is@lostca.se>
21108
21109         * elf/tst-leaks1.c (main): Converted to ...
21110         (do_test): ... this.
21111         (TEST_FUNCTION): New macro.
21112         Include test-skeleton.c.
21113         * localedata/tst-langinfo.c (main): Converted to ...
21114         (do_test): ... this.
21115         (TEST_FUNCTION): New macro.
21116         Include test-skeleton.c.
21117         * math/test-fpucw.c (main): Converted to ...
21118         (do_test): ... this.
21119         (TEST_FUNCTION): New macro.
21120         Include test-skeleton.c.
21121         * math/test-tgmath.c (main): Converted to ...
21122         (do_test): ... this.
21123         (TEST_FUNCTION): New macro.
21124         Include test-skeleton.c.
21125         * math/test-tgmath2.c (main): Converted to ...
21126         (do_test): ... this.
21127         (TEST_FUNCTION): New macro.
21128         Include test-skeleton.c.
21129         * setjmp/tst-setjmp.c (main): Converted to ...
21130         (do_test): ... this.
21131         (TEST_FUNCTION): New macro.
21132         Include test-skeleton.c.
21133         * stdio-common/tst-sscanf.c (main): Converted to ...
21134         (do_test): ... this.
21135         (TEST_FUNCTION): New macro.
21136         Include test-skeleton.c.
21137         * sysdeps/x86_64/tst-audit6.c (main): Converted to ...
21138         (do_test): ... this.
21139         (TEST_FUNCTION): New macro.
21140         Include test-skeleton.c.
21141
21142         * elf/tst-audit9.c (main): Converted to ...
21143         (do_test): ... this.
21144         (TEST_FUNCTION): New macro.
21145         Include test-skeleton.c.
21146
21147 2015-07-15  Mike Frysinger  <vapier@gentoo.org>
21148
21149         * timezone/tst-tzset.c (TIMEOUT): Define to 5.
21150
21151 2015-07-15  Stefan Liebler  <stli@linux.vnet.ibm.com>
21152
21153         * sysdeps/i386/i686/Makefile (test-xfail-tst-makecontext):
21154         New variable.
21155
21156 2015-07-15  Stefan Liebler  <stli@linux.vnet.ibm.com>
21157
21158         * sysdeps/s390/fpu/libm-test-ulps: Regenerated.
21159
21160 2015-07-14  Roland McGrath  <roland@hack.frob.com>
21161
21162         * sysdeps/generic/dl-fileid.h: New file.
21163         * sysdeps/posix/dl-fileid.h: New file.
21164         * sysdeps/nacl/dl-fileid.h: New file.
21165         * include/link.h: Include <dl-fileid.h>.
21166         (struct link_map): Replace l_dev and l_ino with l_file_id.
21167         * elf/dl-load.c (_dl_map_object_from_fd): Use _dl_get_file_id rather
21168         than __fxstat64.  Use _dl_file_id_match_p rather than comparing l_dev
21169         and l_ino directly.  Initialize l_file_id rather than l_dev and l_ino.
21170
21171 2015-07-14  Siddhesh Poyarekar  <siddhesh@redhat.com>
21172
21173         * stdlib/tst-tls-atexit.c (do_test): Fix typo.
21174
21175 2015-07-14  Adhemerval Zanella  <adhemerval.zanella@linaro.org>
21176
21177         * elf/Makefile [ifeq (yes,$(build-shared)) (tests)] (tst-nodelete):
21178         Add iff $CXX is set.
21179         [ifeq (yes,$(build-shared)) (modules-names)] (tst-nodelete-rtldmod):
21180         Likewise.
21181         (tst-nodelete-zmodiff): Likewise.
21182         * nptl/Makefile [[ifeq (,$(CXX))] (tests-unsupported)]: Add tst-once5.
21183
21184 2015-07-14  Siddhesh Poyarekar  <siddhesh@redhat.com>
21185
21186         * stdlib/tst-tls-atexit.c (load): Fix up whitespace.
21187
21188 2015-07-13  Wilco Dijkstra  <wdijkstr@arm.com>
21189
21190         * sysdeps/aarch64/fpu/math_private.h
21191         (define math_opt_barrier): Add AArch64 version.
21192         (math_force_eval): Likewise.
21193
21194 2015-07-13  Wilco Dijkstra  <wdijkstr@arm.com>
21195
21196         * sysdeps/aarch64/strlen.S (strlen): Optimize strlen.
21197
21198 2015-07-11  H.J. Lu  <hongjiu.lu@intel.com>
21199
21200         * stdio-common/tst-fmemopen2.c (do_test_without_buffer): Replace
21201         %ld with %jd and cast to intmax_t.
21202         (do_test_length_zero): Likewise.
21203
21204 2015-07-10  Roland McGrath  <roland@hack.frob.com>
21205
21206         * sysdeps/nacl/pthread_condattr_setclock.c: New file.
21207
21208 2015-07-10  Chris Metcalf  <cmetcalf@ezchip.com>
21209
21210         * sysdeps/tile/libm-test-ulps: Regenerated.
21211
21212         * math/test-fenvinline.c (feenable_test) [FE_ALL_EXCEPT == 0]:
21213         Comment out the whole function, not just its body.
21214
21215 2015-07-10  Siddhesh Poyarekar  <siddhesh@redhat.com>
21216
21217         * stdlib/tst-tls-atexit.c (load): Remove unnecessary mutex
21218         locks.
21219
21220         * stdlib/tst-tls-atexit.c (load): Avoid boolean coercion.
21221
21222 2015-07-10  Torvald Riegel  <triegel@redhat.com>
21223
21224         * nptl/sem_waitcommon.c (__new_sem_wait_slow): Update comments.
21225         (sem_assume_only_signals_cause_futex_EINTR): Remove.
21226
21227 2015-07-10  Torvald Riegel  <triegel@redhat.com>
21228
21229         * sysdeps/nptl/futex-internal.h: New file.
21230         * sysdeps/nacl/futex-internal.h: New file.
21231         * sysdeps/unix/sysv/linux/futex-internal.h: New file.
21232         * nptl/allocatestack.c (setxid_mark_thread): Use futex wrappers with
21233         error checking.
21234         (setxid_unmark_thread): Likewise.
21235         (__nptl_setxid): Likewise.
21236         (__wait_lookup_done): Likewise.
21237         * nptl/cancellation.c (__pthread_disable_asynccancel): Likewise.
21238         * nptl/nptl-init.c (sighandler_setxid): Likewise.
21239         * nptl/pthread_create.c (START_THREAD_DEFN): Likewise.
21240         * nptl/pthread_once.c (clear_once_control): Likewise.
21241         (__pthread_once_slow): Likewise.
21242         * nptl/unregister-atfork.c (__unregister_atfork): Likewise.
21243         * sysdeps/nacl/exit-thread.h (__exit_thread): Likewise.
21244         * sysdeps/nptl/aio_misc.h (AIO_MISC_NOTIFY, AIO_MISC_WAIT): Likewise.
21245         * sysdeps/nptl/fork.c (__libc_fork): Likewise.
21246         * sysdeps/nptl/gai_misc.h (GAI_MISC_NOTIFY, GAI_MISC_WAIT): Likewise.
21247         * nptl/pthread_rwlock_rdlock.c (__pthread_rwlock_rdlock_slow):
21248         Likewise.
21249         (__pthread_rwlock_rdlock): Likewise.
21250         * nptl/pthread_rwlock_timedrdlock.c (pthread_rwlock_timedrdlock):
21251         Likewise.
21252         * nptl/pthread_rwlock_timedwrlock.c (pthread_rwlock_timedwrlock):
21253         Likewise.
21254         * nptl/pthread_rwlock_tryrdlock.c (__pthread_rwlock_tryrdlock):
21255         Likewise.
21256         * nptl/pthread_rwlock_unlock.c (__pthread_rwlock_unlock): Likewise.
21257         * nptl/pthread_rwlock_wrlock.c (__pthread_rwlock_wrlock_slow:
21258         Likewise.
21259         * nptl/pthread_rwlock_init (__pthread_rwlock_init): Remove
21260         __ASSUME_PRIVATE_FUTEX check.
21261         * nptl/pthread_rwlockattr_setpshared (pthread_rwlockattr_setpshared):
21262         Check that shared futexes are supported.
21263         * nptl/pthread_barrier_wait.c (pthread_barrier_wait): Use futex
21264         wrappers with error checking.
21265         * nptl/pthread_barrier_init.c (pthread_barrier_init): Add comments,
21266         remove attribute sanity check and __ASSUME_PRIVATE_FUTEX check.
21267         * nptl/pthread_barrierattr_setpshared.c
21268         (pthread_barrierattr_setpshared): Check that shared futexes are
21269         supported.
21270         * nptl/pthread_condattr_setpshared.c (pthread_condattr_setpshared):
21271         Likewise.
21272         * nptl/pthread_mutexattr_setpshared.c (pthread_mutexattr_setpshared):
21273         Likewise.
21274         * nptl/sem_init.c (futex_private_if_supported): Remove.
21275         (__new_sem_init): Adapt and check that shared futexes are supported.
21276         * nptl/sem_open.c (sem_open): Likewise.
21277         * nptl/sem_post.c (futex_wake): Remove.
21278         * nptl/sem_waitcommon.c (futex_abstimed_wait, futex_wake): Remove.
21279         (do_futex_wait): Use futex wrappers with error checking.
21280         * nptl/sem_wait.c: Include lowlevellock.h.
21281         * sysdeps/sparc/nptl/pthread_barrier_init.c (__pthread_barrier_init):
21282         Use futex_supports_pshared.
21283         * sysdeps/sparc/nptl/pthread_barrier_wait.c (pthread_barrier_wait):
21284         Use futex wrappers with error checking.
21285         * sysdeps/sparc/sparc32/pthread_barrier_wait.c (pthread_barrier_wait):
21286         Likewise.
21287         * sysdeps/sparc/sparc32/sem_init.c (futex_private_if_supported): Remove.
21288         * sysdeps/sparc/sparc32/sem_post.c (futex_wake): Likewise.
21289         * sysdeps/sparc/sparc32/sem_open.c (sem_open): Use FUTEX_SHARED.
21290         * sysdeps/sparc/sparc32/sem_waitcommon.c (futex_abstimed_wait): Remove.
21291         (futex_wake): Likewise.
21292         (sem_assume_only_signals_cause_futex_EINTR): Likewise.
21293         (do_futex_wait): Use futex wrappers with error checking.
21294         (__new_sem_wait_slow): Update EINTR handling.
21295         * sysdeps/sparc/sparc32/sem_wait.c: Include lowlevellock.h.
21296
21297 2015-07-09  Martin Sebor  <msebor@redhat.com>
21298
21299         [BZ #18435]
21300         * nptl/pthreadP.h (pthread_cleanup_push, pthread_cleanup_pop):
21301         Revert commit ed225df3ad9cbac3c22ec3f0fbbed1f9c61d1c54.
21302         * nptl/Makefile (test-xfail-tst-once5): Define.
21303
21304 2015-07-09  Roland McGrath  <roland@hack.frob.com>
21305
21306         * include/stdio.h: Add rtld_hidden_proto (__libc_fatal).
21307         * elf/dl-minimal.c: For readability, reorder some definitions and
21308         introduce more page breaks.  Include <stdio.h>.
21309         (__libc_fatal): New function.
21310
21311         * include/unistd.h: Add rtld_hidden_proto for _exit.
21312         * posix/_exit.c: Add rtld_hidden_def.
21313         * sysdeps/mach/hurd/_exit.c: Likewise.
21314         * sysdeps/nacl/_exit.c: Likewise.
21315         * sysdeps/unix/sysv/linux/_exit.c: Likewise.
21316         * sysdeps/unix/sysv/linux/i386/_exit.S: Likewise.
21317
21318 2015-07-09  H.J. Lu  <hongjiu.lu@intel.com>
21319
21320         * sysdeps/x86_64/dl-trampoline.S (_dl_runtime_resolve): Improve
21321         bndmov encoding with zero displacement.
21322
21323 2015-07-09  Igor Zamyatin  <igor.zamyatin@intel.com>
21324             H.J. Lu  <hongjiu.lu@intel.com>
21325
21326         [BZ #18134]
21327         * sysdeps/i386/configure.ac: Set HAVE_MPX_SUPPORT.
21328         * sysdeps/i386/configure: Regenerated.
21329         * sysdeps/i386/dl-trampoline.S (PRESERVE_BND_REGS_PREFIX): New.
21330         (_dl_runtime_profile): Save and restore Intel MPX return bound
21331         registers when calling _dl_call_pltexit.  Add
21332         PRESERVE_BND_REGS_PREFIX before return.
21333         * sysdeps/i386/link-defines.sym (LRV_BND0_OFFSET): New.
21334         (LRV_BND1_OFFSET): Likewise.
21335         * sysdeps/x86/bits/link.h (La_i86_retval): Add lrv_bnd0 and
21336         lrv_bnd1.
21337         * sysdeps/x86_64/dl-trampoline.S (_dl_runtime_profile): Fix
21338         typo in bndmov encoding.
21339         * sysdeps/x86_64/dl-trampoline.h: Properly save and restore
21340         Intel MPX bound registers.  Add PRESERVE_BND_REGS_PREFIX before
21341         branch instructions to preserve bounds.
21342
21343 2015-07-09  Adhemerval Zanella  <adhemerval.zanella@linaro.org>
21344
21345         * sysdeps/unix/sysv/linux/powerpc/powerpc64/libc-le.abilist
21346         [GLIBC_2.22]: Add fmemopen.
21347
21348 2015-07-09  Samuel Thibault  <samuel.thibault@ens-lyon.org>
21349
21350         * sysdeps/mach/hurd/mlock.c (mlock): When __get_privileged_ports
21351         returns an error, also try to use host port from __mach_host_self for
21352         the __vm_wire call.
21353         * sysdeps/mach/hurd/munlock.c (munlock): Likewise.
21354
21355 2015-07-09  Szabolcs Nagy  <szabolcs.nagy@arm.com>
21356
21357         [BZ #18400]
21358         [BZ #18648]
21359         * sysdeps/unix/sysv/linux/aarch64/sys/procfs.h (struct elf_prpsinfo):
21360         Fix pr_uid and pr_gid members.
21361         * sysdeps/unix/sysv/linux/aarch64/sys/ucontext.h (greg_t): Change the
21362         definition to elf_greg_t.
21363
21364 2015-07-08  Roland McGrath  <roland@hack.frob.com>
21365
21366         [BZ #18383]
21367         * sysdeps/arm/configure.ac (libc_cv_arm_tpoff_addend): New check.
21368         Emit test-xfail-tst-tlsalign{,-static}=yes if it fails.
21369         * sysdeps/arm/configure: Regenerated.
21370         * elf/Makefile (test-xfail-tst-tlsalign): Variable removed.
21371         (test-xfail-tst-tlsalign-static): Variable removed.
21372
21373         * Makerules (do-install-so): Use $(LN_S) rather than explicit 'ln -s'.
21374         * elf/Makefile ($(objpfx)$(rtld-installed-name)): Use $(make-link)
21375         rather than explicit 'ln -s'.
21376
21377         * resolv/rpc/netdb.h: New file.
21378         * resolv/Makefile [sunrpc not in $(subdirs)] (headers): Add it.
21379
21380 2015-07-08  Adhemerval Zanella  <adhemerval.zanella@linaro.org>
21381
21382         * stdio-common/tst-fmemopen2.c (do_test): Add test for NULL and zero
21383         length buffers.
21384         * stdio-common/tst-fmemopen.c (do_test): Refactor to use
21385         test-skeleton.c.
21386
21387         [BZ #6544]
21388         [BZ #11216]
21389         [BZ #12836]
21390         [BZ #13151]
21391         [BZ #13152]
21392         [BZ #14292]
21393         * include/stdio.h (fmemopen): Remove hidden prototype.
21394         (__fmemopen): Add new hidden prototype.
21395         * libio/Makefile: Add oldfmemopen object.
21396         * libio/Versions [GLIBC_2.22]: Add new fmemopen symbol.
21397         * libio/fmemopen.c (__fmemopen): Function rewrite to be POSIX
21398         compliance.
21399         * libio/oldfmemopen.c: New file: old fmemopen implementation for
21400         symbol compatibility.
21401         * stdio-common/Makefile [tests]: Add new tst-fmemopen3.
21402         * stdio-common/psiginfo.c [psiginfo]: Call __fmemopen instead of
21403         fmemopen.
21404         * stdio-common/tst-fmemopen3.c: New file: more fmemopen tests, focus
21405         on append and read mode.
21406         * sysdeps/unix/sysv/linux/aarch64/libc.abilist [GLIBC_2.22]: Add
21407         fmemopen.
21408         * sysdeps/unix/sysv/linux/alpha/libc.abilist [GLIBC_2.22]: Likewise.
21409         * sysdeps/unix/sysv/linux/arm/libc.abilist [GLIBC_2.22]: Likewise.
21410         * sysdeps/unix/sysv/linux/i386/libc.abilist [GLIBC_2.22]: Likewise.
21411         * sysdeps/unix/sysv/linux/ia64/libc.abilist [GLIBC_2.22]:
21412         Likewise.
21413         * sysdeps/unix/sysv/linux/m68k/coldfire/libc.abilist
21414         [GLIBC_2.22]: Likewise.
21415         * sysdeps/unix/sysv/linux/m68k/m680x0/libc.abilist [GLIBC_2.22]:
21416         Likewise.
21417         * sysdeps/unix/sysv/linux/microblaze/libc.abilist [GLIBC_2.22]:
21418         Likewise.
21419         * sysdeps/unix/sysv/linux/mips/mips32/fpu/libc.abilist
21420         [GLIBC_2.22]: Likewise.
21421         * sysdeps/unix/sysv/linux/mips/mips32/nofpu/libc.abilist
21422         [GLIBC_2.22]: Likewise.
21423         * sysdeps/unix/sysv/linux/mips/mips64/n32/libc.abilist
21424         [GLIBC_2.22]: Likewise.
21425         * sysdeps/unix/sysv/linux/mips/mips64/n64/libc.abilist
21426         [GLIBC_2.22]: Likewise.
21427         * sysdeps/unix/sysv/linux/powerpc/powerpc32/fpu/libc.abilist
21428         [GLIBC_2.22]: Likewise.
21429         * sysdeps/unix/sysv/linux/powerpc/powerpc32/nofpu/libc.abilist
21430         [GLIBC_2.22]: Likewise.
21431         * sysdeps/unix/sysv/linux/powerpc/powerpc64/libc.abilist
21432         [GLIBC_2.22]: Likewise.
21433         * sysdeps/unix/sysv/linux/s390/s390-32/libc.abilist [GLIBC_2.22]:
21434         Likewise.
21435         * sysdeps/unix/sysv/linux/s390/s390-64/libc.abilist [GLIBC_2.22]:
21436         Likewise.
21437         * sysdeps/unix/sysv/linux/sh/libc.abilist [GLIBC_2.22]: Likewise.
21438         * sysdeps/unix/sysv/linux/sparc/sparc32/libc.abilist
21439         [GLIBC_2.22]: Likewise.
21440         * sysdeps/unix/sysv/linux/sparc/sparc64/libc.abilist
21441         [GLIBC_2.22]: Likewise.
21442         * sysdeps/unix/sysv/linux/tile/tilegx/tilegx32/libc.abilist
21443         [GLIBC_2.22]: Likewise.
21444         * sysdeps/unix/sysv/linux/tile/tilegx/tilegx64/libc.abilist
21445         [GLIBC_2.22]: Likewise.
21446         * sysdeps/unix/sysv/linux/tile/tilepro/libc.abilist [GLIBC_2.22]:
21447         Likewise.
21448         * sysdeps/unix/sysv/linux/x86_64/64/libc.abilist [GLIBC_2.22]:
21449         Likewise.
21450         * sysdeps/unix/sysv/linux/x86_64/x32/libc.abilist [GLIBC_2.22]:
21451         Likewise.
21452         * sysdeps/unix/sysv/linux/hppa/libc.abilist [GLIBC_2.22]: Likewise.
21453         * sysdeps/unix/sysv/linux/nios2/libc.abilist [GLIBC_2.22]: Likewise.
21454
21455 2015-07-08  Carlos O'Donell  <carlos@redhat.com>
21456
21457         [BZ #18643]
21458         * sysdeps/unix/sysv/linux/bits/in.h: Define IPV6_RECVPATHMTU,
21459         IPV6_PATHMTU, and IPV6_DONTFRAG.
21460
21461 2015-07-08  Feng Gao  <gfree.wind@gmail.com>
21462
21463         * libio/fileops.c: Use "|" instead of "+" when combine _IO_LINE_BUF
21464         and _IO_UNBUFFERED.
21465         * libio/oldfileops.c: Likewise.
21466         * libio/wfileops.c: Likewise.
21467
21468 2015-07-08  Mike Frysinger  <vapier@gentoo.org>
21469
21470         * nscd/selinux.c: Delete selinux/flask.h include.
21471
21472 2015-07-08  Mike Frysinger  <vapier@gentoo.org>
21473
21474         [BZ #18641]
21475         * pwd/pwd.h (fgetpwent): Add __nonnull markings.
21476         (putpwent): Likewise.
21477         (getpwnam): Likewise.
21478         (getpwent_r): Likewise.
21479         (getpwuid_r): Likewise.
21480         (getpwnam_r): Likewise.
21481         (fgetpwent_r): Likewise.
21482
21483 2015-07-08  Carlos O'Donell  <carlos@redhat.com>
21484
21485         [BZ #18557]
21486         * inet/rcmd.c (__validuser2_sa): Check user first to
21487         short-circuit host check.
21488
21489 2015-07-07  Pavel Kopyl  <p.kopyl@samsung.com>
21490             Mikhail Ilin  <m.ilin@samsung.com>
21491
21492         [BZ #17833]
21493         * elf/Makefile (tests): Add tst-nodelete.
21494         (modules-names): Add tst-nodelete-uniquemod.
21495         (tst-nodelete-uniquemod.so-no-z-defs): New.
21496         (tst-nodelete-rtldmod.so-no-z-defs): Likewise.
21497         (tst-nodelete-zmod.so-no-z-defs): Likewise.
21498         ($(objpfx)tst-nodelete): Likewise.
21499         ($(objpfx)tst-nodelete.out): Likewise.
21500         (LDFLAGS-tst-nodelete): Likewise.
21501         (LDFLAGS-tst-nodelete-zmod.so): Likewise.
21502         * elf/dl-close.c (_dl_close_worker): Add a parameter to
21503         implement forced object deletion.
21504         (_dl_close): Pass false to _dl_close_worker.
21505         * elf/dl-open.c (_dl_open): Pass true to _dl_close_worker.
21506         * elf/tst-nodelete.cc: New file.
21507         * elf/tst-nodeletelib.cc: Likewise.
21508         * elf/tst-znodeletelib.cc: Likewise.
21509         * include/dlfcn.h (_dl_close_worker): Add a new parameter.
21510
21511 2015-07-07  Stefan Liebler  <stli@linux.vnet.ibm.com>
21512
21513         [BZ #18508]
21514         * stdlib/Makefile ($(objpfx)tst-makecontext3):
21515         Depend on $(libdl).
21516         * stdlib/tst-makecontext.c (cf): Test if _Unwind_Backtrace
21517         is not called infinitely times.
21518         (backtrace_helper): New function.
21519         (trace_arg): New struct.
21520         (st1): Enlarge stack size.
21521         * sysdeps/unix/sysv/linux/s390/s390-32/__makecontext_ret.S:
21522         (__makecontext_ret): Omit cfi_startproc and cfi_endproc.
21523         * sysdeps/unix/sysv/linux/s390/s390-64/__makecontext_ret.S:
21524         Likewise.
21525
21526 2015-07-07  Stefan Liebler  <stli@linux.vnet.ibm.com>
21527
21528         * sysdeps/s390/fpu/libm-test-ulps: Regenerated.
21529
21530 2015-07-07  Stefan Liebler  <stli@linux.vnet.ibm.com>
21531
21532         * sysdeps/unix/sysv/linux/s390/bits/sem.h:
21533         Include sys/types.h instead of bits/types.h.
21534         Remove inclusion of bits/wordsize.h.
21535
21536 2015-07-07  H.J. Lu  <hongjiu.lu@intel.com>
21537
21538         * sysdeps/x86_64/tst-auditmod10b.c (la_symbind32): New.
21539         * sysdeps/x86_64/tst-auditmod4b.c (la_symbind32): Likewise.
21540         * sysdeps/x86_64/tst-auditmod5b.c (la_symbind32): Likewise.
21541         * sysdeps/x86_64/tst-auditmod6b.c (la_symbind32): Likewise.
21542         * sysdeps/x86_64/tst-auditmod6c.c (la_symbind32): Likewise.
21543         * sysdeps/x86_64/tst-auditmod7b.c (la_symbind32): Likewise.
21544
21545 2015-07-07  H.J. Lu  <hongjiu.lu@intel.com>
21546
21547         * sysdeps/i386/Makefile (gen-as-const-headers)[elf]: Add
21548         link-defines.sym.
21549         * sysdeps/i386/dl-trampoline.S: Include <link-defines.h>.
21550         (_dl_runtime_profile): Use LONG_DOUBLE_SIZE, LRV_SIZE,
21551         LRV_EAX_OFFSET, LRV_EDX_OFFSET, LRV_ST0_OFFSET, LRV_ST1_OFFSET
21552         and LR_SIZE.
21553         * sysdeps/i386/link-defines.sym: New file.
21554
21555 2015-07-07  H.J. Lu  <hongjiu.lu@intel.com>
21556
21557         * sysdeps/i386/Makefile (tests)[elf]: Add tst-audit3.
21558         (modules-names): Add tst-auditmod3a tst-auditmod3b.
21559         ($(objpfx)tst-audit3): New rule.
21560         ($(objpfx)tst-audit3.out): Likewise.
21561         * sysdeps/i386/tst-audit3.c: New file.
21562         * sysdeps/i386/tst-audit3.h: Likewise.
21563         * sysdeps/i386/tst-auditmod3a.c: Likewise.
21564         * sysdeps/i386/tst-auditmod3b.c: Likewise.
21565
21566 2015-07-07  Torvald Riegel  <triegel@redhat.com>
21567
21568         [BZ #18633]
21569         * sysdeps/x86/bits/string.h (__memmove_g): Do not create invalid
21570         pointer in C code.
21571         (__strcat_c): Likewise.
21572         (__strcat_g): Likewise.
21573
21574 2015-07-07  Cyril Hrubis <chrubis@suse.cz>
21575
21576         [BZ #18592]
21577         * misc/sbrk.c: Set errno to ENOMEM on overflow.
21578
21579 2015-07-06  Wilco Dijkstra  <wdijkstr@arm.com>
21580
21581         * sysdeps/aarch64/fpu/math_private.h (__ieee754_sqrt):
21582         New function.  (__ieee754_sqrtf): New function.
21583         * sysdeps/aarch64/fpu/e_sqrt.c (__ieee754_sqrt):
21584         New function.
21585         * sysdeps/aarch64/fpu/e_sqrtf.c (__ieee754_sqrtf):
21586         New function.
21587
21588 2015-07-06  Wilco Dijkstra  <wdijkstr@arm.com>
21589
21590         * sysdeps/ieee754/support.c: Remove unused file.
21591
21592 2015-07-06  Szabolcs Nagy  <szabolcs.nagy@arm.com>
21593
21594         * sysdeps/unix/sysv/linux/aarch64/getcontext.S (__getcontext): Use q
21595         registers instead of d ones so the layout is kernel abi compatible.
21596         * sysdeps/unix/sysv/linux/aarch64/setcontext.S (__setcontext): Likewise.
21597         * sysdeps/unix/sysv/linux/aarch64/swapcontext.S (__swapcontext):
21598         Likewise.
21599
21600 2015-07-02  Szabolcs Nagy  <szabolcs.nagy@arm.com>
21601
21602         * sysdeps/aarch64/libm-test-ulps: Regenerated.
21603
21604 2015-07-01  Joseph Myers  <joseph@codesourcery.com>
21605
21606         [BZ #18619]
21607         * sysdeps/ieee754/ldbl-128/s_expm1l.c (__expm1l): Force underflow
21608         and return argument in case of subnormal argument.
21609
21610 2015-07-01  Martin Sebor  <msebor@redhat.com>
21611
21612         [BZ #18435]
21613         * nptl/Makefile: Add tst-once5.cc.
21614         * nptl/pthreadP.h (pthread_cleanup_push, pthread_cleanup_pop):
21615         Remove macro redefinitions.
21616         * nptl/tst-once5.cc: New test.
21617
21618 2015-07-01  Joseph Myers  <joseph@codesourcery.com>
21619
21620         * sysdeps/powerpc/nofpu/libm-test-ulps: Regenerated.
21621
21622         * sysdeps/arm/libm-test-ulps: Regenerated.
21623
21624         * sysdeps/mips/mips32/libm-test-ulps: Regenerated.
21625         * sysdeps/mips/mips64/libm-test-ulps: Likewise.
21626
21627 2015-06-30  Torvald Riegel  <triegel@redhat.com>
21628
21629         * nptl/DESIGN-systemtap-probes.txt: Remove lll_lock_wait,
21630         lll_lock_wait_private and lll_futex_wake probes.
21631
21632         * sysdeps/unix/sysv/linux/i386/lowlevellock.h (BUSY_WAIT_NOP): Remove.
21633         * sysdeps/unix/sysv/linux/x86_64/lowlevellock.h (BUSY_WAIT_NOP):
21634         Likewise.
21635         * sysdeps/i386/i486/bits/atomic.h (atomic_delay): Rename to
21636         atomic_spin_nop.
21637         * sysdeps/x86_64/bits/atomic.h: Likewise.
21638         * sysdeps/unix/sysv/linux/sparc/lowlevellock.h (BUSY_WAIT_NOP): Rename
21639         to atomic_spin_nop and move ...
21640         * sysdeps/sparc/sparc32/sparcv9/bits/atomic.h (atomic_spin_nop):
21641         ... here and ...
21642         * sysdeps/sparc/sparc64/bits/atomic.h: ... here.
21643         * nptl/pthread_mutex_lock.c (__pthread_mutex_lock): Use
21644         atomic_spin_nop instead of BUSY_WAIT_NOP.
21645         * nptl/pthread_mutex_timedlock.c (__pthread_mutex_timedlock):
21646         Likewise.
21647         * sysdeps/nacl/lll_timedwait_tid.c (__lll_timedwait_tid): Likewise.
21648         * sysdeps/nacl/lowlevellock.h (BUSY_WAIT_NOP): Remove.
21649         (lll_wait_tid): Use atomic_spin_nop instead of BUSY_WAIT_NOP.
21650         * nscd/nscd-client.h (__nscd_acquire_maplock): Use atomic_spin_nop
21651         instead of atomic_delay.
21652
21653 2015-06-29  Joseph Myers  <joseph@codesourcery.com>
21654
21655         [BZ #18613]
21656         * sysdeps/ieee754/dbl-64/e_gamma_r.c (gamma_positive): Take log of
21657         X_ADJ not X when adjusting exponent.
21658         (__ieee754_gamma_r): Do intermediate computations in
21659         round-to-nearest then adjust overflowing and underflowing results
21660         as needed.
21661         * sysdeps/ieee754/flt-32/e_gammaf_r.c (gammaf_positive): Take log
21662         of X_ADJ not X when adjusting exponent.
21663         (__ieee754_gammaf_r): Do intermediate computations in
21664         round-to-nearest then adjust overflowing and underflowing results
21665         as needed.
21666         * sysdeps/ieee754/ldbl-128/e_gammal_r.c (gammal_positive): Take
21667         log of X_ADJ not X when adjusting exponent.
21668         (__ieee754_gammal_r): Do intermediate computations in
21669         round-to-nearest then adjust overflowing and underflowing results
21670         as needed.  Use 1.0L not 1.0f as numerator of division.
21671         * sysdeps/ieee754/ldbl-128ibm/e_gammal_r.c (gammal_positive): Take
21672         log of X_ADJ not X when adjusting exponent.
21673         (__ieee754_gammal_r): Do intermediate computations in
21674         round-to-nearest then adjust overflowing and underflowing results
21675         as needed.  Use 1.0L not 1.0f as numerator of division.
21676         * sysdeps/ieee754/ldbl-96/e_gammal_r.c (gammal_positive): Take log
21677         of X_ADJ not X when adjusting exponent.
21678         (__ieee754_gammal_r): Do intermediate computations in
21679         round-to-nearest then adjust overflowing and underflowing results
21680         as needed.  Use 1.0L not 1.0f as numerator of division.
21681         * math/libm-test.inc (tgamma_test_data): Remove one test.  Moved
21682         to auto-libm-test-in.
21683         (tgamma_test): Use ALL_RM_TEST.
21684         * math/auto-libm-test-in: Add one test of tgamma.  Mark some other
21685         tests of tgamma with spurious-overflow.
21686         * math/auto-libm-test-out: Regenerated.
21687         * math/gen-libm-have-vector-test.sh: Do not check for START.
21688         * sysdeps/i386/fpu/libm-test-ulps: Update.
21689         * sysdeps/x86_64/fpu/libm-test-ulps: Likewise.
21690
21691         [BZ #18612]
21692         * sysdeps/ieee754/ldbl-128/e_j1l.c (__ieee754_j1l): For small
21693         arguments, just return 0.5 times the argument, with underflow
21694         forced as needed.
21695         * math/auto-libm-test-in: Add more tests of j1.
21696         * math/auto-libm-test-out: Regenerated.
21697
21698         [BZ #16559]
21699         * sysdeps/ieee754/dbl-64/e_j1.c: Include <float.h>.
21700         (__ieee754_j1): Force underflow exception for small results.
21701         * sysdeps/ieee754/dbl-64/e_jn.c (__ieee754_jn): Likewise.
21702         * sysdeps/ieee754/flt-32/e_j1f.c: Include <float.h>.
21703         (__ieee754_j1f): Force underflow exception for small results.
21704         * sysdeps/ieee754/flt-32/e_jnf.c (__ieee754_jnf): Likewise.
21705         * sysdeps/ieee754/ldbl-128/e_jnl.c (__ieee754_jnl): Likewise.
21706         * sysdeps/ieee754/ldbl-128ibm/e_jnl.c (__ieee754_jnl): Likewise.
21707         * sysdeps/ieee754/ldbl-96/e_j1l.c: Include <float.h>.
21708         (__ieee754_j1l): Force underflow exception for small results.
21709         * sysdeps/ieee754/ldbl-96/e_jnl.c (__ieee754_jnl): Likewise.
21710         * math/auto-libm-test-in: Add more tests of j1 and jn.
21711         * math/auto-libm-test-out: Regenerated.
21712
21713         * sysdeps/unix/sysv/linux/bits/in.h (IP_CHECKSUM): New macro.
21714         * sysdeps/unix/sysv/linux/bits/socket.h (PF_IB): Likewise.
21715         (PF_MPLS): Likewise.
21716         (AF_IB): Likewise.
21717         (AF_MPLS): Likewise.
21718         * sysdeps/unix/sysv/linux/sys/mount.h (MS_LAZYTIME): New enum
21719         value and macro.
21720         (MS_RMT_MASK): Include MS_LAZYTIME.
21721
21722 2015-06-26  Mel Gorman  <mgorman@suse.de>
21723
21724         [BZ #18502]
21725         * malloc/arena.c (heap_trim): Don't try to shrink a heap that is
21726         already minimal.
21727
21728 2015-06-26  Matthew Fortune  <matthew.fortune@imgtec.com>
21729
21730         * elf/elf.h (DT_MIPS_RLD_MAP_REL): New macro.
21731         (DT_MIPS_NUM): Update.
21732         * sysdeps/mips/dl-machine.h (ELF_MACHINE_DEBUG_SETUP): Handle
21733         DT_MIPS_RLD_MAP_REL.
21734
21735 2015-06-25  Joseph Myers  <joseph@codesourcery.com>
21736
21737         [BZ #16559]
21738         [BZ #18602]
21739         * sysdeps/ieee754/dbl-64/e_jn.c (__ieee754_jn): Set
21740         round-to-nearest internally then recompute results that
21741         underflowed to zero in the original rounding mode.
21742         * sysdeps/ieee754/flt-32/e_jnf.c (__ieee754_jnf): Likewise.
21743         * sysdeps/ieee754/ldbl-128/e_jnl.c (__ieee754_jnl): Likewise.
21744         * sysdeps/ieee754/ldbl-128ibm/e_jnl.c (__ieee754_jnl): Likewise.
21745         * sysdeps/ieee754/ldbl-96/e_jnl.c (__ieee754_jnl): Likewise.
21746         * math/libm-test.inc (jn_test): Use ALL_RM_TEST.
21747         * sysdeps/i386/fpu/libm-test-ulps: Update.
21748         * sysdeps/x86_64/fpu/libm-test-ulps: Likewise.
21749
21750 2015-06-25  Andrew Senkevich  <andrew.senkevich@intel.com>
21751
21752         * NEWS: Fixed description of link with vector math library.
21753
21754 2015-06-25  Andreas Schwab  <schwab@suse.de>
21755
21756         [BZ #18549]
21757         * libio/fmemopen.c (fmemopen_write): Fix bounds check for ENOSPC.
21758         * libio/test-fmemopen.c (do_test): Add test for it.
21759
21760 2015-06-25  H.J. Lu  <hongjiu.lu@intel.com>
21761
21762         [BZ #17841]
21763         * Makeconfig (no-pie-ldflag): New.
21764         (+link): Set to $(+link-pie) if default to PIE.
21765         (+link-tests): Set to $(+link-pie-tests) if default to PIE.
21766         * config.make.in (build-pie-default): New.
21767         * configure.ac (libc_cv_pie_default): New.  Set to yes if -fPIE
21768         is default.  AC_SUBST.
21769         * configure: Regenerated.
21770         * elf/Makefile (LDFLAGS-tst-dlopen-aout): New.
21771
21772 2015-06-24  Roland McGrath  <roland@hack.frob.com>
21773
21774         * nptl/descr.h (struct pthread): Change type of field setxid_futex
21775         to 'unsigned int'.
21776
21777         * resolv/gai_misc.h (struct waitlist): Change type of field
21778         counterp to 'volatile unsigned int *'.
21779         * sysdeps/nptl/gai_misc.h (GAI_MISC_WAIT): Use unsigned types for
21780         FUTEXADDR and OLDVAL.
21781         * resolv/getaddrinfo_a.c (getaddrinfo_a):
21782         Give local variable TOTAL type 'volatile unsigned int'.
21783         (struct async_waitlist): Change type of field counter to 'unsigned int'.
21784         * resolv/gai_suspend.c (gai_suspend):
21785         Give local variable CNTR type 'unsigned int'.
21786
21787         * sysdeps/pthread/aio_misc.h (struct waitlist): Change type of field
21788         counterp to 'volatile unsigned int *'.
21789         * sysdeps/pthread/aio_suspend.c [DONT_NEED_AIO_MISC_COND]
21790         (do_aio_misc_wait): Give argument CNTR type 'unsigned int *'.
21791         (aio_suspend): Give local variable CNTR type 'unsigned int'.
21792         * sysdeps/pthread/lio_listio.c (lio_listio_internal):
21793         Give local variable TOTAL type 'volatile unsigned int'.
21794         (struct async_waitlist): Change type of field counter to 'unsigned int'.
21795
21796 2015-06-24  H.J. Lu  <hongjiu.lu@intel.com>
21797
21798         [BZ #18383]
21799         * csu/libc-tls.c (__libc_setup_tls) [TLS_TCB_AT_TP]: Align
21800         TCB_OFFSET to MAX_ALIGN, not just TCBALIGN.  Add comment.
21801         * elf/Makefile (test-xfail-tst-tlsalign{,-static}): Remove
21802         comment for i386/x86-64.
21803         (test-xfail-tst-tlsalign-extern-static): Removed.
21804
21805 2015-06-24  Joseph Myers  <joseph@codesourcery.com>
21806
21807         * math/test-double.h: New file.
21808         * math/test-float.h: Likewise.
21809         * math/test-ldouble.h: Likewise.
21810         * math/test-math-inline.h: Likewise.
21811         * math/test-math-no-inline.h: Likewise.
21812         * math/test-math-scalar.h: Likewise.
21813         * math/test-math-vector.h: Likewise.
21814         * math/test-vec-loop.h: Remove file.  Contents moved into
21815         test-math-vector.h.
21816         * math/libm-test.inc (MATHCONST): Do not document macro.
21817         * math/test-double.c: Include test-double.h, test-math-no-inline.h
21818         and test-math-scalar.h.
21819         (FUNC): Remove macro.
21820         (FUNC_TEST): Likewise.
21821         (FLOAT): Likewise.
21822         (MATHCONST): Likewise.
21823         (PRINTF_EXPR): Likewise.
21824         (PRINTF_XEXPR): Likewise.
21825         (PRINTF_NEXPR): Likewise.
21826         (TEST_DOUBLE): Likewise.
21827         (TEST_MATHVEC): Likewise.
21828         (__NO_MATH_INLINES): Likewise.
21829         * math/test-float.c: Include test-float.h, test-math-no-inline.h
21830         and test-math-scalar.h.
21831         (FUNC): Remove macro.
21832         (FUNC_TEST): Likewise.
21833         (FLOAT): Likewise.
21834         (MATHCONST): Likewise.
21835         (PRINTF_EXPR): Likewise.
21836         (PRINTF_XEXPR): Likewise.
21837         (PRINTF_NEXPR): Likewise.
21838         (TEST_FLOAT): Likewise.
21839         (TEST_MATHVEC): Likewise.
21840         (__NO_MATH_INLINES): Likewise.
21841         * math/test-idouble.c: Include test-double.h, test-math-inline.h
21842         and test-math-scalar.h.
21843         (FUNC): Remove macro.
21844         (FUNC_TEST): Likewise.
21845         (FLOAT): Likewise.
21846         (MATHCONST): Likewise.
21847         (PRINTF_EXPR): Likewise.
21848         (PRINTF_XEXPR): Likewise.
21849         (PRINTF_NEXPR): Likewise.
21850         (TEST_DOUBLE): Likewise.
21851         (TEST_MATHVEC): Likewise.
21852         (TEST_INLINE): Likewise.
21853         (__NO_MATH_INLINES): Likewise.
21854         * math/test-ifloat.c: Include test-float.h, test-math-inline.h and
21855         test-math-scalar.h.
21856         (FUNC): Remove macro.
21857         (FUNC_TEST): Likewise.
21858         (FLOAT): Likewise.
21859         (MATHCONST): Likewise.
21860         (PRINTF_EXPR): Likewise.
21861         (PRINTF_XEXPR): Likewise.
21862         (PRINTF_NEXPR): Likewise.
21863         (TEST_FLOAT): Likewise.
21864         (TEST_MATHVEC): Likewise.
21865         (TEST_INLINE): Likewise.
21866         (__NO_MATH_INLINES): Likewise.
21867         * math/test-ildoubl.c: Include test-ldouble.h, test-math-inline.h
21868         and test-math-scalar.h.
21869         (FUNC): Remove macro.
21870         (FUNC_TEST): Likewise.
21871         (FLOAT): Likewise.
21872         (MATHCONST): Likewise.
21873         (PRINTF_EXPR): Likewise.
21874         (PRINTF_XEXPR): Likewise.
21875         (PRINTF_NEXPR): Likewise.
21876         (TEST_LDOUBLE): Likewise.
21877         (TEST_MATHVEC): Likewise.
21878         (TEST_INLINE): Likewise.
21879         (__NO_MATH_INLINES): Likewise.
21880         * math/test-ldouble.c: Include test-ldouble.h,
21881         test-math-no-inline.h and test-math-scalar.h.
21882         (FUNC): Remove macro.
21883         (FUNC_TEST): Likewise.
21884         (FLOAT): Likewise.
21885         (MATHCONST): Likewise.
21886         (PRINTF_EXPR): Likewise.
21887         (PRINTF_XEXPR): Likewise.
21888         (PRINTF_NEXPR): Likewise.
21889         (TEST_LDOUBLE): Likewise.
21890         (TEST_MATHVEC): Likewise.
21891         (__NO_MATH_INLINES): Likewise.
21892         * math/test-double-vlen2.h: Include test-double.h,
21893         test-math-no-inline.h and test-math-vector.h.
21894         (FLOAT): Remove macro.
21895         (FUNC): Likewise.
21896         (MATHCONST): Likewise.
21897         (PRINTF_EXPR): Likewise.
21898         (PRINTF_XEXPR): Likewise.
21899         (PRINTF_NEXPR): Likewise.
21900         (TEST_DOUBLE): Likewise.
21901         (TEST_MATHVEC): Likewise.
21902         (__NO_MATH_INLINES): Likewise.
21903         (CNCT): Likewise.
21904         (CONCAT): Likewise.
21905         (WRAPPER_NAME): Likewise.
21906         (WRAPPER_DECL): Likewise.
21907         (WRAPPER_DECL_ff): Likewise.
21908         (WRAPPER_DECL_fFF): Likewise.
21909         (VECTOR_WRAPPER): Likewise.
21910         (VECTOR_WRAPPER_ff): Likewise.
21911         (VECTOR_WRAPPER_fFF): Likewise.
21912         (VEC_LEN): New macro.
21913         * math/test-double-vlen4.h: Include test-double.h,
21914         test-math-no-inline.h and test-math-vector.h.
21915         (FLOAT): Remove macro.
21916         (FUNC): Likewise.
21917         (MATHCONST): Likewise.
21918         (PRINTF_EXPR): Likewise.
21919         (PRINTF_XEXPR): Likewise.
21920         (PRINTF_NEXPR): Likewise.
21921         (TEST_DOUBLE): Likewise.
21922         (TEST_MATHVEC): Likewise.
21923         (__NO_MATH_INLINES): Likewise.
21924         (CNCT): Likewise.
21925         (CONCAT): Likewise.
21926         (WRAPPER_NAME): Likewise.
21927         (WRAPPER_DECL): Likewise.
21928         (WRAPPER_DECL_ff): Likewise.
21929         (WRAPPER_DECL_fFF): Likewise.
21930         (VECTOR_WRAPPER): Likewise.
21931         (VECTOR_WRAPPER_ff): Likewise.
21932         (VECTOR_WRAPPER_fFF): Likewise.
21933         (VEC_LEN): New macro.
21934         * math/test-double-vlen8.h: Include test-double.h,
21935         test-math-no-inline.h and test-math-vector.h.
21936         (FLOAT): Remove macro.
21937         (FUNC): Likewise.
21938         (MATHCONST): Likewise.
21939         (PRINTF_EXPR): Likewise.
21940         (PRINTF_XEXPR): Likewise.
21941         (PRINTF_NEXPR): Likewise.
21942         (TEST_DOUBLE): Likewise.
21943         (TEST_MATHVEC): Likewise.
21944         (__NO_MATH_INLINES): Likewise.
21945         (CNCT): Likewise.
21946         (CONCAT): Likewise.
21947         (WRAPPER_NAME): Likewise.
21948         (WRAPPER_DECL): Likewise.
21949         (WRAPPER_DECL_ff): Likewise.
21950         (WRAPPER_DECL_fFF): Likewise.
21951         (VECTOR_WRAPPER): Likewise.
21952         (VECTOR_WRAPPER_ff): Likewise.
21953         (VECTOR_WRAPPER_fFF): Likewise.
21954         (VEC_LEN): New macro.
21955         * math/test-float-vlen4.h: Include test-float.h,
21956         test-math-no-inline.h and test-math-vector.h.
21957         (FLOAT): Remove macro.
21958         (FUNC): Likewise.
21959         (MATHCONST): Likewise.
21960         (PRINTF_EXPR): Likewise.
21961         (PRINTF_XEXPR): Likewise.
21962         (PRINTF_NEXPR): Likewise.
21963         (TEST_FLOAT): Likewise.
21964         (TEST_MATHVEC): Likewise.
21965         (__NO_MATH_INLINES): Likewise.
21966         (CNCT): Likewise.
21967         (CONCAT): Likewise.
21968         (WRAPPER_NAME): Likewise.
21969         (WRAPPER_DECL): Likewise.
21970         (WRAPPER_DECL_ff): Likewise.
21971         (WRAPPER_DECL_fFF): Likewise.
21972         (VECTOR_WRAPPER): Likewise.
21973         (VECTOR_WRAPPER_ff): Likewise.
21974         (VECTOR_WRAPPER_fFF): Likewise.
21975         (VEC_LEN): New macro.
21976         * math/test-float-vlen8.h: Include test-float.h,
21977         test-math-no-inline.h and test-math-vector.h.
21978         (FLOAT): Remove macro.
21979         (FUNC): Likewise.
21980         (MATHCONST): Likewise.
21981         (PRINTF_EXPR): Likewise.
21982         (PRINTF_XEXPR): Likewise.
21983         (PRINTF_NEXPR): Likewise.
21984         (TEST_FLOAT): Likewise.
21985         (TEST_MATHVEC): Likewise.
21986         (__NO_MATH_INLINES): Likewise.
21987         (CNCT): Likewise.
21988         (CONCAT): Likewise.
21989         (WRAPPER_NAME): Likewise.
21990         (WRAPPER_DECL): Likewise.
21991         (WRAPPER_DECL_ff): Likewise.
21992         (WRAPPER_DECL_fFF): Likewise.
21993         (VECTOR_WRAPPER): Likewise.
21994         (VECTOR_WRAPPER_ff): Likewise.
21995         (VECTOR_WRAPPER_fFF): Likewise.
21996         (VEC_LEN): New macro.
21997         * math/test-float-vlen16.h: Include test-float.h,
21998         test-math-no-inline.h and test-math-vector.h.
21999         (FLOAT): Remove macro.
22000         (FUNC): Likewise.
22001         (MATHCONST): Likewise.
22002         (PRINTF_EXPR): Likewise.
22003         (PRINTF_XEXPR): Likewise.
22004         (PRINTF_NEXPR): Likewise.
22005         (TEST_FLOAT): Likewise.
22006         (TEST_MATHVEC): Likewise.
22007         (__NO_MATH_INLINES): Likewise.
22008         (CNCT): Likewise.
22009         (CONCAT): Likewise.
22010         (WRAPPER_NAME): Likewise.
22011         (WRAPPER_DECL): Likewise.
22012         (WRAPPER_DECL_ff): Likewise.
22013         (WRAPPER_DECL_fFF): Likewise.
22014         (VECTOR_WRAPPER): Likewise.
22015         (VECTOR_WRAPPER_ff): Likewise.
22016         (VECTOR_WRAPPER_fFF): Likewise.
22017         (VEC_LEN): New macro.
22018         * sysdeps/x86_64/fpu/test-double-vlen2-wrappers.c: Do not include
22019         test-vec-loop.h.
22020         * sysdeps/x86_64/fpu/test-double-vlen4-wrappers.c: Likewise.
22021         * sysdeps/x86_64/fpu/test-double-vlen4-avx2-wrappers.c: Likewise.
22022         * sysdeps/x86_64/fpu/test-double-vlen8-wrappers.c: Likewise.
22023         * sysdeps/x86_64/fpu/test-float-vlen4-wrappers.c: Likewise.
22024         * sysdeps/x86_64/fpu/test-float-vlen8-wrappers.c: Likewise.
22025         * sysdeps/x86_64/fpu/test-float-vlen8-avx2-wrappers.c: Likewise.
22026         * sysdeps/x86_64/fpu/test-float-vlen16-wrappers.c: Likewise.
22027
22028 2015-06-24  Roland McGrath  <roland@hack.frob.com>
22029
22030         * sysdeps/nacl/glob.c (getlogin_r): Macro renamed to ...
22031         (__getlogin_r): ... this.
22032
22033 2015-06-24  Joseph Myers  <joseph@codesourcery.com>
22034
22035         [BZ #18594]
22036         * math/s_ccosh.c (__ccosh): Compare with least normal value
22037         instead of comparing class with FP_SUBNORMAL.
22038         * math/s_ccoshf.c (__ccoshf): Likewise.
22039         * math/s_ccoshl.c (__ccoshl): Likewise.
22040         * math/s_cexp.c (__cexp): Likewise.
22041         * math/s_cexpf.c (__cexpf): Likewise.
22042         * math/s_cexpl.c (__cexpl): Likewise.
22043         * math/s_csin.c (__csin): Likewise.
22044         * math/s_csinf.c (__csinf): Likewise.
22045         * math/s_csinh.c (__csinh): Likewise.
22046         * math/s_csinhf.c (__csinhf): Likewise.
22047         * math/s_csinhl.c (__csinhl): Likewise.
22048         * math/s_csinl.c (__csinl): Likewise.
22049         * math/s_ctan.c (__ctan): Likewise.
22050         * math/s_ctanf.c (__ctanf): Likewise.
22051         * math/s_ctanh.c (__ctanh): Likewise.
22052         * math/s_ctanhf.c (__ctanhf): Likewise.
22053         * math/s_ctanhl.c (__ctanhl): Likewise.
22054         * math/s_ctanl.c (__ctanl): Likewise.
22055         * math/auto-libm-test-in: Add more tests of ccos, ccosh, cexp,
22056         csin, csinh, ctan and ctanh.
22057         * math/auto-libm-test-out: Regenerated.
22058         * math/libm-test.inc (cexp_test): Use ALL_RM_TEST.
22059         * sysdeps/i386/fpu/libm-test-ulps: Update.
22060         * sysdeps/x86_64/fpu/libm-test-ulps: Likewise.
22061
22062 2015-06-24  Roland McGrath  <roland@hack.frob.com>
22063
22064         * sysdeps/unix/sysv/linux/tst-getcpu.c (do_test): When sched_getcpu
22065         return value is wrong, print the expected value too.
22066
22067 2015-06-24  H.J. Lu  <hongjiu.lu@intel.com>
22068
22069         [BZ #18585]
22070         * elf/readlib.c (is_gdb_python_file): New.
22071         (process_file): Don't issue errors on filenames with -gdb.py
22072         suffix.
22073
22074 2015-06-24  Joseph Myers  <joseph@codesourcery.com>
22075
22076         * math/auto-libm-test-in: Add more tests of csin and csinh.
22077         * math/auto-libm-test-out: Regenerated.
22078         * math/libm-test.inc (csin_test_data): Remove tests moved to
22079         auto-libm-test-in.
22080         (csinh_test_data): Likewise.
22081
22082         [BZ #18593]
22083         * math/s_csin.c (__csin): Negate before rather than after possibly
22084         overflowing multiplication.
22085         * math/s_csinf.c (__csinf): Likewise.
22086         * math/s_csinh.c (__csinh): Likewise.
22087         * math/s_csinhf.c (__csinhf): Likewise.
22088         * math/s_csinhl.c (__csinhl): Likewise.
22089         * math/s_csinl.c (__csinl): Likewise.
22090         * math/auto-libm-test-in: Add some tests of csin and csinh.
22091         * math/auto-libm-test-out: Regenerated.
22092         * math/libm-test.inc (csin_test_data): Use AUTO_TESTS_c_c.
22093         (csinh_test_data): Likewise.
22094         * sysdeps/x86_64/fpu/libm-test-ulps: Update.
22095
22096         [BZ #18586]
22097         * sysdeps/ieee754/ldbl-128/e_expl.c (__ieee754_expl): Force
22098         underflow exception for small results.
22099
22100 2015-06-24  Andrew Senkevich  <andrew.senkevich@intel.com>
22101
22102         * sysdeps/x86_64/fpu/Makefile (libmvec-support): Fixed files list.
22103         * sysdeps/x86_64/fpu/multiarch/svml_s_cosf4_core_sse4.S: Renamed
22104         variable and included header.
22105         * sysdeps/x86_64/fpu/multiarch/svml_s_cosf8_core_avx2.S: Likewise.
22106         * sysdeps/x86_64/fpu/multiarch/svml_s_cosf16_core_avx512.S: Likewise.
22107         * sysdeps/x86_64/fpu/multiarch/svml_s_sinf4_core_sse4.S: Likewise.
22108         * sysdeps/x86_64/fpu/multiarch/svml_s_sinf8_core_avx2.S: Likewise.
22109         * sysdeps/x86_64/fpu/multiarch/svml_s_sinf16_core_avx512.S: Likewise.
22110         * sysdeps/x86_64/fpu/multiarch/svml_s_sincosf4_core_sse4.S: Likewise.
22111         * sysdeps/x86_64/fpu/multiarch/svml_s_sincosf8_core_avx2.S: Likewise.
22112         * sysdeps/x86_64/fpu/multiarch/svml_s_sincosf16_core_avx512.S: Likewise.
22113         * sysdeps/x86_64/fpu/svml_s_trig_data.S: New file.
22114         * sysdeps/x86_64/fpu/svml_s_trig_data.h: Likewise.
22115         * sysdeps/x86_64/fpu/svml_s_cosf_data.S: Removed file.
22116         * sysdeps/x86_64/fpu/svml_s_cosf_data.h: Likewise.
22117         * sysdeps/x86_64/fpu/svml_s_sinf_data.S: Likewise.
22118         * sysdeps/x86_64/fpu/svml_s_sinf_data.h: Likewise.
22119         * sysdeps/x86_64/fpu/svml_s_sincosf_data.S: Likewise.
22120         * sysdeps/x86_64/fpu/svml_s_sincosf_data.h: Likewise.
22121
22122 2015-06-23  Joseph Myers  <joseph@codesourcery.com>
22123
22124         [BZ #16526]
22125         [BZ #16538]
22126         * sysdeps/ieee754/dbl-64/s_sin.c: Include <float.h>.
22127         (__sin): Force underflow exception for arguments with small
22128         absolute value.
22129         * sysdeps/ieee754/flt-32/k_sinf.c: Include <float.h>.
22130         (__kernel_sinf): Force underflow exception for arguments with
22131         small absolute value.
22132         * sysdeps/ieee754/ldbl-128/k_sincosl.c: Include <float.h>.
22133         (__kernel_sincosl): Force underflow exception for arguments with
22134         small absolute value.
22135         * sysdeps/ieee754/ldbl-128/k_sinl.c: Include <float.h>.
22136         (__kernel_sinl): Force underflow exception for arguments with
22137         small absolute value.
22138         * sysdeps/ieee754/ldbl-128ibm/k_sincosl.c: Include <float.h>.
22139         (__kernel_sincosl): Force underflow exception for arguments with
22140         small absolute value.
22141         * sysdeps/ieee754/ldbl-128ibm/k_sinl.c: Include <float.h>.
22142         (__kernel_sinl): Force underflow exception for arguments with
22143         small absolute value.
22144         * sysdeps/ieee754/ldbl-96/k_sinl.c: Include <float.h>.
22145         (__kernel_sinl): Force underflow exception for arguments with
22146         small absolute value.
22147         * sysdeps/powerpc/fpu/k_sinf.c: Include <float.h>.
22148         (__kernel_sinf): Force underflow exception for arguments with
22149         small absolute value.
22150         * math/auto-libm-test-in: Add more tests of sin and sincos.
22151         * math/auto-libm-test-out: Regenerated.
22152
22153         [BZ #18245]
22154         [BZ #18583]
22155         * sysdeps/ieee754/k_standardl.c: Include <fenv.h>.
22156         (__kernel_standard_l): Use feholdexcept and fesetenv around
22157         conversion to double instead of special-casing overflow and
22158         underflow.
22159         * math/libm-test.inc (fmod_test_data): Add more tests.
22160         (remainder_test_data): Likewise.
22161         (sqrt_test_data): Likewise.
22162
22163 2015-06-23  Torvald Riegel  <triegel@redhat.com>
22164
22165         [BZ #17403]
22166         * sysdeps/x86_64/bits/atomic.h: (atomic_full_barrier,
22167         atomic_read_barrier, atomic_write_barrier): Define.
22168         * sysdeps/i386/i486/bits/atomic.h (atomic_full_barrier,
22169         atomic_read_barrier, atomic_write_barrier): Define.
22170
22171 2015-06-23  Joseph Myers  <joseph@codesourcery.com>
22172
22173         * math/Makefile [$(PERL) != no]
22174         ($(addprefix $(objpfx), $(addsuffix .o, $(libm-vec-tests)))): Move
22175         dependency on libm-test.stmp below the inclusion of Rules.
22176
22177 2015-06-23  Andrew Senkevich  <andrew.senkevich@intel.com>
22178
22179         * sysdeps/x86_64/fpu/Makefile (libmvec-support): Fixed files list.
22180         * sysdeps/x86_64/fpu/multiarch/svml_d_cos2_core_sse4.S: Renamed variable
22181         and included header.
22182         * sysdeps/x86_64/fpu/multiarch/svml_d_cos4_core_avx2.S: Likewise.
22183         * sysdeps/x86_64/fpu/multiarch/svml_d_cos8_core_avx512.S: Likewise.
22184         * sysdeps/x86_64/fpu/multiarch/svml_d_sin2_core_sse4.S: Likewise.
22185         * sysdeps/x86_64/fpu/multiarch/svml_d_sin4_core_avx2.S: Likewise.
22186         * sysdeps/x86_64/fpu/multiarch/svml_d_sin8_core_avx512.S: Likewise.
22187         * sysdeps/x86_64/fpu/multiarch/svml_d_sincos2_core_sse4.S: Likewise.
22188         * sysdeps/x86_64/fpu/multiarch/svml_d_sincos4_core_avx2.S: Likewise.
22189         * sysdeps/x86_64/fpu/multiarch/svml_d_sincos8_core_avx512.S: Likewise.
22190         * sysdeps/x86_64/fpu/svml_d_trig_data.S: New file.
22191         * sysdeps/x86_64/fpu/svml_d_trig_data.h: Likewise.
22192         * sysdeps/x86_64/fpu/svml_d_cos2_core.S: Removed unneeded include.
22193         * sysdeps/x86_64/fpu/svml_d_cos4_core.S: Likewise.
22194         * sysdeps/x86_64/fpu/svml_d_cos8_core.S: Likewise.
22195         * sysdeps/x86_64/fpu/svml_d_cos_data.S: Removed file.
22196         * sysdeps/x86_64/fpu/svml_d_cos_data.h: Likewise.
22197         * sysdeps/x86_64/fpu/svml_d_sin_data.S: Likewise.
22198         * sysdeps/x86_64/fpu/svml_d_sin_data.h: Likewise.
22199         * sysdeps/x86_64/fpu/svml_d_sincos_data.S: Likewise.
22200         * sysdeps/x86_64/fpu/svml_d_sincos_data.h: Likewise.
22201
22202 2015-06-23  Joseph Myers  <joseph@codesourcery.com>
22203
22204         [BZ #18371]
22205         * math/s_csqrt.c (__csqrt): Avoid multiplication by 0.5 where
22206         intermediate but not final result might underflow.
22207         * math/s_csqrtf.c (__csqrtf): Likewise.
22208         * math/s_csqrtl.c (__csqrtl): Likewise.
22209         * math/auto-libm-test-in: Add more tests of csqrt.
22210         * math/auto-libm-test-out: Regenerated.
22211         * sysdeps/i386/fpu/libm-test-ulps: Update.
22212
22213         [BZ #18219]
22214         * sysdeps/ieee754/dbl-64/e_exp2.c (__ieee754_exp2): Reduce
22215         threshold on absolute value of exponent for which scaling is used.
22216         * sysdeps/ieee754/flt-32/e_exp2f.c (__ieee754_exp2f): Likewise.
22217         * math/auto-libm-test-in: Add more tests of exp2.
22218         * math/auto-libm-test-out: Regenerated.
22219
22220 2015-06-23  Dmitry V. Levin  <ldv@altlinux.org>
22221
22222         [BZ #17977]
22223         * resolv/res_hconf.c (_res_hconf_reorder_addrs): Fix unlocking
22224         when initializing interface list, based on the bug analysis
22225         and the patch proposed by Eric Newton.
22226         * resolv/tst-res_hconf_reorder.c: New test.
22227         * resolv/Makefile [$(have-thread-library) = yes] (tests): Add
22228         tst-res_hconf_reorder.
22229         ($(objpfx)tst-res_hconf_reorder): Depend on $(libdl)
22230         and $(shared-thread-library).
22231         (tst-res_hconf_reorder-ENV): New variable.
22232
22233         * resolv/res_hconf.c (_res_hconf_reorder_addrs): Fix typo
22234         in comment.
22235
22236 2015-06-22  Joseph Myers  <joseph@codesourcery.com>
22237
22238         [BZ #16353]
22239         * sysdeps/i386/fpu/s_expm1.S (dbl_min): New object.
22240         (__expm1): Force underflow exception for arguments with small
22241         absolute value.
22242         * sysdeps/i386/fpu/s_expm1f.S (flt_min): New object.
22243         (__expm1f): Force underflow exception for arguments with small
22244         absolute value.
22245         * sysdeps/ieee754/dbl-64/s_expm1.c: Include <float.h>.
22246         (__expm1): Force underflow exception for arguments with small
22247         absolute value.
22248         * sysdeps/ieee754/flt-32/s_expm1f.c: Include <float.h>.
22249         (__expm1f): Force underflow exception for arguments with small
22250         absolute value.
22251         * sysdeps/ieee754/dbl-64/wordsize-64/e_cosh.c (__ieee754_cosh):
22252         Check for small arguments before calling __expm1.
22253         * math/auto-libm-test-in: Do not mark underflow exceptions as
22254         possibly missing for bug 16353.
22255         * math/auto-libm-test-out: Regenerated.
22256
22257 2015-06-22  Andreas Schwab  <schwab@suse.de>
22258
22259         [BZ #18513]
22260         * resolv/nss_dns/dns-host.c (getanswer_r): Record TTL also for
22261         PTR queries.
22262
22263 2015-06-22  Leonhard Holz  <leonhard.holz@web.de>
22264
22265         * string/strcoll_l.c (STRCOLL): Remove unnecessary memset.
22266
22267         * string/strcoll_l.c: Remove unused struct element idxnow.
22268
22269 2015-06-21  Joseph Myers  <joseph@codesourcery.com>
22270
22271         [BZ #18569]
22272         * sysdeps/i386/fpu/e_expl.S (IEEE754_EXPL) [USE_AS_EXPM1L]: Force
22273         underflow and return argument in case of subnormal argument.
22274         * sysdeps/x86_64/fpu/e_expl.S (IEEE754_EXPL) [USE_AS_EXPM1L]:
22275         Likewise.
22276         * math/auto-libm-test-in: Add more tests of expm1.
22277         * math/auto-libm-test-out: Regenerated.
22278
22279         [BZ #16361]
22280         * sysdeps/i386/fpu/e_expl.S [!USE_AS_EXPM1L] (cmin): New object.
22281         (IEEE754_EXPL) [!USE_AS_EXPM1L]: Force underflow exception for
22282         tiny results.
22283         * sysdeps/x86_64/fpu/e_expl.S [!USE_AS_EXPM1L] (cmin): New object.
22284         (IEEE754_EXPL) [!USE_AS_EXPM1L]: Force underflow exception for
22285         tiny results.
22286         * math/auto-libm-test-in: Add more tests of exp and exp10.  Do not
22287         mark underflow exceptions as possibly missing for bug 16361.
22288         * math/auto-libm-test-out: Regenerated.
22289
22290 2015-06-19  Joseph Myers  <joseph@codesourcery.com>
22291
22292         * conform/data/sys/select.h-data [XOPEN2K8] (pselect): Expect.
22293         * conform/Makefile (test-xfail-XOPEN2K8/sys/select.h/conform):
22294         Remove variable.
22295         (test-xfail-XOPEN2K8/sys/time.h/conform): Likewise.
22296         (test-xfail-XOPEN2K8/utmpx.h/conform).
22297
22298         * conform/conformtest.pl ($xerrors): New variable.
22299         (note_error): New function.
22300         (compiletest): New argument $xfail.  Use not_error.
22301         (runtest): Likewise.
22302         (top level): Handle xfail- lines.  Update calls to compiletest and
22303         runtest.  Handle xfail- and optional- in headers listed with
22304         allow-header.
22305         * conform/data/fcntl.h-data (O_TTY_INIT): Use xfail-.
22306         (O_EXEC): Likewise.
22307         (O_SEARCH): Likewise.
22308         * conform/data/stropts.h-data (ioctl): Likewise.
22309         * conform/data/sys/ipc.h-data (ipc_perm.mode): Likewise.
22310         * conform/data/sys/sem.h-data (semid_ds.sem_nsems): Likewise.
22311         * conform/data/sys/socket.h-data (msghdr.msg_iovlen): Likewise.
22312         (msghdr.msg_controllen): Likewise.
22313         (cmsghdr.cmsg_len): Likewise.
22314         * conform/data/utmpx.h-data (utmpx.ut_tv): Likewise.
22315         * conform/Makefile (test-xfail-XPG3/sys/ipc.h/conform): Remove
22316         variable.
22317         (test-xfail-XPG3/sys/sem.h/conform): Likewise.
22318         (test-xfail-XPG4/stropts.h/conform): Likewise.
22319         (test-xfail-XPG4/sys/ipc.h/conform): Likewise.
22320         (test-xfail-XPG4/sys/sem.h/conform): Likewise.
22321         (test-xfail-XPG4/sys/socket.h/conform): Likewise.
22322         (test-xfail-UNIX98/stropts.h/conform): Likewise.
22323         (test-xfail-UNIX98/sys/ipc.h/conform): Likewise.
22324         (test-xfail-UNIX98/sys/sem.h/conform): Likewise.
22325         (test-xfail-UNIX98/sys/socket.h/conform): Likewise.
22326         (test-xfail-XOPEN2K/stropts.h/conform): Likewise.
22327         (test-xfail-XOPEN2K/sys/ipc.h/conform): Likewise.
22328         (test-xfail-XOPEN2K/sys/sem.h/conform): Likewise.
22329         (test-xfail-XOPEN2K/sys/socket.h/conform): Likewise.
22330         (test-xfail-XOPEN2K/utmpx.h/conform): Likewise.
22331         (test-xfail-POSIX2008/fcntl.h/conform): Likewise.
22332         (test-xfail-POSIX2008/stropts.h/conform): Likewise.
22333         (test-xfail-XOPEN2K8/fcntl.h/conform): Likewise.
22334         (test-xfail-XOPEN2K8/stropts.h/conform): Likewise.
22335         (test-xfail-XOPEN2K8/sys/ipc.h/conform): Likewise.
22336         (test-xfail-XOPEN2K8/sys/sem.h/conform): Likewise.
22337         (test-xfail-XOPEN2K8/sys/socket.h/conform): Likewise.
22338
22339 2015-06-19  Andrew Senkevich  <andrew.senkevich@intel.com>
22340
22341         * sysdeps/ieee754/ldbl-opt/s_sin.c (__DECL_SIMD_sincos_disable,
22342         __DECL_SIMD_sincos_disablef, __DECL_SIMD_sincos_disablel): Added empty
22343         definitions for proper unfolding of __MATHDECL_VEC.
22344
22345 2015-06-19  Stefan Liebler  <stli@linux.vnet.ibm.com>
22346
22347         * benchtests/bench-strcoll.c:
22348         Include string.h.
22349         (main): Remove unused variable res.
22350
22351 2015-06-19  Stefan Liebler  <stli@linux.vnet.ibm.com>
22352
22353         * timezone/Makefile (%/UTC %/Universal):
22354         Generate test-result files for UTC and Universal.
22355
22356 2015-06-19  Stefan Liebler  <stli@linux.vnet.ibm.com>
22357
22358         * sysdeps/s390/fpu/libm-test-ulps: Regenerated.
22359
22360 2015-06-18  Joseph Myers  <joseph@codesourcery.com>
22361
22362         [BZ #16350]
22363         * sysdeps/i386/fpu/s_asinh.S (__asinh): Force underflow exception
22364         for arguments with small absolute value.
22365         * sysdeps/i386/fpu/s_asinhf.S (__asinhf): Likewise.
22366         * sysdeps/i386/fpu/s_asinhl.S (__asinhl): Likewise.
22367         * sysdeps/ieee754/dbl-64/s_asinh.c: Include <float.h>.
22368         (__asinh): Force underflow exception for arguments with small
22369         absolute value.
22370         * sysdeps/ieee754/flt-32/s_asinhf.c: Include <float.h>.
22371         (__asinhf): Force underflow exception for arguments with small
22372         absolute value.
22373         * sysdeps/ieee754/ldbl-128/s_asinhl.c: Include <float.h>.
22374         (__asinhl): Force underflow exception for arguments with small
22375         absolute value.
22376         * sysdeps/ieee754/ldbl-128ibm/s_asinhl.c: Include <float.h>.
22377         (__asinhl): Force underflow exception for arguments with small
22378         absolute value.
22379         * sysdeps/ieee754/ldbl-96/s_asinhl.c: Include <float.h>.
22380         (__asinhl): Force underflow exception for arguments with small
22381         absolute value.
22382         * math/auto-libm-test-in: Do not mark underflow exceptions as
22383         possibly missing for bug 16350.
22384         * math/auto-libm-test-out: Regenerated.
22385
22386         * include/bits/ipc.h: Remove file.
22387         * conform/Makefile (test-xfail-XPG3/sys/msg.h/conform): Remove
22388         variable.
22389         (test-xfail-XPG3/sys/shm.h/conform): Likewise.
22390         (test-xfail-XPG4/sys/msg.h/conform): Likewise.
22391         (test-xfail-XPG4/sys/shm.h/conform): Likewise.
22392         (test-xfail-UNIX98/sys/msg.h/conform): Likewise.
22393         (test-xfail-UNIX98/sys/shm.h/conform): Likewise.
22394         (test-xfail-XOPEN2K/sys/msg.h/conform): Likewise.
22395         (test-xfail-XOPEN2K/sys/shm.h/conform): Likewise.
22396         (test-xfail-XOPEN2K8/sys/msg.h/conform): Likewise.
22397         (test-xfail-XOPEN2K8/sys/shm.h/conform): Likewise.
22398
22399         * math/auto-libm-test-in: Remove spurious underflow allowance for
22400         tests of cexp.
22401         * math/auto-libm-test-out: Regenerated.
22402
22403         [BZ #18558]
22404         * sysdeps/unix/sysv/linux/bits/in.h (MCAST_JOIN_GROUP): Remove
22405         unconditional definition.
22406         (MCAST_BLOCK_SOURCE): Likewise.
22407         (MCAST_UNBLOCK_SOURCE): Likewise.
22408         (MCAST_LEAVE_GROUP): Likewise.
22409         (MCAST_JOIN_SOURCE_GROUP): Likewise.
22410         (MCAST_LEAVE_SOURCE_GROUP): Likewise.
22411         (MCAST_MSFILTER): Likewise.
22412         * conform/Makefile (test-xfail-XOPEN2K/arpa/inet.h/conform):
22413         Remove variable.
22414         (test-xfail-XOPEN2K/netdb.h/conform): Likewise.
22415         (test-xfail-XOPEN2K/netinet/in.h/conform): Likewise.
22416         (test-xfail-XOPEN2K8/arpa/inet.h/conform): Likewise.
22417         (test-xfail-XOPEN2K8/netdb.h/conform): Likewise.
22418         (test-xfail-XOPEN2K8/netinet/in.h/conform): Likewise.
22419
22420 2015-06-18  Andrew Senkevich  <andrew.senkevich@intel.com>
22421
22422         * NEWS: Mention addition of x86_64 vector sincosf.
22423         * math/test-float-vlen16.h: Added wrapper for sincosf tests.
22424         * math/test-float-vlen4.h: Likewise.
22425         * math/test-float-vlen8.h: Likewise.
22426         * sysdeps/unix/sysv/linux/x86_64/libmvec.abilist: New symbols added.
22427         * sysdeps/x86/fpu/bits/math-vector.h: Added sincosf SIMD declaration.
22428         * sysdeps/x86_64/fpu/Makefile (libmvec-support): Added new files.
22429         * sysdeps/x86_64/fpu/Versions: New versions added.
22430         * sysdeps/x86_64/fpu/libm-test-ulps: Regenerated.
22431         * sysdeps/x86_64/fpu/multiarch/Makefile (libmvec-sysdep_routines):
22432         Added build of SSE, AVX2 and AVX512 IFUNC versions.
22433         * sysdeps/x86_64/fpu/multiarch/svml_s_sincosf16_core.S
22434         * sysdeps/x86_64/fpu/multiarch/svml_s_sincosf16_core_avx512.S
22435         * sysdeps/x86_64/fpu/multiarch/svml_s_sincosf4_core.S
22436         * sysdeps/x86_64/fpu/multiarch/svml_s_sincosf4_core_sse4.S
22437         * sysdeps/x86_64/fpu/multiarch/svml_s_sincosf8_core.S
22438         * sysdeps/x86_64/fpu/multiarch/svml_s_sincosf8_core_avx2.S
22439         * sysdeps/x86_64/fpu/svml_s_sincosf16_core.S
22440         * sysdeps/x86_64/fpu/svml_s_sincosf4_core.S
22441         * sysdeps/x86_64/fpu/svml_s_sincosf8_core.S
22442         * sysdeps/x86_64/fpu/svml_s_sincosf8_core_avx.S
22443         * sysdeps/x86_64/fpu/svml_s_sincosf_data.S: New file.
22444         * sysdeps/x86_64/fpu/svml_s_sincosf_data.h: New file.
22445         * sysdeps/x86_64/fpu/svml_s_wrapper_impl.h: Added 3 argument wrappers.
22446         * sysdeps/x86_64/fpu/test-float-vlen16.c: : Vector sincosf tests.
22447         * sysdeps/x86_64/fpu/test-float-vlen16-wrappers.c: Likewise.
22448         * sysdeps/x86_64/fpu/test-float-vlen4-wrappers.c: Likewise.
22449         * sysdeps/x86_64/fpu/test-float-vlen4.c: Likewise.
22450         * sysdeps/x86_64/fpu/test-float-vlen8-avx2-wrappers.c: Likewise.
22451         * sysdeps/x86_64/fpu/test-float-vlen8-avx2.c: Likewise.
22452         * sysdeps/x86_64/fpu/test-float-vlen8-wrappers.c: Likewise.
22453         * sysdeps/x86_64/fpu/test-float-vlen8.c: Likewise.
22454
22455         * NEWS: Mention addition of x86_64 vector sincos.
22456         * bits/libm-simd-decl-stubs.h: Added stubs for sincos.
22457         * math/math.h (__MATHDECL_VEC): New macro.
22458         * math/bits/mathcalls.h: Added sincos declaration with __MATHDECL_VEC.
22459         * math/gen-libm-have-vector-test.sh: Added generation of sincos wrapper
22460         declaration under condition.
22461         * math/test-vec-loop.h (TEST_VEC_LOOP): Refactored.
22462         * math/test-double-vlen2.h: Added wrapper for sincos tests, reflected
22463         TEST_VEC_LOOP change.
22464         * math/test-double-vlen4.h: Likewise.
22465         * math/test-double-vlen8.h: Likewise.
22466         * math/test-float-vlen16.h: Reflected TEST_VEC_LOOP change.
22467         * math/test-float-vlen4.h: Likewise.
22468         * math/test-float-vlen8.h: Likewise.
22469         * sysdeps/unix/sysv/linux/x86_64/libmvec.abilist: New symbols added.
22470         * sysdeps/x86/fpu/bits/math-vector.h: Added sincos SIMD declaration.
22471         * sysdeps/x86_64/fpu/Makefile (libmvec-support): Added new files.
22472         * sysdeps/x86_64/fpu/Versions: New versions added.
22473         * sysdeps/x86_64/fpu/libm-test-ulps: Regenerated.
22474         * sysdeps/x86_64/fpu/multiarch/Makefile (libmvec-sysdep_routines):
22475         Added build of SSE, AVX2 and AVX512 IFUNC versions.
22476         * sysdeps/x86_64/fpu/multiarch/svml_d_sincos2_core.S: New file.
22477         * sysdeps/x86_64/fpu/multiarch/svml_d_sincos2_core_sse4.S: New file.
22478         * sysdeps/x86_64/fpu/multiarch/svml_d_sincos4_core.S: New file.
22479         * sysdeps/x86_64/fpu/multiarch/svml_d_sincos4_core_avx2.S: New file.
22480         * sysdeps/x86_64/fpu/multiarch/svml_d_sincos8_core.S: New file.
22481         * sysdeps/x86_64/fpu/multiarch/svml_d_sincos8_core_avx512.S: New file.
22482         * sysdeps/x86_64/fpu/svml_d_sincos2_core.S: New file.
22483         * sysdeps/x86_64/fpu/svml_d_sincos4_core.S: New file.
22484         * sysdeps/x86_64/fpu/svml_d_sincos4_core_avx.S: New file.
22485         * sysdeps/x86_64/fpu/svml_d_sincos8_core.S: New file.
22486         * sysdeps/x86_64/fpu/svml_d_sincos_data.S: New file.
22487         * sysdeps/x86_64/fpu/svml_d_sincos_data.h: New file.
22488         * sysdeps/x86_64/fpu/svml_d_wrapper_impl.h: Added wrappers for sincos.
22489         * sysdeps/x86_64/fpu/test-double-vlen2-wrappers.c: Vector sincos tests.
22490         * sysdeps/x86_64/fpu/test-double-vlen2.c: Likewise.
22491         * sysdeps/x86_64/fpu/test-double-vlen4-avx2-wrappers.c: Likewise.
22492         * sysdeps/x86_64/fpu/test-double-vlen4-avx2.c: Likewise.
22493         * sysdeps/x86_64/fpu/test-double-vlen4-wrappers.c: Likewise.
22494         * sysdeps/x86_64/fpu/test-double-vlen4.c: Likewise.
22495         * sysdeps/x86_64/fpu/test-double-vlen8-wrappers.c: Likewise.
22496         * sysdeps/x86_64/fpu/test-double-vlen8.c: Likewise.
22497
22498         * sysdeps/unix/sysv/linux/x86_64/libmvec.abilist: New symbols added.
22499         * sysdeps/x86/fpu/bits/math-vector.h: Added SIMD declaration and asm
22500         redirections for powf.
22501         * sysdeps/x86_64/fpu/Makefile (libmvec-support): Added new files.
22502         * sysdeps/x86_64/fpu/Versions: New versions added.
22503         * sysdeps/x86_64/fpu/libm-test-ulps: Regenerated.
22504         * sysdeps/x86_64/fpu/multiarch/Makefile (libmvec-sysdep_routines):
22505         Added build of SSE, AVX2 and AVX512 IFUNC versions.
22506         * sysdeps/x86_64/fpu/svml_s_wrapper_impl.h: Added 2 argument wrappers.
22507         * sysdeps/x86_64/fpu/multiarch/svml_s_powf16_core.S: New file.
22508         * sysdeps/x86_64/fpu/multiarch/svml_s_powf16_core_avx512.S: New file.
22509         * sysdeps/x86_64/fpu/multiarch/svml_s_powf4_core.S: New file.
22510         * sysdeps/x86_64/fpu/multiarch/svml_s_powf4_core_sse4.S: New file.
22511         * sysdeps/x86_64/fpu/multiarch/svml_s_powf8_core.S: New file.
22512         * sysdeps/x86_64/fpu/multiarch/svml_s_powf8_core_avx2.S: New file.
22513         * sysdeps/x86_64/fpu/svml_s_powf16_core.S: New file.
22514         * sysdeps/x86_64/fpu/svml_s_powf4_core.S: New file.
22515         * sysdeps/x86_64/fpu/svml_s_powf8_core.S: New file.
22516         * sysdeps/x86_64/fpu/svml_s_powf8_core_avx.S: New file.
22517         * sysdeps/x86_64/fpu/svml_s_powf_data.S: New file.
22518         * sysdeps/x86_64/fpu/svml_s_powf_data.h: New file.
22519         * sysdeps/x86_64/fpu/test-float-vlen16-wrappers.c: Vector powf tests.
22520         * sysdeps/x86_64/fpu/test-float-vlen16.c: Likewise.
22521         * sysdeps/x86_64/fpu/test-float-vlen4-wrappers.c: Likewise.
22522         * sysdeps/x86_64/fpu/test-float-vlen4.c: Likewise.
22523         * sysdeps/x86_64/fpu/test-float-vlen8-avx2-wrappers.c: Likewise.
22524         * sysdeps/x86_64/fpu/test-float-vlen8-avx2.c: Likewise.
22525         * sysdeps/x86_64/fpu/test-float-vlen8-wrappers.c: Likewise.
22526         * sysdeps/x86_64/fpu/test-float-vlen8.c: Likewise.
22527         * math/test-float-vlen16.h: Fixed 2 argument macro.
22528         * math/test-float-vlen4.h: Likewise.
22529         * math/test-float-vlen8.h: Likewise.
22530         * NEWS: Mention addition of x86_64 vector powf.
22531
22532 2015-06-17  Joseph Myers  <joseph@codesourcery.com>
22533
22534         * math/s_ctanhl.c [LDBL_MANT_DIG == 106] (LDBL_EPSILON): Undefine
22535         and redefine.
22536         * math/s_ctanl.c [LDBL_MANT_DIG == 106] (LDBL_EPSILON): Undefine
22537         and redefine.
22538         * sysdeps/ieee754/ldbl-128ibm/s_cprojl.c: Remove file.
22539         * sysdeps/ieee754/ldbl-128ibm/s_ctanhl.c: Likewise.
22540         * sysdeps/ieee754/ldbl-128ibm/s_ctanl.c: Likewise.
22541
22542         [BZ #18553]
22543         * resource/getpriority.c (getpriority): Rename to __getpriority
22544         and define as weak alias of __getpriority.
22545         * resource/setpriority.c (setpriority): Rename to __setpriority
22546         and define as weak alias of __setpriority.
22547         * sysdeps/mach/hurd/getpriority.c (getpriority): Rename to
22548         __getpriority and define as weak alias of __getpriority.
22549         * sysdeps/mach/hurd/setpriority.c (setpriority): Rename to
22550         __setpriority and define as weak alias of __setpriority.
22551         * sysdeps/unix/syscalls.list (getpriority): Use __getpriority as
22552         strong name.
22553         (setpriority): Use __setpriority as strong name.
22554         * sysdeps/unix/sysv/linux/getpriority.c (getpriority): Rename to
22555         __getpriority and define as weak alias of __getpriority.
22556         * include/sys/resource.h (__getpriority): Declare.  Use
22557         libc_hidden_proto.
22558         (__setpriority): Likewise.
22559         (getpriority): Don't use libc_hidden_proto.
22560         (setpriority): Likewise.
22561         * sysdeps/posix/nice.c (nice): Call __getpriority instead of
22562         getpriority.  Call __setpriority instead of setpriority.
22563         * conform/Makefile (test-xfail-XPG3/unistd.h/linknamespace):
22564         Remove variable.
22565
22566         [BZ #18547]
22567         * misc/getttyent.c (getttynam): Rename to __getttynam and define
22568         as weak alias of __getttynam.  Use prototype function definition.
22569         Call __setttyent, __getttyent and __endttyent instead of
22570         setttyent, getttyent and endttyent.
22571         (getttyent): Rename to __getttyent and define as weak alias of
22572         __getttyent.  Call __setttyent instead of setttyent.  Call
22573         __fgets_unlocked instead of fgets_unlocked.
22574         (setttyent): Rename to __setttyent and define as weak alias of
22575         __setttyent.
22576         (endttyent): Rename to __endttyent and define as weak alias of
22577         __endttyent.
22578         * include/ttyent.h (__getttyent): Declare.  Use libc_hidden_proto.
22579         (__setttyent): Likewise.
22580         (__endttyent): Likewise.
22581         (getttyent): Don't use libc_hidden_proto.
22582         (setttyent): Likewise.
22583         (endttyent): Likewise.
22584         * misc/ttyslot.c (ttyslot): Call __setttyent, __getttyent and
22585         __endttyent instead of setttyent, getttyent and endttyent.
22586         * conform/Makefile (test-xfail-XPG4/unistd.h/linknamespace):
22587         Remove variable.
22588
22589         [BZ #18546]
22590         * socket/recv.c (__recv): Use libc_hidden_def.
22591         * socket/socket.c (__socket): Likewise.
22592         * sysdeps/mach/hurd/recv.c (__recv): Likewise.
22593         * sysdeps/mach/hurd/socket.c (__socket): Likewise.
22594         * sysdeps/unix/sysv/linux/generic/recv.c (__recv): Likewise.
22595         * sysdeps/unix/sysv/linux/recv.c (__recv): Use libc_hidden_weak.
22596         * sysdeps/unix/sysv/linux/socket.c (__socket): Use
22597         libc_hidden_def.
22598         * sysdeps/unix/sysv/linux/x86_64/recv.c (__recv): Use
22599         libc_hidden_weak.
22600         * include/sys/socket.h (__socket): Do not use attribute_hidden.
22601         Use libc_hidden_proto.
22602         (__recv): Likewise.
22603         * socket/Versions (libc): Export __recv and __socket at version
22604         GLIBC_PRIVATE.
22605         * sysdeps/unix/sysv/linux/mq_notify.c (helper_thread): Call __recv
22606         instead of recv.
22607         (init_mq_netlink): Call __socket instead of socket.
22608         * conform/Makefile (test-xfail-POSIX/mqueue.h/linknamespace):
22609         Remove variable.
22610
22611         [BZ #18545]
22612         * rt/mq_timedreceive.c (mq_timedreceive): Rename to
22613         __mq_timedreceive and define as alias of __mq_timedreceive.  Use
22614         hidden_weak.
22615         * rt/mq_timedsend.c (mq_timedsend): Rename to __mq_timedsend and
22616         define as alias of __mq_timedsend.  Use hidden_weak.
22617         * sysdeps/unix/sysv/linux/syscalls.list (mq_timedsend): Use
22618         __mq_timedsend as strong name.
22619         (mq_timedreceive): Use __mq_timedreceive as strong name.
22620         * include/mqueue.h (__mq_timedsend): Declare.  Use hidden_proto.
22621         (__mq_timedreceive): Likewise.
22622         * sysdeps/unix/sysv/linux/mq_receive.c (mq_receive): Call
22623         __mq_timedreceive instead of mq_timedreceive.
22624         * sysdeps/unix/sysv/linux/mq_send.c (mq_send): Call __mq_timedsend
22625         instead of mq_timedsend.
22626         * conform/Makefile (test-xfail-UNIX98/mqueue.h/linknamespace):
22627         Remove variable.
22628
22629         * sysdeps/unix/make-syscalls.sh (emit_weak_aliases): Use
22630         hidden_def and hidden_weak instead of libc_hidden_def and
22631         libc_hidden_weak.
22632         (top level): Refer to hidden_def in comment.
22633         * sysdeps/unix/syscall-template.S (syscall_hidden_def): New
22634         macro.  Use it instead of libc_hidden_def.
22635         * sysdeps/unix/sysv/linux/syscalls.list (mq_timedsend): Do not
22636         specify __GI_* name explicitly.
22637         (mq_timedreceive): Likewise.
22638         (mq_setattr): Likewise.
22639
22640         [BZ #18544]
22641         * nptl/pthread_barrier_init.c (pthread_barrier_init): Rename to
22642         __pthread_barrier_init and define as weak alias of
22643         __pthread_barrier_init.
22644         * sysdeps/sparc/nptl/pthread_barrier_init.c
22645         (pthread_barrier_init): Likewise.
22646         * nptl/pthread_barrier_wait.c (pthread_barrier_wait): Rename to
22647         __pthread_barrier_wait and define as weak alias of
22648         __pthread_barrier_wait.
22649         * sysdeps/sparc/nptl/pthread_barrier_wait.c
22650         (pthread_barrier_wait): Likewise.
22651         * sysdeps/sparc/sparc32/pthread_barrier_wait.c
22652         (pthread_barrier_wait): Likewise.
22653         * sysdeps/unix/sysv/linux/i386/i486/pthread_barrier_wait.S
22654         (pthread_barrier_wait): Likewise.
22655         * sysdeps/unix/sysv/linux/x86_64/pthread_barrier_wait.S
22656         (pthread_barrier_wait): Likewise.
22657         * nptl/Versions (libpthread): Export __pthread_barrier_init and
22658         __pthread_barrier_wait at version GLIBC_PRIVATE.
22659         * include/pthread.h (__pthread_barrier_init): Declare.
22660         (__pthread_barrier_wait): Likewise.
22661         * sysdeps/unix/sysv/linux/mq_notify.c (notification_function):
22662         Call __pthread_barrier_wait instead of pthread_barrier_wait.
22663         (helper_thread): Likewise.
22664         (init_mq_netlink): Call __pthread_barrier_init instead of
22665         pthread_barrier_init.
22666
22667         [BZ #18542]
22668         * libio/iovswscanf.c (__vswscanf): Use libc_hidden_def.
22669         (vswscanf): Use ldbl_weak_alias instead of ldbl_strong_alias
22670         * include/wchar.h (__vswscanf): Declare.  Use libc_hidden_proto.
22671         * libio/swscanf.c (__swscanf): Call __vswscanf instead of
22672         vswscanf.
22673         * conform/Makefile (test-xfail-UNIX98/wchar.h/linknamespace):
22674         Remove variable.
22675
22676         [BZ #18540]
22677         * libio/iofflush.c [!_IO_MTSAFE_IO] (__fflush_unlocked): Define as
22678         strong alias of _IO_fflush.  Use libc_hidden_def.
22679         * libio/iofflush_u.c (fflush_unlocked): Rename to
22680         __fflush_unlocked and define as weak alias of __fflush_unlocked.
22681         Use libc_hidden_weak.
22682         * include/stdio.h (__fflush_unlocked): Declare.  Use
22683         libc_hidden_proto.
22684         * misc/getpass.c (getpass): Call __fflush_unlocked instead of
22685         fflush_unlocked.
22686         * conform/Makefile (test-xfail-UNIX98/unistd.h/linknamespace):
22687         Remove variable.
22688
22689         [BZ #18539]
22690         * stdlib/fmtmsg.c (addseverity): Rename to __addseverity and
22691         define as weak alias of __addseverity.
22692         * conform/Makefile (test-xfail-XPG4/fmtmsg.h/linknamespace):
22693         Remove variable.
22694         (test-xfail-UNIX98/fmtmsg.h/linknamespace): Likewise.
22695         (test-xfail-XOPEN2K/fmtmsg.h/linknamespace): Likewise.
22696         (test-xfail-XOPEN2K8/fmtmsg.h/linknamespace): Likewise.
22697
22698         [BZ #18536]
22699         * misc/tsearch.c (__tsearch): Use libc_hidden_def.
22700         (__tfind): Likewise.
22701         (__tdelete): Likewise.
22702         (__twalk): Likewise.
22703         * misc/Versions (libc): Add __tdelete, __tfind, __tsearch and
22704         __twalk to GLIBC_PRIVATE.
22705         * include/search.h (__tsearch): Use libc_hidden_proto.
22706         (__tfind): Likewise.
22707         (__tdelete): Likewise.
22708         (__twalk): Likewise.
22709         * nptl/sem_close.c (sem_close): Call __twalk instead of twalk.
22710         Call __tdelete instead of tdelete.
22711         * nptl/sem_open.c (check_add_mapping): Call __tfind instead of
22712         tfind.  Call __tsearch instead of tsearch.
22713         * sysdeps/sparc/sparc32/sem_open.c (check_add_mapping): Likewise.
22714         * conform/Makefile (test-xfail-POSIX/semaphore.h/linknamespace):
22715         Remove variable.
22716         (test-xfail-POSIX2008/semaphore.h/linknamespace): Likewise.
22717
22718         [BZ #18534]
22719         * stdio-common/dprintf.c (__dprintf): Use libc_hidden_def.
22720         (dprintf): Define as a weak alias of __dprintf, not a strong
22721         alias.
22722         * include/stdio.h (__dprintf): Declare.  Use libc_hidden_proto.
22723         * misc/syslog.c (__vsyslog_chk): Call __dprintf instead of
22724         dprintf.
22725         * conform/Makefile (test-xfail-XPG4/syslog.h/linknamespace):
22726         Remove variable.
22727         (test-xfail-UNIX98/syslog.h/linknamespace): Likewise.
22728         (test-xfail-XOPEN2K/syslog.h/linknamespace): Likewise.
22729
22730         [BZ #18533]
22731         * misc/syslog.c (vsyslog): Define as a weak alias of __vsyslog,
22732         not a strong alias.
22733         * conform/Makefile (test-xfail-XOPEN2K8/syslog.h/linknamespace):
22734         Remove variable.
22735
22736         [BZ #18532]
22737         * inet/in6_addr.c (in6addr_any): Rename to __in6addr_any and
22738         define as weak alias of __in6addr_any.  Use libc_hidden_data_weak.
22739         (in6addr_loopback): Rename to __in6addr_loopback and define as
22740         weak alias of __in6addr_loopback.  Use libc_hidden_data_weak.
22741         * include/netinet/in.h (__in6addr_loopback): Declare.  Use
22742         libc_hidden_proto.
22743         (__in6addr_any): Likewise.
22744         * inet/gethstbyad_r.c (PREPROCESS): Use __in6addr_any instead of
22745         in6addr_any.
22746         * conform/Makefile (test-xfail-XPG4/netdb.h/linknamespace): Remove
22747         variable.
22748         (test-xfail-UNIX98/netdb.h/linknamespace): Likewise.
22749
22750 2015-06-17  Andrew Senkevich  <andrew.senkevich@intel.com>
22751
22752         * bits/libm-simd-decl-stubs.h: Added stubs for pow.
22753         * math/bits/mathcalls.h: Added pow declaration with __MATHCALL_VEC.
22754         * sysdeps/unix/sysv/linux/x86_64/libmvec.abilist: New versions added.
22755         * sysdeps/x86/fpu/bits/math-vector.h: Added SIMD declaration and asm
22756         redirections for pow.
22757         * sysdeps/x86_64/fpu/Makefile (libmvec-support): Added new files.
22758         * sysdeps/x86_64/fpu/Versions: New versions added.
22759         * sysdeps/x86_64/fpu/libm-test-ulps: Regenerated.
22760         * sysdeps/x86_64/fpu/multiarch/Makefile (libmvec-sysdep_routines): Added
22761         build of SSE, AVX2 and AVX512 IFUNC versions.
22762         * sysdeps/x86_64/fpu/svml_d_wrapper_impl.h: Added 2 argument wrappers.
22763         * sysdeps/x86_64/fpu/multiarch/svml_d_pow2_core.S: New file.
22764         * sysdeps/x86_64/fpu/multiarch/svml_d_pow2_core_sse4.S: New file.
22765         * sysdeps/x86_64/fpu/multiarch/svml_d_pow4_core.S: New file.
22766         * sysdeps/x86_64/fpu/multiarch/svml_d_pow4_core_avx2.S: New file.
22767         * sysdeps/x86_64/fpu/multiarch/svml_d_pow8_core.S: New file.
22768         * sysdeps/x86_64/fpu/multiarch/svml_d_pow8_core_avx512.S: New file.
22769         * sysdeps/x86_64/fpu/svml_d_pow2_core.S: New file.
22770         * sysdeps/x86_64/fpu/svml_d_pow4_core.S: New file.
22771         * sysdeps/x86_64/fpu/svml_d_pow4_core_avx.S: New file.
22772         * sysdeps/x86_64/fpu/svml_d_pow8_core.S: New file.
22773         * sysdeps/x86_64/fpu/svml_d_pow_data.S: New file.
22774         * sysdeps/x86_64/fpu/svml_d_pow_data.h: New file.
22775         * sysdeps/x86_64/fpu/test-double-vlen2-wrappers.c: Added vector pow test.
22776         * sysdeps/x86_64/fpu/test-double-vlen2.c: Likewise.
22777         * sysdeps/x86_64/fpu/test-double-vlen4-avx2-wrappers.c: Likewise.
22778         * sysdeps/x86_64/fpu/test-double-vlen4-avx2.c: Likewise.
22779         * sysdeps/x86_64/fpu/test-double-vlen4-wrappers.c: Likewise.
22780         * sysdeps/x86_64/fpu/test-double-vlen4.c: Likewise.
22781         * sysdeps/x86_64/fpu/test-double-vlen8-wrappers.c: Likewise.
22782         * sysdeps/x86_64/fpu/test-double-vlen8.c: Likewise.
22783         * NEWS: Mention addition of x86_64 vector pow.
22784
22785         * sysdeps/unix/sysv/linux/x86_64/libmvec.abilist: New symbols added.
22786         * sysdeps/x86/fpu/bits/math-vector.h: Added SIMD declaration and asm
22787         redirections for expf.
22788         * sysdeps/x86_64/fpu/Makefile (libmvec-support): Added new files.
22789         * sysdeps/x86_64/fpu/Versions: New versions added.
22790         * sysdeps/x86_64/fpu/libm-test-ulps: Regenerated.
22791         * sysdeps/x86_64/fpu/multiarch/Makefile (libmvec-sysdep_routines): Added
22792         build of SSE, AVX2 and AVX512 IFUNC versions.
22793         * sysdeps/x86_64/fpu/multiarch/svml_s_expf16_core.S: New file.
22794         * sysdeps/x86_64/fpu/multiarch/svml_s_expf16_core_avx512.S: New file.
22795         * sysdeps/x86_64/fpu/multiarch/svml_s_expf4_core.S: New file.
22796         * sysdeps/x86_64/fpu/multiarch/svml_s_expf4_core_sse4.S: New file.
22797         * sysdeps/x86_64/fpu/multiarch/svml_s_expf8_core.S: New file.
22798         * sysdeps/x86_64/fpu/multiarch/svml_s_expf8_core_avx2.S: New file.
22799         * sysdeps/x86_64/fpu/svml_s_expf16_core.S: New file.
22800         * sysdeps/x86_64/fpu/svml_s_expf4_core.S: New file.
22801         * sysdeps/x86_64/fpu/svml_s_expf8_core.S: New file.
22802         * sysdeps/x86_64/fpu/svml_s_expf8_core_avx.S: New file.
22803         * sysdeps/x86_64/fpu/svml_s_expf_data.S: New file.
22804         * sysdeps/x86_64/fpu/svml_s_expf_data.h: New file.
22805         * sysdeps/x86_64/fpu/test-float-vlen16-wrappers.c: Vector expf tests.
22806         * sysdeps/x86_64/fpu/test-float-vlen16.c: Likewise.
22807         * sysdeps/x86_64/fpu/test-float-vlen4-wrappers.c: Likewise.
22808         * sysdeps/x86_64/fpu/test-float-vlen4.c: Likewise.
22809         * sysdeps/x86_64/fpu/test-float-vlen8-avx2-wrappers.c: Likewise.
22810         * sysdeps/x86_64/fpu/test-float-vlen8-avx2.c: Likewise.
22811         * sysdeps/x86_64/fpu/test-float-vlen8-wrappers.c: Likewise.
22812         * sysdeps/x86_64/fpu/test-float-vlen8.c: Likewise.
22813         * NEWS: Mention addition of x86_64 vector expf.
22814
22815         * bits/libm-simd-decl-stubs.h: Added stubs for exp.
22816         * math/bits/mathcalls.h: Added exp declaration with __MATHCALL_VEC.
22817         * sysdeps/unix/sysv/linux/x86_64/libmvec.abilist: New versions added.
22818         * sysdeps/x86/fpu/bits/math-vector.h: Added SIMD declaration and asm
22819         redirections for exp.
22820         * sysdeps/x86_64/fpu/Makefile (libmvec-support): Added new files.
22821         * sysdeps/x86_64/fpu/Versions: New versions added.
22822         * sysdeps/x86_64/fpu/libm-test-ulps: Regenerated.
22823         * sysdeps/x86_64/fpu/multiarch/Makefile (libmvec-sysdep_routines): Added
22824         build of SSE, AVX2 and AVX512 IFUNC versions.
22825         * sysdeps/x86_64/fpu/multiarch/svml_d_exp2_core.S: New file.
22826         * sysdeps/x86_64/fpu/multiarch/svml_d_exp2_core_sse4.S: New file.
22827         * sysdeps/x86_64/fpu/multiarch/svml_d_exp4_core.S: New file.
22828         * sysdeps/x86_64/fpu/multiarch/svml_d_exp4_core_avx2.S: New file.
22829         * sysdeps/x86_64/fpu/multiarch/svml_d_exp8_core.S: New file.
22830         * sysdeps/x86_64/fpu/multiarch/svml_d_exp8_core_avx512.S: New file.
22831         * sysdeps/x86_64/fpu/svml_d_exp2_core.S: New file.
22832         * sysdeps/x86_64/fpu/svml_d_exp4_core.S: New file.
22833         * sysdeps/x86_64/fpu/svml_d_exp4_core_avx.S: New file.
22834         * sysdeps/x86_64/fpu/svml_d_exp8_core.S: New file.
22835         * sysdeps/x86_64/fpu/svml_d_exp_data.S: New file.
22836         * sysdeps/x86_64/fpu/svml_d_exp_data.h: New file.
22837         * sysdeps/x86_64/fpu/test-double-vlen2-wrappers.c: Added vector exp test.
22838         * sysdeps/x86_64/fpu/test-double-vlen2.c: Likewise.
22839         * sysdeps/x86_64/fpu/test-double-vlen4-avx2-wrappers.c: Likewise.
22840         * sysdeps/x86_64/fpu/test-double-vlen4-avx2.c: Likewise.
22841         * sysdeps/x86_64/fpu/test-double-vlen4-wrappers.c: Likewise.
22842         * sysdeps/x86_64/fpu/test-double-vlen4.c: Likewise.
22843         * sysdeps/x86_64/fpu/test-double-vlen8-wrappers.c: Likewise.
22844         * sysdeps/x86_64/fpu/test-double-vlen8.c: Likewise.
22845         * NEWS: Mention addition of x86_64 vector exp.
22846
22847         * sysdeps/unix/sysv/linux/x86_64/libmvec.abilist: New symbols added.
22848         * sysdeps/x86/fpu/bits/math-vector.h: Added SIMD declaration and asm
22849         redirections for logf.
22850         * sysdeps/x86_64/fpu/Makefile (libmvec-support): Added new files.
22851         * sysdeps/x86_64/fpu/Versions: New versions added.
22852         * sysdeps/x86_64/fpu/libm-test-ulps: Regenerated.
22853         * sysdeps/x86_64/fpu/multiarch/Makefile (libmvec-sysdep_routines): Added
22854         build of SSE, AVX2 and AVX512 IFUNC versions.
22855         * sysdeps/x86_64/fpu/multiarch/svml_s_logf16_core.S: New file.
22856         * sysdeps/x86_64/fpu/multiarch/svml_s_logf16_core_avx512.S: New file.
22857         * sysdeps/x86_64/fpu/multiarch/svml_s_logf4_core.S: New file.
22858         * sysdeps/x86_64/fpu/multiarch/svml_s_logf4_core_sse4.S: New file.
22859         * sysdeps/x86_64/fpu/multiarch/svml_s_logf8_core.S: New file.
22860         * sysdeps/x86_64/fpu/multiarch/svml_s_logf8_core_avx2.S: New file.
22861         * sysdeps/x86_64/fpu/svml_s_logf16_core.S: New file.
22862         * sysdeps/x86_64/fpu/svml_s_logf4_core.S: New file.
22863         * sysdeps/x86_64/fpu/svml_s_logf8_core.S: New file.
22864         * sysdeps/x86_64/fpu/svml_s_logf8_core_avx.S: New file.
22865         * sysdeps/x86_64/fpu/svml_s_logf_data.S: New file.
22866         * sysdeps/x86_64/fpu/svml_s_logf_data.h: New file.
22867         * sysdeps/x86_64/fpu/test-float-vlen16-wrappers.c: Vector logf tests.
22868         * sysdeps/x86_64/fpu/test-float-vlen16.c: Likewise.
22869         * sysdeps/x86_64/fpu/test-float-vlen4-wrappers.c: Likewise.
22870         * sysdeps/x86_64/fpu/test-float-vlen4.c: Likewise.
22871         * sysdeps/x86_64/fpu/test-float-vlen8-avx2-wrappers.c: Likewise.
22872         * sysdeps/x86_64/fpu/test-float-vlen8-avx2.c: Likewise.
22873         * sysdeps/x86_64/fpu/test-float-vlen8-wrappers.c: Likewise.
22874         * sysdeps/x86_64/fpu/test-float-vlen8.c: Likewise.
22875         * NEWS: Mention addition of x86_64 vector logf.
22876
22877         * bits/libm-simd-decl-stubs.h: Added stubs for log.
22878         * math/bits/mathcalls.h: Added log declaration with __MATHCALL_VEC.
22879         * sysdeps/unix/sysv/linux/x86_64/libmvec.abilist: New versions added.
22880         * sysdeps/x86/fpu/bits/math-vector.h: Added SIMD declaration and asm
22881         redirections for log.
22882         * sysdeps/x86_64/fpu/Makefile (libmvec-support): Added new files.
22883         * sysdeps/x86_64/fpu/Versions: New versions added.
22884         * sysdeps/x86_64/fpu/libm-test-ulps: Regenerated.
22885         * sysdeps/x86_64/fpu/multiarch/Makefile (libmvec-sysdep_routines): Added
22886         build of SSE, AVX2 and AVX512 IFUNC versions.
22887         * sysdeps/x86_64/fpu/multiarch/svml_d_log2_core.S: New file.
22888         * sysdeps/x86_64/fpu/multiarch/svml_d_log2_core_sse4.S: New file.
22889         * sysdeps/x86_64/fpu/multiarch/svml_d_log4_core.S: New file.
22890         * sysdeps/x86_64/fpu/multiarch/svml_d_log4_core_avx2.S: New file.
22891         * sysdeps/x86_64/fpu/multiarch/svml_d_log8_core.S: New file.
22892         * sysdeps/x86_64/fpu/multiarch/svml_d_log8_core_avx512.S: New file.
22893         * sysdeps/x86_64/fpu/svml_d_log2_core.S: New file.
22894         * sysdeps/x86_64/fpu/svml_d_log4_core.S: New file.
22895         * sysdeps/x86_64/fpu/svml_d_log4_core_avx.S: New file.
22896         * sysdeps/x86_64/fpu/svml_d_log8_core.S: New file.
22897         * sysdeps/x86_64/fpu/svml_d_log_data.S: New file.
22898         * sysdeps/x86_64/fpu/svml_d_log_data.h: New file.
22899         * sysdeps/x86_64/fpu/test-double-vlen2-wrappers.c: Added vector log
22900         test.
22901         * sysdeps/x86_64/fpu/test-double-vlen2.c: Likewise.
22902         * sysdeps/x86_64/fpu/test-double-vlen4-avx2-wrappers.c: Likewise.
22903         * sysdeps/x86_64/fpu/test-double-vlen4-avx2.c: Likewise.
22904         * sysdeps/x86_64/fpu/test-double-vlen4-wrappers.c: Likewise.
22905         * sysdeps/x86_64/fpu/test-double-vlen4.c: Likewise.
22906         * sysdeps/x86_64/fpu/test-double-vlen8-wrappers.c: Likewise.
22907         * sysdeps/x86_64/fpu/test-double-vlen8.c: Likewise.
22908         * NEWS: Mention addition of x86_64 vector log.
22909
22910 2015-06-17  Szabolcs Nagy  <szabolcs.nagy@arm.com>
22911
22912         * sysdeps/aarch64/dl-tlsdesc.S (_dl_tlsdesc_return_lazy): Fix
22913         cfi_adjust_cfa_offset argument.
22914         (_dl_tlsdesc_undefweak, _dl_tlsdesc_dynamic): Likewise.
22915         (_dl_tlsdesc_resolve_rela, _dl_tlsdesc_resolve_hold): Likewise.
22916
22917         [BZ #18034]
22918         * sysdeps/aarch64/dl-tlsdesc.h (_dl_tlsdesc_return_lazy): Declare.
22919         * sysdeps/aarch64/dl-tlsdesc.S (_dl_tlsdesc_return_lazy): Define.
22920         (_dl_tlsdesc_undefweak): Guarantee TLSDESC entry and argument load-load
22921         ordering using ldar.
22922         (_dl_tlsdesc_dynamic): Likewise.
22923         (_dl_tlsdesc_return_lazy): Likewise.
22924         * sysdeps/aarch64/tlsdesc.c (_dl_tlsdesc_resolve_rela_fixup): Use
22925         relaxed atomics instead of volatile and synchronize with release store.
22926         (_dl_tlsdesc_resolve_hold_fixup): Use relaxed atomics instead of
22927         volatile.
22928         * elf/tlsdeschtab.h (_dl_tlsdesc_resolve_early_return_p): Likewise.
22929
22930 2015-06-15  Andrew Senkevich  <andrew.senkevich@intel.com>
22931
22932         * sysdeps/unix/sysv/linux/x86_64/libmvec.abilist: New symbols added.
22933         * sysdeps/x86/fpu/bits/math-vector.h: Added SIMD declaration for sinf.
22934         * sysdeps/x86_64/fpu/Makefile (libmvec-support): Added new files.
22935         * sysdeps/x86_64/fpu/Versions: New versions added.
22936         * sysdeps/x86_64/fpu/libm-test-ulps: Regenerated.
22937         * sysdeps/x86_64/fpu/multiarch/Makefile (libmvec-sysdep_routines): Added
22938         build of SSE, AVX2 and AVX512 IFUNC versions.
22939         * sysdeps/x86_64/fpu/multiarch/svml_s_sinf16_core.S: New file.
22940         * sysdeps/x86_64/fpu/multiarch/svml_s_sinf16_core_avx512.S: New file.
22941         * sysdeps/x86_64/fpu/multiarch/svml_s_sinf4_core.S: New file.
22942         * sysdeps/x86_64/fpu/multiarch/svml_s_sinf4_core_sse4.S: New file.
22943         * sysdeps/x86_64/fpu/multiarch/svml_s_sinf8_core.S: New file.
22944         * sysdeps/x86_64/fpu/multiarch/svml_s_sinf8_core_avx2.S: New file.
22945         * sysdeps/x86_64/fpu/svml_s_sinf16_core.S: New file.
22946         * sysdeps/x86_64/fpu/svml_s_sinf4_core.S: New file.
22947         * sysdeps/x86_64/fpu/svml_s_sinf8_core.S: New file.
22948         * sysdeps/x86_64/fpu/svml_s_sinf8_core_avx.S: New file.
22949         * sysdeps/x86_64/fpu/svml_s_sinf_data.S: New file.
22950         * sysdeps/x86_64/fpu/svml_s_sinf_data.h: New file.
22951         * sysdeps/x86_64/fpu/test-float-vlen16-wrappers.c: Vector sinf tests.
22952         * sysdeps/x86_64/fpu/test-float-vlen16.c: Likewise.
22953         * sysdeps/x86_64/fpu/test-float-vlen4-wrappers.c: Likewise.
22954         * sysdeps/x86_64/fpu/test-float-vlen4.c: Likewise.
22955         * sysdeps/x86_64/fpu/test-float-vlen8-avx2-wrappers.c: Likewise.
22956         * sysdeps/x86_64/fpu/test-float-vlen8-avx2.c: Likewise.
22957         * sysdeps/x86_64/fpu/test-float-vlen8-wrappers.c: Likewise.
22958         * sysdeps/x86_64/fpu/test-float-vlen8.c: Likewise.
22959         * NEWS: Mention addition of x86_64 vector sinf.
22960
22961 2015-06-14  Joseph Myers  <joseph@codesourcery.com>
22962
22963         * conform/list-header-symbols.pl (%extra_syms): Add in6addr_any
22964         and in6addr_loopback for XOPEN2K, XOPEN2K8 and POSIX2008.
22965         * conform/Makefile (test-xfail-XOPEN2K/netdb.h/linknamespace):
22966         Remove variable.
22967         (test-xfail-POSIX2008/netdb.h/linknamespace): Likewise.
22968         (test-xfail-XOPEN2K8/netdb.h/linknamespace): Likewise.
22969
22970 2015-06-12  Joseph Myers  <joseph@codesourcery.com>
22971
22972         [BZ #18530]
22973         * libio/iofputs.c [!_IO_MTSAFE_IO] (__fputs_unlocked): Define as
22974         strong alias of _IO_fputs.  Use libc_hidden_def.
22975         * libio/iofputs_u.c (fputs_unlocked): Rename to __fputs_unlocked
22976         and define as weak alias of __fputs_unlocked.  Use
22977         libc_hidden_weak.
22978         * include/stdio.h (__fputs_unlocked): Declare.  Use
22979         libc_hidden_proto.
22980         * misc/syslog.c (__vsyslog_chk): Call __fputs_unlocked instead of
22981         fputs_unlocked.
22982
22983         [BZ #18529]
22984         * resolv/netdb.h [__USE_POSIX]: Change condition to
22985         [__USE_XOPEN2K].
22986         * conform/data/netdb.h-data [XPG4 || UNIX98] (struct addrinfo): Do
22987         not expect.
22988         [XPG4 || UNIX98] (AI_PASSIVE): Likewise.
22989         [XPG4 || UNIX98] (AI_CANONNAME): Likewise.
22990         [XPG4 || UNIX98] (AI_NUMERICHOST): Likewise.
22991         [XPG4 || UNIX98] (AI_V4MAPPED): Likewise.
22992         [XPG4 || UNIX98] (AI_ALL): Likewise.
22993         [XPG4 || UNIX98] (AI_ADDRCONFIG): Likewise.
22994         [XPG4 || UNIX98] (AI_NUMERICSERV): Likewise.
22995         [XPG4 || UNIX98] (NI_NOFQDN): Likewise.
22996         [XPG4 || UNIX98] (NI_NUMERICHOST): Likewise.
22997         [XPG4 || UNIX98] (NI_NAMEREQD): Likewise.
22998         [XPG4 || UNIX98] (NI_NUMERICSERV): Likewise.
22999         [XPG4 || UNIX98] (NI_DGRAM): Likewise.
23000         [XPG4 || UNIX98] (EAI_AGAIN): Likewise.
23001         [XPG4 || UNIX98] (EAI_BADFLAGS): Likewise.
23002         [XPG4 || UNIX98] (EAI_FAIL): Likewise.
23003         [XPG4 || UNIX98] (EAI_FAMILY): Likewise.
23004         [XPG4 || UNIX98] (EAI_MEMORY): Likewise.
23005         [XPG4 || UNIX98] (EAI_NONAME): Likewise.
23006         [XPG4 || UNIX98] (EAI_SERVICE): Likewise.
23007         [XPG4 || UNIX98] (EAI_SOCKTYPE): Likewise.
23008         [XPG4 || UNIX98] (EAI_SYSTEM): Likewise.
23009         [XPG4 || UNIX98] (EAI_SYSTEM): Likewise.
23010         [XPG4 || UNIX98] (freeaddrinfo): Likewise.
23011         [XPG4 || UNIX98] (gai_strerror): Likewise.
23012         [XPG4 || UNIX98] (getaddrinfo): Likewise.
23013         [XPG4 || UNIX98] (getnameinfo): Likewise.
23014
23015         [BZ #18528]
23016         * grp/grp.h (endgrent): Condition on [__USE_MISC ||
23017         __USE_XOPEN_EXTENDED], not [__USE_XOPEN_EXTENDED ||
23018         __USE_XOPEN2K8].
23019         (getgrent): Likewise.
23020         * conform/data/grp.h-data [XPG3 || POSIX2008] (getgrent): Do not
23021         expect.
23022         [XPG3 || POSIX2008] (endgrent): Likewise.
23023         [XPG3] (setgrent): Likewise.
23024         * conform/Makefile (test-xfail-XPG3/grp.h/conform): Remove
23025         variable.
23026         (test-xfail-POSIX2008/grp.h/linknamespace): Likewise.
23027
23028         [BZ #18527]
23029         * login/getlogin_r.c (getlogin_r): Rename to __getlogin_r and
23030         define as weak alias of __getlogin_r.  Use libc_hidden_weak.
23031         * sysdeps/mach/hurd/getlogin_r.c (getlogin_r): Likewise.
23032         * sysdeps/unix/getlogin_r.c (getlogin_r): Likewise.
23033         * sysdeps/unix/sysv/linux/getlogin_r.c (getlogin_r): Likewise.
23034         * include/unistd.h (__getlogin_r): Declare.  Use
23035         libc_hidden_proto.
23036         * posix/glob.c (glob): Call __getlogin_r instead of getlogin_r.
23037         * conform/Makefile (test-xfail-XPG3/glob.h/linknamespace): Remove
23038         variable.
23039         (test-xfail-XPG3/wordexp.h/linknamespace): Likewise.
23040         (test-xfail-XPG4/glob.h/linknamespace): Likewise.
23041         (test-xfail-XPG4/wordexp.h/linknamespace): Likewise.
23042
23043 2015-06-12  Martin Sebor  <msebor@redhat.com>
23044
23045         [BZ #18512]
23046         * Makerules (check-install-supported): New target.
23047         (install): Add check-install-supported as a dependency.
23048         * manual/install.texi (Installing the C Library): Document
23049         that overriding prefix and exec_prefix is not supported.
23050         Mention DESTDIR.
23051         * INSTALL: Regenerate from the above.
23052
23053 2015-06-12  Joseph Myers  <joseph@codesourcery.com>
23054
23055         [BZ #18519]
23056         * posix/Versions (libc): Export __libc_pread at version
23057         GLIBC_PRIVATE.
23058         * sysdeps/pthread/aio_misc.c (handle_fildes_io): Call __libc_pread
23059         instead of pread.
23060         * conform/Makefile (test-xfail-POSIX/aio.h/linknamespace): Remove
23061         variable.
23062
23063         [BZ #18522]
23064         * misc/efgcvt_r.c
23065         [LONG_DOUBLE_COMPAT (libc, GLIBC_2_0) && !LONG_DOUBLE_CVT]
23066         (cvt_symbol): Use weak_alias instead of strong_alias.
23067         [LONG_DOUBLE_COMPAT (libc, GLIBC_2_0)] (cvt_symbol): Likewise.
23068         * conform/Makefile (test-xfail-XPG4/stdlib.h/linknamespace):
23069         Remove variable.
23070         (test-xfail-UNIX98/stdlib.h/linknamespace): Likewise.
23071         (test-xfail-XOPEN2K/stdlib.h/linknamespace): Likewise.
23072
23073         [BZ #18520]
23074         * inet/herrno.c (h_errno): Rename to __h_errno.
23075         (__libc_h_errno): Define as alias of __h_errno not h_errno.
23076         * include/netdb.h [IS_IN_LIB && !IS_IN (libc)] (h_errno): Define
23077         to __h_errno instead of h_errno.
23078         * nptl/herrno.c (h_errno): Rename to __h_errno.
23079         (__h_errno_location): Refer to __h_errno not h_errno.
23080         * resolv/Versions (h_errno): Rename to __h_errno.
23081         * conform/Makefile (test-xfail-XOPEN2K8/grp.h/linknamespace):
23082         Remove variable.
23083         (test-xfail-XOPEN2K8/pwd.h/linknamespace): Likewise.
23084
23085 2015-06-11  Andrew Senkevich  <andrew.senkevich@intel.com>
23086
23087         * configure.ac: More strict check for AVX512 assembler support.
23088         * configure: Regenerated.
23089
23090         * bits/libm-simd-decl-stubs.h: Added stubs for sin.
23091         * math/bits/mathcalls.h: Added sin declaration with __MATHCALL_VEC.
23092         * sysdeps/unix/sysv/linux/x86_64/libmvec.abilist: New versions added.
23093         * sysdeps/x86/fpu/bits/math-vector.h: SIMD declaration for sin.
23094         * sysdeps/x86_64/fpu/Makefile (libmvec-support): Added new files.
23095         * sysdeps/x86_64/fpu/Versions: New versions added.
23096         * sysdeps/x86_64/fpu/libm-test-ulps: Regenerated.
23097         * sysdeps/x86_64/fpu/multiarch/Makefile (libmvec-sysdep_routines):
23098         Added build of SSE, AVX2 and AVX512 IFUNC versions.
23099         * sysdeps/x86_64/fpu/multiarch/svml_d_sin2_core.S: New file.
23100         * sysdeps/x86_64/fpu/multiarch/svml_d_sin2_core_sse4.S: New file.
23101         * sysdeps/x86_64/fpu/multiarch/svml_d_sin4_core.S: New file.
23102         * sysdeps/x86_64/fpu/multiarch/svml_d_sin4_core_avx2.S: New file.
23103         * sysdeps/x86_64/fpu/multiarch/svml_d_sin8_core.S: New file.
23104         * sysdeps/x86_64/fpu/multiarch/svml_d_sin8_core_avx512.S: New file.
23105         * sysdeps/x86_64/fpu/svml_d_sin2_core.S: New file.
23106         * sysdeps/x86_64/fpu/svml_d_sin4_core.S: New file.
23107         * sysdeps/x86_64/fpu/svml_d_sin4_core_avx.S: New file.
23108         * sysdeps/x86_64/fpu/svml_d_sin8_core.S: New file.
23109         * sysdeps/x86_64/fpu/svml_d_sin_data.S: New file.
23110         * sysdeps/x86_64/fpu/svml_d_sin_data.h: New file.
23111         * sysdeps/x86_64/fpu/test-double-vlen2-wrappers.c: Added vector sin
23112         test.
23113         * sysdeps/x86_64/fpu/test-double-vlen2.c: Likewise.
23114         * sysdeps/x86_64/fpu/test-double-vlen4-avx2-wrappers.c: Likewise.
23115         * sysdeps/x86_64/fpu/test-double-vlen4-avx2.c: Likewise.
23116         * sysdeps/x86_64/fpu/test-double-vlen4-wrappers.c: Likewise.
23117         * sysdeps/x86_64/fpu/test-double-vlen4.c: Likewise.
23118         * sysdeps/x86_64/fpu/test-double-vlen8-wrappers.c: Likewise.
23119         * sysdeps/x86_64/fpu/test-double-vlen8.c: Likewise.
23120         * NEWS: Mention addition of x86_64 vector sin.
23121
23122 2015-06-11  Florian Weimer  <fweimer@redhat.com>
23123
23124         * nptl/pthread_key_create.c (__pthread_key_create): Fix typo in
23125         comment.
23126
23127 2015-06-10  Gleb Fotengauer-Malinovskiy  <glebfm@altlinux.org>
23128
23129         [BZ #18479]
23130         * nptl/pt-interp.c: New file.
23131         * nptl/Makefile (libpthread-routines, libpthread-shared-only-routines):
23132         Add pt-interp.
23133         [[$(build-shared) = yes] ($(objpfx)pt-interp.os): Depend on
23134         $(common-objpfx)runtime-linker.h.
23135
23136 2015-06-10  Dmitry V. Levin  <ldv@altlinux.org>
23137
23138         * Makeconfig (+interp): Remove unused variable.
23139         * elf/Makefile ($(objpfx)interp.os): Define for [$(build-shared) = yes]
23140         only.  Depend on $(common-objpfx)runtime-linker.h instead of
23141         $(elf-objpfx)runtime-linker.h.
23142         ($(elf-objpfx)runtime-linker.h): Rename to
23143         $(common-objpfx)runtime-linker.h and move ...
23144         * Makerules [$(build-shared) = yes]: ... here.
23145         * elf/interp.c: Include <runtime-linker.h> instead of
23146         <elf/runtime-linker.h>.
23147
23148 2015-06-09  Adhemerval Zanella  <adhemerval.zanella@linaro.org>
23149
23150         * sysdeps/unix/sysv/linux/i386/gettimeofday.c
23151         (__gettimeofday_syscall): Remove vsyscall fallback.
23152         * sysdeps/unix/sysv/linux/i386/time.c (__time_syscall): Likewise.
23153         * sysdeps/unix/sysv/linux/x86/gettimeofday.c (__gettimeofday_syscall):
23154         Add syscall fallback function.
23155         (gettimeofday_ifunc): Use __gettimeofday_syscall as fallback mechanism
23156         if vDSO is not present.
23157         * sysdeps/unix/sysv/linux/x86/time.c (__time_syscall): Add syscall
23158         fallback function.
23159         (time_ifunc): Use __time_syscall as fallback mechanism if vDSO is not
23160         present.
23161         * sysdeps/unix/sysv/linux/x86_64/gettimeofday.c: Remove file.
23162         * sysdeps/unix/sysv/linux/x86_64/time.c: Likewise.
23163
23164 2015-06-09  Joseph Myers  <joseph@codesourcery.com>
23165
23166         [BZ #18497]
23167         * wcsmbs/wcscmp.c [!WCSCMP] (WCSCMP): Define as __wcscmp instead
23168         of wcscmp.
23169         (wcscmp): Define as weak alias of WCSCMP.
23170         * wcsmbs/wcscoll.c (STRCOLL): Define as __wcscoll instead of
23171         wcscoll.
23172         (USE_HIDDEN_DEF): Define.
23173         [!USE_IN_EXTENDED_LOCALE_MODEL] (wcscoll): Define as weak alias of
23174         __wcscoll.  Don't use libc_hidden_weak.
23175         * wcsmbs/wcscoll_l.c (STRCMP): Define as __wcscmp instead of
23176         wcscmp.
23177         * sysdeps/i386/i686/multiarch/wcscmp-c.c
23178         [SHARED] (libc_hidden_def): Define __GI___wcscmp instead of
23179         __GI_wcscmp.
23180         (weak_alias): Undefine and redefine.
23181         * sysdeps/i386/i686/multiarch/wcscmp.S (wcscmp): Rename to
23182         __wcscmp and define as weak alias of __wcscmp.
23183         * sysdeps/x86_64/wcscmp.S (wcscmp): Likewise.
23184         * include/wchar.h (__wcscmp): Declare.  Use libc_hidden_proto.
23185         (__wcscoll): Likewise.
23186         (wcscmp): Don't use libc_hidden_proto.
23187         (wcscoll): Likewise.
23188         * posix/regcomp.c (build_range_exp): Call __wcscoll instead of
23189         wcscoll.
23190         * posix/regexec.c (check_node_accept_bytes): Likewise.
23191         * conform/Makefile (test-xfail-XPG3/regex.h/linknamespace): Remove
23192         variable.
23193         (test-xfail-XPG4/regex.h/linknamespace): Likewise.
23194         (test-xfail-POSIX/regex.h/linknamespace): Likewise.
23195
23196         [BZ #18507]
23197         * sysdeps/unix/sysv/linux/fstatvfs.c (fstatvfs): Rename to
23198         __fstatvfs and define as weak alias of __fstatvfs.  Use
23199         libc_hidden_weak.
23200         * sysdeps/unix/sysv/linux/statvfs.c (statvs): Rename to __statvfs
23201         and define as weak alias of __statvfs.  Use libc_hidden_weak.
23202         * sysdeps/unix/sysv/linux/wordsize-64/fstatvfs.c (__fstatvfs64):
23203         Define as alias of __fstatvfs, not fstatvfs.
23204         (fstatvfs64): Likewise.
23205         * sysdeps/unix/sysv/linux/wordsize-64/statvfs.c (__statvfs64):
23206         Define as alias of __statvfs, not statvfs.
23207         (statvfs64): Likewise.
23208         * conform/Makefile (test-xfail-POSIX/unistd.h/linknamespace):
23209         Remove variable.
23210
23211 2015-06-09  Adhemerval Zanella  <adhemerval.zanella@linaro.org>
23212
23213         * sysdeps/unix/sysv/linux/powerpc/powerpc32/sysdep.h
23214         (HAVE_GETCPU_VSYSCALL): Define.
23215         * sysdeps/unix/sysv/linux/powerpc/powerpc64/sysdep.h
23216         (HAVE_GETCPU_VSYSCALL): Likewise.
23217         * sysdeps/unix/sysv/linux/powerpc/sched_getcpu.c: Remove file.
23218         * sysdeps/unix/sysv/linux/sched_getcpu.c
23219         (HAVE_VSYSCALL) [HAVE_GETCPU_VSYSCALL]: Define.
23220         (sched_getcpu): Use INLINE_VSYSCALL instead of INLINE_SYSCALL.
23221         * sysdeps/unix/sysv/linux/x86/libc-vdso.h (getcpu): Add vDSO
23222         prototype.
23223         * sysdeps/unix/sysv/linux/x86_64/init-first.c
23224         (__vdso_platform_setup): Remove vsyscall getcpu fallback.
23225         * sysdeps/unix/sysv/linux/x86_64/sched_getcpu.S: Remove file.
23226         * sysdeps/unix/sysv/linux/x86_64/sysdep.h (HAVE_GETCPU_VSYSCALL):
23227         Define.
23228         * sysdeps/unix/sysv/linux/x86_64/x32/Makefile: Remove file.
23229         * sysdeps/unix/sysv/linux/x86_64/x32/init-first.c: Likewise.
23230         * sysdeps/unix/sysv/linux/x86_64/x32/sched_getcpu-static.c: Likewise.
23231         * sysdeps/unix/sysv/linux/x86_64/x32/sched_getcpu.S: Likewise.
23232
23233 2015-06-09  Andrew Senkevich  <andrew.senkevich@intel.com>
23234
23235         * sysdeps/x86_64/fpu/Makefile: New file.
23236         * sysdeps/x86_64/fpu/Versions: New file.
23237         * sysdeps/x86_64/fpu/svml_d_cos_data.S: New file.
23238         * sysdeps/x86_64/fpu/svml_d_cos_data.h: New file.
23239         * sysdeps/x86_64/fpu/svml_d_cos2_core.S: New file.
23240         * sysdeps/x86_64/fpu/svml_d_cos4_core.S: New file.
23241         * sysdeps/x86_64/fpu/svml_d_cos4_core_avx.S: New file.
23242         * sysdeps/x86_64/fpu/svml_d_cos8_core.S: New file.
23243         * sysdeps/x86_64/fpu/svml_d_wrapper_impl.h: New file.
23244         * sysdeps/x86_64/fpu/multiarch/svml_d_cos2_core.S: New file.
23245         * sysdeps/x86_64/fpu/multiarch/svml_d_cos2_core_sse4.S: New file.
23246         * sysdeps/x86_64/fpu/multiarch/svml_d_cos4_core.S: New file.
23247         * sysdeps/x86_64/fpu/multiarch/svml_d_cos4_core_avx2.S: New file.
23248         * sysdeps/x86_64/fpu/multiarch/svml_d_cos8_core.S: New file.
23249         * sysdeps/x86_64/fpu/multiarch/svml_d_cos8_core_avx512.S: New file.
23250         * sysdeps/x86_64/fpu/multiarch/Makefile (libmvec-sysdep_routines):
23251         Added build of SSE, AVX2 and AVX512 IFUNC versions.
23252         * sysdeps/x86/fpu/bits/math-vector.h: Added SIMD declaration for cos.
23253         * math/bits/mathcalls.h: Added cos declaration with __MATHCALL_VEC.
23254         * sysdeps/x86_64/configure.ac: Options for libmvec build.
23255         * sysdeps/x86_64/configure: Regenerated.
23256         * sysdeps/x86_64/sysdep.h (cfi_offset_rel_rsp): New macro.
23257         * sysdeps/unix/sysv/linux/x86_64/libmvec.abilist: New file.
23258         * manual/install.texi (Configuring and compiling): Document
23259         --disable-mathvec.
23260         * INSTALL: Regenerated.
23261         * NEWS: Mention addition of libmvec and x86_64 vector cos.
23262
23263         * math/Makefile: Added rules for vector tests.
23264         * math/gen-libm-have-vector-test.sh: Added generation of wrapper
23265         declaration under condition.
23266         * math/test-double-vlen2.h: New file.
23267         * math/test-double-vlen4.h: New file.
23268         * math/test-double-vlen8.h: New file.
23269         * math/test-vec-loop.h: Added initialization macro.
23270         * sysdeps/x86_64/fpu/Makefile: Added variables for vector tests.
23271         * sysdeps/x86_64/fpu/libm-test-ulps: Regenarated.
23272         * sysdeps/x86_64/fpu/math-tests-arch.h: New file.
23273         * sysdeps/x86_64/fpu/test-double-vlen2-wrappers.c: New file.
23274         * sysdeps/x86_64/fpu/test-double-vlen2.c: New file.
23275         * sysdeps/x86_64/fpu/test-double-vlen4-avx2-wrappers.c: New file.
23276         * sysdeps/x86_64/fpu/test-double-vlen4-avx2.c: New file.
23277         * sysdeps/x86_64/fpu/test-double-vlen4-wrappers.c: New file.
23278         * sysdeps/x86_64/fpu/test-double-vlen4.c: New file.
23279         * sysdeps/x86_64/fpu/test-double-vlen8-wrappers.c: New file.
23280         * sysdeps/x86_64/fpu/test-double-vlen8.c: New file.
23281
23282         * sysdeps/x86_64/fpu/Makefile (libmvec-support): Added new files.
23283         * sysdeps/x86_64/fpu/Versions: New versions added.
23284         * sysdeps/x86_64/fpu/svml_s_cosf4_core.S: New file.
23285         * sysdeps/x86_64/fpu/multiarch/svml_s_cosf4_core.S: New file.
23286         * sysdeps/x86_64/fpu/multiarch/svml_s_cosf4_core_sse4.S: New file.
23287         * sysdeps/x86_64/fpu/svml_s_cosf8_core_avx.S: New file.
23288         * sysdeps/x86_64/fpu/svml_s_cosf8_core.S: New file.
23289         * sysdeps/x86_64/fpu/multiarch/svml_s_cosf8_core.S: New file.
23290         * sysdeps/x86_64/fpu/multiarch/svml_s_cosf8_core_avx2.S: New file.
23291         * sysdeps/x86_64/fpu/svml_s_cosf16_core.S: New file.
23292         * sysdeps/x86_64/fpu/multiarch/svml_s_cosf16_core.S: New file.
23293         * sysdeps/x86_64/fpu/multiarch/svml_s_cosf16_core_avx512.S: New file.
23294         * sysdeps/x86_64/fpu/svml_s_wrapper_impl.h: New file.
23295         * sysdeps/x86_64/fpu/svml_s_cosf_data.S: New file.
23296         * sysdeps/x86_64/fpu/svml_s_cosf_data.h: New file.
23297         * sysdeps/x86_64/fpu/multiarch/Makefile (libmvec-sysdep_routines):
23298         Added build of SSE, AVX2 and AVX512 IFUNC versions.
23299         * sysdeps/unix/sysv/linux/x86_64/libmvec.abilist: New versions added.
23300         * sysdeps/x86/fpu/bits/math-vector.h: Added SIMD declaration for cosf.
23301         * NEWS: Mention addition of x86_64 vector cosf.
23302
23303         * math/Makefile: Added CFLAGS for new tests.
23304         * math/test-float-vlen16.h: New file.
23305         * math/test-float-vlen4.h: New file.
23306         * math/test-float-vlen8.h: New file.
23307         * math/test-double-vlen2.h: Fixed 2 argument macro and comment.
23308         * sysdeps/x86_64/fpu/Makefile: Added new tests and variables.
23309         * sysdeps/x86_64/fpu/libm-test-ulps: Regenerated.
23310         * sysdeps/x86_64/fpu/test-float-vlen16-wrappers.c: New file.
23311         * sysdeps/x86_64/fpu/test-float-vlen16.c: New file.
23312         * sysdeps/x86_64/fpu/test-float-vlen4-wrappers.c: New file.
23313         * sysdeps/x86_64/fpu/test-float-vlen4.c: New file.
23314         * sysdeps/x86_64/fpu/test-float-vlen8-avx2-wrappers.c: New file.
23315         * sysdeps/x86_64/fpu/test-float-vlen8-avx2.c: New file.
23316         * sysdeps/x86_64/fpu/test-float-vlen8-wrappers.c: New file.
23317         * sysdeps/x86_64/fpu/test-float-vlen8.c: New file.
23318
23319 2015-06-09 Marko Myllynen  <myllynen@redhat.com>
23320
23321         * locale/C-ctype.c (PREDEFINED_CLASSES): Remove.
23322         * locale/programs/ld-ctype.c: Likewise.
23323
23324 2015-06-08  Andrew Senkevich  <andrew.senkevich@intel.com>
23325
23326         * sysdeps/x86_64/multiarch/init-arch.h (bit_AVX512F_Usable,
23327         bit_AVX512DQ_Usable, bit_Opmask_state, bit_ZMM0_15_state,
23328         bit_ZMM16_31_state): New macro.
23329         * sysdeps/x86_64/multiarch/init-arch.c (__init_cpu_features):
23330         Check and set bit_AVX512F_Usable, bit_AVX512DQ_Usable.
23331
23332 2015-06-08  Joseph Myers  <joseph@codesourcery.com>
23333
23334         * include/stdio.h (__open_memstream): Say "C++ tests" in comment.
23335
23336 2015-06-06  Justus Winter  <4winter@informatik.uni-hamburg.de>
23337
23338         * mach/mach/mach_traps.h (thread_switch): Fix typo in comment.
23339
23340 2015-06-05  Joseph Myers  <joseph@codesourcery.com>
23341
23342         [BZ #18498]
23343         * libio/memstream.c (open_memstream): Rename to __open_memstream
23344         and define as weak alias of __open_memstream.
23345         * include/stdio.h (__open_memstream): Declare.  Use
23346         libc_hidden_proto.
23347         (open_memstream): Don't use libc_hidden_proto.
23348         * misc/syslog.c (__vsyslog_chk): Call __open_memstream instead of
23349         open_memstream.
23350         * posix/getopt.c (_getopt_internal_r): Likewise.
23351         * conform/Makefile (test-xfail-XPG3/stdio.h/linknamespace): Remove
23352         variable.
23353         (test-xfail-XPG4/stdio.h/linknamespace): Likewise.
23354         (test-xfail-UNIX98/stdio.h/linknamespace): Likewise.
23355         (test-xfail-XOPEN2K/unistd.h/linknamespace): Likewise.
23356
23357         [BZ #18496]
23358         * posix/regex_internal.c (build_wcs_upper_buffer): Call __wcrtomb
23359         instead of wcrtomb.
23360
23361         [BZ #18483]
23362         * signal/signal.h [__USE_XOPEN2K] (psignal): Change condition to
23363         [__USE_XOPEN2K8].  Remove redundant #endif.
23364         [__USE_XOPEN2K] (psiginfo): Change condition to [__USE_XOPEN2K8].
23365         Remove redundant #if.
23366         * conform/Makefile (test-xfail-XOPEN2K/signal.h/linknamespace):
23367         Remove variable.
23368         (test-xfail-XOPEN2K/sys/wait.h/linknamespace): Likewise.
23369         (test-xfail-XOPEN2K/ucontext.h/linknamespace): Likewise.
23370
23371         [BZ #18495]
23372         * wctype/wcfuncs.c (__iswalnum): Use libc_hidden_def.
23373         (__iswlower): Likewise.
23374         * include/wctype.h (__iswalnum): Declare.  Use libc_hidden_proto.
23375         (__iswlower): Likewise.
23376         * posix/regcomp.c (re_compile_fastmap_iter): Call __towlower
23377         instead of towlower.
23378         * posix/regex_internal.c (build_wcs_upper_buffer): Call __iswlower
23379         instead of iswlower.  Call __towupper instead of towupper.
23380         * posix/regex_internal.h (IS_WIDE_WORD_CHAR): Call __iswalnum
23381         instead of iswalnum.
23382
23383 2015-06-05  Tulio Magno Quites Machado Filho  <tuliom@linux.vnet.ibm.com>
23384
23385         * malloc/tst-malloc-backtrace.c (do_test): Redirect libc fatal
23386         errors to stderr.
23387
23388 2015-06-05  Florian Weimer  <fweimer@redhat.com>
23389
23390         [BZ #15661]
23391         [BZ #17322]
23392         * sysdeps/posix/posix_fallocate64.c (__posix_fallocate64_l64):
23393         Check for overflow properly.  Check for O_APPEND.  Ignore large
23394         file system block sizes.  Add comments about problems.
23395         * sysdeps/posix/posix_fallocate.c (posix_fallocate): Likewise.
23396         * manual/filesys.texi (Storage Allocation): New node.
23397
23398 2015-06-04  Adhemerval Zanella  <adhemerval.zanella@linaro.org>
23399
23400         * sysdeps/unix/sysdep.h [SYSCALL_CANCEL]: New macro: define
23401         cancellable syscalls.
23402         (SYS_ify): Add guard to no redefine it.
23403         (INLINE_SYSCALL): Likewise.
23404         * sysdeps/unix/sysv/linux/accept4.c (accept4): Remove
23405         LIBC_CANCEL_ASYNC/INLINE_SYSCALL/LIBC_CANCEL_RESET and use
23406         SYSCALL_CANCEL instead.
23407         * sysdeps/unix/sysv/linux/alpha/fdatasync.c (__fdatasync): Likewise.
23408         * sysdeps/unix/sysv/linux/arm/pread.c (__libc_pread): Likewise.
23409         * sysdeps/unix/sysv/linux/arm/pread64.c (__libc_pread64): Likewise.
23410         * sysdeps/unix/sysv/linux/arm/pwrite.c (__libc_pwrite): Likewise.
23411         * sysdeps/unix/sysv/linux/arm/pwrite64.c (__libc_pwrite64): Likewise.
23412         * sysdeps/unix/sysv/linux/epoll_pwait.c (epoll_pwait): Likewise.
23413         * sysdeps/unix/sysv/linux/fallocate.c (fallocate): Likewise.
23414         * sysdeps/unix/sysv/linux/fallocate64.c (fallocate64): Likewise.
23415         * sysdeps/unix/sysv/linux/generic/open.c (__libc_open): Likewise.
23416         * sysdeps/unix/sysv/linux/generic/open64.c (__libc_open64): Likewise.
23417         * sysdeps/unix/sysv/linux/generic/pause.c (__libc_pause): Likewise.
23418         * sysdeps/unix/sysv/linux/generic/poll.c (__poll): Likewise.
23419         * sysdeps/unix/sysv/linux/generic/recv.c (__libc_recv): Likewise.
23420         * sysdeps/unix/sysv/linux/generic/select.c (__select): Likewise.
23421         * sysdeps/unix/sysv/linux/generic/send.c (__libc_send): Likewise.
23422         * sysdeps/unix/sysv/linux/generic/wordsize-32/pread.c (__libc_pread):
23423         Likewise.
23424         * sysdeps/unix/sysv/linux/generic/wordsize-32/pread64.c
23425         (__libc_pread64): Likewise.
23426         * sysdeps/unix/sysv/linux/generic/wordsize-32/preadv.c
23427         (__libc_preadv): Likewise.
23428         * sysdeps/unix/sysv/linux/generic/wordsize-32/preadv64.c
23429         (__libc_readv64): Likewise.
23430         * sysdeps/unix/sysv/linux/generic/wordsize-32/pwrite.c
23431         (__libc_pwrite): Likewise.
23432         * sysdeps/unix/sysv/linux/generic/wordsize-32/pwrite64.c
23433         (__libc_pwrite64): Likewise.
23434         * sysdeps/unix/sysv/linux/generic/wordsize-32/pwritev.c
23435         (__libc_pwritev): Likewise.
23436         * sysdeps/sysv/linux/generic/wordsize-32/pwritev64.c
23437         (__libc_pwritev64): Likewise.
23438         * sysdeps/unix/sysv/linux/i386/fcntl.c (__libc_fcntl): Likewise.
23439         * sysdeps/unix/sysv/linux/mips/mips32/sync_file_range.c
23440         (sync_file_range): Likewise.
23441         * sysdeps/unix/sysv/linux/mips/mips64/n32/fallocate.c (fallocate):
23442         Likewise.
23443         * sysdeps/unix/sysv/linux/mips/mips64/n32/fallocate64.c (fallocate64):
23444         Likewise.
23445         * sysdeps/unix/sysv/linux/mips/pread.c (__libc_pread): Likewise.
23446         * sysdeps/unix/sysv/linux/mips/pread64.c (__libc_pread64): Likewise.
23447         * sysdeps/unix/sysv/linux/mips/pwrite.c (__libc_pwrite): Likewise.
23448         * sysdeps/unix/sysv/linux/mips/pwrite64.c (__libc_pwrite64): Likewise.
23449         * sysdeps/unix/sysv/linux/msgrcv.c (__libc_msgrcv): Likewise.
23450         * sysdeps/unix/sysv/linux/msgsnd.c (__libc_msgsnd): Likewise.
23451         * sysdeps/unix/sysv/linux/open64.c (__libc_open64): Likewise.
23452         * sysdeps/unix/sysv/linux/openat.c (__libc_openat): Likewise.
23453         * sysdeps/unix/sysv/linux/powerpc/powerpc32/pread.c (__libc_pread):
23454         Likewise.
23455         * sysdeps/unix/sysv/linux/powerpc/powerpc32/pread64.c
23456         (__libc_read64): Likewise.
23457         * sysdeps/unix/sysv/linux/powerpc/powerpc32/pwrite.c (__libc_write):
23458         Likewise.
23459         * sysdeps/unix/sysv/linux/powerpc/powerpc32/pwrite64.c (__libc_write64):
23460         Likewise.
23461         * sysdeps/unix/sysv/linux/powerpc/powerpc64/fcntl.c (__libc_fcntl):
23462         Likewise.
23463         * sysdeps/unix/sysv/linux/powerpc/powerpc64/pread.c (__libc_pread):
23464         Likewise.
23465         * sysdeps/unix/sysv/linux/powerpc/powerpc64/pread64.c
23466         (__libc_pread64): Likewise.
23467         * sysdeps/unix/sysv/linux/powerpc/powerpc64/pwrite.c (__libc_pwrite):
23468         Likewise.
23469         * sysdeps/unix/sysv/linux/powerpc/powerpc64/pwrite64.c
23470         (__libc_pwrite64): Likewise.
23471         * sysdeps/sysv/linux/powerpc/powerpc64/sync_file_range.c
23472         (sync_file_range): Likewise.
23473         * sysdeps/unix/sysv/linux/ppoll.c (ppoll): Likewise.
23474         * sysdeps/unix/sysv/linux/pread.c (__libc_pread): Likewise.
23475         * sysdeps/unix/sysv/linux/pread64.c (__libc_pread64): Likewise.
23476         * sysdeps/unix/sysv/linux/preadv.c (__libc_preadv): Likewise.
23477         * sysdeps/unix/sysv/linux/pselect.c (__pselect): Likewise.
23478         * sysdeps/unix/sysv/linux/pwrite.c (__libc_pwrite): Likewise.
23479         * sysdeps/unix/sysv/linux/pwrite64.c (__libc_pwrite64): Likewise.
23480         * sysdeps/unix/sysv/linux/pwritev.c (PWRITEV): Likewise.
23481         * sysdeps/unix/sysv/linux/readv.c (__libc_readv): Likewise.
23482         * sysdeps/unix/sysv/linux/recvmmsg.c (recvmmsg): Likewise.
23483         * sysdeps/unix/sysv/linux/sendmmsg.c (sendmmsg): Likewise.
23484         * sysdeps/unix/sysv/linux/sh/pread.c (__libc_pread): Likewise.
23485         * sysdeps/unix/sysv/linux/sh/pread64.c (__libc_pread64): Likewise.
23486         * sysdeps/unix/sysv/linux/sh/pwrite.c (__libc_pwrite): Likewise.
23487         * sysdeps/unix/sysv/linux/sh/pwrite64.c (__libc_pwrite64): Likewise.
23488         * sysdeps/unix/sysv/linux/sigsuspend.c (__sigsuspend): Likewise.
23489         * sysdeps/unix/sysv/linux/sigtimedwait.c (__sigtimedwait): Likewise.
23490         * sysdeps/unix/sysv/linux/sigwaitinfo.c (__sigwaitinfo): Likewise.
23491         * sysdeps/unix/sysv/linux/sparc/sparc64/msgrcv.c (__libc_msgrcv):
23492         Likewise.
23493         * sysdeps/unix/sysv/linux/sync_file_range.c (sync_file_range):
23494         Likewise.
23495         * sysdeps/unix/sysv/linux/tcdrain.c (__libc_tcdrain): Likewise.
23496         * sysdeps/unix/sysv/linux/timer_routines.c (timer_helper_thread):
23497         Likewise.
23498         * sysdeps/unix/sysv/linux/wait.c (__libc_wait): Likewise.
23499         * sysdeps/unix/sysv/linux/waitid.c (__waitid): Likewise.
23500         * sysdeps/unix/sysv/linux/waitpid.c (__libc_waitpid): Likewise.
23501         * sysdeps/unix/sysv/linux/wordsize-64/fallocate.c (fallocate):
23502         Likewise.
23503         * sysdeps/unix/sysv/linux/wordsize-64/preadv.c (preadv): Likewise.
23504         * sysdeps/unix/sysv/linux/wordsize-64/pwritev.c (pwritev): Likewise.
23505         * sysdeps/unix/sysv/linux/writev.c (__libc_writev): Likewise.
23506         * sysdeps/unix/sysv/linux/x86_64/recv.c (__libc_recv): Likewise.
23507         * sysdeps/unix/sysv/linux/x86_64/send.c (__libc_send): Likewise.
23508
23509 2015-06-04  Nathan Lynch  <nathan_lynch@codesourcery.com>
23510
23511         * sysdeps/unix/sysv/linux/arm/Makefile: (sysdep_routines):
23512         Include dl-vdso.
23513         * sysdeps/unix/sysv/linux/arm/init-first.c: New file:
23514         Use VDSO routines for gettimeofday, clock_gettime if
23515         available.
23516         * sysdeps/unix/sysv/linux/arm/libc-vdso.h: New file:
23517         Declare VDSO symbols.
23518         * sysdeps/unix/sysv/linux/arm/sysdep.h:
23519         [HAVE_GETTIMEOFDAY_VSYSCALL]: Define.
23520         [HAVE_CLOCK_GETTIME_VSYSCALL]: Define.
23521         * sysdeps/unix/sysv/linux/arm/Versions: Add
23522         __vdso_clock_gettime.
23523
23524 2015-06-04  Adhemerval Zanella  <adhemerval.zanella@linaro.org>
23525
23526         * sysdeps/unix/sysv/linux/not-cancel.h (open_not_cancel): Rewrite to
23527         be an inline implementation regardless of library is built within.
23528         (open_not_cancel_2): Likewise.
23529         (__read_nocancel): Likewise.
23530         (__write_nocancel): Likewise.
23531         (openat_not_cancel): Likewise.
23532         (openat_not_cancel_3): Likewise.
23533         (openat64_not_cancel): Likewise.
23534         (openat64_not_cancel_3): Likewise.
23535         (__close_nocancel): Likewise.
23536         (pause_not_cancel): Likewise.
23537         (nanosleep_not_cancel): Likewise.
23538         (sigsuspend_not_cancel): Likewise.
23539
23540 2015-06-04  Torvald Riegel  <triegel@redhat.com>
23541
23542         [BZ #14958]
23543         * nptl/pthread_rwlock_rdlock.c (__pthread_rwlock_rdlock): Add missing
23544         wake-up.
23545         (__pthread_rwlock_rdlock_slow): Likewise.
23546         * nptl/pthread_rwlock_timedrdlock.c (pthread_rwlock_timedrdlock):
23547         Likewise.
23548         * nptl/pthread_rwlock_tryrdlock.c (__pthread_rwlock_tryrdlock):
23549         Likewise.
23550         * nptl/pthread_rwlock_unlock.c (__pthread_rwlock_unlock): Add comments.
23551         * nptl/tst-rwlock16.c: New file.
23552         * nptl/Makefile (tests): Add new test.
23553
23554 2015-06-04  Torvald Riegel  <triegel@redhat.com>
23555
23556         [BZ #18324]
23557         * nptl/pthread_rwlock_timedwrlock.c (pthread_rwlock_timedwrlock): Add
23558         missing wake-up of readers.
23559         * nptl/tst-rwlock15.c: New file.
23560         * nptl/Makefile (tests): Add new test.
23561
23562 2015-06-03  Roland McGrath  <roland@hack.frob.com>
23563
23564         * sysdeps/nacl/nacl-interfaces.c (try_supply): New static function.
23565         (PASTE_NAME (__nacl_supply_interface_, MODULE_NAME)): New function.
23566         * sysdeps/nacl/nacl-interfaces.h: Declare __nacl_supply_interface_libc
23567         and __nacl_supply_interface_rtld.
23568         * sysdeps/nacl/nacl_interface_ext_supply.c: New file.
23569         * sysdeps/nacl/Makefile [$(subdir) = csu] (sysdep_routines): Add it.
23570         * sysdeps/nacl/Versions (ld: GLIBC_PRIVATE):
23571         Add __nacl_supply_interface_rtld.
23572         (libc: GLIBC_2.22): Add nacl_interface_ext_supply.
23573
23574 2015-06-03  Wilco Dijkstra  <wdijkstr@arm.com>
23575
23576         * sysdeps/ieee754/ldbl-128ibm/s_fmal.c (__fmal): Replace finite with
23577         isfinite.
23578         * sysdeps/ieee754/ldbl-96/s_fma.c (__fma): Likewise.
23579         * sysdeps/ieee754/ldbl-opt/nldbl-finite.c (__finitel): Likewise.
23580
23581 2015-06-03  Wilco Dijkstra  <wdijkstr@arm.com>
23582
23583         * math/e_exp10.c: Replace __isinf*, __isnan*, __finite* and
23584         __signbit* with standard C99 macros.
23585         * math/e_exp10l.c: Likewise.
23586         * math/e_exp2l.c: Likewise.
23587         * math/e_scalb.c: Likewise.
23588         * math/e_scalbf.c: Likewise.
23589         * math/e_scalbl.c: Likewise.
23590         * math/s_ldexp.c: Likewise.
23591         * math/s_ldexpf.c: Likewise.
23592         * math/s_ldexpl.c: Likewise.
23593         * math/w_atan2.c: Likewise.
23594         * math/w_atan2f.c: Likewise.
23595         * math/w_atan2l.c: Likewise.
23596         * math/w_cosh.c: Likewise.
23597         * math/w_coshf.c: Likewise.
23598         * math/w_coshl.c: Likewise.
23599         * math/w_exp10.c: Likewise.
23600         * math/w_exp10f.c: Likewise.
23601         * math/w_exp10l.c: Likewise.
23602         * math/w_exp2.c: Likewise.
23603         * math/w_exp2f.c: Likewise.
23604         * math/w_exp2l.c: Likewise.
23605         * math/w_fmod.c: Likewise.
23606         * math/w_fmodf.c: Likewise.
23607         * math/w_fmodl.c: Likewise.
23608         * math/w_hypot.c: Likewise.
23609         * math/w_hypotf.c: Likewise.
23610         * math/w_hypotl.c: Likewise.
23611         * math/w_jnl.c: Likewise.
23612         * math/w_lgamma.c: Likewise.
23613         * math/w_lgamma_r.c: Likewise.
23614         * math/w_lgammaf.c: Likewise.
23615         * math/w_lgammaf_r.c: Likewise.
23616         * math/w_lgammal.c: Likewise.
23617         * math/w_lgammal_r.c: Likewise.
23618         * math/w_pow.c: Likewise.
23619         * math/w_powf.c: Likewise.
23620         * math/w_powl.c: Likewise.
23621         * math/w_remainder.c: Likewise.
23622         * math/w_remainderf.c: Likewise.
23623         * math/w_remainderl.c: Likewise.
23624         * math/w_scalb.c: Likewise.
23625         * math/w_scalbf.c: Likewise.
23626         * math/w_scalbl.c: Likewise.
23627         * math/w_scalbln.c: Likewise.
23628         * math/w_scalblnf.c: Likewise.
23629         * math/w_scalblnl.c: Likewise.
23630         * math/w_sinh.c: Likewise.
23631         * math/w_sinhf.c: Likewise.
23632         * math/w_sinhl.c: Likewise.
23633         * math/w_tgamma.c: Likewise.
23634         * math/w_tgammaf.c: Likewise.
23635         * math/w_tgammal.c: Likewise.
23636         * sysdeps/ieee754/dbl-64/e_exp.c: Likewise.
23637         * sysdeps/ieee754/dbl-64/e_exp10.c: Likewise.
23638         * sysdeps/ieee754/dbl-64/e_exp2.c: Likewise.
23639         * sysdeps/ieee754/dbl-64/e_j1.c: Likewise.
23640         * sysdeps/ieee754/dbl-64/e_jn.c: Likewise.
23641         * sysdeps/ieee754/dbl-64/e_pow.c: Likewise.
23642         * sysdeps/ieee754/dbl-64/w_exp.c: Likewise.
23643         * sysdeps/ieee754/flt-32/e_expf.c: Likewise.
23644         * sysdeps/ieee754/flt-32/e_j1f.c: Likewise.
23645         * sysdeps/ieee754/flt-32/e_jnf.c: Likewise.
23646         * sysdeps/ieee754/flt-32/w_expf.c: Likewise.
23647         * sysdeps/ieee754/ldbl-128/e_exp10l.c: Likewise.
23648         * sysdeps/ieee754/ldbl-128/e_expl.c: Likewise.
23649         * sysdeps/ieee754/ldbl-128/e_j0l.c: Likewise.
23650         * sysdeps/ieee754/ldbl-128/e_j1l.c: Likewise.
23651         * sysdeps/ieee754/ldbl-128/e_jnl.c: Likewise.
23652         * sysdeps/ieee754/ldbl-128/e_lgammal_r.c: Likewise.
23653         * sysdeps/ieee754/ldbl-128/s_cbrtl.c: Likewise.
23654         * sysdeps/ieee754/ldbl-128/w_expl.c: Likewise.
23655         * sysdeps/ieee754/ldbl-128ibm/e_acosl.c: Likewise.
23656         * sysdeps/ieee754/ldbl-128ibm/e_asinl.c: Likewise.
23657         * sysdeps/ieee754/ldbl-128ibm/e_exp10l.c: Likewise.
23658         * sysdeps/ieee754/ldbl-128ibm/e_expl.c: Likewise.
23659         * sysdeps/ieee754/ldbl-128ibm/e_jnl.c: Likewise.
23660         * sysdeps/ieee754/ldbl-128ibm/s_ctanhl.c: Likewise.
23661         * sysdeps/ieee754/ldbl-128ibm/s_ctanl.c: Likewise.
23662         * sysdeps/ieee754/ldbl-128ibm/w_expl.c: Likewise.
23663         * sysdeps/ieee754/ldbl-96/e_j1l.c: Likewise.
23664         * sysdeps/ieee754/ldbl-96/e_jnl.c: Likewise.
23665         * sysdeps/ieee754/ldbl-96/w_expl.c: Likewise.
23666         * sysdeps/ieee754/ldbl-opt/nldbl-finite.c: Likewise.
23667         * sysdeps/ieee754/ldbl-opt/nldbl-isinf.c: Likewise.
23668         * sysdeps/ieee754/ldbl-opt/nldbl-isnan.c: Likewise.
23669         * sysdeps/ieee754/ldbl-opt/nldbl-signbit.c: Likewise.
23670         * stdio-common/printf_fp.c: Likewise.
23671         * stdio-common/printf_fphex.c: Likewise.
23672         * stdio-common/printf_size.c: Likewise.
23673
23674 2015-06-03  Joseph Myers  <joseph@codesourcery.com>
23675
23676         [BZ #18470]
23677         * posix/fnmatch.c (fnmatch) [_LIBC]: Call __strnlen instead of
23678         strnlen.
23679         * conform/Makefile (test-xfail-XPG3/fnmatch.h/linknamespace):
23680         Remove variable.
23681         (test-xfail-XPG4/fnmatch.h/linknamespace): Likewise.
23682         (test-xfail-POSIX/fnmatch.h/linknamespace): Likewise.
23683         (test-xfail-POSIX/glob.h/linknamespace): Likewise.
23684         (test-xfail-POSIX/wordexp.h/linknamespace): Likewise.
23685         (test-xfail-UNIX98/fnmatch.h/linknamespace): Likewise.
23686         (test-xfail-UNIX98/glob.h/linknamespace): Likewise.
23687         (test-xfail-UNIX98/wordexp.h/linknamespace): Likewise.
23688         (test-xfail-XOPEN2K/fnmatch.h/linknamespace): Likewise.
23689         (test-xfail-XOPEN2K/glob.h/linknamespace): Likewise.
23690         (test-xfail-XOPEN2K/wordexp.h/linknamespace): Likewise.
23691
23692         [BZ #18468]
23693         * wcsmbs/wmemchr.c (wmemchr): Rename to __wmemchr and define as
23694         weak alias of __wmemchr.  Use libc_hidden_weak.
23695         * include/wchar.h (__wmemchr): Declare.  Use libc_hidden_proto.
23696         * posix/fnmatch.c [HANDLE_MULTIBYTE] (MEMCHR): Use __wmemchr
23697         instead of wmemchr.
23698
23699 2015-06-02  Roland McGrath  <roland@hack.frob.com>
23700
23701         [BZ #18383]
23702         * elf/tst-tlsalign-extern.c: New file.
23703         * elf/tst-tlsalign-extern-static.c: New file.
23704         * elf/tst-tlsalign-vars.c: New file.
23705         * elf/Makefile (tests-static): Add tst-tlsalign-extern-static.
23706         [$(build-shared) = yes] (tests): Add tst-tlsalign-extern.
23707         ($(objpfx)tst-tlsalign-extern): Depend on tst-tlsalign-vars.o.
23708         ($(objpfx)tst-tlsalign-extern-static): Likewise.
23709         (test-xfail-tst-tlsalign-extern-static): New variable.
23710
23711 2015-06-02  Joseph Myers  <joseph@codesourcery.com>
23712
23713         * sysdeps/unix/sysv/linux/mips/mips32/sysdep.h (INLINE_SYSCALL):
23714         Use variable name _sc_err instead of err.
23715         [__mips16] (INTERNAL_SYSCALL_NCS): Use variable name _sc_ret
23716         instead of ret.
23717         * sysdeps/unix/sysv/linux/mips/mips64/n32/sysdep.h
23718         (INLINE_SYSCALL): Use variable name _sc_err instead of err.
23719         * sysdeps/unix/sysv/linux/mips/mips64/n64/sysdep.h
23720         (INLINE_SYSCALL): Likewise.
23721
23722         * string/strnlen.c [!STRNLEN] (__strnlen): Use libc_hidden_def.
23723         * include/string.h (__strnlen): Use libc_hidden_proto.
23724         * sysdeps/aarch64/strnlen.S (__strnlen): Use libc_hidden_def.
23725         * sysdeps/i386/i686/multiarch/strnlen-c.c [SHARED]
23726         (libc_hidden_def): Define __GI___strnlen as well as __GI_strnlen.
23727         * sysdeps/powerpc/powerpc32/power4/multiarch/strnlen-power7.S
23728         (libc_hidden_def): Undefine and redefine.
23729         * sysdeps/powerpc/powerpc32/power4/multiarch/strnlen-ppc32.c
23730         [SHARED] (libc_hidden_def): Define __GI___strnlen as well as
23731         __GI_strnlen.
23732         * sysdeps/powerpc/powerpc32/power7/strnlen.S (__strnlen): Use
23733         libc_hidden_def.
23734         * sysdeps/tile/tilegx/strnlen.c (__strnlen): Likewise.
23735
23736         [BZ #18469]
23737         * wctype/wcfuncs.c (towlower): Rename to __towlower and define as
23738         weak alias of __towlower.  Use libc_hidden_weak.
23739         (towupper): Rename to __towupper and define as weak alias of
23740         __towupper.  Use libc_hidden_weak.
23741         * include/wctype.h (__towlower): Declare.  Use libc_hidden_proto.
23742         (__towupper): Likewise.
23743         * posix/fnmatch.c [HANDLE_MULTIBYTE && _LIBC] (FOLD): Use
23744         __towlower instead of towlower.
23745
23746 2015-06-02  Roland McGrath  <roland@hack.frob.com>
23747
23748         * stdlib/setenv.c [__GNUC__,__GNUC_MINOR__ < 4,7]: Use
23749         "-Wuninitialized" rather than "-Wmaybe-uninitialized" in pragma.
23750
23751 2015-06-02  Szabolcs Nagy  <szabolcs.nagy@arm.com>
23752
23753         * sysdeps/aarch64/libm-test-ulps: Update.
23754
23755 2015-06-01  Adhemerval Zanella  <adhemerval.zanella@linaro.org>
23756
23757         * sysdeps/unix/sysv/linux/i386/sysdep.h (HAVE_CLOCK_GETTIME_VSYSCALL):
23758         Define.
23759         (HAVE_GETTIMEOFDAY_VSYSCALL): Likewise.
23760         * sysdeps/unix/sysv/linux/x86_64/sysdep.h
23761         (HAVE_CLOCK_GETTIME_VSYSCALL): Likewise.
23762         (HAVE_GETTIMEOFDAY_VSYSCALL): Likewise.
23763         * sysdeps/unix/sysv/linux/timespec_get.c: Include errno.h.
23764         * sysdeps/unix/sysv/linux/x86/clock_gettime.c: Remove file.
23765         * sysdeps/unix/sysv/linux/x86/timespec_get.c: Likewise.
23766
23767 2015-06-01  Martin Sebor  <msebor@redhat.com>
23768
23769         [BZ #18116]
23770         * sysdeps/unix/sysv/linux/powerpc/powerpc64/setcontext.S
23771         (__setcontext): Use extended four-operand version of mtsf whenever
23772         possible.
23773         * sysdeps/unix/sysv/linux/powerpc/powerpc64/swapcontext.S
23774         (__novec_swapcontext): Likewise.
23775
23776 2015-06-01  Siddhesh Poyarekar  <siddhesh@redhat.com>
23777
23778         * benchtests/scripts/compare_bench.py: New file.
23779         * benchtests/scripts/import_bench.py (mean): New function.
23780         (split_list): Likewise.
23781         (do_for_all_timings): Likewise.
23782         (compress_timings): Likewise.
23783
23784         * benchtests/scripts/import_bench.py: New file.
23785         * benchtests/scripts/validate_benchout.py: Import import_bench
23786         instead of jsonschema.
23787         (validate_bench): Remove function.
23788         (main): Use import_bench.
23789
23790 2015-06-01  Steve Ellcey  <sellcey@imgtec.com>
23791
23792         * resolv/res_hconf.c (_res_hconf_reorder_addrs): Use a union to
23793         copy data from cur_ifr->ifr_addr and cur_ifr->ifr_netmask.
23794
23795 2015-05-29  Adhemerval Zanella  <adhemerval.zanella@linaro.org>
23796
23797         * sysdeps/powerpc/fpu/libm-test-ulps: Update.
23798
23799 2015-05-28  Roland McGrath  <roland@hack.frob.com>
23800
23801         * sysdeps/nacl/exit-thread.h (__exit_thread): If not detached,
23802         set THREAD_SELF->tid to a magic value and futex-wake it.
23803         Pass its address to the thread_exit system call.
23804         * sysdeps/nacl/pthread-pids.h (__nacl_get_tid): Assert that TID's low
23805         bit is clear.
23806         * sysdeps/nacl/lowlevellock.h: New file.
23807         * sysdeps/nacl/lll_timedwait_tid.c: New file.
23808
23809         * sysdeps/nacl/lowlevellock-futex.h (lll_futex_timed_wait):
23810         Add TIMEOUT to current time, don't subtract it.
23811
23812 2015-05-28  H.J. Lu  <hongjiu.lu@intel.com>
23813
23814         [BZ #2981]
23815         [BZ #18422]
23816         * Makefile ($(objpfx)tst-audit2): Depend on $(libdl).
23817         ($(objpfx)tst-audit2.out): Also depend on
23818         $(objpfx)tst-auditmod9b.so.
23819         * elf/tst-audit2.c: Include <dlfcn.h>.
23820         (calloc_called): New.
23821         (calloc): Allow to be called more than once.
23822         (do_test): dllopen/dlclose $ORIGIN/tst-auditmod9b.so.
23823
23824 2015-05-28  Wilco Dijkstra  <wdijkstr@arm.com>
23825
23826         * sysdeps/ieee754/dbl-64/s_fabs.c: (__fabs): Call __builtin_fabs.
23827         * sysdeps/ieee754/flt-32/s_fabsf.c: (__fabsf): Likewise.
23828
23829 2015-05-27  Marko Myllynen  <myllynen@redhat.com>
23830
23831         * stdlib/monetary.h: Fix comment.
23832
23833 2015-05-26  Chris Metcalf  <cmetcalf@ezchip.com>
23834
23835         * sysdeps/unix/sysv/linux/tile/sysdep.h (INLINE_SYSCALL):
23836         Avoid using variables in #defines that might cause shadowing.
23837         (INTERNAL_VSYSCALL_CALL): Likewise.
23838
23839 2015-05-26  Roland McGrath  <roland@hack.frob.com>
23840
23841         * sysdeps/nacl/lll_timedlock_wait.c: New file.
23842
23843         * nptl/lowlevellock.c (__lll_timedlock_wait): Moved ...
23844         * nptl/lll_timedlock_wait.c: ... to this new file.
23845         * nptl/Makefile (libpthread-routines): Add it.
23846         * nptl/lowlevellock.c (__lll_timedwait_tid): Moved ...
23847         * nptl/lll_timedwait_tid.c: ... to this new file.
23848         * nptl/Makefile (libpthread-routines): Add it.
23849         * sysdeps/sparc/sparc32/lll_timedlock_wait.c: New file.
23850         * sysdeps/sparc/sparc32/lll_timedwait_tid.c: New file.
23851         * sysdeps/unix/sysv/linux/i386/i486/lll_timedlock_wait.c: New file.
23852         * sysdeps/unix/sysv/linux/i386/i586/lll_timedlock_wait.c: New file.
23853         * sysdeps/unix/sysv/linux/i386/i686/lll_timedlock_wait.c: New file.
23854         * sysdeps/unix/sysv/linux/i386/i486/lll_timedwait_tid.c: New file.
23855         * sysdeps/unix/sysv/linux/i386/i586/lll_timedwait_tid.c: New file.
23856         * sysdeps/unix/sysv/linux/i386/i686/lll_timedwait_tid.c: New file.
23857         * sysdeps/unix/sysv/linux/x86_64/lll_timedlock_wait.c: New file.
23858         * sysdeps/unix/sysv/linux/x86_64/lll_timedwait_tid.c: New file.
23859
23860 2015-05-26  Adhemerval Zanella  <adhemerval.zanella@linaro.org>
23861
23862         * sysdeps/unix/sysv/linux/aarch64/gettimeofday.c: Remove file.
23863         * sysdeps/unix/sysv/linux/s390/gettimeofday.c: Likewise.
23864         * sysdeps/unix/sysv/linux/tile/gettimeofday.c: Likewise.
23865         * sysdeps/unix/sysv/linux/aarch64/sysdep.h
23866         (HAVE_GETTIMEOFDAY_VSYSCALL): Define.
23867         * sysdeps/unix/sysv/linux/s390/s390-32/sysdep.h
23868         (HAVE_GETTIMEOFDAY_VSYSCALL): Likewise.
23869         * sysdeps/unix/sysv/linux/s390/s390-64/sysdep.h
23870         (HAVE_GETTIMEOFDAY_VSYSCALL): Likewise.
23871         * sysdeps/unix/sysv/linux/tile/sysdep.h
23872         (HAVE_GETTIMEOFDAY_VSYSCALL): Likewise.
23873         * sysdeps/unix/sysv/linux/gettimeofday.c: New file: gettimeofday
23874         using vDSO syscall macro.
23875
23876 2015-05-26  Andriy Rysin  <arysin@gmail.com>
23877
23878         [BZ #17293]
23879         * uk_UA: Fix sorting order for Ukrainian locale
23880
23881 2015-05-26  Marko Myllynen  <myllynen@redhat.com>
23882
23883         * stdlib/monetary.h: Fix comment.
23884
23885 2015-05-26  Szabolcs Nagy  <szabolcs.nagy@arm.com>
23886
23887         [BZ #18234]
23888         * conform/data/sys/stat.h-data (struct stat): Add tests for st_atim,
23889         st_mtim and st_ctim members.
23890         * sysdeps/nacl/bits/stat.h (struct stat, struct stat64): Make
23891         st_atim, st_ctim, st_mtim visible under __USE_XOPEN2K8 only.
23892         * sysdeps/unix/sysv/linux/generic/bits/stat.h (struct stat,):
23893         (struct stat64): Likewise.
23894         * sysdeps/unix/sysv/linux/ia64/bits/stat.h (struct stat,):
23895         (struct stat64): Likewise.
23896         * sysdeps/unix/sysv/linux/microblaze/bits/stat.h (struct stat,):
23897         (struct stat64): Likewise.
23898
23899 2015-05-26  Adhemerval Zanella  <adhemerval.zanella@linaro.org>
23900
23901         * sysdeps/unix/sysv/linux/aarch64/gettimeofday.c (HAVE_VSYSCALL):
23902         Define and include sysdep-vdso.h.
23903         * sysdeps/unix/sysv/linux/s390/gettimeofday.c (HAVE_VSYSCALL):
23904         Likewise.
23905         * sysdeps/unix/sysv/linux/tile/gettimeofday.c (HAVE_VSYSCALL):
23906         Likewise.
23907         * sysdeps/unix/sysv/linux/aarch64/init-first.c (__vdso_gettimeofday):
23908         Define with VDSO_SYMBOL and use PTR_MANGLE.
23909         (__vdso_clock_gettime): Likewise.
23910         (__vdso_clock_getres): Likewise.
23911         (_libc_vdso_platform_setup): Likewise.
23912         * sysdeps/unix/sysv/linux/i386/init-first.c (__vdso_clock_gettime):
23913         Likewise.
23914         (_libc_vdso_platform_setup): Likewise.
23915         * sysdeps/unix/sysv/linux/powerpc/init-first.c (__vdso_gettimeofday):
23916         Likewise.
23917         (__vdso_clock_gettime): Likewise.
23918         (__vdso_clock_getres): Likewise.
23919         (__vdso_get_tbfreq): Likewise.
23920         (__vdso_getcpu): Likewise.
23921         (__vdso_time): Likewise.
23922         (__vdso_sigtramp_rt64): Likewise.
23923         (__vdso_signtramp32): Likewise.
23924         (__vdso_sigtramp_rt32): Likewise.
23925         (_libc_vdso_platform_setup): Likewise.
23926         * sysdeps/unix/sysv/linux/s390/init-first.c (__vdso_gettimeofay):
23927         Likewise.
23928         (__vdso_clock_gettime): Likewise.
23929         (__vdso_clock_getres): Likewise.
23930         (_libc_vdso_platform_setup): Likewise.
23931         * sysdeps/unix/sysv/linux/tile/init-first.c (__vdso_gettimeofday):
23932         Likewise.
23933         (__vdso_clock_gettime): Likewise.
23934         (_libc_vdso_platform_setup): Likewise.
23935         * sysdeps/unix/sysv/linux/x86_64/init-first.c (__vdso_clock_gettime):
23936         Likewise.
23937         (__vdso_getcpu): Likewise.
23938         * sysdeps/unix/sysv/linux/aarch64/libc-vdso.h (__vdso_gettimeoday):
23939         Use VDSO_SYMBOL macro to define.
23940         (__vdso_clock_gettime): Likewise.
23941         (__vdso_clock_getres): Likewise.
23942         * sysdeps/unix/sysv/linux/powerpc/libc-vdso.h (__vdso_gettimeofday):
23943         Likewise.
23944         (__vdso_clock_gettime): Likewise.
23945         (__vdso_clock_getres): Likewise.
23946         (__vdso_get_tbfreq): Likewise.
23947         (__vdso_getcpu): Likewise.
23948         (__vdso_time): Likewise.
23949         (__vdso_sigtramp_rt64): Likewise.
23950         (__vdso_signtramp32): Likewise.
23951         (__vdso_sigtramp_rt32): Likewise.
23952         * sysdeps/unix/sysv/linux/s390/libc-vdso.h (__vdso_gettimeofday):
23953         Likewise.
23954         (__vdso_clock_gettime): Likewise.
23955         (__vdso_clock_getres): Likewise.
23956         * sysdeps/unix/sysv/linux/tile/libc-vdso.h (__vdso_gettimeofday):
23957         Likewise.
23958         (__vdso_clock_gettime): Likewise.
23959         * sysdeps/unix/sysv/linux/x86/libc-vdso.h (__vdso_clock_gettime):
23960         Likewise.
23961         * sysdeps/unix/sysv/linux/aarch64/sysdep.h (INLINE_VSYSCALL):  Remove
23962         macro.
23963         (INTERNAL_VSYSCALL): Likewise.
23964         * sysdeps/unix/sysv/linux/s390/s390-32/sysdep.h (INLINE_VSYSCALL):
23965         Remove macro.
23966         (INTERNAL_VSYSCALL): Likewise.
23967         (INTERNAL_VSYSCALL_NCS): Likewise.
23968         (INTERNAL_VSYSCALL_CALL): New macro.
23969         (INTERNAL_VSYSCALL_NO_SYSCALL_FALLBACK): Use PTR_DEMANGLE.
23970         * sysdeps/unix/sysv/linux/s390/s390-64/sysdep.h (INLINE_VSYSCALL):
23971         Likewise.
23972         (INTERNAL_VSYSCALL): Likewise.
23973         (INTERNAL_VSYSCALL_NCS): Likewise.
23974         (INTERNAL_VSYSCALL_CALL): New macro.
23975         (INTERNAL_VSYSCALL_NO_SYSCALL_FALLBACK): Use PTR_DEMANGLE.
23976         * sysdeps/unix/sysv/linux/powerpc/powerpc32/sysdep.h
23977         (INLINE_VSYSCALL): Remove macro.
23978         (INTERNAL_VSYSCALL): Remove macro.
23979         (INTERNAL_VSYSCALL_NCS): Remove macro.
23980         (INTERNAL_VSYSCALL_CALL): New macro.
23981         (INTERNAL_VSYSCALL_CALL_TYPE): New macro.
23982         (INTERNAL_VSYSCALL_NO_SYSCALL_FALLBACK): Use INTERNAL_VSYSCALL_CALL.
23983         (INTERNAL_VSYSCALL_NCS_TYPE): Likewise.
23984         (HAVE_CLOCK_GETRES_VSYSCALL): New define.
23985         (HAVE_CLOCK_GETTIME_VSYSCALL): Likewise.
23986         * sysdeps/unix/sysv/linux/powerpc/powerpc64/sysdep.h
23987         (INLINE_VSYSCALL): Remove macro.
23988         (INTERNAL_VSYSCALL): Likewise.
23989         (INTERNAL_VSYSCALL_NCS): Likewise.
23990         (INTERNAL_VSYSCALL_CALL): New macro.
23991         (INTERNAL_VSYSCALL_CALL_TYPE): Likewise.
23992         (INTERNAL_VSYSCALL_NO_SYSCALL_FALLBACK): Use INTERNAL_VSYSCALL_CALL and
23993         PTR_DEMANGLE on vDSO pointer.
23994         (INTERNAL_VSYSCALL_NCS_TYPE): Likewise.
23995         * sysdeps/unix/sysv/linux/tile/sysdep.h (INLINE_VSYSCALL): Remove
23996         macro.
23997         (INTERNAL_SYSCALL): Likewise.
23998         (INTERNAL_VSYSCALL_NCS): Remove macro.
23999         (INTERNAL_VSYSCALL_CALL): New macro.
24000         * sysdeps/unix/sysv/linux/x86_64/sysdep.h (INLINE_VSYSCALL):
24001         Remove macro.
24002         (INTERNAL_VSYSCALL): Likewise.
24003         * sysdeps/unix/sysv/linux/powerpc/sched_getcpu.c: Include
24004         sysdep-vdso.h instead of libc-vdso.h.
24005         * sysdeps/unix/sysv/linux/clock_getres.c (INTERNAL_VSYSCALL): Remove
24006         definition.
24007         (INLINE_VSYSCALL): Likewise.
24008         (HAVE_VSYSCALL) [HAVE_CLOCK_GETRES_VSYSCALL]: Define.
24009         * sysdeps/unix/sysv/linux/clock_gettime.c (INTERNAL_VSYSCALL): Remove
24010         definition.
24011         (INLINE_VSYSCALL): Likewise.
24012         (INTERNAL_VSYSCALL): Likewise.
24013         (HAVE_VSYSCALL) [HAVE_CLOCK_GETTIME_VSYSCALL]: Define.
24014         * sysdeps/unix/sysv/linux/timespec_get.c
24015         (INTERNAL_VSYSCALL) [HAVE_CLOCK_GETTIME_VSYSCALL]: Define.
24016         (timespec_get): Use ANSI prototype.
24017         * sysdeps/unix/sysv/linux/sysdep-vdso.h: New file: default vDSO macros
24018         and definition for Linux.
24019
24020 2015-05-25  Andrew Senkevich  <andrew.senkevich@intel.com>
24021
24022         * elf/Makefile (localplt-built-dso): libmvec added to localplt test.
24023         * include/libc-symbols.h: libmvec_hidden_* macro series added.
24024
24025 2015-05-22  H.J. Lu  <hongjiu.lu@intel.com>
24026
24027         [BZ #2981]
24028         [BZ #18410]
24029         * elf/dl-reloc.c (_dl_relocate_object): Don't issue an error
24030         for missing DT_PLTRELSZ.
24031
24032 2015-05-22  Paul Eggert  <eggert@cs.ucla.edu>
24033
24034         Remove obsolete aliases that broke 'locale -a'
24035         [BZ #18412]
24036         * intl/locale.alias: Remove obsolete aliases "bokmål" and "français"
24037         which caused 'locale -a' to output Latin-1 data in UTF-8 locales,
24038         breaking some applications that use 'locale -a' output.
24039         Change the encoding of this file from Latin-1 to ASCII to avoid
24040         other potential problems with people grepping this file.
24041
24042 2015-05-22  Adhemerval Zanella  <adhemerval.zanella@linaro.org>
24043
24044         * nptl/Makefile (CFLAGS-accept.c): Add -fexceptions and
24045         -fasynchronous-unwind-tables.
24046         (CFLAGS-sendto.c): Likewise.
24047         (CFLAGS-sendmsg.c): Likewise.
24048         (CFLAGS-connect.c): Likewise.
24049         (CFLAGS-recvmsg.c): Likewise.
24050         (CFLAGS-recvfrom.c): Likewise.
24051         * sysdeps/unix/sysv/linux/socketcall.h (SOCKOP_invalid): Define.
24052         (SOCKETCALL): New macro: non-cancellable socketcall.
24053         (SOCKETCALL_CANCEL): New macro: cancellable socketcall.
24054         * sysdeps/unix/sysv/linux/Makefile [$(subdir) = socket]: Remove
24055         internal_accept4, internal_recvmmsg, and internal_sendmmsg rules.
24056         * sysdeps/unix/sysv/linux/accept.c: New file.
24057         * sysdeps/unix/sysv/linux/bind.c: Likewise.
24058         * sysdeps/unix/sysv/linux/connect.c: Likewise.
24059         * sysdeps/unix/sysv/linux/getpeername.c: Likewise.
24060         * sysdeps/unix/sysv/linux/getsockname.c: Likewise.
24061         * sysdeps/unix/sysv/linux/getsockopt.c: Likewise.
24062         * sysdeps/unix/sysv/linux/listen.c: Likewise.
24063         * sysdeps/unix/sysv/linux/recv.c: Likewise.
24064         * sysdeps/unix/sysv/linux/recvfrom.c: Likewise.
24065         * sysdeps/unix/sysv/linux/recvmsg.c: Likewise.
24066         * sysdeps/unix/sysv/linux/send.c: Likewise.
24067         * sysdeps/unix/sysv/linux/sendmsg.c: Likewise.
24068         * sysdeps/unix/sysv/linux/sendto.c: Likewise.
24069         * sysdeps/unix/sysv/linux/setsockopt.c: Likewise.
24070         * sysdeps/unix/sysv/linux/shutdown.c: Likewise.
24071         * sysdeps/unix/sysv/linux/socket.c: Likewise.
24072         * sysdeps/unix/sysv/linux/socketpair.c: Likewise.
24073         * sysdeps/unix/sysv/linux/recvmmsg.c (__internal_recvmmsg): Remove
24074         prototype.
24075         (recvmmsg) [__ASSUME_RECVMMSG_SOCKETCALL]: Add C based implementation.
24076         (recvmmsg) [!__ASSUME_RECVMMSG_SOCKETCALL]: Use SOCKETCALL_CANCEL macro
24077         instead of __internal_xxx function.
24078         * sysdeps/unix/sysv/linux/accept4.c (__internal_accept4): Remove
24079         prototype.
24080         (accept4) [__ASSUME_ACCEPT4_SOCKETCALL]: Add C based implementation.
24081         (accept4) [!__ASSUME_ACCEPT4_SOCKETCALL]: Use SOCKETCALL_CANCEL macro
24082         instead of __internal_xxx function.
24083         * sysdeps/unix/sysv/linux/sendmmsg.c (__internal_sendmmsg): Remove
24084         prototype.
24085         (sendmmsg) [__ASSUME_SENDMMSG_SOCKETCALL]: Add C based implementation.
24086         (sendmmsg) [!__ASSUME_SENDMMSG_SOCKETCALL]: Use SOCKETCALL_CANCEL macro
24087         instead of __internal_xxx function.
24088         * sysdeps/unix/sysv/linux/accept.S: Remove file.
24089         * sysdeps/unix/sysv/linux/bind.S: Likewise.
24090         * sysdeps/unix/sysv/linux/connect.S: Likewise.
24091         * sysdeps/unix/sysv/linux/getpeername.S: Likewise.
24092         * sysdeps/unix/sysv/linux/getsockname.S: Likewise.
24093         * sysdeps/unix/sysv/linux/getsockopt.S: Likewise.
24094         * sysdeps/unix/sysv/linux/arm/internal_accept4.S: Likewise.
24095         * sysdeps/unix/sysv/linux/arm/internal_recvmmsg.S: Likewise.
24096         * sysdeps/unix/sysv/linux/arm/internal_sendmmsg.S: Likewise.
24097         * sysdeps/unix/sysv/linux/i386/accept4.S: Likewise.
24098         * sysdeps/unix/sysv/linux/i386/internal_accept4.S: Likewise.
24099         * sysdeps/unix/sysv/linux/i386/socket.S: Likewise.
24100         * sysdeps/unix/sysv/linux/internal_accept4.S: Likewise.
24101         * sysdeps/unix/sysv/linux/internal_recvmmsg.S: Likewise.
24102         * sysdeps/unix/sysv/linux/internal_sendmmsg.S: Likewise.
24103         * sysdeps/unix/sysv/linux/listen.S: Likewise.
24104         * sysdeps/unix/sysv/linux/microblaze/socket.S: Likewise.
24105         * sysdeps/unix/sysv/linux/mips/mips32/internal_accept4.S: Likewise.
24106         * sysdeps/unix/sysv/linux/mips/mips32/internal_recvmmsg.S: Likewise.
24107         * sysdeps/unix/sysv/linux/mips/mips32/internal_sendmmsg.S: Likewise.
24108         * sysdeps/unix/sysv/linux/powerpc/powerpc32/socket.S: Likewise.
24109         * sysdeps/unix/sysv/linux/powerpc/powerpc64/socket.S: Likewise.
24110         * sysdeps/unix/sysv/linux/recv.S: Likewise.
24111         * sysdeps/unix/sysv/linux/recvfrom.S: Likewise.
24112         * sysdeps/unix/sysv/linux/recvmsg.S: Likewise.
24113         * sysdeps/unix/sysv/linux/s390/s390-32/socket.S: Likewise.
24114         * sysdeps/unix/sysv/linux/s390/s390-64/socket.S: Likewise.
24115         * sysdeps/unix/sysv/linux/send.S: Likewise.
24116         * sysdeps/unix/sysv/linux/sendmsg.S: Likewise.
24117         * sysdeps/unix/sysv/linux/sendto.S: Likewise.
24118         * sysdeps/unix/sysv/linux/setsockopt.S: Likewise.
24119         * sysdeps/unix/sysv/linux/sh/socket.S: Likewise.
24120         * sysdeps/unix/sysv/linux/shutdown.S: Likewise.
24121         * sysdeps/unix/sysv/linux/socketpair.S: Likewise.
24122         * sysdeps/unix/sysv/linux/sparc/sparc32/socket.S: Likewise.
24123         * sysdeps/unix/sysv/linux/sparc/sparc64/socket.S: Likewise.
24124         * sysdeps/unix/sysv/linux/m68k/socket.S: Likewise.
24125         * sysdeps/unix/sysv/linux/hppa/socket.S: Likewise.
24126         * sysdeps/unix/sysv/linux/kernel-features.h: Adjust comment on how
24127         socketcall is implemented in GLIBC.
24128
24129 2015-05-22  Joseph Myers  <joseph@codesourcery.com>
24130
24131         * soft-fp/fmadf4.c: Include <libc-internal.h>.
24132         (__fma): Ignore uninitialized warnings around packing.
24133         * soft-fp/fmasf4.c: Include <libc-internal.h>.
24134         (__fmaf): Ignore uninitialized warnings around packing.
24135         * soft-fp/fmatf4.c: Include <libc-internal.h>.
24136         (__fmal): Ignore uninitialized warnings around packing.
24137
24138         * sysdeps/ieee754/ldbl-128/k_tanl.c: Include <libc-internal.h>.
24139         (__kernel_tanl): Ignore uninitialized warnings around use of SIGN.
24140         * sysdeps/ieee754/ldbl-128ibm/k_tanl.c: Include <libc-internal.h>.
24141         (__kernel_tanl): Ignore uninitialized warnings around use of SIGN.
24142
24143         * sysdeps/ieee754/ldbl-128/s_erfl.c (__erfcl): Make case 9 in
24144         switch statement into default case.
24145         * sysdeps/ieee754/ldbl-128ibm/s_erfl.c (__erfcl): Likewise.
24146
24147         * sysdeps/ieee754/ldbl-128/e_asinl.c (__ieee754_asinl): Don't use
24148         a conditional in forcing "inexact".
24149         * sysdeps/ieee754/ldbl-128ibm/e_asinl.c (__ieee754_asinl):
24150         Likewise.
24151
24152 2015-05-22  Roland McGrath  <roland@hack.frob.com>
24153
24154         * nptl/nptl-init.c (__pthread_initialize_minimal_internal):
24155         Use a separate INTERNAL_SYSCALL_DECL (err); in a local scope
24156         for each INTERNAL_SYSCALL use.
24157
24158 2015-05-22  Joseph Myers  <joseph@codesourcery.com>
24159
24160         [BZ #438]
24161         * posix/unistd.h (_POSIX2_C_VERSION): New macro.
24162         * conform/Makefile (test-xfail-POSIX/unistd.h/conform): Remove
24163         variable.
24164
24165         [BZ #18444]
24166         * string/basename.c (basename): Rename to __basename and define as
24167         weak alias of __basename.  Use libc_hidden_weak.
24168         * include/string.h (__basename): Declare.  Use libc_hidden_proto.
24169         * sysdeps/unix/sysv/linux/pathconf.c (distinguish_extX): Call
24170         __basename instead of basename.
24171         * conform/Makefile (test-xfail-POSIX2008/unistd.h/linknamespace):
24172         Remove variable.
24173         (test-xfail-XOPEN2K8/unistd.h/linknamespace): Likewise.
24174
24175 2015-05-18  Florian Weimer  <fweimer@redhat.com>
24176
24177         * libio/libioP.h (_IO_MEMBER_TYPE, _IO_CAST_FIELD_ACCESS)
24178         (_IO_JUMPS_FILE_plus): New.
24179         (_IO_WIDE_JUMPS, _IO_CHECK_WIDE, _IO_JUMPS_FUNC): Use
24180         _IO_CAST_FIELD_ACCESS.
24181         * libio/fileops.c (libc_hidden_def, _IO_file_setbuf_mmap,
24182         mmap_remap_check, decide_maybe_mmap): Use _IO_JUMPS_FILE_plus.
24183         * libio/freopen.c (freopen): Likewise.
24184         * libio/freopen64.c (freopen64): Likewise.
24185         * libio/iofopen.c (__fopen_maybe_mmap): Likewise.
24186         * libio/iofopncook.c (_IO_old_fopencookie): Likewise.
24187         * libio/iofwide.c (_IO_fwide): Likewise.
24188         * libio/memstream.c (open_memstream): Likewise.
24189         * libio/oldiofdopen.c (_IO_old_fdopen): Likewise.
24190         * libio/oldiofopen.c (_IO_old_fopen): Likewise.
24191         * libio/oldiopopen.c (_IO_old_popen): Likewise.
24192
24193 2015-05-21  Joseph Myers  <joseph@codesourcery.com>
24194
24195         * sysdeps/ieee754/dbl-64/e_lgamma_r.c: Include <libc-internal.h>.
24196         (__ieee754_lgamma_r): Ignore uninitialized warnings around use of
24197         NADJ.
24198         * sysdeps/ieee754/flt-32/e_lgammaf_r.c: Include <libc-internal.h>.
24199         (__ieee754_lgammaf_r): Ignore uninitialized warnings around use of
24200         NADJ.
24201         * sysdeps/ieee754/ldbl-96/e_lgammal_r.c: Include <libc-internal.h>.
24202         (__ieee754_lgammal_r): Ignore uninitialized warnings around use of
24203         NADJ.
24204
24205         * sysdeps/ieee754/dbl-64/mpa.c (norm): Remove if condition on
24206         (p == 4) case.
24207
24208         * conform/linknamespace.pl (@whitelist): Add re_syntax_options.
24209         * conform/Makefile (test-xfail-UNIX98/regex.h/linknamespace):
24210         Remove variable.
24211         (test-xfail-XOPEN2K/regex.h/linknamespace): Likewise.
24212         (test-xfail-POSIX2008/regex.h/linknamespace): Likewise.
24213         (test-xfail-XOPEN2K8/regex.h/linknamespace): Likewise.
24214
24215 2015-05-21  Florian Weimer  <fweimer@redhat.com>
24216
24217         * stdio-common/vfprintf.c (LABEL, JUMP_TABLE_BASE_LABEL, REF):
24218         Adjust jump table label generation macros.
24219
24220 2015-05-21  Florian Weimer  <fweimer@redhat.com>
24221
24222         * stdio-common/vfprintf.c (vfprintf): Move local variables
24223         args_malloced, specs, specs_malloced, and the code after
24224         do_positional to the printf_positional function.
24225         (printf_positional): New function.
24226
24227 2015-05-21  Florian Weimer  <fweimer@redhat.com>
24228
24229         * stdio-common/vfprintf.c (jump_table): Move out of the vfprintf
24230         function.
24231         (NOT_IN_JUMP_RANGE, CHAR_CLASS, LABEL, REF, JUMP, STEP0_3_TABLE,
24232         STEP4_TABLE, process_arg): Move macro definitions
24233         out of the vfprintf function.  (Cosmetic change only.)
24234
24235 2015-05-21  Carlos O'Donell  <carlos@redhat.com>
24236
24237         * benchtests/Makefile (stdio-common-bench): Define.
24238         (benchset): Add stdio-common-bench.
24239         * sprintf-inputs: New file.
24240         * sprintf-source.c: New file.
24241
24242 2015-05-21  Andreas Schwab  <schwab@suse.de>
24243
24244         [BZ #13028]
24245         [BZ #17053]
24246         * resolv/res_init.c (__res_vinit): Remove use of ext.nsmap member
24247         of struct __res_state.
24248         * resolv/res_send.c (__libc_res_nsend): Likewise.
24249         (get_nsaddr): New function.
24250         (res_ourserver_p, send_vc, reopen): Use it instead of accessing
24251         statp directly.
24252
24253 2015-05-20  Joseph Myers  <joseph@codesourcery.com>
24254
24255         * conform/GlibcConform.pm ($CFLAGS{"POSIX"}): Use
24256         -D_POSIX_C_SOURCE=199506L.
24257
24258         * conform/data/locale.h-data [POSIX] (LC_MESSAGES): Require.
24259
24260         * conform/data/unistd.h-data (_POSIX_VERSION): Require.
24261         (_POSIX2_C_VERSION): Require if [POSIX || XPG3 || XPG4 || UNIX98].
24262         Do not mention otherwise.
24263         [POSIX] (_XOPEN_VERSION): Do not expect.
24264         [POSIX] (_XOPEN_XCU_VERSION): Likewise.
24265         [POSIX] (_POSIX2_C_BIND): Likewise.
24266         [POSIX] (_POSIX2_VERSION): Likewise.
24267         [POSIX] (_XOPEN_XPG2): Likewise.
24268         [POSIX] (_XOPEN_XPG3): Likewise.
24269         [POSIX] (_XOPEN_XPG4): Likewise.
24270         [POSIX] (_XOPEN_UNIX): Likewise.
24271         [POSIX] (_POSIX_ADVISORY_INFO): Likewise.
24272         [POSIX] (_POSIX_BARRIERS): Likewise.
24273         [POSIX] (_POSIX_CLOCK_SELECTION): Likewise.
24274         [POSIX] (_POSIX_CPUTIME): Likewise.
24275         [POSIX] (_POSIX_MONOTONIC_CLOCK): Likewise.
24276         [POSIX] (_POSIX_READER_WRITER_LOCKS): Likewise.
24277         [POSIX] (_POSIX_SHELL): Likewise.
24278         [POSIX] (_POSIX_SPAWN): Likewise.
24279         [POSIX] (_POSIX_SPIN_LOCKS): Likewise.
24280         [POSIX] (_POSIX_SPORADIC_SERVER): Likewise.
24281         [POSIX] (_POSIX_THREAD_CPUTIME): Likewise.
24282         [POSIX] (_POSIX_TYPED_MEMORY_OBJECTS): Likewise.
24283         [POSIX] (_POSIX_THREAD_SPORADIC_SERVER): Likewise.
24284         [POSIX] (_XBS5_ILP32_OFF32): Likewise.
24285         [POSIX] (_XBS5_ILP32_OFBIG): Likewise.
24286         [POSIX] (_XBS5_LP64_OFF64): Likewise.
24287         [POSIX] (_XBS5_LPBIG_OFFBIG): Likewise.
24288         [POSIX] (_POSIX_TIMEOUTS): Likewise.
24289         [POSIX] (_POSIX2_PBS): Likewise.
24290         [POSIX] (_POSIX2_PBS_ACCOUNTING): Likewise.
24291         [POSIX] (_POSIX2_PBS_CHECKPOINT): Likewise.
24292         [POSIX] (_POSIX2_PBS_LOCATE): Likewise.
24293         [POSIX] (_POSIX2_PBS_MESSAGE): Likewise.
24294         [POSIX] (_POSIX2_PBS_TRACK): Likewise.
24295         [POSIX] (_POSIX_TIMESTAMP_RESOLUTION): Likewise.
24296         [POSIX] (_CS_XBS5_ILP32_OFF32_CFLAGS): Likewise.
24297         [POSIX] (_CS_XBS5_ILP32_OFF32_LDFLAGS): Likewise.
24298         [POSIX] (_CS_XBS5_ILP32_OFF32_LIBS): Likewise.
24299         [POSIX] (_CS_XBS5_ILP32_OFF32_LINTFLAGS): Likewise.
24300         [POSIX] (_CS_XBS5_ILP32_OFFBIG_CFLAGS): Likewise.
24301         [POSIX] (_CS_XBS5_ILP32_OFFBIG_LDFLAGS): Likewise.
24302         [POSIX] (_CS_XBS5_ILP32_OFFBIG_LIBS): Likewise.
24303         [POSIX] (_CS_XBS5_ILP32_OFFBIG_LINTFLAGS): Likewise.
24304         [POSIX] (_CS_XBS5_LP64_OFF64_CFLAGS): Likewise.
24305         [POSIX] (_CS_XBS5_LP64_OFF64_LDFLAGS): Likewise.
24306         [POSIX] (_CS_XBS5_LP64_OFF64_LIBS): Likewise.
24307         [POSIX] (_CS_XBS5_LP64_OFF64_LINTFLAGS): Likewise.
24308         [POSIX] (_CS_XBS5_LPBIG_OFFBIG_CFLAGS): Likewise.
24309         [POSIX] (_CS_XBS5_LPBIG_OFFBIG_LDFLAGS): Likewise.
24310         [POSIX] (_CS_XBS5_LPBIG_OFFBIG_LIBS): Likewise.
24311         [POSIX] (_CS_XBS5_LPBIG_OFFBIG_LINTFLAGS): Likewise.
24312         [POSIX] (_SC_2_C_BIND): Likewise.
24313         [POSIX] (_SC_2_C_VERSION): Likewise.
24314         [POSIX] (_SC_2_PBS): Likewise.
24315         [POSIX] (_SC_2_PBS_ACCOUNTING): Likewise.
24316         [POSIX] (_SC_2_PBS_CHECKPOINT): Likewise.
24317         [POSIX] (_SC_2_PBS_LOCATE): Likewise.
24318         [POSIX] (_SC_2_PBS_MESSAGE): Likewise.
24319         [POSIX] (_SC_2_PBS_TRACK): Likewise.
24320         [POSIX] (_SC_ATEXIT_MAX): Likewise.
24321         [POSIX] (_SC_BARRIERS): Likewise.
24322         [POSIX] (_SC_BASE): Likewise.
24323         [POSIX] (_SC_CLOCK_SELECTION): Likewise.
24324         [POSIX] (_SC_DEVICE_IO): Likewise.
24325         [POSIX] (_SC_DEVICE_SPECIFIC): Likewise.
24326         [POSIX] (_SC_DEVICE_SPECIFIC_R): Likewise.
24327         [POSIX] (_SC_FD_MGMT): Likewise.
24328         [POSIX] (_SC_FIFO): Likewise.
24329         [POSIX] (_SC_FILE_ATTRIBUTES): Likewise.
24330         [POSIX] (_SC_FILE_LOCKING): Likewise.
24331         [POSIX] (_SC_FILE_SYSTEM): Likewise.
24332         [POSIX] (_SC_IOV_MAX): Likewise.
24333         [POSIX] (_SC_MONOTONIC_CLOCK): Likewise.
24334         [POSIX] (_SC_NETWORKING): Likewise.
24335         [POSIX] (_SC_PAGE_SIZE): Likewise.
24336         [POSIX] (_SC_PASS_MAX): Likewise.
24337         [POSIX] (_SC_PIPE): Likewise.
24338         [POSIX] (_SC_READER_WRITER_LOCKS): Likewise.
24339         [POSIX] (_SC_REGEXP): Likewise.
24340         [POSIX] (_SC_SHELL): Likewise.
24341         [POSIX] (_SC_SIGNALS): Likewise.
24342         [POSIX] (_SC_SINGLE_PROCESS): Likewise.
24343         [POSIX] (_SC_SPIN_LOCKS): Likewise.
24344         [POSIX] (_SC_TYPED_MEMORY_OBJECTS): Likewise.
24345         [POSIX] (_SC_USER_GROUPS): Likewise.
24346         [POSIX] (_SC_USER_GROUPS_R): Likewise.
24347         [POSIX] (_SC_STREAMS): Likewise.
24348         [POSIX] (_SC_XBS5_ILP32_OFF32): Likewise.
24349         [POSIX] (_SC_XBS5_ILP32_OFFBIG): Likewise.
24350         [POSIX] (_SC_XBS5_LP64_OFF64): Likewise.
24351         [POSIX] (_SC_XBS5_LPBIG_OFFBIG): Likewise.
24352         [POSIX] (_SC_THREAD_ROBUST_PRIO_INHERIT): Likewise.
24353         [POSIX] (_SC_THREAD_ROBUST_PRIO_PROTECT): Likewise.
24354         [POSIX] (_PC_FILESIZEBITS): Likewise.
24355         [POSIX] (_PC_REC_INCR_XFER_SIZE): Likewise.
24356         [POSIX] (_PC_REC_MAX_XFER_SIZE): Likewise.
24357         [POSIX] (_PC_REC_MIN_XFER_SIZE): Likewise.
24358         [POSIX] (_PC_REC_XFER_ALIGN): Likewise.
24359         [POSIX] (uid_t): Likewise.
24360         [POSIX] (gid_t): Likewise.
24361         [POSIX] (off_t): Likewise.
24362         [POSIX] (pid_t): Likewise.
24363         [POSIX] (cuserid): Allow.
24364         (_SC_2_CHAR_TERM): Require constant.
24365         (_POSIX_ASYNCHRONOUS_IO): Remove duplicate optional-constant.
24366         * conform/Makefile (test-xfail-POSIX/unistd.h/conform): New
24367         variable.
24368
24369 2015-05-20  Roland McGrath  <roland@hack.frob.com>
24370
24371         * sysdeps/nacl/pthread-pids.h: New file.
24372         * sysdeps/nacl/createthread.c: Include <pthread-pids.h>.
24373         (create_thread): Use __nacl_get_tid to initialize PD->tid.
24374
24375         * nptl/pthread-pids.h: New file.
24376         * sysdeps/unix/sysv/linux/pthread-pids.h: New file.
24377         * nptl/nptl-init.c: Include <pthread-pids.h>.
24378         (__pthread_initialize_minimal_internal):
24379         Call __pthread_initialize_pids instead of set_tid_address syscall.
24380
24381         * sysdeps/unix/sysv/linux/usleep.c: Moved to ...
24382         * sysdeps/posix/usleep.c: ... here.
24383
24384 2015-05-20  Adhemerval Zanella  <adhemerval.zanella@linaro.org>
24385
24386         * sysdeps/unix/sysv/linux/i386/Makefile [$(subdir) = misc)]: Remove
24387         call_pselect6 object.
24388         [$(subdir) = io]: Remove call_sync_file_range object.
24389         * sysdeps/unix/sysv/linux/i386/call_pselect6.S: Remove file.
24390         * sysdeps/unix/sysv/linux/i386/call_sync_file_range.S: Remove file.
24391         * sysdeps/unix/sysv/linux/i386/pselect.c: Remove file.
24392         * sysdeps/unix/sysv/linux/i386/sync_file_range.c: Remove file.
24393
24394 2015-05-20  Wilco Dijkstra  <wdijkstr@arm.com>
24395
24396         * math/s_cproj.c: Add include "math_private.h".
24397         * math/s_cprojf.c: Likewise.
24398         * math/s_cprojl.c: Likewise.
24399
24400 2015-05-19  Joseph Myers  <joseph@codesourcery.com>
24401
24402         [BZ #18244]
24403         * sysdeps/ieee754/ldbl-96/s_remquol.c (__remquol): Ignore explicit
24404         high mantissa bit when testing whether P is a NaN.
24405         * math/libm-test.inc (remainder_test_data): Add more tests.
24406         (remquo_test_data): Likewise.
24407
24408         [BZ #18049]
24409         * sysdeps/i386/fpu/e_atanhl.S (__ieee754_atanhl): For exponents
24410         below -32, return the argument, with underflow if subnormal.
24411         * math/auto-libm-test-in: Add more tests of atanh.
24412         * math/auto-libm-test-out: Regenerated.
24413
24414 2015-05-19  Roland McGrath  <roland@hack.frob.com>
24415
24416         [BZ #18434]
24417         * nptl/tst-sem15.c: New file.
24418         * nptl/Makefile (tests): Add it.
24419         * nptl/sem_post.c (__new_sem_post) [!__HAVE_64B_ATOMICS]:
24420         s/<</>>/ to fix typo in EOVERFLOW check.
24421         * sysdeps/sparc/sparc32/sem_post.c (__new_sem_post): Likewise.
24422
24423 2015-05-19  Siddhesh Poyarekar  <siddhesh@redhat.com>
24424
24425         * manual/strings.texi (envz_remove): Fix typo in safety
24426         annotations.
24427
24428 2015-05-19  Paul Eggert  <eggert@cs.ucla.edu>
24429             Steve Ellcey  <sellcey@imgtec.com>
24430
24431         * inet/rcmd.c (rresvport_af): Change ss to anonymous union
24432         in order to avoid strict alias warnings.
24433         (iruserok_af): Ditto for ra.
24434
24435 2015-05-19  James Lemke  <jwlemke@codesourcery.com>
24436
24437         [BZ #17581]
24438         * malloc/hooks.c
24439         (magicbyte): Convert to a function and avoid returning 0x01.
24440         (mem2mem_check): Avoid using a length byte equal to the magic byte.
24441         (mem2chunk_check): Fix unsigned comparisons to zero.
24442         Hoist defs of sz and magic.
24443
24444 2015-05-19  Richard Henderson  <rth@redhat.com>
24445
24446         * soft-fp/op-common.h (_FP_FROM_INT): Don't write to R.
24447
24448         * sysdeps/alpha/fpu/libm-test-ulps: Update.
24449
24450 2015-05-19  Siddhesh Poyarekar  <siddhesh@redhat.com>
24451
24452         [BZ #16159]
24453         * malloc/Makefile (tests): New test case tst-malloc-backtrace.
24454         * malloc/arena.c (arena_lock): Check if arena is corrupt.
24455         (reused_arena): Find a non-corrupt arena.
24456         (heap_trim): Pass arena to unlink.
24457         * malloc/hooks.c (malloc_check_get_size): Pass arena to
24458         malloc_printerr.
24459         (top_check): Likewise.
24460         (free_check): Likewise.
24461         (realloc_check): Likewise.
24462         * malloc/malloc.c (malloc_printerr): Add arena argument.
24463         (unlink): Likewise.
24464         (munmap_chunk): Adjust.
24465         (ARENA_CORRUPTION_BIT): New macro.
24466         (arena_is_corrupt): Likewise.
24467         (set_arena_corrupt): Likewise.
24468         (sysmalloc): Use mmap if there are no usable arenas.
24469         (_int_malloc): Likewise.
24470         (__libc_malloc): Don't fail if arena_get returns NULL.
24471         (_mid_memalign): Likewise.
24472         (__libc_calloc): Likewise.
24473         (__libc_realloc): Adjust for additional argument to
24474         malloc_printerr.
24475         (_int_free): Likewise.
24476         (malloc_consolidate): Likewise.
24477         (_int_realloc): Likewise.
24478         (_int_memalign): Don't touch corrupt arenas.
24479         * malloc/tst-malloc-backtrace.c: New test case.
24480
24481         * Makefile (summarize-tests): Fix return value on success.
24482
24483         * manual/string.texi (Envz Functions): Add envz_remove.
24484
24485 2015-05-18  Roland McGrath  <roland@hack.frob.com>
24486
24487         * sysdeps/posix/opendir.c: Include <stdbool.h>.
24488         (invalid_name): New function, broken out of ...
24489         (__opendirat): ... here.  Call it.
24490         (need_isdir_precheck): New function, broken out of ...
24491         (__opendirat): ... here.  Call it.
24492         Use __fxstatat64, not __xstatat64.
24493         (opendir_oflags): New function, broken out of ...
24494         (__opendirat): ... here.  Call it.
24495         (opendir_tail): New function, broken out of ...
24496         (__opendirat): ... here.  Call it.
24497         (__opendir): Call invalid_name, need_isdir_precheck, __xstat64, and
24498         opendir_tail, rather than punting to __opendirat.
24499         (__opendirat): Conditionalize function definition on [IS_IN (libc)].
24500
24501 2015-05-18  Siddhesh Poyarekar  <siddhesh@redhat.com>
24502
24503         * .gitignore: Ignore generated *.pyc.
24504
24505 2015-05-18  Arjun Shankar  <arjun.is@lostca.se>
24506
24507         * include/stdio.h: Define __need_wint_t.
24508         * test-skeleton.c: Avoid `for' loop initial declaration.
24509         * nptl/tst-initializers1.c: Use test-skeleton.c.
24510
24511 2015-05-17  Adhemerval Zanella  <adhemerval.zanella@linaro.org>
24512
24513         [BZ #18418]
24514         * stdlib/tst-setcontext3.sh: Remove non-portable array use.
24515
24516 2015-05-15  Joseph Myers  <joseph@codesourcery.com>
24517
24518         [BZ #16352]
24519         * sysdeps/i386/fpu/e_atanh.S (dbl_min): New object.
24520         (__ieee754_atanh): Force underflow exception for results with
24521         small absolute value.
24522         * sysdeps/i386/fpu/e_atanhf.S (flt_min): New object.
24523         (__ieee754_atanhf): Force underflow exception for results with
24524         small absolute value.
24525         * sysdeps/ieee754/dbl-64/e_atanh.c: Include <float.h>.
24526         (__ieee754_atanh): Force underflow exception for results with
24527         small absolute value.
24528         * sysdeps/ieee754/flt-32/e_atanhf.c: Include <float.h>.
24529         (__ieee754_atanhf): Force underflow exception for results with
24530         small absolute value.
24531         * sysdeps/ieee754/ldbl-128/e_atanhl.c: Include <float.h>.
24532         (__ieee754_atanhl): Force underflow exception for results with
24533         small absolute value.
24534         * sysdeps/ieee754/ldbl-128ibm/e_atanhl.c: Include <float.h>.
24535         (__ieee754_atanhl): Force underflow exception for results with
24536         small absolute value.
24537         * sysdeps/ieee754/ldbl-96/e_atanhl.c: Include <float.h>.
24538         (__ieee754_atanhl): Force underflow exception for results with
24539         small absolute value.
24540         * math/auto-libm-test-in: Do not allow missing underflow
24541         exceptions from atanh.
24542         * math/auto-libm-test-out: Regenerated.
24543
24544         [BZ #18221]
24545         * sysdeps/ieee754/flt-32/k_tanf.c (__kernel_tanf): Use 2**-13 not
24546         2**-28 as threshold for returning x or +/- 1/x.
24547         * math/auto-libm-test-in: Add more tests of tan.
24548         * math/auto-libm-test-out: Regenerated.
24549
24550         [BZ #18220]
24551         * sysdeps/ieee754/flt-32/e_lgammaf_r.c (__ieee754_lgammaf_r): Use
24552         2**26 not 2**58 as threshold for returning x * (log (x) - 1).
24553         * math/auto-libm-test-in: Add another test of lgamma.
24554         * math/auto-libm-test-out: Regenerated.
24555
24556 2015-05-15  Wilco Dijkstra  <wdijkstr@arm.com>
24557
24558         * stdio-common/printf_fp.c (___printf_fp): Use abs.
24559         * stdlib/gmp-impl.h (ABS): Remove define.  (ABSIZ): Remove.
24560         * sysdeps/ieee754/dbl-64/branred.c (__branred): Use fabs.
24561         * sysdeps/ieee754/dbl-64/dla.h (EADD): Use fabs.
24562         (ESUB): Use fabs.  (ADD2): Use fabs.  (SUB2): Use fabs.
24563         (ADD2A): Use fabs.  (SUB2A): Use fabs.
24564         * sysdeps/ieee754/dbl-64/e_asin.c (__ieee754_asin): Use fabs.
24565         * sysdeps/ieee754/dbl-64/e_log.c (__ieee754_log): Use fabs.
24566         * sysdeps/ieee754/dbl-64/e_pow.c (__ieee754_pow): Use fabs.
24567         (log1): Use fabs.  (my_log2): Use fabs.
24568         * sysdeps/ieee754/dbl-64/e_remainder.c (__ieee754_remainder): Use fabs.
24569         * sysdeps/ieee754/dbl-64/mpa.h (ABS): Remove define.
24570         * sysdeps/ieee754/dbl-64/mpatan.c (__mpatan): Use fabs.
24571         * sysdeps/ieee754/dbl-64/mydefs.h (ABS): Remove define.
24572         * sysdeps/ieee754/dbl-64/s_sin.c (__sin): Use fabs.
24573         (__cos): Use fabs.  (slow): Use fabs.  (slow2): Use fabs.
24574         (sloww): Use fabs.  (sloww1): Use fabs.  (sloww2): Use fabs.
24575         (bslow1): Use fabs.  (bslow2): Use fabs.  (cslow2): Use fabs.
24576         (csloww): Use fabs.  (csloww1): Use fabs.  (csloww2): Use fabs.
24577         * sysdeps/ieee754/dbl-64/sincos32.c (__mpranred): Use fabs.
24578         * sysdeps/x86_64/fpu/multiarch/e_log.c: add math.h include.
24579
24580 2015-05-15  Joseph Myers  <joseph@codesourcery.com>
24581
24582         [BZ #18217]
24583         * sysdeps/ieee754/flt-32/s_erff.c (__erfcf): Use 2**-26 not 2**-56
24584         as threshold for returning 1 - x.
24585         * math/auto-libm-test-in: Add more tests of erfc.
24586         * math/auto-libm-test-out: Regenerated.
24587
24588 2015-05-14  Joseph Myers  <joseph@codesourcery.com>
24589
24590         [BZ #18196]
24591         * sysdeps/ieee754/flt-32/s_atanf.c (__atanf): Use 2^25 not 2^34 as
24592         threshold for large arguments.
24593         * math/auto-libm-test-in: Add another test of atan.
24594         * math/auto-libm-test-out: Regenerated.
24595
24596         [BZ #16339]
24597         * sysdeps/i386/fpu/s_log1p.S (dbl_min): New object.
24598         (__log1p): Force underflow exception for results with small
24599         absolute value.
24600         * sysdeps/i386/fpu/s_log1pf.S (flt_min): New object.
24601         (__log1pf): Force underflow exception for results with small
24602         absolute value.
24603         * sysdeps/ieee754/dbl-64/s_log1p.c: Include <float.h>.
24604         (__log1p): Force underflow exception for results with small
24605         absolute value.
24606         * sysdeps/ieee754/flt-32/s_log1pf.c: Include <float.h>.
24607         (__log1pf): Force underflow exception for results with small
24608         absolute value.
24609         * sysdeps/ieee754/ldbl-128/s_log1pl.c: Include <float.h>.
24610         (__log1pl): Force underflow exception for results with small
24611         absolute value.
24612         * math/auto-libm-test-in: Do not allow missing underflow
24613         exceptions from log1p.
24614         * math/auto-libm-test-out: Regenerated.
24615
24616 2015-05-14  Jakub Bogusz  <qboosh@pld-linux.org>
24617             Adhemerval Zanella  <adhemerval.zanella@linaro.org>
24618
24619         [BZ #16704]
24620         * sysdeps/unix/make-syscalls.sh: Remove non-portable echo usage.
24621
24622 2015-05-14  Andrew Senkevich  <andrew.senkevich@intel.com>
24623
24624         * Makeconfig (rpath-dirs, all-subdirs): Added mathvec folder.
24625         (libmvec): New variable.
24626         * configure.ac: Added option for mathvec build.
24627         * configure: Regenerated.
24628         * mathvec/Depend: New file.
24629         * mathvec/Makefile: New file.
24630         * shlib-versions: Added libmvec.
24631         * math/Makefile: Added rule for libm.so installation.
24632
24633         * bits/math-vector.h: New file.
24634         * bits/libm-simd-decl-stubs.h: New header.
24635         * math/Makefile (headers): Added new header
24636         libm-simd-decl-stubs.h.
24637         * math/math.h (__MATHCALL_VEC): New macro.
24638
24639         * math/gen-libm-have-vector-test.sh: Script generates series of macros
24640         for conditions in testing functions.
24641         * math/Makefile: Added call of libm-have-vector-test.sh.
24642         * math/libm-test.inc (HAVE_VECTOR): New macros.
24643
24644         * math/libm-test.inc: START refactored.
24645         * math/test-double.c (TEST_MATHVEC): Add define.
24646         * math/test-float.c: Likewise.
24647         * math/test-idouble.c: Likewise.
24648         * math/test-ifloat.c: Likewise.
24649         * math/test-ildoubl.c: Likewise.
24650         * math/test-ldouble.c: Likewise.
24651         * sysdeps/generic/math-tests-arch.h
24652         (INIT_ARCH_EXT, CHECK_ARCH_EXT): New helper macros for runtime
24653         architecture check.
24654
24655         * math/test-double.c (FUNC_TEST): New macro.
24656         * math/test-float.c: Likewise.
24657         * math/test-idouble.c: Likewise.
24658         * math/test-ifloat.c: Likewise.
24659         * math/test-ildoubl.c: Likewise.
24660         * math/test-ldouble.c: Likewise.
24661         * math/libm-test.inc: Use FUNC_TEST for name of tested functions.
24662
24663 2015-05-13  Roland McGrath  <roland@hack.frob.com>
24664
24665         * sysdeps/nacl/fdopendir.c: New file.
24666
24667         * dirent/scandir-tail.c: New file.
24668         * dirent/scandir64-tail.c: New file.
24669         * dirent/Makefile (routines): Add them.
24670         (CFLAGS-scandir-tail.c, CFLAGS-scandir64-tail.c): New variables.
24671         * include/dirent.h (__scandir_tail, __scandir64_tail): Declare them.
24672         * dirent/scandir.c [!SCANDIR] (SCANDIRAT): Macro removed.
24673         [!SCANDIR] (SCANDIR_TAIL): New macro.
24674         (SCANDIR): Call __opendir and __scandir_tail, not __scandirat.
24675         * dirent/scandir64.c [!_DIRENT_MATCHES_DIRENT64]
24676         (SCANDIRAT): Macro removed.
24677         (SCANDIR_TAIL): New macro.
24678         * dirent/scandirat.c [!SCANDIRAT] (READDIR): Macro removed.
24679         [!SCANDIRAT] (SCANDIR_TAIL): New macro.
24680         (SCANDIRAT): Just call __opendirat and __scandir_tail.
24681         * dirent/scandirat64.c [!_DIRENT_MATCHES_DIRENT64]
24682         (READDIR): Macro removed.
24683         (SCANDIR_TAIL): New macro.
24684         * sysdeps/unix/sysv/linux/i386/scandir64.c (READDIR): Macro removed.
24685         (SCANDIR_TAIL): New macro.
24686
24687         * dirent/scandirat.c (__scandir_cancel_handler): Function moved ...
24688         * dirent/scandir-cancel.c: ... to this new file.
24689         * dirent/Makefile (routines): Add it.
24690         * dirent/scandirat64.c (SKIP_SCANDIR_CANCEL): Macro removed.
24691         * sysdeps/unix/sysv/linux/i386/scandir64.c
24692         (SKIP_SCANDIR_CANCEL): Macro removed.
24693         * include/dirent.h (__scandir_cancel_handler): Add attribute_hidden.
24694
24695         * dirent/tst-scandir.c: New file.
24696         * dirent/tst-scandir64.c: New file.
24697         * dirent/Makefile (tests): Add them.
24698
24699 2015-05-13  H.J. Lu  <hongjiu.lu@intel.com>
24700
24701         [BZ #18409]
24702         * sysdeps/unix/make-syscalls.sh: Remove a trailing `\'.
24703
24704 2015-05-13  Szabolcs Nagy  <szabolcs.nagy@arm.com>
24705
24706         * sysdeps/aarch64/tls-macros.h (TLS_GD): Add "cc" to the clobber
24707         list.
24708
24709 2015-05-13  Leonhard Holz  <leonhard.holz@web.de>
24710
24711         * benchtests/bench-strcoll.c: New benchmark.
24712         * benchtests/Makefile: Generate locales and run benchmark.
24713         * benchtests/strcoll-inputs/filelist#C: New benchmark input file.
24714         * benchtests/strcoll-inputs/filelist#en_US.UTF-8: Likewise.
24715         * benchtests/strcoll-inputs/lorem_ipsum#ar_SA.UTF-8: Likewise.
24716         * benchtests/strcoll-inputs/lorem_ipsum#cs_CZ.UTF-8: Likewise.
24717         * benchtests/strcoll-inputs/lorem_ipsum#da_DK.UTF-8: Likewise.
24718         * benchtests/strcoll-inputs/lorem_ipsum#el_GR.UTF-8: Likewise.
24719         * benchtests/strcoll-inputs/lorem_ipsum#en_GB.UTF-8: Likewise.
24720         * benchtests/strcoll-inputs/lorem_ipsum#en_US.UTF-8: Likewise.
24721         * benchtests/strcoll-inputs/lorem_ipsum#es_ES.UTF-8: Likewise.
24722         * benchtests/strcoll-inputs/lorem_ipsum#fr_FR.UTF-8: Likewise.
24723         * benchtests/strcoll-inputs/lorem_ipsum#hi_IN.UTF-8: Likewise.
24724         * benchtests/strcoll-inputs/lorem_ipsum#hu_HU.UTF-8: Likewise.
24725         * benchtests/strcoll-inputs/lorem_ipsum#is_IS.UTF-8: Likewise.
24726         * benchtests/strcoll-inputs/lorem_ipsum#it_IT.UTF-8: Likewise.
24727         * benchtests/strcoll-inputs/lorem_ipsum#iw_IL.UTF-8: Likewise.
24728         * benchtests/strcoll-inputs/lorem_ipsum#ja_JP.UTF-8: Likewise.
24729         * benchtests/strcoll-inputs/lorem_ipsum#pl_PL.UTF-8: Likewise.
24730         * benchtests/strcoll-inputs/lorem_ipsum#pt_PT.UTF-8: Likewise.
24731         * benchtests/strcoll-inputs/lorem_ipsum#ru_RU.UTF-8: Likewise.
24732         * benchtests/strcoll-inputs/lorem_ipsum#sr_RS.UTF-8: Likewise.
24733         * benchtests/strcoll-inputs/lorem_ipsum#sv_SE.UTF-8: Likewise.
24734         * benchtests/strcoll-inputs/lorem_ipsum#tr_TR.UTF-8: Likewise.
24735         * benchtests/strcoll-inputs/lorem_ipsum#vi_VN.UTF-8: Likewise.
24736         * benchtests/strcoll-inputs/lorem_ipsum#zh_CN.UTF-8: Likewise.
24737
24738 2015-05-12  Ondřej Bílka  <neleai@seznam.cz>
24739
24740         * sysdeps/x86_64/multiarch/strcspn.S: Remove plt indirection.
24741         * sysdeps/x86_64/multiarch/strspn.S: Likewise.
24742
24743 2015-05-12  Roland McGrath  <roland@hack.frob.com>
24744
24745         * posix/uname-values.h: New file.
24746         * posix/uname.c: Include that instead of <config-name.h>.
24747         * sysdeps/nacl/uname-values.h: New file.
24748         * sysdeps/arm/nacl/uname-values.h: New file.
24749
24750 2015-05-12  Joseph Myers  <joseph@codesourcery.com>
24751
24752         * conform/linknamespace.pl (list_syms): Remove \[.*?\] before
24753         splitting into fields.
24754
24755 2015-05-12  Leonhard Holz  <leonhard.holz@web.de>
24756
24757         * locale/categories.def: Define _NL_COLLATE_ENCODING_TYPE.
24758         * locale/langinfo.h: Add _NL_COLLATE_ENCODING_TYPE to attribute list.
24759         * locale/localeinfo.h: Add enum collation_encoding_type.
24760         * locale/C-collate.c: Set _NL_COLLATE_ENCODING_TYPE to 8bit.
24761         * programs/ld-collate.c (collate_output): Add encoding type info.
24762         * string/strcoll_l.c (STRDIFF): New function.
24763         * (STRCOLL): Use STRDIFF to skip over equal prefix.
24764         * wcsmbs/wcscoll_l.c: Define STRDIFF.
24765
24766 2015-05-11  Joseph Myers  <joseph@codesourcery.com>
24767
24768         [BZ #18397]
24769         * sysdeps/mips/mips32/fpu/fpu_control.c: Move to ....
24770         * sysdeps/mips/mips32/fpu/fpucw-helpers.c: ... here.  Include
24771         <fpu_control.h> instead of <math/fpu_control.c>.
24772         * sysdeps/mips/mips32/fpu/Makefile: New file.
24773
24774 2015-05-11  Andreas Schwab  <schwab@suse.de>
24775
24776         [BZ #18007]
24777         * nis/nss_compat/compat-grp.c (internal_endgrent): Don't call
24778         nss_endgrent.
24779         (_nss_compat_endgrent): Call nss_endgrent.
24780         * nis/nss_compat/compat-pwd.c (internal_endpwent): Don't call
24781         nss_endpwent.
24782         (_nss_compat_endpwent): Call nss_endpwent.
24783         * nis/nss_compat/compat-spwd.c (internal_setspent): Add parameter
24784         needent, call nss_setspent only if non-zero.
24785         (_nss_compat_setspent, _nss_compat_getspent_r): Pass non-zero.
24786         (internal_endspent): Don't call nss_endspent.
24787         (_nss_compat_endspent): Call nss_endspent.
24788         * nss/nss_files/files-XXX.c (position, last_use, keep_stream):
24789         Remove.  All uses removed.
24790         (internal_setent): Remove parameter stayopen, add parameter
24791         stream.  Use it instead of global variable.
24792         (CONCAT(_nss_files_set,ENTNAME)): Pass global stream.
24793         (internal_endent, internal_getent): Add parameter stream.  Use it
24794         instead of global variable.
24795         (CONCAT(_nss_files_end,ENTNAME))
24796         (CONCAT(_nss_files_get,ENTNAME_r)): Pass global stream.
24797         (_nss_files_get##name##_r): Pass local stream.  Remove locking.
24798         * nss/nss_files/files-alias.c (position, last_use): Remove.  All
24799         uses removed.
24800         (internal_setent, internal_endent): Add parameter stream.  Use it
24801         instead of global variable.
24802         (_nss_files_setaliasent, _nss_files_endaliasent): Pass global
24803         stream.
24804         (get_next_alias): Add parameter stream.
24805         (_nss_files_getaliasent_r): Pass global stream.
24806         (_nss_files_getaliasbyname_r): Pass local stream.  Remove locking.
24807         * nss/nss_files/files-hosts.c (_nss_files_gethostbyname3_r)
24808         (_nss_files_gethostbyname4_r): Pass local stream to
24809         internal_setent, internal_getent and internal_endent.  Remove
24810         locking.
24811
24812 2015-05-11  Stefan Liebler  <stli@linux.vnet.ibm.com>
24813
24814         * tst-strfmon1.c (tests): Update expected currency symbol.
24815
24816 2015-05-08  Roland McGrath  <roland@hack.frob.com>
24817
24818         * sysdeps/nacl/gethostname.c: New file.
24819
24820 2015-05-08  Joseph Myers  <joseph@codesourcery.com>
24821
24822         * math/auto-libm-test-in: Add more tests of csqrt, lgamma, log10
24823         and sinh.
24824         * math/auto-libm-test-out: Regenerated.
24825         * sysdeps/i386/fpu/libm-test-ulps: Update.
24826         * sysdeps/x86_64/fpu/libm-test-ulps: Likewise.
24827
24828 2015-05-08  Carlos O'Donell  <carlos@redhat.com>
24829
24830         [BZ #18125]
24831         * stdlib/tst-setcontext3.c: New file.
24832         * stdlib/tst-setcontext3.sh: New file.
24833         * stdlib/Makefile (tests): Add tst-setcontext3.
24834         (tst-setcontext3.out): Custom rule to run tst-setcontext3.sh
24835         to verify test program created output file.
24836         * sysdeps/unix/sysv/linux/aarch64/setcontext.S: Call exit.
24837         * sysdeps/unix/sysv/linux/arm/setcontext.S: Likewise.
24838         * sysdeps/unix/sysv/linux/hppa/setcontext.S: Likewise.
24839         * sysdeps/unix/sysv/linux/nios2/setcontext.S: Likewise.
24840
24841 2015-05-06  Roland McGrath  <roland@hack.frob.com>
24842
24843         [BZ #18383]
24844         * elf/tst-tlsalign.c: New file.
24845         * elf/tst-tlsalign-static.c: New file.
24846         * elf/tst-tlsalign-lib.c: New file.
24847         * elf/Makefile [$(build-shared) = yes] (tests): Add tst-tlsalign.
24848         (tests-static): Add tst-tlsalign-static.
24849         (modules-names): Add tst-tlsalign-lib.
24850         (test-xfail-tst-tlsalign): New variable.
24851         (test-xfail-tst-tlsalign-static): New variable.
24852
24853         * sysdeps/nacl/nacl-test-wrapper.sh (NACL_LOADER):
24854         Use elf_loader_${arch}.nexe rather than loader_${arch}.nexe.
24855
24856 2015-05-06  Joseph Myers  <joseph@codesourcery.com>
24857
24858         * math/auto-libm-test-in: Add more tests of acosh, atanh, cos,
24859         csqrt, erfc, sin and sincos.
24860         * math/auto-libm-test-out: Regenerated.
24861         * sysdeps/i386/fpu/libm-test-ulps: Update.
24862         * sysdeps/x86_64/fpu/libm-test-ulps: Likewise.
24863
24864 2015-05-06  Szabolcs Nagy  <szabolcs.nagy@arm.com>
24865
24866         * sysdeps/aarch64/libm-test-ulps: Update.
24867
24868 2015-05-05  Joseph Myers  <joseph@codesourcery.com>
24869
24870         * math/auto-libm-test-in: Add more tests of acosh, atanh, clog,
24871         clog10, csqrt, erfc, exp2, expm1, log10, log2 and sinh.
24872         * math/auto-libm-test-out: Regenerated.
24873         * sysdeps/i386/fpu/libm-test-ulps: Update.
24874         * sysdeps/x86_64/fpu/libm-test-ulps: Likewise.
24875
24876 2015-04-30  Daniel Marjamäki  <daniel.marjamaki@evidente.se>
24877
24878         [BZ #18265]
24879         * wcsmbs/wchar.h (wcscpy): Add __nonnull attribute.
24880         (wcsncpy): Likewise.
24881
24882 2015-05-05  Florian Weimer  <fweimer@redhat.com>
24883
24884         * sysdeps/unix/sysv/linux/posix_fallocate.c (posix_fallocate):
24885         Assume __ASSUME_FALLOCATE is always true.
24886         * sysdeps/unix/sysv/linux/posix_fallocate64.c
24887         (__posix_fallocate64_l64): Likweise.
24888         * sysdeps/unix/sysv/linux/mips/mips64/n32/posix_fallocate.c
24889         (posix_fallocate): Likewise.
24890         * sysdeps/unix/sysv/linux/mips/mips64/n32/posix_fallocate64.c
24891         (__posix_fallocate64_l64): Likewise.
24892         * sysdeps/unix/sysv/linux/wordsize-64/posix_fallocate.c
24893         [!__ASSUME_FALLOCATE]: Add comment.
24894
24895 2015-05-05  Florian Weimer  <fweimer@redhat.com>
24896
24897         * sysdeps/unix/sysv/linux/i386/Makefile
24898         (sysdep_routines) [$(subdir) = misc]: Remove call_fallocate.
24899         (sysdep_routines) [$(subdir) = io]: Add libc-do-syscall.
24900         * sysdeps/unix/sysv/linux/i386/call_fallocate.S: Remove.
24901         * sysdeps/unix/sysv/linux/i386/fallocate.c: Likewise.
24902         * sysdeps/unix/sysv/linux/i386/fallocate64.c: Likewise.
24903         * sysdeps/unix/sysv/linux/i386/posix_fallocate.c: Likewise.
24904         * sysdeps/unix/sysv/linux/i386/posix_fallocate64.c: Likewise.
24905
24906 2015-05-02  Joseph Myers  <joseph@codesourcery.com>
24907
24908         * math/auto-libm-test-in: Add more tests of atan, clog, clog10,
24909         cos, csqrt, erf, erfc, exp2, lgamma, log1p, sin, sincos, tanh and
24910         tgamma.
24911         * math/auto-libm-test-out: Regenerated.
24912         * sysdeps/i386/fpu/libm-test-ulps: Update.
24913         * sysdeps/x86_64/fpu/libm-test-ulps: Likewise.
24914
24915 2015-05-01  Joseph Myers  <joseph@codesourcery.com>
24916
24917         * math/auto-libm-test-in: Add more tests of tgamma.
24918         * math/auto-libm-test-out: Regenerated.
24919         * sysdeps/i386/fpu/libm-test-ulps: Update.
24920         * sysdeps/x86_64/fpu/libm-test-ulps: Likewise.
24921
24922         * math/auto-libm-test-in: Add more tests of tanh.
24923         * math/auto-libm-test-out: Regenerated.
24924         * sysdeps/i386/fpu/libm-test-ulps: Update.
24925         * sysdeps/x86_64/fpu/libm-test-ulps: Likewise.
24926
24927         * math/auto-libm-test-in: Add more tests of tan.
24928         * math/auto-libm-test-out: Regenerated.
24929         * sysdeps/i386/fpu/libm-test-ulps: Update.
24930         * sysdeps/x86_64/fpu/libm-test-ulps: Likewise.
24931
24932         * math/auto-libm-test-in: Add more tests of cos, sin and sincos.
24933         * math/auto-libm-test-out: Regenerated.
24934         * sysdeps/i386/fpu/libm-test-ulps: Update.
24935         * sysdeps/x86_64/fpu/libm-test-ulps: Likewise.
24936
24937         * math/auto-libm-test-in: Add another test of pow.
24938         * math/auto-libm-test-out: Regenerated.
24939         * sysdeps/x86_64/fpu/libm-test-ulps: Update.
24940
24941         * math/auto-libm-test-in: Add more tests of lgamma.
24942         * math/auto-libm-test-out: Regenerated.
24943         * sysdeps/i386/fpu/libm-test-ulps: Update.
24944         * sysdeps/x86_64/fpu/libm-test-ulps: Likewise.
24945
24946         * math/auto-libm-test-in: Add more tests of log, log10, log2 and
24947         log1p.
24948         * math/auto-libm-test-out: Regenerated.
24949         * sysdeps/i386/fpu/libm-test-ulps: Update.
24950         * sysdeps/x86_64/fpu/libm-test-ulps: Likewise.
24951
24952 2015-05-01  Mark Wielaard  <mjw@redhat.com>
24953
24954         * elf/elf.h: Add SHF_COMPRESSED section flag, Elf32_Chdr and
24955         Elf64_Chdr structs and ELFCOMPRESS constants.
24956
24957 2015-05-01  Joseph Myers  <joseph@codesourcery.com>
24958
24959         * math/auto-libm-test-in: Add more tests of exp, exp10, exp2 and
24960         expm1.
24961         * math/auto-libm-test-out: Regenerated.
24962         * sysdeps/i386/fpu/libm-test-ulps: Update.
24963         * sysdeps/x86_64/fpu/libm-test-ulps: Likewise.
24964
24965         * math/auto-libm-test-in: Add more tests of erf and erfc.
24966         * math/auto-libm-test-out: Regenerated.
24967         * sysdeps/i386/fpu/libm-test-ulps: Update.
24968         * sysdeps/x86_64/fpu/libm-test-ulps: Likewise.
24969
24970 2015-05-01  Szabolcs Nagy  <szabolcs.nagy@arm.com>
24971
24972         * config.h.in (HAVE_AARCH64_BE): Add.
24973
24974 2015-04-30  Joseph Myers  <joseph@codesourcery.com>
24975
24976         * math/auto-libm-test-in: Add more tests of csqrt.
24977         * math/auto-libm-test-out: Regenerated.
24978         * sysdeps/i386/fpu/libm-test-ulps: Update.
24979         * sysdeps/x86_64/fpu/libm-test-ulps: Likewise.
24980
24981         * math/auto-libm-test-in: Add more tests of cosh and sinh.
24982         * math/auto-libm-test-out: Regenerated.
24983         * sysdeps/i386/fpu/libm-test-ulps: Update.
24984         * sysdeps/x86_64/fpu/libm-test-ulps: Likewise.
24985
24986         * sysdeps/unix/sysv/linux/mips/mips32/waitid.c: Remove file.
24987
24988 2015-04-29  Roland McGrath  <roland@hack.frob.com>
24989
24990         * sysdeps/nacl/bits/typesizes.h (__CLOCK_T_TYPE): Use __SLONGWORD_TYPE.
24991         * sysdeps/nacl/nacl-interfaces.h (nacl_abi_clock_t): Use clock_t.
24992
24993         * sysdeps/nacl/euidaccess.c (euidaccess): Renamed to __euidaccess.
24994         (euidaccess, eaccess): Define as weak aliases.
24995
24996         * sysdeps/nacl/bits/typesizes.h (__SUSECONDS_T_TYPE): Use
24997         __SLONGWORD_TYPE rather than __S32_TYPE.  They are the same size,
24998         but __suseconds_t is often 'long int' so some sources assume that
24999         type is being used (e.g. they use %ld to print tv_usec).
25000
25001 2015-04-29  Florian Weimer  <fweimer@redhat.com>
25002
25003         [BZ #18007]
25004         * nss/nss_files/files-XXX.c (CONCAT): Always enable stayopen.
25005         (CVE-2014-8121)
25006         * nss/tst-nss-getpwent.c: New file.
25007         * nss/Makefile (tests): Add new test.
25008
25009 2015-04-28  Joseph Myers  <joseph@codesourcery.com>
25010
25011         [BZ #18346]
25012         * sysdeps/ieee754/ldbl-128/s_roundl.c (__roundl): Handle all
25013         exponents less than 48 as cases where high part of mantissa needs
25014         examining to determine whether argument is integral.
25015         * math/libm-test.inc (round_test_data): Add more tests.
25016
25017 2015-04-28  Mark Wielaard  <mjw@redhat.com>
25018
25019         * elf/elf.h (SHF_EXCLUDE): Use unsigned 1 for shift.
25020
25021 2015-04-27  David S. Miller  <davem@davemloft.net>
25022
25023         * sysdeps/unix/sysv/linux/sparc/sparc32/localplt.data: Remove
25024         __tls_get_addr.
25025         * sysdeps/unix/sysv/linux/sparc/sparc64/localplt.data: Likewise.
25026
25027 2015-04-27  H.J. Lu  <hongjiu.lu@intel.com>
25028
25029         [BZ#18333]
25030         * time/tzset.c (__tzfile_read): Check tzspec_len == 0.
25031
25032 2015-04-27  Florian Weimer  <fweimer@redhat.com>
25033
25034         [BZ#18333]
25035         * time/tzset.c (parse_tzname): Return error on memory allocation
25036         failure.
25037         * test-skeleton.c (struct temp_name_list): Change type of name
25038         member to non-const.
25039         (add_temp_file): Create a copy of the file name.
25040         (delete_temp_files): Deallocate memory.
25041         (create_temp_file): Add comment.
25042
25043 2015-04-24  Florian Weimer  <fweimer@redhat.com>
25044
25045         * io/posix_fallocate.c (posix_fallocate): Do not set errno.
25046         * io/posix_fallocate64.c (posix_fallocate64): Likewise.
25047
25048 2015-04-24  Roland McGrath  <roland@hack.frob.com>
25049
25050         * sysdeps/arm/configure.ac (PI_STATIC_AND_HIDDEN): Define it.
25051         * sysdeps/arm/configure: Regenerated.
25052
25053 2015-04-24  Florian Weimer  <fweimer@redhat.com>
25054
25055         [BZ #17715]
25056         * time/tzfile.c (__tzfile_read): Check for large values of
25057         tzh_ttisstdcnt and tzh_ttisgmtcnt.  Use malloc instead of alloca.
25058         * time/tzset.c (__tzstring_len): New function, based on the old
25059         __tzstring function.
25060         (__tzstring): Call __tzstring_len.
25061         (parse_tzname): New helper function extracted from
25062         __tzset_parse_tz.  Call __tzstring_len, without making a copy of
25063         the input string.
25064         (parse_offset): New helper function extracted from
25065         __tzset_parse_tz.  Replace switch with fallthrough with
25066         initialization before sscanf.
25067         (parse_rule): Likewise.
25068         (__tzset_parse_tz): Rewrite using the new helper functions.  Use
25069         new-style function definition.
25070         * timezone/Makefile (tests): Add tst-tzset.
25071         (tst-tzset.out): Dependencies on time zone files.
25072         (tst-tzset-ENV): Set TZDIR.
25073         (testdata/XT%): Copy crafted time zone files.
25074         * timezone/README: Mention crafted time zone files.
25075         * timezone/testdata/XT1, timezone/testdata/XT2,
25076         timezone/testdata/XT3, timezone/testdata/XT4: New time zone test
25077         files.
25078         * timezone/tst-tzset.c: New test.
25079
25080 2015-04-24  Florian Weimer  <fweimer@redhat.com>
25081
25082         * Makeconfig (+gccwarn): Remove -Winline.
25083
25084 2015-04-24  Stefan Liebler  <stli@linux.vnet.ibm.com>
25085
25086         * sysdeps/s390/fpu/libm-test-upls: Regenerate.
25087
25088 2015-04-24  Stefan Liebler  <stli@linux.vnet.ibm.com>
25089
25090         * NEWS: Mention sysconf() cache information support for s390.
25091         * sysdeps/unix/sysv/linux/s390/sysconf.c: New File.
25092
25093 2015-04-22  Wilco Dijkstra  <wdijkstr@arm.com>
25094
25095         * math/k_casinh.c (__kernel_casinh): Use __copysign.
25096         * sysdeps/ieee754/dbl-64/wordsize-64/s_nearbyint.c
25097         (__nearbyint): Likewise.
25098         * sysdeps/ieee754/ldbl-opt/nldbl-copysign.c
25099         (copysignl): Likewise.
25100
25101 2015-04-21  Arjun Shankar  <arjun.is@lostca.se>
25102
25103         [BZ #18287]
25104         * resolv/nss_dns/dns-host.c (getanswer_r): Adjust buffer length
25105         based on padding.  (CVE-2015-1781)
25106
25107 2015-04-20  Adhemerval Zanella  <adhemerval.zanella@linaro.org>
25108
25109         * nptl/pthread_cond_timedwait.c: Change include bits/libc-vdso.h to just
25110         libc-vdso.h.
25111         * sysdeps/powerpc/powerpc32/backtrace.c: Likewise.
25112         * sysdeps/powerpc/powerpc64/backtrace.c: Likewise.
25113         * sysdeps/unix/sysv/linux/aarch64/init-first.c: Likewise.
25114         * sysdeps/unix/sysv/linux/clock_getres.c: Likewise.
25115         * sysdeps/unix/sysv/linux/clock_gettime.c: Likewise.
25116         * sysdeps/unix/sysv/linux/gettimeofday.c: Likewise.
25117         * sysdeps/unix/sysv/linux/powerpc/get_clockfreq.c: Likewise.
25118         * sysdeps/unix/sysv/linux/powerpc/gettimeofday.c: Likewise.
25119         * sysdeps/unix/sysv/linux/powerpc/init-first.c: Likewise.
25120         * sysdeps/unix/sysv/linux/powerpc/sched_getcpu.c: Likewise.
25121         * sysdeps/unix/sysv/linux/powerpc/time.c: Likewise.
25122         * sysdeps/unix/sysv/linux/s390/init-first.c: Likewise.
25123         * sysdeps/unix/sysv/linux/tile/gettimeofday.c: Likewise.
25124         * sysdeps/unix/sysv/linux/tile/init-first.c: Likewise.
25125         * sysdeps/unix/sysv/linux/timespec_get.c: Likewise.
25126         * sysdeps/unix/sysv/linux/aarch64/bits/libc-vdso.h: Move to ...
25127         * sysdeps/unix/sysv/linux/aarch64/libc-vdso.h: ... here.
25128         * sysdeps/unix/sysv/linux/powerpc/bits/libc-vdso.h: Move to ...
25129         * sysdeps/unix/sysv/linux/powerpc/libc-vdso.h: ... here.
25130         * sysdeps/unix/sysv/linux/s390/bits/libc-vdso.h: Move to ...
25131         * sysdeps/unix/sysv/linux/s390/libc-vdso.h: ... here.
25132         * sysdeps/unix/sysv/linux/tile/bits/libc-vdso.h: Move to ...
25133         * sysdeps/unix/sysv/linux/tile/libc-vdso.h: ... here.
25134
25135 2015-04-19  Paul Eggert  <eggert@cs.ucla.edu>
25136
25137         * stdlib/setenv.c (__add_to_environ):
25138         Dump core quickly if setenv (..., NULL, ...) is called.
25139         This time, do it the right way, and pacify GCC with a pragma.
25140
25141 2015-04-17  Roland McGrath  <roland@hack.frob.com>
25142
25143         * elf/dl-close.c (_dl_close_worker) [DL_NNS == 1]: Just assert that
25144         IMAP->l_prev cannot be null, and #if out the code for the contrary
25145         case, avoiding 'assert (nsid != LM_ID_BASE)' making the compiler
25146         believe that NS (&_dl_ns[NSID]) could point outside the array.
25147
25148         * elf/dl-open.c (_dl_open): Use __glibc_unlikely in invalid namespace
25149         check.  Reject NSID < 0 and NSID >= dl_nns, and check for DL_NNS==1,
25150         before using NSID as an index.
25151
25152 2015-04-17  Il'ya Malakhov <ilmalakhov@yandex.ru>
25153
25154         [BZ #17825]
25155         * sysdeps/sparc/sparc64/memchr.S: Fix signedness handling of length.
25156         * sysdeps/sparc/sparc64/memcmp.S: Likewise.
25157         * sysdeps/sparc/sparc64/strncmp.S: Likewise.
25158
25159 2015-04-17  Roland McGrath  <roland@hack.frob.com>
25160
25161         Add preliminary port to Google Native Client on ARM.
25162         * abi-tags (.*-.*-nacl.*): New entry.
25163         * sysdeps/arm/nacl: New directory.
25164         * sysdeps/nacl: New directory.
25165
25166 2015-04-16  David S. Miller  <davem@davemloft.net>
25167
25168         * sysdeps/unix/sysv/linux/sparc/lowlevellock.h: Make use of
25169         lowlevellock-futex.h
25170
25171 2015-04-16  Chris Metcalf  <cmetcalf@ezchip.com>
25172
25173         * sysdeps/tile/configure.ac: New file.
25174         * sysdeps/tile/configure: Regenerated.
25175
25176 2015-04-15  Adhemerval Zanella  <adhemerval.zanella@linaro.org>
25177
25178         * wcsmbs/wcschr.c [WCSCHR] (wcschr): Define as __wcschr.  Remove
25179         conditionals for weak_alias and libc_hidden_weak.
25180         * sysdeps/i386/i686/multiarch/wcschr-c.c [libc]: Undefine
25181         libc_hidden_weak and weak_alias.
25182         * sysdeps/powerpc/powerpc32/power4/multiarch/wcschr-ppc32.c [libc]:
25183         Undefine libc_hidden_weak. Define libc_hidden_def for SHARED builds
25184         and weak_alias for static one.
25185
25186 2015-04-15  David S. Miller  <davem@davemloft.net>
25187
25188         * sysdeps/sparc/fpu/libm-test-ulps: Regenerate from scratch.
25189
25190 2015-04-13  Stefan Liebler  <stli@linux.vnet.ibm.com>
25191
25192         [BZ #18206]
25193         * wcsmbs/wcsncmp.c (wcsncmp): Compare as wchar_t, not wint_t.
25194           Use signed comparision instead of substraction to avoid
25195           overflow bug.
25196         * localedata/tests-mbwc/tst_wcsncmp.c (tst_wcsncmp):
25197           Take the sign of ret.
25198         * localedata/tests-mbwc/dat_wcsncmp.c (tst_wcsncmp_loc):
25199           Do not expect precise return values. Only the sign matters.
25200         * wcsmbs/Makefile (strop-tests): Add wcsncmp.
25201         * wcsmbs/test-wcsncmp.c: New File.
25202         * string/test-strncmp.c: Add wcsncmp support.
25203
25204 2015-04-13  Stefan Liebler  <stli@linux.vnet.ibm.com>
25205
25206         [BZ #6792]
25207         * math/w_log1p.c: New file.
25208         * math/w_log1pf.c: Likewise.
25209         * math/w_log1pl.c: Likewise.
25210         * math/Makefile (libm-calls): Add w_log1p.
25211         * math/s_log1pl.c (log1pl): Remove weak_alias.
25212         * sysdeps/i386/fpu/s_log1p.S (log1p): Likewise.
25213         * sysdeps/i386/fpu/s_log1pf.S (log1pf): Likewise.
25214         * sysdeps/i386/fpu/s_log1pl.S (log1pl): Likewise.
25215         * sysdeps/x86_64/fpu/s_log1pl.S (log1pl): Likewise.
25216         * sysdeps/ieee754/dbl-64/s_log1p.c (log1p): Likewise.
25217         [NO_LONG_DOUBLE] (log1pl): Likewise.
25218         * sysdeps/ieee754/flt-32/s_log1pf.c (log1pf): Likewise.
25219         * sysdeps/ieee754/ldbl-128/s_log1pl.c (log1pl): Likewise.
25220         * sysdeps/ieee754/ldbl-64-128/s_log1pl.c
25221         (log1p): Remove long_double_symbol.
25222         * sysdeps/ieee754/ldbl-128ibm/s_log1pl.c (log1pl): Likewise.
25223         * sysdeps/ieee754/ldbl-64-128/w_log1pl.c: New file.
25224         * sysdeps/ieee754/ldbl-128ibm/w_log1pl.c: Likewise.
25225         * sysdeps/m68k/m680x0/fpu/s_log1p.c: Define empty weak_alias to
25226         remove weak_alias for corresponding log1p function.
25227         * sysdeps/m68k/m680x0/fpu/s_log1pf.c: Likewise.
25228         * sysdeps/m68k/m680x0/fpu/s_log1pl.c: Likewise.
25229         * sysdeps/ia64/fpu/w_log1p.c: New file.
25230         * sysdeps/ia64/fpu/w_log1pf.c: Likewise.
25231         * sysdeps/ia64/fpu/w_log1pl.c: Likewise.
25232         * math/libm-test.inc (log1p_test_data): Add errno expectations.
25233
25234 2015-04-10  Joseph Myers  <joseph@codesourcery.com>
25235
25236         [BZ #18247]
25237         * stdlib/strtod_l.c (____STRTOF_INTERNAL): Decrease minimum
25238         decimal exponent by 1.
25239         * stdlib/tst-strtod-round-data: Add more tests.
25240         * stdlib/tst-strtod-round.c (tests): Regenerated.
25241
25242 2015-04-09  Joseph Myers  <joseph@codesourcery.com>
25243
25244         * math/auto-libm-test-in: Add more tests of clog and clog10.
25245         * math/auto-libm-test-out: Regenerated.
25246         * sysdeps/i386/fpu/libm-test-ulps: Update.
25247         * sysdeps/x86_64/fpu/libm-test-ulps: Likewise.
25248
25249 2015-04-09  Roland McGrath  <roland@hack.frob.com>
25250
25251         * Makeconfig (module-cppflags): Exclude all .v.i files.
25252         (skip-module-cppflags): Variable removed.
25253
25254         * configure.ac (libc_config_ok): Initialize before reading
25255         preconfigure scripts, not after.
25256         * configure: Regenerated.
25257
25258         * test-skeleton.c (TIMEOUT): Move #define to top level.
25259         (main): Grok environment variable TEST_DIRECT.  If set, print
25260         test expectation details into that file and then behave as if
25261         given --direct.
25262
25263 2015-04-09  Florian Weimer  <fweimer@redhat.com>
25264
25265         * malloc/tst-scratch_buffer.c (do_test): Suppress truncation
25266         warning on 32-bit.
25267
25268 2015-04-08  David S. Miller  <davem@davemloft.net>
25269
25270         * sysdeps/sparc/fpu/libm-test-ulps: Update.
25271
25272 2015-04-08  Joseph Myers  <joseph@codesourcery.com>
25273
25274         * math/auto-libm-test-in: Add more tests of atanh.
25275         * math/auto-libm-test-out: Regenerated.
25276         * sysdeps/i386/fpu/libm-test-ulps: Update.
25277         * sysdeps/x86_64/fpu/libm-test-ulps: Likewise.
25278
25279         * math/auto-libm-test-in: Add more tests of atan.
25280         * math/auto-libm-test-out: Regenerated.
25281         * sysdeps/i386/fpu/libm-test-ulps: Update.
25282         * sysdeps/x86_64/fpu/libm-test-ulps: Likewise.
25283
25284 2015-04-08  Florian Weimer  <fweimer@redhat.com>
25285
25286         * elf/pldd.c (main): Rewrite to use struct
25287         scratch_buffer instead of extend_alloca.
25288         * elf/pldd-xx.c (find_maps): Likewise.
25289         * grp/initgroups.c: Include <scratch_buffer.h> instead of
25290         <alloca.h>.
25291         * grp/compat-initgroups.c (compat_call): Rewrite to use struct
25292         scratch_buffer instead of extend_alloca.
25293         * nscd/initgrcache.c: Include <scratch_buffer.h>, now needed by
25294         grp/compat-initgroups.c.
25295         * nis/nss_compat/compat-initgroups.c (_nss_compat_initgroups_dyn):
25296         Rewrite to use struct scratch_buffer instead of extend_alloca.
25297         * inet/getnameinfo.c (nrl_domainname, getnameinfo): Likewise.
25298         * nscd/nscd_getgr_r.c (nscd_getgr_r): Likewise.
25299
25300 2015-04-08  Joseph Myers  <joseph@codesourcery.com>
25301
25302         * math/auto-libm-test-in: Add more tests of cbrt.
25303         * math/auto-libm-test-out: Regenerated.
25304         * sysdeps/x86_64/fpu/libm-test-ulps: Update.
25305
25306         * math/auto-libm-test-in: Add more tests of cabs.
25307         * math/auto-libm-test-out: Regenerated.
25308         * sysdeps/i386/fpu/libm-test-ulps: Update.
25309         * sysdeps/x86_64/fpu/libm-test-ulps: Likewise.
25310
25311         [BZ #18210]
25312         [BZ #18211]
25313         * sysdeps/ieee754/dbl-64/e_atan2.c: Include <fenv.h>.
25314         (__ieee754_atan2): Set FE_TONEAREST mode for internal
25315         computations.
25316         * math/auto-libm-test-in: Add more tests of atan2, carg, clog and
25317         clog10.
25318         * math/auto-libm-test-out: Regenerated.
25319         * sysdeps/i386/fpu/libm-test-ulps: Update.
25320         * sysdeps/x86_64/fpu/libm-test-ulps: Likewise.
25321
25322         [BZ #18197]
25323         * sysdeps/ieee754/dbl-64/s_atan.c: Include <fenv.h>.
25324         (atan): Set FE_TONEAREST mode for internal computations.
25325         * math/auto-libm-test-in: Add more tests of atan.
25326         * math/auto-libm-test-out: Regenerated.
25327
25328 2015-04-07  James Cowgill  <james410@cowgill.org.uk>
25329
25330         [BZ #17930]
25331         * sysdeps/unix/sysv/linux/mips/bits/shm.h (SHM_NORESERVE): Define.
25332
25333 2015-04-07  Florian Weimer  <fweimer@redhat.com>
25334
25335         * malloc/scratch_buffer_grow_preserve.c: Include <string.h>
25336
25337 2015-04-07  Florian Weimer  <fweimer@redhat.com>
25338
25339         * include/scratch_buffer.h: New file.
25340         * malloc/scratch_buffer_grow.c: Likewise.
25341         * malloc/scratch_buffer_grow_preserve.c: Likewise.
25342         * malloc/scratch_buffer_set_array_size.c: Likewise.
25343         * malloc/tst-scratch_buffer.c: Likewise.
25344         * malloc/Makefile (routines): Add scratch_buffer_grow.
25345         (tests): Add test case.
25346         * malloc/Versions (GLIBC_PRIVATE): Export
25347         __libc_scratch_buffer_grow, __libc_scratch_buffer_grow_preserve,
25348         __libc_scratch_buffer_set_array_size.
25349
25350 2015-04-06  Richard Henderson  <rth@redhat.com>
25351
25352         * sysdeps/unix/alpha/sysdep.h: Unconditionally include dl-sysdep.h.
25353         * sysdeps/alpha/fpu/libm-test-ulps: Update.
25354
25355         * math/test-fenvinline.c (feenable_test): Cast fe_exc to
25356         unsigned int before printing.
25357
25358 2015-04-03  Rajalakshmi Srinivasaraghavan  <raji@linux.vnet.ibm.com>
25359
25360         [BZ #17596]
25361         * wcsmbs/mbrtowc.c (__mbrtowc): Add check for n=0.
25362         * wcsmbs/mbrtoc16.c (mbrtoc16): Likewise.
25363
25364 2015-04-02  Florian Weimer  <fweimer@redhat.com>
25365
25366         * include/libc-internal.h (libc_max_align_t): Define.
25367
25368 2015-04-02  Andreas Schwab  <schwab@suse.de>
25369
25370         [BZ #16850]
25371         * sysdeps/unix/sysv/linux/aarch64/bits/sigstack.h: New file.
25372
25373 2015-04-02  Mel Gorman  <mgorman@suse.de>
25374
25375         [BZ #17195]
25376         * malloc/arena.c (free): Apply trim threshold to per-thread heaps
25377         as well as the main arena.
25378
25379 2015-03-31  H.J. Lu  <hongjiu.lu@intel.com>
25380
25381         [BZ #18185]
25382         * sysdeps/x86_64/cacheinfo.c (init_cacheinfo): Limit threads
25383         sharing L2 cache to 2 for Silvermont/Knights Landing.
25384
25385 2015-03-31  H.J. Lu  <hongjiu.lu@intel.com>
25386
25387         [BZ #17711]
25388         * config.make.in (have-protected-data): New.
25389         * configure.ac: Check linker support for protected data symbol.
25390         * configure: Regenerated.
25391         * elf/Makefile (modules-names): Add tst-protected1moda and
25392         tst-protected1modb if $(have-protected-data) is yes.
25393         (tests): Add tst-protected1a and tst-protected1b if
25394         $(have-protected-data) is yes.
25395         ($(objpfx)tst-protected1a): New.
25396         ($(objpfx)tst-protected1b): Likewise.
25397         (tst-protected1modb.so-no-z-defs): Likewise.
25398         * elf/tst-protected1a.c: New file.
25399         * elf/tst-protected1b.c: Likewise.
25400         * elf/tst-protected1mod.h: Likewise.
25401         * elf/tst-protected1moda.c: Likewise.
25402         * elf/tst-protected1modb.c: Likewise.
25403
25404 2015-03-31  H.J. Lu  <hongjiu.lu@intel.com>
25405
25406         [BZ #17711]
25407         * elf/dl-lookup.c (do_lookup_x): When UNDEF_MAP is NULL, which
25408         indicates it is called from do_lookup_x on relocation against
25409         protected data, skip the data definion in the executable from
25410         copy reloc.
25411         (_dl_lookup_symbol_x): Pass ELF_RTYPE_CLASS_EXTERN_PROTECTED_DATA,
25412         instead of ELF_RTYPE_CLASS_PLT, to do_lookup_x for
25413         EXTERN_PROTECTED_DATA relocation against STT_OBJECT symbol.
25414         * sysdeps/generic/ldsodefs.h * (ELF_RTYPE_CLASS_EXTERN_PROTECTED_DATA):
25415         New.  Defined to 4 if DL_EXTERN_PROTECTED_DATA is defined,
25416         otherwise to 0.
25417         * sysdeps/i386/dl-lookupcfg.h (DL_EXTERN_PROTECTED_DATA): New.
25418         * sysdeps/i386/dl-machine.h (elf_machine_type_class): Set class
25419         to ELF_RTYPE_CLASS_EXTERN_PROTECTED_DATA for R_386_GLOB_DAT.
25420         * sysdeps/x86_64/dl-lookupcfg.h (DL_EXTERN_PROTECTED_DATA): New.
25421         * sysdeps/x86_64/dl-machine.h (elf_machine_type_class): Set class
25422         to ELF_RTYPE_CLASS_EXTERN_PROTECTED_DATA for R_X86_64_GLOB_DAT.
25423
25424 2015-03-28  Martin Galvan  <martin.galvan@tallertechnologies.com>
25425
25426         * sysdeps/nptl/pthread.h: Remove duplicate definition of
25427         PTHREAD_ADAPTIVE_MUTEX_INITIALIZER_NP.
25428
25429 2015-03-27  Martin Galvan  <martin.galvan@tallertechnologies.com>
25430
25431         * sysdeps/i386/nptl/tls.h: Swap comments between THREAD_SETMEM and
25432         THREAD_SETMEM_NC.
25433         * sysdeps/x86_64/nptl/tls.h: Ditto.
25434
25435 2015-03-27  Roland McGrath  <roland@hack.frob.com>
25436
25437         * dlfcn/tststatic.c (main): Converted to ...
25438         (do_test): ... this.
25439         (TEST_FUNCTION): New macro.
25440         Include test-skeleton.c.
25441
25442 2015-03-26  Alan Modra  <amodra@gmail.com>
25443
25444         * sysdeps/powerpc/powerpc64/dl-machine.h (elf_machine_fixup_plt):
25445         Don't segfault if ifunc resolver returns a NULL.  Do set plt to
25446         zero for undefined weak.
25447         (elf_machine_plt_conflict): Similarly.
25448
25449 2015-03-25  Joseph Myers  <joseph@codesourcery.com>
25450
25451         * math/auto-libm-test-in: Add more tests of acosh, asinh and
25452         atanh.
25453         * math/auto-libm-test-out: Regenerated.
25454         * sysdeps/i386/fpu/libm-test-ulps: Update.
25455         * sysdeps/x86_64/fpu/libm-test-ulps: Likewise.
25456
25457         * math/auto-libm-test-in: Add another test of asin.
25458         * math/auto-libm-test-out: Regenerated.
25459         * sysdeps/i386/fpu/libm-test-ulps: Update.
25460         * sysdeps/x86_64/fpu/libm-test-ulps: Likewise.
25461
25462         * sysdeps/unix/sysv/linux/i386/lowlevellock.h (LLL_EBX_LOAD):
25463         Remove macro.
25464         (LLL_EBX_REG): Likewise.
25465         (LLL_ENTER_KERNEL): Likewise.
25466
25467         * math/auto-libm-test-in: Add more tests of asin.
25468         * math/auto-libm-test-out: Regenerated.
25469         * sysdeps/i386/fpu/libm-test-ulps: Update.
25470         * sysdeps/x86_64/fpu/libm-test-ulps: Likewise.
25471
25472         [BZ #18138]
25473         * sysdeps/unix/sysv/linux/i386/sysdep.h (struct
25474         libc_do_syscall_args): New structure.
25475         (INTERNAL_SYSCALL_MAIN_0): New macro.
25476         (INTERNAL_SYSCALL_MAIN_1): Likewise.
25477         (INTERNAL_SYSCALL_MAIN_2): Likewise.
25478         (INTERNAL_SYSCALL_MAIN_3): Likewise.
25479         (INTERNAL_SYSCALL_MAIN_4): Likewise.
25480         (INTERNAL_SYSCALL_MAIN_5): Likewise.
25481         (INTERNAL_SYSCALL_MAIN_6): Likewise.  Call __libc_do_syscall.
25482         (INTERNAL_SYSCALL): Define to use INTERNAL_SYSCALL_MAIN_##nr.
25483         Replace conditional definitions by conditional definitions of ....
25484         (INTERNAL_SYSCALL_MAIN_INLINE): ... this.  New macro.
25485         * sysdeps/unix/sysv/linux/i386/libc-do-syscall.S: New file.
25486         * sysdeps/unix/sysv/linux/i386/Makefile [$(subdir) = nptl]
25487         (libpthread-sysdep_routines): Add libc-do-syscall.
25488         * sysdeps/unix/sysv/linux/i386/lowlevellock-futex.h: Remove file.
25489         * sysdeps/unix/sysv/linux/i386/lowlevellock.h (SYS_futex): Define
25490         to __NR_futex not 240.
25491
25492 2015-03-25  Alan Modra  <amodra@gmail.com>
25493
25494         * NEWS: Advertise TLS optimization.
25495         * elf/elf.h (R_PPC_TLSGD, R_PPC_TLSLD, DT_PPC_OPT, PPC_OPT_TLS): Define.
25496         (DT_PPC_NUM): Increment.
25497         * elf/dynamic-link.h (HAVE_STATIC_TLS): Define.
25498         (CHECK_STATIC_TLS): Use here.
25499         * sysdeps/powerpc/powerpc32/dl-machine.h (elf_machine_rela): Optimize
25500         TLS descriptors.
25501         * sysdeps/powerpc/powerpc64/dl-machine.h (elf_machine_rela): Likewise.
25502         * sysdeps/powerpc/dl-tls.c: New file.
25503         * sysdeps/powerpc/Versions: Add __tls_get_addr_opt.
25504         * sysdeps/powerpc/tst-tlsopt-powerpc.c: New tls test.
25505         * sysdeps/unix/sysv/linux/powerpc/Makefile: Add new test.
25506         Build tst-tlsmod2.so with --no-tls-get-addr-optimize.
25507         * sysdeps/unix/sysv/linux/powerpc/powerpc32/ld.abilist: Update.
25508         * sysdeps/unix/sysv/linux/powerpc/powerpc64/ld.abilist: Likewise.
25509         * sysdeps/unix/sysv/linux/powerpc/powerpc64/ld-le.abilist: Likewise.
25510
25511 2015-03-25  Alan Modra  <amodra@gmail.com>
25512
25513         * sysdeps/powerpc/powerpc64/configure.ac: Correct "linker support
25514         for overlapping .opd entries" to "support...".
25515         * sysdeps/powerpc/powerpc64/configure: Regenerate
25516
25517 2015-03-25  Joseph Myers  <joseph@codesourcery.com>
25518
25519         * math/auto-libm-test-in: Add more tests of acos.
25520         * math/auto-libm-test-out: Regenerated.
25521         * sysdeps/i386/fpu/libm-test-ulps: Update.
25522         * sysdeps/x86_64/fpu/libm-test-ulps: Likewise.
25523
25524         * math/auto-libm-test-in: Add more tests of expm1.
25525         * math/auto-libm-test-out: Regenerated.
25526         * sysdeps/i386/fpu/libm-test-ulps: Update.
25527         * sysdeps/x86_64/fpu/libm-test-ulps: Likewise.
25528
25529 2015-03-24  Joseph Myers  <joseph@codesourcery.com>
25530
25531         * math/auto-libm-test-in: Add more tests of cosh and sinh.
25532         * math/auto-libm-test-out: Regenerated.
25533         * sysdeps/i386/fpu/libm-test-ulps: Update.
25534         * sysdeps/x86_64/fpu/libm-test-ulps: Likewise.
25535
25536         * sysdeps/i386/fpu/libm-test-ulps: Regenerated.
25537         * sysdeps/x86_64/fpu/libm-test-ulps: Likewise.
25538
25539         * math/auto-libm-test-in: Add more tests of log2.
25540         * math/auto-libm-test-out: Regenerated.
25541         * sysdeps/i386/fpu/libm-test-ulps: Update.
25542         * sysdeps/x86_64/fpu/libm-test-ulps: Likewise.
25543
25544 2015-03-23  Roland McGrath  <roland@hack.frob.com>
25545
25546         * libio/iofdopen.c: Move FD_FLAGS declaration into its first use,
25547         inside [F_GETFL].  Remove POSIX_MODE local variable, just test the
25548         _IO_IS_APPENDING bit in READ_WRITE instead.
25549
25550 2015-03-23  Florian Weimer  <fweimer@redhat.com>
25551
25552         * sysdeps/unix/sysv/linux/pthread_setaffinity.c
25553         (__determine_cpumask_size): Replace extend_alloca with a
25554         variable-length array.  Do not treat res == 0 as an error.
25555
25556 2015-03-23  Florian Weimer  <fweimer@redhat.com>
25557
25558         [BZ #18100]
25559         * posix/wordexp.c (eval_expr_multdiv): Check for division by zero
25560         and integer overflow.
25561         * posix/wordexp-test.c (test_case): Add divide-by-zero test.
25562         (main): Add integer overflow tests.
25563         * manual/pattern.texi (Calling Wordexp): Document additional use
25564         for WRDE_SYNTAX.
25565
25566 2015-03-23  Alan Modra  <amodra@gmail.com>
25567
25568         * config.h.in: Remove HAVE_ASM_PPC_REL16.
25569         * sysdeps/powerpc/powerpc32/tls-macros.h: Remove HAVE_ASM_PPC_REL16
25570         and false branch of conditional.
25571         * sysdeps/unix/sysv/linux/powerpc/powerpc32/swapcontext-common.S:
25572         Likewise.
25573
25574 2015-03-21  Samuel Thibault  <samuel.thibault@ens-lyon.org
25575
25576         * sysdeps/mach/hurd/Makefile ($(common-objpfx)errnos.d): Depend on
25577         libc-modules.h
25578         * sysdeps/mach/hurd/i386/trampoline.c (_hurd_setup_sighandler): Remove
25579         unused declaration of _hurd_intr_rpc_msg_in_trap.
25580         * mach/mach_init.c (__mach_init): Test whether HAVE_HOST_PAGE_SIZE is
25581         defined instead of whether it is non-zero.
25582         * sysdeps/mach/hurd/i386/intr-msg.h (INTR_MSG_TRAP): Use "+m"
25583         input constraint instead of both input and output constraint.  Use ecx
25584         clobber instead of %ecx.
25585         * sysdeps/mach/hurd/malloc-machine.h (mutex_init, mutex_lock,
25586         mutex_unlock): Use a statement expression instead of an expression list.
25587         * sysdeps/mach/hurd/setitimer.c (_hurd_itimer_thread_stack_size): Set
25588         type to vm_size_t instead of vm_address_t.
25589         * sysdeps/mach/hurd/fork.c (__fork): Test whether STACK_GROWTH_UP is
25590         defined instead of whether it is non-zero.
25591         * hurd/hurd/ioctl.h (_hurd_locked_install_cttyid): New declaration.
25592         * sysdeps/mach/hurd/setsid.c: Include <hurd/ioctl.h>.
25593         * sysdeps/mach/hurd/mmap.c (__mmap): Use 0 instead of NULL for
25594         comparisons with mapaddr.
25595         * nscd/nscd-client.h: Include <time.h>.
25596         * sysdeps/mach/hurd/dl-sysdep.c (fmh): Pass vm_offset_t dummy
25597         9th parameter to __vm_region instead of int.
25598         * bits/termios.h [!__USE_MISC] (EXTPROC): Do not define.
25599         * scripts/check-local-headers.sh (exclude): Add device/,
25600         hurd/hurd_types.h, hurd/ioctl_types.h, hurd/paths.h, hurd/ioctls.defs,
25601         cthreads.h.
25602
25603 2015-03-19  Roland McGrath  <roland@hack.frob.com>
25604
25605         * sysdeps/arm/memcpy.S [ARM_ALWAYS_BX]: Fix computed-jump calculations
25606         to account for alignment padding.
25607         * sysdeps/arm/memmove.S: Likewise.
25608
25609 2015-03-19  Chris Metcalf  <cmetcalf@ezchip.com>
25610
25611         * sysdeps/unix/sysv/linux/generic/README: New file.
25612
25613 2015-03-18  Joseph Myers  <joseph@codesourcery.com>
25614
25615         [BZ #18138]
25616         * nptl/sem_waitcommon.c: Include <kernel-features.h>.
25617         (futex_abstimed_wait)
25618         [__ASSUME_FUTEX_CLOCK_REALTIME && lll_futex_timed_wait_bitset]:
25619         Use lll_futex_timed_wait_bitset with FUTEX_CLOCK_REALTIME instead
25620         of lll_futex_timed_wait.
25621
25622 2015-03-18  Brad Hubbard  <bhubbard@redhat.com>
25623
25624         [BZ #17542]
25625         * sunrpc/svc.c (xprt_register): Use calloc to allocate xports.
25626
25627 2015-03-17  Alexandre Oliva <aoliva@redhat.com>
25628
25629         [BZ #17090]
25630         [BZ #17620]
25631         [BZ #17621]
25632         [BZ #17628]
25633         * NEWS: Update.
25634         * elf/dl-tls.c (_dl_update_slotinfo): Clean up outdated DTV
25635         entries with Static TLS too.  Skip entries past the end of the
25636         allocated DTV, from Alan Modra.
25637         (tls_get_addr_tail): Update to glibc_likely/unlikely.  Move
25638         Static TLS DTV entry set up from...
25639         (_dl_allocate_tls_init): ... here (fix modid assertion), ...
25640         * elf/dl-reloc.c (_dl_nothread_init_static_tls): ... here...
25641         * nptl/allocatestack.c (init_one_static_tls): ... and here...
25642         * elf/dlopen.c (dl_open_worker): Drop l_tls_modid upper bound
25643         for Static TLS.
25644         * elf/tlsdeschtab.h (map_generation): Return size_t.  Check
25645         that the slot we find is associated with the given map before
25646         using its generation count.
25647         * nptl_db/db_info.c: Include ldsodefs.h.
25648         (rtld_global, dtv_slotinfo_list, dtv_slotinfo): New typedefs.
25649         * nptl_db/structs.def (DB_RTLD_VARIABLE): New macro.
25650         (DB_MAIN_VARIABLE, DB_RTLD_GLOBAL_FIELD): Likewise.
25651         (link_map::l_tls_offset): New struct field.
25652         (dtv_t::counter): Likewise.
25653         (rtld_global): New struct.
25654         (_rtld_global): New rtld variable.
25655         (dl_tls_dtv_slotinfo_list): New rtld global field.
25656         (dtv_slotinfo_list): New struct.
25657         (dtv_slotinfo): Likewise.
25658         * nptl_db/td_symbol_list.c: Drop gnu/lib-names.h include.
25659         (td_lookup): Rename to...
25660         (td_mod_lookup): ... this.  Use new mod parameter instead of
25661         LIBPTHREAD_SO.
25662         * nptl_db/td_thr_tlsbase.c: Include link.h.
25663         (dtv_slotinfo_list, dtv_slotinfo): New functions.
25664         (td_thr_tlsbase): Check DTV generation.  Compute Static TLS
25665         addresses even if the DTV is out of date or missing them.
25666         * nptl_db/fetch-value.c (_td_locate_field): Do not refuse to
25667         index zero-length arrays.
25668         * nptl_db/thread_dbP.h: Include gnu/lib-names.h.
25669         (td_lookup): Make it a macro implemented in terms of...
25670         (td_mod_lookup): ... this declaration.
25671         * nptl_db/db-symbols.awk (DB_RTLD_VARIABLE): Override.
25672         (DB_MAIN_VARIABLE): Likewise.
25673
25674 2015-03-16  H.J. Lu  <hongjiu.lu@intel.com>
25675
25676         [BZ #18134]
25677         * sysdeps/x86_64/dl-trampoline.S (PRESERVE_BND_REGS_PREFIX): New.
25678
25679 2015-03-15  Paul Eggert  <eggert@cs.ucla.edu>
25680
25681         * stdlib/setenv.c (__add_to_environ): Revert previous change.
25682
25683 2015-03-14  Andreas Schwab  <schwab@linux-m68k.org>
25684
25685         [BZ #18128]
25686         * sysdeps/m68k/m680x0/m68020/bits/atomic.h (atomic_exchange_and_add)
25687         (atomic_add, atomic_increment_and_test)
25688         (atomic_decrement_and_test): Fix 64-bit arithmetic.
25689
25690 2015-03-13  Paul Eggert  <eggert@cs.ucla.edu>
25691
25692         * stdlib/setenv.c (__add_to_environ):
25693         Dump core quickly if setenv (..., NULL, ...) is called.
25694
25695 2015-03-13  Roland McGrath  <roland@hack.frob.com>
25696
25697         * sysdeps/arm/tls-macros.h: Include <sysdep.h>.
25698         (GET_SPECIAL_RELOC, GET_SPECIAL_PCREL): New macros to encapsulate
25699         all the necessary asm magic in one place.
25700         (TLS_LE, TLS_IE, TLS_LD, TLS_GD): Rewritten as C expressions
25701         using those.
25702
25703 2015-03-13  Carlos O'Donell  <carlos@redhat.com>
25704
25705         [BZ #14906]
25706         * nscd/cache.c (prune_cache): Use TRACED_FILE. Compare and update
25707         traced file mtime. Use consistent log message.
25708         * nscd/connections.c [HAVE_INOTIFY] (install_watches): New function.
25709         (register_traced_file): Call install_watches. Always set mtime.
25710         (invalidate_cache): Iterate over all trace files. Call install_watches.
25711         (inotify_check_files): Don't inline. Handle watching parent
25712         directories and configuration file movement in and out.
25713         (handle_inotify_events): New function.
25714         (main_loop_poll): Call handle_inotify_events.
25715         (main_loop_epoll): Likewise.
25716         * nscd/nscd.h: Define TRACED_FILE, TRACED_DIR, and PATH_MAX.
25717         (struct traced_file): Use array of inotify fds. Add parent directory,
25718         and basename.
25719         (struct database_dyn): Remove unused file_mtime.
25720         (init_traced_file): New inline function.
25721         (define_traced_file): New macro.
25722         * nss/nss_db/db-init.c: Use define_traced_file.
25723         (_nss_db_init): Use init_traced_file.
25724         * nss/nss_files/files-init.c: Use define_traced_file.
25725         (_nss_files_init): Use init_traced_file.
25726
25727 2015-03-12  Joseph Myers  <joseph@codesourcery.com>
25728
25729         * soft-fp/soft-fp.h (_FP_STATIC_ASSERT): New macro.
25730         [_LIBC]: Do not include <stdlib.h>.
25731         [!_LIBC] (abort): Remove declaration.
25732         * soft-fp/op-2.h (_FP_MUL_MEAT_2_120_240_double): Use
25733         _FP_STATIC_ASSERT instead of conditionally calling abort.
25734         * soft-fp/op-common.h (_FP_FROM_INT): Likewise.
25735         (_FP_EXTEND_CNAN): Likewise.
25736         (FP_TRUNC): Likewise.
25737         (__FP_CLZ): Likewise.
25738         * sysdeps/powerpc/nofpu/flt-rounds.c: Include <stdlib.h>.
25739
25740 2015-03-12  Yaakov Selkowitz  <yselkowi@redhat.com>
25741
25742         * manual/string.texi (XPG basename): Fix prototype.
25743
25744 2015-03-12  Stefan Liebler  <stli@linux.vnet.ibm.com>
25745
25746         [BZ #18080]
25747         * sysdeps/unix/sysv/linux/s390/s390-32/setcontext.S
25748         (__setcontext): Use SIG_SETMASK instead of SIG_BLOCK.
25749         * sysdeps/unix/sysv/linux/s390/s390-64/setcontext.S
25750         (__setcontext): Likewise.
25751         * sysdeps/unix/sysv/linux/s390/s390-32/swapcontext.S
25752         (__swapcontext): Use SIG_SETMASK instead of SIG_BLOCK.
25753         Call rt_sigprocmask syscall one time to set new signal mask
25754         and retrieve the current signal mask instead of two calls.
25755         * sysdeps/unix/sysv/linux/s390/s390-64/swapcontext.S
25756         (__swapcontext): Likewise.
25757         * stdlib/Makefile (tests): Add new testcase tst-setcontext2.
25758         * stdlib/tst-setcontext2.c: New file.
25759
25760 2015-03-12  Stefan Liebler  <stli@linux.vnet.ibm.com>
25761
25762         * sysdeps/s390/fpu/libm-test-ulps: Regenerate.
25763
25764 2015-03-11  Aurelien Jarno  <aurelien@aurel32.net>
25765
25766         [BZ #18093]
25767         * elf/cache.c (load_aux_cache): Regenerate the cache if it has
25768         the wrong size.
25769
25770 2015-03-11  Paul Pluzhnikov  <ppluzhnikov@google.com>
25771
25772         [BZ #18043]
25773         * posix/wordexp.c (parse_param): Don't call setenv(..., NULL, 1).
25774
25775 2015-03-11  Adhemerval Zanellla  <azanella@linux.vnet.ibm.com>
25776
25777         * config.h.in [HAVE_ASM_GLOBAL_DOT_NAME]: Remove define.
25778         * include/libc-symbols.h [HAVE_ASM_GLOBAL_DOT_NAME] (strong_alias):
25779         Remove define.
25780         [HAVE_ASM_GLOBAL_DOT_NAME] (strong_data_alias): Likewise.
25781         [HAVE_ASM_GLOBAL_DOT_NAME] (weak_alias): Likewise.
25782         [HAVE_ASM_GLOBAL_DOT_NAME] (_symbol_version): Likewise.
25783         [HAVE_ASM_GLOBAL_DOT_NAME] (_default_symbol_version): Likewise.
25784         [HAVE_ASM_GLOBAL_DOT_NAME] (HIDDEN_JUMPTARGET): Likewise.
25785         * nptl_db/db-symbols.h [HAVE_ASM_GLOBAL_DOT_NAME] (DOT): Remove
25786         define.
25787         * nptl_db/td_symbol_list.c (td_lookup): Remove
25788         HAVE_ASM_GLOBAL_DOT_NAME code.
25789         * sysdeps/powerpc/powerpc64/configure.ac: Remove
25790         HAVE_ASM_GLOBAL_DOT_NAME check.
25791         * sysdeps/powerpc/powerpc64/configure: Regenerate.
25792         * sysdeps/powerpc/powerpc64/sysdep.h [HAVE_ASM_GLOBAL_DOT_NAME]
25793         (DOT_LABEL): Remove define.
25794         [HAVE_ASM_GLOBAL_DOT_NAME] (BODY_LABEL): Likewise.
25795         [HAVE_ASM_GLOBAL_DOT_NAME] (ENTRY_2): Likewise.
25796         [HAVE_ASM_GLOBAL_DOT_NAME] (END_2): Likewise.
25797         * sysdeps/powerpc/powerpc64/tls-macros.h [HAVE_ASM_GLOBAL_DOT_NAME]
25798         (__TLS_GET_ADDR): Likewise.
25799         * sysdeps/unix/sysv/linux/powerpc/powerpc64/sysdep-cancel.h
25800         [HAVE_ASM_GLOBAL_DOT_NAME] (DASHDASHPFX): Likewise.
25801
25802 2015-03-11  Carlos O'Donell  <carlos@redhat.com>
25803
25804         [BZ #18111]
25805         * sysdeps/hppa/fpu/fpu_control.h (_FPU_HPPA_SHIFT_FLAGS): Define.
25806         (_FPU_SETCW): Initialize cw from fpsr before storing.
25807         * sysdeps/hppa/fpu/fsetexcptflg.c: Include fpu_control.h
25808         (fesetexceptflag): Rewrite using fpu_control.h.
25809         * sysdeps/hppa/fpu/feupdateenv.c: Handle FE_DFL_ENV, and FE_NOMASK_ENV.
25810
25811 2015-03-11  John David Anglin  <danglin@gcc.gnu.org>
25812
25813         [BZ #18110]
25814         * sysdeps/hppa/fpu/feholdexcpt.c (feholdexcept): Don't modify bufptr in
25815         asms.
25816         * sysdeps/hppa/fpu/fesetenv.c (fesetenv): Likewise.
25817
25818 2015-03-11  Joseph Myers  <joseph@codesourcery.com>
25819
25820         * soft-fp/soft-fp.h (_FP_UNREACHABLE): New macro.
25821         * soft-fp/op-common.h (_FP_MUL): Use _FP_UNREACHABLE instead of
25822         abort.
25823         (_FP_FMA): Likewise.
25824         (_FP_DIV): Likewise.
25825
25826 2015-03-10  Roland McGrath  <roland@hack.frob.com>
25827
25828         * scripts/evaluate-test.sh: Grok exit code 77 as UNSUPPORTED and exit
25829         with 0 in that case.
25830         * Makefile (summarize-tests): New canned sequence, factored out of
25831         commands for targets tests and xtests.  Display summary lines that
25832         don't start with PASS: or XFAIL: rather than ones that do start with
25833         ERROR: or FAIL:.  Make the commands fail if any summary lines fail
25834         to start with X?PASS: or XFAIL: or UNSUPPORTED: rather than if any
25835         do start with ERROR: or FAIL:.
25836         * dlfcn/Makefile (tests): Add bug-atexit3 back here unconditionally
25837         (except for [$(build-shared) = yes]).
25838         (tests-unsupported) [$(CXX) empty]: Add bug-atexit3.
25839         (LDLIBS-bug-atexit3-lib.so): Conditionalize on [$(CXX) nonempty].
25840         ($(objpfx)bug-atexit3, $(objpfx)bug-atexit3.out): Likewise.
25841         * nptl/Makefile: Revert 2015-03-04 changes.
25842         [$(CXX) empty] (tests-unsupported): New variable.
25843         * debug/Makefile: Likewise.
25844
25845         * posix/regcomp.c: Fix comment typos and formatting to harmonize with
25846         gnulib file.  Replace __attribute with __attribute__ throughout.
25847
25848 2015-03-10  Carlos O'Donell  <carlos@redhat.com>
25849
25850         * sysdeps/hppa/fpu/libm-test-ulps: Update.
25851
25852 2015-03-10  Joseph Myers  <joseph@codesourcery.com>
25853
25854         [BZ #18104]
25855         * math/auto-libm-test-in: Add another test of pow.
25856         * math/auto-libm-test-out: Regenerated.
25857
25858 2015-03-10  Adhemerval Zanella  <azanella@linux.vnet.ibm.com>
25859
25860         * sysdeps/ieee754/dbl-64/Makefile (CFLAGS-e_pow.c): Add
25861         $(config-cflags-nofma).
25862
25863 2015-03-10  Joseph Myers  <joseph@codesourcery.com>
25864
25865         * soft-fp/double.h [SOFT_FP_DOUBLE_H]: New multiple-include guard.
25866         * soft-fp/extended.h [SOFT_FP_EXTENDED_H]: Likewise.
25867         * soft-fp/op-1.h [SOFT_FP_OP_1_H]: Likewise.
25868         * soft-fp/op-2.h [SOFT_FP_OP_2_H]: Likewise.
25869         * soft-fp/op-4.h [SOFT_FP_OP_4_H]: Likewise.
25870         * soft-fp/op-8.h [SOFT_FP_OP_8_H]: Likewise.
25871         * soft-fp/op-common.h [SOFT_FP_OP_COMMON_H]: Likewise.
25872         * soft-fp/quad.h [SOFT_FP_QUAD_H]: Likewise.
25873         * soft-fp/single.h [SOFT_FP_SINGLE_H]: Likewise.
25874         * soft-fp/soft-fp.h (SOFT_FP_H): Define to 1 rather than empty.
25875         Add comment on closing #endif.
25876
25877 2015-03-09  Paul Pluzhnikov  <ppluzhnikov@google.com>
25878
25879         * posix/wordexp.c (CHAR_IN_SET): New macro.
25880         (parse_param): Use it.
25881
25882 2015-03-09  Adhemerval Zanella  <azanella@linux.vnet.ibm.com>
25883
25884         * sysdeps/powerpc/fpu/libm-test-ulps: update.
25885
25886 2015-03-09  Paul Pluzhnikov  <ppluzhnikov@google.com>
25887
25888         [BZ #18043]
25889         * posix/wordexp.c (parse_param): Fix buffer overflow.
25890         * posix/wordexp-test.c (test_case): Add test case.
25891
25892 2015-03-09  Paul Pluzhnikov  <ppluzhnikov@google.com>
25893
25894         [BZ #18042]
25895         * posix/wordexp.c (parse_backtick): Fix off-by-one.
25896         * posix/wordexp-test.c (test_case): Add test for BZ #18042.
25897
25898 2015-03-09  Paul Pluzhnikov  <ppluzhnikov@google.com>
25899
25900         [BZ #18043]
25901         * posix/wordexp-test.c (test_case): Add test for BZ #18043
25902         (do_bz18043): Delete.
25903         (at_page_end): New.
25904         (testit): Refactor to have words at the edge of unreadable page.
25905
25906 2015-03-08  Paul Pluzhnikov  <ppluzhnikov@google.com>
25907
25908         [BZ #16734]
25909         * libio/genops.c (_IO_unbuffer_all): Renamed from _IO_unbuffer_write.
25910         Cleanup read-only streams as well.
25911         (_IO_cleanup): Call _IO_unbuffer_all instead of _IO_unbuffer_write.
25912
25913 2015-03-08  Samuel Thibault  <samuel.thibault@ens-lyon.org>
25914
25915         * sysdeps/mach/hurd/bits/libc-lock.h [_LIBC]: Include
25916         <bits/libc-lockP.h>
25917
25918 2015-03-07  Joseph Myers  <joseph@codesourcery.com>
25919
25920         * soft-fp/soft-fp.h (_FP_ZERO_INIT): New macro.  Define depending
25921         on [__KERNEL__].
25922         * soft-fp/op-1.h (_FP_FRAC_DECL_1): Use _FP_ZERO_INIT.
25923         * soft-fp/op-2.h (_FP_FRAC_DECL_2): Likewise.
25924         * soft-fp/op-common.h (_FP_DECL): Likewise.
25925
25926 2015-03-06  H.J. Lu  <hongjiu.lu@intel.com>
25927
25928         * elf/ifuncdep2.c (global): Replace
25929         __attribute__((visibility("protected"))) with
25930         asm (".protected global").
25931         * elf/ifuncmod1.c (global): Likewise.
25932         * elf/ifuncmod5.c (global): Likewise.
25933
25934 2015-03-06  Joseph Myers  <joseph@codesourcery.com>
25935
25936         * soft-fp/soft-fp.h [!_LIBC && __KERNEL__]: Include
25937         <asm/sfp-machine.h> instead of <sfp-machine.h>.
25938
25939 2015-03-06  Roland McGrath  <roland@hack.frob.com>
25940
25941         * manual/install.texi (Configuring and compiling):
25942         Document test-wrapper-env-only.
25943         * INSTALL: Regenerated.
25944
25945 2015-03-06  Paul Pluzhnikov  <ppluzhnikov@google.com>
25946
25947         [BZ #18043]
25948         * posix/wordexp.c (parse_param): Fix buffer overflow.
25949         * posix/wordexp-test.c (do_bz18043): Add test case.
25950
25951 2015-03-06  Vincent Bernat  <vincent@bernat.im>
25952
25953         * time/tst-strptime2.c (do_test): Ensure failing tests are
25954         reported correctly.
25955         * time/tst-strptime3.c (do_test): Likewise.
25956
25957 2015-03-06  Samuel Thibault  <samuel.thibault@inria.fr>
25958
25959         Fix aio_error thread-safety.
25960         * sysdeps/pthread/aio_error.c: New file
25961         * sysdeps/pthread/aio_misc.c: Remove optimistic comment about
25962         synchronization.
25963
25964 2015-03-06  Florian Weimer  <fweimer@redhat.com>
25965
25966         * stdio-common/vfprintf.c (THOUSANDS_SEP_T): New typedef.
25967         (group_number, vfprintf): Use it.
25968         (JUMP_TABLE_BASE_LABEL): New preprocessor macro.
25969         (JUMP, REF): Use it.
25970         (WORK_BUFFER_SIZE): New enum constant.
25971         (process_arg, vfprintf): Use it.
25972
25973 2015-03-06  Rical Jasan  <ricaljasan@pacific.net>
25974
25975         * manual/errno.texi (Error Messages): Complete example function
25976         by adding missing #define.
25977         (program_invocation_name): Add statement indicating GNU
25978         extension and reference which header file declares the variable.
25979         (program_invocation_short_name): Likewise.
25980
25981 2015-03-06  Mike Frysinger  <vapier@gentoo.org>
25982
25983         * manual/errno.texi (Error Messages): Delete strerror ISO C89
25984         compatibility note.
25985
25986 2015-03-05  Roland McGrath  <roland@hack.frob.com>
25987
25988         * Makeconfig (test-wrapper-env-only): New variable.
25989         * Rules (make-test-out): If variable $*-ENV-only is nonempty,
25990         then use that with $(test-wrapper-env-only) rather than using
25991         $(test-wrapper-env) $(run-program-env) $($*-ENV).
25992
25993 2015-03-05  H.J. Lu  <hongjiu.lu@intel.com>
25994
25995         [BZ #18082]
25996         * sysdeps/alpha/dl-machine.h (elf_machine_type_class): Replace
25997         ELF_RTYPE_CLASS_NOCOPY with ELF_RTYPE_CLASS_COPY in comments.
25998         * sysdeps/arm/dl-machine.h (elf_machine_type_class): Likewise.
25999         * sysdeps/hppa/dl-machine.h (elf_machine_type_class): Likewise.
26000         * sysdeps/i386/dl-machine.h (elf_machine_type_class): Likewise.
26001         * sysdeps/ia64/dl-machine.h (elf_machine_type_class): Likewise.
26002         * sysdeps/m68k/dl-machine.h (elf_machine_type_class): Likewise.
26003         * sysdeps/microblaze/dl-machine.h (elf_machine_type_class):
26004         Likewise.
26005         * sysdeps/nios2/dl-machine.h (elf_machine_type_class): Likewise.
26006         * sysdeps/powerpc/powerpc32/dl-machine.h (elf_machine_type_class):
26007         Likewise.
26008         * sysdeps/powerpc/powerpc64/dl-machine.h (elf_machine_type_class):
26009         Likewise.
26010         * sysdeps/s390/s390-32/dl-machine.h (elf_machine_type_class):
26011         Likewise.
26012         * sysdeps/s390/s390-64/dl-machine.h (elf_machine_type_class):
26013         Likewise.
26014         * sysdeps/sh/dl-machine.h (elf_machine_type_class): Likewise.
26015         * sysdeps/sparc/sparc32/dl-machine.h (elf_machine_type_class):
26016         Likewise.
26017         * sysdeps/sparc/sparc64/dl-machine.h (elf_machine_type_class):
26018         Likewise.
26019         * sysdeps/tile/dl-machine.h (elf_machine_type_class): Likewise.
26020         * sysdeps/x86_64/dl-machine.h (elf_machine_type_class): Likewise.
26021
26022 2015-03-04  Roland McGrath  <roland@hack.frob.com>
26023
26024         * sysdeps/generic/netinet/if_ether.h: Don't #include <features.h>.
26025         (ETH_ALEN): New macro.
26026         (struct ether_addr): Use it for length of ether_addr_octet.
26027
26028         * nss/test-netdb.c: Don't #include <rpc/netdb.h>.
26029         (setdb): Don't call __nss_configure_lookup for "rpc".
26030         (do_test): Don't call test_rpc.
26031         (output_rpcent, test_rpc): Functions moved ...
26032         * sunrpc/test-rpcent.c: ... to this new file.
26033         * sunrpc/Makefile (tests): Add it.
26034
26035         * nptl/tst-cancel4.c (tf_sigpause) [!SIGCANCEL]: Call pause instead of
26036         __xpg_sigpause.
26037         * nptl/tst-signal3.c: Conditionalize body on [SIGRTMIN].
26038         * nptl/tst-signal6.c: Likewise.
26039         * rt/tst-mqueue5.c: Conditionalize body on [SIGRTMIN && SA_SIGINFO].
26040         * rt/tst-timer4.c: Conditionalize body on [SA_SIGINFO].
26041
26042         * configure.ac (libc_cv_cxx_link_ok): New check.
26043         Reset CXX to empty if it fails to link.
26044         * configure: Regenerated.
26045         * dlfcn/Makefile (tests, modules-names): Add bug-atexit3 and
26046         bug-atexit3-lib only if $(CXX) is nonempty.
26047         * nptl/Makefile (tests): Likewise for tst-cancel24.
26048         (tests, tests-static): Likewise for tst-cancel24-static.
26049         * debug/Makefile (tests): Likewise for tst-chk4, tst-chk5, tst-chk6,
26050         tst-lfschk4, tst-lfschk5, and tst-lfschk6.
26051         * elf/Makefile (tests, modules-names): Likewise for tst-unique3,
26052         tst-unique3lib, tst-unique3lib2, tst-unique4, and tst-unique4lib.
26053
26054 2015-03-04  Andreas Schwab  <schwab@suse.de>
26055
26056         [BZ #17631]
26057         * string/string.h (__CORRECT_ISO_CPP_STRING_H_PROTO): Don't define
26058         for non-GCC compilers.
26059         * string/strings.h (__CORRECT_ISO_CPP_STRINGS_H_PROTO):
26060         Likewise.
26061
26062 2015-03-03 Adhemerval Zanellla  <azanella@linux.vnet.ibm.com>
26063
26064         [BZ #17776]
26065         * sysdeps/powerpc/bits/fenvinline.h (feraiseexcept): Convert input to
26066         integer before bitwise and assembly operations.
26067         (feclearexcept): Likewise.
26068         * math/test-fenvinline.c: New file.
26069         * math/Makefile: Add test-fenvinline test.
26070
26071 2015-03-03  Alan Modra  <amodra@gmail.com>
26072
26073         [BZ #16512]
26074         * scripts/localplt.awk: Strip off symbol version.
26075         * NEWS: Mention bug fix.
26076
26077 2015-03-02  Roland McGrath  <roland@hack.frob.com>
26078
26079         * sysdeps/pthread/timer_routines.c
26080         (timer_free_list, thread_free_list, thread_active_list): Make static.
26081
26082 2015-03-02  Joseph Myers  <joseph@codesourcery.com>
26083
26084         [BZ #17779]
26085         * sysdeps/unix/sysv/linux/hppa/kernel-features.h
26086         [__LINUX_KERNEL_VERSION < 0x020625] (__ASSUME_PRLIMIT64):
26087         Undefine.
26088         * sysdeps/unix/sysv/linux/microblaze/kernel-features.h
26089         [__LINUX_KERNEL_VERSION < 0x020625] (__ASSUME_PRLIMIT64):
26090         Likewise.
26091         * sysdeps/unix/sysv/linux/sh/kernel-features.h
26092         [__LINUX_KERNEL_VERSION < 0x020625] (__ASSUME_PRLIMIT64):
26093         Likewise.
26094
26095 2015-03-02  Paul Pluzhnikov  <ppluzhnikov@google.com>
26096
26097         [BZ #18036]
26098         * posix/fnmatch_loop.c (END): Detect invalid pattern.
26099         * posix/tst-fnmatch3.c (do_bz18036): Add test case.
26100
26101 2015-03-02  Andreas Schwab  <schwab@suse.de>
26102
26103         * elf/Makefile ($(elf-objpfx)runtime-linker.st): Fix typo in
26104         variable name.
26105
26106 2015-03-02  Florian Weimer  <fweimer@redhat.com>
26107
26108         * nis/nss_nis/nis-initgroups.c (_nss_nis_initgroups_dyn):
26109         Return error status.
26110
26111 2015-02-27  Alexandre Oliva <aoliva@redhat.com>
26112
26113         [BZ #15969]
26114         * locale/findlocale.c (_nl_find_locale): Introduce const
26115         version of loc_name and drop unsafe type casts.
26116
26117 2015-02-27  Roland McGrath  <roland@hack.frob.com>
26118
26119         * dlfcn/tststatic2.c (main): Converted to ...
26120         (do_test): ... this.
26121         (TEST_FUNCTION): New macro.
26122         Include test-skeleton.c.
26123
26124 2015-02-27  H.J. Lu  <hongjiu.lu@intel.com>
26125
26126         [BZ #17711]
26127         * elf/Makefile (tests): Add vismain only if PIE is enabled.
26128         (tests-pie): Add vismain.
26129         (CFLAGS-vismain.c): New.
26130         * elf/vismain.c: Add comments for PIE requirement.
26131
26132 2015-02-27  Joseph Myers  <joseph@codesourcery.com>
26133
26134         [BZ #18046]
26135         [BZ #18047]
26136         * sysdeps/ieee754/ldbl-128ibm/e_atanhl.c (__ieee754_atanhl): Use
26137         0x1p-56L as threshold for just returning the argument.
26138         * sysdeps/ieee754/ldbl-96/e_atanhl.c (__ieee754_atanhl): Use
26139         0x1p-32L as threshold for just returning the argument.
26140         * math/auto-libm-test-in: Add more tests of atanh.
26141         * math/auto-libm-test-out: Regenerated.
26142         * sysdeps/i386/fpu/libm-test-ulps: Update.
26143         * sysdeps/x86_64/fpu/libm-test-ulp: Likewise.
26144
26145 2015-02-27  Wilco Dijkstra  wdijkstr@arm.com
26146
26147         * string/bcopy.c (bcopy): Call memmove for performance.
26148
26149 2015-02-27  Wilco Dijkstra  wdijkstr@arm.com
26150
26151         * string/bzero.c (__bzero): Call memset for performance.
26152
26153 2015-02-27  John David Anglin  <dave.anglin@bell.net>
26154
26155         [BZ #18068]
26156         * sysdeps/unix/sysv/linux/hppa/bits/fcntl.h (__O_SYNC): Change
26157         to 00100000.
26158
26159 2015-02-27  Joseph Myers  <joseph@codesourcery.com>
26160
26161         * sysdeps/ieee754/k_standard.c (CSTR): Add comment.
26162
26163 2015-02-26  Joseph Myers  <joseph@codesourcery.com>
26164
26165         * sysdeps/ieee754/k_standard.c (CSTR): New macro.
26166         (__kernel_standard): Use CSTR macro when setting exc.name.
26167         * sysdeps/ieee754/Makefile [$(subdir) = math]
26168         (CFLAGS-k_standard.c): Remove variable.
26169
26170         * sysdeps/ieee754/dbl-64/e_j0.c (pzero): Change last case for
26171         setting p and q from "else if" to "else".
26172         (qzero): Likewise.
26173         * sysdeps/ieee754/dbl-64/e_j1.c (pone): Likewise.
26174         (qone): Likewise.
26175         * sysdeps/ieee754/flt-32/e_j0f.c (pzerof): Likewise.
26176         (qzerof): Likewise.
26177         * sysdeps/ieee754/flt-32/e_j1f.c (ponef): Likewise.
26178         (qonef): Likewise.
26179         * sysdeps/ieee754/ldbl-96/e_j0l.c (pzero): Likewise.
26180         (qzero): Likewise.
26181         * sysdeps/ieee754/ldbl-96/e_j1l.c (pone): Likewise.
26182         (qone): Likewise.
26183
26184         [BZ #18038]
26185         [BZ #18039]
26186         * sysdeps/ieee754/ldbl-128/e_acosl.c (__ieee754_acosl): Only
26187         return pi/2 for arguments below 0x1p-113L.
26188         * sysdeps/ieee754/ldbl-128ibm/e_acosl.c (__ieee754_acosl): Only
26189         return pi/2 for arguments below 0x1p-106L.
26190         * math/auto-libm-test-in: Add more tests of acos.
26191         * math/auto-libm-test-out: Regenerated.
26192
26193         [BZ #16351]
26194         * sysdeps/i386/fpu/e_asin.S (dbl_min): New object.
26195         (MO): New macro.
26196         (__ieee754_asin): Force underflow exception for results with small
26197         absolute value.
26198         * sysdeps/i386/fpu/e_asinf.S (flt_min): New object.
26199         (MO): New macro.
26200         (__ieee754_asinf): Force underflow exception for results with
26201         small absolute value.
26202         * sysdeps/ieee754/dbl-64/e_asin.c: Include <float.h> and <math.h>.
26203         (__ieee754_asin): Force underflow exception for results with small
26204         absolute value.
26205         * sysdeps/ieee754/flt-32/e_asinf.c: Include <float.h>.
26206         (__ieee754_asinf): Force underflow exception for results with
26207         small absolute value.
26208         * sysdeps/ieee754/ldbl-128/e_asinl.c: Include <float.h>.
26209         (__ieee754_asinl): Force underflow exception for results with
26210         small absolute value.
26211         * sysdeps/ieee754/ldbl-128ibm/e_asinl.c: Include <float.h>.
26212         (__ieee754_asinl): Force underflow exception for results with
26213         small absolute value.
26214         * sysdeps/ieee754/ldbl-96/e_asinl.c: Include <float.h>.
26215         (__ieee754_asinl): Force underflow exception for results with
26216         small absolute value.
26217         * sysdeps/x86_64/fpu/multiarch/e_asin.c [HAVE_FMA4_SUPPORT]:
26218         Include <math.h>.
26219         * math/auto-libm-test-in: Do not mark underflow exceptions as
26220         possibly missing for bug 16351.
26221         * math/auto-libm-test-out: Regenerated.
26222
26223         [BZ #18030]
26224         * sysdeps/ieee754/ldbl-128ibm/s_logbl.c (__logbl): Adjust exponent
26225         of power of 2 down when low part has opposite sign.
26226         * math/libm-test.inc (logb_test_data): Add more tests.
26227
26228 2015-02-26  Andreas Schwab  <schwab@suse.de>
26229
26230         [BZ #18032]
26231         * posix/fnmatch_loop.c (FCT): Remove extra increment when skipping
26232         over collating symbol inside a bracket expression.  Minor cleanup.
26233         * posix/tst-fnmatch3.c (do_test): Add test case.
26234
26235 2015-02-26  Joseph Myers  <joseph@codesourcery.com>
26236
26237         [BZ #18029]
26238         * sysdeps/ieee754/ldbl-128ibm/e_ilogbl.c (__ieee754_ilogbl):
26239         Adjust exponent of power of 2 down when low part has opposite
26240         sign.
26241         * math/libm-test.inc (ilogb_test_data): Add more tests.
26242
26243 2015-02-26  Alexandre Oliva  <aoliva@redhat.com>
26244
26245         [BZ #15969]
26246         * locale/findlocale.c (_nl_find_locale): Fix constness error in
26247         the previous change.
26248
26249         [BZ #15969]
26250         * locale/findlocale.c (_nl_find_locale): Retry archive search
26251         after alias expansion.
26252
26253 2015-02-25  Roland McGrath  <roland@hack.frob.com>
26254
26255         * iconv/tst-iconv3.c (main): Converted to ...
26256         (do_test): ... this.
26257         (TEST_FUNCTION): New macro.
26258         Include test-skeleton.c.
26259
26260         * iconv/tst-iconv5.c (testcode, number): Make variables static const.
26261         (convert): Make function static.
26262         (test_unalign): Likewise.  Add const to argument pointee types.
26263         (main): Replace with static function do_test.
26264         Print "Succeeded." only if RET is zero.
26265         (TEST_FUNCTION): New macro.
26266         Include test-skeleton.c.
26267
26268         * iconv/gconv_conf.c (__gconv_get_path): Don't crash if __getcwd
26269         returns a null pointer.
26270
26271 2015-02-25  Adhemerval Zanella  <azanella@linux.vnet.ibm.com>
26272
26273         * sysdeps/powerpc/powerpc64/multiarch/memmove-ppc64.c: Define memcpy
26274         to __memcpy_ppc only for static builds.
26275
26276 2015-02-25  Joseph Myers  <joseph@codesourcery.com>
26277
26278         [BZ #18020]
26279         * sysdeps/ieee754/ldbl-128ibm/s_asinhl.c (__asinhl): Use 2**56 and
26280         2**-56 not 2**28 and 2**-29 as thresholds for simpler formulas.
26281         * math/auto-libm-test-in: Add more tests of asinh.
26282         * math/auto-libm-test-out: Regenerated.
26283         * sysdeps/i386/fpu/libm-test-ulps: Update.
26284         * sysdeps/x86_64/fpu/libm-test-ulps: Likewise.
26285
26286 2015-02-25  Cong Wang  <xiyou.wangcong@gmail.com>
26287
26288         [BZ #15850]
26289         * inet/netinet/in.h [!__USE_KERNEL_IPV6_DEFS]: Put in6_pktinfo
26290         and ip6_mtuinfo definitions here.
26291         * sysdeps/unix/sysv/linux/bits/in.h [_UAPI_IPV6_H]: Wrap code
26292         in this define too.  Update comment.
26293
26294 2015-02-24  Benno Schulenberg  <bensberg@justemail.net>
26295
26296         * elf/sprof.c (load_shobj): Tweak error message to match others.
26297
26298 2015-02-24  Kevin Easton  <kevin@guarana.org>
26299
26300         [BZ #16145] (partial fix)
26301         * time/tzset.c (__tz_convert): Unlock tzset_lock earlier
26302         to reduce lock contention.
26303
26304 2015-02-24  Miroslav Lichvar  <mlichvar@redhat.com>
26305
26306         * sysdeps/unix/sysv/linux/bits/timex.h: Update version.
26307         (struct timex): Update time comment.
26308         (ADJ_SETOFFSET): Define.
26309
26310 2015-02-24  Joseph Myers  <joseph@codesourcery.com>
26311
26312         [BZ #18019]
26313         * sysdeps/ieee754/ldbl-128ibm/e_acoshl.c (__ieee754_acoshl): Use
26314         2**56 not 2**28 as threshold for log (2x) formula.
26315         * math/auto-libm-test-in: Add more tests of acosh.
26316         * math/auto-libm-test-out: Regenerated.
26317         * sysdeps/i386/fpu/libm-test-ulps: Update.
26318         * sysdeps/x86_64/fpu/libm-test-ulps: Likewise.
26319
26320 2015-02-24  Mike Frysinger  <vapier@gentoo.org>
26321
26322         * include/alloca.h [_STACK_GROWS_DOWN] (extend_alloca): Add
26323         parenthesis around the buf assignment.
26324         [_STACK_GROWS_UP] (extend_alloca): Add a char* cast.
26325
26326 2015-02-24  Joseph Myers  <joseph@codesourcery.com>
26327
26328         [BZ #16783]
26329         * sysdeps/i386/fpu/e_scalb.S (__ieee754_scalb): Do not handle
26330         arguments (NaN, -Inf) the same as (+/-Inf, -Inf).
26331         * sysdeps/i386/fpu/e_scalbf.S (__ieee754_scalbf): Likewise.
26332         * sysdeps/i386/fpu/e_scalbl.S (__ieee754_scalbl): Likewise.
26333         * sysdeps/x86_64/fpu/e_scalbl.S (__ieee754_scalbl): Likewise.
26334         * math/libm-test.inc (scalb_test_data): Add more tests.
26335
26336 2015-02-24  Paul Pluzhnikov  <ppluzhnikov@google.com>
26337
26338         [BZ #17916]
26339         * libio/fileops.c (_IO_new_file_fopen): Limit stack use
26340         * libio/tst-fopenloc.c (do_test, do_bz17916): Add a large ccs= test
26341
26342 2015-02-24  Eric Rannaud  <e@nanocritical.com>
26343
26344         [BZ #17523]
26345         * io/fcntl.h (__OPEN_NEEDS_MODE): New macro.
26346         * io/bits/fcntl2.h (open): Use it.
26347         (openat): Likewise.
26348         * io/open.c (__libc_open): Likewise.
26349         * io/open64.c (__libc_open64): Likewise.
26350         * io/open64_2.c (__open64_2): Likewise.
26351         * io/open_2.c (__open_2): Likewise.
26352         * io/openat.c (__openat): Likewise.
26353         * io/openat64.c (__openat64): Likewise.
26354         * io/openat64_2.c (__openat64_2): Likewise.
26355         * io/openat_2.c (__openat_2): Likewise.
26356         * sysdeps/mach/hurd/open.c (__libc_open): Likewise.
26357         * sysdeps/mach/hurd/openat.c (__openat): Likewise.
26358         * sysdeps/posix/open64.c (__libc_open64): Likewise.
26359         * sysdeps/unix/sysv/linux/dl-openat64.c (openat64): Likewise.
26360         * sysdeps/unix/sysv/linux/generic/open.c (__libc_open): Likewise.
26361         (__open_nocancel): Likewise.
26362         * sysdeps/unix/sysv/linux/generic/open64.c (__libc_open64): Likewise.
26363         * sysdeps/unix/sysv/linux/open64.c (__libc_open64): Likewise.
26364         * sysdeps/unix/sysv/linux/openat.c (__OPENAT): Likewise.
26365
26366 2015-02-24  Siddhesh Poyarekar  <siddhesh@redhat.com>
26367
26368         [BZ #14841]
26369         * resolv/gethnamaddr.c (getanswer): Skip logging if
26370         RES_USE_DNSSEC is set.
26371         * resolv/nss_dns/dns-host.c (getanswer_r): Likewise.
26372
26373 2015-02-24  Mike Frysinger  <vapier@gentoo.org>
26374
26375         * sysdeps/unix/sysv/linux/hppa/sysdep.h: Include dl-sysdep.h.
26376
26377 2015-02-23  Alexandre Oliva <aoliva@redhat.com>
26378
26379         * include/stdc-predef.h (__STDC_ISO_10646__): Update to
26380         201304L, for Unicode 7.
26381
26382 2015-02-23  H.J. Lu  <hongjiu.lu@intel.com>
26383
26384         [BZ #17836]
26385         * csu/Makefile (extra-objs): Add gmon-start.o if not builing
26386         shared library.  Add gmon-start.os otherwise.
26387         ($(objpfx)g$(start-installed-name)): Use $(objpfx)S%
26388         $(objpfx)gmon-start.os if builing shared library.
26389         ($(objpfx)g$(static-start-installed-name)): Likewise.
26390
26391 2015-02-23  Andreas Schwab  <schwab@suse.de>
26392
26393         * elf/Makefile (CFLAGS-tst-audit2.c): Define.
26394
26395 2015-02-22  Paul Pluzhnikov  <ppluzhnikov@google.com>
26396
26397         [BZ #17269]
26398         * libio/wstrops.c (_IO_wstr_overflow): Guard against integer overflow
26399         (enlarge_userbuf): Likewise.
26400
26401 2015-02-22  Chung-Lin Tang  <cltang@codesourcery.com>
26402
26403         * libio/tst-memstream2.c (TIMEOUT): Define as 100.
26404         * math/atest-exp.c (TIMEOUT): Adjust to 200.
26405         * math/atest-exp2.c (TIMEOUT): Adjust to 300.
26406         * math/atest-sincos.c (TIMEOUT): Adjust to 600.
26407
26408 2015-02-20  Joseph Myers  <joseph@codesourcery.com>
26409
26410         * soft-fp/op-common.h (_FP_FROM_INT): Wrap call to abort in
26411         expression inside statement expression.
26412
26413 2015-02-20  Stefan Liebler  <stli@linux.vnet.ibm.com>
26414
26415         * sysdeps/unix/sysv/linux/s390/lowlevellock.h: Include
26416         <sysdeps/nptl/lowlevellock.h> and remove macros and
26417         functions that are now defined there.
26418         (SYS_futex): Remove.
26419         (lll_compare_and_swap): Remove.
26420         * sysdeps/s390/bits/atomic.h (atomic_exchange_acq): Define.
26421
26422 2015-02-19  Joseph Myers  <joseph@codesourcery.com>
26423
26424         [BZ #17999]
26425         * dirent/scandir.c [!SCANDIR] (SCANDIRAT): Define to __scandirat
26426         instead of scandirat.
26427         * dirent/scandirat.c [!SCANDIRAT] (SCANDIRAT): Likewise.
26428         [!SCANDIRAT] (SCANDIRAT_WEAK_ALIAS): Define.
26429         [SCANDIRAT_WEAK_ALIAS] (scandirat): Define as weak alias of
26430         __scandirat.
26431         * include/dirent.h (scandirat): Do not use libc_hidden_proto.
26432         (__scandirat): Declare.  Use libc_hidden_proto.
26433         * conform/Makefile (test-xfail-POSIX2008/dirent.h/linknamespace):
26434         Remove variable.
26435         (test-xfail-XOPEN2K8/dirent.h/linknamespace): Likewise.
26436
26437 2015-02-18  Joseph Myers  <joseph@codesourcery.com>
26438
26439         [BZ #15319]
26440         * sysdeps/i386/fpu/e_atan2.S (dbl_min): New object.
26441         (MO): New macro.
26442         (__ieee754_atan2): For results with small absolute value, force
26443         underflow exception and remove excess range and precision from
26444         return value.
26445         * sysdeps/i386/fpu/e_atan2f.S (flt_min): New object.
26446         (MO): New macro.
26447         (__ieee754_atan2f): For results with small absolute value, force
26448         underflow exception and remove excess range and precision from
26449         return value.
26450         * sysdeps/i386/fpu/s_atan.S (dbl_min): New object.
26451         (MO): New macro.
26452         (__atan): For results with small absolute value, force underflow
26453         exception and remove excess range and precision from return value.
26454         * sysdeps/i386/fpu/s_atanf.S (flt_min): New object.
26455         (MO): New macro.
26456         (__atanf): For results with small absolute value, force underflow
26457         exception and remove excess range and precision from return value.
26458         * sysdeps/ieee754/dbl-64/e_atan2.c: Include <float.h> and
26459         <math.h>.
26460         (__ieee754_atan2): Force underflow exception for results with
26461         small absolute value.
26462         * sysdeps/ieee754/dbl-64/s_atan.c: Include <float.h> and
26463         <math_private.h>.
26464         (atan): Force underflow exception for results with small absolute
26465         value.
26466         * sysdeps/ieee754/flt-32/s_atanf.c: Include <float.h>.
26467         (__atanf): Force underflow exception for results with small
26468         absolute value.
26469         * sysdeps/ieee754/ldbl-128/s_atanl.c: Include <float.h> and
26470         <math.h>.
26471         (__atanl): Force underflow exception for results with small
26472         absolute value.
26473         * sysdeps/ieee754/ldbl-128ibm/s_atanl.c: Include <float.h>.
26474         (__atanl): Force underflow exception for results with small
26475         absolute value.
26476         * sysdeps/x86/fpu/bits/mathinline.h
26477         [!__SSE2_MATH__ && !__x86_64__ && __LIBC_INTERNAL_MATH_INLINES]
26478         (__ieee754_atan2): Only define inline for long double.
26479         * sysdeps/x86_64/fpu/multiarch/e_atan2.c
26480         [HAVE_FMA4_SUPPORT || HAVE_AVX_SUPPORT]: Include <math.h>.
26481         * math/auto-libm-test-in: Do not mark underflow exceptions as
26482         possibly missing for bug 15319.  Add more tests of atan2.
26483         * math/auto-libm-test-out: Regenerated.
26484         * math/libm-test.inc (casin_test_data): Do not mark underflow
26485         exceptions as possibly missing for bug 15319.
26486         (casinh_test_data): Likewise.
26487         * sysdeps/i386/fpu/libm-test-ulps: Update.
26488
26489 2015-02-18  Steve Ellcey  <sellcey@imgtec.com>
26490
26491         * sysdeps/unix/sysv/linux/mips/bits/endian.h: Remove.
26492         * sysdeps/mips/bits/endian.h: Fix comments.
26493
26494 2015-02-18  Joseph Myers  <joseph@codesourcery.com>
26495
26496         [BZ #17996]
26497         * include/search.h (hcreate_r): Don't use libc_hidden_proto.
26498         (hdestroy_r): Likewise.
26499         (hsearch_r): Likewise.
26500         (__hcreate_r): Declare and use libc_hidden_proto.
26501         (__hdestroy_r): Likewise.
26502         (__hsearch_r): Likewise.
26503         * misc/hsearch.c (hsearch): Call __hsearch_r instead of hsearch_r.
26504         (hcreate): Call __hcreate_r instead of hcreate_r.
26505         (__hdestroy): Call __hdestroy_r instead of hdestroy_r.
26506         * misc/hsearch_r.c (hcreate_r): Rename to __hcreate_r and define
26507         as weak alias of __hcreate_r.
26508         (hdestroy_r): Rename to __hdestroy_r and define as weak alias of
26509         __hdestroy_r.
26510         (hsearch_r): Rename to __hsearch_r and define as weak alias of
26511         __hsearch_r.
26512         * conform/Makefile (test-xfail-XPG3/search.h/linknamespace):
26513         Remove variable.
26514         (test-xfail-XPG4/search.h/linknamespace): Likewise.
26515         (test-xfail-UNIX98/search.h/linknamespace): Likewise.
26516         (test-xfail-XOPEN2K/search.h/linknamespace): Likewise.
26517         (test-xfail-XOPEN2K8/search.h/linknamespace): Likewise.
26518
26519 2015-02-18  Siddhesh Poyarekar  <siddhesh@redhat.com>
26520
26521         * malloc/malloc.c (__libc_malloc): Consolidate arena_lookup and
26522         arena_lock into a single arena_get.
26523
26524 2015-02-17  Carlos O'Donell  <carlos@redhat.com>
26525
26526         * dl-reloc.c: Inlucde libc-internal.h.
26527         (_dl_try_allocate_static_tls): Call ALIGN_UP.
26528         (_dl_relocate_object): Call ALIGN_UP, ALIGN_DOWN, and PTR_ALIGN_DOWN.
26529         (_dl_protect_relro): Call ALIGN_UP and ALIGN_DOWN.
26530         * malloc/arena.c (new_heap): Use pagesize. Call ALIGN_UP.
26531         (grow_heap): Likewise.
26532         * malloc/malloc.c: Include libc-internal.h.
26533         (do_check_malloc): Call powerof2.
26534         (sysmalloc): Use pagesize. Call ALIGN_UP.
26535         (systrim): Use pagesize.
26536         (mremap_chunk): Use pagesize. Call ALIGN_UP.
26537         (__libc_valloc): Use pagesize.
26538         (__libc_pvalloc): Use pagesize. Call ALIGN_UP.
26539
26540 2015-02-17  Joseph Myers  <joseph@codesourcery.com>
26541
26542         [BZ #17991]
26543         * include/sys/resource.h (__getrlimit64): Declare.  Use
26544         libc_hidden_proto.
26545         * resource/getrlimit64.c (getrlimit64): Rename to __getrlimit64
26546         and define as weak alias of __getrlimit64.  Use libc_hidden_weak.
26547         * sysdeps/posix/spawni.c (__spawni): Call __getrlimit64 instead of
26548         getrlimit64.
26549         * sysdeps/unix/sysv/linux/getrlimit64.c (getrlimit64): Rename to
26550         __getrlimit64.
26551         [!getrlimit64] (getrlimit64): Define as weak alias of
26552         __getrlimit64.  Use libc_hidden_weak.
26553         * sysdeps/unix/sysv/linux/i386/getrlimit64.c (getrlimit64): Define
26554         using __getrlimit64 not __new_getrlimit64.
26555         (__GI_getrlimit64): Likewise.
26556         * sysdeps/unix/sysv/linux/mips/getrlimit64.c (getrlimit64):
26557         Likewise.
26558         (__GI_getrlimit64): Likewise.
26559         (__old_getrlimit64): Use __getrlimit64 not __new_getrlimit64.
26560         * sysdeps/unix/sysv/linux/powerpc/powerpc64/syscalls.list
26561         (getrlimit): Add __getrlimit64 alias.
26562         * sysdeps/unix/sysv/linux/wordsize-64/syscalls.list (getrlimit):
26563         Likewise.
26564         * conform/Makefile (test-xfail-XOPEN2K/spawn.h/linknamespace):
26565         Remove variable.
26566         (test-xfail-POSIX2008/spawn.h/linknamespace): Likewise.
26567         (test-xfail-XOPEN2K8/spawn.h/linknamespace): Likewise.
26568
26569 2015-02-17  Paul Pluzhnikov  <ppluzhnikov@google.com>
26570
26571         * libio/fileops.c: Add missing sys/mman.h
26572         * libio/iopopen.c: Add missing fcntl.h, remove redundant unistd.h
26573
26574 2015-02-17  Joseph Myers  <joseph@codesourcery.com>
26575
26576         * manual/math.texi (Errors in Math Functions): Clarify goals
26577         regarding inexact and underflow exceptions.
26578
26579 2015-02-17  Steve Ellcey  <sellcey@imgtec.com>
26580
26581         * sysdeps/mips/memcpy.S: Move R6 PREFETCH_STORE_HINT check.
26582         * sysdeps/mips/memset.S: Ditto.
26583
26584 2015-02-17  Steve Ellcey  <sellcey@imgtec.com>
26585
26586         * sysdeps/mips/bits/endian.h (__MIPSEL): Use #ifdef instead of #if.
26587
26588 2015-02-17  Stefan Liebler  <stli@linux.vnet.ibm.com>
26589
26590         * sysdeps/unix/sysv/linux/s390/pt-longjmp.c
26591         (__v1longjmp): Remove versioned symbol.
26592         (__v1siglongjmp): Remove alias and versioned symbol.
26593         (__v2longjmp): Use DEFINE_LONGJMP instead of alias.
26594         (__v2siglongjmp): Likewise.
26595
26596 2015-02-16  Torvald Riegel  <triegel@redhat.com>
26597
26598         * sysdeps/unix/sysv/linux/ia64/lowlevellock.h: Remove file.
26599
26600 2015-02-16  Mike Frysinger  <vapier@gentoo.org>
26601
26602         * sysdeps/unix/sysv/linux/ia64/getpagesize.c: Delete.
26603
26604 2015-02-16  Joseph Myers  <joseph@codesourcery.com>
26605
26606         [BZ #17987]
26607         * sysdeps/ieee754/dbl-64/s_remquo.c (__remquo): Ensure sign of
26608         zero result does not depend on the sign resulting from
26609         subtraction.
26610         * sysdeps/ieee754/dbl-64/wordsize-64/s_remquo.c (__remquo):
26611         Likewise.
26612         * sysdeps/ieee754/flt-32/s_remquof.c (__remquof): Likewise.
26613         * sysdeps/ieee754/ldbl-128/s_remquol.c (__remquol): Likewise.
26614         * sysdeps/ieee754/ldbl-128ibm/s_remquol.c (__remquol): Likewise.
26615         * sysdeps/ieee754/ldbl-96/s_remquol.c (__remquol): Likewise.
26616         * math/libm-test.inc (remquo_test_data): Add more tests.
26617
26618 2015-02-16  Paul Eggert  <eggert@cs.ucla.edu>
26619
26620         * manual/time.texi (TZ Variable): glibc no longer comes with tzdata.
26621         Problem reported by J William Piggott.
26622
26623 2015-02-16  Joseph Myers  <joseph@codesourcery.com>
26624
26625         [BZ #17978]
26626         * sysdeps/ieee754/dbl-64/s_remquo.c (__remquo): Do not form
26627         products 4 * y and 2 * y where those would overflow.
26628         * sysdeps/ieee754/dbl-64/wordsize-64/s_remquo.c (__remquo):
26629         Likewise.
26630         * sysdeps/ieee754/flt-32/s_remquof.c (__remquof): Likewise.
26631         * sysdeps/ieee754/ldbl-128/s_remquol.c (__remquol): Likewise.
26632         * sysdeps/ieee754/ldbl-128ibm/s_remquol.c (__remquol): Likewise.
26633         * sysdeps/ieee754/ldbl-96/s_remquol.c (__remquol): Likewise.
26634         * math/libm-test.inc (remquo_test_data): Add more tests.
26635
26636         * sysdeps/mips/sgidefs.h [!_ABIO64] (_ABIO64): New macro.
26637
26638         * sysdeps/mips/memcpy.S [_COMPILING_NEWLIB]: Change condition to
26639         [defined _COMPILING_NEWLIB].
26640         * sysdeps/mips/memset.S [_COMPILING_NEWLIB]: Likewise.
26641         * sysdeps/mips/strcmp.S [_COMPILING_NEWLIB]: Likewise.
26642
26643         * sysdeps/mips/sys/asm.h [__mips_isa_rev < 6]: Change condition to
26644         [!defined __mips_isa_rev || __mips_isa_rev < 6].
26645
26646 2015-02-16  Torvald Riegel  <triegel@redhat.com>
26647
26648         * nptl/tst-cond25.c (cleanup): Explicitly check that the mutex is
26649         acquired.
26650
26651 2015-02-15  Matthew Fortune <Matthew.Fortune@imgtec.com>
26652
26653         [BZ #17792]
26654         * sysdeps/unix/sysv/linux/ia64/sys/user.h (NBPG): Remove.
26655         (UPAGES, HOST_TEXT_START_ADDR, HOST_DATA_START_ADDR,
26656         HOST_STACK_END_ADDR): Likewise.
26657
26658 2015-02-13  Steve Ellcey  <sellcey@imgtec.com>
26659
26660         * sysdeps/mips/bits/endian.h (__MIPSEB): Use #ifdef instead of #if.
26661         * sysdeps/mips/memcpy.S (__MIPSEB): Ditto.
26662         * sysdeps/mips/memset.S (__MIPSEB): Ditto.
26663
26664 2015-02-13  Roland McGrath  <roland@hack.frob.com>
26665
26666         * sysdeps/generic/c++-types.data: New file.
26667         * sysdeps/generic/ld.abilist: New file.
26668         * sysdeps/generic/libBrokenLocale.abilist: New file.
26669         * sysdeps/generic/libanl.abilist: New file.
26670         * sysdeps/generic/libc.abilist: New file.
26671         * sysdeps/generic/libcrypt.abilist: New file.
26672         * sysdeps/generic/libdl.abilist: New file.
26673         * sysdeps/generic/libm.abilist: New file.
26674         * sysdeps/generic/libpthread.abilist: New file.
26675         * sysdeps/generic/libresolv.abilist: New file.
26676         * sysdeps/generic/librt.abilist: New file.
26677
26678 2015-02-13  Joseph Myers  <joseph@codesourcery.com>
26679
26680         [BZ #17569]
26681         * sysdeps/ieee754/dbl-64/wordsize-64/s_remquo.c (__remquo):
26682         Compute absolute value of x as modified by fmod, not original
26683         value of x.
26684         * math/libm-test.inc (RUN_TEST_ffI_f1): Rename to
26685         RUN_TEST_ffI_f1_mod8.  Check extra return value mod 8.
26686         (RUN_TEST_LOOP_ffI_f1): Rename to RUN_TEST_LOOP_ffI_f1_mod8.  Call
26687         RUN_TEST_ffI_f1_mod8.
26688         (remquo_test_data): Add more tests.
26689
26690 2015-02-13  Roland McGrath  <roland@hack.frob.com>
26691
26692         * sysdeps/init_array/pt-crti.S: New file.
26693
26694 2015-02-13  Joseph Myers  <joseph@codesourcery.com>
26695
26696         [BZ #17967]
26697         * sysdeps/powerpc/fpu/e_sqrtf.c (__slow_ieee754_sqrtf): Use
26698         __builtin_fmaf instead of relying on contraction of a * b + c.
26699
26700 2015-02-12  J William Piggott  <elseifthen@gmx.com>
26701
26702         [BZ #17969]
26703         * manual/time.texi: correct the zoneinfo path in the TZ Variable
26704         node.
26705
26706 2015-02-12  Joseph Myers  <joseph@codesourcery.com>
26707
26708         [BZ #17964]
26709         * sysdeps/powerpc/fpu/e_sqrt.c (__slow_ieee754_sqrt): Use
26710         __builtin_fma instead of relying on contraction of a * b + c.
26711
26712 2015-02-12  Roland McGrath  <roland@hack.frob.com>
26713
26714         * Makeconfig (ASFLAGS): Add -Werror=undef.
26715         * sysdeps/arm/Versions (libc: GLIBC_2.19): New (empty) version set.
26716         * sysdeps/unix/make-syscalls.sh: Always emit #define's for
26717         SYSCALL_CANCELLABLE, SYSCALL_NOERRNO, SYSCALL_ERRVAL, to 1 or 0.
26718
26719         * Makeconfig (after-link): New variable.
26720         (+link-pie, +link-pie-tests): Use it.
26721         (+link-static, +link-static-tests): Likewise.
26722         (+link, +link-tests): Likewise.
26723         * Makerules (build-module, build-module-asneeded): Likewise.
26724         (lib%.so, $(common-objpfx)libc.so, $(common-objpfx)linkobj/libc.so):
26725         Likewise.
26726         * elf/Makefile ($(objpfx)ld.so): Likewise.
26727
26728 2015-02-12  Rüdiger Sonderfeld  <ruediger@c-plusplus.net>
26729
26730         [BZ #17965]
26731         * manual/time.texi (Elapsed Time): tv_sec is of type time_t in
26732         both struct timeval and struct timespec.
26733
26734 2015-02-12  Joseph Myers  <joseph@codesourcery.com>
26735
26736         [BZ #16560]
26737         * math/e_exp2l.c [LDBL_MANT_DIG == 106] (LDBL_EPSILON): Undefine
26738         and redefine.
26739         (__ieee754_exp2l): Do not multiply small fractional parts by
26740         M_LN2l.
26741         * sysdeps/i386/fpu/e_exp2l.S (__ieee754_exp2l): Just add 1 to
26742         small argument.
26743         * sysdeps/ieee754/dbl-64/e_exp2.c (__ieee754_exp2): Likewise.
26744         * sysdeps/ieee754/flt-32/e_exp2f.c (__ieee754_exp2f): Likewise.
26745         * sysdeps/x86_64/fpu/e_exp2l.S (__ieee754_exp2l): Likewise.
26746         * math/auto-libm-test-in: Add more tests of exp2.
26747         * math/auto-libm-test-out: Regenerated.
26748
26749 2015-02-12  Rajalakshmi Srinivasaraghavan  <raji@linux.vnet.ibm.com>
26750
26751         * sysdeps/powerpc/powerpc64/power7/strncpy.S (strncpy): Optimize
26752         unaligned path.
26753
26754 2015-02-12  Adhemerval Zanella  <azanella@linux.vnet.ibm.com>
26755
26756         * sysdeps/unix/sysv/linux/powerpc/htm.h [TABORT]: Fix encoding for
26757         little endian.
26758
26759 2015-02-12  Andreas Schwab  <schwab@suse.de>
26760
26761         [BZ #15790]
26762         * nptl/pthread_mutexattr_gettype.c (pthread_mutexattr_gettype):
26763         Filter out elision flags from value returned in kind.
26764         * nptl/Makefile (tests): Add tst-pthread-mutexattr.
26765         * nptl/tst-pthread-mutexattr.c: New file.
26766
26767 2015-02-11  Samuel Thibault  <samuel.thibault@ens-lyon.org>
26768
26769         * abi-tags: Revert ae20c9a: rename back gnu into gnu-gnu.
26770         * configure.ac, configure: Revert ba90e05: modify gnu-* host_os back
26771         into gnu-gnu, and update comment to refer to abi-tags.
26772
26773 2015-02-11  Joseph Myers  <joseph@codesourcery.com>
26774
26775         [BZ #15467]
26776         * sysdeps/ieee754/dbl-64/s_sincos.c: Include <errno.h>.
26777         (__sincos): Set errno to EDOM for infinite argument.
26778         * sysdeps/ieee754/flt-32/s_sincosf.c: Include <errno.h>.
26779         (SINCOSF_FUNC): Set errno to EDOM for infinite argument.
26780         * sysdeps/ieee754/ldbl-128/s_sincosl.c: Include <errno.h>.
26781         (__sincosl): Set errno to EDOM for infinite argument.
26782         * sysdeps/ieee754/ldbl-128ibm/s_sincosl.c: Include <errno.h>.
26783         (__sincosl): Set errno to EDOM for infinite argument.
26784         * sysdeps/ieee754/ldbl-96/s_sincosl.c: Include <errno.h>.
26785         (__sincosl): Set errno to EDOM for infinite argument.
26786         * math/libm-test.inc (sincos_test_data): Test errno setting.
26787
26788 2015-02-11  Leonhard Holz  <leonhard.holz@web.de>
26789
26790         * string/strxfrm_l.c: Remove #define STRCMP.
26791         * string/strcoll_l.c: Remove #define STRLEN.
26792         * wcsmbs/wcsxfrm_l.c: Remove #define STRCMP.
26793         * wcsmbs/wcscoll_l.c: Remove #define STRLEN.
26794
26795 2015-02-10  Joseph Myers  <joseph@codesourcery.com>
26796
26797         * sysdeps/mips/soft-fp/sfp-machine.h: Move to ....
26798         * sysdeps/mips/mips32/sfp-machine.h: ... here.
26799         * sysdeps/mips/mips64/soft-fp/Makefile: Move to ....
26800         * sysdeps/mips/mips64/Makefile: ... here.
26801         * sysdeps/mips/mips64/soft-fp/e_sqrtl.c: Move to ....
26802         * sysdeps/mips/mips64/e_sqrtl.c: ... here.
26803         * sysdeps/mips/mips64/soft-fp/sfp-machine.h: Move to ....
26804         * sysdeps/mips/mips64/sfp-machine.h: ... here.
26805         * sysdeps/mips/mips32/Implies: Remove mips/soft-fp.
26806         * sysdeps/mips/mips64/n32/Implies: Remove mips/mips64/soft-fp.
26807         * sysdeps/mips/mips64/n64/Implies: Likewise.
26808
26809 2015-02-10  Roland McGrath  <roland@hack.frob.com>
26810
26811         * math/test-snan.c: Drop unnecessary #include's of <stdlib.h>,
26812         <sys/time.h>, <string.h>, and <errno.h>.
26813         (dest_offset, dest_address, value, zero): Remove unused variables.
26814         (ldouble): Remove typedef.
26815         (myFPsighandler): Use simple handler signature, not SA_SIGINFO
26816         signature.  Pass 1 to siglongjmp rather than 0 (which is converted to
26817         1).  Fix code style.
26818         (set_sigaction_FP, remove_sigaction_FP): Functions removed.
26819         (check): Function removed.
26820         (CHECK): New macro.
26821         (TEST_FUNC): Fix code style.  Use CHECK macro rather than repeating
26822         boilerplate feclearexcept + feenableexcept + sigsetjmp code.
26823         Don't call set_sigaction_FP and remove_sigaction_FP here.
26824         (ldouble_test): Just use 'long double' as macro argument, no need for
26825         the 'ldouble' typedef.
26826         (do_test): Set up SIGFPE handler at start, using plain signal rather
26827         than sigaction.  Fix code style.
26828
26829 2015-02-10  Evangelos Foutras  <evangelos@foutrelis.com>
26830
26831         [BZ #17949]
26832         * sysdeps/i386/i686/multiarch/mempcpy_chk.S: Fix position of
26833         jump label.
26834
26835 2015-02-09  Adhemerval Zanellla  <azanella@linux.vnet.ibm.com>
26836
26837         * sysdeps/powerpc/powerpc32/configure.ac: Remove R_PPC_REL16 check.
26838         * sysdeps/powerpc/powerpc32/configure: Regenerated.
26839
26840         * sysdeps/powerpc/configure.ac: Remove file.
26841         * sysdeps/powerpc/configure: Likewise.
26842
26843         * sysdeps/powerpc/powerpc32/power4/multiarch/Makefile
26844         [sysdep_routines]: Remove wordcopy-power6 object.
26845         * sysdeps/powerpc/powerpc32/power4/multiarch/memmove-power7.c
26846         (__memmove_power7): Use local call for wordcopy and memcpy symbols.
26847         * sysdeps/powerpc/powerpc32/power4/multiarch/wordcopy-ppc32.c
26848         (__memmove_ppc32): Likewise.
26849         * sysdeps/powerpc/powerpc32/power4/multiarch/wordcopy-power6.c: Remove
26850         file.
26851         * sysdeps/powerpc/powerpc32/power4/multiarch/wordcopy.c: Remove file.
26852         * sysdeps/powerpc/powerpc64/multiarch/wordcopy-ppc64.c [IS_IN (libc)]:
26853         Remove preprocessor.
26854
26855         * sysdeps/powerpc/powerpc32/power4/multiarch/Makefile
26856         [sysdep_routines]: Remove wide chars objects.
26857         [wcsmbs]: New rule for wide char objects.
26858
26859         * sysdeps/powerpc/powerpc64/multiarch/Makefile [sysdep_routines]:
26860         Remove wordcopy-power6 obejct.
26861         * sysdeps/powerpc/powerpc64/multiarch/memmove-ppc64.c (__memmove_ppc):
26862         Use local call for wordcopy and memcpy symbols.
26863         * sysdeps/powerpc/powerpc64/multiarch/wordcopy-power6.c: Remove file.
26864         * sysdeps/powerpc/powerpc64/multiarch/wordcopy-ppc64.c: Add default
26865         implementation for loader.
26866         * sysdeps/powerpc/powerpc64/multiarch/wordcopy.c: Remove file.
26867
26868         * sysdeps/powerpc/powerpc64/multiarch/Makefile [sysdep_routines]:
26869         Remove wordcopy-power7 object.
26870         * sysdeps/powerpc/powerpc64/multiarch/wordcopy-power7.c: Remove file.
26871         * sysdeps/powerpc/powerpc64/multiarch/wordcopy.c
26872         (_wordcopy_fwd_aligned): Remove POWER7 specialization.
26873         (_wordcopy_fwd_dest_aligned): Likewise.
26874         (_wordcopy_bwd_aligned): Likewise.
26875         (_wordcopy_bwd_dest_aligned): Likewise.
26876
26877         * sysdeps/powerpc/powerpc64/multiarch/bcopy-ppc64.c (__bcopy_ppc):
26878         Rewrite to call __memmove_ppc instead of include default
26879         implementation.
26880
26881         * sysdeps/powerpc/powerpc64/multiarch/Makefile [sysdep_routines]:
26882         Remove wide chars objects.
26883         [wcsmbs]: New rule for wide char objects.
26884
26885 2015-02-09  Andreas Schwab  <schwab@suse.de>
26886
26887         [BZ #17912]
26888         * sysdeps/unix/sysv/linux/bits/fcntl-linux.h (__O_TMPFILE): Define
26889         in terms of __O_DIRECTORY.
26890
26891 2015-02-08  Samuel Thibault  <samuel.thibault@ens-lyon.org>
26892
26893         * time/getdate.c: Include <stdbool.h>.
26894         * sysdeps/gnu/unwind-resume.c [!PTR_MANGLE] (__libgcc_s_init): Do not
26895         call PTR_MANGLE.
26896         [!PTR_DEMANGLE] (_Unwind_Resume, __gcc_personality_v0): Do not call
26897         PTR_DEMANGLE.
26898
26899 2015-02-07  Paul Eggert  <eggert@cs.ucla.edu>
26900
26901         Add ersatz _Static_assert on older C hosts
26902         * misc/sys/cdefs.h (_Static_assert): Define a substitute, if on a
26903         pre-C11 C platform that is not known to support _Static_assert.
26904
26905 2015-02-07  Richard Braun  <rbraun@sceen.net>
26906
26907         * hurd/hurd/signal.h (_hurd_critical_section_lock): Don't unlock
26908         sigstate.
26909         * sysdeps/mach/hurd/mmap.c (__mmap): Also handle PROT_NONE case.
26910
26911 2015-02-07  Samuel Thibault  <samuel.thibault@ens-lyon.org>
26912
26913         * sysdeps/pthread/aio_misc.c [!AIO_PRIO_DELTA_MAX]: Do not check
26914         priority against unexistent AIO_PRIO_DELTA_MAX.
26915         * misc/chflags.c (chflags): Set flags parameter type to unsigned long
26916         instead of int.
26917         * misc/fchflags.c (fchflags): Likewise.
26918         * sysdeps/mach/hurd/chflags.c (chflags): Likewise.
26919         * sysdeps/mach/hurd/fchflags.c (fchflags): Likewise.
26920         * sysdeps/mach/hurd/bits/stat.h [__USE_MISC] (UF_SETTABLE, UF_NODUMP,
26921         UF_IMMUTABLE, UF_APPEND, UF_OPAQUE, UF_NOUNLINK, SF_SETTABLE,
26922         SF_ARCHIVED, SF_IMMUTABLE, SF_APPEND, SF_NOUNLINK, SF_SNAPSHOT):
26923         Declare macros.
26924         [__USE_MISC] (chflags, fchflags): Declare functions.
26925         * hurd/hurdselect.c (_hurd_select): In the poll case, do not return
26926         EINVAL when nfds is greater than FD_SETSIZE.
26927         * hurd/hurd/resource.h (MACH_PRIORITY_TO_NICE,
26928         NICE_TO_MACH_PRIORITY): Align nice levels on Mach priorities from 5 to
26929         45.
26930         * hurd/hurdselect.c (_hurd_select): Pass MACH_RCV_INTERRUPT to
26931         __mach_msg.  If that returns MACH_RCV_INTERRUPTED, set ERR to EINTR.
26932         * hurd/hurdselect.c (_hurd_select): Remove unreachable check for
26933         MACH_RCV_TIMED_OUT.
26934         * hurd/hurd/signal.h (_hurd_self_sigstate,
26935         _hurd_critical_section_lock, _hurd_critical_section_unlock):
26936         Explicit casts from void *.
26937         * sysdeps/mach/hurd/tls.h: Include <stdint.h> and <sysdep.h>.
26938         * abi-tags: Rename gnu-gnu os into gnu.
26939
26940         [BZ #4719]
26941         * sysdeps/mach/hurd/bits/ioctls.h (_IOT__IOTBASE_long, _IOT_char,
26942         _IOT_short, _IOT_int, _IOT_long, _IOT__IOTBASE_int8_t,
26943         _IOT__IOTBASE_uint8_t, _IOT__IOTBASE_int16_t, _IOT__IOTBASE_uint16_t,
26944         _IOT__IOTBASE_int32_t, _IOT__IOTBASE_uint32_t, _IOT__IOTBASE_int64_t,
26945         _IOT__IOTBASE_uint64_t, _IOT__IOTBASE_size_t, _IOT__IOTBASE_ssize_t,
26946         _IOTBASE_unsigned, _IOTBASE_signed): Define macros.
26947
26948         [BZ #17944]
26949         * hurd/hurdsocket.h: New file, defines _hurd_sun_path_dupa which
26950         duplicates ADDR->sun_path with sockaddr LEN limitation.
26951         * sysdeps/mach/hurd/connect.c: Include <string.h>
26952         (__connect): Give result of _hurd_sun_path_dupa to name lookup.
26953         * sysdeps/mach/hurd/sendmsg.c: Likewise.
26954         * sysdeps/mach/hurd/sendto.c: Likewise.
26955         * sysdeps/mach/hurd/bind.c: Call _hurd_sun_path_dupa instead of
26956         implementing it by hand.
26957
26958 2015-02-06  Roland McGrath  <roland@hack.frob.com>
26959
26960         * sysdeps/arm/sysdep.h [!PROF] [ARCH_HAS_T2 && !PIC] (LDR_GLOBAL):
26961         Use sfi_breg on ldr.
26962         [!PROF] [ARCH_HAS_T2 && PIC && ARM_PCREL_MOVW_OK] (LDR_GLOBAL):
26963         Likewise.
26964
26965         * nptl/tst-cancel25.c (tf2): Test for SIGCANCEL being blocked only if
26966         it's defined.
26967         * nptl/tst-signal7.c (do_test): Test SIGCANCEL only if it's defined.
26968         Test SIGSETXID only if it's defined.
26969
26970         * nptl/tst-locale1.c (useless): Use SIGRTMIN only if it's defined.
26971
26972         * rt/tst-timer2.c (do_test): Don't initialize SIGEV.sigev_signo, which
26973         will not be used.  Use NULL rather than 0 for .sigev_notify_attributes.
26974
26975         * nptl/tst-align2.c: Moved ...
26976         * sysdeps/unix/sysv/linux/tst-align-clone.c: ... here.
26977         * nptl/Makefile (tests): Remove tst-align2.
26978         * sysdeps/unix/sysv/linux/Makefile
26979         [$(subdir) = nptl] (tests): Add tst-align-clone.
26980         * nptl/tst-getpid1.c: Moved ...
26981         * sysdeps/unix/sysv/linux/tst-getpid1.c: ... here.
26982         * nptl/tst-getpid2.c: Moved ...
26983         * sysdeps/unix/sysv/linux/tst-getpid2.c: ... here.
26984         * nptl/Makefile (tests): Move tst-getpid1 and tst-getpid2 ...
26985         * sysdeps/unix/sysv/linux/Makefile
26986         [$(subdir) = nptl] (tests): ... here.
26987         * nptl/Makefile (tst-getpid2-ENV): Move variable ...
26988         * sysdeps/unix/sysv/linux/Makefile
26989         [$(subdir) = nptl] (tst-getpid2-ENV): ... here.
26990
26991         * nptl/tst-cleanup2.c (do_test): Use signal rather than sigaction.
26992         Drop trailing \n from perror argument.  Use return rather than exit.
26993
26994         * nptl/tst-cancel20.c (do_test): Conditionalize SA_SIGINFO-using tests
26995         on [SA_SIGINFO].
26996         * nptl/tst-cancel21.c (do_test): Likewise.
26997         * debug/tst-backtrace6.c: Include <signal.h> first thing.
26998         Conditionalize inclusion of tst-backtrace5.c on [SA_SIGINFO].
26999         [!SA_SIGINFO]: Make it a stub test.
27000
27001         * misc/tst-pselect.c (do_test): Don't set SA_NOCLDWAIT in sa_flags for
27002         SIGCHLD; it's redundant with SIG_IGN as sa_handler.
27003
27004         * posix/tst-getlogin.c: Move to ...
27005         * login/tst-getlogin.c: ... here.
27006         * posix/Makefile (tests): Move tst-getlogin to ...
27007         * login/Makefile (tests): ... here.
27008
27009         * libio/tst-atime.c (do_test): Move local variables SV and E
27010         inside [ST_NOATIME] conditional.
27011
27012         * dirent/tst-fdopendir.c (O_NOATIME): If not defined, #define to 0.
27013
27014         * nptl/tst-kill5.c (do_test): Use INT_MAX rather than SIGRTMAX + 10.
27015
27016         * nptl/tst-join5.c: Drop #include <sys/syscall.h>.
27017         (wait_code): New function replaces macro.
27018         Call nanosleep rather than syscall.
27019
27020         * nptl/pt-system.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-longjmp.c: Rewritten.  Put everything under
27025         [SHLIB_COMPAT (libpthread, GLIBC_2_0, GLIBC_2_22)].
27026         Use IFUNC to redirect when possible.
27027
27028         * nptl/pt-fork.c: Rewritten.  Put everything under
27029         [SHLIB_COMPAT (libpthread, GLIBC_2_0, GLIBC_2_22)].
27030         Use IFUNC to redirect when possible.
27031         * nptl/Versions (libpthread: GLIBC_2.22): New (empty) version set.
27032
27033         * sysdeps/unix/sysv/linux/x86_64/pthread_cond_timedwait.S: Remove all
27034         code under [!__ASSUME_FUTEX_CLOCK_REALTIME], since that is defined
27035         unconditionally nowadays.  This included the only reference to
27036         __vdso_clock_gettime that appears outside libc proper.
27037         * sysdeps/unix/sysv/linux/x86_64/Versions (libc: GLIBC_PRIVATE):
27038         Remove version set (containing only __vdso_clock_gettime).
27039         * sysdeps/unix/sysv/linux/x86/libc-vdso.h (__vdso_clock_gettime):
27040         Add attribute_hidden.
27041         * sysdeps/unix/sysv/linux/i386/init-first.c (__vdso_clock_gettime):
27042         Likewise.  Drop __attribute__ ((nocommon)), libc_hidden_proto, and
27043         libc_hidden_data_def.
27044         * sysdeps/unix/sysv/linux/x86_64/init-first.c: Likewise.
27045         * sysdeps/unix/sysv/linux/x86_64/x32/init-first.c: Likewise.
27046
27047         * inet/Versions (libc: GLIBC_2.0): Move getrpcbyname, getrpcbyname_r,
27048         getrpcbynumber, getrpcbynumber_r, getrpcent, getrpcent_r, endrpcent,
27049         setrpcent, and getrpcport to ...
27050         * sunrpc/Versions (libc: GLIBC_2.0): ... here.
27051         * inet/Versions (libc: GLIBC_2.1.2): Move getrpcbyname_r,
27052         getrpcbynumber_r, and getrpcent_r to ...
27053         * sunrpc/Versions (libc: GLIBC_2.1.2): ... this new set.
27054         * inet/getrpcbyname.c: Moved ...
27055         * sunrpc/getrpcbyname.c: ... here.
27056         * inet/getrpcbyname_r.c: Moved ...
27057         * sunrpc/getrpcbyname_r.c: ... here.
27058         * inet/getrpcbynumber.c: Moved ...
27059         * sunrpc/getrpcbynumber.c: ... here.
27060         * inet/getrpcbynumber_r.c: Moved ...
27061         * sunrpc/getrpcbynumber_r.c: ... here.
27062         * inet/getrpcent.c: Moved ...
27063         * sunrpc/getrpcent.c: ... here.
27064         * inet/getrpcent_r.c: Moved ...
27065         * sunrpc/getrpcent_r.c: ... here.
27066         * inet/Makefile (routines): Move those to ...
27067         * sunrpc/Makefile (routines): ... here.
27068         * nss/Makefile (databases): Add key and rpc only if sunrpc appears in
27069         the $(subdirs) list.
27070         (CPPFLAGS-getent.c): New variable.  Pass -D option to set HAVE_SUNRPC
27071         to 0 or 1, indicating whether sunrpc appears in the $(subdirs) list.
27072         * nss/getent.c (print_rpc, rpc_keys): Conditionalize on [HAVE_SUNRPC].
27073         (databases): Conditionalize rpc entry on [HAVE_SUNRPC].
27074
27075         * elf/Makefile (routines): Include $(all-dl-routines), not just
27076         $(dl-routines).
27077         (rtld-routines): Likewise.  Use = rather than :=.
27078         * sysdeps/aarch64/Makefile [$(subdir) = elf]
27079         (sysdep_routines, sysdep-rtld-routines): Don't add tlsdesc and
27080         dl-tlsdesc to these; sysdep-dl-routines alone is enough.
27081         * sysdeps/arm/Makefile: Likewise.
27082         * sysdeps/i386/Makefile: Likewise.
27083         * sysdeps/x86_64/Makefile: Likewise.
27084         * sysdeps/hppa/Makefile [$(subdir) = elf]
27085         (sysdep_routines, sysdep-rtld-routines): Don't add
27086         $(sysdep-dl-routines) to these.
27087         * sysdeps/ia64/Makefile: Likewise.
27088         * sysdeps/unix/sysv/linux/ia64/Makefile: Likewise.
27089         * sysdeps/unix/sysv/linux/aarch64/Makefile [$(subdir) = elf]
27090         [$(build-shared) = yes] (sysdep_routines, sysdep-rtld-routines):
27091         Don't add dl-static to these; sysdep-dl-routines alone is enough.
27092         * sysdeps/unix/sysv/linux/m68k/Makefile: Likewise.
27093         * sysdeps/unix/sysv/linux/mips/Makefile: Likewise.
27094         * sysdeps/unix/sysv/linux/powerpc/Makefile: Likewise.
27095         * sysdeps/unix/sysv/linux/tile/Makefile: Likewise.
27096         * sysdeps/powerpc/Makefile [$(subdir) = elf]
27097         (sysdep_routines, sysdep-rtld-routines): Don't add dl-machine to
27098         these; sysdep-dl-routines alone is enough.
27099
27100 2015-02-06  Joseph Myers  <joseph@codesourcery.com>
27101
27102         [BZ #17932]
27103         * soft-fp/op-common.h (_FP_FMA): Set exponent of result in case
27104         where multiplication results in zero and third argument is finite
27105         and nonzero.
27106         * math/auto-libm-test-in: Add more tests of fma.
27107         * math/auto-libm-test-out: Regenerated.
27108
27109         * soft-fp/op-common.h (_FP_CMP_CHECK_DENORM): New macro.
27110         (_FP_CMP_CHECK_FLUSH_ZERO): Likewise.
27111         (_FP_CMP): Use_FP_CMP_CHECK_DENORM and _FP_CMP_CHECK_FLUSH_ZERO.
27112         (_FP_CMP_EQ): Likewise.
27113         (_FP_CMP_UNORD): Use _FP_CMP_CHECK_DENORM.
27114
27115         * soft-fp/op-common.h (FP_EXTEND): Rename to _FP_EXTEND_CNAN with
27116         extra argument CHECK_NAN.  Redefine as wrapper around
27117         _FP_EXTEND_CNAN.
27118
27119 2015-02-06  Carlos O'Donell  <carlos@systemhalted.org>
27120
27121         * version.h (RELEASE): Set to "stable".
27122         (VERSION): Set to "2.21"
27123         * include/features.h (__GLIBC_MINOR__): Set to 21.
27124
27125         * sysdeps/unix/sysv/linux/hppa/pthread.h: Sync with pthread.h.
27126
27127 2015-02-05  Paul Pluzhnikov  <ppluzhnikov@google.com>
27128             Paul Eggert  <eggert@cs.ucla.edu>
27129
27130         [BZ #16618]
27131         * stdio-common/tst-sscanf.c (main): Test for buffer overflow.
27132         * stdio-common/vfscanf.c (_IO_vfscanf_internal): Compute needed
27133         size in bytes. Store needed elements in wpmax. Use needed size
27134         in bytes for extend_alloca.
27135
27136 2015-02-05  Carlos O'Donell  <carlos@systemhalted.org>
27137
27138         * manual/install.texi: Latest tested versions are GCC 4.9.2,
27139         binutls 2.25, and texinfo 5.2.
27140         * INSTALL: Regenerate.
27141         * sysdeps/nios2/configure: Regenerate.
27142         * sysdeps/unix/sysv/linux/nios2/configure: Regenerate.
27143         * manual/contrib.texi: Update.
27144         * po/be.po: Update.
27145         * po/bg.po: Update.
27146         * po/ca.po: Update.
27147         * po/cs.po: Update.
27148         * po/da.po: Update.
27149         * po/de.po: Update.
27150         * po/el.po: Update.
27151         * po/eo.po: Update.
27152         * po/es.po: Update.
27153         * po/fi.po: Update.
27154         * po/fr.po: Update.
27155         * po/gl.po: Update.
27156         * po/hr.po: Update.
27157         * po/hu.po: Update.
27158         * po/ia.po: Update.
27159         * po/id.po: Update.
27160         * po/it.po: Update.
27161         * po/ja.po: Update.
27162         * po/ko.po: Update.
27163         * po/lt.po: Update.
27164         * po/nb.po: Update.
27165         * po/nl.po: Update.
27166         * po/pl.po: Update.
27167         * po/pt_BR.po: Update.
27168         * po/ru.po: Update.
27169         * po/rw.po: Update.
27170         * po/sk.po: Update.
27171         * po/sl.po: Update.
27172         * po/sv.po: Update.
27173         * po/tr.po: Update.
27174         * po/uk.po: Update.
27175         * po/vi.po: Update.
27176         * po/zh_CN.po: Update.
27177         * po/zh_TW.po: Update.
27178
27179         * sysdeps/hppa/Makefile (CFLAGS-dl-fptr.c): Add -Wno-error.
27180         * sysdeps/hppa/bits/setjmp.h: Union is named __jmp_buf_internal_tag.
27181         * sysdeps/hppa/dl-irel.h: Remove #warning.
27182         * sysdeps/hppa/entry.h: Provide prototype for
27183         __canonicalize_funcptr_for_compare and cast argument.
27184         * sysdeps/hppa/fpu/fegetexcept.c (fegetexcept): Add semicolon.
27185         * sysdeps/hppa/fpu/ftestexcept.c (fetestexcept): Likewise.
27186         * sysdeps/hppa/sotruss-lib.c: New file.
27187         * sysdeps/unix/sysv/linux/hppa/bits/atomic.h
27188         (atomic_compare_and_exchange_val_acq): Use __typeof__.
27189         (atomic_compare_and_exchange_bool_acq): Likewise.
27190         * sysdeps/unix/sysv/linux/hppa/mmap.c: Use weak alias.
27191         * sysdeps/unix/sysv/linux/hppa/pthread.h: Include pthread.h.
27192
27193         * sysdeps/unix/sysv/linux/hppa/syscall.S: Delete file.
27194         * sysdeps/unix/sysv/linux/hppa/sysdep.c: Move syscall from here...
27195         * sysdeps/unix/sysv/linux/hppa/syscall.c: ... to here.
27196
27197 2015-02-05  Chung-Lin Tang  <cltang@codesourcery.com>
27198
27199         * sysdeps/nios2/machine-gmon.h (NIOS2_MCOUNT_CALL): Correct name of
27200         called function in non-PIC case.
27201
27202 2015-01-31  David S. Miller  <davem@davemloft.net>
27203
27204         * sysdeps/sparc/sparc32/bits/atomic.h
27205         (__sparc32_atomic_do_unlock24): Put the memory barrier before the
27206         unlock not after it.
27207         (__v9_compare_and_exchange_val_32_acq): Use unions to avoid getting
27208         volatile register usage warnings from the compiler.
27209
27210         * sysdeps/sparc/nptl/sem_init.c: Delete.
27211         * sysdeps/sparc/nptl/sem_post.c: Delete.
27212         * sysdeps/sparc/nptl/sem_timedwait.c: Delete.
27213         * sysdeps/sparc/nptl/sem_wait.c: Delete.
27214         * sysdeps/sparc/sparc32/sem_init.c: New file.
27215         * sysdeps/sparc/sparc32/sem_waitcommon.c: New file.
27216         * sysdeps/sparc/sparc32/sem_open.c: Generic nptl version with
27217         padding explicitly initialized.
27218         * sysdeps/sparc/sparc32/sem_post.c: Generic nptl version using
27219         padding for in-semaphore spinlock.
27220         * sysdeps/sparc/sparc32/sem_wait.c: Likewise.
27221         * sysdeps/sparc/sparc32/sem_trywait.c: Delete.
27222         * sysdeps/sparc/sparc32/sem_timedwait.c: Delete.
27223         * sysdeps/sparc/sparc32/sparcv9/sem_init.c: New file.
27224         * sysdeps/sparc/sparc32/sparcv9/sem_open.c: New file.
27225         * sysdeps/sparc/sparc32/sparcv9/sem_post.c: New file.
27226         * sysdeps/sparc/sparc32/sparcv9/sem_waitcommon.c: New file.
27227         * sysdeps/sparc/sparc32/sparcv9/sem_wait.c: Redirect to nptl
27228         version.
27229         * sysdeps/sparc/sparc32/sparcv9/sem_timedwait.c: Delete.
27230         * sysdeps/sparc/sparc32/sparcv9/sem_trywait.c: Delete.
27231
27232 2015-01-30  H.J. Lu  <hongjiu.lu@intel.com>
27233
27234         [BZ #17801]
27235         * sysdeps/x86_64/multiarch/init-arch.c (__init_cpu_features):
27236         Set the bit_AVX_Fast_Unaligned_Load bit for AVX2.
27237         * sysdeps/x86_64/multiarch/init-arch.h (bit_AVX_Fast_Unaligned_Load):
27238         New.
27239         (index_AVX_Fast_Unaligned_Load): Likewise.
27240         (HAS_AVX_FAST_UNALIGNED_LOAD): Likewise.
27241         * sysdeps/x86_64/multiarch/memcpy.S (__new_memcpy): Check the
27242         bit_AVX_Fast_Unaligned_Load bit instead of the bit_AVX_Usable bit.
27243         * sysdeps/x86_64/multiarch/memcpy_chk.S (__memcpy_chk): Likewise.
27244         * sysdeps/x86_64/multiarch/mempcpy.S (__mempcpy): Likewise.
27245         * sysdeps/x86_64/multiarch/mempcpy_chk.S (__mempcpy_chk): Likewise.
27246         * sysdeps/x86_64/multiarch/memmove.c (__libc_memmove): Replace
27247         HAS_AVX with HAS_AVX_FAST_UNALIGNED_LOAD.
27248         * sysdeps/x86_64/multiarch/memmove_chk.c (__memmove_chk): Likewise.
27249
27250 2015-01-29  Andreas Schwab  <schwab@suse.de>
27251
27252         * sysdeps/nptl/allocrtsig.c: Include <signal.h>.
27253
27254 2015-01-29  Siddhesh Poyarekar <siddhesh@redhat.com>
27255
27256         [BZ #17892]
27257         * nscd/nscd_stat.c (send_stats): Initialize DATA.
27258
27259 2015-01-28  Martin Sebor  <msebor@redhat.com>
27260
27261         * math/README.libm-test: Clarify. Add "How to read the test output."
27262
27263 2015-01-28  Chris Metcalf  <cmetcalf@ezchip.com>
27264
27265         * sysdeps/tile/tilegx/bits/atomic.h [!_LP64] (__HAVE_64B_ATOMICS):
27266         Define to 0.
27267
27268 2015-01-28  Joseph Myers  <joseph@codesourcery.com>
27269
27270         * sysdeps/mips/bits/atomic.h [_MIPS_SIM == _ABIN32]
27271         (__HAVE_64B_ATOMICS): Define to 0.
27272
27273 2015-01-28  Adhemerval Zanellla  <azanella@linux.vnet.ibm.com>
27274
27275         [BZ #17885]
27276         * sysdeps/powerpc/fpu/fsetexcptflg.c (__fesetexceptflag): Fix correct
27277         value to set as new flag.
27278
27279         [BZ #16576]
27280         * sysdeps/powerpc/fpu/math_private.h [__CPU_HAS_FSQRT]: Remove define
27281         and use _ARCH_PPCSQ instead.
27282         (__ieee754_sqrt): Likewise.
27283         (__ieee754_sqrtf): Likewise.
27284         * sysdeps/powerpc/fpu/e_sqrt.c (__slow_ieee754_sqrt): Build only if
27285         _ARCH_PPCSQ is defined.
27286         (__ieee754_sqrt): Use _ARCH_PPCSQ to select wheter to use hardware
27287         fsqrt instruction.
27288         * sysdeps/powerpc/fpu/e_sqrtf.c (__ieee754_sqrtf): Build only if
27289         _ARCH_PPCSQ is defined.
27290         (__ieee754_sqrtf): Use _ARCH_PPCSQ to select wheter to use hardware
27291         fsqrts instruction.
27292         * sysdeps/powerpc/powerpc64/fpu/e_sqrt.c: Remove file.
27293
27294 2015-01-27  Andreas Krebbel  <Andreas.Krebbel@de.ibm.com>
27295
27296         * iconv/loop.c: Suppress array out of bound warning caused by GCC
27297         bug (GCC BZ #64739).
27298
27299 2015-01-25  Andreas Schwab  <schwab@linux-m68k.org>
27300
27301         * sysdeps/unix/sysv/linux/ia64/lowlevellock.h (lll_futex_requeue):
27302         Mark _retval as used.
27303         (lll_futex_wake_unlock): Likewise.
27304         (lll_futex_timed_wait_requeue_pi): Likewise.
27305
27306         * sysdeps/unix/sysv/linux/m68k/coldfire/bits/atomic.h
27307         (atomic_compare_and_exchange_val_acq): Use uint32_t for the
27308         register variables.
27309
27310         * sysdeps/m68k/m680x0/fpu/fraiseexcpt.c (__feraiseexcept): Use
27311         libm_hidden_def.
27312
27313         * sysdeps/m68k/bits/byteswap.h (__bswap_16, __bswap_32)
27314         (__bswap_64): Mark as __always_inline.
27315
27316 2015-01-25  Bram  <bug_rh@spam.wizbit.be>
27317
27318         [BZ #15378]
27319         * elf/dl-load.c (open_path): Avoid writing to 'env_path_list'
27320         when none of the search directories exist.
27321
27322 2015-01-24  Adhemerval Zanellla  <azanella@linux.vnet.ibm.com>
27323
27324         [BZ #17869]
27325         * sysdeps/powerpc/powerpc64/power8/memset.S: Use power7 instead of
27326         power8 in .machine directive.
27327
27328         [BZ #17868]
27329         * sysdeps/powerpc/powerpc64/dl-machine.h (resolve_ifunc): Force value
27330         set dependency from opd value.
27331
27332 2015-01-23  H.J. Lu  <hongjiu.lu@intel.com>
27333
27334         * sysdeps/x86_64/multiarch/init-arch.c (__init_cpu_features):
27335         Treat model numbers 0x4a/0x4d/0x5a/0x5d as Intel Silvermont
27336         architecture.
27337
27338 2015-01-23  H.J. Lu  <hongjiu.lu@intel.com>
27339
27340         [BZ #17870]
27341         * nptl/sem_post.c (__new_sem_post): Replace unsigned long int
27342         with uint64_t.
27343         * nptl/sem_waitcommon.c (__sem_wait_cleanup): Replace 1UL with
27344         (uint64_t) 1.
27345         (__new_sem_wait_fast): Replace unsigned long with uint64_t.
27346         (__new_sem_wait_slow): Replace unsigned long int with uint64_t.
27347         Replace 1UL with (uint64_t) 1.
27348         * sysdeps/nptl/internaltypes.h (new_sem): Replace unsigned long
27349         int with uint64_t.
27350
27351 2015-01-23  Roland McGrath  <roland@hack.frob.com>
27352
27353         * inet/if_index.c (if_nameindex): Add missing libc_hidden_weak.
27354         (if_freenameindex): Likewise.
27355
27356         * resource/getrlimit64.c: Add missing libc_hidden_def.
27357
27358 2015-01-22  Joseph Myers  <joseph@codesourcery.com>
27359
27360         * soft-fp/op-common.h (_FP_ADD_INTERNAL): Declare labels with
27361         __label__.
27362         (_FP_FMA): Likewise.
27363         (_FP_TO_INT_ROUND): Likewise.
27364         (_FP_FROM_INT): Likewise.
27365
27366 2015-01-21  Adhemerval Zanella  <azanella@linux.vnet.ibm.com>
27367
27368         [BZ #16418]
27369         * sysdeps/unix/sysv/linux/powerpc/get_clockfreq.c (__get_clockfreq):
27370         Make code racy and cancel safe.
27371
27372 2015-01-21  Carlos O'Donell  <carlos@redhat.com>
27373
27374         * sysdeps/arm/unwind-resume.h: Fix copyright year.
27375         * dlfcn/tst-rec-dlopen.c: Fix incorrect copyright year and
27376         attribution.
27377
27378         * pwd/tst-getpw.c: Rewrite.
27379
27380         [BZ #17702]
27381         * dlfcn/Makefile (tests): Add tst-rec-dlopen.
27382         (modules-names): Add moddummy1 and moddummy2.
27383         ($(objpfx)tst-rec-dlopen): Define.
27384         * dlfcn/moddummy1.c: New file.
27385         * dlfcn/moddummy2.c: New file.
27386         * dlfcn/tst-rec-dlopen.c: New file.
27387         * elf/dl-cache.c (_dl_load_cache_lookup):
27388         Return char*. Copy result with alloca/strcpy/strdup.
27389         * elf/dl-load.c (_dl_map_object): _dl_load_cached_lookup
27390         returns char*. Free cached. If not saving realname
27391         free cached.
27392         * elf/dl-open.c (dl_open_worker): Do not assert that
27393         _r_debug->r_state is RT_CONSISTENT.
27394         * sysdeps/generic/ldsodefs.h: _dl_load_cache_lookup
27395         returns char*.
27396
27397 2015-01-21  Torvald Riegel  <triegel@redhat.com>
27398             Carlos O'Donell  <carlos@redhat.com>
27399
27400         [BZ #12674]
27401         * nptl/sem_waitcommon.c: New file.
27402         * nptl/sem_wait.c: Include sem_waitcommon.c.
27403         (__sem_wait_cleanup, do_futex_wait): Remove.
27404         (__new_sem_wait): Adapt.
27405         (__new_sem_trywait): New function.
27406         (__old_sem_trywait): Moved here from nptl/sem_trywait.c.
27407         * nptl/sem_timedwait.c: Include sem_waitcommon.c.
27408         (__sem_wait_cleanup, do_futex_timed_wait): Remove.
27409         (sem_timedwait): Adapt.
27410         * nptl/sem_post.c (__new_sem_post): Adapt.
27411         (futex_wake): New function.
27412         (__old_sem_post): Add release MO fence.
27413         * nptl/sem_open.c (sem_open): Adapt.
27414         * nptl/sem_init.c (__new_sem_init): Adapt.
27415         (futex_private_if_supported): New function.
27416         * nptl/sem_getvalue.c (__new_sem_getvalue): Adapt.
27417         (__old_sem_getvalue): Add using previous code.
27418         * sysdeps/nptl/internaltypes.h: Adapt.
27419         * nptl/tst-sem13.c (do_test): Adapt.
27420         * nptl/tst-sem11.c (main): Adapt.
27421         * nptl/sem_trywait.c: Remove.
27422         * nptl/DESIGN-sem.txt: Remove.
27423         * nptl/Makefile (libpthread-routines): Remove sem_trywait.
27424         (gen-as-const-headers): Remove structsem.sym.
27425         * nptl/structsem.sym: Remove.
27426         * sysdeps/unix/sysv/linux/alpha/sem_post.c: Remove.
27427         * sysdeps/unix/sysv/linux/i386/i486/sem_post.S: Remove.
27428         * sysdeps/unix/sysv/linux/i386/i486/sem_timedwait.S: Remove.
27429         * sysdeps/unix/sysv/linux/i386/i486/sem_trywait.S: Remove.
27430         * sysdeps/unix/sysv/linux/i386/i486/sem_wait.S: Remove.
27431         * sysdeps/unix/sysv/linux/i386/i586/sem_post.S: Remove.
27432         * sysdeps/unix/sysv/linux/i386/i586/sem_timedwait.S: Remove.
27433         * sysdeps/unix/sysv/linux/i386/i586/sem_trywait.S: Remove.
27434         * sysdeps/unix/sysv/linux/i386/i586/sem_wait.S: Remove.
27435         * sysdeps/unix/sysv/linux/i386/i686/sem_post.S: Remove.
27436         * sysdeps/unix/sysv/linux/i386/i686/sem_timedwait.S: Remove.
27437         * sysdeps/unix/sysv/linux/i386/i686/sem_trywait.S: Remove.
27438         * sysdeps/unix/sysv/linux/i386/i686/sem_wait.S: Remove.
27439         * sysdeps/unix/sysv/linux/powerpc/sem_post.c: Remove.
27440         * sysdeps/unix/sysv/linux/sh/sem_post.S: Remove.
27441         * sysdeps/unix/sysv/linux/sh/sem_timedwait.S: Remove.
27442         * sysdeps/unix/sysv/linux/sh/sem_trywait.S: Remove.
27443         * sysdeps/unix/sysv/linux/sh/sem_wait.S: Remove.
27444         * sysdeps/unix/sysv/linux/x86_64/sem_post.S: Remove.
27445         * sysdeps/unix/sysv/linux/x86_64/sem_timedwait.S: Remove.
27446         * sysdeps/unix/sysv/linux/x86_64/sem_trywait.S: Remove.
27447         * sysdeps/unix/sysv/linux/x86_64/sem_wait.S: Remove.
27448
27449 2015-01-20  Carlos O'Donell  <carlos@redhat.com>
27450
27451         * INSTALL: Regenerated.
27452
27453         * po/libc.pot: Regenerated.
27454
27455 2015-01-18  Chung-Lin Tang  <cltang@codesourcery.com>
27456             Sandra Loosemore  <sandra@codesourcery.com>
27457             Andrew Jenner  <andrew@codesourcery.com>
27458             Joseph Myers  <joseph@codesourcery.com>
27459             Nathan Sidwell  <nathan@codesourcery.com>
27460
27461         * NEWS: Mention new Nios II port.
27462         * sysdeps/nios2/Implies: New file.
27463         * sysdeps/nios2/Makefile: New file.
27464         * sysdeps/nios2/Subdirs: New file.
27465         * sysdeps/nios2/Versions: New file.
27466         * sysdeps/nios2/__longjmp.S: New file.
27467         * sysdeps/nios2/abort-instr.h: New file.
27468         * sysdeps/nios2/backtrace.c: New file.
27469         * sysdeps/nios2/bits/endian.h: New file.
27470         * sysdeps/nios2/bits/fenv.h: New file.
27471         * sysdeps/nios2/bits/link.h: New file.
27472         * sysdeps/nios2/bits/setjmp.h: New file.
27473         * sysdeps/nios2/bsd-_setjmp.S: New file.
27474         * sysdeps/nios2/bsd-setjmp.S: New file.
27475         * sysdeps/nios2/configure: New generated file.
27476         * sysdeps/nios2/configure.ac: New file.
27477         * sysdeps/nios2/crti.S: New file.
27478         * sysdeps/nios2/crtn.S: New file.
27479         * sysdeps/nios2/dl-init.c: New file.
27480         * sysdeps/nios2/dl-machine.h: New file.
27481         * sysdeps/nios2/dl-sysdep.h: New file.
27482         * sysdeps/nios2/dl-tls.h: New file.
27483         * sysdeps/nios2/dl-trampoline.S: New file.
27484         * sysdeps/nios2/gccframe.h: New file.
27485         * sysdeps/nios2/gmp-mparam.h: New file.
27486         * sysdeps/nios2/jmpbuf-offsets.h: New file.
27487         * sysdeps/nios2/jmpbuf-unwind.h: New file.
27488         * sysdeps/nios2/ldsodefs.h: New file.
27489         * sysdeps/nios2/libc-tls.c: New file.
27490         * sysdeps/nios2/libm-test-ulps: New file.
27491         * sysdeps/nios2/machine-gmon.h: New file.
27492         * sysdeps/nios2/math-tests.h: New file.
27493         * sysdeps/nios2/math_private.h: New file.
27494         * sysdeps/nios2/memusage.h: New file.
27495         * sysdeps/nios2/nptl/Makefile: New file.
27496         * sysdeps/nios2/nptl/bits/pthreadtypes.h: New file.
27497         * sysdeps/nios2/nptl/bits/semaphore.h: New file.
27498         * sysdeps/nios2/nptl/pthread_spin_lock.c: New file.
27499         * sysdeps/nios2/nptl/pthreaddef.h: New file.
27500         * sysdeps/nios2/nptl/tcb-offsets.sym: New file.
27501         * sysdeps/nios2/nptl/tls.h: New file.
27502         * sysdeps/nios2/preconfigure: New file.
27503         * sysdeps/nios2/s_fma.c: New file.
27504         * sysdeps/nios2/s_fmaf.c: New file.
27505         * sysdeps/nios2/setjmp.S: New file.
27506         * sysdeps/nios2/sfp-machine.h: New file.
27507         * sysdeps/nios2/sotruss-lib.c: New file.
27508         * sysdeps/nios2/stackguard-macros.h: New file.
27509         * sysdeps/nios2/stackinfo.h: New file.
27510         * sysdeps/nios2/start.S: New file.
27511         * sysdeps/nios2/sysdep.h: New file.
27512         * sysdeps/nios2/tls-macros.h: New file.
27513         * sysdeps/nios2/tst-audit.h: New file.
27514         * sysdeps/unix/sysv/linux/nios2/Implies: New file.
27515         * sysdeps/unix/sysv/linux/nios2/Makefile: New file.
27516         * sysdeps/unix/sysv/linux/nios2/Versions: New file.
27517         * sysdeps/unix/sysv/linux/nios2/arch-fork.h: New file.
27518         * sysdeps/unix/sysv/linux/nios2/bits/atomic.h: New file.
27519         * sysdeps/unix/sysv/linux/nios2/bits/mman.h: New file.
27520         * sysdeps/unix/sysv/linux/nios2/cacheflush.c: New file.
27521         * sysdeps/unix/sysv/linux/nios2/clone.S: New file.
27522         * sysdeps/unix/sysv/linux/nios2/configure: New generated file.
27523         * sysdeps/unix/sysv/linux/nios2/configure.ac: New file.
27524         * sysdeps/unix/sysv/linux/nios2/getcontext.S: New file.
27525         * sysdeps/unix/sysv/linux/nios2/kernel-features.h: New file.
27526         * sysdeps/unix/sysv/linux/nios2/kernel_rt_sigframe.h: New file.
27527         * sysdeps/unix/sysv/linux/nios2/makecontext.c: New file.
27528         * sysdeps/unix/sysv/linux/nios2/profil-counter.h: New file.
27529         * sysdeps/unix/sysv/linux/nios2/setcontext.S: New file.
27530         * sysdeps/unix/sysv/linux/nios2/shlib-versions: New file.
27531         * sysdeps/unix/sysv/linux/nios2/sigcontextinfo.h: New file.
27532         * sysdeps/unix/sysv/linux/nios2/swapcontext.S: New file.
27533         * sysdeps/unix/sysv/linux/nios2/sys/cachectl.h: New file.
27534         * sysdeps/unix/sysv/linux/nios2/sys/procfs.h: New file.
27535         * sysdeps/unix/sysv/linux/nios2/sys/ucontext.h: New file.
27536         * sysdeps/unix/sysv/linux/nios2/sys/user.h: New file.
27537         * sysdeps/unix/sysv/linux/nios2/syscall.S: New file.
27538         * sysdeps/unix/sysv/linux/nios2/sysdep-cancel.h: New file.
27539         * sysdeps/unix/sysv/linux/nios2/sysdep.S: New file.
27540         * sysdeps/unix/sysv/linux/nios2/sysdep.h: New file.
27541         * sysdeps/unix/sysv/linux/nios2/ucontext_i.sym: New file.
27542         * sysdeps/unix/sysv/linux/nios2/vfork.S: New file.
27543         * sysdeps/unix/sysv/linux/nios2/c++-types.data: New file.
27544         * sysdeps/unix/sysv/linux/nios2/ld.abilist: New file.
27545         * sysdeps/unix/sysv/linux/nios2/libBrokenLocale.abilist: New file.
27546         * sysdeps/unix/sysv/linux/nios2/libanl.abilist: New file.
27547         * sysdeps/unix/sysv/linux/nios2/libc.abilist: New file.
27548         * sysdeps/unix/sysv/linux/nios2/libcrypt.abilist: New file.
27549         * sysdeps/unix/sysv/linux/nios2/libdl.abilist: New file.
27550         * sysdeps/unix/sysv/linux/nios2/libm.abilist: New file.
27551         * sysdeps/unix/sysv/linux/nios2/libnsl.abilist: New file.
27552         * sysdeps/unix/sysv/linux/nios2/libpthread.abilist: New file.
27553         * sysdeps/unix/sysv/linux/nios2/libresolv.abilist: New file.
27554         * sysdeps/unix/sysv/linux/nios2/librt.abilist: New file.
27555         * sysdeps/unix/sysv/linux/nios2/libthread_db.abilist: New file.
27556         * sysdeps/unix/sysv/linux/nios2/libutil.abilist: New file.
27557         * sysdeps/unix/sysv/linux/nios2/localplt.data: New file.
27558
27559 2015-01-16  Stefan Liebler  <stli@linux.vnet.ibm.com>
27560
27561         [BZ #17844]
27562         * sysdeps/unix/sysv/linux/s390/s390-32/getutent.c
27563         (getutent): Use weak_alias in non SHARED case
27564         and default_symbol_version in SHARED case.
27565         * sysdeps/unix/sysv/linux/s390/s390-32/getutent_r.c
27566         (getutent_r, pututline): Likewise.
27567         * sysdeps/unix/sysv/linux/s390/s390-32/getutid.c
27568         (getutid): Likewise.
27569         * sysdeps/unix/sysv/linux/s390/s390-32/getutid_r.c
27570         (getutid_r): Likewise.
27571         * sysdeps/unix/sysv/linux/s390/s390-32/getutline.c
27572         (getutline): Likewise.
27573         * sysdeps/unix/sysv/linux/s390/s390-32/getutline_r.c
27574         (getutline_r): Likewise.
27575         * sysdeps/unix/sysv/linux/s390/s390-32/updwtmp.c
27576         (updwtmp): Likewise.
27577
27578 2015-01-16  Stefan Liebler  <stli@linux.vnet.ibm.com>
27579
27580         [BZ #17848]
27581         * sysdeps/s390/s390-32/memcmp.S
27582         (memcmp_g5): Rename to __memcmp_g5.
27583         * sysdeps/s390/s390-32/memcpy.S
27584         (memcpy_g5): Rename to __memcpy_g5.
27585         Jump to __memcpy_mvcle instead of memcpy_mvcle.
27586         (memcpy_mvcle) Rename to __memcpy_mvcle.
27587         * sysdeps/s390/s390-32/memset.S
27588         (memset_g5): Rename to __memset_g5.
27589         * sysdeps/s390/s390-32/multiarch/ifunc-resolve.c
27590         (IFUNC_RESOLVE): Prefix ifunc-resolve function
27591         and use prefixed functions.
27592         * sysdeps/s390/s390-32/multiarch/memcmp.S
27593         (memcmp_z196): Rename to __memcmp_z196.
27594         (memcmp_z10): Rename to __memcmp_z10.
27595         (memcmp): Set alias to __memcmp_g5.
27596         (bcmp): Set alias to __memcmp_g5.
27597         * sysdeps/s390/s390-32/multiarch/memcpy.S
27598         (memcpy_z196): Rename to __memcpy_z196.
27599         Jump to __memcpy_mvcle instead of memcpy_mvcle.
27600         (memcpy_z10): Rename to __memcpy_z10.
27601         Jump to __memcpy_mvcle instead of memcpy_mvcle.
27602         (memcpy): Set alias to __memcpy_g5.
27603         * sysdeps/s390/s390-32/multiarch/memset.S
27604         (memset_z196): Rename to __memset_z196.
27605         Jump to __memset_mvcle instead of memset_mvcle.
27606         (memset_z10): Rename to __memset_z10.
27607         Jump to __memset_mvcle instead of memset_mvcle.
27608         (memset_mvcle) Rename to __memset_mvcle.
27609         (memset): Set alias to __memset_g5.
27610         * sysdeps/s390/s390-64/memcmp.S
27611         (memcmp_z900): Rename to __memcmp_z900.
27612         * sysdeps/s390/s390-64/memcpy.S
27613         (memcpy_z900): Rename to __memcpy_z900.
27614         Jump to __memcpy_mvcle instead of memcpy_mvcle.
27615         (memcpy_mvcle) Rename to __memcpy_mvcle.
27616         * sysdeps/s390/s390-64/memset.S
27617         (memset_z900): Rename to __memset_z900.
27618         * sysdeps/s390/s390-64/multiarch/ifunc-resolve.c
27619         (IFUNC_RESOLVE): Prefix ifunc-resolve function
27620         and use prefixed functions.
27621         * sysdeps/s390/s390-64/multiarch/memcmp.S
27622         (memcmp_z196): Rename to __memcmp_z196.
27623         (memcmp_z10): Rename to __memcmp_z10.
27624         (memcmp): Set alias to __memcmp_z900.
27625         (bcmp): Set alias to __memcmp_z900.
27626         * sysdeps/s390/s390-64/multiarch/memcpy.S
27627         (memcpy_z196): Rename to __memcpy_z196.
27628         Jump to __memcpy_mvcle instead of memcpy_mvcle.
27629         (memcpy_z10): Rename to __memcpy_z10.
27630         Jump to __memcpy_mvcle instead of memcpy_mvcle.
27631         (memcpy): Set alias to __memcpy_z900.
27632         * sysdeps/s390/s390-64/multiarch/memset.S
27633         (memset_z196): Rename to __memset_z196.
27634         Jump to __memset_mvcle instead of memset_mvcle.
27635         (memset_z10): Rename to __memset_z10.
27636         Jump to __memset_mvcle instead of memset_mvcle.
27637         (memset_mvcle) Rename to __memset_mvcle.
27638         (memset): Set alias to __memset_z900.
27639
27640 2015-01-14  Joseph Myers  <joseph@codesourcery.com>
27641
27642         [BZ #17748]
27643         * sysdeps/powerpc/nofpu/feholdexcpt.c (__feholdexcept): Call
27644         __fesetenv instead of fesetenv.
27645
27646 2015-01-14  Siddhesh Poyarekar  <siddhesh@redhat.com>
27647
27648         * sysdeps/s390/dl-tls.h [IS_IN (rtld)]: Define __tls_get_addr
27649         macro.
27650
27651 2015-01-13  Adhemerval Zanella  <azanella@linux.vnet.ibm.com>
27652
27653         * sysdeps/powerpc/powerpc64/power7/memcmp.S (memcmp): Fix performance
27654         regression on LE.
27655
27656         * sysdeps/powerpc/powerpc64/multiarch/strncmp-power8.S: New file.
27657         * sysdeps/powerpc/powerpc64/power8/strncmp.S: New file.
27658         * sysdeps/powerpc/powerpc64/multiarch/Makefile [sysdep_routines]: Add
27659         strncmp-power8 object.
27660         * sysdeps/powerpc/powerpc64/multiarch/ifunc-impl-list.c
27661         (__libc_ifunc_impl_list): Add __strncmp_power8 implementation.
27662         * sysdeps/powerpc/powerpc64/multiarch/strncmp.c (strncmp): Likewise.
27663         * NEWS: Update.
27664
27665 2015-01-13  Rajalakshmi Srinivasaraghavan  <raji@linux.vnet.ibm.com>
27666             Adhemerval Zanella  <azanella@linux.vnet.ibm.com>
27667
27668         * sysdeps/powerpc/powerpc64/power7/strcmp.S (strcmp): Optimize
27669         trailing byte check.
27670
27671 2015-01-13  David S. Miller  <davem@davemloft.net>
27672
27673         * include/signal.h (__sigreturn): Guard with __USE_MISC.
27674
27675 2015-01-13  Roland McGrath  <roland@hack.frob.com>
27676
27677         * login/logout.c (logout): Use memset rather than bzero.
27678         * nis/nss_compat/compat-pwd.c (getpwent_next_file): Likewise.
27679         * nis/nss_compat/compat-spwd.c (getspent_next_file): Likewise.
27680         * resolv/gethnamaddr.c (gethostbyaddr): Use memcmp rather than bcmp.
27681         (_gethtbyaddr): Likewise.
27682         * locale/programs/simple-hash.c (bcopy): Macro removed.
27683
27684 2015-01-13  Adhemerval Zanella  <azanella@linux.vnet.ibm.com>
27685
27686         * sysdeps/powerpc/powerpc64/multiarch/Makefile [sysdep_routines]:
27687         Add strcmp-power8 object.
27688         * sysdeps/powerpc/powerpc64/multiarch/ifunc-impl-list.c
27689         (__libc_ifunc_impl_list): Add __strcmp_power8 implementation.
27690         * sysdeps/powerpc/powerpc64/multiarch/strcmp-power8.S: New file.
27691         * sysdeps/powerpc/powerpc64/multiarch/strcmp.c (strcmp): Add
27692         __strcmp_power8 implementation.
27693         * sysdeps/powerpc/powerpc64/power8/strcmp.S: New file.
27694         * NEWS: Update.
27695
27696         * sysdeps/powerpc/powerpc64/multiarch/Makefile [sysdep_routines]:
27697         Add strncpy-power8 and stpncpy-power8 objects.
27698         * sysdeps/powerpc/powerpc64/multiarch/ifunc-impl-list.c
27699         (__libc_ifunc_impl_list): Add __strncpy_power8 and stpncpy_power8
27700         implementations.
27701         * sysdeps/powerpc/powerpc64/multiarch/stpncpy-power8.S: New file.
27702         * sysdeps/powerpc/powerpc64/multiarch/stpncpy.c (__stpncpy): Add
27703         __stpncpy_power8 implementation.
27704         * sysdeps/powerpc/powerpc64/multiarch/strncpy-power8.S: New file.
27705         * sysdeps/powerpc/powerpc64/multiarch/strncpy.c (strncpy): Add
27706         __strncpy_power8 implementation.
27707         * sysdeps/powerpc/powerpc64/power8/stpncpy.S: New file.
27708         * sysdeps/powerpc/powerpc64/power8/strncpy.S: New file.
27709         * NEWS: Update.
27710
27711         * sysdeps/powerpc/powerpc64/multiarch/strncat-power7.c: New file.
27712         * sysdeps/powerpc/powerpc64/multiarch/strncat-power7.S: Remove file.
27713         * sysdeps/powerpc/powerpc64/power7/strncat.S: Likewise.
27714
27715         * sysdeps/powerpc/powerpc64/multiarch/Makefile [sysdep_routines]: Add
27716         strncat-power8 object.
27717         * sysdeps/powerpc/powerpc64/multiarch/strcat.c (strcat): Add
27718         __strcat_power8 implementation.
27719         * sysdeps/powerpc/powerpc64/multiarch/ifunc-impl-list.c
27720         (__libc_ifunc_impl_list): Add __strcat_power8 implementation.
27721         * sysdeps/powerpc/powerpc64/multiarch/strcat-power8.c: New file:
27722         optimized strcat for power8.
27723
27724         * sysdeps/powerpc/powerpc64/multiarch/Makefile [sysdep_routines]: Add
27725         strcpy-power8 and stpcpy-power8 objects.
27726         * sysdeps/powerpc/powerpc64/multiarch/ifunc-impl-list.c
27727         (__libc_ifunc_impl_list): Add __strcpy_power8 and __stpcpy_power8
27728         implementations.
27729         * sysdeps/powerpc/powerpc64/multiarch/stpcpy-power8.S: New file:
27730         multiarch stpcpy implementation for POWER8.
27731         * sysdeps/powerpc/powerpc64/multiarch/strcpy-power8.S: New file;
27732         multiarch strcpy implementation for POWER8.
27733         * sysdeps/powerpc/powerpc64/multiarch/strcpy.c (strcpy): Add
27734         __strcpy_power8 function.
27735         * sysdeps/powerpc/powerpc64/power8/stpcpy.S: New file: optimized
27736         stpcpy for POWER8.
27737         * sysdeps/powerpc/powerpc64/power8/strcpy.S: New file: optimized
27738         strcpy for POWER8.
27739         * NEWS: Update.
27740
27741 2015-01-13  Leonhard Holz  <leonhard.holz@web.de>
27742
27743         [BZ #16009]
27744         * string/strxfrm_l.c (STRXFRM): Allocate fixed size cache for
27745         weights and rules. Use do_xfrm_cached if data fits in cache,
27746         do_xfrm otherwise.  Moved former main loop to...
27747         * (do_xfrm_cached): New function.
27748         * (do_xfrm): Non-caching version of do_xfrm_cached. Uses
27749         find_idx, find_position and stack_push.
27750         * (find_idx): New function.
27751         * (find_position): Likewise.
27752         * localedata/sort-test.sh: Added test run for do_xfrm.
27753         * localedata/xfrm-test.c (main): Added command line option
27754         -nocache to run the test with strings that are too large for
27755         the STRXFRM cache.
27756
27757 2015-01-13  Torvald Riegel  <triegel@redhat.com>
27758
27759         * sysdeps/nptl/fork.c (__libc_fork): Provide address of futex
27760         variable to lll_futex_wake call, not the value itself.
27761
27762 2015-01-12  Joseph Myers  <joseph@codesourcery.com>
27763
27764         [BZ #17803]
27765         * sysdeps/ieee754/ldbl-96/s_scalblnl.c (twom63): Rename to
27766         twom64.  Adjust value to 0x1p-64L.
27767         (__scalblnl): Only return standard underflowing result for K <=
27768         -64 not K <= -63; adjust exponent for underflowing result by 64
27769         not 63.
27770         * math/libm-test.inc (scalbn_test_data): Add more tests.
27771         (scalbln_test_data): Likewise.
27772
27773         [BZ #17834]
27774         * sysdeps/ieee754/ldbl-96/s_scalblnl.c (two63): Change value to
27775         0x1p63L.
27776         (__scalblnl): Get new exponent of adjusted subnormal value from ES
27777         not HX.
27778         * math/libm-test.inc (scalbn_test_data): Add more tests.
27779         (scalbln_test_data): Likewise.
27780
27781 2015-01-12  Adhemerval Zanella  <azanella@linux.vnet.ibm.com>
27782             Stefani Seibold  <stefani@seibold.net>
27783
27784         * sysdeps/unix/sysv/linux/x86_64/Makefile [$(subdir) = elf]
27785         (sysdep_routines): Add dl-vdso here, ...
27786         * sysdeps/unix/sysv/linux/x86/Makefile [$(subdir) = elf]
27787         (sysdep_routines): ... not here.
27788         * sysdeps/unix/sysv/linux/i386/gettimeofday.c: New file: set syscall
27789         fallback when vDSO is not presented.
27790         * sysdeps/unix/sysv/linux/x86_64/init-first.c (__vdso_clock_gettime):
27791         Define with libc_hidden_proto/libc_hidden_data_def definitions.
27792         (_libc_vdso_platform_setup): Rename to __vdso_platform_setup.
27793         * sysdeps/unix/sysv/linux/i386/init-first.c: New file: likewise.
27794         * sysdeps/unix/sysv/linux/i386/time.c: New file: likewise.
27795         * sysdeps/unix/sysv/linux/x86_64/bits/libc-vdso.h: Moved to ...
27796         * sysdeps/unix/sysv/linux/x86/libc-vdso.h: ... here.
27797         * sysdeps/unix/sysv/linux/x86_64/clock_gettime.c: Move to ...
27798         * sysdeps/unix/sysv/linux/x86/clock_gettime.c: ... here.
27799         * sysdeps/unix/sysv/linux/x86_64/gettimeofday.c: Move to ...
27800         * sysdeps/unix/sysv/linux/x86/gettimeofday.c: ... here.  Also added
27801         fallback configurable symbol when vDSO is not available.
27802         * sysdeps/unix/sysv/linux/x86_64/time.c: Move to ...
27803         * sysdeps/unix/sysv/linux/x86/time.c: ... here.  Also refactored to
27804         be able to redefine fallback symbol when vDSO is not available.
27805         * sysdeps/unix/sysv/linux/x86_64/timespec_get.c: Move to ...
27806         * sysdeps/unix/sysv/linux/x86/timespec_get.c: ... here.
27807
27808 2015-01-12  Adhemerval Zanella  <azanella@linux.vnet.ibm.com>
27809
27810         * sysdeps/powerpc/nptl/tls.h (tcbhead_t): Add tm_capable field.
27811         (TLS_INIT_TP): Add tm_capable initialization.
27812         (TLS_DEFINE_INIT_TP): Likewise.
27813         (THREAD_GET_TM_CAPABLE): New file: get tm_capable field value from
27814         TCB.
27815         (THREAD_SET_TM_CAPABLE): New file: set tm_capable field value in TCB.
27816         * sysdeps/powerpc/nptl/tcb-offsets.sym (TM_CAPABLE): Add field offset
27817         calculation.
27818         * sysdeps/powerpc/powerpc32/sysdep.h (DO_CALL): Abort hardware
27819         transactoion is lock elision is built and TCB tm_capable is set.
27820         * sysdeps/powerpc/powerpc64/sysdep.h (DO_CALL): Likewise.
27821         * sysdeps/unix/sysv/linux/powerpc/powerpc32/sysdep.h
27822         (INTERNAL_SYSCALL_NCS): Likewise.
27823         * sysdeps/unix/sysv/linux/powerpc/powerpc64/sysdep.h
27824         (INTERNAL_SYSCALL_NCS): Likewise.
27825         * sysdeps/powerpc/sysdep.h (ABORT_TRANSACTION): New define.
27826
27827         * sysdeps/powerpc/nptl/elide.h: New file: generic lock elision support
27828         for powerpc.
27829         * sysdeps/unix/sysv/linux/powerpc/bits/pthreadtypes.h
27830         [pthread_rwlock_t] (__pad1): Change size to 7 bytes in 64 bits case
27831         and remove it for 32 bits case.
27832         [pthread_rwlock_t] (__rwelision): New field for lock elision.
27833         (__PTHREAD_RWLOCK_ELISION_EXTRA): Adjust for new lock elision field
27834         initialization.
27835         * sysdeps/unix/sysv/linux/powerpc/elision-conf.c (elision_init):
27836         Disable lock elision with rdlocks if elision is not available.
27837
27838         * sysdeps/unix/sysv/linux/powerpc/Makefile [nptl]
27839         (sysdep_routines): Add lock elision objects.
27840         * sysdeps/unix/sysv/linux/powerpc/bits/pthreadtypes.h
27841         [pthread_mutex_t] (__spins): Rework to add lock elision field.
27842         [pthread_mutex_t] (__elision): Add field.
27843         [__PTHREAD_SPINS]: Adjust to init lock elision field.
27844         * sysdeps/unix/sysv/linux/powerpc/elision-conf.c: New file: lock
27845         elision definitions for powerpc.
27846         * sysdeps/unix/sysv/linux/powerpc/elision-lock.c: New file:
27847         implementation of lock elision for powerpc.
27848         * sysdeps/unix/sysv/linux/powerpc/elision-timed.c: New file:
27849         implementation of timed lock elision for powerpc.
27850         * sysdeps/unix/sysv/linux/powerpc/elision-trylock.c: New file:
27851         implementation of trylock with lock elision for powerpc.
27852         * sysdeps/unix/sysv/linux/powerpc/elision-unlock.c: New file:
27853         implementaion of unlock for lock elision for powerpc.
27854         * sysdeps/unix/sysv/linux/powerpc/force-elision.h: New file:
27855         automatic enable lock elision for mutexes.
27856         * sysdeps/unix/sysv/linux/powerpc/htm.h: New file: hardware
27857         transaction execution definitions for powerpc.
27858         * sysdeps/unix/sysv/linux/powerpc/lowlevellock.h: New file: add TLE
27859         definitions.
27860         * sysdeps/unix/sysv/linux/powerpc/pthread_mutex_cond_lock.c: New file.
27861         * sysdeps/unix/sysv/linux/powerpc/pthread_mutex_lock.c: Likewise.
27862         * sysdeps/unix/sysv/linux/powerpc/pthread_mutex_timedlock.c: Likewise.
27863         * sysdeps/unix/sysv/linux/powerpc/pthread_mutex_trylock.c: Likewise.
27864         * NEWS: Update.
27865
27866 2015-01-09  Roland McGrath  <roland@hack.frob.com>
27867
27868         * sysdeps/posix/shm-directory.c: Use <> rather than ""
27869         for #include of <shm-directory.h>.
27870
27871 2015-01-09  Chung-Lin Tang  <cltang@codesourcery.com>
27872
27873         * elf/dynamic-link.h (_ELF_DYNAMIC_DO_RELOC): Remove MIN() and
27874         assign raw DT_REL[A]COUNT value to ranges[0].nrelative.
27875
27876 2015-01-09  Matthew Fortune <matthew.fortune@imgtec.com>
27877
27878         [BZ #17791]
27879         * NEWS: Mention bug fix.
27880         * sysdepsysdeps/unix/sysv/linux/microblaze/sys/user.h
27881         (PAGE_SHIFT, PAGE_SIZE, PAGE_MASK, NBPG, UPAGES): Remove.
27882         (HOST_TEXT_START_ADDR, HOST_STACK_END_ADDR): Remove.
27883
27884 2015-01-09  Torvald Riegel <triegel@redhat.com>
27885
27886         * sysdeps/unix/sysv/linux/microblaze/lowlevellock.h: Delete file.
27887
27888 2015-01-09  Torvald Riegel <triegel@redhat.com>
27889
27890         * sysdeps/unix/sysv/linux/microblaze/pthread_once.c: Delete file.
27891
27892 2015-01-09  David Holsgrove  <david.holsgrove@xilinx.com>
27893
27894         * sysdeps/microblaze/jmpbuf-unwind.h (_jmpbuf_sp): Declare SP as void
27895         pointer and cast to uintptr_t.
27896
27897 2015-01-09  David Holsgrove  <david.holsgrove@xilinx.com>
27898
27899         * sysdeps/microblaze/nptl/tls.h (__microblaze_get_thread_area): Function
27900         removed.
27901         (READ_THREAD_POINTER): Use __microblaze_thread_area instead.
27902
27903 2015-01-09  David Holsgrove  <david.holsgrove@xilinx.com>
27904
27905         * sysdeps/microblaze/nptl/tls.h (TLS_INIT_TP): Use NULL instead
27906         of 0.
27907
27908 2015-01-08  Roland McGrath  <roland@hack.frob.com>
27909
27910         * sysdeps/pthread/timer_routines.c: Fix <pthreadP.h> include to use
27911         <nptl/pthreadP.h> instead.
27912         * sysdeps/pthread/aio_notify.c: Include <signal.h> for raise decl.
27913
27914         * signal/allocrtsig.c (RESERVED_SIGRT): New macro, defined to 0 if not
27915         already defined.
27916         [__SIGRTMIN] (init): Function removed.
27917         [__SIGRTMIN] (initialized): Variable removed.
27918         [!__SIGRTMIN] (current_rtmin, current_rtmax): Variables removed.
27919         [__SIGRTMIN] (current_rtmin, current_rtmax): Initialize to
27920         __SIGRTMIN + RESERVED_SIGRT and __SIGRTMAX, respectively.
27921         (__libc_current_sigrtmin) [__SIGRTMIN]: Don't call init.
27922         (__libc_current_sigrtmin) [!__SIGRTMIN]: Just return -1.
27923         (__libc_current_sigrtmin): Add __libc_current_sigrtmin_private alias.
27924         (__libc_current_sigrtmax) [__SIGRTMIN]: Don't call init.
27925         (__libc_current_sigrtmax) [!__SIGRTMIN]: Just return -1.
27926         (__libc_current_sigrtmax): Add __libc_current_sigrtmax_private alias.
27927         (__libc_allocate_rtsig) [__SIGRTMIN]: Don't call init.
27928         (__libc_allocate_rtsig): Add __libc_allocate_rtsig_private alias.
27929         * sysdeps/nptl/allocrtsig.c: New file.
27930         * sysdeps/unix/sysv/linux/allocrtsig.c: File removed.
27931         * sysdeps/unix/sysv/linux/testrtsig.h: File removed.
27932         * sysdeps/generic/testrtsig.h: File removed.
27933
27934         * nptl/pthread_sigmask.c [SIGCANCEL || SIGTIMER || SIGSETXID]: #error.
27935         (pthread_sigmask): Call sigprocmask, not __sigprocmask.
27936
27937         * nptl/nptl-init.c (pthread_functions): Conditionalize
27938         .ptr__nptl_setxid initialization on [SIGSETXID].
27939
27940         * sysdeps/nptl/sys/procfs.h: New file.
27941         * nptl_db/Makefile (headers): Add it.
27942         * sysdeps/unix/sysv/linux/Makefile (sysdep_headers): Don't add it.
27943
27944         * nptl/pthreadP.h (check_cpuset_attr): Moved ...
27945         * sysdeps/unix/sysv/linux/check-cpuset.h: ... to this new file.
27946         * nptl/pthread_attr_setaffinity.c: Include it.
27947         * nptl/pthread_setattr_default_np.c: Likewise.
27948         * nptl/check-cpuset.h: New file.
27949
27950 2015-01-08  Richard Henderson  <rth@redhat.com>
27951
27952         * elf/Makefile (CFLAGS-tst-execstack-mod.c): Add -Wno-trampolines
27953         (CFLAGS-tst-execstack-prog.c): Likewise.
27954         * nptl/Makefile (CFLAGS-tst-execstack-mod.c): Likewise.
27955
27956 2015-01-08  Chung-Lin Tang  <cltang@codesourcery.com>
27957             Sandra Loosemore  <sandra@codesourcery.com>
27958             Andrew Jenner  <andrew@codesourcery.com>
27959             Joseph Myers  <joseph@codesourcery.com>
27960             Nathan Sidwell  <nathan@codesourcery.com>
27961
27962         * elf/elf.h (EM_ALTERA_NIOS2): New machine number for Altera Nios II.
27963         (DT_NIOS2_GP): New dynamic entry type for Nios II _gp address.
27964         (R_NIOS2_NONE,R_NIOS2_S16,R_NIOS2_U16): Define Nios II relocations.
27965         (R_NIOS2_PCREL16,R_NIOS2_CALL26,R_NIOS2_IMM5): Likewise.
27966         (R_NIOS2_CACHE_OPX,R_NIOS2_IMM6,R_NIOS2_IMM8,R_NIOS2_HI16): Likewise.
27967         (R_NIOS2_LO16,R_NIOS2_HIADJ16,R_NIOS2_BFD_RELOC_32): Likewise.
27968         (R_NIOS2_BFD_RELOC_16,R_NIOS2_BFD_RELOC_8,R_NIOS2_GPREL): Likewise.
27969         (R_NIOS2_GNU_VTINHERIT,R_NIOS2_GNU_VTENTRY,R_NIOS2_UJMP): Likewise.
27970         (R_NIOS2_CJMP,R_NIOS2_CALLR,R_NIOS2_ALIGN,R_NIOS2_GOT16): Likewise.
27971         (R_NIOS2_CALL16,R_NIOS2_GOTOFF_LO,R_NIOS2_GOTOFF_HA): Likewise.
27972         (R_NIOS2_PCREL_LO,R_NIOS2_PCREL_HA,R_NIOS2_TLS_GD16): Likewise.
27973         (R_NIOS2_TLS_LDM16,R_NIOS2_TLS_LDO16,R_NIOS2_TLS_IE16): Likewise.
27974         (R_NIOS2_TLS_LE16,R_NIOS2_TLS_DTPMOD,R_NIOS2_TLS_DTPREL): Likewise.
27975         (R_NIOS2_TLS_TPREL,R_NIOS2_COPY,R_NIOS2_GLOB_DAT): Likewise.
27976         (R_NIOS2_JUMP_SLOT,R_NIOS2_RELATIVE,R_NIOS2_GOTOFF): Likewise.
27977         (R_NIOS2_CALL26_NOAT,R_NIOS2_GOT_LO,R_NIOS2_GOT_HA): Likewise.
27978         (R_NIOS2_CALL_LO,R_NIOS2_CALL_HA): Likewise.
27979
27980 2015-01-08  Adhemerval Zanella  <azanella@linux.vnet.ibm.com>
27981
27982         * sysdeps/unix/sysv/linux/futimens.c (futimens): Use address of first
27983         timespec struct member in syscall macro.
27984         * sysdeps/unix/sysv/linux/utimensat.c (utimensat): Likewise.
27985         * sysdeps/unix/sysv/linux/futimesat.c (futimesat): Use address of
27986         first timeval struct member in syscall macro.
27987         * sysdeps/unix/sysv/linux/utimes.c (__utimeS): Likewise.
27988
27989 2015-01-07  Joseph Myers  <joseph@codesourcery.com>
27990
27991         [BZ #17748]
27992         * include/fenv.h (__feupdateenv): Use libm_hidden_proto.
27993         * math/feupdateenv.c (__feupdateenv): Use libm_hidden_def.
27994         * sysdeps/aarch64/fpu/feupdateenv.c (feupdateenv): Rename to
27995         __feupdateenv and define as weak alias of __feupdateenv.  Use
27996         libm_hidden_weak.
27997         * sysdeps/alpha/fpu/feupdateenv.c (__feupdateenv): Use
27998         libm_hidden_def.
27999         * sysdeps/arm/feupdateenv.c (feupdateenv): Rename to __feupdateenv
28000         and define as weak alias of __feupdateenv.  Use libm_hidden_weak.
28001         * sysdeps/hppa/fpu/feupdateenv.c (feupdateenv): Likewise.
28002         * sysdeps/i386/fpu/feupdateenv.c (__feupdateenv): Use
28003         libm_hidden_def.
28004         * sysdeps/ia64/fpu/feupdateenv.c (feupdateenv): Rename to
28005         __feupdateenv and define as weak alias of __feupdateenv.  Use
28006         libm_hidden_weak.
28007         * sysdeps/m68k/fpu/feupdateenv.c (__feupdateenv): Use
28008         libm_hidden_def.
28009         * sysdeps/mips/fpu/feupdateenv.c (feupdateenv): Rename to
28010         __feupdateenv and define as weak alias of __feupdateenv.  Use
28011         libm_hidden_weak.
28012         * sysdeps/powerpc/fpu/feupdateenv.c (__feupdateenv): Use
28013         libm_hidden_def.
28014         * sysdeps/powerpc/nofpu/feupdateenv.c (__feupdateenv): Likewise.
28015         * sysdeps/powerpc/powerpc32/e500/nofpu/feupdateenv.c
28016         (__feupdateenv): Likewise.
28017         * sysdeps/s390/fpu/feupdateenv.c (feupdateenv): Rename to
28018         __feupdateenv and define as weak alias of __feupdateenv.  Use
28019         libm_hidden_weak.
28020         * sysdeps/sh/sh4/fpu/feupdateenv.c (feupdateenv): Likewise.
28021         * sysdeps/sparc/fpu/feupdateenv.c (__feupdateenv): Use
28022         libm_hidden_def.
28023         * sysdeps/tile/math_private.h (__feupdateenv): New inline
28024         function.
28025         * sysdeps/x86_64/fpu/feupdateenv.c (__feupdateenv): Use
28026         libm_hidden_def.
28027         * sysdeps/generic/math_private.h (default_libc_feupdateenv): Call
28028         __feupdateenv instead of feupdateenv.
28029         (default_libc_feupdateenv_test): Likewise.
28030         (libc_feresetround_ctx): Likewise.
28031
28032 2015-01-07  Adhemerval Zanella  <azanella@linux.vnet.ibm.com>
28033
28034         * sysdeps/unix/sysv/linux/mips/pread.c (__libc_pread): Fix function
28035         prototype.
28036
28037 2015-01-07  Chris Metcalf  <cmetcalf@ezchip.com>
28038
28039         * posix/regcomp.c (parse_bracket_exp): Initialize type to
28040         COLL_SYM in a couple of places to avoid uninitialized variable
28041         wanings on tilegx gcc 4.8.2.
28042
28043 2015-01-07  Richard Earnshaw  <rearnsha@arm.com>
28044
28045         * sysdeps/aarch64/strcpy.S: New file.
28046         * sysdeps/aarch64/stpcpy.S: New file.
28047         * NEWS: Updated.
28048
28049 2015-01-07  Richard Earnshaw  <rearnsha@arm.com>
28050
28051         * sysdeps/aarch64/strrchr.S: New file.
28052         * NEWS: Updated.
28053
28054 2015-01-07  Eric Biggers  <ebiggers3@gmail.com>
28055
28056         [BZ #17658]
28057         * stdlib/setenv.c: Fix memory leak when setting large,
28058         duplicate string.
28059
28060 2015-01-06  Vladimir A. Nazarenko  <naszar@ya.ru>
28061
28062         [BZ #17273]
28063         * misc/mntent_r.c (__getmntent_r): Cut off trailing spaces
28064         and tabs from buffer before parsing fstab entry.
28065         * misc/tst-mntent.c (main): Add test for mount entry with
28066         trailing spaces and tabs.
28067
28068 2015-01-06  Joseph Myers  <joseph@codesourcery.com>
28069
28070         [BZ #17748]
28071         * include/fenv.h (__fesetround): Declare.  Use libm_hidden_proto.
28072         * math/fesetround.c (fesetround): Rename to __fesetround and
28073         define as weak alias of __fesetround.  Use libm_hidden_weak.
28074         * sysdeps/aarch64/fpu/fesetround.c (fesetround): Likewise.
28075         * sysdeps/alpha/fpu/fesetround.c (fesetround): Likewise.
28076         * sysdeps/arm/fesetround.c (fesetround): Likewise.
28077         * sysdeps/hppa/fpu/fesetround.c (fesetround): Likewise.
28078         * sysdeps/i386/fpu/fesetround.c (fesetround): Likewise.
28079         * sysdeps/ia64/fpu/fesetround.c (fesetround): Likewise.
28080         * sysdeps/m68k/fpu/fesetround.c (fesetround): Likewise.
28081         * sysdeps/mips/fpu/fesetround.c (fesetround): Likewise.
28082         * sysdeps/powerpc/fpu/fenv_libc.h (__fesetround): Rename to
28083         __fesetround_inline.
28084         * sysdeps/powerpc/fpu/fenv_private.h (libc_fesetround_ppc): Call
28085         __fesetround_inline instead of __fesetround.
28086         * sysdeps/powerpc/fpu/fesetround.c (fesetround): Rename to
28087         __fesetround and define as weak alias of __fesetround.  Use
28088         libm_hidden_weak.  Call __fesetround_inline instead of
28089         __fesetround.
28090         * sysdeps/powerpc/nofpu/fesetround.c (fesetround): Rename to
28091         __fesetround and define as weak alias of __fesetround.  Use
28092         libm_hidden_weak.
28093         * sysdeps/powerpc/powerpc32/e500/nofpu/fesetround.c (fesetround):
28094         Likewise.
28095         * sysdeps/s390/fpu/fesetround.c (fesetround): Likewise.
28096         * sysdeps/sh/sh4/fpu/fesetround.c (fesetround): Likewise.
28097         * sysdeps/sparc/fpu/fesetround.c (fesetround): Likewise.
28098         * sysdeps/tile/math_private.h (__fesetround): New inline function.
28099         * sysdeps/x86_64/fpu/fesetround.c (fesetround): Rename to
28100         __fesetround and define as weak alias of __fesetround.  Use
28101         libm_hidden_weak.
28102         * sysdeps/generic/math_private.h (default_libc_fesetround): Call
28103         __fesetround instead of fesetround.
28104         (default_libc_feholdexcept_setround): Likewise.
28105         (libc_feholdsetround_ctx): Likewise.
28106         (libc_feholdsetround_noex_ctx): Likewise.
28107
28108         [BZ #17748]
28109         * include/fenv.h (__fesetenv): Use libm_hidden_proto.
28110         * math/fesetenv.c (__fesetenv): Use libm_hidden_def.
28111         * sysdeps/aarch64/fpu/fesetenv.c (fesetenv): Rename to __fesetenv
28112         and define as weak alias of __fesetenv.  Use libm_hidden_weak.
28113         * sysdeps/alpha/fpu/fesetenv.c (__fesetenv): Use libm_hidden_def.
28114         * sysdeps/arm/fesetenv.c (fesetenv): Rename to __fesetenv and
28115         define as weak alias of __fesetenv.  Use libm_hidden_weak.
28116         * sysdeps/hppa/fpu/fesetenv.c (fesetenv): Likewise.
28117         * sysdeps/i386/fpu/fesetenv.c (__fesetenv): Use libm_hidden_def.
28118         * sysdeps/ia64/fpu/fesetenv.c (fesetenv): Rename to __fesetenv and
28119         define as weak alias of __fesetenv.  Use libm_hidden_weak.
28120         * sysdeps/m68k/fpu/fesetenv.c (__fesetenv): Use libm_hidden_def.
28121         * sysdeps/mips/fpu/fesetenv.c (fesetenv): Rename to __fesetenv and
28122         define as weak alias of __fesetenv.  Use libm_hidden_weak.
28123         * sysdeps/powerpc/fpu/fesetenv.c (__fesetenv): Use
28124         libm_hidden_def.
28125         * sysdeps/powerpc/nofpu/fesetenv.c (__fesetenv): Likewise.
28126         * sysdeps/powerpc/powerpc32/e500/nofpu/fesetenv.c (__fesetenv):
28127         Likewise.
28128         * sysdeps/s390/fpu/fesetenv.c (fesetenv): Rename to __fesetenv and
28129         define as weak alias of __fesetenv.  Use libm_hidden_weak.
28130         * sysdeps/sh/sh4/fpu/fesetenv.c (fesetenv): Likewise.
28131         * sysdeps/sparc/fpu/fesetenv.c (__fesetenv): Use libm_hidden_def.
28132         * sysdeps/tile/math_private.h (__fesetenv): New inline function.
28133         * sysdeps/x86_64/fpu/fesetenv.c (fesetenv): Rename to __fesetenv
28134         and define as weak alias of __fesetenv.  Use libm_hidden_weak.
28135         * sysdeps/generic/math_private.h (default_libc_fesetenv): Use
28136         __fesetenv instead of fesetenv.
28137         (libc_feresetround_noex_ctx): Likewise.
28138         * sysdeps/alpha/fpu/feupdateenv.c (__feupdateenv): Likewise.
28139         * sysdeps/hppa/fpu/feupdateenv.c (feupdateenv): Likewise.
28140         * sysdeps/i386/fpu/feupdateenv.c (__feupdateenv): Likewise.
28141         * sysdeps/ia64/fpu/feupdateenv.c (feupdateenv): Likewise.
28142         * sysdeps/m68k/fpu/feupdateenv.c (__feupdateenv): Likewise.
28143         * sysdeps/mips/fpu/feupdateenv.c (feupdateenv): Likewise.
28144         * sysdeps/powerpc/nofpu/feupdateenv.c (__feupdateenv): Likewise.
28145         * sysdeps/powerpc/powerpc32/e500/nofpu/feupdateenv.c
28146         (__feupdateenv): Likewise.
28147         * sysdeps/s390/fpu/feupdateenv.c (feupdateenv): Likewise.
28148         * sysdeps/sh/sh4/fpu/feupdateenv.c (feupdateenv): Likewise.
28149         * sysdeps/sparc/fpu/feupdateenv.c (__feupdateenv): Likewise.
28150         * sysdeps/x86_64/fpu/feupdateenv.c (__feupdateenv): Likewise.
28151
28152 2015-01-06  Aurelien Jarno  <aurelien@aurel32.net>
28153
28154         [BZ #17806]
28155         * resolv/res_init.c (__res_iclose): Only clear nsinit if the
28156         addresses have been freed.
28157
28158 2015-01-06  Aurelien Jarno  <aurelien@aurel32.net>
28159
28160         * resolv/res_init.c (__res_vinit): Improve comments about nserv
28161         and nservall.
28162
28163 2015-01-06  Ondřej Bílka  <neleai@seznam.cz>
28164
28165         * sysdeps/unix/sysv/linux/check_pf.c (make_request):
28166         Clean up check_pf allocation pattern. addresses
28167
28168 2015-01-06  Adhemerval Zanella  <azanella@linux.vnet.ibm.com>
28169
28170         * nptl/pthread_cancel.c (pthread_cancel): Use ANSI prototype.
28171         * nptl/pthread_cond_timedwait.c (__pthread_cond_timedwait): Likewise.
28172         * nptl/pthread_cond_wait.c (__pthread_cond_wait): Likewise.
28173         * nptl/pthread_exit.c (__pthread_exit): Likewise.
28174         * nptl/pthread_join.c (pthread_join): Likewise.
28175         * nptl/pthread_timedjoin.c (pthread_timedjoin_np): Likewise.
28176         * sysdeps/posix/waitid.c (__waitid): Likewise.
28177         * sysdeps/unix/sysv/linux/arm/pread.c (__libc_pread): Likewise.
28178         * sysdeps/unix/sysv/linux/arm/pread64.c (__libc_pread64): Likewise.
28179         * sysdeps/unix/sysv/linux/arm/pwrite.c (__libc_pwrite): Likewise.
28180         * sysdeps/unix/sysv/linux/arm/pwrite64.c (__libc_pwrite64): Likewise.
28181         * sysdeps/unix/sysv/linux/generic/wordsize-32/pread.c (__libc_pread):
28182         Likewise.
28183         * sysdeps/unix/sysv/linux/generic/wordsize-32/pread64.c
28184         (__libc_pread64): Likewise.
28185         * sysdeps/unix/sysv/linux/generic/wordsize-32/pwrite.c
28186         (__libc_pwrite): Likewise.
28187         * sysdeps/unix/sysv/linux/generic/wordsize-32/pwrite64.c
28188         (__libc_pwrite64): Likewsie.
28189         * sysdeps/unix/sysv/linux/mips/pread.c (__libc_pread): Likewise.
28190         * sysdeps/unix/sysv/linux/mips/pread64.c (__libc_pread64): Likewise.
28191         * sysdeps/unix/sysv/linux/mips/pwrite.c (__libc_pwrite): Likewise.
28192         * sysdeps/unix/sysv/linux/mips/pwrite64.c (__libc_pwrite64): Likewise.
28193         * sysdeps/unix/sysv/linux/msgrcv.c (__libc_msgrcv): Likewise.
28194         * sysdeps/unix/sysv/linux/msgsnd.c (__libc_msgsnd): Likewise.
28195         * sysdeps/unix/sysv/linux/openat.c (OPENAT_NOT_CANCEL): Likewise.
28196         * sysdeps/unix/sysv/linux/powerpc/powerpc32/pread.c (__libc_pread):
28197         Likewise.
28198         * sysdeps/unix/sysv/linux/powerpc/powerpc32/pread64.c
28199         (__libc_pread64): Likewise.
28200         * sysdeps/unix/sysv/linux/powerpc/powerpc32/pwrite.c (__libc_pwrite):
28201         Likewise.
28202         * sysdeps/unix/sysv/linux/powerpc/powerpc32/pwrite64.c
28203         (__libc_pwrite64): Likewise.
28204         * sysdeps/unix/sysv/linux/pread.c (__libc_pread): Likewise.
28205         * sysdeps/unix/sysv/linux/pread64.c (__libc_pread64): Likewise.
28206         * sysdeps/unix/sysv/linux/preadv.c (PREADV): Likewise.
28207         * sysdeps/unix/sysv/linux/pthread_kill.c (__pthread_kill): Likewise.
28208         * sysdeps/unix/sysv/linux/pwrite.c (__libc_pwrite): Likewise.
28209         * sysdeps/unix/sysv/linux/pwrite64.c (__libc_pwrite64): Likewise.
28210         * sysdeps/unix/sysv/linux/pwritev.c (__libc_pwritev): Likewise.
28211         * sysdeps/unix/sysv/linux/sh/pread.c (__libc_pread): Likewise.
28212         * sysdeps/unix/sysv/linux/sh/pread64.c (__libc_pread64): Likewise.
28213         * sysdeps/unix/sysv/linux/sh/pwrite.c (__libc_pwrite): Likewise.
28214         * sysdeps/unix/sysv/linux/sh/pwrite64.c (__libc_write64): Likewise.
28215         * sysdeps/unix/sysv/linux/sigsuspend.c (__sigsuspend): Likewise.
28216         * sysdeps/unix/sysv/linux/sigtimedwait.c (__sigtimedwait): Likewise.
28217         * sysdeps/unix/sysv/linux/sigwait.c (__sigwait): Likewise.
28218         * sysdeps/unix/sysv/linux/sigwaitinfo.c (__sigwaitinfo): Likewise.
28219         * sysdeps/unix/sysv/linux/sparc/sparc64/msgrcv.c (__libc_msgrcv):
28220         Likewise.
28221
28222 2015-01-06  Andrew Senkevich  <andrew.n.senkevich@gmail.com>
28223
28224         * math/Makefile (CFLAGS-test-float.c): Remove -frounding-math.
28225         (CFLAGS-test-double.c): Likewise.
28226         (CFLAGS-test-ldouble.c): Likewise.
28227         (CPPFLAGS-test-ifloat.c): Likewise.
28228         (CPPFLAGS-test-idouble.c): Likewise.
28229         (CPPFLAGS-test-ildoubl.c): Likewise.
28230         (CFLAGS-test-test-fenv.c): Remove variable.
28231         (CFLAGS-test-misc.c): Likewise.
28232
28233 2015-01-06  H.J. Lu  <hongjiu.lu@intel.com>
28234
28235         [BZ #17797]
28236         * bits/time.h (CLOCKS_PER_SEC): Changed to ((clock_t) 1000000).
28237         * sysdeps/unix/sysv/linux/bits/time.h (CLOCKS_PER_SEC): Likewise.
28238         * sysdeps/unix/sysv/linux/clock.c (clock): _Static_assert
28239         CLOCKS_PER_SEC == 1000000.
28240         * time/clocktest.c (main): Replace %ld with %jd and cast to
28241         intmax_t.
28242
28243 2015-01-05  Roland McGrath  <roland@hack.frob.com>
28244
28245         * sysdeps/generic/unwind-resume.h: New file.
28246         * sysdeps/gnu/unwind-resume.c: Include it.
28247         (libgcc_s_personality): Use PERSONALITY_PROTO macro for the prototype.
28248         (__gcc_personality_v0): Likewise, and PERSONALITY_ARGS for the callee
28249         argument list.
28250         (libgcc_s_resume): Variable renamed to __libgcc_s_resume, made hidden
28251         global rather than static.
28252         (_Unwind_Resume): Update user.
28253         Conditionalize definition on [!HAVE_ARCH_UNWIND_RESUME].
28254         (init): Likewise.  Renamed to __libgcc_s_init, made hidden global
28255         rather than static.  Add __attribute__ ((cold)).
28256         (_Unwind_Resume, __gcc_personality_v0): Update callers.
28257         * sysdeps/nptl/unwind-forcedunwind.c: Likewise.
28258         * sysdeps/arm/arm-unwind-resume.S: New file.
28259         * sysdeps/arm/rt-arm-unwind-resume.S: New file.
28260         * sysdeps/arm/pt-arm-unwind-resume.S: New file.
28261         * sysdeps/arm/Makefile [$(subdir) = csu]
28262         (sysdep_routines, shared-only-routines): Add arm-unwind-resume.
28263         [$(subdir) = rt] (librt-sysdep_routines, librt-shared-only-routines):
28264         Add rt-arm-unwind-resume.
28265         [$(subdir) = nptl]
28266         (libpthread-sysdep_routines, libpthread-shared-only-routines):
28267         Add pt-arm-unwind-resume.
28268         * sysdeps/unix/sysv/linux/arm/unwind-resume.c: File removed.
28269         * sysdeps/unix/sysv/linux/arm/unwind-forcedunwind.c: File removed.
28270
28271 2015-01-05  Joseph Myers  <joseph@codesourcery.com>
28272
28273         [BZ #17748]
28274         * include/fenv.h (__feholdexcept): Declare.  Use
28275         libm_hidden_proto.
28276         * math/feholdexcpt.c (feholdexcept): Rename to __feholdexcept and
28277         define as weak alias of __feholdexcept.  Use libm_hidden_weak.
28278         * sysdeps/aarch64/fpu/feholdexcpt.c (feholdexcept): Likewise.
28279         * sysdeps/alpha/fpu/feholdexcpt.c (feholdexcept): Likewise.
28280         * sysdeps/arm/feholdexcpt.c (feholdexcept): Likewise.
28281         * sysdeps/hppa/fpu/feholdexcpt.c (feholdexcept): Likewise.
28282         * sysdeps/i386/fpu/feholdexcpt.c (feholdexcept): Likewise.
28283         * sysdeps/ia64/fpu/feholdexcpt.c (feholdexcept): Likewise.
28284         * sysdeps/m68k/fpu/feholdexcpt.c (feholdexcept): Likewise.
28285         * sysdeps/mips/fpu/feholdexcpt.c (feholdexcept): Likewise.
28286         * sysdeps/powerpc/fpu/feholdexcpt.c (feholdexcept): Likewise.
28287         * sysdeps/powerpc/nofpu/feholdexcpt.c (feholdexcept): Likewise.
28288         * sysdeps/powerpc/powerpc32/e500/nofpu/feholdexcpt.c
28289         (feholdexcept): Likewise.
28290         * sysdeps/s390/fpu/feholdexcpt.c (feholdexcept): Likewise.
28291         * sysdeps/sh/sh4/fpu/feholdexcpt.c (feholdexcept): Likewise.
28292         * sysdeps/sparc/fpu/feholdexcpt.c (feholdexcept): Likewise.
28293         * sysdeps/x86_64/fpu/feholdexcpt.c (feholdexcept): Likewise.
28294         * sysdeps/generic/math_private.h (default_libc_feholdexcept): Use
28295         __feholdexcept instead of feholdexcept.
28296         (default_libc_feholdexcept_setround): Likewise.
28297
28298 2015-01-05  Steve Ellcey  <sellcey@imgtec.com>
28299
28300         * sysdeps/mips/memset.S (memset): Modify for mips32r6/mips64r6
28301         to avoid using stl/str to align destination.
28302
28303 2015-01-05  Steve Ellcey  <sellcey@imgtec.com>
28304
28305         * sysdeps/mips/memcpy.S: Add support for mips32r6/mips64r6.
28306
28307 2015-01-05  Joseph Myers  <joseph@codesourcery.com>
28308
28309         [BZ #17796]
28310         * sysdeps/unix/sysv/linux/mips/mips64/n64/posix_fadvise.c
28311         [!SHLIB_COMPAT(libc, GLIBC_2_2, GLIBC_2_3_3)] (posix_fadvise64):
28312         Define as weak alias not strong alias.
28313
28314 2015-01-05  Steve Ellcey  <sellcey@imgtec.com>
28315
28316         * sysdeps/mips/dl-machine.h (elf_machine_load_address): Replace
28317         bltzal with addiupc.
28318         (RTLD_START): Ditto.
28319
28320 2015-01-05  Chris Metcalf  <cmetcalf@ezchip.com>
28321
28322         * sysdeps/unix/sysv/linux/tile/bits/libc-vdso.h: Fix return type
28323         for __vdso_* functions in declarations.
28324         * sysdeps/unix/sysv/linux/tile/init-first.c: Likewise for
28325         definitions.
28326         * sysdeps/unix/sysv/linux/tile/sysdep.h (INLINE_VSYSCALL,
28327         INTERNAL_VSYSCALL): Use struct return types to check for error.
28328
28329         * sysdeps/ieee754/dbl-64/wordsize-64/s_llround.c [!defined _LP64
28330         && REGISTER_CAST_INT32_TO_INT64]: Provide explicit lround()
28331         function with cast from llround().
28332         * sysdeps/tile/sysdep.h (REGISTER_CAST_INT32_TO_INT64): Define.
28333         * sysdeps/x86_64/x32/sysdep.h (REGISTER_CAST_INT32_TO_INT64):
28334         Define.
28335
28336 2015-01-05  Joseph Myers  <joseph@codesourcery.com>
28337
28338         [BZ #17793]
28339         * sysdeps/unix/sysv/linux/arm/posix_fadvise64.c (posix_fadvise64):
28340         Define as weak alias not strong alias.
28341
28342         [BZ #17635]
28343         * ctype/ctype-c99.c: New file.  isblank implementation moved from
28344         ...
28345         * ctype/ctype-extn.c: ... here.
28346         (__isblank_l): Move to ...
28347         * ctype/ctype-c99_l.c: ... here.  New file.
28348         * ctype/Makefile (routines): Add ctype-c99 and ctype-c99_l.
28349         * conform/Makefile (test-xfail-ISO99/ctype.h/linknamespace):
28350         Remove variable.
28351         (test-xfail-ISO11/ctype.h/linknamespace): Likewise.
28352         (test-xfail-XPG3/ctype.h/linknamespace): Likewise.
28353         (test-xfail-XPG4/ctype.h/linknamespace): Likewise.
28354         (test-xfail-UNIX98/ctype.h/linknamespace): Likewise.
28355         (test-xfail-POSIX2008/ctype.h/linknamespace): Likewise.
28356
28357         [BZ #17777]
28358         * sysdeps/unix/sysv/linux/wordsize-64/posix_fadvise.c
28359         (posix_fadvise64): Define as weak alias not strong alias.
28360         * sysdeps/unix/sysv/linux/wordsize-64/posix_fallocate.c
28361         (posix_fallocate64): Likewise.
28362         * conform/Makefile (test-xfail-XOPEN2K/fcntl.h/linknamespace):
28363         Remove variable.
28364         (test-xfail-XOPEN2K/mqueue.h/linknamespace): Likewise.
28365         (test-xfail-POSIX2008/fcntl.h/linknamespace): Likewise.
28366         (test-xfail-POSIX2008/mqueue.h/linknamespace): Likewise.
28367         (test-xfail-XOPEN2K8/fcntl.h/linknamespace): Likewise.
28368         (test-xfail-XOPEN2K8/mqueue.h/linknamespace): Likewise.
28369
28370 2015-01-05  Matthew Fortune  <matthew.fortune@imgtec.com>
28371
28372         [BZ #16191]
28373         * NEWS: Mention bug fix.
28374         * sysdeps/unix/sysv/linux/mips/sys/user.h (PAGE_SHIFT): Remove.
28375         (PAGE_SIZE, PAGE_MASK, NBPG, UPAGES): Likewise.
28376         (HOST_TEXT_START_ADDR, HOST_DATA_START_ADDR): Likewise.
28377         (HOST_STACK_END_ADDR): Likewise.
28378
28379 2015-01-02  Joseph Myers  <joseph@codesourcery.com>
28380
28381         [BZ #17748]
28382         * include/fenv.h (__fegetround): Declare.  Use libm_hidden_proto.
28383         * math/fegetround.c (fegetround): Rename to __fegetround and
28384         define as weak alias of __fegetround.  Use libm_hidden_weak.
28385         * sysdeps/aarch64/fpu/fegetround.c (fegetround): Likewise.
28386         * sysdeps/alpha/fpu/fegetround.c (fegetround): Likewise.
28387         * sysdeps/arm/fegetround.c (fegetround): Likewise.
28388         * sysdeps/hppa/fpu/fegetround.c (fegetround): Likewise.
28389         * sysdeps/i386/fpu/fegetround.c (fegetround): Likewise.
28390         * sysdeps/ia64/fpu/fegetround.c (fegetround): Likewise.
28391         * sysdeps/m68k/fpu/fegetround.c (fegetround): Likewise.
28392         * sysdeps/mips/fpu/fegetround.c (fegetround): Likewise.
28393         * sysdeps/powerpc/fpu/fegetround.c (fegetround): Likewise.
28394         Undefine after rather than before function definition; use
28395         parentheses around function name in definition.
28396         (__fegetround): Also undefine macro after function definition.
28397         * sysdeps/powerpc/nofpu/fegetround.c (fegetround): Rename to
28398         __fegetround and define as weak alias of __fegetround.  Use
28399         libm_hidden_weak.  Do not undefine as macro.
28400         * sysdeps/powerpc/powerpc32/e500/nofpu/fegetround.c (fegetround):
28401         Likewise.
28402         * sysdeps/s390/fpu/fegetround.c (fegetround): Rename to
28403         __fegetround and define as weak alias of __fegetround.  Use
28404         libm_hidden_weak.
28405         * sysdeps/sh/sh4/fpu/fegetround.c (fegetround): Likewise.
28406         * sysdeps/sparc/fpu/fegetround.c (fegetround): Likewise.
28407         * sysdeps/tile/math_private.h (__fegetround): New inline function.
28408         * sysdeps/x86_64/fpu/fegetround.c (fegetround): Rename to
28409         __fegetround and define as weak alias of __fegetround.  Use
28410         libm_hidden_weak.
28411         * sysdeps/ieee754/dbl-64/e_sqrt.c (__ieee754_sqrt): Use
28412         __fegetround instead of fegetround.
28413
28414         [BZ #17782]
28415         * sysdeps/unix/sysv/linux/mips/bits/termios.h (TIOCSER_TEMT):
28416         Condition macro definition on [__USE_MISC].
28417
28418         [BZ #17781]
28419         * sysdeps/unix/sysv/linux/mips/bits/sigaction.h
28420         (struct sigaction): Change type of sa_flags field to int.
28421
28422         [BZ #17780]
28423         * sysdeps/unix/sysv/linux/mips/bits/fcntl.h (struct flock)
28424         [!__USE_FILE_OFFSET64 && _MIPS_SIM != _ABI64]: Rename pad field to
28425         __glibc_reserved0.
28426
28427         * nptl/version.c (banner): Use single year in copyright notice.
28428
28429         * NEWS: Update copyright dates.
28430         * catgets/gencat.c (print_version): Likewise.
28431         * csu/version.c (banner): Likewise.
28432         * debug/catchsegv.sh: Likewise.
28433         * debug/pcprofiledump.c (print_version): Likewise.
28434         * debug/xtrace.sh (do_version): Likewise.
28435         * elf/ldconfig.c (print_version): Likewise.
28436         * elf/ldd.bash.in: Likewise.
28437         * elf/pldd.c (print_version): Likewise.
28438         * elf/sotruss.sh: Likewise.
28439         * elf/sprof.c (print_version): Likewise.
28440         * iconv/iconv_prog.c (print_version): Likewise.
28441         * iconv/iconvconfig.c (print_version): Likewise.
28442         * locale/programs/locale.c (print_version): Likewise.
28443         * locale/programs/localedef.c (print_version): Likewise.
28444         * login/programs/pt_chown.c (print_version): Likewise.
28445         * malloc/memusage.sh (do_version): Likewise.
28446         * malloc/memusagestat.c (print_version): Likewise.
28447         * malloc/mtrace.pl: Likewise.
28448         * manual/libc.texinfo: Likewise.
28449         * nptl/version.c (banner): Likewise.
28450         * nscd/nscd.c (print_version): Likewise.
28451         * nss/getent.c (print_version): Likewise.
28452         * nss/makedb.c (print_version): Likewise.
28453         * posix/getconf.c (main): Likewise.
28454         * scripts/test-installation.pl: Likewise.
28455         * sysdeps/unix/sysv/linux/lddlibc4.c (main): Likewise.
28456
28457 2015-01-02  Will Newton  <will.newton@linaro.org>
28458
28459         * sysdeps/arm/armv7/configure: Removed.
28460         * sysdeps/arm/armv7/configure.ac: Likewise.
28461
28462 2015-01-02  Joseph Myers  <joseph@codesourcery.com>
28463
28464         * All files with FSF copyright notices: Update copyright dates
28465         using scripts/update-copyrights.
28466         * intl/plural.c: Regenerated.
28467         * locale/programs/charmap-kw.h: Likewise.
28468         * locale/programs/locfile-kw.h: Likewise.
28469
28470 2015-01-02  Siddhesh Poyarekar  <siddhesh@redhat.com>
28471
28472         * scripts/gen-posix-conf-vars.awk (END): Don't use sprintf.
28473
28474 2014-12-31  Joseph Myers  <joseph@codesourcery.com>
28475
28476         [BZ #17748]
28477         * include/fenv.h (__fegetenv): Use libm_hidden_proto.
28478         * math/fegetenv.c (__fegetenv): Use libm_hidden_def.
28479         * sysdeps/aarch64/fpu/fegetenv.c (fegetenv): Rename to __fegetenv
28480         and define as weak alias of __fegetenv.  Use libm_hidden_weak.
28481         * sysdeps/alpha/fpu/fegetenv.c (__fegetenv): Use libm_hidden_def.
28482         * sysdeps/arm/fegetenv.c (fegetenv): Rename to __fegetenv and
28483         define as weak alias of __fegetenv.  Use libm_hidden_weak.
28484         * sysdeps/hppa/fpu/fegetenv.c (fegetenv): Likewise.
28485         * sysdeps/i386/fpu/fegetenv.c (__fegetenv): Use libm_hidden_def.
28486         * sysdeps/ia64/fpu/fegetenv.c (fegetenv): Rename to __fegetenv and
28487         define as weak alias of __fegetenv.  Use libm_hidden_weak.
28488         * sysdeps/m68k/fpu/fegetenv.c (__fegetenv): Use libm_hidden_def.
28489         * sysdeps/mips/fpu/fegetenv.c (fegetenv): Rename to __fegetenv and
28490         define as weak alias of __fegetenv.  Use libm_hidden_weak.
28491         * sysdeps/powerpc/fpu/fegetenv.c (__fegetenv): Use
28492         libm_hidden_def.
28493         * sysdeps/powerpc/nofpu/fegetenv.c (__fegetenv): Likewise.
28494         * sysdeps/powerpc/powerpc32/e500/nofpu/fegetenv.c (__fegetenv):
28495         Likewise.
28496         * sysdeps/s390/fpu/fegetenv.c (fegetenv): Rename to __fegetenv and
28497         define as weak alias of __fegetenv.  Use libm_hidden_weak.
28498         * sysdeps/sh/sh4/fpu/fegetenv.c (fegetenv): Likewise.
28499         * sysdeps/sparc/fpu/fegetenv.c (__fegetenv): Use libm_hidden_def.
28500         * sysdeps/tile/math_private.h (__fegetenv): New inline function.
28501         * sysdeps/x86_64/fpu/fegetenv.c (fegetenv): Rename to __fegetenv
28502         and define as weak alias of __fegetenv.  Use libm_hidden_weak.
28503         * sysdeps/generic/math_private.h (libc_feholdsetround_ctx): Use
28504         __fegetenv instead of fegetenv.
28505         (libc_feholdsetround_noex_ctx): Likewise.
28506
28507 2014-12-31  Matthew Fortune  <matthew.fortune@imgtec.com>
28508
28509         * elf/elf.h (PT_MIPS_ABIFLAGS): Define.
28510         (Elf_MIPS_ABIFlags_v0): New structure.
28511         (EF_MIPS_FP64): Define.
28512         (MIPS_AFL_REG_NONE, MIPS_AFL_REG_32, MIPS_AFL_REG_64): Likewise.
28513         (MIPS_AFL_REG_128, MIPS_AFL_ASE_DSP, MIPS_AFL_ASE_DSP64): Likewise.
28514         (MIPS_AFL_ASE_DSPR2, MIPS_AFL_ASE_EVA, MIPS_AFL_ASE_MCU): Likewise.
28515         (MIPS_AFL_ASE_MDMX, MIPS_AFL_ASE_MIPS3D, MIPS_AFL_ASE_MT): Likewise.
28516         (MIPS_AFL_ASE_SMARTMIPS, MIPS_AFL_ASE_VIRT): Likewise.
28517         (MIPS_AFL_ASE_VIRT64, MIPS_AFL_ASE_MSA, MIPS_AFL_ASE_MSA64): Likewise.
28518         (MIPS_AFL_ASE_MIPS16, MIPS_AFL_ASE_MICROMIPS): Likewise.
28519         (MIPS_AFL_ASE_XPA, MIPS_AFL_EXT_XLR, MIPS_AFL_EXT_OCTEON2): Likewise.
28520         (MIPS_AFL_EXT_OCTEONP, MIPS_AFL_EXT_LOONGSON_3A): Likewise.
28521         (MIPS_AFL_EXT_OCTEON, MIPS_AFL_EXT_5900, MIPS_AFL_EXT_4010): Likewise.
28522         (MIPS_AFL_EXT_4100, MIPS_AFL_EXT_3900, MIPS_AFL_EXT_10000): Likewise.
28523         (MIPS_AFL_EXT_SB1, MIPS_AFL_EXT_4111, MIPS_AFL_EXT_4120): Likewise.
28524         (MIPS_AFL_EXT_5400, MIPS_AFL_EXT_5500): Likewise.
28525         (MIPS_AFL_EXT_LOONGSON_2E, MIPS_AFL_EXT_LOONGSON_2F): Likewise.
28526         (Val_GNU_MIPS_ABI_FP_ANY, Val_GNU_MIPS_ABI_FP_DOUBLE): New enum values.
28527         (Val_GNU_MIPS_ABI_FP_SINGLE, Val_GNU_MIPS_ABI_FP_SOFT): Likewise.
28528         (Val_GNU_MIPS_ABI_FP_OLD_64, Val_GNU_MIPS_ABI_FP_XX): Likewise.
28529         (Val_GNU_MIPS_ABI_FP_64, Val_GNU_MIPS_ABI_FP_64A): Likewise.
28530         (Val_GNU_MIPS_ABI_FP_MAX): Likewise.
28531         * sysdeps/mips/Makefile [subdir=elf]: Add tst-abi-interlink,
28532         tst-mode-switch-1, tst-mode-switch-2, tst-mode-switch-3 tests.
28533         * sysdeps/mips/bits/linkmap.h (struct link_map_machine): Add fpmode
28534         field.
28535         * sysdeps/mips/dl-machine.h (elf_machine_matches_host): Reject
28536         EF_MIPS_FP64.
28537         * sysdeps/mips/dl-machine-reject-phdr.h: New file.
28538         * sysdeps/mips/tst-abi-fp32mod.c: Likewise.
28539         * sysdeps/mips/tst-abi-fpxxmod.c: Likewise.
28540         * sysdeps/mips/tst-abi-fpxxomod.c: Likewise.
28541         * sysdeps/mips/tst-abi-fp64mod.c: Likewise.
28542         * sysdeps/mips/tst-abi-fp64amod.c: Likewise.
28543         * sysdeps/mips/tst-abi-interlink.c: Likewise.
28544         * sysdeps/mips/tst-mode-switch-1.c: Likewise.
28545         * sysdeps/mips/tst-mode-switch-2.c: Likewise.
28546         * sysdeps/mips/tst-mode-switch-3.c: Likewise.
28547         * sysdeps/unix/sysv/linux/mips/configure.ac (o32-fpabi): Define to
28548         record the current FP ABI extension.
28549         (mips-mode-switch): Define to show if kernel headers support mode
28550         switching.
28551         * sysdeps/unix/sysv/linux/mips/configure: Regenerate.
28552         * sysdeps/unix/sysv/linux/mips/ldsodefs.h: Increase maximum
28553         supported SYSV ABI version to 3.
28554         * sysdeps/unix/sysv/linux/mips/libc-abis: Add new MIPS_O32_FP64
28555         feature.
28556
28557 2014-12-31  Rajalakshmi Srinivasaraghavan  <raji@linux.vnet.ibm.com>
28558             Adhemerval Zanella  <azanella@linux.vnet.ibm.com>
28559
28560         * sysdeps/powerpc/powerpc64/power7/strcpy.S (strcpy): Optimize unaligned
28561         path.
28562         * benchtests/bench-strcpy.c (test_main): Add more unaligned inputs.
28563
28564 2014-12-31  Joseph Myers  <joseph@codesourcery.com>
28565
28566         * sysdeps/powerpc/bits/fenvinline.h (fegetround): Rename macro to
28567         __fegetround and redefine to call __fegetround.  Remove condition
28568         on [!__NO_MATH_INLINES].
28569         * sysdeps/powerpc/fpu/fenv_libc.h (__fegetround): Remove inline
28570         function.
28571         * sysdeps/powerpc/nofpu/fenv_libc.h: Remove file.
28572         * sysdeps/powerpc/powerpc32/e500/nofpu/fenv_libc.h (__fegetround):
28573         Remove macro.
28574         * sysdeps/ieee754/ldbl-128ibm/s_llrintl.c: Include <fenv.h>
28575         instead of <fenv_libc.h>.
28576         (__llrintl): Call fegetround instead of __fegetround.
28577         * sysdeps/ieee754/ldbl-128ibm/s_llroundl.c: Include <fenv.h>
28578         instead of <fenv_libc.h>.
28579         * sysdeps/ieee754/ldbl-128ibm/s_lrintl.c: Likewise.
28580         (__lrintl): Call fegetround instead of __fegetround.
28581         * sysdeps/ieee754/ldbl-128ibm/s_lroundl.c: Include <fenv.h>
28582         instead of <fenv_libc.h>.
28583         * sysdeps/ieee754/ldbl-128ibm/s_rintl.c: Likewise.
28584         (__rintl): Call fegetround instead of __fegetround.
28585
28586 2014-12-31  Siddhesh Poyarekar  <siddhesh@redhat.com>
28587
28588         * scripts/gen-posix-conf-vars.awk: Don't use multi-dimensional
28589         arrays.
28590
28591 2014-12-30  H.J. Lu  <hongjiu.lu@intel.com>
28592
28593         [BZ #17775]
28594         * sysdeps/i386/dl-machine.h (PI_STATIC_AND_HIDDEN): Removed.
28595         (elf_machine_dynamic) [!PI_STATIC_AND_HIDDEN]: Likewise.
28596         (elf_machine_load_address) [!PI_STATIC_AND_HIDDEN]: Likewise.
28597
28598 2014-12-30  Andrew Senkevich  <andrew.senkevich@intel.com>
28599
28600         * sysdeps/i386/tls-macros.h: Include <features.h>.
28601         (TLS_LE): Use non-PIC version for GCC >= 5.0.
28602         (TLS_IE): Likewise.
28603         (TLS_LD): Likewise.
28604         (TLS_GD): Likewise.
28605         * sysdeps/unix/sysv/linux/i386/sysdep.h (check_consistency): Don't
28606         define for GCC >= 5.0.
28607
28608 2014-12-30  Chris Metcalf  <cmetcalf@ezchip.com>
28609
28610         * math/test-fenv.c (test_single_exception, set_single_exc,
28611         feenv_nomask_test, feenv_mask_test, feexcp_nomask_test,
28612         feexcp_mask_test, feenable_test, fe_single_test): Add
28613         [!FE_ALL_EXCEPT] test so these routines are not compiled in the
28614         case where they are not used.
28615         * math/libm-test.inc: Likewise.
28616         * setjmp/test-setjmp-fp.c: Mark attribute ((unused)) on variable
28617         unused in the absence of FP rounding/exception support.
28618         * stdio-common/tst-printf-round.c: Likewise.
28619         * stdlib/tst-strtod-round.c: Likewise.
28620         * stdlib/tst-strtod-underflow.c: Likewise.
28621
28622 2014-12-30  Joseph Myers  <joseph@codesourcery.com>
28623
28624         [BZ #17723]
28625         * include/fenv.h (__feraiseexcept): Use libm_hidden_proto.
28626         * math/fraiseexcpt.c (__feraiseexcept): Use libm_hidden_def.
28627         * sysdeps/aarch64/fpu/fraiseexcpt.c (feraiseexcept): Rename to
28628         __feraiseexcept and define as weak alias of __feraiseexcept.  Use
28629         libm_hidden_weak.
28630         * sysdeps/arm/fraiseexcpt.c (feraiseexcept): Likewise.
28631         * sysdeps/hppa/fpu/fraiseexcpt.c (feraiseexcept): Likewise.
28632         * sysdeps/i386/fpu/fraiseexcpt.c (__feraiseexcept): Use
28633         libm_hidden_def.
28634         * sysdeps/ia64/fpu/fraiseexcpt.c (feraiseexcept): Rename to
28635         __feraiseexcept and define as weak alias of __feraiseexcept.  Use
28636         libm_hidden_weak.
28637         * sysdeps/m68k/coldfire/fpu/fraiseexcpt.c (feraiseexcept):
28638         Likewise.
28639         * sysdeps/microblaze/math_private.h (__feraiseexcept): New macro.
28640         * sysdeps/mips/fpu/fraiseexcpt.c (feraiseexcept): Rename to
28641         __feraiseexcept and define as weak alias of __feraiseexcept.  Use
28642         libm_hidden_weak.
28643         * sysdeps/powerpc/fpu/fraiseexcpt.c (__feraiseexcept): Use
28644         libm_hidden_def.
28645         * sysdeps/powerpc/nofpu/fraiseexcpt.c (__feraiseexcept): Likewise.
28646         * sysdeps/powerpc/powerpc32/e500/nofpu/fraiseexcpt.c
28647         (__feraiseexcept): Likewise.
28648         * sysdeps/s390/fpu/fraiseexcpt.c (feraiseexcept): Rename to
28649         __feraiseexcept and define as weak alias of __feraiseexcept.  Use
28650         libm_hidden_weak.
28651         * sysdeps/sh/sh4/fpu/fraiseexcpt.c (feraiseexcept): Likewise.
28652         * sysdeps/sparc/fpu/fraiseexcpt.c (__feraiseexcept): Use
28653         libm_hidden_def.
28654         * sysdeps/tile/math_private.h (__feraiseexcept): New macro.
28655         * sysdeps/unix/sysv/linux/alpha/fraiseexcpt.S (__feraiseexcept):
28656         Use libm_hidden_def.
28657         * sysdeps/x86_64/fpu/fraiseexcpt.c (__feraiseexcept): Use
28658         libm_hidden_def.
28659         (feraiseexcept): Define as weak not strong alias.  Use
28660         libm_hidden_weak.
28661         * sysdeps/x86/fpu/bits/fenv.h (__feraiseexcept_invalid_divbyzero):
28662         New inline function.  Factored out of ...
28663         (feraiseexcept): ... here.  Use __feraiseexcept_invalid_divbyzero.
28664         * sysdeps/x86/fpu/include/bits/fenv.h: New file.
28665         * math/e_scalb.c (invalid_fn): Call __feraiseexcept instead of
28666         feraiseexcept.
28667         * math/w_acos.c (__acos): Likewise.
28668         * math/w_asin.c (__asin): Likewise.
28669         * math/w_ilogb.c (__ilogb): Likewise.
28670         * math/w_j0.c (y0): Likewise.
28671         * math/w_j1.c (y1): Likewise.
28672         * math/w_jn.c (yn): Likewise.
28673         * math/w_log.c (__log): Likewise.
28674         * math/w_log10.c (__log10): Likewise.
28675         * sysdeps/aarch64/fpu/feupdateenv.c (feupdateenv): Likewise.
28676         * sysdeps/aarch64/fpu/math_private.h
28677         (libc_feupdateenv_test_aarch64): Likewise.
28678         * sysdeps/alpha/fpu/feupdateenv.c (__feupdateenv): Likewise.
28679         * sysdeps/arm/fenv_private.h (libc_feupdateenv_test_vfp): Likewise.
28680         * sysdeps/arm/feupdateenv.c (feupdateenv): Likewise.
28681         * sysdeps/ia64/fpu/feupdateenv.c (feupdateenv): Likewise.
28682         * sysdeps/m68k/fpu/feupdateenv.c (__feupdateenv): Likewise.
28683         * sysdeps/mips/fpu/feupdateenv.c (feupdateenv): Likewise.
28684         * sysdeps/powerpc/fpu/e_sqrt.c (__slow_ieee754_sqrt): Likewise.
28685         * sysdeps/s390/fpu/feupdateenv.c (feupdateenv): Likewise.
28686         * sysdeps/sh/sh4/fpu/feupdateenv.c (feupdateenv): Likewise.
28687         * sysdeps/sparc/fpu/feupdateenv.c (__feupdateenv): Likewise.
28688
28689 2014-12-30  H.J. Lu  <hongjiu.lu@intel.com>
28690
28691         [BZ #17732]
28692         * io/test-utime.c (main): Replace %ld with %jd and cast to
28693         intmax_t.
28694         * libio/tst-ftell-active-handler.c (do_append_test): Likewise.
28695         * nptl/tst-mutex5.c: Include <stdint.h>.
28696         (do_test): Replace %ld with %jd and cast to intmax_t.
28697         * posix/tst-regex.c (run_test): Likewise.
28698         (run_test_backwards): Likewise.
28699         * rt/tst-clock.c: Include <stdint.h>.
28700         (clock_test): Replace %ld with %jd and cast to intmax_t.
28701         * rt/tst-cpuclock1.c: Include <stdint.h>.
28702         (do_test): Replace %lu with %ju and cast to uintmax_t.
28703         * rt/tst-cpuclock2.c: Include <stdint.h>.
28704         (do_test): Replace %lu with %ju and cast to uintmax_t.
28705         * rt/tst-mqueue1.c: Include <stdint.h>.
28706         (check_attrs): Replace %ld with %jd and cast to intmax_t.
28707         * rt/tst-mqueue3.c (fct): Replace %ld with %jd and cast to
28708         intmax_t.
28709         * rt/tst-mqueue4.c (do_test): Likewise.
28710         * rt/tst-timer4.c: Include <stdint.h>.
28711         (check_ts): Replace %ld with %jd and cast to intmax_t.
28712         (do_test): Likewise.
28713         * stdio-common/tst-fmemopen2.c (do_test): Replace %ld with %jd
28714         and cast to intmax_t.
28715         * sysdeps/pthread/tst-timer.c (main): Likewise.
28716         * time/clocktest.c (main): Likewise.
28717         * time/tst-posixtz.c (do_test): Likewise.
28718         * timezone/tst-timezone.c (main): Likewise.
28719
28720 2014-12-30  Andrew Senkevich  <andrew.senkevich@intel.com>
28721             H.J. Lu  <hongjiu.lu@intel.com>
28722
28723         * sysdeps/i386/i686/multiarch/bcopy-sse2-unaligned.S: New file.
28724         * sysdeps/i386/i686/multiarch/memcpy-sse2-unaligned.S: Likewise.
28725         * sysdeps/i386/i686/multiarch/memmove-sse2-unaligned.S: Likewise.
28726         * sysdeps/i386/i686/multiarch/mempcpy-sse2-unaligned.S: Likewise.
28727         * sysdeps/i386/i686/multiarch/bcopy.S: Select the sse2_unaligned
28728         version if bit_Fast_Unaligned_Load is set.
28729         * sysdeps/i386/i686/multiarch/memcpy.S: Likewise.
28730         * sysdeps/i386/i686/multiarch/memcpy_chk.S: Likewise.
28731         * sysdeps/i386/i686/multiarch/memmove.S: Likewise.
28732         * sysdeps/i386/i686/multiarch/memmove_chk.S: Likewise.
28733         * sysdeps/i386/i686/multiarch/mempcpy.S: Likewise.
28734         * sysdeps/i386/i686/multiarch/mempcpy_chk.S: Likewise.
28735         * sysdeps/i386/i686/multiarch/Makefile (sysdep_routines): Add
28736         bcopy-sse2-unaligned, memcpy-sse2-unaligned,
28737         memmove-sse2-unaligned and mempcpy-sse2-unaligned.
28738         * sysdeps/i386/i686/multiarch/ifunc-impl-list.c (MAX_IFUNC): Set
28739         to 4.
28740         (__libc_ifunc_impl_list): Test __bcopy_sse2_unaligned,
28741         __memmove_chk_sse2_unaligned, __memmove_sse2_unaligned,
28742         __memcpy_chk_sse2_unaligned, __memcpy_sse2_unaligned,
28743         __mempcpy_chk_sse2_unaligned, and __mempcpy_sse2_unaligned.
28744
28745 2014-12-29  Chris Metcalf  <cmetcalf@ezchip.com>
28746
28747         * sysdeps/unix/sysv/linux/tst-setgetname.c (do_test): Use #ifndef
28748         instead of #if to avoid a Wundef warning.
28749         * stdlib/tst-limits.c (do_test): Likewise.
28750
28751         * sysdeps/tile/math_private.h (fetestexcept): Add macro to
28752         parallel other exception macros.
28753         (fegetenv): Convert from macro to extern inline so that it applies
28754         retroactively to inline functions already seen by the compiler.
28755         (fesetenv, feupdateenv, fegetround, fesetround): Likewise.
28756
28757         * posix/Makefile (before-compile): Use $(objpfx) for
28758         posix-conf-vars-def.h.
28759
28760 2014-12-29  Siddhesh Poyarekar  <siddhesh@redhat.com>
28761
28762         * posix/getconf.c (main): Use size_t for type of I.
28763         * scripts-gen-posix-conf-vars.awk (END): Use size_t for type of
28764         NSPEC.
28765
28766         * posix/posix-conf-vars.list (SPEC:XBS5): Add sysconf prefix.
28767         * posix/confstr.c: Define NEED_SPEC_ARRAY to 0.
28768         * posix/posix-envs.def: Likewise.
28769         * sysdeps/posix/sysconf.c: Likewise.
28770         * posix/getconf.c: Define NEED_SPEC_ARRAY to 1.
28771         (specs): Remove array.
28772         * scripts/gen-posix-conf-vars.awk: Support generation of specs
28773         array.
28774
28775         * posix/posix-conf-vars.list: Add _POSIX sysconf namespace.
28776         * sysdeps/posix/sysconf.c: Include posix-conf-vars.h.
28777         (__sysconf): Use CONF_IS_* macros.
28778
28779         * posix/Makefile (before-compile): Add posix-conf-vars-def.h.
28780         ($(objpfx)posix-conf-vars-def.h): New target.
28781         * posix/posix-conf-vars.list: New file.
28782         * posix/posix-conf-vars.h: New file.
28783         * posix/confstr.c: Include posix-conf-vars.h.
28784         (confstr): Use CONF_IS_* macros.
28785         * posix/posix-envs.def: Include posix-conf-vars.h.  Use
28786         CONF_IS_* macros.
28787         * scripts/gen-posix-conf-vars.awk: New file.
28788
28789 2014-12-26  Chris Metcalf  <cmetcalf@ezchip.com>
28790
28791         * sysdeps/tile/math_private.h (fegetenv, fesetenv, feupdateenv,
28792         fegetround): Add no-op macros to avoid linknamespace issues.
28793
28794         * sysdeps/unix/sysv/linux/clock_settime.c (SYSDEP_SETTIME): Remove
28795         definitions of INTERNAL_VSYSCALL and INLINE_VSYSCALL.
28796
28797         * sysdeps/unix/sysv/linux/tile/sysdep.h
28798         (HAVE_CLOCK_GETTIME_VSYSCALL): Move definition out of
28799         assembly-specific section to avoid a redefinition warning.
28800
28801         * sysdeps/tile/jmpbuf-unwind.h (_JMPBUF_CFA_UNWINDS_ADJ): Cast to
28802         long before casting to pointer to avoid a cast warning.
28803
28804 2014-12-23  Chris Metcalf  <cmetcalf@ezchip.com>
28805
28806         * sysdeps/tile/tilegx/Implies: New file.
28807
28808 2014-12-23  Richard Earnshaw  <rearnsha@arm.com>
28809
28810         * string/stpcpy.c (__stpcpy): Rewrite using strlen and memcpy.
28811
28812 2014-12-23  Florian Weimer  <fweimer@redhat.com>
28813
28814         * iconvdata/run-iconv-test.sh: Actually test iconv modules.
28815
28816 2014-12-22  Joseph Myers  <joseph@codesourcery.com>
28817
28818         * sysdeps/unix/sysv/linux/kernel-features.h (__ASSUME_UTIMES): Do
28819         not define.
28820         * sysdeps/unix/sysv/linux/utimes.c: Do not include
28821         <kernel-features.h>.
28822         (__utimes) [__NR_utimes]: Make code unconditional.
28823         (__utimes) [!__ASSUME_UTIMES]: Remove conditional code.
28824         * sysdeps/unix/sysv/linux/aarch64/kernel-features.h
28825         (__ASSUME_UTIMES): Do not undefine.
28826         * sysdeps/unix/sysv/linux/tile/kernel-features.h
28827         (__ASSUME_UTIMES): Likewise.
28828         * sysdeps/unix/sysv/linux/hppa/kernel-features.h
28829         (__ASSUME_UTIMES): Define for [__LINUX_KERNEL_VERSION >= 0x030e00]
28830         instead of undefining for [__LINUX_KERNEL_VERSION < 0x030e00].
28831         * sysdeps/unix/sysv/linux/hppa/utimes.c: New file.
28832
28833 2014-12-22  Steve Ellcey  <sellcey@imgtec.com>
28834
28835         * sysdeps/mips/memcpy.S: Fix preprocessor indentation.
28836
28837 2014-12-22  Chris Metcalf  <cmetcalf@ezchip.com>
28838
28839         [BZ #17747]
28840         * math/w_j0.c [defined NO_LONG_DOUBLE] (j0, y0): Convert strong
28841         alias to weak alias for j0l, y0l.
28842         * math/w_j1.c [defined NO_LONG_DOUBLE] (j1, y1): Likewise.
28843         * math/w_jn.c [defined NO_LONG_DOUBLE] (jn, yn): Likewise.
28844
28845         [BZ #17746]
28846         * sysdeps/tile/tilegx/strstr.c (STRSTR2): Remove implicit boolean
28847         conversion.
28848
28849 2014-12-22  Steve Ellcey  <sellcey@imgtec.com>
28850
28851         * sysdeps/unix/mips/sysdep.h (__mips_isa_rev): Set
28852         to zero if not already defined.
28853
28854 2014-12-22  Joseph Myers  <joseph@codesourcery.com>
28855
28856         [BZ #17724]
28857         * sysdeps/ieee754/k_standard.c: Don't include <float.h>.
28858         (__kernel_standard_f): Remove.  Moved to k_standardf.c.
28859         (__kernel_standard_l): Remove.  Moved to k_standardl.c with
28860         (char *) casts added.
28861         * sysdeps/ieee754/k_standardf.c: New file.
28862         * sysdeps/ieee754/k_standardl.c: Likewise.
28863         * math/Makefile (libm-support): Remove k_standard.
28864         (libm-calls): Add k_standard.
28865
28866 2014-12-22  Wilco Dijkstra  <wdijkstr@arm.com>
28867
28868         * sysdeps/aarch64/fpu/feenablxcpt.c (feenableexcept):
28869         Optimize to avoid an unnecessary FPCR read.
28870
28871 2014-12-22  Wilco Dijkstra  <wdijkstr@arm.com>
28872
28873         * sysdeps/aarch64/fpu/fesetenv.c (fesetenv):
28874         Optimize to reduce FPCR/FPSR accesses.
28875
28876 2014-12-22  Wilco Dijkstra  <wdijkstr@arm.com>
28877
28878         * sysdeps/aarch64/fpu/ftestexcept.c (fetestexcept):
28879         Call libc_fetestexcept_aarch64.
28880
28881 2014-12-22  Wilco Dijkstra  <wdijkstr@arm.com>
28882
28883         * sysdeps/aarch64/fpu/fesetround.c (fesetround):
28884         Call libc_fesetround_aarch64.
28885
28886 2014-12-22  Joseph Myers  <joseph@codesourcery.com>
28887
28888         [BZ #17733]
28889         * sysdeps/unix/sysv/linux/bind.S (NO_WEAK_ALIAS): Do not define.
28890         (__bind): Do not define as weak alias.
28891         * sysdeps/unix/sysv/linux/getsockname.S (NO_WEAK_ALIAS): Do not
28892         define.
28893         (__getsockname): Do not define as weak alias.
28894
28895 2014-12-22  Will Newton  <will.newton@linaro.org>
28896
28897         * manual/install.texi: Document that we require bison 2.7
28898         or above.
28899         * INSTALL: Regenerate.
28900         * configure.ac: Use AC_CHECK_PROG_VER instead of
28901         AC_PATH_PROG when checking for bison and check for
28902         version 2.7 or above.
28903         * configure: Regenerate.
28904
28905 2014-12-21  Chris Metcalf  <cmetcalf@ezchip.com>
28906
28907         [BZ #17745]
28908         * sysdeps/tile/ffs.c (__ffs): Moved ffsll definition...
28909         * sysdeps/tile/ffsll.c (ffsll): To here.
28910
28911         * sysdeps/unix/sysv/linux/tile/localplt.data: Removed.
28912
28913 2014-12-21  H.J. Lu  <hongjiu.lu@intel.com>
28914
28915         * elf/dl-tls.c (__tls_get_addr): Provide the hidden definition
28916         if not defined.
28917         * sysdeps/i386/dl-tls.h (___tls_get_addr): Provide the hidden
28918         definition.
28919         * sysdeps/i386/dl-tlsdesc.S (_dl_tlsdesc_dynamic): Call the
28920         hidden ___tls_get_addr.
28921         * sysdeps/x86_64/dl-tlsdesc.S (_dl_tlsdesc_dynamic): Call the
28922         hidden __tls_get_addr.
28923         * sysdeps/generic/localplt.data (__tls_get_addr): Removed.
28924         * sysdeps/unix/sysv/linux/i386/localplt.data (___tls_get_addr):
28925         Likewise.
28926
28927 2014-12-21  Andreas Schwab  <schwab@linux-m68k.org>
28928
28929         * sysdeps/m68k/dl-machine.h (RTLD_START): Remove @PLTPC from
28930         _dl_init call.
28931
28932 2014-12-21  H.J. Lu  <hongjiu.lu@intel.com>
28933
28934         * sysdeps/i386/dl-machine.h (_dl_start_user): Remove @PLT
28935         from "call _dl_init@PLT".
28936         * sysdeps/x86_64/dl-machine.h (_dl_start_user): Likewise.
28937
28938 2014-12-21  Anders Kaseorg  <andersk@mit.edu>
28939
28940         * manual/search.texi: (Array Sort Function): Clarify stable sorting
28941         guarantees.
28942
28943 2014-12-20  Chris Metcalf  <cmetcalf@ezchip.com>
28944
28945         * sysdeps/unix/sysv/linux/tile/localplt.data: New file.
28946
28947 2014-12-19  Chris Metcalf  <cmetcalf@ezchip.com>
28948
28949         [BZ #17744]
28950         * sysdeps/tile/tilegx/strstr.c (STRSTR): Call __strnlen, not
28951         strnlen.
28952
28953 2014-12-19  Steve Ellcey  <sellcey@imgtec.com>
28954
28955         * sysdeps/mips/addmul_1.S (__mpn_addmul_1): Use mulu/muhu instead
28956         of multu on MIPSr6.
28957         * sysdeps/mips/mul_1.S (__mpn_mul_1): Ditto.
28958         * sysdeps/mips/submul_1.S (__mpn_submul_1): Ditto.
28959         * sysdeps/mips/mips64/addmul_1.S (__mpn_addmul_1): Ditto.
28960         * sysdeps/mips/mips64/mul_1.S (__mpn_mul_1): Ditto.
28961         * sysdeps/mips/mips64/submul_1.S (__mpn_submul_1): Ditto.
28962
28963 2014-12-19  Steve Ellcey  <sellcey@imgtec.com>
28964
28965         * sysdeps/mips/sys/asm.h (PTR_ADDU): Use addu on mips32r6/mips64r6.
28966         (PTR_ADDIU): Use addiu for mips32r6/mips64r6.
28967         (PTR_SUBU): Use subu for mips32r6/mips64r6.
28968         (PTR_SUBIU): Use subu for mips32r6/mips64r6 (subiu does not exist).
28969         * sysdeps/mips/machine-gmon.h (PTR_ADDU_STRING) Use addu for
28970         mips32r6/mips64r6.
28971         (PTR_SUBU_STRING) Use subu for mips32r6/mips64r6.
28972
28973 2014-12-19  Ondřej Bílka  <neleai@seznam.cz>
28974
28975         * string/strncat.c (STRNCAT): Simplify implementation.
28976
28977 2014-12-19  David S. Miller  <davem@davemloft.net>
28978
28979         * sysdeps/sparc/sparc32/soft-fp/q_neg.c (_Q_neg): Use a union to
28980         access the quad as both a long double and as a series of 4 words.
28981
28982         * get-dynamic-info.h (elf_get_dynamic_info): Ignore -Warray-bounds for a
28983         link_map->l_info array access.
28984
28985 2014-12-19  Chris Metcalf  <cmetcalf@ezchip.com>
28986
28987         * iconvdata/tst-loading.c (TIMEOUT): Increase timeout 10 sec.
28988
28989         * math/atest-exp.c (TIMEOUT): Increase timeout to 10 sec.
28990         * math/atest-exp2.c (TIMEOUT): Likewise.
28991         * math/atest-sincos.c (TIMEOUT): Likewise.
28992
28993 2014-12-19  H.J. Lu  <hongjiu.lu@intel.com>
28994
28995         * sysdeps/x86_64/x32/Makefile (CFLAGS-s_llround.c): Replace
28996         -Wno-error with -fno-builtin-lround.
28997
28998 2014-12-19  Torvald Riegel  <triegel@redhat.com>
28999
29000         * sysdeps/unix/sysv/linux/i386/lowlevellock-futex.h: New file.
29001         Contains futex constants and functions moved over from ...
29002         * sysdeps/unix/sysv/linux/i386/lowlevellock.h: ... here.  Include
29003         <lowlevellock-futex.h>.
29004         (lll_wait_tid): Use lll_futex_wait instead of assembly code.
29005         (lll_timedwait_tid): Add comments and parentheses around macro
29006         arguments.
29007
29008 2014-12-19  Torvald Riegel  <triegel@redhat.com>
29009
29010         * sysdeps/unix/sysv/linux/x86_64/lowlevellock.h: Include
29011         <lowlevellock-futex.h>.  Remove FUTEX_* constants defined there.
29012         (__lll_private_flag): Remove.
29013         (lll_futex_wait): Likewise.
29014         (lll_futex_timed_wait): Likewise.
29015         (lll_futex_wake): Likewise.
29016         (lll_futex_requeue): Likewise.
29017         (lll_wait_tid): Use lll_futex_wait instead of assembly code.
29018         (__lll_timedwait_tid): Spell out argument names.
29019         (lll_timedwait_tid): Add comments and parentheses around macro
29020         arguments.
29021         * sysdeps/unix/sysv/linux/lowlevellock-futex.h: Make FUTEX_* constants,
29022         LLL_SHARED and LLL_PRIVATE usable from assembly code.
29023
29024 2014-12-19  Torvald Riegel  <triegel@redhat.com>
29025
29026         * sysdeps/unix/sysv/linux/sh/libc-lowlevellock.S: Remove file.
29027         * sysdeps/unix/sysv/linux/sh/lowlevellock.S: Likewise.
29028         * sysdeps/unix/sysv/linux/sh/lowlevellock.h: Likewise.
29029         * sysdeps/unix/sysv/linux/sh/lowlevelrobustlock.S: Likewise.
29030         * sysdeps/unix/sysv/linux/sh/pthread_barrier_wait.S: Likewise.
29031         * sysdeps/unix/sysv/linux/sh/pthread_cond_broadcast.S: Likewise.
29032         * sysdeps/unix/sysv/linux/sh/pthread_cond_signal.S: Likewise.
29033         * sysdeps/unix/sysv/linux/sh/pthread_cond_timedwait.S: Likewise.
29034         * sysdeps/unix/sysv/linux/sh/pthread_cond_wait.S: Likewise.
29035         * sysdeps/unix/sysv/linux/sh/pthread_rwlock_timedrdlock.S: Likewise.
29036         * sysdeps/unix/sysv/linux/sh/pthread_rwlock_timedwrlock.S: Likewise.
29037         * sysdeps/unix/sysv/linux/sh/pthread_rwlock_rdlock.S: Likewise.
29038         * sysdeps/unix/sysv/linux/sh/pthread_rwlock_unlock.S: Likewise.
29039         * sysdeps/unix/sysv/linux/sh/pthread_rwlock_wrlock.S: Likewise.
29040         * sysdeps/unix/sysv/linux/sh/sh4/lowlevellock.h: Likewise.
29041         * sysdeps/unix/sysv/linux/sh/sem_post.S: Likewise.
29042         * sysdeps/unix/sysv/linux/sh/sem_timedwait.S: Likewise.
29043         * sysdeps/unix/sysv/linux/sh/sem_trywait.S: Likewise.
29044         * sysdeps/unix/sysv/linux/sh/sem_wait.S: Likewise.
29045
29046 2014-12-19  H.J. Lu  <hongjiu.lu@intel.com>
29047
29048         * sysdeps/x86_64/x32/Makefile: New file.
29049
29050 2014-12-19  H.J. Lu  <hongjiu.lu@intel.com>
29051
29052         * sysdeps/i386/ldbl2mpn.c (__mpn_extract_long_double): Replace
29053         1L with (mp_limb_t) 1.
29054
29055 2014-12-17  Roland McGrath  <roland@hack.frob.com>
29056
29057         * sysdeps/nptl/fork.c (__fork_generation_pointer): Variable moved ...
29058         * nptl/libc_pthread_init.c: ... here.
29059         * sysdeps/nptl/fork.c (__fork_handlers): Variable moved ...
29060         * nptl/register-atfork.c: ... here.
29061
29062         * sysdeps/nptl/gai_misc.h (__gai_start_notify_thread):
29063         Use pthread_sigmask rather than INTERNAL_SYSCALL.
29064         Use assert_perror to check its return value.
29065         (__gai_create_helper_thread): Likewise.
29066
29067         * inet/if_index.c (__if_freenameindex): Add libc_hidden_def.
29068
29069         * malloc/malloc.c (alloc_perturb, free_perturb): Remove inline keyword.
29070
29071 2014-12-17  Joseph Myers  <joseph@codesourcery.com>
29072
29073         [BZ #17725]
29074         * sysdeps/generic/profil-counter.h (profil_counter): Rename to
29075         __profil_counter.
29076         * sysdeps/unix/sysv/linux/hppa/profil-counter.h (profil_counter):
29077         Likewise.
29078         * sysdeps/unix/sysv/linux/i386/profil-counter.h (profil_counter):
29079         Likewise.
29080         * sysdeps/unix/sysv/linux/ia64/profil-counter.h (profil_counter):
29081         Likewise.
29082         * sysdeps/unix/sysv/linux/s390/s390-32/profil-counter.h
29083         (profil_counter): Likewise.
29084         * sysdeps/unix/sysv/linux/s390/s390-64/profil-counter.h
29085         (profil_counter): Likewise.
29086         * sysdeps/unix/sysv/linux/sh/profil-counter.h (profil_counter):
29087         Likewise.
29088         * sysdeps/unix/sysv/linux/tile/profil-counter.h (profil_counter):
29089         Likewise.
29090         * sysdeps/unix/sysv/linux/x86_64/profil-counter.h
29091         (profil_counter): Likewise.
29092         * sysdeps/unix/sysv/linux/arm/profil-counter.h (profil_counter):
29093         Likewise.
29094         [!__profil_counter] (profil_counter): Define as weak alias of
29095         __profil_counter.
29096         * sysdeps/unix/sysv/linux/sparc/sparc32/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/unix/sysv/linux/sparc/sparc64/profil-counter.h
29101         (profil_counter): Rename to __profil_counter.
29102         [!__profil_counter] (profil_counter): Define as weak alias of
29103         __profil_counter.
29104         * sysdeps/posix/profil.c: Update comment referring to
29105         profil_counter.
29106         (__profil): Use __profil_counter instead of profil_counter.
29107         * sysdeps/posix/sprofil.c (profil_counter): Rename to
29108         __profil_counter.  Use __profil_counter_ushort and
29109         __profil_counter_uint in definitions.
29110         (__sprofil): Use __profil_counter_uint and __profil_counter_ushort
29111         instead of profil_counter_uint and profil_counter_ushort.
29112
29113         [BZ #17722]
29114         * inet/inet_mkadr.c (inet_makeaddr): Rename to __inet_makeaddr and
29115         define as weak alias of __inet_makeaddr.
29116         * resolv/inet_addr.c (inet_addr): Rename to __inet_addr and define
29117         as weak alias of __inet_addr.
29118         * resolv/inet_pton.c (inet_pton): Rename to __inet_pton and define
29119         as weak alias of __inet_pton.  Use libc_hidden_weak.
29120         * include/arpa/inet.h (__inet_pton): Declare.  Use
29121         libc_hidden_proto.
29122         (inet_makeaddr): Don't use libc_hidden_proto.
29123         (__inet_makeaddr): Declare.  Use libc_hidden_proto.
29124         * resolv/res_init.c (__res_vinit): Use __inet_pton instead of
29125         inet_pton.  Use __inet_makeaddr instead of inet_makeaddr.
29126         * conform/Makefile (test-xfail-POSIX/pthread.h/linknamespace):
29127         Remove variable.
29128         (test-xfail-POSIX/sched.h/linknamespace): Likewise.
29129         (test-xfail-POSIX/time.h/linknamespace): Likewise.
29130
29131 2014-12-17  Steve Ellcey  <sellcey@imgtec.com>
29132
29133         * inet/getnetgrent_r.c: Move while loop to be inside if statement.
29134
29135 2014-12-17  Stefan Liebler  <stli@linux.vnet.ibm.com>
29136
29137         * stdio-common/bug-vfprintf-nargs.c (do_test):
29138         Cast value to intptr_t to avoid format warning
29139         for usage with PRIdPTR printing macro.
29140
29141 2014-12-17  Stefan Liebler  <stli@linux.vnet.ibm.com>
29142
29143         * libio/tst-widetext.c (do_test):
29144         Use format type %td instead of %Zd for ptrdiff_t
29145         in order to avoid format warning.
29146
29147 2014-12-17  Andreas Schwab  <schwab@suse.de>
29148
29149         * nscd/mem.c (gc): Add size_t cast to match printf format.
29150
29151 2014-12-16  Roland McGrath  <roland@hack.frob.com>
29152
29153         * sysdeps/gnu/unwind-resume.c: #include <sysdep.h>.
29154         (init): Apply PTR_MANGLE to pointers before storing them.
29155         (_Unwind_Resume, __gcc_personality_v0): Apply PTR_DEMANGLE to pointers
29156         before using them.
29157
29158 2014-12-16  Joseph Myers  <joseph@codesourcery.com>
29159
29160         [BZ #17719]
29161         * sysdeps/x86_64/memrchr.S (memrchr): Rename to __memrchr and
29162         define as weak alias of __memrchr.
29163         (__memrchr): Do not define as strong alias of memrchr.
29164         * conform/Makefile (test-xfail-XPG4/libgen.h/linknamespace):
29165         Remove variable.
29166         (test-xfail-UNIX98/libgen.h/linknamespace): Likewise.
29167         (test-xfail-XOPEN2K/libgen.h/linknamespace): Likewise.
29168         (test-xfail-XOPEN2K8/libgen.h/linknamespace): Likewise.
29169
29170         [BZ #17717]
29171         * inet/if_index.c (if_nametoindex): Rename to __if_nametoindex and
29172         define as weak alias of __if_nametoindex.  Use libc_hidden_weak.
29173         (if_indextoname): Rename to __if_indextoname and define as weak
29174         alias of __if_indextoname.  Use libc_hidden_weak.
29175         (if_freenameindex): Rename to __if_freenameindex and define as
29176         weak alias of __if_freenameindex.
29177         (if_nameindex): Rename to __if_nameindex and define as weak alias
29178         of __if_nameindex.
29179         * sysdeps/mach/hurd/if_index.c (if_nametoindex): Rename to
29180         __if_nametoindex and define as weak alias of __if_nametoindex.
29181         Use libc_hidden_weak.
29182         (if_freenameindex): Rename to __if_freenameindex and define as
29183         weak alias of __if_freenameindex.
29184         (if_nameindex): Rename to __if_nameindex and define as weak alias
29185         of __if_nameindex.
29186         (if_indextoname): Rename to __if_indextoname and define as weak
29187         alias of __if_indextoname.  Use libc_hidden_weak.
29188         * sysdeps/unix/sysv/linux/if_index.c (if_nametoindex): Rename to
29189         __if_nametoindex and define as weak alias of __if_nametoindex.
29190         Use libc_hidden_weak.
29191         (if_freenameindex): Rename to __if_freenameindex and define as
29192         weak alias of __if_freenameindex.  Use libc_hidden_weak.
29193         (if_nameindex_netlink): Use __if_freenameindex instead of
29194         if_freenameindex.
29195         (if_nameindex): Rename to __if_nameindex and define as weak alias
29196         of __if_nameindex.  Use libc_hidden_weak.
29197         (if_indextoname): Rename to __if_indextoname and define as weak
29198         alias of __if_indextoname.  Use libc_hidden_weak.
29199         * include/net/if.h [!_ISOMAC] (__if_nametoindex): Declare and use
29200         libc_hidden_proto.
29201         [!_ISOMAC] (__if_freenameindex): Likewise.
29202         * resolv/res_init.c (__res_vinit): Use __if_nametoindex instead of
29203         if_nametoindex.
29204         * conform/Makefile (test-xfail-XPG4/grp.h/linknamespace): Remove
29205         variable.
29206         (test-xfail-XPG4/pwd.h/linknamespace): Likewise.
29207         (test-xfail-UNIX98/aio.h/linknamespace): Likewise.
29208         (test-xfail-UNIX98/grp.h/linknamespace): Likewise.
29209         (test-xfail-UNIX98/pthread.h/linknamespace): Likewise.
29210         (test-xfail-UNIX98/pwd.h/linknamespace): Likewise.
29211         (test-xfail-UNIX98/sched.h/linknamespace): Likewise.
29212         (test-xfail-UNIX98/time.h/linknamespace): Likewise.
29213
29214         * conform/Makefile (test-xfail-UNIX98/semaphore.h/linknamespace):
29215         Remove variable.
29216         (test-xfail-XOPEN2K/semaphore.h/linknamespace): Likewise.
29217         (test-xfail-XOPEN2K8/semaphore.h/linknamespace): Likewise.
29218
29219 2014-12-16  Siddhesh Poyarekar  <siddhesh@redhat.com>
29220
29221         * resolv/res_send.c (__libc_res_nsend): Disable warning 'array
29222         subscript above bounds'
29223
29224         * resolv/res_send.c (__libc_res_nsend): Fix check for nsmap
29225         bounds.
29226
29227 2014-12-16  Arjun Shankar  <arjun.is@lostca.se>
29228
29229         * libio/tst-fopenloc.c: Use test-skeleton.c.
29230
29231         * stdlib/tst-bsearch.c: Use test-skeleton.c.
29232         (entry): Rename to ITEM.
29233         (do_test, comp): Adjust.
29234
29235         * stdio-common/tst-fseek.c: Use test-skeleton.c.
29236
29237 2014-12-16  Torvald Riegel  <triegel@redhat.com>
29238
29239         * string/tester.c: Include <libc-internal.h>.
29240         (test_memset): Ignore -Wmemset-transposed-args.
29241
29242 2014-12-16  Torvald Riegel  <triegel@redhat.com>
29243
29244         * misc/tst-mntent2.c (do_test): Fix warning.
29245
29246 2014-12-16  Torvald Riegel  <triegel@redhat.com>
29247
29248         * elf/tst-unique4lib.cc(a): Mark as used.
29249
29250 2014-12-16  Florian Weimer  <fweimer@redhat.com>
29251
29252         [BZ #17630]
29253         * resolv/nss_dns/dns-network.c (getanswer_r): Iterate over alias
29254         names.
29255
29256 2014-12-16  Allan McRae  <allan@archlinux.org>
29257
29258         * stdio-common/Makefile (tests): Re-add bug26.
29259
29260 2014-12-15  Ondřej Bílka  <neleai@seznam.cz>
29261
29262         [BZ #17657]
29263         * locale/programs/ld-ctype.c (find_translit2, read_widestring): Return
29264         static array.
29265
29266 2014-12-15  Bernard Ogden  <bernie.ogden@linaro.org>
29267
29268         * nptl/lowlevellock.c (__lll_lock_wait_private): Add comments.
29269         (__lll_lock_wait): Likewise.
29270         (__lll_timedlock_wait): Likewise.
29271         (__lll_timedwait_tid): Likewise.
29272         * nptl/lowlevelrobustlock.c (__lll_robust_lock_wait): Likewise.
29273         (__lll_robust_timedlock_wait): Likewise.
29274         * sysdeps/nptl/lowlevellock.h (lll_trylock): Likewise.
29275         (lll_cond_trylock): Likewise.
29276         (__lll_lock): Likewise.
29277         (__lll_robust_lock): Likewise.
29278         (__lll_cond_lock): Likewise.
29279         (lll_robust_cond_lock): Likewise.
29280         (__lll_timedlock): Likewise.
29281         (__lll_robust_timedlock): Likewise.
29282         (__lll_unlock): Likewise.
29283         (__lll_robust_unlock): Likewise.
29284         (lll_wait_tid): Likewise.
29285         (lll_timedwait_tid): Likewise.
29286
29287 2014-12-15  Torvald Riegel  <triegel@redhat.com>
29288
29289         * nptl/tst-sem4.c (do_test): Start with a fresh semaphore state.
29290
29291 2014-12-15  Torvald Riegel  <triegel@redhat.com>
29292
29293         * nptl/tst-mutex5.c (do_test): Do not skip tests if elision is enabled.
29294
29295 2014-12-15  Adhemerval Zanella  <Azanella@linux.vnet.ibm.com>
29296
29297         * stdio-common/test-vfprintf.c: Include <libc-internal.h>.
29298         * stdio-common/tst-sprintf.c: Likewise.
29299
29300 2014-12-15  Torvald Riegel  <triegel@redhat.com>
29301
29302         * sysdeps/unix/sysv/linux/s390/pthread_once.c: Remove file.
29303
29304 2014-12-15  Jeff Law  <law@redhat.com>
29305
29306         [BZ #16617]
29307         * stdio-common/vfprintf.c (vfprintf): Allocate large specs array
29308         on the heap.  (CVE-2012-3406)
29309         * stdio-common/bug23-2.c, stdio-common/bug23-3.c: New file.
29310         * stdio-common/bug23-4.c: New file.  Test case by Joseph Myers.
29311         * stdio-common/Makefile (tests): Add bug23-2, bug23-3, bug23-4.
29312
29313 2014-12-15  Will Newton  <will.newton@linaro.org>
29314
29315         * manual/install.texi: Bump required version of texinfo
29316         to 4.7 from 4.5.
29317         * INSTALL: Regenerated.
29318         * configure.ac: Check for makeinfo version 4.7 and above.
29319         * configure: Regenerated.
29320
29321 2014-12-12  Roland McGrath  <roland@hack.frob.com>
29322
29323         * sysdeps/posix/shm-directory.h (SHM_GET_NAME): Take new argument
29324         PREFIX, string constant to insert between directory and name.
29325         * sysdeps/posix/shm_open.c: Update caller.
29326         * sysdeps/posix/shm_unlink.c: Likewise.
29327         * nptl/semaphoreP.h (struct mountpoint_info): Type removed.
29328         (__where_is_shmfs, mountpoint, __namedsem_once): Declarations removed.
29329         (SEM_SHM_PREFIX): New macro.
29330         * sysdeps/posix/Makefile (librt-routines): Add shm-directory only if
29331         [$(have-thread-library) = no].
29332         * nptl/Makefile (libpthread-routines): Add shm-directory.
29333         * nptl/Versions (GLIBC_PRIVATE): Add __shm_directory.
29334         * sysdeps/nptl/shm-directory.h: New file.
29335         * sysdeps/posix/shm-directory.c
29336         [IS_IN (libpthread)] (__shm_directory): Add hidden_def.
29337         * sysdeps/unix/sysv/linux/shm-directory.c: Likewise.
29338         * nptl/sem_open.c (check_add_mapping): Use munmap function rather than
29339         INTERNAL_SYSCALL.
29340         (__where_is_shmfs): Function removed.
29341         (mountpoint, defaultmount, defaultdir, __namedsem_once):
29342         Variables removed.
29343         (sem_open): Use __libc_close function rather than INTERNAL_SYSCALL.
29344         Use SHM_GET_NAME.
29345         * nptl/sem_unlink.c: Prototypify.  Use SHM_GET_NAME.
29346
29347         * sysdeps/nptl/bits/libc-lockP.h [IS_IN (libpthread)]
29348         (PTFAVAIL, __libc_ptf_call, __libc_ptf_call_always): Define as
29349         unconditional for use inside libpthread.
29350         [IS_IN (libpthread)]: Include <nptl/pthreadP.h>.
29351
29352 2014-12-12  Roland McGrath  <roland@hack.frob.com>
29353
29354         * nptl/pthread_getaffinity.c: New file.
29355         * nptl/pthread_setaffinity.c: New file.
29356         * nptl/pthread_getname.c: New file.
29357         * nptl/pthread_setname.c: New file.
29358
29359         * nptl/pthread_create.c (START_THREAD_DEFN)
29360         [! __ASSUME_SET_ROBUST_LIST]: Add missing & in lll_futex_wake argument.
29361
29362 2014-12-12  Stefan Liebler  <stli@linux.vnet.ibm.com>
29363             Adhemerval Zanella  <azanella@linux.vnet.ibm.com>
29364
29365         * resolv/res_send.c (send_vc): Disable warning resplen may
29366         be used uninitialized.
29367
29368 2014-12-12  Stefan Liebler  <stli@linux.vnet.ibm.com>
29369
29370         * nptl/tst-mutex6.c
29371         (ATTR_NULL): New define checks ATTR against NULL.
29372         (do_test): Use !ATTR_NULL instead of ATTR != NULL.
29373         * nptl/tst-mutexpp6.c (ATTR_NULL): New define.
29374
29375 2014-12-11  James Lemke  <jwlemke@codesourcery.com>
29376
29377         [BZ #17581]
29378         * malloc/hooks.c
29379         (mem2mem_check): Revert my previous change.
29380         (malloc_check_get_size): Revert my previous change.
29381         (mem2chunk_check): Revert my previous change.
29382
29383 2014-12-11  Roland McGrath  <roland@hack.frob.com>
29384
29385         * sysdeps/posix/shm-directory.c: New file.
29386         * sysdeps/posix/shm-directory.h: New file.
29387         * sysdeps/posix/Makefile [($(subdir) = rt] (librt-routines): Add it.
29388         * sysdeps/posix/shm_open.c: Use SHM_GET_NAME.
29389         Use O_NOFOLLOW and O_CLOEXEC if available.  Transmute EISDIR to EINVAL.
29390         * sysdeps/posix/shm_unlink.c: Use SHM_GET_NAME.
29391         Transmute EPERM to EACCES.
29392         * sysdeps/unix/sysv/linux/shm-directory.c: New file, most code taken
29393         from ...
29394         * sysdeps/unix/sysv/linux/shm_open.c: ... here.  File removed.
29395         * sysdeps/unix/sysv/linux/shm_unlink.c: File removed.
29396
29397 2014-12-11  Kaz Kojima  <kkojima@rr.iij4u.or.jp>
29398
29399         * sysdeps/sh/jmpbuf_unwind.h (_jmpbuf_sp): Declare SP as void
29400         pointer and cast to uintptr_t.
29401         * sysdeps/sh/nptl/tls.h (TLS_INIT_TP): Use NULL instead of 0.
29402         * sysdeps/unix/sysv/linux/sh/lowlevellock.h (lll_futex_timed_wait):
29403         Add cast to avoid warning.
29404         * sysdeps/unix/sysv/linux/sh/register-dump.h: Use 0 instead of NULL.
29405
29406 2014-12-11  Joseph Myers  <joseph@codesourcery.com>
29407
29408         * nptl/semaphore.h: Move to ...
29409         * sysdeps/pthread/semaphore.h: ... here.
29410         * Makefile (installed-headers): Change nptl/semaphore.h to
29411         sysdeps/pthread/semaphore.h.
29412
29413 2014-12-11  Roland McGrath  <roland@hack.frob.com>
29414
29415         * misc/tst-error1.c (do_test): Ignore -Wformat-security for
29416         generated error format strings.
29417
29418         * stdio-common/tstdiomisc.c (t2): Ignore -Wformat and
29419         -Wformat-extra-args warnings for scanf formats.
29420         * stdio-common/scanf4.c (main): Ignore -Wformat-zero-length around
29421         test of zero-length format (duh).
29422         * stdio-common/scanf7.c (main): Ignore -Wformat warnings for
29423         corner-case scanf format test.
29424         * stdio-common/test-vfprintf.c (do_test): Ignore -Wformat-security for
29425         generated fprintf format string.
29426         * stdio-common/tst-sprintf.c (do_test): Ignore -Wformat warnings for
29427         corner-case sprintf format tests.
29428         * stdio-common/tst-printf.c: Ignore -Wformat throughout.
29429         * stdio-common/tst-printfsz.c (main): Ignore -Wformat and
29430         -Wformat-extra-args warnings throughout.
29431         * stdio-common/Makefile (CFLAGS-tstdiomisc.c): Variable removed.
29432         (CFLAGS-scanf4.c): Likewise.
29433         (CFLAGS-scanf7.c): Likewise.
29434         (CFLAGS-tst-sprintf.c): Likewise.
29435         (CFLAGS-tst-printf.c): Likewise.
29436         (CFLAGS-tst-printfsz.c): Likewise.
29437
29438 2014-12-11  Joseph Myers  <joseph@codesourcery.com>
29439
29440         * include/cpio.h: New file.
29441         * include/fmtmsg.h: Likewise.
29442
29443         * tst-mbswcs1.c (show): Use %zu format instead of %Zd.  Cast
29444         corresponding format argument to size_t.
29445         * tst-mbswcs2.c (show): Likewise.  Use %td format for ptrdiff_t
29446         arguments.
29447         * tst-mbswcs3.c (show): Use %zu format instead of %Zd.  Cast
29448         corresponding format argument to size_t.
29449         * tst-mbswcs4.c (show): Likewise.  Use %td format for ptrdiff_t
29450         arguments.
29451         * tst-mbswcs5.c (show): Use %zu format instead of %Zd.  Cast
29452         corresponding format argument to size_t.
29453         * tst-trans.c (do_test): Use %lc format for wint_t arguments.
29454         * Makefile (CFLAGS-tst-mbswcs1.c): Remove variable.
29455         (CFLAGS-tst-mbswcs2.c): Likewise.
29456         (CFLAGS-tst-mbswcs3.c): Likewise.
29457         (CFLAGS-tst-mbswcs4.c): Likewise.
29458         (CFLAGS-tst-mbswcs5.c): Likewise.
29459         (CFLAGS-tst-trans.c): Likewise.
29460
29461 2014-12-11  Roland McGrath  <roland@hack.frob.com>
29462
29463         * posix/regexbug1.c (main): Use "%s" format with regerror results,
29464         rather than assuming they won't contain any '%'s.
29465
29466 2014-12-11  Chris Metcalf  <cmetcalf@ezchip.com>
29467
29468         * sysdeps/tile/tilegx/memset.c (__memcpy): Add
29469         inhibit_loop_to_libcall to avoid recursive calls.
29470         * sysdeps/tile/tilegx/memcpy.c (__memcpy): Likewise.
29471         * sysdeps/tile/tilepro/memcpy.c (__memcpy): Likewise.
29472
29473 2014-12-11  Adhemerval Zanella  <Azanella@linux.vnet.ibm.com>
29474
29475         * include/sys/socket.h (__sendmmsg): Add __USE_GNU guards on function
29476         prototype.
29477
29478 2014-12-11  Steve Ellcey  <sellcey@imgtec.com>
29479
29480         * sysdeps/mips/dl-trampoline.c: Modify switch expression to have
29481         integer value instead of boolean.
29482
29483 2014-12-11  Steve Ellcey  <sellcey@imgtec.com>
29484
29485         * malloc/malloc.c: Fix powerof2 check.
29486
29487 2014-12-11  Stefan Liebler  <stli@linux.vnet.ibm.com>
29488
29489         * locale/programs/locfile.h (maybe_swap_uint32):
29490         Remove inline and add unused attribute.
29491
29492 2014-12-11  Stefan Liebler  <stli@linux.vnet.ibm.com>
29493
29494         * sysdeps/s390/s390-32/dl-machine.h (elf_machine_load_address):
29495         Truncating assembler expression to a .long expression.
29496
29497 2014-12-11  Andreas Schwab  <schwab@suse.de>
29498
29499         * elf/rtld.c (struct map_args): Constify str member.
29500         (do_preload): Constify fname argument.
29501
29502 2014-12-11  Adhemerval Zanella  <azanella@linux.vnet.ibm.com>
29503
29504         * sysdeps/ieee754/ldbl-128/e_lgammal_r.c: Remove overflow warnings for
29505         constants definition.
29506
29507 2014-12-11  Andreas Schwab  <schwab@suse.de>
29508
29509         [BZ #16657]
29510         * nptl/pthread_mutex_trylock.c (__pthread_mutex_trylock): Use
29511         FORCE_ELISION instead of DO_ELISION.
29512         * sysdeps/unix/sysv/linux/x86/force-elision.h (DO_ELISION):
29513         Remove.
29514         * sysdeps/unix/sysv/linux/s390/force-elision.h (DO_ELISION):
29515         Likewise.
29516
29517         * iconvdata/gconv-modules: Remove duplicate entry.
29518
29519 2014-12-11  Will Newton  <will.newton@linaro.org>
29520
29521         Merge gettext 0.19.3 into intl/.
29522
29523         This involves a number of cosmetic changes to comments
29524         and ANSI function definitions and prototypes throughout
29525         all the files. The gettext copyright header is used but
29526         with the date ranges taken from the glibc copy.
29527
29528         * NEWS: Add gettext merge to 2.21.
29529         * intl/bindtextdom.c: Switch to gettext copyright.
29530         Use ANSI definitions and prototypes.
29531         Use gl_* locking primitives rather than __libc_* ones.
29532         Use __builtin_expect rather than __glibc_likely/unlikely.
29533         * intl/dcgettext.c: Switch to gettext copyright.
29534         Use ANSI definitions and prototypes.
29535         * intl/dcigettext.c: Switch to gettext copyright.
29536         Use ANSI definitions and prototypes.
29537         (INTDIV0_RAISES_SIGFPE): New define.
29538         Use gl_* locking primitives rather than __libc_* ones.
29539         Include eval-plural.h instead of plural-eval.c.
29540         Use __builtin_expect rather than __glibc_likely/unlikely.
29541         * intl/dcngettext.c: Switch to gettext copyright.
29542         Use ANSI definitions and prototypes.
29543         * intl/dgettext.c: Likewise.
29544         * intl/dngettext.c: Likewise.
29545         * intl/plural-eval.c: Renamed to...
29546         * intl/eval-plural.h: ...this.
29547         * intl/explodename.c: Switch to gettext copyright.
29548         Use ANSI definitions and prototypes.
29549         (_nl_explode_name): Use strchr instead of __rawmemchr.
29550         * intl/finddomain.c: Switch to gettext copyright.
29551         Use ANSI definitions and prototypes.
29552         Use gl_* locking primitives rather than __libc_* ones.
29553         (_nl_find_domain): Use malloc rather than alloca for
29554         allocation of temporary locale name.
29555         * intl/gettext.c: Switch to gettext copyright.
29556         Use ANSI definitions and prototypes.
29557         * intl/gettextP.h: Switch to gettext copyright.
29558         Use ANSI definitions and prototypes.
29559         Use gl_* locking primitives rather than __libc_* ones.
29560         * intl/gmo.h: Switch to gettext copyright.
29561         (struct sysdep_string): Move struct segment_pair outside of
29562         struct definition.
29563         * intl/hash-string.c: Use ANSI definitions and prototypes.
29564         * intl/hash-string.h: Switch to gettext copyright.
29565         Use ANSI definitions and prototypes.
29566         * intl/l10nflist.c: Switch to gettext copyright.
29567         Use ANSI definitions and prototypes.
29568         (_nl_normalize_codeset): Avoid integer overflow.
29569         * intl/loadinfo.h: Switch to gettext copyright.
29570         Use ANSI definitions and prototypes.
29571         (LIBINTL_DLL_EXPORTED): New define.
29572         (PATH_SEPARATOR): New define.
29573         * intl/loadmsgcat.c: Switch to gettext copyright.
29574         * intl/localealias.c: Switch to gettext copyright.
29575         Use ANSI definitions and prototypes.
29576         (_nl_expand_alias): Use PATH_SEPARATOR.
29577         * intl/ngettext.c: Switch to gettext copyright.
29578         Use ANSI definitions and prototypes.
29579         * intl/plural-exp.c: Likewise.
29580         * intl/plural-exp.h: Switch to gettext copyright.
29581         Use ANSI definitions and prototypes.
29582         (struct expression): Move definition of enum operator outside
29583         of struct definition.
29584         * intl/plural.c: Regenerate.
29585         * intl/plural.y: Switch to gettext copyright.
29586         Use ANSI definitions and prototypes.
29587         Port to bison 3.0.
29588         * intl/textdomain.c: Switch to gettext copyright.
29589         Use ANSI definitions and prototypes.
29590         Use gl_* locking primitives rather than __libc_* ones.
29591
29592 2014-12-10  Steve Ellcey  <sellcey@imgtec.com>
29593
29594         * debug/warning-nop.c: Add used atrribute.
29595
29596 2014-12-10  Joseph Myers  <joseph@codesourcery.com>
29597
29598         * sysdeps/unix/sysv/linux/mips/mips32/waitid.c: New file.
29599
29600         * sysdeps/unix/sysv/linux/mips/mips64/Makefile
29601         [$(subdir) == signal] (CFLAGS-sigaction.c): New variable.
29602         [$(subdir) == nptl] (CFLAGS-sigaction.c): Likewise.
29603
29604 2014-12-10  Joseph Myers  <joseph@codesourcery.com>
29605             Adhemerval Zanella  <azanella@linux.vnet.ibm.com>
29606
29607         [BZ #17634]
29608         * wcsmbs/wcschr.c [!WCSCHR] (wcschr): Define as __wcschr.
29609         Undefine after defining function.  Define as weak alias of
29610         __wcschr.  Use libc_hidden_weak.
29611         * include/wchar.h (__wcschr): Declare.  Use libc_hidden_proto.
29612         * sysdeps/i386/i686/multiarch/wcschr-c.c [IS_IN (libc) && SHARED]
29613         (libc_hidden_def): Also define __GI___wcschr alias.
29614         * sysdeps/i386/i686/multiarch/wcschr.S (wcschr): Rename to
29615         __wcschr and define as weak alias of __wcschr.
29616         * sysdeps/powerpc/power6/wcschr.c [!WCSCHR] (WCSCHR): Define as
29617         __wcschr.
29618         [!WCSCHR] (DEFAULT_WCSCHR): Define.
29619         [DEFAULT_WCSCHR] (__wcschr): Use libc_hidden_def.
29620         [DEFAULT_WCSCHR] (wcschr): Define as weak alias of __wcschr.  Use
29621         libc_hidden_weak.  Do not use libc_hidden_def.
29622         * sysdeps/powerpc/powerpc32/power4/multiarch/wcschr-ppc32.c
29623         [IS_IN (libc) && SHARED] (libc_hidden_def): Also define
29624         __GI___wcschr alias.
29625         * sysdeps/powerpc/powerpc32/power4/multiarch/wcschr.c
29626         [IS_IN (libc)] (wcschr): Define as macro expanding to
29627         __redirect_wcschr.
29628         [IS_IN (libc)] (__wcschr_ppc): Use __redirect_wcschr in typeof.
29629         [IS_IN (libc)] (__wcschr_power6): Likewise.
29630         [IS_IN (libc)] (__wcschr_power7): Likewise.
29631         [IS_IN (libc)] (__libc_wcschr): New.  Define with libc_ifunc
29632         instead of wcschr.
29633         [IS_IN (libc)] (wcschr): Undefine and define as weak alias of
29634         __libc_wcschr.
29635         [!IS_IN (libc)] (libc_hidden_def): Do not undefine and redefine.
29636         * sysdeps/powerpc/powerpc64/multiarch/wcschr.c (wcschr): Rename to
29637         __wcschr and define as weak alias of __wcschr.  Use
29638         libc_hidden_builtin_def.
29639         * sysdeps/x86_64/wcschr.S (wcschr): Rename to __wcschr and define
29640         as weak alias of __wcschr.  Use libc_hidden_weak.
29641         * time/alt_digit.c (_nl_get_walt_digit): Use __wcschr instead of
29642         wcschr.
29643         * time/era.c (_nl_init_era_entries): Likewise.
29644         * conform/Makefile (test-xfail-ISO/time.h/linknamespace): Remove
29645         variable.
29646         (test-xfail-XPG3/time.h/linknamespace): Likewise.
29647         (test-xfail-XPG4/time.h/linknamespace): Likewise.
29648
29649 2014-12-10  Joseph Myers  <joseph@codesourcery.com>
29650
29651         * libio/tst-ftell-active-handler.c (do_ftruncate_test): Use %ld
29652         format for long int variable.
29653
29654 2014-12-10  Anders Kaseorg  <andersk@MIT.EDU>
29655
29656         [BZ #10672]
29657         * manual/search.texi: (Array Sort Function): Remove claim how to make
29658         qsort stable.
29659
29660 2014-12-10  Andreas Schwab  <schwab@suse.de>
29661
29662         [BZ #12847]
29663         * sysdeps/nptl/fork.c (fresetlockfiles): Skip files with
29664         user-controlled locks.
29665
29666 2014-12-10  Richard Earnshaw  <rearnsha@arm.com>
29667
29668         * sysdeps/aarch64/strchrnul.S (vrepmask): Use a call-clobbered
29669         register.
29670
29671 2014-12-10  Joseph Myers  <joseph@codesourcery.com>
29672
29673         * configure.ac (--disable-werror): New configure option.
29674         (enable_werror): New AC_SUBST.
29675         * configure: Regenerated.
29676         * config.make.in (enable-werror): New variable.
29677         * Makeconfig [$(enable-werror) = yes] (+gccwarn): Add -Werror
29678         -Wno-error=undef.
29679         (+gccwarn-c): Do not use -Werror=implicit-function-declaration.
29680         * manual/install.texi (Configuring and compiling): Document
29681         --disable-werror.
29682         * INSTALL: Regenerated.
29683         * debug/Makefile (CFLAGS-tst-chk1.c): Add -Wno-error.
29684         (CFLAGS-tst-chk2.c): Likewise.
29685         (CFLAGS-tst-chk3.c): Likewise.
29686         (CFLAGS-tst-chk4.cc): Likewise.
29687         (CFLAGS-tst-chk5.cc): Likewise.
29688         (CFLAGS-tst-chk6.cc): Likewise.
29689         (CFLAGS-tst-lfschk1.c): Likewise.
29690         (CFLAGS-tst-lfschk2.c): Likewise.
29691         (CFLAGS-tst-lfschk3.c): Likewise.
29692         (CFLAGS-tst-lfschk4.cc): Likewise.
29693         (CFLAGS-tst-lfschk5.cc): Likewise.
29694         (CFLAGS-tst-lfschk6.cc): Likewise.
29695
29696         * stdio-common/tst-printfsz.c: Include <libc-internal.h>.
29697         (main): Disable -Wdeprecated-declarations around calls to
29698         register_printf_function.
29699
29700         * stdio-common/tst-unlockedio.c: Include <libc-internal.h>.
29701         (do_test): Disable -Wdiv-by-zero around some calls to
29702         fwrite_unlocked and fread_unlocked.
29703
29704         * include/libc-internal.h (DIAG_PUSH_NEEDS_COMMENT): New macro.
29705         (DIAG_POP_NEEDS_COMMENT): Likewise.
29706         (_DIAG_STR1): Likewise.
29707         (_DIAG_STR): Likewise.
29708         (DIAG_IGNORE_NEEDS_COMMENT): Likewise.
29709         * stdio-common/bug21.c: Include <libc-internal.h>.
29710         (do_test): Disable -Wformat around call to sscanf.
29711         * stdio-common/scanf14.c: Include <libc-internal.h>.
29712         (main): Disable -Wformat around some calls to scanf functions.
29713
29714 2014-12-09  Torvald Riegel  <triegel@redhat.com>
29715
29716         * sysdeps/unix/sysv/linux/sh/pthread_once.S: Remove file.
29717
29718 2014-12-08  Adhemerval Zanella  <azanella@linux.vnet.ibm.com>
29719
29720         * libio/tst-ftell-active-handler.c (do_ftell_test): Fix wide-character
29721         stack variable alignment.
29722
29723 2014-12-06  Joseph Myers  <joseph@codesourcery.com>
29724
29725         [BZ #17682]
29726         * resource/Versions (libc): Add __getrlimit at GLIBC_PRIVATE.
29727         * resource/getrlimit.c (__getrlimit): Use libc_hidden_def.
29728         * sysdeps/mach/hurd/getrlimit.c (__getrlimit): Likewise.
29729         * include/sys/resource.h (__getrlimit): Use libc_hidden_proto.
29730         * nptl/nptl-init.c (__pthread_initialize_minimal_internal): Use
29731         __getrlimit instead of getrlimit.
29732         * nptl/pthread_cond_timedwait.c (__pthread_cond_timedwait): Use
29733         __gettimeofday instead of gettimeofday.
29734         * nptl/pthread_rwlock_timedrdlock.c (pthread_rwlock_timedrdlock):
29735         Likewise.
29736         * nptl/pthread_rwlock_timedwrlock.c (pthread_rwlock_timedwrlock):
29737         Likewise.
29738         * sysdeps/pthread/aio_misc.c (handle_fildes_io): Likewise.
29739         * conform/Makefile (test-xfail-POSIX2008/aio.h/linknamespace):
29740         Remove variable.
29741         (test-xfail-POSIX2008/pthread.h/linknamespace): Likewise.
29742         (test-xfail-POSIX2008/time.h/linknamespace): Likewise.
29743
29744 2014-12-05  Adhemerval Zanella  <azanella@linux.vnet.ibm.com>
29745
29746         * libio/tst-ftell-active-handler.c (do_ftell_test): Fix buffer overrun
29747         for wide-character tests.
29748
29749 2014-12-04  Roland McGrath  <roland@hack.frob.com>
29750
29751         * io/openat64.c: #include <libc-internal.h>
29752         (__openat64): Prototypify.  Use ignore_value on MODE.
29753         * io/openat.c: Likewise.
29754         * misc/reboot.c: #include <libc-internal.h>
29755         (reboot): Prototypify.  Use ignore_value on HOWTO.
29756         * misc/ptrace.c: #include <libc-internal.h>
29757         (ptrace): Prototypify.  Use ignore_value for va_arg'd parameters.
29758
29759 2014-12-04  Joseph Myers  <joseph@codesourcery.com>
29760
29761         * conform/list-header-symbols.pl (%extra_syms): Add h_errno for
29762         XPG4, UNIX98 and XOPEN2K.
29763         * conform/Makefile (test-xfail-XOPEN2K/grp.h/linknamespace):
29764         Remove variable.
29765         (test-xfail-XOPEN2K/pwd.h/linknamespace): Likewise.
29766
29767 2014-12-04  Siddhesh Poyarekar  <siddhesh@redhat.com>
29768
29769         * libio/fileops.c: Use ISO C style for function definitions.
29770         * libio/iofopen.c: Likewise.
29771         * libio/wfileops.c: Likewise.
29772
29773         [BZ #17653]
29774         * libio/fileops.c (_IO_new_file_underflow): Unset cached
29775         offset on EOF.
29776         * libio/wfileops.c (_IO_wfile_underflow): Likewise.
29777         * libio/tst-ftell-active-handler.c (fgets_func_t): New type.
29778         (fgets_func): Function pointer to fgets and fgetws.
29779         (do_ftell_test): Add test to verify ftell value after read
29780         EOF.
29781         (do_test): Set fgets_func.
29782
29783         * libio/tst-ftell-active-handler.c (do_ftruncate_test): Add
29784         O_TRUNC flag for w and w+ modes.
29785         (do_rewind_test): Likewise.
29786         (do_ftell_test): Likewise.
29787         (do_write_test): Likewise.
29788
29789         [BZ #17647]
29790         * libio/fileops.c (do_ftell): Seek only when there are
29791         unflushed writes.
29792         * libio/wfileops.c (do_ftell_wide): Likewise.
29793         * libio/tst-ftell-active-handler.c (do_ftruncate_test): New
29794         test case.
29795         (do_one_test): Call it.
29796
29797 2014-12-03  Joseph Myers  <joseph@codesourcery.com>
29798
29799         * conform/list-header-symbols.pl (%extra_syms): Add getdate_err
29800         for XPG4, UNIX98, XOPEN2K and XOPEN2K8.
29801         * conform/Makefile (test-xfail-XOPEN2K/pthread.h/linknamespace):
29802         Remove variable.
29803         (test-xfail-XOPEN2K/time.h/linknamespace): Likewise.
29804         (test-xfail-XOPEN2K8/pthread.h/linknamespace): Likewise.
29805         (test-xfail-XOPEN2K8/time.h/linknamespace): Likewise.
29806
29807 2014-12-02  Joseph Myers  <joseph@codesourcery.com>
29808
29809         * conform/Makefile (test-xfail-XOPEN2K/aio.h/linknamespace):
29810         Remove variable.
29811         (test-xfail-XOPEN2K8/aio.h/linknamespace): Likewise.
29812
29813         [BZ #17668]
29814         * inet/ifaddrs.c (getifaddrs): Rename to __getifaddrs and define
29815         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/gnu/ifaddrs.c (getifaddrs): Rename to __getifaddrs and
29819         define as weak alias of __getifaddrs.  Use libc_hidden_weak.
29820         (freeifaddrs): Rename to __freeifaddrs and define as weak alias of
29821         __freeifaddrs.  Use libc_hidden_weak.
29822         * sysdeps/unix/sysv/linux/ifaddrs.c (getifaddrs): Rename to
29823         __getifaddrs and define as weak alias of __getifaddrs.  Use
29824         libc_hidden_weak.
29825         (freeifaddrs): Rename to __freeifaddrs and define as weak alias of
29826         __freeifaddrs.  Use libc_hidden_weak.
29827         * conform/Makefile (test-xfail-XOPEN2K/net/if.h/linknamespace):
29828         Remove variable.
29829         (test-xfail-POSIX2008/net/if.h/linknamespace): Likewise.
29830         (test-xfail-XOPEN2K8/net/if.h/linknamespace): Likewise.
29831
29832 2014-12-02  Petar Jovanovic  <petar.jovanovic@rt-rk.com>
29833
29834         [BZ #17601]
29835         * sysdeps/mips/start.S (__start): Use indirect jump to call
29836         __libc_start_main.
29837
29838 2014-12-02  Joseph Myers  <joseph@codesourcery.com>
29839
29840         * nptl/tst-stack4.c (dso_process): Use int not uintptr_t for t.
29841
29842         * nptl/tst-mutex1.c: Include <stdbool.h>.
29843         [!ATTR] (ATTR_NULL): New macro.
29844         (do_test): Test !ATTR_NULL instead of ATTR != NULL.
29845         * nptl/tst-mutexpi1.c (ATTR_NULL): New macro.
29846         * nptl/tst-mutexpp1.c (ATTR_NULL): New macro.
29847
29848         * posix/tst-getopt_long1.c (do_test): Cast elements of argv array
29849         to char *.
29850
29851         [BZ #17665]
29852         * posix/unistd.h [__USE_MISC || (__USE_XOPEN && !__USE_UNIX98)]:
29853         Change conditional to [__USE_MISC].
29854
29855         [BZ #17664]
29856         * misc/mntent_r.c (__getmntent_r): Use __fgets_unlocked instead of
29857         fgets_unlocked.
29858         * resolv/res_hconf.c [IS_IN (libc)] (fgets_unlocked): Define to
29859         __fgets_unlocked.
29860         * resolv/res_init.c (__res_vinit): Use __fgets_unlocked instead of
29861         fgets_unlocked.
29862         * conform/Makefile (test-xfail-XPG4/sys/statvfs.h/linknamespace):
29863         Remove variable.
29864         (test-xfail-POSIX/sys/mman.h/linknamespace): Likewise.
29865         (test-xfail-UNIX98/sys/mman.h/linknamespace): Likewise.
29866         (test-xfail-UNIX98/sys/statvfs.h/linknamespace): Likewise.
29867         (test-xfail-XOPEN2K/sys/mman.h/linknamespace): Likewise.
29868         (test-xfail-XOPEN2K/sys/statvfs.h/linknamespace): Likewise.
29869         (test-xfail-POSIX2008/sys/mman.h/linknamespace): Likewise.
29870         (test-xfail-POSIX2008/sys/statvfs.h/linknamespace): Likewise.
29871         (test-xfail-XOPEN2K8/sys/mman.h/linknamespace): Likewise.
29872         (test-xfail-XOPEN2K8/sys/statvfs.h/linknamespace): Likewise.
29873
29874         * elf/tst-unique4lib.cc (b): Mark with __attribute__ ((used)).
29875
29876 2014-12-02  Adhemerval Zanella  <azanella@linux.vnet.ibm.com>
29877
29878         * sysdeps/powerpc/powerpc64/multiarch/Makefile [sysdep_routines]:
29879         Remove strpbrk objects.
29880         * sysdeps/powerpc/powerpc64/multiarch/ifunc-impl-list.c
29881         (__libc_ifunc_impl_list): Remove strpbrk implementation.
29882         * sysdeps/powerpc/powerpc64/multiarch/strpbrk-ppc64.c: Remove file.
29883         * sysdeps/powerpc/powerpc64/multiarch/strpbrk.c: Remove file.
29884         * sysdeps/powerpc/powerpc64/power7/strpbrk.S: Remove file.
29885         * sysdeps/powerpc/powerpc64/strpbrk.S: New file.
29886
29887         * sysdeps/powerpc/powerpc64/multiarch/Makefile [sysdep_routines]:
29888         Remove strcspn objects.
29889         * sysdeps/powerpc/powerpc64/multiarch/ifunc-impl-list.c
29890         (__libc_ifunc_impl_list): Remove strcspn implementation.
29891         * sysdeps/powerpc/powerpc64/multiarch/strcspn-ppc64.c: Remove file.
29892         * sysdeps/powerpc/powerpc64/multiarch/strcspn.c: Remove file.
29893         * sysdeps/powerpc/powerpc64/power7/strcspn.S: Remove file.
29894         * sysdeps/powerpc/powerpc64/strcspn.S: New file.
29895
29896         * sysdeps/powerpc/powerpc64/multiarch/Makefile [sysdep_routines]:
29897         Remove strspn objetcs.
29898         * sysdeps/powerpc/powerpc64/multiarch/ifunc-impl-list.c
29899         (__libc_ifunc_impl_list): Remove strspn implementation.
29900         * sysdeps/powerpc/powerpc64/multiarch/strspn-power7.S: Remove file.
29901         * sysdeps/powerpc/powerpc64/multiarch/strspn-ppc64.c: Likewise.
29902         * sysdeps/powerpc/powerpc64/power7/strspn.S: Remove file.
29903         * sysdeps/powerpc/powerpc64/strspn.S: New file.
29904
29905 2014-12-01  James Lemke  <jwlemke@codesourcery.com>
29906
29907         [BZ #17581]
29908         * malloc/hooks.c
29909         (mem2mem_check): Add a terminator to the chain of checking blocks.
29910         (malloc_check_get_size): Use it here.
29911         (mem2chunk_check): Ditto.
29912
29913 2014-12-01  Rajalakshmi Srinivasaraghavan <raji@linux.vnet.ibm.com>
29914
29915         * sysdeps/powerpc/powerpc64/strtok.S: New file.
29916         * sysdeps/powerpc/powerpc64/strtok_r.S: New file.
29917
29918 2014-11-29  Carlos O'Donell  <carlos@redhat.com>
29919
29920         * bits/ioctl-types.h: Indent preprocessor directives correctly.
29921
29922         * nptl/nptl-init.c: Include libc-internal.h.
29923         (__pthread_initialize_minimal_internal): Use ROUND_UP.
29924
29925         * elf/ldconfig.c (search_dir): Expand comment.
29926
29927 2014-11-29  Joseph Myers  <joseph@codesourcery.com>
29928
29929         * conform/Makefile (linknamespace-symlist-stdlibs-base): New
29930         variable.
29931         (linknamespace-symlist-stdlibs-tests): Likewise.
29932         (tests-special): Append $(linknamespace-symlist-stdlibs-tests)
29933         instead of $(objpfx)symlist-stdlibs.
29934         (linknamespace-libs-isoc): New variable.
29935         (linknamespace-libs): Use $(linknamespace-libs-isoc).
29936         (linknamespace-libs-ISO): New variable.
29937         (linknamespace-libs-ISO99): Likewise.
29938         (linknamespace-libs-ISO11): Likewise.
29939         (linknamespace-libs-XPG3): Likewise.
29940         (linknamespace-libs-XPG4): Likewise.
29941         (linknamespace-libs-POSIX): Likewise.
29942         (linknamespace-libs-UNIX98): Likewise.
29943         (linknamespace-libs-XOPEN2K): Likewise.
29944         (linknamespace-libs-POSIX2008): Likewise.
29945         (linknamespace-libs-XOPEN2K8): Likewise.
29946         ($(objpfx)symlist-stdlibs): Replace by
29947         $(linknamespace-symlist-stdlibs-tests).  Use
29948         $(linknamespace-libs-$*) as set of libraries.
29949         ($(linknamespace-header-tests)): Update dependencies.  Use
29950         $(objpfx)symlist-stdlibs-$$std for --libsyms argument.
29951         (test-xfail-XPG4/sys/mman.h/linknamespace): Remove.
29952         * conform/linknamespace.pl: Remove comment about considering
29953         definitions of symbols from irrelevant libraries.
29954
29955 2014-11-28  H.J. Lu  <hongjiu.lu@intel.com>
29956
29957         [BZ #13862]
29958         * elf/dl-tls.c: Include <atomic.h>.
29959         (oom): Remove #ifdef SHARED/#endif.
29960         (_dl_static_dtv, _dl_initial_dtv): Moved before ...
29961         (_dl_resize_dtv): This.  Extracted from _dl_update_slotinfo.
29962         (_dl_allocate_tls_init): Resize DTV if the current DTV isn't
29963         big enough.
29964         (_dl_update_slotinfo): Call _dl_resize_dtv to resize DTV.
29965         * nptl/Makefile (tests): Add tst-stack4.
29966         (modules-names): Add tst-stack4mod.
29967         ($(objpfx)tst-stack4): New.
29968         (tst-stack4mod.sos): Likewise.
29969         ($(objpfx)tst-stack4.out): Likewise.
29970         ($(tst-stack4mod.sos)): Likewise.
29971         (clean): Likewise.
29972         * nptl/tst-stack4.c: New file.
29973         * nptl/tst-stack4mod.c: Likewise.
29974
29975 2014-11-27  J. Brown  <jb999@gmx.de>
29976
29977         * sysdeps/x86/bits/string.h: Add recent CPUs.
29978
29979 2014-11-27  Joseph Myers  <joseph@codesourcery.com>
29980
29981         * misc/tst-pselect.c (do_test): Use sigprocmask instead of
29982         sigblock.
29983
29984         * libio/bug-ungetwc1.c (do_test): Verify results of getwc and
29985         feof.
29986
29987         * dlfcn/failtestmod.c (constr): Do not store result of dlsym in a
29988         variable.
29989
29990 2014-11-27  Stefan Liebler  <stli@linux.vnet.ibm.com>
29991
29992         * nscd/connections.c: Include libc-internal.h because of macro
29993         usage ignore_value.
29994
29995 2014-11-27  Siddhesh Poyarekar  <siddhesh@redhat.com>
29996
29997         * string/bits/string3.h (__warn_memset_zero_len): Don't
29998         declare for gcc newer than 5.0.
29999         (memset): Don't test for zero-length __LEN for gcc newer than
30000         5.0.
30001
30002 2014-11-27  Joseph Myers  <joseph@codesourcery.com>
30003
30004         * stdio-common/tst-fmemopen.c (do_test): Cast st_size values to
30005         size_t for %zu format.
30006
30007         * nss/tst-nss-test1.c (do_test): Use %td printf format for pointer
30008         difference, not %ju.
30009
30010 2014-11-26  Joseph Myers  <joseph@codesourcery.com>
30011
30012         * include/libc-internal.h (ignore_value): New macro.
30013         * nscd/connections.c (restart): Wrap calls to setuid and setgid
30014         with ignore_value.
30015
30016         * sysdeps/mips/__longjmp.c (____longjmp): Use prototype
30017         definition.
30018
30019         * nptl/tst-cancel-self-cancelstate.c (do_test): Cast argument of
30020         pthread_cleanup_push to void *.
30021
30022         * sysdeps/unix/sysv/linux/arm/libc-do-syscall.S (_FORTIFY_SOURCE):
30023         Undefine.
30024
30025         [BZ #16619]
30026         [BZ #16740]
30027         * sysdeps/ieee754/ldbl-128ibm/s_frexpl.c (__frexpl): Use 1LL << 52
30028         instead of 1L << 52.
30029
30030         * libio/bug-rewind.c (do_test): Check fwscanf return values.
30031         * libio/bug-rewind2.c (do_test): Likewise.
30032
30033         * debug/test-stpcpy_chk-ifunc.c: Remove file.
30034         * debug/test-strcpy_chk-ifunc.c: Likewise.
30035         * wcsmbs/test-wcschr-ifunc.c: Likewise.
30036         * wcsmbs/test-wcscmp-ifunc.c: Likewise.
30037         * wcsmbs/test-wcscpy-ifunc.c: Likewise.
30038         * wcsmbs/test-wcslen-ifunc.c: Likewise.
30039         * wcsmbs/test-wcsrchr-ifunc.c: Likewise.
30040         * wcsmbs/test-wmemcmp-ifunc.c: Likewise.
30041         * Rules [$(multi-arch) = no] (tests): Do not filter out
30042         $(tests-ifunc).
30043         [$(multi-arch) = no] (xtests): Do not filter out $(xtests-ifunc).
30044         * debug/Makefile (tests-ifunc): Remove variable.
30045         (tests): Do not add $(tests-ifunc).
30046         * wcsmbs/Makefile (tests-ifunc): Remove variable.
30047         (tests): Do not add $(tests-ifunc).
30048         * benchtests/bench-string.h (TEST_IFUNC): Remove macro.
30049         [TEST_IFUNC]: Remove conditionals.
30050         * string/test-string.h (TEST_IFUNC): Remove macro.
30051         [TEST_IFUNC]: Remove conditionals.
30052
30053         * string/test-strchr.c [!WIDE] (L): New macro.
30054         [WIDE] (L): Likewise.
30055         (check1): Use CHAR instead of char.  Use L on string and character
30056         constants.
30057
30058 2014-11-26  Adhemerval Zanella  <azanella@linux.ibm.com>
30059
30060         * csu/tst-atomic.c (do_test): Add atomic_exchange_and_add_{acq,rel}
30061         tests.
30062         * sysdeps/powerpc/bits/atomic.h
30063         (__arch_atomic_exchange_and_add_32_acq): Add definition.
30064         (__arch_atomic_exchange_and_add_32_rel): Likewise.
30065         (atomic_exchange_and_add_acq): Likewise.
30066         (atomic_exchange_and_add_rel): Likewise.
30067         * sysdeps/powerpc/powerpc32/bits/atomic.h
30068         (__arch_atomic_exchange_and_add_64_acq): Add definition.
30069         (__arch_atomic_exchange_and_add_64_rel): Likewise.
30070         * sysdeps/powerpc/powerpc64/bits/atomic.h
30071         (__arch_atomic_exchange_and_add_64_acq): Add definition.
30072         (__arch_atomic_exchange_and_add_64_rel): Likewise.
30073
30074 2014-11-26  Torvald Riegel  <triegel@redhat.com>
30075
30076         * nptl/tpp.c (__init_sched_fifo_prio, __pthread_tpp_change_priority):
30077         Change synchronization of __sched_fifo_min_prio and
30078         __sched_fifo_max_prio.
30079         * nptl/pthread_mutexattr_getprioceiling.c
30080         (pthread_mutexattr_getprioceiling): Likewise.
30081         * nptl/pthread_mutexattr_setprioceiling.c
30082         (pthread_mutexattr_setprioceiling): Likewise.
30083         * nptl/pthread_mutex_init.c (__pthread_mutex_init): Likewise.
30084         * nptl/pthread_mutex_setprioceiling.c (pthread_mutex_setprioceiling):
30085         Likewise.
30086
30087 2014-11-26  Joseph Myers  <joseph@codesourcery.com>
30088
30089         * setjmp/jmpbug.c (test): Make foo volatile and cast it to
30090         void.
30091
30092 2014-11-25  Joseph Myers  <joseph@codesourcery.com>
30093
30094         * stdio-common/tst-printf-round.c (test_hex_in_one_mode): Make
30095         third argument const.
30096
30097 2014-11-25  Paul Eggert  <eggert@cs.ucla.edu>
30098
30099         fnmatch: work around GCC compiler warning bug with uninit var
30100         * posix/fnmatch_loop.c (FCT): Use a scalar not a one-item array.
30101         This works around a bug with x86-64 GCC 4.9.2 and earlier
30102         where 'gcc -O2 -Wmaybe-uninitialized' incorrectly complains
30103         "../locale/weightwc.h:93:7: warning: '*((void *)&str+4)' may be
30104         used uninitialized in this function [-Wmaybe-uninitialized]".
30105
30106 2014-11-25  Joseph Myers  <joseph@codesourcery.com>
30107
30108         * posix/bug-regex31.c (main): Return RES not 0.
30109
30110 2014-11-25  Anton Blanchard <anton@samba.org>
30111
30112         * sysdeps/powerpc/bits/atomic.h
30113         (__arch_compare_and_exchange_bool_64_rel): Load from mem.
30114
30115 2014-11-24  Sterling Augustine  <saugustine@google.com>
30116
30117         * sysdeps/x86_64/start.S (_start): Use ENTRY and END macros.
30118
30119 2014-11-24  Ryan Cumming  <etaoins@gmail.com>
30120
30121         [BZ #17608]
30122         * sysdeps/unix/sysv/linux/bits/time.h: Define CLOCK_TAI.
30123
30124 2014-11-24  Joseph Myers  <joseph@codesourcery.com>
30125
30126         [BZ #17633]
30127         * stdio-common/perror.c (perror): Call __fileno instead of fileno.
30128         * conform/Makefile (test-xfail-ISO/stdio.h/linknamespace): Remove
30129         variable.
30130         (test-xfail-ISO99/stdio.h/linknamespace): Likewise.
30131         (test-xfail-ISO11/stdio.h/linknamespace): Likewise.
30132
30133 2014-11-24  Wilco Dijkstra  <wdijkstr@arm.com>
30134
30135         * string/strncpy.c (strncpy): Improve performance by using memset.
30136
30137 2014-11-24  Wilco Dijkstra  <wdijkstr@arm.com>
30138
30139         * string/strcpy.c (strcpy):
30140         Improve performance by using strlen and memcpy.
30141
30142 2014-11-24  Leonhard Holz  <leonhard.holz@web.de>
30143
30144         * string/strcoll_l.c (get_next_seq): __always_inline.
30145         * string/strcoll_l.c (do_compare): __always_inline.
30146
30147 2014-11-24  Siddhesh Poyarekar  <siddhesh@redhat.com>
30148
30149         * include/bits/stdlib-float.h: Use IS_IN only if _ISOMAC is
30150         defined.
30151         * include/mqueue.h: Likewise.
30152         * include/stdlib.h: Likewise.
30153
30154         * stdlib/isomac.c (fmt): Replace NOT_IN_libc with IN_MODULE.
30155         (get_null_defines): Adjust.
30156         * sunrpc/Makefile: Adjust comment.
30157         * Makerules (CPPFLAGS-nonlib): Remove NOT_IN_libc.
30158         * elf/Makefile (CPPFLAGS-sotruss-lib): Likewise.
30159         (CFLAGS-interp.c): Likewise.
30160         (CFLAGS-ldconfig.c): Likewise.
30161         (CPPFLAGS-.os): Likewise.
30162         * elf/rtld-Rules (rtld-CPPFLAGS): Likewise.
30163         * extra-lib.mk (CPPFLAGS-$(lib)): Likewise.
30164         * extra-modules.mk (extra-modules.mk): Likewise.
30165         * iconv/Makefile (CPPFLAGS-iconvprogs): Likewise.
30166         * locale/Makefile (CPPFLAGS-locale_programs): Likewise.
30167         * malloc/Makefile (CPPFLAGS-memusagestat): Likewise.
30168         * nscd/Makefile (CPPFLAGS-nscd): Likewise.
30169         * nss/Makefile (CPPFLAGS-nss_test1): Likewise.
30170         * stdlib/Makefile (CFLAGS-tst-putenvmod.c): Likewise.
30171         * sysdeps/gnu/Makefile ($(objpfx)errlist-compat.c): Likewise.
30172         * sysdeps/unix/sysv/linux/Makefile (CPPFLAGS-lddlibc4): Likewise.
30173         * iconvdata/Makefile (CPPFLAGS): Likewise.
30174         (cpp-srcs-left): Add libof for all iconvdata routines.
30175         * bits/stdio-lock.h: Replace NOT_IN_libc with IS_IN.
30176         * include/assert.h: Likewise.
30177         * include/ctype.h: Likewise.
30178         * include/errno.h: Likewise.
30179         * include/libc-symbols.h: Likewise.
30180         * include/math.h: Likewise.
30181         * include/netdb.h: Likewise.
30182         * include/resolv.h: Likewise.
30183         * include/stdio.h: Likewise.
30184         * include/stdlib.h: Likewise.
30185         * include/string.h: Likewise.
30186         * include/sys/stat.h: Likewise.
30187         * include/wctype.h: Likewise.
30188         * intl/l10nflist.c: Likewise.
30189         * libidn/idn-stub.c: Likewise.
30190         * libio/libioP.h: Likewise.
30191         * nptl/libc_multiple_threads.c: Likewise.
30192         * nptl/pthreadP.h: Likewise.
30193         * posix/regex_internal.h: Likewise.
30194         * resolv/res_hconf.c: Likewise.
30195         * sysdeps/arm/armv7/multiarch/memcpy.S: Likewise.
30196         * sysdeps/arm/memmove.S: Likewise.
30197         * sysdeps/arm/sysdep.h: Likewise.
30198         * sysdeps/generic/_itoa.h: Likewise.
30199         * sysdeps/generic/symbol-hacks.h: Likewise.
30200         * sysdeps/gnu/errlist.awk: Likewise.
30201         * sysdeps/gnu/errlist.c: Likewise.
30202         * sysdeps/i386/i586/memcpy.S: Likewise.
30203         * sysdeps/i386/i586/memset.S: Likewise.
30204         * sysdeps/i386/i686/memcpy.S: Likewise.
30205         * sysdeps/i386/i686/memmove.S: Likewise.
30206         * sysdeps/i386/i686/mempcpy.S: Likewise.
30207         * sysdeps/i386/i686/memset.S: Likewise.
30208         * sysdeps/i386/i686/multiarch/bcopy.S: Likewise.
30209         * sysdeps/i386/i686/multiarch/bzero.S: Likewise.
30210         * sysdeps/i386/i686/multiarch/memchr-sse2-bsf.S: Likewise.
30211         * sysdeps/i386/i686/multiarch/memchr-sse2.S: Likewise.
30212         * sysdeps/i386/i686/multiarch/memchr.S: Likewise.
30213         * sysdeps/i386/i686/multiarch/memcmp-sse4.S: Likewise.
30214         * sysdeps/i386/i686/multiarch/memcmp-ssse3.S: Likewise.
30215         * sysdeps/i386/i686/multiarch/memcmp.S: Likewise.
30216         * sysdeps/i386/i686/multiarch/memcpy-ssse3-rep.S: Likewise.
30217         * sysdeps/i386/i686/multiarch/memcpy-ssse3.S: Likewise.
30218         * sysdeps/i386/i686/multiarch/memcpy.S: Likewise.
30219         * sysdeps/i386/i686/multiarch/memcpy_chk.S: Likewise.
30220         * sysdeps/i386/i686/multiarch/memmove.S: Likewise.
30221         * sysdeps/i386/i686/multiarch/memmove_chk.S: Likewise.
30222         * sysdeps/i386/i686/multiarch/mempcpy.S: Likewise.
30223         * sysdeps/i386/i686/multiarch/mempcpy_chk.S: Likewise.
30224         * sysdeps/i386/i686/multiarch/memrchr-c.c: Likewise.
30225         * sysdeps/i386/i686/multiarch/memrchr-sse2-bsf.S: Likewise.
30226         * sysdeps/i386/i686/multiarch/memrchr-sse2.S: Likewise.
30227         * sysdeps/i386/i686/multiarch/memrchr.S: Likewise.
30228         * sysdeps/i386/i686/multiarch/memset-sse2-rep.S: Likewise.
30229         * sysdeps/i386/i686/multiarch/memset-sse2.S: Likewise.
30230         * sysdeps/i386/i686/multiarch/memset.S: Likewise.
30231         * sysdeps/i386/i686/multiarch/memset_chk.S: Likewise.
30232         * sysdeps/i386/i686/multiarch/rawmemchr.S: Likewise.
30233         * sysdeps/i386/i686/multiarch/strcat-sse2.S: Likewise.
30234         * sysdeps/i386/i686/multiarch/strcat-ssse3.S: Likewise.
30235         * sysdeps/i386/i686/multiarch/strcat.S: Likewise.
30236         * sysdeps/i386/i686/multiarch/strchr-sse2-bsf.S: Likewise.
30237         * sysdeps/i386/i686/multiarch/strchr-sse2.S: Likewise.
30238         * sysdeps/i386/i686/multiarch/strchr.S: Likewise.
30239         * sysdeps/i386/i686/multiarch/strcmp-sse4.S: Likewise.
30240         * sysdeps/i386/i686/multiarch/strcmp-ssse3.S: Likewise.
30241         * sysdeps/i386/i686/multiarch/strcmp.S: Likewise.
30242         * sysdeps/i386/i686/multiarch/strcpy-sse2.S: Likewise.
30243         * sysdeps/i386/i686/multiarch/strcpy-ssse3.S: Likewise.
30244         * sysdeps/i386/i686/multiarch/strcpy.S: Likewise.
30245         * sysdeps/i386/i686/multiarch/strcspn.S: Likewise.
30246         * sysdeps/i386/i686/multiarch/strlen-sse2-bsf.S: Likewise.
30247         * sysdeps/i386/i686/multiarch/strlen-sse2.S: Likewise.
30248         * sysdeps/i386/i686/multiarch/strlen.S: Likewise.
30249         * sysdeps/i386/i686/multiarch/strnlen.S: Likewise.
30250         * sysdeps/i386/i686/multiarch/strrchr-sse2-bsf.S: Likewise.
30251         * sysdeps/i386/i686/multiarch/strrchr-sse2.S: Likewise.
30252         * sysdeps/i386/i686/multiarch/strrchr.S: Likewise.
30253         * sysdeps/i386/i686/multiarch/strspn.S: Likewise.
30254         * sysdeps/i386/i686/multiarch/wcschr-c.c: Likewise.
30255         * sysdeps/i386/i686/multiarch/wcschr-sse2.S: Likewise.
30256         * sysdeps/i386/i686/multiarch/wcschr.S: Likewise.
30257         * sysdeps/i386/i686/multiarch/wcscmp-sse2.S: Likewise.
30258         * sysdeps/i386/i686/multiarch/wcscmp.S: Likewise.
30259         * sysdeps/i386/i686/multiarch/wcscpy-c.c: Likewise.
30260         * sysdeps/i386/i686/multiarch/wcscpy-ssse3.S: Likewise.
30261         * sysdeps/i386/i686/multiarch/wcscpy.S: Likewise.
30262         * sysdeps/i386/i686/multiarch/wcslen-c.c: Likewise.
30263         * sysdeps/i386/i686/multiarch/wcslen-sse2.S: Likewise.
30264         * sysdeps/i386/i686/multiarch/wcslen.S: Likewise.
30265         * sysdeps/i386/i686/multiarch/wcsrchr-c.c: Likewise.
30266         * sysdeps/i386/i686/multiarch/wcsrchr-sse2.S: Likewise.
30267         * sysdeps/i386/i686/multiarch/wcsrchr.S: Likewise.
30268         * sysdeps/i386/i686/multiarch/wmemcmp-c.c: Likewise.
30269         * sysdeps/i386/i686/multiarch/wmemcmp.S: Likewise.
30270         * sysdeps/ia64/fpu/libm-symbols.h: Likewise.
30271         * sysdeps/nptl/bits/libc-lock.h: Likewise.
30272         * sysdeps/nptl/bits/libc-lockP.h: Likewise.
30273         * sysdeps/nptl/bits/stdio-lock.h: Likewise.
30274         * sysdeps/posix/closedir.c: Likewise.
30275         * sysdeps/posix/opendir.c: Likewise.
30276         * sysdeps/posix/readdir.c: Likewise.
30277         * sysdeps/posix/rewinddir.c: Likewise.
30278         * sysdeps/powerpc/novmx-sigjmp.c: Likewise.
30279         * sysdeps/powerpc/powerpc32/__longjmp.S: Likewise.
30280         * sysdeps/powerpc/powerpc32/bsd-_setjmp.S: Likewise.
30281         * sysdeps/powerpc/powerpc32/fpu/__longjmp.S: Likewise.
30282         * sysdeps/powerpc/powerpc32/fpu/setjmp.S: Likewise.
30283         * sysdeps/powerpc/powerpc32/power4/multiarch/bzero.c: Likewise.
30284         * sysdeps/powerpc/powerpc32/power4/multiarch/memchr.c: Likewise.
30285         * sysdeps/powerpc/powerpc32/power4/multiarch/memcmp-ppc32.S: Likewise.
30286         * sysdeps/powerpc/powerpc32/power4/multiarch/memcmp.c: Likewise.
30287         * sysdeps/powerpc/powerpc32/power4/multiarch/memcpy-ppc32.S: Likewise.
30288         * sysdeps/powerpc/powerpc32/power4/multiarch/memcpy.c: Likewise.
30289         * sysdeps/powerpc/powerpc32/power4/multiarch/memmove.c: Likewise.
30290         * sysdeps/powerpc/powerpc32/power4/multiarch/mempcpy.c: Likewise.
30291         * sysdeps/powerpc/powerpc32/power4/multiarch/memrchr-ppc32.c: Likewise.
30292         * sysdeps/powerpc/powerpc32/power4/multiarch/memrchr.c: Likewise.
30293         * sysdeps/powerpc/powerpc32/power4/multiarch/memset-ppc32.S: Likewise.
30294         * sysdeps/powerpc/powerpc32/power4/multiarch/memset.c: Likewise.
30295         * sysdeps/powerpc/powerpc32/power4/multiarch/rawmemchr.c: Likewise.
30296         * sysdeps/powerpc/powerpc32/power4/multiarch/strcasecmp.c: Likewise.
30297         * sysdeps/powerpc/powerpc32/power4/multiarch/strcasecmp_l.c: Likewise.
30298         * sysdeps/powerpc/powerpc32/power4/multiarch/strchr.c: Likewise.
30299         * sysdeps/powerpc/powerpc32/power4/multiarch/strchrnul.c: Likewise.
30300         * sysdeps/powerpc/powerpc32/power4/multiarch/strlen-ppc32.S: Likewise.
30301         * sysdeps/powerpc/powerpc32/power4/multiarch/strlen.c: Likewise.
30302         * sysdeps/powerpc/powerpc32/power4/multiarch/strncase.c: Likewise.
30303         * sysdeps/powerpc/powerpc32/power4/multiarch/strncase_l.c: Likewise.
30304         * sysdeps/powerpc/powerpc32/power4/multiarch/strncmp-ppc32.S: Likewise.
30305         * sysdeps/powerpc/powerpc32/power4/multiarch/strncmp.c: Likewise.
30306         * sysdeps/powerpc/powerpc32/power4/multiarch/strnlen.c: Likewise.
30307         * sysdeps/powerpc/powerpc32/power4/multiarch/wcschr-ppc32.c: Likewise.
30308         * sysdeps/powerpc/powerpc32/power4/multiarch/wcschr.c: Likewise.
30309         * sysdeps/powerpc/powerpc32/power4/multiarch/wcscpy-ppc32.c: Likewise.
30310         * sysdeps/powerpc/powerpc32/power4/multiarch/wcscpy.c: Likewise.
30311         * sysdeps/powerpc/powerpc32/power4/multiarch/wcsrchr-ppc32.c: Likewise.
30312         * sysdeps/powerpc/powerpc32/power4/multiarch/wcsrchr.c: Likewise.
30313         * sysdeps/powerpc/powerpc32/power4/multiarch/wordcopy.c: Likewise.
30314         * sysdeps/powerpc/powerpc32/power6/memset.S: Likewise.
30315         * sysdeps/powerpc/powerpc32/setjmp.S: Likewise.
30316         * sysdeps/powerpc/powerpc64/__longjmp.S: Likewise.
30317         * sysdeps/powerpc/powerpc64/multiarch/bzero.c: Likewise.
30318         * sysdeps/powerpc/powerpc64/multiarch/memchr.c: Likewise.
30319         * sysdeps/powerpc/powerpc64/multiarch/memcmp-ppc64.c: Likewise.
30320         * sysdeps/powerpc/powerpc64/multiarch/memcmp.c: Likewise.
30321         * sysdeps/powerpc/powerpc64/multiarch/memcpy-ppc64.S: Likewise.
30322         * sysdeps/powerpc/powerpc64/multiarch/memcpy.c: Likewise.
30323         * sysdeps/powerpc/powerpc64/multiarch/memmove-ppc64.c: Likewise.
30324         * sysdeps/powerpc/powerpc64/multiarch/memmove.c: Likewise.
30325         * sysdeps/powerpc/powerpc64/multiarch/mempcpy.c: Likewise.
30326         * sysdeps/powerpc/powerpc64/multiarch/memrchr.c: Likewise.
30327         * sysdeps/powerpc/powerpc64/multiarch/memset-ppc64.S: Likewise.
30328         * sysdeps/powerpc/powerpc64/multiarch/memset.c: Likewise.
30329         * sysdeps/powerpc/powerpc64/multiarch/rawmemchr.c: Likewise.
30330         * sysdeps/powerpc/powerpc64/multiarch/stpcpy-ppc64.S: Likewise.
30331         * sysdeps/powerpc/powerpc64/multiarch/stpcpy.c: Likewise.
30332         * sysdeps/powerpc/powerpc64/multiarch/stpncpy.c: Likewise.
30333         * sysdeps/powerpc/powerpc64/multiarch/strcasecmp.c: Likewise.
30334         * sysdeps/powerpc/powerpc64/multiarch/strcasecmp_l.c: Likewise.
30335         * sysdeps/powerpc/powerpc64/multiarch/strcat.c: Likewise.
30336         * sysdeps/powerpc/powerpc64/multiarch/strchr.c: Likewise.
30337         * sysdeps/powerpc/powerpc64/multiarch/strchrnul.c: Likewise.
30338         * sysdeps/powerpc/powerpc64/multiarch/strcmp-ppc64.S: Likewise.
30339         * sysdeps/powerpc/powerpc64/multiarch/strcmp.c: Likewise.
30340         * sysdeps/powerpc/powerpc64/multiarch/strcpy-ppc64.S: Likewise.
30341         * sysdeps/powerpc/powerpc64/multiarch/strcpy.c: Likewise.
30342         * sysdeps/powerpc/powerpc64/multiarch/strcspn.c: Likewise.
30343         * sysdeps/powerpc/powerpc64/multiarch/strlen-ppc64.S: Likewise.
30344         * sysdeps/powerpc/powerpc64/multiarch/strlen.c: Likewise.
30345         * sysdeps/powerpc/powerpc64/multiarch/strncase.c: Likewise.
30346         * sysdeps/powerpc/powerpc64/multiarch/strncase_l.c: Likewise.
30347         * sysdeps/powerpc/powerpc64/multiarch/strncat.c: Likewise.
30348         * sysdeps/powerpc/powerpc64/multiarch/strncmp-ppc64.S: Likewise.
30349         * sysdeps/powerpc/powerpc64/multiarch/strncmp.c: Likewise.
30350         * sysdeps/powerpc/powerpc64/multiarch/strncpy-ppc64.c: Likewise.
30351         * sysdeps/powerpc/powerpc64/multiarch/strncpy.c: Likewise.
30352         * sysdeps/powerpc/powerpc64/multiarch/strnlen.c: Likewise.
30353         * sysdeps/powerpc/powerpc64/multiarch/strpbrk.c: Likewise.
30354         * sysdeps/powerpc/powerpc64/multiarch/strrchr-ppc64.c: Likewise.
30355         * sysdeps/powerpc/powerpc64/multiarch/strrchr.c: Likewise.
30356         * sysdeps/powerpc/powerpc64/multiarch/strspn-ppc64.c: Likewise.
30357         * sysdeps/powerpc/powerpc64/multiarch/strspn.c: Likewise.
30358         * sysdeps/powerpc/powerpc64/multiarch/wcschr.c: Likewise.
30359         * sysdeps/powerpc/powerpc64/multiarch/wcscpy.c: Likewise.
30360         * sysdeps/powerpc/powerpc64/multiarch/wcsrchr.c: Likewise.
30361         * sysdeps/powerpc/powerpc64/multiarch/wordcopy.c: Likewise.
30362         * sysdeps/powerpc/powerpc64/setjmp.S: Likewise.
30363         * sysdeps/s390/s390-32/multiarch/ifunc-resolve.c: Likewise.
30364         * sysdeps/s390/s390-32/multiarch/memcmp.S: Likewise.
30365         * sysdeps/s390/s390-32/multiarch/memcpy.S: Likewise.
30366         * sysdeps/s390/s390-32/multiarch/memset.S: Likewise.
30367         * sysdeps/s390/s390-64/multiarch/ifunc-resolve.c: Likewise.
30368         * sysdeps/s390/s390-64/multiarch/memcmp.S: Likewise.
30369         * sysdeps/s390/s390-64/multiarch/memcpy.S: Likewise.
30370         * sysdeps/s390/s390-64/multiarch/memset.S: Likewise.
30371         * sysdeps/sparc/sparc64/multiarch/memcpy-niagara1.S: Likewise.
30372         * sysdeps/sparc/sparc64/multiarch/memcpy-niagara2.S: Likewise.
30373         * sysdeps/sparc/sparc64/multiarch/memcpy-niagara4.S: Likewise.
30374         * sysdeps/sparc/sparc64/multiarch/memcpy-ultra3.S: Likewise.
30375         * sysdeps/sparc/sparc64/multiarch/memcpy.S: Likewise.
30376         * sysdeps/sparc/sparc64/multiarch/memset-niagara1.S: Likewise.
30377         * sysdeps/sparc/sparc64/multiarch/memset-niagara4.S: Likewise.
30378         * sysdeps/sparc/sparc64/multiarch/memset.S: Likewise.
30379         * sysdeps/unix/alpha/sysdep.S: Likewise.
30380         * sysdeps/unix/alpha/sysdep.h: Likewise.
30381         * sysdeps/unix/make-syscalls.sh: Likewise.
30382         * sysdeps/unix/sysv/linux/aarch64/sysdep-cancel.h: Likewise.
30383         * sysdeps/unix/sysv/linux/aarch64/sysdep.h: Likewise.
30384         * sysdeps/unix/sysv/linux/alpha/sysdep-cancel.h: Likewise.
30385         * sysdeps/unix/sysv/linux/alpha/vfork.S: Likewise.
30386         * sysdeps/unix/sysv/linux/arm/sysdep-cancel.h: Likewise.
30387         * sysdeps/unix/sysv/linux/arm/sysdep.h: Likewise.
30388         * sysdeps/unix/sysv/linux/getpid.c: Likewise.
30389         * sysdeps/unix/sysv/linux/hppa/nptl/lowlevellock.h: Likewise.
30390         * sysdeps/unix/sysv/linux/hppa/nptl/sysdep-cancel.h: Likewise.
30391         * sysdeps/unix/sysv/linux/i386/i486/lowlevellock.S: Likewise.
30392         * sysdeps/unix/sysv/linux/i386/lowlevellock.h: Likewise.
30393         * sysdeps/unix/sysv/linux/i386/sysdep-cancel.h: Likewise.
30394         * sysdeps/unix/sysv/linux/i386/sysdep.h: Likewise.
30395         * sysdeps/unix/sysv/linux/ia64/lowlevellock.h: Likewise.
30396         * sysdeps/unix/sysv/linux/ia64/sysdep-cancel.h: Likewise.
30397         * sysdeps/unix/sysv/linux/ia64/sysdep.S: Likewise.
30398         * sysdeps/unix/sysv/linux/ia64/sysdep.h: Likewise.
30399         * sysdeps/unix/sysv/linux/lowlevellock-futex.h: Likewise.
30400         * sysdeps/unix/sysv/linux/m68k/bits/m68k-vdso.h: Likewise.
30401         * sysdeps/unix/sysv/linux/m68k/sysdep-cancel.h: Likewise.
30402         * sysdeps/unix/sysv/linux/m68k/sysdep.h: Likewise.
30403         * sysdeps/unix/sysv/linux/microblaze/lowlevellock.h: Likewise.
30404         * sysdeps/unix/sysv/linux/microblaze/sysdep-cancel.h: Likewise.
30405         * sysdeps/unix/sysv/linux/mips/mips64/sysdep-cancel.h: Likewise.
30406         * sysdeps/unix/sysv/linux/mips/sysdep-cancel.h: Likewise.
30407         * sysdeps/unix/sysv/linux/not-cancel.h: Likewise.
30408         * sysdeps/unix/sysv/linux/powerpc/lowlevellock.h: Likewise.
30409         * sysdeps/unix/sysv/linux/powerpc/powerpc32/sysdep-cancel.h: Likewise.
30410         * sysdeps/unix/sysv/linux/powerpc/powerpc64/sysdep-cancel.h: Likewise.
30411         * sysdeps/unix/sysv/linux/s390/longjmp_chk.c: Likewise.
30412         * sysdeps/unix/sysv/linux/s390/lowlevellock.h: Likewise.
30413         * sysdeps/unix/sysv/linux/s390/s390-32/sysdep-cancel.h: Likewise.
30414         * sysdeps/unix/sysv/linux/s390/s390-32/sysdep.S: Likewise.
30415         * sysdeps/unix/sysv/linux/s390/s390-32/sysdep.h: Likewise.
30416         * sysdeps/unix/sysv/linux/s390/s390-32/vfork.S: Likewise.
30417         * sysdeps/unix/sysv/linux/s390/s390-64/sysdep-cancel.h: Likewise.
30418         * sysdeps/unix/sysv/linux/s390/s390-64/sysdep.S: Likewise.
30419         * sysdeps/unix/sysv/linux/s390/s390-64/sysdep.h: Likewise.
30420         * sysdeps/unix/sysv/linux/s390/s390-64/vfork.S: Likewise.
30421         * sysdeps/unix/sysv/linux/sh/lowlevellock.S: Likewise.
30422         * sysdeps/unix/sysv/linux/sh/lowlevellock.h: Likewise.
30423         * sysdeps/unix/sysv/linux/sh/sysdep-cancel.h: Likewise.
30424         * sysdeps/unix/sysv/linux/sh/sysdep.h: Likewise.
30425         * sysdeps/unix/sysv/linux/sh/vfork.S: Likewise.
30426         * sysdeps/unix/sysv/linux/sparc/lowlevellock.h: Likewise.
30427         * sysdeps/unix/sysv/linux/sparc/sparc32/sysdep-cancel.h: Likewise.
30428         * sysdeps/unix/sysv/linux/sparc/sparc32/sysdep.h: Likewise.
30429         * sysdeps/unix/sysv/linux/sparc/sparc64/brk.S: Likewise.
30430         * sysdeps/unix/sysv/linux/sparc/sparc64/sysdep-cancel.h: Likewise.
30431         * sysdeps/unix/sysv/linux/sparc/sparc64/sysdep.h: Likewise.
30432         * sysdeps/unix/sysv/linux/tile/lowlevellock.h: Likewise.
30433         * sysdeps/unix/sysv/linux/tile/sysdep-cancel.h: Likewise.
30434         * sysdeps/unix/sysv/linux/tile/sysdep.h: Likewise.
30435         * sysdeps/unix/sysv/linux/tile/waitpid.S: Likewise.
30436         * sysdeps/unix/sysv/linux/x86_64/lowlevellock.S: Likewise.
30437         * sysdeps/unix/sysv/linux/x86_64/lowlevellock.h: Likewise.
30438         * sysdeps/unix/sysv/linux/x86_64/sysdep-cancel.h: Likewise.
30439         * sysdeps/unix/sysv/linux/x86_64/sysdep.h: Likewise.
30440         * sysdeps/wordsize-32/symbol-hacks.h: Likewise.
30441         * sysdeps/x86_64/memcpy.S: Likewise.
30442         * sysdeps/x86_64/memmove.c: Likewise.
30443         * sysdeps/x86_64/memset.S: Likewise.
30444         * sysdeps/x86_64/multiarch/init-arch.h: Likewise.
30445         * sysdeps/x86_64/multiarch/memcmp-sse4.S: Likewise.
30446         * sysdeps/x86_64/multiarch/memcmp-ssse3.S: Likewise.
30447         * sysdeps/x86_64/multiarch/memcmp.S: Likewise.
30448         * sysdeps/x86_64/multiarch/memcpy-avx-unaligned.S: Likewise.
30449         * sysdeps/x86_64/multiarch/memcpy-ssse3-back.S: Likewise.
30450         * sysdeps/x86_64/multiarch/memcpy-ssse3.S: Likewise.
30451         * sysdeps/x86_64/multiarch/memcpy.S: Likewise.
30452         * sysdeps/x86_64/multiarch/memcpy_chk.S: Likewise.
30453         * sysdeps/x86_64/multiarch/memmove.c: Likewise.
30454         * sysdeps/x86_64/multiarch/mempcpy.S: Likewise.
30455         * sysdeps/x86_64/multiarch/mempcpy_chk.S: Likewise.
30456         * sysdeps/x86_64/multiarch/memset-avx2.S: Likewise.
30457         * sysdeps/x86_64/multiarch/memset.S: Likewise.
30458         * sysdeps/x86_64/multiarch/memset_chk.S: Likewise.
30459         * sysdeps/x86_64/multiarch/strcat-sse2-unaligned.S: Likewise.
30460         * sysdeps/x86_64/multiarch/strcat-ssse3.S: Likewise.
30461         * sysdeps/x86_64/multiarch/strcat.S: Likewise.
30462         * sysdeps/x86_64/multiarch/strchr-sse2-no-bsf.S: Likewise.
30463         * sysdeps/x86_64/multiarch/strchr.S: Likewise.
30464         * sysdeps/x86_64/multiarch/strcmp-ssse3.S: Likewise.
30465         * sysdeps/x86_64/multiarch/strcmp.S: Likewise.
30466         * sysdeps/x86_64/multiarch/strcpy-sse2-unaligned.S: Likewise.
30467         * sysdeps/x86_64/multiarch/strcpy-ssse3.S: Likewise.
30468         * sysdeps/x86_64/multiarch/strcpy.S: Likewise.
30469         * sysdeps/x86_64/multiarch/strcspn.S: Likewise.
30470         * sysdeps/x86_64/multiarch/strspn.S: Likewise.
30471         * sysdeps/x86_64/multiarch/wcscpy-c.c: Likewise.
30472         * sysdeps/x86_64/multiarch/wcscpy-ssse3.S: Likewise.
30473         * sysdeps/x86_64/multiarch/wcscpy.S: Likewise.
30474         * sysdeps/x86_64/multiarch/wmemcmp-c.c: Likewise.
30475         * sysdeps/x86_64/multiarch/wmemcmp.S: Likewise.
30476         * sysdeps/x86_64/strcmp.S: Likewise.
30477
30478         * extra-lib.mk (CPPFLAGS-$(lib)): Remove IS_IN_$(lib).
30479
30480         * elf/Makefile (CPPFLAGS-.os): Remove IS_IN_rtld.
30481         * elf/dl-open.c: Use IS_IN (rtld) instead if IS_IN_rtld.
30482         * elf/rtld-Rules: Likewise.
30483         * elf/setup-vdso.h: Likewise.
30484         * include/assert.h: Likewise.
30485         * include/bits/stdlib-float.h: Likewise.
30486         * include/errno.h: Likewise.
30487         * include/sys/stat.h: Likewise.
30488         * include/unistd.h: Likewise.
30489         * sysdeps/aarch64/setjmp.S: Likewise.
30490         * sysdeps/alpha/setjmp.S: Likewise.
30491         * sysdeps/arm/__longjmp.S: Likewise.
30492         * sysdeps/arm/aeabi_unwind_cpp_pr1.c: Likewise.
30493         * sysdeps/arm/setjmp.S: Likewise.
30494         * sysdeps/arm/sysdep.h: Likewise.
30495         * sysdeps/generic/_itoa.h: Likewise.
30496         * sysdeps/generic/dl-sysdep.h: Likewise.
30497         * sysdeps/generic/ldsodefs.h: Likewise.
30498         * sysdeps/i386/dl-tls.h: Likewise.
30499         * sysdeps/i386/setjmp.S: Likewise.
30500         * sysdeps/m68k/setjmp.c: Likewise.
30501         * sysdeps/mach/hurd/dl-execstack.c: Likewise.
30502         * sysdeps/mach/hurd/opendir.c: Likewise.
30503         * sysdeps/posix/getcwd.c: Likewise.
30504         * sysdeps/posix/opendir.c: Likewise.
30505         * sysdeps/posix/profil.c: Likewise.
30506         * sysdeps/powerpc/dl-procinfo.h: Likewise.
30507         * sysdeps/powerpc/powerpc32/fpu/__longjmp-common.S: Likewise.
30508         * sysdeps/powerpc/powerpc32/fpu/setjmp-common.S: Likewise.
30509         * sysdeps/powerpc/powerpc32/power4/multiarch/init-arch.h: Likewise.
30510         * sysdeps/powerpc/powerpc32/setjmp-common.S: Likewise.
30511         * sysdeps/powerpc/powerpc64/__longjmp-common.S: Likewise.
30512         * sysdeps/powerpc/powerpc64/setjmp-common.S: Likewise.
30513         * sysdeps/s390/dl-tls.h: Likewise.
30514         * sysdeps/s390/s390-32/setjmp.S: Likewise.
30515         * sysdeps/s390/s390-64/setjmp.S: Likewise.
30516         * sysdeps/sh/sh3/setjmp.S: Likewise.
30517         * sysdeps/sh/sh4/setjmp.S: Likewise.
30518         * sysdeps/unix/alpha/sysdep.h: Likewise.
30519         * sysdeps/unix/arm/sysdep.S: Likewise.
30520         * sysdeps/unix/i386/sysdep.S: Likewise.
30521         * sysdeps/unix/sysv/linux/aarch64/sysdep.h: Likewise.
30522         * sysdeps/unix/sysv/linux/getcwd.c: Likewise.
30523         * sysdeps/unix/sysv/linux/hppa/nptl/lowlevellock.h: Likewise.
30524         * sysdeps/unix/sysv/linux/i386/lowlevellock.h: Likewise.
30525         * sysdeps/unix/sysv/linux/i386/sysdep.h: Likewise.
30526         * sysdeps/unix/sysv/linux/ia64/lowlevellock.h: Likewise.
30527         * sysdeps/unix/sysv/linux/ia64/setjmp.S: Likewise.
30528         * sysdeps/unix/sysv/linux/ia64/sysdep.h: Likewise.
30529         * sysdeps/unix/sysv/linux/lowlevellock-futex.h: Likewise.
30530         * sysdeps/unix/sysv/linux/m68k/bits/m68k-vdso.h: Likewise.
30531         * sysdeps/unix/sysv/linux/m68k/m68k-helpers.S: Likewise.
30532         * sysdeps/unix/sysv/linux/microblaze/lowlevellock.h: Likewise.
30533         * sysdeps/unix/sysv/linux/powerpc/lowlevellock.h: Likewise.
30534         * sysdeps/unix/sysv/linux/powerpc/powerpc32/sysdep.h: Likewise.
30535         * sysdeps/unix/sysv/linux/powerpc/powerpc64/sysdep.h: Likewise.
30536         * sysdeps/unix/sysv/linux/s390/lowlevellock.h: Likewise.
30537         * sysdeps/unix/sysv/linux/s390/s390-32/sysdep.h: Likewise.
30538         * sysdeps/unix/sysv/linux/s390/s390-64/sysdep.h: Likewise.
30539         * sysdeps/unix/sysv/linux/sh/lowlevellock.h: Likewise.
30540         * sysdeps/unix/sysv/linux/sh/sysdep.h: Likewise.
30541         * sysdeps/unix/sysv/linux/sparc/lowlevellock.h: Likewise.
30542         * sysdeps/unix/sysv/linux/sparc/sparc32/sysdep.h: Likewise.
30543         * sysdeps/unix/sysv/linux/sparc/sparc64/sysdep.h: Likewise.
30544         * sysdeps/unix/sysv/linux/tile/lowlevellock.h: Likewise.
30545         * sysdeps/unix/sysv/linux/tile/sysdep.h: Likewise.
30546         * sysdeps/unix/sysv/linux/x86_64/lowlevellock.h: Likewise.
30547         * sysdeps/unix/sysv/linux/x86_64/sysdep.h: Likewise.
30548         * sysdeps/unix/x86_64/sysdep.S: Likewise.
30549         * sysdeps/x86_64/setjmp.S: Likewise.
30550
30551         * include/math.h: Use IS_IN instead of IS_IN_libm.
30552         * sysdeps/alpha/fpu/s_copysign.c: Likewise.
30553         * sysdeps/ieee754/ldbl-128ibm/s_copysignl.c: Likewise.
30554         * sysdeps/ieee754/ldbl-128ibm/s_finitel.c: Likewise.
30555         * sysdeps/ieee754/ldbl-128ibm/s_fmal.c: Likewise.
30556         * sysdeps/ieee754/ldbl-128ibm/s_frexpl.c: Likewise.
30557         * sysdeps/ieee754/ldbl-128ibm/s_isinfl.c: Likewise.
30558         * sysdeps/ieee754/ldbl-128ibm/s_isnanl.c: Likewise.
30559         * sysdeps/ieee754/ldbl-128ibm/s_modfl.c: Likewise.
30560         * sysdeps/ieee754/ldbl-128ibm/s_scalbnl.c: Likewise.
30561         * sysdeps/ieee754/ldbl-128ibm/s_signbitl.c: Likewise.
30562         * sysdeps/ieee754/ldbl-64-128/s_copysignl.c: Likewise.
30563         * sysdeps/ieee754/ldbl-64-128/s_finitel.c: Likewise.
30564         * sysdeps/ieee754/ldbl-64-128/s_frexpl.c: Likewise.
30565         * sysdeps/ieee754/ldbl-64-128/s_isinfl.c: Likewise.
30566         * sysdeps/ieee754/ldbl-64-128/s_isnanl.c: Likewise.
30567         * sysdeps/ieee754/ldbl-64-128/s_modfl.c: Likewise.
30568         * sysdeps/ieee754/ldbl-64-128/s_scalbnl.c: Likewise.
30569         * sysdeps/ieee754/ldbl-64-128/s_signbitl.c: Likewise.
30570         * sysdeps/ieee754/ldbl-64-128/w_scalblnl.c: Likewise.
30571         * sysdeps/ieee754/ldbl-opt/s_copysign.c: Likewise.
30572         * sysdeps/ieee754/ldbl-opt/s_finite.c: Likewise.
30573         * sysdeps/ieee754/ldbl-opt/s_frexp.c: Likewise.
30574         * sysdeps/ieee754/ldbl-opt/s_isinf.c: Likewise.
30575         * sysdeps/ieee754/ldbl-opt/s_isnan.c: Likewise.
30576         * sysdeps/ieee754/ldbl-opt/s_ldexp.c: Likewise.
30577         * sysdeps/ieee754/ldbl-opt/s_ldexpl.c: Likewise.
30578         * sysdeps/ieee754/ldbl-opt/s_modf.c: Likewise.
30579         * sysdeps/ieee754/ldbl-opt/s_scalbln.c: Likewise.
30580         * sysdeps/ieee754/ldbl-opt/s_scalbn.c: Likewise.
30581         * sysdeps/powerpc/power5+/fpu/s_modf.c: Likewise.
30582         * sysdeps/powerpc/powerpc32/fpu/s_copysign.S: Likewise.
30583         * sysdeps/powerpc/powerpc32/fpu/s_copysignl.S: Likewise.
30584         * sysdeps/powerpc/powerpc32/fpu/s_isnan.S: Likewise.
30585         * sysdeps/powerpc/powerpc32/power4/fpu/multiarch/s_copysign.c:
30586         Likewise.
30587         * sysdeps/powerpc/powerpc32/power4/fpu/multiarch/s_finite.c:
30588         Likewise.
30589         * sysdeps/powerpc/powerpc32/power4/fpu/multiarch/s_isinf.c:
30590         Likewise.
30591         * sysdeps/powerpc/powerpc32/power4/fpu/multiarch/s_isnan.c:
30592         Likewise.
30593         * sysdeps/powerpc/powerpc32/power4/fpu/multiarch/s_modf.c:
30594         Likewise.
30595         * sysdeps/powerpc/powerpc32/power5/fpu/s_isnan.S: Likewise.
30596         * sysdeps/powerpc/powerpc32/power6/fpu/s_copysign.S: Likewise.
30597         * sysdeps/powerpc/powerpc32/power6/fpu/s_isnan.S: Likewise.
30598         * sysdeps/powerpc/powerpc32/power7/fpu/s_finite.S: Likewise.
30599         * sysdeps/powerpc/powerpc32/power7/fpu/s_isinf.S: Likewise.
30600         * sysdeps/powerpc/powerpc32/power7/fpu/s_isnan.S: Likewise.
30601         * sysdeps/powerpc/powerpc64/fpu/multiarch/s_copysign.c: Likewise.
30602         * sysdeps/powerpc/powerpc64/fpu/multiarch/s_finite.c: Likewise.
30603         * sysdeps/powerpc/powerpc64/fpu/multiarch/s_isinf.c: Likewise.
30604         * sysdeps/powerpc/powerpc64/fpu/multiarch/s_isnan.c: Likewise.
30605         * sysdeps/powerpc/powerpc64/fpu/multiarch/s_modf.c: Likewise.
30606         * sysdeps/powerpc/powerpc64/fpu/s_copysign.S: Likewise.
30607         * sysdeps/powerpc/powerpc64/fpu/s_copysignl.S: Likewise.
30608         * sysdeps/powerpc/powerpc64/fpu/s_isnan.S: Likewise.
30609         * sysdeps/powerpc/powerpc64/power5/fpu/s_isnan.S: Likewise.
30610         * sysdeps/powerpc/powerpc64/power6/fpu/s_copysign.S: Likewise.
30611         * sysdeps/powerpc/powerpc64/power6/fpu/s_isnan.S: Likewise.
30612         * sysdeps/powerpc/powerpc64/power6x/fpu/s_isnan.S: Likewise.
30613         * sysdeps/powerpc/powerpc64/power7/fpu/s_finite.S: Likewise.
30614         * sysdeps/powerpc/powerpc64/power7/fpu/s_isinf.S: Likewise.
30615         * sysdeps/powerpc/powerpc64/power7/fpu/s_isnan.S: Likewise.
30616         * sysdeps/powerpc/powerpc64/power8/fpu/s_finite.S: Likewise.
30617         * sysdeps/powerpc/powerpc64/power8/fpu/s_isinf.S: Likewise.
30618         * sysdeps/powerpc/powerpc64/power8/fpu/s_isnan.S: Likewise.
30619         * sysdeps/sparc/sparc32/fpu/s_signbitl.S: Likewise.
30620         * sysdeps/sparc/sparc32/sparcv9/fpu/s_isnan.S: Likewise.
30621         * sysdeps/unix/sysv/linux/alpha/fraiseexcpt.S: Likewise.
30622
30623         * nptl/lowlevellock.c: Use IS_IN instead of IS_IN_libpthread.
30624         * nptl/pthreadP.h: Likewise.
30625         * nptl_db/structs.def: Likewise.
30626         * sysdeps/arm/sysdep.h: Likewise.
30627         * sysdeps/nptl/bits/libc-lock.h: Likewise.
30628         * sysdeps/nptl/bits/libc-lockP.h: Likewise.
30629         * sysdeps/sparc/sparc32/lowlevellock.c: Likewise.
30630         * sysdeps/unix/alpha/sysdep.h: Likewise.
30631         * sysdeps/unix/sysv/linux/aarch64/sysdep-cancel.h: Likewise.
30632         * sysdeps/unix/sysv/linux/aarch64/sysdep.h: Likewise.
30633         * sysdeps/unix/sysv/linux/alpha/sysdep-cancel.h: Likewise.
30634         * sysdeps/unix/sysv/linux/arm/sysdep-cancel.h: Likewise.
30635         * sysdeps/unix/sysv/linux/hppa/nptl/sysdep-cancel.h: Likewise.
30636         * sysdeps/unix/sysv/linux/i386/sysdep-cancel.h: Likewise.
30637         * sysdeps/unix/sysv/linux/i386/sysdep.h: Likewise.
30638         * sysdeps/unix/sysv/linux/ia64/sysdep-cancel.h: Likewise.
30639         * sysdeps/unix/sysv/linux/ia64/sysdep.h: Likewise.
30640         * sysdeps/unix/sysv/linux/m68k/sysdep-cancel.h: Likewise.
30641         * sysdeps/unix/sysv/linux/microblaze/sysdep-cancel.h: Likewise.
30642         * sysdeps/unix/sysv/linux/mips/mips64/sysdep-cancel.h: Likewise.
30643         * sysdeps/unix/sysv/linux/mips/sysdep-cancel.h: Likewise.
30644         * sysdeps/unix/sysv/linux/not-cancel.h: Likewise.
30645         * sysdeps/unix/sysv/linux/powerpc/powerpc32/sysdep-cancel.h: Likewise.
30646         * sysdeps/unix/sysv/linux/powerpc/powerpc64/sysdep-cancel.h: Likewise.
30647         * sysdeps/unix/sysv/linux/s390/s390-32/sysdep-cancel.h: Likewise.
30648         * sysdeps/unix/sysv/linux/s390/s390-64/sysdep-cancel.h: Likewise.
30649         * sysdeps/unix/sysv/linux/sh/sysdep-cancel.h: Likewise.
30650         * sysdeps/unix/sysv/linux/sparc/sparc32/sysdep-cancel.h: Likewise.
30651         * sysdeps/unix/sysv/linux/sparc/sparc64/sysdep-cancel.h: Likewise.
30652         * sysdeps/unix/sysv/linux/tile/sysdep-cancel.h: Likewise.
30653         * sysdeps/unix/sysv/linux/tile/sysdep.h: Likewise.
30654         * sysdeps/unix/sysv/linux/tile/waitpid.S: Likewise.
30655         * sysdeps/unix/sysv/linux/x86_64/cancellation.S: Likewise.
30656         * sysdeps/unix/sysv/linux/x86_64/sysdep-cancel.h: Likewise.
30657
30658         * include/mqueue.h: Use IS_IN instead of IS_IN_librt.
30659         * nptl/pthreadP.h: Likewise.
30660         * sysdeps/unix/sysv/linux/aarch64/sysdep-cancel.h: Likewise.
30661         * sysdeps/unix/sysv/linux/alpha/sysdep-cancel.h: Likewise.
30662         * sysdeps/unix/sysv/linux/arm/sysdep-cancel.h: Likewise.
30663         * sysdeps/unix/sysv/linux/hppa/nptl/sysdep-cancel.h: Likewise.
30664         * sysdeps/unix/sysv/linux/i386/sysdep-cancel.h: Likewise.
30665         * sysdeps/unix/sysv/linux/ia64/sysdep-cancel.h: Likewise.
30666         * sysdeps/unix/sysv/linux/ia64/sysdep.h: Likewise.
30667         * sysdeps/unix/sysv/linux/m68k/sysdep-cancel.h: Likewise.
30668         * sysdeps/unix/sysv/linux/microblaze/sysdep-cancel.h: Likewise.
30669         * sysdeps/unix/sysv/linux/mips/mips64/sysdep-cancel.h: Likewise.
30670         * sysdeps/unix/sysv/linux/mips/sysdep-cancel.h: Likewise.
30671         * sysdeps/unix/sysv/linux/not-cancel.h: Likewise.
30672         * sysdeps/unix/sysv/linux/powerpc/powerpc32/sysdep-cancel.h:
30673         Likewise.
30674         * sysdeps/unix/sysv/linux/powerpc/powerpc64/sysdep-cancel.h:
30675         Likewise.
30676         * sysdeps/unix/sysv/linux/s390/s390-32/sysdep-cancel.h: Likewise.
30677         * sysdeps/unix/sysv/linux/s390/s390-64/sysdep-cancel.h: Likewise.
30678         * sysdeps/unix/sysv/linux/sh/sysdep-cancel.h: Likewise.
30679         * sysdeps/unix/sysv/linux/sparc/sparc32/sysdep-cancel.h: Likewise.
30680         * sysdeps/unix/sysv/linux/sparc/sparc64/sysdep-cancel.h: Likewise.
30681         * sysdeps/unix/sysv/linux/tile/sysdep-cancel.h: Likewise.
30682         * sysdeps/unix/sysv/linux/tile/waitpid.S: Likewise.
30683         * sysdeps/unix/sysv/linux/x86_64/sysdep-cancel.h: Likewise.
30684
30685         * dlfcn/dladdr.c: Use IS_IN.
30686         * dlfcn/dladdr1.c: Likewise.
30687         * dlfcn/dlclose.c: Likewise.
30688         * dlfcn/dlerror.c: Likewise.
30689         * dlfcn/dlinfo.c: Likewise.
30690         * dlfcn/dlmopen.c: Likewise.
30691         * dlfcn/dlopen.c: Likewise.
30692         * dlfcn/dlsym.c: Likewise.
30693         * dlfcn/dlvsym.c: Likewise.
30694
30695         * include/ifaddrs.h: Use IS_IN.
30696         * inet/check_pf.c: Likewise.
30697         * sysdeps/unix/sysv/linux/check_pf.c: Likewise.
30698         * nscd/Makefile (CPPFLAGS-nscd): Remove IS_IN_nscd.
30699
30700         * elf/Makefile (CFLAGS-ldconfig.c): Remove definition of
30701         IS_IN_ldconfig.
30702         * sysdeps/unix/sysv/linux/x86_64/dl-procinfo.c: Use IS_IN.
30703         * sysdeps/unix/sysv/linux/x86_64/dl-procinfo.h: Likewise.
30704
30705         * include/shlib-compat.h [!NOT_IN_libc]: Remove.
30706         * nss/nss_files/files-parse.c (IS_IN_libc): Replace with
30707         IS_IN (libc).
30708
30709         * elf/Makefile (libof-sotruss-lib): Set as extramodules.
30710
30711         * elf/Makefile (CPPFLAGS-.os): Remove IN_LIB.
30712         * elf/rtld-Rules (rtld-CPPFLAGS): Likewise.
30713         * extra-lib.mk (CPPFLAGS-$(lib)): Likewise.
30714         * include/libc-symbols.h (IS_IN_LIB): New macro.
30715         * include/errno.h: Use IS_IN_LIB instead of IN_LIB.
30716         * include/netdb.h: Likewise.
30717         * include/stap-probe.h: Remove all uses of IN_LIB.
30718
30719         * Makeconfig (module-cppflags-real): Define MODULE_NAME
30720         instead of IN_MODULE.
30721         * include/libc-symbols.h (IN_MODULE): Define using
30722         MODULE_NAME.
30723         (PASTE_NAME, PASTE_NAME1): New macros.
30724         * include/stap-probe.h (LIBC_PROBE_1): Use MODULE_NAME instead
30725         of IN_LIB.
30726         (STAP_PROBE_ASM): Likewise.
30727
30728 2014-11-23  Samuel Thibault  <samuel.thibault@ens-lyon.org>
30729
30730         * sysdeps/mach/hurd/i386/init-first.c (posixland_init): Call
30731         __mach_init in dlopened libc.
30732
30733 2014-11-22  Mike Frysinger  <vapier@gentoo.org>
30734
30735         * sysdeps/arm/preconfigure.ac: Delete EABI check.
30736         * sysdeps/arm/preconfigure: Regenerate.
30737
30738 2014-11-21  Roland McGrath  <roland@hack.frob.com>
30739
30740         * nptl/pthread_create.c (__pthread_create_2_1): Set
30741         ATTR_FLAG_POLICY_SET and/or ATTR_FLAG_SCHED_SET in PD->flags
30742         when copying values from IATTR into PD.
30743
30744 2014-11-21  Will Newton  <will.newton@linaro.org>
30745             Andrew Pinski  <andrew.pinski@caviumnetworks.com>
30746
30747         * sysdeps/aarch64/dl-machine.h (elf_machine_load_address):
30748         Refactor inline-asm.  Also add comment.
30749
30750         * sysdeps/aarch64/bits/link.h (la_aarch64_gnu_pltenter): Use
30751         ElfW macro instead of hardcoded Elf64 types.
30752         (la_aarch64_gnu_pltenter): Likewise.
30753         * sysdeps/aarch64/dl-machine.h
30754         (elf_machine_runtime_setup): Use ElfW(Addr).
30755
30756         * elf/elf.h (R_AARCH64_P32_ABS32, R_AARCH64_P32_COPY,
30757         R_AARCH64_P32_GLOB_DAT, R_AARCH64_P32_JUMP_SLOT,
30758         R_AARCH64_P32_RELATIVE, R_AARCH64_P32_TLS_DTPMOD,
30759         R_AARCH64_P32_TLS_DTPREL, R_AARCH64_P32_TLS_TPREL,
30760         R_AARCH64_P32_TLSDESC, R_AARCH64_P32_IRELATIVE): Define.
30761         (R_AARCH64_TLS_DTPMOD64): Rename to ..
30762         (R_AARCH64_TLS_DTPMOD): This.
30763         (R_AARCH64_TLS_DTPREL64): Rename to ...
30764         (R_AARCH64_TLS_DTPREL): This.
30765         (R_AARCH64_TLS_TPREL64): Rename to ...
30766         (R_AARCH64_TLS_TPREL): This.
30767         * sysdeps/aarch64/dl-machine.h (elf_machine_type_class): Update
30768         R_AARCH64_TLS_DTPMOD64, R_AARCH64_TLS_DTPREL64, and
30769         R_AARCH64_TLS_TPREL64.
30770         (elf_machine_rela): Likewise.
30771
30772 2014-11-21  Torvald Riegel  <triegel@redhat.com>
30773
30774         * sysdeps/microblaze/bits/atomic.h (__HAVE_64B_ATOMICS): Fix value
30775         by setting it to 0.  64b atomics are not supported currently.
30776
30777 2014-11-21  Alexandre Oliva <aoliva@redhat.com>
30778
30779         [BZ #16469]
30780         * resolv/res_query.c (__libc_res_nsearch): Skip leading dot in
30781         search domain names.
30782
30783 2014-11-21  Alexandre Oliva <aoliva@redhat.com>
30784
30785         [BZ #16469]
30786         * NEWS: Update.
30787         * resolv/res_query.c (__libc_res_nquerydomain): Retain
30788         trailing dot.
30789         * posix/tst-getaddrinfo5.c: New.
30790         * posix/Makefile (tests): Add it.
30791
30792 2014-11-21  Alexandre Oliva <aoliva@redhat.com>
30793
30794         [BZ #14498]
30795         * NEWS: Fixed.
30796         * nss/nss_db/db-XXX.c (_nss_db_get##name##_r): Update hidx
30797         after parsing line but before break_if_match.
30798         * nss/nss_files/files-service (DB_LOOKUP): Don't "continue;"
30799         if there is a protocol mismatch.
30800
30801 2014-11-21  Ma Shimiao <mashimiao.fnst@cn.fujitsu.com>
30802
30803         * manual/sysinfo.texi (addmntent): It is actually MT-Safe,
30804         because the potential race is on the user-supplied stream.
30805
30806 2014-11-21  Alexandre Oliva <aoliva@redhat.com>
30807
30808         * sysdeps/posix/ctermid.c (ctermid): Return a pointer to a
30809         string literal if not passed a buffer.
30810         * manual/job.texi (ctermid): Update reasoning, note deviation
30811         from posix, suggest mtasurace when not passed a buffer, for
30812         future non-preliminary safety notes.
30813
30814 2014-11-21  Alexandre Oliva <aoliva@redhat.com>
30815
30816         * manual/users.texi (cuserid): Fix MT-Safety note for the case
30817         of not passing it a buffer.
30818         Reported by Peng Haitao.
30819
30820 2014-11-21  Alexandre Oliva <aoliva@redhat.com>
30821
30822         * manual/Makefile ($(objpfx)stamp-summary): Require
30823         check-safety.sh to pass.
30824         * manual/check-safety.sh: Wish for verification that every
30825         @deftypefn and @deftypefun is followed by a @safety remark.
30826
30827 2014-11-20  Roland McGrath  <roland@hack.frob.com>
30828
30829         * nptl/unwind.c (unwind_cleanup): Use __libc_fatal.
30830
30831         * nptl/pthread_setcanceltype.c [!SIGCANCEL]: Return ENOTSUP early for
30832         PTHREAD_CANCEL_ASYNCHRONOUS.
30833         * nptl/pthread_cancel.c [!SIGCANCEL]: Just abort rather than trying to
30834         send SIGCANCEL.
30835
30836         * nptl/default-sched.h: New file.
30837         * sysdeps/unix/sysv/linux/default-sched.h: New file.
30838         * nptl/pthread_create.c: Include it.
30839         (__pthread_create_2_1): Use collect_default_sched instead of making
30840         Linux syscalls here directly.
30841
30842 2014-11-20  Torvald Riegel  <triegel@redhat.com>
30843
30844         * nptl/pthread_once.c (clear_once_control, __pthread_once_slow,
30845         __pthread_once): Use C11 atomics.
30846
30847 2014-11-20  Torvald Riegel  <triegel@redhat.com>
30848
30849         * csu/tst-atomic.c (do_test): Add tests for C11-like atomics.
30850
30851 2014-11-20  Torvald Riegel  <triegel@redhat.com>
30852
30853         * include/atomic.h (__atomic_link_error, __atomic_check_size,
30854         atomic_thread_fence_acquire, atomic_thread_fence_release,
30855         atomic_thread_fence_seq_cst, atomic_load_relaxed,
30856         atomic_load_acquire, atomic_store_relaxed, atomic_store_release,
30857         atomic_compare_exchange_weak_relaxed,
30858         atomic_compare_exchange_weak_acquire,
30859         atomic_compare_exchange_weak_release,
30860         atomic_exchange_acquire, atomic_exchange_release,
30861         atomic_fetch_add_relaxed, atomic_fetch_add_acquire,
30862         atomic_fetch_add_release, atomic_fetch_add_acq_rel,
30863         atomic_fetch_and_acquire,
30864         atomic_fetch_or_relaxed, atomic_fetch_or_acquire): New.
30865
30866 2014-11-20  Torvald Riegel  <triegel@redhat.com>
30867
30868         * sysdeps/aarch64/bits/atomic.h (__HAVE_64B_ATOMICS,
30869         USE_ATOMIC_COMPILER_BUILTINS): Define.
30870         * sysdeps/alpha/bits/atomic.h (__HAVE_64B_ATOMICS,
30871         USE_ATOMIC_COMPILER_BUILTINS): Likewise.
30872         * sysdeps/arm/bits/atomic.h (__HAVE_64B_ATOMICS,
30873         USE_ATOMIC_COMPILER_BUILTINS): Likewise.
30874         * sysdeps/i386/i486/bits/atomic.h (__HAVE_64B_ATOMICS,
30875         USE_ATOMIC_COMPILER_BUILTINS): Likewise.
30876         * sysdeps/ia64/bits/atomic.h (__HAVE_64B_ATOMICS,
30877         USE_ATOMIC_COMPILER_BUILTINS): Likewise.
30878         * sysdeps/m68k/coldfire/bits/atomic.h (__HAVE_64B_ATOMICS,
30879         USE_ATOMIC_COMPILER_BUILTINS): Likewise.
30880         * sysdeps/m68k/m680x0/m68020/bits/atomic.h (__HAVE_64B_ATOMICS,
30881         USE_ATOMIC_COMPILER_BUILTINS): Likewise.
30882         * sysdeps/microblaze/bits/atomic.h (__HAVE_64B_ATOMICS,
30883         USE_ATOMIC_COMPILER_BUILTINS): Likewise.
30884         * sysdeps/mips/bits/atomic.h (__HAVE_64B_ATOMICS,
30885         USE_ATOMIC_COMPILER_BUILTINS): Likewise.
30886         * sysdeps/powerpc/powerpc32/bits/atomic.h (__HAVE_64B_ATOMICS,
30887         USE_ATOMIC_COMPILER_BUILTINS): Likewise.
30888         * sysdeps/powerpc/powerpc64/bits/atomic.h (__HAVE_64B_ATOMICS,
30889         USE_ATOMIC_COMPILER_BUILTINS): Likewise.
30890         * sysdeps/s390/bits/atomic.h (__HAVE_64B_ATOMICS,
30891         USE_ATOMIC_COMPILER_BUILTINS): Likewise.
30892         * sysdeps/sparc/sparc32/bits/atomic.h (__HAVE_64B_ATOMICS,
30893         USE_ATOMIC_COMPILER_BUILTINS): Likewise.
30894         * sysdeps/sparc/sparc32/sparcv9/bits/atomic.h (__HAVE_64B_ATOMICS,
30895         USE_ATOMIC_COMPILER_BUILTINS): Likewise.
30896         * sysdeps/sparc/sparc64/bits/atomic.h (__HAVE_64B_ATOMICS,
30897         USE_ATOMIC_COMPILER_BUILTINS): Likewise.
30898         * sysdeps/tile/tilegx/bits/atomic.h (__HAVE_64B_ATOMICS,
30899         USE_ATOMIC_COMPILER_BUILTINS): Likewise.
30900         * sysdeps/tile/tilepro/bits/atomic.h (__HAVE_64B_ATOMICS,
30901         USE_ATOMIC_COMPILER_BUILTINS): Likewise.
30902         * sysdeps/unix/sysv/linux/hppa/bits/atomic.h (__HAVE_64B_ATOMICS,
30903         USE_ATOMIC_COMPILER_BUILTINS): Likewise.
30904         * sysdeps/unix/sysv/linux/m68k/coldfire/bits/atomic.h
30905         (__HAVE_64B_ATOMICS, USE_ATOMIC_COMPILER_BUILTINS): Likewise.
30906         * sysdeps/unix/sysv/linux/sh/bits/atomic.h (__HAVE_64B_ATOMICS,
30907         USE_ATOMIC_COMPILER_BUILTINS): Likewise.
30908         * sysdeps/x86_64/bits/atomic.h (__HAVE_64B_ATOMICS,
30909         USE_ATOMIC_COMPILER_BUILTINS): Likewise.
30910
30911 2014-11-19  Roland McGrath  <roland@hack.frob.com>
30912
30913         * nptl/pthread_create.c (__pthread_create_2_1): Don't try to validate
30914         the sched_priority value here.  It was already checked when the user
30915         called pthread_attr_setschedparam.
30916
30917         * nptl/tst-bad-schedattr.c: New file.
30918         * nptl/Makefile (tests): Add it.
30919
30920 2014-11-19  Carlos O'Donell  <carlos@redhat.com>
30921             Florian Weimer  <fweimer@redhat.com>
30922             Joseph Myers  <joseph@codesourcery.com>
30923             Adam Conrad  <adconrad@0c3.net>
30924             Andreas Schwab  <schwab@suse.de>
30925             Brooks  <bmoses@google.com>
30926
30927         [BZ #17625]
30928         * wordexp-test.c (__dso_handle): Add prototype.
30929         (__register_atfork): Likewise.
30930         (__app_register_atfork): New function.
30931         (registered_forks): New global.
30932         (register_fork): New function.
30933         (test_case): Add 3 new tests for WRDE_CMDSUB.
30934         (main): Call __app_register_atfork.
30935         (testit): If WRDE_NOCMD set registered_forks to zero, run test, and if
30936         fork count is non-zero fail the test.
30937         * posix/wordexp.c (exec_comm): Return WRDE_CMDSUB if WRDE_NOCMD flag
30938         is set.
30939         (parse_dollars): Remove check for WRDE_NOCMD.
30940         (parse_dquote): Likewise.
30941
30942 2014-11-19  Siddhesh Poyarekar  <siddhesh@redhat.com>
30943
30944         * Makeconfig (built-modules): List non-library modules to be
30945         built.
30946         (module-cppflags): Include libc-modules.h for
30947         everything except shlib-versions.v.i.
30948         (CPPFLAGS): Use it.
30949         (before-compile): Add libc-modules.h.
30950         ($(common-objpfx)libc-modules.h,
30951         $(common-objpfx)libc-modules.stmp): New targets.
30952         (common-generated): Add libc-modules.h and libc-modules.stmp.
30953         ($(common-objpfx)Versions.v.i): Depend on libc-modules.h.
30954         * include/libc-symbols.h: Don't include libc-modules.h.
30955         * include/libc-modules.h: Remove file.
30956         * scripts/gen-libc-modules.awk: New script to generate
30957         libc-modules.h.
30958         * sysdeps/unix/Makefile ($(common-objpfx)sysd-syscalls):
30959         Depend on libc-modules.stmp.
30960
30961         * include/shlib-compat.h (_SHLIB_COMPAT): Use IS_IN.
30962
30963         * Makeconfig (in-module): Get value of libof set for the
30964         translation unit.
30965         (CPPFLAGS): Use $(in-module).
30966         * Makerules: Don't suffix routine names for nonlib.
30967         * include/libc-modules.h: New file.
30968         * include/libc-symbols.h: Include libc-modules.h
30969         (IS_IN): New macro to replace IS_IN_* macros.
30970         * elf/Makefile: Set libof-* for each routine.
30971         * elf/rtld-Rules: Likewise.
30972         * extra-modules.mk: Likewise.
30973         * iconv/Makefile: Likewise.
30974         * iconvdata/Makefile: Likewise.
30975         * locale/Makefile: Likewise.
30976         * malloc/Makefile: Likewise.
30977         * nss/Makefile: Likewise.
30978         * sysdeps/gnu/Makefile: Likewise.
30979         * sysdeps/ieee754/ldbl-opt/Makefile: Likewise.
30980         * sysdeps/unix/sysv/linux/Makefile: Likewise.
30981         * sysdeps/s390/s390-64/Makefile: Likewise.
30982         * nscd/Makefile: Set libof-* for each routine.  Set CFLAGS and
30983         CPPFLAGS for nscd instead of nonlib.
30984
30985 2014-11-18  Roland McGrath  <roland@hack.frob.com>
30986
30987         * nptl/createthread.c: New file.
30988
30989         * nptl/createthread.c: Moved ...
30990         * sysdeps/unix/sysv/linux/createthread.c: ... here.
30991
30992         * nptl/createthread.c: Add proper top-line comment.
30993         (do_clone): Folded into ...
30994         (create_thread): ... here.  Take new arguments STOPPED_START and
30995         THREAD_RAN.  Always set PD->stopped_start to something here.  Don't
30996         increment __nptl_threads, do event-reporting logic, do
30997         CHECK_THREAD_SYSINFO, or set THREAD_SELF->header.multiple_threads
30998         here.  Set *THREAD_RAN after ARCH_CLONE call succeeds.  Don't do any
30999         resource cleanup if sched_setaffinity or sched_setscheduler fails,
31000         just send SIGCANCEL.
31001         * nptl/pthread_create.c: Forward-declare create_thread before
31002         including createthread.c.
31003         (start_thread): Use new macro START_THREAD_DEFN to replace defining
31004         declaration, and new macro START_THREAD_SELF to replace argument.
31005         Remove return statement.
31006         (report_thread_creation): New function.
31007         (__pthread_create_2_1): Use it.  Do TD_CREATE reporting,
31008         synchronization logic, and __nptl_nthreads increment here, around
31009         calling create_thread.  Do CHECK_THREAD_SYSINFO and initialize
31010         PD->parent_cancelhandling here, before create_thread.  When
31011         create_thread fails, do __nptl_nthreads decrement, setxid_futex wake,
31012         __deallocate_stack, and ENOMEM translation here.
31013
31014 2014-11-18  Joseph Myers  <joseph@codesourcery.com>
31015
31016         [BZ #17616]
31017         * sysdeps/ieee754/dbl-64/mpa.c (mpone): Rename to __mpone.
31018         (mptwo): Rename to __mptwo.
31019         (__inv): Use __mptwo instead of mptwo.
31020         * sysdeps/ieee754/dbl-64/mpa.h (mpone): Rename to __mpone.
31021         (mptwo): Rename to __mptwo.
31022         * sysdeps/ieee754/dbl-64/mpatan.c (__mpatan): Use __mpone instead
31023         of mpone and __mptwo instead of mptwo.
31024         * sysdeps/ieee754/dbl-64/mpatan2.c (__mpatan2): Use __mpone
31025         instead of mpone.
31026         * sysdeps/ieee754/dbl-64/mpexp.c (__mpexp): Likewise.
31027         * sysdeps/ieee754/dbl-64/mplog.c (__mplog): Likewise.
31028         * sysdeps/ieee754/dbl-64/sincos32.c (__c32): Use __mpone instead
31029         of mpone and __mptwo instead of mptwo.
31030         (__mpranred): Use __mpone instead of mpone.
31031         * conform/Makefile (test-xfail-ISO/math.h/linknamespace): Remove
31032         variable.
31033         (test-xfail-ISO99/complex.h/linknamespace): Likewise.
31034         (test-xfail-ISO99/math.h/linknamespace): Likewise.
31035         (test-xfail-ISO99/tgmath.h/linknamespace): Likewise.
31036         (test-xfail-ISO11/complex.h/linknamespace): Likewise.
31037         (test-xfail-ISO11/math.h/linknamespace): Likewise.
31038         (test-xfail-ISO11/tgmath.h/linknamespace): Likewise.
31039         (test-xfail-XPG3/math.h/linknamespace): Likewise.
31040         (test-xfail-XPG4/math.h/linknamespace): Likewise.
31041         (test-xfail-POSIX/math.h/linknamespace): Likewise.
31042         (test-xfail-UNIX98/math.h/linknamespace): Likewise.
31043         (test-xfail-XOPEN2K/complex.h/linknamespace): Likewise.
31044         (test-xfail-XOPEN2K/math.h/linknamespace): Likewise.
31045         (test-xfail-XOPEN2K/tgmath.h/linknamespace): Likewise.
31046         (test-xfail-POSIX2008/complex.h/linknamespace): Likewise.
31047         (test-xfail-POSIX2008/math.h/linknamespace): Likewise.
31048         (test-xfail-POSIX2008/tgmath.h/linknamespace): Likewise.
31049         (test-xfail-XOPEN2K8/complex.h/linknamespace): Likewise.
31050         (test-xfail-XOPEN2K8/math.h/linknamespace): Likewise.
31051         (test-xfail-XOPEN2K8/tgmath.h/linknamespace): Likewise.
31052
31053 2014-11-18  Tom de Vries  <tom@codesoucery.com>
31054
31055         * manual/signal.texi (Primitives Interrupted by Signals): In section,
31056         replace BSD Handler xref with BSD Signal Handling.
31057
31058 2014-11-17  Richard Henderson  <rth@redhat.com>
31059
31060         * sysdeps/alpha/soft-fp/local-soft-fp.h (_FP_UNPACK_RAW_2): Remove.
31061         (_FP_PACK_RAW_2): Remove.
31062         (AXP_DECL_RETURN_Q): Rename from FP_DECL_RETURN, use _FP_UNION_Q.
31063         (AXP_RETURN_Q): Rename from FP_RETURN, use _FP_UNION_Q.
31064         (AXP_UNPACK_RAW_Q, AXP_UNPACK_SEMIRAW_Q, AXP_UNPACK_Q): New.
31065         (AXP_PACK_RAW_Q, AXP_PACK_SEMIRAW_Q, AXP_PACK_Q): New.
31066         * sysdeps/alpha/soft-fp/ots_add.c (_OtsAddX): Update to match.
31067         * sysdeps/alpha/soft-fp/ots_cmp.c (internal_equality): Likewise.
31068         * sysdeps/alpha/soft-fp/ots_cmpe.c (internal_compare): Likewise.
31069         * sysdeps/alpha/soft-fp/ots_cvtqux.c (_OtsCvtQUX): Likewise.
31070         * sysdeps/alpha/soft-fp/ots_cvtqx.c (_OtsCvtQX): Likewise.
31071         * sysdeps/alpha/soft-fp/ots_cvttx.c (_OtsConvertFloatTX): Likewise.
31072         * sysdeps/alpha/soft-fp/ots_cvtxq.c (_OtsCvtXQ): Likewise.
31073         * sysdeps/alpha/soft-fp/ots_cvtxt.c (_OtsConvertFloatXT): Likewise.
31074         * sysdeps/alpha/soft-fp/ots_div.c (_OtsDivX): Likewise.
31075         * sysdeps/alpha/soft-fp/ots_mul.c (_OtsMulX): Likewise.
31076         * sysdeps/alpha/soft-fp/ots_nintxq.c (_OtsNintXQ): Likewise.
31077         * sysdeps/alpha/soft-fp/ots_sub.c (_OtsSubX): Likewise.
31078
31079 2014-11-14  Roland McGrath  <roland@hack.frob.com>
31080
31081         * signal/signal.h [__USE_MISC]
31082         (struct sigvec): Remove type.
31083         (SV_ONSTACK, SV_INTERRUPT, SV_RESETHAND): Remove macros.
31084         (sigvec): Remove declaration.
31085         * sysdeps/posix/sigvec.c: Moved ...
31086         * signal/sigvec.c: ... here, replacing old file.
31087         (struct sigvec): New type, copied from old signal.h definition.
31088         (SV_ONSTACK, SV_INTERRUPT, SV_RESETHAND): New macros, likewise copied.
31089         (__sigvec): Convert definition to prototype.
31090         (sigvec): Replace weak_alias with compat_symbol.
31091         * signal/Versions (libc: GLIBC_2.21): New version set.
31092         * include/signal.h: Remove __sigvec declaration.
31093         * sysdeps/unix/bsd/sigvec.c: Remove file.
31094         * sysdeps/unix/bsd/syscalls.list: Remove sigvec.
31095         * manual/signal.texi (BSD Handler): Remove subsection.
31096         Move siginterrupt up to ...
31097         (BSD Signal Handling): ... here.  Mark it as XPG rather than BSD.
31098         (Blocking in BSD): Fold subsection into its parent.
31099         * NEWS: Mention sigvec removal.
31100
31101 2014-11-14  Joseph Myers  <joseph@codesourcery.com>
31102
31103         * sysdeps/x86_64/fpu/dla.h [__FMA4__ && __GNUC_PREREQ (4, 6)]
31104         (DLA_FMS): Make definition conditional only on [__FMA4__].
31105         [__FMA4__ && !__GNUC_PREREQ (4, 6)] (DLA_FMS): Remove conditional
31106         definition.
31107
31108         * sysdeps/arm/sysdep.h [PROF && __GNUC_PREREQ(4,4)] (CALL_MCOUNT):
31109         Make definition conditional only on [PROF].
31110         [PROF && !__GNUC_PREREQ(4,4)] (CALL_MCOUNT): Remove conditional
31111         definition.
31112         [__GNUC_PREREQ(4,4)] (mcount): Make definition unconditional.
31113         [!__GNUC_PREREQ(4,4)] (mcount): Remove conditional definition.
31114
31115         * signal/signal.h (__sigpause): Only declare if [__USE_XOPEN &&
31116         !__GNUC__].
31117         * include/signal.h (__sigpause): Move declaration above call to
31118         libc_hidden_proto.
31119         * conform/Makefile (test-xfail-ISO/signal.h/linknamespace): Remove
31120         variable.
31121         (test-xfail-ISO99/signal.h/linknamespace): Likewise.
31122         (test-xfail-ISO11/signal.h/linknamespace): Likewise.
31123
31124 2014-11-14  David S. Miller  <davem@davemloft.net>
31125
31126         * sysdeps/sparc/sparc64/rtld-memcpy.c (NO_MEMPCPY_STPCPY_REDIRECT):
31127         Define before including <string/memcpy.c> and <string/mempcpy.c>.
31128
31129 2014-11-14  Joseph Myers  <joseph@codesourcery.com>
31130
31131         * configure.ac (libc_cv_compiler_ok): Require GCC 4.6 or later.
31132         * configure: Regenerated.
31133         * manual/install.texi (Tools for Compilation): Document a
31134         requirement of GCC 4.6 or later and that GCC 4.9 is the newest
31135         compiler verified to work.
31136         * INSTALL: Regenerated.
31137
31138         * include/string.h [NO_MEMPCPY_STPCPY_REDIRECT] (mempcpy): Do not
31139         redeclare with asm name.
31140         [NO_MEMPCPY_STPCPY_REDIRECT] (stpcpy): Likewise.
31141         * string/mempcpy.c (NO_MEMPCPY_STPCPY_REDIRECT): Define before
31142         including <string.h>.
31143         * string/stpcpy.c (NO_MEMPCPY_STPCPY_REDIRECT): Likewise.
31144         * sysdeps/powerpc/powerpc32/power4/multiarch/mempcpy.c
31145         [!NOT_IN_libc] (NO_MEMPCPY_STPCPY_REDIRECT): Likewise.
31146         * sysdeps/powerpc/powerpc64/multiarch/mempcpy.c
31147         [!NOT_IN_libc] (NO_MEMPCPY_STPCPY_REDIRECT): Likewise.
31148         * sysdeps/powerpc/powerpc64/multiarch/stpcpy.c
31149         [SHARED && !NOT_IN_libc] (NO_MEMPCPY_STPCPY_REDIRECT): Likewise.
31150
31151 2014-11-13  Joseph Myers  <joseph@codesourcery.com>
31152
31153         * stdlib/strtol.c (__strtol): Use prototype definition.
31154
31155         [BZ #17594]
31156         * stdlib/strtol.c (SYM__): New macro.
31157         (SYM__1): Likewise.
31158         (__strtol): Likewise.
31159         (strtol): Rename to __strtol and define as weak alias of
31160         __strtol.  Use libc_hidden_weak.
31161
31162 2014-11-13  Stefan Liebler  <stli@linux.vnet.ibm.com>
31163
31164         * sysdeps/s390/s390-32/dl-machine.h (RTLD_START):
31165         Use numbered labels in inline assembly.
31166
31167 2014-11-13  Stefan Liebler  <stli@linux.vnet.ibm.com>
31168
31169         * sysdeps/s390/s390-32/setjmp.S (__sigsetjmp):
31170         Add setjmp LIBC_PROBE.
31171         * sysdeps/s390/s390-64/setjmp.S (__sigsetjmp):
31172         Likewise.
31173         * sysdeps/s390/s390-32/__longjmp.c (__longjmp):
31174         Add longjmp, longjmp_target LIBC_PROBE.
31175         * sysdeps/s390/s390-64/__longjmp.c (__longjmp):
31176         Likewise.
31177
31178 2014-11-13  Stefan Liebler  <stli@linux.vnet.ibm.com>
31179
31180         * sysdeps/s390/s390-64/dl-machine.h (elf_machine_rela):
31181         Gate the definition of refsym additionally with !RTLD_BOOTSTRAP
31182         to get rid of unused variable warning.
31183
31184 2014-11-13  Stefan Liebler  <stli@linux.vnet.ibm.com>
31185
31186         * sysdeps/s390/s390-32/backtrace.c (__backtrace):
31187         Check for unwind_backtrace ==  NULL only in SHARED case.
31188         (__backchain_backtrace): Compile only in SHARED case.
31189         * sysdeps/s390/s390-64/backtrace.c (__backtrace):
31190         Likewise.
31191         (__backchain_backtrace): Declare as static.
31192
31193 2014-11-12  Roland McGrath  <roland@hack.frob.com>
31194
31195         * nptl/createthread.c [!TLS_MULTIPLE_THREADS_IN_TCB]
31196         (__libc_multiple_threads_ptr): Variable moved ...
31197         * nptl/nptl-init.c [!TLS_MULTIPLE_THREADS_IN_TCB]: ... here.
31198
31199 2014-11-12  Joseph Myers  <joseph@codesourcery.com>
31200
31201         * conform/GlibcConform.pm: New file.
31202         * conform/conformtest.pl: Use GlibcConform module.
31203         * conform/linknamespace.pl: New file.
31204         * conform/list-header-symbols.pl: Likewise.
31205         * conform/Makefile (linknamespace-symlists-base): New variable.
31206         (linknamespace-symlists-tests): Likewise.
31207         (linknamespace-header-base): Likewise.
31208         (linknamespace-header-tests): Likewise.
31209         (tests-special): Add new tests.
31210         ($(linknamespace-symlists-tests)): New rule.
31211         (linknamespace-libs): New variable.
31212         ($(objpfx)symlist-stdlibs): New rule.
31213         ($(linknamespace-header-tests)): Likewise.
31214         (test-xfail-XPG3/varargs.h/linknamespace): New variable.
31215         (test-xfail-XPG4/varargs.h/linknamespace): Likewise.
31216         (test-xfail-UNIX98/varargs.h/linknamespace): Likewise.
31217         (test-xfail-XPG4/ndbm.h/linknamespace): Likewise.
31218         (test-xfail-UNIX98/ndbm.h/linknamespace): Likewise.
31219         (test-xfail-XOPEN2K/ndbm.h/linknamespace): Likewise.
31220         (test-xfail-XOPEN2K8/ndbm.h/linknamespace): Likewise.
31221         (test-xfail-ISO/math.h/linknamespace): Likewise.
31222         (test-xfail-ISO/signal.h/linknamespace): Likewise.
31223         (test-xfail-ISO/stdio.h/linknamespace): Likewise.
31224         (test-xfail-ISO/time.h/linknamespace): Likewise.
31225         (test-xfail-ISO99/complex.h/linknamespace): Likewise.
31226         (test-xfail-ISO99/ctype.h/linknamespace): Likewise.
31227         (test-xfail-ISO99/math.h/linknamespace): Likewise.
31228         (test-xfail-ISO99/signal.h/linknamespace): Likewise.
31229         (test-xfail-ISO99/stdio.h/linknamespace): Likewise.
31230         (test-xfail-ISO99/tgmath.h/linknamespace): Likewise.
31231         (test-xfail-ISO11/complex.h/linknamespace): Likewise.
31232         (test-xfail-ISO11/ctype.h/linknamespace): Likewise.
31233         (test-xfail-ISO11/math.h/linknamespace): Likewise.
31234         (test-xfail-ISO11/signal.h/linknamespace): Likewise.
31235         (test-xfail-ISO11/stdio.h/linknamespace): Likewise.
31236         (test-xfail-ISO11/tgmath.h/linknamespace): Likewise.
31237         (test-xfail-XPG3/ctype.h/linknamespace): Likewise.
31238         (test-xfail-XPG3/fnmatch.h/linknamespace): Likewise.
31239         (test-xfail-XPG3/glob.h/linknamespace): Likewise.
31240         (test-xfail-XPG3/math.h/linknamespace): Likewise.
31241         (test-xfail-XPG3/regex.h/linknamespace): Likewise.
31242         (test-xfail-XPG3/search.h/linknamespace): Likewise.
31243         (test-xfail-XPG3/stdio.h/linknamespace): Likewise.
31244         (test-xfail-XPG3/time.h/linknamespace): Likewise.
31245         (test-xfail-XPG3/unistd.h/linknamespace): Likewise.
31246         (test-xfail-XPG3/wordexp.h/linknamespace): Likewise.
31247         (test-xfail-XPG4/ctype.h/linknamespace): Likewise.
31248         (test-xfail-XPG4/fmtmsg.h/linknamespace): Likewise.
31249         (test-xfail-XPG4/fnmatch.h/linknamespace): Likewise.
31250         (test-xfail-XPG4/glob.h/linknamespace): Likewise.
31251         (test-xfail-XPG4/grp.h/linknamespace): Likewise.
31252         (test-xfail-XPG4/libgen.h/linknamespace): Likewise.
31253         (test-xfail-XPG4/math.h/linknamespace): Likewise.
31254         (test-xfail-XPG4/netdb.h/linknamespace): Likewise.
31255         (test-xfail-XPG4/pwd.h/linknamespace): Likewise.
31256         (test-xfail-XPG4/regex.h/linknamespace): Likewise.
31257         (test-xfail-XPG4/search.h/linknamespace): Likewise.
31258         (test-xfail-XPG4/stdio.h/linknamespace): Likewise.
31259         (test-xfail-XPG4/stdlib.h/linknamespace): Likewise.
31260         (test-xfail-XPG4/sys/mman.h/linknamespace): Likewise.
31261         (test-xfail-XPG4/sys/statvfs.h/linknamespace): Likewise.
31262         (test-xfail-XPG4/syslog.h/linknamespace): Likewise.
31263         (test-xfail-XPG4/time.h/linknamespace): Likewise.
31264         (test-xfail-XPG4/unistd.h/linknamespace): Likewise.
31265         (test-xfail-XPG4/wordexp.h/linknamespace): Likewise.
31266         (test-xfail-POSIX/aio.h/linknamespace): Likewise.
31267         (test-xfail-POSIX/fnmatch.h/linknamespace): Likewise.
31268         (test-xfail-POSIX/glob.h/linknamespace): Likewise.
31269         (test-xfail-POSIX/math.h/linknamespace): Likewise.
31270         (test-xfail-POSIX/mqueue.h/linknamespace): Likewise.
31271         (test-xfail-POSIX/pthread.h/linknamespace): Likewise.
31272         (test-xfail-POSIX/regex.h/linknamespace): Likewise.
31273         (test-xfail-POSIX/sched.h/linknamespace): Likewise.
31274         (test-xfail-POSIX/semaphore.h/linknamespace): Likewise.
31275         (test-xfail-POSIX/sys/mman.h/linknamespace): Likewise.
31276         (test-xfail-POSIX/time.h/linknamespace): Likewise.
31277         (test-xfail-POSIX/unistd.h/linknamespace): Likewise.
31278         (test-xfail-POSIX/wordexp.h/linknamespace): Likewise.
31279         (test-xfail-UNIX98/aio.h/linknamespace): Likewise.
31280         (test-xfail-UNIX98/ctype.h/linknamespace): Likewise.
31281         (test-xfail-UNIX98/fmtmsg.h/linknamespace): Likewise.
31282         (test-xfail-UNIX98/fnmatch.h/linknamespace): Likewise.
31283         (test-xfail-UNIX98/glob.h/linknamespace): Likewise.
31284         (test-xfail-UNIX98/grp.h/linknamespace): Likewise.
31285         (test-xfail-UNIX98/libgen.h/linknamespace): Likewise.
31286         (test-xfail-UNIX98/math.h/linknamespace): Likewise.
31287         (test-xfail-UNIX98/mqueue.h/linknamespace): Likewise.
31288         (test-xfail-UNIX98/netdb.h/linknamespace): Likewise.
31289         (test-xfail-UNIX98/pthread.h/linknamespace): Likewise.
31290         (test-xfail-UNIX98/pwd.h/linknamespace): Likewise.
31291         (test-xfail-UNIX98/regex.h/linknamespace): Likewise.
31292         (test-xfail-UNIX98/sched.h/linknamespace): Likewise.
31293         (test-xfail-UNIX98/search.h/linknamespace): Likewise.
31294         (test-xfail-UNIX98/semaphore.h/linknamespace): Likewise.
31295         (test-xfail-UNIX98/stdio.h/linknamespace): Likewise.
31296         (test-xfail-UNIX98/stdlib.h/linknamespace): Likewise.
31297         (test-xfail-UNIX98/sys/mman.h/linknamespace): Likewise.
31298         (test-xfail-UNIX98/sys/statvfs.h/linknamespace): Likewise.
31299         (test-xfail-UNIX98/syslog.h/linknamespace): Likewise.
31300         (test-xfail-UNIX98/time.h/linknamespace): Likewise.
31301         (test-xfail-UNIX98/unistd.h/linknamespace): Likewise.
31302         (test-xfail-UNIX98/wchar.h/linknamespace): Likewise.
31303         (test-xfail-UNIX98/wordexp.h/linknamespace): Likewise.
31304         (test-xfail-XOPEN2K/aio.h/linknamespace): Likewise.
31305         (test-xfail-XOPEN2K/complex.h/linknamespace): Likewise.
31306         (test-xfail-XOPEN2K/fcntl.h/linknamespace): Likewise.
31307         (test-xfail-XOPEN2K/fmtmsg.h/linknamespace): Likewise.
31308         (test-xfail-XOPEN2K/fnmatch.h/linknamespace): Likewise.
31309         (test-xfail-XOPEN2K/glob.h/linknamespace): Likewise.
31310         (test-xfail-XOPEN2K/grp.h/linknamespace): Likewise.
31311         (test-xfail-XOPEN2K/libgen.h/linknamespace): Likewise.
31312         (test-xfail-XOPEN2K/math.h/linknamespace): Likewise.
31313         (test-xfail-XOPEN2K/mqueue.h/linknamespace): Likewise.
31314         (test-xfail-XOPEN2K/net/if.h/linknamespace): Likewise.
31315         (test-xfail-XOPEN2K/netdb.h/linknamespace): Likewise.
31316         (test-xfail-XOPEN2K/pthread.h/linknamespace): Likewise.
31317         (test-xfail-XOPEN2K/pwd.h/linknamespace): Likewise.
31318         (test-xfail-XOPEN2K/regex.h/linknamespace): Likewise.
31319         (test-xfail-XOPEN2K/search.h/linknamespace): Likewise.
31320         (test-xfail-XOPEN2K/semaphore.h/linknamespace): Likewise.
31321         (test-xfail-XOPEN2K/signal.h/linknamespace): Likewise.
31322         (test-xfail-XOPEN2K/spawn.h/linknamespace): Likewise.
31323         (test-xfail-XOPEN2K/stdlib.h/linknamespace): Likewise.
31324         (test-xfail-XOPEN2K/sys/mman.h/linknamespace): Likewise.
31325         (test-xfail-XOPEN2K/sys/statvfs.h/linknamespace): Likewise.
31326         (test-xfail-XOPEN2K/sys/wait.h/linknamespace): Likewise.
31327         (test-xfail-XOPEN2K/syslog.h/linknamespace): Likewise.
31328         (test-xfail-XOPEN2K/tgmath.h/linknamespace): Likewise.
31329         (test-xfail-XOPEN2K/time.h/linknamespace): Likewise.
31330         (test-xfail-XOPEN2K/ucontext.h/linknamespace): Likewise.
31331         (test-xfail-XOPEN2K/unistd.h/linknamespace): Likewise.
31332         (test-xfail-XOPEN2K/wordexp.h/linknamespace): Likewise.
31333         (test-xfail-POSIX2008/aio.h/linknamespace): Likewise.
31334         (test-xfail-POSIX2008/complex.h/linknamespace): Likewise.
31335         (test-xfail-POSIX2008/ctype.h/linknamespace): Likewise.
31336         (test-xfail-POSIX2008/dirent.h/linknamespace): Likewise.
31337         (test-xfail-POSIX2008/fcntl.h/linknamespace): Likewise.
31338         (test-xfail-POSIX2008/grp.h/linknamespace): Likewise.
31339         (test-xfail-POSIX2008/math.h/linknamespace): Likewise.
31340         (test-xfail-POSIX2008/mqueue.h/linknamespace): Likewise.
31341         (test-xfail-POSIX2008/net/if.h/linknamespace): Likewise.
31342         (test-xfail-POSIX2008/netdb.h/linknamespace): Likewise.
31343         (test-xfail-POSIX2008/pthread.h/linknamespace): Likewise.
31344         (test-xfail-POSIX2008/regex.h/linknamespace): Likewise.
31345         (test-xfail-POSIX2008/semaphore.h/linknamespace): Likewise.
31346         (test-xfail-POSIX2008/spawn.h/linknamespace): Likewise.
31347         (test-xfail-POSIX2008/sys/mman.h/linknamespace): Likewise.
31348         (test-xfail-POSIX2008/sys/statvfs.h/linknamespace): Likewise.
31349         (test-xfail-POSIX2008/tgmath.h/linknamespace): Likewise.
31350         (test-xfail-POSIX2008/time.h/linknamespace): Likewise.
31351         (test-xfail-POSIX2008/unistd.h/linknamespace): Likewise.
31352         (test-xfail-XOPEN2K8/aio.h/linknamespace): Likewise.
31353         (test-xfail-XOPEN2K8/complex.h/linknamespace): Likewise.
31354         (test-xfail-XOPEN2K8/dirent.h/linknamespace): Likewise.
31355         (test-xfail-XOPEN2K8/fcntl.h/linknamespace): Likewise.
31356         (test-xfail-XOPEN2K8/fmtmsg.h/linknamespace): Likewise.
31357         (test-xfail-XOPEN2K8/grp.h/linknamespace): Likewise.
31358         (test-xfail-XOPEN2K8/libgen.h/linknamespace): Likewise.
31359         (test-xfail-XOPEN2K8/math.h/linknamespace): Likewise.
31360         (test-xfail-XOPEN2K8/mqueue.h/linknamespace): Likewise.
31361         (test-xfail-XOPEN2K8/net/if.h/linknamespace): Likewise.
31362         (test-xfail-XOPEN2K8/netdb.h/linknamespace): Likewise.
31363         (test-xfail-XOPEN2K8/pthread.h/linknamespace): Likewise.
31364         (test-xfail-XOPEN2K8/pwd.h/linknamespace): Likewise.
31365         (test-xfail-XOPEN2K8/regex.h/linknamespace): Likewise.
31366         (test-xfail-XOPEN2K8/search.h/linknamespace): Likewise.
31367         (test-xfail-XOPEN2K8/semaphore.h/linknamespace): Likewise.
31368         (test-xfail-XOPEN2K8/spawn.h/linknamespace): Likewise.
31369         (test-xfail-XOPEN2K8/sys/mman.h/linknamespace): Likewise.
31370         (test-xfail-XOPEN2K8/sys/statvfs.h/linknamespace): Likewise.
31371         (test-xfail-XOPEN2K8/syslog.h/linknamespace): Likewise.
31372         (test-xfail-XOPEN2K8/tgmath.h/linknamespace): Likewise.
31373         (test-xfail-XOPEN2K8/time.h/linknamespace): Likewise.
31374         (test-xfail-XOPEN2K8/unistd.h/linknamespace): Likewise.
31375
31376         [BZ #17589]
31377         * intl/localealias.c [_LIBC] (FGETS): Use __fgets_unlocked instead
31378         of fgets_unlocked.
31379
31380         [BZ #17585]
31381         * string/memmem.c [!_LIBC] (__memmem): Define to memmem.
31382         (memmem): Rename to __memmem and define as weak alias of
31383         __memmem.  Use libc_hidden_weak.
31384         (__memmem): Use libc_hidden_def.
31385         * include/string.h (__memmem): Declare.  Use libc_hidden_proto.
31386         * locale/findlocale.c (valid_locale_name): Use __memmem instead of
31387         memmem.
31388
31389         [BZ #17582]
31390         * libio/iofgets.c [weak_alias && !_IO_MTSAFE_IO]
31391         (__fgets_unlocked): Add alias of _IO_fgets.  Use libc_hidden_def.
31392         * libio/iofgets_u.c (fgets_unlocked): Rename to __fgets_unlocked
31393         and define as weak alias of __fgets_unlocked.  Use
31394         libc_hidden_weak.
31395         (__fgets_unlocked): Use libc_hidden_def.
31396         * include/stdio.h (__fgets_unlocked): Declare.  Use
31397         libc_hidden_proto.
31398         * sysdeps/unix/sysv/linux/getsysstats.c (phys_pages_info): Use
31399         __fgets_unlocked instead of fgets_unlocked.
31400         * sysdeps/unix/sysv/linux/alpha/getsysstats.c
31401         (GET_NPROCS_CONF_PARSER): Likewise.
31402         * sysdeps/unix/sysv/linux/sparc/getsysstats.c
31403         (GET_NPROCS_CONF_PARSER): Likewise.
31404
31405         [BZ #17574]
31406         * wcsmbs/wmemset.c (wmemset): Rename to __wmemset and define as
31407         weak alias of __wmemset.  Use libc_hidden_weak.
31408         (__wmemset): Use libc_hidden_def.
31409         * include/wchar.h (__wmemset): Declare.  Use libc_hidden_proto.
31410         * stdio-common/printf_fp.c (___printf_fp): Call __wmemset instead
31411         of wmemset.
31412
31413         [BZ #17573]
31414         * include/string.h [NOT_IN_libc || !SHARED] (mempcpy): Declare
31415         with asm name __mempcpy.
31416         [NOT_IN_libc || !SHARED] (stpcpy): Declare with asm name __stpcpy.
31417
31418         [BZ #17572]
31419         * sysdeps/x86_64/rawmemchr.S (rawmemchr): Rename to __rawmemchr
31420         and define as weak alias of __rawmemchr.
31421         (__rawmemchr): Do not define as strong alias of rawmemchr.
31422
31423         [BZ #17571]
31424         * stdlib/msort.c (qsort_r): Rename to __qsort_r and define as weak
31425         alias of __qsort_r.
31426         (qsort): Call __qsort_r instead of qsort_r.
31427         * include/stdlib.h (qsort_r): Do not call libc_hidden_proto.
31428         (__qsort_r): Declare.  Call libc_hidden_proto.
31429         * sysdeps/posix/getaddrinfo.c (getaddrinfo): Call __qsort_r
31430         instead of qsort_r.
31431         * nscd/gai.c (__qsort_r): Define to qsort_r.
31432         * posix/tst-rfc3484.c (__qsort_r): Likewise.
31433         * posix/tst-rfc3484-2.c (__qsort_r): Likewise.
31434         * posix/tst-rfc3484-3.c (__qsort_r): Likewise.
31435
31436         [BZ #17570]
31437         * malloc/malloc.c (malloc_info): Rename to __malloc_info and
31438         define as weak alias of __malloc_info.
31439
31440         [BZ #17584]
31441         * dirent/rewinddir.c (rewinddir): Rename to __rewinddir and define
31442         as weak alias of __rewinddir.  Don't use libc_hidden_def.
31443         (__rewinddir): Use libc_hidden_def.
31444         * sysdeps/mach/hurd/rewinddir.c: Rename to __rewinddir and define
31445         as weak alias of __rewinddir.  Don't use libc_hidden_def.
31446         (__rewinddir): Use libc_hidden_def.
31447         * sysdeps/posix/rewinddir.c: Rename to __rewinddir and define as
31448         weak alias of __rewinddir.  Don't use libc_hidden_def.
31449         (__rewinddir): Use libc_hidden_def.
31450         * include/dirent.h (rewinddir): Don't use libc_hidden_proto.
31451         (__rewinddir): Use libc_hidden_proto.
31452         * sysdeps/posix/getcwd.c [!_LIBC] (__rewinddir): Define to
31453         rewinddir.
31454         (__getcwd): Use __rewinddir instead of rewinddir.
31455
31456         [BZ #17583]
31457         * libio/fileno.c (fileno): Rename to __fileno and define as weak
31458         alias of __fileno.  Use libc_hidden_weak.
31459         (__fileno): Use libc_hidden_def.
31460         [weak_alias] (fileno_unlocked): Define as weak alias of __fileno.
31461         * libio/ftello.c (ftello): Rename to __ftello and define as weak
31462         alias of __ftello.
31463         [__OFF_T_MATCHES_OFF64_T] (ftello64): Define as weak alias of
31464         __ftello.
31465         * libio/iofread.c [weak_alias && !_IO_MTSAFE_IO]
31466         (__fread_unlocked): Define as strong alias of _IO_fread.  Use
31467         libc_hidden_def.
31468         (fread_unlocked): Don't use libc_hidden_ver.
31469         * libio/iofread_u.c (fread_unlocked): Rename to __fread_unlocked
31470         and define as weak alias of __fread_unlocked.  Don't use
31471         libc_hidden_def.
31472         (__fread_unlocked): Use libc_hidden_def.
31473         * include/stdio.h (__fileno): Declare.  Use libc_hidden_proto.
31474         (ftello): Don't use libc_hidden_proto.
31475         (__ftello): Declare.  Use libc_hidden_proto.
31476         (fread_unlocked): Don't use libc_hidden_proto.
31477         (__fread_unlocked): Declare.  Use libc_hidden_proto.
31478         * time/tzfile.c (__tzfile_read): Use __fileno, __fread_unlocked
31479         and __ftello instead of fileno, fread_unlocked and ftello.
31480
31481 2012-11-12  Siddhesh Poyarekar  <siddhesh@redhat.com>
31482
31483         * sysdeps/s390/s390-32/bcopy.S (__bcopy): Use GOT instead of
31484         GOT12.
31485         * sysdeps/s390/s390-32/dl-machine.h (elf_machine_load_address):
31486         Likewise.
31487         (_dl_start_user): Likewise.
31488         * sysdeps/s390/s390-32/setjmp.S (__sigsetjmp): Likewise.
31489
31490 2014-11-12  Carlos O'Donell  <carlos@redhat.com>
31491             Siddhesh Poyarekar  <siddhesh@redhat.com>
31492
31493         * sysdeps/s390/s390-32/dl-machine.h (_dl_start_user):
31494         Move argv and envp down instead of moving argc up.
31495         * sysdeps/s390/s390-32/dl-sysdep.h: New file.
31496
31497 2014-11-12  Leonhard Holz  <leonhard.holz@web.de>
31498
31499         [BZ #17506]
31500         * test-skeleton.c (main): Return successful if one of
31501         EXPECTED_SIGNAL or EXPECTED_STATUS is met when both given.
31502         * string/tst-strcoll-overflow.c: Define expected status.
31503
31504 2014-11-12  Tatiana Udalova  <t.udalova@samsung.com>
31505
31506         [BZ #17475]
31507         * locale/iso-639.def: Define Bhili and Tulu language codes.
31508
31509 2014-11-11  Alan Hayward  <alan.hayward@arm.com>
31510
31511         * sysdeps/unix/sysv/linux/aarch64/bits/ipc.h: New file.
31512
31513 2014-11-10  Renlin Li  <Renlin.Li@arm.com>
31514
31515         [BZ #17555]
31516         * sysdeps/aarch64/start.S (_start): Delete x29 overwritten assignment.
31517
31518 2014-11-10  Andrew Senkevich  <andrew.n.senkevich@gmail.com>
31519
31520         * configure.ac: Updated check of minimal required version to
31521         2.22.
31522         * manual/install.texi (Tools for Compilation): Updated version
31523         number.
31524         * configure: Regenerated.
31525         * INSTALL: Likewise.
31526
31527 2014-11-07  Andreas Schwab  <schwab@linux-m68k.org>
31528
31529         * sysdeps/unix/sysv/linux/m68k/localplt.data (ld.so): Remove
31530         __tls_get_addr.
31531
31532 2014-11-07  Joseph Myers  <joseph@codesourcery.com>
31533
31534         * include/sys/wait.h (__libc_waitpid): Remove declaration.
31535         * posix/waitpid.c (__libc_waitpid): Rename to __waitpid.
31536         (__waitpid): Don't define as alias.  Use libc_hidden_def not
31537         libc_hidden_weak.
31538         (waitpid): Define as alias of __waitpid.
31539         * sysdeps/unix/bsd/waitpid.c (__libc_waitpid): Rename to
31540         __waitpid.
31541         (__waitpid): Don't define as alias.  Use libc_hidden_def not
31542         libc_hidden_weak.
31543         (waitpid): Define as alias of __waitpid.
31544         * sysdeps/unix/sysv/linux/i386/syscalls.list (waitpid): Remove
31545         __libc_waitpid alias.
31546         * sysdeps/unix/sysv/linux/m68k/syscalls.list (waitpid): Likewise.
31547         * sysdeps/unix/sysv/linux/powerpc/syscalls.list (waitpid):
31548         Likewise.
31549         * sysdeps/unix/sysv/linux/sh/syscalls.list (waitpid): Likewise.
31550         * sysdeps/unix/sysv/linux/sparc/syscalls.list (waitpid): Likewise.
31551         * sysdeps/unix/sysv/linux/tile/waitpid.S (__libc_waitpid): Remove
31552         alias.
31553         * sysdeps/unix/sysv/linux/waitpid.c (__libc_waitpid): Rename to
31554         __waitpid.
31555         (__waitpid): Don't define as alias.  Use libc_hidden_def not
31556         libc_hidden_weak.
31557         (waitpid): Define as alias of __waitpid.
31558
31559 2014-11-06  Carlos O'Donell  <carlos@redhat.com>
31560
31561         * manual/llio.texi: Add comment that write safety has been
31562         fixed in Linux.
31563
31564         * elf/Makefile (all-built-dso): Add $(common-objpfx)elf/ld.so.
31565         (localplt-build-dso): Add elf/ld.so.
31566         * sysdeps/unix/sysv/linux/i386/localplt.data: Add ___tls_get_addr
31567         i.e. 3 underscore version, __libc_memalign, malloc, calloc, realloc,
31568         and free for ld.so.
31569         * sysdeps/unix/sysv/linux/powerpc/powerpc64/localplt.data: Add
31570         __libc_memalign, malloc, calloc, realloc, and free for ld.so.
31571         * sysdeps/unix/sysv/linux/powerpc/powerpc32/fpu/localplt.data:
31572         Likewise.
31573         * sysdeps/unix/sysv/linux/powerpc/powerpc32/nofpu/localplt.data:
31574         Likewise.
31575         * sysdeps/unix/sysv/linux/s390/localplt.data: Likewise.
31576         * sysdeps/generic/localplt.data: Add __tls_get_addr i.e. 2 underscore
31577         version, __libc_memalign, malloc, calloc, realloc and free for ld.so.
31578         * sysdeps/unix/sysv/linux/aarch64/localplt.data: Likewise.
31579         * sysdeps/unix/sysv/linux/arm/localplt.data: Likewise.
31580         * sysdeps/unix/sysv/linux/alpha/localplt.data: Likewise.
31581         * sysdeps/unix/sysv/linux/ia64/localplt.data: Likewise.
31582         * sysdeps/unix/sysv/linux/m68k/localplt.data: Likewise.
31583         * sysdeps/unix/sysv/linux/microblaze/localplt.data: Likewise.
31584         * sysdeps/unix/sysv/linux/sparc/sparc32/localplt.data: Likewise.
31585         * sysdeps/unix/sysv/linux/sparc/sparc64/localplt.data: Likewise.
31586
31587 2014-11-05  Joseph Myers  <joseph@codesourcery.com>
31588
31589         [BZ #14132]
31590         * include/libc-symbols.h (INTUSE): Remove macro.
31591         (INTDEF): Likewise.
31592         (INTVARDEF): Likewise.
31593         (_INTVARDEF): Likewise.
31594         (INTDEF2): Likewise.
31595         (INTVARDEF2): Likewise.
31596         * elf/rtld.c [!HAVE_INLINED_SYSCALLS] (_dl_starting_up): Use
31597         rtld_hidden_def instead of INTVARDEF.
31598         * sysdeps/generic/ldsodefs.h [IS_IN_rtld]
31599         (_dl_starting_up_internal): Remove declaration.
31600         (_dl_starting_up): Use rtld_hidden_proto.
31601         * elf/dl-init.c [!HAVE_INLINED_SYSCALLS] (_dl_starting_up): Remove
31602         declaration.
31603         [!HAVE_INLINED_SYSCALLS] (_dl_starting_up_internal): Likewise.
31604         (_dl_init) [!HAVE_INLINED_SYSCALLS]: Don't use INTUSE with
31605         _dl_starting_up.
31606         * elf/dl-writev.h (_dl_writev): Likewise.
31607         * sysdeps/powerpc/powerpc64/dl-machine.h [!HAVE_INLINED_SYSCALLS]
31608         (DL_STARTING_UP_DEF): Use __GI__dl_starting_up instead of
31609         _dl_starting_up_internal.
31610
31611 2014-11-05  Adhemerval Zanella  <azanella@linux.vnet.ibm.com>
31612
31613         * stdio-common/tst-fmemopen.c (do_test): Refactor to use
31614         test-skeleton.c.
31615
31616 2014-11-05  Will Newton  <will.newton@linaro.org>
31617
31618         * benchtests/Makefile: (bench-malloc): Add malloc thread
31619         scalability benchmark.
31620         * benchtests/bench-malloc-threads.c: New file.
31621
31622 2014-11-05  Richard Earnshaw  <rearnsha@arm.com>
31623
31624         * sysdeps/aarch64/strchrnul.S: New file.
31625
31626 2014-11-05  Adhemerval Zanella  <azanella@linux.vnet.ibm.com>
31627
31628         * sysdeps/powerpc/powerpc64/power8/memset.S (MTVSRD_V1_R4): Simplify
31629         definition.
31630         * sysdeps/powerpc/powerpc64/power8/fpu/s_finite.S (MFVSRD_R3_V1):
31631         Likwise.
31632         * sysdeps/powerpc/powerpc64/power8/fpu/s_isinf.S (MFVSRD_R3_V1):
31633         Likewise.
31634         * sysdeps/powerpc/powerpc64/power8/fpu/s_isnan.S (MFVSRD_R3_V1):
31635         Likewise.
31636         * sysdeps/powerpc/powerpc64/power8/fpu/s_llrint.S (MFVSRD_R3_V1):
31637         Likewise.
31638         * sysdeps/powerpc/powerpc64/power8/fpu/s_llround.S (MFVSRD_R3_V1):
31639         Likewise.
31640
31641 2014-11-05  Arjun Shankar  <arjun.is@lostca.se>
31642
31643         * catgets/test-gencat.c: Use test-skeleton.c.
31644         * catgets/tst-catgets.c: Likewise.
31645         * csu/tst-empty.c: Likewise.
31646         * elf/tst-audit2.c: Likewise.
31647         * elf/tst-global1.c: Likewise.
31648         * elf/tst-pathopt.c: Likewise.
31649         * elf/tst-piemod1.c: Likewise.
31650         * elf/tst-tls10.c: Likewise.
31651         * elf/tst-tls11.c: Likewise.
31652         * elf/tst-tls12.c: Likewise.
31653         * gnulib/tst-gcc.c: Likewise.
31654         * iconvdata/tst-e2big.c: Likewise.
31655         * iconvdata/tst-loading.c: Likewise.
31656         * iconv/tst-iconv1.c: Likewise.
31657         * iconv/tst-iconv2.c: Likewise.
31658         * inet/test-inet6_opt.c: Likewise.
31659         * inet/tst-gethnm.c: Likewise.
31660         * inet/tst-network.c: Likewise.
31661         * inet/tst-ntoa.c: Likewise.
31662         * intl/tst-codeset.c: Likewise.
31663         * intl/tst-gettext2.c: Likewise.
31664         * intl/tst-gettext3.c: Likewise.
31665         * intl/tst-ngettext.c: Likewise.
31666         * intl/tst-translit.c: Likewise.
31667         * io/test-stat.c: Likewise.
31668         * libio/test-fmemopen.c: Likewise.
31669         * libio/tst-freopen.c: Likewise.
31670         * libio/tst-sscanf.c: Likewise.
31671         * libio/tst-ungetwc1.c: Likewise.
31672         * libio/tst-ungetwc2.c: Likewise.
31673         * libio/tst-widetext.c: Likewise.
31674         * localedata/tst-ctype.c: Likewise.
31675         * localedata/tst-digits.c: Likewise.
31676         * localedata/tst-leaks.c: Likewise.
31677         * localedata/tst-mbswcs1.c: Likewise.
31678         * localedata/tst-mbswcs2.c: Likewise.
31679         * localedata/tst-mbswcs3.c: Likewise.
31680         * localedata/tst-mbswcs4.c: Likewise.
31681         * localedata/tst-mbswcs5.c: Likewise.
31682         * localedata/tst-setlocale.c: Likewise.
31683         * localedata/tst-trans.c: Likewise.
31684         * localedata/tst-wctype.c: Likewise.
31685         * localedata/tst-xlocale1.c: Likewise.
31686         * login/tst-grantpt.c: Likewise.
31687         * malloc/tst-calloc.c: Likewise.
31688         * malloc/tst-malloc.c: Likewise.
31689         * malloc/tst-mallocstate.c: Likewise.
31690         * malloc/tst-mcheck.c: Likewise.
31691         * malloc/tst-mtrace.c: Likewise.
31692         * malloc/tst-obstack.c: Likewise.
31693         * math/atest-exp2.c: Likewise.
31694         * math/atest-exp.c: Likewise.
31695         * math/atest-sincos.c: Likewise.
31696         * math/test-matherr.c: Likewise.
31697         * math/test-misc.c: Likewise.
31698         * math/test-powl.c: Likewise.
31699         * math/tst-definitions.c: Likewise.
31700         * misc/tst-dirname.c: Likewise.
31701         * misc/tst-efgcvt.c: Likewise.
31702         * misc/tst-fdset.c: Likewise.
31703         * misc/tst-hsearch.c: Likewise.
31704         * misc/tst-mntent2.c: Likewise.
31705         * nptl/tst-sem7.c: Likewise.
31706         * nptl/tst-sem8.c: Likewise.
31707         * nptl/tst-sem9.c: Likewise.
31708         * nss/test-netdb.c: Likewise.
31709         * posix/tst-fnmatch.c: Likewise.
31710         * posix/tst-getlogin.c: Likewise.
31711         * posix/tst-gnuglob.c: Likewise.
31712         * posix/tst-mmap.c: Likewise.
31713         * pwd/tst-getpw.c: Likewise.
31714         * resolv/tst-inet_ntop.c: Likewise.
31715         * rt/tst-timer.c: Likewise.
31716         * stdio-common/test-fseek.c: Likewise.
31717         * stdio-common/test-popen.c: Likewise.
31718         * stdio-common/test-vfprintf.c: Likewise.
31719         * stdio-common/tst-cookie.c: Likewise.
31720         * stdio-common/tst-fileno.c: Likewise.
31721         * stdio-common/tst-gets.c: Likewise.
31722         * stdio-common/tst-obprintf.c: Likewise.
31723         * stdio-common/tst-perror.c: Likewise.
31724         * stdio-common/tst-sprintf2.c: Likewise.
31725         * stdio-common/tst-sprintf3.c: Likewise.
31726         * stdio-common/tst-sprintf.c: Likewise.
31727         * stdio-common/tst-swprintf.c: Likewise.
31728         * stdio-common/tst-tmpnam.c: Likewise.
31729         * stdio-common/tst-unbputc.c: Likewise.
31730         * stdio-common/tst-wc-printf.c: Likewise.
31731         * stdlib/tst-environ.c: Likewise.
31732         * stdlib/tst-fmtmsg.c: Likewise.
31733         * stdlib/tst-limits.c: Likewise.
31734         * stdlib/tst-rand48-2.c: Likewise.
31735         * stdlib/tst-rand48.c: Likewise.
31736         * stdlib/tst-random2.c: Likewise.
31737         * stdlib/tst-random.c: Likewise.
31738         * stdlib/tst-strtol.c: Likewise.
31739         * stdlib/tst-strtoll.c: Likewise.
31740         * stdlib/tst-tls-atexit.c: Likewise.
31741         * stdlib/tst-xpg-basename.c: Likewise.
31742         * string/test-ffs.c: Likewise.
31743         * string/tst-bswap.c: Likewise.
31744         * string/tst-inlcall.c: Likewise.
31745         * string/tst-strtok.c: Likewise.
31746         * string/tst-strxfrm.c: Likewise.
31747         * sysdeps/x86_64/tst-audit10.c: Likewise.
31748         * sysdeps/x86_64/tst-audit3.c: Likewise.
31749         * sysdeps/x86_64/tst-audit4.c: Likewise.
31750         * sysdeps/x86_64/tst-audit5.c: Likewise.
31751         * time/tst-ftime_l.c: Likewise.
31752         * time/tst-getdate.c: Likewise.
31753         * time/tst-mktime3.c: Likewise.
31754         * time/tst-mktime.c: Likewise.
31755         * time/tst-posixtz.c: Likewise.
31756         * time/tst-strptime2.c: Likewise.
31757         * time/tst-strptime3.c: Likewise.
31758         * wcsmbs/tst-btowc.c: Likewise.
31759         * wcsmbs/tst-mbrtowc.c: Likewise.
31760         * wcsmbs/tst-mbsrtowcs.c: Likewise.
31761         * wcsmbs/tst-wchar-h.c: Likewise.
31762         * wcsmbs/tst-wcpncpy.c: Likewise.
31763         * wcsmbs/tst-wcrtomb.c: Likewise.
31764         * wcsmbs/tst-wcsnlen.c: Likewise.
31765         * wcsmbs/tst-wcstof.c: Likewise.
31766
31767 2014-11-04  Joseph Myers  <joseph@codesourcery.com>
31768
31769         [BZ #14132]
31770         * elf/dl-profile.c (_dl_mcount): Use rtld_hidden_def instead of
31771         INTDEF.
31772         * sysdeps/generic/ldsodefs.h (_dl_mcount_internal): Remove
31773         declaration.
31774         (_dl_mcount): Use rtld_hidden_proto.
31775         * elf/dl-runtime.c (_dl_profile_fixup): Don't use INTUSE with
31776         _dl_mcount.
31777         * elf/rtld.c (_rtld_global_ro): Likewise.
31778
31779         [BZ #14132]
31780         * elf/dl-init.c (_dl_init): Don't use INTDEF.
31781         * sysdeps/aarch64/dl-machine.h (RTLD_START): Use _dl_init instead
31782         of _dl_init_internal.
31783         * sysdeps/alpha/dl-machine.h (RTLD_START): Likewise.
31784         * sysdeps/arm/dl-machine.h (RTLD_START): Likewise.
31785         * sysdeps/hppa/dl-machine.h (RTLD_START): Likewise.
31786         * sysdeps/i386/dl-machine.h (RTLD_START): Likewise.
31787         * sysdeps/ia64/dl-machine.h (RTLD_START): Likewise.
31788         * sysdeps/m68k/dl-machine.h (RTLD_START): Likewise.
31789         * sysdeps/microblaze/dl-machine.h (RTLD_START): Likewise.
31790         * sysdeps/mips/dl-machine.h (RTLD_START): Likewise.
31791         * sysdeps/powerpc/powerpc32/dl-start.S (_start): Likewise.
31792         * sysdeps/s390/s390-32/dl-machine.h (RTLD_START): Likewise.
31793         * sysdeps/s390/s390-64/dl-machine.h (RTLD_START): Likewise.
31794         * sysdeps/sh/dl-machine.h (RTLD_START): Likewise.
31795         * sysdeps/sparc/sparc32/dl-machine.h (RTLD_START): Likewise.
31796         * sysdeps/sparc/sparc64/dl-machine.h (RTLD_START): Likewise.
31797         * sysdeps/tile/dl-start.S (_start): Likewise.
31798         * sysdeps/x86_64/dl-machine.h (RTLD_START): Likewise.
31799         * sysdeps/x86_64/x32/dl-machine.h (RTLD_START): Likewise.
31800
31801         [BZ #14132]
31802         * sysdeps/generic/ldsodefs.h (_dl_argv): Use rtld_hidden_proto.
31803         [IS_IN_rtld] (_dl_argv_internal): Do not declare.
31804         (rtld_progname): Make macro definition unconditional.
31805         * elf/rtld.c (_dl_argv): Use rtld_hidden_data_def instead of
31806         INTDEF.
31807         (dlmopen_doit): Do not use INTUSE with _dl_argv.
31808         (dl_main): Likewise.
31809         * elf/dl-sysdep.c (_dl_sysdep_start): Likewise.
31810         * sysdeps/alpha/dl-machine.h (RTLD_START): Use __GI__dl_argv
31811         instead of _dl_argv_internal.
31812         * sysdeps/powerpc/powerpc32/dl-start.S (_dl_start_user): Use
31813         __GI__dl_argv instead of INTUSE(_dl_argv).
31814         * sysdeps/powerpc/powerpc64/dl-machine.h (RTLD_START): Use
31815         __GI__dl_argv instead of _dl_argv_internal.
31816
31817         * soft-fp/op-common.h (_FP_TO_INT_ROUND): New macro.
31818         * soft-fp/double.h [_FP_W_TYPE_SIZE < 64] (FP_TO_INT_ROUND_D): New
31819         macro.
31820         [_FP_W_TYPE_SIZE >= 64] (FP_TO_INT_ROUND_D): Likewise.
31821         * soft-fp/extended.h [_FP_W_TYPE_SIZE < 64] (FP_TO_INT_ROUND_E):
31822         New macro.
31823         [_FP_W_TYPE_SIZE >= 64] (FP_TO_INT_ROUND_E): Likewise.
31824         * soft-fp/quad.h [_FP_W_TYPE_SIZE < 64] (FP_TO_INT_ROUND_Q): New
31825         macro.
31826         [_FP_W_TYPE_SIZE >= 64] (FP_TO_INT_ROUND_Q): Likewise.
31827         * soft-fp/single.h (FP_TO_INT_ROUND_S): New macro.
31828
31829 2014-11-04  Andreas Schwab  <schwab@suse.de>
31830
31831         * posix/regex_internal.h: Don't include <locale/elem-hash.h>.
31832
31833 2014-11-03  Adhemerval Zanella  <azanella@linux.vnet.ibm.com>
31834
31835         * sysdeps/powerpc/powerpc64/power8/memset.S (MTVSRD_V1_R4): Encode
31836         mtvsrd instruction in binary form.
31837
31838 2014-11-03  Andreas Schwab  <schwab@suse.de>
31839
31840         [BZ #17522]
31841         * libio/wfileops.c (_IO_wdo_write): If the file buffer has room
31842         for less than MB_LEN_MAX use a local buffer of that size.
31843         * libio/tst-fputws.c: New file.
31844         * libio/Makefile (tests): Add tst-fputws.
31845
31846 2014-11-01  Jose E. Marchesi  <jose.marchesi@oracle.com>
31847
31848         * sysdeps/unix/sysv/linux/sparc/sys/ucontext.h (struct fpu): fix
31849         the size of the fpu_fr.fpu_dregs[] array.
31850
31851 2014-11-01  Joseph Myers  <joseph@codesourcery.com>
31852
31853         * posix/nanosleep.c (__libc_nanosleep): Rename to __nanosleep.
31854         (__nanosleep): Do not define as alias.
31855         (nanosleep): Define as alias of __nanosleep.
31856         * sysdeps/unix/sysv/linux/syscalls.list (nanosleep): Remove
31857         __libc_nanosleep name.
31858
31859 2014-10-31  Joseph Myers  <joseph@codesourcery.com>
31860
31861         * aclocal.m4 (GLIBC_AUTOCONF_VERSION): Mention need to update
31862         install.texi in comment.
31863
31864 2014-10-31  Torvald Riegel  <triegel@redhat.com>
31865
31866         * sysdeps/powerpc/bits/atomic.h (atomic_write_barrier): Remove and...
31867         * sysdeps/powerpc/powerpc32/bits/atomic.h (atomic_write_barrier):
31868         ... add here and use lwsync or sync ...
31869         * sysdeps/powerpc/powerpc64/bits/atomic.h (atomic_write_barrier):
31870         ... and add here using lwsync.
31871
31872 2014-10-31  Matthew Fortune  <matthew.fortune@imgtec.com>
31873
31874         * elf/dl-machine-reject-phdr.h: New file.
31875         * elf/dl-load.c: #include that.
31876         (open_verify): Call elf_machine_reject_phdr_p and ignore the file
31877         if that returned true.
31878
31879 2014-10-31  Roland McGrath  <roland@hack.frob.com>
31880
31881         [BZ #17496]
31882         * Makerules: Move gnu/lib-names.h generation chunk up, to right after
31883         gen-as-const-headers chunk.  Add a big scare comment after the last
31884         safe place to touch before-compile.
31885
31886 2014-10-31  Joseph Myers  <joseph@codesourcery.com>
31887
31888         * manual/install.texi (Tools for Compilation): Update autoconf
31889         version requirements.
31890         * INSTALL: Regenerated.
31891
31892         * misc/pselect.c [!__pselect] (__libc_pselect): Remove alias.
31893         * sysdeps/unix/sysv/linux/pselect.c [__NR_pselect6]
31894         (__libc_pselect): Likewise.
31895
31896         [BZ #14138]
31897         * sysdeps/unix/sysv/linux/powerpc/powerpc64/pread.c: Remove file.
31898         * sysdeps/unix/sysv/linux/powerpc/powerpc64/pread64.c: Likewise.
31899         * sysdeps/unix/sysv/linux/powerpc/powerpc64/pwrite.c: Likewise.
31900         * sysdeps/unix/sysv/linux/powerpc/powerpc64/pwrite64.c: Likewise.
31901
31902 2014-10-31  Torvald Riegel  <triegel@redhat.com>
31903
31904         * sysdeps/sparc/sparc32/bits/atomic.h (atomic_write_barrier): Use
31905         correct barrier instruction.
31906         * sysdeps/sparc/sparc32/sparcv9/bits/atomic.h (atomic_write_barrier):
31907         Likewise.
31908         * sysdeps/sparc/sparc64/bits/atomic.h (atomic_write_barrier):
31909         Likewise.
31910
31911 2014-10-30  Roland McGrath  <roland@hack.frob.com>
31912
31913         * include/ctype.h: Include <ctype/ctype.h> first thing rather than
31914         after defining inlines.  Instead, just use parens to defeat macro
31915         expansion of __isctype in its declaration.
31916
31917 2014-10-30  Joseph Myers  <joseph@codesourcery.com>
31918
31919         * include/sys/uio.h (__libc_readv): Remove declaration.
31920         (__libc_writev): Likewise.
31921         * misc/readv.c (__libc_readv): Rename to __readv.
31922         (__readv): Do not define as alias.
31923         (readv): Define as alias of __readv.
31924         * misc/writev.c (__libc_writev): Rename to __writev.
31925         (__writev): Do not define as alias.
31926         (writev): Define as alias of __writev.
31927         * sysdeps/posix/readv.c (__libc_readv): Rename to __readv.
31928         (__readv): Do not define as alias.
31929         (readv): Define unconditionally as alias of __readv.
31930         * sysdeps/posix/writev.c (__libc_writev): Rename to __writev.
31931         (__writev): Do not define as alias.
31932         (writev): Define unconditionally as alias of __writev.
31933         * sysdeps/unix/syscalls.list (readv): Do not define __libc_readv
31934         name.
31935         (writev): Do not define __libc_writev name.
31936
31937 2014-10-30  Roland McGrath  <roland@hack.frob.com>
31938
31939         * iconv/iconv_charmap.c (add_bytes): Make IN argument pointer to const.
31940         (convert_charseq): New function, broken out of ...
31941         (use_from_charmap): ... here.  Call it.
31942         (use_to_charmap): Use convert_charseq and free instead of duplicating
31943         its code with a variable-length stack struct.
31944
31945 2014-10-30  Joseph Myers  <joseph@codesourcery.com>
31946
31947         * include/fcntl.h (__libc_creat): Remove declaration.
31948         * io/creat.c (__libc_creat): Rename to creat.
31949         (creat): Do not define as alias.
31950         * sysdeps/unix/sysv/linux/alpha/creat.c (creat64): Define as alias
31951         of creat instead of __libc_creat.
31952         * sysdeps/unix/sysv/linux/generic/creat.c (__libc_creat): Rename
31953         to creat.
31954         (creat): Do not define as alias.
31955         [__WORDSIZE == 64] (creat64): Define as alias of creat instead of
31956         __libc_creat.
31957         * sysdeps/unix/sysv/linux/syscalls.list (creat): Do not define
31958         __libc_creat name.
31959         * sysdeps/unix/sysv/linux/wordsize-64/syscalls.list (creat):
31960         Likewise.
31961
31962 2014-10-29  Carlos O'Donell  <carlos@redhat.com>
31963
31964         * manual/llio.texi: Add comments discussing why write() may be
31965         considered MT-unsafe on Linux.
31966
31967 2014-10-28  Carlos O'Donell  <carlos@redhat.com>
31968
31969         * dl-load.c (local_strdup): Remove.
31970         (expand_dynamic_string_token): Use __strdup.
31971         (decompose_rpath): Likewise.
31972         (_dl_map_object): Likewise.
31973
31974 2014-10-28  Joseph Myers  <joseph@codesourcery.com>
31975
31976         [BZ #14132]
31977         * sysdeps/generic/unwind-dw2-fde.c
31978         (__register_frame_info_bases_internal): Do not declare.
31979         (__register_frame_info_table_bases_internal): Likewise.
31980         (__deregister_frame_info_bases_internal): Likewise.
31981         (__register_frame_info_bases): Declare and use hidden_proto before
31982         definition.  Use hidden_def instead of INTDEF.
31983         (__register_frame_info_table_bases): Likewise.
31984         (__deregister_frame_info_bases): Likewise.
31985         (__register_frame_info): Do not use INTUSE.
31986         (__register_frame): Likewise.
31987         (__register_frame_info_table): Likewise.
31988         (__register_frame_table): Likewise.
31989         (__deregister_frame_info): Likewise.
31990         (__deregister_frame): Likewise.
31991
31992 2014-10-27  Gratian Crisan  <gratian.crisan@ni.com>
31993
31994         * sysdeps/unix/sysv/linux/arm/kernel-features.h
31995         [__LINUX_KERNEL_VERSION >= 0x030E03] (__ASSUME_FUTEX_LOCK_PI): Do
31996         not undefine.
31997         [__LINUX_KERNEL_VERSION >= 0x030E03] (__ASSUME_REQUEUE_PI):
31998         Likewise.
31999         [__LINUX_KERNEL_VERSION >= 0x030E03] (__ASSUME_SET_ROBUST_LIST):
32000         Likewise.
32001
32002 2014-10-27  Joseph Myers  <joseph@codesourcery.com>
32003
32004         [BZ #14138]
32005         * sysdeps/unix/sysv/linux/arm/setfsgid.c: Remove file.
32006         * sysdeps/unix/sysv/linux/arm/setfsuid.c: Likewise.
32007         * sysdeps/unix/sysv/linux/i386/setfsgid.c: Likewise.
32008         * sysdeps/unix/sysv/linux/i386/setfsuid.c: Likewise.
32009         * sysdeps/unix/sysv/linux/m68k/setfsgid.c: Likewise.
32010         * sysdeps/unix/sysv/linux/m68k/setfsuid.c: Likewise.
32011         * sysdeps/unix/sysv/linux/s390/s390-32/setfsgid.c: Likewise.
32012         * sysdeps/unix/sysv/linux/s390/s390-32/setfsuid.c: Likewise.
32013         * sysdeps/unix/sysv/linux/sh/setfsgid.c: Likewise.
32014         * sysdeps/unix/sysv/linux/sh/setfsuid.c: Likewise.
32015         * sysdeps/unix/sysv/linux/sparc/sparc32/setfsgid.c: Likewise.
32016         * sysdeps/unix/sysv/linux/sparc/sparc32/setfsuid.c: Likewise.
32017         * sysdeps/unix/sysv/linux/arm/syscalls.list (setfsgid): Add
32018         syscall.
32019         (setfsuid): Likewise.
32020         * sysdeps/unix/sysv/linux/i386/syscalls.list (setfsgid): Likewise.
32021         (setfsuid): Likewise.
32022         * sysdeps/unix/sysv/linux/m68k/syscalls.list (setfsgid): Likewise.
32023         (setfsuid): Likewise.
32024         * sysdeps/unix/sysv/linux/s390/s390-32/syscalls.list (setfsgid):
32025         Likewise.
32026         (setfsuid): Likewise.
32027         * sysdeps/unix/sysv/linux/sh/syscalls.list (setfsgid): Likewise.
32028         (setfsuid): Likewise.
32029         * sysdeps/unix/sysv/linux/sparc/sparc32/syscalls.list (setfsgid):
32030         Likewise.
32031         (setfsuid): Likewise.
32032
32033 2014-10-27  Andreas Schwab  <schwab@suse.de>
32034
32035         [BZ #17501]
32036         * sysdeps/i386/i686/multiarch/strcasecmp.S (__strcasecmp): Fix
32037         check for Slow_SSE4_2 feature bit.
32038         * sysdeps/i386/i686/multiarch/strcmp.S (STRCMP): Likewise.
32039         * sysdeps/i386/i686/multiarch/strncase.S (__strncasecmp): Likewise.
32040         * sysdeps/x86_64/multiarch/strcmp.S (STRCMP, __strcascmp):
32041         Likewise.  Fix check for Fast_Unaligned_Load feature bit.
32042
32043 2014-10-24  Roland McGrath  <roland@hack.frob.com>
32044
32045         * configure.ac: Validate compiler version with a empirical test of
32046         __GNUC__ and __GNUC_MINOR__ predefined values, rather than by grepping
32047         $CC -v output.
32048         * configure: Regenerated.
32049
32050         * inet/htons.c (htons): Prototypify.
32051         * inet/htonl.c (htonl): Likewise.
32052
32053 2014-10-24  Wilco Dijkstra  <wdijkstr@arm.com>
32054
32055         * string/strncat.c (strncat): Improve performance by using strlen.
32056
32057 2014-10-24  Wilco Dijkstra  <wdijkstr@arm.com>
32058
32059         * string/strcat.c (strcat): Improve performance by using strlen/strcpy.
32060
32061 2014-10-24  Wilco Dijkstra  <wdijkstr@arm.com>
32062
32063         * sysdeps/aarch64/fpu/fgetexcptflg.c (fegetexceptflag):
32064         Call libc_fetestexcept_aarch64.
32065
32066 2014-10-24  Wilco Dijkstra  <wdijkstr@arm.com>
32067
32068         * sysdeps/aarch64/fpu/feholdexcpt.c (feholdexcept):
32069         Call libc_feholdexcept_aarch64.
32070
32071 2014-10-24  Wilco Dijkstra  <wdijkstr@arm.com>
32072
32073         * sysdeps/aarch64/fpu/fegetround.c (fegetround):
32074         Call get_rounding_mode.
32075
32076 2014-10-24  Wilco Dijkstra  <wdijkstr@arm.com>
32077
32078         * sysdeps/aarch64/fpu/feenablxcpt.c (feenableexcept):
32079         Simplify logic.
32080
32081 2014-10-24  Wilco Dijkstra  <wdijkstr@arm.com>
32082
32083         * sysdeps/aarch64/fpu/fedisblxcpt.c (fedisableexcept):
32084         Simplify logic.
32085
32086 2014-10-24  Joseph Myers  <joseph@codesourcery.com>
32087
32088         [BZ #14138]
32089         * sysdeps/unix/sysv/linux/arm/getegid.c: Remove file.
32090         * sysdeps/unix/sysv/linux/arm/geteuid.c: Likewise.
32091         * sysdeps/unix/sysv/linux/arm/getgid.c: Likewise.
32092         * sysdeps/unix/sysv/linux/arm/getgroups.c: Likewise.
32093         * sysdeps/unix/sysv/linux/arm/getresgid.c: Likewise.
32094         * sysdeps/unix/sysv/linux/arm/getresuid.c: Likewise.
32095         * sysdeps/unix/sysv/linux/arm/getuid.c: Likewise.
32096         * sysdeps/unix/sysv/linux/i386/getegid.c: Likewise.
32097         * sysdeps/unix/sysv/linux/i386/geteuid.c: Likewise.
32098         * sysdeps/unix/sysv/linux/i386/getgid.c: Likewise.
32099         * sysdeps/unix/sysv/linux/i386/getgroups.c: Likewise.
32100         * sysdeps/unix/sysv/linux/i386/getresgid.c: Likewise.
32101         * sysdeps/unix/sysv/linux/i386/getresuid.c: Likewise.
32102         * sysdeps/unix/sysv/linux/i386/getuid.c: Likewise.
32103         * sysdeps/unix/sysv/linux/m68k/getegid.c: Likewise.
32104         * sysdeps/unix/sysv/linux/m68k/geteuid.c: Likewise.
32105         * sysdeps/unix/sysv/linux/m68k/getgid.c: Likewise.
32106         * sysdeps/unix/sysv/linux/m68k/getgroups.c: Likewise.
32107         * sysdeps/unix/sysv/linux/m68k/getresgid.c: Likewise.
32108         * sysdeps/unix/sysv/linux/m68k/getresuid.c: Likewise.
32109         * sysdeps/unix/sysv/linux/m68k/getuid.c: Likewise.
32110         * sysdeps/unix/sysv/linux/s390/s390-32/getegid.c: Likewise.
32111         * sysdeps/unix/sysv/linux/s390/s390-32/geteuid.c: Likewise.
32112         * sysdeps/unix/sysv/linux/s390/s390-32/getgid.c: Likewise.
32113         * sysdeps/unix/sysv/linux/s390/s390-32/getgroups.c: Likewise.
32114         * sysdeps/unix/sysv/linux/s390/s390-32/getresgid.c: Likewise.
32115         * sysdeps/unix/sysv/linux/s390/s390-32/getresuid.c: Likewise.
32116         * sysdeps/unix/sysv/linux/s390/s390-32/getuid.c: Likewise.
32117         * sysdeps/unix/sysv/linux/sh/getegid.c: Likewise.
32118         * sysdeps/unix/sysv/linux/sh/geteuid.c: Likewise.
32119         * sysdeps/unix/sysv/linux/sh/getgid.c: Likewise.
32120         * sysdeps/unix/sysv/linux/sh/getgroups.c: Likewise.
32121         * sysdeps/unix/sysv/linux/sh/getresgid.c: Likewise.
32122         * sysdeps/unix/sysv/linux/sh/getresuid.c: Likewise.
32123         * sysdeps/unix/sysv/linux/sh/getuid.c: Likewise.
32124         * sysdeps/unix/sysv/linux/sparc/sparc32/getegid.c: Likewise.
32125         * sysdeps/unix/sysv/linux/sparc/sparc32/geteuid.c: Likewise.
32126         * sysdeps/unix/sysv/linux/sparc/sparc32/getgid.c: Likewise.
32127         * sysdeps/unix/sysv/linux/sparc/sparc32/getgroups.c: Likewise.
32128         * sysdeps/unix/sysv/linux/sparc/sparc32/getuid.c: Likewise.
32129         * sysdeps/unix/sysv/linux/arm/syscalls.list (getegid): Add
32130         syscall.
32131         (geteuid): Likewise.
32132         (getgid): Likewise.
32133         (getuid): Likewise.
32134         (getresgid): Likewise.
32135         (getresuid): Likewise.
32136         (getgroups): Likewise.
32137         * sysdeps/unix/sysv/linux/i386/syscalls.list (getegid): Likewise.
32138         (geteuid): Likewise.
32139         (getgid): Likewise.
32140         (getuid): Likewise.
32141         (getresgid): Likewise.
32142         (getresuid): Likewise.
32143         (getgroups): Likewise.
32144         * sysdeps/unix/sysv/linux/m68k/syscalls.list (getegid): Likewise.
32145         (geteuid): Likewise.
32146         (getgid): Likewise.
32147         (getuid): Likewise.
32148         (getresgid): Likewise.
32149         (getresuid): Likewise.
32150         (getgroups): Likewise.
32151         * sysdeps/unix/sysv/linux/s390/s390-32/syscalls.list (getegid):
32152         Likewise.
32153         (geteuid): Likewise.
32154         (getgid): Likewise.
32155         (getuid): Likewise.
32156         (getresgid): Likewise.
32157         (getresuid): Likewise.
32158         (getgroups): Likewise.
32159         * sysdeps/unix/sysv/linux/sh/syscalls.list (getegid): Likewise.
32160         (geteuid): Likewise.
32161         (getgid): Likewise.
32162         (getuid): Likewise.
32163         (getresgid): Likewise.
32164         (getresuid): Likewise.
32165         (getgroups): Likewise.
32166         * sysdeps/unix/sysv/linux/sparc/sparc32/syscalls.list (getegid):
32167         Likewise.
32168         (geteuid): Likewise.
32169         (getgid): Likewise.
32170         (getuid): Likewise.
32171         (getgroups): Likewise.
32172
32173         [BZ #14138]
32174         * sysdeps/unix/sysv/linux/i386/chown.c: Remove file.
32175         * sysdeps/unix/sysv/linux/i386/fchown.c: Likewise.
32176         * sysdeps/unix/sysv/linux/i386/lchown.c: Likewise.
32177         * sysdeps/unix/sysv/linux/s390/s390-32/chown.c: Likewise.
32178         * sysdeps/unix/sysv/linux/s390/s390-32/fchown.c: Remove file.
32179         * sysdeps/unix/sysv/linux/s390/s390-32/lchown.c: Likewise.
32180         * sysdeps/unix/sysv/linux/sh/chown.c: Likewise.
32181         * sysdeps/unix/sysv/linux/sh/fchown.c: Likewise.
32182         * sysdeps/unix/sysv/linux/sh/lchown.c: Likewise.
32183         * sysdeps/unix/sysv/linux/sparc/sparc32/chown.c: Likewise.
32184         * sysdeps/unix/sysv/linux/sparc/sparc32/fchown.c: Likewise.
32185         * sysdeps/unix/sysv/linux/sparc/sparc32/lchown.c: Likewise.
32186         * sysdeps/unix/sysv/linux/s390/s390-32/Versions (GLIBC_2.1): Add
32187         __chown.
32188         * sysdeps/unix/sysv/linux/i386/syscalls.list (chown): Add syscall.
32189         (lchown): Likewise.
32190         (fchown): Likewise.
32191         * sysdeps/unix/sysv/linux/s390/s390-32/syscalls.list (chown):
32192         Likewise.
32193         (lchown): Likewise.
32194         (fchown): Likewise.
32195         * sysdeps/unix/sysv/linux/sh/syscalls.list (chown): Likewise.
32196         (lchown): Likewise.
32197         (fchown): Likewise.
32198         * sysdeps/unix/sysv/linux/sparc/sparc32/syscalls.list (chown):
32199         Likewise.
32200         (lchown): Likewise.
32201         (fchown): Likewise.
32202
32203 2014-10-23  Wilco Dijkstra  <wdijkstr@arm.com>
32204
32205         * sysdeps/aarch64/fpu/fclrexcpt.c (feclearexcept):
32206         Simplify logic.
32207
32208 2014-10-23  Wilco Dijkstra  <wdijkstr@arm.com>
32209
32210         * sysdeps/aarch64/fpu/fsetexcptflg.c (fsetexceptflag):
32211         Cleanup logic.
32212
32213 2014-10-23  Wilco Dijkstra  <wdijkstr@arm.com>
32214
32215         * sysdeps/aarch64/fpu/fsetexcptflg.c (fsetexceptflag):
32216         Remove unused include.
32217
32218 2014-10-23  Wilco Dijkstra  <wdijkstr@arm.com>
32219
32220         * sysdeps/aarch64/fpu/feholdexcpt.c (feholdexcept): Remove spaces.
32221         * sysdeps/aarch64/fpu/fesetenv.c (fesetenv): Remove spaces.
32222         * sysdeps/aarch64/fpu/fesetround.c (fesetround): Remove spaces.
32223         * sysdeps/aarch64/fpu/fraiseexcpt.c (feraiseexcept): Remove spaces.
32224
32225 2014-10-23  Carlos O'Donell  <carlos@systemhalted.org>
32226             Helge Deller <deller@gmx.de>
32227
32228         [BZ #17508]
32229         * sysdeps/unix/sysv/linux/hppa/bits/signum.h: Remove SIGEMT.
32230         Define SIGSTKFLT as 7. Define SIGSYS as 31. Define SIGXCPU as 12.
32231         Remove SIGLOST. Define SIGXFSZ as 30. Define __SIGRTMIN as 32.
32232
32233 2014-10-23  Joseph Myers  <joseph@codesourcery.com>
32234
32235         [BZ #14132]
32236         * sysdeps/powerpc/powerpc32/libgcc-compat.S (__ashldi3_v_glibc20):
32237         Remove macro definition.
32238         (__ashrdi3_v_glibc20): Likewise.
32239         (__lshrdi3_v_glibc20): Likewise.
32240         (__cmpdi2_v_glibc20): Likewise.
32241         (__ucmpdi2_v_glibc20): Likewise.
32242         [!_SOFT_FLOAT && !__NO_FPRS__] (__fixdfdi_v_glibc20): Likewise.
32243         [!_SOFT_FLOAT && !__NO_FPRS__] (__fixsfdi_v_glibc20): Likewise.
32244         [!_SOFT_FLOAT && !__NO_FPRS__] (__fixunsdfdi_v_glibc20): Likewise.
32245         [!_SOFT_FLOAT && !__NO_FPRS__] (__fixunssfdi_v_glibc20): Likewise.
32246         [!_SOFT_FLOAT && !__NO_FPRS__] (__floatdidf_v_glibc20): Likewise.
32247         [!_SOFT_FLOAT && !__NO_FPRS__] (__floatdisf_v_glibc20): Likewise.
32248
32249 2014-10-22  Roland McGrath  <roland@hack.frob.com>
32250
32251         * inet/netgroup.h (struct name_list): Use C99 [] syntax rather than
32252         old GNU extension [0] syntax.
32253         * nscd/nscd_helper.c (open_socket): Use a flexible array member and
32254         alloca rather than an array member with variable length.
32255         * nscd/netgroupcache.c (addgetnetgrentX): Likewise.
32256         * nscd/nscd.c (invalidate_db): New function, broken out of ...
32257         (parse_opt): ... here.  Likewise use alloca there.
32258         Validate the -i argument before checking for rootness.
32259         (send_shutdown): New function, broken out of ...
32260         (parse_opt): ... here.
32261
32262 2014-10-22  Roland McGrath  <roland@hack.frob.com>
32263
32264         * sysdeps/arm/__longjmp.S [NEED_HWCAP] [IS_IN_rtld]: Use LDST_PCREL
32265         macro to get at the _rt_local_ro field.
32266         [NEED_HWCAP] [!IS_IN_rtld]: Use LDR_GLOBAL to get at _rtld_global_ro
32267         ([PIC] case) or _dl_hwcap ([!PIC] case).
32268         * sysdeps/arm/setjmp.S: Likewise.
32269
32270         * config.h.in (ARM_PCREL_MOVW_OK): New macro.
32271         * sysdeps/arm/configure.ac: New check to define it.
32272         * sysdeps/arm/configure: Regenerated.
32273         * sysdeps/arm/sysdep.h [__ASSEMBLER__]: Include <arm-features.h>.
32274         (LDST_INDEXED_NOINDEX, LDST_INDEXED_INDEX): New macros.
32275         (LDST_INDEXED, LDST_PC_INDEXED): New macros, differing definitions
32276         depending on [ARM_NO_INDEX_REGISTER] and [__thumb2__].
32277         (LDST_PCREL) [!__thumb2__ && ARCH_HAS_T2 && ARM_PCREL_MOVW_OK]:
32278         Use move/movt pair instead of a load.
32279         (LDST_GLOBAL): Macro removed.
32280         (LDR_GLOBAL): New macro replaces it.
32281         (LDR_HIDDEN): New macro.
32282         (PTR_MANGLE_LOAD): Use LDR_GLOBAL rather than LDST_GLOBAL.
32283         Use LDR_HIDDEN instead for __pointer_chk_guard_local.
32284
32285         * setjmp/tst-setjmp-static.c: New file.
32286         * setjmp/Makefile (tests): Add it.
32287         (tests-static): New variable.
32288
32289 2014-10-22  Maciej W. Rozycki  <macro@codesourcery.com>
32290
32291         [BZ #17485]
32292         * sysdeps/unix/sysv/linux/mips/vfork.S (__libc_vfork): Define.
32293
32294 2014-10-21  Joseph Myers  <joseph@codesourcery.com>
32295
32296         [BZ #14132]
32297         * math/s_ldexpf.c (__ldexpf): Do not use INTDEF.
32298
32299 2014-10-21  Roland McGrath  <roland@hack.frob.com>
32300
32301         * nptl/version.c (__nptl_main): Call __libc_write, not __write.
32302
32303 2014-10-20  Roland McGrath  <roland@hack.frob.com>
32304
32305         * io/fts.c (dirent_not_directory): New function.
32306         (fts_build): Call it.
32307
32308 2014-10-20  Roland McGrath  <roland@hack.frob.com>
32309
32310         * nptl/version.c (__nptl_main): Use normal __write rather than
32311         INTERNAL_SYSCALL.
32312         (banner): Update copyright years.
32313
32314         * nptl/pthread_rwlock_timedrdlock.c: #include <sys/time.h> before using
32315         gettimeofday.
32316         * nptl/pthread_rwlock_timedwrlock.c: Likewise.
32317         * nptl/pthread_cond_timedwait.c: Likewise.
32318         * nptl/pthread_mutex_timedlock.c: Likewise.
32319         * nptl/sem_timedwait.c: Likewise.
32320
32321         * sysdeps/nptl/bits/libc-lock.h
32322         [_LIBC && (!NOT_IN_libc || IS_IN_libpthread)]
32323         (__libc_lock_init_recursive): Return void, not 0.
32324         * sysdeps/nptl/bits/libc-lockP.h (__libc_lock_init): Likewise.
32325         (__libc_rwlock_init): Likewise.
32326         * sysdeps/nptl/bits/stdio-lock.h (_IO_lock_init): Likewise.
32327
32328 2014-10-20  Torvald Riegel  <triegel@redhat.com>
32329
32330         [BZ #15215]
32331         * nptl/pthread_once.c (__pthread_once): Split out fast path to ...
32332         (__pthread_once_slow): ... here.
32333         * sysdeps/unix/sysv/linux/i386/pthread_once.S: Remove file.
32334         * sysdeps/unix/sysv/linux/x86_64/pthread_once.S: Remove file.
32335
32336 2014-10-20  Torvald Riegel  <triegel@redhat.com>
32337
32338         [BZ #15215]
32339         * nptl/pthreadP.h (__PTHREAD_ONCE_INPROGRESS, __PTHREAD_ONCE_DONE,
32340         __PTHREAD_ONCE_FORK_GEN_INCR): New.
32341         * sysdeps/nptl/fork.c (__libc_fork): Use them.
32342         * nptl/pthread_once.c (__pthread_once): Likewise.
32343         Update comments.
32344
32345 2014-10-20  Joseph Myers  <joseph@codesourcery.com>
32346
32347         [BZ #14138]
32348         * sysdeps/unix/syscalls.list (readv): Use __libc_readv as strong
32349         name.
32350         (writev): Use __libc_writev as strong name.
32351         * sysdeps/unix/sysv/linux/readv.c: Remove file.
32352         * sysdeps/unix/sysv/linux/writev.c: Likewise.
32353
32354 2014-10-17  Roland McGrath  <roland@hack.frob.com>
32355
32356         * nptl/createthread.c (TLS_DEFINE_INIT_TP, TLS_VALUE): Macros removed.
32357
32358         * sysdeps/i386/nptl/tls.h
32359         (THREAD_SELF_SYSINFO, THREAD_SYSINFO): Macros removed.
32360         [NEED_DL_SYSINFO] (SETUP_THREAD_SYSINFO, CHECK_THREAD_SYSINFO):
32361         New macros.
32362         * sysdeps/ia64/nptl/tls.h [NEED_DL_SYSINFO]
32363         (SETUP_THREAD_SYSINFO, CHECK_THREAD_SYSINFO): New macros.
32364         * nptl/allocatestack.c (allocate_stack) [NEED_DL_SYSINFO]:
32365         Call SETUP_THREAD_SYSINFO instead of doing an assignment.
32366         * nptl/createthread.c (create_thread) [NEED_DL_SYSINFO]:
32367         Call CHECK_THREAD_SYSINFO instead of doing an assert.
32368
32369         * nptl/nptl-init.c (__pthread_initialize_minimal_internal):
32370         Conditionalize FUTEX_PRIVATE_FLAG and FUTEX_CLOCK_REALTIME probes
32371         on [__NR_futex].
32372         * nptl/pthread_mutex_init.c (prio_inherit_missing): New function,
32373         broken out of ...
32374         (__pthread_mutex_init): ... here.  Call it.
32375         * nptl/pthread_mutex_lock.c (__pthread_mutex_lock_full):
32376         Conditionalize PI cases on [__NR_futex].
32377         * nptl/pthread_mutex_timedlock.c (pthread_mutex_timedlock): Likewise.
32378         * nptl/pthread_mutex_trylock.c (__pthread_mutex_trylock): Likewise.
32379         * nptl/pthread_mutex_unlock.c (__pthread_mutex_unlock_full): Likewise.
32380
32381         * nptl/nptl-init.c (sighandler_setxid, __xidcmd): Make definitions
32382         conditional on [SIGSETXID].
32383         (sigcancel_handler): Make definition conditional on [SIGCANCEL].
32384         (__pthread_initialize_minimal_internal): Set up SIGCANCEL only if it
32385         is defined.  Likewise for SIGSETXID.
32386         * nptl/allocatestack.c (setxid_mark_thread, setxid_unmark_thread):
32387         Conditionalize definitions on [SIGSETXID].
32388         (setxid_signal_thread, __nptl_setxid_error, __nptl_setxid): Likewise.
32389         * nptl/pthread_create.c (start_thread): Conditionalize SIGCANCEL
32390         unblocking on [SIGCANCEL].
32391
32392         * nptl/nptl-init.c (__nptl_set_robust): Conditionalize body on
32393         [__NR_set_robust_list].
32394
32395 2014-10-17  Siddhesh Poyarekar  <siddhesh@redhat.com>
32396
32397         * string/strcoll_l.c (get_next_seq): Fix up formatting.
32398         (do_compare): Likewise.
32399
32400 2014-10-17  Leonhard Holz  <leonhard.holz@web.de>
32401
32402         [BZ #15884]
32403         * string/strcoll_l.c: Don't include stdio.h.
32404         (coll_seq): Remove members idxarr and rulearr.
32405         (get_next_seq_cached): Remove function.
32406         (get_next_seq): Likewise.
32407         (get_next_seq_nocache): Rename to get_next_seq.
32408         (do_compare): Remove function.
32409         (do_compare_nocache): Rename to do_compare.
32410         (STRCOLL): Remove weight and rules cache.
32411
32412 2014-10-16  Roland McGrath  <roland@hack.frob.com>
32413
32414         * sysdeps/arm/soft-fp/sfp-machine.h: Filed moved ...
32415         * sysdeps/arm/sfp-machine.h: ... to here.
32416         * sysdeps/arm/Implies: Remove arm/soft-fp.
32417
32418 2014-10-14  Joseph Myers  <joseph@codesourcery.com>
32419
32420         * conform/data/sys/utsname.h-data (*_t): Allow.
32421         * conform/data/sys/wait.h-data [POSIX] (uid_t): Do not define.
32422         [POSIX] (WEXITED): Do not expect constant.
32423         [POSIX] (WSTOPPED): Likewise.
32424         [POSIX] (WNOHANG): Likewise.
32425         [POSIX] (WNOWAIT): Likewise.
32426         [POSIX] (siginfo_t): Do not expect type or elements.
32427         [POSIX] (pid_t): Do not expect type.
32428         [POSIX] (signal.h): Do not allow header.
32429         [POSIX] (sys/resource.h): Likewise.
32430         [POSIX] (si_*): Do not allow pattern.
32431         [POSIX] (W*): Likewise.
32432         [POSIX] (P_*): Likewise.
32433         [POSIX] (BUS_*): Likewise.
32434         [POSIX] (CLD_*): Likewise.
32435         [POSIX] (FPE_*): Likewise.
32436         [POSIX] (ILL_*): Likewise.
32437         [POSIX] (POLL_*): Likewise.
32438         [POSIX] (SEGV_*): Likewise.
32439         [POSIX] (SI_*): Likewise.
32440         [POSIX] (TRAP_*): Likewise.
32441         * conform/Makefile (test-xfail-POSIX/sys/wait.h/conform): New
32442         variable.
32443
32444 2014-10-14  Paul Pluzhnikov  <ppluzhnikov@google.com>
32445
32446         [BZ #12926]
32447         * sysdeps/unix/sysv/linux/check_pf.c (make_request): Avoid
32448         infinite loop when __recvmsg returns 0.
32449
32450 2014-10-10  Joseph Myers  <joseph@codesourcery.com>
32451
32452         * CANCEL-FCT-WAIVE: Remove file.
32453         * CANCEL-FILE-WAIVE: Likewise.
32454
32455         [BZ #14132]
32456         * elf/dl-sysdep.c (__libc_enable_secure): Use rtld_hidden_data_def
32457         instead of INTVARDEF.
32458         (_dl_sysdep_start): Do not use INTUSE with __libc_enable_secure.
32459         * sysdeps/mach/hurd/dl-sysdep.c (__libc_enable_secure): Use
32460         rtld_hidden_data_def instead of INTVARDEF.
32461         (_dl_sysdep_start): Do not use INTUSE with __libc_enable_secure.
32462         * elf/dl-deps.c (expand_dst): Likewise.
32463         * elf/dl-load.c (_dl_dst_count): Likewise.
32464         (_dl_dst_substitute): Likewise.
32465         (decompose_rpath): Likewise.
32466         (_dl_init_paths): Likewise.
32467         (open_path): Likewise.
32468         (_dl_map_object): Likewise.
32469         * elf/rtld.c (dl_main): Likewise.
32470         (process_dl_audit): Likewise.
32471         (process_envvars): Likewise.
32472         * include/unistd.h [IS_IN_rtld] (__libc_enable_secure_internal):
32473         Remove declaration.
32474         (__libc_enable_secure): Use rtld_hidden_proto.
32475
32476 2014-10-09  Kostya Serebryany  <konstantin.s.serebryany@gmail.com>
32477
32478         * elf/dl-load.c
32479         (add_path): New function broken out of _dl_rtld_di_serinfo.
32480         (_dl_rtld_di_serinfo): Remove that nested function.  Update call sites.
32481
32482 2014-10-09  Joseph Myers  <joseph@codesourcery.com>
32483
32484         * soft-fp/double.h [_FP_W_TYPE_SIZE < 64] (FP_UNPACK_RAW_D): Use
32485         parentheses around macro arguments.
32486         [_FP_W_TYPE_SIZE < 64] (FP_UNPACK_RAW_DP): Likewise.
32487         [_FP_W_TYPE_SIZE < 64] (FP_PACK_RAW_D): Likewise.
32488         [_FP_W_TYPE_SIZE < 64] (FP_PACK_RAW_DP): Likewise.
32489         [_FP_W_TYPE_SIZE < 64] (FP_UNPACK_D): Likewise.
32490         [_FP_W_TYPE_SIZE < 64] (FP_UNPACK_DP): Likewise.
32491         [_FP_W_TYPE_SIZE < 64] (FP_UNPACK_SEMIRAW_D): Likewise.
32492         [_FP_W_TYPE_SIZE < 64] (FP_UNPACK_SEMIRAW_DP): Likewise.
32493         [_FP_W_TYPE_SIZE < 64] (FP_PACK_D): Likewise.
32494         [_FP_W_TYPE_SIZE < 64] (FP_PACK_DP): Likewise.
32495         [_FP_W_TYPE_SIZE < 64] (FP_PACK_SEMIRAW_D): Likewise.
32496         [_FP_W_TYPE_SIZE < 64] (FP_PACK_SEMIRAW_DP): Likewise.
32497         [_FP_W_TYPE_SIZE < 64] (_FP_SQRT_MEAT_D): Likewise.
32498         [_FP_W_TYPE_SIZE < 64] (FP_CMP_D): Likewise.
32499         [_FP_W_TYPE_SIZE < 64] (FP_CMP_EQ_D): Likewise.
32500         [_FP_W_TYPE_SIZE < 64] (FP_CMP_UNORD_D): Likewise.
32501         [_FP_W_TYPE_SIZE < 64] (FP_TO_INT_D): Likewise.
32502         [_FP_W_TYPE_SIZE < 64] (FP_FROM_INT_D): Likewise.
32503         [_FP_W_TYPE_SIZE >= 64] (FP_UNPACK_RAW_D): Likewise.
32504         [_FP_W_TYPE_SIZE >= 64] (FP_UNPACK_RAW_DP): Likewise.
32505         [_FP_W_TYPE_SIZE >= 64] (FP_PACK_RAW_D): Likewise.
32506         [_FP_W_TYPE_SIZE >= 64] (FP_PACK_RAW_DP): Likewise.
32507         [_FP_W_TYPE_SIZE >= 64] (FP_UNPACK_D): Likewise.
32508         [_FP_W_TYPE_SIZE >= 64] (FP_UNPACK_DP): Likewise.
32509         [_FP_W_TYPE_SIZE >= 64] (FP_UNPACK_SEMIRAW_D): Likewise.
32510         [_FP_W_TYPE_SIZE >= 64] (FP_UNPACK_SEMIRAW_DP): Likewise.
32511         [_FP_W_TYPE_SIZE >= 64] (FP_PACK_D): Likewise.
32512         [_FP_W_TYPE_SIZE >= 64] (FP_PACK_DP): Likewise.
32513         [_FP_W_TYPE_SIZE >= 64] (FP_PACK_SEMIRAW_D): Likewise.
32514         [_FP_W_TYPE_SIZE >= 64] (FP_PACK_SEMIRAW_DP): Likewise.
32515         [_FP_W_TYPE_SIZE >= 64] (_FP_SQRT_MEAT_D): Likewise.
32516         [_FP_W_TYPE_SIZE >= 64] (FP_CMP_D): Likewise.
32517         [_FP_W_TYPE_SIZE >= 64] (FP_CMP_EQ_D): Likewise.
32518         [_FP_W_TYPE_SIZE >= 64] (FP_CMP_UNORD_D): Likewise.
32519         [_FP_W_TYPE_SIZE >= 64] (FP_TO_INT_D): Likewise.
32520         [_FP_W_TYPE_SIZE >= 64] (FP_FROM_INT_D): Likewise.
32521         * soft-fp/extended.h [_FP_W_TYPE_SIZE < 64] (FP_UNPACK_E):
32522         Likewise.
32523         [_FP_W_TYPE_SIZE < 64] (FP_UNPACK_EP): Likewise.
32524         [_FP_W_TYPE_SIZE < 64] (FP_UNPACK_SEMIRAW_E): Likewise.
32525         [_FP_W_TYPE_SIZE < 64] (FP_UNPACK_SEMIRAW_EP): Likewise.
32526         [_FP_W_TYPE_SIZE < 64] (FP_PACK_E): Likewise.
32527         [_FP_W_TYPE_SIZE < 64] (FP_PACK_EP): Likewise.
32528         [_FP_W_TYPE_SIZE < 64] (FP_PACK_SEMIRAW_E): Likewise.
32529         [_FP_W_TYPE_SIZE < 64] (FP_PACK_SEMIRAW_EP): Likewise.
32530         [_FP_W_TYPE_SIZE < 64] (_FP_SQRT_MEAT_E): Likewise.
32531         [_FP_W_TYPE_SIZE < 64] (FP_CMP_E): Likewise.
32532         [_FP_W_TYPE_SIZE < 64] (FP_CMP_EQ_E): Likewise.
32533         [_FP_W_TYPE_SIZE < 64] (FP_CMP_UNORD_E): Likewise.
32534         [_FP_W_TYPE_SIZE < 64] (FP_TO_INT_E): Likewise.
32535         [_FP_W_TYPE_SIZE < 64] (FP_FROM_INT_E): Likewise.
32536         [_FP_W_TYPE_SIZE >= 64] (FP_UNPACK_E): Likewise.
32537         [_FP_W_TYPE_SIZE >= 64] (FP_UNPACK_EP): Likewise.
32538         [_FP_W_TYPE_SIZE >= 64] (FP_UNPACK_SEMIRAW_E): Likewise.
32539         [_FP_W_TYPE_SIZE >= 64] (FP_UNPACK_SEMIRAW_EP): Likewise.
32540         [_FP_W_TYPE_SIZE >= 64] (FP_PACK_E): Likewise.
32541         [_FP_W_TYPE_SIZE >= 64] (FP_PACK_EP): Likewise.
32542         [_FP_W_TYPE_SIZE >= 64] (FP_PACK_SEMIRAW_E): Likewise.
32543         [_FP_W_TYPE_SIZE >= 64] (FP_PACK_SEMIRAW_EP): Likewise.
32544         [_FP_W_TYPE_SIZE >= 64] (_FP_SQRT_MEAT_E): Likewise.
32545         [_FP_W_TYPE_SIZE >= 64] (FP_CMP_E): Likewise.
32546         [_FP_W_TYPE_SIZE >= 64] (FP_CMP_EQ_E): Likewise.
32547         [_FP_W_TYPE_SIZE >= 64] (FP_CMP_UNORD_E): Likewise.
32548         [_FP_W_TYPE_SIZE >= 64] (FP_TO_INT_E): Likewise.
32549         [_FP_W_TYPE_SIZE >= 64] (FP_FROM_INT_E): Likewise.
32550         * soft-fp/op-1.h (_FP_FRAC_SRST_1): Likewise.
32551         (_FP_FRAC_SRS_1): Likewise.
32552         (_FP_FRAC_CLZ_1): Likewise.
32553         (_FP_MUL_MEAT_1_imm): Likewise.
32554         (_FP_MUL_MEAT_1_wide): Likewise.
32555         (_FP_MUL_MEAT_1_hard): Likewise.
32556         (_FP_SQRT_MEAT_1): Likewise.
32557         (_FP_FRAC_ASSEMBLE_1): Likewise.
32558         (_FP_FRAC_DISASSEMBLE_1): Likewise.
32559         * soft-fp/op-2.h (_FP_FRAC_CLZ_2): Likewise.
32560         (__FP_CLZ_2): Likewise.
32561         (_FP_MUL_MEAT_2_wide): Likewise.
32562         (_FP_MUL_MEAT_2_wide_3mul): Likewise.
32563         (_FP_MUL_MEAT_2_gmp): Likewise.
32564         (_FP_MUL_MEAT_2_120_240_double): Likewise.
32565         (_FP_SQRT_MEAT_2): Likewise.
32566         (_FP_FRAC_ASSEMBLE_2): Likewise.
32567         (_FP_FRAC_DISASSEMBLE_2): Likewise.
32568         * soft-fp/op-4.h (_FP_FRAC_SRS_4): Likewise.
32569         (_FP_FRAC_CLZ_4): Likewise.
32570         (_FP_MUL_MEAT_4_wide): Likewise.
32571         (_FP_MUL_MEAT_4_gmp): Likewise.
32572         (_FP_SQRT_MEAT_4): Likewise.
32573         (_FP_FRAC_ASSEMBLE_4): Likewise.
32574         (_FP_FRAC_DISASSEMBLE_4): Likewise.
32575         * soft-fp/op-common.h (_FP_CMP): Likewise.
32576         (_FP_CMP_EQ): Likewise.
32577         (_FP_CMP_UNORD): Likewise.
32578         (_FP_TO_INT): Likewise.
32579         (_FP_FROM_INT): Likewise.
32580         [!__FP_CLZ] (__FP_CLZ): Likewise.
32581         (_FP_DIV_HELP_imm): Likewise.
32582         * soft-fp/quad.h [_FP_W_TYPE_SIZE < 64] (FP_UNPACK_RAW_Q):
32583         Likewise.
32584         [_FP_W_TYPE_SIZE < 64] (FP_UNPACK_RAW_QP): Likewise.
32585         [_FP_W_TYPE_SIZE < 64] (FP_PACK_RAW_Q): Likewise.
32586         [_FP_W_TYPE_SIZE < 64] (FP_PACK_RAW_QP): Likewise.
32587         [_FP_W_TYPE_SIZE < 64] (FP_UNPACK_Q): Likewise.
32588         [_FP_W_TYPE_SIZE < 64] (FP_UNPACK_QP): Likewise.
32589         [_FP_W_TYPE_SIZE < 64] (FP_UNPACK_SEMIRAW_Q): Likewise.
32590         [_FP_W_TYPE_SIZE < 64] (FP_UNPACK_SEMIRAW_QP): Likewise.
32591         [_FP_W_TYPE_SIZE < 64] (FP_PACK_Q): Likewise.
32592         [_FP_W_TYPE_SIZE < 64] (FP_PACK_QP): Likewise.
32593         [_FP_W_TYPE_SIZE < 64] (FP_PACK_SEMIRAW_Q): Likewise.
32594         [_FP_W_TYPE_SIZE < 64] (FP_PACK_SEMIRAW_QP): Likewise.
32595         [_FP_W_TYPE_SIZE < 64] (_FP_SQRT_MEAT_Q): Likewise.
32596         [_FP_W_TYPE_SIZE < 64] (FP_CMP_Q): Likewise.
32597         [_FP_W_TYPE_SIZE < 64] (FP_CMP_EQ_Q): Likewise.
32598         [_FP_W_TYPE_SIZE < 64] (FP_CMP_UNORD_Q): Likewise.
32599         [_FP_W_TYPE_SIZE < 64] (FP_TO_INT_Q): Likewise.
32600         [_FP_W_TYPE_SIZE < 64] (FP_FROM_INT_Q): Likewise.
32601         [_FP_W_TYPE_SIZE >= 64] (FP_UNPACK_RAW_Q): Likewise.
32602         [_FP_W_TYPE_SIZE >= 64] (FP_UNPACK_RAW_QP): Likewise.
32603         [_FP_W_TYPE_SIZE >= 64] (FP_PACK_RAW_Q): Likewise.
32604         [_FP_W_TYPE_SIZE >= 64] (FP_PACK_RAW_QP): Likewise.
32605         [_FP_W_TYPE_SIZE >= 64] (FP_UNPACK_Q): Likewise.
32606         [_FP_W_TYPE_SIZE >= 64] (FP_UNPACK_QP): Likewise.
32607         [_FP_W_TYPE_SIZE >= 64] (FP_UNPACK_SEMIRAW_Q): Likewise.
32608         [_FP_W_TYPE_SIZE >= 64] (FP_UNPACK_SEMIRAW_QP): Likewise.
32609         [_FP_W_TYPE_SIZE >= 64] (FP_PACK_Q): Likewise.
32610         [_FP_W_TYPE_SIZE >= 64] (FP_PACK_QP): Likewise.
32611         [_FP_W_TYPE_SIZE >= 64] (FP_PACK_SEMIRAW_Q): Likewise.
32612         [_FP_W_TYPE_SIZE >= 64] (FP_PACK_SEMIRAW_QP): Likewise.
32613         [_FP_W_TYPE_SIZE >= 64] (_FP_SQRT_MEAT_Q): Likewise.
32614         [_FP_W_TYPE_SIZE >= 64] (FP_CMP_Q): Likewise.
32615         [_FP_W_TYPE_SIZE >= 64] (FP_CMP_EQ_Q): Likewise.
32616         [_FP_W_TYPE_SIZE >= 64] (FP_CMP_UNORD_Q): Likewise.
32617         [_FP_W_TYPE_SIZE >= 64] (FP_TO_INT_Q): Likewise.
32618         [_FP_W_TYPE_SIZE >= 64] (FP_FROM_INT_Q): Likewise.
32619         * soft-fp/single.h (FP_UNPACK_RAW_S): Likewise.
32620         (FP_UNPACK_RAW_SP): Likewise.
32621         (FP_PACK_RAW_S): Likewise.
32622         (FP_PACK_RAW_SP): Likewise.
32623         (FP_UNPACK_S): Likewise.
32624         (FP_UNPACK_SP): Likewise.
32625         (FP_UNPACK_SEMIRAW_S): Likewise.
32626         (FP_UNPACK_SEMIRAW_SP): Likewise.
32627         (FP_PACK_S): Likewise.
32628         (FP_PACK_SP): Likewise.
32629         (FP_PACK_SEMIRAW_S): Likewise.
32630         (FP_PACK_SEMIRAW_SP): Likewise.
32631         (_FP_SQRT_MEAT_S): Likewise.
32632         (FP_CMP_S): Likewise.
32633         (FP_CMP_EQ_S): Likewise.
32634         (FP_CMP_UNORD_S): Likewise.
32635         (FP_TO_INT_S): Likewise.
32636         (FP_FROM_INT_S): Likewise.
32637
32638         * soft-fp/op-common.h (_FP_TO_INT): Handle rsigned == 2.
32639
32640         * soft-fp/soft-fp.h (FP_EX_INVALID_SNAN): New macro.
32641         (FP_EX_INVALID_IMZ): Likewise.
32642         (FP_EX_INVALID_IMZ_FMA): Likewise.
32643         (FP_EX_INVALID_ISI): Likewise.
32644         (FP_EX_INVALID_ZDZ): Likewise.
32645         (FP_EX_INVALID_IDI): Likewise.
32646         (FP_EX_INVALID_SQRT): Likewise.
32647         (FP_EX_INVALID_CVI): Likewise.
32648         (FP_EX_INVALID_VC): Likewise.
32649         * soft-fp/op-common.h (_FP_UNPACK_CANONICAL): Specify more precise
32650         "invalid" exceptions.
32651         (_FP_CHECK_SIGNAN_SEMIRAW): Likewise.
32652         (_FP_ADD_INTERNAL): Likewise.
32653         (_FP_MUL): Likewise.
32654         (_FP_FMA): Likewise.
32655         (_FP_DIV): Likewise.
32656         (_FP_CMP_CHECK_NAN): Likewise.
32657         (_FP_SQRT): Likewise.
32658         (_FP_TO_INT): Likewise.
32659         (FP_EXTEND): Likewise.
32660
32661 2014-10-09  Allan McRae  <allan@archlinux.org>
32662
32663         * po/fr.po: Update French translation from translation project.
32664
32665 2014-10-09  Joseph Myers  <joseph@codesourcery.com>
32666
32667         [BZ #14132]
32668         * stdlib/cxa_atexit.c (__cxa_atexit): Use libc_hidden_def instead
32669         of INTDEF.
32670         * include/stdlib.h (__cxa_atexit_internal): Remove declaration.
32671         (__cxa_atexit): Use libc_hidden_proto.
32672         [!NOT_IN_libc] (__cxa_atexit): Remove macro definition.
32673
32674         [BZ #14132]
32675         * include/wctype.h [!_ISOMAC] (__iswalpha_l_internal): Remove
32676         declaration.
32677         [!_ISOMAC] (__iswdigit_l_internal): Likewise.
32678         [!_ISOMAC] (__iswspace_l_internal): Likewise.
32679         [!_ISOMAC] (__iswxdigit_l_internal): Likewise.
32680         [!_ISOMAC] (__iswctype_internal): Likewise.
32681         * stdio-common/siglist.c (_sys_siglist_internal): Remove alias.
32682         * sysdeps/unix/syscalls.list (chown): Remove __chown_internal
32683         alias.
32684         (fcntl): Remove __fcntl_internal alias.
32685         * sysdeps/unix/sysv/linux/hppa/syscalls.list (connect): Remove
32686         __connect_internal alias.
32687         * sysdeps/unix/sysv/linux/sparc/sparc64/syscalls.list (connect):
32688         Likewise.
32689
32690         * soft-fp/soft-fp.h (FP_DENORM_ZERO): New macro.
32691         * soft-fp/op-common.h (_FP_UNPACK_CANONICAL): Check
32692         FP_DENORM_ZERO.
32693         (_FP_CHECK_FLUSH_ZERO): New macro.
32694         (_FP_ADD_INTERNAL): Call _FP_CHECK_FLUSH_ZERO.
32695         (_FP_CMP): Likewise.
32696         (_FP_CMP_EQ): Likewise.
32697         (_FP_TO_INT): Do not set inexact for subnormal arguments if
32698         FP_DENORM_ZERO.
32699         (FP_EXTEND): Call _FP_CHECK_FLUSH_ZERO.
32700         (FP_TRUNC): Likewise.
32701
32702         * soft-fp/op-common.h (_FP_TO_INT): Ensure maximum exponent is
32703         treated as invalid conversion, not as normal exponent.
32704
32705         * soft-fp/op-common.h (_FP_CMP_CHECK_NAN): New macro.
32706         (_FP_CMP): Add extra argument EX.  Call _FP_CMP_CHECK_NAN.
32707         (_FP_CMP_EQ): Likewise.
32708         (_FP_CMP_UNORD): Likewise.
32709         * soft-fp/double.h (FP_CMP_D): Add extra argument EX.
32710         (FP_CMP_EQ_D): Likewise.
32711         (FP_CMP_UNORD_D): Likewise.
32712         * soft-fp/extended.h (FP_CMP_E): Likewise.
32713         (FP_CMP_EQ_E): Likewise.
32714         (FP_CMP_UNORD_E): Likewise.
32715         * soft-fp/quad.h (FP_CMP_Q): Likewise.
32716         (FP_CMP_EQ_Q): Likewise.
32717         (FP_CMP_UNORD_Q): Likewise.
32718         * soft-fp/single.h (FP_CMP_S): Likewise.
32719         (FP_CMP_EQ_S): Likewise.
32720         (FP_CMP_UNORD_S): Likewise.
32721         * soft-fp/eqdf2.c (__eqdf2): Update call to FP_CMP_EQ_D.
32722         * soft-fp/eqsf2.c (__eqsf2): Update call to FP_CMP_EQ_S.
32723         * soft-fp/eqtf2.c (__eqtf2): Update call to FP_CMP_EQ_Q.
32724         * soft-fp/gedf2.c (__gedf2): Update call to FP_CMP_D.
32725         * soft-fp/gesf2.c (__gesf2): Update call to FP_CMP_S.
32726         * soft-fp/getf2.c (__getf2): Update call to FP_CMP_Q.
32727         * soft-fp/ledf2.c (__ledf2): Update call to FP_CMP_D.
32728         * soft-fp/lesf2.c (__lesf2): Update call to FP_CMP_S.
32729         * soft-fp/letf2.c (__letf2): Update call to FP_CMP_Q.
32730         * soft-fp/unorddf2.c (__unorddf2): Update call to FP_CMP_UNORD_D.
32731         * soft-fp/unordsf2.c (__unordsf2): Update call to FP_CMP_UNORD_S.
32732         * soft-fp/unordtf2.c (__unordtf2): Update call to FP_CMP_UNORD_Q.
32733         * sysdeps/alpha/soft-fp/ots_cmpe.c (internal_compare): Update call
32734         to FP_CMP_Q.
32735         * sysdeps/sparc/sparc32/soft-fp/q_cmp.c (_Q_cmp): Update call to
32736         FP_CMP_Q.
32737         * sysdeps/sparc/sparc32/soft-fp/q_cmpe.c (_Q_cmpe): Likewise.
32738         * sysdeps/sparc/sparc32/soft-fp/q_feq.c (_Q_feq): Update call to
32739         FP_CMP_EQ_Q.
32740         * sysdeps/sparc/sparc32/soft-fp/q_fge.c (_Q_fge): Update call to
32741         FP_CMP_Q.
32742         * sysdeps/sparc/sparc32/soft-fp/q_fgt.c (_Q_fgt): Likewise.
32743         * sysdeps/sparc/sparc32/soft-fp/q_fle.c (_Q_fle): Likewise.
32744         * sysdeps/sparc/sparc32/soft-fp/q_flt.c (_Q_flt): Likewise.
32745         * sysdeps/sparc/sparc32/soft-fp/q_fne.c (_Q_fne): Update call to
32746         FP_CMP_EQ_Q.
32747         * sysdeps/sparc/sparc64/soft-fp/qp_cmp.c (_Qp_cmp): Update call to
32748         FP_CMP_Q.
32749         * sysdeps/sparc/sparc64/soft-fp/qp_cmpe.c (_Qp_cmpe): Likewise.
32750         * sysdeps/sparc/sparc64/soft-fp/qp_feq.c (_Qp_feq): Update call to
32751         FP_CMP_EQ_Q.
32752         * sysdeps/sparc/sparc64/soft-fp/qp_fge.c (_Qp_fge): Update call to
32753         FP_CMP_Q.
32754         * sysdeps/sparc/sparc64/soft-fp/qp_fgt.c (_Qp_fgt): Likewise.
32755         * sysdeps/sparc/sparc64/soft-fp/qp_fle.c (_Qp_fle): Likewise.
32756         * sysdeps/sparc/sparc64/soft-fp/qp_flt.c (_Qp_flt): Likewise.
32757         * sysdeps/sparc/sparc64/soft-fp/qp_fne.c (_Qp_fne): Update call to
32758         FP_CMP_EQ_Q.
32759
32760         * soft-fp/op-common.h (FP_EXTEND): When a subnormal input produces
32761         a subnormal result, set the underflow exception if trapping on
32762         underflow is enabled.
32763         * soft-fp/soft-fp.h (FP_INIT_TRAPPING_EXCEPTIONS): New macro.
32764         (FP_INIT_EXCEPTIONS): Default to FP_INIT_TRAPPING_EXCEPTIONS.
32765         [FP_NO_EXACT_UNDERFLOW] (FP_TRAPPING_EXCEPTIONS): Undefine and
32766         redefine to 0.
32767         * soft-fp/extenddftf2.c (FP_NO_EXACT_UNDERFLOW): Define.
32768         * soft-fp/extendsfdf2.c (FP_NO_EXACT_UNDERFLOW): Likewise.
32769         * soft-fp/extendsftf2.c (FP_NO_EXACT_UNDERFLOW): Likewise.
32770         * soft-fp/extendxftf2.c (__extendxftf2): Use
32771         FP_INIT_TRAPPING_EXCEPTIONS instead of FP_INIT_ROUNDMODE.
32772
32773         * soft-fp/soft-fp.h (FP_CLEAR_EXCEPTIONS): Remove macro.
32774         * sysdeps/sparc/sparc32/soft-fp/q_itoq.c: Define FP_NO_EXCEPTIONS.
32775         (_Q_itoq): Do not use FP_DECL_EX, FP_CLEAR_EXCEPTIONS or
32776         FP_HANDLE_EXCEPTIONS.
32777         * sysdeps/sparc/sparc32/soft-fp/q_lltoq.c: Define FP_NO_EXCEPTIONS.
32778         (_Q_lltoq): Do not use FP_DECL_EX, FP_CLEAR_EXCEPTIONS or
32779         FP_HANDLE_EXCEPTIONS.
32780         * sysdeps/sparc/sparc32/soft-fp/q_ulltoq.c: Define FP_NO_EXCEPTIONS.
32781         (_Q_ulltoq): Do not use FP_DECL_EX, FP_CLEAR_EXCEPTIONS or
32782         FP_HANDLE_EXCEPTIONS.
32783         * sysdeps/sparc/sparc32/soft-fp/q_utoq.c: Define FP_NO_EXCEPTIONS.
32784         (_Q_utoq): Do not use FP_DECL_EX, FP_CLEAR_EXCEPTIONS or
32785         FP_HANDLE_EXCEPTIONS.
32786
32787 2014-10-08  Joseph Myers  <joseph@codesourcery.com>
32788
32789         [BZ #14132]
32790         * sysdeps/unix/sysv/linux/include/sys/timex.h: New file.
32791         * sysdeps/unix/sysv/linux/adjtime.c [!ADJTIMEX] (ADJTIMEX): Do not
32792         use INTUSE.
32793         [!ADJTIMEX] (INTUSE(__adjtimex)): Remove declaration.
32794         * sysdeps/unix/sysv/linux/alpha/adjtime.c (__adjtimex_internal):
32795         Remove alias.
32796         (__adjtimex): Define using libc_hidden_ver.
32797         * sysdeps/unix/sysv/linux/ntp_gettime.c (INTUSE(__adjtimex)):
32798         Remove declaration.
32799         (ntp_gettime): Call __adjtimex directly.
32800         * sysdeps/unix/sysv/linux/ntp_gettimex.c (INTUSE(__adjtimex)):
32801         Remove declaration.
32802         (ntp_gettimex): Call __adjtimex directly.
32803         * sysdeps/unix/sysv/linux/syscalls.list (adjtimex): Remove
32804         __adjtimex_internal alias.
32805
32806 2014-10-08  Roland McGrath  <roland@hack.frob.com>
32807
32808         [BZ #17460]
32809         * nscd/nscd.c (more_help): Rewrite list of tables collection
32810         using xstrdup and asprintf.
32811
32812         * nscd/nscd_conf.c: Remove local xstrdup declaration.
32813
32814 2014-10-08  Kostya Serebryany  <konstantin.s.serebryany@gmail.com>
32815             Roland McGrath  <roland@hack.frob.com>
32816
32817         * elf/dl-lookup.c (enter_unique_sym): New function, broken out of ...
32818         (do_lookup_unique): ... local function 'enter' here; update callers.
32819
32820 2014-10-06  Joseph Myers  <joseph@codesourcery.com>
32821
32822         * sysdeps/unix/make-syscalls.sh (emit_weak_aliases): Condition
32823         compat_symbol calls on [SHARED].
32824         * sysdeps/unix/sysv/linux/powerpc/lchown.S: Remove file.
32825         * sysdeps/unix/sysv/linux/i386/syscalls.list (oldsetrlimit):
32826         Remove.
32827         (setrlimit): Add setrlimit@GLIBC_2.0 alias.
32828         * sysdeps/unix/sysv/linux/m68k/m680x0/syscalls.list
32829         (oldsetrlimit): Remove.
32830         (setrlimit): Add setrlimit@GLIBC_2.0 alias.
32831         * sysdeps/unix/sysv/linux/powerpc/powerpc32/syscalls.list
32832         (lchown): New syscall entry.
32833         (oldsetrlimit): Remove.
32834         (setrlimit): Add setrlimit@GLIBC_2.0 alias.
32835         * sysdeps/unix/sysv/linux/s390/s390-32/syscalls.list
32836         (oldsetrlimit): Remove.
32837         (setrlimit): Add setrlimit@GLIBC_2.0 alias.
32838
32839         [BZ #14138]
32840         * sysdeps/unix/sysv/linux/arm/fchown.c: Remove file.
32841         * sysdeps/unix/sysv/linux/arm/lchown.c: Likewise.
32842         * sysdeps/unix/sysv/linux/m68k/fchown.c: Likewise.
32843         * sysdeps/unix/sysv/linux/m68k/lchown.c: Likewise.
32844         * sysdeps/unix/sysv/linux/powerpc/chown.c: Likewise.
32845         * sysdeps/unix/sysv/linux/arm/syscalls.list (lchown): Add syscall.
32846         (fchown): Likewise.
32847         * sysdeps/unix/sysv/linux/m68k/syscalls.list (lchown): Likewise.
32848         (fchown): Likewise.
32849         * sysdeps/unix/sysv/linux/powerpc/powerpc32/syscalls.list (chown):
32850         Likewise.
32851
32852 2014-10-06  Adhemerval Zanella  <azanella@linux.vnet.ibm.com>
32853
32854         * sysdeps/unix/sysv/linux/powerpc/lowlevellock.h: Remove file.
32855         * sysdeps/unix/sysv/linux/powerpc/pthread_spin_unlock.c
32856         (pthread_spin_unlock): Use __ARCH_REL_INSTR instead of
32857         __lll_rel_instr and __ARCH_ACQ_INSTR instead of __lll_acq_instr.
32858         * sysdeps/unix/sysv/linux/powerpc/sem_post.c (__new_sem_post):
32859         Likewise.
32860         (__old_sem_post): Likewise.
32861
32862 2014-10-06  Chris Metcalf  <cmetcalf@tilera.com>
32863
32864         * sysdeps/unix/sysv/linux/tile/sysdep.h (INLINE_VSYSCALL): Define
32865         INLINE_VSYSCALL, INTERNAL_VSYSCALL, and
32866         HAVE_CLOCK_GETTIME_VSYSCALL macros.
32867         * sysdeps/unix/sysv/linux/tile/gettimeofday.c (__gettimeofday):
32868         Use INLINE_VSYSCALL macro.
32869         * sysdeps/unix/sysv/linux/tile/bits/libc-vdso: Add declaration of
32870         __vdso_clock_gettime.
32871         * sysdeps/unix/sysv/linux/tile/init-first.c
32872         (_libc_vdso_platform_setup): Set new __vdso_clock_gettime global.
32873         * sysdeps/unix/sysv/linux/tile/Versions (GLIBC_PRIVATE): Add
32874         __vdso_clock_gettime.
32875
32876         * sysdeps/unix/sysv/linux/tile/clone.S (__clone): Fix code
32877         to set up frame more cleanly.
32878
32879         * sysdeps/tile/memcmp.c: New file.
32880
32881         * sysdeps/unix/sysv/linux/tile/sysconf.c: New file.
32882
32883         * sysdeps/tile/tilegx/string-endian.h (STRSHIFT): New macro.
32884         * sysdeps/tile/tilegx/strcasestr.c: New file.
32885         * sysdeps/tile/tilegx/strnlen.c: New file.
32886         * sysdeps/tile/tilegx/strstr.c: New file.
32887
32888         * sysdeps/tile/tilegx/string-endian.h (copy_byte): Optimize.
32889
32890 2014-10-06  Arjun Shankar  <arjun.is@lostca.se>
32891
32892         * nptl/tst-setuid3.c: Write errors to stdout.
32893
32894 2014-10-01  Kostya Serebryany  <konstantin.s.serebryany@gmail.com>
32895
32896         * elf/dl-deps.c
32897         (preload): New functions broken out of _dl_map_object_deps.
32898         (_dl_map_object_deps):  Remove a nested function. Update call sites.
32899
32900 2014-10-01  Joseph Myers  <joseph@codesourcery.com>
32901
32902         [BZ #14138]
32903         * sysdeps/unix/sysv/linux/execve.c: Remove file.
32904         * sysdeps/unix/sysv/linux/syscalls.list (execve): Add syscall.
32905
32906 2014-10-01  Steve Ellcey  <sellcey@mips.com>
32907
32908         * sysdeps/mips/strcmp.S: New.
32909
32910 2014-09-30  Joseph Myers  <joseph@codesourcery.com>
32911
32912         [BZ #14138]
32913         * sysdeps/unix/sysv/linux/syscalls.list (fchownat): New syscall.
32914         (linkat): Likewise.
32915         (mkdirat): Likewise.
32916         (readlinkat): Likewise.
32917         (renameat): Likewise.
32918         (symlinkat): Likewise.
32919         (unlinkat): Likewise.
32920         * sysdeps/unix/sysv/linux/fchownat.c: Remove file.
32921         * sysdeps/unix/sysv/linux/linkat.c: Likewise.
32922         * sysdeps/unix/sysv/linux/mkdirat.c: Likewise.
32923         * sysdeps/unix/sysv/linux/readlinkat.c: Likewise.
32924         * sysdeps/unix/sysv/linux/renameat.c: Likewise.
32925         * sysdeps/unix/sysv/linux/symlinkat.c: Likewise.
32926         * sysdeps/unix/sysv/linux/unlinkat.c: Likewise.
32927
32928 2014-09-30  Will Newton  <will.newton@linaro.org>
32929
32930         * math/math.h: Define long double math functions if
32931         _LIBC_TEST is defined.
32932         * stdlib/tst-strtod-round.c: Define _LIBC_TEST.
32933
32934         * localedata/Makefile: Move assignment to tests-special
32935         into an ifdef testing run-built-tests.
32936         * timezone/Makefile: Likewise.
32937
32938 2014-09-29  Joseph Myers  <joseph@codesourcery.com>
32939
32940         * sysdeps/x86/Makefile ($(objpfx)tst-ld-sse-use.out): Run script
32941         with $(BASH) not $(SHELL).
32942
32943 2014-09-29  Carlos O'Donell  <carlos@redhat.com>
32944             Matthew LeGendre  <legendre1@llnl.gov>
32945
32946         [BZ #17411]
32947         * elf/dl-reloc.c (_dl_relocate_object): Allocate correct amount for
32948         l_reloc_result.
32949
32950 2014-09-29  Kostya Serebryany  <konstantin.s.serebryany@gmail.com>
32951
32952         * stdio-common/printf_fp.c
32953         (hack_digit): New function, broken out of ...
32954         (__printf_fp): ... local function here.  Update call sites.
32955         hack_digit now takes an additional parameter that is a pointer
32956         to a struct of the referenced locals.  Those locals moved inside
32957         the struct and references updated.
32958
32959 2014-09-29  H.J. Lu  <hongjiu.lu@intel.com>
32960
32961         * aclocal.m4: Require autoconf 2.69.
32962         * configure: Regenerated.
32963         * sysdeps/aarch64/configure: Likewise.
32964         * sysdeps/alpha/configure: Likewise.
32965         * sysdeps/arm/armv7/configure: Likewise.
32966         * sysdeps/arm/configure: Likewise.
32967         * sysdeps/ia64/configure: Likewise.
32968         * sysdeps/mach/configure: Likewise.
32969         * sysdeps/mips/configure: Likewise.
32970         * sysdeps/s390/configure: Likewise.
32971         * sysdeps/unix/sysv/linux/mips/configure: Likewise.
32972         * sysdeps/unix/sysv/linux/powerpc/powerpc64/configure: Likewise.
32973
32974         * sysdeps/alpha/configure.ac: Avoid empty lines at the end of
32975         file.
32976         * sysdeps/ia64/configure.ac: Likewise.
32977
32978 2014-09-26  Joseph Myers  <joseph@codesourcery.com>
32979
32980         * sysdeps/unix/sysv/linux/powerpc/powerpc64/shlib-versions: Do not
32981         specify symbol version for ld.so.  Do not include entry for
32982         libpthread.
32983         * sysdeps/unix/sysv/linux/s390/s390-64/shlib-versions: Likewise.
32984         * sysdeps/unix/sysv/linux/x86_64/64/shlib-versions: Likewise.
32985         * sysdeps/unix/sysv/linux/x86_64/x32/shlib-versions: Likewise.
32986
32987         [BZ #14171]
32988         * Makeconfig [$(build-shared) = yes]
32989         ($(common-objpfx)soversions.mk): Don't handle SONAMEs specified in
32990         makefiles.
32991         [$(build-shared) = yes && $(soversions.mk-done) = t]
32992         ($(common-objpfx)gnu/lib-names.h): Remove rule.
32993         [$(build-shared) = yes && $(soversions.mk-done) = t]
32994         ($(common-objpfx)gnu/lib-names.stmp): Likewise.  Split and moved
32995         to Makerules.
32996         [$(build-shared) = yes && $(soversions.mk-done) = t]
32997         (before-compile): Don't append $(common-objpfx)gnu/lib-names.h
32998         here.
32999         [$(build-shared) = yes && $(soversions.mk-done) = t]
33000         (common-generated): Don't append gnu/lib-names.h and
33001         gnu/lib-names.stmp here.
33002         * Makerules [$(build-shared) = yes && $(soversions.mk-done) = t]
33003         (lib-names-h-abi): New variable.
33004         [$(build-shared) = yes && $(soversions.mk-done) = t]
33005         (lib-names-stmp-abi): Likewise.
33006         [$(build-shared) = yes && $(soversions.mk-done) = t &&
33007         abi-variants] (before-compile): Append
33008         $(common-objpfx)$(lib-names-h-abi).
33009         [$(build-shared) = yes && $(soversions.mk-done) = t &&
33010         abi-variants] (common-generated): Append gnu/lib-names.h.
33011         [$(build-shared) = yes && $(soversions.mk-done) = t &&
33012         abi-variants] (install-others-nosubdir): Depend on
33013         $(inst_includedir)/$(lib-names-h-abi).
33014         [$(build-shared) = yes && $(soversions.mk-done) = t &&
33015         abi-variants] ($(common-objpfx)gnu/lib-names.h): New rule.
33016         [$(build-shared) = yes && $(soversions.mk-done) = t]
33017         ($(common-objpfx)$(lib-names-h-abi)): New rule.
33018         [$(build-shared) = yes && $(soversions.mk-done) = t]
33019         ($(common-objpfx)$(lib-names-stmp-abi)): Likewise.
33020         [$(build-shared) = yes && $(soversions.mk-done) = t]
33021         (common-generated): Append $(lib-names-h-abi) and
33022         $(lib-names-stmp-abi).
33023         * scripts/lib-names.awk: Do not handle multi being set.
33024         * sysdeps/unix/sysv/linux/aarch64/Makefile (abi-lp64-ld-soname):
33025         Remove variable.
33026         (abi-lp64_be-ld-soname): Likewise.
33027         * sysdeps/unix/sysv/linux/arm/Makefile (abi-soft-ld-soname):
33028         Likewise.
33029         (abi-hard-ld-soname): Likewise.
33030         * sysdeps/unix/sysv/linux/i386/shlib-versions: New file.
33031         * sysdeps/unix/sysv/linux/mips/Makefile (abi-o32_soft-ld-soname):
33032         Remove variable.
33033         (abi-o32_hard-ld-soname): Likewise.
33034         (abi-o32_soft_2008-ld-soname): Likewise.
33035         (abi-o32_hard_2008-ld-soname): Likewise.
33036         (abi-n32_soft-ld-soname): Likewise.
33037         (abi-n32_hard-ld-soname): Likewise.
33038         (abi-n32_soft_2008-ld-soname): Likewise.
33039         (abi-n32_hard_2008-ld-soname): Likewise.
33040         (abi-n64_soft-ld-soname): Likewise.
33041         (abi-n64_hard-ld-soname): Likewise.
33042         (abi-n64_soft_2008-ld-soname): Likewise.
33043         (abi-n64_hard_2008-ld-soname): Likewise.
33044         * sysdeps/unix/sysv/linux/powerpc/Makefile (abi-64-v1-ld-soname):
33045         Likewise.
33046         (abi-64-v2-ld-soname): Likewise.
33047         * sysdeps/unix/sysv/linux/powerpc/powerpc64/shlib-versions: Add
33048         ld.so entries.
33049         * sysdeps/unix/sysv/linux/s390/Makefile (abi-64-ld-soname): Remove
33050         variable.
33051         * sysdeps/unix/sysv/linux/s390/s390-64/shlib-versions: Add ld.so
33052         entry.
33053         * sysdeps/unix/sysv/linux/x86/Makefile (abi-32-ld-soname): Remove
33054         variable.
33055         (abi-64-ld-soname): Likewise.
33056         (abi-x32-ld-soname): Likewise.
33057         * sysdeps/unix/sysv/linux/x86_64/64/shlib-versions: Add ld.so
33058         entry.
33059         * sysdeps/unix/sysv/linux/x86_64/x32/shlib-versions: Likewise.
33060
33061 2014-09-23  Joseph Myers  <joseph@codesourcery.com>
33062
33063         [BZ #14138]
33064         * sysdeps/unix/sysv/linux/arm/setrlimit.c: Remove file.
33065         * sysdeps/unix/sysv/linux/i386/setrlimit.c: Likewise.
33066         * sysdeps/unix/sysv/linux/m68k/setrlimit.c: Likewise.
33067         * sysdeps/unix/sysv/linux/powerpc/setrlimit.c: Likewise.
33068         * sysdeps/unix/sysv/linux/s390/s390-32/setrlimit.c: Likewise.
33069         * sysdeps/unix/sysv/linux/sh/setrlimit.c: Likewise.
33070         * sysdeps/unix/sysv/linux/i386/syscalls.list (setrlimit): Add
33071         syscall entry for GLIBC_2.2 symbol version.
33072         * sysdeps/unix/sysv/linux/m68k/m680x0/syscalls.list (setrlimit):
33073         Likewise.
33074         * sysdeps/unix/sysv/linux/powerpc/powerpc32/syscalls.list
33075         (setrlimit): Likewise.
33076         * sysdeps/unix/sysv/linux/s390/s390-32/syscalls.list (setrlimit):
33077         Likewise.
33078
33079 2014-09-23  Will Newton  <will.newton@linaro.org>
33080
33081         * sysdeps/unix/sysv/linux/arm/bits/hwcap.h: Check for
33082         _LINUX_ARM_SYSDEP_H include guard too.
33083         * sysdeps/unix/sysv/linux/arm/sysdep.h (_SYS_AUXV_H): Remove
33084         define.
33085
33086 2014-09-20  Rasmus Villemoes  <rv@rasmusvillemoes.dk>
33087
33088         * sysdeps/unix/sysv/linux/eventfd.c:
33089         Make first argument unsigned.
33090         * sysdeps/unix/sysv/linux/hppa/sys/eventfd.h: Likewise.
33091         * sysdeps/unix/sysv/linux/sys/eventfd.h: Likewise.
33092
33093 2014-09-20  Ondřej Bílka  <neleai@seznam.cz>
33094
33095         [BZ #16852]
33096         * socket/recvmmsg.c (recvmmsg): Drop const argument.
33097         * socket/sys/socket.h: Likewise.
33098         * sysdeps/unix/sysv/linux/recvmmsg.c: Likewise.
33099
33100 2014-09-19  Andreas Krebbel  <Andreas.Krebbel@de.ibm.com>
33101
33102         * stdlib/longlong.h: Add __udiv_w_sdiv prototype.
33103
33104 2014-09-17  Arjun Shankar  <arjun.is@lostca.se>
33105
33106         * time/tst-ftime.c: New test.
33107         * time/Makefile (tests): Add tst-ftime.
33108
33109 2014-09-17  Joseph Myers  <joseph@codesourcery.com>
33110
33111         * soft-fp/extended.h: Fix comment formatting.
33112         * soft-fp/op-1.h: Likewise.
33113         * soft-fp/op-2.h: Likewise.
33114         * soft-fp/op-4.h: Likewise.
33115         * soft-fp/op-8.h: Likewise.
33116         * soft-fp/op-common.h: Likewise.
33117         * soft-fp/soft-fp.h: Likewise.
33118
33119         * soft-fp/op-common.h (_FP_TO_INT): Correct formatting.
33120
33121 2014-09-16  Joseph Myers  <joseph@codesourcery.com>
33122
33123         [BZ #6652]
33124         * Makeconfig (soversions-default-setname): Remove variable.
33125         ($(common-objpfx)soversions.i): Don't pass default_setname to
33126         soversions.awk.
33127         * Makerules ($(common-objpfx)abi-versions.h): Don't pass
33128         oldest_abi to abi-versions.awk.
33129         * config.h.in (GLIBC_OLDEST_ABI): Remove macro undefine.
33130         * config.make.in (oldest-abi): Remove variable.
33131         * configure.ac (--enable-oldest-abi): Remove configure option.
33132         * configure: Regenerated.
33133         * csu/version.c (banner) [GLIBC_OLDEST_ABI]: Remove conditional
33134         text.
33135         * scripts/abi-versions.awk: Do not handle oldest_abi variable.
33136         * scripts/soversions.awk: Do not handle default_setname variable.
33137         * sysdeps/mach/hurd/configure.ac: Do not handle oldest_abi
33138         variable.
33139         * sysdeps/mach/hurd/configure: Regenerated.
33140         * sysdeps/unix/sysv/linux/configure.ac: Do not handle oldest_abi
33141         variable.
33142         * sysdeps/unix/sysv/linux/configure: Regenerated.
33143
33144 2014-09-16  Siddhesh Poyarekar  <siddhesh@redhat.com>
33145
33146         * elf/Makefile (CFLAGS-interp.c): Remove.
33147         ($(elf-objpfx)runtime-linker.h): Generate header with linker
33148         path string.
33149         * elf/interp.c: Include generated runtime-linker.h
33150
33151         * Makerules (lib%.so): Don't include $(+interp) in
33152         prerequisites.
33153         * elf/Makefile (CFLAGS-interp.c): Don't define NOT_IN_libc.
33154         * dlfcn/eval.c: Remove file.
33155
33156         * posix/getconf.c (vars): Don't check for _[SP]C_* and _CS
33157         macros.
33158
33159         [BZ #17266]
33160         * misc/sys/cdefs.h: Define __extern_always_inline for clang
33161         4.2 and newer.
33162
33163         [BZ #17370]
33164         * libio/wfileops.c (do_ftell_wide): Free OUT on error path.
33165
33166 2014-09-16  Siddhesh Poyarekar  <siddhesh@redhat.com>
33167             Jakub Jelinek  <jakub@redhat.com>
33168
33169         [BZ #17266]
33170         * libio/stdio.h: Check definition of __fortify_function
33171         instead of __extern_always_inline to include bits/stdio2.h.
33172         * math/bits/math-finite.h [__USE_XOPEN || __USE_ISOC99]: Also
33173         check if __extern_always_inline is defined.
33174         [__USE_MISC || __USE_XOPEN]: Likewise.
33175         [__USE_ISOC99] Likewise.
33176         * misc/sys/cdefs.h (__fortify_function): Define only if
33177         __extern_always_inline is defined.
33178         [!__cplusplus || __GNUC_PREREQ (4,3)]: Revert to defining
33179         __extern_always_inline and __extern_inline only for g++-4.3
33180         and newer or a compatible gcc.
33181
33182 2014-09-15  Andreas Schwab  <schwab@linux-m68k.org>
33183
33184         [BZ #17371]
33185         * sysdeps/unix/sysv/linux/ifaddrs.c (getifaddrs_internal): Fix
33186         last change to handle zero prefix length.
33187
33188 2014-09-15  Siddhesh Poyarekar  <siddhesh@redhat.com>
33189
33190         * sysdeps/posix/sysconf.c (__sysconf): Return -1 for
33191         _SC_REGEX_VERSION.
33192
33193         * posix/getconf.c (vars): Add _POSIX_IPV6 and
33194         _POSIX_RAW_SOCKETS.
33195
33196 2014-09-13  Allan McRae  <allan@archlinux.org>
33197
33198         * po/ru.po: Update Russian translation from translation project.
33199
33200 2014-09-12  Roland McGrath  <roland@hack.frob.com>
33201
33202         * locale/programs/locale.c (show_locale_vars): Inline local function
33203         into its sole call site.  Clean up some style nits.
33204         (print_item): New function, broken out of ...
33205         (show_info): ... local function here.  Clean up style nits.
33206
33207         * locale/programs/ld-ctype.c (set_one_default): New function, broken
33208         out of ...
33209         (set_class_defaults): ... local function set_default here.
33210         Define set_default as a macro locally to pass constant parameters.
33211         (allocate_arrays, set_class_defaults): Use C99 for scope for each CNT,
33212         rather than a shared local.
33213
33214         * stdlib/rpmatch.c (try): New function, broken out of ...
33215         (rpmatch): ... local function here.  Also, prototypify definition.
33216
33217 2014-09-12  Joseph Myers  <joseph@codesourcery.com>
33218
33219         * scripts/soversions.awk: Do not handle configuration names.
33220         * Makeconfig ($(common-objpfx)soversions.i): Do not pass cpu,
33221         vendor and os variables to soversions.awk.
33222         * configure.ac: Do not modify gnu-* host_os.
33223         * configure: Regenerated
33224         * shlib-versions: Remove first column with configuration names.
33225         * nptl/shlib-versions: Likewise.
33226         * nptl_db/shlib-versions: Likewise.
33227         * sysdeps/hppa/shlib-versions: Likewise.
33228         * sysdeps/m68k/shlib-versions: Likewise.
33229         * sysdeps/mach/hurd/shlib-versions: Likewise.
33230         * sysdeps/unix/sysv/linux/aarch64/shlib-versions: Likewise.
33231         * sysdeps/unix/sysv/linux/alpha/shlib-versions: Likewise.
33232         * sysdeps/unix/sysv/linux/arm/shlib-versions: Likewise.
33233         * sysdeps/unix/sysv/linux/hppa/shlib-versions: Likewise.
33234         * sysdeps/unix/sysv/linux/ia64/shlib-versions: Likewise.
33235         * sysdeps/unix/sysv/linux/m68k/coldfire/shlib-versions: Likewise.
33236         * sysdeps/unix/sysv/linux/microblaze/shlib-versions: Likewise.
33237         * sysdeps/unix/sysv/linux/mips/shlib-versions: Likewise.
33238         * sysdeps/unix/sysv/linux/powerpc/powerpc64/shlib-versions:
33239         Likewise.
33240         * sysdeps/unix/sysv/linux/s390/s390-64/shlib-versions: Likewise.
33241         * sysdeps/unix/sysv/linux/sh/shlib-versions: Likewise.
33242         * sysdeps/unix/sysv/linux/shlib-versions: Likewise.
33243         * sysdeps/unix/sysv/linux/sparc/sparc32/shlib-versions: Likewise.
33244         * sysdeps/unix/sysv/linux/sparc/sparc64/shlib-versions: Likewise.
33245         * sysdeps/unix/sysv/linux/tile/shlib-versions: Likewise.
33246         * sysdeps/unix/sysv/linux/x86_64/64/shlib-versions: Likewise.
33247         * sysdeps/unix/sysv/linux/x86_64/x32/shlib-versions: Likewise.
33248
33249         * sysdeps/unix/sysv/linux/powerpc/powerpc64/configure.ac
33250         (HAVE_ELFV2_ABI): AC_DEFINE in ELFv2 case.
33251         * sysdeps/unix/sysv/linux/powerpc/powerpc64/configure:
33252         Regenerated.
33253         * config.h.in (HAVE_ELFV2_ABI): New macro undefine.
33254         * sysdeps/unix/sysv/linux/powerpc/powerpc64/shlib-versions:
33255         Condition symbol version definitions on [HAVE_ELFV2_ABI].
33256
33257         * shlib-versions: Remove OS-specific entries.  Moved to files in
33258         sysdeps.
33259         * sysdeps/mach/hurd/shlib-versions: New file.
33260         * sysdeps/unix/sysv/linux/shlib-versions: Likewise.
33261
33262         * nptl/shlib-versions: Remove architecture-specific entries.
33263         Moved to files in sysdeps.
33264         * shlib-versions: Likewise.
33265         * sysdeps/unix/sysv/linux/powerpc/powerpc64/shlib-versions: New
33266         file.
33267         * sysdeps/unix/sysv/linux/s390/s390-64/shlib-versions: Likewise.
33268         * sysdeps/unix/sysv/linux/sh/shlib-versions: Likewise.
33269         * sysdeps/unix/sysv/linux/sparc/sparc32/shlib-versions: Likewise.
33270         * sysdeps/unix/sysv/linux/sparc/sparc64/shlib-versions: Likewise.
33271
33272         * sysdeps/gnu/netinet/udp.h (UDP_NO_CHECK6_TX): New macro.
33273         (UDP_NO_CHECK6_RX): Likewise.
33274
33275 2014-09-12  Siddhesh Poyarekar  <siddhesh@redhat.com>
33276
33277         * sysdeps/posix/sysconf.c (__sysconf): Spell
33278         _POSIX_DEVICE_SPECIFIC and _POSIX_DEVICE_SPECIFIC_R correctly.
33279
33280 2014-08-12  Florian Weimer  <fweimer@redhat.com>
33281
33282         * iconv/gconv_open.c (__gconv_open): Remove transliteration module
33283         loading.
33284         * iconv/Versions (__gconv_transliterate): Export for use from
33285         gconv modules.
33286         * iconv/gconv.h (__GCONV_TRANSLIT): New flag.
33287         (struct __gconv_trans_data, __gconv_trans_fct,
33288         __gconv_trans_context_fct, __gconv_trans_query_fct,
33289         __gconv_trans_init_fct, __gconv_trans_end_fct): Remove type
33290         definitions.
33291         (struct __gconv_step_data): Remove __trans member.
33292         (__gconv_transliterate): Declaration moved from gconv_int.h.  No
33293         longer hidden.  Remove unused trans_data argument.
33294         * iconv/gconv_int.h (struct trans_struct): Remove definition.
33295         (__gconv_translit_find): Remove declaration.
33296         (__gconv_transliterate): Declaration moved to gconv.h.  Add hidden
33297         prototype.
33298         * iconv/gconv_close.c (__gconv_close): Remove __trans cleanup.
33299         * iconv/gconv_trans.c (__gconv_transliterate): Remove unused
33300         trans_data argument.  Add hidden definition.
33301         (__gconv_translit_find): Remove.
33302         * iconv/loop.c (STANDARD_TO_LOOP_ERR_HANDLER): Call
33303         __gconv_transliterate directly if __GCONV_TRANSLIT is set.
33304         * iconv/skeleton.c: Remove transliteration initialization.
33305         * libio/fileops.c (_IO_new_file_fopen): Adjust struct
33306         __gconv_step_data initialization.
33307         * libio/iofwide.c (__libio_translit_): Remove.
33308         (_IO_fwide): Adjust struct __gconv_step_data initialization.
33309         * wcsmbs/btowc.c (__btowc): Likewise.
33310         * wcsmbs/mbrtoc16.c (mbrtoc16): Likewise.
33311         * wcsmbs/mbrtowc.c (__mbrtowc): Likewise.
33312         * wcsmbs/mbsnrtowcs.c (__mbsnrtowcs): Likewise.
33313         * wcsmbs/mbsrtowcs_l.c (__mbsrtowcs_l): Likewise.
33314         * wcsmbs/wcrtomb.c (__wcrtomb): Likewise.
33315         * wcsmbs/wcsnrtombs.c (__wcsnrtombs): Likewise.
33316         * wcsmbs/wcsrtombs.c (__wcsrtombs): Likewise.
33317         * wcsmbs/wctob.c (wctob): Likewise.
33318
33319 2014-09-12  Siddhesh Poyarekar  <siddhesh@redhat.com>
33320
33321         [BZ #16194]
33322         * sysdeps/x86/tst-xmmymm.sh: Rename file to...
33323         * sysdeps/x86/tst-ld-sse-use.sh: ... this.  Check for zmm
33324         register usage.
33325         * sysdeps/x86/Makefile: Adjust.
33326
33327 2014-09-11  Kostya Serebryany  <konstantin.s.serebryany@gmail.com>
33328             Roland McGrath  <roland@hack.frob.com>
33329
33330         * locale/weight.h: Add include guard.
33331         (findidx): Make static rather than auto; take new parameters
33332         TABLE, INDIRECT, and EXTRA instead of getting them as outer locals.
33333         * locale/weightwc.h: Likewise.
33334         * posix/fnmatch_loop.c
33335         (FCT): Change type of EXTRA from int32_t to wint_t.
33336         Don't include either header inside the function.
33337         Call FINDIDX rather than findidx, and pass new arguments.
33338         #undef FINDIDX at the end of the file.
33339         * posix/fnmatch.c [_LIBC]: #include <locale/weight.h> and define
33340         FINDIDX before including fnmatch_loop.c for the non-wide version.
33341         [_LIBC] [HANDLE_MULTIBYTE]: #define findidx to findidxwc around
33342         #include <locale/weightwc.h>, and define FINDIDX to findidxwc
33343         for the wide version.
33344         * posix/regcomp.c [_LIBC]: #include <locale/weight.h>.
33345         (build_equiv_class) [_LIBC]: Don't #include it inside the function.
33346         Pass new arguments to findidx.
33347         * posix/regexec.c [RE_ENABLE_I18N] [_LIBC]: #include <locale/weight.h>.
33348         [RE_ENABLE_I18N] (check_node_accept_bytes) [_LIBC]:
33349         Don't #include it inside the function.  Pass new arguments to findidx.
33350         * posix/regex_internal.h
33351         [!NOT_IN_libc] [_LIBC]: #include <locale/weight.h>.
33352         (re_string_elem_size_at): Don't #include it inside the function.
33353         Pass new arguments to findidx.
33354         * string/strcoll_l.c: #include WEIGHT_H at top level.
33355         (get_next_seq): Don't #include it inside the function.
33356         Pass new arguments to findidx.
33357         (get_next_seq_nocache): Likewise.
33358         * string/strxfrm_l.c: #include WEIGHT_H at top level.
33359         (STRXFRM): Don't #include it inside the function.
33360         Pass new arguments to findidx.
33361
33362 2014-09-11  Florian Weimer  <fweimer@redhat.com>
33363
33364         [BZ #17344]
33365         * malloc/malloc.c (unlink): Turn asserts into a call to
33366         malloc_printerr.
33367
33368 2014-09-11  Tim Lammens  <tim.lammens@gmail.com>
33369
33370         [BZ #17370]
33371         * libio/wfileops (do_ftell_wide): Free OUT.
33372
33373 2014-09-10  Chris Metcalf  <cmetcalf@tilera.com>
33374
33375         * sysdeps/unix/sysv/linux/tile/lowlevellock.h: Remove file.
33376
33377 2014-09-10  Siddhesh Poyarekar  <siddhesh@redhat.com>
33378
33379         [BZ #17363]
33380         * inet/getnetgrent_r.c (__internal_getnetgrent_r): Try next
33381         group if the current group is empty.
33382
33383 2014-09-10  Adhemerval Zanella  <azanella@linux.vnet.ibm.com>
33384
33385         * benchtests/bench-memset.c (test_main): Add more test from size
33386         from 32 to 512 bytes.
33387         * sysdeps/powerpc/powerpc64/multiarch/Makefile [sysdep_routines]:
33388         Add POWER8 memset object.
33389         * sysdeps/powerpc/powerpc64/multiarch/ifunc-impl-list.c
33390         (__libc_ifunc_impl_list): Add POWER8 memset and bzero implementations.
33391         * sysdeps/powerpc/powerpc64/multiarch/bzero.c (__bzero): Add POWER8
33392         implementation.
33393         * sysdeps/powerpc/powerpc64/multiarch/memset.c (__libc_memset):
33394         Likewise.
33395         * sysdeps/powerpc/powerpc64/multiarch/memset-power8.S: New file:
33396         multiarch POWER8 memset optimization.
33397         * sysdeps/powerpc/powerpc64/power8/memset.S: New file: optimized
33398         POWER8 memset optimization.
33399
33400         * sysdeps/powerpc/powerpc64/multiarch/Makefile [sysdep_routines]:
33401         Remove bzero multiarch objects.
33402         * sysdeps/powerpc/powerpc64/multiarch/bzero-power4.S: Remove file.
33403         * sysdeps/powerpc/powerpc64/multiarch/bzero-power6.S: Likewise.
33404         * sysdeps/powerpc/powerpc64/multiarch/bzero-power7.S: Likewise.
33405         * sysdeps/powerpc/powerpc64/multiarch/memset-power4.S [NO_BZERO_IMPL]:
33406         Remove define.
33407         [__bzero]: Redefine to specific name.
33408         * sysdeps/powerpc/powerpc64/multiarch/memset-power6.S: Likewise.
33409         * sysdeps/powerpc/powerpc64/multiarch/memset-power7.S: Likewise.
33410         * sysdeps/powerpc/powerpc64/power4/memset.S [NO_BZERO_IMPL]: Remove
33411         define.
33412         * sysdeps/powerpc/powerpc64/power6/memset.S: Likewise.
33413         * sysdeps/powerpc/powerpc64/power7/memset.S: Likewise.
33414
33415 2014-09-10  Florian Weimer  <fweimer@redhat.com>
33416
33417         * Makeconfig (gccwarn-c): Turn implicit-function-declaration
33418         warnings into errors.
33419
33420         * stdlib/tst-tls-atexit-lib.c: Include <stdlib.h>, for the
33421         __cxa_thread_atexit_impl prototype.
33422
33423 2014-09-09  Steve Ellcey  <sellcey@mips.com>
33424
33425         * sysdeps/mips/preconfigure: Put code inside mips* case statement.
33426         Fix capitalization of error message.
33427
33428 2014-09-09  Steve Ellcey  <sellcey@mips.com>
33429
33430         * sysdeps/mips/preconfigure: Modify ABI tests.
33431
33432 2014-09-07  Carlos O'Donell  <carlos@systemhalted.org>
33433
33434         * sysdeps/unix/sysv/linux/hppa/c++-types.data: New file.
33435
33436 2014-09-07  Roland McGrath  <roland@hack.frob.com>
33437             Carlos O'Donell  <carlos@systemhalted.org>
33438
33439         * sysdeps/unix/sysv/linux/hppa/nptl/libc-lowlevellock.c: File removed.
33440         * sysdeps/unix/sysv/linux/hppa/nptl/lowlevellock.h: Moved ...
33441         * sysdeps/unix/sysv/linux/hppa/lowlevellock.h: ... here.
33442         * sysdeps/unix/sysv/linux/hppa/nptl/pt-vfork.S: Moved ...
33443         * sysdeps/unix/sysv/linux/hppa/pt-vfork.S: ... here.
33444         * sysdeps/unix/sysv/linux/hppa/nptl/pthread.h: Moved ...
33445         * sysdeps/unix/sysv/linux/hppa/pthread.h: ... here.
33446         * sysdeps/unix/sysv/linux/hppa/nptl/pthreadP.h: Moved ...
33447         * sysdeps/unix/sysv/linux/hppa/pthreadP.h: ... here.
33448         * sysdeps/unix/sysv/linux/hppa/nptl/pthread_cond_broadcast.c: Moved ...
33449         * sysdeps/unix/sysv/linux/hppa/pthread_cond_broadcast.c: ... here.
33450         * sysdeps/unix/sysv/linux/hppa/nptl/pthread_cond_destroy.c: Moved ...
33451         * sysdeps/unix/sysv/linux/hppa/pthread_cond_destroy.c: ... here.
33452         * sysdeps/unix/sysv/linux/hppa/nptl/pthread_cond_init.c: Moved ...
33453         * sysdeps/unix/sysv/linux/hppa/pthread_cond_init.c: ... here.
33454         * sysdeps/unix/sysv/linux/hppa/nptl/pthread_cond_signal.c: Moved ...
33455         * sysdeps/unix/sysv/linux/hppa/pthread_cond_signal.c: ... here.
33456         * sysdeps/unix/sysv/linux/hppa/nptl/pthread_cond_timedwait.c: Moved ...
33457         * sysdeps/unix/sysv/linux/hppa/pthread_cond_timedwait.c: ... here.
33458         * sysdeps/unix/sysv/linux/hppa/nptl/pthread_cond_wait.c: Moved ...
33459         * sysdeps/unix/sysv/linux/hppa/pthread_cond_wait.c: ... here.
33460         * sysdeps/unix/sysv/linux/hppa/nptl/sysdep-cancel.h: Moved ...
33461         * sysdeps/unix/sysv/linux/hppa/sysdep-cancel.h: ... here.
33462         * sysdeps/unix/sysv/linux/hppa/nptl/bits/pthreadtypes.h: Moved ...
33463         * sysdeps/hppa/nptl/bits/pthreadtypes.h: ... here.
33464         * sysdeps/unix/sysv/linux/hppa/nptl/bits/semaphore.h: Moved ...
33465         * sysdeps/hppa/nptl/bits/semaphore.h: ... here.
33466         * sysdeps/unix/sysv/linux/hppa/clone.S: Include <tcb-offsets.h>.
33467         Deconditionalize the code that was previously under [RESET_PID].
33468         * sysdeps/unix/sysv/linux/hppa/nptl/clone.S: File removed.
33469         * sysdeps/unix/sysv/linux/hppa/arch-fork.h: New file.
33470         * sysdeps/unix/sysv/linux/hppa/nptl/fork.c: File removed.
33471         * sysdeps/hppa/nptl/tcb-offsets.sym: Include pthread.h and don't
33472         include sysdep.h.
33473
33474 2014-09-08  Allan McRae  <allan@archlinux.org>
33475
33476         * version.h (RELEASE): Set to "development".
33477         (VERSION): Set to "2.20.90"
33478
33479 2014-09-07  Allan McRae  <allan@archlinux.org
33480
33481         * version.h (RELEASE): Set to "stable".
33482         (VERSION): Set to "2.20"
33483         * include/features.h (__GLIBC_MINOR__): Set to 20.
33484
33485         * manual/contrib.texi: Add entries for Wilco Dijkstra and Stefan
33486         Liebler.
33487
33488         * po/ko.po: Update Korean translation from translation project.
33489
33490 2014-09-06  Chris Metcalf  <cmetcalf@tilera.com>
33491
33492         [BZ #17354]
33493         * sysdeps/tile/dl-machine.h (elf_machine_rela): Add a MUNGE_SIGNED
33494         macro for handling signed relocations.
33495
33496 2014-09-03  Florian Weimer  <fweimer@redhat.com>
33497
33498         [BZ #17325]
33499         * iconvdata/ibm1364.c (BODY): Fix check for sentinel.
33500         * iconvdata/ibm932.c (BODY): Replace invalid sentinel check with
33501         assert.
33502         * iconvdata/ibm933.c (BODY): Fix check for sentinel.
33503         * iconvdata/ibm935.c (BODY): Likewise.
33504         * iconvdata/ibm937.c (BODY): Likewise.
33505         * iconvdata/ibm939.c (BODY): Likewise.
33506         * iconvdata/ibm943.c (BODY): Replace invalid sentinel check with
33507         assert.
33508         * iconvdata/Makefile (iconv-test.out): Pass module list to test
33509         script.
33510         * iconvdata/run-iconv-test.sh: New test loop for checking for
33511         decoder crashers.
33512
33513 2014-09-02  Khem Raj  <raj.khem@gmail.com>
33514
33515         * sysdeps/powerpc/powerpc32/e500/nofpu/fegetenv.c (fegetenv): Add
33516         libm_hidden_ver.
33517
33518 2014-09-01  Allan McRae  <allan@archlinux.org>
33519
33520         * po/eo.po: Update Esperanto translation from translation project.
33521
33522         * po/ca.po: Update Catalan translation from translation project.
33523
33524 2014-08-28  Samuel Thibault  <samuel.thibault@ens-lyon.org>
33525
33526         * sysdeps/mach/hurd/fork.c (__fork): Lock SS->lock around
33527         __proc_dostop call.
33528
33529 2014-08-27  Mark Wielaard  <mjw@redhat.com>
33530
33531         [BZ #17319]
33532         * sysdeps/i386/nptl/tls.h (TLS_INIT_TP): Use INTERNAL_SYSCALL
33533         to call set_thread_area instead of hand written asm.
33534         (__NR_set_thread_area): Removed define.
33535         (TLS_FLAG_WRITABLE): Likewise.
33536         (__ASSUME_SET_THREAD_AREA): Remove check.
33537         (TLS_EBX_ARG): Remove define.
33538         (TLS_LOAD_EBX): Likewise.
33539
33540 2014-08-27  Samuel Thibault  <samuel.thibault@ens-lyon.org>
33541
33542         Simplify atomicity of socket creation in bind.
33543
33544         * sysdeps/mach/hurd/bind.c (__bind): Use dir_lookup(node, "") instead of
33545         looking up the name after linking the file.
33546
33547 2014-08-27  Allan McRae  <allan@archlinux.org>
33548
33549         * sysdeps/i386/fpu/libm-test-ulps: Update ULPs.
33550
33551 2014-08-26  Florian Weimer  <fweimer@redhat.com>
33552
33553         [BZ #17187]
33554         * iconv/gconv_trans.c (struct known_trans, search_tree, lock,
33555         trans_compare, open_translit, __gconv_translit_find):
33556         Remove module loading code.
33557
33558 2014-08-26  Allan McRae  <allan@archlinux.org>
33559
33560         * po/vi.po: Update Vietnamese translation from translation project.
33561
33562         * po/uk.po: Update Ukrainian translation from translation project.
33563
33564         * po/fr.po: Update French translation from translation project.
33565
33566         * po/ru.po: Update Russian translation from translation project.
33567
33568         * po/pl.po: Update Polish translation from translation project.
33569
33570         * po/cs.po: Update Czech translation from translation project.
33571
33572         * po/de.po: Update German translation from translation project.
33573
33574         * po/bg.po: Update Bulgarian translation from translation project.
33575
33576         * po/sv.po: Update Sweedish translation from translation project.
33577
33578         * po/nl.po: Update Dutch translation from translation project.
33579
33580         * po/es.po: Update Spanish translation from translation project.
33581
33582 2014-08-21  Siddhesh Poyarekar  <siddhesh@redhat.com>
33583
33584         * nptl/Makefile (CFLAGS-pthread_atfork.c): Remove.
33585
33586         * catgets/Makefile (CPPFLAGS-gencat): Remove.
33587         * iconv/Makefile (CPPFLAGS-iconv_prog): Likewise.
33588         (CPPFLAGS-iconvconfig): Likewise.
33589         * timezone/Makefile (CPPFLAGS-zic): Likewise.
33590
33591         * include/libc-symbols.h: Remove unnecessary check for
33592         NOT_IN_libc.
33593         * nptl/pthreadP.h: Likewise.
33594         * sysdeps/aarch64/setjmp.S: Likewise.
33595         * sysdeps/alpha/setjmp.S: Likewise.
33596         * sysdeps/arm/sysdep.h: Likewise.
33597         * sysdeps/i386/setjmp.S: Likewise.
33598         * sysdeps/m68k/setjmp.c: Likewise.
33599         * sysdeps/posix/getcwd.c: Likewise.
33600         * sysdeps/powerpc/powerpc32/setjmp-common.S: Likewise.
33601         * sysdeps/powerpc/powerpc64/setjmp-common.S: Likewise.
33602         * sysdeps/s390/s390-32/setjmp.S: Likewise.
33603         * sysdeps/s390/s390-64/setjmp.S: Likewise.
33604         * sysdeps/sh/sh3/setjmp.S: Likewise.
33605         * sysdeps/sh/sh4/setjmp.S: Likewise.
33606         * sysdeps/unix/alpha/sysdep.h: Likewise.
33607         * sysdeps/unix/sysv/linux/aarch64/sysdep.h: Likewise.
33608         * sysdeps/unix/sysv/linux/i386/sysdep.h: Likewise.
33609         * sysdeps/unix/sysv/linux/ia64/setjmp.S: Likewise.
33610         * sysdeps/unix/sysv/linux/ia64/sysdep.h: Likewise.
33611         * sysdeps/unix/sysv/linux/powerpc/powerpc32/sysdep.h: Likewise.
33612         * sysdeps/unix/sysv/linux/powerpc/powerpc64/sysdep.h: Likewise.
33613         * sysdeps/unix/sysv/linux/s390/s390-32/sysdep.h: Likewise.
33614         * sysdeps/unix/sysv/linux/s390/s390-64/sysdep.h: Likewise.
33615         * sysdeps/unix/sysv/linux/sh/sysdep.h: Likewise.
33616         * sysdeps/unix/sysv/linux/sparc/sparc32/sysdep.h: Likewise.
33617         * sysdeps/unix/sysv/linux/sparc/sparc64/sysdep.h: Likewise.
33618         * sysdeps/unix/sysv/linux/tile/sysdep.h: Likewise.
33619         * sysdeps/unix/sysv/linux/x86_64/sysdep.h: Likewise.
33620         * sysdeps/x86_64/setjmp.S: Likewise.
33621
33622 2014-08-13  Joseph Myers  <joseph@codesourcery.com>
33623
33624         [BZ #17263]
33625         * sysdeps/unix/sysv/linux/powerpc/get_clockfreq.c: Include
33626         <stdint.h>.
33627         (__get_clockfreq): Use uint64_t instead of hp_timing_t in
33628         INTERNAL_VSYSCALL_NO_SYSCALL_FALLBACK call.
33629
33630 2014-08-13  Siddhesh Poyarekar  <siddhesh@redhat.com>
33631
33632         * sysdeps/x86/fpu/bits/mathinline.h: Fix typo in comment.
33633
33634         [BZ #17262]
33635         * sysdeps/x86/fpu/bits/mathinline.h: Check both __SSE2_MATH__
33636         and __x86_64__ when disabling x87 inline functions.
33637
33638 2014-08-12  H.J. Lu  <hongjiu.lu@intel.com>
33639
33640         [BZ #17259]
33641         * sysdeps/x86_64/cacheinfo.c (intel_check_word): Replace cpuid
33642         asm statement with __cpuid_count.
33643
33644 2014-08-12  Mike Frysinger  <vapier@gentoo.org>
33645
33646         * configure.ac: Change __ehdr_start code to dereference the struct.
33647         Run readelf on the output to look for relocations.
33648         * configure: Regenerated.
33649
33650 2014-08-12  Joseph Myers  <joseph@codesourcery.com>
33651
33652         [BZ #17261]
33653         * sysdeps/powerpc/nofpu/fenv_const.c (__fe_enabled_env): Change
33654         value to 0.
33655         (__fe_nonieee_env): Define as an alias for __fe_dfl_env.
33656
33657 2014-08-12  Roland McGrath  <roland@hack.frob.com>
33658
33659         * NEWS: Mention x86-64 ld.so use of Intel MPX instructions.
33660
33661 2014-08-12  Bernard Ogden  <bernie.ogden@linaro.org>
33662
33663         [BZ #16892]
33664         * sysdeps/nptl/lowlevellock.h (__lll_timedlock): Use
33665         atomic_compare_and_exchange_bool_acq rather than atomic_exchange_acq.
33666
33667 2014-08-12  Sean Anderson  <seanga2@gmail.com>
33668
33669         * malloc/malloc.c: Fix typo in comment.
33670
33671 2014-08-09  Allan McRae  <allan@archlinux.org>
33672
33673         * Regenerate libc.po.
33674
33675 2014-08-08  Mike Frysinger  <vapier@gentoo.org>
33676
33677         * intl/tst-gettext2.sh: Check every lang file for creation.
33678
33679 2014-08-07  Wilco Dijkstra  <wdijkstr@arm.com>
33680
33681         * sysdeps/aarch64/fpu/math_private.h
33682         (libc_feholdsetround_noex_aarch64_ctx): New function.
33683
33684 2014-08-07  Wilco Dijkstra  <wdijkstr@arm.com>
33685
33686         * sysdeps/arm/armv6/strcpy.S (strcpy):
33687         Fix performance issue in misaligned cases.
33688
33689 2014-08-05  Adhemerval Zanella  <azanella@linux.vnet.ibm.com>
33690
33691         * sysdeps/unix/sysv/linux/powerpc/bits/ioctl-types.h (struct winsize):
33692         Move definition from termios.h.
33693         (struct termio): Likewise.
33694         (NCC, TIOCM_LE, TIOCM_DTR, TIOCM_RTS, TIOCM_ST, TIOCM_SR, TIOCM_CTS,
33695         TIOCM_CAR, TIOCM_RNG, TIOCM_DSR, TIOCM_CD, TIOCM_RI, N_TTY, N_SLIP,
33696         N_MOUSE, N_PPP, N_STRIP, N_AX25, N_X25, N_6PACK, N_MASC, N_R3964,
33697         N_PROFIBUS_FDL, N_IRDA, N_SMSBLOCK, N_HDLC, N_SYNC_PPP, N_HCI):
33698         Likewise.
33699         * sysdeps/unix/sysv/linux/powerpc/bits/termios.h (struct winsize):
33700         Move definition to ioctl-types.h
33701         (struct termio): Likewise.
33702         (NCC, TIOCM_LE, TIOCM_DTR, TIOCM_RTS, TIOCM_ST, TIOCM_SR, TIOCM_CTS,
33703         TIOCM_CAR, TIOCM_RNG, TIOCM_DSR, TIOCM_CD, TIOCM_RI, N_TTY, N_SLIP,
33704         N_MOUSE, N_PPP, N_STRIP, N_AX25, N_X25, N_6PACK, N_MASC, N_R3964,
33705         N_PROFIBUS_FDL, N_IRDA, N_SMSBLOCK, N_HDLC, N_SYNC_PPP, N_HCI):
33706         Likewise.
33707
33708 2014-08-05  Richard Henderson  <rth@redhat.com>
33709
33710         * sysdeps/alpha/soft-fp/ots_cvtxq.c (_OtsCvtXQ): Always raise
33711         exceptions.
33712         * sysdeps/alpha/soft-fp/Makefile [soft-fp] (sysdep_routines):
33713         Add fraiseexcpt.
33714         * sysdeps/alpha/soft-fp/sfp-machine.h (FP_HANDLE_EXCEPTIONS):
33715         Use __feraiseexcept.
33716         * sysdeps/unix/sysv/linux/alpha/fraiseexcpt.S (feraiseexcept):
33717         Protect libm symbols with IS_IN_libm.
33718
33719         * sysdeps/unix/sysv/linux/alpha/lowlevellock.h: Remove file.
33720
33721 2014-08-04  Bernard Ogden  <bernie.ogden@linaro.org>
33722
33723         * sysdeps/unix/sysv/linux/mips/lowlevellock.h: Remove file.
33724
33725 2014-08-04  Will Newton  <will.newton@linaro.org>
33726
33727         * sysdeps/unix/sysv/linux/aarch64/lowlevellock.h: Remove
33728         file.
33729
33730 2014-08-04  Mike Frysinger  <vapier@gentoo.org>
33731
33732         * sysdeps/unix/sysv/linux/ia64/sysdep-cancel.h (PSEUDO): Add nocancel
33733         variants for each function.
33734
33735 2014-08-04  Roland McGrath  <roland@hack.frob.com>
33736
33737         * sysdeps/unix/sysv/linux/ia64/nptl/Makefile: File removed, contents
33738         appended ...
33739         * sysdeps/unix/sysv/linux/ia64/Makefile: ... here.
33740         * sysdeps/unix/sysv/linux/ia64/nptl/Versions: File removed, contents
33741         appended ...
33742         * sysdeps/unix/sysv/linux/ia64/Versions: ... here.
33743         * sysdeps/unix/sysv/linux/ia64/nptl/__ia64_longjmp.S: Moved ...
33744         * sysdeps/unix/sysv/linux/ia64/__ia64_longjmp.S: ... here.
33745         * sysdeps/unix/sysv/linux/ia64/nptl/__sigstack_longjmp.c: Moved ...
33746         * sysdeps/unix/sysv/linux/ia64/__sigstack_longjmp.c: ... here.
33747         * sysdeps/unix/sysv/linux/ia64/nptl/c++-types.data: Moved ...
33748         * sysdeps/unix/sysv/linux/ia64/c++-types.data: ... here.
33749         * sysdeps/unix/sysv/linux/ia64/nptl/dl-sysdep.h: Moved ...
33750         * sysdeps/unix/sysv/linux/ia64/dl-sysdep.h: ... here.
33751         * sysdeps/unix/sysv/linux/ia64/nptl/ld.abilist: Moved ...
33752         * sysdeps/unix/sysv/linux/ia64/ld.abilist: ... here.
33753         * sysdeps/unix/sysv/linux/ia64/nptl/libBrokenLocale.abilist: Moved ...
33754         * sysdeps/unix/sysv/linux/ia64/libBrokenLocale.abilist: ... here.
33755         * sysdeps/unix/sysv/linux/ia64/nptl/libanl.abilist: Moved ...
33756         * sysdeps/unix/sysv/linux/ia64/libanl.abilist: ... here.
33757         * sysdeps/unix/sysv/linux/ia64/nptl/libc.abilist: Moved ...
33758         * sysdeps/unix/sysv/linux/ia64/libc.abilist: ... here.
33759         * sysdeps/unix/sysv/linux/ia64/nptl/libcrypt.abilist: Moved ...
33760         * sysdeps/unix/sysv/linux/ia64/libcrypt.abilist: ... here.
33761         * sysdeps/unix/sysv/linux/ia64/nptl/libdl.abilist: Moved ...
33762         * sysdeps/unix/sysv/linux/ia64/libdl.abilist: ... here.
33763         * sysdeps/unix/sysv/linux/ia64/nptl/libm.abilist: Moved ...
33764         * sysdeps/unix/sysv/linux/ia64/libm.abilist: ... here.
33765         * sysdeps/unix/sysv/linux/ia64/nptl/libnsl.abilist: Moved ...
33766         * sysdeps/unix/sysv/linux/ia64/libnsl.abilist: ... here.
33767         * sysdeps/unix/sysv/linux/ia64/nptl/libpthread.abilist: Moved ...
33768         * sysdeps/unix/sysv/linux/ia64/libpthread.abilist: ... here.
33769         * sysdeps/unix/sysv/linux/ia64/nptl/libresolv.abilist: Moved ...
33770         * sysdeps/unix/sysv/linux/ia64/libresolv.abilist: ... here.
33771         * sysdeps/unix/sysv/linux/ia64/nptl/librt.abilist: Moved ...
33772         * sysdeps/unix/sysv/linux/ia64/librt.abilist: ... here.
33773         * sysdeps/unix/sysv/linux/ia64/nptl/libthread_db.abilist: Moved ...
33774         * sysdeps/unix/sysv/linux/ia64/libthread_db.abilist: ... here.
33775         * sysdeps/unix/sysv/linux/ia64/nptl/libutil.abilist: Moved ...
33776         * sysdeps/unix/sysv/linux/ia64/libutil.abilist: ... here.
33777         * sysdeps/unix/sysv/linux/ia64/nptl/localplt.data: Moved ...
33778         * sysdeps/unix/sysv/linux/ia64/localplt.data: ... here.
33779         * sysdeps/unix/sysv/linux/ia64/nptl/lowlevellock.h: Moved ...
33780         * sysdeps/unix/sysv/linux/ia64/lowlevellock.h: ... here.
33781         * sysdeps/unix/sysv/linux/ia64/nptl/sysdep-cancel.h: Moved ...
33782         * sysdeps/unix/sysv/linux/ia64/sysdep-cancel.h: ... here.
33783         * sysdeps/unix/sysv/linux/ia64/nptl/timer_create.c: Moved ...
33784         * sysdeps/unix/sysv/linux/ia64/timer_create.c: ... here.
33785         * sysdeps/unix/sysv/linux/ia64/nptl/timer_delete.c: Moved ...
33786         * sysdeps/unix/sysv/linux/ia64/timer_delete.c: ... here.
33787         * sysdeps/unix/sysv/linux/ia64/nptl/timer_getoverr.c: Moved ...
33788         * sysdeps/unix/sysv/linux/ia64/timer_getoverr.c: ... here.
33789         * sysdeps/unix/sysv/linux/ia64/nptl/timer_gettime.c: Moved ...
33790         * sysdeps/unix/sysv/linux/ia64/timer_gettime.c: ... here.
33791         * sysdeps/unix/sysv/linux/ia64/nptl/timer_settime.c: Moved ...
33792         * sysdeps/unix/sysv/linux/ia64/timer_settime.c: ... here.
33793         * sysdeps/unix/sysv/linux/ia64/nptl/unwind-forcedunwind.c: Moved ...
33794         * sysdeps/unix/sysv/linux/ia64/unwind-forcedunwind.c: ... here.
33795         Update #include.
33796         * sysdeps/unix/sysv/linux/ia64/nptl/unwind_longjmp.c: Moved ...
33797         * sysdeps/unix/sysv/linux/ia64/unwind_longjmp.c: ... here.
33798
33799 2014-08-04  Roland McGrath  <roland@hack.frob.com>
33800
33801         * sysdeps/unix/sysv/linux/ia64/nptl/bits/pthreadtypes.h: Moved ...
33802         * sysdeps/ia64/nptl/bits/pthreadtypes.h: ... here.
33803         * sysdeps/unix/sysv/linux/ia64/nptl/bits/semaphore.h: Moved ...
33804         * sysdeps/ia64/nptl/bits/semaphore.h: ... here.
33805         * sysdeps/unix/sysv/linux/ia64/nptl/bits/local_lim.h: Moved ...
33806         * sysdeps/unix/sysv/linux/ia64/bits/local_lim.h: ... here.
33807
33808 2014-08-04  Roland McGrath  <roland@hack.frob.com>
33809
33810         * nptl/sysdeps/pthread/createthread.c: Include <arch-fork.h>.
33811         * sysdeps/unix/sysv/linux/ia64/arch-fork.h (ARCH_CLONE): New macro.
33812         * sysdeps/ia64/nptl/tls.h (TLS_DEFINE_INIT_TP): New macro.
33813         * sysdeps/unix/sysv/linux/ia64/nptl/createthread.c: File removed.
33814
33815 2014-08-04  Roland McGrath  <roland@hack.frob.com>
33816
33817         * sysdeps/unix/sysv/linux/ia64/nptl/vfork.S: Moved ...
33818         * sysdeps/unix/sysv/linux/ia64/vfork.S: ... here.
33819         (__libc_vfork): Define function under this name.
33820         (__vfork): Define as an alias.
33821         * sysdeps/unix/sysv/linux/ia64/pt-vfork.S: New file.
33822         * sysdeps/unix/sysv/linux/ia64/nptl/pt-vfork.S: File removed.
33823
33824 2014-08-04  Roland McGrath  <roland@hack.frob.com>
33825
33826         * sysdeps/unix/sysv/linux/ia64/clone2.S: Deconditionalize the code
33827         that was previously under [RESET_PID].
33828         * sysdeps/unix/sysv/linux/ia64/nptl/clone2.S: File removed.
33829
33830 2014-08-04  Andreas Schwab  <schwab@suse.de>
33831
33832         * sysdeps/ieee754/ldbl-96/s_fma.c: Include <math_private.h>.
33833
33834 2014-08-03  Mike Frysinger  <vapier@gentoo.org>
33835
33836         * stdlib/tst-setcontext.c (test_stack): Fix coding style.
33837         (main): Likewise.
33838
33839 2014-08-01  Roland McGrath  <roland@hack.frob.com>
33840
33841         * sysdeps/unix/sysv/linux/arm/lowlevellock.h: File removed.
33842
33843 2014-08-01  Richard Henderon  <rth@redhat.com>
33844
33845         * sysdeps/ieee754/dbl-64/s_fma.c (__fma): Use math_force_eval before
33846         feclearexcept; use math_opt_barrier instead of open-coded asm; fix
33847         typo in exact zero test.
33848         * sysdeps/ieee754/ldbl-128/s_fmal.c (__fmal): Likewise.
33849         * sysdeps/ieee754/ldbl-96/s_fma.c (__fma): Likewise.
33850         * sysdeps/ieee754/ldbl-96/s_fmal.c (__fmal): Likewise.
33851
33852 2014-08-01  Roland McGrath  <roland@hack.frob.com>
33853
33854         * sysdeps/unix/sysv/linux/arm/sysdep.h (PTR_MANGLE_LOAD, PTR_MANGLE)
33855         (PTR_MANGLE2, PTR_DEMANGLE, PTR_DEMANGLE2): Move these macros...
33856         * sysdeps/arm/sysdep.h: ... here.
33857         [!__ASSEMBLER__]: Include <stdint.h>.
33858
33859 2014-08-01  Siddhesh Poyarekar  <siddhesh@redhat.com>
33860
33861         * include/libc-symbols.h (HAVE_LIBINTL_H): Define macro.
33862         (HAVE_WCTYPE_H): Likewise.
33863         (HAVE_ISWCTYPE): Likewise.
33864         (ENABLE_NLS): Likewise.
33865         * posix/regex_internal.h [(defined MB_CUR_MAX && HAVE_WCTYPE_H
33866         && HAVE_ISWCTYPE) || _LIBC]: Sync up with gnulib.
33867
33868         * posix/regex_internal.c: Check if DEBUG is defined and is
33869         set.
33870
33871         * include/libc-symbols.h (HAVE_MBSTATE_T): Define macro.
33872         (HAVE_MBSRTOWCS): Likewise.
33873         * posix/fnmatch.c: Include string.h unconditionally.
33874
33875 2014-08-01  Stefan Liebler  <stli@linux.vnet.ibm.com>
33876
33877         * NEWS: Explain the s390 jmp_buf / ucontext_t ABI change
33878         reversal.
33879
33880 2014-07-31  Roland McGrath  <roland@hack.frob.com>
33881
33882         * sysdeps/generic/safe-fatal.h: New file.
33883         * sysdeps/unix/sysv/linux/safe-fatal.h: New file.
33884         * nptl/forward.c: Include it.
33885         (__pthread_unwind): Use __safe_fatal as default action, rather
33886         than a bogus use of INTERNAL_SYSCALL that could never work.
33887
33888         * config.h.in (HAVE_BUILTIN_TRAP): New #define to 0.
33889         * configure.ac (libc_cv_builtin_trap): New test.
33890         * configure: Regenerated.
33891         * sysdeps/generic/abort-instr.h [HAVE_BUILTIN_TRAP]
33892         (ABORT_INSTRUCTION): Define using __builtin_trap.
33893
33894         * nptl/pthreadP.h (SIGCANCEL, SIGTIMER, SIGSETXID, __xidcmd): Moved ...
33895         * sysdeps/unix/sysv/linux/nptl-signals.h: ... to this new file.
33896         * sysdeps/nptl/nptl-signals.h: New file.
33897         * nptl/pthreadP.h: Include <nptl-signals.h>.
33898
33899 2014-07-31  Stefan Liebler  <stli@linux.vnet.ibm.com>
33900
33901         * sysdeps/s390/s390-64/utf16-utf32-z9.c
33902         (ONE_DIRECTION): Define.
33903         * sysdeps/s390/s390-64/utf8-utf16-z9.c
33904         (ONE_DIRECTION): Define.
33905         * sysdeps/s390/s390-64/utf8-utf32-z9.c
33906         (ONE_DIRECTION): Define.
33907
33908 2014-07-31  Stefan Liebler  <stli@linux.vnet.ibm.com>
33909
33910         * sysdeps/s390/Makefile: Delete file.
33911         * sysdeps/s390/Versions (GLIBC_2.19): Remove __setjmp.
33912         * sysdeps/s390/__longjmp.c: Delete file.
33913         * sysdeps/s390/bits/setjmp.h (__s390_jmp_buf):
33914         Remove fields __flags and __reserved.
33915         * sysdeps/s390/longjmp.c: Include setjmp/longjmp.c
33916         and add versioning.
33917         * sysdeps/s390/rtld-__longjmp.c: Delete file.
33918         * sysdeps/s390/rtld-global-offsets.sym: Likewise.
33919         * sysdeps/s390/rtld-setjmp.S: Likewise.
33920         * sysdeps/s390/s390-32/__longjmp-common.c: Move to ...
33921         * sysdeps/s390/s390-32/__longjmp.c: ... here.
33922         * sysdeps/s390/s390-32/setjmp-common.S: Move to ...
33923         * sysdeps/s390/s390-32/setjmp.S: ... here.
33924         Add versioning.
33925         (__sigsetjmp): Remove setting __flags field.
33926         * sysdeps/s390/s390-64/__longjmp-common.c:Move to ...
33927         * sysdeps/s390/s390-64/__longjmp.c: ... here.
33928         * sysdeps/s390/s390-64/setjmp-common.S: Move to ...
33929         * sysdeps/s390/s390-64/setjmp.S: ... here.
33930         Add versioning.
33931         (__sigsetjmp): Remove setting __flags field.
33932         * sysdeps/s390/setjmp.S: Delete file.
33933         * sysdeps/s390/sigjmp.c: Likewise.
33934         * sysdeps/s390/v1-longjmp.c: Likewise.
33935         * sysdeps/s390/v1-setjmp.h: Likewise.
33936         * sysdeps/s390/v1-sigjmp.c: Likewise.
33937         * sysdeps/unix/sysv/linux/s390/Makefile (sysdep_routines):
33938         Remove v1-longjmp_chk.
33939         * sysdeps/unix/sysv/linux/s390/getcontext.S: Delete file.
33940         * sysdeps/unix/sysv/linux/s390/longjmp_chk.c:
33941         Include debug/longjmp_chk.c and add versioning.
33942         * sysdeps/unix/sysv/linux/s390/pt-longjmp.c:
33943         Include nptl/pt-longjmp.c and add versioning.
33944         * sysdeps/unix/sysv/linux/s390/rtld-getcontext.S: Delete file.
33945         * sysdeps/unix/sysv/linux/s390/s390-32/____longjmp_chk.c:
33946         Include __longjmp.c.
33947         * sysdeps/unix/sysv/linux/s390/s390-32/getcontext-common.S:
33948         Move to ...
33949         * sysdeps/unix/sysv/linux/s390/s390-32/getcontext.S: ... here.
33950         (__getcontext): Remove setting __flags field.
33951         Add versioning.
33952         * sysdeps/unix/sysv/linux/s390/s390-32/setcontext.S:
33953         Don't restore upper high grps.
33954         * sysdeps/unix/sysv/linux/s390/s390-32/swapcontext.S:
33955         Likewise.
33956         (__swapcontext): Remove setting uc_flags field.
33957         * sysdeps/unix/sysv/linux/s390/s390-32/ucontext_i.sym:
33958         Delete file.
33959         * sysdeps/unix/sysv/linux/s390/s390-64/____longjmp_chk.c:
33960         Include __longjmp.c.
33961         * sysdeps/unix/sysv/linux/s390/s390-64/getcontext-common.S:
33962         Move to ...
33963         * sysdeps/unix/sysv/linux/s390/s390-64/getcontext.S: ... here.
33964         (__getcontext): Remove setting __flags field.
33965         Add versioning.
33966         * sysdeps/unix/sysv/linux/s390/s390-64/swapcontext.S:
33967         (__swapcontext): Remove setting uc_flags field.
33968         * unix/sysv/linux/s390/s390-64/ucontext_i.sym: Delete file.
33969         * sysdeps/unix/sysv/linux/s390/sys/ucontext.h (ucontext):
33970         Remove fields uc_high_gprs and __reserved.
33971         * sysdeps/unix/sysv/linux/s390/ucontext_i.sym:
33972         New file with reverted content.
33973         * sysdeps/unix/sysv/linux/s390/v1-longjmp_chk.c: Delete file.
33974         * sysdeps/unix/sysv/linux/s390/s390-32/libc.abilist:
33975         Regenerated.
33976         * sysdeps/unix/sysv/linux/s390/s390-64/libc.abilist:
33977         Regenerated.
33978
33979 2014-07-31  Andreas Schwab  <schwab@suse.de>
33980
33981         * config.h.in (HAVE_IFUNC): Define to 0.
33982         * rt/clock-compat.c [HAVE_IFUNC]: Check for value, not
33983         definedness.
33984
33985 2014-07-30  Ling Ma  <ling.ml@alibaba-inc.com>
33986
33987         * sysdeps/x86_64/multiarch/Makefile (sysdep_routines): Add
33988         memmove-avx-unaligned, memcpy-avx-unaligned and
33989         mempcpy-avx-unaligned.
33990         * sysdeps/x86_64/multiarch/ifunc-impl-list.c (__libc_ifunc_impl_list):
33991         Add tests for AVX memcpy functions.
33992         * sysdeps/x86_64/multiarch/memcpy.S: Add support for AVX memcpy.
33993         * sysdeps/x86_64/multiarch/memcpy_chk.S: Add support for AVX
33994         memcpy_chk.
33995         * sysdeps/x86_64/multiarch/memmove.c: Add support for AVX memmove.
33996         * sysdeps/x86_64/multiarch/memmove_chk.c: Add support for AVX
33997         memmove_chk.
33998         * sysdeps/x86_64/multiarch/mempcpy.S: Add support for AVX mempcpy.
33999         * sysdeps/x86_64/multiarch/mempcpy_chk.S: Add support for AVX
34000         mempcpy_chk.
34001         * sysdeps/x86_64/multiarch/memcpy-avx-unaligned.S: New file.
34002         * sysdeps/x86_64/multiarch/mempcpy-avx-unaligned.S: New file.
34003         * sysdeps/x86_64/multiarch/memmove-avx-unaligned.S: New file.
34004
34005 2013-07-29  Adhemerval Zanella  <azanella@linux.vnet.ibm.com>
34006
34007         [BZ #17213]
34008         * sysdeps/powerpc/powerpc64/entry.h: Fix TEXT_START definition for
34009         powerpc64le.
34010
34011 2014-07-29  Jeff Layton  <jlayton@poochiereds.net>
34012
34013         [BZ #16839]
34014         * manual/llio.texi: Add section about open file description locks.
34015         * manual/examples/ofdlocks.c: Example of open file description
34016         lock usage.
34017         * sysdeps/unix/sysv/linux/bits/fcntl-linux.h: Define F_OFD_GETLK,
34018         F_OFD_SETLK, and F_OFD_SETLKW.
34019
34020 2014-07-23  Allan McRae  <allan@archlinux.org>
34021
34022         * po/es.po: Update Spanish translation from translation project.
34023
34024 2014-07-18  Andreas Schwab  <schwab@linux-m68k.org>
34025
34026         * sysdeps/unix/sysv/linux/m68k/lowlevellock.h: Removed.
34027
34028 2014-07-17  Maciej W. Rozycki  <macro@codesourcery.com>
34029
34030         [BZ #17078]
34031         * sysdeps/arm/dl-machine.h (elf_machine_rela)
34032         [RESOLVE_CONFLICT_FIND_MAP]: Handle R_ARM_TLS_DESC relocation.
34033         (elf_machine_lazy_rel): Handle prelinked R_ARM_TLS_DESC entries.
34034
34035 2014-07-17  Joseph Myers  <joseph@codesourcery.com>
34036
34037         [BZ #17088]
34038         * math/fesetenv.c (__fesetenv)
34039         [FE_NOMASK_ENV && FE_ALL_EXCEPT != 0]: Return 1 for FE_NOMASK_ENV.
34040         * math/feupdateenv.c (__feupdateenv)
34041         [FE_NOMASK_ENV && FE_ALL_EXCEPT != 0]: Likewise.
34042
34043         * sysdeps/unix/sysv/linux/s390/kernel-features.h: New file.
34044         * sysdeps/unix/sysv/linux/kernel-features.h [__s390__]
34045         (__ASSUME_SOCKETCALL): Do not define.
34046
34047         * sysdeps/unix/sysv/linux/sh/kernel-features.h: New file.
34048         * sysdeps/unix/sysv/linux/kernel-features.h [__sh__]
34049         (__ASSUME_SOCKETCALL): Do not define.
34050         (__ASSUME_ST_INO_64_BIT): Define unconditionally.
34051         [__LINUX_KERNEL_VERSION >= 0x020625 && __sh__]
34052         (__ASSUME_ACCEPT4_SYSCALL): Do not define.
34053         [__LINUX_KERNEL_VERSION >= 0x020625 && __sh__]
34054         (__ASSUME_RECVMMSG_SYSCALL): Likewise.
34055         [__LINUX_KERNEL_VERSION >= 0x030000 && __sh__]
34056         (__ASSUME_SENDMMSG_SYSCALL): Likewise.
34057         [__sh__] (__ASSUME_SENDMMSG_SYSCALL_WITH_SOCKETCALL): Likewise.
34058
34059         * sysdeps/unix/sysv/linux/powerpc/kernel-features.h: New file.
34060         * sysdeps/unix/sysv/linux/kernel-features.h [__powerpc__]
34061         (__ASSUME_SOCKETCALL): Do not define.
34062         (__ASSUME_IPC64): Define unconditionally.
34063         [__LINUX_KERNEL_VERSION >= 0x020625 && __powerpc__]
34064         (__ASSUME_ACCEPT4_SYSCALL): Do not define.
34065         [__LINUX_KERNEL_VERSION >= 0x020625 && __powerpc__]
34066         (__ASSUME_RECVMMSG_SYSCALL): Likewise.
34067         [__LINUX_KERNEL_VERSION >= 0x030000 && __powerpc__]
34068         (__ASSUME_SENDMMSG_SYSCALL): Likewise.
34069         [__powerpc__] (__ASSUME_SENDMMSG_SYSCALL_WITH_SOCKETCALL):
34070         Likewise.
34071
34072         * sysdeps/unix/sysv/linux/sparc/kernel-features.h: New file.
34073         * sysdeps/unix/sysv/linux/kernel-features.h [__sparc__]
34074         (__ASSUME_SOCKETCALL): Do not define.
34075         (__ASSUME_SET_ROBUST_LIST): Define unconditionally.
34076         (__ASSUME_FUTEX_LOCK_PI): Likewise.
34077         [__sparc__] (__ASSUME_ACCEPT4_SYSCALL): Do not define.
34078         [__sparc__] (__ASSUME_ACCEPT4_SYSCALL_WITH_SOCKETCALL): Likewise.
34079         (__ASSUME_REQUEUE_PI): Define unconditionally.
34080         [__LINUX_KERNEL_VERSION >= 0x020621 && __sparc__]
34081         (__ASSUME_RECVMMSG_SYSCALL): Do not define.
34082         [__sparc__] (__ASSUME_RECVMMSG_SYSCALL_WITH_SOCKETCALL): Likewise.
34083         [__LINUX_KERNEL_VERSION >= 0x030000 && __sparc__]
34084         (__ASSUME_SENDMMSG_SYSCALL): Likewise.
34085         [__sparc__] (__ASSUME_SENDMMSG_SYSCALL_WITH_SOCKETCALL): Likewise.
34086
34087         * sysdeps/unix/sysv/linux/i386/kernel-features.h: New file.
34088         * sysdeps/unix/sysv/linux/kernel-features.h [__i386__]
34089         (__ASSUME_SOCKETCALL): Do not define.
34090         [__LINUX_KERNEL_VERSION >= 0x020621 && __i386__]
34091         (__ASSUME_RECVMMSG_SYSCALL): Likewise.
34092         [__i386__] (__ASSUME_RECVMMSG_SYSCALL_WITH_SOCKETCALL): Likewise.
34093         [__LINUX_KERNEL_VERSION >= 0x030000 && __i386__]
34094         (__ASSUME_SENDMMSG_SYSCALL): Likewise.
34095         [__i386__] (__ASSUME_SENDMMSG_SYSCALL_WITH_SOCKETCALL): Likewise.
34096
34097         * sysdeps/unix/sysv/linux/x86_64/kernel-features.h: New file.
34098         * sysdeps/unix/sysv/linux/kernel-features.h [__x86_64__]
34099         (__ASSUME_ACCEPT4_SYSCALL): Do not define.
34100         [__LINUX_KERNEL_VERSION >= 0x020621 && __x86_64__]
34101         (__ASSUME_RECVMMSG_SYSCALL): Likewise.
34102         [__LINUX_KERNEL_VERSION >= 0x030000 && __x86_64__]
34103         (__ASSUME_SENDMMSG_SYSCALL): Likewise.
34104         [__x86_64__ && __LINUX_KERNEL_VERSION >= 0x030100]
34105         (__ASSUME_GETCPU_SYSCALL): Likewise.
34106
34107         * aclocal.m4 (LIBC_SLIBDIR_RTLDDIR): New macro.
34108         * sysdeps/gnu/configure.ac: Use LIBC_SLIBDIR_RTLDDIR.  Remove
34109         cases for individual architectures.
34110         * sysdeps/gnu/configure: Regenerated.
34111         * sysdeps/unix/sysv/linux/aarch64/configure.ac: Use
34112         LIBC_SLIBDIR_RTLDDIR.
34113         * sysdeps/unix/sysv/linux/aarch64/configure: Regenerated.
34114         * sysdeps/unix/sysv/linux/mips/configure.ac: Use
34115         LIBC_SLIBDIR_RTLDDIR.
34116         * sysdeps/unix/sysv/linux/mips/configure: Regenerated.
34117         * sysdeps/unix/sysv/linux/powerpc/powerpc64/configure.ac: Use
34118         LIBC_SLIBDIR_RTLDDIR.
34119         * sysdeps/unix/sysv/linux/powerpc/powerpc64/configure:
34120         Regenerated.
34121         * sysdeps/unix/sysv/linux/s390/s390-64/configure.ac: New file.
34122         * sysdeps/unix/sysv/linux/s390/s390-64/configure: New generated
34123         file.
34124         * sysdeps/unix/sysv/linux/sparc/sparc64/configure.ac: New file.
34125         * sysdeps/unix/sysv/linux/sparc/sparc64/configure: New generated
34126         file.
34127         * sysdeps/unix/sysv/linux/x86_64/64/configure.ac: New file.
34128         * sysdeps/unix/sysv/linux/x86_64/64/configure: New generated file.
34129         * sysdeps/unix/sysv/linux/x86_64/x32/configure.ac: New file.
34130         * sysdeps/unix/sysv/linux/x86_64/x32/configure: Generate.
34131
34132         * sysdeps/aarch64/shlib-versions: Move to ...
34133         * sysdeps/unix/sysv/linux/aarch64/shlib-versions: ... here.
34134         * sysdeps/alpha/shlib-versions: Move to ...
34135         * sysdeps/unix/sysv/linux/alpha/shlib-versions: ... here.
34136         * sysdeps/arm/shlib-versions: Move to ...
34137         * sysdeps/unix/sysv/linux/arm/shlib-versions: ... here.
34138         * sysdeps/hppa/shlib-versions: Move all contents except for
34139         libgcc_s entry to ...
34140         * sysdeps/unix/sysv/linux/hppa/shlib-versions: ... here.  Merge in
34141         entry from ...
34142         * sysdeps/hppa/nptl/shlib-versions: ... here.  Remove file.
34143         * sysdeps/ia64/shlib-versions: Move to ...
34144         * sysdeps/unix/sysv/linux/ia64/shlib-versions: ... here.  Merge in
34145         entry from ...
34146         * sysdeps/ia64/nptl/shlib-versions: ... here.  Remove file.
34147         * sysdeps/m68k/coldfire/shlib-versions: Move to ...
34148         * sysdeps/unix/sysv/linux/m68k/coldfire/shlib-versions: ... here.
34149         * sysdeps/microblaze/shlib-versions: Move to ...
34150         * sysdeps/unix/sysv/linux/microblaze/shlib-versions: ... here.
34151         * sysdeps/mips/shlib-versions: Move to ...
34152         * sysdeps/unix/sysv/linux/mips/shlib-versions: ... here.  Merge in
34153         entry from ...
34154         * sysdeps/mips/nptl/shlib-versions: ... here.  Remove file.
34155         * sysdeps/tile/shlib-versions: Move to ...
34156         * sysdeps/unix/sysv/linux/tile/shlib-versions: ... here.
34157         * sysdeps/unix/sysv/linux/x86_64/64/shlib-versions: Merge in entry
34158         from ...
34159         * sysdeps/x86_64/64/shlib-versions: ... here.  Remove file.
34160         * sysdeps/unix/sysv/linux/x86_64/x32/shlib-versions: Merge in
34161         entry from ...
34162         * sysdeps/x86_64/x32/shlib-versions: ... here.  Remove file.
34163
34164 2014-07-17  Will Newton  <will.newton@linaro.org>
34165
34166         * sysdeps/arm/bits/atomic.h
34167         (__arch_compare_and_exchange_bool_8_int): Evaluate to zero.
34168         (__arch_compare_and_exchange_bool_16_int): Likewise.
34169         (__arch_compare_and_exchange_bool_64_int): Likewise.
34170
34171         * iconv/loop.c: Move definition of LOOPFCT and gconv_btowc
34172         into an #else block.
34173
34174 2014-07-16  Roland McGrath  <roland@hack.frob.com>
34175
34176         * sysdeps/arm/preconfigure.ac: Apply EABI sanity check to arm*, not
34177         just Linux configurations.  Test empirically that the compiler sets
34178         __ARM_EABI__, rather than using the tuple to decide.
34179         * sysdeps/arm/preconfigure: Regenerated.
34180         * sysdeps/unix/sysv/linux/arm/configure: File removed.
34181         * sysdeps/unix/sysv/linux/arm/configure.ac: File removed,
34182         contents appended ...
34183         * sysdeps/arm/configure.ac: ... here.
34184         * sysdeps/arm/configure: Regenerated.
34185
34186 2014-07-15  Roland McGrath  <roland@hack.frob.com>
34187
34188         * nptl/pthread_kill.c: New file.
34189         * nptl/pthread_sigmask.c: New file.
34190         * nptl/pthread_sigqueue.c: New file.
34191
34192         * sysdeps/nptl/lowlevellock.h: New file.
34193         * sysdeps/unix/sysv/linux/lowlevellock-futex.h: New file.
34194         * sysdeps/nptl/lowlevellock-futex.h: New file.
34195
34196         * nptl/pthreadP.h (__current_sigrtmin, __current_sigrtmax):
34197         Remove dead declarations.
34198
34199 2014-07-14  H.J. Lu  <hongjiu.lu@intel.com>
34200
34201         * config.h.in (HAVE_AVX2_SUPPORT): New #undef.
34202         * sysdeps/i386/configure.ac: Set HAVE_AVX2_SUPPORT and
34203         config-cflags-avx2.
34204         * sysdeps/x86_64/configure.ac: Likewise.
34205         * sysdeps/i386/configure: Regenerated.
34206         * sysdeps/x86_64/configure: Likewise.
34207         * sysdeps/x86_64/multiarch/Makefile (sysdep_routines): Add
34208         memset-avx2 only if config-cflags-avx2 is yes.
34209         * sysdeps/x86_64/multiarch/ifunc-impl-list.c (__libc_ifunc_impl_list):
34210         Tests for memset_chk and memset only if HAVE_AVX2_SUPPORT is
34211         defined.
34212         * sysdeps/x86_64/multiarch/memset.S: Define multiple versions
34213         only if HAVE_AVX2_SUPPORT is defined.
34214         * sysdeps/x86_64/multiarch/memset_chk.S: Likewise.
34215
34216 2014-07-14  Alan Modra  <amodra@gmail.com>
34217
34218         [BZ #17153]
34219         * elf/elf.h (DT_PPC64_NUM): Correct value.
34220         * NEWS: Add to fixed bug list.
34221
34222 2014-07-13  Jim Meyering  <meyering@fb.com>
34223
34224         [BZ 17150]
34225         regex: don't deref NULL upon heap allocation failure
34226         * posix/regcomp.c: (parse_dup_op): Handle duplicate_tree
34227         failure in one more place.
34228         To trigger the segfault, configure grep -with-included-regex,
34229         build it, and run these commands:
34230         ( ulimit -v 300000; echo a|src/grep -E a+++++++++++++++++++++ )
34231
34232 2014-07-13  Andreas Schwab  <schwab@linux-m68k.org>
34233
34234         * sysdeps/m68k/m680x0/fpu/libm-test-ulps: Update.
34235
34236 2014-07-11  Richard Henderson  <rth@redhat.com>
34237
34238         * sysdeps/aarch64/libm-test-ulps: Update.
34239
34240 2014-07-10  Florian Weimer  <fweimer@redhat.com>
34241
34242         [BZ #17135]
34243         * nptl/pthreadP.h (__nptl_setxid_error): Declare function.
34244         * nptl/allocatestack.c (__nptl_setxid_error): New function.
34245         (__nptl_setxid): Initialize error member.  Call
34246         __nptl_setxid_error.
34247         * nptl/nptl-init.c (sighandler_setxid): Call __nptl_setxid_error.
34248         * nptl/descr.h (struct xid_command): Add error member.
34249         * nptl/tst-setuid3.c: New file.
34250         * nptl/Makefile (tests): Add it.
34251
34252 2014-07-10  Adhemerval Zanella  <azanella@linux.vnet.ibm.com>
34253
34254         * sysdeps/unix/sysv/linux/powerpc/lowlevellock.h (__lll_base_trylock):
34255         New define.
34256         (__lll_trylock): Use __lll_base_trylock.
34257         (__lll_cond_trylock): Likewise.
34258
34259 2014-07-10  Roland McGrath  <roland@hack.frob.com>
34260
34261         * nptl/pthread_create.c (start_thread): Use atomic_or and
34262         lll_futex_wake directly rather than lll_robust_dead.
34263         * sysdeps/unix/sysv/linux/aarch64/lowlevellock.h
34264         (lll_robust_dead): Macro removed.
34265         * sysdeps/unix/sysv/linux/aarch64/lowlevellock.h: Likewise.
34266         * sysdeps/unix/sysv/linux/alpha/lowlevellock.h: Likewise.
34267         * sysdeps/unix/sysv/linux/arm/lowlevellock.h: Likewise.
34268         * sysdeps/unix/sysv/linux/hppa/nptl/lowlevellock.h: Likewise.
34269         * sysdeps/unix/sysv/linux/i386/lowlevellock.h: Likewise.
34270         * sysdeps/unix/sysv/linux/ia64/nptl/lowlevellock.h: Likewise.
34271         * sysdeps/unix/sysv/linux/m68k/lowlevellock.h: Likewise.
34272         * sysdeps/unix/sysv/linux/microblaze/lowlevellock.h: Likewise.
34273         * sysdeps/unix/sysv/linux/mips/lowlevellock.h: Likewise.
34274         * sysdeps/unix/sysv/linux/powerpc/lowlevellock.h: Likewise.
34275         * sysdeps/unix/sysv/linux/s390/lowlevellock.h: Likewise.
34276         * sysdeps/unix/sysv/linux/sh/lowlevellock.h: Likewise.
34277         * sysdeps/unix/sysv/linux/sparc/lowlevellock.h: Likewise.
34278         * sysdeps/unix/sysv/linux/tile/lowlevellock.h: Likewise.
34279         * sysdeps/unix/sysv/linux/x86_64/lowlevellock.h: Likewise.
34280
34281         * nptl/pthread_mutex_trylock.c (__pthread_mutex_trylock):
34282         Use atomic_compare_and_exchange_val_acq directly rather than
34283         lll_robust_trylock.
34284         * sysdeps/unix/sysv/linux/aarch64/lowlevellock.h
34285         (__lll_robust_trylock, lll_robust_trylock): Removed.
34286         * sysdeps/unix/sysv/linux/alpha/lowlevellock.h: Likewise.
34287         * sysdeps/unix/sysv/linux/arm/lowlevellock.h: Likewise.
34288         * sysdeps/unix/sysv/linux/hppa/nptl/lowlevellock.h: Likewise.
34289         * sysdeps/unix/sysv/linux/i386/lowlevellock.h: Likewise.
34290         * sysdeps/unix/sysv/linux/ia64/nptl/lowlevellock.h: Likewise.
34291         * sysdeps/unix/sysv/linux/m68k/lowlevellock.h: Likewise.
34292         * sysdeps/unix/sysv/linux/microblaze/lowlevellock.h: Likewise.
34293         * sysdeps/unix/sysv/linux/mips/lowlevellock.h: Likewise.
34294         * sysdeps/unix/sysv/linux/powerpc/lowlevellock.h: Likewise.
34295         * sysdeps/unix/sysv/linux/s390/lowlevellock.h: Likewise.
34296         * sysdeps/unix/sysv/linux/sh/lowlevellock.h: Likewise.
34297         * sysdeps/unix/sysv/linux/sparc/lowlevellock.h: Likewise.
34298         * sysdeps/unix/sysv/linux/tile/lowlevellock.h: Likewise.
34299         * sysdeps/unix/sysv/linux/x86_64/lowlevellock.h: Likewise.
34300
34301 2014-07-02  Florian Weimer  <fweimer@redhat.com>
34302
34303         * manual/locale.texi (Locale Names): New section documenting
34304         locale name syntax.  Adjust menu and node chaining accordingly.
34305         (Choosing Locale): Reference Locale Names, Locale Categories.
34306         Mention setting LC_ALL=C.  Reflect that name syntax is now
34307         documented.
34308         (Locale Categories): New section title.  Reference Locale Names.
34309         LC_ALL is an environment variable, but not a category.
34310         (Setting the Locale): Remove "locale -a" invocation and LOCPATH
34311         description, now in Locale Name.  Reference that section.  Locale
34312         name syntax is now documented.
34313
34314 2014-07-02  Florian Weimer  <fweimer@redhat.com>
34315
34316         [BZ #17137]
34317         * locale/findlocale.c (name_present, valid_locale_name): New
34318         functions.
34319         (_nl_find_locale): Use the loc_name variable to store name
34320         candidates.  Call name_present and valid_locale_name to check and
34321         validate locale names.  Return an error if the locale is invalid.
34322
34323 2014-07-02  Florian Weimer  <fweimer@redhat.com>
34324
34325         * locale/setlocale.c (setlocale): Use strdup for allocating
34326         composite name copy.
34327
34328 2014-07-10  Siddhesh Poyarekar  <siddhesh@redhat.com>
34329
34330         Sync up with gnulib.
34331         * misc/error.c: Use !_LIBC instead of HAVE_CONFIG_H.
34332         [!_LIBC && ENABLE_NLS]: Include gettext.h.
34333         [_LIBC]: Define USE_UNLOCKED_IO, _GL_ATTRIBUTE_FORMAT_PRINTF
34334         and _GL_ARG_NONNULL.
34335         [USE_UNLOCKED_IO]: Include unlocked-io.h.
34336         [!_LIBC]: Include code for Windows and Cygwin.
34337         [!_LIBC && !HAVE_DECL_STRERROR_R && !STRERROR_R_CHAR_P]:
34338         Include prototype for int strerror_r.
34339         [!_LIBC] (is_open): New function.
34340         (flush_stdout): New function.
34341         (print_errno_message): Use it.
34342         (error): Likewise.
34343         (error_at_line): Likewise.
34344         (error_tail) Add function attribute macros.  Use
34345         __builtin_expect.
34346
34347         * time/strptime_l.c [_LIBC]: Define HAVE_LOCALTIME_R.
34348
34349         * time/strftime_l.c [_LIBC]: Define HAVE_STRFTIME.
34350
34351         * io/ftw.c: Include sys/param.h unconditionally.
34352
34353         * locale/programs/simple-hash.c [!HAVE_OBSTACK]: Remove code.
34354
34355         [BZ #17125]
34356         * sysdeps/unix/sysv/linux/check_pf.c (cache): Don't use
34357         libc_freeres_ptr.
34358         (freecache): New function to free CACHE on exit.
34359
34360         * sunrpc/xdr.c (xdr_string): Add comment about SIZE
34361         initialization.
34362
34363 2014-07-09  David S. Miller  <davem@davemloft.net>
34364
34365         * sysdeps/sparc/fpu/libm-test-ulps: Update.
34366
34367         * sysdeps/sparc/nptl/internaltypes.h: Delete.
34368         * sysdeps/sparc/nptl/sparc-nptl.h: New file.
34369         * sysdeps/sparc/nptl/pthread_barrier_destroy.c: Include it.
34370         * sysdeps/sparc/nptl/pthread_barrier_init.c: Likewise.
34371         * sysdeps/sparc/nptl/pthread_barrier_wait.c: Likewise.
34372         * sysdeps/sparc/nptl/sem_init.c: Likewise.
34373         * sysdeps/sparc/nptl/sem_post.c: Likewise.
34374         * sysdeps/sparc/nptl/sem_timedwait.c: Likewise.
34375         * sysdeps/sparc/nptl/sem_wait.c: Likewise.
34376         * sysdeps/sparc/sparc32/nptl/pthread_barrier_wait.c: Likewise.
34377         * sysdeps/sparc/sparc32/nptl/sem_post.c: Likewise.
34378         * sysdeps/sparc/sparc32/nptl/sem_timedwait.c: Likewise.
34379         * sysdeps/sparc/sparc32/nptl/sem_wait.c: Likewise.
34380
34381 2014-07-09  Andreas Schwab  <schwab@suse.de>
34382
34383         * sysdeps/powerpc/test-gettimebase.c (do_test): Add newline to
34384         output.
34385         * sysdeps/unix/sysv/linux/powerpc/test-gettimebasefreq.c
34386         (do_test): Likewise.
34387
34388         * sysdeps/i386/fpu/libm-test-ulps: Update ULPs.
34389
34390 2014-07-09  Will Newton  <will.newton@linaro.org>
34391
34392         * sysdeps/aarch64/tlsdesc.c (_dl_unmap): Test SHARED with #ifdef.
34393         * sysdeps/arm/tlsdesc.c (_dl_unmap): Likewise.
34394         * sysdeps/i386/tlsdesc.c (_dl_unmap): Likewise.
34395         * sysdeps/x86_64/tlsdesc.c (_dl_unmap): Likewise.
34396         * sysdeps/hppa/start.S (_start): Likewise.
34397
34398 2014-07-09  Siddhesh Poyarekar  <siddhesh@redhat.com>
34399
34400         * sunrpc/xdr.c (xdr_string): Initialize SIZE to 0.
34401
34402         * sysdeps/generic/unwind-pe.h: Only check if __cplusplus is
34403         defined.
34404
34405 2014-07-08  Siddhesh Poyarekar  <siddhesh@redhat.com>
34406
34407         * resolv/res_query.c (__libc_res_nsearch): Dereference resplen2
34408         after checking that it is non-NULL.
34409
34410         * sysdeps/i386/dl-machine.h: Define ELF_MACHINE_NO_REL.
34411
34412 2014-07-08  Adhemerval Zanella  <azanella@linux.vnet.ibm.com>
34413
34414         * sysdeps/powerpc/memmove.c: Remove file.
34415         * sysdeps/powerpc/powerpc32/power4/memcopy.h
34416         [MEMCPY_OK_FOR_FWD_MEMMOVE]: Define it to 1.
34417         * sysdeps/powerpc/powerpc32/power4/multiarch/memmove-power7.c
34418         [MEMCPY_OK_FOR_FWD_MEMMOVE]: Remove define.
34419         * sysdeps/powerpc/powerpc32/power4/multiarch/memmove-ppc.c:
34420         [MEMCPY_OK_FOR_FWD_MEMMOVE]: Likewise.
34421         * sysdeps/powerpc/powerpc64/multiarch/memmove-ppc64.c: Include default
34422         string memmove instead of removed powerpc one.
34423
34424         * sysdeps/powerpc/powerpc32/power4/multiarch/strcasecmp_l-power7.S:
34425         [weak_alias]: Fix compiler warning due trailing data.
34426         * sysdeps/powerpc/powerpc32/power4/multiarch/strcasecmp-power7.S:
34427         [weak_alias]: Likewise.
34428         * sysdeps/powerpc/powerpc64/multiarch/strcat-power7.c: Fix compile
34429         warnigs due missing definition of __strcpy_power7 and __strlen_power7.
34430
34431         * sysdeps/powerpc/powerpc32/power4/multiarch/ifunc-impl-list.c
34432         (__libc_ifunc_impl_list): Add memmove functions.
34433
34434 2014-07-08  Siddhesh Poyarekar  <siddhesh@redhat.com>
34435
34436         * localedata/tests-mbwc/dat_iswalnum.c [SHOJI_IS_RIGHT]:
34437         Remove code.
34438         * localedata/tests-mbwc/dat_iswalpha.c [SHOJI_IS_RIGHT]:
34439         Likewise.
34440         * localedata/tests-mbwc/dat_iswctype.c [SHOJI_IS_RIGHT]:
34441         Likewise.
34442         * localedata/tests-mbwc/dat_iswgraph.c [SHOJI_IS_RIGHT]:
34443         Likewise.
34444         * localedata/tests-mbwc/dat_iswprint.c [SHOJI_IS_RIGHT]:
34445         Likewise.
34446         * localedata/tests-mbwc/dat_iswpunct.c [SHOJI_IS_RIGHT]:
34447         Likewise.
34448         * localedata/tests-mbwc/dat_mbrlen.c [SHOJI_IS_RIGHT]:
34449         Likewise.
34450         * localedata/tests-mbwc/dat_mbstowcs.c [SHOJI_IS_RIGHT]:
34451         Likewise.
34452         * localedata/tests-mbwc/dat_mbtowc.c [SHOJI_IS_RIGHT]:
34453         Likewise.
34454         * localedata/tests-mbwc/dat_strcoll.c [SHOJI_IS_RIGHT]:
34455         Likewise.
34456         * localedata/tests-mbwc/dat_swscanf.c [SHOJI_IS_RIGHT]:
34457         Likewise.
34458         * localedata/tests-mbwc/dat_towctrans.c [SHOJI_IS_RIGHT]:
34459         Likewise.
34460         * localedata/tests-mbwc/dat_wcscoll.c [SHOJI_IS_RIGHT]:
34461         Likewise.
34462         * localedata/tests-mbwc/dat_wcswidth.c [SHOJI_IS_RIGHT]:
34463         Likewise.
34464         * localedata/tests-mbwc/dat_wctob.c [SHOJI_IS_RIGHT]:
34465         Likewise.
34466         * localedata/tests-mbwc/dat_wcwidth.c [SHOJI_IS_RIGHT]:
34467         Likewise.
34468         * localedata/tests-mbwc/tst_towctrans.c [SHOJI_IS_RIGHT]:
34469         Likewise.
34470
34471 2014-07-07  Adhemerval Zanella  <azanella@linux.vnet.ibm.com>
34472
34473         * sysdeps/powerpc/powerpc64/power7/memcpy.S: Align VSX copies to 16B
34474         to avoid alignment traps in non-cacheable memory.
34475         * sysdeps/powerpc/powerpc32/power7/memcpy.S: Likewise.
34476
34477         * sysdeps/powerpc/powerpc32/power4/multiarch/Makefile: Add memmove
34478         multiarch objects.
34479         * sysdeps/powerpc/powerpc32/power4/multiarch/memmove-power7.c: New
34480         file: multiarch power7 memmove.
34481         * sysdeps/powerpc/powerpc32/power4/multiarch/memmove-ppc.c: New file:
34482         multiarch default memmove.
34483         * sysdeps/powerpc/powerpc32/power4/multiarch/memmove.c: New file:
34484         multiarch memove for powerpc32/power4.
34485
34486         * string/bcopy.c: Use full path to include memmove.c.
34487         * sysdeps/powerpc/powerpc64/multiarch/Makefile: Add memmove and bcopy
34488         multiarch objects.
34489         * sysdeps/powerpc/powerpc64/multiarch/bcopy-ppc64.c: New file: default
34490         bcopy for powerpc64.
34491         * sysdeps/powerpc/powerpc64/multiarch/bcopy.c: New file: multiarch
34492         bcopy for powerpc64.
34493         * sysdeps/powerpc/powerpc64/multiarch/ifunc-impl-list.c: Add bcopy
34494         and memmove implementations.
34495         * sysdeps/powerpc/powerpc64/multiarch/memmove-power7.S: New file:
34496         optimized multiarch memmove for POWER7/powerpc64.
34497         * sysdeps/powerpc/powerpc64/multiarch/memmove-ppc64.c: New file:
34498         default multiarch memmove for powerpc64.
34499         * sysdeps/powerpc/powerpc64/multiarch/memmove.c: New file: memmove
34500         multiarch for powerpc64.
34501         * sysdeps/powerpc/powerpc64/power7/bcopy.c: New file: optimized bcopy
34502         for POWER7/powerpc64.
34503         * sysdeps/powerpc/powerpc64/power7/memmove.S: New file: optimized
34504         memmove for POWER7/powerpc64.
34505
34506         * sysdeps/powerpc/memmove.c (memmove): Cleanup impplementation to use
34507         glibc default one.
34508
34509         * sysdeps/powerpc/bits/link.h [_CALL_ELF]: Guard check for
34510         __ELF_NATIVE_CLASS equal to 64.
34511
34512 2014-07-07  Roland McGrath  <roland@hack.frob.com>
34513
34514         * sysdeps/nptl/lowlevellock.h: File removed.
34515
34516         * NEWS: NPTL is no longer an add-on!
34517         * nptl/internaltypes.h: Moved ...
34518         * sysdeps/nptl/internaltypes.h: ... here.
34519         * sysdeps/nptl/aio_misc.h: Use <nptl/pthreadP.h> in #include.
34520         * sysdeps/nptl/fork.c: Likewise.
34521         * sysdeps/nptl/gai_misc.h: Likewise.
34522         * sysdeps/nptl/librt-cancellation.c: Likewise.
34523         * sysdeps/nptl/jmp-unwind.c: Likewise.
34524         * sysdeps/nptl/setxid.h: Likewise.
34525         * sysdeps/unix/sysv/linux/aarch64/Implies: New file.
34526         * sysdeps/unix/sysv/linux/alpha/Implies: Add alpha/nptl.
34527         * sysdeps/unix/sysv/linux/arm/Implies: New file.
34528         * sysdeps/unix/sysv/linux/hppa/Implies: New file.
34529         * sysdeps/unix/sysv/linux/i386/Implies: Add i386/nptl.
34530         * sysdeps/unix/sysv/linux/i386/i686/Implies: New file.
34531         * sysdeps/unix/sysv/linux/ia64/Implies: Add ia64/nptl.
34532         * sysdeps/unix/sysv/linux/m68k/Implies: New file.
34533         * sysdeps/unix/sysv/linux/microblaze/Implies: New file.
34534         * sysdeps/unix/sysv/linux/mips/Implies: New file.
34535         * sysdeps/unix/sysv/linux/powerpc/Implies: New file.
34536         * sysdeps/unix/sysv/linux/s390/Implies: Add s390/nptl.
34537         * sysdeps/unix/sysv/linux/sh/Implies: New file.
34538         * sysdeps/unix/sysv/linux/sparc/Implies: New file.
34539         * sysdeps/unix/sysv/linux/tile/Implies: New file.
34540         * sysdeps/unix/sysv/linux/x86_64/Implies: Add x86_64/nptl.
34541         * sysdeps/unix/sysv/linux/x86_64/x32/Implies: New file.
34542         * nptl/Makeconfig: Moved ...
34543         * sysdeps/nptl/Makeconfig: ... here.
34544         * nptl/configure: File removed.
34545         * nptl/ANNOUNCE: File removed.
34546         * sysdeps/unix/sysv/linux/configure.ac: Remove nptl sanity check.
34547         * sysdeps/unix/sysv/linux/configure: Regenerated.
34548
34549         * nptl/Makefile (routines): Add libc_pthread_init,
34550         libc_multiple_threads, register-atfork and unregister-atfork.
34551         (libpthread-routines): Add pthread_mutex_cond_lock and pt-fork here.
34552         (gen-as-const-headers): Add lowlevelcond.sym, lowlevelrwlock.sym,
34553         lowlevelbarrier.sym, unwindbuf.sym, lowlevelrobustlock.sym,
34554         pthread-pi-defines.sym, structsem.sym.
34555         * sysdeps/unix/sysv/linux/Makefile [$(subdir) = posix]
34556         (CFLAGS-fork.c, CFLAGS-getpid.o, CFLAGS-getpid.os): New variables.
34557         [$(subdir) = nptl] (tests): Add tst-setgetname.
34558         * nptl/sysdeps/unix/sysv/linux/Makefile: File removed.
34559         * sysdeps/unix/sysv/linux/sigaction.c: Just include
34560         <nptl/sigaction.c> directly here, instead of WRAPPER_INCLUDE.
34561         [!LIBC_SIGACTION]: Remove aliases.
34562         * sysdeps/unix/sysv/linux/aarch64/sigaction.c: Likewise.
34563         * sysdeps/unix/sysv/linux/arm/sigaction.c: Likewise.
34564         * sysdeps/unix/sysv/linux/i386/sigaction.c: Likewise.
34565         * sysdeps/unix/sysv/linux/ia64/sigaction.c: Likewise.
34566         * sysdeps/unix/sysv/linux/mips/sigaction.c: Likewise.
34567         * sysdeps/unix/sysv/linux/s390/s390-64/sigaction.c: Likewise.
34568         * sysdeps/unix/sysv/linux/sparc/sparc32/sigaction.c: Likewise.
34569         * sysdeps/unix/sysv/linux/sparc/sparc64/sigaction.c: Likewise.
34570         * sysdeps/unix/sysv/linux/x86_64/sigaction.c: Likewise.
34571         * nptl/Versions (libc: GLIBC_2.3.2): Add __register_atfork.
34572         (libc: GLIBC_PRIVATE): Add __libc_pthread_init,
34573         __libc_current_sigrtmin_private, __libc_current_sigrtmax_private,
34574         __libc_allocate_rtsig_private.
34575         * nptl/sysdeps/unix/sysv/linux/Versions: File removed.
34576         * sysdeps/unix/sysv/linux/sigtimedwait.c: Include <nptl/pthreadP.h>.
34577         * sysdeps/unix/sysv/linux/sigwait.c: Likewise.
34578         * sysdeps/unix/sysv/linux/sigwaitinfo.c: Likewise.
34579         * sysdeps/unix/sysv/linux/sleep.c: Likewise.
34580         * nptl/sysdeps/unix/sysv/linux/sigwait.c: File removed.
34581         * nptl/sysdeps/unix/sysv/linux/sigtimedwait.c: File removed.
34582         * nptl/sysdeps/unix/sysv/linux/sigwaitinfo.c: File removed.
34583         * nptl/sysdeps/unix/sysv/linux/sleep.c: File removed.
34584         * nptl/sysdeps/unix/sysv/linux/createthread.c: File removed.
34585         * sysdeps/unix/sysv/linux/ia64/fork.S: File removed.
34586         * nptl/sysdeps/unix/sysv/linux/internaltypes.h: Moved ...
34587         * nptl/internaltypes.h: ... here.
34588         * nptl/sysdeps/unix/sysv/linux/jmp-unwind.c: Moved ...
34589         * sysdeps/nptl/jmp-unwind.c: ... here.
34590         * nptl/sysdeps/unix/sysv/linux/libc-lowlevellock.c: Moved ...
34591         * nptl/libc-lowlevellock.c: ... here.
34592         * nptl/sysdeps/unix/sysv/linux/libc_multiple_threads.c: Moved ...
34593         * nptl/libc_multiple_threads.c: ... here.
34594         * nptl/sysdeps/unix/sysv/linux/libc_pthread_init.c: Moved ...
34595         * nptl/libc_pthread_init.c: ... here.
34596         * nptl/sysdeps/unix/sysv/linux/lowlevelbarrier.sym: Moved ...
34597         * nptl/lowlevelbarrier.sym: ... here.
34598         * nptl/sysdeps/unix/sysv/linux/lowlevelcond.sym: Moved ...
34599         * nptl/lowlevelcond.sym: ... here.
34600         * nptl/sysdeps/unix/sysv/linux/lowlevellock.c: Moved ...
34601         * nptl/lowlevellock.c: ... here.
34602         * nptl/lowlevellock.h: Moved ...
34603         * sysdeps/nptl/lowlevellock.h: ... here.
34604         * nptl/sysdeps/unix/sysv/linux/lowlevelrobustlock.c: Moved ...
34605         * nptl/lowlevelrobustlock.c: ... here.
34606         * nptl/sysdeps/unix/sysv/linux/lowlevelrobustlock.sym: Moved ...
34607         * nptl/lowlevelrobustlock.sym: ... here.
34608         * nptl/sysdeps/unix/sysv/linux/lowlevelrwlock.sym: Moved ...
34609         * nptl/lowlevelrwlock.sym: ... here.
34610         * nptl/sysdeps/unix/sysv/linux/pt-fork.c: Moved ...
34611         * nptl/pt-fork.c: ... here.
34612         * nptl/sysdeps/unix/sysv/linux/pthread-pi-defines.sym: Moved ...
34613         * nptl/pthread-pi-defines.sym: ... here.
34614         * nptl/sysdeps/unix/sysv/linux/pthread_attr_getaffinity.c: Moved ...
34615         * nptl/pthread_attr_getaffinity.c: ... here.
34616         * nptl/sysdeps/unix/sysv/linux/pthread_attr_setaffinity.c: Moved ...
34617         * nptl/pthread_attr_setaffinity.c: ... here.
34618         * nptl/sysdeps/unix/sysv/linux/pthread_mutex_cond_lock.c: Moved ...
34619         * nptl/pthread_mutex_cond_lock.c: ... here.
34620         * sysdeps/unix/sysv/linux/s390/pthread_mutex_cond_lock.c:
34621         Update #include.
34622         * sysdeps/unix/sysv/linux/x86/pthread_mutex_cond_lock.c: Likewise.
34623         * nptl/sysdeps/unix/sysv/linux/pthread_once.c: Moved ...
34624         * nptl/pthread_once.c: ... here, replacing old file.
34625         * nptl/sysdeps/unix/sysv/linux/pthread_yield.c: Moved ...
34626         * nptl/pthread_yield.c: ... here.
34627         * nptl/sysdeps/unix/sysv/linux/register-atfork.c: Moved ...
34628         * nptl/register-atfork.c: ... here.
34629         * nptl/sysdeps/unix/sysv/linux/sem_post.c: Moved ...
34630         * nptl/sem_post.c: ... here.
34631         * sysdeps/unix/sysv/linux/alpha/sem_post.c: Update #include.
34632         * nptl/sysdeps/unix/sysv/linux/sem_timedwait.c: Moved ...
34633         * nptl/sem_timedwait.c: ... here.
34634         * nptl/sysdeps/unix/sysv/linux/sem_trywait.c: Moved ...
34635         * nptl/sem_trywait.c: ... here.
34636         * sysdeps/sparc/sparc32/sparcv9/sem_trywait.c: Update #include.
34637         * nptl/sysdeps/unix/sysv/linux/sem_wait.c: Moved ...
34638         * nptl/sem_wait.c: ... here.
34639         * nptl/sysdeps/unix/sysv/linux/structsem.sym: Moved ...
34640         * nptl/structsem.sym: ... here.
34641         * nptl/sysdeps/unix/sysv/linux/mq_notify.c: Moved ...
34642         * sysdeps/unix/sysv/linux/mq_notify.c: ... here, replacing old file.
34643         * nptl/sysdeps/unix/sysv/linux/unregister-atfork.c: Moved ...
34644         * nptl/unregister-atfork.c: ... here.
34645         * nptl/sysdeps/unix/sysv/linux/unwindbuf.sym: Moved ...
34646         * nptl/unwindbuf.sym: ... here.
34647         * nptl/sysdeps/unix/sysv/linux/fork.c: Moved ...
34648         * sysdeps/nptl/fork.c: ... here.
34649         * nptl/sysdeps/unix/sysv/linux/fork.h: Moved ...
34650         * sysdeps/nptl/fork.h: ... here.
34651         * sysdeps/unix/sysv/linux/syscalls.list: Remove fork.
34652         * nptl/sysdeps/unix/sysv/linux/aio_misc.h: Moved ...
34653         * sysdeps/unix/sysv/linux/aio_misc.h: ... here.
34654         * nptl/sysdeps/unix/sysv/linux/allocrtsig.c: Moved ...
34655         * sysdeps/unix/sysv/linux/allocrtsig.c: ... here.
34656         * nptl/sysdeps/unix/sysv/linux/getpid.c: Moved ...
34657         * sysdeps/unix/sysv/linux/getpid.c: ... here.
34658         * nptl/sysdeps/unix/sysv/linux/kernel-posix-timers.h: Moved ...
34659         * sysdeps/unix/sysv/linux/kernel-posix-timers.h: ... here.
34660         * nptl/sysdeps/unix/sysv/linux/pt-raise.c: Moved ...
34661         * sysdeps/unix/sysv/linux/pt-raise.c: ... here.
34662         * nptl/sysdeps/unix/sysv/linux/pthread_getaffinity.c: Moved ...
34663         * sysdeps/unix/sysv/linux/pthread_getaffinity.c: ... here.
34664         * nptl/sysdeps/unix/sysv/linux/pthread_getcpuclockid.c: Moved ...
34665         * sysdeps/unix/sysv/linux/pthread_getcpuclockid.c: ... here.
34666         * nptl/sysdeps/unix/sysv/linux/pthread_getname.c: Moved ...
34667         * sysdeps/unix/sysv/linux/pthread_getname.c: ... here.
34668         * nptl/sysdeps/unix/sysv/linux/pthread_kill.c: Moved ...
34669         * sysdeps/unix/sysv/linux/pthread_kill.c: ... here.
34670         * nptl/sysdeps/unix/sysv/linux/pthread_setaffinity.c: Moved ...
34671         * sysdeps/unix/sysv/linux/pthread_setaffinity.c: ... here.
34672         * nptl/sysdeps/unix/sysv/linux/pthread_setname.c: Moved ...
34673         * sysdeps/unix/sysv/linux/pthread_setname.c: ... here.
34674         * nptl/sysdeps/unix/sysv/linux/pthread_sigqueue.c: Moved ...
34675         * sysdeps/unix/sysv/linux/pthread_sigqueue.c: ... here.
34676         * nptl/sysdeps/unix/sysv/linux/raise.c: Moved ...
34677         * sysdeps/unix/sysv/linux/raise.c: ... here.
34678         * nptl/sysdeps/unix/sysv/linux/timer_create.c: Moved ...
34679         * sysdeps/unix/sysv/linux/timer_create.c: ... here.
34680         * nptl/sysdeps/unix/sysv/linux/timer_delete.c: Moved ...
34681         * sysdeps/unix/sysv/linux/timer_delete.c: ... here.
34682         * nptl/sysdeps/unix/sysv/linux/timer_getoverr.c: Moved ...
34683         * sysdeps/unix/sysv/linux/timer_getoverr.c: ... here.
34684         * nptl/sysdeps/unix/sysv/linux/timer_gettime.c: Moved ...
34685         * sysdeps/unix/sysv/linux/timer_gettime.c: ... here.
34686         * nptl/sysdeps/unix/sysv/linux/timer_routines.c: Moved ...
34687         * sysdeps/unix/sysv/linux/timer_routines.c: ... here.
34688         * nptl/sysdeps/unix/sysv/linux/timer_settime.c: Moved ...
34689         * sysdeps/unix/sysv/linux/timer_settime.c: ... here.
34690         * nptl/sysdeps/unix/sysv/linux/tst-setgetname.c: Moved ...
34691         * sysdeps/unix/sysv/linux/tst-setgetname.c: ... here.
34692         * sysdeps/unix/sysv/linux/s390/jmp-unwind.c: Update #include.
34693
34694 2014-07-04  Siddhesh Poyarekar  <siddhesh@redhat.com>
34695
34696         * sysdeps/generic/memcopy.h: Add comment for
34697         MEMCPY_OK_FOR_FWD_MEMMOVE.
34698
34699 2014-07-04  Will Newton  <will.newton@linaro.org>
34700
34701         * string/memchr.c: Merge from gnulib.
34702         [_LIBC]: Remove conditionals.
34703         (__ptr_t): Remove define.
34704         (LONG_MAX_32_BITS): Likewise.
34705         (LONG_MAX): Likewise.
34706         (MEMCHR): Use ANSI prototype and optimize algorithm.
34707
34708         * sysdeps/arm/dl-machine.h (ELF_MACHINE_NO_REL): Define.
34709
34710 2014-07-03  Roland McGrath  <roland@hack.frob.com>
34711
34712         * sysdeps/unix/sysv/linux/ia64/lowlevellock.h
34713         (lll_futex_timed_wait_bitset): Fix syscall argument count.
34714
34715         * sysdeps/nptl/configure.ac (libc_cv_forced_unwind):
34716         Use -Dinhibit_libc=1 for unwind.h check to prevent false failure
34717         in a bare environment with no <stdlib.h> installed.
34718         * sysdeps/nptl/configure: Regenerated.
34719
34720         * sysdeps/alpha/fpu/s_nearbyint.c: Include <math_ldbl_opt.h>.
34721
34722         * sysdeps/unix/sysv/linux/configure.ac: Use AC_TRY_COMPILE rather than
34723         AC_EGREP_CPP for kernel header checks, so they only succeed if
34724         including <linux/version.h> actually works right.
34725         * sysdeps/unix/sysv/linux/configure: Regenerated.
34726
34727         * sysdeps/s390/nptl/tls.h (THREAD_SET_POINTER_GUARD): Refer to the
34728         value so it's not diagnosed as unused.
34729
34730         * sysdeps/pthread/Makefile: Conditionalize tst-timer bits (the only
34731         thing) with "ifeq ($(subdir),rt)".
34732
34733 2014-07-03  Richard Henderson  <rth@redhat.com>
34734
34735         * sysdeps/alpha/fpu/s_nearbyintf.c: Remove file.
34736         * sysdeps/alpha/fpu/s_nearbyint.c (__nearbyint): Remove;
34737         include sysdeps/ieee754/dbl-64/wordsize-64/s_nearbyint.c.
34738
34739         * sysdeps/alpha/fpu/math_private.h (math_opt_barrier): New.
34740         (math_force_eval): New.
34741
34742         * sysdeps/alpha/fpu/s_lround.c: Add 0.5 with chopped rounding.
34743         * sysdeps/alpha/fpu/s_lroundf.c: Likewise.
34744
34745         * sysdeps/alpha/fpu/s_round.c: Remove file.
34746         * sysdeps/alpha/fpu/s_roundf.c: Remove file.
34747
34748         * elf/dl-support.c (HP_TIMING_AVAIL): Do not redefine.
34749         (_dl_non_dynamic_init): Check HP_SMALL_TIMING_AVAIL instead.
34750         * elf/rtld.c (HP_TIMING_AVAIL): Do not redefine.
34751         (_dl_start_final): Check HP_SMALL_TIMING_AVAIL instead.
34752         (_dl_start, print_statistics): Likewise.
34753         * sysdeps/generic/ldsodefs.h (struct rtld_global): Only check
34754         HP_SMALL_TIMING_AVAIL in defining _dl_cpuclock_offset.
34755
34756         * sysdeps/aarch64/hp-timing.h (HP_SMALL_TIMING_AVAIL): Define.
34757         * sysdeps/generic/hp-timing.h (HP_SMALL_TIMING_AVAIL): Define.
34758         * sysdeps/i386/i686/hp-timing.h (HP_SMALL_TIMING_AVAIL): Define.
34759         * sysdeps/ia64/hp-timing.h (HP_SMALL_TIMING_AVAIL): Define.
34760         * sysdeps/powerpc/powerpc32/power4/hp-timing.h
34761         (HP_SMALL_TIMING_AVAIL): Define.
34762         * sysdeps/powerpc/powerpc64/hp-timing.h (HP_SMALL_TIMING_AVAIL): Define.
34763         * sysdeps/sparc/sparc32/sparcv9/hp-timing.h
34764         (HP_SMALL_TIMING_AVAIL): Define.
34765         * sysdeps/sparc/sparc64/hp-timing.h (HP_SMALL_TIMING_AVAIL): Define.
34766         * sysdeps/x86_64/hp-timing.h (HP_SMALL_TIMING_AVAIL): Define.
34767
34768         * sysdeps/aarch64/hp-timing.h: New file.
34769
34770         * sysdeps/generic/hp-timing.h: Remove dead comment.
34771         * sysdeps/generic/hp-timing-common.h: New file.
34772         * sysdeps/alpha/hp-timing.h: Include it.
34773         (HP_TIMING_DIFF, HP_TIMING_ACCUM_NT, HP_TIMING_PRINT): Remove.
34774         * sysdeps/i386/i686/hp-timing.h: Likewise.
34775         * sysdeps/ia64/hp-timing.h: Likewise.
34776         * sysdeps/powerpc/powerpc32/power4/hp-timing.h: Likewise.
34777         * sysdeps/powerpc/powerpc64/hp-timing.h: Likewise.
34778         * sysdeps/sparc/sparc32/sparcv9/hp-timing.h: Likewise.
34779         * sysdeps/sparc/sparc64/hp-timing.h: Likewise.
34780         * sysdeps/x86_64/hp-timing.h: Don't include the i686 version.
34781         (HP_TIMING_AVAIL, HP_TIMING_INLINE): Define.
34782         (hp_timing_t): New.
34783
34784         * benchtests/bench-string.h (_dl_hp_timing_overhead): Remove.
34785         * benchtests/bench-timing.h (_dl_hp_timing_overhead): Remove.
34786         (TIMING_INIT): Remove call to HP_TIMING_DIFF_INIT.
34787         * elf/rtld.c (_dl_start_final): Likewise.
34788         * sysdeps/generic/ldsodefs.h (_dl_hp_timing_overhead): Remove.
34789         * sysdeps/alpha/hp-timing.h (HP_TIMING_DIFF_INIT): Remove.
34790         * sysdeps/generic/hp-timing.h (HP_TIMING_DIFF_INIT): Remove.
34791         * sysdeps/i386/i686/hp-timing.h (HP_TIMING_DIFF_INIT): Remove.
34792         * sysdeps/ia64/hp-timing.h (HP_TIMING_DIFF_INIT): Remove.
34793         * sysdeps/powerpc/powerpc32/power4/hp-timing.h
34794         (HP_TIMING_DIFF_INIT): Remove.
34795         * sysdeps/powerpc/powerpc64/hp-timing.h (HP_TIMING_DIFF_INIT): Remove.
34796         * sysdeps/sparc/sparc32/sparcv9/hp-timing.h
34797         (HP_TIMING_DIFF_INIT): Remove.
34798         * sysdeps/sparc/sparc64/hp-timing.h (HP_TIMING_DIFF_INIT): Remove.
34799         * sysdeps/i386/i686/hp-timing.c: Remove file.
34800         * sysdeps/x86_64/hp-timing.c: Remove file.
34801         * sysdeps/ia64/hp-timing.c: Remove file.
34802         * sysdeps/powerpc/powerpc32/power4/hp-timing.c: Remove file.
34803         * sysdeps/powerpc/powerpc64/hp-timing.c: Remove file.
34804         * sysdeps/sparc/sparc32/sparcv9/hp-timing.c: Remove file.
34805         * sysdeps/sparc/sparc64/hp-timing.c: Remove file.
34806
34807         * sysdeps/alpha/hp-timing.h (HP_TIMING_ACCUM): Remove.
34808         * sysdeps/generic/hp-timing.h (HP_TIMING_ACCUM): Remove.
34809         * sysdeps/i386/i686/hp-timing.h (HP_TIMING_ACCUM): Remove.
34810         * sysdeps/ia64/hp-timing.h (HP_TIMING_ACCUM): Remove.
34811         * sysdeps/powerpc/powerpc32/power4/hp-timing.h
34812         (HP_TIMING_ACCUM): Remove.
34813         * sysdeps/powerpc/powerpc64/hp-timing.h (HP_TIMING_ACCUM): Remove.
34814         * sysdeps/sparc/sparc32/sparcv9/hp-timing.h (HP_TIMING_ACCUM): Remove.
34815         * sysdeps/sparc/sparc64/hp-timing.h (HP_TIMING_ACCUM): Remove.
34816
34817         * sysdeps/alpha/hp-timing.h (HP_TIMING_ZERO): Remove.
34818         * sysdeps/generic/hp-timing.h (HP_TIMING_ZERO): Remove.
34819         * sysdeps/i386/i686/hp-timing.h (HP_TIMING_ZERO): Remove.
34820         * sysdeps/ia64/hp-timing.h (HP_TIMING_ZERO): Remove.
34821         * sysdeps/powerpc/powerpc32/power4/hp-timing.h (HP_TIMING_ZERO): Remove.
34822         * sysdeps/powerpc/powerpc64/hp-timing.h (HP_TIMING_ZERO): Remove.
34823         * sysdeps/sparc/sparc32/sparcv9/hp-timing.h (HP_TIMING_ZERO): Remove.
34824         * sysdeps/sparc/sparc64/hp-timing.h (HP_TIMING_ZERO): Remove.
34825
34826         * sysdeps/powerpc/powerpc32/hp-timing.h: Remove file.
34827
34828 2014-07-03  Maciej W. Rozycki  <macro@codesourcery.com>
34829
34830         * stdlib/tst-strtod-overflow.c (TIMEOUT): Bump up to 30.
34831
34832 2014-07-02  Siddhesh Poyarekar  <siddhesh@redhat.com>
34833
34834         Sync up with gettext.
34835         * intl/loadmsgcat.c: Define O_BINARY if not defined.
34836         [_MSC_VER]: Include malloc.h
34837         [_LIBC]: Define PRI_MACROS_BROKEN if it is not defined.
34838         (get_sysdep_segment_value) [!__UCLIBC__]: Return "I" flag.
34839         (_nl_load_domain): Open DOMAIN_FILE in binary mode.  Don't use
34840         TEMP_FAILURE_RETRY.  Cast return of alloca.
34841         [!_LIBC] Call gl_rwlock_init.
34842         [IN_LIBGLOCALE]: Call _nl_find_msg with one less argument.
34843
34844 2014-07-02  Roland McGrath  <roland@hack.frob.com>
34845
34846         * misc/sys/cdefs.h: Check if __STDC_VERSION__ is defined
34847         before checking its value.
34848
34849 2014-07-02  Siddhesh Poyarekar  <siddhesh@redhat.com>
34850
34851         * intl/loadmsgcat.c (_nl_load_domain): Use __builtin_expect.
34852
34853         * debug/memcpy_chk.c: Don't include pagecopy.h.
34854         * debug/mempcpy_chk.c: Likewise.
34855         * string/memcpy.c: Likewise.
34856         * string/memmove.c: Likewise.
34857         * sysdeps/powerpc/memmove.c: Likewise.
34858         * sysdeps/generic/memcopy.h: Include pagecopy.h.  Move
34859         definition of PAGE_COPY_FWD_MAYBE here...
34860         * sysdeps/generic/pagecopy.h: ... from here.
34861         * sysdeps/mach/pagecopy.h: Don't include generic pagecopy.h.
34862
34863 2014-07-02  Vidya Ranganathan  <vidya@linux.vnet.ibm.com>
34864             Adhemerval Zanella  <azanella@linux.vnet.ibm.com>
34865
34866         * sysdeps/powerpc/strcat.c: Using macro to redefine symbol name.
34867         * sysdeps/powerpc/powerpc64/multiarch/Makefile: Add strcat multiarch
34868         optimizations.
34869         * sysdeps/powerpc/powerpc64/multiarch/ifunc-impl-list.c:
34870         (__libc_ifunc_impl_list): Likewise.
34871         * sysdeps/powerpc/powerpc64/multiarch/strcat.c: New file:
34872         multiarch strcat for PPC64.
34873         * sysdeps/powerpc/powerpc64/multiarch/strcat-ppc64.c: New file/
34874         * sysdeps/powerpc/powerpc64/multiarch/strcat-power7.c: New file.
34875
34876 2014-07-02  Roland McGrath  <roland@hack.frob.com>
34877
34878         * sysdeps/unix/sysv/linux/dl-sysdep.c: Include <sys/param.h>.
34879
34880 2014-07-02  Siddhesh Poyarekar  <siddhesh@redhat.com>
34881
34882         * intl/loadmsgcat.c: Remove declaration of
34883         get_sysdep_segment_value.
34884         (get_sysdep_segment_value): Use ISO C style.
34885         (_nl_load_domain): Use ISO C style.  Get rid of redundant
34886         semicolon.  Fix typo and formatting in comment.
34887         (_nl_unload_domain): Use ISO C style.
34888
34889         * sysdeps/posix/sysconf.c (__sysconf): Fix typo in macro name.
34890
34891 2014-07-02  Will Newton  <will.newton@linaro.org>
34892
34893         * malloc/obstack.c: Merge from gnulib master.
34894         [HAVE_CONFIG_H]: Remove conditional code.
34895         [!_LIBC]: Include config.h.
34896         [!ELIDE_CODE]: Don't include inttypes.h, include
34897         stdint.h unconditionally.
34898         (print_and_abort): Mark as _Noreturn.
34899         (_obstack_allocated_p): Mark as __attribute_pure__.
34900         (obstack_free): Rename to __obstack_free.
34901         [!__attribute__]: Remove conditional code.
34902         * malloc/obstack.h: Merge from gnulib master.
34903         [__cplusplus]: Move conditional down.
34904         [!__attribute_pure__]: Define __attribute_pure__ here
34905         if it is not already defined.
34906         (_obstack_memory_used): Mark as __attribute_pure__.
34907         [!__obstack_free]: Define as obstack_free.
34908         [__GNUC__]: Remove check for ancient NeXT gcc.
34909
34910 2014-07-02  Will Newton  <will.newton@linaro.org>
34911             Paul Eggert  <eggert@cs.ucla.edu>
34912
34913         * misc/sys/cdefs.h (_Noreturn): New macro, for pre-C11 compilers.
34914
34915 2014-07-02  Siddhesh Poyarekar  <siddhesh@redhat.com>
34916
34917         * resolv/gethnamaddr.c: Add comment warning that the file is
34918         not maintained.
34919
34920 2014-07-01  Carlos O'Donell  <carlos@redhat.com>
34921
34922         * sysdeps/unix/sysv/linux/hppa/librt.abilist: Remove GLIBC_2.3
34923         entries.
34924
34925         * sysdeps/unix/sysv/linux/hppa/Versions: Remove librt GLIBC_2.3
34926         entry for aio_cancel and aio_cancel64.
34927         * sysdeps/unix/sysv/linux/hppa/ld.abilist: New file.
34928         * sysdeps/unix/sysv/linux/hppa/libBrokenLocale.abilist: New file.
34929         * sysdeps/unix/sysv/linux/hppa/libanl.abilist: New file.
34930         * sysdeps/unix/sysv/linux/hppa/libc.abilist: New file.
34931         * sysdeps/unix/sysv/linux/hppa/libcrypt.abilist: New file.
34932         * sysdeps/unix/sysv/linux/hppa/libdl.abilist: New file.
34933         * sysdeps/unix/sysv/linux/hppa/libm.abilist: New file.
34934         * sysdeps/unix/sysv/linux/hppa/libnsl.abilist: New file.
34935         * sysdeps/unix/sysv/linux/hppa/libpthread.abilist: New file.
34936         * sysdeps/unix/sysv/linux/hppa/libresolv.abilist: New file.
34937         * sysdeps/unix/sysv/linux/hppa/librt.abilist: New file.
34938         * sysdeps/unix/sysv/linux/hppa/libthread_db.abilist: New file.
34939         * sysdeps/unix/sysv/linux/hppa/libutil.abilist: New file.
34940
34941 2014-07-01  Roland McGrath  <roland@hack.frob.com>
34942
34943         * sysdeps/unix/sysv/linux/sysconf.c: Include <sys/param.h>.
34944         * nptl/pthread_mutex_lock.c: Likewise.
34945         * nptl/pthread_mutex_timedlock.c: Likewise.
34946         * nptl/sysdeps/unix/sysv/linux/pthread_attr_getaffinity.c: Likewise.
34947
34948 2014-07-01  Richard henderson  <rth@redhat.com>
34949
34950         * sysdeps/alpha/fpu/bits/mathinline.h (__isnanf): Remove.
34951         (__isnan, __isnanl): Remove.
34952         * sysdeps/alpha/fpu/s_isnan.c (__isnan): Use integer arithmetic.
34953
34954         * sysdeps/alpha/fpu/libm-test-ulps: Update.
34955
34956 2014-07-01  Stefan Liebler  <stli@linux.vnet.ibm.com>
34957
34958         * sysdeps/s390/fpu/libm-test-ulps: Regenerate.
34959
34960 2014-07-01  Siddhesh Poyarekar  <siddhesh@redhat.com>
34961
34962         * resolv/nss_dns/dns-host.c (getanswer_r)
34963         [MULTI_PTRS_ARE_ALIASES]: Remove code.
34964
34965 2014-07-01  Joseph Myers  <joseph@codesourcery.com>
34966
34967         * sysdeps/unix/sysv/linux/microblaze/kernel-features.h
34968         [__LINUX_KERNEL_VERSION >= 0x030f00] (__ASSUME_PSELECT): Do not
34969         undefine.
34970         [__LINUX_KERNEL_VERSION >= 0x030f00] (__ASSUME_PREADV): Likewise.
34971         [__LINUX_KERNEL_VERSION >= 0x030f00] (__ASSUME_PWRITEV): Likewise.
34972
34973 2014-07-01  Roland McGrath <roland@hack.frob.com>
34974
34975         * sysdeps/unix/sysv/linux/microblaze/arch-fork.h: New file.
34976         * sysdeps/unix/sysv/linux/microblaze/nptl/fork.c: File removed.
34977
34978         * sysdeps/microblaze/nptl/tls.h: Define TLS_DEFINE_INIT_TP.
34979         * sysdeps/unix/sysv/linux/microblaze/nptl/createthread.c: File removed.
34980
34981         * sysdeps/microblaze/nptl/bits/pthreadtypes.h: Moved ...
34982         * sysdeps/unix/sysv/linux/microblaze/nptl/bits/pthreadtypes.h:
34983         ... here.
34984         * sysdeps/microblaze/nptl/bits/semaphore.h: Moved ...
34985         * sysdeps/unix/sysv/linux/microblaze/nptl/bits/semaphore.h: ... here.
34986
34987         * sysdeps/unix/sysv/linux/microblaze/pt-vfork.S: Moved ...
34988         * sysdeps/unix/sysv/linux/microblaze/nptl/pt-vfork.S: ... here.
34989         * sysdeps/unix/sysv/linux/microblaze/nptl/vfork.S: Moved ...
34990         * sysdeps/unix/sysv/linux/microblaze/vfork.S: ... here.
34991
34992         * sysdeps/unix/sysv/linux/microblaze/c++-types.data: Moved ...
34993         * sysdeps/unix/sysv/linux/microblaze/nptl/c++-types.data: ... here.
34994         * sysdeps/unix/sysv/linux/microblaze/ld.abilist: Moved ...
34995         * sysdeps/unix/sysv/linux/microblaze/nptl/ld.abilist: ... here.
34996         * sysdeps/unix/sysv/linux/microblaze/libBrokenLocale.abilist:
34997         Moved ...
34998         * sysdeps/unix/sysv/linux/microblaze/nptl/libBrokenLocale.abilist:
34999         ... here.
35000         * sysdeps/unix/sysv/linux/microblaze/libanl.abilist: Moved ...
35001         * sysdeps/unix/sysv/linux/microblaze/nptl/libanl.abilist: ... here.
35002         * sysdeps/unix/sysv/linux/microblaze/libc.abilist: Moved ...
35003         * sysdeps/unix/sysv/linux/microblaze/nptl/libc.abilist: ... here.
35004         * sysdeps/unix/sysv/linux/microblaze/libcrypt.abilist: Moved ...
35005         * sysdeps/unix/sysv/linux/microblaze/nptl/libcrypt.abilist: ... here.
35006         * sysdeps/unix/sysv/linux/microblaze/libdl.abilist: Moved ...
35007         * sysdeps/unix/sysv/linux/microblaze/nptl/libdl.abilist: ... here.
35008         * sysdeps/unix/sysv/linux/microblaze/libm.abilist: Moved ...
35009         * sysdeps/unix/sysv/linux/microblaze/nptl/libm.abilist: ... here.
35010         * sysdeps/unix/sysv/linux/microblaze/libnsl.abilist: Moved ...
35011         * sysdeps/unix/sysv/linux/microblaze/nptl/libnsl.abilist: ... here.
35012         * sysdeps/unix/sysv/linux/microblaze/libpthread.abilist: Moved ...
35013         * sysdeps/unix/sysv/linux/microblaze/nptl/libpthread.abilist: ... here.
35014         * sysdeps/unix/sysv/linux/microblaze/libresolv.abilist: Moved ...
35015         * sysdeps/unix/sysv/linux/microblaze/nptl/libresolv.abilist: ... here.
35016         * sysdeps/unix/sysv/linux/microblaze/librt.abilist: Moved ...
35017         * sysdeps/unix/sysv/linux/microblaze/nptl/librt.abilist: ... here.
35018         * sysdeps/unix/sysv/linux/microblaze/libthread_db.abilist: Moved ...
35019         * sysdeps/unix/sysv/linux/microblaze/nptl/libthread_db.abilist:
35020         ... here.
35021         * sysdeps/unix/sysv/linux/microblaze/libutil.abilist: Moved ...
35022         * sysdeps/unix/sysv/linux/microblaze/nptl/libutil.abilist: ... here.
35023         * sysdeps/unix/sysv/linux/microblaze/localplt.data: Moved ...
35024         * sysdeps/unix/sysv/linux/microblaze/nptl/localplt.data: ... here.
35025         * sysdeps/unix/sysv/linux/microblaze/lowlevellock.h: Moved ...
35026         * sysdeps/unix/sysv/linux/microblaze/nptl/lowlevellock.h: ... here.
35027         * sysdeps/unix/sysv/linux/microblaze/nptl/pthread_once.c: Moved ...
35028         * sysdeps/unix/sysv/linux/microblaze/pthread_once.c: ... here.
35029
35030 2014-07-01  David Holsgrove  <david.holsgrove@xilinx.com>
35031
35032         * sysdeps/unix/sysv/linux/microblaze/sysdep-cancel.h: New file.
35033         * sysdeps/unix/sysv/linux/microblaze/socket.S: Update SINGLE_THREAD_P use.
35034         * sysdeps/unix/sysv/linux/microblaze/Makefile(libpthread-routines):
35035         Add sysdep.
35036
35037 2014-06-30  Adhemerval Zanella  <azanella@linux.vnet.ibm.com>
35038
35039         * sysdeps/powerpc/fpu/libm-test-ulps: Update.
35040
35041 2014-06-30  Joseph Myers  <joseph@codesourcery.com>
35042
35043         * sysdeps/mips/mips32/libm-test-ulps: Regenerated.
35044         * sysdeps/mips/mips64/libm-test-ulps: Likewise.
35045
35046         * sysdeps/powerpc/nofpu/libm-test-ulps: Regenerated.
35047
35048         * sysdeps/arm/libm-test-ulps: Regenerated.
35049
35050 2014-06-30  Maciej W. Rozycki  <macro@codesourcery.com>
35051             Roland McGrath <roland@hack.frob.com>
35052
35053         * test-skeleton.c (signal_handler): Kill the whole process group
35054         before killing the child individually.
35055         (main): Report any failure on `setpgid'.
35056
35057 2014-06-30  Roland McGrath  <roland@hack.frob.com>
35058
35059         * sysdeps/arm/nptl/tls.h: Rename the multiple inclusion guard
35060         from _TLS_H to _ARM_NPTL_TLS_H.
35061         (TLS_INIT_TP): Move macro, and #include of <sysdep.h>, to ...
35062         * sysdeps/unix/sysv/linux/arm/tls.h: ... this new file.
35063
35064 2014-06-30  Joseph Myers  <joseph@codesourcery.com>
35065
35066         [BZ #16539]
35067         * sysdeps/ieee754/ldbl-128/s_expm1l.c: Include <float.h>.
35068         (__expm1l): Return argument unchanged when small but not
35069         subnormal.
35070
35071         * soft-fp/op-1.h (_FP_UNPACK_RAW_1): Rename local variables to
35072         include macro name.
35073         (_FP_UNPACK_RAW_1_P): Likewise.
35074         (_FP_PACK_RAW_1): Likewise.
35075         (_FP_PACK_RAW_1_P): Likewise.
35076         (_FP_MUL_MEAT_1_wide): Likewise.
35077         (_FP_MUL_MEAT_DW_1_hard): Likewise.
35078         (_FP_MUL_MEAT_1_hard): Likewise.
35079         (_FP_DIV_MEAT_1_imm): Likewise.
35080         (_FP_DIV_MEAT_1_udiv_norm): Likewise.
35081         (_FP_DIV_MEAT_1_udiv): Likewise.
35082         * soft-fp/op-2.h (__FP_FRAC_DEC_2): Likewise.
35083         (_FP_UNPACK_RAW_2): Likewise.
35084         (_FP_UNPACK_RAW_2_P): Likewise.
35085         (_FP_PACK_RAW_2): Likewise.
35086         (_FP_PACK_RAW_2_P): Likewise.
35087         (_FP_MUL_MEAT_DW_2_wide): Likewise.
35088         (_FP_MUL_MEAT_2_wide): Likewise.
35089         (_FP_MUL_MEAT_DW_2_wide_3mul): Likewise.
35090         (_FP_MUL_MEAT_2_wide_3mul): Likewise.
35091         (_FP_MUL_MEAT_DW_2_gmp): Likewise.
35092         (_FP_MUL_MEAT_2_gmp): Likewise.
35093         (_FP_DIV_MEAT_2_udiv): Likewise.
35094         * soft-fp/op-4.h (_FP_FRAC_SLL_4): Likewise.
35095         (_FP_FRAC_SRL_4): Likewise.
35096         (_FP_FRAC_SRST_4): Likewise.
35097         (_FP_FRAC_SRS_4): Likewise.
35098         (_FP_UNPACK_RAW_4): Likewise.
35099         (_FP_UNPACK_RAW_4_P): Likewise.
35100         (_FP_PACK_RAW_4): Likewise.
35101         (_FP_PACK_RAW_4_P): Likewise.
35102         (_FP_MUL_MEAT_DW_4_wide): Likewise.
35103         (_FP_MUL_MEAT_4_wide): Likewise.
35104         (_FP_MUL_MEAT_4_gmp): Likewise.
35105         (umul_ppppmnnn): Likewise.
35106         (_FP_DIV_MEAT_4_udiv): Likewise.
35107         (__FP_FRAC_ADD_4): Likewise.
35108         (__FP_FRAC_SUB_3): Likewise.
35109         (__FP_FRAC_SUB_4): Likewise.
35110         (__FP_FRAC_DEC_3): Likewise.
35111         (__FP_FRAC_DEC_4): Likewise.
35112         (__FP_FRAC_ADDI_4): Likewise.
35113         * soft-fp/op-8.h (_FP_FRAC_SLL_8): Likewise.
35114         (_FP_FRAC_SRL_8): Likewise.
35115         (_FP_FRAC_SRS_8): Likewise.
35116
35117         * soft-fp/extended.h (FP_UNPACK_RAW_E): Rename local variables to
35118         include macro name.
35119         (FP_UNPACK_RAW_EP): Likewise.
35120         (FP_PACK_RAW_E): Likewise.
35121         (FP_PACK_RAW_EP): Likewise.
35122         * soft-fp/op-common.h (_FP_UNPACK_CANONICAL): Likewise.
35123         (_FP_ISSIGNAN): Likewise.
35124         (_FP_ADD_INTERNAL): Likewise.
35125         (_FP_FMA): Likewise.
35126         (_FP_CMP): Likewise.
35127         (_FP_SQRT): Likewise.
35128         (_FP_TO_INT): Likewise.
35129         (_FP_FROM_INT): Likewise.
35130         (FP_EXTEND): Likewise.
35131         (_FP_DIV_MEAT_N_loop): Likewise.
35132
35133 2014-06-30  Maciej W. Rozycki  <macro@codesourcery.com>
35134
35135         * sysdeps/unix/sysv/linux/bits/socket.h: Adjust macro formatting
35136         throughout.
35137
35138 2014-06-29  Joseph Myers  <joseph@codesourcery.com>
35139
35140         [BZ #17097]
35141         * sysdeps/ieee754/ldbl-128/e_powl.c (__ieee754_powl): Return
35142         result with correct sign in case of exponents that produce
35143         overflow except for X very close to 1.
35144
35145 2014-06-28  Paul Eggert  <eggert@cs.ucla.edu>
35146
35147         mktime: merge #if/#ifdef usage from glibc
35148         * lib/mktime.c: Use "#if defined DEBUG && DEBUG", not "#if DEBUG",
35149         as that works with both Glibc's and Gnulib's style.
35150         See thread starting at Siddhesh Poyarekar's bug report at:
35151         http://lists.gnu.org/archive/html/bug-gnulib/2014-06/msg00102.html
35152
35153 2014-06-28  Siddhesh Poyarekar  <siddhesh@redhat.com>
35154
35155         * sysdeps/generic/memcopy.h: Define MEMCPY_OK_FOR_FWD_MEMMOVE.
35156         * sysdeps/tile/memcopy.h: Redefine MEMCPY_OK_FOR_FWD_MEMMOVE.
35157         * sysdeps/tile/tilegx/memmove.c: Remove file.
35158
35159 2014-06-27  Joseph Myers  <joseph@codesourcery.com>
35160
35161         * Makeconfig ($(common-objpfx)soversions.mk): Do not generate
35162         abi-name definition.
35163         * scripts/soversions.awk: Do not handle or generate ABI lines.
35164         * shlib-versions: Remove ABI entries.
35165         * sysdeps/powerpc/nofpu/shlib-versions: Remove file.
35166         * sysdeps/x86_64/x32/shlib-versions: Remove ABI entry.
35167
35168 2014-06-27  Roland McGrath  <roland@hack.frob.com>
35169
35170         * sysdeps/unix/sysv/linux/mips/mips32/nptl/c++-types.data: Moved ...
35171         * sysdeps/unix/sysv/linux/mips/mips32/c++-types.data: ... here.
35172         * sysdeps/unix/sysv/linux/mips/mips32/fpu/nptl/libc.abilist: Moved ...
35173         * sysdeps/unix/sysv/linux/mips/mips32/fpu/libc.abilist: ... here.
35174         * sysdeps/unix/sysv/linux/mips/mips32/nptl/ld.abilist: Moved ...
35175         * sysdeps/unix/sysv/linux/mips/mips32/ld.abilist: ... here.
35176         * sysdeps/unix/sysv/linux/mips/mips32/nptl/libBrokenLocale.abilist:
35177         Moved ...
35178         * sysdeps/unix/sysv/linux/mips/mips32/libBrokenLocale.abilist:
35179         ... here.
35180         * sysdeps/unix/sysv/linux/mips/mips32/nptl/libanl.abilist: Moved ...
35181         * sysdeps/unix/sysv/linux/mips/mips32/libanl.abilist: ... here.
35182         * sysdeps/unix/sysv/linux/mips/mips32/nptl/libcidn.abilist: Moved ...
35183         * sysdeps/unix/sysv/linux/mips/mips32/libcidn.abilist: ... here.
35184         * sysdeps/unix/sysv/linux/mips/mips32/nptl/libcrypt.abilist: Moved ...
35185         * sysdeps/unix/sysv/linux/mips/mips32/libcrypt.abilist: ... here.
35186         * sysdeps/unix/sysv/linux/mips/mips32/nptl/libdl.abilist: Moved ...
35187         * sysdeps/unix/sysv/linux/mips/mips32/libdl.abilist: ... here.
35188         * sysdeps/unix/sysv/linux/mips/mips32/nptl/libm.abilist: Moved ...
35189         * sysdeps/unix/sysv/linux/mips/mips32/libm.abilist: ... here.
35190         * sysdeps/unix/sysv/linux/mips/mips32/nptl/libnsl.abilist: Moved ...
35191         * sysdeps/unix/sysv/linux/mips/mips32/libnsl.abilist: ... here.
35192         * sysdeps/unix/sysv/linux/mips/mips32/nptl/libnss_compat.abilist:
35193         Moved ...
35194         * sysdeps/unix/sysv/linux/mips/mips32/libnss_compat.abilist: ... here.
35195         * sysdeps/unix/sysv/linux/mips/mips32/nptl/libnss_db.abilist: Moved ...
35196         * sysdeps/unix/sysv/linux/mips/mips32/libnss_db.abilist: ... here.
35197         * sysdeps/unix/sysv/linux/mips/mips32/nptl/libnss_dns.abilist: Moved ...
35198         * sysdeps/unix/sysv/linux/mips/mips32/libnss_dns.abilist: ... here.
35199         * sysdeps/unix/sysv/linux/mips/mips32/nptl/libnss_files.abilist:
35200         Moved ...
35201         * sysdeps/unix/sysv/linux/mips/mips32/libnss_files.abilist: ... here.
35202         * sysdeps/unix/sysv/linux/mips/mips32/nptl/libnss_hesiod.abilist:
35203         Moved ...
35204         * sysdeps/unix/sysv/linux/mips/mips32/libnss_hesiod.abilist: ... here.
35205         * sysdeps/unix/sysv/linux/mips/mips32/nptl/libnss_nis.abilist: Moved ...
35206         * sysdeps/unix/sysv/linux/mips/mips32/libnss_nis.abilist: ... here.
35207         * sysdeps/unix/sysv/linux/mips/mips32/nptl/libnss_nisplus.abilist:
35208         Moved ...
35209         * sysdeps/unix/sysv/linux/mips/mips32/libnss_nisplus.abilist: ... here.
35210         * sysdeps/unix/sysv/linux/mips/mips32/nptl/libpthread.abilist: Moved ...
35211         * sysdeps/unix/sysv/linux/mips/mips32/libpthread.abilist: ... here.
35212         * sysdeps/unix/sysv/linux/mips/mips32/nptl/libresolv.abilist: Moved ...
35213         * sysdeps/unix/sysv/linux/mips/mips32/libresolv.abilist: ... here.
35214         * sysdeps/unix/sysv/linux/mips/mips32/nptl/librt.abilist: Moved ...
35215         * sysdeps/unix/sysv/linux/mips/mips32/librt.abilist: ... here.
35216         * sysdeps/unix/sysv/linux/mips/mips32/nptl/libthread_db.abilist:
35217         Moved ...
35218         * sysdeps/unix/sysv/linux/mips/mips32/libthread_db.abilist: ... here.
35219         * sysdeps/unix/sysv/linux/mips/mips32/nptl/libutil.abilist: Moved ...
35220         * sysdeps/unix/sysv/linux/mips/mips32/libutil.abilist: ... here.
35221         * sysdeps/unix/sysv/linux/mips/mips32/nofpu/nptl/libc.abilist:
35222         Moved ...
35223         * sysdeps/unix/sysv/linux/mips/mips32/nofpu/libc.abilist: ... here.
35224         * sysdeps/unix/sysv/linux/mips/mips64/n32/nptl/c++-types.data:
35225         Moved ...
35226         * sysdeps/unix/sysv/linux/mips/mips64/n32/c++-types.data: ... here.
35227         * sysdeps/unix/sysv/linux/mips/mips64/n32/nptl/ld.abilist: Moved ...
35228         * sysdeps/unix/sysv/linux/mips/mips64/n32/ld.abilist: ... here.
35229         * sysdeps/unix/sysv/linux/mips/mips64/n64/nptl/libBrokenLocale.abilist:
35230         Moved ...
35231         * sysdeps/unix/sysv/linux/mips/mips64/libBrokenLocale.abilist:
35232         ... here.
35233         * sysdeps/unix/sysv/linux/mips/mips64/n32/nptl/libBrokenLocale.abilist:
35234         Identical file removed.
35235         * sysdeps/unix/sysv/linux/mips/mips64/n64/nptl/libanl.abilist:
35236         Moved ...
35237         * sysdeps/unix/sysv/linux/mips/mips64/libanl.abilist: ... here.
35238         * sysdeps/unix/sysv/linux/mips/mips64/n32/nptl/libanl.abilist:
35239         Identical file removed.
35240         * sysdeps/unix/sysv/linux/mips/mips64/n32/nptl/libc.abilist: Moved ...
35241         * sysdeps/unix/sysv/linux/mips/mips64/n32/libc.abilist: ... here.
35242         * sysdeps/unix/sysv/linux/mips/mips64/n64/nptl/libcrypt.abilist:
35243         Moved ...
35244         * sysdeps/unix/sysv/linux/mips/mips64/libcrypt.abilist: ... here.
35245         * sysdeps/unix/sysv/linux/mips/mips64/n32/nptl/libcrypt.abilist:
35246         Identical file removed.
35247         * sysdeps/unix/sysv/linux/mips/mips64/n64/nptl/libdl.abilist: Moved ...
35248         * sysdeps/unix/sysv/linux/mips/mips64/libdl.abilist: ... here.
35249         * sysdeps/unix/sysv/linux/mips/mips64/n32/nptl/libdl.abilist:
35250         Identical file removed.
35251         * sysdeps/unix/sysv/linux/mips/mips64/n64/nptl/libm.abilist: Moved ...
35252         * sysdeps/unix/sysv/linux/mips/mips64/libm.abilist: ... here.
35253         * sysdeps/unix/sysv/linux/mips/mips64/n32/nptl/libm.abilist:
35254         Identical file removed.
35255         * sysdeps/unix/sysv/linux/mips/mips64/n64/nptl/libnsl.abilist: Moved ...
35256         * sysdeps/unix/sysv/linux/mips/mips64/libnsl.abilist: ... here.
35257         * sysdeps/unix/sysv/linux/mips/mips64/n32/nptl/libnsl.abilist:
35258         Identical file removed.
35259         * sysdeps/unix/sysv/linux/mips/mips64/n64/nptl/libpthread.abilist:
35260         Moved ...
35261         * sysdeps/unix/sysv/linux/mips/mips64/libpthread.abilist: ... here.
35262         * sysdeps/unix/sysv/linux/mips/mips64/n32/nptl/libpthread.abilist:
35263         Identical file removed.
35264         * sysdeps/unix/sysv/linux/mips/mips64/n32/nptl/libresolv.abilist:
35265         Moved ...
35266         * sysdeps/unix/sysv/linux/mips/mips64/n32/libresolv.abilist: ... here.
35267         * sysdeps/unix/sysv/linux/mips/mips64/n64/nptl/librt.abilist: Moved ...
35268         * sysdeps/unix/sysv/linux/mips/mips64/librt.abilist: ... here.
35269         * sysdeps/unix/sysv/linux/mips/mips64/n32/nptl/librt.abilist:
35270         Identical file removed.
35271         * sysdeps/unix/sysv/linux/mips/mips64/n64/nptl/libthread_db.abilist:
35272         Moved ...
35273         * sysdeps/unix/sysv/linux/mips/mips64/libthread_db.abilist:
35274         ... here.
35275         * sysdeps/unix/sysv/linux/mips/mips64/n32/nptl/libthread_db.abilist:
35276         Identical file removed.
35277         * sysdeps/unix/sysv/linux/mips/mips64/n64/nptl/libutil.abilist:
35278         Moved ...
35279         * sysdeps/unix/sysv/linux/mips/mips64/libutil.abilist: ... here.
35280         * sysdeps/unix/sysv/linux/mips/mips64/n32/nptl/libutil.abilist:
35281         Identical file removed.
35282         * sysdeps/unix/sysv/linux/mips/mips64/n64/nptl/c++-types.data:
35283         Moved ...
35284         * sysdeps/unix/sysv/linux/mips/mips64/n64/c++-types.data: ... here.
35285         * sysdeps/unix/sysv/linux/mips/mips64/n64/nptl/ld.abilist: Moved ...
35286         * sysdeps/unix/sysv/linux/mips/mips64/n64/ld.abilist: ... here.
35287         * sysdeps/unix/sysv/linux/mips/mips64/n64/nptl/libc.abilist: Moved ...
35288         * sysdeps/unix/sysv/linux/mips/mips64/n64/libc.abilist: ... here.
35289         * sysdeps/unix/sysv/linux/mips/mips64/n64/nptl/libresolv.abilist:
35290         Moved ...
35291         * sysdeps/unix/sysv/linux/mips/mips64/n64/libresolv.abilist: ... here.
35292         * sysdeps/unix/sysv/linux/mips/mips64/nptl/sysdep-cancel.h: Moved ...
35293         * sysdeps/unix/sysv/linux/mips/mips64/sysdep-cancel.h: ... here.
35294
35295         * sysdeps/unix/sysv/linux/mips/vfork.S: Incorporate
35296         SAVE_PID and RESTORE_PID blocks from nptl/pt-vfork.S.
35297         * sysdeps/unix/sysv/linux/mips/nptl/vfork.S: File removed.
35298         * sysdeps/unix/sysv/linux/mips/nptl/pt-vfork.S: File removed.
35299         * sysdeps/unix/sysv/linux/mips/pt-vfork.S: New file.
35300
35301 2014-06-27  Arjun Shankar  <arjun.is@lostca.se>
35302
35303         [BZ #17092]
35304         * nscd/nscd.c (monitor_child): Return exit status of child
35305         instead of return value from wait syscall.
35306
35307 2014-06-27  Joseph Myers  <joseph@codesourcery.com>
35308
35309         * configure.ac (libc_commonpagesize): Remove variable.
35310         (libc_relro_required): Likewise.
35311         (libc_cv_z_relro): Remove configure test.
35312         * configure: Regenerated.
35313         * sysdeps/aarch64/preconfigure (libc_commonpagesize): Do not set
35314         variable.
35315         (libc_relro_required): Likewise.
35316         * sysdeps/alpha/preconfigure (libc_commonpagesize): Likewise.
35317         (libc_relro_required): Likewise.
35318         * sysdeps/arm/preconfigure.ac (libc_commonpagesize): Likewise.
35319         (libc_relro_required): Likewise.
35320         * sysdeps/arm/preconfigure: Regenerated.
35321         * sysdeps/ia64/preconfigure: Remove file.
35322         * sysdeps/tile/preconfigure (libc_commonpagesize): Do not set
35323         variable.
35324         (libc_relro_required): Likewise.
35325
35326         [BZ #16561]
35327         [BZ #16562]
35328         * sysdeps/ieee754/dbl-64/e_jn.c: Include <float.h>.
35329         (__ieee754_yn): Set FE_TONEAREST mode internally and then
35330         recompute overflowing results in original rounding mode.
35331         * sysdeps/ieee754/flt-32/e_jnf.c: Include <float.h>.
35332         (__ieee754_ynf): Set FE_TONEAREST mode internally and then
35333         recompute overflowing results in original rounding mode.
35334         * sysdeps/ieee754/ldbl-128/e_jnl.c: Include <float.h>.
35335         (__ieee754_ynl): Set FE_TONEAREST mode internally and then
35336         recompute overflowing results in original rounding mode.
35337         * sysdeps/ieee754/ldbl-128ibm/e_jnl.c: Include <float.h>.
35338         (__ieee754_ynl): Set FE_TONEAREST mode internally and then
35339         recompute overflowing results in original rounding mode.
35340         * sysdeps/ieee754/ldbl-96/e_jnl.c: Include <float.h>.
35341         (__ieee754_ynl): Set FE_TONEAREST mode internally and then
35342         recompute overflowing results in original rounding mode.
35343         * sysdeps/i386/fpu/fenv_private.h [!__SSE2_MATH__]
35344         (libc_feholdsetround_ctx): New macro.
35345         * math/libm-test.inc (yn_test): Use ALL_RM_TEST.
35346         * sysdeps/i386/fpu/libm-test-ulps: Update.
35347         * sysdeps/x86_64/fpu/libm-test-ulps : Likewise.
35348
35349 2014-06-26  Joseph Myers  <joseph@codesourcery.com>
35350
35351         * sysdeps/unix/sysv/linux/mips/mips64/nptl/sysdep-cancel.h
35352         [__PIC__] (PSEUDO): Use name of _nocancel entry point in
35353         corresponding .cpsetup call.
35354
35355 2014-06-26  Roland McGrath  <roland@hack.frob.com>
35356
35357         * sysdeps/unix/sysv/linux/arm/libc-aeabi_read_tp.S: Moved ...
35358         * sysdeps/arm/libc-aeabi_read_tp.S: ... here.
35359         * sysdeps/arm/Makefile [$(subdir) = csu]
35360         (aeabi_routines): Add aeabi_read_tp and libc-aeabi_read_tp here.
35361         (static-only-routines): Add aeabi_read_tp here.
35362         (shared-only-routines): Add libc-aeabi_read_tp here.
35363         (CFLAGS-libc-start.c): Add -fexceptions here.
35364         * sysdeps/unix/sysv/linux/arm/Makefile [$(subdir) = csu]
35365         (sysdep_routines, static-only-routines, shared-only-routines):
35366         Don't add to these here.
35367         (CFLAGS-libc-start.c): Likewise.
35368
35369         * sysdeps/unix/sysv/linux/arm/nptl-aeabi_unwind_cpp_pr1.c: Moved ...
35370         * sysdeps/arm/nptl-aeabi_unwind_cpp_pr1.c: ... here.
35371         * sysdeps/unix/sysv/linux/arm/rt-aeabi_unwind_cpp_pr1.c: Moved ...
35372         * sysdeps/arm/rt-aeabi_unwind_cpp_pr1.c: ... here.
35373         * sysdeps/arm/Makefile [$(subdir) = rt]
35374         (librt-sysdep_routines, librt-shared-only-routines):
35375         Append rt-aeabi_unwind_cpp_pr1 here.
35376         * sysdeps/unix/sysv/linux/arm/Makefile [$(subdir) = rt]
35377         (librt-sysdep_routines, librt-shared-only-routines): Don't do it here.
35378         * sysdeps/arm/nptl/Makefile [$(subdir) = nptl]
35379         (libpthread-sysdep_routines, libpthread-shared-only-routines):
35380         Append nptl-aeabi_unwind_cpp_pr1 here.
35381         (tests): Filter out tst-cleanupx4 here.
35382         * sysdeps/unix/sysv/linux/arm/Makefile [$(subdir) = nptl]
35383         (libpthread-sysdep_routines, libpthread-shared-only-routines, tests):
35384         Don't do those here.
35385
35386 2014-06-26  Joseph Myers  <joseph@codesourcery.com>
35387
35388         * scripts/list-sources.sh: Do not handle ports specially.
35389
35390 2014-06-26  Roland McGrath  <roland@hack.frob.com>
35391
35392         * sysdeps/arm/fesetenv.c: Include <fpu_control.h>.
35393         * sysdeps/arm/feupdateenv.c: Likewise.
35394
35395         * posix/spawn_faction_addopen.c: Include <stdlib.h> for free decl.
35396
35397 2014-06-26  Joseph Myers  <joseph@codesourcery.com>
35398
35399         * manual/texinfo.tex: Update to version 2014-05-05.10 with
35400         trailing whitespace removed.
35401         * scripts/config.guess: Update to version 2014-03-23.
35402         * scripts/config.sub: Update to version 2014-05-01
35403         * scripts/install-sh: Update to version 2013-12-25.23.
35404         * scripts/move-if-change: Update from gnulib.
35405
35406 2014-06-26  Siddhesh Poyarekar  <siddhesh@redhat.com>
35407
35408         * debug/memmove_chk.c: Remove pagecopy.h include.
35409
35410 2014-06-26  Paul Eggert  <eggert@cs.ucla.edu>
35411
35412         * time/mktime.c (leapyear): Remove inline keyword.  The code is now
35413         identical to gnulib mktime.
35414
35415 2014-06-26  Joseph Myers  <joseph@codesourcery.com>
35416
35417         * configure.ac: Do not test for machine being rs6000.  Do not test
35418         for powerpc*-*soft.
35419         * configure: Regenerated.
35420
35421         [BZ #11505]
35422         * configure.ac (libc_cv_asm_cfi_directives): Remove configure
35423         test.
35424         * configure: Regenerated.
35425         * config.h.in (HAVE_ASM_CFI_DIRECTIVES): Remove macro undefine.
35426         * sysdeps/arm/configure.ac (libc_cv_asm_cfi_directive_sections):
35427         Remove configure test.
35428         * sysdeps/arm/configure: Regenerated.
35429         * sysdeps/nptl/configure.ac: Do not check
35430         libc_cv_asm_cfi_directives.
35431         * sysdeps/nptl/configure: Regenerated.
35432         * sysdeps/x86_64/nptl/configure.ac: Remove file.
35433         * sysdeps/x86_64/nptl/configure: Remove generated file.
35434         * b/sysdeps/generic/sysdep.h [HAVE_ASM_CFI_DIRECTIVES]: Make code
35435         unconditional.
35436         [!HAVE_ASM_CFI_DIRECTIVES]: Remove conditional code.
35437
35438 2014-06-26  Siddhesh Poyarekar  <siddhesh@redhat.com>
35439
35440         * posix/fnmatch.c: Define WIDE_CHAR_VERSION.
35441         * posix/fnmatch_loop.c: Undefine WIDE_CHAR_VERSION.
35442         (FCT): Check value of WIDE_CHAR_VERSION instead of checking if
35443         it is defined.
35444
35445         * elf/dl-runtime.c: Check for value of ELF_MACHINE_NO_RELA
35446         instead of whether it is defined.
35447         * sysdeps/aarch64/dl-machine.h: Define ELF_MACHINE_NO_RELA.
35448         * sysdeps/hppa/dl-machine.h: Likewise.
35449         * sysdeps/ia64/dl-machine.h: Likewise.
35450         * sysdeps/m68k/dl-machine.h: Likewise.
35451         * sysdeps/microblaze/dl-machine.h: Likewise.
35452         * sysdeps/mips/dl-machine.: Likewise.
35453         * sysdeps/powerpc/powerpc32/dl-machine.h: Likewise.
35454         * sysdeps/powerpc/powerpc64/dl-machine.h: Likewise.
35455         * sysdeps/s390/s390-32/dl-machine.h: Likewise.
35456         * sysdeps/s390/s390-64/dl-machine.h: Likewise.
35457         * sysdeps/sh/dl-machine.h: Likewise.
35458         * sysdeps/sparc/sparc32/dl-machine.h: Likewise.
35459         * sysdeps/sparc/sparc64/dl-machine.h: Likewise.
35460         * sysdeps/tile/dl-machine.h: Likewise.
35461         * sysdeps/x86_64/dl-machine.h: Likewise.
35462
35463         * nscd/connections.c (enum usekey) [SEPARATE_KEY]: Remove
35464         code.
35465         (verify_persistent_db): Likewise.
35466
35467 2014-06-26  Roland McGrath  <roland@hack.frob.com>
35468
35469         * sysdeps/unix/sysv/linux/s390/s390-32/nptl/c++-types.data: Moved ...
35470         * sysdeps/unix/sysv/linux/s390/s390-32/c++-types.data: ... here.
35471         * sysdeps/unix/sysv/linux/s390/s390-32/nptl/ld.abilist: Moved ...
35472         * sysdeps/unix/sysv/linux/s390/s390-32/ld.abilist: ... here.
35473         * sysdeps/unix/sysv/linux/s390/s390-32/nptl/libBrokenLocale.abilist:
35474         Moved ...
35475         * sysdeps/unix/sysv/linux/s390/s390-32/libBrokenLocale.abilist:
35476         ... here.
35477         * sysdeps/unix/sysv/linux/s390/s390-32/nptl/libanl.abilist: Moved ...
35478         * sysdeps/unix/sysv/linux/s390/libanl.abilist: ... here.
35479         * sysdeps/unix/sysv/linux/s390/s390-64/nptl/libanl.abilist:
35480         Identical file removed.
35481         * sysdeps/unix/sysv/linux/s390/s390-32/nptl/libc.abilist: Moved ...
35482         * sysdeps/unix/sysv/linux/s390/s390-32/libc.abilist: ... here.
35483         * sysdeps/unix/sysv/linux/s390/s390-32/nptl/libcrypt.abilist: Moved ...
35484         * sysdeps/unix/sysv/linux/s390/s390-32/libcrypt.abilist: ... here.
35485         * sysdeps/unix/sysv/linux/s390/s390-32/nptl/libdl.abilist: Moved ...
35486         * sysdeps/unix/sysv/linux/s390/s390-32/libdl.abilist: ... here.
35487         * sysdeps/unix/sysv/linux/s390/s390-32/nptl/libm.abilist: Moved ...
35488         * sysdeps/unix/sysv/linux/s390/s390-32/libm.abilist: ... here.
35489         * sysdeps/unix/sysv/linux/s390/s390-32/nptl/libnsl.abilist: Moved ...
35490         * sysdeps/unix/sysv/linux/s390/s390-32/libnsl.abilist: ... here.
35491         * sysdeps/unix/sysv/linux/s390/s390-32/nptl/libpthread.abilist:
35492         Moved ...
35493         * sysdeps/unix/sysv/linux/s390/s390-32/libpthread.abilist: ... here.
35494         * sysdeps/unix/sysv/linux/s390/s390-32/nptl/libresolv.abilist: Moved ...
35495         * sysdeps/unix/sysv/linux/s390/s390-32/libresolv.abilist: ... here.
35496         * sysdeps/unix/sysv/linux/s390/s390-32/nptl/librt.abilist: Moved ...
35497         * sysdeps/unix/sysv/linux/s390/s390-32/librt.abilist: ... here.
35498         * sysdeps/unix/sysv/linux/s390/s390-32/nptl/libthread_db.abilist:
35499         Moved ...
35500         * sysdeps/unix/sysv/linux/s390/s390-32/libthread_db.abilist: ... here.
35501         * sysdeps/unix/sysv/linux/s390/s390-32/nptl/libutil.abilist: Moved ...
35502         * sysdeps/unix/sysv/linux/s390/s390-32/libutil.abilist: ... here.
35503         * sysdeps/unix/sysv/linux/s390/s390-32/nptl/localplt.data: Moved ...
35504         * sysdeps/unix/sysv/linux/s390/localplt.data: ... here.
35505         * sysdeps/unix/sysv/linux/s390/s390-64/nptl/localplt.data:
35506         Identical file removed.
35507         * sysdeps/unix/sysv/linux/s390/s390-64/nptl/c++-types.data: Moved ...
35508         * sysdeps/unix/sysv/linux/s390/s390-64/c++-types.data: ... here.
35509         * sysdeps/unix/sysv/linux/s390/s390-64/nptl/ld.abilist: Moved ...
35510         * sysdeps/unix/sysv/linux/s390/s390-64/ld.abilist: ... here.
35511         * sysdeps/unix/sysv/linux/s390/s390-64/nptl/libBrokenLocale.abilist:
35512         Moved ...
35513         * sysdeps/unix/sysv/linux/s390/s390-64/libBrokenLocale.abilist:
35514         ... here.
35515         * sysdeps/unix/sysv/linux/s390/s390-64/nptl/libc.abilist: Moved ...
35516         * sysdeps/unix/sysv/linux/s390/s390-64/libc.abilist: ... here.
35517         * sysdeps/unix/sysv/linux/s390/s390-64/nptl/libcrypt.abilist: Moved ...
35518         * sysdeps/unix/sysv/linux/s390/s390-64/libcrypt.abilist: ... here.
35519         * sysdeps/unix/sysv/linux/s390/s390-64/nptl/libdl.abilist: Moved ...
35520         * sysdeps/unix/sysv/linux/s390/s390-64/libdl.abilist: ... here.
35521         * sysdeps/unix/sysv/linux/s390/s390-64/nptl/libm.abilist: Moved ...
35522         * sysdeps/unix/sysv/linux/s390/s390-64/libm.abilist: ... here.
35523         * sysdeps/unix/sysv/linux/s390/s390-64/nptl/libnsl.abilist: Moved ...
35524         * sysdeps/unix/sysv/linux/s390/s390-64/libnsl.abilist: ... here.
35525         * sysdeps/unix/sysv/linux/s390/s390-64/nptl/libpthread.abilist:
35526         Moved ...
35527         * sysdeps/unix/sysv/linux/s390/s390-64/libpthread.abilist: ... here.
35528         * sysdeps/unix/sysv/linux/s390/s390-64/nptl/libresolv.abilist:
35529         Moved ...
35530         * sysdeps/unix/sysv/linux/s390/s390-64/libresolv.abilist: ... here.
35531         * sysdeps/unix/sysv/linux/s390/s390-64/nptl/librt.abilist: Moved ...
35532         * sysdeps/unix/sysv/linux/s390/s390-64/librt.abilist: ... here.
35533         * sysdeps/unix/sysv/linux/s390/s390-64/nptl/libthread_db.abilist:
35534         Moved ...
35535         * sysdeps/unix/sysv/linux/s390/s390-64/libthread_db.abilist: ... here.
35536         * sysdeps/unix/sysv/linux/s390/s390-64/nptl/libutil.abilist: Moved ...
35537         * sysdeps/unix/sysv/linux/s390/s390-64/libutil.abilist: ... here.
35538
35539         * nptl/sysdeps/unix/sysv/linux/s390/Makefile: File removed, contents
35540         folded into ...
35541         * sysdeps/unix/sysv/linux/s390/Makefile [$(subdir) = nptl]: ... here.
35542         * sysdeps/unix/sysv/linux/s390/Versions
35543         (libpthread: GLIBC_2.19): New version set.
35544         * nptl/sysdeps/unix/sysv/linux/s390/Versions: File removed.
35545         * sysdeps/unix/sysv/linux/s390/s390-64/Versions
35546         (librt: GLIBC_2.3.3): New version set.
35547         * nptl/sysdeps/unix/sysv/linux/s390/s390-64/Versions: File removed.
35548         * nptl/sysdeps/unix/sysv/linux/s390/elision-conf.c: Moved ...
35549         * sysdeps/unix/sysv/linux/s390/elision-conf.c: ... here.
35550         * nptl/sysdeps/unix/sysv/linux/s390/elision-conf.h: Moved ...
35551         * sysdeps/unix/sysv/linux/s390/elision-conf.h: ... here.
35552         * nptl/sysdeps/unix/sysv/linux/s390/elision-lock.c: Moved ...
35553         * sysdeps/unix/sysv/linux/s390/elision-lock.c: ... here.
35554         * nptl/sysdeps/unix/sysv/linux/s390/elision-timed.c: Moved ...
35555         * sysdeps/unix/sysv/linux/s390/elision-timed.c: ... here.
35556         * nptl/sysdeps/unix/sysv/linux/s390/elision-trylock.c: Moved ...
35557         * sysdeps/unix/sysv/linux/s390/elision-trylock.c: ... here.
35558         * nptl/sysdeps/unix/sysv/linux/s390/elision-unlock.c: Moved ...
35559         * sysdeps/unix/sysv/linux/s390/elision-unlock.c: ... here.
35560         * nptl/sysdeps/unix/sysv/linux/s390/force-elision.h: Moved ...
35561         * sysdeps/unix/sysv/linux/s390/force-elision.h: ... here.
35562         * nptl/sysdeps/unix/sysv/linux/s390/jmp-unwind.c: Moved ...
35563         * sysdeps/unix/sysv/linux/s390/jmp-unwind.c: ... here.
35564         * nptl/sysdeps/unix/sysv/linux/s390/lowlevellock.h: Moved ...
35565         * sysdeps/unix/sysv/linux/s390/lowlevellock.h: ... here.
35566         * nptl/sysdeps/unix/sysv/linux/s390/pt-longjmp.c: Moved ...
35567         * sysdeps/unix/sysv/linux/s390/pt-longjmp.c: ... here.
35568         * nptl/sysdeps/unix/sysv/linux/s390/pthread_mutex_cond_lock.c: Moved ...
35569         * sysdeps/unix/sysv/linux/s390/pthread_mutex_cond_lock.c: ... here.
35570         * nptl/sysdeps/unix/sysv/linux/s390/pthread_mutex_lock.c: Moved ...
35571         * sysdeps/unix/sysv/linux/s390/pthread_mutex_lock.c: ... here.
35572         * nptl/sysdeps/unix/sysv/linux/s390/pthread_mutex_timedlock.c: Moved ...
35573         * sysdeps/unix/sysv/linux/s390/pthread_mutex_timedlock.c: ... here.
35574         * nptl/sysdeps/unix/sysv/linux/s390/pthread_mutex_trylock.c: Moved ...
35575         * sysdeps/unix/sysv/linux/s390/pthread_mutex_trylock.c: ... here.
35576         * nptl/sysdeps/unix/sysv/linux/s390/pthread_once.c: Moved ...
35577         * sysdeps/unix/sysv/linux/s390/pthread_once.c: ... here.
35578         * nptl/sysdeps/unix/sysv/linux/s390/s390-32/sysdep-cancel.h: Moved ...
35579         * sysdeps/unix/sysv/linux/s390/s390-32/sysdep-cancel.h: ... here.
35580         * nptl/sysdeps/unix/sysv/linux/s390/s390-64/sysdep-cancel.h: Moved ...
35581         * sysdeps/unix/sysv/linux/s390/s390-64/sysdep-cancel.h: ... here.
35582         * nptl/sysdeps/unix/sysv/linux/s390/s390-64/timer_create.c: Moved ...
35583         * sysdeps/unix/sysv/linux/s390/s390-64/timer_create.c: ... here.
35584         * nptl/sysdeps/unix/sysv/linux/s390/s390-64/timer_delete.c: Moved ...
35585         * sysdeps/unix/sysv/linux/s390/s390-64/timer_delete.c: ... here.
35586         * nptl/sysdeps/unix/sysv/linux/s390/s390-64/timer_getoverr.c: Moved ...
35587         * sysdeps/unix/sysv/linux/s390/s390-64/timer_getoverr.c: ... here.
35588         * nptl/sysdeps/unix/sysv/linux/s390/s390-64/timer_gettime.c: Moved ...
35589         * sysdeps/unix/sysv/linux/s390/s390-64/timer_gettime.c: ... here.
35590         * nptl/sysdeps/unix/sysv/linux/s390/s390-64/timer_settime.c: Moved ...
35591         * sysdeps/unix/sysv/linux/s390/s390-64/timer_settime.c: ... here.
35592
35593         * nptl/sysdeps/unix/sysv/linux/s390/s390-32/vfork.S: Moved ...
35594         * sysdeps/unix/sysv/linux/s390/s390-32/vfork.S: ... here.
35595         (__libc_vfork): Define the function under this name.
35596         [!NOT_IN_libc] (__vfork): Make this an alias.
35597         [!NOT_IN_libc] (vfork): Conditionalize the weak_alias.
35598         * nptl/sysdeps/unix/sysv/linux/s390/s390-64/vfork.S: Moved ...
35599         * sysdeps/unix/sysv/linux/s390/s390-64/vfork.S: ... here.
35600         (__libc_vfork): Define the function under this name.
35601         [!NOT_IN_libc] (__vfork): Make this an alias.
35602         [!NOT_IN_libc] (vfork): Conditionalize the weak_alias.
35603         * sysdeps/unix/sysv/linux/s390/pt-vfork.S: New file.
35604         * nptl/sysdeps/unix/sysv/linux/s390/s390-32/pt-vfork.S: File removed.
35605         * nptl/sysdeps/unix/sysv/linux/s390/s390-64/pt-vfork.S: File removed.
35606         * sysdeps/unix/sysv/linux/s390/s390-32/syscalls.list: Remove vfork.
35607         * sysdeps/unix/sysv/linux/s390/s390-64/syscalls.list: Likewise.
35608
35609         * sysdeps/unix/sysv/linux/s390/s390-32/clone.S: Deconditionalize the
35610         code that was previously under [RESET_PID].
35611         * sysdeps/unix/sysv/linux/s390/s390-64/clone.S: Likewise.
35612         * nptl/sysdeps/unix/sysv/linux/s390/s390-32/clone.S: File removed.
35613         * nptl/sysdeps/unix/sysv/linux/s390/s390-64/clone.S: File removed.
35614
35615         * sysdeps/unix/sysv/linux/aarch64/nptl/bits/pthreadtypes.h: Moved ...
35616         * sysdeps/aarch64/nptl/bits/pthreadtypes.h: ... here.
35617         * sysdeps/unix/sysv/linux/aarch64/nptl/bits/semaphore.h: Moved ...
35618         * sysdeps/aarch64/nptl/bits/semaphore.h: ... here.
35619         * sysdeps/unix/sysv/linux/aarch64/nptl/bits/local_lim.h: Moved ...
35620         * sysdeps/unix/sysv/linux/aarch64/bits/local_lim.h: ... here.
35621         * sysdeps/unix/sysv/linux/aarch64/nptl/c++-types.data: Moved ...
35622         * sysdeps/unix/sysv/linux/aarch64/c++-types.data: ... here.
35623         * sysdeps/unix/sysv/linux/aarch64/nptl/ld.abilist: Moved ...
35624         * sysdeps/unix/sysv/linux/aarch64/ld.abilist: ... here.
35625         * sysdeps/unix/sysv/linux/aarch64/nptl/libBrokenLocale.abilist:
35626         Moved ...
35627         * sysdeps/unix/sysv/linux/aarch64/libBrokenLocale.abilist: ... here.
35628         * sysdeps/unix/sysv/linux/aarch64/nptl/libanl.abilist: Moved ...
35629         * sysdeps/unix/sysv/linux/aarch64/libanl.abilist: ... here.
35630         * sysdeps/unix/sysv/linux/aarch64/nptl/libc.abilist: Moved ...
35631         * sysdeps/unix/sysv/linux/aarch64/libc.abilist: ... here.
35632         * sysdeps/unix/sysv/linux/aarch64/nptl/libcrypt.abilist: Moved ...
35633         * sysdeps/unix/sysv/linux/aarch64/libcrypt.abilist: ... here.
35634         * sysdeps/unix/sysv/linux/aarch64/nptl/libdl.abilist: Moved ...
35635         * sysdeps/unix/sysv/linux/aarch64/libdl.abilist: ... here.
35636         * sysdeps/unix/sysv/linux/aarch64/nptl/libm.abilist: Moved ...
35637         * sysdeps/unix/sysv/linux/aarch64/libm.abilist: ... here.
35638         * sysdeps/unix/sysv/linux/aarch64/nptl/libnsl.abilist: Moved ...
35639         * sysdeps/unix/sysv/linux/aarch64/libnsl.abilist: ... here.
35640         * sysdeps/unix/sysv/linux/aarch64/nptl/libpthread.abilist: Moved ...
35641         * sysdeps/unix/sysv/linux/aarch64/libpthread.abilist: ... here.
35642         * sysdeps/unix/sysv/linux/aarch64/nptl/libresolv.abilist: Moved ...
35643         * sysdeps/unix/sysv/linux/aarch64/libresolv.abilist: ... here.
35644         * sysdeps/unix/sysv/linux/aarch64/nptl/librt.abilist: Moved ...
35645         * sysdeps/unix/sysv/linux/aarch64/librt.abilist: ... here.
35646         * sysdeps/unix/sysv/linux/aarch64/nptl/libthread_db.abilist: Moved ...
35647         * sysdeps/unix/sysv/linux/aarch64/libthread_db.abilist: ... here.
35648         * sysdeps/unix/sysv/linux/aarch64/nptl/libutil.abilist: Moved ...
35649         * sysdeps/unix/sysv/linux/aarch64/libutil.abilist: ... here.
35650         * sysdeps/unix/sysv/linux/aarch64/nptl/localplt.data: Moved ...
35651         * sysdeps/unix/sysv/linux/aarch64/localplt.data: ... here.
35652         * sysdeps/unix/sysv/linux/aarch64/nptl/lowlevellock.h: Moved ...
35653         * sysdeps/unix/sysv/linux/aarch64/lowlevellock.h: ... here.
35654         * sysdeps/unix/sysv/linux/aarch64/nptl/sysdep-cancel.h: Moved ...
35655         * sysdeps/unix/sysv/linux/aarch64/sysdep-cancel.h: ... here.
35656
35657 2014-06-25  Roland McGrath  <roland@hack.frob.com>
35658
35659         * sysdeps/unix/sysv/linux/mips/clone.S: Deconditionalize the code
35660         that was previously under [RESET_PID].
35661         * sysdeps/unix/sysv/linux/mips/nptl/clone.S: File removed.
35662
35663 2014-06-25  Joseph Myers  <joseph@codesourcery.com>
35664
35665         * sysdeps/unix/sysv/linux/dl-opendir.c (__ASSUME_O_CLOEXEC): Do
35666         not undefine and redefine.
35667         * sysdeps/unix/sysv/linux/getsysstats.c (__get_nprocs)
35668         [O_CLOEXEC]: Make code unconditional.
35669         (__get_nprocs) [!O_CLOEXEC]: Remove conditional code.
35670         * sysdeps/unix/sysv/linux/shm_open.c: Do not include
35671         <kernel-features.h>.
35672         [O_CLOEXEC && !__ASSUME_O_CLOEXEC] (have_o_cloexec): Remove
35673         conditional variable definition.
35674         (shm_open) [O_CLOEXEC]: Make code unconditional.
35675         (shm_open) [!O_CLOEXEC || !__ASSUME_O_CLOEXEC]: Remove conditional
35676         code.
35677
35678         * configure.ac (USE_REGPARMS): Don't define here.
35679         * configure: Regenerated.
35680         * sysdeps/i386/configure.ac (USE_REGPARMS): Define here.
35681         * sysdeps/i386/configure: Regenerated.
35682
35683         * nptl/createthread.c: Don't include kernel-features.h.
35684         * nptl/pthread_cancel.c: Likewise.
35685         * nptl/pthread_condattr_setclock.c: Likewise.
35686         * nptl/sysdeps/unix/sysv/linux/pt-raise.c: Likewise.
35687         * nptl/sysdeps/unix/sysv/linux/pthread_getcpuclockid.c: Likewise.
35688         * nptl/sysdeps/unix/sysv/linux/pthread_kill.c: Likewise.
35689         * nptl/sysdeps/unix/sysv/linux/pthread_sigqueue.c: Likewise.
35690         * nptl/sysdeps/unix/sysv/linux/raise.c: Likewise.
35691         * nptl/sysdeps/unix/sysv/linux/s390/s390-32/pt-vfork.S: Likewise.
35692         * nptl/sysdeps/unix/sysv/linux/s390/s390-32/vfork.S: Likewise.
35693         * nptl/sysdeps/unix/sysv/linux/s390/s390-64/pt-vfork.S: Likewise.
35694         * nptl/sysdeps/unix/sysv/linux/s390/s390-64/vfork.S: Likewise.
35695         * nptl/sysdeps/unix/sysv/linux/timer_create.c: Likewise.
35696         * nptl/sysdeps/unix/sysv/linux/timer_delete.c: Likewise.
35697         * nptl/sysdeps/unix/sysv/linux/timer_getoverr.c: Likewise.
35698         * nptl/sysdeps/unix/sysv/linux/timer_gettime.c: Likewise.
35699         * nptl/sysdeps/unix/sysv/linux/timer_routines.c: Likewise.
35700         * nptl/sysdeps/unix/sysv/linux/timer_settime.c: Likewise.
35701         * nscd/gai.c: Likewise.
35702         * nss/nss_db/db-open.c: Likewise.
35703         * sysdeps/generic/ldsodefs.h: Likewise.
35704         * sysdeps/sh/nptl/tls.h: Likewise.
35705         * sysdeps/unix/sysv/linux/aarch64/sigaction.c: Likewise.
35706         * sysdeps/unix/sysv/linux/aarch64/sigcontextinfo.h: Likewise.
35707         * sysdeps/unix/sysv/linux/aarch64/vfork.S: Likewise.
35708         * sysdeps/unix/sysv/linux/adjtime.c: Likewise.
35709         * sysdeps/unix/sysv/linux/alpha/xstatconv.h: Likewise.
35710         * sysdeps/unix/sysv/linux/arm/sigaction.c: Likewise.
35711         * sysdeps/unix/sysv/linux/arm/sigcontextinfo.h: Likewise.
35712         * sysdeps/unix/sysv/linux/check_pf.c: Likewise.
35713         * sysdeps/unix/sysv/linux/clock_getcpuclockid.c: Likewise.
35714         * sysdeps/unix/sysv/linux/clock_getres.c: Likewise.
35715         * sysdeps/unix/sysv/linux/clock_gettime.c: Likewise.
35716         * sysdeps/unix/sysv/linux/clock_nanosleep.c: Likewise.
35717         * sysdeps/unix/sysv/linux/clock_settime.c: Likewise.
35718         * sysdeps/unix/sysv/linux/dl-execstack.c: Likewise.
35719         * sysdeps/unix/sysv/linux/dl-osinfo.h: Likewise.
35720         * sysdeps/unix/sysv/linux/dl-sysdep.c: Likewise.
35721         * sysdeps/unix/sysv/linux/generic/futimesat.c: Likewise.
35722         * sysdeps/unix/sysv/linux/generic/poll.c: Likewise.
35723         * sysdeps/unix/sysv/linux/generic/wordsize-32/fcntl.c: Likewise.
35724         * sysdeps/unix/sysv/linux/generic/wordsize-32/fxstatat.c: Likewise.
35725         * sysdeps/unix/sysv/linux/generic/wordsize-32/pread.c: Likewise.
35726         * sysdeps/unix/sysv/linux/generic/wordsize-32/pread64.c: Likewise.
35727         * sysdeps/unix/sysv/linux/generic/wordsize-32/preadv.c: Likewise.
35728         * sysdeps/unix/sysv/linux/generic/wordsize-32/preadv64.c: Likewise.
35729         * sysdeps/unix/sysv/linux/generic/wordsize-32/pwrite.c: Likewise.
35730         * sysdeps/unix/sysv/linux/generic/wordsize-32/pwrite64.c: Likewise.
35731         * sysdeps/unix/sysv/linux/generic/wordsize-32/pwritev.c: Likewise.
35732         * sysdeps/unix/sysv/linux/generic/wordsize-32/pwritev64.c: Likewise.
35733         * sysdeps/unix/sysv/linux/getcwd.c: Likewise.
35734         * sysdeps/unix/sysv/linux/getpagesize.c: Likewise.
35735         * sysdeps/unix/sysv/linux/getsysstats.c: Likewise.
35736         * sysdeps/unix/sysv/linux/i386/fxstat.c: Likewise.
35737         * sysdeps/unix/sysv/linux/i386/lxstat.c: Likewise.
35738         * sysdeps/unix/sysv/linux/i386/mmap.S: Likewise.
35739         * sysdeps/unix/sysv/linux/i386/mmap64.S: Likewise.
35740         * sysdeps/unix/sysv/linux/i386/sigaction.c: Likewise.
35741         * sysdeps/unix/sysv/linux/i386/vfork.S: Likewise.
35742         * sysdeps/unix/sysv/linux/i386/xstat.c: Likewise.
35743         * sysdeps/unix/sysv/linux/ia64/system.c: Likewise.
35744         * sysdeps/unix/sysv/linux/if_index.c: Likewise.
35745         * sysdeps/unix/sysv/linux/ifaddrs.c: Likewise.
35746         * sysdeps/unix/sysv/linux/ifreq.c: Likewise.
35747         * sysdeps/unix/sysv/linux/ldsodefs.h: Likewise.
35748         * sysdeps/unix/sysv/linux/lutimes.c: Likewise.
35749         * sysdeps/unix/sysv/linux/m68k/vfork.S: Likewise.
35750         * sysdeps/unix/sysv/linux/microblaze/nptl/vfork.S: Likewise.
35751         * sysdeps/unix/sysv/linux/mips/mips32/accept4.c: Likewise.
35752         * sysdeps/unix/sysv/linux/mips/mips32/recvmmsg.c: Likewise.
35753         * sysdeps/unix/sysv/linux/mips/mips32/sendmmsg.c: Likewise.
35754         * sysdeps/unix/sysv/linux/mips/pread.c: Likewise.
35755         * sysdeps/unix/sysv/linux/mips/pread64.c: Likewise.
35756         * sysdeps/unix/sysv/linux/mips/pwrite.c: Likewise.
35757         * sysdeps/unix/sysv/linux/mips/pwrite64.c: Likewise.
35758         * sysdeps/unix/sysv/linux/mips/sigaction.c: Likewise.
35759         * sysdeps/unix/sysv/linux/mmap64.c: Likewise.
35760         * sysdeps/unix/sysv/linux/netlinkaccess.h: Likewise.
35761         * sysdeps/unix/sysv/linux/powerpc/chown.c: Likewise.
35762         * sysdeps/unix/sysv/linux/powerpc/dl-sysdep.c: Likewise.
35763         * sysdeps/unix/sysv/linux/powerpc/powerpc32/clone.S: Likewise.
35764         * sysdeps/unix/sysv/linux/powerpc/powerpc32/fpu/fe_mask.c: Likewise.
35765         * sysdeps/unix/sysv/linux/powerpc/powerpc32/fpu/fe_nomask.c: Likewise.
35766         * sysdeps/unix/sysv/linux/powerpc/powerpc32/getcontext.S: Likewise.
35767         * sysdeps/unix/sysv/linux/powerpc/powerpc32/pread.c: Likewise.
35768         * sysdeps/unix/sysv/linux/powerpc/powerpc32/pread64.c: Likewise.
35769         * sysdeps/unix/sysv/linux/powerpc/powerpc32/pwrite.c: Likewise.
35770         * sysdeps/unix/sysv/linux/powerpc/powerpc32/pwrite64.c: Likewise.
35771         * sysdeps/unix/sysv/linux/powerpc/powerpc32/setcontext.S: Likewise.
35772         * sysdeps/unix/sysv/linux/powerpc/powerpc32/swapcontext.S: Likewise.
35773         * sysdeps/unix/sysv/linux/powerpc/powerpc32/vfork.S: Likewise.
35774         * sysdeps/unix/sysv/linux/powerpc/powerpc64/fpu/fe_mask.c: Likewise.
35775         * sysdeps/unix/sysv/linux/powerpc/powerpc64/fpu/fe_nomask.c: Likewise.
35776         * sysdeps/unix/sysv/linux/powerpc/powerpc64/getcontext.S: Likewise.
35777         * sysdeps/unix/sysv/linux/powerpc/powerpc64/makecontext.S: Likewise.
35778         * sysdeps/unix/sysv/linux/powerpc/powerpc64/pread.c: Likewise.
35779         * sysdeps/unix/sysv/linux/powerpc/powerpc64/pread64.c: Likewise.
35780         * sysdeps/unix/sysv/linux/powerpc/powerpc64/pwrite.c: Likewise.
35781         * sysdeps/unix/sysv/linux/powerpc/powerpc64/pwrite64.c: Likewise.
35782         * sysdeps/unix/sysv/linux/powerpc/powerpc64/setcontext.S: Likewise.
35783         * sysdeps/unix/sysv/linux/powerpc/powerpc64/swapcontext.S: Likewise.
35784         * sysdeps/unix/sysv/linux/powerpc/powerpc64/vfork.S: Likewise.
35785         * sysdeps/unix/sysv/linux/pread.c: Likewise.
35786         * sysdeps/unix/sysv/linux/pread64.c: Likewise.
35787         * sysdeps/unix/sysv/linux/prof-freq.c: Likewise.
35788         * sysdeps/unix/sysv/linux/pwrite.c: Likewise.
35789         * sysdeps/unix/sysv/linux/pwrite64.c: Likewise.
35790         * sysdeps/unix/sysv/linux/s390/s390-32/mmap.S: Likewise.
35791         * sysdeps/unix/sysv/linux/s390/s390-32/mmap64.S: Likewise.
35792         * sysdeps/unix/sysv/linux/s390/system.c: Likewise.
35793         * sysdeps/unix/sysv/linux/sh/pread.c: Likewise.
35794         * sysdeps/unix/sysv/linux/sh/pread64.c: Likewise.
35795         * sysdeps/unix/sysv/linux/sh/pwrite.c: Likewise.
35796         * sysdeps/unix/sysv/linux/sh/pwrite64.c: Likewise.
35797         * sysdeps/unix/sysv/linux/sigaction.c: Likewise.
35798         * sysdeps/unix/sysv/linux/sigpending.c: Likewise.
35799         * sysdeps/unix/sysv/linux/sigprocmask.c: Likewise.
35800         * sysdeps/unix/sysv/linux/sigsuspend.c: Likewise.
35801         * sysdeps/unix/sysv/linux/sparc/sparc64/xstatconv.c: Likewise.
35802         * sysdeps/unix/sysv/linux/sparc/system.c: Likewise.
35803         * sysdeps/unix/sysv/linux/syslog.c: Likewise.
35804         * sysdeps/unix/sysv/linux/system.c: Likewise.
35805         * sysdeps/unix/sysv/linux/testrtsig.h: Likewise.
35806         * sysdeps/unix/sysv/linux/timespec_get.c: Likewise.
35807         * sysdeps/unix/sysv/linux/ttyname.c: Likewise.
35808         * sysdeps/unix/sysv/linux/ttyname_r.c: Likewise.
35809         * sysdeps/unix/sysv/linux/utimensat.c: Likewise.
35810         * sysdeps/unix/sysv/linux/x86_64/sigaction.c: Likewise.
35811         * sysdeps/unix/sysv/linux/xstatconv.h: Likewise.
35812
35813         * configure.ac (libc_cv_c_asmcr0_bug): Remove configure test.
35814         * configure: Regenerated.
35815         * config.h.in (BROKEN_PPC_ASM_CR0): Remove macro.
35816
35817         * configure.ac (base_machine): Do not set specially for particular
35818         machines here.
35819         * configure: Regenerated.
35820         * sysdeps/powerpc/preconfigure: Move machine and base_machine
35821         settings from configure.ac.
35822         * sysdeps/i386/preconfigure: New file.
35823         * sysdeps/s390/preconfigure: Likewise.
35824         * sysdeps/sh/preconfigure: Likewise.
35825         * sysdeps/sparc/preconfigure: Likewise.
35826
35827 2014-06-25  Roland McGrath  <roland@hack.frob.com>
35828
35829         * sysdeps/sparc/sparc64/nptl/cpu_relax.S: Moved ...
35830         * sysdeps/sparc/sparc64/cpu_relax.S: ... here.
35831         * sysdeps/sparc/sparc64/nptl/pthread_spin_init.c: Moved ...
35832         * sysdeps/sparc/sparc64/pthread_spin_init.c: ... here.
35833         * sysdeps/sparc/sparc64/nptl/pthread_spin_lock.S: Moved ...
35834         * sysdeps/sparc/sparc64/pthread_spin_lock.S: ... here.
35835         * sysdeps/sparc/sparc64/nptl/pthread_spin_trylock.S: Moved ...
35836         * sysdeps/sparc/sparc64/pthread_spin_trylock.S: ... here.
35837         * sysdeps/sparc/sparc64/nptl/pthread_spin_unlock.S: Moved ...
35838         * sysdeps/sparc/sparc64/pthread_spin_unlock.S: ... here.
35839         * sysdeps/sparc/sparc64/nptl/pthreaddef.h: Moved ...
35840         * sysdeps/sparc/sparc64/pthreaddef.h: ... here.
35841         * sysdeps/sparc/sparc32/sparcv9/cpu_relax.S: Update #include.
35842         * sysdeps/sparc/sparc32/sparcv9/pthread_spin_init.c: Likewise.
35843         * sysdeps/sparc/sparc32/sparcv9/pthread_spin_lock.S: Likewise.
35844         * sysdeps/sparc/sparc32/sparcv9/pthread_spin_trylock.S: Likewise.
35845         * sysdeps/sparc/sparc32/sparcv9/nptl/pthread_spin_unlock.S: Likewise.
35846         * sysdeps/sparc/sparc64/nptl/Makefile: File removed, its contents ...
35847         * sysdeps/sparc/sparc64/Makefile: ... appended here.
35848
35849         * sysdeps/sparc/sparc32/nptl/lowlevellock.c: Moved ...
35850         * sysdeps/sparc/sparc32/lowlevellock.c: ... here.
35851         * sysdeps/sparc/sparc32/nptl/pthread_barrier_wait.c: Moved ...
35852         * sysdeps/sparc/sparc32/pthread_barrier_wait.c: ... here.
35853         * sysdeps/sparc/sparc32/nptl/pthread_spin_lock.S: Moved ...
35854         * sysdeps/sparc/sparc32/pthread_spin_lock.S: ... here.
35855         * sysdeps/sparc/sparc32/nptl/pthread_spin_trylock.S: Moved ...
35856         * sysdeps/sparc/sparc32/pthread_spin_trylock.S: ... here.
35857         * sysdeps/sparc/sparc32/nptl/pthreaddef.h: Moved ...
35858         * sysdeps/sparc/sparc32/pthreaddef.h: ... here.
35859         * sysdeps/sparc/sparc32/nptl/sem_post.c: Moved ...
35860         * sysdeps/sparc/sparc32/sem_post.c: ... here.
35861         * sysdeps/sparc/sparc32/nptl/sem_timedwait.c: Moved ...
35862         * sysdeps/sparc/sparc32/sem_timedwait.c: ... here.
35863         * sysdeps/sparc/sparc32/nptl/sem_trywait.c: Moved ...
35864         * sysdeps/sparc/sparc32/sem_trywait.c: ... here.
35865         * sysdeps/sparc/sparc32/nptl/sem_wait.c: Moved ...
35866         * sysdeps/sparc/sparc32/sem_wait.c: ... here.
35867         * sysdeps/sparc/sparc32/sparcv9/nptl/cpu_relax.S: Moved ...
35868         * sysdeps/sparc/sparc32/sparcv9/cpu_relax.S: ... here.
35869         * sysdeps/sparc/sparc32/sparcv9/nptl/pthread_barrier_wait.c: Moved ...
35870         * sysdeps/sparc/sparc32/sparcv9/pthread_barrier_wait.c: ... here.
35871         * sysdeps/sparc/sparc32/sparcv9/nptl/pthread_spin_init.c: Moved ...
35872         * sysdeps/sparc/sparc32/sparcv9/pthread_spin_init.c: ... here.
35873         * sysdeps/sparc/sparc32/sparcv9/nptl/pthread_spin_lock.S: Moved ...
35874         * sysdeps/sparc/sparc32/sparcv9/pthread_spin_lock.S: ... here.
35875         * sysdeps/sparc/sparc32/sparcv9/nptl/pthread_spin_trylock.S: Moved ...
35876         * sysdeps/sparc/sparc32/sparcv9/pthread_spin_trylock.S: ... here.
35877         * sysdeps/sparc/sparc32/sparcv9/nptl/pthread_spin_unlock.S: Moved ...
35878         * sysdeps/sparc/sparc32/sparcv9/pthread_spin_unlock.S: ... here.
35879         * sysdeps/sparc/sparc32/sparcv9/nptl/sem_post.c: Moved ...
35880         * sysdeps/sparc/sparc32/sparcv9/sem_post.c: ... here.
35881         * sysdeps/sparc/sparc32/sparcv9/nptl/sem_timedwait.c: Moved ...
35882         * sysdeps/sparc/sparc32/sparcv9/sem_timedwait.c: ... here.
35883         * sysdeps/sparc/sparc32/sparcv9/nptl/sem_trywait.c: Moved ...
35884         * sysdeps/sparc/sparc32/sparcv9/sem_trywait.c: ... here.
35885         * sysdeps/sparc/sparc32/sparcv9/nptl/sem_wait.c: Moved ...
35886         * sysdeps/sparc/sparc32/sparcv9/sem_wait.c: ... here.
35887
35888         * sysdeps/unix/sysv/linux/sparc/sparc32/nptl/c++-types.data: Moved ...
35889         * sysdeps/unix/sysv/linux/sparc/sparc32/c++-types.data: ... here.
35890         * sysdeps/unix/sysv/linux/sparc/sparc32/nptl/ld.abilist: Moved ...
35891         * sysdeps/unix/sysv/linux/sparc/sparc32/ld.abilist: ... here.
35892         * sysdeps/unix/sysv/linux/sparc/sparc32/nptl/libBrokenLocale.abilist:
35893         Moved ...
35894         * sysdeps/unix/sysv/linux/sparc/sparc32/libBrokenLocale.abilist:
35895         ... here.
35896         * sysdeps/unix/sysv/linux/sparc/sparc32/nptl/libanl.abilist: Moved ...
35897         * sysdeps/unix/sysv/linux/sparc/sparc32/libanl.abilist: ... here.
35898         * sysdeps/unix/sysv/linux/sparc/sparc32/nptl/libc.abilist: Moved ...
35899         * sysdeps/unix/sysv/linux/sparc/sparc32/libc.abilist: ... here.
35900         * sysdeps/unix/sysv/linux/sparc/sparc32/nptl/libcrypt.abilist:
35901         Moved ...
35902         * sysdeps/unix/sysv/linux/sparc/sparc32/libcrypt.abilist: ... here.
35903         * sysdeps/unix/sysv/linux/sparc/sparc32/nptl/libdl.abilist: Moved ...
35904         * sysdeps/unix/sysv/linux/sparc/sparc32/libdl.abilist: ... here.
35905         * sysdeps/unix/sysv/linux/sparc/sparc32/nptl/libm.abilist: Moved ...
35906         * sysdeps/unix/sysv/linux/sparc/sparc32/libm.abilist: ... here.
35907         * sysdeps/unix/sysv/linux/sparc/sparc32/nptl/libnsl.abilist: Moved ...
35908         * sysdeps/unix/sysv/linux/sparc/sparc32/libnsl.abilist: ... here.
35909         * sysdeps/unix/sysv/linux/sparc/sparc32/nptl/libpthread.abilist:
35910         Moved ...
35911         * sysdeps/unix/sysv/linux/sparc/sparc32/libpthread.abilist: ... here.
35912         * sysdeps/unix/sysv/linux/sparc/sparc32/nptl/libresolv.abilist:
35913         Moved ...
35914         * sysdeps/unix/sysv/linux/sparc/sparc32/libresolv.abilist: ... here.
35915         * sysdeps/unix/sysv/linux/sparc/sparc32/nptl/librt.abilist: Moved ...
35916         * sysdeps/unix/sysv/linux/sparc/sparc32/librt.abilist: ... here.
35917         * sysdeps/unix/sysv/linux/sparc/sparc32/nptl/libthread_db.abilist:
35918         Moved ...
35919         * sysdeps/unix/sysv/linux/sparc/sparc32/libthread_db.abilist: ... here.
35920         * sysdeps/unix/sysv/linux/sparc/sparc32/nptl/libutil.abilist: Moved ...
35921         * sysdeps/unix/sysv/linux/sparc/sparc32/libutil.abilist: ... here.
35922         * sysdeps/unix/sysv/linux/sparc/sparc32/nptl/localplt.data: Moved ...
35923         * sysdeps/unix/sysv/linux/sparc/sparc32/localplt.data: ... here.
35924         * sysdeps/unix/sysv/linux/sparc/sparc64/nptl/c++-types.data: Moved ...
35925         * sysdeps/unix/sysv/linux/sparc/sparc64/c++-types.data: ... here.
35926         * sysdeps/unix/sysv/linux/sparc/sparc64/nptl/ld.abilist: Moved ...
35927         * sysdeps/unix/sysv/linux/sparc/sparc64/ld.abilist: ... here.
35928         * sysdeps/unix/sysv/linux/sparc/sparc64/nptl/libBrokenLocale.abilist:
35929         Moved ...
35930         * sysdeps/unix/sysv/linux/sparc/sparc64/libBrokenLocale.abilist:
35931         ... here.
35932         * sysdeps/unix/sysv/linux/sparc/sparc64/nptl/libanl.abilist: Moved ...
35933         * sysdeps/unix/sysv/linux/sparc/sparc64/libanl.abilist: ... here.
35934         * sysdeps/unix/sysv/linux/sparc/sparc64/nptl/libc.abilist: Moved ...
35935         * sysdeps/unix/sysv/linux/sparc/sparc64/libc.abilist: ... here.
35936         * sysdeps/unix/sysv/linux/sparc/sparc64/nptl/libcrypt.abilist:
35937         Moved ...
35938         * sysdeps/unix/sysv/linux/sparc/sparc64/libcrypt.abilist: ... here.
35939         * sysdeps/unix/sysv/linux/sparc/sparc64/nptl/libdl.abilist: Moved ...
35940         * sysdeps/unix/sysv/linux/sparc/sparc64/libdl.abilist: ... here.
35941         * sysdeps/unix/sysv/linux/sparc/sparc64/nptl/libm.abilist: Moved ...
35942         * sysdeps/unix/sysv/linux/sparc/sparc64/libm.abilist: ... here.
35943         * sysdeps/unix/sysv/linux/sparc/sparc64/nptl/libnsl.abilist: Moved ...
35944         * sysdeps/unix/sysv/linux/sparc/sparc64/libnsl.abilist: ... here.
35945         * sysdeps/unix/sysv/linux/sparc/sparc64/nptl/libpthread.abilist:
35946         Moved ...
35947         * sysdeps/unix/sysv/linux/sparc/sparc64/libpthread.abilist: ... here.
35948         * sysdeps/unix/sysv/linux/sparc/sparc64/nptl/libresolv.abilist:
35949         Moved ...
35950         * sysdeps/unix/sysv/linux/sparc/sparc64/libresolv.abilist: ... here.
35951         * sysdeps/unix/sysv/linux/sparc/sparc64/nptl/librt.abilist: Moved ...
35952         * sysdeps/unix/sysv/linux/sparc/sparc64/librt.abilist: ... here.
35953         * sysdeps/unix/sysv/linux/sparc/sparc64/nptl/libthread_db.abilist:
35954         Moved ...
35955         * sysdeps/unix/sysv/linux/sparc/sparc64/libthread_db.abilist: ... here.
35956         * sysdeps/unix/sysv/linux/sparc/sparc64/nptl/libutil.abilist: Moved ...
35957         * sysdeps/unix/sysv/linux/sparc/sparc64/libutil.abilist: ... here.
35958         * sysdeps/unix/sysv/linux/sparc/sparc64/nptl/localplt.data: Moved ...
35959         * sysdeps/unix/sysv/linux/sparc/sparc64/localplt.data: ... here.
35960
35961 2014-06-25  Joseph Myers  <joseph@codesourcery.com>
35962
35963         * timezone/checktab.awk: Update from tzcode 2014e.
35964         * timezone/private.h: Likewise.
35965         * timezone/tzfile.h: Likewise.
35966         * timezone/zdump.c: Likewise.
35967         * timezone/zic.c: Likewise.
35968
35969         * sysdeps/unix/sysv/linux/kernel-features.h
35970         (__ASSUME_XFS_RESTRICTED_CHOWN): Remove macro.
35971         * sysdeps/unix/sysv/linux/pathconf.c (__statfs_chown_restricted)
35972         [__ASSUME_XFS_RESTRICTED_CHOWN]: Make code unconditional.
35973         (__statfs_chown_restricted) [!__ASSUME_XFS_RESTRICTED_CHOWN]:
35974         Remove conditional code.
35975
35976 2014-06-25  Will Newton  <will.newton@linaro.org>
35977
35978         * sysdeps/unix/sysv/linux/arm/dl-procinfo.c
35979         (_dl_arm_cap_flags): Add HWCAP2 values.
35980         * sysdeps/unix/sysv/linux/arm/dl-procinfo.h
35981         (_DL_HWCAP_COUNT): Increase to 37.
35982         (_DL_HWCAP_LAST): New define.
35983         (_DL_HWCAP2_LAST): New define.
35984         (_dl_procinfo): Add support for printing
35985         AT_HWCAP2 entries.
35986         (_dl_string_hwcap): Use _dl_hwcap_string.
35987
35988 2014-06-25  Adhemerval Zanella  <azanella@linux.vnet.ibm.com>
35989
35990         * sysdeps/powerpc/fpu/libm-test-ulps: Update.
35991
35992 2014-06-25  Joseph Myers  <joseph@codesourcery.com>
35993
35994         * README: Do not mention ports directory.
35995
35996         * sysdeps/unix/sysv/linux/kernel-features.h (__ASSUME_UTIMENSAT):
35997         Remove macro.
35998         * sysdeps/unix/sysv/linux/futimes.c: Do not include
35999         <kernel-features.h>.
36000         [__NR_utimensat && !__ASSUME_UTIMENSAT] (miss_utimensat): Remove
36001         conditional variable definition.
36002         (__futimes): Update comment.
36003         (__futimes) [__ASSUME_UTIMENSAT]: Make code unconditional.
36004         (__futimes) [!__ASSUME_UTIMENSAT]: Remove conditional code.
36005
36006         [BZ #16560]
36007         * sysdeps/ieee754/dbl-64/e_exp10.c (__ieee754_exp10): Return 1 for
36008         arguments close to 0.
36009         * sysdeps/ieee754/ldbl-128/e_exp10l.c (__ieee754_exp10l):
36010         Likewise.
36011         * sysdeps/ieee754/ldbl-128ibm/e_exp10l.c (__ieee754_exp10l):
36012         Likewise.
36013         * math/auto-libm-test-in: Add more tests of exp10.
36014         * math/auto-libm-test-out: Regenerated.
36015         * sysdeps/x86_64/fpu/libm-test-ulps: Update.
36016
36017         * sysdeps/unix/sysv/linux/kernel-features.h
36018         (__ASSUME_COMPLETE_READV_WRITEV): Remove macro.
36019         * sysdeps/unix/sysv/linux/readv.c: Do not include
36020         <kernel-features.h>.
36021         [!__ASSUME_COMPLETE_READV_WRITEV]: Remove conditional code.
36022         [!UIO_FASTIOV] (UIO_FASTIOV): Remove macro.
36023         (__libc_readv) [__ASSUME_COMPLETE_READV_WRITEV]: Make code
36024         unconditional.
36025         (__libc_readv) [!__ASSUME_COMPLETE_READV_WRITEV]: Remove
36026         conditional code.
36027         * sysdeps/unix/sysv/linux/writev.c: Do not include
36028         <kernel-features.h>.
36029         [!__ASSUME_COMPLETE_READV_WRITEV]: Remove conditional code.
36030         [!UIO_FASTIOV] (UIO_FASTIOV): Remove macro.
36031         (__libc_writev) [__ASSUME_COMPLETE_READV_WRITEV]: Make code
36032         unconditional.
36033         (__libc_writev) [!__ASSUME_COMPLETE_READV_WRITEV]: Remove
36034         conditional code.
36035
36036 2014-06-25  Will Newton  <will.newton@linaro.org>
36037
36038         * sysdeps/posix/tempname.c: Merge from gnulib, cosmetic
36039         comment changes throughout the file.  Remove checks
36040         for HAVE_*_H definitions that are not required.
36041         (__gen_tempname): Call abort if an unknown kind value is
36042         passed.
36043
36044 2014-06-25  Andreas Schwab  <schwab@suse.de>
36045
36046         [BZ #17086]
36047         * sysdeps/m68k/m680x0/fpu/s_scalbn.c: Add compat symbols for
36048         scalbln, scalblnf, scalblnl in libc.
36049
36050 2014-06-25  Siddhesh Poyarekar  <siddhesh@redhat.com>
36051
36052         [BZ #17086]
36053         * sysdeps/i386/fpu/s_scalbn.S: Add compat symbol for libc.so.
36054         * sysdeps/i386/fpu/s_scalbnf.S: Likewise.
36055         * sysdeps/i386/fpu/s_scalbnl.S: Likewise.
36056
36057 2014-06-24  Roland McGrath  <roland@hack.frob.com>
36058
36059         * sysdeps/i386/i486/nptl/pthread_spin_trylock.S: Moved ...
36060         * sysdeps/i386/i486/pthread_spin_trylock.S: ... here.
36061         * sysdeps/i386/i586/nptl/pthread_spin_trylock.S: Moved ...
36062         * sysdeps/i386/i586/pthread_spin_trylock.S: ... here.
36063         Update #include.
36064         * sysdeps/i386/i686/nptl/pthread_spin_trylock.S: Moved ...
36065         * sysdeps/i386/i686/pthread_spin_trylock.S: ... here.
36066         Update #include.
36067         * sysdeps/x86_64/64/nptl/shlib-versions: Moved ...
36068         * sysdeps/unix/sysv/linux/x86_64/64/shlib-versions: ... here.
36069         * sysdeps/x86_64/x32/nptl/shlib-versions: Moved ...
36070         * sysdeps/unix/sysv/linux/x86_64/x32/shlib-versions: ... here.
36071         * sysdeps/x86/nptl/bits/pthreadtypes.h: Moved ...
36072         * sysdeps/x86/bits/pthreadtypes.h: ... here.
36073         * sysdeps/x86/nptl/bits/semaphore.h: Moved ...
36074         * sysdeps/x86/bits/semaphore.h: ... here.
36075         * sysdeps/x86/nptl/elide.h: Moved ...
36076         * sysdeps/x86/elide.h: ... here.
36077         * sysdeps/x86_64/nptl/Implies: File removed.
36078         * sysdeps/i386/nptl/Implies: File removed.
36079
36080 2014-06-24  Joseph Myers  <joseph@codesourcery.com>
36081
36082         [BZ #16539]
36083         * sysdeps/i386/fpu/e_expl.S (IEEE754_EXPL) [USE_AS_EXPM1L]: Just
36084         return the argument for normal arguments with exponent below -64.
36085         * sysdeps/x86_64/fpu/e_expl.S (IEEE754_EXPL) [USE_AS_EXPM1L]:
36086         Likewise.
36087         * math/auto-libm-test-in: Add another test of expm1.
36088         * math/auto-libm-test-out: Regenerated.
36089
36090         [BZ #16287]
36091         * sysdeps/ieee754/ldbl-128/s_erfl.c (__erfl): Return 1 without
36092         calling __erfcl for arguments at least 16.
36093         * math/auto-libm-test-in: Add more tests of erf.
36094         * math/auto-libm-test-out: Regenerated.
36095
36096         * sysdeps/unix/sysv/linux/configure.ac: Remove cases for
36097         individual architectures.
36098         * sysdeps/unix/sysv/linux/configure: Regenerated.
36099         * sysdeps/unix/sysv/linux/i386/configure.ac: New file.
36100         * sysdeps/unix/sysv/linux/i386/configure: New generated file.
36101         * sysdeps/unix/sysv/linux/powerpc/configure.ac
36102         (ldd_rewrite_script): Define variable.
36103         * sysdeps/unix/sysv/linux/powerpc/configure: Regenerated.
36104         * sysdeps/unix/sysv/linux/powerpc/powerpc32/configure.ac: New
36105         file.
36106         * sysdeps/unix/sysv/linux/powerpc/powerpc32/configure: New
36107         generated file.
36108         * sysdeps/unix/sysv/linux/s390/configure.ac: New file.
36109         * sysdeps/unix/sysv/linux/s390/configure: New generated file.
36110         * sysdeps/unix/sysv/linux/sh/configure.ac: New file.
36111         * sysdeps/unix/sysv/linux/sh/configure: New generated file.
36112         * sysdeps/unix/sysv/linux/sparc/configure.ac: New file.
36113         * sysdeps/unix/sysv/linux/sparc/configure: New generated file.
36114         * sysdeps/unix/sysv/linux/x86_64/configure.ac: New file.
36115         * sysdeps/unix/sysv/linux/x86_64/configure: New generated file.
36116
36117 2014-06-24  Siddhesh Poyarekar  <siddhesh@redhat.com>
36118
36119         [BZ #17084]
36120         * sysdeps/x86/nptl/bits/pthreadtypes.h (pthread_mutex_t):
36121         Rename member __data.d to __data.__elision_data.
36122
36123 2014-06-24  Wilco  <wdijkstr@arm.com>
36124
36125         * NEWS: Add 16918 to fixed bug list.
36126
36127 2014-06-24  Wilco  <wdijkstr@arm.com>
36128
36129         * sysdeps/arm/fesetenv.c (fesetenv): Optimize implementation.
36130
36131 2014-06-24  Wilco  <wdijkstr@arm.com>
36132
36133         * sysdeps/arm/fpu_control.h (_FPU_MASK_RM): Define.
36134         * sysdeps/arm/fenv_private.h (libc_fesetround_vfp)
36135         (libc_feholdexcept_setround_vfp) (libc_feholdsetround_vfp)
36136         (libc_feresetround_vfp) (libc_feholdsetround_vfp_ctx)
36137         (libc_feresetround_vfp_ctx): Use _FPU_MASK_RM.
36138         * sysdeps/arm/fesetround.c (fesetround): Use _FPU_MASK_RM.
36139         * sysdeps/arm/get-rounding-mode.h (get_rounding_mode):
36140         Use _FPU_MASK_RM.
36141
36142 2014-06-24  Wilco  <wdijkstr@arm.com>
36143
36144         * sysdeps/arm/fsetexcptflg.c (fesetexceptflag): Remove unused include.
36145
36146 2014-06-24  Wilco  <wdijkstr@arm.com>
36147
36148         * sysdeps/arm/feholdexcpt.c (feholdexcept): Remove space.
36149         * sysdeps/arm/fesetenv.c (fesetenv): Remove space.
36150         * sysdeps/arm/fesetround.c (fesetround): Remove space.
36151         * sysdeps/arm/fraiseexcpt.c (feraiseexcept): Remove space.
36152
36153 2014-06-24  Wilco  <wdijkstr@arm.com>
36154
36155         [BZ #16918]
36156         * sysdeps/arm/feupdateenv.c (feupdateenv):
36157         Rewrite to reduce FPSCR accesses and fix return value.
36158
36159 2014-06-24  Wilco  <wdijkstr@arm.com>
36160
36161         * sysdeps/arm/fclrexcpt.c (feclearexcept):
36162         Optimize to avoid unnecessary FPSCR writes.
36163         * sysdeps/arm/fedisblxcpt.c (fedisableexcept): Likewise.
36164         * sysdeps/arm/feenablxcpt.c (feenableexcept): Likewise.
36165         * sysdeps/arm/fsetexcptflg.c (fesetexceptflag): Likewise.
36166         * sysdeps/arm/setfpucw.c (__setfpucw): Likewise.
36167
36168 2014-06-24  Wilco  <wdijkstr@arm.com>
36169
36170         * sysdeps/arm/fegetround.c (fegetround): Call get_rounding_mode.
36171         * sysdeps/arm/feholdexcpt.c (feholdexcept): Call libc_feholdexcept_vfp.
36172         * sysdeps/arm/fesetround.c (fesetround): Call libc_fesetround_vfp.
36173         * sysdeps/arm/fgetexcptflg.c (fegetexceptflag):
36174         Call libc_fetestexcept_vfp.
36175         * sysdeps/arm/ftestexcept.c (fetestexcept): Call libc_fetestexcept_vfp.
36176         * sysdeps/arm/fenv_private.h: Move libc_*_vfp functions outside of
36177         __SOFTFP__ ifdef so that they can be built for softfp.
36178
36179 2014-06-24  Siddhesh Poyarekar  <siddhesh@redhat.com>
36180
36181         * sysdeps/x86/nptl/elide.h (elision_adapt): Make first
36182         argument type signed char.
36183
36184         * Makerules (check-abi): Dump diff of symlist if the test
36185         fails.
36186
36187 2014-06-23  Roland McGrath  <roland@hack.frob.com>
36188
36189         * sysdeps/generic/get-rounding-mode.h: Include <stdlib.h> before
36190         using abort.
36191
36192         * sysdeps/unix/sysv/linux/fstatvfs.c (fstatvfs):
36193         Remove unused variable ST.
36194
36195 2014-06-23  Joseph Myers  <joseph@codesourcery.com>
36196
36197         [BZ #16354]
36198         [BZ #17061]
36199         * sysdeps/ieee754/dbl-64/e_cosh.c (__ieee754_cosh): Check for
36200         small arguments before calling __expm1.
36201         * sysdeps/ieee754/flt-32/e_coshf.c (__ieee754_coshf): Check for
36202         small arguments before calling __expm1f.
36203         * sysdeps/ieee754/ldbl-128/e_coshl.c (__ieee754_coshl): Check for
36204         small arguments before calling __expm1l.
36205         * sysdeps/ieee754/ldbl-128ibm/e_coshl.c (__ieee754_coshl):
36206         Likewise.
36207         * sysdeps/ieee754/ldbl-96/e_coshl.c (__ieee754_coshl): Likewise.
36208         * math/auto-libm-test-in: Add more cosh tests.  Do not allow
36209         spurious underflow for some cosh tests.
36210         * math/auto-libm-test-out: Regenerated.
36211         * sysdeps/i386/fpu/libm-test-ulps: Update.
36212
36213         [BZ #17050]
36214         * sysdeps/ieee754/dbl-64/e_j1.c: Include <errno.h>.
36215         (__ieee754_y1): Set errno if return value overflows.
36216         * sysdeps/ieee754/flt-32/e_j1f.c: Include <errno.h>.
36217         (__ieee754_y1f): Set errno if return value overflows.
36218         * sysdeps/ieee754/ldbl-128/e_j1l.c: Include <errno.h>.
36219         (__ieee754_y1l): Set errno if return value overflows.
36220         * sysdeps/ieee754/ldbl-96/e_j1l.c: Include <errno.h>.
36221         (__ieee754_y1l): Set errno if return value overflows.
36222         * math/auto-libm-test-in: Add more tests of y0, y1 and yn.
36223         * math/auto-libm-test-out: Regenerated.
36224
36225         * math/gen-auto-libm-tests.c: Document use of
36226         ignore-zero-inf-sign.
36227         (input_flag_type): Add value flag_ignore_zero_inf_sign.
36228         (input_flags): Add ignore-zero-inf-sign.
36229         (output_for_one_input_case): Handle flag_ignore_zero_inf_sign.
36230         * math/gen-libm-test.pl (generate_testfile): Handle
36231         ignore-zero-inf-sign.
36232         * math/auto-libm-test-in: Mark some cpow tests with
36233         ignore-zero-inf-sign and some with xfail-rounding.
36234         * math/auto-libm-test-out: Regenerated.
36235         * math/libm-test.inc (cpow_test): Use ALL_RM_TEST.
36236         * sysdeps/i386/fpu/libm-test-ulps: Update.
36237         * sysdeps/x86_64/fpu/libm-test-ulps: Likewise.
36238
36239         [BZ #16315]
36240         * sysdeps/i386/fpu/e_pow.S (__ieee754_pow): Ensure possibly
36241         overflowing or underflowing operations take place with sign of
36242         result.
36243         * sysdeps/i386/fpu/e_powf.S (__ieee754_powf): Likewise.
36244         * sysdeps/i386/fpu/e_powl.S (__ieee754_powl): Likewise.
36245         * sysdeps/ieee754/dbl-64/e_pow.c: Include <math.h>.
36246         (__ieee754_pow): Recompute overflowing and underflowing results in
36247         original rounding mode.
36248         * sysdeps/x86/fpu/powl_helper.c: Include <stdbool.h>.
36249         (__powl_helper): Allow negative argument X and scale negated value
36250         as needed.  Avoid passing value outside [-1, 1] to f2xm1.
36251         * sysdeps/x86_64/fpu/e_powl.S (__ieee754_powl): Ensure possibly
36252         overflowing or underflowing operations take place with sign of
36253         result.
36254         * sysdeps/x86_64/fpu/multiarch/e_pow.c [HAVE_FMA4_SUPPORT]:
36255         Include <math.h>.
36256         * math/auto-libm-test-in: Add more tests of pow.
36257         * math/auto-libm-test-out: Regenerated.
36258         * math/libm-test.inc (pow_test): Use ALL_RM_TEST.
36259         (pow_tonearest_test_data): Remove.
36260         (pow_test_tonearest): Likewise.
36261         (pow_towardzero_test_data): Likewise.
36262         (pow_test_towardzero): Likewise.
36263         (pow_downward_test_data): Likewise.
36264         (pow_test_downward): Likewise.
36265         (pow_upward_test_data): Likewise.
36266         (pow_test_upward): Likewise.
36267         (main): Don't call removed functions.
36268         * sysdeps/i386/fpu/libm-test-ulps: Update.
36269         * sysdeps/x86_64/fpu/libm-test-ulps: Likewise.
36270
36271 2014-06-23  Roland McGrath  <roland@hack.frob.com>
36272
36273         * sysdeps/unix/sysv/linux/powerpc/powerpc32/nofpu/nptl/c++-types.data:
36274         Moved ...
36275         * sysdeps/unix/sysv/linux/powerpc/powerpc32/c++-types.data: ... here.
36276         * sysdeps/unix/sysv/linux/powerpc/powerpc32/fpu/nptl/libc.abilist:
36277         Moved ...
36278         * sysdeps/unix/sysv/linux/powerpc/powerpc32/fpu/libc.abilist: ... here.
36279         * sysdeps/unix/sysv/linux/powerpc/powerpc32/fpu/nptl/libm.abilist:
36280         Moved ...
36281         * sysdeps/unix/sysv/linux/powerpc/powerpc32/fpu/libm.abilist: ... here.
36282         * sysdeps/unix/sysv/linux/powerpc/powerpc32/fpu/nptl/localplt.data:
36283         Moved ...
36284         * sysdeps/unix/sysv/linux/powerpc/powerpc32/fpu/localplt.data: ... here.
36285         * sysdeps/unix/sysv/linux/powerpc/powerpc32/fpu/nptl/c++-types.data:
36286         File removed.
36287         * sysdeps/unix/sysv/linux/powerpc/powerpc32/fpu/nptl/ld.abilist:
36288         File removed.
36289         * sysdeps/unix/sysv/linux/powerpc/powerpc32/fpu/nptl/libBrokenLocale.abilist:
36290         File removed.
36291         * sysdeps/unix/sysv/linux/powerpc/powerpc32/fpu/nptl/libanl.abilist:
36292         File removed.
36293         * sysdeps/unix/sysv/linux/powerpc/powerpc32/fpu/nptl/libcrypt.abilist:
36294         File removed.
36295         * sysdeps/unix/sysv/linux/powerpc/powerpc32/fpu/nptl/libdl.abilist:
36296         File removed.
36297         * sysdeps/unix/sysv/linux/powerpc/powerpc32/fpu/nptl/libnsl.abilist:
36298         File removed.
36299         * sysdeps/unix/sysv/linux/powerpc/powerpc32/fpu/nptl/libpthread.abilist:
36300         File removed.
36301         * sysdeps/unix/sysv/linux/powerpc/powerpc32/fpu/nptl/libresolv.abilist:
36302         File removed.
36303         * sysdeps/unix/sysv/linux/powerpc/powerpc32/fpu/nptl/librt.abilist:
36304         File removed.
36305         * sysdeps/unix/sysv/linux/powerpc/powerpc32/fpu/nptl/libthread_db.abilist:
36306         File removed.
36307         * sysdeps/unix/sysv/linux/powerpc/powerpc32/fpu/nptl/libutil.abilist:
36308         File removed.
36309         * sysdeps/unix/sysv/linux/powerpc/powerpc32/nofpu/nptl/ld.abilist:
36310         Moved ...
36311         * sysdeps/unix/sysv/linux/powerpc/powerpc32/ld.abilist: ... here.
36312         * sysdeps/unix/sysv/linux/powerpc/powerpc32/nofpu/nptl/libBrokenLocale.abilist:
36313         Moved ...
36314         * sysdeps/unix/sysv/linux/powerpc/powerpc32/libBrokenLocale.abilist:
36315         ... here.
36316         * sysdeps/unix/sysv/linux/powerpc/powerpc32/nofpu/nptl/libanl.abilist:
36317         Moved ...
36318         * sysdeps/unix/sysv/linux/powerpc/powerpc32/libanl.abilist: ... here.
36319         * sysdeps/unix/sysv/linux/powerpc/powerpc32/nofpu/nptl/libcrypt.abilist:
36320         Moved ...
36321         * sysdeps/unix/sysv/linux/powerpc/powerpc32/libcrypt.abilist: ... here.
36322         * sysdeps/unix/sysv/linux/powerpc/powerpc32/nofpu/nptl/libdl.abilist:
36323         Moved ...
36324         * sysdeps/unix/sysv/linux/powerpc/powerpc32/libdl.abilist: ... here.
36325         * sysdeps/unix/sysv/linux/powerpc/powerpc32/nofpu/nptl/libnsl.abilist:
36326         Moved ...
36327         * sysdeps/unix/sysv/linux/powerpc/powerpc32/libnsl.abilist: ... here.
36328         * sysdeps/unix/sysv/linux/powerpc/powerpc32/nofpu/nptl/libpthread.abilist:
36329         Moved ...
36330         * sysdeps/unix/sysv/linux/powerpc/powerpc32/libpthread.abilist: ... here.
36331         * sysdeps/unix/sysv/linux/powerpc/powerpc32/nofpu/nptl/libresolv.abilist:
36332         Moved ...
36333         * sysdeps/unix/sysv/linux/powerpc/powerpc32/libresolv.abilist: ... here.
36334         * sysdeps/unix/sysv/linux/powerpc/powerpc32/nofpu/nptl/librt.abilist:
36335         Moved ...
36336         * sysdeps/unix/sysv/linux/powerpc/powerpc32/librt.abilist: ... here.
36337         * sysdeps/unix/sysv/linux/powerpc/powerpc32/nofpu/nptl/libthread_db.abilist: Moved ...
36338         * sysdeps/unix/sysv/linux/powerpc/powerpc32/libthread_db.abilist:
36339         ... here.
36340         * sysdeps/unix/sysv/linux/powerpc/powerpc32/nofpu/nptl/libutil.abilist:
36341         Moved ...
36342         * sysdeps/unix/sysv/linux/powerpc/powerpc32/libutil.abilist: ... here.
36343         * sysdeps/unix/sysv/linux/powerpc/powerpc32/nofpu/nptl/libc.abilist:
36344         Moved ...
36345         * sysdeps/unix/sysv/linux/powerpc/powerpc32/nofpu/libc.abilist:
36346         ... here.
36347         * sysdeps/unix/sysv/linux/powerpc/powerpc32/nofpu/nptl/libm.abilist:
36348         Moved ...
36349         * sysdeps/unix/sysv/linux/powerpc/powerpc32/nofpu/libm.abilist:
36350         ... here.
36351         * sysdeps/unix/sysv/linux/powerpc/powerpc32/nofpu/nptl/localplt.data:
36352         Moved ...
36353         * sysdeps/unix/sysv/linux/powerpc/powerpc32/nofpu/localplt.data:
36354         ... here.
36355         * sysdeps/unix/sysv/linux/powerpc/powerpc64/nptl/c++-types.data:
36356         Moved ...
36357         * sysdeps/unix/sysv/linux/powerpc/powerpc64/c++-types.data: ... here.
36358         * sysdeps/unix/sysv/linux/powerpc/powerpc64/nptl/ld-le.abilist:
36359         Moved ...
36360         * sysdeps/unix/sysv/linux/powerpc/powerpc64/ld-le.abilist: ... here.
36361         * sysdeps/unix/sysv/linux/powerpc/powerpc64/nptl/ld.abilist: Moved ...
36362         * sysdeps/unix/sysv/linux/powerpc/powerpc64/ld.abilist: ... here.
36363         * sysdeps/unix/sysv/linux/powerpc/powerpc64/nptl/libBrokenLocale-le.abilist:
36364         Moved ...
36365         * sysdeps/unix/sysv/linux/powerpc/powerpc64/libBrokenLocale-le.abilist:
36366         ... here.
36367         * sysdeps/unix/sysv/linux/powerpc/powerpc64/nptl/libBrokenLocale.abilist:
36368         Moved ...
36369         * sysdeps/unix/sysv/linux/powerpc/powerpc64/libBrokenLocale.abilist:
36370         ... here.
36371         * sysdeps/unix/sysv/linux/powerpc/powerpc64/nptl/libanl-le.abilist:
36372         Moved ...
36373         * sysdeps/unix/sysv/linux/powerpc/powerpc64/libanl-le.abilist: ... here.
36374         * sysdeps/unix/sysv/linux/powerpc/powerpc64/nptl/libanl.abilist:
36375         Moved ...
36376         * sysdeps/unix/sysv/linux/powerpc/powerpc64/libanl.abilist: ... here.
36377         * sysdeps/unix/sysv/linux/powerpc/powerpc64/nptl/libc-le.abilist:
36378         Moved ...
36379         * sysdeps/unix/sysv/linux/powerpc/powerpc64/libc-le.abilist: ... here.
36380         * sysdeps/unix/sysv/linux/powerpc/powerpc64/nptl/libc.abilist:
36381         Moved ...
36382         * sysdeps/unix/sysv/linux/powerpc/powerpc64/libc.abilist: ... here.
36383         * sysdeps/unix/sysv/linux/powerpc/powerpc64/nptl/libcrypt-le.abilist:
36384         Moved ...
36385         * sysdeps/unix/sysv/linux/powerpc/powerpc64/libcrypt-le.abilist:
36386         ... here.
36387         * sysdeps/unix/sysv/linux/powerpc/powerpc64/nptl/libcrypt.abilist:
36388         Moved ...
36389         * sysdeps/unix/sysv/linux/powerpc/powerpc64/libcrypt.abilist: ... here.
36390         * sysdeps/unix/sysv/linux/powerpc/powerpc64/nptl/libdl-le.abilist:
36391         Moved ...
36392         * sysdeps/unix/sysv/linux/powerpc/powerpc64/libdl-le.abilist: ... here.
36393         * sysdeps/unix/sysv/linux/powerpc/powerpc64/nptl/libdl.abilist:
36394         Moved ...
36395         * sysdeps/unix/sysv/linux/powerpc/powerpc64/libdl.abilist: ... here.
36396         * sysdeps/unix/sysv/linux/powerpc/powerpc64/nptl/libm-le.abilist:
36397         Moved ...
36398         * sysdeps/unix/sysv/linux/powerpc/powerpc64/libm-le.abilist: ... here.
36399         * sysdeps/unix/sysv/linux/powerpc/powerpc64/nptl/libm.abilist: Moved ...
36400         * sysdeps/unix/sysv/linux/powerpc/powerpc64/libm.abilist: ... here.
36401         * sysdeps/unix/sysv/linux/powerpc/powerpc64/nptl/libnsl-le.abilist:
36402         Moved ...
36403         * sysdeps/unix/sysv/linux/powerpc/powerpc64/libnsl-le.abilist: ... here.
36404         * sysdeps/unix/sysv/linux/powerpc/powerpc64/nptl/libnsl.abilist:
36405         Moved ...
36406         * sysdeps/unix/sysv/linux/powerpc/powerpc64/libnsl.abilist: ... here.
36407         * sysdeps/unix/sysv/linux/powerpc/powerpc64/nptl/libpthread-le.abilist:
36408         Moved ...
36409         * sysdeps/unix/sysv/linux/powerpc/powerpc64/libpthread-le.abilist:
36410         ... here.
36411         * sysdeps/unix/sysv/linux/powerpc/powerpc64/nptl/libpthread.abilist:
36412         Moved ...
36413         * sysdeps/unix/sysv/linux/powerpc/powerpc64/libpthread.abilist:
36414         ... here.
36415         * sysdeps/unix/sysv/linux/powerpc/powerpc64/nptl/libresolv-le.abilist:
36416         Moved ...
36417         * sysdeps/unix/sysv/linux/powerpc/powerpc64/libresolv-le.abilist:
36418         ... here.
36419         * sysdeps/unix/sysv/linux/powerpc/powerpc64/nptl/libresolv.abilist:
36420         Moved ...
36421         * sysdeps/unix/sysv/linux/powerpc/powerpc64/libresolv.abilist: ... here.
36422         * sysdeps/unix/sysv/linux/powerpc/powerpc64/nptl/librt-le.abilist:
36423         Moved ...
36424         * sysdeps/unix/sysv/linux/powerpc/powerpc64/librt-le.abilist: ... here.
36425         * sysdeps/unix/sysv/linux/powerpc/powerpc64/nptl/librt.abilist:
36426         Moved ...
36427         * sysdeps/unix/sysv/linux/powerpc/powerpc64/librt.abilist: ... here.
36428         * sysdeps/unix/sysv/linux/powerpc/powerpc64/nptl/libthread_db-le.abilist:
36429         Moved ...
36430         * sysdeps/unix/sysv/linux/powerpc/powerpc64/libthread_db-le.abilist:
36431         ... here.
36432         * sysdeps/unix/sysv/linux/powerpc/powerpc64/nptl/libthread_db.abilist:
36433         Moved ...
36434         * sysdeps/unix/sysv/linux/powerpc/powerpc64/libthread_db.abilist:
36435         ... here.
36436         * sysdeps/unix/sysv/linux/powerpc/powerpc64/nptl/libutil-le.abilist:
36437         Moved ...
36438         * sysdeps/unix/sysv/linux/powerpc/powerpc64/libutil-le.abilist:
36439         ... here.
36440         * sysdeps/unix/sysv/linux/powerpc/powerpc64/nptl/libutil.abilist:
36441         Moved ...
36442         * sysdeps/unix/sysv/linux/powerpc/powerpc64/libutil.abilist: ... here.
36443         * sysdeps/unix/sysv/linux/powerpc/powerpc64/nptl/localplt.data:
36444         Moved ...
36445         * sysdeps/unix/sysv/linux/powerpc/powerpc64/localplt.data: ... here.
36446
36447 2014-06-23  Will Newton  <will.newton@linaro.org>
36448             Wilco  <wdijkstr@arm.com>
36449
36450         * sysdeps/generic/math_private.h: Add generic HAVE_RM_CTX
36451         implementation.  Include get-rounding-mode.h.
36452         [!HAVE_RM_CTX]: Define HAVE_RM_CTX to zero.
36453         [!libc_feholdsetround_noex_ctx]: Define
36454         libc_feholdsetround_noex_ctx.
36455         [!libc_feholdsetround_noexf_ctx]: Define
36456         libc_feholdsetround_noexf_ctx.
36457         [!libc_feholdsetround_noexl_ctx]: Define
36458         libc_feholdsetround_noexl_ctx.
36459         (libc_feholdsetround_ctx): New function.
36460         (libc_feresetround_ctx): New function.
36461         (libc_feholdsetround_noex_ctx): New function.
36462         (libc_feresetround_noex_ctx): New function.
36463
36464 2014-06-23  Roland McGrath  <roland@hack.frob.com>
36465
36466         * sysdeps/unix/sysv/linux/mips/nptl/bits/pthreadtypes.h: Moved ...
36467         * sysdeps/mips/nptl/bits/pthreadtypes.h: ... here.
36468         * sysdeps/unix/sysv/linux/mips/nptl/bits/semaphore.h: Moved ...
36469         * sysdeps/mips/nptl/bits/semaphore.h: ... here.
36470         * sysdeps/unix/sysv/linux/mips/nptl/bits/local_lim.h: Moved ...
36471         * sysdeps/unix/sysv/linux/mips/bits/local_lim.h: ... here.
36472
36473         * sysdeps/unix/sysv/linux/m68k/nptl/bits/pthreadtypes.h: Moved ...
36474         * sysdeps/m68k/nptl/bits/pthreadtypes.h: ... here.
36475         * sysdeps/unix/sysv/linux/m68k/nptl/bits/semaphore.h: Moved ...
36476         * sysdeps/m68k/nptl/bits/semaphore.h: ... here.
36477         * sysdeps/unix/sysv/linux/m68k/nptl/c++-types.data: Moved ...
36478         * sysdeps/unix/sysv/linux/m68k/c++-types.data: ... here.
36479         * sysdeps/unix/sysv/linux/m68k/coldfire/nptl/bits/atomic.h: Moved ...
36480         * sysdeps/unix/sysv/linux/m68k/coldfire/bits/atomic.h: ... here.
36481         * sysdeps/unix/sysv/linux/m68k/coldfire/nptl/ld.abilist: Moved ...
36482         * sysdeps/unix/sysv/linux/m68k/coldfire/ld.abilist: ... here.
36483         * sysdeps/unix/sysv/linux/m68k/coldfire/nptl/libBrokenLocale.abilist:
36484         Moved ...
36485         * sysdeps/unix/sysv/linux/m68k/coldfire/libBrokenLocale.abilist:
36486         ... here.
36487         * sysdeps/unix/sysv/linux/m68k/coldfire/nptl/libanl.abilist: Moved ...
36488         * sysdeps/unix/sysv/linux/m68k/coldfire/libanl.abilist: ... here.
36489         * sysdeps/unix/sysv/linux/m68k/coldfire/nptl/libc.abilist: Moved ...
36490         * sysdeps/unix/sysv/linux/m68k/coldfire/libc.abilist: ... here.
36491         * sysdeps/unix/sysv/linux/m68k/coldfire/nptl/libcrypt.abilist:
36492         Moved ...
36493         * sysdeps/unix/sysv/linux/m68k/coldfire/libcrypt.abilist: ... here.
36494         * sysdeps/unix/sysv/linux/m68k/coldfire/nptl/libdl.abilist: Moved ...
36495         * sysdeps/unix/sysv/linux/m68k/coldfire/libdl.abilist: ... here.
36496         * sysdeps/unix/sysv/linux/m68k/coldfire/nptl/libm.abilist: Moved ...
36497         * sysdeps/unix/sysv/linux/m68k/coldfire/libm.abilist: ... here.
36498         * sysdeps/unix/sysv/linux/m68k/coldfire/nptl/libnsl.abilist: Moved ...
36499         * sysdeps/unix/sysv/linux/m68k/coldfire/libnsl.abilist: ... here.
36500         * sysdeps/unix/sysv/linux/m68k/coldfire/nptl/libpthread.abilist:
36501         Moved ...
36502         * sysdeps/unix/sysv/linux/m68k/coldfire/libpthread.abilist: ... here.
36503         * sysdeps/unix/sysv/linux/m68k/coldfire/nptl/libresolv.abilist:
36504         Moved ...
36505         * sysdeps/unix/sysv/linux/m68k/coldfire/libresolv.abilist: ... here.
36506         * sysdeps/unix/sysv/linux/m68k/coldfire/nptl/librt.abilist: Moved ...
36507         * sysdeps/unix/sysv/linux/m68k/coldfire/librt.abilist: ... here.
36508         * sysdeps/unix/sysv/linux/m68k/coldfire/nptl/libthread_db.abilist:
36509         Moved ...
36510         * sysdeps/unix/sysv/linux/m68k/coldfire/libthread_db.abilist: ... here.
36511         * sysdeps/unix/sysv/linux/m68k/coldfire/nptl/libutil.abilist: Moved ...
36512         * sysdeps/unix/sysv/linux/m68k/coldfire/libutil.abilist: ... here.
36513         * sysdeps/unix/sysv/linux/m68k/nptl/localplt.data: Moved ...
36514         * sysdeps/unix/sysv/linux/m68k/localplt.data: ... here.
36515         * sysdeps/unix/sysv/linux/m68k/nptl/lowlevellock.h: Moved ...
36516         * sysdeps/unix/sysv/linux/m68k/lowlevellock.h: ... here.
36517         * sysdeps/unix/sysv/linux/m68k/m680x0/nptl/ld.abilist: Moved ...
36518         * sysdeps/unix/sysv/linux/m68k/m680x0/ld.abilist: ... here.
36519         * sysdeps/unix/sysv/linux/m68k/m680x0/nptl/libBrokenLocale.abilist:
36520         Moved ...
36521         * sysdeps/unix/sysv/linux/m68k/m680x0/libBrokenLocale.abilist:
36522         ... here.
36523         * sysdeps/unix/sysv/linux/m68k/m680x0/nptl/libanl.abilist: Moved ...
36524         * sysdeps/unix/sysv/linux/m68k/m680x0/libanl.abilist: ... here.
36525         * sysdeps/unix/sysv/linux/m68k/m680x0/nptl/libc.abilist: Moved ...
36526         * sysdeps/unix/sysv/linux/m68k/m680x0/libc.abilist: ... here.
36527         * sysdeps/unix/sysv/linux/m68k/m680x0/nptl/libcrypt.abilist: Moved ...
36528         * sysdeps/unix/sysv/linux/m68k/m680x0/libcrypt.abilist: ... here.
36529         * sysdeps/unix/sysv/linux/m68k/m680x0/nptl/libdl.abilist: Moved ...
36530         * sysdeps/unix/sysv/linux/m68k/m680x0/libdl.abilist: ... here.
36531         * sysdeps/unix/sysv/linux/m68k/m680x0/nptl/libm.abilist: Moved ...
36532         * sysdeps/unix/sysv/linux/m68k/m680x0/libm.abilist: ... here.
36533         * sysdeps/unix/sysv/linux/m68k/m680x0/nptl/libnsl.abilist: Moved ...
36534         * sysdeps/unix/sysv/linux/m68k/m680x0/libnsl.abilist: ... here.
36535         * sysdeps/unix/sysv/linux/m68k/m680x0/nptl/libpthread.abilist:
36536         Moved ...
36537         * sysdeps/unix/sysv/linux/m68k/m680x0/libpthread.abilist: ... here.
36538         * sysdeps/unix/sysv/linux/m68k/m680x0/nptl/libresolv.abilist: Moved ...
36539         * sysdeps/unix/sysv/linux/m68k/m680x0/libresolv.abilist: ... here.
36540         * sysdeps/unix/sysv/linux/m68k/m680x0/nptl/librt.abilist: Moved ...
36541         * sysdeps/unix/sysv/linux/m68k/m680x0/librt.abilist: ... here.
36542         * sysdeps/unix/sysv/linux/m68k/m680x0/nptl/libthread_db.abilist:
36543         Moved ...
36544         * sysdeps/unix/sysv/linux/m68k/m680x0/libthread_db.abilist: ... here.
36545         * sysdeps/unix/sysv/linux/m68k/m680x0/nptl/libutil.abilist: Moved ...
36546         * sysdeps/unix/sysv/linux/m68k/m680x0/libutil.abilist: ... here.
36547         * sysdeps/unix/sysv/linux/m68k/nptl/sysdep-cancel.h: Moved ...
36548         * sysdeps/unix/sysv/linux/m68k/sysdep-cancel.h: ... here.
36549
36550         * sysdeps/unix/sysv/linux/sh/nptl/c++-types.data: Moved ...
36551         * sysdeps/unix/sysv/linux/sh/c++-types.data: ... here.
36552         * sysdeps/unix/sysv/linux/sh/nptl/ld.abilist: Moved ...
36553         * sysdeps/unix/sysv/linux/sh/ld.abilist: ... here.
36554         * sysdeps/unix/sysv/linux/sh/nptl/libBrokenLocale.abilist: Moved ...
36555         * sysdeps/unix/sysv/linux/sh/libBrokenLocale.abilist: ... here.
36556         * sysdeps/unix/sysv/linux/sh/nptl/libanl.abilist: Moved ...
36557         * sysdeps/unix/sysv/linux/sh/libanl.abilist: ... here.
36558         * sysdeps/unix/sysv/linux/sh/nptl/libc.abilist: Moved ...
36559         * sysdeps/unix/sysv/linux/sh/libc.abilist: ... here.
36560         * sysdeps/unix/sysv/linux/sh/nptl/libcrypt.abilist: Moved ...
36561         * sysdeps/unix/sysv/linux/sh/libcrypt.abilist: ... here.
36562         * sysdeps/unix/sysv/linux/sh/nptl/libdl.abilist: Moved ...
36563         * sysdeps/unix/sysv/linux/sh/libdl.abilist: ... here.
36564         * sysdeps/unix/sysv/linux/sh/nptl/libm.abilist: Moved ...
36565         * sysdeps/unix/sysv/linux/sh/libm.abilist: ... here.
36566         * sysdeps/unix/sysv/linux/sh/nptl/libnsl.abilist: Moved ...
36567         * sysdeps/unix/sysv/linux/sh/libnsl.abilist: ... here.
36568         * sysdeps/unix/sysv/linux/sh/nptl/libpthread.abilist: Moved ...
36569         * sysdeps/unix/sysv/linux/sh/libpthread.abilist: ... here.
36570         * sysdeps/unix/sysv/linux/sh/nptl/libresolv.abilist: Moved ...
36571         * sysdeps/unix/sysv/linux/sh/libresolv.abilist: ... here.
36572         * sysdeps/unix/sysv/linux/sh/nptl/librt.abilist: Moved ...
36573         * sysdeps/unix/sysv/linux/sh/librt.abilist: ... here.
36574         * sysdeps/unix/sysv/linux/sh/nptl/libthread_db.abilist: Moved ...
36575         * sysdeps/unix/sysv/linux/sh/libthread_db.abilist: ... here.
36576         * sysdeps/unix/sysv/linux/sh/nptl/libutil.abilist: Moved ...
36577         * sysdeps/unix/sysv/linux/sh/libutil.abilist: ... here.
36578
36579 2014-06-23  Joseph Myers  <joseph@codesourcery.com>
36580
36581         * sysdeps/unix/sysv/linux/bits/fcntl-linux.h [__USE_GNU]
36582         (FALLOC_FL_COLLAPSE_RANGE): New macro.
36583         [__USE_GNU] (FALLOC_FL_ZERO_RANGE): Likewise.
36584         * sysdeps/unix/sysv/linux/bits/in.h (IP_PMTUDISC_OMIT): Likewise.
36585         (IPV6_PMTUDISC_INTERFACE): Likewise.
36586         (IPV6_PMTUDISC_OMIT): Likewise.
36587
36588 2014-06-23  Andreas Schwab  <schwab@suse.de>
36589
36590         * nptl/sysdeps/unix/sysv/linux/mq_notify.c (init_mq_netlink):
36591         Remove unused errout label.
36592
36593 2014-06-23  Adhemerval Zanella  <azanella@linux.vnet.ibm.com>
36594
36595         * sysdeps/powerpc/bits/hwcap.h [PPC_FEATURE2_HAS_VEC_CRYPTO]: New
36596         macro: hardware supports Vector Crypto instructions.
36597
36598 2014-06-23  Will Newton  <will.newton@linaro.org>
36599
36600         * elf/dl-lookup.c: Use __glibc_unlikely and __glibc_likely
36601         rather than __builtin_expect.
36602
36603         * elf/dl-lookup.c (undefined_msg): Remove variable.
36604         (_dl_lookup_symbol_x): Replace undefined_msg with string
36605         literal.
36606
36607         * elf/dl-lookup.c (do_lookup_unique): New function.
36608         (do_lookup_x): Move STB_GNU_UNIQUE handling code
36609         to a separate function.
36610
36611 2014-06-23  Andreas Schwab  <schwab@suse.de>
36612
36613         [BZ #17079]
36614         * nss/nss_files/files-XXX.c (get_contents): Store overflow marker
36615         before reading the next line.
36616
36617 2014-06-23  Will Newton  <will.newton@linaro.org>
36618
36619         * test-skeleton.c (signal_handler): Use printf and %m
36620         rather than perror.  Use printf rather than fprintf to
36621         stderr.  Use puts rather than fputs to stderr.
36622         (main): Likewise.
36623
36624 2014-06-22  Ludovic Courtès  <ludo@gnu.org>
36625
36626         * nscd/nscd.c (thread_info_t): Remove typedef.
36627         (thread_info): Remove variable.
36628
36629 2014-06-21  Allan McRae  <allan@archlinux.org>
36630
36631         * NEWS: Mention CVE-2014-4043.
36632
36633 2014-06-20  Roland McGrath  <roland@hack.frob.com>
36634
36635         * nptl/sysdeps/unix/sysv/linux/smp.h: Moved ...
36636         * nptl/smp.h: ... here.
36637
36638         * nptl/sysdeps/unix/sysv/linux/rtld-lowlevel.h: File removed.
36639
36640         * include/libc-symbols.h (HAVE_CONFIG_H, STDC_HEADERS): New macros.
36641         * catgets/Makefile (catgets-CPPFLAGS): Remove -DHAVE_CONFIG_H.
36642         * locale/Makefile (CPPFLAGS-locale-programs): Likewise.
36643         * stdlib/strtol_l.c [_LIBC] (STDC_HEADERS): Don't define it.
36644
36645         * nptl/allocatestack.c: Include <stack-aliasing.h>.
36646         * nptl/stack-aliasing.h: New file.
36647         * sysdeps/i386/i686/stack-aliasing.h: New file.
36648         * sysdeps/i386/i686/nptl/Makefile: File removed.
36649         * sysdeps/x86_64/stack-aliasing.h: New file.
36650         * sysdeps/x86_64/nptl/Makefile
36651         (CFLAGS-pthread_create.c): Variable removed.
36652
36653         * nptl/sysdeps/unix/sysv/linux/bits/local_lim.h: Moved ...
36654         * sysdeps/unix/sysv/linux/bits/local_lim.h: ... here, replacing the
36655         old file.
36656         * nptl/sysdeps/unix/sysv/linux/bits/posix_opt.h: Moved ...
36657         * sysdeps/unix/sysv/linux/bits/posix_opt.h: ... here, replacing the
36658         old file.
36659
36660 2014-06-21  Joseph Myers  <joseph@codesourcery.com>
36661
36662         * sysdeps/unix/sysv/linux/arm/kernel-features.h
36663         (__ASSUME_SIGFRAME_V2): Remove macro.
36664         * sysdeps/unix/sysv/linux/arm/sigrestorer.S: Update comment.
36665         [!__ASSUME_SIGFRAME_V2]: Remove conditional code.
36666         (__default_sa_restorer_v2): Rename to __default_sa_restorer.
36667         (__default_rt_sa_restorer_v2): Rename to __default_rt_sa_restorer.
36668         * sysdeps/unix/sysv/linux/arm/sigaction.c (__default_sa_restorer):
36669         Declare as function.  Remove conditional macro definitions.
36670         (__default_rt_sa_restorer): Likewise.
36671         (__default_sa_restorer_v1): Remove declaration.
36672         (__default_sa_restorer_v2): Likewise.
36673         (__default_rt_sa_restorer_v1): Likewise.
36674         (__default_rt_sa_restorer_v2): Likewise.
36675         * sysdeps/unix/sysv/linux/arm/Versions (GLIBC_PRIVATE): Remove
36676         __default_sa_restorer_v1, __default_rt_sa_restorer_v1,
36677         __default_sa_restorer_v2 and __default_rt_sa_restorer_v2.
36678
36679 2014-06-20  Roland McGrath  <roland@hack.frob.com>
36680
36681         * sysdeps/unix/sysv/linux/sparc/Makefile [$(subdir) = nptl]
36682         (libpthread-routines): Add sysdep.
36683         * nptl/sysdeps/unix/sysv/linux/sparc/Makefile: File removed.
36684         * sysdeps/unix/sysv/linux/sparc/Versions
36685         (libpthread: GLIBC_2.3.3): New version set.
36686         * nptl/sysdeps/unix/sysv/linux/sparc/Versions: File removed.
36687         * nptl/sysdeps/unix/sysv/linux/sparc/aio_cancel.c: Moved ...
36688         * sysdeps/unix/sysv/linux/sparc/aio_cancel.c: ... here.
36689         * nptl/sysdeps/unix/sysv/linux/sparc/internaltypes.h: Moved ...
36690         * sysdeps/sparc/nptl/internaltypes.h: ... here.  Use #include_next.
36691         * nptl/sysdeps/unix/sysv/linux/sparc/pthread_barrier_destroy.c:
36692         Moved ...
36693         * sysdeps/sparc/nptl/pthread_barrier_destroy.c: ... here.
36694         * nptl/sysdeps/unix/sysv/linux/sparc/pthread_barrier_init.c: Moved ...
36695         * sysdeps/sparc/nptl/pthread_barrier_init.c: ... here.
36696         * nptl/sysdeps/unix/sysv/linux/sparc/pthread_barrier_wait.c: Moved ...
36697         * sysdeps/sparc/nptl/pthread_barrier_wait.c: ... here.
36698         * nptl/sysdeps/unix/sysv/linux/sparc/sem_init.c: Moved ...
36699         * sysdeps/sparc/nptl/sem_init.c: ... here.
36700         * nptl/sysdeps/unix/sysv/linux/sparc/sem_post.c: Moved ...
36701         * sysdeps/sparc/nptl/sem_post.c: ... here.
36702         * nptl/sysdeps/unix/sysv/linux/sparc/sem_timedwait.c: Moved ...
36703         * sysdeps/sparc/nptl/sem_timedwait.c: ... here.
36704         * nptl/sysdeps/unix/sysv/linux/sparc/sem_wait.c: Moved ...
36705         * sysdeps/sparc/nptl/sem_wait.c: ... here.
36706         * nptl/sysdeps/unix/sysv/linux/sparc/lowlevellock.h: Moved ...
36707         * sysdeps/unix/sysv/linux/sparc/lowlevellock.h: ... here.
36708         * sysdeps/sparc/sparc32/sparcv9/Makefile [$(subdir) = nptl]
36709         (libpthread-routines): Add cpu_relax.
36710         * nptl/sysdeps/unix/sysv/linux/sparc/sparc32/sparcv9/Makefile:
36711         File removed.
36712         * sysdeps/unix/sysv/linux/sparc/sparc64/Versions
36713         (librt: GLIBC_2.3.3): New version set.
36714         * nptl/sysdeps/unix/sysv/linux/sparc/sparc64/Versions: File removed.
36715         * sysdeps/sparc/sparc64/nptl/Makefile: New file.
36716         * sysdeps/unix/sysv/linux/sparc/sparc64/Makefile [$(subdir) = nptl]
36717         (CFLAGS-pause.c, CFLAGS-sigsuspend.c): New variables.
36718         * nptl/sysdeps/unix/sysv/linux/sparc/sparc64/Makefile: File removed.
36719         * nptl/sysdeps/unix/sysv/linux/sparc/sparc32/lowlevellock.c: Moved ...
36720         * sysdeps/sparc/sparc32/nptl/lowlevellock.c: ... here.
36721         * nptl/sysdeps/unix/sysv/linux/sparc/sparc32/pthread_barrier_wait.c:
36722         Moved ...
36723         * sysdeps/sparc/sparc32/nptl/pthread_barrier_wait.c: ... here.
36724         * nptl/sysdeps/unix/sysv/linux/sparc/sparc32/sem_post.c: Moved ...
36725         * sysdeps/sparc/sparc32/nptl/sem_post.c: ... here.
36726         * nptl/sysdeps/unix/sysv/linux/sparc/sparc32/sem_timedwait.c: Moved ...
36727         * sysdeps/sparc/sparc32/nptl/sem_timedwait.c: ... here.
36728         * nptl/sysdeps/unix/sysv/linux/sparc/sparc32/sem_trywait.c: Moved ...
36729         * sysdeps/sparc/sparc32/nptl/sem_trywait.c: ... here.
36730         * nptl/sysdeps/unix/sysv/linux/sparc/sparc32/sem_wait.c: Moved ...
36731         * sysdeps/sparc/sparc32/nptl/sem_wait.c: ... here.
36732         * nptl/sysdeps/unix/sysv/linux/sparc/sparc32/sparcv9/cpu_relax.S:
36733         Moved ...
36734         * sysdeps/sparc/sparc32/sparcv9/nptl/cpu_relax.S: ... here.
36735         Update #include.
36736         * nptl/sysdeps/unix/sysv/linux/sparc/sparc32/sparcv9/pthread_barrier_wait.c:
36737         Moved ...
36738         * sysdeps/sparc/sparc32/sparcv9/nptl/pthread_barrier_wait.c: ... here.
36739         Update #include.
36740         * nptl/sysdeps/unix/sysv/linux/sparc/sparc32/sparcv9/sem_post.c:
36741         Moved ...
36742         * sysdeps/sparc/sparc32/sparcv9/nptl/sem_post.c: ... here.
36743         Update #include.
36744         * nptl/sysdeps/unix/sysv/linux/sparc/sparc32/sparcv9/sem_timedwait.c:
36745         Moved ...
36746         * sysdeps/sparc/sparc32/sparcv9/nptl/sem_timedwait.c: ... here.
36747         Update #include.
36748         * nptl/sysdeps/unix/sysv/linux/sparc/sparc32/sparcv9/sem_trywait.c:
36749         Moved ...
36750         * sysdeps/sparc/sparc32/sparcv9/nptl/sem_trywait.c: ... here.
36751         Update #include.
36752         * nptl/sysdeps/unix/sysv/linux/sparc/sparc32/sparcv9/sem_wait.c:
36753         Moved ...
36754         * sysdeps/sparc/sparc32/sparcv9/nptl/sem_wait.c: ... here.
36755         Update #include.
36756         * nptl/sysdeps/unix/sysv/linux/sparc/sparc64/cpu_relax.S: Moved ...
36757         * sysdeps/sparc/sparc64/nptl/cpu_relax.S: ... here.
36758         * nptl/sysdeps/unix/sysv/linux/sparc/sparc32/sysdep-cancel.h: Moved ...
36759         * sysdeps/unix/sysv/linux/sparc/sparc32/sysdep-cancel.h: ... here.
36760         * nptl/sysdeps/unix/sysv/linux/sparc/sparc64/sysdep-cancel.h: Moved ...
36761         * sysdeps/unix/sysv/linux/sparc/sparc64/sysdep-cancel.h: ... here.
36762         * nptl/sysdeps/unix/sysv/linux/sparc/sparc64/timer_create.c: Moved ...
36763         * sysdeps/unix/sysv/linux/sparc/sparc64/timer_create.c: ... here.
36764         * nptl/sysdeps/unix/sysv/linux/sparc/sparc64/timer_delete.c: Moved ...
36765         * sysdeps/unix/sysv/linux/sparc/sparc64/timer_delete.c: ... here.
36766         * nptl/sysdeps/unix/sysv/linux/sparc/sparc64/timer_getoverr.c:
36767         Moved ...
36768         * sysdeps/unix/sysv/linux/sparc/sparc64/timer_getoverr.c: ... here.
36769         * nptl/sysdeps/unix/sysv/linux/sparc/sparc64/timer_gettime.c: Moved ...
36770         * sysdeps/unix/sysv/linux/sparc/sparc64/timer_gettime.c: ... here.
36771         * nptl/sysdeps/unix/sysv/linux/sparc/sparc64/timer_settime.c: Moved ...
36772         * sysdeps/unix/sysv/linux/sparc/sparc64/timer_settime.c: ... here.
36773
36774 2014-06-20  Joseph Myers  <joseph@codesourcery.com>
36775
36776         * nptl/pthread_cond_wait.c: Include <kernel-features.h>.
36777         * nptl/pthread_rwlock_timedrdlock.c: Likewise.
36778         * nptl/pthread_rwlock_timedwrlock.c: Likewise.
36779         * nptl/sysdeps/unix/sysv/linux/lowlevelrobustlock.c: Likewise.
36780         * nscd/nscd.c: Likewise.
36781         * sysdeps/i386/nptl/tcb-offsets.sym: Likewise.
36782         * sysdeps/powerpc/nptl/tcb-offsets.sym: Likewise.
36783         * sysdeps/sh/nptl/tcb-offsets.sym: Likewise.
36784         * sysdeps/x86_64/nptl/tcb-offsets.sym: Likewise.
36785
36786         * nptl/sysdeps/unix/sysv/linux/mq_notify.c: Do not include
36787         <kernel-features.h>.
36788         (init_mq_netlink): Remove conditional have_sock_cloexec
36789         definitions.  Remove code conditional on have_sock_cloexec < 0.
36790         (init_mq_netlink) [!SOCK_CLOEXEC]: Remove conditional code.
36791         (init_mq_netlink) [!__ASSUME_SOCK_CLOEXEC]: Likewise.
36792         * sysdeps/unix/sysv/linux/opensock.c: Do not include
36793         <kernel-features.h>.
36794         (__opensock) [SOCK_CLOEXEC]: Make code unconditional.
36795         (__opensock) [!__ASSUME_SOCK_CLOEXEC]: Remove conditional code.
36796
36797 2014-06-20  H.J. Lu  <hongjiu.lu@intel.com>
36798
36799         * sysdeps/x86_64/multiarch/ifunc-impl-list.c (__libc_ifunc_impl_list):
36800         Add tests for memset_chk and memset.
36801
36802         * sysdeps/x86_64/multiarch/init-arch.h (HAS_AVX2): Defined
36803         with AVX2_Usable.
36804
36805 2014-06-20  Maciej W. Rozycki  <macro@codesourcery.com>
36806
36807         [BZ #16046]
36808         * elf/tst-dl-iter-static.c: New file.
36809         * elf/Makefile (tests-static): Add tst-dl-iter-static.
36810
36811         * stdlib/tst-qsort2.c (main): Fix off-by-one argc interpretation
36812         error.
36813
36814 2014-06-20  Joseph Myers  <joseph@codesourcery.com>
36815
36816         * sysdeps/unix/sysv/linux/kernel-features.h
36817         (__ASSUME_F_GETOWN_EX): Remove macro.
36818         * sysdeps/unix/sysv/linux/fcntl.c: Do not include
36819         <kernel-features.h>.
36820         (miss_F_GETOWN_EX): Remove variable or macro.
36821         (do_fcntl): Do not check miss_F_GETOWN_EX.
36822         (do_fcntl) [!__ASSUME_F_GETOWN_EX]: Remove conditional code.
36823
36824         * sysdeps/unix/sysv/linux/kernel-features.h (__ASSUME_AT_RANDOM):
36825         Remove macro.
36826         * sysdeps/unix/sysv/linux/dl-osinfo.h (_dl_setup_stack_chk_guard)
36827         [!__ASSUME_AT_RANDOM]: Remove conditional code.
36828         (_dl_setup_pointer_guard) [!__ASSUME_AT_RANDOM]: Likewise.
36829
36830         * sysdeps/unix/sysv/linux/kernel-features.h
36831         (__ASSUME_ADJ_OFFSET_SS_READ): Remove macro.
36832         * sysdeps/unix/sysv/linux/adjtime.c (ADJTIME)
36833         [ADJ_OFFSET_SS_READ]: Make code unconditional.
36834         (ADJTIME) [!ADJ_OFFSET_SS_READ]: Remove conditional code.
36835
36836 2014-06-20  Maciej W. Rozycki  <macro@codesourcery.com>
36837
36838         [BZ #17075]
36839         * sysdeps/arm/dl-machine.h (elf_machine_rel) <R_ARM_TLS_DESC>:
36840         Fix calculation of the symbol's value.
36841         * sysdeps/arm/tst-armtlsdescloc.c: New file.
36842         * sysdeps/arm/tst-armtlsdesclocmod.c: New file.
36843         * sysdeps/arm/tst-armtlsdescextnow.c: New file.
36844         * sysdeps/arm/tst-armtlsdescextlazymod.c: New file.
36845         * sysdeps/arm/tst-armtlsdescextlazy.c: New file.
36846         * sysdeps/arm/tst-armtlsdescextnowmod.c: New file.
36847         * sysdeps/arm/Makefile (tests): Add `tst-armtlsdesc',
36848         `tst-armtlsdescextnow' and `tst-armtlsdescextlazy'.
36849         (modules-names): Add `tst-armtlsdescmod',
36850         `tst-armtlsdescextlazymod' and `tst-armtlsdescextnowmod'.
36851         (CPPFLAGS-tst-armtlsdescextnowmod.c): New variable.
36852         (CPPFLAGS-tst-armtlsdescextlazymod.c): Likewise.
36853         (CFLAGS-tst-armtlsdesclocmod.c): Likewise.
36854         (CFLAGS-tst-armtlsdescextnowmod.c): Likewise.
36855         (CFLAGS-tst-armtlsdescextlazymod.c): Likewise.
36856         (LDFLAGS-tst-armtlsdescextnowmod.so): Likewise.
36857         ($(objpfx)tst-armtlsdescloc): New dependency.
36858         ($(objpfx)tst-armtlsdescextnow): Likewise.
36859         ($(objpfx)tst-armtlsdescextlazy): Likewise.
36860         * sysdeps/arm/configure.ac: Add a check for tools' GNU descriptor
36861         TLS scheme support.
36862         * sysdeps/arm/configure: Regenerate.
36863
36864 2014-06-20  Joseph Myers  <joseph@codesourcery.com>
36865
36866         * include/fcntl.h (__atfct_seterrno): Remove prototype.
36867         (__atfct_seterrno_2): Likewise.
36868         * sysdeps/unix/sysv/linux/alpha/dl-fxstatat64.c: Do not include
36869         <kernel-features.h>.
36870         (__ASSUME_ATFCTS): Do not undefine and redefine.
36871         * sysdeps/unix/sysv/linux/alpha/fxstatat.c [__ASSUME_ATFCTS]
36872         (__have_atfcts): Remove conditional definition.
36873         (__fxstatat([__NR_fstatat64]: Make code unconditional.
36874         (__fxstatat) [!__ASSUME_ATFCTS]: Remove conditional code and code
36875         unreachable if [__ASSUME_ATFCTS].
36876         * sysdeps/unix/sysv/linux/dl-fxstatat64.c (__ASSUME_ATFCTS): Do
36877         not undefine and redefine.
36878         * sysdeps/unix/sysv/linux/faccessat.c: Do not include
36879         <kernel-features.h>.
36880         (faccessat) [__NR_faccessat]: Make code unconditional.
36881         (faccessat) [!__ASSUME_ATFCTS]: Remove conditional code.
36882         * sysdeps/unix/sysv/linux/fchmodat.c: Do not include
36883         <kernel-features.h>.
36884         (fchmodat) [__NR_fchmodat]: Make code unconditional.
36885         (fchmodat) [!__ASSUME_ATFCTS]: Remove conditional code.
36886         * sysdeps/unix/sysv/linux/fchownat.c: Do not include
36887         <kernel-features.h>.
36888         (fchownat) [__NR_fchownat]: Make code unconditional.
36889         (fchownat) [!__ASSUME_ATFCTS]: Remove conditional code.
36890         * sysdeps/unix/sysv/linux/futimesat.c: Do not include
36891         <kernel-features.h>.
36892         (futimesat) [__NR_futimesat]: Make code unconditional.
36893         (futimesat) [!__ASSUME_ATFCTS]: Remove conditional code.
36894         * sysdeps/unix/sysv/linux/fxstatat.c: Do not include
36895         <kernel-features.h>.
36896         (__fxstatat) [__NR_newfstatat]: Make code unconditional.
36897         (__fxstatat) [!__ASSUME_ATFCTS]: Remove conditional code.
36898         * sysdeps/unix/sysv/linux/fxstatat64.c: Do not include
36899         <kernel-features.h>.
36900         (__fxstatat64) [__NR_fstatat64]: Make code unconditional.
36901         (__fxstatat64) [!__ASSUME_ATFCTS]: Remove conditional code.
36902         * sysdeps/unix/sysv/linux/i386/fchownat.c: Remove file.
36903         * sysdeps/unix/sysv/linux/i386/fxstatat.c: Do not include
36904         <kernel-features.h>.
36905         (__fxstatat) [__NR_fstatat64]: Make code unconditional.
36906         (__fxstatat) [!__ASSUME_ATFCTS]: Remove conditional code.
36907         * sysdeps/unix/sysv/linux/linkat.c: Do not include
36908         <kernel-features.h>.
36909         (linkat) [__NR_linkat]: Make code unconditional.
36910         (linkat) [!__ASSUME_ATFCTS]: Remove conditional code.
36911         * sysdeps/unix/sysv/linux/m68k/fchownat.c: Remove file.
36912         * sysdeps/unix/sysv/linux/mips/mips64/fxstatat64.c: Do not include
36913         <kernel-features.h>.
36914         (__fxstatat64) [__NR_newfstatat]: Make code unconditional.
36915         (__fxstatat64) [!__ASSUME_ATFCTS]: Remove conditional code.
36916         * sysdeps/unix/sysv/linux/mkdirat.c: Do not include
36917         <kernel-features.h>.
36918         (mkdirat) [__NR_mkdirat]: Make code unconditional.
36919         (mkdirat) [!__ASSUME_ATFCTS]: Remove conditional code.
36920         * sysdeps/unix/sysv/linux/openat.c: Do not include
36921         <kernel-features.h>.
36922         [!__ASSUME_ATFCTS] (__atfct_seterrno): Remove function.
36923         [!__ASSUME_ATFCTS] (__have_atfcts): Remove variable.
36924         (OPENAT_NOT_CANCEL) [__NR_openat]: Make code unconditional.
36925         (OPENAT_NOT_CANCEL) [!__ASSUME_ATFCTS]: Remove conditional code.
36926         * sysdeps/unix/sysv/linux/powerpc/fchownat.c: Remove file.
36927         * sysdeps/unix/sysv/linux/readlinkat.c: Do not include
36928         <kernel-features.h>.
36929         (readlinkat) [__NR_readlinkat]: Make code unconditional.
36930         (readlinkat) [!__ASSUME_ATFCTS]: Remove conditional code.  Return
36931         result of INLINE_SYSCALL directly, not via int variable.
36932         * sysdeps/unix/sysv/linux/renameat.c: Do not include
36933         <kernel-features.h>.
36934         [!__ASSUME_ATFCTS] (__atfct_seterrno_2): Remove function.
36935         (renameat) [__NR_renameat]: Make code unconditional.
36936         (renameat) [!__ASSUME_ATFCTS]: Remove conditional code.
36937         * sysdeps/unix/sysv/linux/s390/s390-32/fchownat.c: Remove file.
36938         * sysdeps/unix/sysv/linux/sh/fchownat.c: Remove file.
36939         * sysdeps/unix/sysv/linux/sparc/sparc32/fchownat.c: Remove file.
36940         * sysdeps/unix/sysv/linux/sparc/sparc64/dl-fxstatat64.c
36941         (__ASSUME_ATFCTS): Do not undefine and redefine.
36942         * sysdeps/unix/sysv/linux/symlinkat.c: Do not include
36943         <kernel-features.h>.
36944         (symlinkat) [__NR_symlinkat]: Make code unconditional.
36945         (symlinkat) [!__ASSUME_ATFCTS]: Remove conditional code.
36946         * sysdeps/unix/sysv/linux/unlinkat.c: Do not include
36947         <kernel-features.h>.
36948         (unlinkat) [__NR_unlinkat]: Make code unconditional.
36949         (unlinkat) [!__ASSUME_ATFCTS]: Remove conditional code.
36950         * sysdeps/unix/sysv/linux/wordsize-64/dl-fxstatat64.c
36951         (__ASSUME_ATFCTS): Do not undefine and redefine.
36952         * sysdeps/unix/sysv/linux/wordsize-64/fxstatat.c: Do not include
36953         <kernel-features.h>.
36954         (__fxstatat) [__NR_newfstatat]: Make code unconditional.
36955         (__fxstatat) [!__ASSUME_ATFCTS]: Remove conditional code.
36956         * sysdeps/unix/sysv/linux/xmknodat.c: Do not include
36957         <kernel-features.h>.
36958         (__xmknodat) [__NR_mknodat]: Make code unconditional.
36959         (__xmknodat) [!__ASSUME_ATFCTS]: Remove conditional code.
36960
36961 2014-06-20  H.J. Lu  <hongjiu.lu@intel.com>
36962
36963         * sysdeps/x86_64/multiarch/rtld-strlen.S: Removed.
36964
36965 2014-06-20  Andreas Schwab  <schwab@linux-m68k.org>
36966
36967         [BZ #17069]
36968         * posix/regcomp.c (parse_reg_exp): Deallocate partially
36969         constructed tree before returning error.
36970         * posix/bug-regexp36.c: Expand test case.
36971
36972 2014-06-20  Stefan Liebler  <stli@linux.vnet.ibm.com>
36973
36974         [BZ #6803]
36975         * math/libm-test.inc (scalbln_test_date):
36976         Add errno expectations.
36977         * math/w_scalblnf.c: New File.
36978         Add wrapper which checks for setting errno to ERANGE.
36979         Add weak_alias for corresponding scalbln function.
36980         * math/w_scalbln.c: Likewise.
36981         * math/w_scalblnl.c: Likewise.
36982         * math/Makefile (libm-calls): Add w_scalbln.
36983         * sysdeps/ieee754/flt-32/s_scalblnf.c:
36984         Remove weak_alias for corresponding scalbln function.
36985         * sysdeps/ieee754/dbl-64/s_scalbln.c: Likewise.
36986         * sysdeps/ieee754/dbl-64/wordsize-64/s_scalbln.c: Likewise.
36987         * sysdeps/ieee754/ldbl-96/s_scalblnl.c: Likewise.
36988         * sysdeps/ieee754/ldbl-128/s_scalblnl.c: Likewise.
36989         * sysdeps/sparc/sparc64/soft-fp/s_scalblnl.c: Likewise.
36990         * sysdeps/i386/fpu/s_scalbnf.S: Likewise.
36991         * sysdeps/i386/fpu/s_scalbn.S: Likewise.
36992         * sysdeps/i386/fpu/s_scalbnl.S: Likewise.
36993         * sysdeps/m68k/m680x0/fpu/s_scalbn.c: Likewise.
36994         * sysdeps/ieee754/ldbl-64-128/s_scalblnl.c:
36995         Remove long_double_symbol for scalblnl function in libm, libc.
36996         * sysdeps/ieee754/ldbl-64-128/w_scalblnl.c: New File.
36997         Add wrapper which checks for setting errno to ERANGE.
36998         Add long_double_symbol for scalblnl function in libm, libc.
36999         * sysdeps/ieee754/ldbl-128ibm/s_scalblnl.c:
37000         Remove long_double_symbol for scalblnl in libm.
37001         * sysdeps/ieee754/ldbl-128ibm/w_scalblnl.c: New File.
37002         Add wrapper which checks for setting errno to ERANGE.
37003         Add long_double_symbol for scalblnl function in libm.
37004         * sysdeps/ia64/fpu/w_scalblnf.c: New File.
37005         Do not use wrapper because of own implementation.
37006
37007 2014-06-19  H.J. Lu  <hongjiu.lu@intel.com>
37008
37009         * sysdeps/x86/nptl/bits/pthreadtypes.h (pthread_rwlock_t): Use
37010         3 bytes for __pad1 for x32.
37011         (__PTHREAD_RWLOCK_ELISION_EXTRA): Likewise.
37012
37013 2014-06-19  Ling Ma  <ling.ml@alibaba-inc.com>
37014             H.J. Lu  <hongjiu.lu@intel.com>
37015
37016         * sysdeps/x86_64/multiarch/Makefile: Add memset-avx2.
37017         * sysdeps/x86_64/multiarch/memset-avx2.S: New file.
37018         * sysdeps/x86_64/multiarch/memset.S: Likewise.
37019         * sysdeps/x86_64/multiarch/memset_chk.S: Likewise.
37020         * sysdeps/x86_64/multiarch/rtld-memset.S: Likewise.
37021
37022 2014-06-19  Andreas Schwab  <schwab@linux-m68k.org>
37023
37024         [BZ #17069]
37025         * posix/regcomp.c (parse_expression): Deallocate partially
37026         constructed tree before returning error.
37027         * posix/Makefile.c (tests): Add bug-regex36.
37028         (generated): Add bug-regex36.mtrace.
37029         (tests-special): Add $(objpfx)bug-regex36-mem.out
37030         (bug-regex36-ENV): New variable.
37031         ($(objpfx)bug-regex36-mem.out): New rule.
37032         * posix/bug-regex36.c: New file.
37033
37034 2014-06-19  Will Newton  <will.newton@linaro.org>
37035
37036         * malloc/malloc.c (systrim): If extra is zero then return
37037         early.
37038
37039 2014-06-19  Siddhesh Poyarekar  <siddhesh@redhat.com>
37040
37041         * benchtests/Makefile ($(objpfx)bench-%.c): Remove $(.).
37042
37043 2014-06-19  Richard Earnshaw  <rearnsha@arm.com>
37044
37045         * sysdeps/aarch64/strchr.S: New file.
37046
37047 2014-06-18  Joseph Myers  <joseph@codesourcery.com>
37048
37049         [BZ #17022]
37050         * sysdeps/i386/fpu/e_logl.S (__ieee754_logl): Do not subtract 1
37051         from arguments -2 or below.
37052         * sysdeps/i386/i686/fpu/e_logl.S (__ieee754_logl): Likewise.
37053         * sysdeps/x86_64/fpu/e_logl.S (__ieee754_logl): Likewise.
37054
37055 2014-06-18  Andreas Schwab  <schwab@suse.de>
37056
37057         [BZ #17062]
37058         * posix/fnmatch_loop.c (FCT): Rerrange loop for skipping over rest
37059         of a bracket expr not to run off the end of the string.
37060         * posix/Makefile (tests): Add tst-fnmatch3.
37061         * posix/tst-fnmatch3.c: New file.
37062
37063 2014-06-18  Joseph Myers  <joseph@codesourcery.com>
37064
37065         * elf/Makefile ($(objpfx)tst-unused-dep.out): Use $(rtld-prefix).
37066         * iconvdata/Makefile ($(inst_gconvdir)/gconv-modules)
37067         [$(cross-compiling) = no]: Likewise.
37068         * sysdeps/s390/s390-64/Makefile ($(inst_gconvdir)/gconv-modules)
37069         [$(cross-compiling) = no]: Likewise.
37070
37071 2014-16-17  Rajalakshmi Srinivasaraghavan <raji@linux.vnet.ibm.com>
37072
37073         [BZ #17031]
37074         * sysdeps/ieee754/ldbl-128ibm/s_nearbyintl.c: Consider the low
37075         double, adjusted for any remainder from the high double.
37076         * math/libm-test.inc (nearbyint): Add tests.
37077         (rint): Likewise.
37078
37079 2014-06-17  Adhemerval Zanella  <azanella@linux.vnet.ibm.com>
37080
37081         * nptl/sysdeps/powerpc/Makefile: Moved ...
37082         * sysdeps/powerpc/nptl/Makefile: ... here.
37083         * nptl/sysdeps/powerpc/pthread_spin_lock.c: Moved ...
37084         * sysdeps/powerpc/nptl/pthread_spin_lock.c: .. here.
37085         * nptl/sysdeps/powerpc/pthread_spin_trylock.c: Moved ...
37086         * sysdeps/powerpc/nptl/pthread_spin_trylock.c: ... here.
37087         * nptl/sysdeps/powerpc/pthreaddef.h: Moved ...
37088         * sysdeps/powerpc/nptl/pthreaddef.h: ... here.
37089         * nptl/sysdeps/powerpc/tcb-offsets.sym: Moved ...
37090         * sysdeps/powerpc/nptl/tcb-offsets.sym: ... here.
37091         * nptl/sysdeps/powerpc/tls.h: Moved ...
37092         * sysdeps/powerpc/nptl/tls.h: ... here.
37093
37094 2014-06-16  Joseph Myers  <joseph@codesourcery.com>
37095
37096         [BZ #16681]
37097         * sysdeps/i386/fpu/s_ceil.S (__ceil): Add CFI.
37098         * sysdeps/i386/fpu/s_ceilf.S (__ceilf): Likewise.
37099         * sysdeps/i386/fpu/s_ceill.S (__ceill): Likewise.
37100         * sysdeps/i386/fpu/s_floor.S (__floor): Likewise.
37101         * sysdeps/i386/fpu/s_floorf.S (__floorf): Likewise.
37102         * sysdeps/i386/fpu/s_floorl.S (__floorl): Likewise.
37103         * sysdeps/i386/fpu/s_trunc.S (__trunc): Likewise.
37104         * sysdeps/i386/fpu/s_truncf.S (__truncf): Likewise.
37105         * sysdeps/i386/fpu/s_truncl.S (__truncl): Likewise.
37106
37107 2014-06-17  Andreas Schwab  <schwab@linux-m68k.org>
37108
37109         * sysdeps/m68k/m680x0/fpu/libm-test-ulps: Update.
37110
37111 2014-06-16  Andreas Schwab  <schwab@linux-m68k.org>
37112
37113         * sysdeps/m68k/m680x0/bits/huge_vall.h: Fix missing space after
37114         defined operator.
37115
37116         * scripts/cross-test-ssh.sh (timeoutfactor): Default to
37117         $TIMEOUTFACTOR.
37118
37119 2014-06-16  Florian Weimer  <fweimer@redhat.com>
37120
37121         [BZ #17058]
37122         * nptl/tst-setuid2.c (do_test): Fix tautological comparison in
37123         non-executed part of the test.
37124
37125 2014-06-16  Andreas Schwab  <schwab@suse.de>
37126
37127         * string/bits/string2.h (strdup, strndup): Update feature guard.
37128
37129 2014-06-14  David S. Miller  <davem@davemloft.net>
37130
37131         * sysdeps/sparc/fpu/libm-test-ulps: Update.
37132
37133 2014-06-14  Andreas Schwab  <schwab@linux-m68k.org>
37134
37135         * sysdeps/unix/sysv/linux/m68k/clone.S: Deconditionalize the code
37136         that was previously under [RESET_PID].
37137         * sysdeps/unix/sysv/linux/m68k/nptl/clone.S: Remove file.
37138
37139         * sysdeps/unix/sysv/linux/m68k/pt-vfork.c: New file.
37140         * sysdeps/unix/sysv/linux/m68k/nptl/pt-vfork.S: Remove file.
37141         * sysdeps/unix/sysv/linux/m68k/vfork.S: Include <tcb-offsets.h>.
37142         (__vfork): Incorporate save/restore of PID from nptl/vfork.S here.
37143         (__libc_vfork): New strong alias.
37144         * sysdeps/unix/sysv/linux/m68k/nptl/vfork.S: Remove file.
37145
37146 2014-06-14 Andi Kleen  <ak@linux.intel.com>
37147
37148         * sysdeps/generic/elide.h: New file.
37149
37150 2014-06-13  Stefan Liebler  <stli@linux.vnet.ibm.com>
37151
37152         * Makefile (installed-headers): Adjust path of pthread.h header.
37153
37154 2014-06-13  Roland McGrath  <roland@hack.frob.com>
37155
37156         * nptl/sysdeps/unix/sysv/linux/s390/bits/pthreadtypes.h: Moved ...
37157         * sysdeps/s390/nptl/bits/pthreadtypes.h: ... here.
37158         * nptl/sysdeps/unix/sysv/linux/s390/bits/semaphore.h: Moved ...
37159         * sysdeps/s390/nptl/bits/semaphore.h: ... here.
37160
37161         * nptl/sysdeps/s390/Makefile: Moved ...
37162         * sysdeps/s390/nptl/Makefile: ... here.
37163         * nptl/sysdeps/s390/pthread_spin_init.c: Moved ...
37164         * sysdeps/s390/nptl/pthread_spin_init.c: ... here.
37165         * nptl/sysdeps/s390/pthread_spin_lock.c: Moved ...
37166         * sysdeps/s390/nptl/pthread_spin_lock.c: ... here.
37167         * nptl/sysdeps/s390/pthread_spin_trylock.c: Moved ...
37168         * sysdeps/s390/nptl/pthread_spin_trylock.c: ... here.
37169         * nptl/sysdeps/s390/pthread_spin_unlock.c: Moved ...
37170         * sysdeps/s390/nptl/pthread_spin_unlock.c: ... here.
37171         * nptl/sysdeps/s390/pthreaddef.h: Moved ...
37172         * sysdeps/s390/nptl/pthreaddef.h: ... here.
37173         * nptl/sysdeps/s390/tcb-offsets.sym: Moved ...
37174         * sysdeps/s390/nptl/tcb-offsets.sym: ... here.
37175         * nptl/sysdeps/s390/tls.h: Moved ...
37176         * sysdeps/s390/nptl/tls.h: ... here.
37177
37178         * sysdeps/unix/sysv/linux/s390/arch-fork.h: New file.
37179         * nptl/sysdeps/unix/sysv/linux/s390/fork.c: File removed.
37180
37181 2014-06-13  David S. Miller  <davem@davemloft.net>
37182
37183         * nptl/sysdeps/unix/sysv/linux/sparc/sparc32/clone.S: Delete.
37184         * nptl/sysdeps/unix/sysv/linux/sparc/sparc32/pt-vfork.S: Delete.
37185         * nptl/sysdeps/unix/sysv/linux/sparc/sparc32/vfork.S: Moved ...
37186         * sysdeps/unix/sysv/linux/sparc/sparc32/vfork.S: ... here.
37187         * nptl/sysdeps/unix/sysv/linux/sparc/sparc64/clone.S: Delete.
37188         * nptl/sysdeps/unix/sysv/linux/sparc/sparc64/pt-vfork.S: Delete.
37189         * nptl/sysdeps/unix/sysv/linux/sparc/sparc64/vfork.S: Moved ...
37190         * sysdeps/unix/sysv/linux/sparc/sparc64/vfork.S: ... here.
37191         * sysdeps/unix/sysv/linux/sparc/fork.S: Delete.
37192         * sysdeps/unix/sysv/linux/sparc/pt-vfork.S: New file.
37193         * sysdeps/unix/sysv/linux/sparc/sparc32/clone.S (__thread_start):
37194         Remove RESET_PID cpp guards.
37195         * sysdeps/unix/sysv/linux/sparc/sparc64/clone.S (__thread_start):
37196         Remove RESET_PID cpp guards.
37197         * sysdeps/unix/sysv/linux/sparc/vfork.S: Delete.
37198
37199 2014-06-13  Andreas Schwab  <schwab@linux-m68k.org>
37200
37201         * sysdeps/m68k/jmpbuf-unwind.h (_JMPBUF_UNWINDS, _jmpbuf_sp): Cast
37202         __sp to uintptr_t.
37203
37204 2014-06-13  Andi Kleen  <ak@linux.intel.com>
37205
37206         * sysdeps/unix/sysv/linux/i386/i486/pthread_rwlock_rdlock.S: Remove.
37207         * sysdeps/unix/sysv/linux/i386/i486/pthread_rwlock_timedrdlock.S: dito.
37208         * sysdeps/unix/sysv/linux/i386/i486/pthread_rwlock_timedwrlock.S: dito.
37209         * sysdeps/unix/sysv/linux/i386/i486/pthread_rwlock_unlock.S: dito.
37210         * sysdeps/unix/sysv/linux/i386/i486/pthread_rwlock_wrlock.S: dito.
37211         * sysdeps/unix/sysv/linux/i386/i586/pthread_rwlock_rdlock.S: dito.
37212         * sysdeps/unix/sysv/linux/i386/i586/pthread_rwlock_timedrdlock.S: dito.
37213         * sysdeps/unix/sysv/linux/i386/i586/pthread_rwlock_timedwrlock.S: dito.
37214         * sysdeps/unix/sysv/linux/i386/i586/pthread_rwlock_unlock.S: dito.
37215         * sysdeps/unix/sysv/linux/i386/i586/pthread_rwlock_wrlock.S: dito.
37216         * sysdeps/unix/sysv/linux/i386/i686/pthread_rwlock_rdlock.S: dito.
37217         * sysdeps/unix/sysv/linux/i386/i686/pthread_rwlock_timedrdlock.S: dito.
37218         * sysdeps/unix/sysv/linux/i386/i686/pthread_rwlock_timedwrlock.S: dito.
37219         * sysdeps/unix/sysv/linux/i386/i686/pthread_rwlock_unlock.S: dito.
37220         * sysdeps/unix/sysv/linux/i386/i686/pthread_rwlock_wrlock.S: dito.
37221         * sysdeps/unix/sysv/linux/x86_64/pthread_rwlock_rdlock.S: dito.
37222         * sysdeps/unix/sysv/linux/x86_64/pthread_rwlock_timedrdlock.S: dito.
37223         * sysdeps/unix/sysv/linux/x86_64/pthread_rwlock_timedwrlock.S: dito.
37224         * sysdeps/unix/sysv/linux/x86_64/pthread_rwlock_unlock.S: dito.
37225         * sysdeps/unix/sysv/linux/x86_64/pthread_rwlock_wrlock.S: dito.
37226
37227         * nptl/pthread_rwlock_rdlock.c: Include elide.h.
37228         (pthread_rwlock_rdlock): Add elision.
37229         * nptl/pthread_rwlock_wrlock.c: Include elide.h.
37230         (pthread_rwlock_wrlock): Add elision.
37231         * nptl/pthread_rwlock_trywrlock.c: Include elide.h.
37232         (pthread_rwlock_trywrlock): Add elision.
37233         * nptl/pthread_rwlock_tryrdlock.c: Include elide.h.
37234         (pthread_rwlock_tryrdlock): Add elision.
37235         * nptl/pthread_rwlock_unlock.c: Include elide.h.
37236         (pthread_rwlock_tryrdlock): Add elision unlock.
37237         * nptl/sysdeps/pthread/pthread.h:
37238         (__PTHREAD_RWLOCK_ELISION_EXTRA): Handle new define
37239         (PTHREAD_RWLOCK_INITIALIZER,
37240         PTHREAD_RWLOCK_WRITER_NONRECURSIVE_INITIALIZER_NP):
37241         Handle new elision field.
37242         * sysdeps/x86/nptl/elide.h: New file. Add generic elision macros.
37243         * sysdeps/arm/nptl/bits/pthreadtypes.h
37244         (__PTHREAD_RWLOCK_ELISION_EXTRA): Add.
37245         * sysdeps/sh/nptl/bits/pthreadtypes.h
37246         (__PTHREAD_RWLOCK_ELISION_EXTRA): Add.
37247         * sysdeps/tile/nptl/bits/pthreadtypes.h
37248         (__PTHREAD_RWLOCK_ELISION_EXTRA): Add.
37249         * sysdeps/a/nptl/bits/pthreadtypes.h
37250         (__PTHREAD_RWLOCK_ELISION_EXTRA): Add.
37251         * sysdeps/unix/sysv/linux/aarch64/nptl/bits/pthreadtypes.h
37252         (__PTHREAD_RWLOCK_ELISION_EXTRA): Add.
37253         * sysdeps/unix/sysv/linux/alpha/nptl/bits/pthreadtypes.h
37254         (__PTHREAD_RWLOCK_ELISION_EXTRA): Add.
37255         * sysdeps/unix/sysv/linux/hppa/nptl/bits/pthreadtypes.h
37256         (__PTHREAD_RWLOCK_ELISION_EXTRA): Add.
37257         * sysdeps/unix/sysv/linux/ia64/nptl/bits/pthreadtypes.h
37258         (__PTHREAD_RWLOCK_ELISION_EXTRA): Add.
37259         * sysdeps/unix/sysv/linux/m68k/nptl/bits/pthreadtypes.h
37260         (__PTHREAD_RWLOCK_ELISION_EXTRA): Add.
37261         * sysdeps/unix/sysv/linux/microblaze/nptl/bits/pthreadtypes.h
37262         (__PTHREAD_RWLOCK_ELISION_EXTRA): Add.
37263         * sysdeps/unix/sysv/linux/mips/nptl/bits/pthreadtypes.h
37264         (__PTHREAD_RWLOCK_ELISION_EXTRA): Add.
37265         * sysdeps/unix/sysv/linux/powerpc/nptl/bits/pthreadtypes.h
37266         (__PTHREAD_RWLOCK_ELISION_EXTRA): Add.
37267         * sysdeps/unix/sysv/linux/x86/elision-conf.c:
37268         (elision_init): Set try_xbegin to zero when no RTM.
37269         * sysdeps/x86/nptl/bits/pthreadtypes.h
37270         (pthread_rwlock_t): Change __pad1 to __rwelision.
37271         (__PTHREAD_RWLOCK_ELISION_EXTRA): Add.
37272
37273 2014-06-13  Andi Kleen  <ak@linux.intel.com>
37274
37275         * nptl/pthread_rwlock_rdlock (__pthread_rwlock_rdlock):
37276         Split into __do_pthread_rwlock_rdlock and __pthread_rwlock_rdlock.
37277         * nptl/pthread_rwlock_wrlock (__pthread_rwlock_wrlock):
37278         Split into __do_pthread_rwlock_wrlock and __pthread_wrlock_rdlock.
37279
37280 2014-06-13  Meador Inge  <meadori@codesourcery.com>
37281
37282         [BZ #16996]
37283         * sysdeps/unix/sysv/linux/getsysstats.c (__get_nprocs): Ensure
37284         that the cached result has been set before returning it.
37285
37286 2014-06-12  Roland McGrath  <roland@hack.frob.com>
37287
37288         * nptl/sysdeps/unix/sysv/linux/sparc/bits/pthreadtypes.h: Moved ...
37289         * sysdeps/sparc/nptl/bits/pthreadtypes.h: ... here.
37290         * nptl/sysdeps/unix/sysv/linux/sparc/bits/semaphore.h: Moved ...
37291         * sysdeps/sparc/nptl/bits/semaphore.h: ... here.
37292         * nptl/sysdeps/unix/sysv/linux/sparc/bits/local_lim.h: Moved ...
37293         * sysdeps/unix/sysv/linux/sparc/bits/local_lim.h: ... here.
37294
37295         * nptl/sysdeps/sparc/Makefile: Moved ...
37296         * sysdeps/sparc/nptl/Makefile: ... here.
37297         * nptl/sysdeps/sparc/tcb-offsets.sym: Moved ...
37298         * sysdeps/sparc/nptl/tcb-offsets.sym: ... here.
37299         * nptl/sysdeps/sparc/tls.h: Moved ...
37300         * sysdeps/sparc/nptl/tls.h: ... here.
37301         * nptl/sysdeps/sparc/sparc32/pthread_spin_lock.S: Moved ...
37302         * sysdeps/sparc/sparc32/nptl/pthread_spin_lock.S: ... here.
37303         * nptl/sysdeps/sparc/sparc32/pthread_spin_trylock.S: Moved ...
37304         * sysdeps/sparc/sparc32/nptl/pthread_spin_trylock.S: ... here.
37305         * nptl/sysdeps/sparc/sparc32/pthreaddef.h: Moved ...
37306         * sysdeps/sparc/sparc32/nptl/pthreaddef.h: ... here.
37307         * nptl/sysdeps/sparc/sparc64/pthread_spin_init.c: Moved ...
37308         * sysdeps/sparc/sparc64/nptl/pthread_spin_init.c: ... here.
37309         * nptl/sysdeps/sparc/sparc64/pthread_spin_lock.S: Moved ...
37310         * sysdeps/sparc/sparc64/nptl/pthread_spin_lock.S: ... here.
37311         * nptl/sysdeps/sparc/sparc64/pthread_spin_trylock.S: Moved ...
37312         * sysdeps/sparc/sparc64/nptl/pthread_spin_trylock.S: ... here.
37313         * nptl/sysdeps/sparc/sparc64/pthread_spin_unlock.S: Moved ...
37314         * sysdeps/sparc/sparc64/nptl/pthread_spin_unlock.S: ... here.
37315         * nptl/sysdeps/sparc/sparc64/pthreaddef.h: Moved ...
37316         * sysdeps/sparc/sparc64/nptl/pthreaddef.h: ... here.
37317         * nptl/sysdeps/sparc/sparc32/sparcv9/pthread_spin_init.c: Moved ...
37318         * sysdeps/sparc/sparc32/sparcv9/nptl/pthread_spin_init.c: ... here.
37319         Update #include.
37320         * nptl/sysdeps/sparc/sparc32/sparcv9/pthread_spin_lock.S: Moved ...
37321         * sysdeps/sparc/sparc32/sparcv9/nptl/pthread_spin_lock.S: ... here.
37322         Update #include.
37323         * nptl/sysdeps/sparc/sparc32/sparcv9/pthread_spin_trylock.S: Moved ...
37324         * sysdeps/sparc/sparc32/sparcv9/nptl/pthread_spin_trylock.S: ... here.
37325         Update #include.
37326         * nptl/sysdeps/sparc/sparc32/sparcv9/pthread_spin_unlock.S: Moved ...
37327         * sysdeps/sparc/sparc32/sparcv9/nptl/pthread_spin_unlock.S: ... here.
37328         Update #include.
37329
37330         * nptl/sysdeps/sparc/tls.h (TLS_DEFINE_INIT_TP): New macro.
37331
37332         * sysdeps/unix/sysv/linux/sparc/arch-fork.h: New file.
37333         * nptl/sysdeps/unix/sysv/linux/sparc/fork.c: File removed.
37334
37335         * sysdeps/pthread/posix-timer.h: Include <list.h>.
37336         (struct list_links): Type removed.
37337         (struct thread_node, struct timer_node): Replace struct list_links
37338         with struct list_head.
37339         (list_unlink_ip): Likewise.
37340         * sysdeps/pthread/timer_routines.c
37341         (timer_free_list, thread_free_list, thread_active_list): Likewise.
37342         (list_append, list_insbefore): Likewise.
37343         (list_init): Function removed.
37344         (thread_init, init_module): Use INIT_LIST_HEAD instead.
37345         * sysdeps/nptl/Makefile: Move tst-timer bits to ...
37346         * sysdeps/pthread/Makefile: ... here, new file.
37347
37348         * nptl/sysdeps/unix/sysv/linux/Implies: Moved ...
37349         * sysdeps/nptl/Implies: ... here.
37350         * sysdeps/unix/sysv/linux/Implies: Add nptl.
37351         * nptl/sysdeps/pthread/list.h: Moved ...
37352         * include/list.h: ... here.
37353         * nptl/sysdeps/pthread/createthread.c: Moved ...
37354         * nptl/createthread.c: ... here.
37355         * nptl/sysdeps/unix/sysv/linux/createthread.c: Update #include.
37356         * nptl/sysdeps/pthread/pt-longjmp.c: Moved ...
37357         * nptl/pt-longjmp.c: ... here.
37358         * nptl/sysdeps/pthread/Makefile: Moved ...
37359         * sysdeps/nptl/Makefile: ... here.
37360         * nptl/sysdeps/pthread/Subdirs: Moved ...
37361         * sysdeps/nptl/Subdirs: ... here.
37362         * nptl/sysdeps/pthread/aio_misc.h: Moved ...
37363         * sysdeps/nptl/aio_misc.h: ... here.
37364         * nptl/sysdeps/pthread/bits/libc-lock.h: Moved ...
37365         * sysdeps/nptl/bits/libc-lock.h: ... here.
37366         * nptl/sysdeps/pthread/bits/libc-lockP.h: Moved ...
37367         * sysdeps/nptl/bits/libc-lockP.h: ... here.
37368         * nptl/sysdeps/pthread/bits/stdio-lock.h: Moved ...
37369         * sysdeps/nptl/bits/stdio-lock.h: ... here.
37370         * nptl/sysdeps/pthread/configure: Moved ...
37371         * sysdeps/nptl/configure: ... here.
37372         * nptl/sysdeps/pthread/configure.ac: Moved ...
37373         * sysdeps/nptl/configure.ac: ... here.
37374         * nptl/sysdeps/pthread/gai_misc.h: Moved ...
37375         * sysdeps/nptl/gai_misc.h: ... here.
37376         * nptl/sysdeps/pthread/librt-cancellation.c: Moved ...
37377         * sysdeps/nptl/librt-cancellation.c: ... here.
37378         * nptl/sysdeps/pthread/malloc-machine.h: Moved ...
37379         * sysdeps/nptl/malloc-machine.h: ... here.
37380         * nptl/sysdeps/pthread/pthread-functions.h: Moved ...
37381         * sysdeps/nptl/pthread-functions.h: ... here.
37382         * nptl/sysdeps/pthread/pthread.h: Moved ...
37383         * sysdeps/nptl/pthread.h: ... here.
37384         * nptl/sysdeps/pthread/setxid.h: Moved ...
37385         * sysdeps/nptl/setxid.h: ... here.
37386         * nptl/sysdeps/pthread/sigfillset.c: Moved ...
37387         * sysdeps/nptl/sigfillset.c: ... here.
37388         * nptl/sysdeps/pthread/tcb-offsets.h: Moved ...
37389         * sysdeps/nptl/tcb-offsets.h: ... here.
37390         * nptl/sysdeps/pthread/tst-mqueue8x.c: Moved ...
37391         * sysdeps/nptl/tst-mqueue8x.c: ... here.
37392         * nptl/sysdeps/pthread/unwind-forcedunwind.c: Moved ...
37393         * sysdeps/nptl/unwind-forcedunwind.c: ... here.
37394         * nptl/sysdeps/pthread/allocalim.h: Moved ...
37395         * sysdeps/pthread/allocalim.h: ... here.
37396         * nptl/sysdeps/pthread/bits/sigthread.h: Moved ...
37397         * sysdeps/pthread/bits/sigthread.h: ... here.
37398         * nptl/sysdeps/pthread/flockfile.c: Moved ...
37399         * sysdeps/pthread/flockfile.c: ... here.
37400         * nptl/sysdeps/pthread/ftrylockfile.c: Moved ...
37401         * sysdeps/pthread/ftrylockfile.c: ... here.
37402         * nptl/sysdeps/pthread/funlockfile.c: Moved ...
37403         * sysdeps/pthread/funlockfile.c: ... here.
37404         * nptl/sysdeps/pthread/posix-timer.h: Moved ...
37405         * sysdeps/pthread/posix-timer.h: ... here.
37406         * nptl/sysdeps/pthread/timer_create.c: Moved ...
37407         * sysdeps/pthread/timer_create.c: ... here.
37408         * nptl/sysdeps/pthread/timer_delete.c: Moved ...
37409         * sysdeps/pthread/timer_delete.c: ... here.
37410         * nptl/sysdeps/pthread/timer_getoverr.c: Moved ...
37411         * sysdeps/pthread/timer_getoverr.c: ... here.
37412         * nptl/sysdeps/pthread/timer_gettime.c: Moved ...
37413         * sysdeps/pthread/timer_gettime.c: ... here.
37414         * nptl/sysdeps/pthread/timer_routines.c: Moved ...
37415         * sysdeps/pthread/timer_routines.c: ... here.
37416         * nptl/sysdeps/pthread/timer_settime.c: Moved ...
37417         * sysdeps/pthread/timer_settime.c: ... here.
37418         * nptl/sysdeps/pthread/tst-timer.c: Moved ...
37419         * sysdeps/pthread/tst-timer.c: ... here.
37420         * nptl/sysdeps/pthread/pthread_sigmask.c: Moved ...
37421         * sysdeps/unix/sysv/linux/pthread_sigmask.c: ... here.
37422
37423         * sysdeps/unix/sysv/linux/sigprocmask.c: Include <nptl/pthreadP.h>.
37424         * nptl/sysdeps/pthread/sigprocmask.c: File removed.
37425
37426         * nptl/sysdeps/i386/i486/pthread_spin_trylock.S: Moved ...
37427         * sysdeps/i386/i486/nptl/pthread_spin_trylock.S: ... here.
37428         * nptl/sysdeps/i386/i586/pthread_spin_trylock.S: Moved ...
37429         * sysdeps/i386/i586/nptl/pthread_spin_trylock.S: ... here.
37430         Update #include target.
37431         * nptl/sysdeps/i386/i686/Makefile: Moved ...
37432         * sysdeps/i386/i686/nptl/Makefile: ... here.
37433         * nptl/sysdeps/i386/i686/pthread_spin_trylock.S: Moved ...
37434         * sysdeps/i386/i686/nptl/pthread_spin_trylock.S: ... here.
37435         Update #include target.
37436         * nptl/sysdeps/i386/i686/tls.h: Moved ...
37437         * sysdeps/i386/i686/nptl/tls.h: ... here.  Use #include_next.
37438         * nptl/sysdeps/i386/Makefile: Moved ...
37439         * sysdeps/i386/nptl/Makefile: ... here.
37440         * nptl/sysdeps/i386/pthread_spin_init.c: Moved ...
37441         * sysdeps/i386/nptl/pthread_spin_init.c: ... here.
37442         * sysdeps/x86_64/nptl/pthread_spin_init.c: Update #include target.
37443         * nptl/sysdeps/i386/pthread_spin_lock.S: Moved ...
37444         * sysdeps/i386/nptl/pthread_spin_lock.S: ... here.
37445         * nptl/sysdeps/i386/pthread_spin_unlock.S: Moved ...
37446         * sysdeps/i386/nptl/pthread_spin_unlock.S: ... here.
37447         * nptl/sysdeps/i386/pthreaddef.h: Moved ...
37448         * sysdeps/i386/nptl/pthreaddef.h: ... here.
37449         * nptl/sysdeps/i386/tcb-offsets.sym: Moved ...
37450         * sysdeps/i386/nptl/tcb-offsets.sym: ... here.
37451         * nptl/sysdeps/i386/tls.h: Moved ...
37452         * sysdeps/i386/nptl/tls.h: ... here.
37453
37454         * sysdeps/sh/Makefile [$(subdir) = csu]
37455         (gen-as-const-headers): Add tcb-offsets.sym.
37456         * nptl/sysdeps/sh/Makefile: File removed.
37457         * nptl/sysdeps/sh/pthread_spin_init.c: Moved ...
37458         * sysdeps/sh/nptl/pthread_spin_init.c: ... here.
37459         * nptl/sysdeps/sh/pthread_spin_lock.c: Moved ...
37460         * sysdeps/sh/nptl/pthread_spin_lock.c: ... here.
37461         * nptl/sysdeps/sh/pthread_spin_trylock.S: Moved ...
37462         * sysdeps/sh/nptl/pthread_spin_trylock.S: ... here.
37463         * nptl/sysdeps/sh/pthread_spin_unlock.S: Moved ...
37464         * sysdeps/sh/nptl/pthread_spin_unlock.S: ... here.
37465         * nptl/sysdeps/sh/pthreaddef.h: Moved ...
37466         * sysdeps/sh/nptl/pthreaddef.h: ... here.
37467         * nptl/sysdeps/sh/tcb-offsets.sym: Moved ...
37468         * sysdeps/sh/nptl/tcb-offsets.sym: ... here.
37469         * nptl/sysdeps/sh/tls.h: Moved ...
37470         * sysdeps/sh/nptl/tls.h: ... here.
37471         * nptl/sysdeps/unix/sysv/linux/sh/libc-lowlevellock.S: Moved ...
37472         * sysdeps/unix/sysv/linux/sh/libc-lowlevellock.S: ... here.
37473         * nptl/sysdeps/unix/sysv/linux/sh/lowlevel-atomic.h: Moved ...
37474         * sysdeps/unix/sysv/linux/sh/lowlevel-atomic.h: ... here.
37475         * nptl/sysdeps/unix/sysv/linux/sh/lowlevellock.S: Moved ...
37476         * sysdeps/unix/sysv/linux/sh/lowlevellock.S: ... here.
37477         * nptl/sysdeps/unix/sysv/linux/sh/lowlevellock.h: Moved ...
37478         * sysdeps/unix/sysv/linux/sh/lowlevellock.h: ... here.
37479         * nptl/sysdeps/unix/sysv/linux/sh/lowlevelrobustlock.S: Moved ...
37480         * sysdeps/unix/sysv/linux/sh/lowlevelrobustlock.S: ... here.
37481         * nptl/sysdeps/unix/sysv/linux/sh/pthread_barrier_wait.S: Moved ...
37482         * sysdeps/unix/sysv/linux/sh/pthread_barrier_wait.S: ... here.
37483         * nptl/sysdeps/unix/sysv/linux/sh/pthread_cond_broadcast.S: Moved ...
37484         * sysdeps/unix/sysv/linux/sh/pthread_cond_broadcast.S: ... here.
37485         * nptl/sysdeps/unix/sysv/linux/sh/pthread_cond_signal.S: Moved ...
37486         * sysdeps/unix/sysv/linux/sh/pthread_cond_signal.S: ... here.
37487         * nptl/sysdeps/unix/sysv/linux/sh/pthread_cond_timedwait.S: Moved ...
37488         * sysdeps/unix/sysv/linux/sh/pthread_cond_timedwait.S: ... here.
37489         * nptl/sysdeps/unix/sysv/linux/sh/pthread_cond_wait.S: Moved ...
37490         * sysdeps/unix/sysv/linux/sh/pthread_cond_wait.S: ... here.
37491         * nptl/sysdeps/unix/sysv/linux/sh/pthread_once.S: Moved ...
37492         * sysdeps/unix/sysv/linux/sh/pthread_once.S: ... here.
37493         * nptl/sysdeps/unix/sysv/linux/sh/pthread_rwlock_rdlock.S: Moved ...
37494         * sysdeps/unix/sysv/linux/sh/pthread_rwlock_rdlock.S: ... here.
37495         * nptl/sysdeps/unix/sysv/linux/sh/pthread_rwlock_timedrdlock.S:
37496         Moved ...
37497         * sysdeps/unix/sysv/linux/sh/pthread_rwlock_timedrdlock.S: ... here.
37498         * nptl/sysdeps/unix/sysv/linux/sh/pthread_rwlock_timedwrlock.S:
37499         Moved ...
37500         * sysdeps/unix/sysv/linux/sh/pthread_rwlock_timedwrlock.S: ... here.
37501         * nptl/sysdeps/unix/sysv/linux/sh/pthread_rwlock_unlock.S: Moved ...
37502         * sysdeps/unix/sysv/linux/sh/pthread_rwlock_unlock.S: ... here.
37503         * nptl/sysdeps/unix/sysv/linux/sh/pthread_rwlock_wrlock.S: Moved ...
37504         * sysdeps/unix/sysv/linux/sh/pthread_rwlock_wrlock.S: ... here.
37505         * nptl/sysdeps/unix/sysv/linux/sh/sem_post.S: Moved ...
37506         * sysdeps/unix/sysv/linux/sh/sem_post.S: ... here.
37507         * nptl/sysdeps/unix/sysv/linux/sh/sem_timedwait.S: Moved ...
37508         * sysdeps/unix/sysv/linux/sh/sem_timedwait.S: ... here.
37509         * nptl/sysdeps/unix/sysv/linux/sh/sem_trywait.S: Moved ...
37510         * sysdeps/unix/sysv/linux/sh/sem_trywait.S: ... here.
37511         * nptl/sysdeps/unix/sysv/linux/sh/sem_wait.S: Moved ...
37512         * sysdeps/unix/sysv/linux/sh/sem_wait.S: ... here.
37513         * nptl/sysdeps/unix/sysv/linux/sh/sh4/lowlevellock.h: Moved ...
37514         * sysdeps/unix/sysv/linux/sh/sh4/lowlevellock.h: ... here.
37515         * nptl/sysdeps/unix/sysv/linux/sh/smp.h: Moved ...
37516         * sysdeps/unix/sysv/linux/sh/smp.h: ... here.
37517         * nptl/sysdeps/unix/sysv/linux/sh/sysdep-cancel.h: Moved ...
37518         * sysdeps/unix/sysv/linux/sh/sysdep-cancel.h: ... here.
37519
37520 2014-06-12  Stefan Liebler  <stli@linux.vnet.ibm.com>
37521
37522         * posix/spawn_faction_addopen.c: Include string.h.
37523
37524 2014-06-11  Roland McGrath  <roland@hack.frob.com>
37525
37526         * nptl/sysdeps/x86_64/64/shlib-versions: Moved ...
37527         * sysdeps/x86_64/64/nptl/shlib-versions: ... here.
37528         * nptl/sysdeps/x86_64/Makefile: Moved ...
37529         * sysdeps/x86_64/nptl/Makefile: ... here.
37530         * nptl/sysdeps/x86_64/configure: Moved ...
37531         * sysdeps/x86_64/nptl/configure: ... here.
37532         * nptl/sysdeps/x86_64/configure.ac: Moved ...
37533         * sysdeps/x86_64/nptl/configure.ac: ... here.
37534         * nptl/sysdeps/x86_64/pthread_spin_init.c: Moved ...
37535         * sysdeps/x86_64/nptl/pthread_spin_init.c: ... here.
37536         * nptl/sysdeps/x86_64/pthread_spin_lock.S: Moved ...
37537         * sysdeps/x86_64/nptl/pthread_spin_lock.S: ... here.
37538         * nptl/sysdeps/x86_64/pthread_spin_trylock.S: Moved ...
37539         * sysdeps/x86_64/nptl/pthread_spin_trylock.S: ... here.
37540         * nptl/sysdeps/x86_64/pthread_spin_unlock.S: Moved ...
37541         * sysdeps/x86_64/nptl/pthread_spin_unlock.S: ... here.
37542         * nptl/sysdeps/x86_64/pthreaddef.h: Moved ...
37543         * sysdeps/x86_64/nptl/pthreaddef.h: ... here.
37544         * nptl/sysdeps/x86_64/tcb-offsets.sym: Moved ...
37545         * sysdeps/x86_64/nptl/tcb-offsets.sym: ... here.
37546         * nptl/sysdeps/x86_64/tls.h: Moved ...
37547         * sysdeps/x86_64/nptl/tls.h: ... here.
37548         * nptl/sysdeps/x86_64/x32/shlib-versions: Moved ...
37549         * sysdeps/x86_64/x32/nptl/shlib-versions: ... here.
37550         * nptl/sysdeps/x86_64/x32/tls.h: Moved ...
37551         * sysdeps/x86_64/x32/nptl/tls.h: ... here.
37552
37553         * sysdeps/x86_64/x32/nptl/tls.h: Use #include_next.
37554
37555 2014-06-11  Adhemerval Zanella  <azanella@linux.vnet.ibm.com>
37556
37557         * sysdeps/powerpc/fpu/libm-test-ulps: Update.
37558
37559 2014-06-11  Joseph Myers  <joseph@codesourcery.com>
37560
37561         * conform/data/sys/mman.h-data [POSIX] (size_t): Do not require
37562         type.
37563         [POSIX] (off_t): Likewise.
37564         * conform/data/sys/stat.h-data (S_IRGRP): Require constant.
37565         [POSIX] (S_ISBLK): Require macro.
37566         [POSIX] (S_ISCHR): Likewise.
37567         [POSIX] (S_ISDIR): Likewise.
37568         [POSIX] (S_ISFIFO): Likewise.
37569         [POSIX] (S_ISREG): Likewise.
37570         [POSIX || XPG3 || XPG4 || UNIX98] (S_TYPEISTMO): Do not list
37571         optional-macro.
37572         * conform/data/sys/types.h-data [POSIX] (blkcnt_t): Do not require
37573         type.
37574         [POSIX] (time_t): Likewise.
37575         [POSIX] (timer_t): Likewise.
37576
37577 2014-06-11  Florian Weimer  <fweimer@redhat.com>
37578
37579         [BZ #17048]
37580         * posix/spawn_int.h (struct __spawn_action): Make the path string
37581         non-const to support deallocation.
37582         * posix/spawn_faction_addopen.c
37583         (posix_spawn_file_actions_addopen): Make a copy of the pathname.
37584         * posix/spawn_faction_destroy.c
37585         (posix_spawn_file_actions_destroy): Adjust comment.  Deallocate
37586         path in all spawn_do_open actions.
37587         * posix/tst-spawn.c (do_test): Exercise the copy operation in
37588         posix_spawn_file_actions_addopen.
37589
37590 2014-06-11  Chris Metcalf  <cmetcalf@tilera.com>
37591
37592         * sysdeps/unix/sysv/linux/tile/pt-vfork.c: New file.
37593         * sysdeps/unix/sysv/linux/tile/pt-vfork.S: Remove file.
37594         * sysdeps/unix/sysv/linux/tile/vfork.S (__vfork): Make PT_VFORK
37595         conditional code always true.
37596         (__libc_vfork): New alias.
37597
37598 2014-06-11  Roland McGrath  <roland@hack.frob.com>
37599
37600         * sysdeps/tile/nptl/tls.h (TLS_DEFINE_INIT_TP): New macro.
37601         * sysdeps/unix/sysv/linux/tile/createthread.c: File removed.
37602
37603         * nptl/sysdeps/s390/tls.h (TLS_DEFINE_INIT_TP): New macro.
37604
37605         * sysdeps/alpha/nptl/tls.h (TLS_DEFINE_INIT_TP): New macro.
37606         * sysdeps/unix/sysv/linux/alpha/createthread.c: File removed.
37607
37608         * nptl/sysdeps/powerpc/tls.h (TLS_DEFINE_INIT_TP): New macro.
37609         * sysdeps/unix/sysv/linux/powerpc/createthread.c: File removed.
37610
37611         * sysdeps/aarch64/nptl/tls.h (TLS_DEFINE_INIT_TP): New macro.
37612         * sysdeps/unix/sysv/linux/aarch64/nptl/createthread.c: File removed.
37613
37614 2014-06-11  Vidya Ranganathan  <vidya@linux.vnet.ibm.com>
37615
37616         * sysdeps/powerpc/powerpc64/power7/strcmp.S: New file: Optimization.
37617         * sysdeps/powerpc/powerpc64/multiarch/strcmp.c: New file:
37618         multiarch strcmp for PPC64.
37619         * sysdeps/powerpc/powerpc64/multiarch/strcmp-ppc64.S: New file.
37620         * sysdeps/powerpc/powerpc64/multiarch/strcmp-power7.S: New file.
37621         * sysdeps/powerpc/powerpc64/multiarch/Makefile: Add strcmp
37622         multiarch optimizations.
37623         * sysdeps/powerpc/powerpc64/multiarch/ifunc-impl-list.c:
37624         (__libc_ifunc_impl_list): Likewise.
37625
37626 2014-06-11  Siddhesh Poyarekar  <siddhesh@redhat.com>
37627
37628         * benchtests/scripts/validate_benchout.py: New script.
37629         * benchtests/Makefile (bench-func): Call it.
37630         * benchtests/scripts/benchout.schema.json: New file.
37631
37632 2014-06-10  Chris Metcalf  <cmetcalf@tilera.com>
37633
37634         * sysdeps/unix/sysv/linux/tile/nptl/bits/pthreadtypes.h: Moved ...
37635         * sysdeps/tile/nptl/bits/pthreadtypes.h: ... here.
37636         * sysdeps/unix/sysv/linux/tile/nptl/bits/semaphore.h: Moved ...
37637         * sysdeps/tile/nptl/bits/semaphore.h: ... here.
37638         * sysdeps/unix/sysv/linux/tile/nptl/Makefile: Removed, merged into ...
37639         * sysdeps/unix/sysv/linux/tile/Makefile: ... here.
37640         * sysdeps/unix/sysv/linux/tile/nptl/clone.S: Moved ...
37641         * sysdeps/unix/sysv/linux/tile/clone.S: ... here.
37642         * sysdeps/unix/sysv/linux/tile/nptl/createthread.c: Moved ...
37643         * sysdeps/unix/sysv/linux/tile/createthread.c: ... here.
37644         * sysdeps/unix/sysv/linux/tile/nptl/lowlevellock.h: Moved ...
37645         * sysdeps/unix/sysv/linux/tile/lowlevellock.h: ... here.
37646         * sysdeps/unix/sysv/linux/tile/nptl/pt-vfork.S: Moved ...
37647         * sysdeps/unix/sysv/linux/tile/pt-vfork.S: ... here.
37648         * sysdeps/unix/sysv/linux/tile/nptl/sysdep-cancel.h: Moved ...
37649         * sysdeps/unix/sysv/linux/tile/sysdep-cancel.h: ... here.
37650         * sysdeps/unix/sysv/linux/tile/tilegx/tilegx32/nptl/c++-types.data:
37651         Moved ...
37652         * sysdeps/unix/sysv/linux/tile/tilegx/tilegx32/c++-types.data:
37653         ... here.
37654         * sysdeps/unix/sysv/linux/tile/tilegx/tilegx32/nptl/ld.abilist:
37655         Moved ...
37656         * sysdeps/unix/sysv/linux/tile/tilegx/tilegx32/ld.abilist: ... here.
37657         * sysdeps/unix/sysv/linux/tile/tilegx/tilegx32/nptl/libBrokenLocale.abilist:
37658         Moved ...
37659         * sysdeps/unix/sysv/linux/tile/tilegx/tilegx32/libBrokenLocale.abilist:
37660         ... here.
37661         * sysdeps/unix/sysv/linux/tile/tilegx/tilegx32/nptl/libanl.abilist:
37662         Moved ...
37663         * sysdeps/unix/sysv/linux/tile/tilegx/tilegx32/libanl.abilist:
37664         ... here.
37665         * sysdeps/unix/sysv/linux/tile/tilegx/tilegx32/nptl/libc.abilist:
37666         Moved ...
37667         * sysdeps/unix/sysv/linux/tile/tilegx/tilegx32/libc.abilist: ... here.
37668         * sysdeps/unix/sysv/linux/tile/tilegx/tilegx32/nptl/libcrypt.abilist:
37669         Moved ...
37670         * sysdeps/unix/sysv/linux/tile/tilegx/tilegx32/libcrypt.abilist:
37671         ... here.
37672         * sysdeps/unix/sysv/linux/tile/tilegx/tilegx32/nptl/libdl.abilist:
37673         Moved ...
37674         * sysdeps/unix/sysv/linux/tile/tilegx/tilegx32/libdl.abilist:
37675         ... here.
37676         * sysdeps/unix/sysv/linux/tile/tilegx/tilegx32/nptl/libm.abilist:
37677         Moved ...
37678         * sysdeps/unix/sysv/linux/tile/tilegx/tilegx32/libm.abilist: ... here.
37679         * sysdeps/unix/sysv/linux/tile/tilegx/tilegx32/nptl/libnsl.abilist:
37680         Moved ...
37681         * sysdeps/unix/sysv/linux/tile/tilegx/tilegx32/libnsl.abilist:
37682         ... here.
37683         * sysdeps/unix/sysv/linux/tile/tilegx/tilegx32/nptl/libpthread.abilist:
37684         Moved ...
37685         * sysdeps/unix/sysv/linux/tile/tilegx/tilegx32/libpthread.abilist:
37686         ... here.
37687         * sysdeps/unix/sysv/linux/tile/tilegx/tilegx32/nptl/libresolv.abilist:
37688         Moved ...
37689         * sysdeps/unix/sysv/linux/tile/tilegx/tilegx32/libresolv.abilist:
37690         ... here.
37691         * sysdeps/unix/sysv/linux/tile/tilegx/tilegx32/nptl/librt.abilist:
37692         Moved ...
37693         * sysdeps/unix/sysv/linux/tile/tilegx/tilegx32/librt.abilist: ... here.
37694         * sysdeps/unix/sysv/linux/tile/tilegx/tilegx32/nptl/libthread_db.abilist:
37695         Moved ...
37696         * sysdeps/unix/sysv/linux/tile/tilegx/tilegx32/libthread_db.abilist:
37697         ... here.
37698         * sysdeps/unix/sysv/linux/tile/tilegx/tilegx32/nptl/libutil.abilist:
37699         Moved ...
37700         * sysdeps/unix/sysv/linux/tile/tilegx/tilegx32/libutil.abilist:
37701         ... here.
37702         * sysdeps/unix/sysv/linux/tile/tilegx/tilegx64/nptl/c++-types.data:
37703         Moved ...
37704         * sysdeps/unix/sysv/linux/tile/tilegx/tilegx64/c++-types.data:
37705         ... here.
37706         * sysdeps/unix/sysv/linux/tile/tilegx/tilegx64/nptl/ld.abilist:
37707         Moved ...
37708         * sysdeps/unix/sysv/linux/tile/tilegx/tilegx64/ld.abilist: ... here.
37709         * sysdeps/unix/sysv/linux/tile/tilegx/tilegx64/nptl/libBrokenLocale.abilist:
37710         Moved ...
37711         * sysdeps/unix/sysv/linux/tile/tilegx/tilegx64/libBrokenLocale.abilist:
37712         ... here.
37713         * sysdeps/unix/sysv/linux/tile/tilegx/tilegx64/nptl/libanl.abilist:
37714         Moved ...
37715         * sysdeps/unix/sysv/linux/tile/tilegx/tilegx64/libanl.abilist:
37716         ... here.
37717         * sysdeps/unix/sysv/linux/tile/tilegx/tilegx64/nptl/libc.abilist:
37718         Moved ...
37719         * sysdeps/unix/sysv/linux/tile/tilegx/tilegx64/libc.abilist: ... here.
37720         * sysdeps/unix/sysv/linux/tile/tilegx/tilegx64/nptl/libcrypt.abilist:
37721         Moved ...
37722         * sysdeps/unix/sysv/linux/tile/tilegx/tilegx64/libcrypt.abilist:
37723         ... here.
37724         * sysdeps/unix/sysv/linux/tile/tilegx/tilegx64/nptl/libdl.abilist:
37725         Moved ...
37726         * sysdeps/unix/sysv/linux/tile/tilegx/tilegx64/libdl.abilist: ... here.
37727         * sysdeps/unix/sysv/linux/tile/tilegx/tilegx64/nptl/libm.abilist:
37728         Moved ...
37729         * sysdeps/unix/sysv/linux/tile/tilegx/tilegx64/libm.abilist: ... here.
37730         * sysdeps/unix/sysv/linux/tile/tilegx/tilegx64/nptl/libnsl.abilist:
37731         Moved ...
37732         * sysdeps/unix/sysv/linux/tile/tilegx/tilegx64/libnsl.abilist:
37733         ... here.
37734         * sysdeps/unix/sysv/linux/tile/tilegx/tilegx64/nptl/libpthread.abilist:
37735         Moved ...
37736         * sysdeps/unix/sysv/linux/tile/tilegx/tilegx64/libpthread.abilist:
37737         ... here.
37738         * sysdeps/unix/sysv/linux/tile/tilegx/tilegx64/nptl/libresolv.abilist:
37739         Moved ...
37740         * sysdeps/unix/sysv/linux/tile/tilegx/tilegx64/libresolv.abilist:
37741         ... here.
37742         * sysdeps/unix/sysv/linux/tile/tilegx/tilegx64/nptl/librt.abilist:
37743         Moved ...
37744         * sysdeps/unix/sysv/linux/tile/tilegx/tilegx64/librt.abilist: ... here.
37745         * sysdeps/unix/sysv/linux/tile/tilegx/tilegx64/nptl/libthread_db.abilist:
37746         Moved ...
37747         * sysdeps/unix/sysv/linux/tile/tilegx/tilegx64/libthread_db.abilist:
37748         ... here.
37749         * sysdeps/unix/sysv/linux/tile/tilegx/tilegx64/nptl/libutil.abilist:
37750         Moved ...
37751         * sysdeps/unix/sysv/linux/tile/tilegx/tilegx64/libutil.abilist:
37752         ... here.
37753         * sysdeps/unix/sysv/linux/tile/tilepro/nptl/c++-types.data: Moved ...
37754         * sysdeps/unix/sysv/linux/tile/tilepro/c++-types.data: ... here.
37755         * sysdeps/unix/sysv/linux/tile/tilepro/nptl/ld.abilist: Moved ...
37756         * sysdeps/unix/sysv/linux/tile/tilepro/ld.abilist: ... here.
37757         * sysdeps/unix/sysv/linux/tile/tilepro/nptl/libBrokenLocale.abilist:
37758         Moved ...
37759         * sysdeps/unix/sysv/linux/tile/tilepro/libBrokenLocale.abilist:
37760         ... here.
37761         * sysdeps/unix/sysv/linux/tile/tilepro/nptl/libanl.abilist: Moved ...
37762         * sysdeps/unix/sysv/linux/tile/tilepro/libanl.abilist: ... here.
37763         * sysdeps/unix/sysv/linux/tile/tilepro/nptl/libc.abilist: Moved ...
37764         * sysdeps/unix/sysv/linux/tile/tilepro/libc.abilist: ... here.
37765         * sysdeps/unix/sysv/linux/tile/tilepro/nptl/libcrypt.abilist: Moved ...
37766         * sysdeps/unix/sysv/linux/tile/tilepro/libcrypt.abilist: ... here.
37767         * sysdeps/unix/sysv/linux/tile/tilepro/nptl/libdl.abilist: Moved ...
37768         * sysdeps/unix/sysv/linux/tile/tilepro/libdl.abilist: ... here.
37769         * sysdeps/unix/sysv/linux/tile/tilepro/nptl/libm.abilist: Moved ...
37770         * sysdeps/unix/sysv/linux/tile/tilepro/libm.abilist: ... here.
37771         * sysdeps/unix/sysv/linux/tile/tilepro/nptl/libnsl.abilist: Moved ...
37772         * sysdeps/unix/sysv/linux/tile/tilepro/libnsl.abilist: ... here.
37773         * sysdeps/unix/sysv/linux/tile/tilepro/nptl/libpthread.abilist:
37774         Moved ...
37775         * sysdeps/unix/sysv/linux/tile/tilepro/libpthread.abilist: ... here.
37776         * sysdeps/unix/sysv/linux/tile/tilepro/nptl/libresolv.abilist:
37777         Moved ...
37778         * sysdeps/unix/sysv/linux/tile/tilepro/libresolv.abilist: ... here.
37779         * sysdeps/unix/sysv/linux/tile/tilepro/nptl/librt.abilist: Moved ...
37780         * sysdeps/unix/sysv/linux/tile/tilepro/librt.abilist: ... here.
37781         * sysdeps/unix/sysv/linux/tile/tilepro/nptl/libthread_db.abilist:
37782         Moved ...
37783         * sysdeps/unix/sysv/linux/tile/tilepro/libthread_db.abilist: ... here.
37784         * sysdeps/unix/sysv/linux/tile/tilepro/nptl/libutil.abilist: Moved ...
37785         * sysdeps/unix/sysv/linux/tile/tilepro/libutil.abilist: ... here.
37786         * sysdeps/unix/sysv/linux/tile/nptl/vfork.S: Moved ...
37787         * sysdeps/unix/sysv/linux/tile/vfork.S: ... here.
37788         * sysdeps/unix/sysv/linux/tile/nptl/waitpid.S: Moved ...
37789         * sysdeps/unix/sysv/linux/tile/waitpid.S: ... here.
37790
37791 2014-06-10  Wilco  <wdijkstr@arm.com>
37792
37793         * math/test-fenv-return.c: New file.
37794         * math/Makefile: Add new test test-fenv-return.
37795
37796 2014-06-10  Joseph Myers  <joseph@codesourcery.com>
37797
37798         [BZ #17042]
37799         * sysdeps/i386/fpu/e_log2.S (__ieee754_log2): Take absolete value
37800         when x - 1 is zero.
37801         * sysdeps/i386/fpu/e_log2f.S (__ieee754_log2f): Likewise.
37802         * sysdeps/i386/fpu/e_log2l.S (__ieee754_log2l): Likewise.
37803         * sysdeps/ieee754/ldbl-128/e_log2l.c (__ieee754_log2l): Return
37804         0.0L for an argument of 1.0L.
37805         * sysdeps/ieee754/ldbl-128ibm/e_log2l.c (__ieee754_log2l):
37806         Likewise.
37807         * sysdeps/x86_64/fpu/e_log2l.S (__ieee754_log2l): Take absolute
37808         value when x - 1 is zero.
37809         * math/libm-test.inc (log2_test): Use ALL_RM_TEST.
37810         * sysdeps/i386/fpu/libm-test-ulps: Update.
37811         * sysdeps/x86_64/fpu/libm-test-ulps: Likewise.
37812
37813 2014-06-09  Bernard Ogden  <bernie.ogden@linaro.org>
37814
37815         [BZ #15119]
37816         * ports/sysdeps/unix/sysv/linux/hppa/nptl/lowlevellock.c: Remove file.
37817
37818 2014-06-09  Roland McGrath  <roland@hack.frob.com>
37819
37820         * nptl/sysdeps/sh/tls.h (TLS_DEFINE_INIT_TP): New macro.
37821         * nptl/sysdeps/unix/sysv/linux/sh/createthread.c: File removed.
37822
37823 2014-06-09  Roland McGrath  <roland@hack.frob.com>
37824
37825         * sysdeps/m68k/nptl/tls.h (TLS_DEFINE_INIT_TP): New macro.
37826         * sysdeps/unix/sysv/linux/m68k/nptl/createthread.c: File removed.
37827
37828         * sysdeps/hppa/nptl/tls.h (TLS_DEFINE_INIT_TP): New macro.
37829         * sysdeps/unix/sysv/linux/hppa/nptl/createthread.c: File removed.
37830
37831         * sysdeps/mips/nptl/tls.h (TLS_DEFINE_INIT_TP): New macro.
37832         * sysdeps/unix/sysv/linux/mips/nptl/createthread.c: File removed.
37833
37834         * sysdeps/arm/nptl/tls.h (TLS_DEFINE_INIT_TP): New macro.
37835         * sysdeps/unix/sysv/linux/arm/createthread.c: File removed.
37836
37837         * nptl/sysdeps/pthread/createthread.c (TLS_DEFINE_INIT_TP): New macro,
37838         if not already defined.
37839         (do_clone): Use that in place of PREPARE_CREATE and TLS_VALUE.
37840         * nptl/sysdeps/x86_64/tls.h (TLS_DEFINE_INIT_TP): New macro.
37841         * nptl/sysdeps/i386/tls.h (tls_fill_user_desc): New function.
37842         (TLS_INIT_TP): Use it.
37843         (TLS_DEFINE_INIT_TP): New macro.
37844         * sysdeps/unix/sysv/linux/i386/createthread.c: File removed.
37845
37846 2014-06-09  Joseph Myers  <joseph@codesourcery.com>
37847
37848         * conform/data/termios.h-data [POSIX] (IUCLC): Do not expect
37849         constant.
37850         [POSIX] (IXANY): Likewise.
37851         [POSIX] (OLCUC): Likewise.
37852         [POSIX || POSIX2008] (CBAUD): Do not allow.
37853         [POSIX || POSIX2008] (DEFECHO): Likewise.
37854         [POSIX || POSIX2008] (ECHOCTL): Likewise.
37855         [POSIX || POSIX2008] (ECHOKE): Likewise.
37856         [POSIX || POSIX2008] (ECHOPRT): Likewise.
37857         [POSIX || POSIX2008] (EXTA): Likewise.
37858         [POSIX || POSIX2008] (EXTB): Likewise.
37859         [POSIX || POSIX2008] (FLUSHO): Likewise.
37860         [POSIX || POSIX2008] (LOBLK): Likewise.
37861         [POSIX || POSIX2008] (PENDIN): Likewise.
37862         [POSIX || POSIX2008] (SWTCH): Likewise.
37863         [POSIX || POSIX2008] (VDISCARD): Likewise.
37864         [POSIX || POSIX2008] (VDSUSP): Likewise.
37865         [POSIX || POSIX2008] (VLNEXT): Likewise.
37866         [POSIX || POSIX2008] (VREPRINT): Likewise.
37867         [POSIX || POSIX2008] (VSTATUS): Likewise.
37868         [POSIX || POSIX2008] (VWERASE): Likewise.
37869         (B*): Change to B[0123456789]*.
37870         * conform/data/time.h-data [POSIX || UNIX98]
37871         (CLOCK_PROCESS_CPUTIME_ID): Do not expect constant.
37872         [POSIX || UNIX98] (CLOCK_THREAD_CPUTIME_ID): Likewise.
37873         [POSIX || UNIX98] (CLOCK_MONOTONIC): Likewise.
37874         [POSIX] (tm_*): Do not allow.
37875
37876 2014-06-07  Joseph Myers  <joseph@codesourcery.com>
37877
37878         * Makefile (install): Don't set LANGUAGE.
37879         * Makefile.in (install): Likewise.
37880         * assert/Makefile (test-assert-ENV): Remove variable.
37881         (test-assert-perr-ENV): Likewise.
37882         * elf/Makefile (neededtest4-ENV): Likewise.
37883         * iconvdata/Makefile ($(inst_gconvdir)/gconv-modules)
37884         [$(cross-compiling) = no]: Don't set LANGUAGE.
37885         * io/ftwtest-sh (LANG): Remove variable.
37886         * libio/Makefile (tst-widetext-ENV): Likewise.
37887         * manual/install.texi (Running make install): Don't refer to
37888         environment settings for make install.
37889         * INSTALL: Regenerated.
37890         * nptl/tst-tls6.sh: Don't set LANG.
37891         * posix/globtest.sh (LANG): Remove variable.
37892         * string/Makefile (tester-ENV): Likewise.
37893         (inl-tester-ENV): Likewise.
37894         (noinl-tester-ENV): Likewise.
37895         * sysdeps/s390/s390-64/Makefile ($(inst_gconvdir)/gconv-modules)
37896         [$(cross-compiling) = no]: Don't set LANGUAGE.
37897         * timezone/Makefile (build-testdata): Use $(built-program-cmd)
37898         without explicit environment settings.
37899
37900 2014-06-06  Roland McGrath  <roland@hack.frob.com>
37901
37902         * nptl/sysdeps/unix/sysv/linux/sh/bits/pthreadtypes.h: Moved ...
37903         * sysdeps/sh/nptl/bits/pthreadtypes.h: ... here.
37904         * nptl/sysdeps/unix/sysv/linux/sh/bits/semaphore.h: Moved ...
37905         * sysdeps/sh/nptl/bits/semaphore.h: ... here.
37906
37907 2014-06-06  Chris Metcalf  <cmetcalf@tilera.com>
37908
37909         * crypt/crypt-private.h [DOS]: Add some includes taken from the
37910         other files in the crypt directory.
37911         * crypt/crypt.c: Remove duplicate includes.
37912         * crypt/crypt-entry.c: Likewise.
37913         * crypt/crypt_util.c: Likewise.
37914
37915 2014-06-06  Joseph Myers  <joseph@codesourcery.com>
37916
37917         * Makeconfig (run-program-env): New variable.
37918         (run-program-prefix-before-env): Likewise.
37919         (run-program-prefix-after-env): Likewise.
37920         (run-program-prefix): Define in terms of new variables.
37921         (built-program-cmd-before-env): New variable.
37922         (built-program-cmd-after-env): Likewise.
37923         (built-program-cmd): Define in terms of new variables.
37924         (test-program-prefix-before-env): New variable.
37925         (test-program-prefix-after-env): Likewise.
37926         (test-program-prefix): Define in terms of new variables.
37927         (test-program-cmd-before-env): New variable.
37928         (test-program-cmd-after-env): Likewise.
37929         (test-program-cmd): Define in terms of new variables.
37930         * Rules (make-test-out): Use $(run-program-env).
37931         * scripts/cross-test-ssh.sh (env_blacklist): Remove variable.
37932         (help): Do not mention environment variables.  Mention
37933         --timeoutfactor option.
37934         (timeoutfactor): New variable.
37935         (blacklist_exports): Remove function.
37936         (exports): Remove variable.
37937         (command): Do not include ${exports}.
37938         * manual/install.texi (Configuring and compiling): Do not mention
37939         test wrappers preserving environment variables.  Mention that last
37940         assignment to a variable must take precedence.
37941         * INSTALL: Regenerated.
37942         * benchtests/Makefile (run-bench): Use $(run-program-env).
37943         * catgets/Makefile ($(objpfx)test1.cat): Use
37944         $(built-program-cmd-before-env), $(run-program-env) and
37945         $(built-program-cmd-after-env).
37946         ($(objpfx)test2.cat): Do not specify environment variables
37947         explicitly.
37948         ($(objpfx)de/libc.cat): Use $(built-program-cmd-before-env),
37949         $(run-program-env) and $(built-program-cmd-after-env).
37950         ($(objpfx)test-gencat.out): Use $(test-program-cmd-before-env),
37951         $(run-program-env) and $(test-program-cmd-after-env).
37952         ($(objpfx)sample.SJIS.cat): Do not specify environment variables
37953         explicitly.
37954         * catgets/test-gencat.sh: Use test_program_cmd_before_env,
37955         run_program_env and test_program_cmd_after_env arguments.
37956         * elf/Makefile ($(objpfx)tst-pathopt.out): Use $(run-program-env).
37957         * elf/tst-pathopt.sh: Use run_program_env argument.
37958         * iconvdata/Makefile ($(objpfx)iconv-test.out): Use
37959         $(test-wrapper-env) and $(run-program-env).
37960         * iconvdata/run-iconv-test.sh: Use test_wrapper_env and
37961         run_program_env arguments.
37962         * iconvdata/tst-table.sh: Do not set GCONV_PATH explicitly.
37963         * intl/Makefile ($(objpfx)tst-gettext.out): Use
37964         $(test-program-prefix-before-env), $(run-program-env) and
37965         $(test-program-prefix-after-env).
37966         ($(objpfx)tst-gettext2.out): Likewise.
37967         * intl/tst-gettext.sh: Use test_program_prefix_before_env,
37968         run_program_env and test_program_prefix_after_env arguments.
37969         * intl/tst-gettext2.sh: Likewise.
37970         * intl/tst-gettext4.sh: Do not set environment variables
37971         explicitly.
37972         * intl/tst-gettext6.sh: Likewise.
37973         * intl/tst-translit.sh: Likewise.
37974         * malloc/Makefile ($(objpfx)tst-mtrace.out): Use
37975         $(test-program-prefix-before-env), $(run-program-env) and
37976         $(test-program-prefix-after-env).
37977         * malloc/tst-mtrace.sh: Use test_program_prefix_before_env,
37978         run_program_env and test_program_prefix_after_env arguments.
37979         * math/Makefile (run-regen-ulps): Use $(run-program-env).
37980         * nptl/Makefile ($(objpfx)tst-tls6.out): Use $(run-program-env).
37981         * nptl/tst-tls6.sh: Use run_program_env argument.  Set LANG=C
37982         explicitly with each use of ${test_wrapper_env}.
37983         * posix/Makefile ($(objpfx)wordexp-tst.out): Use
37984         $(test-program-prefix-before-env), $(run-program-env) and
37985         $(test-program-prefix-after-env).
37986         * posix/tst-getconf.sh: Do not set environment variables
37987         explicitly.
37988         * posix/wordexp-tst.sh: Use test_program_prefix_before_env,
37989         run_program_env and test_program_prefix_after_env arguments.
37990         * stdio-common/tst-printf.sh: Do not set environment variables
37991         explicitly.
37992         * stdlib/Makefile ($(objpfx)tst-fmtmsg.out): Use
37993         $(test-program-prefix-before-env), $(run-program-env) and
37994         $(test-program-prefix-after-env).
37995         * stdlib/tst-fmtmsg.sh: Use test_program_prefix_before_env,
37996         run_program_env and test_program_prefix_after_env arguments.
37997         Split $test calls into $test_pre and $test.
37998         * timezone/Makefile (build-testdata): Use
37999         $(built-program-cmd-before-env), $(run-program-env) and
38000         $(built-program-cmd-after-env).
38001
38002 2014-06-06  Adhemerval Zanella  <azanella@linux.vnet.ibm.com>
38003
38004         * sysdeps/powerpc/powerpc64/power7/strncat.S [STRLEN]: Define it as
38005         strlen for non SHARED builds.
38006
38007 2014-06-05  Siddhesh Poyarekar  <siddhesh@redhat.com>
38008
38009         * nptl/allocatestack.c (check_list): Inlined function...
38010         (__reclaim_stacks): ... here.
38011
38012 2014-06-05  Ondřej Bílka  <neleai@seznam.cz>
38013
38014         [BZ #15698]
38015         * sysdeps/unix/sysv/linux/ifaddrs.c (getifaddrs_internal): Fix
38016         memory overrun.
38017
38018 2014-06-05  Joseph Myers  <joseph@codesourcery.com>
38019
38020         * Rules (make-test-out): Include
38021         LOCPATH=$(common-objpfx)localedata in default environment.
38022         * debug/Makefile (tst-chk1-ENV): Remove variable.
38023         (tst-chk2-ENV): Likewise.
38024         (tst-chk3-ENV): Likewise.
38025         (tst-chk4-ENV): Likewise.
38026         (tst-chk5-ENV): Likewise.
38027         (tst-chk6-ENV): Likewise.
38028         (tst-lfschk1-ENV): Likewise.
38029         (tst-lfschk2-ENV): Likewise.
38030         (tst-lfschk3-ENV): Likewise.
38031         (tst-lfschk4-ENV): Likewise.
38032         (tst-lfschk5-ENV): Likewise.
38033         (tst-lfschk6-ENV): Likewise.
38034         * iconvdata/Makefile (bug-iconv6-ENV): Likewise.
38035         (tst-iconv7-ENV): Likewise.
38036         * intl/Makefile (LOCPATH-ENV): Likewise.
38037         (tst-codeset-ENV): Likewise.
38038         (tst-gettext3-ENV): Likewise.
38039         (tst-gettext5-ENV): Likewise.
38040         * libio/Makefile (tst-widetext-ENV): Don't set LOCPATH.
38041         (tst-fopenloc-ENV): Likewise.
38042         (tst-fgetws-ENV): Remove variable.
38043         (tst-ungetwc1-ENV): Likewise.
38044         (tst-ungetwc2-ENV): Likewise.
38045         (bug-ungetwc2-ENV): Likewise.
38046         (tst-swscanf-ENV): Likewise.
38047         (bug-ftell-ENV): Likewise.
38048         (tst-fgetwc-ENV): Likewise.
38049         (tst-fseek-ENV): Likewise.
38050         (tst-ftell-partial-wide-ENV): Likewise.
38051         (tst-ftell-active-handler-ENV): Likewise.
38052         (tst-ftell-append-ENV): Likewise.
38053         * posix/Makefile (tst-fnmatch-ENV): Likewise.
38054         (tst-regexloc-ENV): Likewise.
38055         (bug-regex1-ENV): Likewise.
38056         (tst-regex-ENV): Likewise.
38057         (tst-regex2-ENV): Likewise.
38058         (bug-regex5-ENV): Likewise.
38059         (bug-regex6-ENV): Likewise.
38060         (bug-regex17-ENV): Likewise.
38061         (bug-regex18-ENV): Likewise.
38062         (bug-regex19-ENV): Likewise.
38063         (bug-regex20-ENV): Likewise.
38064         (bug-regex22-ENV): Likewise.
38065         (bug-regex23-ENV): Likewise.
38066         (bug-regex25-ENV): Likewise.
38067         (bug-regex26-ENV): Likewise.
38068         (bug-regex30-ENV): Likewise.
38069         (bug-regex32-ENV): Likewise.
38070         (bug-regex33-ENV): Likewise.
38071         (bug-regex34-ENV): Likewise.
38072         (bug-regex35-ENV): Likewise.
38073         (tst-rxspencer-ENV): Likewise.
38074         (tst-rxspencer-no-utf8-ENV): Likewise.
38075         * stdio-common/Makefile (tst-sprintf-ENV): Likewise.
38076         (tst-sscanf-ENV): Likewise.
38077         (tst-swprintf-ENV): Likewise.
38078         (tst-swscanf-ENV): Likewise.
38079         (test-vfprintf-ENV): Likewise.
38080         (scanf13-ENV): Likewise.
38081         (bug14-ENV): Likewise.
38082         (tst-grouping-ENV): Likewise.
38083         * stdlib/Makefile (tst-strtod-ENV): Likewise.
38084         (tst-strtod3-ENV): Likewise.
38085         (tst-strtod4-ENV): Likewise.
38086         (tst-strtod5-ENV): Likewise.
38087         (testmb2-ENV): Likewise./
38088         * string/Makefile (tst-strxfrm-ENV): Likewise.
38089         (tst-strxfrm2-ENV): Likewise.
38090         (bug-strcoll1-ENV): Likewise.
38091         (test-strcasecmp-ENV): Likewise.
38092         (test-strncasecmp-ENV): Likewise.
38093         * time/Makefile (tst-strptime-ENV): Likewise.
38094         (tst-ftime_l-ENV): Likewise.
38095         * wcsmbs/Makefile (tst-btowc-ENV): Likewise.
38096         (tst-mbrtowc-ENV): Likewise.
38097         (tst-wcrtomb-ENV): Likewise.
38098         (tst-mbrtowc2-ENV): Likewise.
38099         (tst-c16c32-1-ENV): Likewise.
38100         (tst-mbsnrtowcs-ENV): Likewise.
38101
38102 2014-06-05  Ondřej Bílka  <neleai@seznam.cz>
38103
38104         * manual/resource.texi (How to get information about the memory
38105         subsystem?): Fix typo.
38106         Reported by Peon de la Parra Ivan <peon@keba.com>
38107
38108 2014-06-03  Guo Yixuan  <culu.gyx@gmail.com>
38109
38110         [BZ #16882]
38111         * nptl/sysdeps/sparc/sparc32/pthread_spin_lock.S
38112         (pthread_spin_lock): Branch out of spin loop to proper location.
38113         * nptl/sysdeps/sparc/sparc64/pthread_spin_lock.S
38114         (pthread_spin_lock): Likewise.
38115
38116         * nptl/tst-spin4.c: New test.
38117         * nptl/Makefile (tests): Add tst-spin4.
38118
38119 2014-06-03  Andreas Schwab  <schwab@suse.de>
38120
38121         [BZ #15946]
38122         * resolv/res_send.c (send_dg): Reload file descriptor after
38123         calling reopen.
38124
38125 2014-06-03  Stefan Liebler  <stli@linux.vnet.ibm.com>
38126
38127         * sysdeps/s390/fpu/libm-test-ulps: Regenerate.
38128
38129 2014-06-03  Richard Henderson  <rth@redhat.com>
38130
38131         * sysdeps/unix/sysv/linux/aarch64/pt-vfork.c: New file.
38132         * sysdeps/unix/sysv/linux/aarch64/nptl/pt-vfork.S: Remove file.
38133         * sysdeps/unix/sysv/linux/aarch64/vfork.S (__vfork): Incorporate
38134         SAVE_PID and RESTORE_PID blocks from pt-vfork.S.  Map 0 to INT_MIN
38135         in the SAVE_PID block.
38136         (__libc_vfork): New alias.
38137         * sysdeps/unix/sysv/linux/aarch64/nptl/vfork.S: Remove file.
38138
38139         * sysdeps/unix/sysv/linux/aarch64/clone.S (__clone): Save args for
38140         child in registers, not on the stack.  Remove RESET_PID conditionals.
38141         * sysdeps/unix/sysv/linux/aarch64/nptl/clone.S: Remove file.
38142
38143 2014-06-03  Marcus Shawcroft  <marcus.shawcroft@arm.com>
38144
38145         * sysdeps/aarch64/libm-test-ulps: Regenerate.
38146
38147 2014-06-03  Wilco  <wdijkstr@arm.com>
38148
38149         * sysdeps/aarch64/fpu/math_private.h (libc_fesetround_aarch64)
38150         (libc_feholdexcept_setround_aarch64) (libc_feholdsetround_aarch64)
38151         (libc_feresetround_aarch64) (libc_feholdsetround_aarch64_ctx):
38152         Use _FPU_FPCR_RM_MASK for rounding mask rather than FE_TOWARDZERO.
38153         * sysdeps/aarch64/fpu/get-rounding-mode.h (get_rounding_mode):
38154         Likewise.
38155
38156 2014-06-03  Wilco  <wdijkstr@arm.com>
38157
38158         * sysdeps/aarch64/fpu/math_private.h
38159         (libc_feholdexcept_aarch64) (libc_feholdexcept_setround_aarch64)
38160         (libc_fetestexcept_aarch64) (libc_fesetenv_aarch64)
38161         (libc_feupdateenv_test_aarch64) (libc_feholdsetround_aarch64)
38162         (libc_feresetround_aarch64) (libc_feholdsetround_aarch64_ctx):
38163         Fix declarations.
38164
38165 2014-06-03  Kostya Serebryany  <konstantin.s.serebryany@gmail.com>
38166
38167         * crypt/crypt-private.h: Include ufc-crypt.h.
38168         (__b64_from_24bit): Declare extern.
38169         * crypt/crypt_util.c(__b64_from_24bit): New function.
38170         (b64t): New static const variable.
38171         * crypt/md5-crypt.c (b64_from_24bit): Remove function.
38172         (b64t): Remove variable.
38173         (__md5_crypt_r): Replace b64_from_24bit with __b64_from_24bit.
38174         * crypt/sha256-crypt.c: Include crypt-private.h.
38175         (b64t): Remove variable.
38176         (__sha256_crypt_r): Remove b64_from_24bit and replace
38177         with __b64_from_24bit.
38178         * crypt/sha512-crypt.c: Likewise.
38179
38180 2014-06-02  Roland McGrath  <roland@hack.frob.com>
38181
38182         * nptl/sysdeps/unix/sysv/linux/sh/vfork.S: Moved ...
38183         * sysdeps/unix/sysv/linux/sh/vfork.S: ... here.
38184         Label the code __libc_vfork rather than __vfork.
38185         [!NOT_IN_libc] (vfork): Define as weak alias.
38186         [!NOT_IN_libc] (__vfork): Define as strong alias, and libc_hidden_def.
38187         * sysdeps/unix/sysv/linux/sh/pt-vfork.S: New file.
38188         * nptl/sysdeps/unix/sysv/linux/sh/pt-vfork.S: File removed.
38189
38190 2014-06-02  Siddhesh Poyarekar  <siddhesh@redhat.com>
38191
38192         * malloc/malloc.c (malloc_info): Fix format specifier for
38193         n_mmaps.
38194
38195 2014-06-02  Wilco  <wdijkstr@arm.com>
38196
38197         * sysdeps/aarch64/fpu/fpu_control.h (_FPU_SETCW): Remove ISB after
38198         FPCR write.
38199
38200 2014-06-02  Wilco  <wdijkstr@arm.com>
38201
38202         [BZ #17009]
38203         * sysdeps/aarch64/fpu/feupdateenv (feupdateenv):
38204         Rewrite to reduce FPCR/FPSR accesses.
38205
38206 2014-06-01  David S. Miller  <davem@davemloft.net>
38207
38208         * sysdeps/sparc/fpu/libm-test-ulps: Update.
38209
38210 2014-05-31  David S. Miller  <davem@davemloft.net>
38211
38212         * sysdeps/ieee754/flt-32/e_j1f.c (__ieee754_y1f): Force computations
38213         to occur in round to nearest mode when |x| >= 2.0
38214
38215 2014-05-30  Richard Henderson  <rth@twiddle.net>
38216
38217         * sysdeps/unix/sysv/linux/aarch64/sysdep.h (PSEUDO_RET): Remove.
38218         (PSEUDO_RET_NOERRNO): Remove.
38219         (ret): Don't redefine.
38220         (ret_NOERRNO): Define in terms of ret.
38221         (ret_ERRVAL): Likewise.
38222
38223         * sysdeps/unix/sysv/linux/aarch64/ioctl.S (__ioctl): Remove the
38224         use of PSEUDO_RET; perform the error check directly.
38225
38226 2014-05-30 Marko Myllynen  <myllynen@redhat.com>
38227
38228         * sysdeps/x86_64/link-defines.sym (BND_SIZE): Replace __int128
38229         with __int128_t.
38230
38231 2014-05-30  Siddhesh Poyarekar  <siddhesh@redhat.com>
38232
38233         * malloc/malloc (malloc_info): Fix formatting.
38234
38235 2014-05-30  Siddhesh Poyarekar  <siddhesh@redhat.com>
38236             Roland McGrath  <roland@hack.frob.com>
38237
38238         * malloc/malloc (malloc_info): Also print mmapped statistics.
38239
38240 2014-05-30  Roland McGrath  <roland@hack.frob.com>
38241
38242         * sysdeps/unix/sysv/linux/m68k/arch-fork.h: New file.
38243         * sysdeps/unix/sysv/linux/m68k/nptl/fork.c: File removed.
38244
38245 2014-05-30  Ondřej Bílka  <neleai@seznam.cz>
38246
38247         * malloc/malloc.c (malloc_info): Inline mi_arena.
38248
38249 2014-05-29  Richard Henderson  <rth@twiddle.net>
38250
38251         * sysdeps/unix/sysv/linux/aarch64/sysdep.h (INTERNAL_VSYSCALL_NCS):
38252         Remove comma before expanding ASM_ARGS_##nr.
38253         (INTERNAL_SYSCALL_RAW): Make _sys_result signed, instead of casting.
38254         Make _x0 a strict output; make _x8 a strict input; adjust expansion
38255         of ASM_ARGS_##nr.
38256         (CLOBBER_ARGS_0, CLOBBER_ARGS_1, CLOBBER_ARGS_2): Remove.
38257         (CLOBBER_ARGS_3, CLOBBER_ARGS_4, CLOBBER_ARGS_5): Remove.
38258         (CLOBBER_ARGS_6, CLOBBER_ARGS_7): Remove.
38259         (ASM_ARGS_1): Add leading comma.
38260
38261         * sysdeps/unix/sysv/linux/aarch64/sysdep.h [NOT_IN_libc]
38262         (SYSCALL_ERROR_HANDLER): Use tpidr_el0 instead of a call
38263         to __errno_location.
38264         * sysdeps/unix/sysv/linux/aarch64/nptl/localplt.data (libpthread.so):
38265         Remove the expected plt for __errno_location.
38266
38267         * sysdeps/unix/sysv/linux/aarch64/nptl/sysdep-cancel.h
38268         [NOT_IN_libc] (SINGLE_THREAD_P): Use tpidr_el0 instead of a
38269         call to __read_tp.
38270
38271         * sysdeps/unix/sysv/linux/aarch64/nptl/sysdep-cancel.h (PSEUDO):
38272         Always allocate 64 bytes of stack frame.  Use ldp/stp to create
38273         it and break it down.
38274         (DOCARGS_0, DOCARGS_1): Do nothing.
38275         (DOCARGS_2): Update to store into the new stack frame.
38276         (DOCARGS_3, DOCARGS_4, DOCARGS_5, DOCARGS_6): Likewise.
38277         (UNDOCARGS_1): Update to restore from the new stack frame.
38278         (UNDOCARGS_2, UNDOCARGS_3, UNDOCARGS_4): Likewise.
38279         (UNDOCARGS_5, UNDOCARGS_6): Likewise.
38280
38281         * sysdeps/unix/sysv/linux/aarch64/nptl/sysdep-cancel.h
38282         (SINGLE_THREAD_P): New parameter for result regno.
38283         (PSEUDO): Update to match; use cbz instead of beq.
38284
38285         * sysdeps/unix/sysv/linux/aarch64/nptl/sysdep-cancel.h (PSEUDO):
38286         Use ENTRY to define the _nocancel entry point.  Share the syscall
38287         and syscall error check paths with the cancel path.
38288         (PSEUDO_END): New.
38289
38290         * sysdeps/unix/sysv/linux/aarch64/nptl/sysdep-cancel.h: Adjust
38291         whitespace; tabs before and after asm mnemonics.
38292
38293 2014-05-29  Eric Wong  <normalperson@yhbt.net>
38294
38295         [BZ #15132]
38296         * sysdeps/unix/sysv/linux/internal_statvfs.c (__statvfs_getflags):
38297         Call fstat64 or stat64 internally, depending on arguments passed.
38298         Replace stat buffer argument with file descriptor argument.
38299         (INTERNAL_STATVFS): Update arguments to match __statvfs_getflags.
38300         * sysdeps/unix/sysv/linux/fstatvfs.c (fstatvfs):
38301         Pass fd to __internal_statvfs instead of calling fstat64.
38302         * sysdeps/unix/sysv/linux/fstatvfs64.c (__fstatvfs64):
38303         Pass fd to __internal_statvfs64 instead of calling fstat64.
38304         * sysdeps/unix/sysv/linux/statvfs.c (statvfs):
38305         Pass -1 to __internal_statvfs instead of calling stat64.
38306         * sysdeps/unix/sysv/linux/statvfs64.c (__statvfs64):
38307         Pass -1 to __internal_statvfs64 instead of calling stat64.
38308
38309 2014-05-28  Roland McGrath  <roland@hack.frob.com>
38310
38311         * sysdeps/unix/sysv/linux/sh/clone.S: Deconditionalize the code
38312         that was previously under [RESET_PID].
38313         * nptl/sysdeps/unix/sysv/linux/sh/clone.S: File removed.
38314
38315         * sysdeps/unix/sysv/linux/tile/arch-fork.h: New file.
38316         * sysdeps/unix/sysv/linux/tile/nptl/fork.c: File removed.
38317
38318 2014-05-27  Roland McGrath  <roland@hack.frob.com>
38319
38320         * sysdeps/unix/sysv/linux/ia64/arch-fork.h: New file.
38321
38322         * sysdeps/unix/sysv/linux/sh/arch-fork.h: New file.
38323         * nptl/sysdeps/unix/sysv/linux/sh/fork.c: File removed.
38324
38325 2014-05-27  Ondřej Bílka  <neleai@seznam.cz>
38326
38327         * elf/dl-deps.c (_dl_map_object_deps): Remove duplicate code.
38328
38329 2014-05-27  Andreas Schwab  <schwab@suse.de>
38330
38331         * csu/libc-tls.c (__libc_setup_tls): Remove second argument from
38332         TLS_INIT_TP macro.
38333         * elf/dl-load.c (_dl_map_object_from_fd): Likewise.
38334         * elf/rtld.c (init_tls, dl_main): Likewise.
38335         * nptl/sysdeps/i386/tls.h (TLS_INIT_TP): Likewise.
38336         * nptl/sysdeps/powerpc/tls.h (TLS_INIT_TP): Likewise.
38337         * nptl/sysdeps/s390/tls.h (TLS_INIT_TP): Likewise.
38338         * nptl/sysdeps/sh/tls.h (TLS_INIT_TP): Likewise.
38339         * nptl/sysdeps/sparc/tls.h (TLS_INIT_TP): Likewise.
38340         * nptl/sysdeps/x86_64/tls.h (TLS_INIT_TP): Likewise.
38341         * sysdeps/aarch64/nptl/tls.h (TLS_INIT_TP): Likewise.
38342         * sysdeps/alpha/nptl/tls.h (TLS_INIT_TP): Likewise.
38343         * sysdeps/arm/nptl/tls.h (TLS_INIT_TP): Likewise.
38344         * sysdeps/hppa/nptl/tls.h (TLS_INIT_TP): Likewise.
38345         * sysdeps/ia64/nptl/tls.h (TLS_INIT_TP): Likewise.
38346         * sysdeps/m68k/nptl/tls.h (TLS_INIT_TP): Likewise.
38347         * sysdeps/mach/hurd/i386/tls.h (_hurd_tls_init): Likewise.
38348         * sysdeps/microblaze/nptl/tls.h (TLS_INIT_TP): Likewise.
38349         * sysdeps/mips/nptl/tls.h (TLS_INIT_TP): Likewise.
38350         * sysdeps/tile/nptl/tls.h (TLS_INIT_TP): Likewise.
38351         * sysdeps/generic/tls.h: Update description.
38352
38353 2014-05-27  Will Newton  <will.newton@linaro.org>
38354
38355         [BZ #16990]
38356         * sysdeps/arm/dl-tlsdesc.S (_dl_tlsdesc_resolve_hold): Save
38357         and restore r2 rather than just restoring.
38358
38359 2014-05-27  Siddhesh Poyarekar  <siddhesh@redhat.com>
38360
38361         [BZ #16724]
38362         * libio/tst-ftell-append.c: New test case.
38363         * libio/Makefile (tests): Add test case.
38364         * libio/fileops.c (do_ftell): Don't trust _IO_read_end when in
38365         append mode.
38366         * libio/wfileops.c (do_ftell_wide): Likewise.
38367
38368 2014-05-26  Adhemerval Zanella  <azanella@linux.vnet.ibm.com>
38369
38370         * sysdeps/powerpc/fpu/libm-test-ulps: Update.
38371
38372         * nptl/sysdeps/unix/sysv/linux/powerpc/Versions: Remove, merge into
38373         ...
38374         * sysdeps/unix/sysv/linux/powerpc/powerpc32/Versions: ... here.
38375         * sysdeps/unix/sysv/linux/powerpc/powerpc64/Versions: Likewise.
38376         * nptl/sysdeps/unix/sysv/linux/powerpc/Makefile: Moved rules to ...
38377         * sysdeps/unix/sysv/linux/powerpc/Makefile: ... here.
38378         * nptl/sysdeps/unix/sysv/linux/powerpc/bits/local_lim.h: Moved ...
38379         * sysdeps/unix/sysv/linux/powerpc/bits/local_lim.h: ... here.
38380         * nptl/sysdeps/unix/sysv/linux/powerpc/lowlevellock.h: Moved ...
38381         * sysdeps/unix/sysv/linux/powerpc/lowlevellock.h: ...here.
38382         * nptl/sysdeps/unix/sysv/linux/powerpc/powerpc32/sysdep-cancel.h:
38383         Moved ...
38384         * sysdeps/unix/sysv/linux/powerpc/powerpc32/sysdep-cancel.h: ... here.
38385         * nptl/sysdeps/unix/sysv/linux/powerpc/powerpc64/sysdep-cancel.h:
38386         Moved ...
38387         * sysdeps/unix/sysv/linux/powerpc/powerpc64/sysdep-cancel.h: ... here.
38388         * nptl/sysdeps/unix/sysv/linux/powerpc/createthread.c: Moved ...
38389         * sysdeps/unix/sysv/linux/powerpc/createthread.c: ... here.
38390         * nptl/sysdeps/unix/sysv/linux/powerpc/pt-longjmp.c: Moved ...
38391         * sysdeps/unix/sysv/linux/powerpc/pt-longjmp.c: ... here.
38392         * nptl/sysdeps/unix/sysv/linux/powerpc/pthread_attr_setstack.c: Moved
38393         ...
38394         * sysdeps/unix/sysv/linux/powerpc/pthread_attr_setstack.c: ... here.
38395         * nptl/sysdeps/unix/sysv/linux/powerpc/pthread_attr_setstacksize.c:
38396         Moved ...
38397         * sysdeps/unix/sysv/linux/powerpc/pthread_attr_setstacksize.c: ...
38398         here.
38399         * nptl/sysdeps/unix/sysv/linux/powerpc/pthread_spin_unlock.c: Moved
38400         ...
38401         * sysdeps/unix/sysv/linux/powerpc/pthread_spin_unlock.c: ... here.
38402         * nptl/sysdeps/unix/sysv/linux/powerpc/sem_post.c: Moved ...
38403         * sysdeps/unix/sysv/linux/powerpc/sem_post.c: ... here.
38404
38405         * nptl/sysdeps/unix/sysv/linux/powerpc/bits/pthreadtypes.h: Moved ...
38406         * sysdeps/unix/sysv/linux/powerpc/bits/pthreadtypes.h: ... here.
38407         * nptl/sysdeps/unix/sysv/linux/powerpc/bits/semaphore.h: Moved ...
38408         * sysdeps/unix/sysv/linux/powerpc/bits/semaphore.h: ... here.
38409
38410         * nptl/sysdeps/unix/sysv/linux/powerpc/powerpc64/Versions: Remove,
38411         merge into ...
38412         * sysdeps/unix/sysv/linux/powerpc/powerpc64/Versions: ... here.
38413         * nptl/sysdeps/unix/sysv/linux/powerpc/powerpc64/timer_create.c: Moved
38414         ...
38415         * sysdeps/unix/sysv/linux/powerpc/powerpc64/timer_create.c: ... here.
38416         * nptl/sysdeps/unix/sysv/linux/powerpc/powerpc64/timer_delete.c: Moved
38417         ...
38418         * sysdeps/unix/sysv/linux/powerpc/powerpc64/timer_delete.c: ... here.
38419         * nptl/sysdeps/unix/sysv/linux/powerpc/powerpc64/timer_getoverr.c:
38420         Moved ...
38421         * sysdeps/unix/sysv/linux/powerpc/powerpc64/timer_getoverr.c: ...
38422         here.
38423         * nptl/sysdeps/unix/sysv/linux/powerpc/powerpc64/timer_gettime.c:
38424         Moved ...
38425         * sysdeps/unix/sysv/linux/powerpc/powerpc64/timer_gettime.c: ... here.
38426         * nptl/sysdeps/unix/sysv/linux/powerpc/powerpc64/timer_settime.c:
38427         Moved ...
38428         * sysdeps/unix/sysv/linux/powerpc/powerpc64/timer_settime.c: ... here.
38429
38430         * sysdeps/unix/sysv/linux/powerpc/powerpc32/clone.S: Remove
38431         conditional [RESET_PID].
38432         * sysdeps/unix/sysv/linux/powerpc/powerpc64/clone.S: Likewise.
38433         * nptl/sysdeps/unix/sysv/linux/powerpc/powerpc32/clone.S: File
38434         removed.
38435         * nptl/sysdeps/unix/sysv/linux/powerpc/powerpc64/clone.S: File
38436         removed.
38437
38438         * sysdeps/unix/sysv/linux/powerpc/powerpc32/vfork.S: Include
38439         <tcb-offsets.h>.
38440         (__vfork): Incorporate save/restore of PID from nptl/vfork.S here.
38441         (__libc_vfork): New strong alias.
38442         * nptl/sysdeps/unix/sysv/linux/powerpc/powerpc32/pt-vfork.S: File
38443         removed.
38444         * nptl/sysdeps/unix/sysv/linux/powerpc/powerpc32/vfork.S: File
38445         Removed.
38446
38447         * sysdeps/unix/sysv/linux/powerpc/powerpc64/vfork.S: Include
38448         <tcb-offsets.h>.
38449         (__vfork): Incorporate save/retore of PID from nptl/vfork.S here.
38450         (__libc_vfork): New strong alias.
38451         * nptl/sysdeps/unix/sysv/linux/powerpc/powerpc64/pt-vfork.S: File
38452         removed.
38453         * nptl/sysdeps/unix/sysv/linux/powerpc/powerpc64/vfork.S: File
38454         removed.
38455
38456 2014-05-26  Carlos O'Donell  <carlos@redhat.com>
38457
38458         * malloc/malloc.c (mi_arena): New function.
38459         (malloc_info): Remove nested function mi_arena. Call non-nosted
38460         function mi_arena.
38461
38462 2014-05-26  Adhemerval Zanella  <azanella@linux.vnet.ibm.com>
38463
38464         * sysdeps/powerpc/powerpc32/power4/memset.S (memset): Replace insrdi
38465         by insrwi.
38466         * sysdeps/powerpc/powerpc32/power6/memset.S (memset): Likewise.
38467         * sysdeps/powerpc/powerpc32/power7/memset.S (memset): Likewise.
38468         * sysdeps/powerpc/powerpc32/power7/memchr.S (memchr): Likewise.
38469         * sysdeps/powerpc/powerpc32/power7/memrchr.S (memrchr): Likewise.
38470         * sysdeps/powerpc/powerpc32/power7/rawmemchr.S (rawmemchr): Likewise.
38471         * sysdeps/powerpc/powerpc32/power7/strchr.S (strchr): Likewise.
38472         * sysdeps/powerpc/powerpc32/power7/strchrnul.S (strchrnul): Likewise.
38473
38474 2014-05-26  Andreas Schwab  <schwab@suse.de>
38475
38476         [BZ #16984]
38477         * locale/programs/repertoire.c (repertoire_read): Add slash
38478         between I18NPATH element and file name.
38479         * locale/programs/locfile.c (locfile_read): Likewise.
38480
38481 2014-05-26  Stefan Liebler  <stli@linux.vnet.ibm.com>
38482
38483         * nptl/pthread_mutexattr_settype.c
38484         (__pthread_mutexattr_settype):
38485         Disable lock elision for PTHREAD_MUTEX_NORMAL.
38486
38487 2014-05-26  Stefan Liebler  <stli@linux.vnet.ibm.com>
38488
38489         * nptl/tst-mutex5 (do_test):
38490         Use #ifndef ENABLE_LOCK_ELISION instead of #ifdef.
38491
38492 2014-05-26  Siddhesh Poyarekar  <siddhesh@redhat.com>
38493
38494         * benchtests/README: Document 'init' directive.
38495         * benchtests/bench-skeleton.c (main) [BENCH_INIT]: Call
38496         BENCH_INIT.
38497         * scripts/bench.py (gen_source): Define BENCH_INIT macro.
38498         (parse_file): Recognize 'init' directive.
38499
38500 2014-05-26  Kyle McMartin  <kyle@redhat.com>
38501
38502         [BZ #16796]
38503         * sysdeps/aarch64/nptl/tls.h: increase TCB alignment to the
38504         alignment of struct pthread.
38505
38506 2014-05-26  Siddhesh Poyarekar  <siddhesh@redhat.com>
38507
38508         [BZ #16878]
38509         * nscd/netgroupcache.c (addgetnetgrentX): Look for
38510         NSS_STATUS_TRYAGAIN to indicate insufficient buffer space.
38511         * nscd/nss_files/files-netgrp.c (_nss_netgroup_parseline): Use
38512         NSS_STATUS_TRYAGAIN to indicate insufficient buffer space.
38513
38514 2014-05-25  Richard Henderson  <rth@twiddle.net>
38515
38516         * sysdeps/unix/sysv/linux/aarch64/nptl/sysdep-cancel.h
38517         (SINGLE_THREAD_P_PIC): Remove.
38518         * sysdeps/unix/sysv/linux/arm/sysdep-cancel.h
38519         (SINGLE_THREAD_P_PIC): Remove.
38520
38521         * sysdeps/unix/sysv/linux/aarch64/sysdep.h (PSEUDO_RET): Move
38522         branch to syscall error ...
38523         (PSEUDO): ... here.
38524         [NOT_IN_libc] (SYSCALL_ERROR_HANDLER): Rename the label
38525         from __local_syscall_error to .Lsyscall_error.
38526         [!NOT_IN_libc] (SYSCALL_ERROR_HANDLER): Branch to __syscall_error.
38527         (SYSCALL_ERROR): Update label name.
38528
38529         * sysdeps/unix/sysv/linux/aarch64/nptl/sysdep-cancel.h (PSEUDO):
38530         Do not use DOARGS/UNDOARGS.
38531         * sysdeps/unix/sysv/linux/aarch64/sysdep.h (DO_CALL): Likewise.
38532         (DOARGS_0, DOARGS_1, DOARGS_2, DOARGS_3): Remove.
38533         (DOARGS_4, DOARGS_5, DOARGS_6, DOARGS_7): Remove.
38534         (UNDOARGS_0, UNDOARGS_1, UNDOARGS_2, UNDOARGS_3): Remove.
38535         (UNDOARGS_4, UNDOARGS_5, UNDOARGS_6, UNDOARGS_7): Remove.
38536
38537         * sysdeps/unix/sysv/linux/aarch64/sysdep.h (DO_CALL): Fix
38538         block comment.
38539
38540         * sysdeps/unix/sysv/linux/alpha/vfork.S (vfork, __vfork): Only
38541         define if !NOT_IN_libc.
38542         * sysdeps/unix/sysv/linux/alpha/pt-vfork.S (vfork, __vfork): Only
38543         define with non-default symbol versions.
38544
38545 2014-05-23  Richard Henderson  <rth@twiddle.net>
38546
38547         * nptl/pt-vfork.c (vfork_resolve): Rename from vfork_ifunc.
38548         (vfork, __vfork): Define via compat_symbol.
38549
38550         * nptl/pt-vfork.c: Error if !HAVE_IFUNC.
38551         [!HAVE_IFUNC] (vfork_compat): Remove.
38552         [!HAVE_IFUNC] (DEFINE_VFORK): Remove.
38553
38554 2014-05-23  Joseph Myers  <joseph@codesourcery.com>
38555
38556         [BZ #16978]
38557         * posix/tar.h [!__USE_XOPEN2K] (TSVTX): Define macro.
38558         * conform/Makefile (test-xfail-POSIX/tar.h/conform): Remove
38559         variable.
38560
38561 2014-05-23  Richard Henderson  <rth@twiddle.net>
38562
38563         * sysdeps/unix/sysv/linux/alpha/nptl/Makefile: Merge into...
38564         * sysdeps/unix/sysv/linux/alpha/Makefile: ... here.
38565         * sysdeps/unix/sysv/linux/alpha/nptl/Versions: Merge into...
38566         * sysdeps/unix/sysv/linux/alpha/Versions: ... here.
38567
38568         * sysdeps/unix/sysv/linux/alpha/nptl/aio_cancel.c: Moved ...
38569         * sysdeps/unix/sysv/linux/alpha/aio_cancel.c: ... here.
38570         * sysdeps/unix/sysv/linux/alpha/nptl/bits/local_lim.h: Moved ...
38571         * sysdeps/unix/sysv/linux/alpha/bits/local_lim.h: ... here.
38572         * sysdeps/unix/sysv/linux/alpha/nptl/bits/pthreadtypes.h: Moved ...
38573         * sysdeps/unix/sysv/linux/alpha/bits/pthreadtypes.h: ... here.
38574         * sysdeps/unix/sysv/linux/alpha/nptl/bits/semaphore.h: Moved ...
38575         * sysdeps/unix/sysv/linux/alpha/bits/semaphore.h: ... here.
38576         * sysdeps/unix/sysv/linux/alpha/nptl/c++-types.data: Moved ...
38577         * sysdeps/unix/sysv/linux/alpha/c++-types.data: ... here.
38578         * sysdeps/unix/sysv/linux/alpha/nptl/createthread.c: Moved ...
38579         * sysdeps/unix/sysv/linux/alpha/createthread.c: ... here.
38580         * sysdeps/unix/sysv/linux/alpha/nptl/ld.abilist: Moved ...
38581         * sysdeps/unix/sysv/linux/alpha/ld.abilist: ... here.
38582         * sysdeps/unix/sysv/linux/alpha/nptl/libBrokenLocale.abilist: Moved ...
38583         * sysdeps/unix/sysv/linux/alpha/libBrokenLocale.abilist: ... here.
38584         * sysdeps/unix/sysv/linux/alpha/nptl/libanl.abilist: Moved ...
38585         * sysdeps/unix/sysv/linux/alpha/libanl.abilist: ... here.
38586         * sysdeps/unix/sysv/linux/alpha/nptl/libc.abilist: Moved ...
38587         * sysdeps/unix/sysv/linux/alpha/libc.abilist: ... here.
38588         * sysdeps/unix/sysv/linux/alpha/nptl/libcrypt.abilist: Moved ...
38589         * sysdeps/unix/sysv/linux/alpha/libcrypt.abilist: ... here.
38590         * sysdeps/unix/sysv/linux/alpha/nptl/libdl.abilist: Moved ...
38591         * sysdeps/unix/sysv/linux/alpha/libdl.abilist: ... here.
38592         * sysdeps/unix/sysv/linux/alpha/nptl/libm.abilist: Moved ...
38593         * sysdeps/unix/sysv/linux/alpha/libm.abilist: ... here.
38594         * sysdeps/unix/sysv/linux/alpha/nptl/libnsl.abilist: Moved ...
38595         * sysdeps/unix/sysv/linux/alpha/libnsl.abilist: ... here.
38596         * sysdeps/unix/sysv/linux/alpha/nptl/libpthread.abilist: Moved ...
38597         * sysdeps/unix/sysv/linux/alpha/libpthread.abilist: ... here.
38598         * sysdeps/unix/sysv/linux/alpha/nptl/libresolv.abilist: Moved ...
38599         * sysdeps/unix/sysv/linux/alpha/libresolv.abilist: ... here.
38600         * sysdeps/unix/sysv/linux/alpha/nptl/librt.abilist: Moved ...
38601         * sysdeps/unix/sysv/linux/alpha/librt.abilist: ... here.
38602         * sysdeps/unix/sysv/linux/alpha/nptl/libthread_db.abilist: Moved ...
38603         * sysdeps/unix/sysv/linux/alpha/libthread_db.abilist: ... here.
38604         * sysdeps/unix/sysv/linux/alpha/nptl/libutil.abilist: Moved ...
38605         * sysdeps/unix/sysv/linux/alpha/libutil.abilist: ... here.
38606         * sysdeps/unix/sysv/linux/alpha/nptl/localplt.data: Moved ...
38607         * sysdeps/unix/sysv/linux/alpha/localplt.data: ... here.
38608         * sysdeps/unix/sysv/linux/alpha/nptl/lowlevellock.h: Moved ...
38609         * sysdeps/unix/sysv/linux/alpha/lowlevellock.h: ... here.
38610         * sysdeps/unix/sysv/linux/alpha/nptl/sem_post.c: Moved ...
38611         * sysdeps/unix/sysv/linux/alpha/sem_post.c: ... here.
38612         * sysdeps/unix/sysv/linux/alpha/nptl/sysdep-cancel.h: Moved ...
38613         * sysdeps/unix/sysv/linux/alpha/sysdep-cancel.h: ... here.
38614         * sysdeps/unix/sysv/linux/alpha/nptl/timer_create.c: Moved ...
38615         * sysdeps/unix/sysv/linux/alpha/timer_create.c: ... here.
38616         * sysdeps/unix/sysv/linux/alpha/nptl/timer_delete.c: Moved ...
38617         * sysdeps/unix/sysv/linux/alpha/timer_delete.c: ... here.
38618         * sysdeps/unix/sysv/linux/alpha/nptl/timer_getoverr.c: Moved ...
38619         * sysdeps/unix/sysv/linux/alpha/timer_getoverr.c: ... here.
38620         * sysdeps/unix/sysv/linux/alpha/nptl/timer_gettime.c: Moved ...
38621         * sysdeps/unix/sysv/linux/alpha/timer_gettime.c: ... here.
38622         * sysdeps/unix/sysv/linux/alpha/nptl/timer_settime.c: Moved ...
38623         * sysdeps/unix/sysv/linux/alpha/timer_settime.c: ... here.
38624
38625         * sysdeps/unix/sysv/linux/alpha/syscalls.list: Remove vfork.
38626         * sysdeps/unix/sysv/linux/alpha/nptl/vfork.S: Move file ...
38627         * sysdeps/unix/sysv/linux/alpha/vfork.S: ... here.  Restore PID
38628         before exiting on error.
38629         (__libc_vfork): New strong alias.
38630         * sysdeps/unix/sysv/linux/alpha/nptl/pt-vfork.S: Remove file.
38631         * sysdeps/unix/sysv/linux/alpha/pt-vfork.S: New file.
38632
38633         * sysdeps/unix/sysv/linux/alpha/clone.S: Deconditionalize the code
38634         that was previously under [RESET_PID].
38635         * sysdeps/unix/sysv/linux/alpha/nptl/clone.S: File removed.
38636
38637         * sysdeps/unix/sysv/linux/alpha/nptl/fork.c: Remove file.
38638
38639 2014-05-23  Joseph Myers  <joseph@codesourcery.com>
38640
38641         [BZ #16977]
38642         * sysdeps/i386/fpu/e_log10.S (__ieee754_log10): Take absolute
38643         value when x - 1 is zero.
38644         * sysdeps/i386/fpu/e_log10f.S (__ieee754_log10f): Likewise.
38645         * sysdeps/i386/fpu/e_log10l.S (__ieee754_log10l): Likewise.
38646         * sysdeps/ieee754/ldbl-128/e_log10l.c (__ieee754_log10l): Return
38647         0.0L for an argument of 1.0L.
38648         * sysdeps/ieee754/ldbl-128ibm/e_log10l.c (__ieee754_log10l):
38649         Likewise.
38650         * sysdeps/x86_64/fpu/e_log10l.S (__ieee754_log10l): Take absolute
38651         value when x - 1 is zero.
38652         * math/libm-test.inc (log10_test): Use ALL_RM_TEST.
38653         * sysdeps/i386/fpu/libm-test-ulps: Update.
38654         * sysdeps/x86_64/fpu/libm-test-ulps: Likewise.
38655
38656 2014-05-23  Rasmus Villemoes  <rv@rasmusvillemoes.dk>
38657
38658         * manual/filesys.texi (Scanning Directory Content): Fix prototype of
38659         alphasort and versionsort.
38660
38661 2014-05-22  Adhemerval Zanella  <azanella@linux.vnet.ibm.com>
38662
38663         * sysdeps/powerpc/fpu/math_private.h [copysign]: Remove unneeded
38664         macro.
38665         [copysignf]: Likewise.
38666
38667 2014-05-22  Siddhesh Poyarekar  <siddhesh@redhat.com>
38668
38669         * crypt/md5-crypt.c: Fix formatting.
38670
38671 2014-05-22  Kostya Serebryany  <konstantin.s.serebryany@gmail.com>
38672
38673         * crypt/md5-crypt.c (__md5_crypt_r): Remove a nested function.
38674         (b64_from_24bit): New function.
38675
38676 2014-05-22  Adhemerval Zanella  <azanella@linux.vnet.ibm.com>
38677
38678         * sysdeps/powerpc/powerpc32/power4/multiarch/memchr.c (memchr): Remove
38679         libc_hidden_builtin_def to ifunc.
38680         * sysdeps/powerpc/powerpc32/power4/multiarch/memchr-ppc32.c
38681         [libc_hidden_builtin_def]: Define hidden definition to __memchr_ppc32.
38682
38683 2014-05-21  Roland McGrath  <roland@hack.frob.com>
38684
38685         * sysdeps/unix/sysv/linux/aarch64/arch-fork.h: New file.
38686         * sysdeps/unix/sysv/linux/aarch64/nptl/fork.c: File removed.
38687
38688 2014-05-21  Joseph Myers  <joseph@codesourcery.com>
38689
38690         * nscd/Depend (linuxthreads): Remove.
38691         (nptl): Add.
38692         * resolv/Depend (linuxthreads): Remove.
38693         * rt/Depend (linuxthreads): Remove.
38694
38695         * Makeconfig [$(build-hardcoded-path-in-tests) = yes]
38696         (rtld-tests-LDFLAGS): Use $(elf-objpfx) instead of
38697         $(common-objpfx)elf/.
38698         (link-libc-before-gnulib): Likewise.
38699         (elfobjdir): Remove variable.
38700         * Makefile (install): Use $(elf-objpfx) instead of
38701         $(common-objpfx)elf/.
38702         * Makerules (link-libc-args): Use $(elf-objpfx) instead of
38703         $(elfobjdir)/.
38704         (link-libc-deps): Likewise.
38705         ($(common-objpfx)libc.so): Likewise.
38706         ($(common-objpfx)linkobj/libc.so): Likewise.
38707         [$(cross-compiling) = no] (symbolic-link-prog): Use $(elf-objpfx)
38708         instead of $(common-objpfx)elf/.
38709         (symbolic-link-list): Likewise.
38710         * iconvdata/Makefile ($(inst_gconvdir)/gconv-modules)
38711         [$(cross-compiling) = no]: Likewise.
38712         * sysdeps/arm/Makefile (gnulib-arch): Use $(elf-objpfx) instead of
38713         $(elfobjdir)/.
38714         (static-gnulib-arch): Likewise.
38715         * sysdeps/s390/s390-64/Makefile ($(inst_gconvdir)/gconv-modules)
38716         [$(cross-compiling) = no]: Use $(elf-objpfx) instead of
38717         $(common-objpfx)elf/.
38718
38719 2014-05-21  Richard Henderson  <rth@redhat.com>
38720
38721         * sysdeps/unix/sysv/linux/aarch64/nptl/sysdep-cancel.h
38722         (SINGLE_THREAD_P): Use the correct width load.  Fold
38723         into the ldr offset.
38724
38725         * sysdeps/unix/sysv/linux/aarch64/sysdep.h [RTLD_PRIVATE_ERRNO]
38726         (SYSCALL_ERROR_HANDLER): Fold add insn into str offset.
38727
38728 2014-05-20  Joseph Myers  <joseph@codesourcery.com>
38729
38730         * sysdeps/unix/sysv/linux/arm/unwind-forcedunwind.c
38731         (libgcc_s_resume): Use __attribute_used__.
38732         * sysdeps/unix/sysv/linux/arm/unwind-resume.c (libgcc_s_resume):
38733         Likewise.
38734
38735 2014-05-20  Adhemerval Zanella  <azanella@linux.vnet.ibm.com>
38736
38737         * sysdeps/powerpc/fpu/math_private.h [__copysignf]: Fix copysign macro
38738         optimization when used with float constants.
38739
38740         * sysdeps/powerpc/fpu/libm-test-ulps: Update.
38741
38742 2014-05-20  Aurelien Jarno  <aurelien@aurel32.net>
38743
38744         [BZ #16915]
38745         * locale/nl_langinfo_l.c: Make direct reference to every
38746         _nl_current_CATEGORY symbol.
38747         * localedata/Makefile (test-srcs): Add tst-langinfo-static.
38748         (tests-static): Add tst-langinfo-static.
38749         (tests-special): Add tst-langinfo-static.out.
38750         ($(objpfx)tst-langinfo.out): Redirect output.
38751         ($(objpfx)tst-langinfo-static.out): New.
38752         * localedata/tst-langinfo.sh: Send output to stdout.
38753         * localedata/tst-langinfo-static.c: New file.
38754
38755         [BZ #16965]
38756         * stdlib/strtod_l.c (round_and_return): Add code to shift limbs
38757         when the shift amount is modulo the limb size.
38758
38759 2014-05-20  Richard Henderson  <rth@redhat.com>
38760
38761         [BZ #16967]
38762         * sysdeps/unix/sysv/linux/alpha/bits/sigaction.h (struct sigaction):
38763         Change type of sa_flags from unsigned int to int.
38764
38765         [BZ #16966]
38766         * sysdeps/unix/sysv/linux/alpha/bits/siginfo.h: Remove file.
38767
38768         * sysdeps/alpha/dl-machine.h (ELF_MACHINE_NO_RELA): Define.
38769
38770 2014-05-20  Will Newton  <will.newton@linaro.org>
38771
38772         * sysdeps/unix/sysv/linux/aarch64/nptl/sysdep-cancel.h (PSEUDO):
38773         Test the return value of the system call in the nocancel case.
38774
38775 2014-05-20  Will Newton  <will.newton@linaro.org>
38776             Yvan Roux  <yvan.roux@linaro.org>
38777
38778         * sysdeps/unix/sysv/linux/aarch64/sys/user.h: Remove unused
38779         #include of asm/ptrace.h.
38780         (PTRACE_GET_THREAD_AREA): Remove #undef.
38781         (PTRACE_GETHBPREGS): Likewise.
38782         (PTRACE_SETHBPREGS): Likewise.
38783         (struct user_regs_struct): New structure.
38784         (struct user_fpsimd_struct): New structure.
38785         * sysdeps/unix/sysv/linux/aarch64/sys/procfs.h: Remove unused
38786         #include of asm/ptrace.h and second #include of sys/user.h.
38787         (PTRACE_GET_THREAD_AREA): Remove #undef.
38788         (PTRACE_GETHBPREGS): Likewise.
38789         (PTRACE_SETHBPREGS): Likewise.
38790         (ELF_NGREG): Use new struct user_regs_struct.
38791         (elf_fpregset_t): Use new struct user_fpsimd_struct.
38792
38793 2014-05-19  Adhemerval Zanella  <azanella@linux.vnet.ibm.com>
38794
38795         * sysdeps/powerpc/powerpc64/fpu/multiarch/e_hypof.c: Moved ...
38796         * sysdeps/powerpc/powerpc64/fpu/multiarch/e_hypotf.c: ... here.
38797
38798 2014-05-17  Jose E. Marchesi  <jose.marchesi@oracle.com>
38799
38800         [BZ #16958]
38801         * sysdeps/sparc/sparc64/multiarch/memcpy-niagara2.S: Add missing
38802         membar to avoid block loads/stores to overlap previous stores.
38803
38804 2014-05-17  Richard Henderson  <rth@redhat.com>
38805
38806         * sysdeps/unix/sysv/linux/alpha/nptl/sysdep-cancel.h (PSEUDO):
38807         Create the __##syscall_name##_nocancel entry point.
38808         * sysdeps/unix/sysv/linux/alpha/sigsuspend.S (__sigsuspend_nocancel):
38809         Remove; let the sysdep-cancel.h code create it.
38810
38811 2014-05-17  David S. Miller  <davem@davemloft.net>
38812
38813         * sysdeps/unix/sysv/linux/sparc/bits/termios.h (PAGEOUT, WRAP):
38814         Protect with __USE_GNU.
38815         (TIOCSET_TEMPT): Likewise.
38816         (TIOCM_LE, TIOCM_DTR, TIOCM_RTS, TIOCM_ST, TIOCM_SR, TIOCM_CTS,
38817         TIOCM_CAR, TIOCM_RNG, TIOCM_DSR, TIOCM_CD, TIOCM_RI): Remove as
38818         these are already provided in bits/ioctl-types.h
38819
38820 2014-05-16  Roland McGrath  <roland@hack.frob.com>
38821
38822         * sysdeps/unix/sysv/linux/alpha/arch-fork.h: New file.
38823         * sysdeps/unix/sysv/linux/ia64/nptl/fork.c: File removed.
38824
38825         * sysdeps/unix/sysv/linux/not-cancel.h (waitpid_not_cancel):
38826         Use wait4 regardless of [__NR_waitpid].
38827
38828 2014-05-16  Maciej W. Rozycki  <macro@codesourcery.com>
38829
38830         PR libgcc/60166
38831         * sysdeps/arm/soft-fp/sfp-machine.h (_FP_NANFRAC_S, _FP_NANFRAC_D)
38832         (_FP_NANSIGN_Q): Set the quiet bit.
38833
38834 2014-05-16  Joseph Myers  <joseph@codesourcery.com>
38835
38836         * benchtests/Makefile
38837         ($(addprefix $(objpfx)bench-,$(bench-math))): Depend on $(libm),
38838         not $(common-objpfx)math/libm.so.
38839         ($(addprefix $(objpfx)bench-,$(bench-pthread))): Depend on
38840         $(shared-thread-library), not $(common-objpfx)nptl/libpthread.so.
38841         * elf/Makefile ($(objpfx)noload): Depend on $(libdl), not
38842         $(common-objpfx)dlfcn/libdl.so.
38843         ($(objpfx)tst-audit8): Depend on $(libm), not
38844         $(common-objpfx)math/libm.so.
38845         * malloc/Makefile ($(objpfx)libmemusage.so): Depend on $(libdl),
38846         not $(common-objpfx)dlfcn/libdl.so.
38847         * math/Makefile
38848         ($(addprefix $(objpfx),$(filter-out $(tests-static),$(tests)))):
38849         Depend on $(libm), not $(objpfx)libm.so.  Do not condition on
38850         [$(build-shared) = yes].
38851         ($(objpfx)test-fenv-tls): Depend on $(shared-thread-library), not
38852         $(common-objpfx)nptl/libpthread.so.
38853         * misc/Makefile ($(objpfx)tst-tsearch): Depend on $(libm), not
38854         $(common-objpfx)math/libm.so$(libm.so-version) or
38855         $(common-objpfx)math/libm.a depending on [$(build-shared) = yes].
38856         * nptl/Makefile ($(objpfx)tst-unload): Depend on $(libdl), not
38857         $(common-objpfx)dlfcn/libdl.so.
38858         * setjmp/Makefile (link-libm): Remove variable.
38859         ($(objpfx)tst-setjmp-fp): Depend on $(libm), not $(link-libm).
38860         * stdio-common/Makefile (link-libm): Remove variable.
38861         ($(objpfx)tst-printf-round): Depend on $(libm), not $(link-libm).
38862         * stdlib/Makefile (link-libm): Remove variable.
38863         ($(objpfx)bug-getcontext): Depend on $(libm), not $(link-libm).
38864         ($(objpfx)tst-strtod-round): Likewise.
38865         ($(objpfx)tst-tininess): Likewise.
38866         ($(objpfx)tst-strtod-underflow): Likewise.
38867         ($(objpfx)tst-strtod6): Likewise.
38868         ($(objpfx)tst-tls-atexit): Depend on $(shared-thread-library) and
38869         $(libdl), not $(common-objpfx)nptl/libpthread.so and
38870         $(common-objpfx)dlfcn/libdl.so.
38871
38872 2014-05-16  Adhemerval Zanella  <azanella@linux.vnet.ibm.com>
38873
38874         * sysdeps/unix/sysv/linux/powerpc/bits/termios.h [__USE_MISC]: Guard
38875         BSD terminal modes definitions.
38876
38877 2014-05-16  Roland McGrath  <roland@hack.frob.com>
38878
38879         * sysdeps/unix/sysv/linux/arm/arch-fork.h: New file.
38880         * sysdeps/unix/sysv/linux/arm/fork.c: File removed.
38881
38882         * sysdeps/unix/sysv/linux/arch-fork.h: New file.
38883         * sysdeps/unix/sysv/linux/i386/fork.h: Moved ...
38884         * sysdeps/unix/sysv/linux/i386/arch-fork.h: ... here.
38885         Don't do #include_next.
38886         * sysdeps/unix/sysv/linux/x86_64/fork.h: Moved ...
38887         * sysdeps/unix/sysv/linux/x86_64/arch-fork.h: ... here.
38888         Don't do #include_next.
38889         * sysdeps/unix/sysv/linux/mips/arch-fork.h: New file.
38890         * sysdeps/unix/sysv/linux/mips/fork.h: File removed.
38891         * sysdeps/unix/sysv/linux/powerpc/arch-fork.h: New file.
38892         * sysdeps/unix/sysv/linux/powerpc/fork.h: File removed.
38893
38894 2014-05-16  Allan McRae  <allan@archlinux.org>
38895
38896         * po/sv.po: Update Swedish translation from translation project.
38897
38898         * timezone/Makefile ($(objpfx)tzselect): Use correct variable
38899         in sed expression.
38900
38901 2014-05-16  Aurelien Jarno  <aurelien@aurel32.net>
38902
38903         [BZ #16917]
38904         * sysdeps/unix/sysv/linux/ptsname.c (__ptsname_internal): Return
38905         errno if the TIOCGPTN ioctl fails with an error different than
38906         EINVAL.
38907         * login/tst-ptsname.c: New file.
38908         * login/Makefile (tests): Add tst-ptsname.
38909
38910         [BZ #16943]
38911         * sysdeps/unix/sysv/linux/sparc/bits/resource.h: Declare prlimit
38912         and prlimit64.
38913
38914 2014-05-15  Siddhesh Poyarekar  <siddhesh@redhat.com>
38915
38916         [BZ #16849]
38917         * sysdeps/posix/getaddrinfo.c (gaih_inet): Only check for
38918         herrno to return EAI_AGAIN.
38919
38920 2014-05-14  Roland McGrath  <roland@hack.frob.com>
38921
38922         * sysdeps/unix/sysv/linux/i386/nptl/c++-types.data: Moved ...
38923         * sysdeps/unix/sysv/linux/i386/c++-types.data: ... here.
38924         * sysdeps/unix/sysv/linux/i386/nptl/ld.abilist: Moved ...
38925         * sysdeps/unix/sysv/linux/i386/ld.abilist: ... here.
38926         * sysdeps/unix/sysv/linux/i386/nptl/libBrokenLocale.abilist: Moved ...
38927         * sysdeps/unix/sysv/linux/i386/libBrokenLocale.abilist: ... here.
38928         * sysdeps/unix/sysv/linux/i386/nptl/libanl.abilist: Moved ...
38929         * sysdeps/unix/sysv/linux/i386/libanl.abilist: ... here.
38930         * sysdeps/unix/sysv/linux/i386/nptl/libc.abilist: Moved ...
38931         * sysdeps/unix/sysv/linux/i386/libc.abilist: ... here.
38932         * sysdeps/unix/sysv/linux/i386/nptl/libcrypt.abilist: Moved ...
38933         * sysdeps/unix/sysv/linux/i386/libcrypt.abilist: ... here.
38934         * sysdeps/unix/sysv/linux/i386/nptl/libdl.abilist: Moved ...
38935         * sysdeps/unix/sysv/linux/i386/libdl.abilist: ... here.
38936         * sysdeps/unix/sysv/linux/i386/nptl/libm.abilist: Moved ...
38937         * sysdeps/unix/sysv/linux/i386/libm.abilist: ... here.
38938         * sysdeps/unix/sysv/linux/i386/nptl/libnsl.abilist: Moved ...
38939         * sysdeps/unix/sysv/linux/i386/libnsl.abilist: ... here.
38940         * sysdeps/unix/sysv/linux/i386/nptl/libpthread.abilist: Moved ...
38941         * sysdeps/unix/sysv/linux/i386/libpthread.abilist: ... here.
38942         * sysdeps/unix/sysv/linux/i386/nptl/libresolv.abilist: Moved ...
38943         * sysdeps/unix/sysv/linux/i386/libresolv.abilist: ... here.
38944         * sysdeps/unix/sysv/linux/i386/nptl/librt.abilist: Moved ...
38945         * sysdeps/unix/sysv/linux/i386/librt.abilist: ... here.
38946         * sysdeps/unix/sysv/linux/i386/nptl/libthread_db.abilist: Moved ...
38947         * sysdeps/unix/sysv/linux/i386/libthread_db.abilist: ... here.
38948         * sysdeps/unix/sysv/linux/i386/nptl/libutil.abilist: Moved ...
38949         * sysdeps/unix/sysv/linux/i386/libutil.abilist: ... here.
38950         * sysdeps/unix/sysv/linux/i386/nptl/localplt.data: Moved ...
38951         * sysdeps/unix/sysv/linux/i386/localplt.data: ... here.
38952         * sysdeps/unix/sysv/linux/x86_64/64/nptl/c++-types.data: Moved ...
38953         * sysdeps/unix/sysv/linux/x86_64/64/c++-types.data: ... here.
38954         * sysdeps/unix/sysv/linux/x86_64/64/nptl/ld.abilist: Moved ...
38955         * sysdeps/unix/sysv/linux/x86_64/64/ld.abilist: ... here.
38956         * sysdeps/unix/sysv/linux/x86_64/64/nptl/libBrokenLocale.abilist:
38957         Moved ...
38958         * sysdeps/unix/sysv/linux/x86_64/64/libBrokenLocale.abilist: ... here.
38959         * sysdeps/unix/sysv/linux/x86_64/64/nptl/libanl.abilist: Moved ...
38960         * sysdeps/unix/sysv/linux/x86_64/64/libanl.abilist: ... here.
38961         * sysdeps/unix/sysv/linux/x86_64/64/nptl/libc.abilist: Moved ...
38962         * sysdeps/unix/sysv/linux/x86_64/64/libc.abilist: ... here.
38963         * sysdeps/unix/sysv/linux/x86_64/64/nptl/libcrypt.abilist: Moved ...
38964         * sysdeps/unix/sysv/linux/x86_64/64/libcrypt.abilist: ... here.
38965         * sysdeps/unix/sysv/linux/x86_64/64/nptl/libdl.abilist: Moved ...
38966         * sysdeps/unix/sysv/linux/x86_64/64/libdl.abilist: ... here.
38967         * sysdeps/unix/sysv/linux/x86_64/64/nptl/libm.abilist: Moved ...
38968         * sysdeps/unix/sysv/linux/x86_64/64/libm.abilist: ... here.
38969         * sysdeps/unix/sysv/linux/x86_64/64/nptl/libnsl.abilist: Moved ...
38970         * sysdeps/unix/sysv/linux/x86_64/64/libnsl.abilist: ... here.
38971         * sysdeps/unix/sysv/linux/x86_64/64/nptl/libpthread.abilist: Moved ...
38972         * sysdeps/unix/sysv/linux/x86_64/64/libpthread.abilist: ... here.
38973         * sysdeps/unix/sysv/linux/x86_64/64/nptl/libresolv.abilist: Moved ...
38974         * sysdeps/unix/sysv/linux/x86_64/64/libresolv.abilist: ... here.
38975         * sysdeps/unix/sysv/linux/x86_64/64/nptl/librt.abilist: Moved ...
38976         * sysdeps/unix/sysv/linux/x86_64/64/librt.abilist: ... here.
38977         * sysdeps/unix/sysv/linux/x86_64/64/nptl/libthread_db.abilist: Moved ...
38978         * sysdeps/unix/sysv/linux/x86_64/64/libthread_db.abilist: ... here.
38979         * sysdeps/unix/sysv/linux/x86_64/64/nptl/libutil.abilist: Moved ...
38980         * sysdeps/unix/sysv/linux/x86_64/64/libutil.abilist: ... here.
38981         * sysdeps/unix/sysv/linux/x86_64/x32/nptl/c++-types.data: Moved ...
38982         * sysdeps/unix/sysv/linux/x86_64/x32/c++-types.data: ... here.
38983         * sysdeps/unix/sysv/linux/x86_64/x32/nptl/ld.abilist: Moved ...
38984         * sysdeps/unix/sysv/linux/x86_64/x32/ld.abilist: ... here.
38985         * sysdeps/unix/sysv/linux/x86_64/x32/nptl/libBrokenLocale.abilist:
38986         Moved ...
38987         * sysdeps/unix/sysv/linux/x86_64/x32/libBrokenLocale.abilist: ... here.
38988         * sysdeps/unix/sysv/linux/x86_64/x32/nptl/libanl.abilist: Moved ...
38989         * sysdeps/unix/sysv/linux/x86_64/x32/libanl.abilist: ... here.
38990         * sysdeps/unix/sysv/linux/x86_64/x32/nptl/libc.abilist: Moved ...
38991         * sysdeps/unix/sysv/linux/x86_64/x32/libc.abilist: ... here.
38992         * sysdeps/unix/sysv/linux/x86_64/x32/nptl/libcrypt.abilist: Moved ...
38993         * sysdeps/unix/sysv/linux/x86_64/x32/libcrypt.abilist: ... here.
38994         * sysdeps/unix/sysv/linux/x86_64/x32/nptl/libdl.abilist: Moved ...
38995         * sysdeps/unix/sysv/linux/x86_64/x32/libdl.abilist: ... here.
38996         * sysdeps/unix/sysv/linux/x86_64/x32/nptl/libm.abilist: Moved ...
38997         * sysdeps/unix/sysv/linux/x86_64/x32/libm.abilist: ... here.
38998         * sysdeps/unix/sysv/linux/x86_64/x32/nptl/libnsl.abilist: Moved ...
38999         * sysdeps/unix/sysv/linux/x86_64/x32/libnsl.abilist: ... here.
39000         * sysdeps/unix/sysv/linux/x86_64/x32/nptl/libpthread.abilist: Moved ...
39001         * sysdeps/unix/sysv/linux/x86_64/x32/libpthread.abilist: ... here.
39002         * sysdeps/unix/sysv/linux/x86_64/x32/nptl/libresolv.abilist: Moved ...
39003         * sysdeps/unix/sysv/linux/x86_64/x32/libresolv.abilist: ... here.
39004         * sysdeps/unix/sysv/linux/x86_64/x32/nptl/librt.abilist: Moved ...
39005         * sysdeps/unix/sysv/linux/x86_64/x32/librt.abilist: ... here.
39006         * sysdeps/unix/sysv/linux/x86_64/x32/nptl/libthread_db.abilist:
39007         Moved ...
39008         * sysdeps/unix/sysv/linux/x86_64/x32/libthread_db.abilist: ... here.
39009         * sysdeps/unix/sysv/linux/x86_64/x32/nptl/libutil.abilist: Moved ...
39010         * sysdeps/unix/sysv/linux/x86_64/x32/libutil.abilist: ... here.
39011
39012         * nptl/sysdeps/unix/sysv/linux/x86/Makefile: File removed.
39013         * sysdeps/unix/sysv/linux/x86/Makefile [$(subdir) = nptl]
39014         (libpthread-sysdep_routines): Add elision-related stuff here instead.
39015         * nptl/sysdeps/unix/sysv/linux/x86/elision-conf.c: Moved ...
39016         * sysdeps/unix/sysv/linux/x86/elision-conf.c: ... here.
39017         * nptl/sysdeps/unix/sysv/linux/x86/elision-conf.h: Moved ...
39018         * sysdeps/unix/sysv/linux/x86/elision-conf.h: ... here.
39019         * nptl/sysdeps/unix/sysv/linux/x86/elision-lock.c: Moved ...
39020         * sysdeps/unix/sysv/linux/x86/elision-lock.c: ... here.
39021         * nptl/sysdeps/unix/sysv/linux/x86/elision-timed.c: Moved ...
39022         * sysdeps/unix/sysv/linux/x86/elision-timed.c: ... here.
39023         * nptl/sysdeps/unix/sysv/linux/x86/elision-trylock.c: Moved ...
39024         * sysdeps/unix/sysv/linux/x86/elision-trylock.c: ... here.
39025         * nptl/sysdeps/unix/sysv/linux/x86/elision-unlock.c: Moved ...
39026         * sysdeps/unix/sysv/linux/x86/elision-unlock.c: ... here.
39027         * nptl/sysdeps/unix/sysv/linux/x86/force-elision.h: Moved ...
39028         * sysdeps/unix/sysv/linux/x86/force-elision.h: ... here.
39029         * nptl/sysdeps/unix/sysv/linux/x86/hle.h: Moved ...
39030         * sysdeps/unix/sysv/linux/x86/hle.h: ... here.
39031         * nptl/sysdeps/unix/sysv/linux/x86/init-arch.c: Moved ...
39032         * sysdeps/unix/sysv/linux/x86/init-arch.c: ... here.
39033         * nptl/sysdeps/unix/sysv/linux/x86/init-arch.h: Moved ...
39034         * sysdeps/unix/sysv/linux/x86/init-arch.h: ... here.
39035         * nptl/sysdeps/unix/sysv/linux/x86/pthread_mutex_cond_lock.c: Moved ...
39036         * sysdeps/unix/sysv/linux/x86/pthread_mutex_cond_lock.c: ... here.
39037         * nptl/sysdeps/unix/sysv/linux/x86/pthread_mutex_lock.c: Moved ...
39038         * sysdeps/unix/sysv/linux/x86/pthread_mutex_lock.c: ... here.
39039         * nptl/sysdeps/unix/sysv/linux/x86/pthread_mutex_timedlock.c: Moved ...
39040         * sysdeps/unix/sysv/linux/x86/pthread_mutex_timedlock.c: ... here.
39041         * nptl/sysdeps/unix/sysv/linux/x86/pthread_mutex_trylock.c: Moved ...
39042         * sysdeps/unix/sysv/linux/x86/pthread_mutex_trylock.c: ... here.
39043
39044         * sysdeps/unix/sysv/linux/mips/fork.h: New file.
39045         * sysdeps/unix/sysv/linux/mips/nptl/fork.c: File removed.
39046
39047         * nptl/sysdeps/unix/sysv/linux/i386/Implies: File removed.
39048         * nptl/sysdeps/unix/sysv/linux/i386/i786/Implies: Moved ...
39049         * sysdeps/unix/sysv/linux/i386/i786/Implies: ... here.
39050         * nptl/sysdeps/unix/sysv/linux/i386/i586/sem_wait.S: Moved ...
39051         * sysdeps/unix/sysv/linux/i386/i586/sem_wait.S: ... here.
39052         * nptl/sysdeps/unix/sysv/linux/i386/i586/pthread_rwlock_wrlock.S:
39053         Moved ...
39054         * sysdeps/unix/sysv/linux/i386/i586/pthread_rwlock_wrlock.S: ... here.
39055         * nptl/sysdeps/unix/sysv/linux/i386/i586/pthread_cond_timedwait.S:
39056         Moved ...
39057         * sysdeps/unix/sysv/linux/i386/i586/pthread_cond_timedwait.S: ... here.
39058         * nptl/sysdeps/unix/sysv/linux/i386/i586/pthread_barrier_wait.S:
39059         Moved ...
39060         * sysdeps/unix/sysv/linux/i386/i586/pthread_barrier_wait.S: ... here.
39061         * nptl/sysdeps/unix/sysv/linux/i386/i586/pthread_rwlock_unlock.S:
39062         Moved ...
39063         * sysdeps/unix/sysv/linux/i386/i586/pthread_rwlock_unlock.S: ... here.
39064         * nptl/sysdeps/unix/sysv/linux/i386/i586/sem_timedwait.S: Moved ...
39065         * sysdeps/unix/sysv/linux/i386/i586/sem_timedwait.S: ... here.
39066         * nptl/sysdeps/unix/sysv/linux/i386/i586/pthread_cond_signal.S:
39067         Moved ...
39068         * sysdeps/unix/sysv/linux/i386/i586/pthread_cond_signal.S: ... here.
39069         * nptl/sysdeps/unix/sysv/linux/i386/i586/libc-lowlevellock.S: Moved ...
39070         * sysdeps/unix/sysv/linux/i386/i586/libc-lowlevellock.S: ... here.
39071         * nptl/sysdeps/unix/sysv/linux/i386/i586/pthread_cond_wait.S: Moved ...
39072         * sysdeps/unix/sysv/linux/i386/i586/pthread_cond_wait.S: ... here.
39073         * nptl/sysdeps/unix/sysv/linux/i386/i586/lowlevelrobustlock.S: Moved ...
39074         * sysdeps/unix/sysv/linux/i386/i586/lowlevelrobustlock.S: ... here.
39075         * nptl/sysdeps/unix/sysv/linux/i386/i586/pthread_cond_broadcast.S:
39076         Moved ...
39077         * sysdeps/unix/sysv/linux/i386/i586/pthread_cond_broadcast.S: ... here.
39078         * nptl/sysdeps/unix/sysv/linux/i386/i586/pthread_rwlock_timedrdlock.S:
39079         Moved ...
39080         * sysdeps/unix/sysv/linux/i386/i586/pthread_rwlock_timedrdlock.S:
39081         ... here.
39082         * nptl/sysdeps/unix/sysv/linux/i386/i586/sem_trywait.S: Moved ...
39083         * sysdeps/unix/sysv/linux/i386/i586/sem_trywait.S: ... here.
39084         * nptl/sysdeps/unix/sysv/linux/i386/i586/sem_post.S: Moved ...
39085         * sysdeps/unix/sysv/linux/i386/i586/sem_post.S: ... here.
39086         * nptl/sysdeps/unix/sysv/linux/i386/i586/pthread_rwlock_timedwrlock.S:
39087         Moved ...
39088         * sysdeps/unix/sysv/linux/i386/i586/pthread_rwlock_timedwrlock.S:
39089         ... here.
39090         * nptl/sysdeps/unix/sysv/linux/i386/i586/pthread_rwlock_rdlock.S:
39091         Moved ...
39092         * sysdeps/unix/sysv/linux/i386/i586/pthread_rwlock_rdlock.S: ... here.
39093         * nptl/sysdeps/unix/sysv/linux/i386/i586/lowlevellock.S: Moved ...
39094         * sysdeps/unix/sysv/linux/i386/i586/lowlevellock.S: ... here.
39095         * nptl/sysdeps/unix/sysv/linux/i386/i486/sem_wait.S: Moved ...
39096         * sysdeps/unix/sysv/linux/i386/i486/sem_wait.S: ... here.
39097         * nptl/sysdeps/unix/sysv/linux/i386/i486/pthread_rwlock_wrlock.S:
39098         Moved ...
39099         * sysdeps/unix/sysv/linux/i386/i486/pthread_rwlock_wrlock.S: ... here.
39100         * nptl/sysdeps/unix/sysv/linux/i386/i486/pthread_cond_timedwait.S:
39101         Moved ...
39102         * sysdeps/unix/sysv/linux/i386/i486/pthread_cond_timedwait.S: ... here.
39103         * nptl/sysdeps/unix/sysv/linux/i386/i486/pthread_barrier_wait.S:
39104         Moved ...
39105         * sysdeps/unix/sysv/linux/i386/i486/pthread_barrier_wait.S: ... here.
39106         * nptl/sysdeps/unix/sysv/linux/i386/i486/pthread_rwlock_unlock.S:
39107         Moved ...
39108         * sysdeps/unix/sysv/linux/i386/i486/pthread_rwlock_unlock.S: ... here.
39109         * nptl/sysdeps/unix/sysv/linux/i386/i486/sem_timedwait.S: Moved ...
39110         * sysdeps/unix/sysv/linux/i386/i486/sem_timedwait.S: ... here.
39111         * nptl/sysdeps/unix/sysv/linux/i386/i486/pthread_cond_signal.S:
39112         Moved ...
39113         * sysdeps/unix/sysv/linux/i386/i486/pthread_cond_signal.S: ... here.
39114         * nptl/sysdeps/unix/sysv/linux/i386/i486/libc-lowlevellock.S: Moved ...
39115         * sysdeps/unix/sysv/linux/i386/i486/libc-lowlevellock.S: ... here.
39116         * nptl/sysdeps/unix/sysv/linux/i386/i486/pthread_cond_wait.S: Moved ...
39117         * sysdeps/unix/sysv/linux/i386/i486/pthread_cond_wait.S: ... here.
39118         * nptl/sysdeps/unix/sysv/linux/i386/i486/lowlevelrobustlock.S: Moved ...
39119         * sysdeps/unix/sysv/linux/i386/i486/lowlevelrobustlock.S: ... here.
39120         * nptl/sysdeps/unix/sysv/linux/i386/i486/pthread_cond_broadcast.S:
39121         Moved ...
39122         * sysdeps/unix/sysv/linux/i386/i486/pthread_cond_broadcast.S: ... here.
39123         * nptl/sysdeps/unix/sysv/linux/i386/i486/pthread_rwlock_timedrdlock.S:
39124         Moved ...
39125         * sysdeps/unix/sysv/linux/i386/i486/pthread_rwlock_timedrdlock.S:
39126         ... here.
39127         * nptl/sysdeps/unix/sysv/linux/i386/i486/sem_trywait.S: Moved ...
39128         * sysdeps/unix/sysv/linux/i386/i486/sem_trywait.S: ... here.
39129         * nptl/sysdeps/unix/sysv/linux/i386/i486/sem_post.S: Moved ...
39130         * sysdeps/unix/sysv/linux/i386/i486/sem_post.S: ... here.
39131         * nptl/sysdeps/unix/sysv/linux/i386/i486/pthread_rwlock_timedwrlock.S:
39132         Moved ...
39133         * sysdeps/unix/sysv/linux/i386/i486/pthread_rwlock_timedwrlock.S:
39134         ... here.
39135         * nptl/sysdeps/unix/sysv/linux/i386/i486/pthread_rwlock_rdlock.S:
39136         Moved ...
39137         * sysdeps/unix/sysv/linux/i386/i486/pthread_rwlock_rdlock.S: ... here.
39138         * nptl/sysdeps/unix/sysv/linux/i386/i486/lowlevellock.S: Moved ...
39139         * sysdeps/unix/sysv/linux/i386/i486/lowlevellock.S: ... here.
39140         * nptl/sysdeps/unix/sysv/linux/i386/dl-sysdep.h: Moved ...
39141         * sysdeps/unix/sysv/linux/i386/dl-sysdep.h: ... here.
39142         * nptl/sysdeps/unix/sysv/linux/i386/lowlevellock.h: Moved ...
39143         * sysdeps/unix/sysv/linux/i386/lowlevellock.h: ... here.
39144         * nptl/sysdeps/unix/sysv/linux/i386/i686/sem_wait.S: Moved ...
39145         * sysdeps/unix/sysv/linux/i386/i686/sem_wait.S: ... here.
39146         * nptl/sysdeps/unix/sysv/linux/i386/i686/pthread_rwlock_wrlock.S:
39147         Moved ...
39148         * sysdeps/unix/sysv/linux/i386/i686/pthread_rwlock_wrlock.S: ... here.
39149         * nptl/sysdeps/unix/sysv/linux/i386/i686/pthread_cond_timedwait.S:
39150         Moved ...
39151         * sysdeps/unix/sysv/linux/i386/i686/pthread_cond_timedwait.S: ... here.
39152         * nptl/sysdeps/unix/sysv/linux/i386/i686/pthread_barrier_wait.S:
39153         Moved ...
39154         * sysdeps/unix/sysv/linux/i386/i686/pthread_barrier_wait.S: ... here.
39155         * nptl/sysdeps/unix/sysv/linux/i386/i686/pthread_rwlock_unlock.S:
39156         Moved ...
39157         * sysdeps/unix/sysv/linux/i386/i686/pthread_rwlock_unlock.S: ... here.
39158         * nptl/sysdeps/unix/sysv/linux/i386/i686/sem_timedwait.S: Moved ...
39159         * sysdeps/unix/sysv/linux/i386/i686/sem_timedwait.S: ... here.
39160         * nptl/sysdeps/unix/sysv/linux/i386/i686/dl-sysdep.h: Moved ...
39161         * sysdeps/unix/sysv/linux/i386/i686/dl-sysdep.h: ... here.
39162         * nptl/sysdeps/unix/sysv/linux/i386/i686/pthread_cond_signal.S:
39163         Moved ...
39164         * sysdeps/unix/sysv/linux/i386/i686/pthread_cond_signal.S: ... here.
39165         * nptl/sysdeps/unix/sysv/linux/i386/i686/libc-lowlevellock.S: Moved ...
39166         * sysdeps/unix/sysv/linux/i386/i686/libc-lowlevellock.S: ... here.
39167         * nptl/sysdeps/unix/sysv/linux/i386/i686/pthread_cond_wait.S: Moved ...
39168         * sysdeps/unix/sysv/linux/i386/i686/pthread_cond_wait.S: ... here.
39169         * nptl/sysdeps/unix/sysv/linux/i386/i686/lowlevelrobustlock.S: Moved ...
39170         * sysdeps/unix/sysv/linux/i386/i686/lowlevelrobustlock.S: ... here.
39171         * nptl/sysdeps/unix/sysv/linux/i386/i686/pthread_cond_broadcast.S:
39172         Moved ...
39173         * sysdeps/unix/sysv/linux/i386/i686/pthread_cond_broadcast.S: ... here.
39174         * nptl/sysdeps/unix/sysv/linux/i386/i686/pthread_rwlock_timedrdlock.S:
39175         Moved ...
39176         * sysdeps/unix/sysv/linux/i386/i686/pthread_rwlock_timedrdlock.S:
39177         ... here.
39178         * nptl/sysdeps/unix/sysv/linux/i386/i686/sem_trywait.S: Moved ...
39179         * sysdeps/unix/sysv/linux/i386/i686/sem_trywait.S: ... here.
39180         * nptl/sysdeps/unix/sysv/linux/i386/i686/sem_post.S: Moved ...
39181         * sysdeps/unix/sysv/linux/i386/i686/sem_post.S: ... here.
39182         * nptl/sysdeps/unix/sysv/linux/i386/i686/pthread_rwlock_timedwrlock.S:
39183         Moved ...
39184         * sysdeps/unix/sysv/linux/i386/i686/pthread_rwlock_timedwrlock.S:
39185         ... here.
39186         * nptl/sysdeps/unix/sysv/linux/i386/i686/pthread_rwlock_rdlock.S:
39187         Moved ...
39188         * sysdeps/unix/sysv/linux/i386/i686/pthread_rwlock_rdlock.S: ... here.
39189         * nptl/sysdeps/unix/sysv/linux/i386/i686/lowlevellock.S: Moved ...
39190         * sysdeps/unix/sysv/linux/i386/i686/lowlevellock.S: ... here.
39191         * nptl/sysdeps/unix/sysv/linux/i386/sysdep-cancel.h: Moved ...
39192         * sysdeps/unix/sysv/linux/i386/sysdep-cancel.h: ... here.
39193         * nptl/sysdeps/unix/sysv/linux/i386/smp.h: Moved ...
39194         * sysdeps/unix/sysv/linux/i386/smp.h: ... here.
39195         * nptl/sysdeps/unix/sysv/linux/i386/pthread_once.S: Moved ...
39196         * sysdeps/unix/sysv/linux/i386/pthread_once.S: ... here.
39197         * nptl/sysdeps/unix/sysv/linux/i386/createthread.c: Moved ...
39198         * sysdeps/unix/sysv/linux/i386/createthread.c: ... here.
39199
39200         * sysdeps/unix/sysv/linux/powerpc/fork.h: New file.
39201         * nptl/sysdeps/unix/sysv/linux/powerpc/fork.c: File removed.
39202
39203         * nptl/sysdeps/unix/sysv/linux/i386/pthread_spin_init.c: File removed.
39204         * nptl/sysdeps/unix/sysv/linux/i386/pthread_spin_unlock.S: File removed.
39205
39206         * nptl/sysdeps/unix/sysv/linux/x86_64/Implies: File removed.
39207         * nptl/sysdeps/unix/sysv/linux/x86_64/cancellation.S: Moved ...
39208         * sysdeps/unix/sysv/linux/x86_64/cancellation.S: ... here.
39209         * nptl/sysdeps/unix/sysv/linux/x86_64/libc-cancellation.S: Moved ...
39210         * sysdeps/unix/sysv/linux/x86_64/libc-cancellation.S: ... here.
39211         * nptl/sysdeps/unix/sysv/linux/x86_64/libc-lowlevellock.S: Moved ...
39212         * sysdeps/unix/sysv/linux/x86_64/libc-lowlevellock.S: ... here.
39213         * nptl/sysdeps/unix/sysv/linux/x86_64/librt-cancellation.S: Moved ...
39214         * sysdeps/unix/sysv/linux/x86_64/librt-cancellation.S: ... here.
39215         * nptl/sysdeps/unix/sysv/linux/x86_64/lowlevellock.h: Moved ...
39216         * sysdeps/unix/sysv/linux/x86_64/lowlevellock.h: ... here.
39217         * nptl/sysdeps/unix/sysv/linux/x86_64/lowlevellock.S: Moved ...
39218         * sysdeps/unix/sysv/linux/x86_64/lowlevellock.S: ... here.
39219         * nptl/sysdeps/unix/sysv/linux/x86_64/lowlevelrobustlock.S: Moved ...
39220         * sysdeps/unix/sysv/linux/x86_64/lowlevelrobustlock.S: ... here.
39221         * nptl/sysdeps/unix/sysv/linux/x86_64/pthread_barrier_wait.S: Moved ...
39222         * sysdeps/unix/sysv/linux/x86_64/pthread_barrier_wait.S: ... here.
39223         * nptl/sysdeps/unix/sysv/linux/x86_64/pthread_cond_broadcast.S:
39224         Moved ...
39225         * sysdeps/unix/sysv/linux/x86_64/pthread_cond_broadcast.S: ... here.
39226         * nptl/sysdeps/unix/sysv/linux/x86_64/pthread_cond_signal.S: Moved ...
39227         * sysdeps/unix/sysv/linux/x86_64/pthread_cond_signal.S: ... here.
39228         * nptl/sysdeps/unix/sysv/linux/x86_64/pthread_cond_timedwait.S:
39229         Moved ...
39230         * sysdeps/unix/sysv/linux/x86_64/pthread_cond_timedwait.S: ... here.
39231         * nptl/sysdeps/unix/sysv/linux/x86_64/pthread_cond_wait.S: Moved ...
39232         * sysdeps/unix/sysv/linux/x86_64/pthread_cond_wait.S: ... here.
39233         * nptl/sysdeps/unix/sysv/linux/x86_64/pthread_once.S: Moved ...
39234         * sysdeps/unix/sysv/linux/x86_64/pthread_once.S: ... here.
39235         * nptl/sysdeps/unix/sysv/linux/x86_64/pthread_rwlock_rdlock.S: Moved ...
39236         * sysdeps/unix/sysv/linux/x86_64/pthread_rwlock_rdlock.S: ... here.
39237         * nptl/sysdeps/unix/sysv/linux/x86_64/pthread_rwlock_timedrdlock.S:
39238         Moved ...
39239         * sysdeps/unix/sysv/linux/x86_64/pthread_rwlock_timedrdlock.S: ... here.
39240         * nptl/sysdeps/unix/sysv/linux/x86_64/pthread_rwlock_timedwrlock.S:
39241         Moved ...
39242         * sysdeps/unix/sysv/linux/x86_64/pthread_rwlock_timedwrlock.S: ... here.
39243         * nptl/sysdeps/unix/sysv/linux/x86_64/pthread_rwlock_unlock.S: Moved ...
39244         * sysdeps/unix/sysv/linux/x86_64/pthread_rwlock_unlock.S: ... here.
39245         * nptl/sysdeps/unix/sysv/linux/x86_64/pthread_rwlock_wrlock.S: Moved ...
39246         * sysdeps/unix/sysv/linux/x86_64/pthread_rwlock_wrlock.S: ... here.
39247         * nptl/sysdeps/unix/sysv/linux/x86_64/pthread_setaffinity.c: Moved ...
39248         * sysdeps/unix/sysv/linux/x86_64/pthread_setaffinity.c: ... here.
39249         * nptl/sysdeps/unix/sysv/linux/x86_64/sem_post.S: Moved ...
39250         * sysdeps/unix/sysv/linux/x86_64/sem_post.S: ... here.
39251         * nptl/sysdeps/unix/sysv/linux/x86_64/sem_timedwait.S: Moved ...
39252         * sysdeps/unix/sysv/linux/x86_64/sem_timedwait.S: ... here.
39253         * nptl/sysdeps/unix/sysv/linux/x86_64/sem_trywait.S: Moved ...
39254         * sysdeps/unix/sysv/linux/x86_64/sem_trywait.S: ... here.
39255         * nptl/sysdeps/unix/sysv/linux/x86_64/sem_wait.S: Moved ...
39256         * sysdeps/unix/sysv/linux/x86_64/sem_wait.S: ... here.
39257         * nptl/sysdeps/unix/sysv/linux/x86_64/sysdep-cancel.h: Moved ...
39258         * sysdeps/unix/sysv/linux/x86_64/sysdep-cancel.h: ... here.
39259
39260         * nptl/sysdeps/unix/sysv/linux/fork.c: Use <> for fork.h #include.
39261         * nptl/sysdeps/unix/sysv/linux/x86_64/fork.c: File removed.
39262         * sysdeps/unix/sysv/linux/x86_64/fork.h: New file.
39263         * nptl/sysdeps/unix/sysv/linux/i386/fork.c: File removed.
39264         * sysdeps/unix/sysv/linux/i386/fork.h: New file.
39265
39266         * nptl/sysdeps/unix/sysv/linux/i386/not-cancel.h: Moved ...
39267         * sysdeps/unix/sysv/linux/not-cancel.h: ... here.
39268         * nptl/sysdeps/unix/sysv/linux/sparc/not-cancel.h: File removed.
39269         * nptl/sysdeps/unix/sysv/linux/sh/not-cancel.h: File removed.
39270         * nptl/sysdeps/unix/sysv/linux/powerpc/not-cancel.h: File removed.
39271         * nptl/sysdeps/unix/sysv/linux/x86_64/not-cancel.h: File removed.
39272         * nptl/sysdeps/unix/sysv/linux/s390/not-cancel.h: File removed.
39273         * sysdeps/unix/sysv/linux/generic/not-cancel.h: File removed.
39274         * sysdeps/unix/sysv/linux/generic/nptl/not-cancel.h: File removed.
39275         * sysdeps/unix/sysv/linux/m68k/nptl/not-cancel.h: File removed.
39276
39277         * nptl/sysdeps/unix/sysv/linux/x86_64/pthread_spin_init.c: File removed.
39278         * nptl/sysdeps/unix/sysv/linux/x86_64/pthread_spin_unlock.S: Likewise.
39279
39280         * nptl/sysdeps/unix/sysv/linux/x86_64/compat-timer.h: Moved ...
39281         * sysdeps/unix/sysv/linux/x86_64/compat-timer.h: ... here.
39282         * nptl/sysdeps/unix/sysv/linux/x86_64/Versions: Remove, merge into ...
39283         * sysdeps/unix/sysv/linux/x86_64/Versions: ... here.
39284         * nptl/sysdeps/unix/sysv/linux/x86_64/timer_create.c: Moved ...
39285         * sysdeps/unix/sysv/linux/x86_64/timer_create.c: here.
39286         * nptl/sysdeps/unix/sysv/linux/x86_64/timer_delete.c: Moved ...
39287         * sysdeps/unix/sysv/linux/x86_64/timer_delete.c: ... here
39288         * nptl/sysdeps/unix/sysv/linux/x86_64/timer_getoverr.c: Moved ...
39289         * sysdeps/unix/sysv/linux/x86_64/timer_getoverr.c: ... here
39290         * nptl/sysdeps/unix/sysv/linux/x86_64/timer_gettime.c: Moved ...
39291         * sysdeps/unix/sysv/linux/x86_64/timer_gettime.c: ... here
39292         * nptl/sysdeps/unix/sysv/linux/x86_64/timer_settime.c: Moved ...
39293         * sysdeps/unix/sysv/linux/x86_64/timer_settime.c: ... here
39294         * nptl/sysdeps/unix/sysv/linux/powerpc/powerpc64/timer_create.c:
39295         Update #include.
39296         * nptl/sysdeps/unix/sysv/linux/powerpc/powerpc64/timer_delete.c:
39297         Likewise.
39298         * nptl/sysdeps/unix/sysv/linux/powerpc/powerpc64/timer_getoverr.c:
39299         Likewise.
39300         * nptl/sysdeps/unix/sysv/linux/powerpc/powerpc64/timer_gettime.c:
39301         Likewise.
39302         * nptl/sysdeps/unix/sysv/linux/powerpc/powerpc64/timer_settime.c:
39303         Likewise.
39304         * nptl/sysdeps/unix/sysv/linux/sparc/sparc64/timer_create.c:
39305         Likewise.
39306         * nptl/sysdeps/unix/sysv/linux/sparc/sparc64/timer_delete.c:
39307         Likewise.
39308         * nptl/sysdeps/unix/sysv/linux/sparc/sparc64/timer_getoverr.c:
39309         Likewise.
39310         * nptl/sysdeps/unix/sysv/linux/sparc/sparc64/timer_gettime.c:
39311         Likewise.
39312         * nptl/sysdeps/unix/sysv/linux/sparc/sparc64/timer_settime.c:
39313         Likewise.
39314         * nptl/sysdeps/unix/sysv/linux/s390/s390-64/timer_create.c: Likewise.
39315         * nptl/sysdeps/unix/sysv/linux/s390/s390-64/timer_delete.c: Likewise.
39316         * nptl/sysdeps/unix/sysv/linux/s390/s390-64/timer_getoverr.c: Likewise.
39317         * nptl/sysdeps/unix/sysv/linux/s390/s390-64/timer_gettime.c: Likewise.
39318         * nptl/sysdeps/unix/sysv/linux/s390/s390-64/timer_settime.c: Likewise.
39319         * sysdeps/unix/sysv/linux/alpha/nptl/timer_create.c: Likewise.
39320         * sysdeps/unix/sysv/linux/alpha/nptl/timer_delete.c: Likewise.
39321         * sysdeps/unix/sysv/linux/alpha/nptl/timer_getoverr.c: Likewise.
39322         * sysdeps/unix/sysv/linux/alpha/nptl/timer_gettime.c: Likewise.
39323         * sysdeps/unix/sysv/linux/alpha/nptl/timer_settime.c: Likewise.
39324         * sysdeps/unix/sysv/linux/ia64/nptl/timer_create.c: Likewise.
39325         * sysdeps/unix/sysv/linux/ia64/nptl/timer_delete.c: Likewise.
39326         * sysdeps/unix/sysv/linux/ia64/nptl/timer_getoverr.c: Likewise.
39327         * sysdeps/unix/sysv/linux/ia64/nptl/timer_gettime.c:  Likewise.
39328         * sysdeps/unix/sysv/linux/ia64/nptl/timer_settime.c:  Likewise.
39329
39330         * sysdeps/unix/sysv/linux/x86_64/clone.S: Deconditionalize the code
39331         that was previously under [RESET_PID].
39332         * sysdeps/unix/sysv/linux/i386/clone.S: Likewise.
39333         * nptl/sysdeps/unix/sysv/linux/x86_64/clone.S: File removed.
39334         * nptl/sysdeps/unix/sysv/linux/i386/clone.S: File removed.
39335
39336         * sysdeps/i386/nptl/Implies: New file.
39337         * sysdeps/x86_64/nptl/Implies: New file.
39338         * nptl/sysdeps/unix/sysv/linux/x86/bits/pthreadtypes.h: Moved ...
39339         * sysdeps/x86/nptl/bits/pthreadtypes.h: ... here.
39340         * nptl/sysdeps/unix/sysv/linux/x86/bits/semaphore.h: Moved ...
39341         * sysdeps/x86/nptl/bits/semaphore.h: ... here.
39342
39343         * sysdeps/unix/sysv/linux/i386/vfork.S: Include <tcb-offsets.h>.
39344         (__vfork): Incorporate save/restore of PID from nptl/vfork.S here.
39345         (__libc_vfork): New strong alias.
39346         * nptl/sysdeps/unix/sysv/linux/i386/vfork.S: File removed.
39347         * nptl/sysdeps/unix/sysv/linux/i386/pt-vfork.S: File removed.
39348
39349         * sysdeps/unix/sysv/linux/x86_64/vfork.S: Include <tcb-offsets.h>.
39350         (__vfork): Incorporate save/restore of PID from nptl/vfork.S here.
39351         (__libc_vfork): New strong alias.
39352         * nptl/sysdeps/unix/sysv/linux/x86_64/vfork.S: File removed.
39353         * nptl/sysdeps/unix/sysv/linux/x86_64/pt-vfork.S: File removed.
39354
39355         * sysdeps/unix/sysv/linux/arm/vfork.S: Include <tcb-offsets.h>.
39356         (__vfork): Incorporate save/restore of PID from nptl/vfork.S here.
39357         (__libc_vfork): New strong alias.
39358         * sysdeps/unix/sysv/linux/arm/nptl/vfork.S: File removed.
39359         * sysdeps/unix/sysv/linux/arm/nptl/pt-vfork.S: File removed.
39360         * nptl/pt-vfork.c: New file.
39361         * nptl/Versions (libc: GLIBC_PRIVATE): Add __libc_vfork.
39362         (libpthread: GLIBC_2.20): New version set (empty).
39363
39364 2014-05-14  Will Newton  <will.newton@linaro.org>
39365
39366         * stdlib/gmp-impl.h: Test USE_STACK_ALLOC #ifdef
39367         rather than #if.
39368
39369 2014-05-14  Joseph Myers  <joseph@codesourcery.com>
39370
39371         [BZ #16564]
39372         * sysdeps/i386/fpu/s_log1pl.S (__log1pl): Do not add 1 to positive
39373         arguments with exponent 65 or above.
39374         * sysdeps/ieee754/ldbl-128/s_log1pl.c (__log1pl): Do not add 1 to
39375         arguments 0x1p113L or above.
39376         * sysdeps/ieee754/ldbl-128ibm/s_log1pl.c (__log1pl): Do not add 1
39377         to arguments 0x1p107L or above.
39378         * sysdeps/x86_64/fpu/s_log1pl.S (__log1pl): Do not add 1 to
39379         positive arguments with exponent 65 or above.
39380         * math/auto-libm-test-in: Add more tests of log1p.
39381         * math/auto-libm-test-out: Regenerated.
39382
39383         [BZ #16928]
39384         * math/s_cacos.c (__cacos): Ensure zero real part of result from
39385         non-finite arguments is +0.
39386         * math/s_cacosf.c (__cacosf): Likewise.
39387         * math/s_cacosl.c (__cacosl): Likewise.
39388         * math/libm-test.inc (cacos_test): Use ALL_RM_TEST.
39389         * sysdeps/i386/fpu/libm-test-ulps: Update.
39390         * sysdeps/x86_64/fpu/libm-test-ulps: Likewise.
39391
39392         [BZ #16927]
39393         * sysdeps/i386/fpu/e_acosh.S (__ieee754_acosh): Use fabs on x-1
39394         value.
39395         * sysdeps/i386/fpu/e_acoshf.S (__ieee754_acoshf): Likewise.
39396         * sysdeps/i386/fpu/e_acoshl.S (__ieee754_acoshl): Likewise.
39397         * sysdeps/ieee754/ldbl-96/e_acoshl.c (__ieee754_acoshl): Correct
39398         for explicit high bit of mantissa when testing for argument equal
39399         to 1.
39400         * math/libm-test.inc (acosh_test): Use ALL_RM_TEST.
39401         * sysdeps/i386/fpu/libm-test-ulps: Update.
39402         * sysdeps/x86_64/fpu/libm-test-ulps: Likewise.
39403
39404         [BZ #16516]
39405         * sysdeps/ieee754/dbl-64/s_erf.c (efx8): Remove variable.
39406         (__erf): Scale by 16 instead of 8 in potentially underflowing
39407         case.  Ensure exception if result actually underflows.
39408         * sysdeps/ieee754/flt-32/s_erff.c (efx8): Remove variable.
39409         (__erff): Scale by 16 instead of 8 in potentially underflowing
39410         case.  Ensure exception if result actually underflows.
39411         * sysdeps/ieee754/ldbl-128/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-128ibm/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         * sysdeps/ieee754/ldbl-96/s_erfl.c: Include <float.h>.
39420         (efx8): Remove variable.
39421         (__erfl): Scale by 16 instead of 8 in potentially underflowing
39422         case.  Ensure exception if result actually underflows.
39423         * math/auto-libm-test-in: Add more tests of erf.
39424         * math/auto-libm-test-out: Regenerated.
39425
39426 2014-05-14  Andreas Schwab  <schwab@suse.de>
39427
39428         * elf/rtld.c (_dl_start_final, _dl_start, init_tls, dl_main):
39429         Remove code conditionalized on USE___THREAD.
39430
39431         * config.h.in (HAVE_PT_CHOWN): Define as 0.
39432         * sysdeps/unix/grantpt.c (grantpt): Check HAVE_PT_CHOWN for value,
39433         not definedness.
39434
39435 2014-05-14  Joseph Myers  <joseph@codesourcery.com>
39436
39437         * sysdeps/unix/sysv/linux/kernel-features.h (__ASSUME_UTIMES):
39438         Define unconditionally.
39439         (__ASSUME_O_CLOEXEC): Likewise.
39440         (__ASSUME_SOCK_CLOEXEC): Likewise.
39441         (__ASSUME_IN_NONBLOCK): Likewise.
39442         (__ASSUME_PIPE2): Likewise.
39443         (__ASSUME_EVENTFD2): Likewise.
39444         (__ASSUME_SIGNALFD4): Likewise.
39445         (__ASSUME_DUP3): Likewise.
39446         * sysdeps/unix/sysv/linux/aarch64/kernel-features.h
39447         (__ASSUME_DUP3): Do not define.
39448         (__ASSUME_EVENTFD2): Likewise.
39449         (__ASSUME_IN_NONBLOCK): Likewise.
39450         (__ASSUME_O_CLOEXEC): Likewise.
39451         (__ASSUME_PIPE2): Likewise.
39452         (__ASSUME_SIGNALFD4): Likewise.
39453         (__ASSUME_SOCK_CLOEXEC): Likewise.
39454         (__ASSUME_UTIMES): Undefine.
39455         * sysdeps/unix/sysv/linux/alpha/kernel-features.h
39456         (__ASSUME_UTIMES): Do not define.
39457         (__ASSUME_O_CLOEXEC): Likewise.
39458         (__ASSUME_SOCK_CLOEXEC): Likewise.
39459         (__ASSUME_IN_NONBLOCK): Undefine if [__LINUX_KERNEL_VERSION <
39460         0x020621] instead of defining if [__LINUX_KERNEL_VERSION >=
39461         0x020621].
39462         (__ASSUME_PIPE2): Likewise.
39463         (__ASSUME_EVENTFD2): Likewise.
39464         (__ASSUME_SIGNALFD4): Likewise.
39465         [__LINUX_KERNEL_VERSION < 0x020621] (__ASSUME_DUP3): Undefine.
39466         * sysdeps/unix/sysv/linux/arm/kernel-features.h (__ASSUME_UTIMES):
39467         Do not define.
39468         (__ASSUME_EVENTFD2): Likewise.
39469         (__ASSUME_SIGNALFD4): Likewise.
39470         * sysdeps/unix/sysv/linux/hppa/kernel-features.h
39471         (__ASSUME_32BITUIDS): Likewise.
39472         (__ASSUME_TRUNCATE64_SYSCALL): Likewise.
39473         (__ASSUME_IPC64): Likewise.
39474         (__ASSUME_ST_INO_64_BIT): Likewise.
39475         (__ASSUME_GETDENTS64_SYSCALL): Likewise.
39476         [__LINUX_KERNEL_VERSION < 0x030e00] (__ASSUME_UTIMES): Undefine.
39477         * sysdeps/unix/sysv/linux/ia64/kernel-features.h
39478         (__ASSUME_UTIMES): Do not define.
39479         (__ASSUME_PSELECT): Likewise.
39480         (__ASSUME_PPOLL): Likewise.
39481         (__ASSUME_O_CLOEXEC): Likewise.
39482         (__ASSUME_SOCK_CLOEXEC): Likewise.
39483         (__ASSUME_IN_NONBLOCK): Likewise.
39484         (__ASSUME_PIPE2): Likewise.
39485         (__ASSUME_EVENTFD2): Likewise.
39486         (__ASSUME_SIGNALFD4): Likewise.
39487         (__ASSUME_DUP3): Likewise.
39488         * sysdeps/unix/sysv/linux/m68k/kernel-features.h
39489         (__ASSUME_UTIMES): Likewise.
39490         (__ASSUME_O_CLOEXEC): Likewise.
39491         (__ASSUME_SOCK_CLOEXEC): Likewise.
39492         (__ASSUME_IN_NONBLOCK): Likewise.
39493         (__ASSUME_PIPE2): Likewise.
39494         (__ASSUME_EVENTFD2): Likewise.
39495         (__ASSUME_SIGNALFD4): Likewise.
39496         (__ASSUME_DUP3): Likewise.
39497         * sysdeps/unix/sysv/linux/microblaze/kernel-features.h
39498         (__ASSUME_UTIMES): Likewise.
39499         (__ASSUME_O_CLOEXEC): Likewise.
39500         (__ASSUME_SOCK_CLOEXEC): Likewise.
39501         (__ASSUME_IN_NONBLOCK): Likewise.
39502         (__ASSUME_PIPE2): Likewise.
39503         (__ASSUME_EVENTFD2): Likewise.
39504         (__ASSUME_SIGNALFD4): Likewise.
39505         (__ASSUME_DUP3): Likewise.
39506         * sysdeps/unix/sysv/linux/mips/kernel-features.h (__ASSUME_IPC64):
39507         Likewise.
39508         (__ASSUME_UTIMES): Likewise.
39509         (__ASSUME_EVENTFD2): Likewise.
39510         (__ASSUME_SIGNALFD4): Likewise.
39511         * sysdeps/unix/sysv/linux/tile/kernel-features.h
39512         (__ASSUME_O_CLOEXEC): Likewise.
39513         (__ASSUME_SOCK_CLOEXEC): Likewise.
39514         (__ASSUME_IN_NONBLOCK): Likewise.
39515         (__ASSUME_PIPE2): Likewise.
39516         (__ASSUME_EVENTFD2): Likewise.
39517         (__ASSUME_SIGNALFD4): Likewise.
39518         (__ASSUME_DUP3): Likewise.
39519         (__ASSUME_UTIMES): Undefine.
39520
39521         * sysdeps/arm/fclrexcpt.c (__feclearexcept): Rename to
39522         feclearexcept.  Remove symbol versioning code.
39523         * sysdeps/arm/fegetenv.c (__fegetenv): Rename to fegetenv.  Remove
39524         symbol versioning code.
39525         * sysdeps/arm/fesetenv.c (__fesetenv): Rename to fesetenv.  Remove
39526         symbol versioning code.
39527         * sysdeps/arm/feupdateenv.c (__feupdateenv): Rename to
39528         feupdateenv.  Remove symbol versioning code.
39529         * sysdeps/arm/fgetexcptflg.c (__fegetexceptflag): Rename to
39530         fegetexceptflag.  Remove symbol versioning code.
39531         * sysdeps/arm/fsetexcptflg.c (__fesetexceptflag): Rename to
39532         fesetexceptflag.  Remove symbol versioning code.
39533         * sysdeps/unix/sysv/linux/arm/Versions (libc): Remove GLIBC_2.0,
39534         GLIBC_2.2 and GLIBC_2.3.3 entries.  Change GLIBC_2.1 to GLIBC_2.4.
39535         * sysdeps/unix/sysv/linux/arm/posix_fadvise64.c
39536         (__posix_fadvise64_l32): Remove prototype.
39537         [SHLIB_COMPAT(libc, GLIBC_2_2, GLIBC_2_3_3)]: Remove conditional
39538         code.
39539
39540 2014-05-13  Roland McGrath  <roland@hack.frob.com>
39541
39542         * sysdeps/unix/sysv/linux/arm/nptl/bits/pthreadtypes.h: Moved ...
39543         * sysdeps/arm/nptl/bits/pthreadtypes.h: ... here.
39544         * sysdeps/unix/sysv/linux/arm/nptl/bits/semaphore.h: Moved ...
39545         * sysdeps/arm/nptl/bits/semaphore.h: ... here.
39546
39547 2014-05-13  Sami Kerola  <kerolasa@iki.fi>
39548
39549         * timezone/Makefile ($(objpfx)tzselect): Use zonedir instead
39550         current working directory
39551
39552 2014-05-13  Roland McGrath  <roland@hack.frob.com>
39553
39554         * sysdeps/unix/sysv/linux/arm/nptl/c++-types.data: Moved ...
39555         * sysdeps/unix/sysv/linux/arm/c++-types.data: ... here.
39556         * sysdeps/unix/sysv/linux/arm/nptl/createthread.c: Moved ...
39557         * sysdeps/unix/sysv/linux/arm/createthread.c: ... here.
39558         * sysdeps/unix/sysv/linux/arm/nptl/fork.c: Moved ...
39559         * sysdeps/unix/sysv/linux/arm/fork.c: ... here.
39560         * sysdeps/unix/sysv/linux/arm/nptl/ld.abilist: Moved ...
39561         * sysdeps/unix/sysv/linux/arm/ld.abilist: ... here.
39562         * sysdeps/unix/sysv/linux/arm/nptl/libBrokenLocale.abilist: Moved ...
39563         * sysdeps/unix/sysv/linux/arm/libBrokenLocale.abilist: ... here.
39564         * sysdeps/unix/sysv/linux/arm/nptl/libanl.abilist: Moved ...
39565         * sysdeps/unix/sysv/linux/arm/libanl.abilist: ... here.
39566         * sysdeps/unix/sysv/linux/arm/nptl/libc.abilist: Moved ...
39567         * sysdeps/unix/sysv/linux/arm/libc.abilist: ... here.
39568         * sysdeps/unix/sysv/linux/arm/nptl/libcrypt.abilist: Moved ...
39569         * sysdeps/unix/sysv/linux/arm/libcrypt.abilist: ... here.
39570         * sysdeps/unix/sysv/linux/arm/nptl/libdl.abilist: Moved ...
39571         * sysdeps/unix/sysv/linux/arm/libdl.abilist: ... here.
39572         * sysdeps/unix/sysv/linux/arm/nptl/libm.abilist: Moved ...
39573         * sysdeps/unix/sysv/linux/arm/libm.abilist: ... here.
39574         * sysdeps/unix/sysv/linux/arm/nptl/libnsl.abilist: Moved ...
39575         * sysdeps/unix/sysv/linux/arm/libnsl.abilist: ... here.
39576         * sysdeps/unix/sysv/linux/arm/nptl/libpthread.abilist: Moved ...
39577         * sysdeps/unix/sysv/linux/arm/libpthread.abilist: ... here.
39578         * sysdeps/unix/sysv/linux/arm/nptl/libresolv.abilist: Moved ...
39579         * sysdeps/unix/sysv/linux/arm/libresolv.abilist: ... here.
39580         * sysdeps/unix/sysv/linux/arm/nptl/librt.abilist: Moved ...
39581         * sysdeps/unix/sysv/linux/arm/librt.abilist: ... here.
39582         * sysdeps/unix/sysv/linux/arm/nptl/libthread_db.abilist: Moved ...
39583         * sysdeps/unix/sysv/linux/arm/libthread_db.abilist: ... here.
39584         * sysdeps/unix/sysv/linux/arm/nptl/libutil.abilist: Moved ...
39585         * sysdeps/unix/sysv/linux/arm/libutil.abilist: ... here.
39586         * sysdeps/unix/sysv/linux/arm/nptl/localplt.data: Moved ...
39587         * sysdeps/unix/sysv/linux/arm/localplt.data: ... here.
39588         * sysdeps/unix/sysv/linux/arm/nptl/lowlevellock.h: Moved ...
39589         * sysdeps/unix/sysv/linux/arm/lowlevellock.h: ... here.
39590         * sysdeps/unix/sysv/linux/arm/nptl/sysdep-cancel.h: Moved ...
39591         * sysdeps/unix/sysv/linux/arm/sysdep-cancel.h: ... here.
39592         * sysdeps/unix/sysv/linux/arm/nptl/unwind-forcedunwind.c: Moved ...
39593         * sysdeps/unix/sysv/linux/arm/unwind-forcedunwind.c: ... here.
39594         * sysdeps/unix/sysv/linux/arm/nptl/unwind-resume.c: Moved ...
39595         * sysdeps/unix/sysv/linux/arm/unwind-resume.c: ... here.
39596
39597         * sysdeps/unix/sysv/linux/arm/Versions (libc: GLIBC_PRIVATE): New set.
39598         * sysdeps/unix/sysv/linux/arm/nptl/Versions: File removed.
39599
39600         * sysdeps/unix/sysv/linux/arm/Makefile
39601         [$(subdir) = rt] (librt-sysdep_routines, librt-shared-only-routines):
39602         Add rt-aeabi_unwind_cpp_pr1.
39603         [$(subdir) = nptl] (librt-sysdep_routines, librt-shared-only-routines):
39604         Add nptl-aeabi_unwind_cpp_pr1.
39605         [$(subdir) = nptl] (tests): Filter out tst-cleanupx4.
39606         * sysdeps/unix/sysv/linux/arm/nptl/Makefile: File removed.
39607         * sysdeps/unix/sysv/linux/arm/nptl/rt-aeabi_unwind_cpp_pr1.c: Move ...
39608         * sysdeps/unix/sysv/linux/arm/rt-aeabi_unwind_cpp_pr1.c: ... here.
39609         * sysdeps/unix/sysv/linux/arm/nptl/nptl-aeabi_unwind_cpp_pr1.c: Move ...
39610         * sysdeps/unix/sysv/linux/arm/nptl-aeabi_unwind_cpp_pr1.c: ... here.
39611
39612         * sysdeps/unix/sysv/linux/arm/configure.ac: Force -fexceptions here.
39613         * sysdeps/unix/sysv/linux/arm/configure: Regenerated.
39614         * sysdeps/unix/sysv/linux/arm/nptl/configure.ac: File removed.
39615         * sysdeps/unix/sysv/linux/arm/nptl/configure: File removed.
39616
39617         * sysdeps/unix/sysv/linux/arm/clone.S: Include <tcb-offsets.h>.
39618         Deconditionalize the code that was previously under [RESET_PID].
39619         * sysdeps/unix/sysv/linux/arm/nptl/clone.S: File removed.
39620
39621         * sysdeps/generic/exit-thread.h: New file.
39622         * sysdeps/unix/sysv/linux/exit-thread.h: New file.
39623         * include/unistd.h (__exit_thread): Remove declaration.
39624         * sysdeps/unix/sysv/linux/Makefile (sysdep_routines): Drop exit-thread.
39625         * sysdeps/unix/sysv/linux/exit-thread.S: File removed.
39626         * csu/libc-start.c: Include <exit-thread.h>.
39627         (LIBC_START_MAIN): Pass no argument to __exit_thread.
39628         * nptl/pthread_create.c: Include <exit-thread.h>.
39629         (start_thread): Call __exit_thread in place of __exit_thread_inline.
39630         * nptl/sysdeps/i386/pthreaddef.h (__exit_thread_inline): Macro removed.
39631         * nptl/sysdeps/powerpc/pthreaddef.h: Likewise.
39632         * nptl/sysdeps/s390/pthreaddef.h: Likewise.
39633         * nptl/sysdeps/sh/pthreaddef.h: Likewise.
39634         * nptl/sysdeps/sparc/sparc32/pthreaddef.h: Likewise.
39635         * nptl/sysdeps/sparc/sparc64/pthreaddef.h: Likewise.
39636         * nptl/sysdeps/x86_64/pthreaddef.h: Likewise.
39637         * sysdeps/aarch64/nptl/pthreaddef.h: Likewise.
39638         * sysdeps/alpha/nptl/pthreaddef.h: Likewise.
39639         * sysdeps/arm/nptl/pthreaddef.h: Likewise.
39640         * sysdeps/hppa/nptl/pthreaddef.h: Likewise.
39641         * sysdeps/ia64/nptl/pthreaddef.h: Likewise.
39642         * sysdeps/m68k/nptl/pthreaddef.h: Likewise.
39643         * sysdeps/microblaze/nptl/pthreaddef.h: Likewise.
39644         * sysdeps/mips/nptl/pthreaddef.h: Likewise.
39645         * sysdeps/tile/nptl/pthreaddef.h: Likewise.
39646
39647 2014-05-13  Andreas Schwab  <schwab@suse.de>
39648
39649         * sysdeps/unix/grantpt.c (grantpt): Fix typo in assertion.
39650
39651 2014-05-12  Joseph Myers  <joseph@codesourcery.com>
39652
39653         * sysdeps/unix/sysv/linux/kernel-features.h [__s390__]
39654         (__ASSUME_UTIMES): Do not condition on kernel version.
39655         (__ASSUME_PSELECT): Define unconditionally.
39656         (__ASSUME_PPOLL): Likewise.
39657         (__ASSUME_ATFCTS): Likewise.
39658         (__ASSUME_SET_ROBUST_LIST): Do not condition on kernel version.
39659         (__ASSUME_COMPLETE_READV_WRITEV): Define unconditionally.
39660         (__ASSUME_FUTEX_LOCK_PI): Do not condition on kernel version.
39661         (__ASSUME_UTIMENSAT): Define unconditionally.
39662         (__ASSUME_PRIVATE_FUTEX): Likewise.
39663         (__ASSUME_FALLOCATE): Likewise.
39664         (__ASSUME_O_CLOEXEC): Likewise.
39665         (__LINUX_ARG_MAX_STACK_BASED_MIN_KERNEL): Remove.
39666         (__ASSUME_ARG_MAX_STACK_BASED): Likewise.
39667         (__ASSUME_ADJ_OFFSET_SS_READ): Define unconditionally.
39668         (__ASSUME_SOCK_CLOEXEC): Do not condition on kernel version.
39669         (__ASSUME_IN_NONBLOCK): Likewise.
39670         (__ASSUME_PIPE2): Likewise.
39671         (__ASSUME_EVENTFD2): Likewise.
39672         (__ASSUME_SIGNALFD4): Likewise.
39673         (__ASSUME_DUP3): Likewise.
39674         [__x86_64__ || __sparc__] (__ASSUME_ACCEPT4_SYSCALL): Likewise.
39675         (__ASSUME_FUTEX_CLOCK_REALTIME): Define unconditionally.
39676         (__ASSUME_AT_RANDOM): Likewise.
39677         (__ASSUME_PREADV): Likewise.
39678         (__ASSUME_PWRITEV): Likewise.
39679         (__ASSUME_REQUEUE_PI): Do not condition on kernel version.
39680         (__ASSUME_F_GETOWN_EX): Define unconditionally.
39681         (__ASSUME_XFS_RESTRICTED_CHOWN): Likewise.
39682         * sysdeps/unix/sysv/linux/sysconf.c (__sysconf)
39683         [!__ASSUME_ARG_MAX_STACK_BASED]: Remove conditional code.
39684         * sysdeps/unix/sysv/linux/alpha/kernel-features.h
39685         (__ASSUME_O_CLOEXEC): Define unconditionally.
39686         (__ASSUME_PSELECT): Do not undefine conditionally.
39687         (__ASSUME_PPOLL): Likewise.
39688         (__ASSUME_ATFCTS): Likewise.
39689         (__ASSUME_SET_ROBUST_LIST): Likewise.
39690         (__ASSUME_UTIMENSAT): Likewise.
39691         (__ASSUME_FDATASYNC): Define unconditionally.
39692         * sysdeps/unix/sysv/linux/arm/kernel-features.h
39693         (__ASSUME_SIGFRAME_V2): Likewise.
39694         )__ASSUME_EVENTFD2): Likewise.
39695         (__ASSUME_SIGNALFD4): Likewise.
39696         (__ASSUME_PSELECT): Do not undefine conditionally.
39697         (__ASSUME_PPOLL): Likewise.
39698         * sysdeps/unix/sysv/linux/ia64/kernel-features.h
39699         (__ASSUME_PSELECT): Define unconditionally.
39700         (__ASSUME_PPOLL): Likewise.
39701         (__ASSUME_O_CLOEXEC): Likewise.
39702         (__ASSUME_SOCK_CLOEXEC): Likewise.
39703         (__ASSUME_IN_NONBLOCK): Likewise.
39704         (__ASSUME_PIPE2): Likewise.
39705         (__ASSUME_EVENTFD2): Likewise.
39706         (__ASSUME_SIGNALFD4): Likewise.
39707         (__ASSUME_DUP3): Likewise.
39708         * sysdeps/unix/sysv/linux/m68k/kernel-features.h
39709         (__ASSUME_O_CLOEXEC): Likewise.
39710         (__ASSUME_SOCK_CLOEXEC): Likewise.
39711         (__ASSUME_IN_NONBLOCK): Likewise.
39712         (__ASSUME_PIPE2): Likewise.
39713         (__ASSUME_EVENTFD2): Likewise.
39714         (__ASSUME_SIGNALFD4): Likewise.
39715         (__ASSUME_DUP3): Likewise.
39716         * sysdeps/unix/sysv/linux/mips/kernel-features.h
39717         (__ASSUME_EVENTFD2): Likewise.
39718         (__ASSUME_SIGNALFD4): Likewise.
39719         (__ASSUME_ACCEPT4_SYSCALL): Likewise.
39720
39721 2014-05-12  Andreas Schwab  <schwab@suse.de>
39722
39723         [BZ #16932]
39724         * nis/nss_nis/nis-hosts.c (internal_gethostbyname2_r)
39725         (_nss_nis_gethostbyname4_r): Return error if item length is larger
39726         than maximum RPC packet size.
39727         * nis/nss_nis/nis-initgroups.c (initgroups_netid): Likewise.
39728         * nis/nss_nis/nis-network.c (_nss_nis_getnetbyname_r): Likewise.
39729         * nis/nss_nis/nis-service.c (_nss_nis_getservbyname_r)
39730         (_nss_nis_getservbyport_r): Likewise.
39731
39732 2014-05-12  Will Newton  <will.newton@linaro.org>
39733
39734         * malloc/Makefile (tests): Add tst-mallopt.
39735         * malloc/tst-mallopt.c: New file.
39736
39737 2014-05-09  Roland McGrath  <roland@hack.frob.com>
39738
39739         * sysdeps/arm/armv7/strcmp.S: Use sfi_breg prefix on loads not from sp.
39740         [NO_THUMB]: Cope without cbz, cnbz, and orn instructions.
39741
39742 2014-05-09  Adhemerval Zanella  <azanella@linux.vnet.ibm.com>
39743
39744         * elf/Makefile (tst-tlsmod5.so): Add $(no-as-needed).
39745         (tst-tlsmod6.so): Likewise.
39746
39747 2014-05-09  Roland McGrath  <roland@hack.frob.com>
39748
39749         * sysdeps/gnu/unwind-resume.c (libgcc_s_resume): Mark as noreturn.
39750
39751 2014-05-09  Joseph Myers  <joseph@codesourcery.com>
39752
39753         [BZ #16064]
39754         * sysdeps/i386/fpu/fegetenv.c: Include <unistd.h>, <ldsodefs.h>
39755         and <dl-procinfo.h>.
39756         (__fegetenv): Save SSE state in envp->__eip if supported.
39757         * sysdeps/i386/fpu/feholdexcpt.c (feholdexcept): Save SSE state in
39758         envp->__eip if supported.
39759         * sysdeps/i386/fpu/fesetenv.c: Include <unistd.h>, <ldsodefs.h>
39760         and <dl-procinfo.h>.
39761         (__fesetenv): Always set __eip, __cs_selector, __opcode,
39762         __data_offset and __data_selector in environment to 0.  Set SSE
39763         state if supported.
39764         * sysdeps/x86/fpu/Makefile [$(subdir) = math] (tests): Add
39765         test-fenv-sse.
39766         [$(subdir) = math] (CFLAGS-test-fenv-sse.c): Add -msse2
39767         -mfpmath=sse.
39768         * sysdeps/x86/fpu/test-fenv-sse.c: New file.
39769
39770 2014-05-09  Will Newton  <will.newton@linaro.org>
39771
39772         * sysdeps/arm/preconfigure.ac: Set libc_commonpagesize
39773         and libc_relro_required for ARM.
39774         * sysdeps/arm/preconfigure: Regenerate.
39775
39776 2014-05-09  Dominik Vogt  <vogt@linux.vnet.ibm.com>
39777             Stefan Liebler  <stli@linux.vnet.ibm.com>
39778
39779         * config.make.in (enable-lock-elision): New Makefile variable.
39780         * configure.ac: Likewise.
39781         * configure: Regenerate.
39782         * sysdeps/s390/configure.ac:
39783         Add check for gcc transactions support.
39784         * sysdeps/s390/configure: Regenerate.
39785         * nptl/sysdeps/unix/sysv/linux/s390/Makefile: New file.
39786         Build elision files if enabled.
39787         * nptl/sysdeps/unix/sysv/linux/s390/elision-conf.c: New file.
39788         Add lock elision support for s390.
39789         * nptl/sysdeps/unix/sysv/linux/s390/elision-conf.h: Likewise.
39790         * nptl/sysdeps/unix/sysv/linux/s390/elision-lock.c: Likewise.
39791         * nptl/sysdeps/unix/sysv/linux/s390/elision-timed.c: Likewise.
39792         * nptl/sysdeps/unix/sysv/linux/s390/elision-trylock.c: Likewise.
39793         * nptl/sysdeps/unix/sysv/linux/s390/elision-unlock.c: Likewise.
39794         * nptl/sysdeps/unix/sysv/linux/s390/force-elision.h: Likewise.
39795         * nptl/sysdeps/unix/sysv/linux/s390/pthread_mutex_cond_lock.c:
39796         Likewise.
39797         * nptl/sysdeps/unix/sysv/linux/s390/pthread_mutex_lock.c:
39798         Likewise.
39799         * nptl/sysdeps/unix/sysv/linux/s390/pthread_mutex_timedlock.c:
39800         Likewise.
39801         * nptl/sysdeps/unix/sysv/linux/s390/pthread_mutex_trylock.c:
39802         Likewise.
39803         * nptl/sysdeps/unix/sysv/linux/s390/lowlevellock.h:
39804         (__lll_timedlock_elision, __lll_lock_elision)
39805         (__lll_unlock_elision, __lll_trylock_elision)
39806         (lll_timedlock_elision, lll_lock_elision)
39807         (lll_unlock_elision, lll_trylock_elision): Add.
39808         * nptl/sysdeps/unix/sysv/linux/s390/bits/pthreadtypes.h
39809         (pthread_mutex_t): Add lock elision support for s390.
39810
39811 2014-05-14  Wilco  <wdijkstr@arm.com>
39812
39813         * sysdeps/arm/fclrexcpt.c: Cleanup.
39814         * sysdeps/arm/fedisblxcpt.c: Cleanup.
39815         * sysdeps/arm/feenablxcpt.c: Cleanup.
39816         * sysdeps/arm/fegetenv.c: Cleanup.
39817         * sysdeps/arm/fegetexcept.c: Cleanup.
39818         * sysdeps/arm/fegetround.c: Cleanup.
39819         * sysdeps/arm/feholdexcpt.c: Cleanup.
39820         * sysdeps/arm/fesetenv.c: Cleanup.
39821         * sysdeps/arm/fesetround.c: Cleanup.
39822         * sysdeps/arm/feupdateenv.c: Cleanup.
39823         * sysdeps/arm/fgetexcptflg.c: Cleanup.
39824         * sysdeps/arm/fraiseexcpt.c: Cleanup.
39825         * sysdeps/arm/fsetexcptflg.c: Cleanup.
39826         * sysdeps/arm/ftestexcept.c: Cleanup.
39827         * sysdeps/arm/get-rounding-mode.h: Cleanup.
39828         * sysdeps/arm/setfpucw.c: Cleanup.
39829
39830 2014-05-09  Will Newton  <will.newton@linaro.org>
39831
39832         * sysdeps/arm/armv7/strcmp.S: New file.
39833         * NEWS: Mention addition of ARMv7 optimized strcmp.
39834
39835 2014-05-08  Roland McGrath  <roland@hack.frob.com>
39836
39837         * Makeconfig ($(common-objpfx)config.status): Fix patsubst uses to
39838         look for %.ac rather than %.in.
39839
39840         * sysdeps/mach/hurd/configure.ac (inhibit_glue): Remove variable.
39841         * sysdeps/unix/sysv/linux/configure.ac: Likewise.
39842         * sysdeps/mach/hurd/configure: Regenerated.
39843         * sysdeps/unix/sysv/linux/configure: Regenerated.
39844
39845         * bits/utsname.h (_UTSNAME_DOMAIN_LENGTH): New macro, set to 0.
39846
39847 2014-05-07  Steve Ellcey  <sellcey@mips.com>
39848
39849         [BZ# 16922]
39850         * sysdeps/mips/sys/asm.h (INT_SUB): Fix definition.
39851         (LONG_SUB): Ditto.
39852         (PTR_SUB): Ditto.
39853
39854 2014-05-07  Andreas Schwab  <schwab@suse.de>
39855
39856         * sysdeps/posix/getaddrinfo.c (gaih_inet): Advance address pointer
39857         when skipping over non-matching result from nscd.
39858
39859 2014-05-07  Ondřej Bílka  <neleai@seznam.cz>
39860
39861         [BZ #16876]
39862         * nptl/sockperf.c (client): Check socket return value.
39863
39864         [BZ #16877]
39865         * nscd/selinux.c (nscd_request_avc_has_perm): Check if there is
39866         nscd security class.
39867
39868 2014-05-06  Roland McGrath  <roland@hack.frob.com>
39869
39870         * sysdeps/unix/sysv/linux/arm/nptl/unwind.h: File moved to ...
39871         * sysdeps/arm/unwind.h: ... here.
39872
39873 2014-05-06  Aurelien Jarno  <aurelien@aurel32.net>
39874
39875         [BZ# 16916]
39876         * sysdeps/unix/sysv/linux/sparc/bits/eventfd.h (EFD_SEMAPHORE):
39877         Define.
39878
39879 2014-05-06  Vidya Ranganathan  <vidya@linux.vnet.ibm.com>
39880
39881         * sysdeps/powerpc/powerpc64/power7/strncpy.S: New file: Optimization.
39882         * sysdeps/powerpc/powerpc64/multiarch/strncpy.c: New file:
39883         multiarch strncpy for PPC64.
39884         * sysdeps/powerpc/powerpc64/multiarch/strncpy-ppc64.c: New file
39885         * sysdeps/powerpc/powerpc64/multiarch/strncpy-power7.S: New file
39886         * sysdeps/powerpc/powerpc64/multiarch/Makefile: Add strpcpy, stpncpy
39887         multiarch optimizations.
39888         * sysdeps/powerpc/powerpc64/multiarch/ifunc-impl-list.c:
39889         (__libc_ifunc_impl_list): Likewise.
39890         * sysdeps/powerpc/powerpc64/power7/stpncpy.S: New file: Optimization.
39891         * sysdeps/powerpc/powerpc64/multiarch/stpncpy.c: New file:
39892         multiarch stpncpy for PPC64.
39893         * sysdeps/powerpc/powerpc64/multiarch/stpncpy-ppc64.c: New file
39894         * sysdeps/powerpc/powerpc64/multiarch/stpncpy-power7.S: New file
39895
39896 2014-05-06  Andreas Schwab  <schwab@suse.de>
39897
39898         [BZ #16912]
39899         * gmon/mcount.c (_MCOUNT_DECL): Use
39900         atomic_compare_and_exchange_bool_acq instead of
39901         catomic_compare_and_exchange_bool_acq.
39902
39903 2014-05-05  Roland McGrath  <roland@hack.frob.com>
39904
39905         * elf/Makefile (others, install-bin): Remove pldd.
39906         (pldd-modules): Variable removed.
39907         ($(objpfx)pldd): Target removed.
39908         * sysdeps/unix/sysv/linux/Makefile [$(subdir) = elf]
39909         (others, install-bin): Append pldd here.
39910         ($(objpfx)pldd): New target.
39911
39912         * sysdeps/gnu/errlist.awk (BEGIN): Emit an initial #define of ERR_MAX
39913         to 0, so the first #if test emitted later doesn't see it undefined.
39914         (END): Emit "!defined ERRLIST_NO_COMPAT" to match what BEGIN does.
39915         * sysdeps/gnu/errlist.c: Regenerated.
39916
39917 2014-05-04  Adhemerval Zanella  <azanella@linux.vnet.ibm.com>
39918
39919         * sysdeps/powerpc/powerpc32/power4/multiarch/memchr-ppc32.c
39920         [libc_hidden_builtin_def]: Define to empty value.
39921         * sysdeps/powerpc/powerpc64/multiarch/memcpy-ppc64.S:
39922         [libc_hidden_builtin_def]: Likewise.
39923         * sysdeps/powerpc/powerpc64/multiarch/memset-ppc64.S:
39924         [libc_hidden_builtin_def]: Likewise.
39925         * sysdeps/powerpc/powerpc64/multiarch/strlen-ppc64.S:
39926         [libc_hidden_builtin_def]: Likewise.
39927         * sysdeps/powerpc/powerpc64/multiarch/memcpy.c (memcpy): Redefined to
39928         __redirect_memcpy and define ifunc as default hidden symbol.
39929         * sysdeps/powerpc/powerpc64/multiarch/memset.c (memset): Likewise.
39930         * sysdeps/powerpc/powerpc64/multiarch/strlen.c (strlen): Likewise.
39931
39932 2014-05-04  Adam Conrad  <adconrad@0c3.net>
39933
39934         * locale/iso-4217.def: Reintroduce XDR currency.
39935
39936 2014-05-04  Allan McRae  <allan@archlinux.org>
39937
39938         * po/eo.po: Update Esperanto translation from translation project.
39939
39940 2014-05-02  Carlos O'Donell  <carlos@redhat.com>
39941
39942         * sysdeps/x86_64/multiarch/init-arch.h: Define FEATURE_INDEX_1 to 0,
39943         and FEATURE_INDEX_MAX to 1.
39944         [!__ASSEMBLER__]: Remove anonymous enum for FEATURE_INDEX_*.
39945
39946 2014-05-01  Steve Ellcey  <sellcey@mips.com>
39947
39948         * iconvdata/ansi_x3.110.c (ONE_DIRECTION): Define.
39949         * iconvdata/armscii-8.c (ONE_DIRECTION): Define.
39950         * iconvdata/big5.c (ONE_DIRECTION): Define.
39951         * iconvdata/big5hkscs.c (ONE_DIRECTION): Define.
39952         * iconvdata/cp1255.c (ONE_DIRECTION): Define.
39953         * iconvdata/cp1258.c (ONE_DIRECTION): Define.
39954         * iconvdata/cp932.c (ONE_DIRECTION): Define.
39955         * iconvdata/euc-cn.c (ONE_DIRECTION): Define.
39956         * iconvdata/euc-jisx0213.c (ONE_DIRECTION): Define.
39957         * iconvdata/euc-jp-ms.c (ONE_DIRECTION): Define.
39958         * iconvdata/euc-jp.c (ONE_DIRECTION): Define.
39959         * iconvdata/euc-kr.c (ONE_DIRECTION): Define.
39960         * iconvdata/euc-tw.c (ONE_DIRECTION): Define.
39961         * iconvdata/gb18030.c (ONE_DIRECTION): Define.
39962         * iconvdata/gbbig5.c (ONE_DIRECTION): Define.
39963         * iconvdata/gbgbk.c (ONE_DIRECTION): Define.
39964         * iconvdata/gbk.c (ONE_DIRECTION): Define.
39965         * iconvdata/ibm1364.c (ONE_DIRECTION): Define.
39966         * iconvdata/ibm930.c (ONE_DIRECTION): Define.
39967         * iconvdata/ibm932.c (ONE_DIRECTION): Define.
39968         * iconvdata/ibm933.c (ONE_DIRECTION): Define.
39969         * iconvdata/ibm935.c (ONE_DIRECTION): Define.
39970         * iconvdata/ibm937.c (ONE_DIRECTION): Define.
39971         * iconvdata/ibm939.c (ONE_DIRECTION): Define.
39972         * iconvdata/ibm943.c (ONE_DIRECTION): Define.
39973         * iconvdata/iso-2022-cn-ext.c (ONE_DIRECTION): Define.
39974         * iconvdata/iso-2022-cn.c (ONE_DIRECTION): Define.
39975         * iconvdata/iso-2022-jp-3.c (ONE_DIRECTION): Define.
39976         * iconvdata/iso-2022-jp.c (ONE_DIRECTION): Define.
39977         * iconvdata/iso-2022-kr.c (ONE_DIRECTION): Define.
39978         * iconvdata/iso646.c (ONE_DIRECTION): Define.
39979         * iconvdata/iso8859-1.c (ONE_DIRECTION): Define.
39980         * iconvdata/iso_11548-1.c (ONE_DIRECTION): Define.
39981         * iconvdata/iso_6937-2.c (ONE_DIRECTION): Define.
39982         * iconvdata/iso_6937.c (ONE_DIRECTION): Define.
39983         * iconvdata/johab.c (ONE_DIRECTION): Define.
39984         * iconvdata/shift_jisx0213.c (ONE_DIRECTION): Define.
39985         * iconvdata/sjis.c (ONE_DIRECTION): Define.
39986         * iconvdata/t.61.c (ONE_DIRECTION): Define.
39987         * iconvdata/tcvn5712-1.c (ONE_DIRECTION): Define.
39988         * iconvdata/tscii.c (ONE_DIRECTION): Define.
39989         * iconvdata/uhc.c (ONE_DIRECTION): Define.
39990         * iconvdata/unicode.c (ONE_DIRECTION): Define.
39991         * iconvdata/utf-16.c (ONE_DIRECTION): Define.
39992         * iconvdata/utf-32.c (ONE_DIRECTION): Define.
39993         * iconvdata/utf-7.c (ONE_DIRECTION): Define.
39994
39995 2014-05-01  Roland McGrath  <roland@hack.frob.com>
39996
39997         * libio/libioP.h [!_IO_USE_OLD_IO_FILE && !_G_IO_NO_BACKWARD_COMPAT]
39998         (_IO_JUMPS_OFFSET): Define to 0.
39999
40000         * nptl/sysdeps/pthread/bits/libc-lock.h
40001         [_LIBC && (!NOT_IN_libc || IS_IN_libpthread)]
40002         (__libc_lock_define_initialized_recursive): Always define using
40003         initializer.  Modern compilers treat uninitialized (implicit zero) and
40004         explicit zero initializers the same (i.e. put the datum in bss).
40005
40006 2014-05-01  Andreas Schwab  <schwab@linux-m68k.org>
40007
40008         * nscd/nscd-client.h: Include <string.h>.
40009
40010 2014-05-01  David S. Miller  <davem@davemloft.net>
40011
40012         [BZ #16885]
40013         * sysdeps/sparc/sparc64/strcmp.S: Fix end comparison handling when
40014         multiple zero bytes exist at the end of a string.
40015         Reported by Aurelien Jarno <aurelien@aurel32.net>
40016
40017         * string/test-strcmp.c (check): Add explicit test for situations where
40018         there are multiple zero bytes after the first.
40019
40020 2014-05-01  Andreas Schwab  <schwab@linux-m68k.org>
40021
40022         [BZ #16890]
40023         * stdio-common/vfprintf.c (process_arg) [%p]: Mark string as wide
40024         when compiling wprintf.
40025         * stdio-common/tstdiomisc.c (t3): New function.
40026         (main): Call it.
40027
40028 2014-05-01  Steve Ellcey  <sellcey@mips.com>
40029
40030         * intl/iconv/skeleton.c (ONE_DIRECTION): Remove define.
40031         * iconv/gconv_simple.c (ONE_DIRECTION): Define.
40032         * iconvdata/8bit-gap.c (ONE_DIRECTION): Ditto.
40033         * iconvdata/8bit-generic.c (ONE_DIRECTION): Ditto.
40034
40035 2014-05-01  Steve Ellcey  <sellcey@mips.com>
40036
40037         * stdlib/longlong.h: Updated from GCC.
40038
40039 2014-05-01  Will Newton  <will.newton@linaro.org>
40040             Bernard Ogden  <bernie.ogden@linaro.org>
40041
40042         * NEWS: Update fixed bug list.
40043
40044         [BZ #15119]
40045         * sysdeps/unix/sysv/linux/arm/nptl/lowlevellock.c: Remove file.
40046
40047 2014-04-30  David S. Miller  <davem@davemloft.net>
40048
40049         * sysdeps/sparc/fpu/fenv_private.h (HAVE_RM_CTX): Define.
40050         (libc_feholdexcept_setround_sparc_ctx): New function.
40051         (libc_fesetenv_sparc_ctx): Likewise.
40052         (libc_feupdateenv_sparc_ctx): Likewise.
40053         (libc_feholdsetround_sparc_ctx): Likewise.
40054         (libc_feholdexcept_setround_ctx): Define.
40055         (libc_feholdexcept_setroundf_ctx): Likewise.
40056         (libc_feholdexcept_setroundl_ctx): Likewise.
40057         (libc_fesetenv_ctx): Likewise.
40058         (libc_fesetenvf_ctx): Likewise.
40059         (libc_fesetenvl_ctx): Likewise.
40060         (libc_feupdateenv_ctx): Likewise.
40061         (libc_feupdateenvf_ctx): Likewise.
40062         (libc_feupdateenvl_ctx): Likewise.
40063         (libc_feresetround_ctx): Likewise.
40064         (libc_feresetroundf_ctx): Likewise.
40065         (libc_feresetroundl_ctx): Likewise.
40066         (libc_feholdsetround_ctx): Likewise.
40067         (libc_feholdsetroundf_ctx): Likewise.
40068         (libc_feholdsetroundl_ctx): Likewise.
40069
40070         * sysdeps/unix/sysv/linux/sparc/bits/siginfo.h (EMT_TAGOVF): Protect
40071         with __USE_GNU instead of XOPEN cpp guards.
40072
40073         * sysdeps/sparc/bits/string.h (_STRING_ARCH_unaligned): Define to
40074         0.
40075
40076         * sysdeps/unix/sysv/linux/sparc/bits/siginfo.h (EMT_TAGOVF): Protect
40077         with XOPEN cpp guards.
40078
40079 2014-04-30  Julian Brown  <julian@codesourcery.com>
40080
40081         [BZ #16888]
40082         * sysdeps/arm/dl-machine.h (elf_machine_rela): Fix R_ARM_IRELATIVE
40083         handling.
40084
40085 2014-04-30  Joseph Myers  <joseph@codesourcery.com>
40086
40087         [BZ #9894]
40088         * sysdeps/unix/sysv/linux/configure.ac (LIBC_LINUX_VERSION):
40089         Change to 2.6.32.
40090         (arch_minimum_kernel): Change all 2.6.16 settings to 2.6.32.
40091         * sysdeps/unix/sysv/linux/configure: Regenerated.
40092         * sysdeps/unix/sysv/linux/microblaze/configure.ac: Remove file.
40093         * sysdeps/unix/sysv/linux/microblaze/configure: Likewise.
40094         * sysdeps/unix/sysv/linux/tile/configure.ac: Likewise.
40095         * sysdeps/unix/sysv/linux/tile/configure: Likewise.
40096         * README: Update reference to required Linux kernel version.
40097         * manual/install.texi (Linux): Update reference to required Linux
40098         kernel headers version.
40099         * INSTALL: Regenerated.
40100
40101         * conform/data/stdlib.h-data [POSIX] (stddef.h): Do not allow
40102         header inclusion.
40103         [POSIX] (limits.h): Likewise.
40104         [POSIX] (math.h): Likewise.
40105         [POSIX] (sys/wait.h): Likewise.
40106         * conform/data/string.h-data [POSIX || UNIX98] (strtok_r): Require
40107         function.
40108         [POSIX] (stddef.h): Do not allow header inclusion.
40109
40110 2014-04-30  Adhemerval Zanella  <azanella@linux.vnet.ibm.com>
40111
40112         * sysdeps/generic/symbol-hacks.h (memcpy): Add internal alias.
40113
40114 2014-04-30  Yang Yingliang  <yangyingliang@huawei.com>
40115
40116         * nptl/pthread_cond_broadcast.c (__pthread_cond_broadcast):
40117         Return immediately after lll_futex_wake.
40118
40119 2014-04-30  Siddhesh Poyarekar  <siddhesh@redhat.com>
40120
40121         [BZ #16791]
40122         * nscd/nscd-client.h (datahead_init_common): Initialize entire
40123         structure.
40124         (datahead_init_pos): Call datahead_init_common early.
40125         (datahead_init_neg): Likewise.
40126
40127         * nscd/nscd-client.h (datahead_init_common, datahead_init_pos,
40128         datahead_init_neg): New functions.
40129         * nscd/aicache.c (addhstaiX): Use them.
40130         * nscd/grpcache.c (cache_addgr): Likewise.
40131         * nscd/hstcache.c (cache_addhst): Likewise.
40132         * nscd/initgrcache.c (addinitgroupsX): Likewise.
40133         * nscd/netgroupcache.c (do_notfound): Likewise.
40134         (addgetnetgrentX): Likewise.
40135         (addinnetgrX): Likewise.
40136         * nscd/pwdcache.c (cache_addpw): Likewise.
40137         * nscd/servicescache.c (cache_addserv): Likewise.
40138
40139 2014-04-30  Siddhesh Poyarekar  <siddhesh@redhat.com>
40140             Atsushi Onoe  <atsushi@onoe.org>
40141
40142         [BZ #14308]
40143         [BZ #12994]
40144         [BZ #13651]
40145         * resolv/res_query.c (__libc_res_nsearch): Return if at least
40146         one response is valid.
40147         * resolv/res_send.c (send_dg): Check for validity of other
40148         response if the current response is a referral.
40149
40150 2014-04-29  Steve Ellcey  <sellcey@mips.com>
40151
40152         * iconv/skeleton.c (ONE_DIRECTION): Set default value if not set.
40153
40154 2014-04-29  Stefan Liebler  <stli@linux.vnet.ibm.com>
40155
40156         [BZ #16823]
40157         * sysdeps/ieee754/ldbl-128/s_log1pl.c (__log1pl):
40158         Always divide by positive zero when computing -Inf result.
40159         * sysdeps/ieee754/dbl-64/s_log1p.c (__log1p): Likewise.
40160         * sysdeps/ieee754/flt-32/s_log1pf.c (__log1pf): Likewise.
40161
40162 2014-04-28  Adhemerval Zanella  <azanella@linux.vnet.ibm.com>
40163
40164         * sysdeps/powerpc/fpu/fclrexcpt.c (__feclearexcept): Do not update
40165         FPSCR if value do not change.
40166         * sysdeps/powerpc/fpu/fedisblxcpt.c (fedisableexcept): Likewise.
40167         * sysdeps/powerpc/fpu/feenablxcpt.c (feenableexcept): Likewise.
40168         * sysdeps/powerpc/fpu/feholdexcpt.c (feholdexcept): Likewise.
40169         * sysdeps/powerpc/fpu/fesetenv.c (__fesetenv): Likewise.
40170         * sysdeps/powerpc/fpu/fsetexcptflg.c (__fesetexceptflag): Likewise.
40171         * sysdeps/powerpc/fpu/fenv_libc.h (fenv_reg_to_exceptions): New helper
40172         function.
40173
40174 2014-05-29  Carlos O'Donell  <carlos@systemhalted.org>
40175
40176         * sysdeps/hppa: Move directory from ports/sysdeps/hppa.
40177         * sysdeps/unix/sysv/linux/hppa: Move directory from
40178         ports/systeps/unix/sysv/linux/hppa.
40179         * README: Update listing for hppa-*-linux-gnu.
40180
40181 2014-04-28  Ondřej Bílka  <neleai@seznam.cz>
40182
40183         [BZ #16754]
40184         * manual/stdio.texi (Hook functions): Fix types of stream hook
40185         functions.
40186         [BZ #16854]
40187         * socket/sys/socket.h: Fix typo in comment.
40188
40189 2014-04-28  Wilco  <wdijkstr@arm.com>
40190
40191         * sysdeps/arm/fenv_private.h: New file.
40192         * sysdeps/arm/math_private.h: New file.
40193         * sysdeps/arm/fpu_control.h: Add _FPU_MASK_NCZV and _FPU_MASK_EXCEPT.
40194
40195 2014-04-25  H.J. Lu  <hongjiu.lu@intel.com>
40196
40197         * sysdeps/x86/bits/link.h (La_x86_64_regs): Replace __int128
40198         with __int128_t.
40199         (La_x86_64_retval): Likewise.
40200
40201 2014-04-24  Ian Bolton  <ian.bolton@arm.com>
40202
40203         * sysdeps/aarch64/fpu/fclrexcpt.c (feclearexcept): Don't write to
40204         fpsr if value didn't change.
40205         * sysdeps/aarch64/fpu/fedisblxcpt.c (fedisableexcept): Don't write
40206         to fpcr if value didn't change.
40207         * sysdeps/aarch64/fpu/feenablxcpt.c (feenableexcept): Likewise.
40208         * sysdeps/aarch64/fpu/feholdexcpt.c (feholdexcept): Don't write to
40209         fpsr or fpcr if value didn't change.
40210         * sysdeps/aarch64/fpu/fesetenv.c (fesetenv): Likewise.
40211         * sysdeps/aarch64/fpu/fesetround.c (fesetround): Don't write to
40212         fpcr if value didn't change.
40213         * sysdeps/aarch64/fpu/fsetexcptflg.c (fesetexceptflag): Don't write
40214         to fpsr if value didn't change.
40215
40216 2014-02-23  Siddhesh Poyarekar  <siddhesh@redhat.com>
40217
40218         * nptl/tst-sem3.c: Use test-skeleton.c
40219         (main): Rename to do_test.  Use return instead of
40220         exit.
40221         * nptl/tst-sem4.c: Use test-skeleton.c
40222         (main): Rename to do_test.
40223
40224 2014-04-22  David S. Miller  <davem@davemloft.net>
40225
40226         * sysdeps/unix/sysv/linux/sparc/bits/sigaction.h
40227         (struct sigaction): New struct member __glibc_reserved0, change
40228         type of sa_flags to int.
40229
40230 2014-04-22  Yufeng Zhang  <yufeng.zhang@arm.com>
40231
40232         * stdlib/longlong.h (count_leading_zeros, count_trailing_zeros)
40233         (COUNT_LEADING_ZEROS_0): Define for AArch64.
40234
40235 2014-04-22  Siddhesh Poyarekar  <siddhesh@redhat.com>
40236
40237         * nptl/sysdeps/unix/sysv/linux/sem_trywait.c: Include atomic.h.
40238         * nptl/sysdeps/unix/sysv/linux/sem_wait.c: Likewise.
40239
40240 2014-04-22  Will Newton  <will.newton@linaro.org>
40241             Venkataramanan Kumar  <venkataramanan.kumar@linaro.org>
40242
40243         * sysdeps/aarch64/__longjmp.S: Include stap-probe.h.
40244         (__longjmp): Add longjmp and longjmp_target SystemTap
40245         probes.
40246         * sysdeps/aarch64/setjmp.S: Include stap-probe.h.
40247         (__sigsetjmp): Add setjmp SystemTap probe.
40248
40249 2014-04-17  Carlos O'Donell  <carlos@redhat.com>
40250
40251         * manual/intro.texi (Roadmap to the manual): Sort chapter listing to
40252         match manual order.
40253
40254 2014-04-17  Adhemerval Zanella  <azanella@linux.vnet.ibm.com>
40255
40256         * nptl/sysdeps/unix/sysv/linux/powerpc/pthread_once.c: Remove file.
40257
40258         * sysdeps/powerpc/fpu/fenv_private.h
40259         (libc_feholdexcept_setroundl_ctx): Define to
40260         libc_feholdexcept_setround_ppc_ctx.
40261         (libc_fesetenvl_ctx): Define to libc_fesetenv_ppc_ctx.
40262         (libc_feholdsetroundl_ctx): Define to libc_feholdsetround_ppc_ctx.
40263         (libc_feresetroundl_ctx): Define to libc_feresetround_ppc_ctx.
40264         (libc_feupdateenvl_ctx): libc_feupdateenv_ppc_ctx.
40265
40266 2014-04-17  Ian Bolton  <ian.bolton@arm.com>
40267
40268         * sysdeps/aarch64/math-tests.h: New file.
40269
40270 2014-04-17  Sihai Yao  <sihai.ysh@alibaba-inc.com>
40271
40272         * sysdeps/x86_64/multiarch/ifunc-defines.sym (COMMON_CPUID_INDEX_7):
40273         New.
40274         * sysdeps/x86_64/multiarch/init-arch.c (__init_cpu_features):
40275         Check and set bit_AVX2_Usable.
40276         * sysdeps/x86_64/multiarch/init-arch.h (bit_AVX2_Usable): New
40277         macro.
40278         (bit_AVX2): Likewise.
40279         (index_AVX2_Usable): Likewise.
40280         (CPUID_AVX2): Likewise.
40281         (HAS_AVX2): Likewise.
40282
40283 2014-04-17  Will Newton  <will.newton@linaro.org>
40284
40285         * manual/setjmp.texi (System V contexts): Add note that
40286         calling setcontext on a context created by a call to a
40287         signal handler is undefined.  Update text to note that
40288         setcontext from a signal handler is possible but not
40289         recommended.
40290
40291         [BZ #16629]
40292         * stdlib/tst-setcontext.c: Include signal.h.
40293         (main): Check that the signal stack before and
40294         after swapcontext is the same.
40295
40296         * sysdeps/unix/sysv/linux/aarch64/setcontext.S (__setcontext):
40297         Re-implement to restore registers in user code and avoid
40298         rt_sigreturn system call.
40299
40300 2014-04-17  Wilco  <wdijkstr@arm.com>
40301
40302         * sysdeps/arm/math-tests.h: New file: Set ARM math-test settings.
40303         * sysdeps/generic/math-tests.h: Add macro (EXCEPTION_ENABLE_SUPPORTED).
40304         * math/test-fenv.c: Skip exception trap tests on targets which only
40305         support non-stop mode.
40306
40307 2014-04-17  Ian Bolton  <ian.bolton@arm.com>
40308             Wilco Dijkstra  <wilco.dijkstra@arm.com>
40309
40310         * sysdeps/aarch64/fpu/math_private.h (HAVE_RM_CTX)
40311         (libc_feholdsetround_aarch64_ctx)
40312         (libc_feholdsetround_ctx, libc_feholdsetroundf_ctx)
40313         (libc_feholdsetroundl_ctx, libc_feresetround_aarch64_ctx)
40314         (libc_feresetround_ctx, libc_feresetroundf_ctx)
40315         (libc_feresetroundl_ctx, libc_feresetround_noex_aarch64_ctx)
40316         (libc_feresetround_noex_ctx, libc_feresetround_noexf_ctx)
40317         (libc_feresetround_noexl_ctx): Define.
40318
40319 2014-04-16  Richard Henderson  <rth@redhat.com>
40320
40321         * sysdeps/unix/sysv/linux/alpha/nptl/pthread_once.c: Remove.
40322
40323         * sysdeps/alpha/Makefile [debug] (CFLAGS-backtrace.c): Enable
40324         unwind tables.
40325
40326         * sysdeps/unix/alpha/sysdep.h (__pointer_chk_guard): Remove
40327         const from the non-libc, non-ldso copy.
40328
40329         * sysdeps/alpha/libm-test-ulps: Regenerate.
40330
40331 2014-04-16  Ian Bolton  <ian.bolton@arm.com>
40332             Wilco Dijkstra  <wilco.dijkstra@arm.com>
40333
40334         * sysdeps/aarch64/fpu/math_private.h: New file.
40335
40336 2014-04-16  Marcus Shawcroft  <marcus.shawcroft@arm.com>
40337
40338         * sysdeps/aarch64/libm-test-ulps: Regenerate.
40339
40340 2014-04-16  Igor Zamyatin  <igor.zamyatin@intel.com>
40341
40342         [BZ #16275]
40343         * sysdeps/x86_64/bits/link.h (La_x86_64_regs): Add lr_bnd.
40344         (La_x86_64_retval): Add lrv_bnd0 and lrv_bnd1.
40345         * sysdeps/x86_64/dl-trampoline.S (_dl_runtime_profile): Save
40346         Intel MPX bound registers before _dl_profile_fixup.
40347         * sysdeps/x86_64/dl-trampoline.h: Restore Intel MPX bound
40348         registers after _dl_profile_fixup.  Save and restore bound
40349         registers bnd0/bnd1 when calling _dl_call_pltexit.
40350         * sysdeps/x86_64/link-defines.sym (BND_SIZE): New.
40351         (LR_BND_OFFSET): Likewise.
40352         (LRV_BND0_OFFSET): Likewise.
40353         (LRV_BND1_OFFSET): Likewise.
40354
40355 2014-04-16  Samuel Thibault  <samuel.thibault@ens-lyon.org>
40356
40357         * sysdeps/mach/hurd/tls.h (dtv, dtv_t, tcbhead_t): Move declarations
40358         to...
40359         * sysdeps/mach/hurd/i386/tls.h: ... here.
40360         (tcbhead_t): Add multiple_threads, sysinfo, stack_guard,
40361         pointer_guard, gscope_flag, private_futex, __private_tm, __private_ss
40362         fields.
40363
40364 2014-04-16  Samuel Thibault  <samuel.thibault@ens-lyon.org>
40365
40366         * sysdeps/mach/munmap.c (__munmap): Return EINVAL if `addr' is 0.
40367
40368 2014-04-16  Stefan Liebler  <stli@linux.vnet.ibm.com>
40369
40370         * sysdeps/s390/fpu/libm-test-ulps: Regenerate.
40371
40372 2014-04-16  Stefan Liebler  <stli@linux.vnet.ibm.com>
40373
40374         [BZ #14770]
40375         * sysdeps/s390/configure.ac: Check for Binutils >= 2.24.
40376         * sysdeps/s390/configure: Regenerate.
40377
40378         [BZ #16824]
40379         * sysdeps/ieee754/ldbl-128/e_j1l.c (__ieee754_y1l):
40380         Set round-to-nearest internally to reduce error accumulation.
40381
40382 2014-04-16  Alan Modra  <amodra@gmail.com>
40383
40384         [BZ #16740]
40385         [BZ #16619]
40386         * sysdeps/ieee754/ldbl-128ibm/s_frexpl.c (__frexpl): Rewrite.
40387         * math/libm-test.inc (frexp_test_data): Add tests.
40388         * NEWS: Update fixed bug list.
40389
40390 2014-04-15  Siddhesh Poyarekar  <siddhesh@redhat.com>
40391
40392         * benchtests/Makefile: Depend on libraries in build directory.
40393         (bench-math): Separate out math tests.
40394         (bench-pthread): Separate out pthread tests.
40395         (bench): Include math and pthread tests.
40396
40397 2014-04-14  Carlos O'Donell  <carlos@redhat.com>
40398
40399         [BZ #16831]
40400         * csu/libc-start.c (LIBC_START_MAIN) [!SHARED]: Call
40401         _dl_debug_initialize.
40402
40403         * configure.ac: Remove SELinux header check.
40404         * configure: Regenerate.
40405         * nscd/selinux.c (perms): Array of const char* to permission names.
40406         (nscd_request_avc_has_perm): Call security_deny_unknown to find
40407         default policy. Call string_to_security_class and string_to_av_perm to
40408         translate strings. Enforce default policy and call avs_has_perm with
40409         results of translated strings.
40410
40411 2014-04-13  David S. Miller  <davem@davemloft.net>
40412
40413         * sysdeps/sparc/fpu/libm-test-ulps: Update.
40414
40415 2014-04-12  Allan McRae  <allan@archlinux.org>
40416
40417         [BZ #16838]
40418         * manual/string.texi (Collation Functions): Fix qsort argument
40419         order in example.
40420         Reported by David C. Rankin <drankinatty@suddenlinkmail.com>.
40421
40422 2014-04-11  Chris Metcalf  <cmetcalf@tilera.com>
40423
40424         * math/test-fenv-preserve.c [FE_ALL_EXCEPT == 0] (do_test):
40425         Make the test a no-op if there are no exceptions defined.
40426
40427 2014-04-11  Paul Pluzhnikov  <ppluzhnikov@google.com>
40428
40429         * elf/Makefile (tests): make tst-dlopen-aout conditional on
40430         enable-hardcoded-path-in-tests
40431
40432 2014-04-11  Will Newton  <will.newton@linaro.org>
40433
40434         * benchtests/Makefile (extra-objs): Add json-lib.o.
40435         (bench-func): Tidy up JSON output.
40436         * benchtests/bench-skeleton.c: Include json-lib.h.
40437         (main): Use JSON library functions to do output of
40438         benchmark results.
40439         * benchtests/bench-timing-type.c (main): Output the
40440         timing type simply, leaving formatting to the user.
40441         * benchtests/json-lib.c: New file.
40442         * benchtests/json-lib.h: Likewise.
40443
40444 2014-04-11  Torvald Riegel  <triegel@redhat.com>
40445
40446         [BZ #15215]
40447         * nptl/sysdeps/unix/sysv/linux/sparc/pthread_once.c: Moved to ...
40448         * nptl/sysdeps/unix/sysv/linux/pthread_once.c: ... here.  Add missing
40449         memory barriers.  Add comments.
40450         * sysdeps/unix/sysv/linux/aarch64/nptl/pthread_once.c: Remove file.
40451         * sysdeps/unix/sysv/linux/arm/nptl/pthread_once.c: Remove file.
40452         * sysdeps/unix/sysv/linux/ia64/nptl/pthread_once.c: Remove file.
40453         * sysdeps/unix/sysv/linux/m68k/nptl/pthread_once.c: Remove file.
40454         * sysdeps/unix/sysv/linux/mips/nptl/pthread_once.c: Remove file.
40455         * sysdeps/unix/sysv/linux/tile/nptl/pthread_once.c: Remove file.
40456
40457 2014-04-11  Stefan Liebler  <stli@linux.vnet.ibm.com>
40458
40459         * sysdeps/s390/s390-32/configure.ac: Unify file with ...
40460         * sysdeps/s390/s390-64/configure.ac: ... this ...
40461         * sysdeps/s390/configure.ac: ... to here.
40462         * sysdeps/s390/s390-32/configure: Delete file.
40463         * sysdeps/s390/s390-64/configure: Delete file.
40464         * sysdeps/s390/configure: Regenerate.
40465
40466 2014-04-11  Joseph Anthony Pasquale Holsten  <joseph@josephholsten.com>
40467
40468         * resolv/res_query.c (__libc_res_nsearch): Fix typo in comment.
40469
40470 2014-04-11  Will Newton  <will.newton@linaro.org>
40471
40472         * malloc/malloc.c [!MALLOC_DEBUG]: #define MALLOC_DEBUG
40473         to zero if it is not defined elsewhere.  (mtrim): Test
40474         the value of MALLOC_DEBUG with #if rather than #ifdef.
40475
40476 2014-04-10 Torvald Riegel  <triegel@redhat.com>
40477
40478         * benchtests/pthread_once-inputs: New file.
40479         * benchtests/pthread_once-source.c: New file.
40480         * benchtests/README: Update documentation.
40481
40482 2014-04-09  Igor Zamyatin  <igor.zamyatin@intel.com>
40483             H.J. Lu  <hongjiu.lu@intel.com>
40484
40485         [BZ #16275]
40486         * config.h.in (HAVE_MPX_SUPPORT): New #undef.
40487         * sysdeps/x86_64/configure.ac: Set HAVE_MPX_SUPPORT.
40488         * sysdeps/x86_64/configure: Regenerated.
40489         * sysdeps/x86_64/dl-trampoline.S (REGISTER_SAVE_AREA): New
40490         macro.
40491         (REGISTER_SAVE_RAX): Likewise.
40492         (REGISTER_SAVE_RCX): Likewise.
40493         (REGISTER_SAVE_RDX): Likewise.
40494         (REGISTER_SAVE_RSI): Likewise.
40495         (REGISTER_SAVE_RDI): Likewise.
40496         (REGISTER_SAVE_R8): Likewise.
40497         (REGISTER_SAVE_R9): Likewise.
40498         (REGISTER_SAVE_BND0): Likewise.
40499         (REGISTER_SAVE_BND1): Likewise.
40500         (REGISTER_SAVE_BND2): Likewise.
40501         (_dl_runtime_resolve): Use them.  Save and restore Intel MPX
40502         bound registers when calling _dl_fixup.
40503
40504 2014-04-09  Adhemerval Zanella  <azanella@linux.vnet.ibm.com>
40505
40506         * bits/string.h (_STRING_ARCH_unaligned): Define it to 0.
40507         * crypt/sha256.c (_STRING_ARCH_unaligned): Check its value instead
40508         of its definition.
40509         * iconv/gconv_simple.c (_STRING_ARCH_unaligned): Likewise.
40510         * iconv/loop.c (_STRING_ARCH_unaligned): Likewise.
40511         * iconv/skeleton.c (_STRING_ARCH_unaligned): Likewise.
40512         * nscd/nscd_gethst_r.c (_STRING_ARCH_unaligned): Likewise.
40513         * nscd/nscd_getserv_r.c (_STRING_ARCH_unaligned): Likewise.
40514         * nscd/nscd_helper.c (_STRING_ARCH_unaligned): Likewise.
40515         * resolv/res_send.c (_STRING_ARCH_unaligned): Likewise.
40516
40517 2014-04-09  Peter Brett  <peter@peter-b.co.uk>
40518
40519         [BZ #15514]
40520         * sysdeps/posix/pathconf.c (__pathconf): Use statvfs64() for
40521         pathconf(_PC_NAME_MAX).
40522
40523 2014-04-09  Adhemerval Zanella  <azanella@linux.vnet.ibm.com>
40524
40525         * nptl/sysdeps/pthread/pthread.h (__PTHREAD_MUTEX_HAVE_ELISION):
40526         Remove macro usage.
40527         (__PTHREAD_SPINS): Move definition to ...
40528         * nptl/sysdeps/unix/sysv/linux/powerpc/bits/pthreadtypes.h
40529         (__PTHREAD_SPINS): ... here.
40530         * nptl/sysdeps/unix/sysv/linux/s390/bits/pthreadtypes.h
40531         (__PTHREAD_SPIN): Likewise.
40532         * nptl/sysdeps/unix/sysv/linux/sh/bits/pthreadtypes.h
40533         (__PTHREAD_SPIN): Likewise.
40534         * nptl/sysdeps/unix/sysv/linux/sparc/bits/pthreadtypes.h
40535         (__PTHREAD_SPIN): Likewise.
40536         * nptl/sysdeps/unix/sysv/linux/x86/bits/pthreadtypes.h
40537         (__PTHREAD_SPIN): Likewise.
40538         * sysdeps/unix/sysv/linux/aarch64/nptl/bits/pthreadtypes.h
40539         (__PTHREAD_SPIN): Likewise.
40540         * sysdeps/unix/sysv/linux/alpha/nptl/bits/pthreadtypes.h
40541         (__PTHREAD_SPIN): Likewise.
40542         * sysdeps/unix/sysv/linux/arm/nptl/bits/pthreadtypes.h
40543         (__PTHREAD_SPIN): Likewise.
40544         * sysdeps/unix/sysv/linux/ia64/nptl/bits/pthreadtypes.h
40545         (__PTHREAD_SPIN): Likewise.
40546         * sysdeps/unix/sysv/linux/m68k/nptl/bits/pthreadtypes.h
40547         (__PTHREAD_SPIN): Likewise.
40548         * sysdeps/unix/sysv/linux/microblaze/nptl/bits/pthreadtypes.h
40549         (__PTHREAD_SPIN): Likewise.
40550         * sysdeps/unix/sysv/linux/mips/nptl/bits/pthreadtypes.h
40551         (__PTHREAD_SPIN): Likewise.
40552         * sysdeps/unix/sysv/linux/tile/nptl/bits/pthreadtypes.h
40553         (__PTHREAD_SPIN): Likewise.
40554
40555         * sysdeps/powerpc/powerpc32/power6x/fpu/Implies: New file.
40556         * sysdeps/powerpc/powerpc64/power6x/fpu/Implies: new file.
40557         * sysdeps/powerpc/powerpc64/power6x/multiarch/Implies: New file.
40558         * sysdeps/powerpc/powerpc64/power5+/fpu/Implies: Remove multiarch
40559         imply folder.
40560         * sysdeps/powerpc/powerpc64/power5/fpu/Implies: Likewise.
40561         * sysdeps/powerpc/powerpc64/power7/fpu/Implies: Likewise.
40562         * sysdeps/powerpc/powerpc64/power8/fpu/Implies: Likewise.
40563         * sysdeps/powerpc/powerpc64/power6x/fpu/multiarch/Implies: Adjust
40564         correct imply path.
40565         * sysdeps/powerpc/powerpc64/power7/strncat.S (STRLEN): Define correct
40566         strlen symbol for non multi-arch builds.
40567         * sysdeps/powerpc/powerpc64/power8/fpu/s_isnan.S (__isnan): Add
40568         missing hidden_def and weak_alias.
40569
40570 2014-04-08  Carlos O'Donell  <carlos@redhat.com>
40571
40572         * manual/ipc.texi (sem_close): AC-unsafe because of aculock.
40573
40574 2014-04-07  Will Newton  <will.newton@linaro.org>
40575
40576         * string/basename.c [HAVE_CONFIG_H]: Remove #ifdef and
40577         and contents.  [!_LIBC] Remove #ifndef and contents.
40578         (basename): Use ANSI prototype.  [_LIBC] Remove #idef.
40579         * string/memccpy.c (__memccpy): Use ANSI prototype.
40580         * string/memfrob.c (memfrob): Likewise.
40581         * string/strcoll.c (STRCOLL): Likewise.
40582         * string/strlen.c (strlen): Likewise.
40583         * string/strtok.c (STRTOK): Likewise.
40584         * string/strcat.c: Remove unused #include of memcopy.h.
40585         (strcat): Use ANSI prototype.
40586         * string/strchr.c: Remove unused #include of memcopy.h.
40587         (strchr): Use ANSI prototype.
40588         * string/strcmp.c: Remove unused #include of memcopy.h.
40589         (strcmp): Use ANSI prototype.
40590         * string/strcpy.c: Remove unused #include of memcopy.h.
40591         (strcpy): Use ANSI prototype.
40592
40593 2014-04-06  Adhemerval Zanella  <azanella@linux.vnet.ibm.com>
40594
40595         * Makeconfig (CPPFLAGS): Add config-extra-cppflags to list.
40596         * config.make.in (config-extra-cppflags): Set it from
40597         libc_extra_cppflags.
40598         * configure.ac (libc_extra_cflags): Make it accumulate over
40599         configure fragments.
40600         (libc_extra_cppflags): New flag.
40601         * configure. Regenerate.
40602         * sysdeps/unix/sysv/linux/powerpc/powerpc64/configure.ac
40603         (libc_cv_ppc64_def_call_elf): Define it to yes if compiler does
40604         not set _CALL_ELF and add -D_CALL_ELF=1 to libc_extra_cppflags.
40605         * sysdeps/unix/sysv/linux/powerpc/powerpc64/configure: Regenerate.
40606
40607         [BZ #16815]
40608         * sysdeps/powerpc/powerpc32/fpu/s_nearbyint.S (__nearbyint): Fix
40609         result for FE_DOWNWARD rounding mode.
40610         * sysdeps/powerpc/powerpc32/fpu/s_nearbyintf.S (__nearbyintf):
40611         Likewise.
40612         * sysdeps/powerpc/fpu/libm-test-ulps: Update.
40613
40614 2014-04-04  Chris Metcalf  <cmetcalf@tilera.com>
40615
40616         * sysdeps/tile/dl-runtime.c (_dl_unmap): Fix cut-and-paste bug
40617         in function argument name.
40618
40619 2014-04-03  David Svoboda  <svoboda@cert.org>
40620
40621         [BZ #5666]
40622         * manual/stdio.texi (Line-Oriented Input): Document buffer allocation
40623         explicitly.
40624
40625 2014-04-03  Roland McGrath  <roland@hack.frob.com>
40626
40627         * elf/dl-unmap-segments.h: New file.
40628         * sysdeps/generic/ldsodefs.h
40629         (DL_UNMAP): Use _dl_unmap_segments in place of __munmap.
40630         * elf/dl-close.c: Include <dl-unmap-segments.h>.
40631         * elf/dl-fptr.c: Likewise.
40632         (_dl_unmap): Use _dl_unmap_segments in place of __munmap.
40633         * sysdeps/aarch64/tlsdesc.c: Likewise.
40634         * sysdeps/arm/tlsdesc.c: Likewise.
40635         * sysdeps/i386/tlsdesc.c: Likewise.
40636         * sysdeps/tile/dl-runtime.c: Likewise.
40637         * sysdeps/x86_64/tlsdesc.c: Likewise.
40638         * elf/dl-load.h: New file.
40639         * elf/dl-load.c: Include it.
40640         (MAP_FILE, MAP_COPY, MAP_BASE_ADDR):
40641         Macros moved to dl-load.h.
40642         (ELF_PREFERRED_ADDRESS_DATA, ELF_PREFERRED_ADDRESS): Likewise.
40643         (_dl_map_object_from_fd): Type 'struct loadcmd' moved to dl-load.h.
40644         Use _dl_unmap_segments in place of __munmap.
40645         Break out segment-mapping loop into ...
40646         * elf/dl-map-segments.h (_dl_map_segments): ... here, in new file.
40647
40648 2014-04-03  Will Newton  <will.newton@linaro.org>
40649
40650         * elf/dl-lookup.c (do_lookup_x): Remove comment
40651         referring to nested function and move variable
40652         declarations down to before first use.
40653
40654 2014-04-02  Joseph Myers  <joseph@codesourcery.com>
40655
40656         [BZ #16799]
40657         [BZ #16800]
40658         * math/s_catan.c (__catan): Avoid passing -0 denominator to atan2
40659         with 0 numerator.
40660         * math/s_catanf.c (__catanf): Likewise.
40661         * math/s_catanh.c (__catanh): Likewise.
40662         * math/s_catanhf.c (__catanhf): Likewise.
40663         * math/s_catanhl.c (__catanhl): Likewise.
40664         * math/s_catanl.c (__catanl): Likewise.
40665         * sysdeps/ieee754/flt-32/e_logf.c (__ieee754_logf): Always divide
40666         by positive zero when computing -Inf result.
40667         * math/libm-test.inc (catan_test): Use ALL_RM_TEST.
40668         (catanh_test): Likewise.
40669         * sysdeps/i386/fpu/libm-test-ulps: Update.
40670         * sysdeps/x86_64/fpu/libm-test-ulps: Likewise.
40671
40672         [BZ #16789]
40673         * math/s_clog.c (__clog): Use math_force_eval to ensure underflow
40674         instead of using underflowing value in computing result.
40675         * math/s_clog10.c (__clog10): Likewise.
40676         * math/s_clog10f.c (__clog10f): Likewise.
40677         * math/s_clog10l.c (__clog10l): Likewise.
40678         * math/s_clogf.c (__clogf): Likewise.
40679         * math/s_clogl.c (__clogl): Likewise.
40680         * math/libm-test.inc (clog_test): Use ALL_RM_TEST.
40681         (clog10_test): Likewise.
40682         * sysdeps/i386/fpu/libm-test-ulps: Update.
40683         * sysdeps/x86_64/fpu/libm-test-ulps: Likewise.
40684
40685 2014-04-02  Alan Modra  <amodra@gmail.com>
40686
40687         [BZ #16739]
40688         * sysdeps/ieee754/ldbl-128ibm/s_nextafterl.c (__nextafterl): Correct
40689         output when value is near a power of two.  Use int64_t for lx and
40690         remove casts.  Use decimal rather than hex exponent constants.
40691         Don't use long double multiplication when double will suffice.
40692         * math/libm-test.inc (nextafter_test_data): Add tests.
40693         * NEWS: Add 16739 and 16786 to bug list.
40694
40695         * sysdeps/powerpc/powerpc64/power7/memrchr.S: Correct stream hint.
40696
40697         * sysdeps/powerpc/powerpc64/start.S: Add @toc to toc symbol reference.
40698
40699 2014-04-01  Will Newton  <will.newton@linaro.org>
40700
40701         * benchtests/Makefile (CFLAGS-bench-ffs.c): Add
40702         -fno-builtin.  (CFLAGS-bench-ffsll.c): Likewise.
40703
40704 2014-04-01  Florian Weimer  <fweimer@redhat.com>
40705
40706         [BZ #13347]
40707         * nptl/nptl-init.c (sighandler_setxid): Check system call result.
40708         * nptl/tst-setuid2.c: New file.
40709         * nptl/Makefile (xtests): Add tst-setuid2.
40710
40711 2014-04-01  Alan Modra  <amodra@gmail.com>
40712
40713         [BZ #16786]
40714         * sysdeps/powerpc/powerpc64/fpu/s_copysign.S: Don't trash stack.
40715
40716 2014-03-31  Joseph Myers  <joseph@codesourcery.com>
40717
40718         [BZ #6803]
40719         [BZ #6804]
40720         * math/w_scalb.c (__scalb): For non-SVID mode, check result and
40721         set errno as appropriate.
40722         * math/w_scalbf.c (__scalbf): Likewise.
40723         * math/w_scalbl.c (__scalbl): Likewise.
40724         * math/gen-libm-test.pl (parse_args): Handle ERRNO_PLUS_OFLOW,
40725         ERRNO_MINUS_OFLOW, ERRNO_PLUS_UFLOW and ERRNO_MINUS_UFLOW.
40726         * math/libm-test.inc (scalb_test_data): Add errno expectations.
40727         Add more NaN tests.
40728
40729         [BZ #16349]
40730         * math/w_atan2.c: Include <errno.h>.
40731         (__atan2): Set errno for result underflowing to zero.
40732         * math/w_atan2f.c: Include <errno.h>.
40733         (__atan2f): Set errno for result underflowing to zero.
40734         * math/w_atan2l.c: Include <errno.h>.
40735         (__atan2l): Set errno for result underflowing to zero.
40736         * math/auto-libm-test-in: Don't allow missing errno for some atan2
40737         tests.
40738         * math/auto-libm-test-out: Regenerated.
40739
40740 2014-03-31  Adhemerval Zanella  <azanella@linux.vnet.ibm.com>
40741
40742         * sysdeps/powerpc/powerpc64/power8/fpu/s_finite.S (MFVSRD_R3_V1):
40743         Encode instruction correctly in little endian.
40744         * sysdeps/powerpc/powerpc64/power8/fpu/s_isinf.S (MFVSRD_R3_V1):
40745         Likewise.
40746         * sysdeps/powerpc/powerpc64/power8/fpu/s_isnan.S (MFVSRD_R3_V1):
40747         Likewise.
40748         * sysdeps/powerpc/powerpc64/power8/fpu/s_llrint.S (MFVSRD_R3_V1):
40749         Likewise.
40750         * sysdeps/powerpc/powerpc64/power8/fpu/s_llround.S (MFVSRD_R3_V1):
40751         Likewise.
40752
40753 2014-03-31  Joseph Myers  <joseph@codesourcery.com>
40754
40755         [BZ #9894]
40756         * sysdeps/unix/sysv/linux/kernel-features.h
40757         [__sparc__ && !__arch64__ && !__sparc_v9__]
40758         (__ASSUME_SET_ROBUST_LIST): Do not define.
40759         [__sparc__ && !__arch64__ && !__sparc_v9__]
40760         (__ASSUME_FUTEX_LOCK_PI): Likewise.
40761         [__sparc__ && !__arch64__ && !__sparc_v9__] (__ASSUME_REQUEUE_PI):
40762         Likewise.
40763         * sysdeps/unix/sysv/linux/arm/kernel-features.h
40764         (__ASSUME_FUTEX_LOCK_PI): Undefine.
40765         (__ASSUME_REQUEUE_PI): Likewise.
40766         (__ASSUME_SET_ROBUST_LIST): Likewise.
40767         * sysdeps/unix/sysv/linux/m68k/kernel-features.h
40768         [__LINUX_KERNEL_VERSION < 0x030a00] (__ASSUME_FUTEX_LOCK_PI):
40769         Undefine.
40770         * sysdeps/unix/sysv/linux/microblaze/kernel-features.h
40771         [__LINUX_KERNEL_VERSION < 0x020621] (__ASSUME_FUTEX_LOCK_PI):
40772         Likewise.
40773         [__LINUX_KERNEL_VERSION < 0x020621] (__ASSUME_REQUEUE_PI):
40774         Likewise.
40775         [__LINUX_KERNEL_VERSION < 0x020621] (__ASSUME_SET_ROBUST_LIST):
40776         Likewise.
40777         * sysdeps/unix/sysv/linux/mips/kernel-features.h
40778         [__mips == 1 || _MIPS_ARCH_R5900] (__ASSUME_FUTEX_LOCK_PI):
40779         Undefine.
40780         [__mips == 1 || _MIPS_ARCH_R5900] (__ASSUME_REQUEUE_PI): Likewise.
40781         [__mips == 1 || _MIPS_ARCH_R5900] (__ASSUME_SET_ROBUST_LIST):
40782         Likewise.
40783
40784         [BZ #16648]
40785         * sysdeps/unix/sysv/linux/microblaze/kernel-features.h
40786         [__LINUX_KERNEL_VERSION >= 0x020621] (__ASSUME_FUTIMESAT): Define.
40787         * sysdeps/unix/sysv/linux/microblaze/futimesat.c: New file.
40788
40789 2014-03-31  Will Newton  <will.newton@linaro.org>
40790
40791         * benchtests/Makefile (bench): Add ffs and ffsll to list
40792         of tests.
40793         * benchtests/ffs-inputs: New file.
40794         * benchtests/ffsll-inputs: Likewise.
40795
40796 2014-03-29  Joseph Myers  <joseph@codesourcery.com>
40797
40798         [BZ #16770]
40799         * math/e_scalb.c (__ieee754_scalb): Check second argument is not
40800         too large before casting to int.
40801         * math/e_scalbf.c (__ieee754_scalbf): Likewise.
40802         * math/e_scalbl.c (__ieee754_scalbl): Likewise.
40803         * math/libm-test.inc (scalb_test_data): Add more tests.
40804
40805 2014-03-29  Siddhesh Poyarekar  <siddhesh@redhat.com>
40806
40807         * benchtests/Makefile (DETAILED_OPT): New make option.
40808         (bench-func): Run benchmark program with -d if DETAILED_OPT is
40809         set.
40810         * benchtests/bench-skeleton.c: Include stdbool.h.
40811         (main): Store and print timings per input.
40812         * benchtests/scripts/bench.py (STRUCT_TEMPLATE): Add timing
40813         member to each argument value.
40814         (EPILOGUE): Define new macros RESULT and RESULT_ACCUM.
40815         (_print_arg_data): Initialize per-input timing to 0.
40816
40817         * benchtests/Makefile (timing-type): New binary.
40818         (bench-clean): Also remove bench-timing-type.
40819         (bench): New target for timing-type.
40820         (bench-func): Print output in JSON format.
40821         * benchtests/bench-skeleton.c (main): Print output in JSON
40822         format.
40823         * benchtests/bench-timing-type.c: New file.
40824         * benchtests/bench-timing.h (TIMING_TYPE): New macro.
40825         (TIMING_PRINT_STATS): Remove.
40826         * benchtests/scripts/bench.py (_print_arg_data): Store variant
40827         name separately.
40828
40829         * benchtests/bench-modf.c: Remove.
40830         * benchtests/modf-inputs: New inputs file.
40831
40832 2014-03-28  Joseph Myers  <joseph@codesourcery.com>
40833
40834         [BZ #16362]
40835         * math/s_clog10.c (M_PI_LOG10E): New macro.
40836         (__clog10): Use M_PI_LOG10E instead of M_PI when real and
40837         imaginary parts are 0.
40838         * math/s_clog10f.c (M_PI_LOG10Ef): New macro.
40839         (__clog10f): Use M_PI_LOG10Ef instead of M_PI when real and
40840         imaginary parts are 0.
40841         * math/s_clog10l.c (M_PI_LOG10El): New macro.
40842         (__clog10l): Use M_PI_LOG10El instead of M_PIl when real and
40843         imaginary parts are 0.
40844         * math/libm-test.inc (clog10_test_data): Update expected results
40845         for when real and imaginary parts are 0.
40846
40847 2014-03-27  Paul Pluzhnikov  <ppluzhnikov@google.com>
40848
40849         * elf/dl-load.c: Finish conversion of __builtin_expect into
40850         __glibc_{un}likely.
40851
40852 2014-03-27  Joseph Myers  <joseph@codesourcery.com>
40853
40854         [BZ #16348]
40855         * sysdeps/i386/fpu/e_expl.S (IEEE754_EXPL) [!USE_AS_EXPM1L]: Use
40856         1+x for argument with exponent below -67.
40857         * sysdeps/x86_64/fpu/e_expl.S (IEEE754_EXPL) [!USE_AS_EXPM1L]:
40858         Likewise.
40859         * math/auto-libm-test-in: Add more tests of exp.
40860         * math/auto-libm-test-out: Regenerated.
40861
40862 2014-03-27  Siddhesh Poyarekar  <siddhesh@redhat.com>
40863
40864         [BZ #16759]
40865         * inet/getnetgrent_r.c (get_nonempty_val): New function.
40866         (nscd_getnetgrent): Use it.
40867
40868         [BZ #16760]
40869         * nscd/netgroupcache.c (addgetnetgrentX): Use memmove instead
40870         of stpcpy.
40871
40872 2014-03-27  Andi Kleen  <ak@linux.intel.com>
40873
40874         * nptl/sysdeps/unix/sysv/linux/x86_64/lowlevellock.h (lll_lock)
40875         (lll_robust_lock, lll_cond_lock, lll_timedlock)
40876         (lll_robust_cond_lock, lll_robust_timedlock, lll_unlock)
40877         (lll_robust_unlock): Remove out of line section. Use cfi
40878         intrinsics.
40879         (LLL_STUB_UNWIND_INFO*): Remove.
40880         * nptl/sysdeps/unix/sysv/linux/i386/lowlevellock.h (lll_lock)
40881         (lll_robust_lock, lll_cond_lock, lll_timedlock)
40882         (lll_robust_cond_lock, lll_robust_timedlock, lll_unlock)
40883         (lll_robust_unlock): Remove out of line section. Use cfi
40884         intrinsics.
40885         (LLL_STUB_UNWIND_INFO*): Remove.
40886
40887 2014-03-27  Siddhesh Poyarekar  <siddhesh@redhat.com>
40888
40889         [BZ #16758]
40890         * nscd/netgroupcache.c (addinnetgrX): Succeed if triplet has
40891         blank values.
40892
40893 2014-03-26  Paul Pluzhnikov  <ppluzhnikov@google.com>
40894
40895         * elf/dl-load.c: Convert __builtin_expect into __glibc_{un}likely.
40896
40897 2014-03-26  Joseph Myers  <joseph@codesourcery.com>
40898
40899         [BZ #16198]
40900         * sysdeps/x86_64/fpu/fegetenv.c (fegetenv): Use fldenv after
40901         fnstenv.
40902         * math/test-fenv-preserve.c: New file.
40903         * math/Makefile (tests): Add test-fenv-preserve.
40904
40905 2014-03-26  Will Newton <will.newton@linaro.org>
40906
40907         * benchtests/bench-strtod.c (TIMEOUT): Define to 10.
40908
40909 2014-03-25  Roland McGrath  <roland@hack.frob.com>
40910
40911         * scripts/versionlist.awk: Partition the version sets and emit all
40912         GLIBC_* (sorted) before all others (sorted).
40913
40914 2014-03-25  Joseph Myers  <joseph@codesourcery.com>
40915
40916         * elf/Versions (libc) [EXPORT_UNWIND_FIND_FDE]: Add empty
40917         GLIBC_2.2.5 version.
40918
40919 2014-03-25 Adhemerval Zanella  <azanella@linux.vnet.ibm.com>
40920
40921         * scripts/localplt.awk: Check for PLT generated by internal IFUNC
40922         calls.
40923
40924         * nptl/sysdeps/unix/sysv/linux/powerpc/bits/pthreadtypes.h: Revert
40925         previous change.
40926
40927         * sysdeps/powerpc/fpu/libm-test-ulps: Update.
40928
40929 2014-03-25  Andreas Schwab  <schwab@suse.de>
40930
40931         * sysdeps/unix/sysv/linux/check_pf.c (make_request): Add out_fail2
40932         label to be used after in6ailist is initialized.
40933
40934 2014-03-25  Adhemerval Zanella  <azanella@linux.vnet.ibm.com>
40935
40936         * nptl/sysdeps/unix/sysv/linux/powerpc/bits/pthreadtypes.h
40937         (__PTHREAD_MUTEX_HAVE_ELISION): New define.
40938
40939 2014-03-25  Joseph Myers  <joseph@codesourcery.com>
40940
40941         [BZ #16357]
40942         [BZ #16599]
40943         * math/gen-auto-libm-tests.c (fp_format_desc): Add field
40944         min_plus_half.
40945         (fp_formats): Update initializers.
40946         (init_fp_formats): Initialize new field.
40947         (output_for_one_input_case): Allow underflow for results up to
40948         min_plus_half.
40949         * math/libm-test.inc (log1p_test): Use ALL_RM_TEST.
40950         * math/auto-libm-test-in: Don't mark some underflows from asin and
40951         atanh as spurious.
40952         * math/auto-libm-test-out: Regenerated.
40953         * sysdeps/i386/fpu/libm-test-ulps: Update.
40954         * sysdeps/x86_64/fpu/libm-test-ulps: Likewise.
40955
40956 2014-03-25  Andreas Schwab  <schwab@suse.de>
40957
40958         * libio/Makefile (tst-ftell-partial-wide-ENV)
40959         (tst-ftell-active-handler-ENV): Define.
40960
40961 2014-03-25  Stefan Liebler <stli@linux.vnet.ibm.com>
40962
40963         * NEWS: Add 16712, 16713, 16714 to fixed bug list.
40964
40965 2014-03-24  Paul Pluzhnikov  <ppluzhnikov@google.com>
40966
40967         * elf/tst-dlopen-aout.c: Adjust comments. Use test-skeleton.c
40968
40969 2014-03-24  Joseph Myers  <joseph@codesourcery.com>
40970
40971         * sysdeps/ieee754/dbl-64/e_exp.c: Include <math.h>.
40972         * sysdeps/x86_64/fpu/multiarch/e_exp.c
40973         [HAVE_FMA4_SUPPORT || HAVE_AVX_SUPPORT]: Likewise.
40974
40975 2014-03-24  Paul Pluzhnikov  <ppluzhnikov@google.com>
40976
40977         [BZ #16634]
40978         * elf/dl-load.c (open_verify): Add mode parameter.
40979         Error early when ET_EXEC and mode does not have __RTLD_OPENEXEC.
40980         (open_path): Change from boolean 'secure' to complete flag 'mode'
40981         (_dl_map_object): Adjust.
40982         * elf/Makefile (tests): Add tst-dlopen-aout.
40983         * elf/tst-dlopen-aout.c: New test.
40984
40985 2014-03-24  Stefan Liebler <stli@linux.vnet.ibm.com>
40986
40987         [BZ #16714]
40988         * sysdeps/unix/sysv/linux/s390/bits/stat.h
40989         (struct stat): Rename member pad0 to __glibc_reserved0.
40990
40991         [BZ #16712]
40992         * sysdeps/s390/s390-32/bits/wordsize.h
40993         (__WORDSIZE32_SIZE_ULONG): New define.
40994         * sysdeps/s390/s390-64/bits/wordsize.h
40995         (__WORDSIZE32_SIZE_ULONG): Likewise.
40996         * sysdeps/generic/stdint.h (SIZE_MAX):
40997         Define as UL if __WORDSIZE32_SIZE_ULONG.
40998
40999         [BZ #16713]
41000         * sysdeps/unix/sysv/linux/s390/bits/sigaction.h
41001         (__glibc_reserved0): New variable.
41002         (sa_flags): Change type to int.
41003
41004         * posix/Makefile (before-compile): Use += before-compile instead
41005         of a :=.
41006
41007         * nptl/sysdeps/unix/sysv/linux/s390/bits/pthreadtypes.h
41008         (__PTHREAD_MUTEX_HAVE_ELISION): New define.
41009
41010 2014-03-20  Andreas Schwab  <schwab@suse.de>
41011
41012         [BZ #16743]
41013         * sysdeps/posix/getaddrinfo.c (gaih_inet): Properly skip over
41014         non-matching result from nscd.
41015
41016 2014-03-24  Siddhesh Poyarekar  <siddhesh@redhat.com>
41017
41018         * scripts/bench.py: Moved to ...
41019         * benchtests/scripts/bench.py: ... here.
41020         * benchtests/Makefile ($(objpfx)bench-%.c): Adjust.
41021
41022 2014-03-24  Andreas Schwab  <schwab@suse.de>
41023
41024         [BZ #16002]
41025         * sysdeps/unix/sysv/linux/check_pf.c (make_request): Use
41026         alloca_account and account alloca use for struct in6ailist.
41027
41028 2014-03-24  Joseph Myers  <joseph@codesourcery.com>
41029
41030         [BZ #16284]
41031         * sysdeps/ieee754/dbl-64/e_exp.c (__ieee754_exp): Use original
41032         rounding mode to recompute results that overflow to infinity or
41033         underflow to zero.
41034         * math/auto-libm-test-in: Don't mark tests as expected to fail for
41035         bug 16284.
41036         * math/auto-libm-test-out: Regenerated.
41037         * math/libm-test.inc (ccos_test): Use ALL_RM_TEST.
41038         (ccosh_test): Likewise.
41039         (csin_test_data): Use plus_oflow.
41040         (csin_test): Use ALL_RM_TEST.
41041         (csinh_test_data): Use plus_oflow.
41042         (csinh_test): Use ALL_RM_TEST.
41043         * sysdeps/i386/fpu/libm-test-ulps: Update.
41044         * sysdeps/x86_64/fpu/libm-test-ulps: Likewise.
41045
41046 2014-03-21  Joseph Myers  <joseph@codesourcery.com>
41047
41048         * sysdeps/mips/bits/wordsize.h: Include <sgidefs.h>.
41049         * sysdeps/unix/sysv/linux/mips/getrlimit64.c: Likewise.
41050         * sysdeps/unix/sysv/linux/mips/setrlimit64.c: Likewise.
41051
41052         [BZ #16731]
41053         * sysdeps/i386/fpu/e_log.S (__ieee754_log): Take absolute value
41054         when x - 1 is zero.
41055         * sysdeps/i386/fpu/e_logf.S (__ieee754_logf): Likewise.
41056         * sysdeps/i386/fpu/e_logl.S (__ieee754_logl): Likewise.
41057         * sysdeps/i386/i686/fpu/e_logl.S (__ieee754_logl): Likewise.
41058         * sysdeps/ieee754/dbl-64/e_log.c (__ieee754_log): Return +0 when
41059         argument is 1.
41060         * sysdeps/ieee754/ldbl-128/e_logl.c (__ieee754_logl): Likewise.
41061         * sysdeps/x86_64/fpu/e_logl.S: Take absolute value when x - 1 is
41062         zero.
41063         * math/libm-test.inc (log_test): Use ALL_RM_TEST.
41064         * sysdeps/i386/fpu/libm-test-ulps: Update.
41065         * sysdeps/x86_64/fpu/libm-test-ulps: Likewise.
41066
41067 2014-03-21  Siddhesh Poyarekar  <siddhesh@redhat.com>
41068
41069         * scripts/bench.pl: Remove file.
41070         * scripts/bench.py: New benchmark script.
41071         * benchtests/Makefile ($(objpfx)bench-%.c): Use it.
41072         * benchtests/README: Mention python dependency.
41073         * scripts/pylintrc: New file.
41074         * scripts/pylint: New file.
41075
41076         * bits/mathdef.h: Use #ifdef instead of #if.
41077         * sysdeps/arm/bits/mathdef.h [defined __USE_ISOC99 && defined
41078         _MATH_H && !defined _MATH_H_MATHDEF]: Likewise.
41079         * sysdeps/tile/bits/mathdef.h [defined __USE_ISOC99 && defined
41080         _MATH_H && !defined _MATH_H_MATHDEF]: Likewise.
41081         * sysdeps/x86/bits/mathdef.h [defined __USE_ISOC99 && defined
41082         _MATH_H && !defined _MATH_H_MATHDEF]: Likewise.
41083
41084 2014-03-20  Adhemerval Zanella  <azanella@linux.vnet.ibm.com>
41085             Vidya Ranganathan  <vidya@linux.vnet.ibm.com>
41086
41087         * string/strpbrk.c (strpbrk): Using macro to redefine symbol name.
41088         * sysdeps/powerpc/powerpc64/multiarch/Makefile: Add strpbrk-power7
41089         and strpbrk-ppc64 objects.
41090         * sysdeps/powerpc/powerpc64/multiarch/ifunc-impl-list.c
41091         (__libc_ifunc_impl_list): Add new strpbrk optimized symbols.
41092         * sysdeps/powerpc/powerpc64/multiarch/strpbrk-power7.S: New file:
41093         multiarch strpbrk for POWER7.
41094         * sysdeps/powerpc/powerpc64/multiarch/strpbrk-ppc64.c: New file:
41095         multiarch strpbrk for PPC64.
41096         * sysdeps/powerpc/powerpc64/multiarch/strpbrk.c: New file: strpbrk
41097         ifunc selector.
41098         * sysdeps/powerpc/powerpc64/power7/strpbrk.S: New file: optimited
41099         strpbrk for POWER7.
41100
41101 2014-03-20  Joseph Myers  <joseph@codesourcery.com>
41102
41103         * math/libm-test.inc (asinh_test): Use ALL_RM_TEST.
41104         (atan_test): Likewise.
41105         (atanh_test_data): Use NO_TEST_INLINE for two tests.
41106         (atanh_test): Use ALL_RM_TEST.
41107         (atan2_test_data): Likewise.
41108         (cabs_test): Likewise.
41109         (cacosh_test): Likewise.
41110         (carg_test): Likewise.
41111         (casin_test): Likewise.
41112         (casinh_test): Likewise.
41113         (cbrt_test): Likewise.
41114         (csqrt_test): Likewise.
41115         (erf_test): Likewise.
41116         (erfc_test): Likewise.
41117         (pow10_test): Likewise.
41118         (exp2_test): Likewise.
41119         (hypot_test): Likewise.
41120         (j0_test): Likewise.
41121         (j1_test): Likewise.
41122         (lgamma_test): Likewise.
41123         (gamma_test): Likewise.
41124         (sincos_test): Likewise.
41125         (tanh_test): Likewise.
41126         (y0_test): Likewise.
41127         (y1_test): Likewise.
41128         * sysdeps/i386/fpu/libm-test-ulps: Update.
41129         * sysdeps/x86_64/fpu/libm-test-ulps: Likewise.
41130
41131 2014-03-20  Adhemerval Zanella  <azanella@linux.vnet.ibm.com>
41132
41133         * string/strcspn.c (strcspn): Using macro to redefine symbol name.
41134         * sysdeps/powerpc/powerpc64/multiarch/Makefile: Add strcspn-power7
41135         and strcspn-ppc64 objects.
41136         * sysdeps/powerpc/powerpc64/multiarch/ifunc-impl-list.c
41137         (__libc_ifunc_impl_list): Add new strcspn optimized symbols.
41138         * sysdeps/powerpc/powerpc64/multiarch/strcspn-power7.S: New file:
41139         multiarch strcspn for POWER7.
41140         * sysdeps/powerpc/powerpc64/multiarch/strcspn-ppc64.c: New file:
41141         multiarch strcspn for PPC64.
41142         * sysdeps/powerpc/powerpc64/multiarch/strcspn.c: New file: strcspn
41143         ifunc selector.
41144         * sysdeps/powerpc/powerpc64/power7/strcspn.S: New file: optimited
41145         strcspn for POWER7.
41146
41147 2014-03-20  Joseph Myers  <joseph@codesourcery.com>
41148
41149         * math/gen-libm-test.pl (generate_testfile): Expect only function
41150         name as argument to AUTO_TESTS_* and pass results for all rounding
41151         modes to parse_args.
41152         (parse_auto_input): Separate inputs of automatic tests from
41153         outputs before storing in %auto_tests.
41154         * math/libm-test.inc (acos_test_data): Update call to
41155         AUTO_TESTS_f_f.
41156         (acos_test): Use ALL_RM_TEST.
41157         (acos_tonearest_test_data): Remove.
41158         (acos_test_tonearest): Likewise.
41159         (acos_towardzero_test_data): Likewise.
41160         (acos_test_towardzero): Likewise.
41161         (acos_downward_test_data): Likewise.
41162         (acos_test_downward): Likewise.
41163         (acos_upward_test_data): Likewise.
41164         (acos_test_upward): Likewise.
41165         (acosh_test_data): Update call to AUTO_TESTS_f_f.
41166         (asin_test_data): Likewise.
41167         (asin_test): Use ALL_RM_TEST.
41168         (asin_tonearest_test_data): Remove.
41169         (asin_test_tonearest): Likewise.
41170         (asin_towardzero_test_data): Likewise.
41171         (asin_test_towardzero): Likewise.
41172         (asin_downward_test_data): Likewise.
41173         (asin_test_downward): Likewise.
41174         (asin_upward_test_data): Likewise.
41175         (asin_test_upward): Likewise.
41176         (asinh_test_data): Update call to AUTO_TESTS_f_f.
41177         (atan_test_data): Likewise.
41178         (atanh_test_data): Likewise.
41179         (atan2_test_data): Update call to AUTO_TESTS_ff_f.
41180         (cabs_test_data): Update call to AUTO_TESTS_c_f.
41181         (carg_test_data): Likewise.
41182         (cbrt_test_data): Update call to AUTO_TESTS_f_f.
41183         (ccos_test_data): Update call to AUTO_TESTS_c_c.
41184         (ccosh_test_data): Likewise.
41185         (cexp_test_data): Likewise.
41186         (clog_test_data): Likewise.
41187         (clog10_test_data): Likewise.
41188         (cos_test_data): Update call to AUTO_TESTS_f_f.
41189         (cos_test): Use ALL_RM_TEST.
41190         (cos_tonearest_test_data): Remove.
41191         (cos_test_tonearest): Likewise.
41192         (cos_towardzero_test_data): Likewise.
41193         (cos_test_towardzero): Likewise.
41194         (cos_downward_test_data): Likewise.
41195         (cos_test_downward): Likewise.
41196         (cos_upward_test_data): Likewise.
41197         (cos_test_upward): Likewise.
41198         (cosh_test_data): Update call to AUTO_TESTS_f_f.
41199         (cosh_test): Use ALL_RM_TEST.
41200         (cosh_tonearest_test_data): Remove.
41201         (cosh_test_tonearest): Likewise.
41202         (cosh_towardzero_test_data): Likewise.
41203         (cosh_test_towardzero): Likewise.
41204         (cosh_downward_test_data): Likewise.
41205         (cosh_test_downward): Likewise.
41206         (cosh_upward_test_data): Likewise.
41207         (cosh_test_upward): Likewise.
41208         (cpow_test_data): Update call to AUTO_TESTS_cc_c.
41209         (csqrt_test_data): Update call to AUTO_TESTS_c_c.
41210         (ctan_test_data): Likewise.
41211         (ctan_test): Use ALL_RM_TEST.
41212         (ctan_tonearest_test_data): Remove.
41213         (ctan_test_tonearest): Likewise.
41214         (ctan_towardzero_test_data): Likewise.
41215         (ctan_test_towardzero): Likewise.
41216         (ctan_downward_test_data): Likewise.
41217         (ctan_test_downward): Likewise.
41218         (ctan_upward_test_data): Likewise.
41219         (ctan_test_upward): Likewise.
41220         (ctanh_test_data): Update call to AUTO_TESTS_c_c.
41221         (ctanh_test): Use ALL_RM_TEST.
41222         (ctanh_tonearest_test_data): Remove.
41223         (ctanh_test_tonearest): Likewise.
41224         (ctanh_towardzero_test_data): Likewise.
41225         (ctanh_test_towardzero): Likewise.
41226         (ctanh_downward_test_data): Likewise.
41227         (ctanh_test_downward): Likewise.
41228         (ctanh_upward_test_data): Likewise.
41229         (ctanh_test_upward): Likewise.
41230         (erf_test_data): Update call to AUTO_TESTS_f_f.
41231         (erfc_test_data): Likewise.
41232         (exp_test_data): Likewise.
41233         (exp_test): Use ALL_RM_TEST.
41234         (exp_tonearest_test_data): Remove.
41235         (exp_test_tonearest): Likewise.
41236         (exp_towardzero_test_data): Likewise.
41237         (exp_test_towardzero): Likewise.
41238         (exp_downward_test_data): Likewise.
41239         (exp_test_downward): Likewise.
41240         (exp_upward_test_data): Likewise.
41241         (exp_test_upward): Likewise.
41242         (exp10_test_data): Update call to AUTO_TESTS_f_f.
41243         (exp10_test): Use ALL_RM_TEST.
41244         (exp10_tonearest_test_data): Remove.
41245         (exp10_test_tonearest): Likewise.
41246         (exp10_towardzero_test_data): Likewise.
41247         (exp10_test_towardzero): Likewise.
41248         (exp10_downward_test_data): Likewise.
41249         (exp10_test_downward): Likewise.
41250         (exp10_upward_test_data): Likewise.
41251         (exp10_test_upward): Likewise.
41252         (exp2_test_data): Update call to AUTO_TESTS_f_f.
41253         (expm1_test_data): Likewise.
41254         (expm1_test): Use ALL_RM_TEST.
41255         (expm1_tonearest_test_data): Remove.
41256         (expm1_test_tonearest): Likewise.
41257         (expm1_towardzero_test_data): Likewise.
41258         (expm1_test_towardzero): Likewise.
41259         (expm1_downward_test_data): Likewise.
41260         (expm1_test_downward): Likewise.
41261         (expm1_upward_test_data): Likewise.
41262         (expm1_test_upward): Likewise.
41263         (fma_test_data): Update call to AUTO_TESTS_fff_f.
41264         (fma_test): Use ALL_RM_TEST.
41265         (fma_towardzero_test_data): Remove.
41266         (fma_test_towardzero): Likewise.
41267         (fma_downward_test_data): Likewise.
41268         (fma_test_downward): Likewise.
41269         (fma_upward_test_data): Likewise.
41270         (fma_test_upward): Likewise.
41271         (hypot_test_data): Update call to AUTO_TESTS_ff_f.
41272         (j0_test_data): Update call to AUTO_TESTS_f_f.
41273         (j1_test_data): Likewise.
41274         (jn_test_data): Update call to AUTO_TESTS_if_f.
41275         (lgamma_test_data): Update call to AUTO_TESTS_f_f1.
41276         (log_test_data): Update call to AUTO_TESTS_f_f.
41277         (log10_test_data): Likewise.
41278         (log1p_test_data): Likewise.
41279         (log2_test_data): Likewise.
41280         (pow_test_data): Update call to AUTO_TESTS_ff_f.
41281         (pow_tonearest_test_data): Likewise.
41282         (sin_test_data): Update call to AUTO_TESTS_f_f.
41283         (sin_test): Use ALL_RM_TEST.
41284         (sin_tonearest_test_data): Remove.
41285         (sin_test_tonearest): Likewise.
41286         (sin_towardzero_test_data): Likewise.
41287         (sin_test_towardzero): Likewise.
41288         (sin_downward_test_data): Likewise.
41289         (sin_test_downward): Likewise.
41290         (sin_upward_test_data): Likewise.
41291         (sin_test_upward): Likewise.
41292         (sincos_test_data): Update call to AUTO_TESTS_fFF_11.
41293         (sinh_test_data): Update call to AUTO_TESTS_f_f.
41294         (sinh_test): Use ALL_RM_TEST.
41295         (sinh_tonearest_test_data): Remove.
41296         (sinh_test_tonearest): Likewise.
41297         (sinh_towardzero_test_data): Likewise.
41298         (sinh_test_towardzero): Likewise.
41299         (sinh_downward_test_data): Likewise.
41300         (sinh_test_downward): Likewise.
41301         (sinh_upward_test_data): Likewise.
41302         (sinh_test_upward): Likewise.
41303         (sqrt_test_data): Update call to AUTO_TESTS_f_f.
41304         (sqrt_test): Use ALL_RM_TEST.
41305         (sqrt_tonearest_test_data): Remove.
41306         (sqrt_test_tonearest): Likewise.
41307         (sqrt_towardzero_test_data): Likewise.
41308         (sqrt_test_towardzero): Likewise.
41309         (sqrt_downward_test_data): Likewise.
41310         (sqrt_test_downward): Likewise.
41311         (sqrt_upward_test_data): Likewise.
41312         (sqrt_test_upward): Likewise.
41313         (tan_test_data): Update call to AUTO_TESTS_f_f.
41314         (tan_test): Use ALL_RM_TEST.
41315         (tan_tonearest_test_data): Remove.
41316         (tan_test_tonearest): Likewise.
41317         (tan_towardzero_test_data): Likewise.
41318         (tan_test_towardzero): Likewise.
41319         (tan_downward_test_data): Likewise.
41320         (tan_test_downward): Likewise.
41321         (tan_upward_test_data): Likewise.
41322         (tan_test_upward): Likewise.
41323         (tanh_test_data): Update call to AUTO_TESTS_f_f.
41324         (tgamma_test_data): Likewise.
41325         (y0_test_data): Likewise.
41326         (y1_test_data): Likewise.
41327         (yn_test_data): Update call to AUTO_TESTS_if_f.
41328         (main): Do not call removed functions.
41329
41330 2014-03-19  Joseph Myers  <joseph@codesourcery.com>
41331
41332         * math/libm-test.inc (fdim_test): Use ALL_RM_TEST.
41333         (ldexp_test_data): Remove.
41334         (ldexp_test): Move to after scalbn_test.  Use ALL_RM_TEST with
41335         scalbn_test_data.
41336         (scalb_test): Use ALL_RM_TEST.
41337
41338 2014-03-19  Andreas Schwab  <schwab@suse.de>
41339
41340         * nscd/nscd.service: Also invalidate netgroup cache on reload.
41341
41342 2014-03-19  Joseph Myers  <joseph@codesourcery.com>
41343
41344         [BZ #16649]
41345         * sysdeps/unix/sysv/linux/alpha/kernel-features.h
41346         [__LINUX_KERNEL_VERSION < 0x020621] (__ASSUME_PREADV): Undefine.
41347         [__LINUX_KERNEL_VERSION < 0x020621] (__ASSUME_PWRITEV): Likewise.
41348         * sysdeps/unix/sysv/linux/microblaze/kernel-features.h
41349         (__ASSUME_PREADV): Undefine.
41350         (__ASSUME_PWRITEV): Likewise.
41351
41352 2014-03-18  Roland McGrath  <roland@hack.frob.com>
41353
41354         * bits/mman-linux.h: Add comment about non-Linux use.
41355         * sysdeps/unix/sysv/linux/Makefile (sysdep_headers): Add comment about
41356         bits/mman-linux.h resting place.
41357
41358         * sysdeps/unix/sysv/linux/bits/mman-linux.h: Moved to ...
41359         * bits/mman-linux.h: ... here.
41360
41361 2014-03-18  Adhemerval Zanella  <azanella@linux.vnet.ibm.com>
41362
41363         * conform/conformtest.pl: Add standard definition when calling C
41364         preprocessor on data files.
41365         (checknamespace): Remove unused variable.
41366
41367 2014-03-18  Joseph Myers  <joseph@codesourcery.com>
41368
41369         * math/gen-libm-test.pl (parse_args): Handle plus_oflow,
41370         minus_oflow, plus_uflow and minus_uflow in expected results.
41371         * math/libm-test.inc (scalbn_test_data): Add more tests of
41372         negative arguments.  Use plus_oflow, minus_oflow, plus_uflow and
41373         minus_uflow.
41374         (scalbn_test): Use ALL_RM_TEST.
41375         (scalbln_test_data): Add more tests of negative arguments.  Use
41376         plus_oflow, minus_oflow, plus_uflow and minus_uflow.
41377         (scalbln_test): Use ALL_RM_TEST.
41378
41379 2014-03-18  Roland McGrath  <roland@hack.frob.com>
41380
41381         * scripts/abilist.awk: Ignore symbols marked with .hidden.
41382
41383 2014-03-18  Will Newton  <will.newton@linaro.org>
41384
41385         * sysdeps/unix/sysv/linux/aarch64/sysdep.h: Remove
41386         inaccurate comment.
41387
41388 2014-03-18  Joseph Myers  <joseph@codesourcery.com>
41389
41390         * Makerules [!subdir] (check-abi): Exit with error status if a
41391         test failed.
41392
41393 2014-03-17  Joseph Myers  <joseph@codesourcery.com>
41394
41395         * math/libm-test.inc (nearbyint_test_data): Include all tests used
41396         for rint.  Include results for all rounding modes.
41397         (nearbyint_test): Use ALL_RM_TEST.
41398         (rint_test_data): Include all tests used for nearbyint.
41399
41400 2014-03-17  Will Newton  <will.newton@linaro.org>
41401
41402         * nptl/sysdeps/pthread/pthread.h: Revert previous
41403         change.
41404
41405         * sysdeps/generic/ldsodefs.h: Revert previous
41406         change.
41407
41408         * libio/genops.c: Revert previous change.
41409         * libio/libioP.h: Likewise.
41410         * stdio-common/vfprintf.c: Likewise.
41411
41412         * sysdeps/generic/math_private.h: Revert previous
41413         change.
41414
41415         * sysdeps/generic/math_private.h: Check whether
41416         HAVE_RM_CTX is defined with #ifdef rather
41417         than #if.
41418
41419         * argp/argp-fmtstream.h: Check whether
41420         __STRICT_ANSI__ is defined with #ifdef rather
41421         than #if.
41422         * argp/argp.h: Likewise.
41423
41424         * libio/genops.c: Check whether
41425         _IO_JUMPS_OFFSET is defined with #ifdef rather
41426         than #if.
41427         * libio/libioP.h: Likewise.
41428         * stdio-common/vfprintf.c: Likewise.
41429
41430         * sysdeps/generic/ldsodefs.h: Check whether
41431         HP_SMALL_TIMING_AVAIL is defined with #ifdef rather
41432         than #if.
41433
41434         * nptl/sysdeps/pthread/pthread.h: Check
41435         __PTHREAD_MUTEX_HAVE_ELISION is defined before testing
41436         its value.
41437
41438 2014-03-17  Siddhesh Poyarekar  <siddhesh@redhat.com>
41439
41440         * libio/iofdopen.c (_IO_new_fdopen): Seek to end only if
41441         setting O_APPEND.
41442         * libio/tst-ftell-active-handler.c (do_append_test): Add a
41443         test case.
41444
41445         [BZ #16680]
41446         * libio/fileops.c (_IO_file_open): Seek to end of file but
41447         don't cache the offset.
41448         (get_file_offset): Remove function.
41449         (do_ftell): Use cached offset when available.
41450         * libio/iofdopen.c (_IO_new_fdopen): Seek to end of file but
41451         don't cache the offset.
41452         * libio/tst-ftell-active-handler.c (do_rewind_test): New test
41453         case.
41454         (do_one_test): Call it.
41455         (do_ftell_test): Fix up expected old offset for a+ mode.
41456         * libio/wfileops.c (do_ftell_wide): Used cached offset when
41457         available.
41458
41459         * libio/tst-ftell-active-handler.c (do_ftell_test): Don't mix
41460         up test status with function return status.
41461         (do_write_test): Likewise.
41462         (do_append_test): Likewise.
41463
41464         * nptl/sysdeps/pthread/bits/libc-lockP.h [defined NOT_IN_libc
41465         && !defined IS_IN_libpthread && __LT_SPINNOCK_INIT != 0]:
41466         Remove.
41467
41468 2014-03-17  Joseph Myers  <joseph@codesourcery.com>
41469
41470         * math/gen-libm-test.pl (parse_args): Handle results specified for
41471         each rounding mode separately.
41472         * math/libm-test.inc (lrint_test_data): Merge in per-rounding-mode
41473         tests and results from lrint_tonearest_test_data,
41474         lrint_towardzero_test_data, lrint_downward_test_data and
41475         lrint_upward_test_data.
41476         (lrint_test): Use ALL_RM_TEST.
41477         (lrint_tonearest_test_data): Remove.
41478         (lrint_test_tonearest): Likewise.
41479         (lrint_towardzero_test_data): Likewise.
41480         (lrint_test_towardzero): Likewise.
41481         (lrint_downward_test_data): Likewise.
41482         (lrint_test_downward): Likewise.
41483         (lrint_upward_test_data): Likewise.
41484         (lrint_test_upward): Likewise.
41485         (llrint_test_data): Merge in per-rounding-mode tests and results
41486         from llrint_tonearest_test_data, llrint_towardzero_test_data,
41487         llrint_downward_test_data and llrint_upward_test_data.
41488         (llrint_test): Use ALL_RM_TEST.
41489         (llrint_tonearest_test_data): Remove.
41490         (llrint_test_tonearest): Likewise.
41491         (llrint_towardzero_test_data): Likewise.
41492         (llrint_test_towardzero): Likewise.
41493         (llrint_downward_test_data): Likewise.
41494         (llrint_test_downward): Likewise.
41495         (llrint_upward_test_data): Likewise.
41496         (llrint_test_upward): Likewise.
41497         (rint_test_data): Merge in per-rounding-mode tests and results
41498         from rint_tonearest_test_data, rint_towardzero_test_data,
41499         rint_downward_test_data and rint_upward_test_data.  Add
41500         per-rounding-mode results for tests not in those arrays.
41501         (rint_test): Use ALL_RM_TEST.
41502         (rint_tonearest_test_data): Remove.
41503         (rint_test_tonearest): Likewise.
41504         (rint_towardzero_test_data): Likewise.
41505         (rint_test_towardzero): Likewise.
41506         (rint_downward_test_data): Likewise.
41507         (rint_test_downward): Likewise.
41508         (rint_upward_test_data): Likewise.
41509         (rint_test_upward): Likewise.
41510         (main): Don't call removed functions.
41511
41512 2014-03-14  Roland McGrath  <roland@hack.frob.com>
41513
41514         * csu/Makefile ($(objpfx)version-info.h): Remove linux-specific
41515         "Compiled on ..." crapola.  It is anti-useful.
41516
41517 2014-03-14  Joseph Myers  <joseph@codesourcery.com>
41518
41519         * scripts/evaluate-test.sh: Handle fourth argument to determine
41520         whether test run should stop on failure.
41521         * Makeconfig (stop-on-test-failure): New variable.
41522         (evaluate-test): Pass fourth argument to evaluate-test.sh based on
41523         $(stop-on-test-failure).
41524         * Makefile (tests): Give a summary of results from testing and
41525         exit with failure status if they include an ERROR or FAIL.
41526         (xtests): Likewise.
41527         * manual/install.texi (Configuring and compiling): Mention
41528         stop-on-test-failure=y.
41529         * INSTALL: Regenerated.
41530
41531 2014-03-14  Roland McGrath  <roland@hack.frob.com>
41532
41533         * scripts/versionlist.awk: New file.
41534         * Makerules [$(build-shared) = yes]
41535         (postclean-generated): Add Versions.def, not Versions.def.v and
41536         Versions.def.v.i.
41537         ($(common-objpfx)Versions.def.v.i): Target removed.
41538         ($(common-objpfx)Versions.def): New target.
41539         ($(common-objpfx)Versions.all): Depend on that rather that
41540         $(common-objpfx)Versions.def.v.
41541         * Versions.def: File removed.
41542
41543         * Makeconfig (+gccwarn): Add -Wundef.
41544         * include/errno.h [IS_IN_rtld] [!RTLD_PRIVATE_ERRNO]: #error to catch
41545         a dl-sysdep.h breaking its contract.
41546         [!IS_IN_rtld] (RTLD_PRIVATE_ERRNO): Define it to 0.
41547         * include/stackinfo.h: New file.
41548         * nptl/sysdeps/i386/tls.h (TLS_DTV_AT_TP): New macro.
41549         * nptl/sysdeps/powerpc/tls.h (TLS_TCB_AT_TP): New macro.
41550         * nptl/sysdeps/s390/tls.h (TLS_DTV_AT_TP): New macro.
41551         * nptl/sysdeps/sh/tls.h (TLS_TCB_AT_TP): New macro.
41552         * nptl/sysdeps/sparc/tls.h (TLS_DTV_AT_TP): New macro.
41553         * nptl/sysdeps/x86_64/tls.h (TLS_DTV_AT_TP): New macro.
41554         * sysdeps/aarch64/nptl/tls.h (TLS_TCB_AT_TP): New macro.
41555         * sysdeps/alpha/nptl/tls.h (TLS_TCB_AT_TP): New macro.
41556         * sysdeps/arm/nptl/tls.h (TLS_TCB_AT_TP): New macro.
41557         * sysdeps/ia64/nptl/tls.h (TLS_TCB_AT_TP): New macro.
41558         * sysdeps/m68k/nptl/tls.h (TLS_TCB_AT_TP): New macro.
41559         * sysdeps/mach/hurd/i386/tls.h (TLS_DTV_AT_TP): New macro.
41560         * sysdeps/microblaze/nptl/tls.h (TLS_TCB_AT_TP): New macro.
41561         * sysdeps/mips/nptl/tls.h (TLS_TCB_AT_TP): New macro.
41562         * sysdeps/tile/nptl/tls.h (TLS_TCB_AT_TP): New macro.
41563
41564 2014-03-14  Adhemerval Zanella  <azanella@linux.vnet.ibm.com>
41565
41566         [BZ #16707]
41567         * sysdeps/powerpc/powerpc64/fpu/s_roundl.S: Remove wrong
41568         implementation.
41569         * math/libm-test.inc (round_test_data): Add more tests.
41570
41571         [BZ #16706]
41572         * sysdeps/powerpc/powerpc64/fpu/s_nearbyintl.S: Remove wrong
41573         implementation.
41574         * math/libm-test.inc (nearbyint_test_data): Add more tests.
41575
41576         [BZ #16701]
41577         * sysdeps/powerpc/powerpc64/fpu/s_ceill.S: Remove wrong
41578         implementation.
41579         * math/libm-test.inc (ceil_test_data): Add more tests.
41580
41581         * math/libm-test.inc (trunc_test_data): Add more tests related to
41582         BZ#16414.
41583
41584 2014-03-14  Roland McGrath  <roland@hack.frob.com>
41585
41586         * nptl/pthread_create.c (__pthread_create_2_1): Test TLS_TCB_AT_TP
41587         with #if rather than #ifdef.
41588         * nptl/sysdeps/pthread/createthread.c (create_thread): Likewise.
41589
41590 2014-03-14  H.J. Lu  <hongjiu.lu@intel.com>
41591
41592         * sysdeps/x86_64/configure.ac: Check AVX-512 assembler support
41593         first.  Disable AVX-512 GCC support if assembler doesn't support
41594         it.
41595         * sysdeps/x86_64/configure: Regenerated.
41596
41597 2014-03-13  Carlos O'Donell  <carlos@redhat.com>
41598
41599         * nptl/pthread_attr_setstack.c (__pthread_attr_setstack)
41600         [!_STACK_GROWS_DOWN]: Don't add stacksize to stackaddr.
41601         (__old_pthread_attr_setstack): Likewise.
41602         * nptl/pthread_attr_getstack.c (__pthread_attr_getstack)
41603         [!_STACK_GROWS_DOWN]: Likewise.
41604
41605 2014-03-13  Mike Frysinger  <vapier@gentoo.org>
41606
41607         * config.make.in (have-bash2): Delete.
41608         * configure.ac (libc_cv_have_bash2): Delete.
41609         * configure: Regenerate.
41610         * elf/Makefile (common-ldd-rewrite): Rename to ...
41611         (ldd-rewrite): ... this.  Move bash-ldd-rewrite content to end.
41612         (sh-ldd-rewrite): Delete.
41613         (bash-ldd-rewrite): Delete.
41614         (have-bash2): Delete checks.
41615         [ldd-rewrite-script]: Change $(ldd-shell)-ldd-rewrite to
41616         ldd-rewrite.
41617
41618         * config.make.in (have-ksh): Delete.
41619         (KSH): Delete.
41620         * configure.ac (libc_cv_have_ksh): Delete.
41621         * configure: Regenerate.
41622
41623         * elf/Makefile: Delete $(have-ksh) check.
41624         ($(objpfx)sotruss): Change KSH to BASH.
41625         * elf/sotruss.ksh: Rename to ...
41626         * elf/sotruss.sh: ... this.  Change @KSH@ to @BASH@.  Change
41627         function style to match POSIX.  Drop ksh vim mode setting.
41628
41629         * manual/time.texi (Specifying the Time Zone with TZ): Change
41630         Tuesday to Thursday.
41631
41632         * debug/tst-longjmp_chk2.c: Update header comment.
41633         (stackoverflow_handler): Add comment.  Call assert on pass value.
41634
41635 2014-03-13  Igor Zamyatin  <igor.zamyatin@intel.com>
41636
41637         [BZ #16194]
41638         * config.h.in (HAVE_AVX512_SUPPORT): New #undef.
41639         (HAVE_AVX512_ASM_SUPPORT): Likewise.
41640         * sysdeps/x86_64/bits/link.h (La_x86_64_zmm): New.
41641         (La_x86_64_vector): Add zmm.
41642         * sysdeps/x86_64/Makefile (tests): Add tst-audit10.
41643         (modules-names): Add tst-auditmod10a and tst-auditmod10b.
41644         ($(objpfx)tst-audit10): New target.
41645         ($(objpfx)tst-audit10.out): Likewise.
41646         (tst-audit10-ENV): New.
41647         (AVX512-CFLAGS): Likewise.
41648         (CFLAGS-tst-audit10.c): Likewise.
41649         (CFLAGS-tst-auditmod10a.c): Likewise.
41650         (CFLAGS-tst-auditmod10b.c): Likewise.
41651         * sysdeps/x86_64/configure.ac: Set config-cflags-avx512,
41652         HAVE_AVX512_SUPPORT and HAVE_AVX512_ASM_SUPPORT.
41653         * sysdeps/x86_64/configure: Regenerated.
41654         * sysdeps/x86_64/dl-trampoline.S (_dl_runtime_profile): Add
41655         AVX-512 zmm register support.
41656         (_dl_x86_64_save_sse): Likewise.
41657         (_dl_x86_64_restore_sse): Likewise.
41658         * sysdeps/x86_64/dl-trampoline.h: Updated to support different
41659         size vector registers.
41660         * sysdeps/x86_64/link-defines.sym (YMM_SIZE): New.
41661         (ZMM_SIZE): Likewise.
41662         * sysdeps/x86_64/tst-audit10.c: New file.
41663         * sysdeps/x86_64/tst-auditmod10a.c: Likewise.
41664         * sysdeps/x86_64/tst-auditmod10b.c: Likewise.
41665
41666 2014-03-13  Roland McGrath  <roland@hack.frob.com>
41667
41668         * configure.ac (HAVE_EHDR_START): New check.
41669         * configure: Regenerated.
41670         * config.h.in (HAVE_EHDR_START): New #undef.
41671         * elf/rtld.c (dl_main) [HAVE_EHDR_START]: Use __ehdr_start rather than
41672         assuming the lowest-addressed segment maps the start of the file.
41673
41674 2014-03-13  Joseph Myers  <joseph@codesourcery.com>
41675
41676         * INSTALL: Regenerated.
41677
41678 2014-03-13  Will Newton  <will.newton@linaro.org>
41679
41680         * manual/setjmp.texi (System V contexts): Improve
41681         clarity and grammar of documentation.
41682
41683 2014-03-12  Paul Pluzhnikov  <ppluzhnikov@google.com>
41684
41685         [BZ #16381]
41686         * elf/Makefile (tests): Add tst-pie2.
41687         (tests-pie): Add tst-pie2.
41688         * elf/tst-pie2.c: New file.
41689         * elf/dl-load.c (_dl_map_object_from_fd): Assert correct l_type
41690         for ET_EXEC.
41691         * elf/rtld.c (map_doit): Load executable as lt_executable.
41692         (dl_main): Likewise.
41693
41694 2014-03-12  Joseph Myers  <joseph@codesourcery.com>
41695
41696         [BZ #16642]
41697         * sysdeps/unix/sysv/linux/microblaze/kernel-features.h
41698         (__ASSUME_PSELECT): Undefine.
41699
41700 2014-03-12  Adhemerval Zanella  <azanella@linux.vnet.ibm.com>
41701
41702         [BZ #16689]
41703         * sysdeps/powerpc/powerpc32/power4/multiarch/bzero-ppc32.S
41704         (__bzero_ppc): Call memset@local instead of __memset_ppc@local for
41705         static build.
41706         * sysdeps/powerpc/powerpc32/power4/multiarch/bzero.c: Build IFUNC
41707         selector for static builds.
41708
41709 2014-03-12  Siddhesh Poyarekar  <siddhesh@redhat.com>
41710
41711         [BZ #16695]
41712         * nscd/netgroupcache.c (addgetnetgrentX): Factor in space for
41713         key in the buffer.
41714
41715 2014-03-12  Adhemerval Zanella  <azanella@linux.vnet.ibm.com>
41716
41717         * sysdeps/powerpc/powerpc64/multiarch/strspn.c (strspn): Build
41718         IFUNC selector for static builds.
41719
41720 2014-03-11  Joseph Myers  <joseph@codesourcery.com>
41721
41722         * sysdeps/mips/math_private.h [__mips_hard_float]
41723         (libc_feresetround_ctx): Define to libc_feupdateenv_mips_ctx not
41724         libc_feresetround_mips_ctx.
41725         [__mips_hard_float] (libc_feresetroundf_ctx): Likewise.
41726         [__mips_hard_float] (libc_feresetroundl_ctx): Likewise.
41727         [__mips_hard_float] (libc_feresetround_mips_ctx): Remove.
41728
41729         [BZ #16677]
41730         * math/s_nextafter.c (__nextafter): Do not return value from
41731         overflowing computation.
41732         * sysdeps/i386/fpu/s_nextafterl.c (__nextafterl): Likewise.
41733         * sysdeps/ieee754/flt-32/s_nextafterf.c (__nextafterf): Likewise.
41734         * sysdeps/ieee754/ldbl-128/s_nextafterl.c (__nextafterl):
41735         Likewise.
41736         * sysdeps/ieee754/ldbl-128ibm/s_nextafterl.c (__nextafterl):
41737         Likewise.
41738         * sysdeps/m68k/m680x0/fpu/s_nextafterl.c (__nextafterl): Likewise.
41739         * math/libm-test.inc (nextafter_test): Use ALL_RM_TEST.
41740
41741 2014-03-11  Roland McGrath  <roland@hack.frob.com>
41742
41743         * sysdeps/arm/setjmp.S: Use sfi_breg on stores of mangled registers.
41744         * sysdeps/arm/__longjmp.S: Use sfi_breg on loads of mangled registers.
41745         Move sfi_sp use from the load-multiple (that no longer sets sp) to
41746         the new mov targetting sp.
41747
41748 2014-03-11  Adhemerval Zanella  <azanella@linux.vnet.ibm.com>
41749
41750         [BZ #16683]
41751         * sysdeps/powerpc/powerpc64/multiarch/memset-ppc64.S (__bzero_ppc):
41752         Define it for static builds as well.
41753         (NO_BZERO_IMPL): Likewise.
41754
41755 2014-03-11  Vidya Ranganathan  <vidya@linux.vnet.ibm.com>
41756
41757         * sysdeps/powerpc/powerpc64/power7/strspn.S: New file: Optimization.
41758         * sysdeps/powerpc/powerpc64/multiarch/strspn.c: New file:
41759         multiarch strspn for PPC64.
41760         * sysdeps/powerpc/powerpc64/multiarch/strspn-ppc64.c: New file
41761         * sysdeps/powerpc/powerpc64/multiarch/strspn-power7.S: New file
41762         * sysdeps/powerpc/powerpc64/multiarch/ifunc-impl-list.c:
41763         (__libc_ifunc_impl_list): Likewise.
41764         * sysdeps/powerpc/powerpc64/multiarch/Makefile: Add strspn
41765         multiarch optimizations
41766         * string/strspn.c (strspn): Using macro to redefine symbol name.
41767
41768 2014-03-10  Vidya Ranganathan  <vidya@linux.vnet.ibm.com>
41769             Adhemerval Zanella  <azanella@linux.vnet.ibm.com>
41770
41771         * sysdeps/powerpc/powerpc64/power7/strncat.S: New file: Optimization.
41772         * sysdeps/powerpc/powerpc64/multiarch/strncat.c: New file:
41773         multiarch strncat for PPC64.
41774         * sysdeps/powerpc/powerpc64/multiarch/strncat-ppc64.c: New file
41775         * sysdeps/powerpc/powerpc64/multiarch/strncat-power7.S: New file
41776         * sysdeps/powerpc/powerpc64/multiarch/ifunc-impl-list.c:
41777         (__libc_ifunc_impl_list): Likewise.
41778         * sysdeps/powerpc/powerpc64/multiarch/Makefile: Add strncat
41779         multiarch optimizations
41780
41781 2014-03-10  Siddhesh Poyarekar  <siddhesh@redhat.com>
41782
41783         [BZ #16639]
41784         * nscd/nscd.service: Make service type forking.
41785
41786 2014-03-03  Adhemerval Zanella  <azanella@linux.vnet.ibm.com>
41787
41788         * sysdeps/powerpc/power5+/fpu/s_modf.c (__modf): Fix to return correct
41789         sign in non default rounding modes.
41790         * sysdeps/powerpc/power5+/fpu/s_modff.c (__modff): Likewise.
41791
41792 2014-03-08  Joseph Myers  <joseph@codesourcery.com>
41793
41794         * math/libm-test.inc (ALL_RM_TEST): New macro.
41795         (ceil_test): Use ALL_RM_TEST.
41796         (cimag_test): Likewise.
41797         (conj_test): Likewise.
41798         (copysign_test): Likewise.
41799         (cproj_test): Likewise.
41800         (creal_test): Likewise.
41801         (fabs_test): Likewise.
41802         (floor_test): Likewise.
41803         (fmax_test): Likewise.
41804         (fmin_test): Likewise.
41805         (fmod_test): Likewise.
41806         (fpclassify_test): Likewise.
41807         (frexp_test): Likewise.
41808         (ilogb_test): Likewise.
41809         (isfinite_test): Likewise.
41810         (finite_test): Likewise.
41811         (isgreater_test): Likewise.
41812         (isgreaterequal_test): Likewise.
41813         (isinf_test): Likewise.
41814         (isless_test): Likewise.
41815         (islessequal_test): Likewise.
41816         (islessgreater_test): Likewise.
41817         (isnan_test): Likewise.
41818         (isnormal_test): Likewise.
41819         (issignaling_test): Likewise.
41820         (isunordered_test): Likewise.
41821         (logb_test): Likewise.
41822         (logb_downward_test_data): Remove.
41823         (logb_test_downward): Likewise.
41824         (lround_test): Use ALL_RM_TEST.
41825         (llround_test): Likewise.
41826         (modf_test): Likewise.
41827         (nexttoward_test): Likewise.
41828         (remainder_test): Likewise.
41829         (drem_test): Likewise.
41830         (remainder_tonearest_test_data): Likewise.
41831         (remainder_test_tonearest): Likewise.
41832         (drem_test_tonearest): Likewise.
41833         (remainder_towardzero_test_data): Likewise.
41834         (remainder_test_towardzero): Likewise.
41835         (drem_test_towardzero): Likewise.
41836         (remainder_downward_test_data): Likewise.
41837         (remainder_test_downward): Likewise.
41838         (drem_test_downward): Likewise.
41839         (remainder_upward_test_data): Likewise.
41840         (remainder_test_upward): Likewise.
41841         (drem_test_upward): Likewise.
41842         (remquo_test): Use ALL_RM_TEST.  Remove comment about x.
41843         (round_test): Use ALL_RM_TEST.
41844         (signbit_test): Likewise.
41845         (trunc_test): Likewise.
41846         (significand_test): Likewise.
41847         (main): Don't call removed functions.
41848
41849 2014-03-07  Joseph Myers  <joseph@codesourcery.com>
41850
41851         [BZ #16674]
41852         * bits/siginfo.h (ILL_ILLOPC): Condition on [__USE_XOPEN_EXTENDED
41853         || __USE_XOPEN2K8].
41854         (ILL_ILLOPN): Likewise.
41855         (ILL_ILLADR): Likewise.
41856         (ILL_ILLTRP): Likewise.
41857         (ILL_PRVOPC): Likewise.
41858         (ILL_PRVREG): Likewise.
41859         (ILL_COPROC): Likewise.
41860         (ILL_BADSTK): Likewise.
41861         (FPE_INTDIV): Likewise.
41862         (FPE_INTOVF): Likewise.
41863         (FPE_FLTDIV): Likewise.
41864         (FPE_FLTOVF): Likewise.
41865         (FPE_FLTUND): Likewise.
41866         (FPE_FLTRES): Likewise.
41867         (FPE_FLTINV): Likewise.
41868         (FPE_FLTSUB): Likewise.
41869         (SEGV_MAPERR): Likewise.
41870         (SEGV_ACCERR): Likewise.
41871         (BUS_ADRALN): Likewise.
41872         (BUS_ADRERR): Likewise.
41873         (BUS_OBJERR): Likewise.
41874         (TRAP_BRKPT): Condition on [__USE_XOPEN_EXTENDED].
41875         (TRAP_TRACE): Likewise.
41876         (CLD_EXITED): Condition on [__USE_XOPEN_EXTENDED ||
41877         __USE_XOPEN2K8].
41878         (CLD_KILLED): Likewise.
41879         (CLD_DUMPED): Likewise.
41880         (CLD_TRAPPED): Likewise.
41881         (CLD_STOPPED): Likewise.
41882         (CLD_CONTINUED): Likewise.
41883         (POLL_IN): Likewise.
41884         (POLL_OUT): Likewise.
41885         (POLL_MSG): Likewise.
41886         (POLL_ERR): Likewise.
41887         (POLL_PRI): Likewise.
41888         (POLL_HUP): Likewise.
41889         * sysdeps/unix/sysv/linux/alpha/bits/siginfo.h (ILL_ILLOPC):
41890         Likewise.
41891         (ILL_ILLOPN): Likewise.
41892         (ILL_ILLADR): Likewise.
41893         (ILL_ILLTRP): Likewise.
41894         (ILL_PRVOPC): Likewise.
41895         (ILL_PRVREG): Likewise.
41896         (ILL_COPROC): Likewise.
41897         (ILL_BADSTK): Likewise.
41898         (FPE_INTDIV): Likewise.
41899         (FPE_INTOVF): Likewise.
41900         (FPE_FLTDIV): Likewise.
41901         (FPE_FLTOVF): Likewise.
41902         (FPE_FLTUND): Likewise.
41903         (FPE_FLTRES): Likewise.
41904         (FPE_FLTINV): Likewise.
41905         (FPE_FLTSUB): Likewise.
41906         (SEGV_MAPERR): Likewise.
41907         (SEGV_ACCERR): Likewise.
41908         (BUS_ADRALN): Likewise.
41909         (BUS_ADRERR): Likewise.
41910         (BUS_OBJERR): Likewise.
41911         (BUS_MCEERR_AR): Likewise.
41912         (BUS_MCEERR_AO): Likewise.
41913         (TRAP_BRKPT): Condition on [__USE_XOPEN_EXTENDED].
41914         (TRAP_TRACE): Likewise.
41915         (CLD_EXITED): Condition on [__USE_XOPEN_EXTENDED ||
41916         __USE_XOPEN2K8].
41917         (CLD_KILLED): Likewise.
41918         (CLD_DUMPED): Likewise.
41919         (CLD_TRAPPED): Likewise.
41920         (CLD_STOPPED): Likewise.
41921         (CLD_CONTINUED): Likewise.
41922         (POLL_IN): Likewise.
41923         (POLL_OUT): Likewise.
41924         (POLL_MSG): Likewise.
41925         (POLL_ERR): Likewise.
41926         (POLL_PRI): Likewise.
41927         (POLL_HUP): Likewise.
41928         * sysdeps/unix/sysv/linux/bits/siginfo.h (ILL_ILLOPC): Likewise.
41929         (ILL_ILLOPN): Likewise.
41930         (ILL_ILLADR): Likewise.
41931         (ILL_ILLTRP): Likewise.
41932         (ILL_PRVOPC): Likewise.
41933         (ILL_PRVREG): Likewise.
41934         (ILL_COPROC): Likewise.
41935         (ILL_BADSTK): Likewise.
41936         (FPE_INTDIV): Likewise.
41937         (FPE_INTOVF): Likewise.
41938         (FPE_FLTDIV): Likewise.
41939         (FPE_FLTOVF): Likewise.
41940         (FPE_FLTUND): Likewise.
41941         (FPE_FLTRES): Likewise.
41942         (FPE_FLTINV): Likewise.
41943         (FPE_FLTSUB): Likewise.
41944         (SEGV_MAPERR): Likewise.
41945         (SEGV_ACCERR): Likewise.
41946         (BUS_ADRALN): Likewise.
41947         (BUS_ADRERR): Likewise.
41948         (BUS_OBJERR): Likewise.
41949         (BUS_MCEERR_AR): Likewise.
41950         (BUS_MCEERR_AO): Likewise.
41951         (TRAP_BRKPT): Condition on [__USE_XOPEN_EXTENDED].
41952         (TRAP_TRACE): Likewise.
41953         (CLD_EXITED): Condition on [__USE_XOPEN_EXTENDED ||
41954         __USE_XOPEN2K8].
41955         (CLD_KILLED): Likewise.
41956         (CLD_DUMPED): Likewise.
41957         (CLD_TRAPPED): Likewise.
41958         (CLD_STOPPED): Likewise.
41959         (CLD_CONTINUED): Likewise.
41960         (POLL_IN): Likewise.
41961         (POLL_OUT): Likewise.
41962         (POLL_MSG): Likewise.
41963         (POLL_ERR): Likewise.
41964         (POLL_PRI): Likewise.
41965         (POLL_HUP): Likewise.
41966         * sysdeps/unix/sysv/linux/ia64/bits/siginfo.h (ILL_ILLOPC):
41967         Likewise.
41968         (ILL_ILLOPN): Likewise.
41969         (ILL_ILLADR): Likewise.
41970         (ILL_ILLTRP): Likewise.
41971         (ILL_PRVOPC): Likewise.
41972         (ILL_PRVREG): Likewise.
41973         (ILL_COPROC): Likewise.
41974         (ILL_BADSTK): Likewise.
41975         (ILL_BADIADDR): Likewise.
41976         (ILL_BREAK): Likewise.
41977         (FPE_INTDIV): Likewise.
41978         (FPE_INTOVF): Likewise.
41979         (FPE_FLTDIV): Likewise.
41980         (FPE_FLTOVF): Likewise.
41981         (FPE_FLTUND): Likewise.
41982         (FPE_FLTRES): Likewise.
41983         (FPE_FLTINV): Likewise.
41984         (FPE_FLTSUB): Likewise.
41985         (FPE_DECOVF): Likewise.
41986         (FPE_DECDIV): Likewise.
41987         (FPE_DECERR): Likewise.
41988         (FPE_INVASC): Likewise.
41989         (FPE_INVDEC): Likewise.
41990         (SEGV_MAPERR): Likewise.
41991         (SEGV_ACCERR): Likewise.
41992         (SEGV_PSTKOVF): Likewise.
41993         (BUS_ADRALN): Likewise.
41994         (BUS_ADRERR): Likewise.
41995         (BUS_OBJERR): Likewise.
41996         (BUS_MCEERR_AR): Likewise.
41997         (BUS_MCEERR_AO): Likewise.
41998         (TRAP_BRKPT): Condition on [__USE_XOPEN_EXTENDED].
41999         (TRAP_TRACE): Likewise.
42000         (TRAP_BRANCH): Likewise.
42001         (TRAP_HWBKPT): Likewise.
42002         (CLD_EXITED): Condition on [__USE_XOPEN_EXTENDED ||
42003         __USE_XOPEN2K8].
42004         (CLD_KILLED): Likewise.
42005         (CLD_DUMPED): Likewise.
42006         (CLD_TRAPPED): Likewise.
42007         (CLD_STOPPED): Likewise.
42008         (CLD_CONTINUED): Likewise.
42009         (POLL_IN): Likewise.
42010         (POLL_OUT): Likewise.
42011         (POLL_MSG): Likewise.
42012         (POLL_ERR): Likewise.
42013         (POLL_PRI): Likewise.
42014         (POLL_HUP): Likewise.
42015         * sysdeps/unix/sysv/linux/mips/bits/siginfo.h (ILL_ILLOPC): Likewise.
42016         (ILL_ILLOPN): Likewise.
42017         (ILL_ILLADR): Likewise.
42018         (ILL_ILLTRP): Likewise.
42019         (ILL_PRVOPC): Likewise.
42020         (ILL_PRVREG): Likewise.
42021         (ILL_COPROC): Likewise.
42022         (ILL_BADSTK): Likewise.
42023         (FPE_INTDIV): Likewise.
42024         (FPE_INTOVF): Likewise.
42025         (FPE_FLTDIV): Likewise.
42026         (FPE_FLTOVF): Likewise.
42027         (FPE_FLTUND): Likewise.
42028         (FPE_FLTRES): Likewise.
42029         (FPE_FLTINV): Likewise.
42030         (FPE_FLTSUB): Likewise.
42031         (SEGV_MAPERR): Likewise.
42032         (SEGV_ACCERR): Likewise.
42033         (BUS_ADRALN): Likewise.
42034         (BUS_ADRERR): Likewise.
42035         (BUS_OBJERR): Likewise.
42036         (BUS_MCEERR_AR): Likewise.
42037         (BUS_MCEERR_AO): Likewise.
42038         (TRAP_BRKPT): Condition on [__USE_XOPEN_EXTENDED].
42039         (TRAP_TRACE): Likewise.
42040         (CLD_EXITED): Condition on [__USE_XOPEN_EXTENDED ||
42041         __USE_XOPEN2K8].
42042         (CLD_KILLED): Likewise.
42043         (CLD_DUMPED): Likewise.
42044         (CLD_TRAPPED): Likewise.
42045         (CLD_STOPPED): Likewise.
42046         (CLD_CONTINUED): Likewise.
42047         (POLL_IN): Likewise.
42048         (POLL_OUT): Likewise.
42049         (POLL_MSG): Likewise.
42050         (POLL_ERR): Likewise.
42051         (POLL_PRI): Likewise.
42052         (POLL_HUP): Likewise.
42053         * sysdeps/unix/sysv/linux/s390/bits/siginfo.h (ILL_ILLOPC): Likewise.
42054         (ILL_ILLOPN): Likewise.
42055         (ILL_ILLADR): Likewise.
42056         (ILL_ILLTRP): Likewise.
42057         (ILL_PRVOPC): Likewise.
42058         (ILL_PRVREG): Likewise.
42059         (ILL_COPROC): Likewise.
42060         (ILL_BADSTK): Likewise.
42061         (FPE_INTDIV): Likewise.
42062         (FPE_INTOVF): Likewise.
42063         (FPE_FLTDIV): Likewise.
42064         (FPE_FLTOVF): Likewise.
42065         (FPE_FLTUND): Likewise.
42066         (FPE_FLTRES): Likewise.
42067         (FPE_FLTINV): Likewise.
42068         (FPE_FLTSUB): Likewise.
42069         (SEGV_MAPERR): Likewise.
42070         (SEGV_ACCERR): Likewise.
42071         (BUS_ADRALN): Likewise.
42072         (BUS_ADRERR): Likewise.
42073         (BUS_OBJERR): Likewise.
42074         (BUS_MCEERR_AR): Likewise.
42075         (BUS_MCEERR_AO): Likewise.
42076         (TRAP_BRKPT): Condition on [__USE_XOPEN_EXTENDED].
42077         (TRAP_TRACE): Likewise.
42078         (CLD_EXITED): Condition on [__USE_XOPEN_EXTENDED ||
42079         __USE_XOPEN2K8].
42080         (CLD_KILLED): Likewise.
42081         (CLD_DUMPED): Likewise.
42082         (CLD_TRAPPED): Likewise.
42083         (CLD_STOPPED): Likewise.
42084         (CLD_CONTINUED): Likewise.
42085         (POLL_IN): Likewise.
42086         (POLL_OUT): Likewise.
42087         (POLL_MSG): Likewise.
42088         (POLL_ERR): Likewise.
42089         (POLL_PRI): Likewise.
42090         (POLL_HUP): Likewise.
42091         * sysdeps/unix/sysv/linux/sparc/bits/siginfo.h (ILL_ILLOPC): Likewise.
42092         (ILL_ILLOPN): Likewise.
42093         (ILL_ILLADR): Likewise.
42094         (ILL_ILLTRP): Likewise.
42095         (ILL_PRVOPC): Likewise.
42096         (ILL_PRVREG): Likewise.
42097         (ILL_COPROC): Likewise.
42098         (ILL_BADSTK): Likewise.
42099         (FPE_INTDIV): Likewise.
42100         (FPE_INTOVF): Likewise.
42101         (FPE_FLTDIV): Likewise.
42102         (FPE_FLTOVF): Likewise.
42103         (FPE_FLTUND): Likewise.
42104         (FPE_FLTRES): Likewise.
42105         (FPE_FLTINV): Likewise.
42106         (FPE_FLTSUB): Likewise.
42107         (SEGV_MAPERR): Likewise.
42108         (SEGV_ACCERR): Likewise.
42109         (BUS_ADRALN): Likewise.
42110         (BUS_ADRERR): Likewise.
42111         (BUS_OBJERR): Likewise.
42112         (BUS_MCEERR_AR): Likewise.
42113         (BUS_MCEERR_AO): Likewise.
42114         (TRAP_BRKPT): Condition on [__USE_XOPEN_EXTENDED].
42115         (TRAP_TRACE): Likewise.
42116         (CLD_EXITED): Condition on [__USE_XOPEN_EXTENDED ||
42117         __USE_XOPEN2K8].
42118         (CLD_KILLED): Likewise.
42119         (CLD_DUMPED): Likewise.
42120         (CLD_TRAPPED): Likewise.
42121         (CLD_STOPPED): Likewise.
42122         (CLD_CONTINUED): Likewise.
42123         (POLL_IN): Likewise.
42124         (POLL_OUT): Likewise.
42125         (POLL_MSG): Likewise.
42126         (POLL_ERR): Likewise.
42127         (POLL_PRI): Likewise.
42128         (POLL_HUP): Likewise.
42129         * sysdeps/unix/sysv/linux/tile/bits/siginfo.h (ILL_ILLOPC): Likewise.
42130         (ILL_ILLOPN): Likewise.
42131         (ILL_ILLADR): Likewise.
42132         (ILL_ILLTRP): Likewise.
42133         (ILL_PRVOPC): Likewise.
42134         (ILL_PRVREG): Likewise.
42135         (ILL_COPROC): Likewise.
42136         (ILL_BADSTK): Likewise.
42137         (ILL_DBLFLT): Likewise.
42138         (ILL_HARDWALL): Likewise.
42139         (FPE_INTDIV): Likewise.
42140         (FPE_INTOVF): Likewise.
42141         (FPE_FLTDIV): Likewise.
42142         (FPE_FLTOVF): Likewise.
42143         (FPE_FLTUND): Likewise.
42144         (FPE_FLTRES): Likewise.
42145         (FPE_FLTINV): Likewise.
42146         (FPE_FLTSUB): Likewise.
42147         (SEGV_MAPERR): Likewise.
42148         (SEGV_ACCERR): Likewise.
42149         (BUS_ADRALN): Likewise.
42150         (BUS_ADRERR): Likewise.
42151         (BUS_OBJERR): Likewise.
42152         (BUS_MCEERR_AR): Likewise.
42153         (BUS_MCEERR_AO): Likewise.
42154         (TRAP_BRKPT): Condition on [__USE_XOPEN_EXTENDED].
42155         (TRAP_TRACE): Likewise.
42156         (CLD_EXITED): Condition on [__USE_XOPEN_EXTENDED ||
42157         __USE_XOPEN2K8].
42158         (CLD_KILLED): Likewise.
42159         (CLD_DUMPED): Likewise.
42160         (CLD_TRAPPED): Likewise.
42161         (CLD_STOPPED): Likewise.
42162         (CLD_CONTINUED): Likewise.
42163         (POLL_IN): Likewise.
42164         (POLL_OUT): Likewise.
42165         (POLL_MSG): Likewise.
42166         (POLL_ERR): Likewise.
42167         (POLL_PRI): Likewise.
42168         (POLL_HUP): Likewise.
42169         * sysdeps/unix/sysv/linux/x86/bits/siginfo.h (ILL_ILLOPC): Likewise.
42170         (ILL_ILLOPN): Likewise.
42171         (ILL_ILLADR): Likewise.
42172         (ILL_ILLTRP): Likewise.
42173         (ILL_PRVOPC): Likewise.
42174         (ILL_PRVREG): Likewise.
42175         (ILL_COPROC): Likewise.
42176         (ILL_BADSTK): Likewise.
42177         (FPE_INTDIV): Likewise.
42178         (FPE_INTOVF): Likewise.
42179         (FPE_FLTDIV): Likewise.
42180         (FPE_FLTOVF): Likewise.
42181         (FPE_FLTUND): Likewise.
42182         (FPE_FLTRES): Likewise.
42183         (FPE_FLTINV): Likewise.
42184         (FPE_FLTSUB): Likewise.
42185         (SEGV_MAPERR): Likewise.
42186         (SEGV_ACCERR): Likewise.
42187         (BUS_ADRALN): Likewise.
42188         (BUS_ADRERR): Likewise.
42189         (BUS_OBJERR): Likewise.
42190         (BUS_MCEERR_AR): Likewise.
42191         (BUS_MCEERR_AO): Likewise.
42192         (TRAP_BRKPT): Condition on [__USE_XOPEN_EXTENDED].
42193         (TRAP_TRACE): Likewise.
42194         (CLD_EXITED): Condition on [__USE_XOPEN_EXTENDED ||
42195         __USE_XOPEN2K8].
42196         (CLD_KILLED): Likewise.
42197         (CLD_DUMPED): Likewise.
42198         (CLD_TRAPPED): Likewise.
42199         (CLD_STOPPED): Likewise.
42200         (CLD_CONTINUED): Likewise.
42201         (POLL_IN): Likewise.
42202         (POLL_OUT): Likewise.
42203         (POLL_MSG): Likewise.
42204         (POLL_ERR): Likewise.
42205         (POLL_PRI): Likewise.
42206         (POLL_HUP): Likewise.
42207         * conform/Makefile (test-xfail-POSIX/signal.h/conform): Remove.
42208         (test-xfail-POSIX/sys/wait.h/conform): Likewise.
42209
42210         [BZ #16670]
42211         * posix/sched.h [!__USE_XOPEN2K] (__need_time_t): Don't define
42212         before #include of <time.h>.
42213         [!__USE_XOPEN2K] (__need_timespec): Likewise.
42214         * conform/Makefile (test-xfail-POSIX/sched.h/conform): Remove.
42215         (test-xfail-UNIX98/sched.h/conform): Likewise.
42216
42217 2014-03-07  Marcus Shawcroft  <marcus.shawcroft@arm.com>
42218
42219         * sysdeps/aarch64/fpu/feenablxcpt.c (feenableexcept): Detect and
42220         error absence of trapping exception support.
42221         * sysdeps/aarch64/fpu/fesetenv.c (fesetenv): Likewise.
42222
42223 2014-03-07  Joseph Myers  <joseph@codesourcery.com>
42224
42225         * catgets/Makefile (tests-special): Add $(objpfx)sample.SJIS.cat.
42226         ($(objpfx)sample.SJIS.cat): Use $(evaluate-test).
42227         * timezone/Makefile (testdata): Move definition above include of
42228         Rules.
42229         (test-zones): New variable.
42230         (tests-special): Add zone files.
42231         (build-testdata): Use $(evaluate-test).
42232
42233         * elf/Makefile (tests-special): Rename tests to end with .out.
42234         ($(objpfx)noload-mem): Likewise.
42235         ($(objpfx)tst-leaks1-mem): Likewise.
42236         ($(objpfx)tst-leaks1-static-mem.out): Likewise.
42237         * iconv/Makefile (xtests-special): Change test-iconvconfig to
42238         $(objpfx)test-iconvconfig.out.
42239         (test-iconvconfig): Change to $(objpfx)test-iconvconfig.out.  Use
42240         set -e inside subshell and redirect output to file.
42241         * iconvdata/Makefile (generated): Rename tests to end with .out.
42242         Correct type.
42243         (tests-special): Rename tests to end with .out.
42244         ($(objpfx)mtrace-tst-loading): Likewise.
42245         * intl/Makefile (generated): Likewise.
42246         (tests-special): Likewise.
42247         ($(objpfx)mtrace-tst-gettext): Likewise.
42248         * misc/Makefile (generated): Likewise.
42249         (tests-special): Likewise.
42250         ($(objpfx)tst-error1-mem): Likewise.
42251         * nptl/Makefile (tests-special): Likewise.
42252         ($(objpfx)tst-stack3-mem): Likewise.
42253         (generated): Likewise.
42254         * posix/Makefile (generated): Likewise.
42255         (tests-special): Likewise.
42256         (xtests-special): Likewise.
42257         ($(objpfx)tst-fnmatch-mem): Likewise.
42258         ($(objpfx)bug-regex2-mem): Likewise.
42259         ($(objpfx)bug-regex14-mem): Likewise.
42260         ($(objpfx)bug-regex21-mem): Likewise.
42261         ($(objpfx)bug-regex31-mem): Likewise.
42262         ($(objpfx)tst-vfork3-mem): Likewise.
42263         ($(objpfx)tst-rxspencer-no-utf8-mem): Likewise.
42264         ($(objpfx)tst-pcre-mem): Likewise.
42265         ($(objpfx)tst-boost-mem): Likewise.
42266         ($(objpfx)bug-ga2-mem): Likewise.
42267         ($(objpfx)bug-glob2-mem): Likewise.
42268         * resolv/Makefile (generate): Likewise.
42269         (tests-special): Likewise.
42270         (xtests-special): Likewise.
42271         (generated): Likewise.
42272         ($(objpfx)mtrace-tst-leaks): Likewise.
42273         ($(objpfx)mtrace-tst-leaks2): Likewise.
42274
42275         * scripts/merge-test-results.sh: New file.
42276         * Makefile (tests-special-notdir): New variable.
42277         (tests): Run merge-test-results.sh.
42278         (xtests): Likewise.
42279         * Rules (tests-special-notdir): New variable.
42280         (xtests-special-notdir): Likewise.
42281         (tests): Run merge-test-results.sh
42282         (xtests): Likewise.
42283
42284         * Makeconfig (test-xfail-name): New variable.
42285         (evaluate-test): Use $(test-xfail-name) instead of $(@F:.out=) to
42286         compute variable name for expected failures.
42287         * conform/Makefile (conformtest-headers-data): New variable.
42288         (conformtest-standards): Likewise.
42289         (conformtest-headers-ISO): Likewise.
42290         (conformtest-headers-ISO99): Likewise.
42291         (conformtest-headers-ISO11): Likewise.
42292         (conformtest-headers-POSIX): Likewise.
42293         (conformtest-headers-XPG3): Likewise.
42294         (conformtest-headers-XPG4): Likewise.
42295         (conformtest-headers-UNIX98): Likewise.
42296         (conformtest-headers-XOPEN2K): Likewise.
42297         (conformtest-headers-POSIX2008): Likewise.
42298         (conformtest-headers-XOPEN2K8): Likewise.
42299         (conformtest-header-list-base): Likewise.
42300         (conformtest-header-list-tests): Likewise.
42301         (conformtest-header-base): Likewise.
42302         (conformtest-header-tests): Likewise.
42303         (tests-special): Add $(conformtest-header-list-tests).  If
42304         [$(fast-check) && !$(cross-compiling)], add
42305         $(conformtest-header-tests) instead of
42306         $(objpfx)run-conformtest.out.
42307         (generated): Add $(conformtest-header-list-base).  If
42308         [$(fast-check) && !$(cross-compiling)], add
42309         $(conformtest-header-base).  Remove previous setting.
42310         ($(conformtest-header-list-tests)): New target.
42311         (test-xfail-run-conformtest): Remove variable.
42312         ($(objpfx)run-conformtest.out): Remove target.
42313         (test-xfail-ISO11/complex.h/conform): New variable.
42314         (test-xfail-ISO11/stdalign.h/conform): Likewise.
42315         (test-xfail-ISO11/stdnoreturn.h/conform): Likewise.
42316         (test-xfail-XPG3/varargs.h/conform): Likewise.
42317         (test-xfail-XPG4/varargs.h/conform): Likewise.
42318         (test-xfail-UNIX98/varargs.h/conform): Likewise.
42319         (test-xfail-XPG4/ndbm.h/conform): Likewise.
42320         (test-xfail-UNIX98/ndbm.h/conform): Likewise.
42321         (test-xfail-XOPEN2K/ndbm.h/conform): Likewise.
42322         (test-xfail-XOPEN2K8/ndbm.h/conform): Likewise.
42323         (test-xfail-XPG3/fcntl.h/conform): Likewise.
42324         (test-xfail-XPG3/ftw.h/conform): Likewise.
42325         (test-xfail-XPG3/grp.h/conform): Likewise.
42326         (test-xfail-XPG3/langinfo.h/conform): Likewise.
42327         (test-xfail-XPG3/limits.h/conform): Likewise.
42328         (test-xfail-XPG3/pwd.h/conform): Likewise.
42329         (test-xfail-XPG3/search.h/conform): Likewise.
42330         (test-xfail-XPG3/signal.h/conform): Likewise.
42331         (test-xfail-XPG3/stdio.h/conform): Likewise.
42332         (test-xfail-XPG3/stdlib.h/conform): Likewise.
42333         (test-xfail-XPG3/string.h/conform): Likewise.
42334         (test-xfail-XPG3/sys/ipc.h/conform): Likewise.
42335         (test-xfail-XPG3/sys/msg.h/conform): Likewise.
42336         (test-xfail-XPG3/sys/sem.h/conform): Likewise.
42337         (test-xfail-XPG3/sys/shm.h/conform): Likewise.
42338         (test-xfail-XPG3/sys/stat.h/conform): Likewise.
42339         (test-xfail-XPG3/sys/types.h/conform): Likewise.
42340         (test-xfail-XPG3/sys/wait.h/conform): Likewise.
42341         (test-xfail-XPG3/termios.h/conform): Likewise.
42342         (test-xfail-XPG3/time.h/conform): Likewise.
42343         (test-xfail-XPG3/unistd.h/conform): Likewise.
42344         (test-xfail-XPG4/arpa/inet.h/conform): Likewise.
42345         (test-xfail-XPG4/fcntl.h/conform): Likewise.
42346         (test-xfail-XPG4/langinfo.h/conform): Likewise.
42347         (test-xfail-XPG4/netdb.h/conform): Likewise.
42348         (test-xfail-XPG4/netinet/in.h/conform): Likewise.
42349         (test-xfail-XPG4/signal.h/conform): Likewise.
42350         (test-xfail-XPG4/stdio.h/conform): Likewise.
42351         (test-xfail-XPG4/stdlib.h/conform): Likewise.
42352         (test-xfail-XPG4/stropts.h/conform): Likewise.
42353         (test-xfail-XPG4/sys/ipc.h/conform): Likewise.
42354         (test-xfail-XPG4/sys/msg.h/conform): Likewise.
42355         (test-xfail-XPG4/sys/sem.h/conform): Likewise.
42356         (test-xfail-XPG4/sys/shm.h/conform): Likewise.
42357         (test-xfail-XPG4/sys/socket.h/conform): Likewise.
42358         (test-xfail-XPG4/sys/stat.h/conform): Likewise.
42359         (test-xfail-XPG4/sys/time.h/conform): Likewise.
42360         (test-xfail-XPG4/sys/types.h/conform): Likewise.
42361         (test-xfail-XPG4/sys/wait.h/conform): Likewise.
42362         (test-xfail-XPG4/termios.h/conform): Likewise.
42363         (test-xfail-XPG4/ucontext.h/conform): Likewise.
42364         (test-xfail-XPG4/unistd.h/conform): Likewise.
42365         (test-xfail-XPG4/utmpx.h/conform): Likewise.
42366         (test-xfail-POSIX/sched.h/conform): Likewise.
42367         (test-xfail-POSIX/signal.h/conform): Likewise.
42368         (test-xfail-POSIX/sys/wait.h/conform): Likewise.
42369         (test-xfail-POSIX/tar.h/conform): Likewise.
42370         (test-xfail-UNIX98/arpa/inet.h/conform): Likewise.
42371         (test-xfail-UNIX98/fcntl.h/conform): Likewise.
42372         (test-xfail-UNIX98/langinfo.h/conform): Likewise.
42373         (test-xfail-UNIX98/netdb.h/conform): Likewise.
42374         (test-xfail-UNIX98/netinet/in.h/conform): Likewise.
42375         (test-xfail-UNIX98/sched.h/conform): Likewise.
42376         (test-xfail-UNIX98/signal.h/conform): Likewise.
42377         (test-xfail-UNIX98/stdio.h/conform): Likewise.
42378         (test-xfail-UNIX98/stdlib.h/conform): Likewise.
42379         (test-xfail-UNIX98/stropts.h/conform): Likewise.
42380         (test-xfail-UNIX98/sys/ipc.h/conform): Likewise.
42381         (test-xfail-UNIX98/sys/msg.h/conform): Likewise.
42382         (test-xfail-UNIX98/sys/sem.h/conform): Likewise.
42383         (test-xfail-UNIX98/sys/shm.h/conform): Likewise.
42384         (test-xfail-UNIX98/sys/socket.h/conform): Likewise.
42385         (test-xfail-UNIX98/sys/time.h/conform): Likewise.
42386         (test-xfail-UNIX98/sys/wait.h/conform): Likewise.
42387         (test-xfail-UNIX98/ucontext.h/conform): Likewise.
42388         (test-xfail-UNIX98/unistd.h/conform): Likewise.
42389         (test-xfail-UNIX98/utmpx.h/conform): Likewise.
42390         (test-xfail-XOPEN2K/aio.h/conform): Likewise.
42391         (test-xfail-XOPEN2K/arpa/inet.h/conform): Likewise.
42392         (test-xfail-XOPEN2K/fcntl.h/conform): Likewise.
42393         (test-xfail-XOPEN2K/langinfo.h/conform): Likewise.
42394         (test-xfail-XOPEN2K/math.h/conform): Likewise.
42395         (test-xfail-XOPEN2K/mqueue.h/conform): Likewise.
42396         (test-xfail-XOPEN2K/netdb.h/conform): Likewise.
42397         (test-xfail-XOPEN2K/netinet/in.h/conform): Likewise.
42398         (test-xfail-XOPEN2K/semaphore.h/conform): Likewise.
42399         (test-xfail-XOPEN2K/signal.h/conform): Likewise.
42400         (test-xfail-XOPEN2K/stdarg.h/conform): Likewise.
42401         (test-xfail-XOPEN2K/stdio.h/conform): Likewise.
42402         (test-xfail-XOPEN2K/stropts.h/conform): Likewise.
42403         (test-xfail-XOPEN2K/sys/ipc.h/conform): Likewise.
42404         (test-xfail-XOPEN2K/sys/msg.h/conform): Likewise.
42405         (test-xfail-XOPEN2K/sys/sem.h/conform): Likewise.
42406         (test-xfail-XOPEN2K/sys/shm.h/conform): Likewise.
42407         (test-xfail-XOPEN2K/sys/socket.h/conform): Likewise.
42408         (test-xfail-XOPEN2K/sys/wait.h/conform): Likewise.
42409         (test-xfail-XOPEN2K/termios.h/conform): Likewise.
42410         (test-xfail-XOPEN2K/tgmath.h/conform): Likewise.
42411         (test-xfail-XOPEN2K/ucontext.h/conform): Likewise.
42412         (test-xfail-XOPEN2K/utmpx.h/conform): Likewise.
42413         (test-xfail-POSIX2008/arpa/inet.h/conform): Likewise.
42414         (test-xfail-POSIX2008/fcntl.h/conform): Likewise.
42415         (test-xfail-POSIX2008/netdb.h/conform): Likewise.
42416         (test-xfail-POSIX2008/netinet/in.h/conform): Likewise.
42417         (test-xfail-POSIX2008/signal.h/conform): Likewise.
42418         (test-xfail-POSIX2008/stropts.h/conform): Likewise.
42419         (test-xfail-POSIX2008/sys/socket.h/conform): Likewise.
42420         (test-xfail-POSIX2008/sys/wait.h/conform): Likewise.
42421         (test-xfail-XOPEN2K8/arpa/inet.h/conform): Likewise.
42422         (test-xfail-XOPEN2K8/fcntl.h/conform): Likewise.
42423         (test-xfail-XOPEN2K8/limits.h/conform): Likewise.
42424         (test-xfail-XOPEN2K8/math.h/conform): Likewise.
42425         (test-xfail-XOPEN2K8/netdb.h/conform): Likewise.
42426         (test-xfail-XOPEN2K8/netinet/in.h/conform): Likewise.
42427         (test-xfail-XOPEN2K8/signal.h/conform): Likewise.
42428         (test-xfail-XOPEN2K8/stdio.h/conform): Likewise.
42429         (test-xfail-XOPEN2K8/stropts.h/conform): Likewise.
42430         (test-xfail-XOPEN2K8/sys/ipc.h/conform): Likewise.
42431         (test-xfail-XOPEN2K8/sys/msg.h/conform): Likewise.
42432         (test-xfail-XOPEN2K8/sys/select.h/conform): Likewise.
42433         (test-xfail-XOPEN2K8/sys/sem.h/conform): Likewise.
42434         (test-xfail-XOPEN2K8/sys/shm.h/conform): Likewise.
42435         (test-xfail-XOPEN2K8/sys/socket.h/conform): Likewise.
42436         (test-xfail-XOPEN2K8/sys/time.h/conform): Likewise.
42437         (test-xfail-XOPEN2K8/sys/wait.h/conform): Likewise.
42438         (test-xfail-XOPEN2K8/termios.h/conform): Likewise.
42439         (test-xfail-XOPEN2K8/tgmath.h/conform): Likewise.
42440         (test-xfail-XOPEN2K8/utmpx.h/conform): Likewise.
42441         (conformtest-cc-flags): Likewise.
42442         ($(conformtest-header-tests): New target.
42443         * conform/check-header-lists.sh: New file.
42444         * conform/run-conformtest.sh: Remove.
42445
42446         * conform/conformtest.pl: Allow ' and \ in values given for
42447         constants.
42448         * conform/data/semaphore.h-data [POSIX] (fcntl.h): Allow header
42449         inclusion.
42450         [POSIX] (sys/types.h): Likewise.
42451         [POSIX2008 || XOPEN2K8] (sys/types.h): Don't allow header
42452         inclusion.
42453         [POSIX || UNIX98 || XOPEN2K] (time.h): Don't allow header
42454         inclusion.
42455         * conform/data/signal.h-data (SIGIO): Remove expectation.
42456         [XPG3] (SIGBUS): Do not expect.
42457         [POSIX || XPG3] (SIGPOLL): Likewise.
42458         [POSIX || XPG3] (SIGPROF): Likewise.
42459         [POSIX || XPG3] (SIGSYS): Likewise.
42460         [XPG3] (SIGTRAP): Likewise.
42461         [POSIX || XPG3] (SIGURG): Likewise.
42462         [POSIX || XPG3] (SIGVTALRM): Likewise.
42463         [POSIX || XPG3] (SIGXCPU): Likewise.
42464         [POSIX || XPG3] (SIGXFSZ): Likewise.
42465         [POSIX] (SA_SIGINFO): Expect.
42466         [XPG3] (siginfo_t): Do not expect type or contents.
42467         [POSIX] (si_pid): Do not expect element.
42468         [POSIX] (si_uid): Likewise.
42469         [POSIX] (si_addr): Likewise.
42470         [POSIX] (si_status): Likewise.
42471         [POSIX] (si_band): Likewise.
42472         [XPG4] (si_value): Likewise.
42473         [POSIX || XPG3] (ILL_ILLOPC): Do not expect.
42474         [POSIX || XPG3] (ILL_ILLOPN): Likewise.
42475         [POSIX || XPG3] (ILL_ILLADR): Likewise.
42476         [POSIX || XPG3] (ILL_ILLTRP): Likewise.
42477         [POSIX || XPG3] (ILL_PRVOPC): Likewise.
42478         [POSIX || XPG3] (ILL_PRVREG): Likewise.
42479         [POSIX || XPG3] (ILL_COPROC): Likewise.
42480         [POSIX || XPG3] (ILL_BADSTK): Likewise.
42481         [POSIX || XPG3] (FPE_INTDIV): Likewise.
42482         [POSIX || XPG3] (FPE_INTOVF): Likewise.
42483         [POSIX || XPG3] (FPE_FLTDIV): Likewise.
42484         [POSIX || XPG3] (FPE_FLTOVF): Likewise.
42485         [POSIX || XPG3] (FPE_FLTUND): Likewise.
42486         [POSIX || XPG3] (FPE_FLTRES): Likewise.
42487         [POSIX || XPG3] (FPE_FLTINV): Likewise.
42488         [POSIX || XPG3] (FPE_FLTSUB): Likewise.
42489         [POSIX || XPG3] (SEGV_MAPERR): Likewise.
42490         [POSIX || XPG3] (SEGV_ACCERR): Likewise.
42491         [POSIX || XPG3] (BUS_ADRALN): Likewise.
42492         [POSIX || XPG3] (BUS_ADRERR): Likewise.
42493         [POSIX || XPG3] (BUS_OBJERR): Likewise.
42494         [POSIX || XPG3] (CLD_EXITED): Likewise.
42495         [POSIX || XPG3] (CLD_KILLED): Likewise.
42496         [POSIX || XPG3] (CLD_DUMPED): Likewise.
42497         [POSIX || XPG3] (CLD_TRAPPED): Likewise.
42498         [POSIX || XPG3] (CLD_STOPPED): Likewise.
42499         [POSIX || XPG3] (CLD_CONTINUED): Likewise.
42500         [POSIX || XPG3] (POLL_IN): Likewise.
42501         [POSIX || XPG3] (POLL_OUT): Likewise.
42502         [POSIX || XPG3] (POLL_MSG): Likewise.
42503         [POSIX || XPG3] (POLL_ERR): Likewise.
42504         [POSIX || XPG3] (POLL_PRI): Likewise.
42505         [POSIX || XPG3] (POLL_HUP): Likewise.
42506         [POSIX || XPG3 || POSIX2008] (TRAP_BRKPT): Likewise.
42507         [POSIX || XPG3 || POSIX2008] (TRAP_TRACE): Likewise.
42508         (SIG*): Do not allow.
42509         [XPG3] (si_*): Likewise.
42510         [XPG3] (SI_*): Likewise.
42511         [XPG3 || XPG4] (sigev_*): Likewise.
42512         [XPG3 || XPG4] (SIGEV_*): Likewise.
42513         [XPG3 || XPG4] (sival_*): Likewise.
42514         [POSIX || XPG3 || XPG4] (uc_*): Likewise.
42515         [POSIX || XPG3] (BUS_*): Likewise.
42516         [POSIX || XPG3] (CLD_*): Likewise.
42517         [POSIX || XPG3] (FPE_*): Likewise.
42518         [POSIX || XPG3] (ILL_*): Likewise.
42519         [POSIX || XPG3] (POLL_*): Likewise.
42520         [POSIX || XPG3] (SEGV_*): Likewise.
42521         [POSIX || XPG3 || POSIX2008] (SS_*): Likewise.
42522         [POSIX || XPG3 || POSIX2008] (SV_*): Likewise.
42523         [POSIX || XPG3 || POSIX2008] (TRAP_*): Likewise.
42524         [POSIX || XPG3 || POSIX2008] (ss_*): Likewise.
42525         [POSIX || XPG3 || POSIX2008] (sv_*): Likewise.
42526         * conform/data/tar.h-data (TMAGLEN): Use macro-int-constant.
42527         Specify type and value.
42528         (TVERSLEN): Likewise.
42529         (REGTYPE): Likewise.
42530         (AREGTYPE): Likewise.
42531         (LNKTYPE): Likewise.
42532         (SYMTYPE): Likewise.
42533         (CHRTYPE): Likewise.
42534         (BLKTYPE): Likewise.
42535         (DIRTYPE): Likewise.
42536         (FIFOTYPE): Likewise.
42537         (CONTTYPE): Likewise.
42538         (TSUID): Likewise.
42539         (TSGID): Likewise.
42540         (TSVTX): Likewise.
42541         (TUREAD): Likewise.
42542         (TUWRITE): Likewise.
42543         (TUEXEC): Likewise.
42544         (TGREAD): Likewise.
42545         (TGWRITE): Likewise.
42546         (TGEXEC): Likewise.
42547         (TOREAD): Likewise.
42548         (TOWRITE): Likewise.
42549         (TOEXEC): Likewise.
42550         [POSIX] (TSVTX): Expect constant.
42551
42552 2014-03-06  Joseph Myers  <joseph@codesourcery.com>
42553
42554         * Makefile (tests): Change dependencies to ....
42555         (tests-special): ... additions to this variable.
42556         (tests): Depend on $(tests-special).
42557         * Makerules (check-abi-list): New variable.
42558         (check-abi): Depend on $(check-abi-list).
42559         [$(subdir) = elf] (tests-special): Add
42560         $(objpfx)check-abi-libc.out.
42561         [$(build-shared) = yes && subdir] (tests-special): Add
42562         $(check-abi-list).
42563         [$(build-shared) = yes && subdir] (tests): Do not depend on
42564         check-abi.
42565         * Rules (tests): Depend on $(tests-special).
42566         (xtests): Depend on $(xtests-special).
42567         * catgets/Makefile (tests): Change dependencies to ....
42568         (tests-special): ... additions to this variable.
42569         * conform/Makefile (tests): Change dependencies to ....
42570         (tests-special): ... additions to this variable.
42571         * elf/Makefile (tests): Change dependencies to ....
42572         (tests-special): ... additions to this variable.
42573         * grp/Makefile (tests): Change dependencies to ....
42574         (tests-special): ... additions to this variable.
42575         * iconv/Makefile (xtests): Change dependencies to ....
42576         (xtests-special): ... additions to this variable.
42577         * iconvdata/Makefile (tests): Change dependencies to ....
42578         (tests-special): ... additions to this variable.
42579         * intl/Makefile (tests): Change dependencies to ....
42580         (tests-special): ... additions to this variable.  Also add
42581         $(objpfx)tst-gettext.out.
42582         * io/Makefile (tests): Change dependencies to ....
42583         (tests-special): ... additions to this variable.
42584         * libio/Makefile (tests): Change dependencies to ....
42585         (tests-special): ... additions to this variable.
42586         * malloc/Makefile (tests): Change dependencies to ....
42587         (tests-special): ... additions to this variable.
42588         * misc/Makefile (tests): Change dependencies to ....
42589         (tests-special): ... additions to this variable.
42590         * nptl/Makefile (tests): Change dependencies to ....
42591         (tests-special): ... additions to this variable.
42592         * nptl_db/Makefile (tests): Change dependencies to ....
42593         (tests-special): ... additions to this variable.
42594         * posix/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         * resolv/Makefile (tests): Change dependencies to ....
42599         (tests-special): ... additions to this variable.
42600         (xtests): Change dependencies to ....
42601         (xtests-special): ... additions to this variable.
42602         * stdio-common/Makefile (tests): Change dependencies to ....
42603         (tests-special): ... additions to this variable.
42604         (do-tst-unbputc): Remove target.
42605         (do-tst-printf): Likewise.
42606         * stdlib/Makefile (tests): Change dependencies to ....
42607         (tests-special): ... additions to this variable.
42608         * string/Makefile (tests): Change dependencies to ....
42609         (tests-special): ... additions to this variable.
42610         * sysdeps/x86/Makefile (tests): Change dependencies to ....
42611         (tests-special): ... additions to this variable.
42612
42613         * conform/data/netinet/tcp.h-data [POSIX2008 || XOPEN2K8]: Enable
42614         whole file.
42615         * conform/data/sys/timeb.h-data [POSIX2008 || XOPEN2K8]: Disable
42616         whole file.
42617         * conform/data/sys/uio.h-data [POSIX2008]: Likewise.
42618         * conform/data/ucontext.h-data [POSIX2008 || XOPEN2K8]: Likewise.
42619
42620         * conform/data/aio.h-data [XPG3 || XPG4]: Disable whole file.
42621         * conform/data/arpa/inet.h-data [XPG3]: Likewise.
42622         * conform/data/dlfcn.h-data [XPG3 || XPG4]: Likewise.
42623         * conform/data/fmtmsg.h-data [XPG3]: Likewise.
42624         * conform/data/libgen.h-data [XPG3]: Likewise.
42625         * conform/data/mqueue.h-data [XPG3 || XPG4]: Likewise.
42626         * conform/data/ndbm.h-data [XPG3]: Likewise.
42627         * conform/data/net/if.h-data [XPG3 || XPG4 || UNIX98]: Likewise.
42628         * conform/data/netdb.h-data [XPG3]: Likewise.
42629         * conform/data/netinet/in.h-data [XPG3]: Likewise.
42630         * conform/data/poll.h-data [XPG3]: Likewise.
42631         * conform/data/spawn.h-data [XPG3 || XPG4 || UNIX98]: Likewise.
42632         * conform/data/strings.h-data [XPG3]: Likewise.
42633         * conform/data/stropts.h-data [XPG3]: Likewise.
42634         * conform/data/sys/mman.h-data [XPG3]: Likewise.
42635         * conform/data/sys/resource.h-data [XPG3]: Likewise.
42636         * conform/data/sys/select.h-data [XPG3 || XPG4 || UNIX98]:
42637         Likewise.
42638         * conform/data/sys/statvfs.h-data [XPG3]: Likewise.
42639         * conform/data/sys/time.h-data [XPG3]: Likewise.
42640         * conform/data/sys/timeb.h-data [XPG3]: Likewise.
42641         * conform/data/sys/uio.h-data [XPG3]: Likewise.
42642         * conform/data/sys/un.h-data [XPG3]: Likewise.
42643         * conform/data/syslog.h-data [XPG3]: Likewise.
42644         * conform/data/ucontext.h-data [XPG3]: Likewise.
42645         * conform/data/utmpx.h-data [XPG3]: Likewise.
42646         * conform/data/varargs.h-data [UNIX98]: Enable file.
42647
42648         * manual/Makefile (INSTALL_INFO): Remove variable setting.
42649
42650         * math/libm-test.inc (struct test_f_f_data): Move expected results
42651         into structure for each rounding mode.
42652         (struct test_ff_f_data): Likewise.
42653         (struct test_ff_f_data_nexttoward): Likewise.
42654         (struct test_fi_f_data): Likewise.
42655         (struct test_fl_f_data): Likewise.
42656         (struct test_if_f_data): Likewise.
42657         (struct test_fff_f_data): Likewise.
42658         (struct test_c_f_data): Likewise.
42659         (struct test_f_f1_data): Likewise.
42660         (struct test_fF_f1_data): Likewise.
42661         (struct test_ffI_f1_data): Likewise.
42662         (struct test_c_c_data): Likewise.
42663         (struct test_cc_c_data): Likewise.
42664         (struct test_f_i_data): Likewise.
42665         (struct test_ff_i_data): Likewise.
42666         (struct test_f_l_data): Likewise.
42667         (struct test_f_L_data): Likewise.
42668         (struct test_fFF_11_data): Likewise.
42669         (RM_): New macro.
42670         (RM_FE_DOWNWARD): Likewise.
42671         (RM_FE_TONEAREST): Likewise.
42672         (RM_FE_TOWARDZERO): Likewise.
42673         (RM_FE_UPWARD): Likewise.
42674         (RUN_TEST_LOOP_f_f): Update references to expected results.
42675         (RUN_TEST_LOOP_2_f): Likewise.
42676         (RUN_TEST_LOOP_fff_f): Likewise.
42677         (RUN_TEST_LOOP_c_f): Likewise.
42678         (RUN_TEST_LOOP_f_f1): Likewise.
42679         (RUN_TEST_LOOP_fF_f1): Likewise.
42680         (RUN_TEST_LOOP_fI_f1): Likewise.
42681         (RUN_TEST_LOOP_ffI_f1): Likewise.
42682         (RUN_TEST_LOOP_c_c): Likewise.
42683         (RUN_TEST_LOOP_cc_c): Likewise.
42684         (RUN_TEST_LOOP_f_i): Likewise.
42685         (RUN_TEST_LOOP_f_i_tg): Likewise.
42686         (RUN_TEST_LOOP_ff_i_tg): Likewise.
42687         (RUN_TEST_LOOP_f_b): Likewise.
42688         (RUN_TEST_LOOP_f_b_tg): Likewise.
42689         (RUN_TEST_LOOP_f_l): Likewise.
42690         (RUN_TEST_LOOP_f_L): Likewise.
42691         (RUN_TEST_LOOP_fFF_11): Likewise.
42692         * math/gen-libm-test.pl (parse_args): Output four copies of
42693         expected results for each test.
42694
42695         * sysdeps/unix/sysv/linux/aarch64/kernel-features.h
42696         (__ASSUME_UTIMES): Remove.
42697         * sysdeps/unix/sysv/linux/tile/kernel-features.h
42698         (__ASSUME_UTIMES): Likewise.
42699
42700         * math/gen-auto-libm-tests.c: Update comment on output format.
42701         (output_for_one_input_case): Generate before-rounding and
42702         after-rounding information as conditions on output flags not
42703         floating-point format.
42704         * math/auto-libm-test-out: Regenerated.
42705         * math/gen-libm-test.pl (cond_value): New function.
42706         (or_cond_value): Use cond_value.
42707         (generate_testfile): Handle conditional exceptions.
42708
42709 2014-03-05  Joseph Myers  <joseph@codesourcery.com>
42710
42711         * math/libm-test.inc (max_valid_error): New variable.
42712         (init_max_error): Take new argument specifying whether function
42713         results are exactly determined.  Set max_valid_error and bound
42714         other variables for errors based on this argument.
42715         (set_max_error): Do not record results above max_valid_error.
42716         (check_float_internal): Only accept errors of up to 0.5ulps if
42717         also at most max_valid_error.
42718         (START): Take new argument EXACT and pass it to init_max_error.
42719         (acos_test): Update call to START.
42720         (acos_test_tonearest): Likewise.
42721         (acos_test_towardzero): Likewise.
42722         (acos_test_downward): Likewise.
42723         (acos_test_upward): Likewise.
42724         (acosh_test): Likewise.
42725         (asin_test): Likewise.
42726         (asin_test_tonearest): Likewise.
42727         (asin_test_towardzero): Likewise.
42728         (asin_test_downward): Likewise.
42729         (asin_test_upward): Likewise.
42730         (asinh_test): Likewise.
42731         (atan_test): Likewise.
42732         (atanh_test): Likewise.
42733         (atan2_test): Likewise.
42734         (cabs_test): Likewise.
42735         (cacos_test): Likewise.
42736         (cacosh_test): Likewise.
42737         (carg_test): Likewise.
42738         (casin_test): Likewise.
42739         (casinh_test): Likewise.
42740         (catan_test): Likewise.
42741         (catanh_test): Likewise.
42742         (cbrt_test): Likewise.
42743         (ccos_test): Likewise.
42744         (ccosh_test): Likewise.
42745         (ceil_test): Likewise.
42746         (cexp_test): Likewise.
42747         (cimag_test): Likewise.
42748         (clog_test): Likewise.
42749         (clog10_test): Likewise.
42750         (conj_test): Likewise.
42751         (copysign_test): Likewise.
42752         (cos_test): Likewise.
42753         (cos_test_tonearest): Likewise.
42754         (cos_test_towardzero): Likewise.
42755         (cos_test_downward): Likewise.
42756         (cos_test_upward): Likewise.
42757         (cosh_test): Likewise.
42758         (cosh_test_tonearest): Likewise.
42759         (cosh_test_towardzero): Likewise.
42760         (cosh_test_downward): Likewise.
42761         (cosh_test_upward): Likewise.
42762         (cpow_test): Likewise.
42763         (cproj_test): Likewise.
42764         (creal_test): Likewise.
42765         (csin_test): Likewise.
42766         (csinh_test): Likewise.
42767         (csqrt_test): Likewise.
42768         (ctan_test): Likewise.
42769         (ctan_test_tonearest): Likewise.
42770         (ctan_test_towardzero): Likewise.
42771         (ctan_test_downward): Likewise.
42772         (ctan_test_upward): Likewise.
42773         (ctanh_test): Likewise.
42774         (ctanh_test_tonearest): Likewise.
42775         (ctanh_test_towardzero): Likewise.
42776         (ctanh_test_downward): Likewise.
42777         (ctanh_test_upward): Likewise.
42778         (erf_test): Likewise.
42779         (erfc_test): Likewise.
42780         (exp_test): Likewise.
42781         (exp_test_tonearest): Likewise.
42782         (exp_test_towardzero): Likewise.
42783         (exp_test_downward): Likewise.
42784         (exp_test_upward): Likewise.
42785         (exp10_test): Likewise.
42786         (exp10_test_tonearest): Likewise.
42787         (exp10_test_towardzero): Likewise.
42788         (exp10_test_downward): Likewise.
42789         (exp10_test_upward): Likewise.
42790         (pow10_test): Likewise.
42791         (exp2_test): Likewise.
42792         (expm1_test): Likewise.
42793         (expm1_test_tonearest): Likewise.
42794         (expm1_test_towardzero): Likewise.
42795         (expm1_test_downward): Likewise.
42796         (expm1_test_upward): Likewise.
42797         (fabs_test): Likewise.
42798         (fdim_test): Likewise.
42799         (floor_test): Likewise.
42800         (fma_test): Likewise.
42801         (fma_test_towardzero): Likewise.
42802         (fma_test_downward): Likewise.
42803         (fma_test_upward): Likewise.
42804         (fmax_test): Likewise.
42805         (fmin_test): Likewise.
42806         (fmod_test): Likewise.
42807         (fpclassify_test): Likewise.
42808         (frexp_test): Likewise.
42809         (hypot_test): Likewise.
42810         (ilogb_test): Likewise.
42811         (isfinite_test): Likewise.
42812         (finite_test): Likewise.
42813         (isgreater_test): Likewise.
42814         (isgreaterequal_test): Likewise.
42815         (isinf_test): Likewise.
42816         (isless_test): Likewise.
42817         (islessequal_test): Likewise.
42818         (islessgreater_test): Likewise.
42819         (isnan_test): Likewise.
42820         (isnormal_test): Likewise.
42821         (issignaling_test): Likewise.
42822         (isunordered_test): Likewise.
42823         (j0_test): Likewise.
42824         (j1_test): Likewise.
42825         (jn_test): Likewise.
42826         (ldexp_test): Likewise.
42827         (lgamma_test): Likewise.
42828         (gamma_test): Likewise.
42829         (lrint_test): Likewise.
42830         (lrint_test_tonearest): Likewise.
42831         (lrint_test_towardzero): Likewise.
42832         (lrint_test_downward): Likewise.
42833         (lrint_test_upward): Likewise.
42834         (llrint_test): Likewise.
42835         (llrint_test_tonearest): Likewise.
42836         (llrint_test_towardzero): Likewise.
42837         (llrint_test_downward): Likewise.
42838         (llrint_test_upward): Likewise.
42839         (log_test): Likewise.
42840         (log10_test): Likewise.
42841         (log1p_test): Likewise.
42842         (log2_test): Likewise.
42843         (logb_test): Likewise.
42844         (logb_test_downward): Likewise.
42845         (lround_test): Likewise.
42846         (llround_test): Likewise.
42847         (modf_test): Likewise.
42848         (nearbyint_test): Likewise.
42849         (nextafter_test): Likewise.
42850         (nexttoward_test): Likewise.
42851         (pow_test): Likewise.
42852         (pow_test_tonearest): Likewise.
42853         (pow_test_towardzero): Likewise.
42854         (pow_test_downward): Likewise.
42855         (pow_test_upward): Likewise.
42856         (remainder_test): Likewise.
42857         (drem_test): Likewise.
42858         (remainder_test_tonearest): Likewise.
42859         (drem_test_tonearest): Likewise.
42860         (remainder_test_towardzero): Likewise.
42861         (drem_test_towardzero): Likewise.
42862         (remainder_test_downward): Likewise.
42863         (drem_test_downward): Likewise.
42864         (remainder_test_upward): Likewise.
42865         (drem_test_upward): Likewise.
42866         (remquo_test): Likewise.
42867         (rint_test): Likewise.
42868         (rint_test_tonearest): Likewise.
42869         (rint_test_towardzero): Likewise.
42870         (rint_test_downward): Likewise.
42871         (rint_test_upward): Likewise.
42872         (round_test): Likewise.
42873         (scalb_test): Likewise.
42874         (scalbn_test): Likewise.
42875         (scalbln_test): Likewise.
42876         (signbit_test): Likewise.
42877         (sin_test): Likewise.
42878         (sin_test_tonearest): Likewise.
42879         (sin_test_towardzero): Likewise.
42880         (sin_test_downward): Likewise.
42881         (sin_test_upward): Likewise.
42882         (sincos_test): Likewise.
42883         (sinh_test): Likewise.
42884         (sinh_test_tonearest): Likewise.
42885         (sinh_test_towardzero): Likewise.
42886         (sinh_test_downward): Likewise.
42887         (sinh_test_upward): Likewise.
42888         (sqrt_test): Likewise.
42889         (sqrt_test_tonearest): Likewise.
42890         (sqrt_test_towardzero): Likewise.
42891         (sqrt_test_downward): Likewise.
42892         (sqrt_test_upward): Likewise.
42893         (tan_test): Likewise.
42894         (tan_test_tonearest): Likewise.
42895         (tan_test_towardzero): Likewise.
42896         (tan_test_downward): Likewise.
42897         (tan_test_upward): Likewise.
42898         (tanh_test): Likewise.
42899         (tgamma_test): Likewise.
42900         (trunc_test): Likewise.
42901         (y0_test): Likewise.
42902         (y1_test): Likewise.
42903         (yn_test): Likewise.
42904         (significand_test): Likewise.
42905
42906         * math/libm-test.inc (struct ulp_data): Don't refer to ulps for
42907         individual tests in comment.
42908         (libm-test-ulps.h): Don't refer to test_ulps in #include comment.
42909         (prev_max_error): New variable.
42910         (prev_real_max_error): Likewise.
42911         (prev_imag_max_error): Likewise.
42912         (compare_ulp_data): Don't refer to test names in comment.
42913         (find_test_ulps): Remove function.
42914         (find_function_ulps): Likewise.
42915         (find_complex_function_ulps): Likewise.
42916         (init_max_error): Take function name as argument.  Look up ulps
42917         for that function.
42918         (print_ulps): Remove function.
42919         (print_max_error): Use prev_max_error instead of calling
42920         find_function_ulps.
42921         (print_complex_max_error): Use prev_real_max_error and
42922         prev_imag_max_error instead of calling find_complex_function_ulps.
42923         (check_float_internal): Take max_ulp parameter instead of calling
42924         find_test_ulps.  Don't call print_ulps.
42925         (check_float): Update call to check_float_internal.
42926         (check_complex): Update calls to check_float_internal.
42927         (START): Pass argument to init_max_error.
42928         * math/gen-libm-test.pl (%results): Don't include "kind"
42929         information.
42930         (parse_ulps): Don't handle ulps of individual tests.
42931         (print_ulps_file): Likewise.
42932         (output_ulps): Likewise.
42933         * math/README.libm-test: Update.
42934         * manual/libm-err-tab.pl (parse_ulps): Don't handle ulps of
42935         individual tests.
42936         * sysdeps/aarch64/libm-test-ulps: Remove individual test ulps.
42937         * sysdeps/alpha/fpu/libm-test-ulps: Likewise.
42938         * sysdeps/arm/libm-test-ulps: Likewise.
42939         * sysdeps/i386/fpu/libm-test-ulps: Likewise.
42940         * sysdeps/ia64/fpu/libm-test-ulps: Likewise.
42941         * sysdeps/m68k/coldfire/fpu/libm-test-ulps: Likewise.
42942         * sysdeps/m68k/m680x0/fpu/libm-test-ulps: Likewise.
42943         * sysdeps/microblaze/libm-test-ulps: Likewise.
42944         * sysdeps/mips/mips32/libm-test-ulps: Likewise.
42945         * sysdeps/mips/mips64/libm-test-ulps: Likewise.
42946         * sysdeps/powerpc/fpu/libm-test-ulps: Likewise.
42947         * sysdeps/powerpc/nofpu/libm-test-ulps: Likewise.
42948         * sysdeps/s390/fpu/libm-test-ulps: Likewise.
42949         * sysdeps/sh/libm-test-ulps: Likewise.
42950         * sysdeps/sparc/fpu/libm-test-ulps: Likewise.
42951         * sysdeps/tile/libm-test-ulps: Likewise.
42952         * sysdeps/x86_64/fpu/libm-test-ulps: Likewise.
42953
42954 2014-03-04  Joseph Myers  <joseph@codesourcery.com>
42955
42956         * math/libm-test.inc (print_complex_max_error): Check separately
42957         whether real and imaginary errors are within allowed range and
42958         pass 0 to print_complex_function_ulps instead of value within
42959         allowed range.
42960
42961 2014-03-04  Siddhesh Poyarekar  <siddhesh@redhat.com>
42962
42963         * libio/tst-ftell-active-handler.c (get_handles_fdopen): Fix
42964         formatting.
42965         (get_handles_fopen): Likewise.
42966         (do_write_test): Likewise.
42967
42968         * libio/wfileops.c (do_ftell_wide): Fix up formatting.
42969
42970         * libio/fileops.c (do_ftell): Use cached offset when
42971         available.
42972         * libio/iofwide.c (do_ftell_wide): Likewise.
42973         * libio/iofdopen.c (_IO_new_fdopen): Don't use
42974         _IO_file_attach.
42975         * libio/wfileops.c (_IO_fwide): Don't cache offset.
42976
42977         [BZ #16532]
42978         * libio/libioP.h (get_file_offset): New function.
42979         * libio/fileops.c (get_file_offset): Likewise.
42980         (do_ftell): Likewise.
42981         (_IO_new_file_seekoff): Split out ftell logic.
42982         * libio/wfileops.c (do_ftell_wide): Likewise.
42983         (_IO_wfile_seekoff): Split out ftell logic.
42984         * libio/tst-ftell-active-handler.c: New test case.
42985         * libio/Makefile (tests): Add it.
42986
42987 2014-03-03  Roland McGrath  <roland@hack.frob.com>
42988
42989         * nptl/ChangeLog: Renamed to nptl/ChangeLog.old, no longer used.
42990         * nptl_db/ChangeLog: Renamed to nptl_db/ChangeLog.old, no longer used.
42991
42992 2014-03-03  Siddhesh Poyarekar  <siddhesh@redhat.com>
42993
42994         [BZ #16639]
42995         * nscd/connections.c (nscd_init): Call do_exit.
42996         (start_threads): Call do_exit and notify_parent.
42997         (begin_drop_privileges): Call do_exit.
42998         (finish_drop_privileges): Likewise.
42999         * nscd/selinux.c (preserve_capabilities): Likewise.
43000         (install_real_capabilities): Likewise.
43001         (nscd_selinux_enabled): Likewise.
43002         (avc_create_thread): Likewise.
43003         (avc_alloc_lock): Likewise.
43004         (nscd_avc_init): Likewise.
43005         * nscd/nscd.c (parent_fd): New static variable.
43006         (main): Create a pipe between parent and child processes.
43007         Skip closing parent_fd.
43008         (monitor_child): New function.
43009         (do_exit): Likewise.
43010         (notify_parent): Likewise.
43011         * nscd/nscd.h (notify_parent): Likewise.
43012         (do_exit): Likewise.
43013
43014 2014-03-03  Carlos O'Donell  <carlos@redhat.com>
43015
43016         * malloc/malloc.c (__libc_calloc): Revert last change.
43017
43018 2014-03-03  Adhemerval Zanella  <azanella@linux.vnet.ibm.com>
43019
43020         * sysdeps/powerpc/fpu/libm-test-ulps: Update.
43021
43022 2014-03-03  Rajalakshmi Srinivasaraghavan <raji@linux.vnet.ibm.com>
43023
43024         * sysdeps/powerpc/powerpc64/power7/strrchr.S: New file.
43025         * sysdeps/powerpc/powerpc64/multiarch/Makefile: Add strrchr multiarch
43026         implementation.
43027         * sysdeps/powerpc/powerpc64/multiarch/ifunc-impl-list.c:
43028         (__libc_ifunc_impl_list): Likewise.
43029         * sysdeps/powerpc/powerpc64/multiarch/strrchr.c: New file.
43030         * sysdeps/powerpc/powerpc64/multiarch/strrchr-ppc64.c: New file.
43031         * sysdeps/powerpc/powerpc64/multiarch/strrchr-power7.S: New file.
43032         * string/strrchr.c: Define STRRCHR.
43033
43034 2014-02-28  Ondřej Bílka  <neleai@seznam.cz>
43035
43036         * benchtest/bench-strtok.c (simple_strtok): Delete.
43037         (strtok_string): Use as benchmark.
43038         * string/strtok (STRTOK): New macro.
43039
43040 2014-02-28  Carlos O'Donell  <carlos@redhat.com>
43041
43042         * manual/threads.texi: Add header and standard comments to all
43043         functions.
43044
43045         * elf/dl-lookup.c (check_match): New function.
43046         (ELF_MACHINE_SYM_NO_MATCH): Adjust comment.
43047         (do_lookup_x): Remove nested function check_match. Use non-nested
43048         function check_match.
43049
43050 2014-02-28  Roland McGrath  <roland@hack.frob.com>
43051
43052         * csu/Makefile (generated, before-compile): Use += rather than =.
43053         * catgets/Makefile (generated, generated-dirs): Likewise.
43054         * debug/Makefile (generated): Likewise.
43055         * dlfcn/Makefile (generated): Likewise.
43056         * elf/Makefile (before-compile, generated, generated-dirs): Likewise.
43057         * iconvdata/Makefile (before-compile, generated): Likewise.
43058         * intl/Makefile (before-compile, generated, generated-dirs): Likewise.
43059         * libio/Makefile (generated): Likewise.
43060         * malloc/Makefile (generated): Likewise.
43061         * manual/Makefile (generated, generated-dirs): Likewise.
43062         * misc/Makefile (generated): Likewise.
43063         * posix/Makefile (generated): Likewise.
43064         * resolv/Makefile (generated): Likewise.
43065         * sunrpc/Makefile (generated, generated-dirs): Likewise.
43066         * timezone/Makefile (generated, generated-dirs): Likewise.
43067
43068         * stdio-common/Versions (libc: GLIBC_PRIVATE): Add missing }.
43069
43070 2014-02-27  Adhemerval Zanella  <azanella@linux.vnet.ibm.com>
43071
43072         * sysdeps/powerpc/powerpc64/fpu/multiarch/Makefile: Add llround
43073         power8 implementation.
43074         * sysdeps/powerpc/powerpc64/fpu/multiarch/s_llround-power8.S: New
43075         file: POWER8 llround ifunc implementation.
43076         * sysdeps/powerpc/powerpc64/fpu/multiarch/s_llround.c
43077         (__lllround): Add POWER8 implementation.
43078         * sysdeps/powerpc/powerpc64/power8/fpu/s_llround.S: New file:
43079         POWER8 llround implementation.
43080
43081         * sysdeps/powerpc/powerpc64/fpu/multiarch/Makefile: Add llrint
43082         power8 implementation.
43083         * sysdeps/powerpc/powerpc64/fpu/multiarch/s_llrint-power8.S: New
43084         file: POWER8 llrint ifunc implementation.
43085         * sysdeps/powerpc/powerpc64/fpu/multiarch/s_llrint.c (__lllrint):
43086         Add POWER8 implementation.
43087         * sysdeps/powerpc/powerpc64/power8/fpu/s_llrint.S: New file:
43088         POWER8 llrint implementation.
43089
43090         * sysdeps/powerpc/powerpc64/fpu/multiarch/Makefile: Add finite
43091         power8 implementation.
43092         * sysdeps/powerpc/powerpc64/fpu/multiarch/s_finite-power8.S: New
43093         file: POWER8 finite ifunc implementation.
43094         * sysdeps/powerpc/powerpc64/fpu/multiarch/s_finite.c (__finite):
43095         Add POWER8 implementation.
43096         * sysdeps/powerpc/powerpc64/fpu/multiarch/s_finitef.c (__finitef):
43097         Likewise.
43098         * sysdeps/powerpc/powerpc64/power8/fpu/s_finite.S: New file:
43099         POWER8 finite implementation.
43100         * sysdeps/powerpc/powerpc64/power8/fpu/s_finitef.S: New file.
43101
43102         * sysdeps/powerpc/powerpc64/fpu/multiarch/Makefile: Add isinf
43103         power8 implementation.
43104         * sysdeps/powerpc/powerpc64/fpu/multiarch/s_isinf-power8.S: New
43105         file: POWER8 isinf ifunc implementation.
43106         * sysdeps/powerpc/powerpc64/fpu/multiarch/s_isinf.c (__isinf): Add
43107         POWER8 implementation.
43108         * sysdeps/powerpc/powerpc64/fpu/multiarch/s_isinff.c (__isinff):
43109         Likewise.
43110         * sysdeps/powerpc/powerpc64/power8/fpu/s_isinf.S: New file: POWER8
43111         isinf implementation.
43112         * sysdeps/powerpc/powerpc64/power8/fpu/s_isinff.S: New file.
43113
43114         * sysdeps/powerpc/powerpc32/power4/multiarch/init-arch.h
43115         (INIT_ARCH): Add hwcap2 initialization.
43116         * sysdeps/powerpc/powerpc64/fpu/multiarch/Makefile: Add isnan
43117         power8 implementation.
43118         * sysdeps/powerpc/powerpc64/fpu/multiarch/s_isnan-power8.S: New
43119         file: POWER8 isnan ifunc implementation.
43120         * sysdeps/powerpc/powerpc64/fpu/multiarch/s_isnan.c (__isnan): Add
43121         POWER8 implementation.
43122         * sysdeps/powerpc/powerpc64/fpu/multiarch/s_isnanf.c (__isnanf):
43123         Likewise.
43124         * sysdeps/powerpc/powerpc64/power8/fpu/s_isnan.S: New file: POWER8
43125         isnan implementation.
43126         * sysdeps/powerpc/powerpc64/power8/fpu/s_isnanf.S: New file.
43127
43128 2014-02-27  Joey Ye  <joey.ye@arm.com>
43129
43130         * sysdeps/arm/soft-fp/sfp-machine.h (_FP_NANFRAC_S, _FP_NANFRAC_D)
43131         (_FP_NANFRAC_Q): Set to zero.
43132
43133 2014-02-27  Siddhesh Poyarekar  <siddhesh@redhat.com>
43134
43135         [BZ #16623]
43136         * math/auto-libm-test-in: New test inputs.
43137         * math/auto-libm-test-out: Regenerate.
43138         * sysdeps/ieee754/dbl-64/s_sin.c (__sin): Preserve sign of A
43139         and DA.
43140         (__cos): Likewise.
43141         * sysdeps/x86_64/fpu/libm-test-ulps: Regenerate.
43142
43143 2014-02-27  Joseph Myers  <joseph@codesourcery.com>
43144
43145         * scripts/evaluate-test.sh: Take new argument indicating whether
43146         failure is expected.
43147         * Makeconfig (evaluate-test): Pass argument to evaluate-test.sh
43148         indicating whether failure is expected.
43149         * conform/Makefile (test-xfail-run-conformtest): New variable.
43150         ($(objpfx)run-conformtest.out): Don't expect to fail at makefile
43151         level.
43152         * posix/Makefile (test-xfail-annexc): New variable.
43153         ($(objpfx)annexc.out): Don't expect to fail at makefile level.
43154
43155 2014-02-26  Joseph Myers  <joseph@codesourcery.com>
43156
43157         * argp/Makefile: Include Makeconfig immediately after defining
43158         subdir.
43159         * assert/Makefile: Likewise.
43160         * benchtests/Makefile: Likewise.
43161         * catgets/Makefile: Likewise.
43162         * conform/Makefile: Likewise.
43163         * crypt/Makefile: Likewise.
43164         * csu/Makefile: Likewise.
43165         (all): Remove target.
43166         * ctype/Makefile: Include Makeconfig immediately after defining
43167         subdir.
43168         * debug/Makefile: Likewise.
43169         * dirent/Makefile: Likewise.
43170         * dlfcn/Makefile: Likewise.
43171         * gmon/Makefile: Likewise.
43172         * gnulib/Makefile: Likewise.
43173         * grp/Makefile: Likewise.
43174         * gshadow/Makefile: Likewise.
43175         * hesiod/Makefile: Likewise.
43176         * hurd/Makefile: Likewise.
43177         (all): Remove target.
43178         * iconvdata/Makefile: Include Makeconfig immediately after
43179         defining subdir.
43180         * inet/Makefile: Likewise.
43181         * intl/Makefile: Likewise.
43182         * io/Makefile: Likewise.
43183         * libio/Makefile: Likewise.
43184         (all): Remove target.
43185         * locale/Makefile: Include Makeconfig immediately after defining
43186         subdir.
43187         * login/Makefile: Likewise.
43188         * mach/Makefile: Likewise.
43189         (all): Remove target.
43190         * malloc/Makefile: Include Makeconfig immediately after defining
43191         subdir.
43192         (all): Remove target.
43193         * manual/Makefile: Include Makeconfig immediately after defining
43194         subdir.
43195         * math/Makefile: Likewise.
43196         * misc/Makefile: Likewise.
43197         * nis/Makefile: Likewise.
43198         * nss/Makefile: Likewise.
43199         * po/Makefile: Likewise.
43200         (all): Remove target.
43201         * posix/Makefile: Include Makeconfig immediately after defining
43202         subdir.
43203         * pwd/Makefile: Likewise.
43204         * resolv/Makefile: Likewise.
43205         * resource/Makefile: Likewise.
43206         * rt/Makefile: Likewise.
43207         * setjmp/Makefile: Likewise.
43208         * shadow/Makefile: Likewise.
43209         * signal/Makefile: Likewise.
43210         * socket/Makefile: Likewise.
43211         * soft-fp/Makefile: Likewise.
43212         * stdio-common/Makefile: Likewise.
43213         * stdlib/Makefile: Likewise.
43214         * streams/Makefile: Likewise.
43215         * string/Makefile: Likewise.
43216         * sunrpc/Makefile: Likewise.
43217         (all): Remove target.
43218         * sysvipc/Makefile: Include Makeconfig immediately after defining
43219         subdir.
43220         * termios/Makefile: Likewise.
43221         * time/Makefile: Likewise.
43222         * timezone/Makefile: Likewise.
43223         (all): Remove target.
43224         * wcsmbs/Makefile: Include Makeconfig immediately after defining
43225         subdir.
43226         * wctype/Makefile: Likewise.
43227
43228 2014-02-26  Steve Ellcey  <sellcey@mips.com>
43229
43230         * sysdeps/mips/math_private.h (_FPU_MASK_ALL) New.
43231         (libc_feholdexcept_mips): Use _FPU_MASK_ALL.
43232         (libc_feholdexcept_setround_mips): Ditto.
43233         (libc_feholdsetround): New.
43234         (libc_feholdsetroundf): New.
43235         (libc_feholdsetroundl): New.
43236         (libc_feupdateenv_test_mips): New.
43237         (libc_feupdateenv_test): New.
43238         (libc_feupdateenv_testf): New.
43239         (libc_feupdateenv_testl): New.
43240         (libc_feresetround): New.
43241         (libc_feresetroundf): New.
43242         (libc_feresetroundl): New.
43243         (libc_fetestexcept_mips): New.
43244         (libc_fetestexcept): New.
43245         (libc_fetestexceptf): New.
43246         (libc_fetestexceptl): New.
43247         (HAVE_RM_CTX): New.
43248         (libc_feholdexcept_setround_mips_ctx): New.
43249         (libc_feholdexcept_setround_ctx): New.
43250         (libc_feholdexcept_setroundf_ctx): New.
43251         (libc_feholdexcept_setroundl_ctx): New.
43252         (libc_fesetenv_mips_ctx): New.
43253         (libc_fesetenv_ctx): New.
43254         (libc_fesetenv_ctxf): New.
43255         (libc_fesetenv_ctxl): New.
43256         (libc_feupdateenv_mips_ctx): New.
43257         (libc_feupdateenv_ctx): New.
43258         (libc_feupdateenvf_ctx): New.
43259         (libc_feupdateenvl_ctx): New.
43260         (libc_feholdsetround_mips_ctx): New.
43261         (libc_feholdsetround_ctx): New.
43262         (libc_feholdsetroundf_ctx): New.
43263         (libc_feholdsetroundl_ctx): New.
43264         (libc_feresetround_mips_ctx): New.
43265         (libc_feresetround_ctx): New.
43266         (libc_feresetroundf_ctx): New.
43267         (libc_feresetroundl_ctx): New.
43268
43269 2014-02-26  Carlos O'Donell  <carlos@redhat.com>
43270
43271         * manual/ipc.texi (Semaphores): Use @Theglibc{}.
43272
43273         * manual/ipc.texi: New file.
43274         * manual/Makefile (chapters): Add ipc.
43275         * manual/job.texi: Add "Inter-Process Communication" to next.
43276         * manual/process.texi: Add "Inter-Process Communication" to prev.
43277
43278 2014-02-26  Adhemerval Zanella  <azanella@linux.vnet.ibm.com>
43279
43280         * sysdeps/powerpc/fpu/libm-test-ulps: Update.
43281
43282 2014-02-26  Ondřej Bílka  <neleai@seznam.cz>
43283
43284         * malloc/malloc.c (__libc_calloc): Simplify implementation.
43285
43286         * manual/arith.texi: Fix spaces after sentences.
43287         * manual/charset.texi: Likewise.
43288         * manual/errno.texi: Likewise.
43289         * manual/install.texi: Likewise.
43290         * manual/llio.texi: Likewise.
43291         * manual/locale.texi: Likewise.
43292         * manual/maint.texi: Likewise.
43293         * manual/math.texi: Likewise.
43294         * manual/memory.texi: Likewise.
43295         * manual/message.texi: Likewise.
43296         * manual/probes.texi: Likewise.
43297         * manual/resource.texi: Likewise.
43298         * manual/signal.texi: Likewise.
43299         * manual/socket.texi: Likewise.
43300         * manual/stdio.texi: Likewise.
43301         * manual/string.texi: Likewise.
43302         * manual/time.texi: Likewise.
43303         * manual/users.texi: Likewise.
43304
43305 2014-02-25  Carlos O'Donell  <carlos@redhat.com>
43306
43307         [BZ #16632]
43308         * include/features.h: Don't warn about _BSD_SOURCE or _SVID_SOURCE if
43309         _DEFAULT_SOURCE is defined.
43310
43311 2014-02-25  Ulrich Drepper  <drepper@gmail.com>
43312             Carlos O'Donell  <carlos@redhat.com>
43313
43314         [BZ #16613]
43315         * elf/dl-tls.c (_dl_count_modids): New function.
43316         * sysdeps/generic/ldsodefs.h: Declare _dl_count_modids.
43317         * elf/rtld.c (dl_main): Call _dl_count_modids to track TLS usage in
43318         audit library and increment generation counter.
43319         (_dl_allocate_tls_init): Add assertion to check TLS generation count.
43320         * elf/tst-audit9.c: New file.
43321         * elf/tst-auditmod9a.c: New file.
43322         * elf/tst-auditmod9b.c: New file.
43323         * elf/Makefile: Add rules to build and run tst-audit9.
43324
43325 2014-02-25  Florian Weimer  <fweimer@redhat.com>
43326
43327         [BZ #15347]
43328         * misc/sys/select.h (__FD_MASK): Avoid signed integer overflow.
43329
43330 2014-02-25  Will Newton  <will.newton@linaro.org>
43331
43332         * sysdeps/arm/__longjmp.S: Include stap-probe.h.
43333         (__longjmp): Restore sp and lr before restoring callee
43334         saved registers.  Add longjmp and longjmp_target
43335         SystemTap probe point.
43336         * sysdeps/arm/bits/setjmp.h (__jmp_buf): Update comment.
43337         * sysdeps/arm/include/bits/setjmp.h (__JMP_BUF_SP):
43338         Define to zero to match jmpbuf layout.
43339         * sysdeps/arm/setjmp.S: Include stap-probe.h.
43340         (__sigsetjmp): Save sp and lr before saving callee
43341         saved registers.  Add setjmp SystemTap probe point.
43342
43343 2014-02-24  Stefan Liebler  <stli@linux.vnet.ibm.com>
43344
43345         * sysdeps/s390/fpu/libm-test-ulps: Regenerate.
43346
43347 2014-02-24  Andreas Schwab  <schwab@suse.de>
43348
43349         [BZ #15804]
43350         * elf/pldd.c (wait_for_ptrace_stop): New function.
43351         (main): Call it after attaching.
43352
43353 2014-02-22  Roland McGrath  <roland@hack.frob.com>
43354
43355         * Makerules ($(common-objpfx)Versions.v.i): No longer depend
43356         on $(common-objpfx)abi-versions.h; using <shlib-compat.h> inside
43357         Versions files is now verboten.
43358         * hurd/Versions (libc: GLIBC_2.0):
43359         Remove various [SHLIB_COMPAT (libc, GLIBC_2_0, ...)] sections.
43360         (libc: HURD_CTHREADS_0.3): Remove conditionalization, was under
43361         [!SHLIB_COMPAT (libc, GLIBC_2_0, GLIBC_2_2)].
43362         * mach/Versions: Likewise.
43363
43364         * csu/Versions: Remove unused %include.
43365         * resolv/Versions: Likewise.
43366
43367 2014-02-21  Joseph Myers  <joseph@codesourcery.com>
43368
43369         * Makefile ($(objpfx)c++-types-check.out): Use $(evaluate-test).
43370         ($(objpfx)check-local-headers.out): Likewise.
43371         ($(objpfx)begin-end-check.out): Likewise.
43372         * Makerules (check-abi-%.out): Likewise.
43373         * catgets/Makefile ($(objpfx)test1.cat): Likewise.
43374         ($(objpfx)test2.cat): Likewise.
43375         ($(objpfx)de/libc.cat): Likewise.
43376         ($(objpfx)test-gencat.out): Likewise.
43377         * conform/Makefile ($(objpfx)run-conformtest.out): Likewise.
43378         * elf/Makefile ($(objpfx)order-cmp.out): Likewise.
43379         ($(objpfx)noload-mem): Likewise.
43380         ($(objpfx)tst-pathopt.out): Likewise.
43381         ($(objpfx)tst-rtld-load-self.out): Likewise.
43382         ($(objpfx)tst-array1-cmp.out): Likewise.
43383         ($(objpfx)tst-array1-static-cmp.out): Likewise.
43384         ($(objpfx)tst-array2-cmp.out): Likewise.
43385         ($(objpfx)tst-array3-cmp.out): Likewise.
43386         ($(objpfx)tst-array4-cmp.out): Likewise.
43387         ($(objpfx)tst-array5-cmp.out): Likewise.
43388         ($(objpfx)tst-array5-static-cmp.out): Likewise.
43389         ($(objpfx)check-textrel.out): Likewise.
43390         ($(objpfx)check-execstack.out): Likewise.
43391         ($(objpfx)check-localplt.out): Likewise.
43392         ($(objpfx)order2-cmp.out): Likewise.
43393         ($(objpfx)tst-leaks1-mem): Likewise.
43394         ($(objpfx)tst-leaks1-static-mem): Likewise.
43395         ($(objpfx)tst-initorder-cmp.out): Likewise.
43396         ($(objpfx)tst-initorder2-cmp.out): Likewise.
43397         ($(objpfx)tst-unused-dep.out): Likewise.
43398         ($(objpfx)tst-unused-dep-cmp.out): Likewise.
43399         * grp/Makefile ($(objpfx)tst_fgetgrent.out): Likewise.
43400         * iconv/Makefile (test-iconvconfig): Likewise.
43401         * iconvdata/Makefile ($(objpfx)mtrace-tst-loading): Likewise.
43402         ($(objpfx)iconv-test.out): Likewise.
43403         ($(objpfx)tst-tables.out): Likewise.
43404         * intl/Makefile ($(objpfx)mtrace-tst-gettext): Likewise.
43405         ($(objpfx)tst-gettext.out): Likewise.
43406         ($(objpfx)tst-translit.out): Likewise.
43407         ($(objpfx)tst-gettext2.out): Likewise.
43408         ($(objpfx)tst-gettext4.out): Likewise.
43409         ($(objpfx)tst-gettext6.out): Likewise.
43410         * io/Makefile ($(objpfx)ftwtest.out): Likewise.
43411         * libio/Makefile ($(objpfx)test-freopen.out): Likewise.
43412         ($(objpfx)tst-fopenloc-cmp.out): Likewise.
43413         ($(objpfx)tst-fopenloc-mem.out): Likewise.
43414         * malloc/Makefile ($(objpfx)tst-mtrace.out): Likewise.
43415         * misc/Makefile ($(objpfx)tst-error1-mem): Likewise.
43416         * posix/Makefile ($(objpfx)globtest.out): Likewise.
43417         ($(objpfx)wordexp-tst.out): Likewise.
43418         ($(objpfx)annexc.out): Likewise.
43419         ($(objpfx)tst-fnmatch-mem): Likewise.
43420         ($(objpfx)bug-regex2-mem): Likewise.
43421         ($(objpfx)bug-regex14-mem): Likewise.
43422         ($(objpfx)bug-regex21-mem): Likewise.
43423         ($(objpfx)bug-regex31-mem): Likewise.
43424         ($(objpfx)tst-vfork3-mem): Likewise.
43425         ($(objpfx)tst-rxspencer-no-utf8-mem): Likewise.
43426         ($(objpfx)tst-pcre-mem): Likewise.
43427         ($(objpfx)tst-boost-mem): Likewise.
43428         ($(objpfx)tst-getconf.out): Likewise.
43429         ($(objpfx)bug-ga2-mem): Likewise.
43430         ($(objpfx)bug-glob2-mem): Likewise.
43431         * resolv/Makefile ($(objpfx)mtrace-tst-leaks): Likewise.
43432         ($(objpfx)mtrace-tst-leaks2): Likewise.
43433         * stdio-common/Makefile ($(objpfx)tst-unbputc.out): Likewise.
43434         ($(objpfx)tst-printf.out): Likewise.
43435         ($(objpfx)tst-setvbuf1.out): Likewise.
43436         ($(objpfx)tst-setvbuf1-cmp.out): Likewise.
43437         * stdlib/Makefile ($(objpfx)isomac.out): Likewise.
43438         ($(objpfx)tst-fmtmsg.out): Likewise.
43439         * string/Makefile ($(objpfx)tst-svc-cmp.out): Likewise.
43440         * sysdeps/x86/Makefile ($(objpfx)tst-xmmymm.out): Likewise.
43441
43442         * bits/fcntl.h [__USE_MISC]: Remove redundant conditionals.
43443         * bits/sigaction.h [__USE_MISC]: Likewise.
43444         * bits/waitstatus.h: Update #endif comments.
43445         * ctype/ctype.h: Likewise.
43446         * dirent/dirent.h: Likewise.
43447         [__USE_MISC]: Remove redundant conditionals.
43448         * grp/grp.h: Update #endif comments.
43449         [__USE_GNU]: Remove redundant conditionals.
43450         [__USE_MISC]: Likewise.
43451         * inet/netinet/in.h [__USE_GNU]: Likewise.
43452         * io/sys/stat.h [__USE_MISC]: Likewise.
43453         * libio/bits/stdio-ldbl.h [__USE_MISC]: Likewise.
43454         * libio/bits/stdio.h: Update #endif comments.
43455         [__USE_MISC]: Remove redundant conditionals.
43456         * libio/bits/stdio2.h [__USE_MISC]: Likewise.
43457         * libio/stdio.h: Update #endif comments.
43458         [__USE_MISC]: Remove redundant conditionals.
43459         * math/bits/math-finite.h [__USE_MISC]: Likewise.
43460         * math/bits/mathcalls.h [__USE_MISC]: Likewise.
43461         * math/math.h: Update #else and #endif comments.
43462         [__USE_MISC]: Remove redundant conditionals.
43463         * misc/sys/uio.h: Update #endif comments.
43464         * posix/bits/unistd.h [__USE_MISC]: Remove redundant conditionals.
43465         * posix/glob.h [__USE_MISC]: Likewise.
43466         * posix/sys/types.h: Update #endif comments.
43467         [__USE_MISC]: Remove redundant conditionals.
43468         * posix/sys/wait.h: Update #endif comments.
43469         [__USE_MISC]: Remove redundant conditionals.
43470         * posix/unistd.h: Update #endif comments.
43471         [__USE_MISC]: Remove redundant conditionals.
43472         * pwd/pwd.h [__USE_GNU]: Likewise.
43473         [__USE_MISC]: Likewise.
43474         * resolv/netdb.h [__USE_GNU]: Likewise.
43475         * signal/signal.h: Update #endif comments.
43476         [__USE_MISC]: Remove redundant conditionals.
43477         * stdlib/stdlib.h: Update #else and #endif comments.
43478         [__USE_MISC]: Remove redundant conditionals.
43479         [__USE_GNU]: Likewise.
43480         * string/bits/string2.h [__USE_MISC]: Likewise.
43481         * string/string.h: Update #endif comments.
43482         [__USE_MISC]: Remove redundant conditionals.
43483         * sysdeps/m68k/m680x0/fpu/bits/mathinline.h [__USE_MISC]:
43484         Likewise.
43485         * sysdeps/mach/hurd/bits/fcntl.h [__USE_MISC]: Likewise.
43486         * sysdeps/mach/hurd/bits/stat.h [__USE_MISC]: Likewise.
43487         * sysdeps/unix/sysv/linux/alpha/bits/sigaction.h [__USE_MISC]:
43488         Likewise.
43489         * sysdeps/unix/sysv/linux/alpha/bits/stat.h [__USE_MISC]:
43490         Likewise.
43491         * sysdeps/unix/sysv/linux/bits/fcntl-linux.h: Update #endif
43492         comments.
43493         [__USE_MISC]: Remove redundant conditionals.
43494         * sysdeps/unix/sysv/linux/bits/in.h [__USE_GNU]: Likewise.
43495         * sysdeps/unix/sysv/linux/bits/sigaction.h [__USE_MISC]: Likewise.
43496         * sysdeps/unix/sysv/linux/bits/socket.h [__USE_GNU]: Likewise.
43497         * sysdeps/unix/sysv/linux/bits/stat.h [__USE_MISC]: Likewise.
43498         * sysdeps/unix/sysv/linux/ia64/bits/sigaction.h [__USE_MISC]:
43499         Likewise.
43500         * sysdeps/unix/sysv/linux/m68k/bits/stat.h [__USE_MISC]: Likewise.
43501         * sysdeps/unix/sysv/linux/mips/bits/sigaction.h [__USE_MISC]:
43502         Likewise.
43503         * sysdeps/unix/sysv/linux/mips/bits/stat.h [__USE_MISC]: Likewise.
43504         * sysdeps/unix/sysv/linux/powerpc/bits/stat.h [__USE_MISC]:
43505         Likewise.
43506         * sysdeps/unix/sysv/linux/s390/bits/sigaction.h [__USE_MISC]:
43507         Likewise.
43508         * sysdeps/unix/sysv/linux/s390/bits/stat.h [__USE_MISC]: Likewise.
43509         * sysdeps/unix/sysv/linux/sparc/bits/sigaction.h [__USE_MISC]:
43510         Likewise.
43511         * sysdeps/unix/sysv/linux/sparc/bits/stat.h [__USE_MISC]:
43512         Likewise.
43513         * sysdeps/unix/sysv/linux/x86/bits/stat.h [__USE_MISC]: Likewise.
43514         * sysdeps/x86/bits/string.h: Update #endif comments.
43515         * sysdeps/x86/fpu/bits/mathinline.h [__USE_MISC]: Remove redundant
43516         conditionals.
43517         * time/sys/time.h: Update #endif comments.
43518         * time/time.h: Likewise.
43519         [__USE_MISC]: Remove redundant conditionals.
43520
43521 2014-02-21  Yury Gribov  <y.gribov@samsung.com>
43522
43523         [BZ #16600]
43524         * sysdeps/arm/libm-test-ulps: Update for VFPv4.
43525
43526 2014-02-21  Andreas Schwab  <schwab@linux-m68k.org>
43527
43528         * Versions.def (librt): Add GLIBC_2.17.
43529
43530 2014-02-21  Adam Conrad  <adconrad@0c3.net>
43531
43532         * sysdeps/powerpc/bits/hwcap.h: Allow _SYSDEPS_SYSDEP_H guard as a
43533         synonym for _SYS_AUXV_H to allow direct inclusion.
43534         * sysdeps/sparc/bits/hwcap.h: Likewise.
43535         * sysdeps/powerpc/sysdep.h: Define _SYSDEPS_SYSDEP_H instead of
43536         _SYS_AUXV_H so we can include sysdep.h and sys/auxv.h together.
43537         * sysdeps/sparc/sysdep.h: Likewise.
43538
43539 2014-02-21  Siddhesh Poyarekar  <siddhesh@redhat.com>
43540
43541         * benchtests/bench-strrchr.c (do_test): Fix minor formatting.
43542
43543 2014-02-21  Rajalakshmi Srinivasaraghavan  <raji@linux.vnet.ibm.com>
43544
43545         * benchtests/bench-strrchr.c: Print length instead of position.
43546
43547 2014-02-20  Joseph Myers  <joseph@codesourcery.com>
43548
43549         [BZ #16611]
43550         * sysdeps/unix/sysv/linux/kernel-features.h
43551         [__LINUX_KERNEL_VERSION >= 0x030000 && __ASSUME_SOCKETCALL]
43552         (__ASSUME_SENDMMSG_SOCKETCALL): Define.
43553         [__LINUX_KERNEL_VERSION >= 0x030000 && (__i386__ || __x86_64__ ||
43554         __powerpc__ || __sh__ || __sparc__)] (__ASSUME_SENDMMSG_SYSCALL):
43555         Likewise.
43556         [__i386__ || __powerpc__ || __sh__ || __sparc__]
43557         (__ASSUME_SENDMMSG_SYSCALL_WITH_SOCKETCALL): Likewise.
43558         [__ASSUME_SENDMMSG_SOCKETCALL || __ASSUME_SENDMMSG_SYSCALL]
43559         (__ASSUME_SENDMMSG): Define instead of using previous
43560         [__LINUX_KERNEL_VERSION >= 0x020627] condition.
43561         * sysdeps/unix/sysv/linux/aarch64/kernel-features.h
43562         (__ASSUME_SENDMMSG_SYSCALL): Define.
43563         * sysdeps/unix/sysv/linux/alpha/kernel-features.h
43564         [__LINUX_KERNEL_VERSION >= 0x030200] (__ASSUME_SENDMMSG_SYSCALL):
43565         Likewise.
43566         * sysdeps/unix/sysv/linux/arm/kernel-features.h
43567         [__LINUX_KERNEL_VERSION >= 0x030000] (__ASSUME_SENDMMSG_SYSCALL):
43568         Likewise.
43569         * sysdeps/unix/sysv/linux/ia64/kernel-features.h
43570         [__LINUX_KERNEL_VERSION >= 0x030000] (__ASSUME_SENDMMSG_SYSCALL):
43571         Likewise.
43572         * sysdeps/unix/sysv/linux/internal_sendmmsg.S [__ASSUME_SOCKETCALL
43573         && !__ASSUME_SENDMMSG_SYSCALL_WITH_SOCKETCALL &&
43574         !__ASSUME_SENDMMSG_SYSCALL] (__NR_sendmmsg): Undefine.
43575         [__ASSUME_SENDMMSG]: Change conditionals to
43576         [__ASSUME_SENDMMSG_SOCKETCALL].
43577         * sysdeps/unix/sysv/linux/microblaze/kernel-features.h
43578         [__LINUX_KERNEL_VERSION >= 0x030300] (__ASSUME_SENDMMSG_SYSCALL):
43579         Define.
43580         * sysdeps/unix/sysv/linux/mips/kernel-features.h
43581         [__LINUX_KERNEL_VERSION >= 0x030100] (__ASSUME_SENDMMSG_SYSCALL):
43582         Likewise.
43583         * sysdeps/unix/sysv/linux/sendmmsg.c [__ASSUME_SOCKETCALL &&
43584         !__ASSUME_SENDMMSG_SYSCALL_WITH_SOCKETCALL &&
43585         !__ASSUME_SENDMMSG_SYSCALL] (__NR_sendmmsg): Undefine.
43586         [!__ASSUME_SENDMMSG]: Change conditional to
43587         [!__ASSUME_SENDMMSG_SOCKETCALL].
43588         * sysdeps/unix/sysv/linux/tile/kernel-features.h
43589         [__LINUX_KERNEL_VERSION >= 0x030000] (__ASSUME_SENDMMSG_SYSCALL):
43590         Define.
43591
43592         [BZ #16610]
43593         * sysdeps/unix/sysv/linux/kernel-features.h
43594         [__LINUX_KERNEL_VERSION >= 0x020621 && __ASSUME_SOCKETCALL]
43595         (__ASSUME_RECVMMSG_SOCKETCALL): Define.
43596         [(__LINUX_KERNEL_VERSION >= 0x020621 && (__i386__ || __x86_64__ ||
43597         __sparc__)) || (__LINUX_KERNEL_VERSION >= 0x020625 && (__powerpc__
43598         || __sh__))] (__ASSUME_RECVMMSG_SYSCALL): Likewise.
43599         [__i386__ || __sparc__]
43600         (__ASSUME_RECVMMSG_SYSCALL_WITH_SOCKETCALL): Likewise.
43601         [__ASSUME_RECVMMSG_SOCKETCALL || __ASSUME_RECVMMSG_SYSCALL]
43602         (__ASSUME_RECVMMSG): Define instead of using previous
43603         [__LINUX_KERNEL_VERSION >= 0x020621] condition.
43604         * sysdeps/unix/sysv/linux/aarch64/kernel-features.h
43605         (__ASSUME_RECVMMSG_SYSCALL): Define.
43606         * sysdeps/unix/sysv/linux/alpha/kernel-features.h
43607         [__LINUX_KERNEL_VERSION >= 0x020621] (__ASSUME_RECVMMSG_SYSCALL):
43608         Likewise.
43609         * sysdeps/unix/sysv/linux/arm/kernel-features.h
43610         [__LINUX_KERNEL_VERSION >= 0x020621] (__ASSUME_RECVMMSG_SYSCALL):
43611         Likewise.
43612         * sysdeps/unix/sysv/linux/ia64/kernel-features.h
43613         [__LINUX_KERNEL_VERSION >= 0x020621] (__ASSUME_RECVMMSG_SYSCALL):
43614         Likewise.
43615         * sysdeps/unix/sysv/linux/internal_recvmmsg.S [__ASSUME_SOCKETCALL
43616         && !__ASSUME_RECVMMSG_SYSCALL_WITH_SOCKETCALL &&
43617         !__ASSUME_RECVMMSG_SYSCALL] (__NR_recvmmsg): Undefine.
43618         [__ASSUME_RECVMMSG]: Change condition to
43619         [__ASSUME_RECVMMSG_SOCKETCALL].
43620         * sysdeps/unix/sysv/linux/microblaze/kernel-features.h
43621         [__LINUX_KERNEL_VERSION >= 0x020621] (__ASSUME_RECVMMSG_SYSCALL):
43622         Define.
43623         (__ASSUME_RECVMMSG_SYSCALL_WITH_SOCKETCALL): Likewise.
43624         * sysdeps/unix/sysv/linux/mips/kernel-features.h
43625         [__LINUX_KERNEL_VERSION >= 0x020621] (__ASSUME_RECVMMSG_SYSCALL):
43626         Likewise.
43627         * sysdeps/unix/sysv/linux/recvmmsg.c [__ASSUME_SOCKETCALL &&
43628         !__ASSUME_RECVMMSG_SYSCALL_WITH_SOCKETCALL &&
43629         !__ASSUME_RECVMMSG_SYSCALL] (__NR_recvmmsg): Undefine.
43630         [!__ASSUME_RECVMMSG]: Change condition to
43631         [!__ASSUME_RECVMMSG_SOCKETCALL].
43632         * sysdeps/unix/sysv/linux/tile/kernel-features.h
43633         (__ASSUME_RECVMMSG_SYSCALL): Define.
43634
43635         [BZ #16609]
43636         * sysdeps/unix/sysv/linux/kernel-features.h [__i386__ ||
43637         __powerpc__ || __s390__ || __sh__ || __sparc__]
43638         (__ASSUME_SOCKETCALL): Define.
43639         [__LINUX_KERNEL_VERSION && __ASSUME_SOCKETCALL]
43640         (__ASSUME_ACCEPT4_SOCKETCALL): Likewise.
43641         [(__LINUX_KERNEL_VERSION >= 0x02061c && (__x86_64__ || __sparc__))
43642         || (__LINUX_KERNEL_VERSION >= 0x020625 && (__powerpc__ ||
43643         __sh__))] (__ASSUME_ACCEPT4_SYSCALL): Likewise.
43644         [__sparc__] (__ASSUME_ACCEPT4_SYSCALL_WITH_SOCKETCALL): Likewise.
43645         [__ASSUME_ACCEPT4_SOCKETCALL || __ASSUME_ACCEPT4_SYSCALL]
43646         (__ASSUME_ACCEPT4): Define instead of using previous
43647         [__LINUX_KERNEL_VERSION >= 0x02061c && (__i386__ || __x86_64__ ||
43648         __powerpc__ || __sparc__ || __s390__)] condition.
43649         * sysdeps/unix/sysv/linux/aarch64/kernel-features.h
43650         (__ASSUME_ACCEPT4): Change to __ASSUME_ACCEPT4_SYSCALL.
43651         * sysdeps/unix/sysv/linux/accept4.c [__ASSUME_SOCKETCALL &&
43652         !__ASSUME_ACCEPT4_SYSCALL_WITH_SOCKETCALL &&
43653         !__ASSUME_ACCEPT4_SYSCALL] (__NR_accept4): Undefine.
43654         [!__ASSUME_ACCEPT4]: Change condition to
43655         [!__ASSUME_ACCEPT4_SOCKETCALL].
43656         * sysdeps/unix/sysv/linux/alpha/kernel-features.h
43657         (__ASSUME_ACCEPT4): Change to __ASSUME_ACCEPT4_SYSCALL.  Correct
43658         condition to [__LINUX_KERNEL_VERSION >= 0x030200].
43659         * sysdeps/unix/sysv/linux/arm/kernel-features.h
43660         [__LINUX_KERNEL_VERSION >= 0x020624] (__ASSUME_ACCEPT4): Change to
43661         __ASSUME_ACCEPT4_SYSCALL.
43662         * sysdeps/unix/sysv/linux/i386/accept4.S [__ASSUME_ACCEPT4]:
43663         Change conditions to [__ASSUME_ACCEPT4_SOCKETCALL].
43664         * sysdeps/unix/sysv/linux/ia64/kernel-features.h
43665         [__LINUX_KERNEL_VERSION >= 0x030300] (__ASSUME_ACCEPT4): Change to
43666         __ASSUME_ACCEPT4_SYSCALL.
43667         * sysdeps/unix/sysv/linux/internal_accept4.S [__ASSUME_SOCKETCALL
43668         && !__ASSUME_ACCEPT4_SYSCALL_WITH_SOCKETCALL &&
43669         !__ASSUME_ACCEPT4_SYSCALL] (__NR_accept4): Undefine.
43670         [__ASSUME_ACCEPT4]: Change condition to
43671         [__ASSUME_ACCEPT4_SOCKETCALL].
43672         * sysdeps/unix/sysv/linux/m68k/kernel-features.h
43673         (__ASSUME_SOCKETCALL): Define.
43674         [__LINUX_KERNEL_VERSION >= 0x02061c] (__ASSUME_ACCEPT4): Remove.
43675         * sysdeps/unix/sysv/linux/microblaze/kernel-features.h
43676         (__ASSUME_SOCKETCALL): Define.
43677         (__ASSUME_ACCEPT4): Remove.
43678         [__LINUX_KERNEL_VERSION >= 0x020621] (__ASSUME_ACCEPT4_SYSCALL):
43679         Define.
43680         * sysdeps/unix/sysv/linux/mips/kernel-features.h
43681         [__LINUX_KERNEL_VERSION >= 0x02061f] (__ASSUME_ACCEPT4_SYSCALL):
43682         Likewise.
43683         * sysdeps/unix/sysv/linux/tile/kernel-features.h
43684         (__ASSUME_ACCEPT4): Change to __ASSUME_ACCEPT4_SYSCALL.
43685
43686         * sysdeps/unix/sysv/linux/arm/bits/hwcap.h (HWCAP_ARM_VFPD32): New
43687         macro.
43688         (HWCAP_ARM_LPAE): Likewise.
43689         (HWCAP_ARM_EVTSTRM): Likewise.
43690         * sysdeps/unix/sysv/linux/arm/dl-procinfo.c (_dl_arm_cap_flags):
43691         Add vpfd32, lpae and evtstrm.
43692         * sysdeps/unix/sysv/linux/arm/dl-procinfo.h (_DL_HWCAP_COUNT):
43693         Increase to 22.
43694
43695 2014-02-19  Joseph Myers  <joseph@codesourcery.com>
43696
43697         * math/auto-libm-test-in: Add tests of clog10.
43698         * math/auto-libm-test-out: Regenerated.
43699         * math/libm-test.inc (clog10_test_data): Use AUTO_TESTS_c_c.
43700         * sysdeps/i386/fpu/libm-test-ulps: Update.
43701         * sysdeps/x86_64/fpu/libm-test-ulps: Likewise.
43702
43703 2014-02-18  Andreas Schwab  <schwab@suse.de>
43704
43705         [BZ #16574]
43706         * resolv/res_send.c (send_vc): Add parameter ansp2_malloced.
43707         Store non-zero if the second buffer was newly allocated.
43708         (send_dg): Likewise.
43709         (__libc_res_nsend): Add parameter ansp2_malloced and pass it down
43710         to send_vc and send_dg.
43711         (res_nsend): Pass NULL for ansp2_malloced.
43712         * resolv/res_query.c (__libc_res_nquery): Add parameter
43713         answerp2_malloced and pass it down to __libc_res_nsend.
43714         (res_nquery): Pass additional NULL to __libc_res_nquery.
43715         (__libc_res_nsearch): Add parameter answerp2_malloced and pass it
43716         down to __libc_res_nquery and __libc_res_nquerydomain.  Deallocate
43717         second answer buffer if answerp2_malloced was set.
43718         (res_nsearch): Pass additional NULL to __libc_res_nsearch.
43719         (__libc_res_nquerydomain): Add parameter
43720         answerp2_malloced and pass it down to __libc_res_nquery.
43721         (res_nquerydomain): Pass additional NULL to
43722         __libc_res_nquerydomain.
43723         * resolv/nss_dns/dns-network.c (_nss_dns_getnetbyname_r): Pass
43724         additional NULL to __libc_res_nsend and __libc_res_nquery.
43725         * resolv/nss_dns/dns-host.c (_nss_dns_gethostbyname3_r): Pass
43726         additional NULL to __libc_res_nsearch.
43727         (_nss_dns_gethostbyname4_r): Revert last change.  Use new
43728         parameter of __libc_res_nsearch to check for separately allocated
43729         second buffer.
43730         (_nss_dns_gethostbyaddr2_r): Pass additional NULL to
43731         __libc_res_nquery.
43732         * resolv/nss_dns/dns-canon.c (_nss_dns_getcanonname_r): Pass
43733         additional NULL to __libc_res_nquery.
43734         * resolv/gethnamaddr.c (gethostbyname2): Pass additional NULL to
43735         __libc_res_nsearch.
43736         (gethostbyaddr): Pass additional NULL to __libc_res_nquery.
43737         * include/resolv.h: Update prototypes of __libc_res_nquery,
43738         __libc_res_nsearch, __libc_res_nsend.
43739
43740 2014-02-18  Joseph Myers  <joseph@codesourcery.com>
43741
43742         * math/auto-libm-test-in: Add tests of fma.
43743         * math/auto-libm-test-out: Regenerated.
43744         * math/libm-test.inc (fma_test_data): Use AUTO_TESTS_fff_f.
43745         (fma_towardzero_test_data): Likewise.
43746         (fma_downward_test_data): Likewise.
43747         (fma_upward_test_data): Likewise.
43748         * math/gen-auto-libm-tests.c (rounding_mode_desc): Add field
43749         mpc_mode.
43750         (rounding_modes): Add values for new field.
43751         (func_calc_method): Add value mpfr_fff_f.
43752         (func_calc_desc): Add mpfr_fff_f union field.
43753         (test_function): Add field exact_args.
43754         (FUNC): Add macro argument EXACT_ARGS.
43755         (FUNC_mpfr_f_f): Update call to FUNC.
43756         (FUNC_mpfr_f_f): Likewise.
43757         (FUNC_mpfr_ff_f): Likewise.
43758         (FUNC_mpfr_if_f): Likewise.
43759         (FUNC_mpc_c_f): Likewise.
43760         (FUNC_mpc_c_c): Likewise.
43761         (test_functions): Add fma.  Update calls to FUNC.
43762         (handle_input_arg): Add argument exact_args.
43763         (add_test): Update call to handle_input_arg.
43764         (calc_generic_results): Add argument mode.  Handle mpfr_fff_f.
43765         (output_for_one_input_case): Update call to calc_generic_results.
43766         Recalculate exact zero results in each rounding mode.
43767
43768         * math/gen-auto-libm-tests.c (adjust_real): Ensure integers are
43769         non-negative before setting low bit.
43770         * math/auto-libm-test-in: Mark one asin test possibly having
43771         spurious underflow.
43772         * math/auto-libm-test-out: Regenerated.
43773         * sysdeps/i386/fpu/libm-test-ulps: Update.
43774         * sysdeps/x86_64/fpu/libm-test-ulps: Likewise.
43775
43776 2014-02-17  David Holsgrove <david.holsgrove@xilinx.com>
43777
43778         * sysdeps/microblaze: Move directory from ports/sysdeps/microblaze.
43779         * sysdeps/unix/sysv/linux/microblaze: Move directory from
43780         ports/sysdeps/unix/sysv/linux/microblaze.
43781         * README: Add missing listing for microblaze*-*-linux-gnu.
43782
43783 2014-02-16  Ondřej Bílka  <neleai@seznam.cz>
43784
43785         * resolv/nss_dns/dns-host.c (_nss_dns_gethostbyname4_r): Remove
43786         duplicate code
43787
43788 2014-02-16  Mike Frysinger  <vapier@gentoo.org>
43789
43790         * sysdeps/ia64: Move directory from ports/sysdeps/ia64.
43791         * sysdeps/unix/sysv/linux/ia64: Move directory from
43792         ports/sysdeps/unix/sysv/linux/ia64.
43793         * README: Update listing for ia64-*-linux-gnu.
43794
43795 2014-02-14  Tomas Dohnalek  <tdohnale@redhat.com>
43796             Joseph Myers  <joseph@codesourcery.com>
43797
43798         * Makeconfig (test-name): New variable.
43799         (evaluate-test): Likewise.
43800         * Makerules (do-test-clean): Remove .test-result files.
43801         (common-mostlyclean): Likewise.
43802         * Rules ($(objpfx)%.out): Use $(evaluate-test) in both rules.
43803         * scripts/evaluate-test.sh: New file.
43804
43805 2014-02-14  Joseph Myers  <joseph@codesourcery.com>
43806
43807         * libio/Makefile ($(objpfx)tst-fopenloc.check): Split into
43808         separate $(objpfx)tst-fopenloc-cmp.out and
43809         $(objpfx)tst-fopenloc-mem.out targets.
43810         (tests): Update dependencies.
43811         * posix/Makefile (tests variable): Add tst-rxspencer-no-utf8.
43812         (generated): Change tst-rxspencer-mem and tst-rxspencer.mtrace to
43813         tst-rxspencer-no-utf8-mem and tst-rxspencer-no-utf8.mtrace.
43814         (tst-rxspencer-no-utf8-ARGS): New variable.
43815         (tst-rxspencer-no-utf8-ENV): Likewise.
43816         (tests target): Depend on $(objpfx)tst-rxspencer-no-utf8-mem
43817         instead of $(objpfx)tst-rxspencer-mem.
43818         ($(objpfx)tst-rxspencer-mem): Change target to
43819         $(objpfx)tst-rxspencer-no-utf8-mem.  Depend on
43820         $(objpfx)tst-rxspencer-no-utf8.out instead of running test program.
43821         * posix/tst-rxspencer-no-utf8.c: New file.
43822
43823         * elf/Makefile ($(objpfx)order.out): Remove rule.
43824         [$(run-built-tests) = yes] (tests): Depend on
43825         $(objpfx)order-cmp.out.
43826         ($(objpfx)order-cmp.out): New rule.
43827         [$(run-built-tests) = yes] (tests): Depend on
43828         $(objpfx)tst-array1-cmp.out, $(objpfx)tst-array1-static-cmp.out,
43829         $(objpfx)tst-array2-cmp.out, $(objpfx)tst-array3-cmp.out,
43830         $(objpfx)tst-array4-cmp.out, $(objpfx)tst-array5-cmp.out and
43831         $(objpfx)tst-array5-static-cmp.out.
43832         ($(objpfx)tst-array1.out): Remove rule.
43833         ($(objpfx)tst-array1-cmp.out): New rule.
43834         ($(objpfx)tst-array1-static.out): Remove rule.
43835         ($(objpfx)tst-array1-static-cmp.out): New rule.
43836         ($(objpfx)tst-array2.out): Remove rule.
43837         ($(objpfx)tst-array2-cmp.out): New rule.
43838         ($(objpfx)tst-array3.out): Remove rule.
43839         ($(objpfx)tst-array3-cmp.out): New rule.
43840         ($(objpfx)tst-array4.out): Remove rule.
43841         ($(objpfx)tst-array4-cmp.out): New rule.
43842         ($(objpfx)tst-array5.out): Remove rule.
43843         ($(objpfx)tst-array5-cmp.out): New rule.
43844         ($(objpfx)tst-array5-static.out): Remove rule.
43845         ($(objpfx)tst-array5-static-cmp.out): New rule.
43846         [$(run-built-tests) = yes] (tests): Depend on
43847         $(objpfx)order2-cmp.out.
43848         ($(objpfx)order2.out): Remove rule.
43849         ($(objpfx)order2-cmp.out): New rule.
43850         ($(objpfx)tst-initorder.out): Remove rule.
43851         [$(run-built-tests) = yes] (tests): Depend on
43852         $(objpfx)tst-initorder-cmp.out.
43853         ($(objpfx)tst-initorder-cmp.out): New rule.
43854         ($(objpfx)tst-initorder2.out): Remove rule.
43855         [$(run-built-tests) = yes] (tests): Depend on
43856         $(objpfx)tst-initorder2-cmp.out.
43857         ($(objpfx)tst-initorder2-cmp.out): New rule.
43858         [$(run-built-tests) = yes] (tests): Depend on
43859         $(objpfx)tst-unused-dep-cmp.out.
43860         ($(objpfx)tst-unused-dep-cmp.out): Do not run cmp.
43861         ($(objpfx)tst-unused-dep-cmp.out): New rule.
43862         * stdio-common/Makefile [$(run-built-tests) = yes] (tests): Depend
43863         on $(objpfx)tst-setvbuf1-cmp.out.
43864         ($(objpfx)tst-setvbuf1.out): Do not run cmp.
43865         ($(objpfx)tst-setvbuf1-cmp.out): New rule.
43866         * string/Makefile [$(run-built-tests) = yes] (tests): Depend
43867         $(objpfx)tst-svc-cmp.out instead of $(objpfx)tst-svc.out.
43868         ($(objpfx)tst-svc.out): Remove rule.
43869         ($(objpfx)tst-svc-cmp.out): New rule.
43870
43871 2014-02-13  Joseph Myers  <joseph@codesourcery.com>
43872
43873         * bits/mman.h [__USE_MISC]: Remove redundant conditionals.
43874         * ctype/ctype.h [__USE_MISC]: Likewise.
43875         * dirent/dirent.h [__USE_MISC]: Likewise.
43876         * grp/grp.h [__USE_MISC]: Likewise.
43877         * io/fcntl.h [__USE_MISC]: Likewise.
43878         * io/sys/stat.h [__USE_MISC]: Likewise.
43879         * libio/stdio.h [__USE_MISC]: Likewise.
43880         * posix/unistd.h [__USE_MISC]: Likewise.
43881         * pwd/pwd.h [__USE_MISC]: Likewise.
43882         * stdlib.h [__USE_MISC]: Likewise.
43883         * string/bits/string2.h [__USE_MISC]: Likewise.
43884         * string/string.h [__USE_MISC]: Likewise.
43885         * time/time.h [__USE_MISC]: Likewise.
43886
43887 2014-02-13  Andreas Schwab  <schwab@suse.de>
43888
43889         [BZ #16574]
43890         * resolv/nss_dns/dns-host.c (_nss_dns_gethostbyname4_r): Free the
43891         second answer buffer if it was separately allocated.
43892
43893 2014-02-12  Joseph Myers  <joseph@codesourcery.com>
43894
43895         * sysdeps/mips/math-tests.h: Include <features.h>.
43896         [!__mips_soft_float && _MIPS_SIM != _ABIO32 && __GNUC_PREREQ (4, 9)]
43897         (ROUNDING_TESTS_long_double): Do not define.
43898         [!__mips_soft_float && _MIPS_SIM != _ABIO32 && __GNUC_PREREQ (4, 9)]
43899         (EXCEPTION_TESTS_long_double): Likewise.
43900         * sysdeps/mips/mips64/libm-test-ulps: Update.
43901
43902         * include/features.h (__USE_BSD): Remove macro definitions.
43903         (__USE_SVID): Likewise.
43904         (_BSD_SOURCE): Likewise.
43905         (_SVID_SOURCE): Likewise.
43906         [!defined _BSD_SOURCE && !defined _SVID_SOURCE]: Remove condition
43907         from definition of _DEFAULT_SOURCE.
43908         [_BSD_SOURCE || _SVID_SOURCE]: Change condition to
43909         [_DEFAULT_SOURCE].
43910         * bits/fcntl.h [__USE_BSD]: Change condition to [__USE_MISC].
43911         * bits/mman.h [__USE_BSD]: Likewise.
43912         * bits/termios.h [__USE_BSD]: Likewise.
43913         * bits/waitstatus.h [__USE_BSD]: Likewise.
43914         * ctype/ctype.h [__USE_SVID]: Likewise.
43915         * dirent/dirent.h [__USE_BSD]: Likewise.
43916         * grp/grp.h [__USE_SVID]: Likewise.
43917         [__USE_BSD]: Likewise.
43918         * inet/netinet/igmp.h [__USE_BSD]: Likewise.
43919         * io/fcntl.h [__USE_BSD]: Likewise.
43920         * io/ftw.h [__USE_BSD]: Likewise.
43921         * io/sys/stat.h [__USE_BSD]: Likewise.
43922         * libio/bits/stdio-ldbl.h [__USE_BSD]: Likewise.
43923         * libio/bits/stdio2.h [__USE_BSD]: Likewise.
43924         * libio/stdio.h [__USE_SVID]: Likewise.
43925         [__USE_BSD]: Likewise.
43926         * math/math.h [__USE_SVID]: Likewise.
43927         [__USE_BSD]: Likewise.
43928         * misc/bits/syslog-ldbl.h [__USE_BSD]: Likewise.
43929         * misc/bits/syslog.h [__USE_BSD]: Likewise.
43930         * misc/search.h [__USE_SVID]: Likewise.
43931         * misc/sys/mman.h [__USE_BSD]: Likewise.
43932         * misc/sys/syslog.h [__USE_BSD]: Likewise.
43933         * misc/sys/uio.h [__USE_BSD]: Likewise.
43934         * posix/bits/unistd.h [__USE_BSD]: Likewise.
43935         * posix/glob.h [__USE_BSD]: Likewise.
43936         * posix/regex.h [__USE_BSD]: Likewise.
43937         * posix/sys/types.h [__USE_BSD]: Likewise.
43938         [__USE_SVID]: Likewise.
43939         * posix/sys/utsname.h [__USE_SVID]: Likewise.
43940         * posix/sys/wait.h [__USE_BSD]: Likewise.
43941         [__USE_SVID]: Likewise.
43942         * posix/unistd.h [__USE_BSD]: Likewise.
43943         [__USE_SVID]: Likewise.
43944         * pwd/pwd.h [__USE_SVID]: Likewise.
43945         * resolv/netdb.h [__USE_BSD]: Likewise.
43946         * setjmp/setjmp.h [__USE_BSD]: Likewise.
43947         * signal/signal.h [__USE_BSD]: Likewise.
43948         [__USE_SVID]: Likewise.
43949         * socket/sys/socket.h [__USE_BSD]: Likewise.
43950         * stdlib/fmtmsg.h [__USE_SVID]: Likewise.
43951         * stdlib/stdlib.h [__USE_BSD]: Likewise.
43952         [__USE_SVID]: Likewise.
43953         * string/bits/string2.h [__USE_BSD]: Likewise.
43954         [__USE_SVID]: Likewise.
43955         * string/bits/string3.h [__USE_BSD]: Likewise.
43956         * string/endian.h [__USE_BSD]: Likewise.
43957         * string/string.h [__USE_SVID]: Likewise.
43958         [__USE_BSD]: Likewise.
43959         * string/strings.h [__USE_BSD]: Likewise.
43960         * sysdeps/generic/netinet/ip.h [__USE_BSD]: Likewise.
43961         * sysdeps/gnu/netinet/ip_icmp.h [__USE_BSD]: Likewise.
43962         * sysdeps/mach/hurd/bits/fcntl.h [__USE_BSD]: Likewise.
43963         * sysdeps/mach/hurd/bits/stat.h [__USE_BSD]: Likewise.
43964         * sysdeps/unix/sysv/linux/alpha/bits/mman.h [__USE_BSD]: Likewise.
43965         * sysdeps/unix/sysv/linux/alpha/bits/termios.h [__USE_BSD]:
43966         Likewise.
43967         * sysdeps/unix/sysv/linux/bits/fcntl-linux.h [__USE_BSD]:
43968         Likewise.
43969         * sysdeps/unix/sysv/linux/bits/mman-linux.h [__USE_BSD]: Likewise.
43970         * sysdeps/unix/sysv/linux/bits/sys_errlist.h [__USE_BSD]:
43971         Likewise.
43972         * sysdeps/unix/sysv/linux/bits/termios.h [__USE_BSD]: Likewise.
43973         * sysdeps/unix/sysv/linux/mips/bits/termios.h [__USE_BSD]:
43974         Likewise.
43975         * sysdeps/unix/sysv/linux/netinet/if_ether.h [__USE_BSD]:
43976         Likewise.
43977         * sysdeps/unix/sysv/linux/netinet/if_fddi.h [__USE_BSD]: Likewise.
43978         * sysdeps/unix/sysv/linux/netinet/if_tr.h [__USE_BSD]: Likewise.
43979         * sysdeps/unix/sysv/linux/powerpc/bits/termios.h [__USE_BSD]:
43980         Likewise.
43981         * sysdeps/unix/sysv/linux/sparc/bits/termios.h [__USE_BSD]:
43982         Likewise.
43983         * sysdeps/x86/bits/string.h [__USE_BSD]: Likewise.
43984         * sysvipc/sys/ipc.h [__USE_SVID]: Likewise.
43985         * termios/termios.h [__USE_BSD]: Likewise.
43986         * time/sys/time.h [__USE_BSD]: Likewise.
43987         * time/time.h [__USE_BSD]: Likewise.
43988         [__USE_SVID]: Likewise.
43989
43990         * Makefile (subdir_targets): Remove subdir_lint.out.
43991
43992         * stdio-common/Makefile (do-tst-unbputc): Remove target.
43993         (do-tst-printf): Likewise.
43994         (tests): Depend directly on $(objpfx)tst-unbputc.out and
43995         $(objpfx)tst-printf.out.
43996
43997         * io/ftwtest-sh (testout): Change to $tmp/ftwtest-tmp.out.
43998
43999         * Makerules (check-abi-%): Change target to
44000         $(objpfx)check-abi-%.out.
44001         (check-abi target): Update dependencies.
44002         (check-abi-pattern variable): Redirect output of diff to $@.
44003         (check-abi variable): Likewise.
44004         * elf/Makefile (check-abi): Update dependencies.
44005
44006         * soft-fp/op-common.h (_FP_DECL): Mark exponent as possibly
44007         unused.
44008         (_FP_PACK_SEMIRAW): Determine tininess based on rounding shifted
44009         value if _FP_TININESS_AFTER_ROUNDING and unrounded value is in
44010         subnormal range.
44011         (_FP_PACK_CANONICAL): Determine tininess based on rounding to
44012         normal precision if _FP_TININESS_AFTER_ROUNDING and unrounded
44013         value has largest subnormal exponent.
44014         * soft-fp/soft-fp.h [FP_NO_EXCEPTIONS]
44015         (_FP_TININESS_AFTER_ROUNDING): Undefine and redefine to 0.
44016         * sysdeps/aarch64/soft-fp/sfp-machine.h
44017         (_FP_TININESS_AFTER_ROUNDING): New macro.
44018         * sysdeps/alpha/soft-fp/sfp-machine.h
44019         (_FP_TININESS_AFTER_ROUNDING): Likewise.
44020         * sysdeps/arm/soft-fp/sfp-machine.h (_FP_TININESS_AFTER_ROUNDING):
44021         Likewise.
44022         * sysdeps/mips/mips64/soft-fp/sfp-machine.h
44023         (_FP_TININESS_AFTER_ROUNDING): Likewise.
44024         * sysdeps/mips/soft-fp/sfp-machine.h
44025         (_FP_TININESS_AFTER_ROUNDING): Likewise.
44026         * sysdeps/powerpc/soft-fp/sfp-machine.h
44027         (_FP_TININESS_AFTER_ROUNDING): Likewise.
44028         * sysdeps/sh/soft-fp/sfp-machine.h (_FP_TININESS_AFTER_ROUNDING):
44029         Likewise.
44030         * sysdeps/sparc/sparc32/soft-fp/sfp-machine.h
44031         (_FP_TININESS_AFTER_ROUNDING): Likewise.
44032         * sysdeps/sparc/sparc64/soft-fp/sfp-machine.h
44033         (_FP_TININESS_AFTER_ROUNDING): Likewise.
44034         * sysdeps/tile/sfp-machine.h (_FP_TININESS_AFTER_ROUNDING):
44035         Likewise.
44036
44037 2014-02-12  Dylan Alex Simon  <dylan@dylex.net>
44038
44039         [BZ #16545]
44040         * sysdeps/x86_64/fpu/libm-test-ulps: Update on AMD family 21h
44041         model 1.
44042
44043 2014-02-12  Richard Henderson  <rth@redhat.com>
44044
44045         * sysdeps/alpha: Move directory from ports/sysdeps/alpha.
44046         * sysdeps/unix/alpha: Move directory from ports/sysdeps/unix/alpha.
44047         * sysdeps/unix/sysv/linux/alpha: Move directory from
44048         ports/sysdeps/unix/sysv/linux/alpha.
44049         * README: Update listing for alpha-*-linux-gnu.
44050
44051 2014-02-11  Joseph Myers  <joseph@codesourcery.com>
44052
44053         * include/features.h: Update comment documenting feature test
44054         macros.
44055         [_BSD_SOURCE || _SVID_SOURCE]: Give #warning.  Define
44056         _DEFAULT_SOURCE.
44057         * manual/creature.texi (_BSD_SOURCE): Remove documentation.
44058         (_SVID_SOURCE): Likewise.
44059         (_DEFAULT_SOURCE): Update description of default features.
44060         (Feature Test Macros): Don't mention _SVID_SOURCE in conjunction
44061         with _GNU_SOURCE.
44062         * manual/filesys.texi (__ftw_func_t): Do not refer to _BSD_SOURCE.
44063         (S_ISVTX): Likewise.
44064         * manual/math.texi (Mathematical Constants): Likewise.
44065         * manual/signal.texi (Interrupted Primitives): Likewise.
44066         * manual/startup.texi (putenv): Do not refer to _SVID_SOURCE.
44067         * math/test-matherr.c (_SVID_SOURCE): Do not define.
44068         * sysvipc/sys/ipc.h [__USE_SVID && !__USE_XOPEN && __GNUC__ >= 2]:
44069         Don't refer to _SVID_SOURCE in warning text.
44070
44071         * sysdeps/x86_64/fpu/libm-test-ulps: Update.
44072
44073         * elf/dl-lookup.c (ELF_MACHINE_SYM_NO_MATCH): Define if not
44074         already defined.
44075         (do_lookup_x): Use ELF_MACHINE_SYM_NO_MATCH.
44076         * sysdeps/mips/dl-lookup.c: Remove.
44077         * sysdeps/mips/dl-machine.h (ELF_MACHINE_SYM_NO_MATCH): New macro.
44078
44079 2014-02-11  Stefan Liebler  <stli@linux.vnet.ibm.com>
44080
44081         [BZ #16447]
44082         * math/auto-libm-test-in: Add testcase for expl.
44083         * math/auto-libm-test-out: Regenerate.
44084         * sysdeps/ieee754/ldbl-128/e_expl.c (__ieee754_expl): Fix
44085         calculation of unsafe.
44086         * sysdeps/s390/fpu/libm-test-ulps: Adjust ULPs for added testcase.
44087
44088 2014-02-11  Marcus Shawcroft  <marcus.shawcroft@arm.com>
44089
44090         * sysdeps/aarch64: Move directory from ports/sysdeps/aarch64.
44091         * sysdeps/unix/sysv/linux/aarch64: Move directory from
44092         ports/sysdeps/unix/sysv/linux/aarch64.
44093         * README: Update listing for aarch64*-*-linux-gnu.
44094
44095 2014-02-11  Will Newton  <will.newton@linaro.org>
44096
44097         * manual/probes.texi (Mathematical Function Probes): Use
44098         "triggered" instead of "hit".
44099
44100         * manual/probes.texi (Internal Probes): Add documentation
44101         of setjmp, longjmp and longjmp_target probes.
44102
44103         * include/stap-probe.h: Add comment about probe argument
44104         format.
44105
44106         * malloc/mtrace.c (attribute_hidden): Remove unused macro
44107         definition.  (tr_where, tr_freehook, tr_mallochook,
44108         tr_reallochook, tr_memalignhook): Use ANSI protoype.
44109
44110 2014-02-11  David S. Miller  <davem@davemloft.net>
44111
44112         * stdio-common/tst-sscanf.c (main): Use 'long' for 'dummy' when
44113         processing int_tests.
44114
44115 2014-02-10  Joseph Myers  <joseph@codesourcery.com>
44116
44117         * sysdeps/mips: Move directory from ports/sysdeps/mips.
44118         * sysdeps/unix/mips: Move directory from ports/sysdeps/unix/mips.
44119         * sysdeps/unix/sysv/linux/mips: Move directory from
44120         ports/sysdeps/unix/sysv/linux/mips.
44121         * README: Update listing for mips-*-linux-gnu and
44122         mips64-*-linux-gnu.
44123
44124 2014-02-10  Andreas Schwab  <schwab@linux-m68k.org>
44125
44126         * sysdeps/m68k: Move directory from ports/sysdeps/m68k.
44127         * sysdeps/unix/sysv/linux/m68k: Move directory from
44128         ports/sysdeps/unix/sysv/linux/m68k.
44129         * README: Update listing for m68k-*-linux-gnu.
44130
44131 2014-02-10  Chris Metcalf  <cmetcalf@tilera.com>
44132
44133         * sysdeps/tile: Move directory from ports/sysdeps/tile.
44134         * sysdeps/unix/sysv/linux/generic: Move directory from
44135         ports/sysdeps/unix/sysv/linux/generic.
44136         * sysdeps/unix/sysv/linux/tile: Move directory from
44137         ports/sysdeps/unix/sysv/linux/tile.
44138         * README: Update listing for tile*-*-linux-gnu.
44139
44140 2014-02-10  Ondřej Bílka  <neleai@seznam.cz>
44141
44142         * assert/assert.c (__assert_fail_base): Use glibc_likely instead
44143         __builtin_expect.
44144         * benchtests/bench-memmem.c (simple_memmem): Likewise.
44145         * catgets/open_catalog.c (__open_catalog): Likewise.
44146         * csu/libc-start.c (LIBC_START_MAIN): Likewise.
44147         * debug/confstr_chk.c: Likewise.
44148         * debug/fread_chk.c (__fread_chk): Likewise.
44149         * debug/fread_u_chk.c (__fread_unlocked_chk): Likewise.
44150         * debug/getgroups_chk.c: Likewise.
44151         * debug/mbsnrtowcs_chk.c: Likewise.
44152         * debug/mbsrtowcs_chk.c: Likewise.
44153         * debug/mbstowcs_chk.c: Likewise.
44154         * debug/memcpy_chk.c: Likewise.
44155         * debug/memmove_chk.c: Likewise.
44156         * debug/mempcpy_chk.c: Likewise.
44157         * debug/memset_chk.c: Likewise.
44158         * debug/stpcpy_chk.c (__stpcpy_chk): Likewise.
44159         * debug/strcat_chk.c (__strcat_chk): Likewise.
44160         * debug/strcpy_chk.c (__strcpy_chk): Likewise.
44161         * debug/strncat_chk.c (__strncat_chk): Likewise.
44162         * debug/vsnprintf_chk.c (___vsnprintf_chk): Likewise.
44163         * debug/vswprintf_chk.c (__vswprintf_chk): Likewise.
44164         * debug/wcpcpy_chk.c (__wcpcpy_chk): Likewise.
44165         * debug/wcpncpy_chk.c: Likewise.
44166         * debug/wcscat_chk.c (__wcscat_chk): Likewise.
44167         * debug/wcscpy_chk.c (__wcscpy_chk): Likewise.
44168         * debug/wcsncat_chk.c (__wcsncat_chk): Likewise.
44169         * debug/wcsncpy_chk.c: Likewise.
44170         * debug/wcsnrtombs_chk.c: Likewise.
44171         * debug/wcsrtombs_chk.c: Likewise.
44172         * debug/wcstombs_chk.c: Likewise.
44173         * debug/wmemcpy_chk.c: Likewise.
44174         * debug/wmemmove_chk.c: Likewise.
44175         * debug/wmempcpy_chk.c: Likewise.
44176         * debug/wmemset_chk.c: Likewise.
44177         * dirent/scandirat.c (SCANDIRAT): Likewise.
44178         * dlfcn/dladdr1.c (dladdr1): Likewise.
44179         * dlfcn/dladdr.c (dladdr): Likewise.
44180         * dlfcn/dlclose.c (dlclose_doit): Likewise.
44181         * dlfcn/dlerror.c (__dlerror): Likewise.
44182         * dlfcn/dlinfo.c (dlinfo_doit): Likewise.
44183         * dlfcn/dlmopen.c (dlmopen_doit): Likewise.
44184         * dlfcn/dlopen.c (dlopen_doit): Likewise.
44185         * dlfcn/dlopenold.c (__dlopen_nocheck): Likewise.
44186         * dlfcn/dlsym.c (dlsym_doit): Likewise.
44187         * dlfcn/dlvsym.c (dlvsym_doit): Likewise.
44188         * elf/dl-cache.c (_dl_load_cache_lookup): Likewise.
44189         * elf/dl-close.c (remove_slotinfo, _dl_close_worker, _dl_close):
44190         Likewise.
44191         * elf/dl-conflict.c: Likewise.
44192         * elf/dl-deps.c (_dl_build_local_scope, _dl_map_object_deps): Likewise.
44193         * elf/dl-dst.h: Likewise.
44194         * elf/dl-fini.c (_dl_sort_fini, _dl_fini): Likewise.
44195         * elf/dl-fptr.c (_dl_make_fptr): Likewise.
44196         * elf/dl-hwcaps.c (_dl_important_hwcaps): Likewise.
44197         * elf/dl-init.c (call_init, _dl_init): Likewise.
44198         * elf/dl-libc.c (__libc_dlopen_mode, __libc_dlsym): Likewise.
44199         * elf/dl-load.c (_dl_dst_substitute, fillin_rpath, _dl_init_paths)
44200         (_dl_map_object_from_fd, open_verify, open_path, _dl_map_object):
44201         Likewise.
44202         * elf/dl-lookup.c (do_lookup_x, add_dependency, _dl_lookup_symbol_x):
44203         Likewise.
44204         * elf/dl-minimal.c (__libc_memalign): Likewise.
44205         * elf/dl-open.c (add_to_global, dl_open_worker, _dl_open): Likewise.
44206         * elf/dl-reloc.c (_dl_relocate_object): Likewise.
44207         * elf/dl-runtime.c (_dl_fixup, _dl_profile_fixup): Likewise.
44208         * elf/dl-sym.c (do_sym): Likewise.
44209         * elf/dl-tls.c (tls_get_addr_tail, update_get_addr)
44210         (__tls_get_addr, _dl_tls_get_addr_soft): Likewise.
44211         * elf/dl-version.c (match_symbol, _dl_check_map_versions): Likewise.
44212         * elf/dl-writev.h (_dl_writev): Likewise.
44213         * elf/ldconfig.c (search_dir): Likewise.
44214         * elf/rtld.c (_dl_start_final, _dl_start, init_tls, do_preload)
44215         (dl_main): Likewise.
44216         * elf/setup-vdso.h (setup_vdso): Likewise.
44217         * grp/compat-initgroups.c (compat_call): Likewise.
44218         * grp/fgetgrent.c (fgetgrent): Likewise.
44219         * grp/initgroups.c (getgrouplist, initgroups): Likewise.
44220         * grp/putgrent.c (putgrent): Likewise.
44221         * hesiod/nss_hesiod/hesiod-grp.c (_nss_hesiod_initgroups_dyn):
44222         Likewise.
44223         * hurd/hurdinit.c: Likewise.
44224         * iconvdata/8bit-gap.c (struct): Likewise.
44225         * iconvdata/ansi_x3.110.c : Likewise.
44226         * iconvdata/big5.c : Likewise.
44227         * iconvdata/big5hkscs.c : Likewise.
44228         * iconvdata/cp1255.c: Likewise.
44229         * iconvdata/cp1258.c : Likewise.
44230         * iconvdata/cp932.c : Likewise.
44231         * iconvdata/euc-cn.c: Likewise.
44232         * iconvdata/euc-jisx0213.c : Likewise.
44233         * iconvdata/euc-jp.c: Likewise.
44234         * iconvdata/euc-jp-ms.c : Likewise.
44235         * iconvdata/euc-kr.c (euckr_from_ucs4): Likewise.
44236         * iconvdata/gb18030.c : Likewise.
44237         * iconvdata/gbbig5.c (const): Likewise.
44238         * iconvdata/gbgbk.c: Likewise.
44239         * iconvdata/gbk.c : Likewise.
44240         * iconvdata/ibm1364.c : Likewise.
44241         * iconvdata/ibm930.c : Likewise.
44242         * iconvdata/ibm932.c: Likewise.
44243         * iconvdata/ibm933.c : Likewise.
44244         * iconvdata/ibm935.c : Likewise.
44245         * iconvdata/ibm937.c : Likewise.
44246         * iconvdata/ibm939.c : Likewise.
44247         * iconvdata/ibm943.c: Likewise.
44248         * iconvdata/iso_11548-1.c: Likewise.
44249         * iconvdata/iso-2022-cn.c : Likewise.
44250         * iconvdata/iso-2022-cn-ext.c : Likewise.
44251         * iconvdata/iso-2022-jp-3.c: Likewise.
44252         * iconvdata/iso-2022-jp.c (gconv_end): Likewise.
44253         * iconvdata/iso-2022-kr.c : Likewise.
44254         * iconvdata/iso646.c (gconv_end): Likewise.
44255         * iconvdata/iso_6937-2.c : Likewise.
44256         * iconvdata/iso_6937.c : Likewise.
44257         * iconvdata/iso8859-1.c: Likewise.
44258         * iconvdata/johab.c (johab_sym_hanja_to_ucs): Likewise.
44259         * iconvdata/shift_jisx0213.c : Likewise.
44260         * iconvdata/sjis.c : Likewise.
44261         * iconvdata/t.61.c : Likewise.
44262         * iconvdata/tcvn5712-1.c : Likewise.
44263         * iconvdata/tscii.c: Likewise.
44264         * iconvdata/uhc.c : Likewise.
44265         * iconvdata/unicode.c (gconv_end): Likewise.
44266         * iconvdata/utf-16.c (gconv_end): Likewise.
44267         * iconvdata/utf-32.c (gconv_end): Likewise.
44268         * iconvdata/utf-7.c (base64): Likewise.
44269         * iconv/gconv_cache.c (__gconv_load_cache): Likewise.
44270         * iconv/gconv_close.c (__gconv_close): Likewise.
44271         * iconv/gconv_open.c (__gconv_open): Likewise.
44272         * iconv/gconv_simple.c (internal_ucs4_loop_single)
44273         (ucs4_internal_loop, ucs4_internal_loop_unaligned)
44274         (ucs4_internal_loop_single, internal_ucs4le_loop_single)
44275         (ucs4le_internal_loop, ucs4le_internal_loop_unaligned)
44276         (ucs4le_internal_loop_single): Likewise.
44277         * iconv/iconv.c (iconv): Likewise.
44278         * iconv/iconv_close.c: Likewise.
44279         * iconv/loop.c (SINGLE): Likewise.
44280         * iconv/skeleton.c (FUNCTION_NAME): Likewise.
44281         * include/atomic.h: Likewise.
44282         * inet/inet6_option.c (option_alloc): Likewise.
44283         * intl/bindtextdom.c (set_binding_values): Likewise.
44284         * intl/dcigettext.c (DCIGETTEXT, _nl_find_msg): Likewise.
44285         * intl/loadmsgcat.c (_nl_load_domain): Likewise.
44286         * intl/localealias.c (read_alias_file): Likewise.
44287         * libio/filedoalloc.c (_IO_file_doallocate): Likewise.
44288         * libio/fileops.c (_IO_file_open, _IO_file_underflow_mmap)
44289         (_IO_new_file_overflow, _IO_file_xsgetn_mmap): Likewise.
44290         * libio/fmemopen.c (fmemopen): Likewise.
44291         * libio/iofgets.c (_IO_fgets): Likewise.
44292         * libio/iofgets_u.c (fgets_unlocked): Likewise.
44293         * libio/iofgetws.c (fgetws): Likewise.
44294         * libio/iofgetws_u.c (fgetws_unlocked): Likewise.
44295         * libio/iogetdelim.c (_IO_getdelim): Likewise.
44296         * libio/wfileops.c (_IO_wfile_underflow, _IO_wfile_underflow_mmap)
44297         (adjust_wide_data, _IO_wfile_seekoff): Likewise.
44298         * locale/findlocale.c (_nl_find_locale): Likewise.
44299         * locale/loadarchive.c (_nl_load_locale_from_archive): Likewise.
44300         * locale/loadlocale.c (_nl_intern_locale_data, _nl_load_locale):
44301         Likewise.
44302         * locale/setlocale.c (setlocale): Likewise.
44303         * login/programs/pt_chown.c (main): Likewise.
44304         * malloc/arena.c (ptmalloc_init, shrink_heap, arena_get2): Likewise.
44305         * malloc/malloc.c (_int_malloc, _int_free): Likewise.
44306         * malloc/memusage.c (update_data, malloc, realloc, calloc, free)
44307         (mmap, mmap64, mremap, munmap): Likewise.
44308         * math/e_exp2l.c: Likewise.
44309         * math/e_scalb.c (invalid_fn, __ieee754_scalb): Likewise.
44310         * math/e_scalbf.c (invalid_fn, __ieee754_scalbf): Likewise.
44311         * math/e_scalbl.c (invalid_fn, __ieee754_scalbl): Likewise.
44312         * math/s_catan.c (__catan): Likewise.
44313         * math/s_catanf.c (__catanf): Likewise.
44314         * math/s_catanh.c (__catanh): Likewise.
44315         * math/s_catanhf.c (__catanhf): Likewise.
44316         * math/s_catanhl.c (__catanhl): Likewise.
44317         * math/s_catanl.c (__catanl): Likewise.
44318         * math/s_ccosh.c (__ccosh): Likewise.
44319         * math/s_ccoshf.c (__ccoshf): Likewise.
44320         * math/s_ccoshl.c (__ccoshl): Likewise.
44321         * math/s_cexp.c (__cexp): Likewise.
44322         * math/s_cexpf.c (__cexpf): Likewise.
44323         * math/s_cexpl.c (__cexpl): Likewise.
44324         * math/s_clog10.c (__clog10): Likewise.
44325         * math/s_clog10f.c (__clog10f): Likewise.
44326         * math/s_clog10l.c (__clog10l): Likewise.
44327         * math/s_clog.c (__clog): Likewise.
44328         * math/s_clogf.c (__clogf): Likewise.
44329         * math/s_clogl.c (__clogl): Likewise.
44330         * math/s_csin.c (__csin): Likewise.
44331         * math/s_csinf.c (__csinf): Likewise.
44332         * math/s_csinh.c (__csinh): Likewise.
44333         * math/s_csinhf.c (__csinhf): Likewise.
44334         * math/s_csinhl.c (__csinhl): Likewise.
44335         * math/s_csinl.c (__csinl): Likewise.
44336         * math/s_csqrt.c (__csqrt): Likewise.
44337         * math/s_csqrtf.c (__csqrtf): Likewise.
44338         * math/s_csqrtl.c (__csqrtl): Likewise.
44339         * math/s_ctan.c (__ctan): Likewise.
44340         * math/s_ctanf.c (__ctanf): Likewise.
44341         * math/s_ctanh.c (__ctanh): Likewise.
44342         * math/s_ctanhf.c (__ctanhf): Likewise.
44343         * math/s_ctanhl.c (__ctanhl): Likewise.
44344         * math/s_ctanl.c (__ctanl): Likewise.
44345         * math/w_pow.c: Likewise.
44346         * math/w_powf.c: Likewise.
44347         * math/w_powl.c: Likewise.
44348         * math/w_scalb.c (sysv_scalb): Likewise.
44349         * math/w_scalbf.c (sysv_scalbf): Likewise.
44350         * math/w_scalbl.c (sysv_scalbl): Likewise.
44351         * misc/error.c (error_tail): Likewise.
44352         * misc/pselect.c (__pselect): Likewise.
44353         * nis/nis_callback.c (__nis_create_callback): Likewise.
44354         * nis/nis_call.c (__nisfind_server): Likewise.
44355         * nis/nis_creategroup.c (nis_creategroup): Likewise.
44356         * nis/nis_domain_of_r.c (nis_domain_of_r): Likewise.
44357         * nis/nis_findserv.c (__nis_findfastest_with_timeout): Likewise.
44358         * nis/nis_getservlist.c (nis_getservlist): Likewise.
44359         * nis/nis_lookup.c (nis_lookup): Likewise.
44360         * nis/nis_subr.c (nis_leaf_of_r, nis_getnames): Likewise.
44361         * nis/nis_table.c (__create_ib_request, nis_list, nis_add_entry)
44362         (nis_modify_entry, nis_first_entry, nis_next_entry): Likewise.
44363         * nis/nis_xdr.c (xdr_endpoint): Likewise.
44364         * nis/nss_compat/compat-grp.c (getgrent_next_file)
44365         (internal_getgrnam_r, internal_getgrgid_r): Likewise.
44366         * nis/nss_compat/compat-initgroups.c (add_group)
44367         (internal_getgrent_r): Likewise.
44368         * nis/nss_compat/compat-pwd.c (getpwent_next_file)
44369         (internal_getpwnam_r, internal_getpwuid_r): Likewise.
44370         * nis/nss_compat/compat-spwd.c (getspent_next_file)
44371         (internal_getspnam_r): Likewise.
44372         * nis/nss_nis/nis-alias.c (internal_nis_getaliasent_r)
44373         (_nss_nis_getaliasbyname_r): Likewise.
44374         * nis/nss_nis/nis-ethers.c (_nss_nis_gethostton_r)
44375         (_nss_nis_getntohost_r): Likewise.
44376         * nis/nss_nis/nis-grp.c (internal_nis_setgrent)
44377         (internal_nis_getgrent_r, _nss_nis_getgrnam_r)
44378         (_nss_nis_getgrgid_r): Likewise.
44379         * nis/nss_nis/nis-hosts.c (_nss_nis_sethostent)
44380         (internal_nis_gethostent_r, internal_gethostbyname2_r)
44381         (_nss_nis_gethostbyname_r, _nss_nis_gethostbyaddr_r)
44382         (_nss_nis_gethostbyname4_r): Likewise.
44383         * nis/nss_nis/nis-initgroups.c (internal_getgrent_r)
44384         (initgroups_netid): Likewise.
44385         * nis/nss_nis/nis-netgrp.c (_nss_nis_setnetgrent): Likewise.
44386         * nis/nss_nis/nis-network.c (internal_nis_getnetent_r)
44387         (_nss_nis_getnetbyname_r, _nss_nis_getnetbyaddr_r): Likewise.
44388         * nis/nss_nis/nis-proto.c (_nss_nis_getprotobyname_r)
44389         (_nss_nis_getprotobynumber_r): Likewise.
44390         * nis/nss_nis/nis-publickey.c (_nss_nis_getpublickey)
44391         (_nss_nis_getsecretkey): Likewise.
44392         * nis/nss_nis/nis-pwd.c (_nis_saveit, internal_nis_setpwent)
44393         (internal_nis_getpwent_r, _nss_nis_getpwnam_r)
44394         (_nss_nis_getpwuid_r): Likewise.
44395         * nis/nss_nis/nis-rpc.c (internal_nis_getrpcent_r)
44396         (_nss_nis_getrpcbyname_r, _nss_nis_getrpcbynumber_r): Likewise.
44397         * nis/nss_nis/nis-service.c (dosearch, internal_nis_getservent_r)
44398         (_nss_nis_getservbyname_r, _nss_nis_getservbyport_r): Likewise.
44399         * nis/nss_nis/nis-spwd.c (_nss_nis_setspent)
44400         (internal_nis_getspent_r, _nss_nis_getspnam_r): Likewise.
44401         * nis/nss_nisplus/nisplus-alias.c (_nss_nisplus_getaliasbyname_r):
44402         Likewise.
44403         * nis/nss_nisplus/nisplus-ethers.c (_nss_nisplus_gethostton_r)
44404         (_nss_nisplus_getntohost_r): Likewise.
44405         * nis/nss_nisplus/nisplus-grp.c (internal_nisplus_getgrent_r)
44406         (_nss_nisplus_getgrnam_r, _nss_nisplus_getgrgid_r): Likewise.
44407         * nis/nss_nisplus/nisplus-hosts.c (internal_gethostbyname2_r)
44408         (_nss_nisplus_gethostbyaddr_r, _nss_nisplus_gethostbyname4_r):
44409         Likewise.
44410         * nis/nss_nisplus/nisplus-initgroups.c
44411         (_nss_nisplus_initgroups_dyn): Likewise.
44412         * nis/nss_nisplus/nisplus-network.c (_nss_nisplus_getnetbyname_r)
44413         (_nss_nisplus_getnetbyaddr_r): Likewise.
44414         * nis/nss_nisplus/nisplus-proto.c (_nss_nisplus_getprotobyname_r)
44415         (_nss_nisplus_getprotobynumber_r): Likewise.
44416         * nis/nss_nisplus/nisplus-pwd.c (internal_nisplus_getpwent_r)
44417         (_nss_nisplus_getpwnam_r, _nss_nisplus_getpwuid_r): Likewise.
44418         * nis/nss_nisplus/nisplus-rpc.c (_nss_nisplus_getrpcbyname_r):
44419         Likewise.
44420         * nis/nss_nisplus/nisplus-service.c
44421         (internal_nisplus_getservent_r, _nss_nisplus_getservbyname_r)
44422         (_nss_nisplus_getservbyport_r): Likewise.
44423         * nis/nss_nisplus/nisplus-spwd.c (internal_nisplus_getspent_r)
44424         (_nss_nisplus_getspnam_r): Likewise.
44425         * nis/ypclnt.c (__yp_bind, yp_match, yp_all, yp_maplist):
44426         Likewise.
44427         * nscd/aicache.c (addhstaiX): Likewise.
44428         * nscd/cache.c (cache_search, prune_cache): Likewise.
44429         * nscd/connections.c (register_traced_file, send_ro_fd)
44430         (handle_request, nscd_run_prune, nscd_run_worker, fd_ready)
44431         (main_loop_epoll): Likewise.
44432         * nscd/grpcache.c (addgrbyX): Likewise.
44433         * nscd/hstcache.c (addhstbyX): Likewise.
44434         * nscd/initgrcache.c (addinitgroupsX): Likewise.
44435         * nscd/mem.c (gc, mempool_alloc): Likewise.
44436         * nscd/netgroupcache.c (do_notfound, addgetnetgrentX)
44437         (addinnetgrX): Likewise.
44438         * nscd/nscd-client.h (__nscd_acquire_maplock)
44439         (__nscd_drop_map_ref): Likewise.
44440         * nscd/nscd_getai.c (__nscd_getai): Likewise.
44441         * nscd/nscd_getgr_r.c (nscd_getgr_r): Likewise.
44442         * nscd/nscd_gethst_r.c (__nscd_get_nl_timestamp, nscd_gethst_r):
44443         Likewise.
44444         * nscd/nscd_getpw_r.c (nscd_getpw_r): Likewise.
44445         * nscd/nscd_getserv_r.c (nscd_getserv_r): Likewise.
44446         * nscd/nscd_helper.c (__readvall, open_socket, __nscd_get_mapping)
44447         (__nscd_get_map_ref): Likewise.
44448         * nscd/nscd_initgroups.c (__nscd_getgrouplist): Likewise.
44449         * nscd/nscd_netgroup.c (__nscd_setnetgrent, __nscd_innetgr):
44450         Likewise.
44451         * nscd/pwdcache.c (addpwbyX): Likewise.
44452         * nscd/selinux.c (preserve_capabilities): Likewise.
44453         * nscd/servicescache.c (addservbyX): Likewise.
44454         * nss/nss_files/files-XXX.c (internal_getent): Likewise.
44455         * posix/fnmatch.c (fnmatch): Likewise.
44456         * posix/getopt.c (_getopt_internal_r): Likewise.
44457         * posix/glob.c (glob, glob_in_dir): Likewise.
44458         * posix/wordexp.c (exec_comm_child): Likewise.
44459         * resolv/nss_dns/dns-host.c (_nss_dns_gethostbyaddr2_r)
44460         (getanswer_r, gaih_getanswer_slice): Likewise.
44461         * resolv/nss_dns/dns-network.c (getanswer_r): Likewise.
44462         * resolv/res_init.c: Likewise.
44463         * resolv/res_mkquery.c (res_nmkquery): Likewise.
44464         * resolv/res_query.c (__libc_res_nquery): Likewise.
44465         * resolv/res_send.c (__libc_res_nsend, send_vc, reopen, send_dg):
44466         Likewise.
44467         * stdio-common/_i18n_number.h (_i18n_number_rewrite): Likewise.
44468         * stdio-common/perror.c (perror): Likewise.
44469         * stdio-common/printf_fp.c (___printf_fp): Likewise.
44470         * stdio-common/tmpnam.c (tmpnam): Likewise.
44471         * stdio-common/vfscanf.c (_IO_vfscanf_internal): Likewise.
44472         * stdlib/cxa_finalize.c (__cxa_finalize): Likewise.
44473         * stdlib/cxa_thread_atexit_impl.c (__cxa_thread_atexit_impl):
44474         Likewise.
44475         * stdlib/drand48-iter.c (__drand48_iterate): Likewise.
44476         * stdlib/putenv.c (putenv): Likewise.
44477         * stdlib/setenv.c (__add_to_environ): Likewise.
44478         * stdlib/strtod_l.c (____STRTOF_INTERNAL): Likewise.
44479         * stdlib/strtol_l.c (INTERNAL): Likewise.
44480         * string/memmem.c (memmem): Likewise.
44481         * string/strerror.c (strerror): Likewise.
44482         * string/strnlen.c (__strnlen): Likewise.
44483         * string/test-memmem.c (simple_memmem): Likewise.
44484         * sunrpc/clnt_udp.c (__libc_clntudp_bufcreate): Likewise.
44485         * sunrpc/pm_getport.c (__get_socket): Likewise.
44486         * sysdeps/gnu/unwind-resume.c (init, _Unwind_Resume): Likewise.
44487         * sysdeps/i386/dl-irel.h (elf_irel): Likewise.
44488         * sysdeps/i386/dl-machine.h (elf_machine_runtime_setup)
44489         (elf_machine_rel, elf_machine_lazy_rel, elf_machine_lazy_rela):
44490         Likewise.
44491         * sysdeps/ieee754/dbl-64/e_atanh.c (__ieee754_atanh): Likewise.
44492         * sysdeps/ieee754/dbl-64/e_exp2.c (__ieee754_exp2): Likewise.
44493         * sysdeps/ieee754/dbl-64/e_fmod.c (__ieee754_fmod): Likewise.
44494         * sysdeps/ieee754/dbl-64/e_gamma_r.c (__ieee754_gamma_r): Likewise.
44495         * sysdeps/ieee754/dbl-64/e_hypot.c (__ieee754_hypot): Likewise.
44496         * sysdeps/ieee754/dbl-64/e_j1.c (__ieee754_j1, __ieee754_y1):
44497         Likewise.
44498         * sysdeps/ieee754/dbl-64/e_jn.c (__ieee754_jn, __ieee754_yn):
44499         Likewise.
44500         * sysdeps/ieee754/dbl-64/e_log10.c (__ieee754_log10): Likewise.
44501         * sysdeps/ieee754/dbl-64/e_log2.c (__ieee754_log2): Likewise.
44502         * sysdeps/ieee754/dbl-64/e_log.c (__ieee754_log): Likewise.
44503         * sysdeps/ieee754/dbl-64/e_sinh.c (__ieee754_sinh): Likewise.
44504         * sysdeps/ieee754/dbl-64/s_asinh.c (__asinh): Likewise.
44505         * sysdeps/ieee754/dbl-64/s_fma.c (__fma): Likewise.
44506         * sysdeps/ieee754/dbl-64/s_log1p.c (__log1p): Likewise.
44507         * sysdeps/ieee754/dbl-64/s_logb.c (__logb): Likewise.
44508         * sysdeps/ieee754/dbl-64/s_modf.c (__modf): Likewise.
44509         * sysdeps/ieee754/dbl-64/s_scalbln.c (__scalbln): Likewise.
44510         * sysdeps/ieee754/dbl-64/s_scalbn.c (__scalbn): Likewise.
44511         * sysdeps/ieee754/dbl-64/wordsize-64/e_acosh.c (__ieee754_acosh):
44512         Likewise.
44513         * sysdeps/ieee754/dbl-64/wordsize-64/e_log10.c (__ieee754_log10):
44514         Likewise.
44515         * sysdeps/ieee754/dbl-64/wordsize-64/e_log2.c (__ieee754_log2):
44516         Likewise.
44517         * sysdeps/ieee754/dbl-64/wordsize-64/s_frexp.c (__frexp): Likewise.
44518         * sysdeps/ieee754/dbl-64/wordsize-64/s_logb.c (__logb): Likewise.
44519         * sysdeps/ieee754/dbl-64/wordsize-64/s_remquo.c (__remquo): Likewise.
44520         * sysdeps/ieee754/dbl-64/wordsize-64/s_round.c (__round): Likewise.
44521         * sysdeps/ieee754/flt-32/e_atanhf.c (__ieee754_atanhf): Likewise.
44522         * sysdeps/ieee754/flt-32/e_gammaf_r.c (__ieee754_gammaf_r): Likewise.
44523         * sysdeps/ieee754/flt-32/s_logbf.c (__logbf): Likewise.
44524         * sysdeps/ieee754/ldbl-128ibm/e_fmodl.c (__ieee754_fmodl): Likewise.
44525         * sysdeps/ieee754/ldbl-128ibm/math_ldbl.h (ldbl_nearbyint): Likewise.
44526         * sysdeps/ieee754/ldbl-128ibm/s_llrintl.c (__llrintl): Likewise.
44527         * sysdeps/ieee754/ldbl-128ibm/s_llroundl.c (__llroundl): Likewise.
44528         * sysdeps/ieee754/ldbl-128ibm/s_logbl.c (__logbl): Likewise.
44529         * sysdeps/ieee754/ldbl-128ibm/s_lrintl.c (__lrintl): Likewise.
44530         * sysdeps/ieee754/ldbl-128ibm/s_lroundl.c (__lroundl): Likewise.
44531         * sysdeps/ieee754/ldbl-128/s_fmal.c (__fmal): Likewise.
44532         * sysdeps/ieee754/ldbl-96/e_gammal_r.c (__ieee754_gammal_r):
44533         Likewise.
44534         * sysdeps/ieee754/ldbl-96/e_j0l.c (__ieee754_j0l, __ieee754_y0l):
44535         Likewise.
44536         * sysdeps/ieee754/ldbl-96/e_j1l.c (__ieee754_j1l, __ieee754_y1l):
44537         Likewise.
44538         * sysdeps/ieee754/ldbl-96/e_jnl.c (__ieee754_jnl, __ieee754_ynl):
44539         Likewise.
44540         * sysdeps/ieee754/ldbl-96/s_fma.c (__fma): Likewise.
44541         * sysdeps/ieee754/ldbl-96/s_fmal.c (__fmal): Likewise.
44542         * sysdeps/posix/clock_getres.c (hp_timing_getres, realtime_getres):
44543         Likewise.
44544         * sysdeps/posix/fdopendir.c (__fdopendir): Likewise.
44545         * sysdeps/posix/getaddrinfo.c (gaih_inet, getaddrinfo): Likewise.
44546         * sysdeps/posix/opendir.c (__opendirat): Likewise.
44547         * sysdeps/posix/sleep.c: Likewise.
44548         * sysdeps/posix/tempname.c: Likewise.
44549         * sysdeps/powerpc/powerpc32/dl-irel.h (elf_irela): Likewise.
44550         * sysdeps/powerpc/powerpc32/dl-machine.c (__process_machine_rela):
44551         Likewise.
44552         * sysdeps/powerpc/powerpc32/dl-machine.h
44553         (elf_machine_runtime_setup, elf_machine_rela): Likewise.
44554         * sysdeps/powerpc/powerpc64/dl-irel.h (elf_irela): Likewise.
44555         * sysdeps/powerpc/powerpc64/dl-machine.h (elf_machine_rela): Likewise.
44556         * sysdeps/pthread/aio_notify.c (__aio_notify_only): Likewise.
44557         * sysdeps/pthread/aio_suspend.c (do_aio_misc_wait, aio_suspend):
44558         Likewise.
44559         * sysdeps/s390/dl-irel.h (elf_irela): Likewise.
44560         * sysdeps/s390/s390-32/dl-machine.h (elf_machine_runtime_setup)
44561         (elf_machine_rela, elf_machine_lazy_rel): Likewise.
44562         * sysdeps/s390/s390-64/dl-machine.h (elf_machine_runtime_setup)
44563         (elf_machine_rela, elf_machine_lazy_rel): Likewise.
44564         * sysdeps/s390/s390-64/utf16-utf32-z9.c (gconv_end): Likewise.
44565         * sysdeps/s390/s390-64/utf8-utf16-z9.c (gconv_end): Likewise.
44566         * sysdeps/s390/s390-64/utf8-utf32-z9.c (gconv_end): Likewise.
44567         * sysdeps/sh/dl-machine.h (elf_machine_rela): Likewise.
44568         * sysdeps/sparc/sparc32/dl-irel.h (elf_irela): Likewise.
44569         * sysdeps/sparc/sparc32/dl-machine.h (elf_machine_rela)
44570         (elf_machine_lazy_rel): Likewise.
44571         * sysdeps/sparc/sparc64/dl-irel.h (elf_irela): Likewise.
44572         * sysdeps/sparc/sparc64/dl-machine.h (elf_machine_rela)
44573         (elf_machine_lazy_rel): Likewise.
44574         * sysdeps/sparc/sparc64/dl-plt.h (sparc64_fixup_plt): Likewise.
44575         * sysdeps/unix/clock_gettime.c (hp_timing_gettime): Likewise.
44576         * sysdeps/unix/clock_settime.c (hp_timing_settime): Likewise.
44577         * sysdeps/unix/grantpt.c (grantpt): Likewise.
44578         * sysdeps/unix/sysv/linux/accept4.c (accept4): Likewise.
44579         * sysdeps/unix/sysv/linux/adjtime.c (ADJTIME): Likewise.
44580         * sysdeps/unix/sysv/linux/check_pf.c (__check_pf): Likewise.
44581         * sysdeps/unix/sysv/linux/dl-osinfo.h (_dl_setup_stack_chk_guard):
44582         Likewise.
44583         * sysdeps/unix/sysv/linux/faccessat.c (faccessat): Likewise.
44584         * sysdeps/unix/sysv/linux/fchmodat.c (fchmodat): Likewise.
44585         * sysdeps/unix/sysv/linux/fchownat.c (fchownat): Likewise.
44586         * sysdeps/unix/sysv/linux/futimesat.c (futimesat): Likewise.
44587         * sysdeps/unix/sysv/linux/fxstatat64.c (__fxstatat64): Likewise.
44588         * sysdeps/unix/sysv/linux/fxstatat.c (__fxstatat): Likewise.
44589         * sysdeps/unix/sysv/linux/i386/fallocate64.c (fallocate64): Likewise.
44590         * sysdeps/unix/sysv/linux/i386/fallocate.c (fallocate): Likewise.
44591         * sysdeps/unix/sysv/linux/i386/fchownat.c (fchownat): Likewise.
44592         * sysdeps/unix/sysv/linux/i386/fxstatat.c (__fxstatat): Likewise.
44593         * sysdeps/unix/sysv/linux/i386/get_clockfreq.c (__get_clockfreq):
44594         Likewise.
44595         * sysdeps/unix/sysv/linux/i386/posix_fallocate64.c
44596         (__posix_fallocate64_l64): Likewise.
44597         * sysdeps/unix/sysv/linux/i386/posix_fallocate.c
44598         (posix_fallocate): Likewise.
44599         * sysdeps/unix/sysv/linux/i386/scandir64.c (__old_scandir64):
44600         Likewise.
44601         * sysdeps/unix/sysv/linux/i386/sysdep.h: Likewise.
44602         * sysdeps/unix/sysv/linux/ifaddrs.c (__netlink_request)
44603         (getifaddrs_internal): Likewise.
44604         * sysdeps/unix/sysv/linux/linkat.c (linkat): Likewise.
44605         * sysdeps/unix/sysv/linux/mkdirat.c (mkdirat): Likewise.
44606         * sysdeps/unix/sysv/linux/mq_unlink.c (mq_unlink): Likewise.
44607         * sysdeps/unix/sysv/linux/openat.c (OPENAT_NOT_CANCEL): Likewise.
44608         * sysdeps/unix/sysv/linux/posix_fallocate64.c
44609         (__posix_fallocate64_l64): Likewise.
44610         * sysdeps/unix/sysv/linux/posix_fallocate.c (posix_fallocate):
44611         Likewise.
44612         * sysdeps/unix/sysv/linux/powerpc/fchownat.c (fchownat): Likewise.
44613         * sysdeps/unix/sysv/linux/powerpc/get_clockfreq.c
44614         (__get_clockfreq): Likewise.
44615         * sysdeps/unix/sysv/linux/readlinkat.c (readlinkat): Likewise.
44616         * sysdeps/unix/sysv/linux/recvmmsg.c (recvmmsg): Likewise.
44617         * sysdeps/unix/sysv/linux/renameat.c (renameat): Likewise.
44618         * sysdeps/unix/sysv/linux/s390/s390-32/sysdep.h: Likewise.
44619         * sysdeps/unix/sysv/linux/s390/s390-64/sysdep.h: Likewise.
44620         * sysdeps/unix/sysv/linux/sched_setaffinity.c: Likewise.
44621         * sysdeps/unix/sysv/linux/sendmmsg.c (__sendmmsg): Likewise.
44622         * sysdeps/unix/sysv/linux/shm_open.c (where_is_shmfs, shm_open):
44623         Likewise.
44624         * sysdeps/unix/sysv/linux/sleep.c (__sleep): Likewise.
44625         * sysdeps/unix/sysv/linux/symlinkat.c (symlinkat): Likewise.
44626         * sysdeps/unix/sysv/linux/tcgetattr.c (__tcgetattr): Likewise.
44627         * sysdeps/unix/sysv/linux/ttyname.c (ttyname): Likewise.
44628         * sysdeps/unix/sysv/linux/ttyname_r.c (__ttyname_r): Likewise.
44629         * sysdeps/unix/sysv/linux/unlinkat.c (unlinkat): Likewise.
44630         * sysdeps/unix/sysv/linux/wordsize-64/fxstatat.c (__fxstatat):
44631         Likewise.
44632         * sysdeps/unix/sysv/linux/wordsize-64/posix_fallocate.c
44633         (posix_fallocate): Likewise.
44634         * sysdeps/unix/sysv/linux/x86_64/sysdep.h: Likewise.
44635         * sysdeps/unix/sysv/linux/xmknodat.c (__xmknodat): Likewise.
44636         * sysdeps/x86_64/dl-irel.h (elf_irela): Likewise.
44637         * sysdeps/x86_64/dl-machine.h (elf_machine_runtime_setup)
44638         (elf_machine_rela, elf_machine_rela_relative)
44639         (elf_machine_lazy_rel): Likewise.
44640         * time/asctime.c (asctime_internal): Likewise.
44641         * time/tzfile.c (__tzfile_read, __tzfile_compute): Likewise.
44642         * time/tzset.c (__tzset_parse_tz): Likewise.
44643         * wcsmbs/mbrtoc16.c (mbrtoc16): Likewise.
44644         * wcsmbs/mbrtowc.c (__mbrtowc): Likewise.
44645         * wcsmbs/wcsmbsload.c (__wcsmbs_load_conv): Likewise.
44646         * wcsmbs/wcsmbsload.h: Likewise.
44647
44648         [BZ #15894]
44649         * stdlib/setenv.c (__add_to_environ): Remove duplicate code.
44650
44651         * malloc/arena.c (grow_heap, get_free_list, reused_arena)
44652         (arena_get2): Remove THREAD_STATS conditionals.
44653         * malloc/malloc.c (__malloc_assert, __libc_realloc, _int_free)
44654         (__malloc_stats, int): Likewise.
44655
44656 2014-02-08  Mike Frysinger  <vapier@gentoo.org>
44657
44658         * sysdeps/unix/sysv/linux/shm_open.c (where_is_shmfs): Compare
44659         f.f_type to RAMFS_MAGIC too.  Compare mp->mnt_type to shm too.
44660
44661         * manual/setjmp.texi: Fix typos/grammar errors.
44662
44663         * debug/tst-backtrace4.c (handle_signal): Add NUM_FUNCTIONS to output.
44664         Only return early when n is <= 0.  Delete unused return statement.
44665
44666         * debug/Makefile (CFLAGS-tst-longjmp_chk3.c): Define.
44667         (CPPFLAGS-tst-longjmp_chk3.c): Likewise.
44668         * debug/tst-longjmp_chk3.c: New file.
44669
44670         * benchtests/bench-strcpy_chk.c: Move test-skeleton.c to top.
44671         (test_main): Replace code with set_fortify_handler call.
44672         * debug/test-strcpy_chk.c: Likewise.
44673         * debug/tst-chk1.c: Likewise.
44674         * debug/tst-longjmp_chk.c: Likewise.
44675         * test-skeleton.c: Include fcntl.h & paths.h
44676         (set_fortify_handler): Define.
44677
44678         * debug/tst-longjmp_chk.c: Add header comment and include
44679         ../test-skeleton.c.
44680         (do_test): Mark static.
44681         (TEST_FUNCTION): Define.
44682
44683         * sysdeps/unix/sysv/linux/bits/in.h (IP_NODEFRAG): Define.
44684         (IP_PMTUDISC_INTERFACE): Likewise.
44685         (IP_MULTICAST_IF): Likewise.
44686         (IP_MULTICAST_TTL): Likewise.
44687         (IP_MULTICAST_LOOP): Likewise.
44688         (IP_ADD_MEMBERSHIP): Likewise.
44689         (IP_DROP_MEMBERSHIP): Likewise.
44690         (IP_UNBLOCK_SOURCE): Likewise.
44691         (IP_BLOCK_SOURCE): Likewise.
44692         (IP_ADD_SOURCE_MEMBERSHIP): Likewise.
44693         (IP_DROP_SOURCE_MEMBERSHIP): Likewise.
44694         (IP_MSFILTER): Likewise.
44695         (MCAST_JOIN_GROUP): Likewise.
44696         (MCAST_BLOCK_SOURCE): Likewise.
44697         (MCAST_UNBLOCK_SOURCE): Likewise.
44698         (MCAST_LEAVE_GROUP): Likewise.
44699         (MCAST_JOIN_SOURCE_GROUP): Likewise.
44700         (MCAST_LEAVE_SOURCE_GROUP): Likewise.
44701         (MCAST_MSFILTER): Likewise.
44702         (IP_MULTICAST_ALL): Likewise.
44703         (IP_UNICAST_IF): Likewise.
44704
44705         * timezone/Makefile: Delete $(have-ksh) check.
44706         ($(objpfx)tzselect): Change $(KSH) to $(BASH).
44707         * timezone/tzselect.ksh: Add +x mode bits.
44708
44709         * sysdeps/unix/sysv/linux/linux_fsinfo.h (AFS_SUPER_MAGIC): Define.
44710         (ANON_INODE_FS_MAGIC): Likewise.
44711         (BDEVFS_MAGIC): Likewise.
44712         (BINFMTFS_MAGIC): Likewise.
44713         (BTRFS_TEST_MAGIC): Likewise.
44714         (CRAMFS_MAGIC_WEND): Likewise.
44715         (DEBUGFS_MAGIC): Likewise.
44716         (ECRYPTFS_SUPER_MAGIC): Likewise.
44717         (EXT3_SUPER_MAGIC): Likewise.
44718         (EXT4_SUPER_MAGIC): Likewise.
44719         (FUTEXFS_SUPER_MAGIC): Likewise.
44720         (HOSTFS_SUPER_MAGIC): Likewise.
44721         (HUGETLBFS_MAGIC): Likewise.
44722         (MINIX3_SUPER_MAGIC): Likewise.
44723         (MTD_INODE_FS_MAGIC): Likewise.
44724         (NILFS_SUPER_MAGIC): Likewise.
44725         (OPENPROM_SUPER_MAGIC): Likewise.
44726         (PIPEFS_MAGIC): Likewise.
44727         (PSTOREFS_MAGIC): Likewise.
44728         (QNX6_SUPER_MAGIC): Likewise.
44729         (RAMFS_MAGIC): Likewise.
44730         (REISERFS_SUPER_MAGIC_STRING): Likewise.
44731         (REISER2FS_SUPER_MAGIC_STRING): Likewise.
44732         (REISER2FS_JR_SUPER_MAGIC_STRING): Likewise.
44733         (SECURITYFS_MAGIC): Likewise.
44734         (SELINUX_MAGIC): Likewise.
44735         (SMACK_MAGIC): Likewise.
44736         (SOCKFS_MAGIC): Likewise.
44737         (SQUASHFS_MAGIC): Likewise.
44738         (STACK_END_MAGIC): Likewise.
44739         (TMPFS_MAGIC): Likewise.
44740         (USBDEVICE_SUPER_MAGIC): Likewise.
44741         (V9FS_MAGIC): Likewise.
44742         (XENFS_SUPER_MAGIC): Likewise.
44743         (CRAMFS_MAGIC): Fix typo in comment.
44744         (EXT2_SUPER_MAGIC): Update comment.
44745         (USBDEVFS_SUPER_MAGIC): Fix sorting order by moving further down.
44746
44747 2014-02-08  Joseph Myers  <joseph@codesourcery.com>
44748
44749         * sysdeps/arm: Move directory from ports/sysdeps/arm.
44750         * sysdeps/unix/arm: Move directory from ports/sysdeps/unix/arm.
44751         * sysdeps/unix/sysv/linux/arm: Move directory from
44752         ports/sysdeps/unix/sysv/linux/arm.
44753         * README: Update listing for arm-*-linux-gnueabi.
44754
44755         * README: Remove mention of am33.
44756
44757 2014-02-07  Roland McGrath  <roland@hack.frob.com>
44758
44759         * bits/sigset.h (__sigemptyset): Use a statement expression rather
44760         than the comma operator, to avoid "rhs of comma has no effect"
44761         compiler warnings.
44762         (__sigfillset, __sigandset, __sigorset): Likewise.
44763         * include/signal.h (__sigemptyset): Likewise.
44764         * sysdeps/generic/malloc-machine.h (mutex_lock): Likewise.
44765
44766 2014-02-07  Allan McRae  <allan@archlinux.org>
44767
44768         * version.h (RELEASE): Set to "development".
44769         (VERSION): Set to "2.19.90"
44770         * NEWS: Add 2.20 section.
44771
44772 2014-02-06  Carlos O'Donell  <carlos@redhat.com>
44773
44774         [BZ #16529]
44775         * inet/netinet/in.h: Remove comma after IPPROTO_MH.
44776
44777 2014-02-06  Siddhesh Poyarekar  <siddhesh@redhat.com>
44778
44779         * manual/contrib.texi: Update entry for Carlos O'Donell,
44780         Joseph Myers, Roland McGrath, Alexandre Oliva and Ryan Arnold.
44781
44782 2014-02-05  Carlos O'Donell  <carlos@rehdat.com>
44783
44784         * sysdeps/unix/sysv/linux/kernel-features.h: Fix comment.
44785
44786         * sysdeps/unix/sysv/linux/kernel-features.h
44787         [__LINUX_KERNEL_VERSION >= 0x020621]
44788         (__ASSUME_PROC_PID_TASK_COMM): Define.
44789
44790 2014-02-05  Siddhesh Poyarekar  <siddhesh@redhat.com>
44791
44792         [BZ #16398]
44793         * libio/wfileops.c (_IO_wfile_seekoff): Break out form
44794         conversion when destination buffer does not have enough space.
44795         * libio/tst-ftell-partial-wide.c: New test case.
44796         * libio/Makefile (tests): Add tst-ftell-partial-wide.
44797
44798         * manual/contrib.texi: Update entry for Ondrej Bilka, Will
44799         Newton and Alexandre Oliva.  Add entries for Steve Ellcey, Chris
44800         Leonard and Allan McRae.
44801
44802 2014-02-04  David S. Miller  <davem@davemloft.net>
44803
44804         * sysdeps/sparc/fpu/libm-test-ulps: Update for some 64-bit differences from
44805         32-bit.
44806
44807 2014-02-04  Adhemerval Zanella  <azanella@linux.vnet.ibm.com>
44808
44809         * sysdeps/unix/sysv/linux/powerpc/powerpc64/nptl/ld-le.abilist:
44810         New file
44811         * sysdeps/unix/sysv/linux/powerpc/powerpc64/nptl/libBrokenLocale-le.abilist:
44812         New file
44813         * sysdeps/unix/sysv/linux/powerpc/powerpc64/nptl/libanl-le.abilist:
44814         New file.
44815         * sysdeps/unix/sysv/linux/powerpc/powerpc64/nptl/libc-le.abilist:
44816         New file.
44817         * sysdeps/unix/sysv/linux/powerpc/powerpc64/nptl/libcrypt-le.abilist:
44818         New file.
44819         * sysdeps/unix/sysv/linux/powerpc/powerpc64/nptl/libdl-le.abilist:
44820         New file.
44821         * sysdeps/unix/sysv/linux/powerpc/powerpc64/nptl/libm-le.abilist:
44822         New file.
44823         * sysdeps/unix/sysv/linux/powerpc/powerpc64/nptl/libnsl-le.abilist:
44824         New file.
44825         * sysdeps/unix/sysv/linux/powerpc/powerpc64/nptl/libpthread-le.abilist:
44826         New file.
44827         * sysdeps/unix/sysv/linux/powerpc/powerpc64/nptl/libresolv-le.abilist:
44828         New file.
44829         * sysdeps/unix/sysv/linux/powerpc/powerpc64/nptl/librt-le.abilist:
44830         New file.
44831         * sysdeps/unix/sysv/linux/powerpc/powerpc64/nptl/libthread_db-le.abilist:
44832         New file.
44833         * sysdeps/unix/sysv/linux/powerpc/powerpc64/nptl/libutil-le.abilist:
44834         New file.
44835
44836 2014-02-01  Adhemerval Zanella  <azanella@linux.vnet.ibm.com>
44837
44838         * nptl/shlib-versions: Change powerpc*le start to 2.17.
44839         * shlib-versions: Likewise.
44840
44841 2014-02-04  Roland McGrath  <roland@hack.frob.com>
44842             Adhemerval Zanella  <azanella@linux.vnet.ibm.com>
44843
44844         * sysdeps/powerpc/Makefile [$(config-machine) ends with 'le']
44845         (abilist-pattern): New variable, set to %-le.abilist.
44846
44847         * Makerules (abilist-pattern): New variable.
44848         (vpath): Use $(abilist-pattern) in place of %.abilist.
44849         (check-abi-% pattern rule): Likewise.
44850         (check-abi, update-abi): Likewise.
44851
44852 2014-02-04  Eric Wong  <normalperson@yhbt.net>
44853
44854         * sysdeps/x86_64/fpu/libm-test-ulps: Update.
44855
44856 2014-02-03  Carlos O'Donell  <carlos@redhat.com>
44857
44858         * manual/startup.texi: Add next, previous, and top entries for
44859         the `Program Arguments' and `Environment Variables' nodes.
44860
44861 2014-02-03  Alexandre Oliva <aoliva@redhat.com>
44862
44863         * manual/macros.texi: Add comments before MTASC-safety macros.
44864
44865         * manual/users.texi: Document MTASC-safety properties.
44866
44867         * manual/threads.texi (pthread_key_create, pthread_key_delete)
44868         (pthread_getspecific, pthread_setspecific): Format with
44869         @deftypefun, and add @safety note.
44870         * manual/signal.texi: Move comments that analyze the above
44871         functions to their home place.
44872
44873 2014-02-03  Allan McRae  <allan@archlinux.org>
44874
44875         * po/sl.po: Update Slovenian translation from translation project.
44876
44877 2014-02-02  Alexandre Oliva <aoliva@redhat.com>
44878
44879         * manual/time.texi (timegm): Add missing blank after @c.
44880         Reported by Joseph Myers <joseph@codesourcery.com>.
44881
44882 2014-02-01  Alexandre Oliva <aoliva@redhat.com>
44883
44884         * manual/check-safety.sh: New.
44885         * manual/Makefile ($(objpfx)stamp-summary): Run it.
44886
44887         * manual/terminal.texi: Document MTASC-safety properties.
44888
44889         * manual/filesys.texi: Document MTASC-safety properties.
44890
44891         * manual/errno.texi: Document MTASC-safety properties.
44892
44893         * manual/intro.texi: Document safety identifiers and
44894         conditionals.
44895
44896         * manual/string.texi (wcstok): Fix prototype.
44897         (wcstok, strtok, strtok_r): Adjust reentrancy remarks.
44898
44899         * manual/time.texi: Document MTASC-safety properties.
44900
44901         * manual/string.texi: Document MTASC-safety properties.
44902
44903         * manual/threads.texi: Document MTASC-safety properties.
44904
44905         * manual/stdio.texi: Document MTASC-safety properties.
44906
44907         * manual/syslog.texi: Document MTASC-safety properties.
44908
44909         * manual/sysinfo.texi: Document MTASC-safety properties.
44910
44911         * manual/startup.texi: Document MTASC-safety properties.
44912
44913         * manual/socket.texi: Document MTASC-safety properties.
44914
44915         * manual/signal.texi: Document MTASC-safety properties.
44916
44917 2014-01-31  Alexandre Oliva <aoliva@redhat.com>
44918
44919         * manual/setjmp.texi: Document MTASC-safety properties.
44920
44921         * manual/search.texi: Document MTASC-safety properties.
44922
44923         * manual/resource.texi: Document MTASC-safety properties.
44924
44925         * manual/process.texi: Document MTASC-safety properties.
44926
44927         * manual/platform.texi: Document MTASC-safety properties.
44928
44929         * manual/pipe.texi: Document MTASC-safety properties.
44930
44931         * manual/pattern.texi: Document MTASC-safety properties.
44932
44933         * manual/message.texi: Document MTASC-safety properties.
44934
44935         [BZ #12751]
44936         * manual/memory.texi: Document MTASC-safety properties.
44937
44938         * manual/math.texi: Document MTASC-safety properties.
44939
44940         * manual/locale.texi: Document MTASC-safety properties.
44941
44942         * manual/llio.texi: Document MTASC-safety properties.
44943
44944         * manual/libdl.texi: New.
44945
44946         * manual/lang.texi: Document MTASC-safety properties.
44947
44948         * manual/job.texi: Document MTASC-safety properties.
44949
44950         * manual/getopt.texi: Document MTASC-safety properties.
44951
44952         * manual/ctype.texi: Document MTASC-safety properties.
44953
44954 2014-01-31  Maciej W. Rozycki  <macro@codesourcery.com>
44955
44956         [BZ #16046]
44957         * csu/libc-tls.c (static_map): Remove variable.
44958         (__libc_setup_tls): Use main executable's link map for TLS data.
44959         * elf/dl-close.c (_dl_close_worker) [!SHARED]: Remove special
44960         casing for LM_ID_BASE and GL(dl_nns).
44961         * elf/dl-iteratephdr.c [!SHARED] (dl_iterate_phdr): Remove
44962         function.  Alias dl_iterate_phdr to __dl_iterate_phdr.
44963         * elf/dl-load.c (_dl_map_object) [!SHARED]: Remove special
44964         casing for GL(dl_ns)[LM_ID_BASE]._ns_loaded.
44965         * elf/dl-support.c (_dl_main_map): Also initialize l_flags_1
44966         member.
44967         (_dl_non_dynamic_init): Also initialize _dl_main_map's l_phdr and
44968         l_phnum members.
44969
44970 2014-01-30  Alexandre Oliva <aoliva@redhat.com>
44971
44972         * manual/debug.texi: Document MTASC-safety properties.
44973
44974 2014-01-29  H.J. Lu  <hongjiu.lu@intel.com>
44975
44976         [BZ #16510]
44977         * sysdeps/x86/fpu/bits/mathinline.h: Check __SSE2_MATH__ instead
44978         of __x86_64__ when disabling x87 inline functions.
44979
44980 2014-01-29  Alexandre Oliva <aoliva@redhat.com>
44981
44982         * manual/charset.texi: Document MTASC-safety properties.
44983
44984         * manual/crypt.texi: Document MTASC-safety properties.
44985
44986         * manual/conf.texi: Document MTASC-safety properties.
44987
44988         * manual/arith.texi: Document MTASC-safety properties.
44989
44990         * manual/argp.texi: Document MTASC-safety properties.
44991
44992         * manual/macros.texi: Introduce macros to document multi
44993         thread, asynchronous signal and asynchronous cancellation
44994         safety properties.
44995         * manual/intro.texi: Introduce the properties themselves.
44996
44997 2014-01-27  Kaz Kojima  <kkojima@rr.iij4u.or.jp>
44998
44999         * sysdeps/sh/sh4/Makefile: New file.
45000
45001 2014-01-27  Andreas Schwab  <schwab@linux-m68k.org>
45002
45003         * math/gen-libm-test.pl ($srcdir): New variable.
45004         ($auto_input): Use it.
45005
45006 2014-01-27  Siddhesh Poyarekar  <siddhesh@redhat.com>
45007
45008         [BZ #16506]
45009         * nss/nss_files/files-netgrp.c (_nss_files_setnetgrent): Avoid
45010         access beyond array bounds when parsing netgroups file.
45011
45012         * nscd/netgroupcache.c (addgetnetgrentX): Compute offset from
45013         the old buffer before realloc.
45014
45015 2014-01-27  Allan McRae  <allan@archlinux.org>
45016
45017         * po/fr.po: Update French translation from translation project.
45018
45019 2014-01-26  Kaz Kojima  <kkojima@rr.iij4u.or.jp>
45020
45021         * sysdeps/sh/libm-test-ulps: Regenerate.
45022
45023 2014-01-24  David S. Miller  <davem@davemloft.net>
45024
45025         * sysdeps/sparc/fpu/libm-test-ulps: Regenerate.
45026
45027 2014-01-25  Kaz Kojima  <kkojima@rr.iij4u.or.jp>
45028
45029         * sysdeps/sh/sh4/fpu/libm-test-ulps: Move to ...
45030         * sysdeps/sh/libm-test-ulps: ... here and regenerated.
45031
45032 2013-01-24  Siddhesh Poyarekar  <siddhesh@redhat.com>
45033
45034         [BZ #16474]
45035         * nscd/netgroupcache.c (addgetnetgrentX): Adjust triplet
45036         string pointers after reallocation.
45037
45038 2014-01-24  Kaz Kojima  <kkojima@rr.iij4u.or.jp>
45039
45040         * sysdeps/unix/sysv/linux/sh/sys/ucontext.h: Use __SH4__ and
45041         __SH4A__ instead of __SH_FPU_ANY__.
45042
45043 2014-01-23  Kaz Kojima  <kkojima@rr.iij4u.or.jp>
45044
45045         * sysdeps/sh/fpu_control.h: New file.
45046         * sysdeps/sh/sh4/fpu/fpu_control.h: Remove.
45047         * sysdeps/unix/sysv/linux/sh/sys/ucontext.h: New file.
45048         * sysdeps/unix/sysv/linux/sh/sh3/sys/ucontext.h: Remove.
45049         * sysdeps/unix/sysv/linux/sh/sh3/sys: Remove directory.
45050         * sysdeps/unix/sysv/linux/sh/sh4/sys/ucontext.h: Remove.
45051         * sysdeps/unix/sysv/linux/sh/sh4/sys: Remove directory.
45052         * sysdeps/sh/sys/ucontext.h: Remove.
45053         * sysdeps/sh/sys: Remove directory.
45054
45055 2014-01-22  Andreas Krebbel  <Andreas.Krebbel@de.ibm.com>
45056
45057         * sysdeps/unix/sysv/linux/s390/s390-32/sys/ucontext.h: Merge into
45058         s390/sys/ucontext.h.
45059         * sysdeps/unix/sysv/linux/s390/s390-64/sys/ucontext.h: Likewise.
45060         * sysdeps/unix/sysv/linux/s390/sys/ucontext.h: New file.
45061
45062 2014-01-20  H.J. Lu  <hongjiu.lu@intel.com>
45063
45064         [BZ #15605]
45065         * sysdeps/x86_64/x32/symbol-hacks.h: Include generic symbol-hacks.h.
45066
45067 2014-01-20  Adhemerval Zanella  <azanella@linux.vnet.ibm.com>
45068
45069         [BZ#16431]
45070         * sysdeps/unix/sysv/linux/powerpc/gettimeofday.c (__gettimeofday):
45071         Adjust the vDSO correctly for internal calls.
45072         * sysdeps/unix/sysv/linux/powerpc/time.c (time): Likewise.
45073
45074 2014-01-20  Allan McRae  <allan@archlinux.org>
45075
45076         * po/ca.po: Update Catalan translation from translation project.
45077
45078 2014-01-16  Mike Frysinger  <vapier@gentoo.org>
45079
45080         * sysdeps/s390/sotruss-lib.c: New file.
45081
45082 2014-01-16  Adhemerval Zanella  <azanella@linux.vnet.ibm.com>
45083
45084         [BZ#16430]
45085         * sysdeps/unix/sysv/linux/powerpc/gettimeofday.c
45086         (__GI___gettimeofday): Alias for a different internal symbol to avoid
45087         local calls issues by not having a PLT stub required for IFUNC calls.
45088         * sysdeps/unix/sysv/linux/powerpc/time.c (__GI_time): Likewise.
45089
45090 2014-01-16 Joseph Myers  <joseph@codesourcery.com>
45091
45092         * math/test-fpucw-ieee.c: Use <> in #include of test-fpucw.c.
45093         * math/test-fpucw-static.c: Likewise.
45094
45095 2013-01-16  Siddhesh Poyarekar  <siddhesh@redhat.com>
45096
45097         [BZ #16453]
45098         * nscd/netgroupcache.c (addgetnetgrentX): Don't use alloca.
45099
45100 2014-01-15  Adhemerval Zanella  <azanella@linux.vnet.ibm.com>
45101
45102         * sysdeps/powerpc/sotruss-lib.c: New file: sotruss-lib.so
45103         implementation for powerpc.
45104
45105 2014-01-15  Ondřej Bílka  <neleai@seznam.cz>
45106
45107         [BZ #14782]
45108         * sysdeps/posix/system.c (__libc_system): Do not enable
45109         asynchronous cancellation.
45110
45111 2014-01-15  Andreas Krebbel  <Andreas.Krebbel@de.ibm.com>
45112
45113         [BZ #16427]
45114         * sysdeps/ieee754/ldbl-128/w_expl.c (__expl): Invoke the non-IEEE
45115         handling only for numbers special also in the IEEE case.
45116
45117 2014-01-15  Andreas Krebbel  <Andreas.Krebbel@de.ibm.com>
45118
45119         * sysdeps/s390/fpu/libm-test-ulps: Regenerate.
45120
45121 2014-01-11  Allan McRae  <allan@archlinux.org>
45122
45123         * po/bg.po: Update Bulgarian translation from translation project.
45124
45125         * po/de.po: Update German translation from translation project.
45126
45127 2014-01-10  Roland McGrath  <roland@hack.frob.com>
45128
45129         * sysdeps/generic/gcc-compat.h: New file.
45130
45131 2014-01-10  Siddhesh Poyarekar  <siddhesh@redhat.com>
45132
45133         * benchtests/asin-inputs: Correct slow inputs.
45134         * benchtests/acos-inputs: Likewise.
45135
45136 2014-01-10  Allan McRae  <allan@archlinux.org>
45137
45138         * po:sv.po: Update Swedish translation from translation project.
45139
45140         * po/vi.po: Update Vietnamese translation from translation project.
45141
45142         * po/eo.po: Update Esperanto translation from translation project.
45143
45144         * po/cs.po: Update Czech translation from translation project.
45145
45146         * po/nl.po: Update Dutch translation from translation project.
45147
45148         * po/pl.po: Update Polish translation from translation project.
45149
45150         * po/ru.po: Update Russian translation from translation project.
45151
45152         * po/uk.po: Update Ukrainian translation from translation project.
45153
45154 2014-01-08  Brooks Moses  <bmoses@google.com>
45155
45156         * elf/dl-load.c: Fix comment typo.
45157
45158 2014-01-08  Carlos O'Donell  <carlos@redhat.com>
45159
45160         * po/header.pot: Rename to...
45161         * po/pot.header: ... this.
45162         * po/Makefile: Use pot.header.
45163
45164 2014-01-08  Yuriy Kaminskiy  <yumkam@gmail.com>
45165             Maxim Kuvyrkov  <maxim@kugelworks.com>
45166
45167         [BZ #16394]
45168         * sysdeps/i386/i686/memmove.S (memmove): Compare distance between
45169         SRC and DEST against LEN.
45170
45171 2014-01-08  Adhemerval Zanella  <azanella@linux.vnet.ibm.com>
45172
45173         [BZ #16414]
45174         * sysdeps/powerpc/powerpc64/fpu/s_truncl.S: Remove wrong
45175         implementation.
45176         * sysdeps/ieee754/ldbl-128ibm/s_truncl.c: Remove bogus comment.
45177
45178 2014-01-08  Adhemerval Zanella  <azanella@linux.vnet.ibm.com>
45179
45180         * sysdeps/powerpc/fpu/libm-test-ulps: Update.
45181
45182 2014-01-08  Joseph Myers  <joseph@codesourcery.com>
45183
45184         [BZ #16408]
45185         * sysdeps/ieee754/ldbl-128ibm/s_expm1l.c (__expm1l): Use __expl
45186         for large positive arguments.
45187
45188 2014-01-07  Joseph Myers  <joseph@codesourcery.com>
45189
45190         * sysdeps/powerpc/nofpu/libm-test-ulps: Regenerated.
45191
45192         * math/auto-libm-test-in: Mark various tests with
45193         xfail-rounding:ldbl-128ibm.
45194         * math/auto-libm-test-out: Regenerated.
45195
45196         [BZ #16407]
45197         * sysdeps/ieee754/ldbl-128ibm/e_coshl.c (__ieee754_coshl):
45198         Increase overflow threshold.
45199
45200 2014-01-07  Ondřej Bílka  <neleai@seznam.cz>
45201
45202         [BZ #14286]
45203         * stdio-common/vfprintf.c: Check for integer overflow.
45204
45205 2014-01-07  Andreas Krebbel  <Andreas.Krebbel@de.ibm.com>
45206
45207         * sysdeps/s390/dl-tls.h: sysdeps/s390/dl-tls.h: Remove casts for
45208         the first argument and return value of __tls_get_addr_internal.
45209
45210 2014-01-07  Andreas Krebbel  <Andreas.Krebbel@de.ibm.com>
45211
45212         * sysdeps/s390/s390-32/dl-machine.h: Gate the definition of refsym
45213         also with !RTLD_BOOTSTRAP to get rid of unused variable warning.
45214
45215 2014-01-07  Andreas Krebbel  <Andreas.Krebbel@de.ibm.com>
45216
45217         * sysdeps/s390/Makefile: Build rtld-global-offsets.sym.
45218         * sysdeps/s390/rtld-global-offsets.sym: New file.
45219         * sysdeps/unix/sysv/linux/s390/Versions: Add getcontext as new
45220         GLIBC_2.19 symbol.
45221         * sysdeps/unix/sysv/linux/s390/getcontext.S: New file.
45222         * sysdeps/unix/sysv/linux/s390/s390-32/getcontext.S: Rename to ...
45223         * sysdeps/unix/sysv/linux/s390/s390-32/getcontext-common.S:
45224         ... this.
45225         * sysdeps/unix/sysv/linux/s390/s390-64/getcontext.S: Rename to ...
45226         * sysdeps/unix/sysv/linux/s390/s390-64/getcontext-common.S:
45227         ... this.
45228         * sysdeps/unix/sysv/linux/s390/s390-32/nptl/libc.abilist:
45229         Regenerate.
45230         * sysdeps/unix/sysv/linux/s390/s390-64/nptl/libc.abilist:
45231         Regenerate.
45232         * sysdeps/unix/sysv/linux/s390/s390-32/setcontext.S: Restore upper
45233         halfs of GPRs for high_gprs contexts.
45234         * sysdeps/unix/sysv/linux/s390/s390-32/swapcontext.S: Save and
45235         restore upper halfs of GPRs for high_gprs contexts.  Copy uc_flags
45236         field.
45237         * sysdeps/unix/sysv/linux/s390/s390-64/swapcontext.S: Copy
45238         uc_flags field.
45239         * sysdeps/unix/sysv/linux/s390/sys/ucontext.h: Split into 32 and
45240         64 bit versions:
45241         * sysdeps/unix/sysv/linux/s390/s390-32/sys/ucontext.h: Add field
45242         for high GPRs (uc_high_gprs) and for future extensions
45243         (__reserved).
45244         * sysdeps/unix/sysv/linux/s390/s390-64/sys/ucontext.h: Add field
45245         for future extensions (__reserved).
45246         * sysdeps/unix/sysv/linux/s390/ucontext_i.sym: Split into 32 and
45247         64 bit versions:
45248         * sysdeps/unix/sysv/linux/s390/s390-32/ucontext_i.sym: Add
45249         SC_HIGHGPRS offset definition.
45250         * sysdeps/unix/sysv/linux/s390/s390-64/ucontext_i.sym: New file.
45251         * sysdeps/unix/sysv/linux/s390/rtld-getcontext.S: New file.
45252
45253         * Versions.def: Add GLIBC_2.19 for libpthread.
45254         * nptl/sysdeps/unix/sysv/linux/s390/Versions: Add longjmp and
45255         siglongjmp for libpthread with GLIBC_2.19 symver.
45256         * nptl/sysdeps/unix/sysv/linux/s390/pt-longjmp.c: New file.
45257         * sysdeps/s390/Makefile: Build v1-longjmp.c and v1-sigjmp.c.
45258         * sysdeps/s390/Versions: New GLIBC_2.19 and GLIBC_PRIVATE symbols.
45259         * sysdeps/s390/__longjmp.c: New file.
45260         * sysdeps/s390/bits/setjmp.h: Add new fields to __s390_jmp_buf.
45261         * sysdeps/s390/longjmp.c: New file.
45262         * sysdeps/s390/setjmp.S: New file.
45263         * sysdeps/s390/sigjmp.S: New file.
45264         * sysdeps/s390/v1-longjmp.c: New file.
45265         * sysdeps/s390/v1-setjmp.h: New file.
45266         * sysdeps/s390/v1-sigjmp.c: New file.
45267         * sysdeps/unix/sysv/linux/s390/Makefile: Build __longjmp_chk.
45268         * sysdeps/unix/sysv/linux/s390/Versions: Add __longjmp_chk with
45269         GLIBC_2.19 version.
45270         * sysdeps/unix/sysv/linux/s390/longjmp_chk.c: New file.
45271         * sysdeps/unix/sysv/linux/s390/s390-32/____longjmp_chk.c: Provide
45272         versioned symbols for ____longjmp_chk.
45273         * sysdeps/unix/sysv/linux/s390/s390-64/____longjmp_chk.c:
45274         Likewise.
45275         * sysdeps/unix/sysv/linux/s390/s390-32/nptl/libc.abilist:
45276         Regenerate.
45277         * sysdeps/unix/sysv/linux/s390/s390-32/nptl/libpthread.abilist:
45278         Regenerate.
45279         * sysdeps/unix/sysv/linux/s390/s390-64/nptl/libc.abilist:
45280         Regenerate.
45281         * sysdeps/unix/sysv/linux/s390/s390-64/nptl/libpthread.abilist:
45282         Regenerate.
45283         * sysdeps/unix/sysv/linux/s390/v1-longjmp_chk.c: New file.
45284         * sysdeps/s390/s390-32/__longjmp.c: Rename to ...
45285         * sysdeps/s390/s390-32/__longjmp-common.c: ... this.
45286         * sysdeps/s390/s390-32/setjmp.S: Rename and adjust to ...
45287         * sysdeps/s390/s390-32/setjmp-common.S: ... this.
45288         * sysdeps/s390/s390-64/__longjmp.c: Rename to ...
45289         * sysdeps/s390/s390-64/__longjmp-common.c: ... this.
45290         * sysdeps/s390/s390-64/setjmp.S: Rename and adjust to ...
45291         * sysdeps/s390/s390-64/setjmp-common.S: ... this.
45292         * sysdeps/s390/rtld-__longjmp.c: New file.
45293         * sysdeps/s390/rtld-setjmp.S: New file.
45294
45295 2014-01-06  Joseph Myers  <joseph@codesourcery.com>
45296
45297         [BZ #16400]
45298         * sysdeps/ieee754/ldbl-128/e_lgammal_r.c (__ieee754_lgammal_r):
45299         Return -__logl (x) for small positive arguments without evaluating
45300         a polynomial.
45301
45302 2014-01-06  Mike Frysinger  <vapier@gentoo.org>
45303
45304         * sysdeps/unix/sysv/linux/sys/ptrace.h (ptrace_peeksiginfo_args):
45305         Rename to ...
45306         (__ptrace_peeksiginfo_args): ... this.
45307         * sysdeps/unix/sysv/linux/powerpc/sys/ptrace.h: Likewise.
45308         * sysdeps/unix/sysv/linux/s390/sys/ptrace.h: Likewise.
45309         * sysdeps/unix/sysv/linux/sparc/sys/ptrace.h: Likewise.
45310
45311 2014-01-06  Allan McRae  <allan@archlinux.org>
45312
45313         * inet/netinet/in.h: Fix typo in comment.
45314
45315 2014-01-05  Andreas Jaeger  <aj@suse.de>
45316
45317         * sysdeps/i386/fpu/libm-test-ulps: Update.
45318
45319 2014-01-05  Allan McRae  <allan@archlinux.org>
45320
45321         * po/libc.pot: Regenerated.
45322
45323         * malloc/memusagestat.c: Fix gettext call formatting.
45324
45325 2014-01-04  Sami Kerola  <kerolasa@iki.fi>
45326
45327         * nscd/nscd.c: Improve usage() output.
45328
45329 2014-01-04  Mike Frysinger  <vapier@gentoo.org>
45330
45331         * config.h.in: Add HAVE_LINUX_FANOTIFY_H template.
45332         * sysdeps/unix/sysv/linux/configure: Regenerated.
45333         * sysdeps/unix/sysv/linux/configure.ac: Call AC_DEFINE.
45334         * sysdeps/unix/sysv/linux/tst-fanotify.c: Include config.h.
45335
45336 2014-01-03  Joseph Myers  <joseph@codesourcery.com>
45337
45338         [BZ #16390]
45339         * sysdeps/powerpc/nofpu/Makefile [$(subdir) = math]
45340         (CFLAGS-e_atan2l.c): Use -fno-builtin-fabsl.
45341
45342 2014-01-03  Adhemerval Zanella  <azanella@linux.vnet.ibm.com>
45343
45344         * sysdeps/powerpc/powerpc64/multiarch/strcasecmp-power7.S: Remove
45345         extra tokens at end of #undef directive.
45346         * sysdeps/powerpc/powerpc64/multiarch/strcasecmp_l-power7.S: Likewise.
45347         * sysdeps/powerpc/powerpc64/multiarch/strnlen-power7.S: Likewise.
45348         * sysdeps/powerpc/powerpc64/multiarch/wcscpy.c: Likewise.
45349
45350 2014-01-03  Joseph Myers  <joseph@codesourcery.com>
45351
45352         * sysdeps/powerpc/nofpu/libm-test-ulps: Regenerated.
45353
45354         * math/auto-libm-test-in: Mark various tests with
45355         xfail-rounding:ldbl-128ibm.
45356         * math/auto-libm-test-out: Regenerated.
45357
45358 2014-01-02  Joseph Myers  <joseph@codesourcery.com>
45359
45360         [BZ #16386]
45361         * sysdeps/ieee754/ldbl-128ibm/e_logl.c (__ieee754_logl): Adjust
45362         numbers with subnormal high part when calculating exponent.
45363
45364         [BZ #16385]
45365         * sysdeps/ieee754/ldbl-128ibm/s_asinhl.c (__asinhl): Use fabsl not
45366         fabs.
45367
45368         [BZ #16384]
45369         * sysdeps/ieee754/ldbl-128ibm/e_acoshl.c (ln2): Initialize with
45370         M_LN2l.
45371         (__ieee754_acoshl): Use __log1pl not __log1p.
45372
45373 2013-01-02  Ondřej Bílka  <neleai@seznam.cz>
45374
45375         * malloc/arena.c (malloc_atfork, free_atfork, ptmalloc_lock_all)
45376         (ptmalloc_unlock_all, ptmalloc_unlock_all2, next_env_entry)
45377         (__failing_morecore, ptmalloc_init, dump_heap, new_heap)
45378         (grow_heap, heap_trim, _int_new_arena, get_free_list)
45379         (reused_arena, arena_get2): Convert to GNU style.
45380         * malloc/hooks.c (memalign_hook_ini, __malloc_check_init)
45381         (mem2mem_check, mem2chunk_check, top_check, realloc_check)
45382         (memalign_check, __malloc_set_state): Likewise.
45383         * malloc/mallocbug.c (main): Likewise.
45384         * malloc/malloc.c (__malloc_assert, malloc_init_state)
45385         (free_perturb, do_check_malloced_chunk, do_check_malloc_state)
45386         (sysmalloc, systrim, mremap_chunk, __libc_malloc, __libc_free)
45387         (__libc_realloc, _mid_memalign, _int_malloc, malloc_consolidate)
45388         (_int_realloc, _int_memalign, mtrim, musable, __libc_mallopt)
45389         (__posix_memalign, malloc_info): Likewise.
45390         * malloc/malloc.h: Likewise.
45391         * malloc/mcheck.c (checkhdr, unlink_blk, link_blk, freehook)
45392         (mallochook, memalignhook, reallochook, mabort): Likewise.
45393         * malloc/mcheck.h: Likewise.
45394         * malloc/memusage.c (update_data, me, malloc, realloc, calloc)
45395         (free, mmap, mmap64, mremap, munmap, dest): Likewise.
45396         * malloc/memusagestat.c (main, parse_opt, more_help): Likewise.
45397         * malloc/morecore.c (__default_morecore): Likewise.
45398         * malloc/mtrace.c (tr_break, lock_and_info, mtrace): Likewise.
45399         * malloc/obstack.c (_obstack_begin, _obstack_newchunk)
45400         (_obstack_allocated_p, obstack_free, _obstack_memory_used)
45401         (print_and_abort): Likewise.
45402         * malloc/obstack.h: Likewise.
45403         * malloc/set-freeres.c (__libc_freeres): Likewise.
45404         * malloc/tst-mallocstate.c (main): Likewise.
45405         * malloc/tst-mtrace.c (main): Likewise.
45406         * malloc/tst-realloc.c (do_test): Likewise.
45407
45408 2013-01-02  Siddhesh Poyarekar  <siddhesh@redhat.com>
45409
45410         [BZ #16366]
45411         * nscd/netgroupcache.c (do_notfound): New function.
45412         (addgetnetgrentX): Use it.
45413
45414         [BZ # 16365]
45415         * nscd/netgroupcache.c (addgetnetgrentX): Break if status is
45416         NSS_STATUS_NOTFOUND.
45417
45418 2014-01-01  Joseph Myers  <joseph@codesourcery.com>
45419
45420         * sysdeps/i386/fpu/libm-test-ulps: Regenerated.
45421         * sysdeps/x86_64/fpu/libm-test-ulps: Likewise.
45422
45423 2014-01-01  Allan McRae  <allan@archlinux.org>
45424
45425         * scripts/update-copyrights: Update configure input file suffix.
45426
45427         * NEWS: Update copyright year.
45428         * catgets/gencat.c: Likewise.
45429         * csu/version.c: Likewise.
45430         * debug/catchsegv.sh: Likewise.
45431         * debug/pcprofiledump.c: Likewise.
45432         * debug/xtrace.sh: Likewise.
45433         * elf/ldconfig.c: Likewise.
45434         * elf/ldd.bash.in: Likewise.
45435         * elf/pldd.c: Likewise.
45436         * elf/sotruss.ksh: Likewise.
45437         * elf/sprof.c: Likewise.
45438         * iconv/iconv_prog.c: Likewise.
45439         * iconv/iconvconfig.c: Likewise.
45440         * locale/programs/locale.c: Likewise.
45441         * locale/programs/localedef.c: Likewise.
45442         * login/programs/pt_chown.c: Likewise.
45443         * malloc/memusage.sh: Likewise.
45444         * malloc/memusagestat.c: Likewise.
45445         * malloc/mtrace.pl: Likewise.
45446         * manual/libc.texinfo: Likewise.
45447         * nscd/nscd.c: Likewise.
45448         * nss/getent.c: Likewise.
45449         * nss/makedb.c: Likewise.
45450         * posix/getconf.c: Likewise.
45451         * scripts/test-installation.pl: Likewise.
45452
45453         * All files with FSF copyright notices: Update copyright dates
45454         using scripts/update-copyrights.
45455         * intl/plural.c: Regenerated.
45456         * locale/programs/charmap-kw.h: Likewise.
45457         * locale/programs/locfile-kw.h: Likewise.
45458
45459 2013-12-31  Mike Frysinger  <vapier@gentoo.org>
45460
45461         * sysdeps/unix/sysv/linux/configure: Regenerated.
45462         * sysdeps/unix/sysv/linux/configure.ac: Call AC_CHECK_HEADER on
45463         the linux/fanotify.h header.
45464         * sysdeps/unix/sysv/linux/tst-fanotify.c: Check if
45465         HAVE_LINUX_FANOTIFY_H is defined.
45466
45467 2013-12-31  Siddhesh Poyarekar  <siddhesh@redhat.com>
45468
45469         * benchtests/cos-inputs: New inputs.
45470         * benchtests/sin-inputs: Likewise.
45471
45472         * benchtests/atan-inputs: New inputs. Fix name of multiple
45473         precision fallback inputs.
45474
45475         * benchtests/atanh-inputs: New inputs.
45476         * benchtests/tanh-inputs: Likewise.
45477
45478         * benchtests/acosh-inputs: New inputs.
45479         * benchtests/asinh-inputs: Likewise.
45480
45481         * benchtests/cosh-inputs: New inputs.
45482         * benchtests/sinh-inputs: Likewise.
45483
45484         * benchtests/acos-inputs: Add more inputs.
45485         * benchtests/asin-inputs: Likewise.
45486
45487 2013-12-30  Ville Skytta  <ville.skytta@iki.fi>
45488
45489         [BZ #16375]
45490         * manual/arith.texi: Fix spelling.
45491         * manual/charset.texi: Likewise.
45492         * manual/errno.texi: Likewise.
45493         * manual/filesys.texi: Likewise.
45494         * manual/lang.texi: Likewise.
45495         * manual/llio.texi: Likewise.
45496         * manual/locale.texi: Likewise.
45497         * manual/message.texi: Likewise.
45498         * manual/resource.texi: Likewise.
45499         * manual/search.texi: Likewise.
45500         * manual/setjmp.texi: Likewise.
45501         * manual/stdio.texi: Likewise.
45502         * manual/string.texi: Likewise.
45503         * manual/sysinfo.texi: Likewise.
45504         * manual/time.texi: Likewise.
45505
45506 2013-12-27  Carlos O'Donell  <carlos@redhat.com>
45507
45508         * po/sl.po: New file.
45509
45510 2013-12-27  Mike Frysinger  <vapier@gentoo.org>
45511
45512         * .gitignore: Add core/.gdbinit/.gdb_history.
45513
45514 2013-12-27  Allan McRae  <allan@archlinux.org>
45515
45516         [BZ #16369]
45517         * sysdeps/ieee754/dbl-64/s_sin.c (csloww): Fix variable name.
45518         Reported by Il'ya Malakhov <ilmalakhov@yandex.ru>
45519
45520 2013-12-24  Brooks Moses  <bmoses@google.com>
45521
45522         * string/string.h (__CORRECT_ISO_CPP_STRING_H_PROTO): Define for
45523         all compilers that claim C++98 compliance, not just GCC.
45524         * string/strings.h (__CORRECT_ISO_CPP_STRINGS_H_PROTO):
45525         Likewise.
45526
45527 2013-12-24  Maxim Kuvyrkov  <maxim@kugelworks.com>
45528
45529         * NEWS: Restore accidentally deleted bug-fix entries.
45530
45531 2013-12-24  Maxim Kuvyrkov  <maxim@kugelworks.com>
45532             Ondřej Bílka  <neleai@seznam.cz>
45533
45534         [BZ #15073]
45535         * malloc/malloc.c (_int_free): Perform sanity check only if we
45536         have_lock.
45537
45538 2013-12-23  Ondřej Bílka  <neleai@seznam.cz>
45539
45540         [BZ #12986]
45541         * manual/stdio.texi (String Input Conversions): Clarify that character
45542         classes are not supported.
45543
45544 2013-12-23  Adhemerval Zanella  <azanella@linux.vnet.ibm.com>
45545
45546         * sysdeps/powerpc/fpu/libm-test-ulps: Update.
45547
45548 2013-12-22  Joseph Myers  <joseph@codesourcery.com>
45549
45550         [BZ #16337]
45551         * sysdeps/ieee754/ldbl-128/e_lgammal_r.c (__ieee754_lgammal_r):
45552         Calculate results for small negative arguments directly rather
45553         than using reflection formula with special underflow handling.
45554
45555         * sysdeps/mach/hurd/Implies: Change unix/bsd/bsd4.4 to unix/bsd.
45556         * sysdeps/unix/bsd/syscalls.list (chflags): Add entry from
45557         sysdeps/unix/bsd/bsd4.4/syscalls.list.
45558         (fchflags): Likewise.
45559         (revoke): Likewise.
45560         (setlogin): Likewise.
45561         (sigaltstack): Likewise.
45562         (wait4): Likewise.
45563         (sigblock): Remove.
45564         (sigsetmask): Likewise.
45565         (wait3): Likewise.
45566         (waitpid): Likewise.
45567         * sysdeps/unix/bsd/bsd4.4/syscalls.list: Remove file.
45568         * sysdeps/unix/sysv/linux/wait3.c: Update directory of included
45569         file.
45570         * sysdeps/unix/bsd/bsd4.4/Makefile: Move to ...
45571         * sysdeps/unix/bsd/Makefile: ... here.
45572         * sysdeps/unix/bsd/bsd4.4/Versions: Move to ...
45573         * sysdeps/unix/bsd/Versions: ... here.
45574         * sysdeps/unix/bsd/bsd4.4/bits/sockaddr.h: Move to ...
45575         * sysdeps/unix/bsd/bits/sockaddr.h: ... here.
45576         * sysdeps/unix/bsd/bsd4.4/cmsg_nxthdr.c: Move to ...
45577         * sysdeps/unix/bsd/cmsg_nxthdr.c: ... here.
45578         * sysdeps/unix/bsd/bsd4.4/sigblock.c: Move to ...
45579         * sysdeps/unix/bsd/sigblock.c: ... here.
45580         * sysdeps/unix/bsd/bsd4.4/sigsetmask.c: Move to ...
45581         * sysdeps/unix/bsd/sigsetmask.c: ... here.
45582         * sysdeps/unix/bsd/bsd4.4/sigvec.c: Move to ...
45583         * sysdeps/unix/bsd/sigvec.c: ... here.
45584         * sysdeps/unix/bsd/bsd4.4/tcdrain.c: Move to ...
45585         * sysdeps/unix/bsd/tcdrain.c: ... here.
45586         * sysdeps/unix/bsd/bsd4.4/tcgetattr.c: Move to ...
45587         * sysdeps/unix/bsd/tcgetattr.c: ... here.
45588         * sysdeps/unix/bsd/bsd4.4/tcsetattr.c: Move to ...
45589         * sysdeps/unix/bsd/tcsetattr.c: ... here.
45590         * sysdeps/unix/bsd/bsd4.4/wait.c: Move to ...
45591         * sysdeps/unix/bsd/wait.c: ... here.
45592         * sysdeps/unix/bsd/bsd4.4/wait3.c: Move to ...
45593         * sysdeps/unix/bsd/wait3.c: ... here.
45594         * sysdeps/unix/bsd/bsd4.4/waitpid.c: Move to ...
45595         * sysdeps/unix/bsd/waitpid.c: ... here.
45596
45597 2013-12-21  Joseph Myers  <joseph@codesourcery.com>
45598
45599         [BZ #16356]
45600         * sysdeps/i386/fpu/e_expl.S (IEEE754_EXPL): Also set
45601         round-to-nearest for [!USE_AS_EXPM1L].
45602         * sysdeps/x86_64/fpu/e_expl.S (IEEE754_EXPL): Likewise.
45603         * math/auto-libm-test-in: Do not expect cosh tests to fail.  Add
45604         more tests of exp and exp10.  Expect some exp10 tests to miss
45605         exceptions or fail in directed rounding modes.
45606         * math/auto-libm-test-out: Regenerated.
45607         * math/libm-test.inc (exp10_tonearest_test_data): New array.
45608         (exp10_test_tonearest): New function.
45609         (exp10_towardzero_test_data): New array.
45610         (exp10_test_towardzero): New function.
45611         (exp10_downward_test_data): New array.
45612         (exp10_test_downward): New function.
45613         (exp10_upward_test_data): New array.
45614         (exp10_test_upward): New function.
45615         (main): Call the new functions.
45616         * sysdeps/i386/fpu/libm-test-ulps: Update.
45617         * sysdeps/x86_64/fpu/libm-test-ulps: Likewise.
45618
45619 2013-12-20  Joseph Myers  <joseph@codesourcery.com>
45620
45621         * math/auto-libm-test-in: Add more tests of acos, acosh, asin,
45622         asinh, atan, atan2, atanh, cbrt, cos and cosh.
45623         * math/auto-libm-test-out: Regenerated.
45624         * math/libm-test.inc (acosh_test_data): Add more tests.
45625         (atanh_test_data): Likewise.
45626         (ceil_test_data): Likewise.
45627         (copysign_test_data): Likewise.
45628         * sysdeps/i386/fpu/libm-test-ulps: Update.
45629         * sysdeps/x86_64/fpu/libm-test-ulps: Likewise.
45630
45631         * timezone/checktab.awk: Update from tzcode 2013i.
45632         * timezone/private.h: Likewise.
45633         * timezone/scheck.c: Likewise.
45634         * timezone/tzfile.h: Likewise.
45635         * timezone/tzselect.ksh: Likewise.
45636         * timezone/zdump.c: Likewise.
45637         * timezone/zic.c: Likewise.
45638
45639         * math/auto-libm-test-in: Add tests of cpow.
45640         * math/auto-libm-test-out: Regenerated.
45641         * math/libm-test.inc (cpow_test_data): Use AUTO_TESTS_cc_c.
45642         * math/gen-auto-libm-tests.c (func_calc_method): Add value
45643         mpc_cc_c.
45644         (func_calc_desc): Add mpc_cc_c union field.
45645         (test_functions): Add cpow.
45646         (special_fill_2pi): New function.
45647         (special_real_inputs): Add 2pi.
45648         (calc_generic_results): Handle mpc_cc_c.
45649         * sysdeps/i386/fpu/libm-test-ulps: Update.
45650         * sysdeps/x86_64/fpu/libm-test-ulps: Likewise.
45651
45652         * math/auto-libm-test-in: Add tests of ccos, ccosh, cexp, clog,
45653         csqrt, ctan and ctanh.
45654         * math/auto-libm-test-out: Regenerated.
45655         * math/libm-test.inc (TEST_COND_x86_64): New macro.
45656         (TEST_COND_x86): Likewise.
45657         (ccos_test_data): Use AUTO_TESTS_c_c.
45658         (ccosh_test_data): Likewise.
45659         (cexp_test_data): Likewise.
45660         (clog_test_data): Likewise.
45661         (csqrt_test_data): Likewise.
45662         (ctan_test_data): Likewise.
45663         (ctan_tonearest_test_data): Likewise.
45664         (ctan_towardzero_test_data): Likewise.
45665         (ctan_downward_test_data): Likewise.
45666         (ctan_upward_test_data): Likewise.
45667         (ctanh_test_data): Likewise.
45668         (ctanh_tonearest_test_data): Likewise.
45669         (ctanh_towardzero_test_data): Likewise.
45670         (ctanh_downward_test_data): Likewise.
45671         (ctanh_upward_test_data): Likewise.
45672         * math/gen-auto-libm-tests.c (func_calc_method): Add value
45673         mpc_c_c.
45674         (func_calc_desc): Add mpc_c_c union field.
45675         (FUNC_mpc_c_c): New macro.
45676         (test_functions): Add cacos, cacosh, casin, casinh, catan, catanh,
45677         ccos, ccosh, cexp, clog, clog10, csin, csinh, csqrt, ctan and
45678         ctanh.
45679         (special_fill_min_subnorm_p120): New function.
45680         (special_real_inputs): Add min_subnorm_p120.
45681         (calc_generic_results): Handle mpc_c_c.
45682         * sysdeps/i386/fpu/libm-test-ulps: Update.
45683         * sysdeps/x86_64/fpu/libm-test-ulps: Likewise.
45684
45685 2013-12-20  Siddhesh Poyarekar  <siddhesh@redhat.com>
45686
45687         * sysdeps/ieee754/dbl-64/s_sin.c (do_cos, do_cos_slow, do_sin)
45688         (do_sin_slow): New functions.
45689         (__sin, __cos, slow1, slow2, sloww1, sloww2, bsloww1, bsloww2)
45690         (cslow2, csloww1, csloww2): Use the new functions.
45691
45692         * sysdeps/ieee754/dbl-64/s_sin.c (sloww1): Add new argument M.
45693         Use M to change sign of result instead of X.  Assume X is
45694         positive.
45695         (csloww1): Likewise.
45696         (__sin): Adjust.
45697         (__cos): Adjust.
45698
45699         * sysdeps/ieee754/dbl-64/s_sin.c (reduce_and_compute): Remove
45700         arguments A and DA.
45701         (__sin): Adjust.
45702         (__cos): Likewise.
45703
45704         * sysdeps/ieee754/dbl-64/s_sin.c (__sin): Use DA directly.
45705         (__cos): Likewise.
45706         (sloww1): Don't adjust sign of DX.
45707         (csloww1): Likewise.
45708         (sloww2): Use X directly and don't adjust sign of DX.
45709         (csloww2): Likewise.
45710
45711 2013-12-19  Joseph Myers  <joseph@codesourcery.com>
45712
45713         * math/auto-libm-test-in: Add tests of cabs and carg.
45714         * math/auto-libm-test-out: Regenerated.
45715         * math/libm-test.inc (cabs_test_data): Use AUTO_TESTS_c_f.
45716         (carg_test_data): Likewise.
45717         * math/gen-auto-libm-tests.c (func_calc_method): Add value
45718         mpc_c_f.
45719         (func_calc_desc): Add mpc_c_f union field.
45720         (test_functions): Add cabs and carg.
45721         (calc_generic_results): Handle mpc_c_f.
45722
45723         * sysdeps/powerpc/powerpc32/libgcc-compat.S
45724         [_SOFT_FLOAT || __NO_FPRS__] (__fixdfdi_v_glibc20): Do not define
45725         as a macro and a compat symbol.
45726         [_SOFT_FLOAT || __NO_FPRS__] (__fixsfdi_v_glibc20): Likewise.
45727         [_SOFT_FLOAT || __NO_FPRS__] (__fixunsdfdi_v_glibc20): Likewise.
45728         [_SOFT_FLOAT || __NO_FPRS__] (__fixunssfdi_v_glibc20): Likewise.
45729         [_SOFT_FLOAT || __NO_FPRS__] (__floatdidf_v_glibc20): Likewise.
45730         [_SOFT_FLOAT || __NO_FPRS__] (__floaddisf_v_glibc20): Likewise.
45731         [HAVE_DOT_HIDDEN && (_SOFT_FLOAT || __NO_FPRS__)] (__fixdfdi): Do
45732         not use .hidden.
45733         [HAVE_DOT_HIDDEN && (_SOFT_FLOAT || __NO_FPRS__)] (__fixsfdi):
45734         Likewise.
45735         [HAVE_DOT_HIDDEN && (_SOFT_FLOAT || __NO_FPRS__)] (__fixunsdfdi):
45736         Likewise.
45737         [HAVE_DOT_HIDDEN && (_SOFT_FLOAT || __NO_FPRS__)] (__fixunssfdi):
45738         Likewise.
45739         [HAVE_DOT_HIDDEN && (_SOFT_FLOAT || __NO_FPRS__)] (__floaddidf):
45740         Likewise.
45741         [HAVE_DOT_HIDDEN && (_SOFT_FLOAT || __NO_FPRS__)] (__floaddisf):
45742         Likewise.
45743         * sysdeps/powerpc/nofpu/Versions (libc): Remove __fixdfdi,
45744         __fixsfdi, __fixunsdfdi, __fixunssfdi, __floatdidf and __floatdisf
45745         from GLIBC_2.3.2.
45746
45747 2013-12-19  Adhemerval Zanella  <azanella@linux.vnet.ibm.com>
45748
45749         * sysdeps/powerpc/fpu/libm-test-ulps: Update.
45750
45751 2013-12-19  Joseph Myers  <joseph@codesourcery.com>
45752
45753         * manual/texinfo.tex: Update to version 2013-11-26.10 with
45754         trailing whitespace removed.
45755         * scripts/config.guess: Update to version 2013-11-29.
45756         * scripts/config.sub: Update to version 2013-10-01.
45757
45758         * math/auto-libm-test-in: Add tests of sincos.
45759         * math/auto-libm-test-out: Regenerated.
45760         * math/libm-test.inc (sincos_test_data): Use AUTO_TESTS_fFF_11.
45761         * math/gen-auto-libm-tests.c (func_calc_method): Add value
45762         mpfr_f_11.
45763         (func_calc_desc): Add mpfr_f_11 union field.
45764         (test_functions): Add sincos.
45765         (calc_generic_results): Handle mpfr_f_11.
45766         * sysdeps/i386/fpu/libm-test-ulps: Update.
45767         * sysdeps/x86_64/fpu/libm-test-ulps: Likewise.
45768
45769 2013-12-19  Andreas Schwab  <schwab@suse.de>
45770
45771         * sysdeps/powerpc/powerpc64/power7/memchr.S: Fix argument of
45772         CALL_MCOUNT.
45773         * sysdeps/powerpc/powerpc64/power7/memrchr.S: Likewise.
45774         * sysdeps/powerpc/powerpc64/power7/strcasecmp.S
45775         [USE_IN_EXTENDED_LOCALE_MODEL]: Likewise.
45776
45777 2013-12-19  Joseph Myers  <joseph@codesourcery.com>
45778
45779         * math/gen-libm-test.pl (%beautify): Remove M_* constants.
45780         * sysdeps/i386/fpu/libm-test-ulps: Update.
45781         * sysdeps/x86_64/fpu/libm-test-ulps: Likewise.
45782
45783         [BZ #16293]
45784         * sysdeps/i386/fpu/e_expl.S (IEEE754_EXPL) [USE_AS_EXPM1L]: Set
45785         round-to-nearest mode when using frndint.
45786         * sysdeps/i386/fpu/s_expm1.S (__expm1): Likewise.
45787         * sysdeps/i386/fpu/s_expm1f.S (__expm1f): Likewise.
45788         * sysdeps/x86_64/fpu/e_expl.S (IEEE754_EXPL) [USE_AS_EXPM1L]:
45789         Likewise.
45790         * math/auto-libm-test-in: Add more tests of expm1.  Do not expect
45791         sinh test to fail.
45792         * math/auto-libm-test-out: Regenerated.
45793         * math/libm-test.inc (TEST_COND_x86_64): Remove macro.
45794         (TEST_COND_x86): Likewise.
45795         (expm1_tonearest_test_data): New array.
45796         (expm1_test_tonearest): New function.
45797         (expm1_towardzero_test_data): New array.
45798         (expm1_test_towardzero): New function.
45799         (expm1_downward_test_data): New array.
45800         (expm1_test_downward): New function.
45801         (expm1_upward_test_data): New array.
45802         (expm1_test_upward): New function.
45803         (main): Run the new test functions.
45804         * sysdeps/i386/fpu/libm-test-ulps: Update.
45805         * sysdeps/x86_64/fpu/libm-test-ulps: Likewise.
45806
45807         * include/features.h: Update comment documenting feature test
45808         macros.  Mention _DEFAULT_SOURCE in comment.
45809         [_GNU_SOURCE] (_DEFAULT_SOURCE): Undefine and redefine.
45810         [_DEFAULT_SOURCE]: Undefine and redefine _DEFAULT_SOURCE,
45811         _BSD_SOURCE and _SVID_SOURCE.
45812         [!__STRICT_ANSI__ && !_ISOC99_SOURCE && !_POSIX_SOURCE &&
45813         !_POSIX_C_SOURCE && !_XOPEN_SOURCE && !_BSD_SOURCE &&
45814         !_SVID_SOURCE]: Likewise.
45815         [_DEFAULT_SOURCE && !_POSIX_SOURCE && !_POSIX_C_SOURCE]
45816         (__USE_POSIX_IMPLICITLY): Define.
45817         [_DEFAULT_SOURCE && !_POSIX_SOURCE && !_POSIX_C_SOURCE]
45818         (_POSIX_SOURCE): Undefine and redefine.
45819         [_DEFAULT_SOURCE && !_POSIX_SOURCE && !_POSIX_C_SOURCE]
45820         (_POSIX_C_SOURCE): Likewise.
45821         * manual/creature.texi (_DEFAULT_SOURCE): Document.
45822         (Feature Test Macros): Update documentation of default features.
45823
45824 2013-12-19  Rajalakshmi Srinivasaraghavan  <raji@linux.vnet.ibm.com>
45825
45826         * benchtests/Makefile: Add bench-strtok.
45827         * benchtests/bench-strtok.c: New file: strtok benchtest.
45828
45829 2013-12-19  Allan McRae  <allan@archlinux.org>
45830
45831         * manual/install.texi: Suppress menu for plain text output.
45832         * INSTALL: Regenerated.
45833
45834 2013-12-18  Brooks Moses  <bmoses@google.com>
45835
45836         [BZ #15846]
45837         * misc/getauxval.c: Include errno.h.
45838         (__getauxval): Set errno to ENOENT if the requested type is not
45839         found.
45840         * misc/sys/auxv.h (getauxval): Document that it may set errno;
45841         don't declare with __attribute_const__.
45842         * elf/tst-auxv.c: Add tests for errno and type-not-found case.
45843         * manual/startup.texi: Document that getauxval sets errno.
45844
45845 2013-12-18  Joseph Myers  <joseph@codesourcery.com>
45846
45847         * math/auto-libm-test-in: Add tests of jn and yn.
45848         * math/auto-libm-test-out: Regenerated.
45849         * math/libm-test.inc (jn_test_data): Use AUTO_TESTS_if_f.
45850         (yn_test_data): Likewise.
45851         * math/gen-auto-libm-tests.c (func_calc_method): Add value
45852         mpfr_if_f.
45853         (func_calc_desc): Add mpfr_if_f union field.
45854         (FUNC_mpfr_if_f): New macro.
45855         (test_functions): Add jn and yn.
45856         (calc_generic_results): Assert type of second input for
45857         mpfr_ff_f.  Handle mpfr_if_f.
45858         (output_for_one_input_case): Disable all checking for arguments
45859         fitting floating-point types in case of an integer argument.
45860         * sysdeps/i386/fpu/libm-test-ulps: Update.
45861         * sysdeps/x86_64/fpu/libm-test-ulps: Likewise.
45862
45863         * sysdeps/unix/sysv/linux/powerpc/powerpc32/nofpu/nptl/localplt.data:
45864         Don't expect fegetround reference in libm.so.
45865
45866 2013-12-17  Marcus Shawcroft  <marcus.shawcroft@linaro.org>
45867
45868         * sysdeps/ieee754/dbl-64/Makefile (CFLAGS-e_sqrt.c): Add
45869         $(config-cflags-nofma).
45870
45871 2013-12-18  Joseph Myers  <joseph@codesourcery.com>
45872
45873         * math/auto-libm-test-in: Mark some hypot tests no-test-inline.
45874         * math/auto-libm-test-out: Regenerated.
45875
45876         [BZ #16338]
45877         * sysdeps/ieee754/ldbl-128/e_logl.c (__ieee754_logl): Use __frexpl
45878         to determine exponent and adjust argument to have exponent of -1.
45879         * math/auto-libm-test-in: Add more tests of log, log10, log1p and
45880         log2.
45881         * math/auto-libm-test-out: Regenerated.
45882         * sysdeps/i386/fpu/libm-test-ulps: Update.
45883         * sysdeps/x86_64/fpu/libm-test-ulps: Likewise.
45884
45885 2013-12-18  Ondřej Bílka  <neleai@seznam.cz>
45886
45887         * manual/probes.texi: Remove cases when per-thread arenas are
45888         disabled.
45889
45890 2013-12-18  Andreas Schwab  <schwab@suse.de>
45891
45892         * sysdeps/i386/i686/multiarch/strstr.c: Remove.
45893         * sysdeps/i386/i686/multiarch/strstr-c.c: Remove.
45894         * sysdeps/i386/i686/multiarch/strcasestr.c: Remove.
45895         * sysdeps/i386/i686/multiarch/strcasestr-nonascii.c: Remove.
45896         * sysdeps/i386/i686/multiarch/Makefile: Update.
45897         * sysdeps/i386/i686/multiarch/ifunc-impl-list.c: Update.
45898
45899 2013-12-17  Joseph Myers  <joseph@codesourcery.com>
45900
45901         * sysdeps/unix/bsd/bsd4.4/bits/errno.h: Remove file.
45902         * sysdeps/unix/bsd/bsd4.4/bits/ioctls.h: Likewise.
45903
45904 2013-12-17  Paul Eggert  <eggert@cs.ucla.edu>
45905
45906         [BZ #15968]
45907         Support TZ transition times < 00:00:00.
45908         This is needed for version-3 tz-format files; it supports time
45909         stamps past 2037 for America/Godthab (the only entry in the tz
45910         database for which this change is relevant).
45911         * manual/time.texi (TZ Variable): Document transition times
45912         from -167:59:59 through -00:00:01.
45913         * time/tzset.c (tz_rule): Time of day is now signed.
45914         (__tzset_parse_tz): Parse negative time of day.
45915
45916         Document TZ transition times >= 25:00:00.
45917         * manual/time.texi (TZ Variable): Document transition times from
45918         25:00:00 through 167:59:59.  These are already supported, and this
45919         support will help with version-3 tz-format files.
45920
45921         * manual/time.texi (TZ Variable): Modernize North America example
45922         to reflect current (i.e., 2007-and-later) daylight saving rules.
45923
45924         * manual/time.texi (TZ Variable): POSIX.1 hour can be 24.
45925
45926 2013-12-17  Joseph Myers  <joseph@codesourcery.com>
45927
45928         * sysdeps/unix/bsd/bits/posix_opt.h: Remove file.
45929         * sysdeps/unix/bsd/bits/stat.h: Likewise.
45930         * sysdeps/unix/bsd/bsd4.4/freebsd/bits/environments.h: Likewise.
45931         * sysdeps/unix/bsd/bsd4.4/freebsd/bits/typesizes.h: Likewise.
45932         * sysdeps/unix/bsd/bsd4.4/freebsd/sys/sysmacros.h: Likewise.
45933         * sysdeps/unix/bsd/bsdstat.h: Likewise.
45934         * sysdeps/unix/bsd/clock.c: Likewise.
45935         * sysdeps/unix/bsd/i386/vfork.S: Likewise.
45936         * sysdeps/unix/bsd/i386/wait3.S: Likewise.
45937         * sysdeps/unix/bsd/init-posix.c: Likewise.
45938         * sysdeps/unix/bsd/poll.c: Likewise.
45939         * sysdeps/unix/bsd/ptsname.c: Likewise.
45940         * sysdeps/unix/bsd/seekdir.c: Likewise.
45941         * sysdeps/unix/bsd/setegid.c: Likewise.
45942         * sysdeps/unix/bsd/seteuid.c: Likewise.
45943         * sysdeps/unix/bsd/setgid.c: Likewise.
45944         * sysdeps/unix/bsd/setrgid.c: Likewise.
45945         * sysdeps/unix/bsd/setruid.c: Likewise.
45946         * sysdeps/unix/bsd/setsid.c: Likewise.
45947         * sysdeps/unix/bsd/setuid.c: Likewise.
45948         * sysdeps/unix/bsd/sigaction.c: Likewise.
45949         * sysdeps/unix/bsd/sigprocmask.c: Likewise.
45950         * sysdeps/unix/bsd/sigsuspend.c: Likewise.
45951         * sysdeps/unix/bsd/sys/reboot.h: Likewise.
45952         * sysdeps/unix/bsd/telldir.c: Likewise.
45953         * sysdeps/unix/bsd/times.c: Likewise.
45954         * sysdeps/unix/bsd/usleep.c: Likewise.
45955
45956         * misc/Makefile (install-lib): Remove libbsd-compat.a.
45957         ($(objpfx)libbsd-compat.a): Remove rule.
45958
45959         * include/features.h (__FAVOR_BSD): Do not define.
45960         * manual/creature.texi (_BSD_SOURCE): Do not document as enabling
45961         features conflicting with POSIX.
45962         (_GNU_SOURCE): Do not mention interaction with _BSD_SOURCE.
45963         (_BSD_SOURCE): Remove description of not being a subset of other
45964         feature test macros.
45965         * manual/job.texi (getpgrp): Do not document BSD version.
45966         (getpgid): Do not document by reference to BSD getpgrp.
45967         * posix/unistd.h [__FAVOR_BSD]: Remove conditional code.
45968         * setjmp/setjmp.h [__FAVOR_BSD]: Likewise.
45969         * signal/signal.h [__FAVOR_BSD]: Likewise.
45970         * sysdeps/gnu/netinet/tcp.h (struct tcphdr): Use anonymous unions
45971         instead of making contents conditional on [__FAVOR_BSD].
45972         * sysdeps/gnu/netinet/udp.h (struct udphdr): Likewise.
45973
45974 2013-12-17  Adhemerval Zanella  <azanella@linux.vnet.ibm.com>
45975
45976         * sysdeps/powerpc/fpu/libm-test-ulps: Update.
45977
45978 2013-12-17  Joseph Myers  <joseph@codesourcery.com>
45979
45980         [BZ #16314]
45981         * sysdeps/ieee754/dbl-64/e_hypot.c (__ieee754_hypot): Adjust up
45982         values below 2**-450, not 2**-500.
45983         * math/auto-libm-test-in: Don't allow spurious underflow from
45984         hypot.
45985         * math/auto-libm-test-out: Regenerated.
45986
45987         [BZ #16316]
45988         [BZ #16330]
45989         * sysdeps/ieee754/dbl-64/e_hypot.c (__ieee754_hypot): Update
45990         values of ha and hb and sort them after adjusting subnormal
45991         arguments.
45992         * sysdeps/ieee754/ldbl-128/e_hypotl.c (__ieee754_hypotl):
45993         Likewise.
45994         * sysdeps/ieee754/ldbl-96/e_hypotl.c (__ieee754_hypotl): Update
45995         values of ea and eb and sort them after adjusting subnormal
45996         arguments.
45997         * math/auto-libm-test-in: Do not expect some hypot tests of
45998         subnormals to fail.  Add more hypot tests.
45999         * math/auto-libm-test-out: Regenerated.
46000
46001 2013-12-16  Kaz Kojima  <kkojima@rr.iij4u.or.jp>
46002
46003         [BZ #13304]
46004         * sysdeps/sh/s_fma.c: New file.
46005         * sysdeps/sh/s_fmaf.c: New file.
46006         * sysdeps/sh/soft-fp/sfp-machine.h: New file.  Based on arm
46007         version.
46008         * sysdeps/sh/Implies: Add sh/soft-fp.
46009
46010 2013-12-16  Roland McGrath  <roland@hack.frob.com>
46011
46012         * elf/dl-error.c (struct catch): Add new member `errcode'.  Add a
46013         level of indirection to members `objname', `errstring', `malloced'.
46014         (_dl_signal_error): Store through pointers in *LCATCH rather modifying
46015         *LCATCH itself.  Set *LCATCH->errcode to ERRCODE rather than passing
46016         it as the __longjmp argument (just pass 1 instead).
46017         (_dl_catch_error): Initialize C with argument pointers and address of
46018         volatile local ERRCODE rather than copying values out of C at return.
46019
46020 2013-12-16  Joseph Myers  <joseph@codesourcery.com>
46021
46022         * math/auto-libm-test-in: Add tests of atan2, hypot and pow.
46023         * math/auto-libm-test-out: Regenerated.
46024         * math/libm-test.inc (atan2_test_data): Use AUTO_TESTS_ff_f.
46025         (hypot_test_data): Likewise.
46026         (pow_test_data): Likewise.
46027         (pow_tonearest_test_data): Likewise.
46028         * math/gen-auto-libm-tests.c (func_calc_method): Add value
46029         mpfr_ff_f.
46030         (func_calc_desc): Add mpfr_ff_f union field.
46031         (FUNC_mpfr_ff_f): New macro.
46032         (test_functions): Add atan2, hypot and pow.
46033         (special_fill_min): New function.
46034         (special_fill_minus_min): Likewise.
46035         (special_fill_min_subnorm): Likewise.
46036         (special_fill_minus_min_subnorm): Likewise.
46037         (special_real_inputs): Add min, -min, min_subnorm and
46038         -min_subnorm.
46039         (calc_generic_results): Handle mpfr_ff_f.
46040         * sysdeps/i386/fpu/libm-test-ulps: Update.
46041         * sysdeps/x86_64/fpu/libm-test-ulps: Likewise.
46042
46043 2013-12-16  Will Newton  <will.newton@linaro.org>
46044
46045         * manual/memory.texi (Malloc Examples): Mention aligned_alloc.
46046         (Aligned Memory Blocks): Add documentation for aligned_alloc
46047         and suggest it as an alternative to posix_memalign.
46048         (Hooks for Malloc): Document __memalign_hook is also called
46049         for aligned_alloc.  (Summary of Malloc): Add summary for
46050         aligned alloc.  Document __memalign_hook is also called
46051         for aligned_alloc.
46052
46053 2013-12-16  Will Newton  <will.newton@linaro.org>
46054
46055         * manual/memory.texi (Malloc Examples): Clarify default
46056         alignment documentation.  Suggest posix_memalign rather
46057         than memalign or valloc.
46058         (Aligned Memory Blocks): Remove suggestion to use memalign
46059         or valloc.  Remove obsolete comment about BSD.
46060         Document memalign errno values and mark the function obsolete.
46061         Document posix_memalign returned error codes.  Mark valloc
46062         as obsolete.  (Hooks for Malloc): __memalign_hook is also
46063         called for posix_memalign and valloc.
46064         (Summary of Malloc): Add posix_memalign to function summary.
46065         __memalign_hook is also called for posix_memalign and valloc.
46066
46067 2013-12-16  Siddhesh Poyarekar  <siddhesh@redhat.com>
46068
46069         * sysdeps/ieee754/dbl-64/s_sin.c (TAYLOR_SINCOS): Rename to
46070         TAYLOR_SIN.
46071         (__sin): Adjust.
46072         (__cos): Likewise.
46073         (sloww): Use mynumber union.  Expand ternary operator into
46074         if-else statements.
46075         (cslow): use mynumber union.
46076
46077 2013-12-16  Allan McRae  <allan@archlinux.org>
46078
46079         * configure.ac: Set AUTOCONF when maintainer-mode is not used.
46080         * configure: Regenerated.
46081
46082         * sysdeps/x86_64/multiarch/ifunc-impl-list.c: Update file name.
46083
46084         [BZ #14120]
46085         * configure.ac: Added --enable-maintainer-mode. Check for
46086         autoconf when enabled.
46087         * configure: Regenerated.
46088
46089         * nscd/nscd.service: New file.
46090         * nscd/nscd.tmpfiles: New file.
46091
46092 2013-12-14  Ondřej Bílka  <neleai@seznam.cz>
46093
46094         [BZ #12100]
46095         * sysdeps/x86_64/multiarch/strstr-sse2-unaligned.S: New file
46096         * sysdeps/x86_64/multiarch/strstr-c.c: Moved to ...
46097         * sysdeps/x86_64/multiarch/strstr.c: ... here.
46098         (strstr): Add __strstr_sse2_unaligned ifunc.
46099         * sysdeps/x86_64/multiarch/strcasestr-c.c: Moved to ...
46100         * sysdeps/x86_64/multiarch/strcasestr.c ... here.
46101         (strcasestr): Remove __strcasestr_sse42 ifunc.
46102         * sysdeps/x86_64/multiarch/strcasestr-nonascii.c: Remove.
46103         * sysdeps/x86_64/multiarch/ifunc-impl-list.c: Update.
46104         * sysdeps/x86_64/multiarch/Makefile (sysdep_routines): Update.
46105
46106 2013-12-14  Kaz Kojima  <kkojima@rr.iij4u.or.jp>
46107
46108         * sysdeps/sh/sh4/fpu/bits/fenv.h: Move to ...
46109         * sysdeps/sh/bits/fenv.h: ... here.
46110         * sysdeps/sh/sh4/fpu/bits: Remove directory.
46111
46112 2013-12-13  Adhemerval Zanella  <azanella@linux.vnet.ibm.com>
46113
46114         * NEWS: Mention ppc64 STT_GNU_IFUNC support.
46115
46116         * sysdeps/powerpc/powerpc64/fpu/multiarch/Makefile: Add hypot and
46117         hypotf multiarch implementations.
46118         * sysdeps/powerpc/powerpc64/fpu/multiarch/e_hypot-power7.c: New file.
46119         * sysdeps/powerpc/powerpc64/fpu/multiarch/e_hypot-ppc64.c: New file.
46120         * sysdeps/powerpc/powerpc64/fpu/multiarch/e_hypot.c: New file:
46121         multiarch hypot for PPC64.
46122         * sysdeps/powerpc/powerpc64/fpu/multiarch/e_hypotf-power7.c: New file.
46123         * sysdeps/powerpc/powerpc64/fpu/multiarch/e_hypotf-ppc64.c: New file.
46124         * sysdeps/powerpc/powerpc64/fpu/multiarch/e_hypotf.c : New file:
46125         multiarch hypotf for PPC64.
46126
46127         * sysdeps/powerpc/powerpc64/fpu/multiarch/Makefile: Add modf and
46128         modff multiarch implementations.
46129         * sysdeps/powerpc/powerpc64/fpu/multiarch/s_modf-power5+.c: New file.
46130         * sysdeps/powerpc/powerpc64/fpu/multiarch/s_modf-ppc64.c: New file.
46131         * sysdeps/powerpc/powerpc64/fpu/multiarch/s_modf.c: New file:
46132         multiarch modf for PPC64.
46133         * sysdeps/powerpc/powerpc64/fpu/multiarch/s_modff-power5+.c: New file.
46134         * sysdeps/powerpc/powerpc64/fpu/multiarch/s_modff-ppc64.c: New file.
46135         * sysdeps/powerpc/powerpc64/fpu/multiarch/s_modff.c : New file:
46136         multiarch modff for PPC64.
46137
46138         * sysdeps/powerpc/powerpc64/fpu/multiarch/Makefile: Add logb, logbf,
46139         and logl multiarch implementations.
46140         * sysdeps/powerpc/powerpc64/fpu/multiarch/s_logb-power7.c: New file.
46141         * sysdeps/powerpc/powerpc64/fpu/multiarch/s_logb-ppc64.c: New file.
46142         * sysdeps/powerpc/powerpc64/fpu/multiarch/s_logb.c: New file:
46143         multiarch logb for PPC64.
46144         * sysdeps/powerpc/powerpc64/fpu/multiarch/s_logbf-power7.c: New file.
46145         * sysdeps/powerpc/powerpc64/fpu/multiarch/s_logbf-ppc64.c: New file.
46146         * sysdeps/powerpc/powerpc64/fpu/multiarch/s_logbf.c: New file:
46147         multiarch logb for PPC64.
46148         * sysdeps/powerpc/powerpc64/fpu/multiarch/s_logbl-power7.c: New file.
46149         * sysdeps/powerpc/powerpc64/fpu/multiarch/s_logbl-ppc64.c: New file.
46150         * sysdeps/powerpc/powerpc64/fpu/multiarch/s_logbl.c: New file:
46151         multiarch logb for PPC64.
46152
46153         * sysdeps/powerpc/powerpc64/fpu/multiarch/Makefile: Add isinf and
46154         isinff multiarch implementation.
46155         * sysdeps/powerpc/powerpc64/fpu/multiarch/s_isinf-power7.S: New
46156         file.
46157         * sysdeps/powerpc/powerpc64/fpu/multiarch/s_isinf-ppc64.S: New file.
46158         * sysdeps/powerpc/powerpc64/fpu/multiarch/s_isinf.c: New file:
46159         multiarch isinf for PPC64.
46160         * sysdeps/powerpc/powerpc64/fpu/multiarch/s_isinff-ppc64.c: New
46161         file.
46162         * sysdeps/powerpc/powerpc64/fpu/multiarch/s_isinff.c: New file:
46163         multiarch isinff for PPC64.
46164
46165         * sysdeps/powerpc/powerpc64/fpu/multiarch/Makefile: Add finite and
46166         finitef multiarch implementation.
46167         * sysdeps/powerpc/powerpc64/fpu/multiarch/s_finite-power7.S: New
46168         file.
46169         * sysdeps/powerpc/powerpc64/fpu/multiarch/s_finite-ppc64.S: New file.
46170         * sysdeps/powerpc/powerpc64/fpu/multiarch/s_finite.c: New file:
46171         multiarch finite for PPC64.
46172         * sysdeps/powerpc/powerpc64/fpu/multiarch/s_finitef-ppc64.c: New
46173         file.
46174         * sysdeps/powerpc/powerpc64/fpu/multiarch/s_finitef.c: New file:
46175         multiarch finitef for PPC64.
46176
46177         * sysdeps/powerpc/powerpc64/fpu/multiarch/Makefile: Add llrint and
46178         lrint multiarch implementation.
46179         * sysdeps/powerpc/powerpc64/fpu/multiarch/s_llrint-power6x.S: New
46180         file.
46181         * sysdeps/powerpc/powerpc64/fpu/multiarch/s_llrint-ppc64.S: New file.
46182         * sysdeps/powerpc/powerpc64/fpu/multiarch/s_llrint.c: New file:
46183         multiarch llrint for PPC64.
46184         * sysdeps/powerpc/powerpc64/fpu/multiarch/s_lrint.c: New file:
46185         multiarch lrint for PPC64.
46186
46187         * sysdeps/powerpc/powerpc64/fpu/multiarch/Makefile: Add copysign/
46188         copysignf multiarch implementation.
46189         * sysdeps/powerpc/powerpc64/fpu/multiarch/s_copysign-power6.S: New
46190         file.
46191         * sysdeps/powerpc/powerpc64/fpu/multiarch/s_copysign-ppc64.S: New
46192         file.
46193         * sysdeps/powerpc/powerpc64/fpu/multiarch/s_copysign.c: New file:
46194         multiarch copysign for PPC64.
46195         * sysdeps/powerpc/powerpc64/fpu/multiarch/s_copysignf.c: New file:
46196         multiarch copysignf for PPC64.
46197
46198         * sysdeps/powerpc/powerpc64/fpu/multiarch/Makefile: Add trunc/truncf
46199         multiarch implementation.
46200         * sysdeps/powerpc/powerpc64/fpu/multiarch/s_trunc-power5+.S: New
46201         file.
46202         * sysdeps/powerpc/powerpc64/fpu/multiarch/s_trunc-ppc64.S: New
46203         file.
46204         * sysdeps/powerpc/powerpc64/fpu/multiarch/s_truncf-power5+.S: New
46205         file.
46206         * sysdeps/powerpc/powerpc64/fpu/multiarch/s_truncf-ppc64.S: New
46207         file.
46208         multiarch llround for PPC64.
46209         * sysdeps/powerpc/powerpc64/fpu/multiarch/s_trunc.c: New file:
46210         multiarch trunc for PPC64.
46211         * sysdeps/powerpc/powerpc64/fpu/multiarch/s_truncf.c: New file:
46212         multiarch truncf for PPC64.
46213
46214         * sysdeps/powerpc/powerpc64/fpu/multiarch/Makefile: Add round/roundf
46215         multiarch implementation.
46216         * sysdeps/powerpc/powerpc64/fpu/multiarch/s_round-power5+.S: New
46217         file.
46218         * sysdeps/powerpc/powerpc64/fpu/multiarch/s_round-ppc64.S: New
46219         file.
46220         * sysdeps/powerpc/powerpc64/fpu/multiarch/s_roundf-power5+.S: New
46221         file.
46222         * sysdeps/powerpc/powerpc64/fpu/multiarch/s_roundf-ppc64.S: New
46223         file.
46224         multiarch llround for PPC64.
46225         * sysdeps/powerpc/powerpc64/fpu/multiarch/s_round.c: New file:
46226         multiarch round for PPC64.
46227         * sysdeps/powerpc/powerpc64/fpu/multiarch/s_roundf.c: New file:
46228         multiarch roundf for PPC64.
46229
46230         * sysdeps/powerpc/powerpc64/fpu/multiarch/Makefile: Add floor/floorf
46231         multiarch implementation.
46232         * sysdeps/powerpc/powerpc64/fpu/multiarch/s_floor-power5+.S: New
46233         file.
46234         * sysdeps/powerpc/powerpc64/fpu/multiarch/s_floor-ppc64.S: New
46235         file.
46236         * sysdeps/powerpc/powerpc64/fpu/multiarch/s_floorf-power5+.S: New
46237         file.
46238         * sysdeps/powerpc/powerpc64/fpu/multiarch/s_floorf-ppc64.S: New
46239         file.
46240         multiarch llround for PPC64.
46241         * sysdeps/powerpc/powerpc64/fpu/multiarch/s_floor.c: New file:
46242         multiarch floor for PPC64.
46243         * sysdeps/powerpc/powerpc64/fpu/multiarch/s_floorf.c: New file:
46244         multiarch floorf for PPC64.
46245
46246         * sysdeps/powerpc/powerpc64/fpu/multiarch/Makefile: Add ceil/ceilf
46247         multiarch implementation.
46248         * sysdeps/powerpc/powerpc64/fpu/multiarch/s_ceil-power5+.S: New
46249         file.
46250         * sysdeps/powerpc/powerpc64/fpu/multiarch/s_ceil-ppc64.S: New
46251         file.
46252         * sysdeps/powerpc/powerpc64/fpu/multiarch/s_ceilf-power5+.S: New
46253         file.
46254         * sysdeps/powerpc/powerpc64/fpu/multiarch/s_ceilf-ppc64.S: New
46255         file.
46256         multiarch llround for PPC64.
46257         * sysdeps/powerpc/powerpc64/fpu/multiarch/s_ceil.c: New file:
46258         multiarch ceil for PPC64.
46259         * sysdeps/powerpc/powerpc64/fpu/multiarch/s_ceilf.c: New file:
46260         multiarch ceilf for PPC64.
46261
46262         * sysdeps/powerpc/powerpc64/fpu/multiarch/Makefile: Add llround
46263         multiarch implementation.
46264         * sysdeps/powerpc/powerpc64/fpu/multiarch/s_llround-power5+.S: New
46265         file.
46266         * sysdeps/powerpc/powerpc64/fpu/multiarch/s_llround-power6x.S: New
46267         file.
46268         * sysdeps/powerpc/powerpc64/fpu/multiarch/s_llround-ppc64.S: New
46269         file.
46270         * sysdeps/powerpc/powerpc64/fpu/multiarch/s_llround.c: New file:
46271         multiarch llround for PPC64.
46272         * sysdeps/powerpc/powerpc64/fpu/multiarch/s_lround.c: New file:
46273         multiarch lround for PPC64.
46274
46275         * sysdeps/powerpc/powerpc64/fpu/multiarch/Makefile: Add isnan
46276         multiarch implementation.
46277         * sysdeps/powerpc/powerpc64/fpu/multiarch/s_isnan-power5.S: New file.
46278         * sysdeps/powerpc/powerpc64/fpu/multiarch/s_isnan-power6.S: New file.
46279         * sysdeps/powerpc/powerpc64/fpu/multiarch/s_isnan-power6x.S: New
46280         file.
46281         * sysdeps/powerpc/powerpc64/fpu/multiarch/s_isnan-power7.S: New file.
46282         * sysdeps/powerpc/powerpc64/fpu/multiarch/s_isnan-ppc64.S: New file.
46283         * sysdeps/powerpc/powerpc64/fpu/multiarch/s_isnan.c: New file:
46284         multiarch isnan for PPC64.
46285         * sysdeps/powerpc/powerpc64/fpu/multiarch/s_isnanf.c: New file:
46286         multiarch isnanf for PPC64.
46287
46288         * sysdeps/powerpc/powerpc64/power5+/fpu/multiarch/Implies: New file.
46289         * sysdeps/powerpc/powerpc64/power5/fpu/multiarch/Implies: New file.
46290         * sysdeps/powerpc/powerpc64/power6/fpu/multiarch/Implies: New file.
46291         * sysdeps/powerpc/powerpc64/power6x/fpu/multiarch/Implies: New file.
46292         * sysdeps/powerpc/powerpc64/power7/fpu/multiarch/Implies: New file
46293         * sysdeps/unix/sysv/linux/powerpc/powerpc64/fpu/Implies: Remove.
46294
46295         * sysdeps/powerpc/fpu/w_sqrt.c: Remove file
46296         * sysdeps/powerpc/fpu/w_sqrtf.c: Likewise.
46297         * sysdeps/powerpc/powerpc64/power4/fpu/w_sqrt.c: Likewise.
46298         * sysdeps/powerpc/powerpc64/power4/fpu/w_sqrtf.c: Likewise.
46299
46300         * sysdeps/powerpc/powerpc64/multiarch/Makefile: Add stpcpy
46301         multiarch implementations.
46302         * sysdeps/powerpc/powerpc64/multiarch/ifunc-impl-list.c
46303         (__libc_ifunc_impl_list): Likewise.
46304         * sysdeps/powerpc/powerpc64/multiarch/stpcpy-power7.c: New file.
46305         * sysdeps/powerpc/powerpc64/multiarch/stpcpy-ppc64.c: New file.
46306         * sysdeps/powerpc/powerpc64/multiarch/stpcpy.c : New file:
46307         multiarch stpcpy for PPC64.
46308
46309         * sysdeps/powerpc/powerpc64/multiarch/Makefile: Add strcpy
46310         multiarch implementations.
46311         * sysdeps/powerpc/powerpc64/multiarch/ifunc-impl-list.c
46312         (__libc_ifunc_impl_list): Likewise.
46313         * sysdeps/powerpc/powerpc64/multiarch/strcpy-power7.c: New file.
46314         * sysdeps/powerpc/powerpc64/multiarch/strcpy-ppc64.c: New file.
46315         * sysdeps/powerpc/powerpc64/multiarch/strcpy.c : New file:
46316         multiarch strcpy for PPC64.
46317
46318         * string/wordcopy.c (_wordcopy_fwd_aligned): Add define to
46319         redefine function name.
46320         (_wordcopy_fwd_dest_aligned): Likewise.
46321         (_wordcopy_bwd_aligned): Likewise.
46322         (_wordcopy_bwd_dest_aligned): Likewise.
46323         * sysdeps/powerpc/powerpc64/multiarch/Makefile: Add wordcopy
46324         multiarch implementations.
46325         * sysdeps/powerpc/powerpc64/multiarch/ifunc-impl-list.c
46326         (__libc_ifunc_impl_list): Likewise.
46327         * sysdeps/powerpc/powerpc64/multiarch/wordcopy-power6.c: New file.
46328         * sysdeps/powerpc/powerpc64/multiarch/wordcopy-power7.c: New file.
46329         * sysdeps/powerpc/powerpc64/multiarch/wordcopy-ppc64.c: New file.
46330         * sysdeps/powerpc/powerpc64/multiarch/wordcopy.c : New file:
46331         multiarch wcscpy for PPC64.
46332
46333         * sysdeps/powerpc/powerpc64/multiarch/Makefile: Add wcscpy
46334         multiarch implementations.
46335         * sysdeps/powerpc/powerpc64/multiarch/ifunc-impl-list.c
46336         (__libc_ifunc_impl_list): Likewise.
46337         * sysdeps/powerpc/powerpc64/multiarch/wcscpy-power6.c: New file.
46338         * sysdeps/powerpc/powerpc64/multiarch/wcscpy-power7.c: New file.
46339         * sysdeps/powerpc/powerpc64/multiarch/wcscpy-ppc64.c: New file.
46340         * sysdeps/powerpc/powerpc64/multiarch/wcscpy.c : New file:
46341         multiarch wcscpy for PPC64.
46342
46343         * sysdeps/powerpc/powerpc64/multiarch/Makefile: Add wcsrchr
46344         multiarch implementations.
46345         * sysdeps/powerpc/powerpc64/multiarch/ifunc-impl-list.c
46346         (__libc_ifunc_impl_list): Likewise.
46347         * sysdeps/powerpc/powerpc64/multiarch/wcsrchr-power6.c: New file.
46348         * sysdeps/powerpc/powerpc64/multiarch/wcsrchr-power7.c: New file.
46349         * sysdeps/powerpc/powerpc64/multiarch/wcsrchr-ppc64.c: New file.
46350         * sysdeps/powerpc/powerpc64/multiarch/wcsrchr.c : New file:
46351         multiarch wcsrchr for PPC64.
46352
46353         * sysdeps/powerpc/powerpc64/multiarch/Makefile: Add wcschr
46354         multiarch implementations.
46355         * sysdeps/powerpc/powerpc64/multiarch/ifunc-impl-list.c
46356         (__libc_ifunc_impl_list): Likewise.
46357         * sysdeps/powerpc/powerpc64/multiarch/wcschr-power6.c: New file.
46358         * sysdeps/powerpc/powerpc64/multiarch/wcschr-power7.c: New file.
46359         * sysdeps/powerpc/powerpc64/multiarch/wcschr-ppc64.c: New file.
46360         * sysdeps/powerpc/powerpc64/multiarch/wcschr.c : New file:
46361         multiarch wcschr for PPC64.
46362
46363         * sysdeps/powerpc/powerpc64/multiarch/Makefile: Add strchrnul
46364         multiarch implementations.
46365         * sysdeps/powerpc/powerpc64/multiarch/ifunc-impl-list.c
46366         (__libc_ifunc_impl_list): Likewise.
46367         * sysdeps/powerpc/powerpc64/multiarch/strchrnul-power7.S: New file.
46368         * sysdeps/powerpc/powerpc64/multiarch/strchrnul-ppc64.c: New file.
46369         * sysdeps/powerpc/powerpc64/multiarch/strchrnul.c: New file:
46370         multiarch strchrnul for PPC64.
46371
46372         * sysdeps/powerpc/powerpc64/multiarch/Makefile: Add strchr multiarch
46373         implementations.
46374         * sysdeps/powerpc/powerpc64/multiarch/ifunc-impl-list.c
46375         (__libc_ifunc_impl_list): Likewise.
46376         * sysdeps/powerpc/powerpc64/multiarch/rtld-strchr.S: New file.
46377         * sysdeps/powerpc/powerpc64/multiarch/strchr-power7.S: New file.
46378         * sysdeps/powerpc/powerpc64/multiarch/strchr-ppc64.S: New file.
46379         * sysdeps/powerpc/powerpc64/multiarch/strchr.c: New file: multiarch
46380         strchr for PPC64.
46381
46382         * sysdeps/powerpc/powerpc64/multiarch/Makefile: Add strncmp multiarch
46383         implementations.
46384         * sysdeps/powerpc/powerpc64/multiarch/ifunc-impl-list.c
46385         (__libc_ifunc_impl_list): Likewise.
46386         * sysdeps/powerpc/powerpc64/multiarch/strncmp-power4.S: New file.
46387         * sysdeps/powerpc/powerpc64/multiarch/strncmp-power7.S: New file.
46388         * sysdeps/powerpc/powerpc64/multiarch/strncmp-ppc64.S: New file.
46389         * sysdeps/powerpc/powerpc64/multiarch/strncmp.c: New file: multiarch
46390         strncmp for PPC64.
46391
46392         * sysdeps/powerpc/powerpc64/multiarch/Makefile: Add strncasecmp
46393         multiarch implementations.
46394         * sysdeps/powerpc/powerpc64/multiarch/ifunc-impl-list.c
46395         (__libc_ifunc_impl_list): Likewise.
46396         * sysdeps/powerpc/powerpc64/multiarch/strncase-power7.c: New file.
46397         * sysdeps/powerpc/powerpc64/multiarch/strncase.c: New file: multiarch
46398         strncasecmp for PPC64.
46399         * sysdeps/powerpc/powerpc64/multiarch/strncase_l-power7.c: New file.
46400         * sysdeps/powerpc/powerpc64/multiarch/strncase_l.c: New file:
46401         multiarch strncasecmp_l for PPC64.
46402
46403         * sysdeps/powerpc/powerpc64/multiarch/Makefile: Add strcasecmp
46404         multiarch implementations.
46405         * sysdeps/powerpc/powerpc64/multiarch/ifunc-impl-list.c:
46406         (__libc_ifunc_impl_list): Likewise.
46407         * sysdeps/powerpc/powerpc64/multiarch/strcasecmp-power7.S: New file.
46408         * sysdeps/powerpc/powerpc64/multiarch/strcasecmp.c: New file:
46409         multiarch strcasecmp for PPC64.
46410         * sysdeps/powerpc/powerpc64/multiarch/strcasecmp_l-power7.S: New
46411         file.
46412         * sysdeps/powerpc/powerpc64/multiarch/strcasecmp_l.c: new file:
46413         multiarch strcasecmp_l for PPC64.
46414
46415         * sysdeps/powerpc/powerpc64/multiarch/Makefile: Add strnlen multiarch
46416         implementations.
46417         * sysdeps/powerpc/powerpc64/multiarch/ifunc-impl-list.c
46418         (__libc_ifunc_impl_list): Likewise.
46419         * sysdeps/powerpc/powerpc64/multiarch/strnlen-power7.S: New file.
46420         * sysdeps/powerpc/powerpc64/multiarch/strnlen-ppc64.c: New file.
46421         * sysdeps/powerpc/powerpc64/multiarch/strnlen.c: New file: multiarch
46422         strnlen for PPC64.
46423
46424         * sysdeps/powerpc/powerpc64/multiarch/Makefile: Add strlen multiarch
46425         implementations.
46426         * sysdeps/powerpc/powerpc64/multiarch/ifunc-impl-list.c
46427         (__libc_ifunc_impl_list): Likewise.
46428         * sysdeps/powerpc/powerpc64/multiarch/strlen-power7.S: New file.
46429         * sysdeps/powerpc/powerpc64/multiarch/strlen-ppc64.S: New file.
46430         * sysdeps/powerpc/powerpc64/multiarch/strlen.c: New file: multiarch
46431         strlen for PPC64.
46432
46433         * sysdeps/powerpc/powerpc64/multiarch/Makefile: Add rawmemch multiarch
46434         implementations.
46435         * sysdeps/powerpc/powerpc64/multiarch/ifunc-impl-list.c
46436         (__libc_ifunc_impl_list): Likewise.
46437         * sysdeps/powerpc/powerpc64/multiarch/rawmemchr-power7.S: New file.
46438         * sysdeps/powerpc/powerpc64/multiarch/rawmemchr-ppc64.c: New file.
46439         * sysdeps/powerpc/powerpc64/multiarch/rawmemchr.c: New file: multiarch
46440         rawmemrchr for PPC64.
46441
46442         * sysdeps/powerpc/powerpc64/multiarch/Makefile: Add memrchr multiarch
46443         implementation.
46444         * sysdeps/powerpc/powerpc64/multiarch/ifunc-impl-list.c
46445         (__libc_ifunc_impl_list): Likewise.
46446         * sysdeps/powerpc/powerpc64/multiarch/memrchr-power7.S: New file.
46447         * sysdeps/powerpc/powerpc64/multiarch/memrchr-ppc64.c: New file.
46448         * sysdeps/powerpc/powerpc64/multiarch/memrchr.c: New file: multiarch
46449         memrchr for PPC64.
46450
46451         * sysdeps/powerpc/powerpc64/multiarch/Makefile: Add memchr multiarch
46452         implementation.
46453         * sysdeps/powerpc/powerpc64/multiarch/ifunc-impl-list.c
46454         (__libc_ifunc_impl_list): Likewise.
46455         * sysdeps/powerpc/powerpc64/multiarch/memchr-power7.S: New file.
46456         * sysdeps/powerpc/powerpc64/multiarch/memchr-ppc64.c: New file.
46457         * sysdeps/powerpc/powerpc64/multiarch/memchr.c: New file: multiarch
46458         memchr for PPC64.
46459
46460         * sysdeps/powerpc/powerpc64/multiarch/Makefile: Add mempcpy multiarch
46461         implementation.
46462         * sysdeps/powerpc/powerpc64/multiarch/ifunc-impl-list.c
46463         (__libc_ifunc_impl_list): Likewise.
46464         * sysdeps/powerpc/powerpc64/multiarch/mempcpy-power7.S: New file.
46465         * sysdeps/powerpc/powerpc64/multiarch/mempcpy-ppc64.c: New file.
46466         * sysdeps/powerpc/powerpc64/multiarch/mempcpy.c: New file: multiarch
46467         mempcpy for PPC64.
46468
46469         * sysdeps/powerpc/powerpc64/memset.S (NO_BZERO_IMPL): Add macro to
46470         avoid cretion of __bzero symbol.
46471         * sysdeps/powerpc/powerpc64/power4/memset.S (NO_BZERO_IMPL):
46472         Likewise.
46473         * sysdeps/powerpc/powerpc64/power6/memset.S (NO_BZERO_IMPL):
46474         Likewise.
46475         * sysdeps/powerpc/powerpc64/power7/memset.S (NO_BZERO_IMPL):
46476         Likewise.
46477         * sysdeps/powerpc/powerpc64/multiarch/Makefile: Add memset/bzero
46478         multiarch implementations.
46479         * sysdeps/powerpc/powerpc64/multiarch/ifunc-impl-list.c
46480         (__libc_ifunc_impl_list): Likewise.
46481         * sysdeps/powerpc/powerpc64/multiarch/bzero-power4.S: New file.
46482         * sysdeps/powerpc/powerpc64/multiarch/bzero-power6.S: New file.
46483         * sysdeps/powerpc/powerpc64/multiarch/bzero-power7.S: New file.
46484         * sysdeps/powerpc/powerpc64/multiarch/bzero.c: New file: multiarch
46485         bzero for PPC32.
46486         * sysdeps/powerpc/powerpc64/multiarch/memset-power4.S: New file.
46487         * sysdeps/powerpc/powerpc64/multiarch/memset-power6.S: New file.
46488         * sysdeps/powerpc/powerpc64/multiarch/memset-power7.S: New file.
46489         * sysdeps/powerpc/powerpc64/multiarch/memset-ppc64.S: New file.
46490         * sysdeps/powerpc/powerpc64/multiarch/memset.c: New file: multiarch
46491         memset for PPC64.
46492         * sysdeps/powerpc/powerpc64/multiarch/rtld-memset.c: New file.
46493
46494         * string/memcmp.c (memcmp): Using macro to redefine symbol name.
46495         * sysdeps/powerpc/powerpc64/multiarch/Makefile: Add memcpy multiarch
46496         implementations.
46497         * sysdeps/powerpc/powerpc64/multiarch/ifunc-impl-list.c
46498         (__libc_ifunc_impl_list): Likewise.
46499         * sysdeps/powerpc/powerpc64/multiarch/memcmp-power4.S: New file.
46500         * sysdeps/powerpc/powerpc64/multiarch/memcmp-power7.S: New file.
46501         * sysdeps/powerpc/powerpc64/multiarch/memcmp-ppc64.c: New file.
46502         * sysdeps/powerpc/powerpc64/multiarch/memcmp.c: New file: multiarch
46503         memcmp for PPC64.
46504
46505         * sysdeps/powerpc/powerpc64/multiarch/Makefile: New file to support
46506         multiarch for POWER/PPC64.
46507         * sysdeps/powerpc/powerpc64/multiarch/ifunc-impl-list.c: Likewise.
46508         * sysdeps/powerpc/powerpc64/multiarch/init-arch.h: Likewise.
46509         * sysdeps/powerpc/powerpc64/multiarch/memcpy-a2.S: New file.
46510         * sysdeps/powerpc/powerpc64/multiarch/memcpy-cell.S: New file.
46511         * sysdeps/powerpc/powerpc64/multiarch/memcpy-power4.S: New file.
46512         * sysdeps/powerpc/powerpc64/multiarch/memcpy-power6.S: New file.
46513         * sysdeps/powerpc/powerpc64/multiarch/memcpy-power7.S: New file.
46514         * sysdeps/powerpc/powerpc64/multiarch/memcpy-ppc64.S: New file.
46515         * sysdeps/powerpc/powerpc64/multiarch/memcpy.c: New file: multiarch
46516         memcpy for PPC64.
46517
46518         * sysdeps/powerpc/powerpc64/power4/fpu/Implies: New file.
46519         * sysdeps/powerpc/powerpc64/power4/fpu/multiarch/Implies: New File.
46520         * sysdeps/powerpc/powerpc64/power4/multiarch/Implies: New File.
46521         * sysdeps/powerpc/powerpc64/power5+/fpu/Implies: New File.
46522         * sysdeps/powerpc/powerpc64/power5+/multiarch/Implies: New File.
46523         * sysdeps/powerpc/powerpc64/power5/Implies: New File.
46524         * sysdeps/powerpc/powerpc64/power5/fpu/Implies: New File.
46525         * sysdeps/powerpc/powerpc64/power5/multiarch/Implies: New File.
46526         * sysdeps/powerpc/powerpc64/power6/fpu/Implies: New File.
46527         * sysdeps/powerpc/powerpc64/power6/multiarch/Implies: New File.
46528         * sysdeps/powerpc/powerpc64/power7/fpu/Implies: New File.
46529         * sysdeps/powerpc/powerpc64/power7/multiarch/Implies: New File.
46530         * sysdeps/powerpc/powerpc64/power8/fpu/Implies: New File.
46531         * sysdeps/powerpc/powerpc64/power8/fpu/multiarch/Implies: New File.
46532         * sysdeps/powerpc/powerpc64/power8/multiarch/Implies: New File.
46533         * sysdeps/unix/sysv/linux/powerpc/powerpc64/power4/Implies: Remove.
46534         * sysdeps/unix/sysv/linux/powerpc/powerpc64/power5+/Implies: Remove.
46535         * sysdeps/unix/sysv/linux/powerpc/powerpc64/power5/Implies: Remove.
46536         * sysdeps/unix/sysv/linux/powerpc/powerpc64/power6/Implies: Remove.
46537         * sysdeps/unix/sysv/linux/powerpc/powerpc64/power6x/Implies: Remove.
46538         * sysdeps/unix/sysv/linux/powerpc/powerpc64/power7/Implies: Remove.
46539         * sysdeps/unix/sysv/linux/powerpc/powerpc64/power8/Implies: Remove.
46540
46541 2013-12-12  Kaz Kojima  <kkojima@rr.iij4u.or.jp>
46542
46543         * sysdeps/unix/Makefile ($(objpfx)stub-syscalls.c): Use $$ver.
46544
46545 2013-12-12  Siddhesh Poyarekar  <siddhesh@redhat.com>
46546
46547         * benchtests/Makefile (bench): Add exp2 and log2.
46548         (LDLIBS-bench-exp2): Add -lm.
46549         (LDLIBS-bench-log2): Likewise.
46550         * benchtests/exp2-inputs: New inputs file.
46551         * benchtests/log2-inputs: New inputs file.
46552         * benchtests/log-inputs: Add new inputs.
46553         * benchtests/tan-inputs: Likewise.
46554
46555 2013-12-11  Siddhesh Poyarekar  <siddhesh@redhat.com>
46556
46557         * sysdeps/ieee754/dbl-64/s_sin.c (t22): Consolidate const
46558         definition...
46559         (slow1, slow2, sloww1, sloww2, bsloww1, bsloww2, cslow2, csloww1)
46560         (csloww2): ... from here.
46561
46562         * sysdeps/ieee754/dbl-64/usncs.h: Define constants as double
46563         instead of structures.
46564         * sysdeps/ieee754/dbl-64/s_sin.c (POLYNOMIAL2): Adjust.
46565         (POLYNOMIAL): Likewise.
46566         (TAYLOR_SLOW): Likewise.
46567         (__sin): Likewise.
46568         (__cos): Likewise.
46569         (slow1): Likewise.
46570         (slow2): Likewise.
46571         (sloww): Likewise.
46572         (sloww1); Likewise.
46573         (sloww2): Likewise.
46574         (bsloww1): Likewise.
46575         (bsloww2): Likewise.
46576         (cslow2): Likewise.
46577         (csloww): Likewise.
46578         (csloww1): Likewise.
46579         (csloww2): Likewise.
46580
46581 2013-12-10  Ondřej Bílka  <neleai@seznam.cz>
46582
46583         * malloc/malloc.c (MALLOC_COPY, MALLOC_ZERO): Delete.
46584         (__malloc_assert, __libc_realloc, __libc_calloc, _int_realloc):
46585         Expand MALLOC_COPY and MALLOC_ZERO to memcpy and memset.
46586         * malloc/hooks.c (realloc_check): Likewise.
46587
46588         * malloc/Makefile (CPPFLAGS-malloc.c): Remove -DPER_THREAD flag.
46589         * malloc/arena.c: Remove PER_THREAD conditional.
46590         [!PER_THREAD]: Remove code.
46591         (ptmalloc_unlock_all2): Likewise.
46592         (ptmalloc_init): Likewise.
46593         (_int_new_arena): Likewise.
46594         (arena_get2): Likewise.
46595         * malloc/hooks.c (__malloc_get_state): Likewise.
46596         (__malloc_set_state): Likewise.
46597         * malloc/malloc.c: Likewise.
46598         (struct malloc_state): Likewise.
46599         (struct malloc_par): Likewise.
46600         (__libc_realloc): Likewise.
46601         (__libc_mallopt): Likewise.
46602
46603 2013-12-09  Adhemerval Zanella  <azanella@linux.vnet.ibm.com>
46604
46605         * Versions.def (libm): Add GLIBC_2.3 and GLIBC_2.19.
46606
46607 2013-12-09  Ondřej Bílka  <neleai@seznam.cz>
46608
46609         * malloc/malloc.c (alloc_perturb, free_perturb): Convert from
46610         macro to a function.  Check for zero perturb_byte.
46611         (_int_malloc, _int_free): Remove zero perturb_byte checks.
46612
46613         * malloc/malloc.c: (force_reg): Remove.
46614         (__malloc_assert, __libc_malloc, __libc_free, __libc_realloc)
46615         (_mid_memalign, __libc_calloc, sysmalloc, systrim): Replace
46616         force_reg by atomic_forced_read.
46617         * malloc/arena.c (ptmalloc_init): Likewise.
46618         * malloc/hooks.c (top_check): Likewise.
46619
46620 2013-12-09  Adhemerval Zanella  <azanella@linux.vnet.ibm.com>
46621
46622         * sysdeps/powerpc/fpu/libm-test-ulps: Update.
46623
46624 2013-12-09  Markus Trippelsdorf  <markus@trippelsdorf.de>
46625
46626         * sysdeps/x86_64/fpu/libm-test-ulps: Update.
46627
46628 2013-12-08  Joseph Myers  <joseph@codesourcery.com>
46629
46630         * math/auto-libm-test-in: Add tests of lgamma.
46631         * math/auto-libm-test-out: Regenerated.
46632         * math/libm-test.inc (M_LOG_SQRT_PIl): Remove macro.
46633         (M_LOG_2_SQRT_PIl): Likewise.
46634         (lgamma_test_data): Use AUTO_TESTS_f_f1.
46635         * math/gen-auto-libm-tests.c (func_calc_method): Add value
46636         mpfr_f_f1.
46637         (func_calc_desc): Add mpfr_f_f1 union field.
46638         (ARGS1): New macro.
46639         (ARGS2): Likewise.
46640         (ARGS3): Likewise.
46641         (ARGS4): Likewise.
46642         (RET1): Likewise.
46643         (RET2): Likewise.
46644         (CALC): Likewise.
46645         (FUNC): Likewise.
46646         (FUNC_mpfr_f_f): Use new macros FUNC, ARGS1, RET1 and CALC.
46647         (test_functions): Add lgamma.
46648         (calc_generic_results): Handle mpfr_f_f1.
46649         * sysdeps/i386/fpu/libm-test-ulps: Update.
46650         * sysdeps/x86_64/fpu/libm-test-ulps: Likewise.
46651
46652 2013-12-06  Adhemerval Zanella  <azanella@linux.vnet.ibm.com>
46653
46654         * sysdeps/powerpc/powerpc64/power7/add_n.S: New file: optimized
46655         __mpn_add_n for PowerPC64/POWER7.
46656         * sysdeps/powerpc/powerpc64/power7/sub_n.S: New file: optimized
46657         __mpn_sub_n for PowerPC64/POWER7.
46658
46659         * sysdeps/powerpc/powerpc64/addmul_1.S: New file: optimized
46660         __mpn_addmul_1 for PowerPC64.
46661         * sysdeps/powerpc/powerpc64/submul_1.S: New file: optimized
46662         __mpn_submul_1 for PowerPC64.
46663         * sysdeps/powerpc/powerpc64/lshift.S: New file: optimized __mpn_lshift
46664         for PowerPC64.
46665         * sysdeps/powerpc/powerpc64/mul_1.S: New file: optimized __mpn_mul_1
46666         for PowerPC64.
46667
46668 2013-12-06  Fernando J. V. da Silva  <fernandojvdasilva@gmail.com>
46669
46670         [BZ #15089]
46671         * malloc/malloc.c: Exit systrim() if pad is bigger than heap top size.
46672
46673 2013-12-06  Adhemerval Zanella  <azanella@linux.vnet.ibm.com>
46674
46675         * NEWS: Mention ppc32/power4+ STT_GNU_IFUNC support.
46676
46677         * sysdeps/powerpc/powerpc32/power5+/fpu/multiarch/Implies: New file:
46678         add multiarch folders.
46679         * sysdeps/powerpc/powerpc32/power5+/multiarch/Implies: Likewise.
46680         * sysdeps/powerpc/powerpc32/power5/fpu/multiarch/Implies: Likewise.
46681         * sysdeps/powerpc/powerpc32/power5/multiarch/Implies: Likewise.
46682         * sysdeps/powerpc/powerpc32/power6/fpu/multiarch/Implies: Likewise.
46683         * sysdeps/powerpc/powerpc32/power6/multiarch/Implies: Likewise.
46684         * sysdeps/powerpc/powerpc32/power6x/fpu/multiarch/Implies: Likewise.
46685         * sysdeps/powerpc/powerpc32/power6x/multiarch/Implies: Likewise.
46686         * sysdeps/powerpc/powerpc32/power7/fpu/multiarch/Implies: Likewise.
46687         * sysdeps/powerpc/powerpc32/power7/multiarch/Implies: Likewise.
46688         * sysdeps/powerpc/powerpc32/power8/fpu/multiarch/Implies: Likewise.
46689         * sysdeps/powerpc/powerpc32/power8/multiarch/Implies: Likewise.
46690         * sysdeps/unix/sysv/linux/powerpc/powerpc32/power5+/Implies: Remove.
46691         * sysdeps/unix/sysv/linux/powerpc/powerpc32/power5/Implies: Remove.
46692         * sysdeps/unix/sysv/linux/powerpc/powerpc32/power6/Implies: Remove.
46693         * sysdeps/unix/sysv/linux/powerpc/powerpc32/power6x/Implies: Remove.
46694         * sysdeps/unix/sysv/linux/powerpc/powerpc32/power7/Implies: Remove.
46695         * sysdeps/unix/sysv/linux/powerpc/powerpc32/power8/Implies: Remove.
46696
46697         * sysdeps/powerpc/powerpc32/power4/fpu/multiarch/Makefile: Add
46698         __ieee754_hypot and __ieee754_hypotf multiarch implementations.
46699         * sysdeps/powerpc/powerpc32/power4/fpu/multiarch/e_hypot-power7.c:
46700         New file.
46701         * sysdeps/powerpc/powerpc32/power4/fpu/multiarch/e_hypot-ppc32.c:
46702         New file.
46703         * sysdeps/powerpc/powerpc32/power4/fpu/multiarch/e_hypot.c: New file:
46704         multiarch __ieee754_hypot for PowerPC32.
46705         * sysdeps/powerpc/powerpc32/power4/fpu/multiarch/e_hypotf-power7.c:
46706         New file.
46707         * sysdeps/powerpc/powerpc32/power4/fpu/multiarch/e_hypotf-ppc32.c:
46708         New file.
46709         * sysdeps/powerpc/powerpc32/power4/fpu/multiarch/e_hypotf.c: New file:
46710         multiarch __ieee754_hypotf for PowerPC32.
46711
46712         * sysdeps/ieee754/ldbl-128ibm/s_logbl.c (__logbl): Define
46713         long_double_symbol only if __logbl is defined.
46714         * sysdeps/powerpc/powerpc32/power7/fpu/s_logb.c: Moved to ...
46715         * sysdeps/powerpc/power7/fpu/s_logb.c: ... here.
46716         * sysdeps/powerpc/powerpc32/power7/fpu/s_logbf.c: Move to ...
46717         * sysdeps/powerpc/power7/fpu/s_logbf.c: ... here.
46718         * sysdeps/powerpc/powerpc32/power7/fpu/s_logbl.c: Move to ...
46719         * sysdeps/powerpc/power7/fpu/s_logbl.c: ... here.
46720         * sysdeps/powerpc/powerpc64/power7/fpu/s_logb.c: Adjust to use new
46721         path for implementation.
46722         * sysdeps/powerpc/powerpc64/power7/fpu/s_logbf.c: Likewise.
46723         * sysdeps/powerpc/powerpc64/power7/fpu/s_logbl.c: Likewise.
46724         * sysdeps/powerpc/powerpc32/power4/fpu/multiarch/Makefile: Add logbf,
46725         logb, and logbl multiarch implementations for PowerPC32.
46726         * sysdeps/powerpc/powerpc32/power4/fpu/multiarch/s_logb-power7.c: New
46727         file.
46728         * sysdeps/powerpc/powerpc32/power4/fpu/multiarch/s_logb-ppc32.c: New
46729         file.
46730         * sysdeps/powerpc/powerpc32/power4/fpu/multiarch/s_logb.c: New file:
46731         multiarch logb for PowerPC32.
46732         * sysdeps/powerpc/powerpc32/power4/fpu/multiarch/s_logbf-power7.c: New
46733         file.
46734         * sysdeps/powerpc/powerpc32/power4/fpu/multiarch/s_logbf-ppc32.c: New
46735         file.
46736         * sysdeps/powerpc/powerpc32/power4/fpu/multiarch/s_logbf.c: New file:
46737         multiarch logbf for PowerPC32.
46738         * sysdeps/powerpc/power4/fpu/multiarch/s_logbl-power7.c: New file.
46739         * sysdeps/powerpc/powerpc32/power4/fpu/multiarch/s_logbl-ppc32.c: New
46740         file.
46741         * sysdeps/powerpc/powerpc32/power4/fpu/multiarch/s_logbl.c: New file:
46742         multiarch logbl implementation for PowerPC32.
46743
46744         * sysdeps/powerpc/powerpc32/power4/fpu/multiarch/Makefile: Add modf
46745         and modff multiarch implementations.
46746         * sysdeps/powerpc/powerpc32/power4/fpu/multiarch/s_modf-power5+.c:
46747         New file.
46748         * sysdeps/powerpc/powerpc32/power4/fpu/multiarch/s_modf-ppc32.c:
46749         New file.
46750         * sysdeps/powerpc/powerpc32/power4/fpu/multiarch/s_modf.c: New file:
46751         multiarch modf for PowerPC32.
46752         * sysdeps/powerpc/powerpc32/power4/fpu/multiarch/s_modff-power5+.c:
46753         New file.
46754         * sysdeps/powerpc/powerpc32/power4/fpu/multiarch/s_modff-ppc32.c:
46755         New file.
46756         * sysdeps/powerpc/powerpc32/power4/fpu/multiarch/s_modff.c: New file:
46757         multiarch modff for PowerPC32.
46758
46759         * sysdeps/powerpc/powerpc32/power4/fpu/multiarch/Makefile: Add lrint
46760         and lrintf multiarch implementations.
46761         * sysdeps/powerpc/powerpc32/power4/fpu/multiarch/s_lrint-power6x.S:
46762         New file.
46763         * sysdeps/powerpc/powerpc32/power4/fpu/multiarch/s_lrint-ppc32.S:
46764         New file.
46765         * sysdeps/powerpc/powerpc32/power4/fpu/multiarch/s_lrint.c: New file:
46766         multiarch lrint for PowerPC32.
46767         * sysdeps/powerpc/powerpc32/power4/fpu/multiarch/s_lrintf.c: New
46768         file: multiarch lrintf for PowerPC32.
46769
46770         * sysdeps/powerpc/powerpc32/power4/fpu/multiarch/Makefile: Add lround
46771         and lroundf multiarch implementations.
46772         * sysdeps/powerpc/powerpc32/power4/fpu/multiarch/s_lround-power5+.S:
46773         New file.
46774         * sysdeps/powerpc/powerpc32/power4/fpu/multiarch/s_lround-power6.S:
46775         New file.
46776         * sysdeps/powerpc/powerpc32/power4/fpu/multiarch/s_lround-ppc32.S:
46777         New file.
46778         * sysdeps/powerpc/powerpc32/power4/fpu/multiarch/s_lround.c: New file:
46779         multiarch lround for PowerPC32.
46780         * sysdeps/powerpc/powerpc32/power4/fpu/multiarch/s_lroundf.c: New
46781         file: multiarch lroundf for PowerPC32.
46782
46783         * sysdeps/powerpc/powerpc32/power4/fpu/multiarch/Makefile: Add
46784         copysign and copysignf multiarch implementations.
46785         * sysdeps/powerpc/powerpc32/power4/fpu/multiarch/s_copysign-power6.S:
46786         New file.
46787         * sysdeps/powerpc/powerpc32/power4/fpu/multiarch/s_copysign-ppc32.S:
46788         New file.
46789         * sysdeps/powerpc/powerpc32/power4/fpu/multiarch/s_copysign.c: New
46790         file: multiarch copysign for PowerPC32.
46791         * sysdeps/powerpc/powerpc32/power4/fpu/multiarch/s_copysignf.c: New
46792         file: multiarch copysignf for PowerPC32.
46793
46794         * sysdeps/powerpc/powerpc32/power4/fpu/multiarch/Makefile: Add trunc
46795         and truncf multiarch implementations.
46796         * sysdeps/powerpc/powerpc32/power4/fpu/multiarch/s_trunc-power5+.S:
46797         New file.
46798         * sysdeps/powerpc/powerpc32/power4/fpu/multiarch/s_trunc-ppc32.S: New
46799         file.
46800         * sysdeps/powerpc/powerpc32/power4/fpu/multiarch/s_trunc.c: New file:
46801         multiarch trunc for PowerPC32.
46802         * sysdeps/powerpc/powerpc32/power4/fpu/multiarch/s_truncf-power5+.S:
46803         New file.
46804         * sysdeps/powerpc/powerpc32/power4/fpu/multiarch/s_truncf-ppc32.S:
46805         New file.
46806         * sysdeps/powerpc/powerpc32/power4/fpu/multiarch/s_truncf.c: New file:
46807         multiarch truncf for PowerPC32.
46808
46809         * sysdeps/powerpc/powerpc32/power4/fpu/multiarch/Makefile: Add round
46810         and roundf multiarch implementations.
46811         * sysdeps/powerpc/powerpc32/power4/fpu/multiarch/s_round-power5+.S:
46812         New file.
46813         * sysdeps/powerpc/powerpc32/power4/fpu/multiarch/s_round-ppc32.S: New
46814         file.
46815         * sysdeps/powerpc/powerpc32/power4/fpu/multiarch/s_round.c: New file:
46816         multiarch round for PowerPC32.
46817         * sysdeps/powerpc/powerpc32/power4/fpu/multiarch/s_roundf-power5+.S:
46818         New file.
46819         * sysdeps/powerpc/powerpc32/power4/fpu/multiarch/s_roundf-ppc32.S:
46820         New file.
46821         * sysdeps/powerpc/powerpc32/power4/fpu/multiarch/s_roundf.c: New file:
46822         multiarch roundf for PowerPC32.
46823
46824         * sysdeps/powerpc/powerpc32/power4/fpu/multiarch/Makefile: Add floor
46825         and floorf multiarch implementations.
46826         * sysdeps/powerpc/powerpc32/power4/fpu/multiarch/s_floor-power5+.S:
46827         New file.
46828         * sysdeps/powerpc/powerpc32/power4/fpu/multiarch/s_floor-ppc32.S: New
46829         file.
46830         * sysdeps/powerpc/powerpc32/power4/fpu/multiarch/s_floor.c: New file:
46831         multiarch floor for PowerPC32.
46832         * sysdeps/powerpc/powerpc32/power4/fpu/multiarch/s_floorf-power5+.S:
46833         New file.
46834         * sysdeps/powerpc/powerpc32/power4/fpu/multiarch/s_floorf-ppc32.S:
46835         New file.
46836         * sysdeps/powerpc/powerpc32/power4/fpu/multiarch/s_floorf.c: New file:
46837         multiarch floorf for PowerPC32.
46838
46839         * sysdeps/powerpc/powerpc32/power4/fpu/multiarch/Makefile: Add ceil
46840         and ceilf multiarch implementations.
46841         * sysdeps/powerpc/powerpc32/power4/fpu/multiarch/s_ceil-power5+.S:
46842         New file.
46843         * sysdeps/powerpc/powerpc32/power4/fpu/multiarch/s_ceil-ppc32.S: New
46844         file.
46845         * sysdeps/powerpc/powerpc32/power4/fpu/multiarch/s_ceil.c: New file:
46846         multiarch ceil for PowerPC32.
46847         * sysdeps/powerpc/powerpc32/power4/fpu/multiarch/s_ceilf-power5+.S:
46848         New file.
46849         * sysdeps/powerpc/powerpc32/power4/fpu/multiarch/s_ceilf-ppc32.S: New
46850         file.
46851         * sysdeps/powerpc/powerpc32/power4/fpu/multiarch/s_ceilf.c: New file:
46852         multiarch ceilf for PowerPC32.
46853
46854         * sysdeps/ieee754/dbl-64/s_finite.c (__finite): Redefine it if FINITE
46855         is defined.
46856         * sysdeps/ieee754/flt-32/s_finitef.c (__finitef): Redefine it if
46857         FINITEF is defined.
46858         * sysdeps/powerpc/powerpc32/power4/fpu/multiarch/Makefile: Add finite
46859         and finitef multiarch implementations.
46860         * sysdeps/powerpc/powerpc32/power4/fpu/multiarch/s_finite-power7.S:
46861         New file.
46862         * sysdeps/powerpc/powerpc32/power4/fpu/multiarch/s_finite-ppc32.c: New
46863         file.
46864         * sysdeps/powerpc/powerpc32/power4/fpu/multiarch/s_finite.c: New file:
46865         multiarch finite for PowerPC32.
46866         * sysdeps/powerpc/powerpc32/power4/fpu/multiarch/s_finitef-ppc32.c:
46867         New file.
46868         * sysdeps/powerpc/powerpc32/power4/fpu/multiarch/s_finitef.c: New
46869         file: multiarch finitef for PowerPC32.
46870
46871         * sysdeps/powerpc/powerpc32/power4/fpu/multiarch/Makefile: Add isinf
46872         and isinff multiarch implementations.
46873         * sysdeps/powerpc/powerpc32/power4/fpu/multiarch/s_isinf-power7.S: New
46874         file.
46875         * sysdeps/powerpc/powerpc32/power4/fpu/multiarch/s_isinf-ppc32.c: New
46876         file.
46877         * sysdeps/powerpc/powerpc32/power4/fpu/multiarch/s_isinf.c: New file:
46878         multiarch isinf for PowerPC32.
46879         * sysdeps/powerpc/powerpc32/power4/fpu/multiarch/s_isinff-ppc32.c:
46880         New file.
46881         * sysdeps/powerpc/powerpc32/power4/fpu/multiarch/s_isinff.c: New file:
46882         multiarch isinff for PowerPC32.
46883
46884         * sysdeps/powerpc/powerpc32/fpu/s_isnan.S (__isnan): Only implement
46885         alias when __isnan is defined.
46886         * sysdeps/powerpc/powerpc32/power4/fpu/multiarch/Makefile: Add isnan
46887         and isnanf multiarch implementations.
46888         * sysdeps/powerpc/powerpc32/power4/fpu/multiarch/s_isnan-power5.S: New
46889         file.
46890         * sysdeps/powerpc/powerpc32/power4/fpu/multiarch/s_isnan-power6.S: New
46891         file.
46892         * sysdeps/powerpc/powerpc32/power4/fpu/multiarch/s_isnan-power7.S: New
46893         file.
46894         * sysdeps/powerpc/powerpc32/power4/fpu/multiarch/s_isnan-ppc32.S: New
46895         file.
46896         * sysdeps/powerpc/powerpc32/power4/fpu/multiarch/s_isnan.c: New file:
46897         multiarch isnan for PowerPC32.
46898         * sysdeps/powerpc/powerpc32/power4/fpu/multiarch/s_isnanf-power6.S:
46899         New file.
46900         * sysdeps/powerpc/powerpc32/power4/fpu/multiarch/s_isnanf-power7.S:
46901         New file.
46902         * sysdeps/powerpc/powerpc32/power4/fpu/multiarch/s_isnanf.c: New file:
46903         multiarch isnanf for PowerPC32.
46904
46905         * sysdeps/powerpc/powerpc32/power4/fpu/multiarch/Makefile: Add sqrt
46906         and sqrtf multiarch implementations.
46907         * sysdeps/powerpc/powerpc32/power4/fpu/multiarch/w_sqrt-power5.S: New
46908         file.
46909         * sysdeps/powerpc/powerpc32/power4/fpu/multiarch/w_sqrt-ppc32.S: New
46910         file.
46911         * sysdeps/powerpc/powerpc32/power4/fpu/multiarch/w_sqrt.c: New file:
46912         multiarch sqrt for PowerPC32.
46913         * sysdeps/powerpc/powerpc32/power4/fpu/multiarch/w_sqrtf-power5.S: New
46914         file.
46915         * sysdeps/powerpc/powerpc32/power4/fpu/multiarch/w_sqrtf-ppc32.S: New
46916         file.
46917         * sysdeps/powerpc/powerpc32/power4/fpu/multiarch/w_sqrtf.c: New file:
46918         multiarch sqrtf for PowerPC32.
46919
46920         * sysdeps/powerpc/powerpc32/power4/fpu/multiarch/Makefile: Add llround
46921         and llroundf multiarch implementations.
46922         * sysdeps/powerpc/powerpc32/power4/fpu/multiarch/s_llround-power5+.S:
46923         New file.
46924         * sysdeps/powerpc/powerpc32/power4/fpu/multiarch/s_llround-power6.S:
46925         New file.
46926         * sysdeps/powerpc/powerpc32/power4/fpu/multiarch/s_llround-ppc32.S:
46927         New file.
46928         * sysdeps/powerpc/powerpc32/power4/fpu/multiarch/s_llround.c: New
46929         file: multiarch llround for PowerPC32.
46930         * sysdeps/powerpc/powerpc32/power4/fpu/multiarch/s_llroundf.c: New
46931         file: multiarch llroundf for PowerPC32.
46932
46933         * sysdeps/powerpc/powerpc32/power4/fpu/multiarch/Makefile: New file:
46934         multiarch PowerPC32 fpu implementations.
46935         * sysdeps/powerpc/powerpc32/power4/fpu/multiarch/s_llrint-power6.S:
46936         New file.
46937         * sysdeps/powerpc/powerpc32/power4/fpu/multiarch/s_llrint-ppc32.S:
46938         New file.
46939         * sysdeps/powerpc/powerpc32/power4/fpu/multiarch/s_llrint.c: New file:
46940         multiarch llrint for PowerPC32.
46941         * sysdeps/powerpc/powerpc32/power4/fpu/multiarch/s_llrintf-power6.S:
46942         New file.
46943         * sysdeps/powerpc/powerpc32/power4/fpu/multiarch/s_llrintf-ppc32.S:
46944         New file.
46945         * sysdeps/powerpc/powerpc32/power4/fpu/multiarch/s_llrintf.c: New
46946         file.
46947
46948         * sysdeps/unix/sysv/linux/powerpc/powerpc32/fpu/Implies: Remove.
46949
46950         * sysdeps/powerpc/powerpc32/power4/multiarch/wordcopy-power6.c: New
46951         file.
46952         * sysdeps/powerpc/powerpc32/power4/multiarch/wordcopy-power7.c: New
46953         file.
46954         * sysdeps/powerpc/powerpc32/power4/multiarch/wordcopy-ppc32.c: New
46955         file.
46956         * sysdeps/powerpc/powerpc32/power4/multiarch/wordcopy.c: New file:
46957         multiarch wordcopy for PPC32.
46958         * sysdeps/powerpc/powerpc32/power4/multiarch/Makefile: Added wcscpy
46959         wordcopy objects.
46960         * sysdeps/powerpc/powerpc32/power4/multiarch/ifunc-impl-list
46961         (__libc_ifunc_impl_list): Likewise.
46962         * sysdeps/powerpc/powerpc32/power4/wordcopy.c: Move ...
46963         * sysdeps/powerpc/power4/wordcopy.c: ... to here.
46964         * sysdeps/powerpc/powerpc32/power6/wordcopy.c: Move ...
46965         * sysdeps/powerpc/power6/wordcopy.c: ... to here.
46966         * sysdeps/powerpc/powerpc64/power6/wordcopy.c: Remove uneeded file.
46967         * sysdeps/powerpc/powerpc64/power4/wordcopy.c: Likewise.
46968
46969         * wcsmbs/wcscpy.c (wcscpy): Using macro to redefine symbol name
46970         * sysdeps/powerpc/powerpc32/power4/multiarch/wcscpy-power6.c: New
46971         file.
46972         * sysdeps/powerpc/powerpc32/power4/multiarch/wcscpy-power7.c: New
46973         file.
46974         * sysdeps/powerpc/powerpc32/power4/multiarch/wcscpy-ppc32.c: New
46975         file.
46976         * sysdeps/powerpc/powerpc32/power4/multiarch/wcscpy.c: New file:
46977         multiarch wcscpy for PPC32.
46978         * sysdeps/powerpc/powerpc32/power4/multiarch/Makefile: Added wcscpy
46979         multiarch objects.
46980         * sysdeps/powerpc/powerpc32/power4/multiarch/ifunc-impl-list
46981         (__libc_ifunc_impl_list): Likewise.
46982         * sysdeps/powerpc/powerpc32/power6/wcsrchr.c: Move ...
46983         * sysdeps/powerpc/power6/wcsrchr.c: ... to here.
46984         * sysdeps/powerpc/powerpc64/power6/wcscpy.c: Adjust to use
46985         sysdeps/powerpc/power6/wcscpy.c.
46986
46987         * wcsmbs/wcsrchr.c (wcsrchr): Using macro to redefine symbol name
46988         * sysdeps/powerpc/powerpc32/power4/multiarch/wcsrchr-power6.c: New
46989         file.
46990         * sysdeps/powerpc/powerpc32/power4/multiarch/wcsrchr-power7.c: New
46991         file.
46992         * sysdeps/powerpc/powerpc32/power4/multiarch/wcsrchr-ppc32.c: New
46993         file.
46994         * sysdeps/powerpc/powerpc32/power4/multiarch/wcsrchr.c: New file:
46995         multiarch wcsrchr for PPC32.
46996         * sysdeps/powerpc/powerpc32/power4/multiarch/Makefile: Added wcschr
46997         multiarch objects.
46998         * sysdeps/powerpc/powerpc32/power4/multiarch/ifunc-impl-list
46999         (__libc_ifunc_impl_list): Likewise.
47000         * sysdeps/powerpc/powerpc32/power6/wcsrchr.c: Move ...
47001         * sysdeps/powerpc/power6/wcsrchr.c: ... to here.
47002         * sysdeps/powerpc/powerpc64/power6/wcsrchr.c: Adjust to use
47003         sysdeps/powerpc/power6/wcsrchr.c.
47004
47005         * sysdeps/powerpc/powerpc32/power4/multiarch/wcschr-power6.c: New
47006         file.
47007         * sysdeps/powerpc/powerpc32/power4/multiarch/wcschr-power7.c: New
47008         file.
47009         * sysdeps/powerpc/powerpc32/power4/multiarch/wcschr-ppc32.c: New file.
47010         * sysdeps/powerpc/powerpc32/power4/multiarch/wcschr.c: New file:
47011         multiarch wcschr for PPc32.
47012         * sysdeps/powerpc/powerpc32/power4/multiarch/Makefile: Added wcschr
47013         multiarch objects.
47014         * sysdeps/powerpc/powerpc32/power4/multiarch/ifunc-impl-list
47015         (__libc_ifunc_impl_list): Likewise.
47016         * sysdeps/powerpc/powerpc32/power6/wcschr.c: Move ...
47017         * sysdeps/powerpc/power6/wcschr.c: ... to here.
47018         * sysdeps/powerpc/powerpc64/power6/wcschr.c: Adjust to use
47019         sysdeps/powerpc/power6/wcschr.c.
47020
47021         * sysdeps/powerpc/powerpc32/power4/multiarch/rtld-strchr.S: New file.
47022         * sysdeps/powerpc/powerpc32/power4/multiarch/strchr-power7.S: New
47023         file.
47024         * sysdeps/powerpc/powerpc32/power4/multiarch/strchr-ppc32.S: New file.
47025         * sysdeps/powerpc/powerpc/powerpc32/power4/multiarch/strchr.c: New
47026         file: multiarch strchr for PPC32.
47027         * sysdeps/powerpc/powerpc32/power4/multiarch/Makefile: Added strchr
47028         multiarch objects.
47029         * sysdeps/powerpc/powerpc32/power4/multiarch/ifunc-impl-list
47030         (__libc_ifunc_impl_list): Likewise.
47031
47032         * string/strchrnul.c (__strchrnul): Using macro to redefine symbol
47033         name.
47034         * sysdeps/powerpc/powerpc32/power4//multiarch/strchrnul-power7.S: New
47035         file.
47036         * sysdeps/powerpc/powerpc32/power4/multiarch/strchrnul-ppc32.c: New
47037         file.
47038         * sysdeps/powerpc/powerpc32/power4/multiarch/strchrnul.c: New file:
47039         multiarch strchrnul for PPC32.
47040         * sysdeps/powerpc/powerpc32/power4/multiarch/Makefile: Added strchrnul
47041         multiarch objects.
47042         * sysdeps/powerpc/powerpc32/power4/multiarch/ifunc-impl-list
47043         (__libc_ifunc_impl_list): Likewise.
47044
47045         * sysdeps/powerpc/powerpc32/power4/multiarch/strncase-power7.c: New
47046         file.
47047         * sysdeps/powerpc/powerpc32/power4/multiarch/strncase.c: New file:
47048         multiarch strncasecmp for PPC32.
47049         * sysdeps/powerpc/powerpc32/power4/multiarch/strncase_l-power7.c: New
47050         file.
47051         * sysdeps/powerpc/powerpc32/power4/multiarch/strncase_l.c: New file:
47052         multiarch strncasecmp_l for PPC32.
47053         * sysdeps/powerpc/powerpc32/power4/multiarch/Makefile: Added
47054         strncasecmp multiarch objects.
47055         * sysdeps/powerpc/powerpc32/power4/multiarch/ifunc-impl-list
47056         (__libc_ifunc_impl_list): Likewise.
47057
47058         * sysdeps/powerpc/powerpc32/power4/multiarch/strcasecmp-power7.S: New
47059         file.
47060         * sysdeps/powerpc/powerpc32/power4/multiarch/strcasecmp.c: New file:
47061         multiarch strncasecmp for PPC32.
47062         * sysdeps/powerpc/powerpc32/power4/multiarch/strcasecmp_l-power7.S:
47063         New file.
47064         * sysdeps/powerpc/powerpc32/power4/multiarch/strcasecmp_l.c: New file:
47065         multiarch strcasecmp_l for PPC32.
47066         * sysdeps/powerpc/powerpc32/power4/multiarch/Makefile: Added strcasecmp
47067         multiarch objects.
47068         * sysdeps/powerpc/powerpc32/power4/multiarch/ifunc-impl-list
47069         (__libc_ifunc_impl_list): Likewise.
47070
47071         * sysdeps/powerpc/powerpc32/power4/multiarch/strncmp-power7.S: New
47072         file.
47073         * sysdeps/powerpc/powerpc32/power4/multiarch/strncmp-ppc32.S: New
47074         file.
47075         * sysdeps/powerpc/powerpc32/power4/multiarch/strncmp.c: New file:
47076         multiarch strncmp for PPC32.
47077         * sysdeps/powerpc/powerpc32/power4/multiarch/Makefile: Added strncmp
47078         multiarch objects.
47079         * sysdeps/powerpc/powerpc32/power4/multiarch/ifunc-impl-list
47080         (__libc_ifunc_impl_list): Likewise.
47081
47082         * sysdeps/powerpc/powerpc32/power4/multiarch/rtld-strnlen.c: New file.
47083         * sysdeps/powerpc/powerpc32//power4/multiarch/strnlen-power7.S: New
47084         file.
47085         * sysdeps/powerpc/powerpc32/power4/multiarch/strnlen-ppc32.c: New file.
47086         * sysdeps/powerpc/powerpc32/power4/multiarch/strnlen.c: New file.
47087         * sysdeps/powerpc/powerpc32/power4/multiarch/Makefile: Added strnlen
47088         multiarch objects.
47089         * sysdeps/powerpc/powerpc32/power4/multiarch/ifunc-impl-list
47090         (__libc_ifunc_impl_list): Likewise.
47091
47092         * sysdeps/powerpc/powerpc32/power4/multiarch/strlen-power7.S: New
47093         file.
47094         * sysdeps/powerpc/powerpc32/power4/multiarch/strlen-ppc32.S: New
47095         file.
47096         * sysdeps/powerpc/powerpc32/power4/multiarch/strlen.c: New file.
47097         * sysdeps/powerpc/powerpc32/power4/multiarch/Makefile: Added strlen
47098         multiarch objects.
47099         * sysdeps/powerpc/powerpc32/power4/multiarch/ifunc-impl-list
47100         (__libc_ifunc_impl_list): Likewise.
47101
47102         * sysdeps/powerpc/powerpc32/power4/multiarch/rawmemchr-power7.S: New
47103         file.
47104         * sysdeps/powerpc/powerpc32/power4/multiarch/rawmemchr-ppc32.c: New
47105         file.
47106         * sysdeps/powerpc/powerpc32/power4/multiarch/rawmemchr.c: New file:
47107         multiarch rawmemchr for PPC32.
47108         * sysdeps/powerpc/powerpc32/power4/multiarch/Makefile: Added rawmemchr
47109         multiarch objects.
47110         * sysdeps/powerpc/powerpc32/power4/multiarch/ifunc-impl-list
47111         (__libc_ifunc_impl_list): Likewise.
47112
47113         * sysdeps/powerpc/powerpc32/power4/multiarch/memrchr-power7.S: New
47114         file.
47115         * sysdeps/powerpc/powerpc32/power4/multiarch/memrchr-ppc32.c: New
47116         file.
47117         * sysdeps/powerpc/powerpc32/power4/multiarch/memrchr.c: New
47118         file: memrchr multiarch for PPC32.
47119         * sysdeps/powerpc/powerpc32/power4/multiarch/Makefile: Added memrchr
47120         multiarch objects.
47121         * sysdeps/powerpc/powerpc32/power4/multiarch/ifunc-impl-list
47122         (__libc_ifunc_impl_list): Likewise.
47123
47124         * string/memchr.c (__memchr): Using macro to redefine symbol name.
47125         * sysdeps/powerpc/powerpc32/power4/multiarch/memchr-power7.S: New
47126         file.
47127         * sysdeps/powerpc/powerpc32/power4/multiarch/memchr-ppc32.c: New File.
47128         * sysdeps/powerpc/powerpc32/power4/multiarch/memchr.c: New file:
47129         multiarch memchr for PPC32.
47130         * sysdeps/powerpc/powerpc32/power4/multiarch/Makefile: Add memchr
47131         multiarch objects.
47132         * sysdeps/powerpc/powerpc32/power4/multiarch/ifunc-impl-list.c
47133         (__libc_ifunc_impl_list): Likewise.
47134
47135         * string/mempcpy.c (__mempcpy): Using macro to redefine symbol name.
47136         * sysdeps/powerpc/powerpc32/power4/multiarch/mempcpy-power7.S: New
47137         file.
47138         * sysdeps/powerpc/powerpc32/power4/multiarch/mempcpy-ppc32.c: New
47139         file.
47140         * sysdeps/powerpc/powerpc32/power4/multiarch/mempcpy.c: New
47141         file: multiarch mempcpy for PPC32.
47142         * sysdeps/powerpc/powerpc32/power4/multiarch/Makefile: Add mempcpy
47143         multiarch objects.
47144         * sysdeps/powerpc/powerpc32/power4/multiarch/ifunc-impl-list.c
47145         (__libc_ifunc_impl_list): Likewise.
47146
47147         * sysdeps/powerpc/powerpc32/power4/multiarch/bzero-power6.S: New file.
47148         * sysdeps/powerpc/powerpc32/power4/multiarch/bzero-power7.S: New file.
47149         * sysdeps/powerpc/powerpc32/power4/multiarch/bzero-ppc32.S: New file.
47150         * sysdeps/powerpc/powerpc32/power4/multiarch/bzero.c: New file:
47151         multiarch bzero for PPC32.
47152         * sysdeps/powerpc/powerpc32/power4/multiarch/memset-power6.S: New
47153         file.
47154         * sysdeps/powerpc/powerpc32/power4/multiarch/memset-power7.S: New
47155         file.
47156         * sysdeps/powerpc/powerpc32/power4/multiarch/memset-ppc32.S: New file.
47157         * sysdeps/powerpc/powerpc/powerpc32/power4/multiarch/memset.c: New
47158         file: multiarch memset for PPC32.
47159         * sysdeps/powerpc/powerpc32/power4/multiarch/rtld-memset.S: New file.
47160         * sysdeps/powerpc/powerpc32/power4/multiarch/Makefile: Add bzero and
47161         memset multiarch objects.
47162         * sysdeps/powerpc/powerpc32/power4/multiarch/ifunc-impl-list.c
47163         (__libc_ifunc_impl_list): Likewise.
47164
47165         * sysdeps/powerpc/powerpc32/power4/multiarch/memcmp-power7.S: New
47166         file.
47167         * sysdeps/powerpc/powerpc32/power4/multiarch/memcmp-ppc32.S: New file.
47168         * sysdeps/powerpc/powerpc32/power4/multiarch/memcmp.c: multiarch
47169         memcmp for PPC32.
47170         * sysdeps/powerpc/powerpc32/power4/multiarch/rtld-memcmp.S: New file.
47171         * sysdeps/powerpc/powerpc32/power4/multiarch/Makefile: Add memcmp
47172         multiarch objects.
47173         * sysdeps/powerpc/powerpc32/power4/multiarch/ifunc-impl-list.c
47174         (__libc_ifunc_impl_list): Likewise.
47175
47176         * sysdeps/powerpc/powerpc32/power4/multiarch/memcpy-a2.S: New file.
47177         * sysdeps/powerpc/powerpc32/power4/multiarch/memcpy-cell.S: New file.
47178         * sysdeps/powerpc/powerpc32/power4/multiarch/memcpy-power6.S: New
47179         file.
47180         * sysdeps/powerpc/powerpc32/power4/multiarch/memcpy-power7.S: New
47181         file.
47182         * sysdeps/powerpc/powerpc32/power4/multiarch/memcpy-ppc32.S: New
47183         file.
47184         * sysdeps/powerpc/powerpc32/power4/multiarch/memcpy.c: New file:
47185         multiarch memcpy for PPC32.
47186         * sysdeps/powerpc/powerpc32/power4/multiarch/Makefile: Add memcpy
47187         multiarch objects.
47188         * sysdeps/powerpc/powerpc32/power4/multiarch/ifunc-impl-list.c
47189         (__libc_ifunc_impl_list): Likewise.
47190
47191         * sysdeps/powerpc/powerpc32/power4/multiarch/Makefile: New file to
47192         support multiarch for POWER/PPC32.
47193         * sysdeps/powerpc/powerpc32/power4/multiarch/ifunc-impl-list.c:
47194         Likewise.
47195         * sysdeps/powerpc/powerpc32/power4/multiarch/init-arch.h: Likewise.
47196         * sysdeps/unix/sysv/linux/powerpc/powerpc32/power4/Implies: Remove
47197         Implies file to make multiarch folder appers before the fpu and
47198         default folder for power4 configuration.
47199
47200 2013-12-06  Siddhesh Poyarekar  <siddhesh@redhat.com>
47201
47202         * scripts/bench.pl: Append volatile keyword to type.
47203
47204 2013-12-05  Kaz Kojima  <kkojima@rr.iij4u.or.jp>
47205
47206         * sysdeps/sh/sotruss-lib.c: New file.
47207         * sysdeps/unix/sysv/linux/sh/nptl/c++-types.data: New file.
47208
47209 2013-12-05  Adhemerval Zanella  <azanella@linux.vnet.ibm.com>
47210
47211         * sysdeps/powerpc/fpu/libm-test-ulps: Update.
47212
47213 2013-12-05  Joseph Myers  <joseph@codesourcery.com>
47214
47215         [BZ #6810]
47216         * math/w_tgamma.c: Include <errno.h>.
47217         (__tgamma): Use __glibc_unlikely.  Set errno on underflow to 0.
47218         * math/w_tgammaf.c: Include <errno.h>.
47219         (__tgammaf): Use __glibc_unlikely.  Set errno on underflow to 0.
47220         * math/w_tgammal.c: Include <errno.h>.
47221         (__tgammal): Use __glibc_unlikely.  Set errno on underflow to 0.
47222         * math/auto-libm-test-in: Do not allow missing errno on tgamma
47223         underflow.  Add more tgamma tests.
47224         * math/auto-libm-test-out: Regenerated.
47225         * sysdeps/i386/fpu/libm-test-ulps: Update.
47226         * sysdeps/x86_64/fpu/libm-test-ulps: Likewise.
47227
47228         * math/auto-libm-test-in: Add tests of log, log10, log1p, log2,
47229         sin, sinh, tan, tanh, tgamma, y0 and y1.
47230         * math/auto-libm-test-out: Regenerated.
47231         * math/libm-test.inc (TEST_COND_x86_64): New macro.
47232         (TEST_COND_x86): Likewise.
47233         (M_E2l): Remove macro.
47234         (M_E3l): Likewise.
47235         (M_2_SQRT_PIl): Likewise.
47236         (M_SQRT_PIl): Likewise.
47237         (M_1_DIV_El): Likewise.
47238         (log_test_data): Use AUTO_TESTS_f_f.
47239         (log10_test_data): Likewise.
47240         (log1p_test_data): Likewise.
47241         (log2_test_data): Likewise.
47242         (sin_test_data): Likewise.
47243         (sin_tonearest_test_data): Likewise.
47244         (sin_towardzero_test_data): Likewise.
47245         (sin_downward_test_data): Likewise.
47246         (sin_upward_test_data): Likewise.
47247         (sinh_test_data): Likewise.
47248         (sinh_tonearest_test_data): Likewise.
47249         (sinh_towardzero_test_data): Likewise.
47250         (sinh_downward_test_data): Likewise.
47251         (sinh_upward_test_data): Likewise.
47252         (tan_test_data): Likewise.
47253         (tan_tonearest_test_data): Likewise.
47254         (tan_towardzero_test_data): Likewise.
47255         (tan_downward_test_data): Likewise.
47256         (tan_upward_test_data): Likewise.
47257         (tanh_test_data): Likewise.
47258         (tgamma_test_data): Likewise.
47259         (y0_test_data): Likewise.
47260         (y1_test_data): Likewise.
47261         * math/gen-auto-libm-tests.c (special_fill_pi_4): New function.
47262         (special_real_inputs): Add pi/4.
47263         * sysdeps/i386/fpu/libm-test-ulps: Update.
47264         * sysdeps/x86_64/fpu/libm-test-ulps: Likewise.
47265
47266 2013-12-05  Adhemerval Zanella  <azanella@linux.vnet.ibm.com>
47267
47268         * sysdeps/powerpc/powerpc32/__longjmp-common.S: Add "longjmp" and
47269         "longjmp_target" static probes.
47270         (__longjmp): Rename to __longjmp_symbol.
47271         * sysdeps/powerpc/powerpc32/fpu/__longjmp-common.S: Likewise.
47272         * sysdeps/powerpc/powerpc32/__longjmp.S: Define __longjmp_symbol based
47273         on which longjmp to generate.
47274         * sysdeps/powerpc/powerpc32/fpu/__longjmp.S: Likewise.
47275         * sysdeps/powerpc/powerpc32/fpu/setjmp-common.S: Add "setjmp" static
47276         probe.
47277         (__sigsetjmp): Rename to __sigsetjmp_symbol.
47278         (__sigjmp_save): Rename to __sigjmp_save_symbol.
47279         * sysdeps/powerpc/powerpc32/setjmp-common.S: Likewise.
47280         * sysdeps/powerpc/powerpc32/fpu/setjmp.S: Define __sigsetjmp_symbol
47281         and __sigjmp_save_symbol based on which sigsetjmp to generated.
47282         * sysdeps/powerpc/powerpc32/setjmp.S: Likewise.
47283         * sysdeps/unix/sysv/linux/powerpc/powerpc32/____longjmp_chk.S: Define
47284         __longjmp_symbol based on which __longjmp to generate.
47285         * sysdeps/powerpc/powerpc64/setjmp-common.S: Add "setjmp" static
47286         probe.
47287         (setjmp): Rename to setjmp_symbol.
47288         (__sigsetjmp): Rename to __sigsetjmp_symbol.
47289         (_setjmp): Rename to _setjmp_symbol.
47290         (__sigsetjmp): Rename to __sigsetjmp_symbol.
47291         * sysdeps/powerpc/powerpc64/setjmp.S: Define setjmp_symbol,
47292         _setjmp_symbol, __sigsetjmp_symbol, and __sigjmp_save_symbol based on
47293         which setjmp to generate.
47294         * sysdeps/powerpc/powerpc64/__longjmp-common.S: Add "longjmp" and
47295         "longjmp_target" static probes.
47296
47297 2013-12-05  Siddhesh Poyarekar  <siddhesh@redhat.com>
47298
47299         * benchtests/README: Add note about output arguments.
47300         * benchtests/bench-sincos.c: Remove file.
47301         * benchtests/sincos-inputs: New file.
47302         * scripts/bench.pl: Identify output arguments and define
47303         static variables for them.
47304
47305         * debug/stpncpy_chk.c (__stpncpy_chk): Remove unused variables.
47306
47307         [BZ #15941]
47308         * Makefile (INSTALL): Add install-plain.texi as the primary
47309         dependency.
47310         * manual/install-plain.texi: New file.
47311         * manual/install.texi: Include node directive only for
47312         non-plaintext output.
47313
47314 2013-12-04  Joseph Myers  <joseph@codesourcery.com>
47315
47316         * stdlib/longlong.h: Update from GCC.
47317
47318         [BZ #6807]
47319         [BZ #15901]
47320         * math/w_j0.c (y0): Raise FE_DIVBYZERO on zero argument.
47321         * math/w_j0f.c (y0f): Likewise.
47322         * math/w_j0l.c (__y0l): Likewise.
47323         * math/w_j1.c (y1): Likewise.
47324         * math/w_j1f.c (y1f): Likewise.
47325         * math/w_j1l.c (__y1l): Likewise.
47326         * math/w_jn.c (yn): Likewise.
47327         * math/w_jnf.c (ynf): Likewise.
47328         * sysdeps/ieee754/k_standard.c (__kernel_standard): Use ERANGE for
47329         Bessel function pole errors in _POSIX_ mode.  Use NAN as return
47330         value for Bessel function domain errors outside _SVID_ mode.
47331         Adjust sign of return value for yn (negative integer, 0).
47332         * sysdeps/ieee754/ldbl-128/e_jnl.c (__ieee754_ynl): Use division
47333         by zero in return for negative x and set sign appropriately for
47334         negative n.
47335         * sysdeps/ieee754/ldbl-128ibm/e_jnl.c (__ieee754_ynl): Likewise.
47336         * sysdeps/ieee754/ldbl-96/e_jnl.c (__ieee754_ynl): Likewise.
47337         * math/libm-test.inc (y0_test_data): Add more tests and adjust
47338         expectations in error cases.
47339         (y1_test_data): Likewise.
47340         (yn_test_data): Likewise.
47341         * sysdeps/i386/fpu/libm-test-ulps: Update.
47342         * sysdeps/x86_64/fpu/libm-test-ulps: Likewise.
47343
47344 2013-11-12  Ulrich Weigand  <Ulrich.Weigand@de.ibm.com>
47345
47346         * sysdeps/unix/sysv/linux/powerpc/Makefile (abi-variants): Rename
47347         "64" to "64-v1".  Add "64-v2".
47348         (abi-64-options): Rename to ...
47349         (abi-64-v1-options): ... this.   Redefine _CALL_ELF.
47350         (abi-64-condition): Rename to ...
47351         (abi-64-v1-condition): ... this.  Add _CALL_ELF check.,
47352         (abi-64-ld-soname): Rename to ...
47353         (abi-64-v1-ld-soname): ... this.
47354         (abi-64-v2-options): Define.
47355         (abi-64-v2-condition): Likewise.
47356         (abi-64-v2-ld-soname): Likewise.
47357         * sysdeps/unix/sysv/linux/powerpc/ldconfig.h
47358         (SYSDEP_KNOWN_INTERPRETER_NAMES): Add "/lib64/ld64.so.2".
47359         * sysdeps/unix/sysv/linux/powerpc/powerpc64/Makefile: Delete file.
47360         * sysdeps/unix/sysv/linux/powerpc/powerpc64/configure.ac: New file.
47361         * sysdeps/unix/sysv/linux/powerpc/powerpc64/configure: Generate.
47362
47363 2013-11-12  Ulrich Weigand  <Ulrich.Weigand@de.ibm.com>
47364             Alan Modra  <amodra@gmail.com>
47365
47366         * sysdeps/powerpc/bits/link.h (La_ppc64v2_regs, La_ppc64v2_retval):
47367         New versions for use with the ELFv2 ABI.
47368         (la_ppc64v2_gnu_pltenter, la_ppc64v2_gnu_pltexit): Add prototypes.
47369         * sysdeps/powerpc/lsdodefs.h (struct La_ppc64v2_regs): Add forward
47370         declaration.
47371         (struct La_ppc64v2_retval): Likewise.
47372         (ARCH_PLTENTER_MEMBERS): Add ppc64v2_gnu_pltenter.
47373         (ARCH_PLTEXIT_MEMBERS): Add ppc64v2_gnu_pltexit.
47374         * sysdeps/powerpc/powerpc64/dl-machine.h (ARCH_LA_PLTENTER): Define
47375         to ppc64v2_gnu_pltenter if _CALL_ELF == 2.
47376         (ARCH_LA_PLTEXIT): Define to ppc64v2_gnu_pltexit if _CALL_ELF == 2.
47377         * sysdeps/powerpc/powerpc64/dl-trampoline.S (_dl_runtime_resolve):
47378         Do not save or restore CR.
47379         (FRAME_SIZE, VR_RTN): Provide updated values for _CALL_ELF == 2.
47380         (_dl_profile_resolve): Do no save or restore CR.  Support extended
47381         return values for ELFv2 ABI.  Fix location of FPR return registers.
47382         * sysdeps/powerpc/powerpc64/tst-audit.h (pltenter, pltexit): Provide
47383         updated values for _CALL_ELF == 2.
47384         (La_regs, La_retval, int_retval): Likewise.
47385
47386 2013-12-04  Ulrich Weigand  <Ulrich.Weigand@de.ibm.com>
47387
47388         * sysdeps/powerpc/powerpc64/sysdep.h (FRAME_MIN_SIZE): Define.
47389         (FRAME_MIN_SIZE_PARM): Likewise.
47390         (FRAME_BACKCHAIN): Likewise.
47391         (FRAME_CR_SAVE): Likewise.
47392         (FRAME_LR_SAVE): Likewise.
47393         (FRAME_TOC_SAVE): Likewise.
47394         (FRAME_PARM_SAVE): Likewise.
47395         (FRAME_PARM1_SAVE, FRAME_PARM2_SAVE, FRAME_PARM3_SAVE,
47396         FRAME_PARM4_SAVE, FRAME_PARM5_SAVE, FRAME_PARM6_SAVE,
47397         FRAME_PARM7_SAVE, FRAME_PARM8_SAVE, FRAME_PARM9_SAVE): Likewise.
47398         (call_mcount_parm_offset): New macro.
47399         (SAVE_ARG, REST_ARG, CFI_SAVE_ARG): Use it.
47400         (PROF): Use symbolic stack frame offsets.
47401         (TAIL_CALL_SYSCALL_ERROR): Likewise.
47402         * sysdeps/powerpc/powerpc64/dl-trampoline.S (FRAME_SIZE, INT_PARMS):
47403         Redefine in terms of FRAME_MIN_SIZE.
47404         (_dl_runtime_resolve): Use symbolic stack frame offsets.
47405         (_dl_profile_resolve): Likewise.  Update comment.
47406         * sysdeps/powerpc/powerpc64/setjmp-common.S (__GI__setjmp): Use
47407         symbols stack frame offsets.
47408         (__sigsetjmp): Likewise.
47409         * sysdeps/powerpc/powerpc64/__longjmp-common.S (__longjmp): Likewise.
47410         * sysdeps/powerpc/powerpc64/ppc-mcount.S (_mcount): Likewise.
47411         * sysdeps/powerpc/powerpc64/crti.S (_init, _fini): Likewise.
47412         * sysdeps/powerpc/powerpc64/crtn.S (_init, _fini): Likewise.
47413
47414         * sysdeps/unix/sysv/linux/powerpc/powerpc64/ucontext_i.sym
47415         (FRAME_BACKCHAIN): Remove.
47416         (FRAME_CR_SAVE): Likewise.
47417         (FRAME_LR_SAVE): Likewise.
47418         (FRAME_COMPILER_DW): Likewise.
47419         (FRAME_LINKER_DW): Likewise.
47420         (FRAME_TOC_SAVE): Likewise.
47421         (FRAME_PARM_SAVE): Likewise.
47422         (FRAME_PARM1_SAVE, FRAME_PARM2_SAVE, FRAME_PARM3_SAVE)
47423         (FRAME_PARM4_SAVE, FRAME_PARM5_SAVE, FRAME_PARM6_SAVE)
47424         (FRAME_PARM7_SAVE, FRAME_PARM8_SAVE, FRAME_PARM9_SAVE): Likewise.
47425         * sysdeps/unix/sysv/linux/powerpc/powerpc64/____longjmp_chk.S
47426         (CHECK_SP): Use symbolic stack frame offsets.
47427         * sysdeps/unix/sysv/linux/powerpc/powerpc64/brk.S (__brk): Use "red
47428         zone" instead of caller's parameter save area for temp storage.
47429         * sysdeps/unix/sysv/linux/powerpc/powerpc64/clone.S (__clone):
47430         Likewise.  Also, use symbolic stack frame offsets.
47431         * sysdeps/unix/sysv/linux/powerpc/powerpc64/socket.S (FRAMESIZE,
47432         stackblock): Redefine for _CALL_ELF == 2 to save parameters into
47433         our own stack frame instead of the caller's.
47434         (__socket): Use symbolic stack frame offsets.
47435
47436 2013-12-04  Ulrich Weigand  <Ulrich.Weigand@de.ibm.com>
47437             Alan Modra  <amodra@gmail.com>
47438
47439         * elf/elf.h (DT_PPC64_OPT, PPC64_OPT_TLS, PPC64_OPT_MULTI_TOC):
47440         Define.
47441         (STO_PPC64_LOCAL_BIT, STO_PPC64_LOCAL_MASK)
47442         (PPC64_LOCAL_ENTRY_OFFSET): Define.
47443         * sysdeps/powerpc/powerpc64/dl-machine.h (ppc64_local_entry_offset):
47444         New function.
47445         (elf_machine_fixup_plt): Call it.
47446         (elf_machine_plt_conflict): Likewise.  Add map, sym_map, and
47447         reloc arguments.
47448         (elf_machine_rela): Update call to elf_machine_plt_conflict.
47449         * sysdeps/powerpc/powerpc64/dl-trampoline.S (_dl_runtime_resolve)
47450         (_dl_profile_resolve) [_CALL_ELF == 2]: Restore caller's TOC into
47451         r2 before calling target.
47452
47453 2013-12-04  Ulrich Weigand  <Ulrich.Weigand@de.ibm.com>
47454             Alan Modra  <amodra@gmail.com>
47455
47456         * sysdeps/powerpc/powerpc64/sysdep.h [_CALL_ELF == 2]
47457         (PPC64_LOAD_FUNCPTR, DOT_LABEL, BODY_LABEL, ENTRY_2, END_2): New
47458         versions of macros to support ELFv2 ABI.
47459         (LOCALENTRY): New macro.
47460         (ENTRY, EALIGN): Use it.
47461         * sysdeps/powerpc/powerpc64/crti.S (_init, _fini): Use LOCALENTRY.
47462         * sysdeps/powerpc/powerpc64/setjmp-common.S (__GI__setjmp): Do not
47463         fall through into ENTRY entry point.
47464         * libc/sysdeps/powerpc/powerpc64/dl-machine.h (Elf64_FuncDesc):
47465         Only define if _CALL_ELF != 2.
47466
47467         (elf_machine_matches_host): Verify ABI version matches.
47468         (RTLD_START): Use LOCALENTRY.
47469         (elf_machine_type_class): Use SHN_UNDEF PLT handling for ELFv2 ABI.
47470         (PLT_INITIAL_ENTRY_WORDS): New version for _CALL_ELF != 2.
47471         (PLT_ENTRY_WORDS): New macro.
47472         (GLINK_INITIAL_ENTRY_WORDS, GLINK_ENTRY_WORDS): Likewise.
47473         (elf_machine_runtime_setup): Support ELFv2 ABI.
47474         (elf_machine_fixup_plt): Likewise.
47475         (elf_machine_plt_conflict): Likewise.
47476         (resolve_ifunc): Likewise.
47477         * sysdeps/powerpc/powerpc64/dl-irel.h (elf_irela): Likewise.
47478         * sysdeps/unix/sysv/linux/powerpc/bits/libc-vdso.h (VDSO_IFUNC_RET):
47479         Likewise.
47480         * sysdeps/unix/sysv/linux/powerpc/powerpc64/ldsodefs.h
47481         (DL_ADDR_SYM_MATCH): Only define if _CALL_ELF != 2.
47482         * sysdeps/unix/sysv/linux/powerpc/powerpc64/makecontext.S
47483         (makecontext): Support ELFv2 ABI.
47484         * elf/elf.h (EF_PPC64_ABI): Define.
47485
47486 2013-12-04  Ulrich Weigand  <Ulrich.Weigand@de.ibm.com>
47487
47488         * sysdeps/powerpc/powerpc64/sysdep.h
47489         (PPC64_LOAD_FUNCPTR) [ASSEMBLER]: New assembler macro.
47490         (ENTRY_1) [ASSEMBLER]: Do not switch to .text section here ...
47491         (ENTRY) [ASSEMBLER]: ... but instead here ...
47492         (EALIGN) [ASSEMBLER]: ... and here.
47493         (PPC64_LOAD_FUNCPTR) [!ASSEMBLER]: New macro.
47494         (ENTRY_1) [!ASSEMBLER]: New macro; set up .opd entry.
47495         (ENTRY_2) [!ASSEMBLER]: Use it.
47496         * sysdeps/powerpc/powerpc64/dl-machine.h (RTLD_START): Update for
47497         ENTRY_2 changes.  Use PPC64_LOAD_FUNCPTR.
47498         * sysdeps/powerpc/powerpc64/dl-trampoline.S (_dl_runtime_resolve)
47499         (_dl_profile_resolve): Use PPC64_LOAD_FUNCPTR.
47500         * sysdeps/powerpc/powerpc64/crti.S (_init, _fini): Use ENTRY_2.
47501         * sysdeps/unix/sysv/linux/powerpc/powerpc64/clone.S (clone):
47502         Use PPC64_LOAD_FUNCPTR.
47503
47504         * sysdeps/powerpc/tls.h (tcbhead_t): Add __private_ss field.
47505
47506 2013-12-04  Alan Modra  <amodra@gmail.com>
47507
47508         * elf/elf.h (R_PPC64_TLSGD, R_PPC64_TLSLD, R_PPC64_TOCSAVE): Define.
47509         (R_PPC64_ADDR16_HIGH, R_PPC64_ADDR16_HIGHA): Likewise.
47510         (R_PPC64_TPREL16_HIGH, R_PPC64_TPREL16_HIGHA): Likewise.
47511         (R_PPC64_DTPREL16_HIGH, R_PPC64_DTPREL16_HIGHA): Likewise.
47512
47513         * sysdeps/powerpc/powerpc64/dl-machine.h (elf_machine_rela): Add
47514         overflow checking for R_PPC64_ADDR16_HI, R_PPC64_ADDR16_HA,
47515         R_PPC64_TPREL16_HI, and R_PPC64_TPREL16_HA.
47516         Support new R_PPC64_ADDR16_HIGH, R_PPC64_ADDR16_HIGHA,
47517         R_PPC64_TPREL16_HIGH, and R_PPC64_TPREL16_HIGHA relocations.
47518         Fix overflow checking for R_PPC64_ADDR30 and R_PPC64_ADDR32.
47519
47520 2013-12-04  Ulrich Weigand  <Ulrich.Weigand@de.ibm.com>
47521
47522         * sysdeps/unix/sysv/linux/powerpc/powerpc64/makecontext.S
47523         (__makecontext): Fix incorrect CFI when backtracing out of
47524         context created via makecontext.
47525         * sysdeps/unix/sysv/linux/powerpc/powerpc64/secontext.S
47526         (__setcontext): Fix incorrect CFI during switch to new context.
47527         (__novec_setcontext): Likewise.
47528
47529 2013-12-04  Ondřej Bílka  <neleai@seznam.cz>
47530
47531         [BZ #4772]
47532         * time/strptime_l.c (__strptime_internal): Allow modifiers
47533         in strptime.
47534         * time/tst-strptime.c (day_tests): Add testcase.
47535
47536 2013-12-04  Siddhesh Poyarekar  <siddhesh@redhat.com>
47537
47538         * scripts/bench.pl: Skip over blank lines.
47539
47540 2013-12-04  Paul Eggert  <eggert@cs.ucla.edu>
47541
47542         [BZ #926]
47543         * manual/time.texi (Calendar Time): Clarify what timezone functions
47544         use.
47545
47546 2013-12-04  Adhemerval Zanella  <azanella@linux.vnet.ibm.com>
47547
47548         * sysdeps/powerpc/fpu/libm-test-ulps: Update.
47549
47550 2013-12-04  Ondřej Bílka  <neleai@seznam.cz>
47551
47552         * debug/memcpy_chk.c (__memcpy_chk): Use call instead of custom
47553         implementation.
47554         * debug/memmove_chk.c (MEMMOVE_CHK): Likewise.
47555         * debug/mempcpy_chk.c (__mempcpy_chk): Likewise.
47556         * debug/memset_chk.c (__memset_chk): Likewise.
47557         * debug/stpncpy_chk.c (__stpncpy_chk): Likewise.
47558         * debug/strncpy_chk.c: Likewise.
47559
47560 2013-12-03  Joseph Myers  <joseph@codesourcery.com>
47561
47562         [BZ #15268]
47563         [BZ #15425]
47564         * sysdeps/ieee754/dbl-64/e_exp.c: Include <float.h>.
47565         (__ieee754_exp): For possibly underflowing results, check size of
47566         result and force underflow exception if required.
47567         * math/auto-libm-test-in: Add more tests of exp.
47568         * math/auto-libm-test-out: Regenerated.
47569         * sysdeps/i386/fpu/libm-test-ulps: Update.
47570         * sysdeps/x86_64/fpu/libm-test-ulps: Likewise.
47571
47572         [BZ #16283]
47573         * math/w_exp2.c (__exp2): Handle a zero result as underflow.
47574         * math/w_exp2f.c (__exp2f): Likewise.
47575         * math/w_exp2l.c (__exp2l): Likewise.
47576         * math/auto-libm-test-in: Do not allow missing errno on exp2
47577         underflow.
47578         * math/auto-libm-test-out: Regenerated.
47579
47580 2013-12-03  Ondřej Bílka  <neleai@seznam.cz>
47581
47582         [BZ #16274]
47583         * sysdeps/unix/sysv/linux/shm_open.c (shm_open): Correctly
47584         handle filename validation.
47585         * rt/tst-shm.c (do_test): Do not skip a test when shm_open fails.
47586         (do_open): Delete.
47587
47588 2013-12-03  Joseph Myers  <joseph@codesourcery.com>
47589
47590         [BZ #6786]
47591         * sysdeps/ieee754/dbl-64/s_erf.c: Include <errno.h> and <float.h>.
47592         (__erfc): Set errno to ERANGE when returning 0 or tiny * tiny.
47593         * sysdeps/ieee754/flt-32/s_erff.c: Include <errno.h> and
47594         <float.h>.
47595         (__erfcf): Set errno to ERANGE when returning 0 or tiny * tiny.
47596         * sysdeps/ieee754/ldbl-128/s_erfl.c: Include <errno.h>.
47597         (__erfcl): Set errno to ERANGE when returning 0 or tiny * tiny.
47598         * sysdeps/ieee754/ldbl-128ibm/s_erfl.c: Include <errno.h>.
47599         (__erfcl): Set errno to ERANGE when returning 0 or tiny * tiny.
47600         * sysdeps/ieee754/ldbl-96/s_erfl.c: Include <errno.h>.
47601         (__erfcl): Set errno to ERANGE when returning 0 or tiny * tiny.
47602         * math/auto-libm-test-in: Don't allow missing errno from erfc.
47603         Add more erfc tests.
47604         * math/auto-libm-test-out: Regenerated.
47605         * sysdeps/i386/fpu/libm-test-ulps: Update.
47606         * sysdeps/x86_64/fpu/libm-test-ulps: Likewise.
47607
47608         * math/auto-libm-test-in: Add tests of erf, erfc, exp, exp10,
47609         exp2, expm1, j0 and j1.
47610         * math/auto-libm-test-out: Regenerated.
47611         * math/libm-test.inc (erf_test_data): Use AUTO_TESTS_f_f.
47612         (erfc_test_data): Likewise.
47613         (exp_test_data): Likewise.
47614         (exp_tonearest_test_data): Likewise.
47615         (exp_towardzero_test_data): Likewise.
47616         (exp_downward_test_data): Likewise.
47617         (exp_upward_test_data): Likewise.
47618         (exp10_test_data): Likewise.
47619         (exp2_test_data): Likewise.
47620         (expm1_test_data): Likewise.
47621         (j0_test_data): Likewise.
47622         (j1_test_data): Likewise.
47623         * math/gen-auto-libm-tests.c: Mention "xfail-rounding" in comment.
47624         (input_flag_type): Add flag_xfail_rounding.
47625         (input_flags): Add xfail-rounding.
47626         (adjust_real): Assert mpfr_number_p not mpfr_regular_p.
47627         (output_for_one_input_case): Handle flag_xfail_rounding.
47628         * sysdeps/i386/fpu/libm-test-ulps: Update.
47629         * sysdeps/x86_64/fpu/libm-test-ulps: Likewise.
47630
47631 2013-12-03  Aurelien Jarno  <aurelien@aurel32.net>
47632
47633         [BZ #16289]
47634         * locale/loadarchive.c (_nl_load_locale_from_archive): Avoid
47635         division by 0.
47636
47637 2013-12-03  Siddhesh Poyarekar  <siddhesh@redhat.com>
47638
47639         [BZ #16195]
47640         * include/stap-probe.h [!USE_STAP_PROBE && !__ASSEMBLER__]
47641         (LIBC_PROBE): Change definition to call STAP_PROBE* macros.
47642         (STAP_PROBE0): New macro.
47643         (STAP_PROBE1): Likewise.
47644         (STAP_PROBE2): Likewise.
47645         (STAP_PROBE3): Likewise.
47646         (STAP_PROBE4): Likewise.
47647
47648 2013-12-02  Ondřej Bílka  <neleai@seznam.cz>
47649
47650         * manual/llio.texi (Memory-mapped I/O): Add shm_open and shm_close.
47651
47652 2013-12-02  Steve Ellcey  <sellcey@mips.com>
47653
47654         * benchtests/Makefile (bench): Add sqrt.
47655         (LDLIBS-bench-sqrt): New.
47656         * benchtests/sqrt-input: New.
47657
47658 2013-12-02  Pavel Simerda  <psimerda@redhat.com>
47659
47660         * sysdeps/posix/getaddrinfo.c (GAIH_OKIFUNSPEC): Remove macro.
47661         (GAIH_EAI): Likewise.
47662         (gaih_inet_serv): Don't use GAIH_OKIFUNSPEC.
47663         (gaih_inet): Likewise.
47664         (getaddrinfo): Don't use GAIH_EAI.
47665
47666         * sysdeps/posix/getaddrinfo.c (UNIX_PATH_MAX): Remove macro.
47667         (struct gaih): Remove definition.
47668
47669 2013-12-02  Siddhesh Poyarekar  <siddhesh@redhat.com>
47670
47671         * nss/nss_files/files-hosts.c (_nss_files_gethostbyname4_r):
47672         Use HERRNOP directly.
47673
47674 2013-12-02  Adhemerval Zanella  <azanella@linux.vnet.ibm.com>
47675
47676         * sysdeps/powerpc/fpu/libm-test-ulps: Update.
47677
47678 2013-11-30  Joseph Myers  <joseph@codesourcery.com>
47679
47680         * math/gen-auto-libm-tests.c (test_functions): Add more
47681         single-argument functions.
47682         (special_fill_pi_2): New function.
47683         (special_fill_minus_pi_2): Likewise.
47684         (special_fill_pi_6): Likewise.
47685         (special_fill_minus_pi_6): Likewise.
47686         (special_fill_pi_3): Likewise.
47687         (special_fill_2pi_3): Likewise.
47688         (special_fill_e): Likewise.
47689         (special_fill_1_e): Likewise.
47690         (special_fill_e_minus_1): Likewise.
47691         (special_real_inputs): Add more special inputs.
47692         (output_for_one_input_case): Do not require ERANGE on underflow to
47693         zero if round-to-nearest result does not underflow to zero, unless
47694         exact results required.
47695         * math/auto-libm-test-in: Add tests of acos, acosh, asin, asinh,
47696         atan, atanh, cbrt, cos and cosh.
47697         * math/auto-libm-test-out: Regenerated.
47698         * math/libm-test.inc (acos_test_data): Use AUTO_TESTS_f_f.
47699         (acos_tonearest_test_data): Likewise.
47700         (acos_towardzero_test_data): Likewise.
47701         (acos_downward_test_data): Likewise.
47702         (acos_upward_test_data): Likewise.
47703         (acosh_test_data): Likewise.
47704         (asin_test_data): Likewise.
47705         (asin_tonearest_test_data): Likewise.
47706         (asin_towardzero_test_data): Likewise.
47707         (asin_upward_test_data): Likewise.
47708         (asinh_test_data): Likewise.
47709         (atan_test_data): Likewise.
47710         (atanh_test_data): Likewise.
47711         (cbrt_test_data): Likewise.
47712         (cos_test_data): Likewise.
47713         (cos_tonearest_test_data): Likewise.
47714         (cos_towardzero_test_data): Likewise.
47715         (cos_downward_test_data): Likewise.
47716         (cos_upward_test_data): Likewise.
47717         (cosh_test_data): Likewise.
47718         (cosh_tonearest_test_data): Likewise.
47719         (cosh_towardzero_test_data): Likewise.
47720         (cosh_downward_test_data): Likewise.
47721         (cosh_upward_test_data): Likewise.
47722         * sysdeps/i386/fpu/libm-test-ulps: Update.
47723         * sysdeps/x86_64/fpu/libm-test-ulps: Likewise.
47724
47725 2013-11-29  Joseph Myers  <joseph@codesourcery.com>
47726
47727         [BZ #6787]
47728         * math/w_exp10.c (__exp10): Handle a zero result as underflow.
47729         * math/w_exp10f.c (__exp10f): Likewise.
47730         * math/w_exp10l.c (__exp10l): Likewise.
47731         * math/libm-test.inc (exp10_test_data): Add more tests and expect
47732         errno settings in existing tests.
47733
47734         [BZ #14032]
47735         * sysdeps/i386/fpu/e_sqrt.S (__ieee754_sqrt): Do fsqrt with
47736         precision control set to double precision.
47737         * sysdeps/i386/fpu/w_sqrt.c: New file.
47738         * math/auto-libm-test-in: Add more tests.
47739         * math/auto-libm-test-out: Update.
47740
47741         * math/libm-test.inc (sqrt_tonearest_test_data): New variable.
47742         (sqrt_test_tonearest): New function.
47743         (sqrt_towardzero_test_data): New variable.
47744         (sqrt_test_towardzero): New function.
47745         (sqrt_downward_test_data): New variable.
47746         (sqrt_test_downward): New function.
47747         (sqrt_upward_test_data): New variable.
47748         (sqrt_test_upward): New function.
47749         (main): Call the new functions.
47750
47751         * math/gen-auto-libm-tests.c: New file.
47752         * math/auto-libm-test-in: Likewise.
47753         * math/auto-libm-test-out: New generated file.
47754         * math/gen-libm-test.pl ($auto_input, %auto_tests): New global
47755         variables.
47756         (%beautify): Add generated representations of zero.
47757         (top level): Set $auto_input and call parse_auto_input.
47758         (beautify): Remove trailing "f" from hex float constants.
47759         (parse_args): Handle XFAIL_TEST.
47760         (convert_condition): New function.
47761         (or_value): Likewise.
47762         (or_cond_value): Likewise.
47763         (generate_testfile): Handle AUTO_TESTS_* lines.
47764         (parse_auto_input): New function.
47765         * math/libm-test.inc (XFAIL_TEST): New macro.
47766         (ERRNO_UNCHANGED): Update value.
47767         (ERRNO_EDOM): Likewise.
47768         (ERRNO_ERANGE): Likewise.
47769         (IGNORE_RESULT): Likewise.
47770         (TEST_COND_flt_32): New macro.
47771         (TEST_COND_dbl_64): Likewise.
47772         (TEST_COND_ldbl_96_intel): Likewise.
47773         (TEST_COND_ldbl_96_m68k): Likewise.
47774         (TEST_COND_ldbl_128): Likewise.
47775         (TEST_COND_ldbl_128ibm): Likewise.
47776         (TEST_COND_long32): Likewise.
47777         (TEST_COND_long64): Likewise.
47778         (TEST_COND_before_rounding): Likewise.
47779         (TEST_COND_after_rounding): Likewise.
47780         (enable_test): Handle XFAIL_TEST flag.
47781         (sqrt_test_data): Use AUTO_TESTS_f_f for tests of finite inputs
47782         with finite results.
47783         * math/Makefile ($(objpfx)libm-test.stmp): Depend on
47784         auto-libm-test-out.
47785
47786 2013-11-29  Siddhesh Poyarekar  <siddhesh@redhat.com>
47787             Andreas Krebbel  <Andreas.Krebbel@de.ibm.com>
47788
47789         [BZ #16214]
47790         * sysdeps/s390/dl-tls.h (__TLS_GET_ADDR): Invoke
47791         __tls_get_addr_internal instead of __tls_get_offset in order to
47792         avoid GOT pointer dependency.  Make rtld export
47793         __tls_get_addr_internal@@GLIBC_PRIVATE while still hiding
47794         __tls_get_addr since we are a __tls_get_offset platform.
47795         * sysdeps/s390/s390-64/tls-macros.h (TLS_IE PIC): Don't rely on
47796         GOT pointer being set up before.
47797         * sysdeps/s390/s390-32/tls-macros.h (TLS_IE PIC): Likewise.
47798
47799 2013-11-28  Joseph Myers  <joseph@codesourcery.com>
47800
47801         * manual/math.texi (Errors in Math Functions): Document accuracy
47802         goals.
47803
47804         [BZ #15004]
47805         * sysdeps/ieee754/ldbl-96/e_atan2l.c: Remove file.
47806         * sysdeps/ieee754/ldbl-96/e_ilogbl.c: Likewise.
47807         * sysdeps/ieee754/ldbl-96/e_remainderl.c: Likewise.
47808         * sysdeps/ieee754/ldbl-96/s_ceill.c: Likewise.
47809         * sysdeps/ieee754/ldbl-96/s_fabsl.c: Likewise.
47810         * sysdeps/ieee754/ldbl-96/s_finitel.c: Likewise.
47811         * sysdeps/ieee754/ldbl-96/s_floorl.c: Likewise.
47812         * sysdeps/ieee754/ldbl-96/s_fpclassifyl.c: Likewise.
47813         * sysdeps/ieee754/ldbl-96/s_isinfl.c: Likewise.
47814         * sysdeps/ieee754/ldbl-96/s_isnanl.c: Likewise.
47815         * sysdeps/ieee754/ldbl-96/s_logbl.c: Likewise.
47816         * sysdeps/ieee754/ldbl-96/s_nearbyintl.c: Likewise.
47817         * sysdeps/ieee754/ldbl-96/s_nextafterl.c: Likewise.
47818         * sysdeps/ieee754/ldbl-96/s_rintl.c: Likewise.
47819         * sysdeps/ieee754/ldbl-96/s_scalbnl.c: Likewise.
47820         * sysdeps/ieee754/ldbl-96/s_truncl.c: Likewise.
47821
47822         * sysdeps/powerpc/nofpu/atomic-feclearexcept.c: New file.
47823         * sysdeps/powerpc/nofpu/atomic-feholdexcept.c: Likewise.
47824         * sysdeps/powerpc/nofpu/atomic-feupdateenv.c: Likewise.
47825         * sysdeps/powerpc/nofpu/flt-rounds.c: Likewise.
47826         * sysdeps/powerpc/powerpc32/e500/nofpu/atomic-feclearexcept.c:
47827         Likewise.
47828         * sysdeps/powerpc/powerpc32/e500/nofpu/atomic-feholdexcept.c:
47829         Likewise.
47830         * sysdeps/powerpc/powerpc32/e500/nofpu/atomic-feupdateenv.c:
47831         Likewise.
47832         * sysdeps/powerpc/powerpc32/e500/nofpu/flt-rounds.c: Likewise.
47833         * sysdeps/powerpc/nofpu/Makefile [$(subdir) = soft-fp]
47834         (sysdep_routines): Add atomic-feholdexcept, atomic-feclearexcept,
47835         atomic-feupdateenv and flt-rounds.
47836         * sysdeps/powerpc/nofpu/Versions (libc): Add
47837         __atomic_feholdexcept, __atomic_feclearexcept,
47838         __atomic_feupdateenv and __flt_rounds to GLIBC_2.19.
47839         * sysdeps/powerpc/powerpc32/e500/nofpu/fenv_libc.h
47840         (__feraiseexcept_soft): Declare and use libc_hidden_proto here.
47841         * sysdeps/powerpc/powerpc32/e500/nofpu/fraiseexcept-soft.c
47842         (__feraiseexcept_soft): Don't declare and use libc_hidden_proto
47843         here.
47844         * sysdeps/unix/sysv/linux/powerpc/powerpc32/nofpu/nptl/libc.abilist:
47845         Update.
47846
47847         * manual/arith.texi (FP Exceptions): Document that exceptions may
47848         not be raised when matherr is used.
47849         (Math Error Reporting): Document overflow in directed rounding
47850         modes.  Document that errno may not be set when finite values are
47851         returned on overflow.  Document intent to set errno on underflow
47852         only for underflow to zero.
47853
47854         [BZ #16271]
47855         * sysdeps/ieee754/dbl-64/e_sqrt.c (__ieee754_sqrt): Set
47856         round-to-nearest then adjust result for other rounding modes.
47857         * include/fenv.h (fegetround): Use libm_hidden_proto.
47858         * math/fegetround.c (fegetround): Use libm_hidden_def.
47859         * sysdeps/i386/fpu/fegetround.c (fegetround): Likewise.
47860         * sysdeps/powerpc/fpu/fegetround.c (fegetround): Likewise.
47861         * sysdeps/powerpc/nofpu/fegetround.c (fegetround): Likewise.
47862         * sysdeps/powerpc/powerpc32/e500/nofpu/fegetround.c (fegetround):
47863         Likewise.
47864         * sysdeps/s390/fpu/fegetround.c (fegetround): Likewise.
47865         * sysdeps/sh/sh4/fpu/fegetround.c (fegetround): Likewise.
47866         * sysdeps/sparc/fpu/fegetround.c (fegetround): Likewise.
47867         * sysdeps/x86_64/fpu/fegetround.c (fegetround): Likewise.
47868
47869 2013-11-28  Siddhesh Poyarekar  <siddhesh@redhat.com>
47870
47871         [BZ #16077]
47872         * nss/Versions (libnss_files): Add
47873         _nss_files_gethostbyname3_r.
47874         * nss/nss_files/files-hosts.c (_nss_files_gethostbyname3_r):
47875         New function.
47876         (HOST_DB_LOOKUP): Remove macro.
47877         (_nss_files_gethostbyname_r): Implement function without the
47878         HOST_DB_LOOKUP macro.
47879         (_nss_files_gethostbyname2_r): Likewise.
47880
47881 2013-11-28  Ondřej Bílka  <neleai@seznam.cz>
47882
47883         * malloc/malloc.c (__libc_calloc): Make memset a tail call.
47884
47885 2013-11-26  Uros Bizjak  <ubizjak@gmail.com>
47886
47887         * soft-fp/op-4.h (_FP_FRAC_ASSEMBLE_4): Check rsize against
47888         _FP_W_TYPE_SIZE to avoid "left shift count >= width of type"
47889         warning.
47890
47891 2013-11-26  Adhemerval Zanella  <azanella@linux.vnet.ibm.com>
47892
47893         * sysdeps/powerpc/fpu/feenablxcpt.c (feenableexcept): Use
47894         __fe_nomask_env_priv instead of __fe_nomask_env to avoid a PLT call.
47895         * sysdeps/powerpc/fpu/fesetenv.c (__fesetenv): Likewise.
47896         * sysdeps/powerpc/fpu/feupdateenv.c (__feupdateenv): Likewise.
47897         * sysdeps/powerpc/fpu/fenv_libc.h (__fe_nomask_env): Rename to
47898         __fe_nomask_env_priv and attribute_hidden.
47899         * sysdeps/powerpc/fpu/fenv_private.h (libc_fesetenv_ppc): Likewise.
47900         (libc_feupdateenv_test_ppc): Likewise.
47901         (libc_feresetround_ppc): Likewise.
47902         * sysdeps/unix/sysv/linux/powerpc/powerpc32/fpu/fe_nomask.c
47903         (__fe_nomask_env): Rename to __fe_nomask_env_priv and adjust
47904         compat_symbol macro.
47905         * sysdeps/unix/sysv/linux/powerpc/powerpc64/fpu/fe_nomask.c
47906         (__fe_nomask_env): Likewise.
47907         * sysdeps/powerpc/fpu/fe_nomask.c (__fe_nomask_env): Likewise.
47908
47909 2013-11-26  Ondřej Bílka  <neleai@seznam.cz>
47910
47911         * string/Makefile: Remove ifunc tests.
47912         * string/test-string.h: Define TEST_IFUNC.
47913         * string/test-bcopy-ifunc.c: Remove.
47914         * string/test-bzero-ifunc.c: Likewise.
47915         * string/test-memccpy-ifunc.c: Likewise.
47916         * string/test-memchr-ifunc.c: Likewise.
47917         * string/test-memcmp-ifunc.c: Likewise.
47918         * string/test-memcpy-ifunc.c: Likewise.
47919         * string/test-memmem-ifunc.c: Likewise.
47920         * string/test-memmove-ifunc.c: Likewise.
47921         * string/test-mempcpy-ifunc.c: Likewise.
47922         * string/test-memrchr-ifunc.c: Likewise.
47923         * string/test-memset-ifunc.c: Likewise.
47924         * string/test-rawmemchr-ifunc.c: Likewise.
47925         * string/test-stpcpy-ifunc.c: Likewise.
47926         * string/test-stpncpy-ifunc.c: Likewise.
47927         * string/test-strcasecmp-ifunc.c: Likewise.
47928         * string/test-strcasestr-ifunc.c: Likewise.
47929         * string/test-strcat-ifunc.c: Likewise.
47930         * string/test-strchr-ifunc.c: Likewise.
47931         * string/test-strchrnul-ifunc.c: Likewise.
47932         * string/test-strcmp-ifunc.c: Likewise.
47933         * string/test-strcpy-ifunc.c: Likewise.
47934         * string/test-strcspn-ifunc.c: Likewise.
47935         * string/test-strlen-ifunc.c: Likewise.
47936         * string/test-strncasecmp-ifunc.c: Likewise.
47937         * string/test-strncat-ifunc.c: Likewise.
47938         * string/test-strncmp-ifunc.c: Likewise.
47939         * string/test-strncpy-ifunc.c: Likewise.
47940         * string/test-strnlen-ifunc.c: Likewise.
47941         * string/test-strpbrk-ifunc.c: Likewise.
47942         * string/test-strrchr-ifunc.c: Likewise.
47943         * string/test-strspn-ifunc.c: Likewise.
47944         * string/test-strstr-ifunc.c: Likewise.
47945
47946 2013-11-26  Ondřej Bílka  <neleai@seznam.cz>
47947
47948         * benchtests/Makefile: Remove ifunc tests.
47949         * benchtests/bench-string.h: Define TEST_IFUNC.
47950         * benchtests/bench-bcopy-ifunc.c: Remove.
47951         * benchtests/bench-bzero-ifunc.c: Likewise.
47952         * benchtests/bench-memccpy-ifunc.c: Likewise.
47953         * benchtests/bench-memchr-ifunc.c: Likewise.
47954         * benchtests/bench-memcmp-ifunc.c: Likewise.
47955         * benchtests/bench-memcpy-ifunc.c: Likewise.
47956         * benchtests/bench-memmem-ifunc.c: Likewise.
47957         * benchtests/bench-memmove-ifunc.c: Likewise.
47958         * benchtests/bench-mempcpy-ifunc.c: Likewise.
47959         * benchtests/bench-memrchr-ifunc.c: Likewise.
47960         * benchtests/bench-memset-ifunc.c: Likewise.
47961         * benchtests/bench-rawmemchr-ifunc.c: Likewise.
47962         * benchtests/bench-stpcpy_chk-ifunc.c: Likewise.
47963         * benchtests/bench-stpcpy-ifunc.c: Likewise.
47964         * benchtests/bench-stpncpy-ifunc.c: Likewise.
47965         * benchtests/bench-strcasecmp-ifunc.c: Likewise.
47966         * benchtests/bench-strcasestr-ifunc.c: Likewise.
47967         * benchtests/bench-strcat-ifunc.c: Likewise.
47968         * benchtests/bench-strchr-ifunc.c: Likewise.
47969         * benchtests/bench-strchrnul-ifunc.c: Likewise.
47970         * benchtests/bench-strcmp-ifunc.c: Likewise.
47971         * benchtests/bench-strcpy_chk-ifunc.c: Likewise.
47972         * benchtests/bench-strcpy-ifunc.c: Likewise.
47973         * benchtests/bench-strcspn-ifunc.c: Likewise.
47974         * benchtests/bench-strlen-ifunc.c: Likewise.
47975         * benchtests/bench-strncasecmp-ifunc.c: Likewise.
47976         * benchtests/bench-strncat-ifunc.c: Likewise.
47977         * benchtests/bench-strncmp-ifunc.c: Likewise.
47978         * benchtests/bench-strncpy-ifunc.c: Likewise.
47979         * benchtests/bench-strnlen-ifunc.c: Likewise.
47980         * benchtests/bench-strpbrk-ifunc.c: Likewise.
47981         * benchtests/bench-strrchr-ifunc.c: Likewise.
47982         * benchtests/bench-strsep-ifunc.c: Likewise.
47983         * benchtests/bench-strspn-ifunc.c: Likewise.
47984         * benchtests/bench-strstr-ifunc.c: Likewise.
47985
47986 2013-11-26  Ondřej Bílka  <neleai@seznam.cz>
47987
47988         * sysdeps/x86_64/dl-tlsdesc.S (_dl_tlsdesc_resolve_hold): Fix typo.
47989
47990 2013-11-26  Ondřej Bílka  <neleai@seznam.cz>
47991
47992         * resolv/netdb.h: Use __glibc_reserved instead __unused.
47993         * rt/aio.h: Likewise.
47994         * sysdeps/gnu/bits/utmp.h: Likewise.
47995         * sysdeps/gnu/bits/utmpx.h: Likewise.
47996         * sysdeps/gnu/netinet/ip_icmp.h: Likewise.
47997         * sysdeps/unix/sysv/linux/bits/ipc.h: Likewise.
47998         * sysdeps/unix/sysv/linux/bits/msq.h: Likewise.
47999         * sysdeps/unix/sysv/linux/bits/sem.h: Likewise.
48000         * sysdeps/unix/sysv/linux/bits/shm.h: Likewise.
48001         * sysdeps/unix/sysv/linux/bits/stat.h: Likewise.
48002         * sysdeps/unix/sysv/linux/kernel_stat.h: Likewise.
48003         * sysdeps/unix/sysv/linux/ntp_gettimex.c: Likewise.
48004         * sysdeps/unix/sysv/linux/powerpc/bits/ipc.h: Likewise.
48005         * sysdeps/unix/sysv/linux/powerpc/bits/msq.h: Likewise.
48006         * sysdeps/unix/sysv/linux/powerpc/bits/sem.h: Likewise.
48007         * sysdeps/unix/sysv/linux/powerpc/bits/shm.h: Likewise.
48008         * sysdeps/unix/sysv/linux/powerpc/bits/stat.h: Likewise.
48009         * sysdeps/unix/sysv/linux/powerpc/powerpc32/kernel_stat.h: Likewise.
48010         * sysdeps/unix/sysv/linux/powerpc/sys/ucontext.h: Likewise.
48011         * sysdeps/unix/sysv/linux/s390/bits/ipc.h: Likewise.
48012         * sysdeps/unix/sysv/linux/s390/bits/msq.h: Likewise.
48013         * sysdeps/unix/sysv/linux/s390/bits/sem.h: Likewise.
48014         * sysdeps/unix/sysv/linux/s390/bits/shm.h: Likewise.
48015         * sysdeps/unix/sysv/linux/s390/bits/stat.h: Likewise.
48016         * sysdeps/unix/sysv/linux/s390/bits/utmp.h: Likewise.
48017         * sysdeps/unix/sysv/linux/s390/bits/utmpx.h: Likewise.
48018         * sysdeps/unix/sysv/linux/s390/s390-32/utmp32.h: Likewise.
48019         * sysdeps/unix/sysv/linux/s390/s390-32/utmpx32.h: Likewise.
48020         * sysdeps/unix/sysv/linux/sh/bits/shm.h: Likewise.
48021         * sysdeps/unix/sysv/linux/sparc/bits/fcntl.h: Likewise.
48022         * sysdeps/unix/sysv/linux/sparc/bits/ipc.h: Likewise.
48023         * sysdeps/unix/sysv/linux/sparc/bits/msq.h: Likewise.
48024         * sysdeps/unix/sysv/linux/sparc/bits/sem.h: Likewise.
48025         * sysdeps/unix/sysv/linux/sparc/bits/shm.h: Likewise.
48026         * sysdeps/unix/sysv/linux/sparc/bits/stat.h: Likewise.
48027         * sysdeps/unix/sysv/linux/sparc/sparc32/kernel_stat.h: Likewise.
48028         * sysdeps/unix/sysv/linux/sparc/sparc64/kernel_stat.h: Likewise.
48029         * sysdeps/unix/sysv/linux/sparc/sparc64/xstatconv.c: Likewise.
48030         * sysdeps/unix/sysv/linux/sparc/sys/procfs.h: Likewise.
48031         * sysdeps/unix/sysv/linux/sys/timex.h: Likewise.
48032         * sysdeps/unix/sysv/linux/x86/bits/msq.h: Likewise.
48033         * sysdeps/unix/sysv/linux/x86/bits/sem.h: Likewise.
48034         * sysdeps/unix/sysv/linux/x86/bits/shm.h: Likewise.
48035         * sysdeps/unix/sysv/linux/x86/bits/stat.h: Likewise.
48036         * sysdeps/unix/sysv/linux/xstatconv.c: Likewise.
48037         * sysdeps/x86/fpu/bits/fenv.h: Likewise.
48038
48039 2013-11-25  Carlos O'Donell  <carlos@redhat.com>
48040
48041         [BZ #16245]
48042         * sysdeps/unix/sysv/linux/sys/ptrace.h (__ptrace_eventcodes):
48043         Rename PTRAVE_EVENT_SECCOMP to PTRACE_EVENT_SECCOMP.
48044
48045 2013-11-25  Joseph Myers  <joseph@codesourcery.com>
48046
48047         * sysdeps/powerpc/nofpu/fenv_libc.h (__fegetround): New macro.
48048         * sysdeps/powerpc/powerpc32/e500/nofpu/fenv_libc.h (__fegetround):
48049         Likewise.
48050
48051 2013-11-25  Adhemerval Zanella  <azanella@linux.vnet.ibm.com>
48052
48053         * sysdeps/ieee754/ldbl-128ibm/e_expl.c (__ieee754_expl): Use
48054         SET_RESTORE_ROUND instead of feholdexcept/fesetround/fesetenv.
48055         * sysdeps/powerpc/fpu/fenv_libc.h (__fegetround): Remove define.
48056         (__fesetround): Remove define.
48057         * sysdeps/powerpc/fpu/fenv_private.h: New file: Inline floating point
48058         rounding and exceptions handling.
48059         * sysdeps/powerpc/fpu/math_private.h: Include fenv_private.h.
48060         * sysdeps/powerpc/fpu/fenv_libc.h (__fe_mask_env): Define as hidden.
48061         (__fe_nomask_env): Likewise.
48062         * sysdeps/ieee754/ldbl-128ibm/s_llrintl.c (__llrintl): Use
48063         __fegetround instead of fegetround.
48064         * sysdeps/ieee754/ldbl-128ibm/s_lrintl.c (__lrintl): Likewise.
48065         * sysdeps/ieee754/ldbl-128ibm/s_rintl.c (__rintl): Likewise.
48066
48067 2013-11-21  Roland McGrath  <roland@hack.frob.com>
48068
48069         * malloc/malloc.c: Move #include <sys/param.h> to the top; comment why
48070         it's there.
48071
48072         * sysdeps/generic/sys/swap.h (swapon): Add FLAGS argument to prototype.
48073
48074 2013-11-21  Meador Inge  <meadori@codesourcery.com>
48075
48076         [BZ #11157]
48077         * crypt/crypt.h (encrypt): Use __glibc_block instead of __block.
48078         (encrypt_r): Likewise.
48079         * malloc/obstack.h (obstack_free): Likewise.
48080         * posix/unistd.h (encrypt): Likewise.
48081
48082 2013-11-21  Guy Martin  <gmsoft@tuxicoman.be>
48083
48084         * sysdeps/generic/ldsodefs.h: Replace DL_DT_INIT_ADDRESS() and
48085         DL_DT_FINI_ADDRESS() macro with DL_CALL_DT_INIT() and
48086         DL_CALL_DT_FINI() that call the functions directly.
48087         * elf/dl-init.c: Use the new DL_CALL_DT_INIT() macro.
48088         * elf/dl-close.c: Use the new DL_CALL_DT_FINI() macro.
48089         * elf/dl-fini.c: Likewise.
48090
48091 2013-11-20  Ondřej Bílka  <neleai@seznam.cz>
48092
48093         * malloc/hooks.c (memalign_check): Add alignment rounding.
48094         * malloc/malloc.c (_mid_memalign): New function.
48095         (__libc_valloc, __libc_pvalloc, __libc_memalign, __posix_memalign):
48096         Implement by calling _mid_memalign.
48097         * manual/probes.texi (Memory Allocation Probes): Remove
48098         memory_valloc_retry and memory_pvalloc_retry.
48099
48100 2013-11-20  Siddhesh Poyarekar  <siddhesh@redhat.com>
48101
48102         * locale/programs/locarchive.c (open_archive): Add const
48103         qualifier to ARCHIVEFNAME and copy default fname to
48104         DEFAULT_FNAME.
48105
48106         [BZ #15601]
48107         * libio/tst-widetext.input: Rename Oriya to Odia.
48108         * locale/iso-639.def: Likewise.
48109
48110         * manual/probes.texi (Mathematical Function Probes): Add
48111         documentation for sin, cos, asin and acos probes.
48112         * sysdeps/ieee754/dbl-64/sincos32.c: Include stap-probe.h.
48113         (__sin32): Add slowasin probe.
48114         (__cos32): Add slowacos probe.
48115         (__mpsin): Add slowsin probe.
48116         (__mpcos): Add slowcos probe.
48117
48118 2013-11-19  Joseph Myers  <joseph@codesourcery.com>
48119
48120         [BZ #15483]
48121         * sysdeps/powerpc/nofpu/sim-full.c (__sim_exceptions): Change to
48122         thread-local __sim_exceptions_thread and global
48123         __sim_exceptions_global.
48124         (__sim_disabled_exceptions): Change to thread-local
48125         __sim_disabled_exceptions_thread and global
48126         __sim_disabled_exceptions_global.
48127         (__sim_round_mode): Change to thread-local __sim_round_mode_thread
48128         and global __sim_round_mode_global.
48129         (__simulate_exceptions): Use thread-local floating-point state and
48130         set global state from it as needed.
48131         * sysdeps/powerpc/nofpu/Versions (GLIBC_PRIVATE): Add
48132         __sim_exceptions_thread, __sim_disabled_exceptions_thread and
48133         __sim_round_mode_thread.
48134         * sysdeps/powerpc/nofpu/soft-supp.h: Include <shlib-compat.h>.
48135         (__sim_exceptions): Change to thread-local __sim_exceptions_thread
48136         and global __sim_exceptions_global.
48137         (__sim_disabled_exceptions): Change to thread-local
48138         __sim_disabled_exceptions_thread and global
48139         __sim_disabled_exceptions_global.
48140         (__sim_round_mode): Change to thread-local __sim_round_mode_thread
48141         and global __sim_round_mode_global.
48142         [SIM_GLOBAL_COMPAT] (SIM_COMPAT_SYMBOL): New macro.
48143         (SIM_SET_GLOBAL): Likewise.
48144         * sysdeps/powerpc/soft-fp/sfp-machine.h
48145         [!(__NO_FPRS__ && !_SOFT_FLOAT)] (FP_ROUNDMODE): Use
48146         __sim_round_mode_thread.
48147         [!(__NO_FPRS__ && !_SOFT_FLOAT)] (FP_TRAPPING_EXCEPTIONS): Use
48148         __sim_disabled_exceptions_thread.
48149         (__sim_exceptions): Change to __sim_exceptions_thread.
48150         (__sim_disabled_exceptions): Change to
48151         __sim_disabled_exceptions_thread.
48152         (__sim_round_mode): Change to __sim_round_mode_thread.
48153         * sysdeps/powerpc/nofpu/fclrexcpt.c (__feclearexcept): Use
48154         thread-local floating-point state and set global state from it as
48155         needed.
48156         * sysdeps/powerpc/nofpu/fedisblxcpt.c (fedisableexcept): Likewise.
48157         * sysdeps/powerpc/nofpu/feenablxcpt.c: Include "soft-supp.h".
48158         (__sim_disabled_exceptions): Remove extern declaration.
48159         (feenableexcept): Use thread-local floating-point state and set
48160         global state from it as needed.
48161         * sysdeps/powerpc/nofpu/fegetenv.c (__sim_exceptions): Remove
48162         extern declaration.
48163         (__sim_disabled_exceptions): Likewise.
48164         (__sim_round_mode): Likewise.
48165         (__fegetenv): Use thread-local floating-point state.
48166         * sysdeps/powerpc/nofpu/fegetexcept.c (fegetexcept): Likewise.
48167         * sysdeps/powerpc/nofpu/fegetround.c (fegetround): Likewise.
48168         * sysdeps/powerpc/nofpu/fesetenv.c (__fesetenv): Use thread-local
48169         floating-point state and set global state from it as needed.
48170         * sysdeps/powerpc/nofpu/fesetround.c (fesetround): Likewise.
48171         * sysdeps/powerpc/nofpu/feupdateenv.c (__feupdateenv): Likewise.
48172         * sysdeps/powerpc/nofpu/fgetexcptflg.c (__fegetexceptflag):
48173         Likewise.
48174         * sysdeps/powerpc/nofpu/fraiseexcpt.c (__feraiseexcept): Likewise.
48175         * sysdeps/powerpc/nofpu/fsetexcptflg.c (__fesetexceptflag):
48176         Likewise.
48177         sysdeps/powerpc/nofpu/ftestexcept.c (fetestexcept): Likewise.
48178         * sysdeps/powerpc/nofpu/get-rounding-mode.h (get_rounding_mode):
48179         Use __sim_round_mode_thread.
48180         * math/test-fenv-tls.c: New file.
48181         * math/Makefile (tests): Add test-fenv-tls.
48182         ($(objpfx)test-fenv-tls): Depend on
48183         $(common-objpfx)nptl/libpthread.so.
48184
48185 2013-11-19  Andreas Schwab  <schwab@suse.de>
48186
48187         * locale/programs/locale.c (show_info): Decode wordarray elements.
48188         * locale/categories.def (LC_MONETARY): Add element for
48189         _NL_MONETARY_CRNCYSTR.
48190         * locale/C-monetary.c (conversion_rate): New variable.
48191         (_nl_C_LC_MONETARY): Use it for _NL_MONETARY_CONVERSION_RATE
48192         element.
48193
48194 2013-11-18  Chris Metcalf  <cmetcalf@tilera.com>
48195
48196         * math/test-fpucw-ieee.c [!defined _FPU_IEEE] (FPU_CONTROL):
48197         Omit definition of FPU_CONTROL and use default if no _FPU_IEEE.
48198
48199 2013-11-18  Paul Pluzhnikov  <ppluzhnikov@google.com>
48200
48201         * elf/Makefile (tst-auxv): New test.
48202         * elf/tst-auxv.c: New
48203         * elf/rtld.c (dl_main): Adjust AT_EXECFN
48204
48205 2013-11-18  Joseph Myers  <joseph@codesourcery.com>
48206
48207         * include/libc-symbols.h (__hidden_proto): Add argument "thread".
48208         (hidden_proto): Caller changed.
48209         (hidden_tls_proto): New macro.
48210         (libc_hidden_tls_proto): Likewise.
48211         (rtld_hidden_tls_proto): Likewise.
48212         (libm_hidden_tls_proto): Likewise.
48213         (libresolv_hidden_tls_proto): Likewise.
48214         (librt_hidden_tls_proto): Likewise.
48215         (libdl_hidden_tls_proto): Likewise.
48216         (libnss_files_hidden_tls_proto): Likewise.
48217         (libnsl_hidden_tls_proto): Likewise.
48218         (libnss_nisplus_hidden_tls_proto): Likewise.
48219         (libutil_hidden_tls_proto): Likewise.
48220
48221 2013-11-18  Ondřej Bílka  <neleai@seznam.cz>
48222
48223         [BZ #10253]
48224         * elf/dl-load.c (fillin_rpath): Add linkmap parameter and expand path.
48225         (decompose_rpath): Defer expansion to fillin_rpath.
48226         (_dl_init_paths): Pass linkmap to fillin_rpath.
48227
48228 2013-11-18  Rajalakshmi Srinivasaraghavan  <raji@linux.vnet.ibm.com>
48229
48230         * benchtests/Makefile: Add strsep.
48231         * benchtests/bench-strsep.c: New file: strsep benchtest.
48232         * benchtests/bench-strsep-ifunc.c: New file: strsep benchtest.
48233
48234 2013-11-18  Andreas Schwab  <schwab@suse.de>
48235
48236         * locale/programs/locale.c (show_info) [case byte]: Check for
48237         '\377' instead of '\177'.
48238         * locale/C-monetary.c (not_available): Always use "\377".
48239         * stdlib/strfmon_l.c (__vstrfmon_l): Use -2 as marker for
48240         unspecified p_sign_posn and n_sign_posn.  Check for '\377' to
48241         detect unavailable sign_posn locale elements.
48242         * locale/localeconv.c (__localeconv): For grouping and
48243         mon_grouping handle "\177" and "\377" like no grouping.
48244         (INT_ELEM): New macro.  Use it to set all numeric members.
48245         * locale/programs/ld-monetary.c (monetary_read)
48246         <tok_mon_grouping>: Normalize single -1 to the empty string.
48247         * locale/programs/ld-numeric.c (numeric_read) <tok_grouping>:
48248         Likewise.
48249
48250 2013-11-07  Ondřej Bílka  <neleai@seznam.cz>
48251
48252         [BZ #16055]
48253         * stdio-common/vfscanf.c (_IO_vfscanf_internal): Limit width
48254         when we match (nil).
48255         * stdio-common/tst-sscanf.c (struct test): Add testcase.
48256
48257 2013-11-16  Joseph Myers  <joseph@codesourcery.com>
48258
48259         * math/libm-test.inc (TEST_NAN_SIGN): New macro.
48260         (NO_TEST_INLINE): Update value.
48261         (ERRNO_UNCHANGED): Likewise.
48262         (ERRNO_EDOM): Likewise.
48263         (ERRNO_ERANGE): Likewise.
48264         (IGNORE_RESULT): Likewise.
48265         (check_float_internal): Check signs of NaN results if
48266         TEST_NAN_SIGN used.
48267         (check_complex): Pass TEST_NAN_SIGN flag through to second
48268         check_float_internal call.
48269         (copysign_test_data): Add tests with quiet NaNs as second
48270         argument.  Use TEST_NAN_SIGN.
48271         (fabs_test_data): Add test of negative quiet NaN argument.  Use
48272         TEST_NAN_SIGN.
48273         (signbit_test_data): Add tests of quiet NaN argument.
48274         * math/gen-libm-test.pl (parse_args): Handle TEST_NAN_SIGN.
48275
48276         * math/gen-libm-test.pl (show_exceptions): Take extra argument
48277         $ignore_result.
48278         (parse_args): Handle function results specified as IGNORE.
48279         * math/libm-test.inc (IGNORE_RESULT): New macro.
48280         (check_float_internal): Do not check numerical result if flag
48281         IGNORE_RESULT set.
48282         (check_complex): Pass through IGNORE_RESULT to second
48283         check_float_internal call.
48284         (check_int): Do not check numerical result if flag IGNORE_RESULT
48285         set.
48286         (check_long): Likewise.
48287         (check_bool): Likewise.
48288         (check_longlong): Likewise.
48289         (lrint_test_data): Add tests of infinite and NaN arguments.
48290         (lrint_tonearest_test_data): Likewise.
48291         (lrint_towardzero_test_data): Likewise.
48292         (lrint_downward_test_data): Likewise.
48293         (lrint_upward_test_data): Likewise.
48294         (llrint_test_data): Likewise.
48295         (llrint_tonearest_test_data): Likewise.
48296         (llrint_towardzero_test_data): Likewise.
48297         (llrint_downward_test_data): Likewise.
48298         (llrint_upward_test_data): Likewise.
48299         (lround_test_data): Likewise.
48300         (llround_test_data): Likewise.
48301
48302         * math/libm-test.inc (NO_TEST_INLINE): New macro.
48303         (ERRNO_UNCHANGED): Update value.
48304         (ERRNO_EDOM): Likewise.
48305         (ERRNO_ERANGE): Likewise.
48306         (NO_TEST_INLINE_FLOAT): New macro.
48307         (NO_TEST_INLINE_DOUBLE): Likewise.
48308         (enable_test): New function.
48309         (RUN_TEST_f_f): Check enable_test before running test.
48310         (RUN_TEST_2_f): Likewise.
48311         (RUN_TEST_fff_f): Likewise.
48312         (RUN_TEST_c_f): Likewise.
48313         (RUN_TEST_f_f1): Likewise.
48314         (RUN_TEST_fF_f1): Likewise.
48315         (RUN_TEST_fI_f1): Likewise.
48316         (RUN_TEST_ffI_f1): Likewise.
48317         (RUN_TEST_c_c): Likewise.
48318         (RUN_TEST_cc_c): Likewise.
48319         (RUN_TEST_f_i): Likewise.
48320         (RUN_TEST_f_i_tg): Likewise.
48321         (RUN_TEST_ff_i_tg): Likewise.
48322         (RUN_TEST_f_b): Likewise.
48323         (RUN_TEST_f_b_tg): Likewise.
48324         (RUN_TEST_f_l): Likewise.
48325         (RUN_TEST_f_L): Likewise.
48326         (RUN_TEST_fFF_11): Likewise.
48327         (asinh_test_data): Use NO_TEST_INLINE instead of [!TEST_INLINE]
48328         conditionals.
48329         (cosh_test_data): Likewise.
48330         (exp_test_data): Likewise.
48331         (expm1_test_data): Likewise.
48332         (hypot_test_data): Likewise.
48333         (pow_test_data): Likewise.
48334         (sinh_test_data): Likewise.
48335         (tanh_test_data): Likewise.
48336         * math/gen-libm-test.pl (parse_args): Allow NO_TEST_INLINE as
48337         flags argument.
48338
48339         * libm-test.inc (acos_test_data): Disallow inexact exceptions for
48340         tests with quiet NaN input and output.
48341         (acosh_test_data): Likewise.
48342         (asin_test_data): Likewise.
48343         (asinh_test_data): Likewise.
48344         (atan_test_data): Likewise.
48345         (atanh_test_data): Likewise.
48346         (atan2_test_data): Likewise.
48347         (cbrt_test_data): Likewise.
48348         (cos_test_data): Likewise.
48349         (cosh_test_data): Likewise.
48350         (erf_test_data): Likewise.
48351         (erfc_test_data): Likewise.
48352         (exp_test_data): Likewise.
48353         (exp10_test_data): Likewise.
48354         (exp2_test_data): Likewise.
48355         (expm1_test_data): Likewise.
48356         (hypot_test_data): Likewise.
48357         (j0_test_data): Likewise.
48358         (j1_test_data): Likewise.
48359         (jn_test_data): Likewise.
48360         (lgamma_test_data): Likewise.
48361         (log_test_data): Likewise.
48362         (log10_test_data): Likewise.
48363         (log1p_test_data): Likewise.
48364         (log2_test_data): Likewise.
48365         (pow_test_data): Likewise.
48366         (scalb_test_data): Likewise.
48367         (sin_test_data): Likewise.
48368         (sincos_test_data): Likewise.
48369         (sinh_test_data): Likewise.
48370         (tan_test_data): Likewise.
48371         (tanh_test_data): Likewise.
48372         (tgamma_test_data): Likewise.
48373         (y0_test_data): Likewise.
48374         (y1_test_data): Likewise.
48375         (yn_test_data): Likewise.
48376
48377         [BZ #16167]
48378         * sysdeps/i386/fpu/e_pow.S (__ieee754_pow): Check for first
48379         argument being NaN and avoid computations with second argument in
48380         that case.
48381         * sysdeps/i386/fpu/e_powf.S (__ieee754_powf): Likewise.
48382         * sysdeps/i386/fpu/e_powl.S (__ieee754_powl): Likewise.
48383         * sysdeps/x86_64/fpu/e_powl.S (__ieee754_powl): Likewise.
48384
48385 2013-11-15  Arun Kumar Pyasi <arun@chitwanix.com>
48386
48387         * locale/iso-639.def: Add Chitwani Tharu (the).
48388
48389 2013-11-14  Andreas Schwab  <schwab@suse.de>
48390
48391         * locale/C-address.c (_nl_C_LC_ADDRESS): Set country_num to zero
48392         word instead of empty string.
48393
48394 2013-11-13  Adhemerval Zanella  <azanella@linux.vnet.ibm.com>
48395
48396         * sysdeps/unix/sysv/linux/powerpc/powerpc32/fpu/fe_nomask.c
48397         (__fe_nomask_env): Fir compat symbol to be remove for GLIBC_2.19.
48398         * sysdeps/unix/sysv/linux/powerpc/powerpc64/fpu/fe_nomask.c
48399         (__fe_nomask_env): Likewise.
48400
48401 2013-11-13  Steve Ellcey  <sellcey@mips.com>
48402
48403         * benchtests/bench-timing.h: Include time.h.
48404
48405 2013-11-13  H.J. Lu  <hongjiu.lu@intel.com>
48406
48407         [BZ #15997]
48408         * sysdeps/unix/sysv/linux/configure.ac (arch_minimum_kernel): Set
48409         to 3.4.0 for x32.
48410         * sysdeps/unix/sysv/linux/configure: Regenerated.
48411
48412 2013-11-13  Joseph Myers  <joseph@codesourcery.com>
48413
48414         [BZ #16151]
48415         * stdlib/strtod_l.c (round_and_return): Do not consider
48416         retval[RETURN_LIBM_SIZE - 1] when determining more_bits for an
48417         exponent one less than half the least subnormal exponent.
48418         * stdlib/test-strtod-round-data: Add more tests.
48419         * stdlib/tst-strtod-round.c (tests): Regenerated.
48420
48421 2013-11-13  Adhemerval Zanella  <azanella@linux.vnet.ibm.com>
48422
48423         [BZ #14143]
48424         * sysdeps/powerpc/bits/fenv.h (__fe_nomask_env): Remove declaration.
48425         (__fe_mask_env): Likewise.
48426         * sysdeps/powerpc/fpu/fenv_libc.h (__fe_nomask_env): Remove
48427         libm_hidden_proto and add function prototype.
48428         (__fe_mask_env): Add function prototype.
48429         * sysdeps/unix/sysv/linux/powerpc/powerpc32/fpu/fe_nomask.c
48430         (__fe_nomask_env): Add compat symbol for GLIBC_2.1.
48431         * sysdeps/unix/sysv/linux/powerpc/powerpc64/fpu/fe_mask.c
48432         (__fe_mask_env): Remove compiler warnings regarding ununsed variables.
48433         * sysdeps/unix/sysv/linux/powerpc/powerpc64/fpu/fe_nomask.c
48434         (__fe_nomask_env): Add compat symbol for GLIBC_2.3.
48435
48436 2013-11-13  Marcus Shawcroft  <marcus.shawcroft@linaro.org>
48437
48438         * elf/dl-lookup.c (_dl_lookup_symbol_x): If UNDEF_MAP is false
48439         set reference_name to "" to avoid passing NULL to DSO_FILENAME.
48440
48441 2013-11-13  Marcus Shawcroft  <marcus.shawcroft@linaro.org>
48442
48443         * elf/tlsdeschtab.h (_dl_make_tlsdesc_dynamic): Handle failure
48444         of htab_find_slot().
48445
48446 2013-11-11  David S. Miller  <davem@davemloft.net>
48447
48448         [BZ #16150]
48449         * sysdeps/sparc/sparc64/multiarch/add_n.S: Resolve to the correct generic
48450         symbol in the non-vis3 case in static builds.
48451         * sysdeps/sparc/sparc64/multiarch/addmul_1.S: Likewise.
48452         * sysdeps/sparc/sparc64/multiarch/mul_1.S: Likewise.
48453         * sysdeps/sparc/sparc64/multiarch/sub_n.S: Likewise.
48454         * sysdeps/sparc/sparc64/multiarch/submul_1.S: Likewise.
48455
48456 2013-11-11  Jan Kratochvil  <jan.kratochvil@redhat.com>
48457
48458         [BZ #387]
48459         * elf/dl-object.c (_dl_new_object): Initialize L_NAME from NEWNAME if
48460         it is empty.
48461
48462 2013-11-11  Adhemerval Zanella  <azanella@linux.vnet.ibm.com>
48463
48464         * benchtests/Makefile: Add bench-strtod.
48465         * benchtests/bench-strtod.c: New file: strtod benchtest
48466
48467 2013-11-11  Andreas Schwab  <schwab@suse.de>
48468
48469         [BZ #16153]
48470         * nscd/nscd_getserv_r.c (__nscd_getservbyport_r): Don't include
48471         terminating NUL in key length.
48472
48473 2013-11-08  Adhemerval Zanella  <azanella@linux.vnet.ibm.com>
48474
48475         * sysdeps/unix/sysv/linux/powerpc/bits/libc-vdso.h (VDSO_IFUNC_RET):
48476         Add artificial ODP entry for vDSO symbol for PPC64.
48477         * sysdeps/unix/sysv/linux/powerpc/gettimeofday.c: Adjust includes.
48478         * sysdeps/unix/sysv/linux/powerpc/time.c: Likewise.
48479
48480 2013-11-07  Ondřej Bílka  <neleai@seznam.cz>
48481
48482         [BZ #15374]
48483         * nss/getent.c (services_keys): Recognize services starting with digit.
48484
48485 2013-11-06  David S. Miller  <davem@davemloft.net>
48486
48487         [BZ #15985]
48488         * sysdeps/sparc/sparc32/fpu/s_fdim.S (__fdim): Do not use fnegd
48489         on pre-v9 cpus, use a fnegs+fmovs sequence instead.
48490
48491 2013-11-06  Will Newton  <will.newton@linaro.org>
48492
48493         * manual/memory.texi (Malloc Examples): Remove register
48494         keyword from examples.
48495
48496 2013-11-04  Chris Leonard  <cjl@sugarlabs.org>
48497
48498         * locale/iso-639.def: Correct Walaita (wal) and add Unami Delaware (unm).
48499
48500 2013-11-04  Joseph Myers  <joseph@codesourcery.com>
48501
48502         [BZ #6981]
48503         * include/stdc-predef.h [__GCC_IEC_559] (__STDC_IEC_559__): Define
48504         depending on [__GCC_IEC_559 > 0].
48505         [__GCC_IEC_559_COMPLEX] (__STDC_IEC_559_COMPLEX__): Define
48506         depending on [__GCC_IEC_559_COMPLEX > 0].
48507
48508 2013-11-03  Chris Leonard  <cjl@sugarlabs.org>
48509
48510         * locale/iso-639.def: Add Quechua, Southern (quz) and Silesian (szl)
48511         to iso-639.def.
48512
48513 2013-11-03  Ondřej Bílka  <neleai@seznam.cz>
48514
48515         * elf/rtld.c: Remove unused NONTLS_INIT_TP.
48516
48517 2013-11-01  Ondřej Bílka  <neleai@seznam.cz>
48518
48519         [BZ #16112]
48520         * malloc/malloc (malloc_info): Do not handle first bin as
48521         special case.
48522
48523 2013-11-01  Chris Leonard  <cjl@sugarlabs.org>
48524
48525         * locale/iso-639.def: Add Central Nahuatl (nhn).
48526
48527 2013-11-01  Bruno Haible  <bruno@clisp.org>
48528
48529         [BZ #7003]
48530         * manual/math.texi (BSD Random): Specify range upper bound as
48531         in POSIX.
48532
48533 2013-10-31  Chris Leonard  <cjl@sugarlabs.org>
48534
48535         * locale/iso-639.def: Add Meadow Mari (mhr).
48536
48537 2013-10-31  Ondřej Bílka  <neleai@seznam.cz>
48538
48539         [BZ #14752], [BZ #15763]
48540         * sysdeps/unix/sysv/linux/shm_open.c (shm_open, shm_unlink):
48541         Validate name.
48542         * rt/tst_shm.c: Add test for escaping directory.
48543
48544 2013-10-31  Andreas Schwab  <schwab@suse.de>
48545
48546         [BZ #15917]
48547         * stdio-common/vfscanf.c (_IO_vfwscanf): Handle leading '0' not
48548         followed by 'x' as part of digit sequence.
48549         * stdio-common/tst-sscanf.c (double_tests2): New tests.
48550
48551 2013-10-31  Marc-Antoine Perennou <Marc-Antoine@Perennou.com>
48552
48553         [BZ #16037]
48554         * configure.ac: allow GNU Make 4.0 and greater.
48555         * configure: Regenerated.
48556
48557 2013-10-30  Will Newton  <will.newton@linaro.org>
48558
48559         [BZ #16038]
48560         * malloc/hooks.c (memalign_check): Limit alignment to the
48561         maximum representable power of two.
48562         * malloc/malloc.c (__libc_memalign): Likewise.
48563         * malloc/tst-memalign.c (do_test): Add test for very
48564         large alignment values.
48565         * malloc/tst-posix_memalign.c (do_test): Likewise.
48566
48567 2013-10-30  Ondřej Bílka  <neleai@seznam.cz>
48568
48569         [BZ #11087]
48570         * malloc/malloc.c (sysmalloc): Compute statistics atomically.
48571         (munmap_chunk): Likewise.
48572         (mremap_chunk): Likewise.
48573
48574 2013-10-30  Ondřej Bílka  <neleai@seznam.cz>
48575
48576         [BZ #15799]
48577         * stdlib/div.c (div): Remove obsolete code.
48578         * stdlib/ldiv.c (ldiv): Likewise.
48579         * stdlib/lldiv.c (lldiv): Likewise.
48580
48581 2013-10-30  Siddhesh Poyarekar  <siddhesh@redhat.com>
48582
48583         [BZ #16071]
48584         * nss/nss_files/files-XXX.c (get_contents_ret): New
48585         enumerator.
48586         (get_contents): New function.
48587         (internal_getent): Use it.  Expand size of LINEBUFLEN.
48588
48589 2013-10-30  Mike Frysinger  <vapier@gentoo.org>
48590
48591         * configure.in: Moved to ...
48592         * configure.ac: ... here. Change reference to configure.in
48593         to configure.ac.
48594         * sysdeps/arm/preconfigure.ac: ... here.
48595         configure.in to configure.ac.
48596         * sysdeps/gnu/configure.in: Moved to ...
48597         * sysdeps/gnu/configure.ac: ... here.
48598         * sysdeps/i386/configure.in: Moved to ...
48599         * sysdeps/i386/configure.ac: ... here.
48600         * sysdeps/ieee754/ldbl-opt/configure.in: Moved to ...
48601         * sysdeps/ieee754/ldbl-opt/configure.ac: ... here.
48602         * sysdeps/mach/configure.in: Moved to ...
48603         * sysdeps/mach/configure.ac: ... here.
48604         * sysdeps/mach/hurd/configure.in: Moved to ...
48605         * sysdeps/mach/hurd/configure.ac: ... here.
48606         * sysdeps/powerpc/configure.in: Moved to ...
48607         * sysdeps/powerpc/configure.ac: ... here.
48608         * sysdeps/powerpc/powerpc32/configure.in: Moved to ...
48609         * sysdeps/powerpc/powerpc32/configure.ac: ... here.
48610         * sysdeps/powerpc/powerpc64/configure.in: Moved to ...
48611         * sysdeps/powerpc/powerpc64/configure.ac: ... here.
48612         * sysdeps/s390/s390-32/configure.in: Moved to ...
48613         * sysdeps/s390/s390-32/configure.ac: ... here.
48614         * sysdeps/s390/s390-64/configure.in: Moved to ...
48615         * sysdeps/s390/s390-64/configure.ac: ... here.
48616         * sysdeps/sh/configure.in: Moved to ...
48617         * sysdeps/sh/configure.ac: ... here.
48618         * sysdeps/sparc/configure.in: Moved to ...
48619         * sysdeps/sparc/configure.ac: ... here.
48620         * sysdeps/unix/sysv/linux/configure.in: Moved to ...
48621         * sysdeps/unix/sysv/linux/configure.ac: ... here.
48622         * sysdeps/unix/sysv/linux/powerpc/configure.in: Moved to ...
48623         * sysdeps/unix/sysv/linux/powerpc/configure.ac: ... here.
48624         * sysdeps/x86_64/configure.in: Moved to ...
48625         * sysdeps/x86_64/configure.ac: ... here.
48626         * sysdeps/x86_64/preconfigure.in: Moved to ...
48627         * sysdeps/x86_64/preconfigure.ac: ... here.
48628         * aclocal.m4: Change reference to configure.in to configure.ac.
48629         * config.h.in: Likewise.
48630         * manual/install.texi: Likewise.
48631         * manual/maint.texi: Likewise.
48632         * Makefile: Likewise.
48633         * malloc/Makefile: Likewise.
48634         * nscd/Makefile: Likewise.
48635         * Makeconfig: Change reference to configure.in and
48636         preconfigure.in to configure.ac and preconfigure.ac
48637         respectively.
48638         * INSTALL: Regenerated.
48639         * configure: Likewise.
48640         * sysdeps/gnu/configure: Likewise.
48641         * sysdeps/i386/configure: Likewise.
48642         * sysdeps/ieee754/ldbl-opt/configure: Likewise.
48643         * sysdeps/mach/configure: Likewise.
48644         * sysdeps/mach/hurd/configure: Likewise.
48645         * sysdeps/powerpc/configure: Likewise.
48646         * sysdeps/powerpc/powerpc32/configure: Likewise.
48647         * sysdeps/powerpc/powerpc64/configure: Likewise.
48648         * sysdeps/s390/s390-32/configure: Likewise.
48649         * sysdeps/s390/s390-64/configure: Likewise.
48650         * sysdeps/sh/configure: Likewise.
48651         * sysdeps/sparc/configure: Likewise.
48652         * sysdeps/unix/sysv/linux/configure: Likewise.
48653         * sysdeps/unix/sysv/linux/powerpc/configure: Likewise.
48654         * sysdeps/x86_64/configure: Likewise.
48655         * sysdeps/x86_64/preconfigure: Likewise.
48656
48657 2013-10-29  Andreas Schwab  <schwab@suse.de>
48658
48659         * stdio-common/Makefile (tst-swscanf-ENV): Define.
48660
48661 2013-10-28  Siddhesh Poyarekar  <siddhesh@redhat.com>
48662
48663         * benchtests/pow-inputs: Add new inputs.
48664
48665         * benchtests/exp-inputs: Add new inputs.
48666
48667         * sysdeps/ieee754/dbl-64/sincos32.c (__sin32): Consolidate
48668         conditional check for return value.
48669         (__cos32): Likewise.
48670
48671 2013-10-26  Adhemerval Zanella  <azanella@linux.vnet.ibm.com>
48672
48673         * sysdeps/powerpc/powerpc64/strcpy.S (strcpy): Add word load/store
48674         to provide a boost for large inputs with word alignment.
48675         * sysdeps/powerpc/powerpc64/stpcpy.S (__stpcpy): Rewrite
48676         implementation based on optimized PPC64 strcpy.
48677         * sysdeps/powerpc/powerpc64/power7/strcpy.S: New file: optimized
48678         strcpy for PPC64/POWER7 based on both doubleword and word load/store.
48679         * sysdeps/powerpc/powerpc64/power7/stpcpy.S: New file: optimized
48680         stpcpy for PPC64/POWER7 based on PPC64/POWER7 strcpy.
48681
48682 2013-10-25   Ondřej Bílka  <neleai@seznam.cz>
48683
48684         [BZ #2801]
48685         * manual/socket.texi (Host Names): Fix gethostbyname_r example.
48686
48687 2013-10-25   Ondřej Bílka  <neleai@seznam.cz>
48688
48689         [BZ #14876]
48690         * time/strptime_l.c (__strptime_internal): 14876 Read timezone entry.
48691         * time/tst-strptime.c (day_tests): Add testcase.
48692
48693 2013-10-25   Ondřej Bílka  <neleai@seznam.cz>
48694
48695         [BZ #14029]
48696         * manual/pattern.texi: Acknowledge that fnmatch can fail.
48697
48698 2013-10-25  Fabrice Bauzac  <fbauzac@debian71.nce.amadeus.net>
48699
48700         [BZ #16074]
48701         * manual/llio.texi (Memory-mapped I/O): Indicate that mmap returns
48702         MAP_FAILED on error.
48703
48704 2013-10-25  Siddhesh Poyarekar  <siddhesh@redhat.com>
48705
48706         [BZ #16072]
48707         * sysdeps/posix/getaddrinfo.c (gethosts): Allocate tmpbuf on
48708         heap for large requests.
48709
48710 2013-10-25  Aurelien Jarno  <aurelien@aurel32.net>
48711
48712         [BZ #9954]
48713         * sysdeps/posix/getaddrinfo.c (rfc3484_sort): do not assign native
48714         result if the result has no associated interface.
48715         * sysdeps/posix/getaddrinfo.c (getaddrinfo): correctly detect
48716         interface for all 127.X.Y.Z addresses.
48717
48718 2013-10-24  Chris Leonard  <cjl@sugarlabs.org>
48719
48720         * locale/iso-639.def: Add Ligurian (lij)
48721
48722 2013-10-21  Ondřej Bílka  <neleai@seznam.cz>
48723
48724         [BZ #15825]
48725         * sunrpc/rpc_main.c: Document rpcgen -5.
48726
48727 2013-10-19  Michael Stahl  <mstahl@redhat.com>
48728
48729         * elf/rtld.c (do_preload): Print the reason why preloading failed.
48730
48731 2013-10-19  Ondřej Bílka  <neleai@seznam.cz>
48732
48733         [BZ #10278]
48734         * posix/glob.c: Match only directories when trailing slash is present.
48735         * posix/tst-gnuglob.c (my_opendir): Do not open files.
48736         (main): Add testcase.
48737
48738 2013-10-19  Ondřej Bílka  <neleai@seznam.cz>
48739
48740         [BZ #15670]
48741         * time/tzfile.c (__tzfile_read): Replace alloca with malloc.
48742
48743 2013-10-18  Carlos O'Donell  <carlos@redhat.com>
48744
48745         * manual/crypt.texi (Cryptographic Functions): Using SunRPC and
48746         AUTH_DES will prevent FIPS 140-2 compliance. Add vindex for
48747         AUTH_DES and cindex for FIPS 140-2.
48748         (DES Encryption): Add cindex FIPS 46-3.
48749
48750         * locale/locarchive.h (struct locarhandle): Add fname.
48751         * locale/programs/localedef.c (main): Pass ARGV[remaining]
48752         if an optional argument was specified to --list-archive,
48753         otherwise NULL.
48754         * locale/programs/locarchive.c (show_archive_content): Take new
48755         argument fname and pass it via ah.fname to open_archive.
48756         * locale/programs/localedef.h: Update decl.
48757         (open_archive): If AH->fname is non-null, open that file
48758         rather than the default file name, and don't ignore ENOENT.
48759         (create_archive): Set AH.fname to NULL.
48760         (delete_locales_from_archive): Likewise.
48761         (add_locales_to_archive): Likewise.
48762         * locale/programs/locfile.c (write_all_categories): Likewise.
48763
48764 2013-10-18  Joseph Myers  <joseph@codesourcery.com>
48765             Aldy Hernandez  <aldyh@redhat.com>
48766
48767         * sysdeps/powerpc/powerpc32/e500/nofpu/Makefile: New file.
48768         * sysdeps/powerpc/powerpc32/e500/nofpu/fclrexcpt.c: Likewise.
48769         * sysdeps/powerpc/powerpc32/e500/nofpu/fe_note_change.c: Likewise.
48770         * sysdeps/powerpc/powerpc32/e500/nofpu/fedisblxcpt.c: Likewise.
48771         * sysdeps/powerpc/powerpc32/e500/nofpu/feenablxcpt.c: Likewise.
48772         * sysdeps/powerpc/powerpc32/e500/nofpu/fegetenv.c: Likewise.
48773         * sysdeps/powerpc/powerpc32/e500/nofpu/fegetexcept.c: Likewise.
48774         * sysdeps/powerpc/powerpc32/e500/nofpu/fegetround.c: Likewise.
48775         * sysdeps/powerpc/powerpc32/e500/nofpu/feholdexcpt.c: Likewise.
48776         * sysdeps/powerpc/powerpc32/e500/nofpu/fenv_const.c: Likewise.
48777         * sysdeps/powerpc/powerpc32/e500/nofpu/fenv_libc.h: Likewise.
48778         * sysdeps/powerpc/powerpc32/e500/nofpu/fesetenv.c: Likewise.
48779         * sysdeps/powerpc/powerpc32/e500/nofpu/fesetround.c: Likewise.
48780         * sysdeps/powerpc/powerpc32/e500/nofpu/feupdateenv.c: Likewise.
48781         * sysdeps/powerpc/powerpc32/e500/nofpu/fexcepts_from_prctl.c:
48782         Likewise.
48783         * sysdeps/powerpc/powerpc32/e500/nofpu/fexcepts_from_spe.c:
48784         Likewise.
48785         * sysdeps/powerpc/powerpc32/e500/nofpu/fexcepts_to_prctl.c:
48786         Likewise.
48787         * sysdeps/powerpc/powerpc32/e500/nofpu/fexcepts_to_spe.c:
48788         Likewise.
48789         * sysdeps/powerpc/powerpc32/e500/nofpu/fgetexcptflg.c: Likewise.
48790         * sysdeps/powerpc/powerpc32/e500/nofpu/fraiseexcept-soft.c:
48791         Likewise.
48792         * sysdeps/powerpc/powerpc32/e500/nofpu/fraiseexcpt.c: Likewise.
48793         * sysdeps/powerpc/powerpc32/e500/nofpu/fsetexcptflg.c: Likewise.
48794         * sysdeps/powerpc/powerpc32/e500/nofpu/ftestexcept.c: Likewise.
48795         * sysdeps/powerpc/powerpc32/e500/nofpu/get-rounding-mode.h:
48796         Likewise.
48797         * sysdeps/powerpc/powerpc32/e500/nofpu/s_fabsf.S: Likewise.
48798         * sysdeps/powerpc/powerpc32/e500/nofpu/spe-raise.c: Likewise.
48799         * sysdeps/powerpc/preconfigure: Likewise.
48800         * sysdeps/unix/sysv/linux/powerpc/powerpc32/e500/nofpu/Implies:
48801         Likewise.
48802         * sysdeps/powerpc/nofpu/soft-supp.h [__NO_FPRS__ && !_SOFT_FLOAT]:
48803         Replace contents of file by #include of <fenv_libc.h>.
48804         * sysdeps/powerpc/soft-fp/sfp-machine.h
48805         [__NO_FPRS__ && !_SOFT_FLOAT]: Include <fenv_libc.h>, <sysdep.h>
48806         and <sys/prctl.h>.
48807         [__NO_FPRS__ && !_SOFT_FLOAT] (__feraiseexcept_soft): Declare.
48808         [__NO_FPRS__ && !_SOFT_FLOAT] (FP_EX_INEXACT): Define macro.
48809         [__NO_FPRS__ && !_SOFT_FLOAT] (FP_EX_INVALID): Likewise.
48810         [__NO_FPRS__ && !_SOFT_FLOAT] (FP_EX_DIVZERO): Likewise.
48811         [__NO_FPRS__ && !_SOFT_FLOAT] (FP_EX_UNDERFLOW): Likewise.
48812         [__NO_FPRS__ && !_SOFT_FLOAT] (FP_EX_OVERFLOW): Likewise.
48813         [__NO_FPRS__ && !_SOFT_FLOAT] (_FP_DECL_EX): Likewise.
48814         [__NO_FPRS__ && !_SOFT_FLOAT] (FP_INIT_ROUNDMODE): Likewise.
48815         [__NO_FPRS__ && !_SOFT_FLOAT] (FP_INIT_EXCEPTIONS): Likewise.
48816         [__NO_FPRS__ && !_SOFT_FLOAT] (FP_HANDLE_EXCEPTIONS): Likewise.
48817         [__NO_FPRS__ && !_SOFT_FLOAT] (FP_ROUNDMODE): Likewise.
48818         [__NO_FPRS__ && !_SOFT_FLOAT] (FP_TRAPPING_EXCEPTIONS): Likewise.
48819         * sysdeps/unix/sysv/linux/powerpc/powerpc32/nofpu/nptl/localplt.data:
48820         Allow copysignl PLT reference to be missing.
48821
48822 2013-10-18  Richard Sandiford  <richard@codesourcery.com>
48823             Joseph Myers  <joseph@codesourcery.com
48824
48825         [BZ #15948]
48826         * locale/programs/ld-collate.c (new_element): Handle <U0000> as a
48827         single character.
48828         (add_to_tablewc): Assert sequence of wide characters is nonempty.
48829
48830 2013-10-18  Siddhesh Poyarekar  <siddhesh@redhat.com>
48831
48832         * elf/tst-tls-dlinfo.c: Don't include tls.h.
48833         * elf/tst-tls1.c: Likewise.
48834         * elf/tst-tls10.h: Likewise.
48835         * elf/tst-tls14.c: Likewise.
48836         * elf/tst-tls2.c: Likewise.
48837         * elf/tst-tls3.c: Likewise.
48838         * elf/tst-tls4.c: Likewise.
48839         * elf/tst-tls5.c: Likewise.
48840         * elf/tst-tls6.c: Likewise.
48841         * elf/tst-tls7.c: Likewise.
48842         * elf/tst-tls8.c: Likewise.
48843         * elf/tst-tls9.c: Likewise.
48844         * elf/tst-tlsmod1.c: Likewise.
48845         * elf/tst-tlsmod13.c: Likewise.
48846         * elf/tst-tlsmod13a.c: Likewise.
48847         * elf/tst-tlsmod14a.c: Likewise.
48848         * elf/tst-tlsmod16a.c: Likewise.
48849         * elf/tst-tlsmod16b.c: Likewise.
48850         * elf/tst-tlsmod2.c: Likewise.
48851         * elf/tst-tlsmod3.c: Likewise.
48852         * elf/tst-tlsmod4.c: Likewise.
48853         * elf/tst-tlsmod5.c: Likewise.
48854         * elf/tst-tlsmod6.c: Likewise.
48855
48856 2013-10-18  Ondřej Bílka  <neleai@seznam.cz>
48857
48858         [BZ #12486]
48859         * malloc/malloc.c: remove checks for statistics.
48860
48861 2013-10-17  Ondřej Bílka  <neleai@seznam.cz>
48862
48863         [BZ #15277]
48864         * inet/inet_net.c (inet_network): Detect additional invalid strings.
48865         * inet/tst-network.c: Add testcase.
48866
48867 2013-10-17  Andreas Schwab  <schwab@suse.de>
48868
48869         [BZ #15218]
48870         * sysdeps/posix/getaddrinfo.c (gaih_inet): Don't use gethostbyaddr
48871         to determine canonical name.
48872
48873 2013-10-17  Ondřej Bílka  <neleai@seznam.cz>
48874
48875         * sysdeps/ieee754/dbl-64/dbl2mpn.c: Fix formatting.
48876         * sysdeps/ieee754/dbl-64/dla.h: Likewise.
48877         * sysdeps/ieee754/dbl-64/dosincos.c: Likewise.
48878         * sysdeps/ieee754/dbl-64/e_acosh.c: Likewise.
48879         * sysdeps/ieee754/dbl-64/e_atan2.c: Likewise.
48880         * sysdeps/ieee754/dbl-64/e_cosh.c: Likewise.
48881         * sysdeps/ieee754/dbl-64/e_exp2.c: Likewise.
48882         * sysdeps/ieee754/dbl-64/e_fmod.c: Likewise.
48883         * sysdeps/ieee754/dbl-64/e_gamma_r.c: Likewise.
48884         * sysdeps/ieee754/dbl-64/e_hypot.c: Likewise.
48885         * sysdeps/ieee754/dbl-64/e_ilogb.c: Likewise.
48886         * sysdeps/ieee754/dbl-64/e_j0.c: Likewise.
48887         * sysdeps/ieee754/dbl-64/e_j1.c: Likewise.
48888         * sysdeps/ieee754/dbl-64/e_jn.c: Likewise.
48889         * sysdeps/ieee754/dbl-64/e_log10.c: Likewise.
48890         * sysdeps/ieee754/dbl-64/e_log2.c: Likewise.
48891         * sysdeps/ieee754/dbl-64/e_log.c: Likewise.
48892         * sysdeps/ieee754/dbl-64/e_remainder.c: Likewise.
48893         * sysdeps/ieee754/dbl-64/e_rem_pio2.c: Likewise.
48894         * sysdeps/ieee754/dbl-64/e_sinh.c: Likewise.
48895         * sysdeps/ieee754/dbl-64/e_sqrt.c: Likewise.
48896         * sysdeps/ieee754/dbl-64/halfulp.c: Likewise.
48897         * sysdeps/ieee754/dbl-64/k_rem_pio2.c: Likewise.
48898         * sysdeps/ieee754/dbl-64/MathLib.h: Likewise.
48899         * sysdeps/ieee754/dbl-64/mpa-arch.h: Likewise.
48900         * sysdeps/ieee754/dbl-64/mpa.c: Likewise.
48901         * sysdeps/ieee754/dbl-64/mpatan.c: Likewise.
48902         * sysdeps/ieee754/dbl-64/mpn2dbl.c: Likewise.
48903         * sysdeps/ieee754/dbl-64/mptan.c: Likewise.
48904         * sysdeps/ieee754/dbl-64/mydefs.h: Likewise.
48905         * sysdeps/ieee754/dbl-64/s_asinh.c: Likewise.
48906         * sysdeps/ieee754/dbl-64/s_atan.c: Likewise.
48907         * sysdeps/ieee754/dbl-64/s_cbrt.c: Likewise.
48908         * sysdeps/ieee754/dbl-64/s_ceil.c: Likewise.
48909         * sysdeps/ieee754/dbl-64/s_copysign.c: Likewise.
48910         * sysdeps/ieee754/dbl-64/s_erf.c: Likewise.
48911         * sysdeps/ieee754/dbl-64/s_expm1.c: Likewise.
48912         * sysdeps/ieee754/dbl-64/s_fabs.c: Likewise.
48913         * sysdeps/ieee754/dbl-64/s_finite.c: Likewise.
48914         * sysdeps/ieee754/dbl-64/s_floor.c: Likewise.
48915         * sysdeps/ieee754/dbl-64/s_frexp.c: Likewise.
48916         * sysdeps/ieee754/dbl-64/s_isinf.c: Likewise.
48917         * sysdeps/ieee754/dbl-64/s_isinf_ns.c: Likewise.
48918         * sysdeps/ieee754/dbl-64/s_isnan.c: Likewise.
48919         * sysdeps/ieee754/dbl-64/s_llround.c: Likewise.
48920         * sysdeps/ieee754/dbl-64/s_log1p.c: Likewise.
48921         * sysdeps/ieee754/dbl-64/s_logb.c: Likewise.
48922         * sysdeps/ieee754/dbl-64/s_lrint.c: Likewise.
48923         * sysdeps/ieee754/dbl-64/s_modf.c: Likewise.
48924         * sysdeps/ieee754/dbl-64/s_nearbyint.c: Likewise.
48925         * sysdeps/ieee754/dbl-64/s_remquo.c: Likewise.
48926         * sysdeps/ieee754/dbl-64/s_rint.c: Likewise.
48927         * sysdeps/ieee754/dbl-64/s_scalbln.c: Likewise.
48928         * sysdeps/ieee754/dbl-64/s_scalbn.c: Likewise.
48929         * sysdeps/ieee754/dbl-64/s_sin.c: Likewise.
48930         * sysdeps/ieee754/dbl-64/s_sincos.c: Likewise.
48931         * sysdeps/ieee754/dbl-64/s_tan.c: Likewise.
48932         * sysdeps/ieee754/dbl-64/s_tanh.c: Likewise.
48933
48934 2013-10-17  Joseph Myers  <joseph@codesourcery.com>
48935
48936         [BZ #16041]
48937         * soft-fp/op-common.h (FP_EXTEND): When input is a signaling NaN,
48938         make result into a quiet NaN.
48939
48940 2013-10-16  Joseph Myers  <joseph@codesourcery.com>
48941
48942         * soft-fp/adddf3.c: Fix horizontal whitespace.
48943         * soft-fp/addsf3.c: Likewise.
48944         * soft-fp/addtf3.c: Likewise.
48945         * soft-fp/divdf3.c: Likewise.
48946         * soft-fp/divsf3.c: Likewise.
48947         * soft-fp/divtf3.c: Likewise.
48948         * soft-fp/double.h: Likewise.
48949         * soft-fp/eqdf2.c: Likewise.
48950         * soft-fp/eqsf2.c: Likewise.
48951         * soft-fp/eqtf2.c: Likewise.
48952         * soft-fp/extenddftf2.c: Likewise.
48953         * soft-fp/extended.h: Likewise.
48954         * soft-fp/extendsfdf2.c: Likewise.
48955         * soft-fp/extendsftf2.c: Likewise.
48956         * soft-fp/extendxftf2.c: Likewise.
48957         * soft-fp/fixdfdi.c: Likewise.
48958         * soft-fp/fixdfsi.c: Likewise.
48959         * soft-fp/fixdfti.c: Likewise.
48960         * soft-fp/fixsfdi.c: Likewise.
48961         * soft-fp/fixsfsi.c: Likewise.
48962         * soft-fp/fixsfti.c: Likewise.
48963         * soft-fp/fixtfdi.c: Likewise.
48964         * soft-fp/fixtfsi.c: Likewise.
48965         * soft-fp/fixtfti.c: Likewise.
48966         * soft-fp/fixunsdfdi.c: Likewise.
48967         * soft-fp/fixunsdfsi.c: Likewise.
48968         * soft-fp/fixunsdfti.c: Likewise.
48969         * soft-fp/fixunssfdi.c: Likewise.
48970         * soft-fp/fixunssfsi.c: Likewise.
48971         * soft-fp/fixunssfti.c: Likewise.
48972         * soft-fp/fixunstfdi.c: Likewise.
48973         * soft-fp/fixunstfsi.c: Likewise.
48974         * soft-fp/fixunstfti.c: Likewise.
48975         * soft-fp/floatdidf.c: Likewise.
48976         * soft-fp/floatdisf.c: Likewise.
48977         * soft-fp/floatditf.c: Likewise.
48978         * soft-fp/floatsidf.c: Likewise.
48979         * soft-fp/floatsisf.c: Likewise.
48980         * soft-fp/floatsitf.c: Likewise.
48981         * soft-fp/floattidf.c: Likewise.
48982         * soft-fp/floattisf.c: Likewise.
48983         * soft-fp/floattitf.c: Likewise.
48984         * soft-fp/floatundidf.c: Likewise.
48985         * soft-fp/floatundisf.c: Likewise.
48986         * soft-fp/floatunditf.c: Likewise.
48987         * soft-fp/floatunsidf.c: Likewise.
48988         * soft-fp/floatunsisf.c: Likewise.
48989         * soft-fp/floatunsitf.c: Likewise.
48990         * soft-fp/floatuntidf.c: Likewise.
48991         * soft-fp/floatuntisf.c: Likewise.
48992         * soft-fp/floatuntitf.c: Likewise.
48993         * soft-fp/fmadf4.c: Likewise.
48994         * soft-fp/fmasf4.c: Likewise.
48995         * soft-fp/fmatf4.c: Likewise.
48996         * soft-fp/gedf2.c: Likewise.
48997         * soft-fp/gesf2.c: Likewise.
48998         * soft-fp/getf2.c: Likewise.
48999         * soft-fp/ledf2.c: Likewise.
49000         * soft-fp/lesf2.c: Likewise.
49001         * soft-fp/letf2.c: Likewise.
49002         * soft-fp/muldf3.c: Likewise.
49003         * soft-fp/mulsf3.c: Likewise.
49004         * soft-fp/multf3.c: Likewise.
49005         * soft-fp/negdf2.c: Likewise.
49006         * soft-fp/negsf2.c: Likewise.
49007         * soft-fp/negtf2.c: Likewise.
49008         * soft-fp/op-1.h: Likewise.
49009         * soft-fp/op-2.h: Likewise.
49010         * soft-fp/op-4.h: Likewise.
49011         * soft-fp/op-8.h: Likewise.
49012         * soft-fp/op-common.h: Likewise.
49013         * soft-fp/quad.h: Likewise.
49014         * soft-fp/single.h: Likewise.
49015         * soft-fp/soft-fp.h: Likewise.
49016         * soft-fp/sqrtdf2.c: Likewise.
49017         * soft-fp/sqrtsf2.c: Likewise.
49018         * soft-fp/sqrttf2.c: Likewise.
49019         * soft-fp/subdf3.c: Likewise.
49020         * soft-fp/subsf3.c: Likewise.
49021         * soft-fp/subtf3.c: Likewise.
49022         * soft-fp/truncdfsf2.c: Likewise.
49023         * soft-fp/trunctfdf2.c: Likewise.
49024         * soft-fp/trunctfsf2.c: Likewise.
49025         * soft-fp/trunctfxf2.c: Likewise.
49026         * soft-fp/unorddf2.c: Likewise.
49027         * soft-fp/unordsf2.c: Likewise.
49028         * soft-fp/unordtf2.c: Likewise.
49029
49030 2013-10-15  Joseph Myers  <joseph@codesourcery.com>
49031
49032         * soft-fp/op-2.h (_FP_DIV_MEAT_2_gmp): Remove macro.
49033         * soft-fp/soft-fp.h (FP_UNSET_EXCEPTION): Likewise.
49034
49035 2013-10-15   Ondřej Bílka  <neleai@seznam.cz>
49036
49037         * elf/dl-libc.c: Clear initfini list after freeing.
49038
49039 2013-10-14  Joseph Myers  <joseph@codesourcery.com>
49040
49041         * soft-fp/adddf3.c: Fix vertical whitespace and indentation.
49042         * soft-fp/addsf3.c: Likewise.
49043         * soft-fp/addtf3.c: Likewise.
49044         * soft-fp/divdf3.c: Likewise.
49045         * soft-fp/divsf3.c: Likewise.
49046         * soft-fp/divtf3.c: Likewise.
49047         * soft-fp/double.h: Likewise.
49048         * soft-fp/eqdf2.c: Likewise.
49049         * soft-fp/eqsf2.c: Likewise.
49050         * soft-fp/eqtf2.c: Likewise.
49051         * soft-fp/extenddftf2.c: Likewise.
49052         * soft-fp/extended.h: Likewise.
49053         * soft-fp/extendsfdf2.c: Likewise.
49054         * soft-fp/extendsftf2.c: Likewise.
49055         * soft-fp/extendxftf2.c: Likewise.
49056         * soft-fp/fixdfdi.c: Likewise.
49057         * soft-fp/fixdfsi.c: Likewise.
49058         * soft-fp/fixdfti.c: Likewise.
49059         * soft-fp/fixsfdi.c: Likewise.
49060         * soft-fp/fixsfsi.c: Likewise.
49061         * soft-fp/fixsfti.c: Likewise.
49062         * soft-fp/fixtfdi.c: Likewise.
49063         * soft-fp/fixtfsi.c: Likewise.
49064         * soft-fp/fixtfti.c: Likewise.
49065         * soft-fp/fixunsdfdi.c: Likewise.
49066         * soft-fp/fixunsdfsi.c: Likewise.
49067         * soft-fp/fixunsdfti.c: Likewise.
49068         * soft-fp/fixunssfdi.c: Likewise.
49069         * soft-fp/fixunssfsi.c: Likewise.
49070         * soft-fp/fixunssfti.c: Likewise.
49071         * soft-fp/fixunstfdi.c: Likewise.
49072         * soft-fp/fixunstfsi.c: Likewise.
49073         * soft-fp/fixunstfti.c: Likewise.
49074         * soft-fp/floatdidf.c: Likewise.
49075         * soft-fp/floatdisf.c: Likewise.
49076         * soft-fp/floatditf.c: Likewise.
49077         * soft-fp/floatsidf.c: Likewise.
49078         * soft-fp/floatsisf.c: Likewise.
49079         * soft-fp/floatsitf.c: Likewise.
49080         * soft-fp/floattidf.c: Likewise.
49081         * soft-fp/floattisf.c: Likewise.
49082         * soft-fp/floattitf.c: Likewise.
49083         * soft-fp/floatundidf.c: Likewise.
49084         * soft-fp/floatundisf.c: Likewise.
49085         * soft-fp/floatunsidf.c: Likewise.
49086         * soft-fp/floatunsisf.c: Likewise.
49087         * soft-fp/floatuntidf.c: Likewise.
49088         * soft-fp/floatuntisf.c: Likewise.
49089         * soft-fp/floatuntitf.c: Likewise.
49090         * soft-fp/fmadf4.c: Likewise.
49091         * soft-fp/fmasf4.c: Likewise.
49092         * soft-fp/fmatf4.c: Likewise.
49093         * soft-fp/gedf2.c: Likewise.
49094         * soft-fp/gesf2.c: Likewise.
49095         * soft-fp/getf2.c: Likewise.
49096         * soft-fp/ledf2.c: Likewise.
49097         * soft-fp/lesf2.c: Likewise.
49098         * soft-fp/letf2.c: Likewise.
49099         * soft-fp/muldf3.c: Likewise.
49100         * soft-fp/mulsf3.c: Likewise.
49101         * soft-fp/multf3.c: Likewise.
49102         * soft-fp/negdf2.c: Likewise.
49103         * soft-fp/negsf2.c: Likewise.
49104         * soft-fp/negtf2.c: Likewise.
49105         * soft-fp/op-1.h: Likewise.
49106         * soft-fp/op-2.h: Likewise.
49107         * soft-fp/op-4.h: Likewise.
49108         * soft-fp/op-8.h: Likewise.
49109         * soft-fp/op-common.h: Likewise.
49110         * soft-fp/quad.h: Likewise.
49111         * soft-fp/single.h: Likewise.
49112         * soft-fp/soft-fp.h: Likewise.
49113         * soft-fp/sqrtdf2.c: Likewise.
49114         * soft-fp/sqrtsf2.c: Likewise.
49115         * soft-fp/sqrttf2.c: Likewise.
49116         * soft-fp/subdf3.c: Likewise.
49117         * soft-fp/subsf3.c: Likewise.
49118         * soft-fp/subtf3.c: Likewise.
49119         * soft-fp/truncdfsf2.c: Likewise.
49120         * soft-fp/trunctfdf2.c: Likewise.
49121         * soft-fp/trunctfsf2.c: Likewise.
49122         * soft-fp/trunctfxf2.c: Likewise.
49123         * soft-fp/unorddf2.c: Likewise.
49124         * soft-fp/unordsf2.c: Likewise.
49125         * soft-fp/unordtf2.c: Likewise.
49126
49127 2013-10-14   Ondřej Bílka  <neleai@seznam.cz>
49128
49129         [BZ #15672]
49130         * misc/error.c (error_tail): Fix possible buffer overflow.
49131
49132 2013-10-14  Aurelien Jarno  <aurelien@aurel32.net>
49133
49134         [BZ #13028]
49135         * res_send.c(__libc_res_nsend): Correctly copy the nameserver
49136         address.
49137
49138 2013-10-14  P. J. McDermott  <pj@pehjota.net>
49139
49140         [BZ #832]
49141         * elf/ldd.bash.in (try_trace): New function.  Delete previous code
49142         testing pipefail option.
49143
49144 2013-10-12  Joseph Myers  <joseph@codesourcery.com>
49145
49146         * soft-fp/double.h: Indent preprocessor directives inside #if.
49147         * soft-fp/extended.h: Likewise.
49148         * soft-fp/op-2.h: Likewise.
49149         * soft-fp/op-4.h: Likewise.
49150         * soft-fp/op-common.h: Likewise.
49151         * soft-fp/quad.h: Likewise.
49152         * soft-fp/single.h: Likewise.
49153         * soft-fp/soft-fp.h: Likewise.
49154
49155 2013-10-12   Yuri Chornoivan <yurchor@ukr.net>
49156
49157         * iconv/iconv_prog.c: Fix typos.
49158         * stdio-common/psiginfo-data.h: Likewise.
49159
49160 2013-10-12   Reuben Thomas <rrt@sc3d.org>
49161
49162         [BZ #15764]
49163         * locale/setlocale.c: Fix typo.
49164
49165 2013-10-12  Joseph Myers  <joseph@codesourcery.com>
49166
49167         [BZ #16036]
49168         * soft-fp/unorddf2.c (__unorddf2): Raise "invalid" exception for
49169         signaling NaN arguments.
49170         * soft-fp/unordsf2.c (__unordsf2): Likewise.
49171         * soft-fp/unordtf2.c (__unordtf2): Likewise.
49172
49173         [BZ #14910]
49174         * soft-fp/gedf2.c (__gedf2): Raise "invalid" exception for all
49175         unordered operands.
49176         * soft-fp/gesf2.c (__gesf2): Likewise.
49177         * soft-fp/getf2.c (__getf2): Likewise.
49178         * soft-fp/ledf2.c (__ledf2): Likewise.
49179         * soft-fp/lesf2.c (__lesf2): Likewise.
49180         * soft-fp/letf2.c (__letf2): Likewise.
49181
49182         * soft-fp/eqdf2.c (__eqdf2): Use FP_INIT_EXCEPTIONS.
49183         * soft-fp/eqsf2.c (__eqsf2): Likewise.
49184         * soft-fp/eqtf2.c (__eqtf2): Likewise.
49185         * soft-fp/fixdfdi.c (__fixdfdi): Likewise.
49186         * soft-fp/fixdfsi.c (__fixdfsi): Likewise.
49187         * soft-fp/fixdfti.c (__fixdfti): Likewise.
49188         * soft-fp/fixsfdi.c (__fixsfdi): Likewise.
49189         * soft-fp/fixsfsi.c (__fixsfsi): Likewise.
49190         * soft-fp/fixsfti.c (__fixsfti): Likewise.
49191         * soft-fp/fixtfdi.c (__fixtfdi): Likewise.
49192         * soft-fp/fixtfsi.c (__fixtfsi): Likewise.
49193         * soft-fp/fixtfti.c (__fixtfti): Likewise.
49194         * soft-fp/fixunsdfdi.c (__fixunsdfdi): Likewise.
49195         * soft-fp/fixunsdfsi.c (__fixunsdfsi): Likewise.
49196         * soft-fp/fixunsdfti.c (__fixunsdfti): Likewise.
49197         * soft-fp/fixunssfdi.c (__fixunssfdi): Likewise.
49198         * soft-fp/fixunssfsi.c (__fixunssfsi): Likewise.
49199         * soft-fp/fixunssfti.c (__fixunssfti): Likewise.
49200         * soft-fp/fixunstfdi.c (__fixunstfdi): Likewise.
49201         * soft-fp/fixunstfsi.c (__fixunstfsi): Likewise.
49202         * soft-fp/fixunstfti.c (__fixunstfti): Likewise.
49203         * soft-fp/floatdidf.c (__floatdidf): Use FP_INIT_ROUNDMODE.
49204         * soft-fp/floatdisf.c (__floatdisf): Likewise.
49205         * soft-fp/floatsisf.c (__floatsisf): Likewise.
49206         * soft-fp/floattidf.c (__floattidf): Likewise.
49207         * soft-fp/floattisf.c (__floattisf): Likewise.
49208         * soft-fp/floattitf.c (__floattitf): Likewise.
49209         * soft-fp/floatundidf.c (__floatundidf): Likewise.
49210         * soft-fp/floatundisf.c (__floatundisf): Likewise.
49211         * soft-fp/floatunsisf.c (__floatunsisf): Likewise.
49212         * soft-fp/floatuntidf.c (__floatuntidf): Likewise.
49213         * soft-fp/floatuntisf.c (__floatuntisf): Likewise.
49214         * soft-fp/floatuntitf.c (__floatuntitf): Likewise.
49215         * soft-fp/gedf2.c (__gedf2): Use FP_INIT_EXCEPTIONS.
49216         * soft-fp/gesf2.c (__gesf2): Likewise.
49217         * soft-fp/getf2.c (__getf2): Likewise.
49218         * soft-fp/ledf2.c (__ledf2): Likewise.
49219         * soft-fp/lesf2.c (__lesf2): Likewise.
49220         * soft-fp/letf2.c (__letf2): Likewise.
49221
49222         * soft-fp/soft-fp.h [FP_NO_EXCEPTIONS] (FP_SET_EXCEPTION):
49223         Undefine and redefine.
49224         [FP_NO_EXCEPTIONS] (FP_CUR_EXCEPTIONS): Likewise.
49225         [FP_NO_EXCEPTIONS] (FP_TRAPPING_EXCEPTIONS): Likewise.
49226         [FP_NO_EXCEPTIONS] (FP_ROUNDMODE): Likewise.
49227         * soft-fp/floatditf.c (FP_NO_EXCEPTIONS): Define macro.
49228         (__floatditf): Don't use FP_DECL_EX or FP_HANDLE_EXCEPTIONS.
49229         * soft-fp/floatsidf.c (FP_NO_EXCEPTIONS): Define macro.
49230         (__floatsidf): Don't use FP_DECL_EX or FP_HANDLE_EXCEPTIONS.
49231         * soft-fp/floatsitf.c (FP_NO_EXCEPTIONS): Define macro.
49232         (__floatsitf): Don't use FP_DECL_EX or FP_HANDLE_EXCEPTIONS.
49233         * soft-fp/floatunditf.c (FP_NO_EXCEPTIONS): Define macro.
49234         (__floatunditf): Don't use FP_DECL_EX or FP_HANDLE_EXCEPTIONS.
49235         * soft-fp/floatunsidf.c (FP_NO_EXCEPTIONS): Define macro.
49236         (__floatunsidf): Don't use FP_DECL_EX or FP_HANDLE_EXCEPTIONS.
49237         * soft-fp/floatunsitf.c (FP_NO_EXCEPTIONS): Define macro.
49238         (__floatunsitf): Don't use FP_DECL_EX or FP_HANDLE_EXCEPTIONS.
49239
49240         [BZ #16032]
49241         * soft-fp/op-2.h (_FP_DIV_MEAT_2_udiv): Shift numerator right
49242         without decrementing exponent if mantissa >= that for the
49243         denominator, not >.
49244         (_FP_DIV_MEAT_2_gmp): Test numerator mantissa >= that for the
49245         denominator, not >.  Decrement exponent in < case instead of
49246         incrementing in >= case.
49247         * soft-fp/op-4.h (_FP_DIV_MEAT_4_udiv): Shift numerator right
49248         without decrementing exponent if mantissa >= that for the
49249         denominator, not >.
49250
49251         * soft-fp/op-common.h (_FP_TO_INT): Reverse test of sign for
49252         computing saturated result for unsigned overflow.
49253
49254 2013-10-11  Siddhesh Poyarekar  <siddhesh@redhat.com>
49255             Jeff Law  <law@redhat.com>
49256
49257         * sysdeps/ieee754/dbl-64/e_atan2.c: Include stap-probe.h.
49258         (atan2Mp): Add systemtap probe marker.
49259         * sysdeps/ieee754/dbl-64/e_log.c: include stap-probe.h.
49260         (__ieee754_log): Add systemtap probe marker.
49261         * sysdeps/ieee754/dbl-64/s_atan.c: Include stap-probe.h.
49262         (atanMp): Add systemtap probe marker.
49263         * sysdeps/ieee754/dbl-64/s_tan.c: Include stap-probe.h.
49264         (tanMp): Add systemtap probe marker.
49265         * sysdeps/ieee754/dbl-64/slowexp.c: Include stap-probe.h.
49266         (__slowexp): Add systemtap probe marker.
49267         * sysdeps/ieee754/dbl-64/slowpow.c: Include stap-probe.h.
49268         (__slowpow): Add systemtap probe marker.
49269         * manual/probes.texi: Document probes.
49270
49271 2013-10-11  Eric Biggers  <ebiggers3@gmail.com>
49272
49273         [BZ #15362]
49274         * libio/fileops.c (_IO_new_file_write): Return count of bytes
49275         written.
49276         (_IO_new_file_xsputn): Don't return EOF if nothing has been
49277         written.
49278         * libio/iofwrite.c (_IO_fwrite): Return count if bytes were
49279         written to buffer but not flushed.
49280         * libio/iofwrite_u.c:  Likewise.
49281         * libio/iopadn.c:  Return bytes returned even if EOF was
49282         encountered.
49283         * libio/iowpadn.c:  Likewise.
49284         * stdio-common/vfprintf.c [COMPILE_WPRINTF] (PAD): Return error
49285         if _IO_padn does not write the whole buffer.
49286         [!COMPILE_WPRINTF] (PAD): Likewise.
49287
49288 2013-10-10  David S. Miller  <davem@davemloft.net>
49289
49290         * sysdeps/posix/dirstream.h (struct __dirstream): Fix alignment of
49291         directory block.
49292
49293 2013-10-10  Joseph Myers  <joseph@codesourcery.com>
49294
49295         * soft-fp/extendxftf2.c: Use copyright year range.  Use URL
49296         instead of FSF address.
49297         * soft-fp/fixdfti.c: Likewise.
49298         * soft-fp/fixsfti.c: Likewise.
49299         * soft-fp/fixtfti.c: Likewise.
49300         * soft-fp/fixunsdfti.c: Likewise.
49301         * soft-fp/fixunssfti.c: Likewise.
49302         * soft-fp/fixunstfti.c: Likewise.
49303         * soft-fp/floattidf.c: Likewise.
49304         * soft-fp/floattisf.c: Likewise.
49305         * soft-fp/floattitf.c: Likewise.
49306         * soft-fp/floatuntidf.c: Likewise.
49307         * soft-fp/floatuntisf.c: Likewise.
49308         * soft-fp/floatuntitf.c: Likewise.
49309         * soft-fp/trunctfxf2.c: Likewise.
49310
49311         * soft-fp/extendxftf2.c: New file.  Copied from libgcc.
49312         * soft-fp/fixdfti.c: Likewise.
49313         * soft-fp/fixsfti.c: Likewise.
49314         * soft-fp/fixtfti.c: Likewise.
49315         * soft-fp/fixunsdfti.c: Likewise.
49316         * soft-fp/fixunssfti.c: Likewise.
49317         * soft-fp/fixunstfti.c: Likewise.
49318         * soft-fp/floattidf.c: Likewise.
49319         * soft-fp/floattisf.c: Likewise.
49320         * soft-fp/floattitf.c: Likewise.
49321         * soft-fp/floatuntidf.c: Likewise.
49322         * soft-fp/floatuntisf.c: Likewise.
49323         * soft-fp/floatuntitf.c: Likewise.
49324         * soft-fp/trunctfxf2.c: Likewise.
49325
49326 2013-10-10  David S. Miller  <davem@davemloft.net>
49327
49328         * sysdeps/sparc/fpu/libm-test-ulps: Update.
49329
49330 2013-10-10  Joseph Myers  <joseph@codsourcery.com>
49331
49332         * sysdeps/powerpc/nofpu/Makefile [$(subdir) = math]
49333         (CFLAGS-e_hypotl.c): Add -fno-builtin-fabsl.
49334         [$(subdir) = math] (CFLAGS-w_acosl.c): Likewise.
49335         [$(subdir) = math] (CFLAGS-w_asinl.c): Likewise.
49336         [$(subdir) = math] (CFLAGS-w_atanhl.c): Likewise.
49337         [$(subdir) = math] (CFLAGS-w_j0l.c): Likewise.
49338         [$(subdir) = math] (CFLAGS-w_j1l.c): Likewise.
49339
49340         * sysdeps/ieee754/ldbl-128ibm/e_acosl.c (__ieee754_acosl): Check
49341         for NaNs before doing comparisons on argument.
49342         * sysdeps/ieee754/ldbl-128ibm/e_asinl.c (__ieee754_asinl):
49343         Likewise.
49344
49345 2013-10-10  Will Newton  <will.newton@linaro.org>
49346
49347         * malloc/hooks.c (memalign_check): Ensure the value of bytes
49348         passed to _int_memalign does not overflow.
49349
49350 2013-10-10  Torvald Riegel  <triegel@redhat.com>
49351
49352         * scripts/bench.pl: Add include-sources directive.
49353         * benchtests/README: Update documentation.
49354
49355 2013-10-10  Joseph Myers  <joseph@codesourcery.com>
49356
49357         * soft-fp/soft-fp.h (FP_INIT_EXCEPTIONS): New macro.
49358         * soft-fp/extenddftf2.c (__extenddftf2): Use FP_INIT_EXCEPTIONS
49359         instead of FP_INIT_ROUNDMODE.
49360         * soft-fp/extendsfdf2.c (__extendsfdf2): Likewise.
49361         * soft-fp/extendsftf2.c (__extendsftf2): Likewise.
49362
49363         [BZ #16034]
49364         * soft-fp/op-common.h (_FP_NEG): Document input as raw.  Do not
49365         copy class of input value.
49366         * soft-fp/negdf2.c (__negdf2): Use raw unpacking and packing.  Do
49367         not handle exceptions.
49368         * soft-fp/negsf2.c (__negsf2): Likewise.
49369         * soft-fp/negtf2.c (__negtf2): Likewise.
49370         * sysdeps/sparc/sparc32/soft-fp/q_neg.c (_Q_neg): Likewise.
49371
49372 2013-10-09  Joseph Myers  <joseph@codesourcery.com>
49373
49374         * soft-fp/op-4.h (_FP_FRAC_DISASSEMBLE_4): Remove trailing
49375         semicolon.  From Linux kernel.
49376
49377 2013-10-09  Adam Buchbinder  <adam.buchbinder@gmail.com>
49378
49379         * soft-fp/op-common.h (_FP_UNPACK_CANONICAL): Fix typo in comment.
49380
49381 2013-10-08  Yogesh Chaudhari  <mr.yogesh@gmail.com>
49382
49383         [BZ #156]
49384         * manual/socket.texi: Added statement about buffer
49385         for gethostbyname2_r.
49386
49387 2013-10-08  Ondřej Bílka  <neleai@seznam.cz>
49388
49389         * sysdeps/x86_64/memset.S (ALIGN): Macro removed.
49390         Use .p2align directive instead, throughout.
49391         * sysdeps/x86_64/multiarch/memcmp-sse4.S: Likewise.
49392         * sysdeps/x86_64/multiarch/memcmp-ssse3.S: Likewise.
49393         * sysdeps/x86_64/multiarch/memcpy-sse2-unaligned.S: Likewise.
49394         * sysdeps/x86_64/multiarch/memcpy-ssse3-back.S: Likewise.
49395         * sysdeps/x86_64/multiarch/memcpy-ssse3.S: Likewise.
49396         * sysdeps/x86_64/multiarch/strcmp-sse2-unaligned.S: Likewise.
49397         * sysdeps/x86_64/strchr.S: Likewise.
49398         * sysdeps/x86_64/strrchr.S: Likewise.
49399
49400 2013-10-08  Siddhesh Poyarekar  <siddhesh@redhat.com>
49401
49402         * sysdeps/ieee754/dbl-64/e_pow.c: Fix code formatting.
49403
49404         * sysdeps/ieee754/dbl-64/e_exp.c: Fix code formatting.
49405
49406         * sysdeps/generic/math_private.h (__mpsin1): Remove
49407         declaration.
49408         (__mpcos1): Likewise.
49409         (__mpsin): New argument __range_reduce.
49410         (__mpcos): Likewise.
49411         * sysdeps/ieee754/dbl-64/s_sin.c: Likewise.
49412         (slow): Use __mpsin and __mpcos.
49413         (slow1): Likewise.
49414         (slow2): Likewise.
49415         (sloww): Likewise.
49416         (sloww1): Likewise.
49417         (sloww2): Likewise.
49418         (bsloww): Likewise.
49419         (bsloww1): Likewise.
49420         (bsloww2): Likewise.
49421         (cslow2): Likewise.
49422         (csloww): Likewise.
49423         (csloww1): Likewise.
49424         (csloww2): Likewise.
49425         * sysdeps/ieee754/dbl-64/sincos32.c (__mpsin): Add argument
49426         range_reduce.  Merge in __mpsin1.
49427         (__mpcos): Likewise.
49428         (__mpsin1): Remove.
49429         (__mpcos1): Likewise.
49430
49431 2013-10-07  Joseph Myers  <joseph@codesourcery.com>
49432
49433         * locale/loadlocale.c (_nl_intern_locale_data): Use
49434         LOCFILE_ALIGNED_P.
49435         * locale/programs/3level.h (CONCAT(add_locale_,TABLE)): Use
49436         LOCFILE_ALIGN_UP and LOCFILE_ALIGN.
49437         * locale/programs/ld-collate.c (obstack_int32_grow): Assert that
49438         obstack data is appropriately aligned.
49439         (obstack_int32_grow_fast): Likewise.
49440         * locale/programs/ld-ctype.c (ctype_output): Use LOCFILE_ALIGN.
49441         * locale/programs/locfile.c (add_locale_uint32): Likewise.
49442         (add_locale_uint32_array): Likewise.
49443
49444 2013-10-07  Siddhesh Poyarekar  <siddhesh@redhat.com>
49445
49446         * benchtests/Makefile: Remove ARGLIST and RET variables.
49447         ($(objpfx)bench-%.c): Pass only function name to the script.
49448         * benchtests/README: Update documentation.
49449         * benchtests/acos-inputs: Add new directives.
49450         * benchtests/acosh-inputs: Likewise.
49451         * benchtests/asin-inputs: Likewise.
49452         * benchtests/asinh-inputs: Likewise.
49453         * benchtests/atan-inputs: Likewise.
49454         * benchtests/atanh-inputs: Likewise.
49455         * benchtests/cos-inputs: Likewise.
49456         * benchtests/cosh-inputs: Likewise.
49457         * benchtests/exp-inputs: Likewise.
49458         * benchtests/log-inputs: Likewise.
49459         * benchtests/pow-inputs: Likewise.
49460         * benchtests/rint-inputs: Likewise.
49461         * benchtests/sin-inputs: Likewise.
49462         * benchtests/sinh-inputs: Likewise.
49463         * benchtests/tan-inputs: Likewise.
49464         * benchtests/tanh-inputs: Likewise.
49465         * scripts/bench.pl: Add support for new directives.
49466
49467 2013-10-07  Alan Modra  <amodra@gmail.com>
49468
49469         * README: Fix careless merge.
49470
49471 2013-10-05  Alan Modra  <amodra@gmail.com>
49472
49473         * NEWS: Mention powerpc64le support and bugs fixed.
49474         * README: Both big-endian and little-endian powerpc64 supported.
49475
49476 2013-10-04  Samuel Thibault  <samuel.thibault@ens-lyon.org>
49477
49478         * sysdeps/mach/hurd/fork.c (_hurd_atfork_prepare_hook)
49479         (_hurd_atfork_child_hook, _hurd_atfork_parent_hook): New hooks.
49480         (__fork): Call _hurd_atfork_prepare_hook hooks before all locking, call
49481         _hurd_atfork_parent_hook or _hurd_atfork_child_hook after all unlocking.
49482
49483 2013-10-04  Ryan S. Arnold  <ryan.arnold@linaro.org>
49484
49485         * misc/swapon.c (swapon): Update definition, adding FLAGS parameter to
49486         match prototype.
49487
49488 2013-10-04  Joseph Myers  <joseph@codesourcery.com>
49489
49490         * sysdeps/powerpc/powerpc32/Makefile [$(with-fp) = yes] (+cflags):
49491         Move -mhard-float appending from
49492         ports/sysdeps/powerpc/powerpc32/Makefile.
49493         [$(with-fp) = yes] (ASFLAGS): Likewise.
49494         [$(with-fp) = yes] (sysdep-LDFLAGS): Likewise.
49495         * sysdeps/powerpc/nofpu: Move directory from
49496         ports/sysdeps/powerpc/nofpu.
49497         * sysdeps/powerpc/soft-fp: Move directory from
49498         ports/sysdeps/powerpc/soft-fp.
49499         * sysdeps/powerpc/powerpc32/405: Move directory from
49500         ports/sysdeps/powerpc/powerpc32/405.
49501         * sysdeps/powerpc/powerpc32/440: Move directory from
49502         ports/sysdeps/powerpc/powerpc32/440.
49503         * sysdeps/powerpc/powerpc32/464: Move directory from
49504         ports/sysdeps/powerpc/powerpc32/464.
49505         * sysdeps/powerpc/powerpc32/476: Move directory from
49506         ports/sysdeps/powerpc/powerpc32/476.
49507         * sysdeps/unix/sysv/linux/powerpc/powerpc32/nofpu: Move directory
49508         from ports/sysdeps/unix/sysv/linux/powerpc/powerpc32/nofpu.
49509         * sysdeps/unix/sysv/linux/powerpc/powerpc32/405: Move directory
49510         from ports/sysdeps/unix/sysv/linux/powerpc/powerpc32/405.
49511         * sysdeps/unix/sysv/linux/powerpc/powerpc32/440: Move directory
49512         from ports/sysdeps/unix/sysv/linux/powerpc/powerpc32/440.
49513         * sysdeps/unix/sysv/linux/powerpc/powerpc32/464: Move directory
49514         from ports/sysdeps/unix/sysv/linux/powerpc/powerpc32/464.
49515         * sysdeps/unix/sysv/linux/powerpc/powerpc32/476: Move directory
49516         from ports/sysdeps/unix/sysv/linux/powerpc/powerpc32/476.
49517         * README: Update for powerpc-*-linux-gnu software floating point
49518         support in libc.
49519
49520         * sysdeps/unix/sysv/linux/configure.in (powerpc/powerpc32): Change
49521         case to powerpc/powerpc32*.
49522         * sysdeps/unix/sysv/linux/configure: Regenerated.
49523
49524         * sysdeps/powerpc/fpu_control.h [__NO_FPRS__ && !_SOFT_FLOAT]
49525         (_FPU_MASK_OM): Define as 0x04.
49526         [__NO_FPRS__ && !_SOFT_FLOAT] (_FPU_MASK_UM): Define as 0x08.
49527         [__NO_FPRS__ && !_SOFT_FLOAT] (_FPU_RESERVED): Define as
49528         0x00c10080.
49529         [__NO_FPRS__ && !_SOFT_FLOAT] (_FPU_DEFAULT): Define as
49530         0x0000003c.
49531         [__NO_FPRS__ && !_SOFT_FLOAT] (_FPU_IEEE): Define as _FPU_DEFAULT.
49532
49533         * sysdeps/unix/sysv/linux/powerpc/powerpc32/getcontext-common.S
49534         (__CONTEXT_FUNC_NAME) [__CONTEXT_ENABLE_E500]: Use
49535         getcontext_e500.
49536         * sysdeps/unix/sysv/linux/powerpc/powerpc32/setcontext-common.S
49537         (__CONTEXT_FUNC_NAME) [__CONTEXT_ENABLE_E500]: Use
49538         setcontext_e500.
49539         * sysdeps/unix/sysv/linux/powerpc/powerpc32/swapcontext-common.S
49540         (__CONTEXT_FUNC_NAME) [__CONTEXT_ENABLE_E500]: Use getcontext_e500
49541         and setcontext_e500.
49542
49543 2013-10-04  Chris Leonard  <cjl@sugarlabs,.org>
49544
49545         * locale/iso-3166.def: Update iso-1366.def and related occurrences
49546
49547 2013-10-04  Siddhesh Poyarekar  <siddhesh@redhat.com>
49548
49549         * manual/threads.texi (Default Thread Attributes): Fix typo.
49550
49551 2013-10-04  Will Newton  <will.newton@linaro.org>
49552
49553         * malloc/Makefile: Add tst-memalign.
49554         * malloc/tst-memalign.c: New file.
49555
49556         * malloc/tst-posix_memalign.c: Add comments.
49557         (do_test): Add comments and call free on all potentially
49558         allocated pointers. Add space after cast.
49559
49560         * malloc/tst-pvalloc.c: Add comments.
49561         (do_test): Add comments and call free on all potentially
49562         allocated pointers. Remove duplicate check for NULL pointer.
49563         Add space after cast.
49564
49565         * malloc/tst-valloc.c: Add comments.
49566         (do_test): Add comments and call free on all potentially
49567         allocated pointers. Remove duplicate check for NULL pointer.
49568         Add space after cast.
49569
49570 2013-10-04  Alan Modra  <amodra@gmail.com>
49571
49572         * sysdeps/powerpc/powerpc32/dl-machine.c (__process_machine_rela):
49573         Use stdint types in rather than __attribute__((mode())).
49574         * sysdeps/powerpc/powerpc64/dl-machine.h (elf_machine_rela): Likewise.
49575
49576 2013-10-04  Alan Modra  <amodra@gmail.com>
49577
49578         * sysdeps/powerpc/powerpc32/dl-machine.c (__process_machine_rela):
49579         Correct handling of unaligned relocs for little-endian.
49580         * sysdeps/powerpc/powerpc64/dl-machine.h (elf_machine_rela): Likewise.
49581
49582 2013-10-04  Alan Modra  <amodra@gmail.com>
49583
49584         * configure.in: Map powerpc64le and powerpcle to base_machine/machine.
49585         * configure: Regenerate.
49586         * nptl/shlib-versions: Powerpc*le starts at 2.18.
49587         * shlib-versions: Likewise.
49588
49589 2013-10-04  Alan Modra  <amodra@gmail.com>
49590
49591         * string/tester.c (test_memrchr): Increment reported test cycle.
49592
49593 2013-10-04  Alan Modra  <amodra@gmail.com>
49594
49595         * string/test-memcpy.c (do_one_test): When reporting errors, print
49596         string address and don't overrun end of string.
49597
49598 2013-10-04  Alan Modra  <amodra@gmail.com>
49599
49600         * sysdeps/powerpc/powerpc64/power7/memchr.S: Replace rlwimi with
49601         insrdi.  Make better use of reg selection to speed exit slightly.
49602         Schedule entry path a little better.  Remove useless "are we done"
49603         checks on entry to main loop.  Handle wrapping around zero address.
49604         Correct main loop count.  Handle single left-over word from main
49605         loop inline rather than by using loop_small.  Remove extra word
49606         case in loop_small caused by wrong loop count.  Add little-endian
49607         support.
49608         * sysdeps/powerpc/powerpc32/power7/memchr.S: Likewise.
49609         * sysdeps/powerpc/powerpc64/power7/memrchr.S: Likewise.  Use proper
49610         cache hint.
49611         * sysdeps/powerpc/powerpc32/power7/memrchr.S: Likewise.
49612         * sysdeps/powerpc/powerpc64/power7/rawmemchr.S: Add little-endian
49613         support.  Avoid rlwimi.
49614         * sysdeps/powerpc/powerpc32/power7/rawmemchr.S: Likewise.
49615
49616 2013-10-04  Alan Modra  <amodra@gmail.com>
49617
49618         * sysdeps/powerpc/powerpc64/memset.S: Replace rlwimi with
49619         insrdi.  Formatting.
49620         * sysdeps/powerpc/powerpc64/power4/memset.S: Likewise.
49621         * sysdeps/powerpc/powerpc64/power6/memset.S: Likewise.
49622         * sysdeps/powerpc/powerpc64/power7/memset.S: Likewise.
49623         * sysdeps/powerpc/powerpc32/power4/memset.S: Likewise.
49624         * sysdeps/powerpc/powerpc32/power6/memset.S: Likewise.
49625         * sysdeps/powerpc/powerpc32/power7/memset.S: Likewise.
49626
49627 2013-10-04  Alan Modra  <amodra@gmail.com>
49628
49629         * sysdeps/powerpc/powerpc32/power4/memcpy.S: Add little endian support.
49630         * sysdeps/powerpc/powerpc32/power6/memcpy.S: Likewise.
49631         * sysdeps/powerpc/powerpc32/power7/memcpy.S: Likewise.
49632         * sysdeps/powerpc/powerpc32/power7/mempcpy.S: Likewise.
49633         * sysdeps/powerpc/powerpc64/memcpy.S: Likewise.
49634         * sysdeps/powerpc/powerpc64/power4/memcpy.S: Likewise.
49635         * sysdeps/powerpc/powerpc64/power6/memcpy.S: Likewise.
49636         * sysdeps/powerpc/powerpc64/power7/memcpy.S: Likewise.
49637         * sysdeps/powerpc/powerpc64/power7/mempcpy.S: Likewise.  Make better
49638         use of regs.  Use power7 mtocrf.  Tidy function tails.
49639
49640 2013-10-04  Alan Modra  <amodra@gmail.com>
49641
49642         * sysdeps/powerpc/powerpc64/power7/memcmp.S: Add little-endian support.
49643         Formatting.  Consistently use rXXX register defines or rN defines.
49644         Use early exit labels that avoid restoring unused non-volatile regs.
49645         Make cr field use more consistent with rWORDn compares.  Rename
49646         regs used as shift registers for unaligned loop, using rN defines
49647         for short lifetime/multiple use regs.
49648         * sysdeps/powerpc/powerpc64/power4/memcmp.S: Likewise.
49649         * sysdeps/powerpc/powerpc32/power7/memcmp.S: Likewise.  Exit with
49650         addi 1,1,64 to pop stack frame.  Simplify return value code.
49651         * sysdeps/powerpc/powerpc32/power4/memcmp.S: Likewise.
49652
49653 2013-10-04  Alan Modra  <amodra@gmail.com>
49654
49655         * sysdeps/powerpc/powerpc64/power7/strchr.S (strchr): Add little-endian
49656         support.  Correct typos, formatting.  Optimize tail.  Use insrdi
49657         rather than rlwimi.
49658         * sysdeps/powerpc/powerpc32/power7/strchr.S: Likewise.
49659         * sysdeps/powerpc/powerpc64/power7/strchrnul.S (__strchrnul): Add
49660         little-endian support.  Correct typos.
49661         * sysdeps/powerpc/powerpc32/power7/strchrnul.S: Likewise.  Use insrdi
49662         rather than rlwimi.
49663         * sysdeps/powerpc/powerpc64/strchr.S (rTMP4, rTMP5): Define.  Use
49664         in loop and entry code to keep "and." results.
49665         (strchr): Add little-endian support.  Comment.  Move cntlzd
49666         earlier in tail.
49667         * sysdeps/powerpc/powerpc32/strchr.S: Likewise.
49668
49669 2013-10-04  Alan Modra  <amodra@gmail.com>
49670
49671         * sysdeps/powerpc/powerpc64/strcpy.S: Add little-endian support:
49672         * sysdeps/powerpc/powerpc32/strcpy.S: Likewise.
49673         * sysdeps/powerpc/powerpc64/stpcpy.S: Likewise.
49674         * sysdeps/powerpc/powerpc32/stpcpy.S: Likewise.
49675
49676 2013-10-04  Alan Modra  <amodra@gmail.com>
49677
49678         * sysdeps/powerpc/powerpc64/strcmp.S (rTMP2): Define as r0.
49679         (rTMP): Define as r11.
49680         (strcmp): Add little-endian support.  Optimise tail.
49681         * sysdeps/powerpc/powerpc32/strcmp.S: Similarly.
49682         * sysdeps/powerpc/powerpc64/strncmp.S: Likewise.
49683         * sysdeps/powerpc/powerpc32/strncmp.S: Likewise.
49684         * sysdeps/powerpc/powerpc64/power4/strncmp.S: Likewise.
49685         * sysdeps/powerpc/powerpc32/power4/strncmp.S: Likewise.
49686         * sysdeps/powerpc/powerpc64/power7/strncmp.S: Likewise.
49687         * sysdeps/powerpc/powerpc32/power7/strncmp.S: Likewise.
49688
49689 2013-10-04  Alan Modra  <amodra@gmail.com>
49690
49691         * sysdeps/powerpc/powerpc64/power7/strnlen.S (strnlen): Add
49692         little-endian support.  Remove unnecessary "are we done" tests.
49693         Handle "s" wrapping around zero and extremely large "size".
49694         Correct main loop count.  Handle single left-over word from main
49695         loop inline rather than by using small_loop.  Correct comments.
49696         Delete "zero" tail, use "end_max" instead.
49697         * sysdeps/powerpc/powerpc32/power7/strnlen.S: Likewise.
49698
49699 2013-10-04  Alan Modra  <amodra@gmail.com>
49700
49701         * sysdeps/powerpc/powerpc64/power7/strlen.S (strlen): Add little-endian
49702         support.  Don't branch over align.
49703         * sysdeps/powerpc/powerpc32/power7/strlen.S: Likewise.
49704         * sysdeps/powerpc/powerpc64/strlen.S (strlen): Add little-endian
49705         support.  Rearrange tmp reg use to suit.  Comment.
49706         * sysdeps/powerpc/powerpc32/strlen.S: Likewise.
49707
49708 2013-10-04  Alan Modra  <amodra@gmail.com>
49709
49710         * sysdeps/unix/sysv/linux/powerpc/bits/sigstack.h: New file.
49711
49712 2013-10-04  Alan Modra  <amodra@gmail.com>
49713
49714         * sysdeps/unix/sysv/linux/powerpc/powerpc32/makecontext.S: Use
49715         conditional form of branch and link when obtaining pc.
49716         * sysdeps/unix/sysv/linux/powerpc/powerpc64/makecontext.S: Likewise.
49717
49718 2013-10-04  Alan Modra  <amodra@gmail.com>
49719
49720         * sysdeps/unix/sysv/linux/powerpc/powerpc32/getcontext-common.S: Use
49721         HIWORD/LOWORD.
49722         * sysdeps/unix/sysv/linux/powerpc/powerpc32/setcontext-common.S: Ditto.
49723         * sysdeps/unix/sysv/linux/powerpc/powerpc32/swapcontext-common.S: Ditto.
49724
49725 2013-10-04  Alan Modra  <amodra@gmail.com>
49726
49727         * sysdeps/powerpc/longjmp.c: Use proper symbol versioning macros.
49728         * sysdeps/powerpc/novmx-longjmp.c: Likewise.
49729         * sysdeps/powerpc/powerpc32/bsd-_setjmp.S: Likewise.
49730         * sysdeps/powerpc/powerpc32/bsd-setjmp.S: Likewise.
49731         * sysdeps/powerpc/powerpc32/fpu/__longjmp.S: Likewise.
49732         * sysdeps/powerpc/powerpc32/fpu/setjmp.S: Likewise.
49733         * sysdeps/powerpc/powerpc32/mcount.c: Likewise.
49734         * sysdeps/powerpc/powerpc32/setjmp.S: Likewise.
49735         * sysdeps/powerpc/powerpc64/setjmp.S: Likewise.
49736         * nptl/sysdeps/unix/sysv/linux/powerpc/pt-longjmp.c: Likewise.
49737
49738 2013-10-04  Anton Blanchard <anton@au1.ibm.com>
49739             Alistair Popple <alistair@ozlabs.au.ibm.com>
49740             Alan Modra <amodra@gmail.com>
49741
49742         [BZ #15723]
49743         * sysdeps/powerpc/jmpbuf-offsets.h: Comment fix.
49744         * sysdeps/powerpc/powerpc32/fpu/__longjmp-common.S: Correct
49745         _dl_hwcap access for little-endian.
49746         * sysdeps/powerpc/powerpc32/fpu/setjmp-common.S: Likewise.  Don't
49747         destroy vmx regs when saving unaligned.
49748         * sysdeps/powerpc/powerpc64/__longjmp-common.S: Correct CR load.
49749         * sysdeps/powerpc/powerpc64/setjmp-common.S: Likewise CR save.  Don't
49750         destroy vmx regs when saving unaligned.
49751
49752 2013-10-04  Alan Modra  <amodra@gmail.com>
49753
49754         * sysdeps/powerpc/powerpc32/power4/hp-timing.h (HP_TIMING_NOW):
49755         Don't use a union to pack hi/low value.
49756
49757 2013-10-04  Anton Blanchard <anton@au1.ibm.com>
49758
49759         * sysdeps/powerpc/powerpc64/fpu/s_ceilf.S: Correct float constants
49760         for little-endian.
49761         * sysdeps/powerpc/powerpc64/fpu/s_floorf.S: Likewise.
49762         * sysdeps/powerpc/powerpc64/fpu/s_nearbyintf.S: Likewise.
49763         * sysdeps/powerpc/powerpc64/fpu/s_rintf.S: Likewise.
49764         * sysdeps/powerpc/powerpc64/fpu/s_roundf.S: Likewise.
49765         * sysdeps/powerpc/powerpc64/fpu/s_truncf.S: Likewise.
49766
49767 2013-10-04  Alan Modra  <amodra@gmail.com>
49768
49769         * sysdeps/powerpc/powerpc32/fpu/s_roundf.S: Increase alignment of
49770         constants to usual value for .cst8 section, and remove redundant
49771         high address load.
49772         * sysdeps/powerpc/powerpc32/power4/fpu/s_llround.S: Use float
49773         constant for 0x1p52.  Load little-endian words of double from
49774         correct stack offsets.
49775
49776 2013-10-04  Alan Modra  <amodra@gmail.com>
49777
49778         * sysdeps/powerpc/sysdep.h (LOWORD, HIWORD, HISHORT): Define.
49779         * sysdeps/powerpc/powerpc32/fpu/s_copysign.S: Load little-endian
49780         words of double from correct stack offsets.
49781         * sysdeps/powerpc/powerpc32/fpu/s_copysignl.S: Likewise.
49782         * sysdeps/powerpc/powerpc32/fpu/s_lrint.S: Likewise.
49783         * sysdeps/powerpc/powerpc32/fpu/s_lround.S: Likewise.
49784         * sysdeps/powerpc/powerpc32/power4/fpu/s_llrint.S: Likewise.
49785         * sysdeps/powerpc/powerpc32/power4/fpu/s_llrintf.S: Likewise.
49786         * sysdeps/powerpc/powerpc32/power5+/fpu/s_llround.S: Likewise.
49787         * sysdeps/powerpc/powerpc32/power5+/fpu/s_lround.S: Likewise.
49788         * sysdeps/powerpc/powerpc32/power5/fpu/s_isnan.S: Likewise.
49789         * sysdeps/powerpc/powerpc32/power6/fpu/s_isnan.S: Likewise.
49790         * sysdeps/powerpc/powerpc32/power6/fpu/s_llrint.S: Likewise.
49791         * sysdeps/powerpc/powerpc32/power6/fpu/s_llrintf.S: Likewise.
49792         * sysdeps/powerpc/powerpc32/power6/fpu/s_llround.S: Likewise.
49793         * sysdeps/powerpc/powerpc32/power7/fpu/s_finite.S: Likewise.
49794         * sysdeps/powerpc/powerpc32/power7/fpu/s_isinf.S: Likewise.
49795         * sysdeps/powerpc/powerpc32/power7/fpu/s_isnan.S: Likewise.
49796         * sysdeps/powerpc/powerpc64/power7/fpu/s_finite.S: Use HISHORT.
49797         * sysdeps/powerpc/powerpc64/power7/fpu/s_isinf.S: Likewise.
49798
49799 2013-10-04  Alan Modra  <amodra@gmail.com>
49800
49801         * sysdeps/powerpc/fpu_control.h (_FPU_GETCW): Rewrite using
49802         64-bit int/double union.
49803         (_FPU_SETCW): Likewise.
49804         * sysdeps/powerpc/fpu/tst-setcontext-fpscr.c (_GET_DI_FPSCR): Likewise.
49805         (_SET_DI_FPSCR, _GET_SI_FPSCR, _SET_SI_FPSCR): Likewise.
49806
49807 2013-10-04  Alan Modra  <amodra@gmail.com>
49808
49809         * sysdeps/powerpc/fpu/s_llround.c (__llround): Rewrite.
49810         * sysdeps/powerpc/fpu/s_llroundf.c (__llroundf): Rewrite.
49811
49812 2013-10-04  Alan Modra  <amodra@gmail.com>
49813
49814         * sysdeps/powerpc/fpu/s_float_bitwise.h (__float_and_test28): Don't
49815         use vector int constants.
49816         (__float_and_test24, __float_and8, __float_get_exp): Likewise.
49817
49818 2013-10-04  Anton Blanchard <anton@au1.ibm.com>
49819
49820         * sysdeps/powerpc/fpu/fenv_libc.h (fenv_union_t): Replace int
49821         array with long long.
49822         * sysdeps/powerpc/fpu/e_sqrt.c (__slow_ieee754_sqrt): Adjust.
49823         * sysdeps/powerpc/fpu/e_sqrtf.c (__slow_ieee754_sqrtf): Adjust.
49824         * sysdeps/powerpc/fpu/fclrexcpt.c (__feclearexcept): Adjust.
49825         * sysdeps/powerpc/fpu/fedisblxcpt.c (fedisableexcept): Adjust.
49826         * sysdeps/powerpc/fpu/feenablxcpt.c (feenableexcept): Adjust.
49827         * sysdeps/powerpc/fpu/fegetexcept.c (__fegetexcept): Adjust.
49828         * sysdeps/powerpc/fpu/feholdexcpt.c (feholdexcept): Adjust.
49829         * sysdeps/powerpc/fpu/fesetenv.c (__fesetenv): Adjust.
49830         * sysdeps/powerpc/fpu/feupdateenv.c (__feupdateenv): Adjust.
49831         * sysdeps/powerpc/fpu/fgetexcptflg.c (__fegetexceptflag): Adjust.
49832         * sysdeps/powerpc/fpu/fraiseexcpt.c (__feraiseexcept): Adjust.
49833         * sysdeps/powerpc/fpu/fsetexcptflg.c (__fesetexceptflag): Adjust.
49834         * sysdeps/powerpc/fpu/ftestexcept.c (fetestexcept): Adjust.
49835
49836 2013-10-04  Anton Blanchard <anton@au1.ibm.com>
49837
49838         * sysdeps/powerpc/bits/mathinline.h (__signbitf): Use builtin.
49839         (__signbit): Likewise.  Correct for little-endian.
49840         (__signbitl): Call __signbit.
49841         (lrint): Correct for little-endian.
49842         (lrintf): Call lrint.
49843
49844 2013-10-04  Alan Modra  <amodra@gmail.com>
49845
49846         * sysdeps/ieee754/ldbl-128ibm/e_sqrtl.c (mynumber): Replace
49847         union 32-bit int array member with 64-bit int array.
49848         (t515, tm256): Double rather than long double.
49849         (__ieee754_sqrtl): Rewrite using 64-bit arithmetic.
49850
49851 2013-10-04  Alan Modra  <amodra@gmail.com>
49852
49853         * sysdeps/ieee754/ldbl-128ibm/ieee754.h (union ieee854_long_double):
49854         Delete.
49855         (IEEE854_LONG_DOUBLE_BIAS): Delete.
49856         * sysdeps/ieee754/ldbl-128ibm/math_ldbl.h: Don't include ieee854
49857         version of math_ldbl.h.
49858
49859 2013-10-04  Alan Modra  <amodra@gmail.com>
49860
49861         [BZ #15734], [BZ #15735]
49862         * sysdeps/ieee754/ldbl-128ibm/e_fmodl.c (__ieee754_fmodl): Rewrite
49863         all uses of ieee875 long double macros and unions.  Simplify test
49864         for 0.0L.  Correct |x|<|y| and |x|=|y| test.  Use
49865         ldbl_extract_mantissa value for ix,iy exponents.  Properly
49866         normalize after ldbl_extract_mantissa, and don't add hidden bit
49867         already handled.  Don't treat low word of ieee854 mantissa like
49868         low word of IBM long double and mask off bit when testing for
49869         zero.
49870         * sysdeps/ieee754/ldbl-128ibm/e_hypotl.c (__ieee754_hypotl): Rewrite
49871         all uses of ieee875 long double macros and unions.  Simplify tests
49872         for 0.0L and inf.  Correct double adjustment of k.  Delete dead code
49873         adjusting ha,hb.  Simplify code setting kld.  Delete two600 and
49874         two1022, instead use their values.  Recognise that tests for large
49875         "a" and small "b" are mutually exclusive.  Rename vars.  Comment.
49876         * sysdeps/ieee754/ldbl-128ibm/e_remainderl.c (__ieee754_remainderl):
49877         Rewrite all uses of ieee875 long double macros and unions.  Simplify
49878         test for 0.0L and nan.  Correct negation.
49879         * sysdeps/ieee754/ldbl-128ibm/s_erfl.c (__erfl): Rewrite all uses of
49880         ieee875 long double macros and unions.  Correct output for large
49881         magnitude x.  Correct absolute value calculation.
49882         (__erfcl): Likewise.
49883         * math/libm-test.inc: Add tests for errors discovered in IBM long
49884         double versions of fmodl, remainderl, erfl and erfcl.
49885
49886 2013-10-04  Alan Modra  <amodra@gmail.com>
49887
49888         * sysdeps/ieee754/ldbl-128ibm/e_atan2l.c (__ieee754_atan2l): Rewrite
49889         all uses of ieee854 long double macros and unions.  Simplify tests
49890         for long doubles that are fully specified by the high double.
49891         * sysdeps/ieee754/ldbl-128ibm/e_gammal_r.c (__ieee754_gammal_r):
49892         Likewise.
49893         * sysdeps/ieee754/ldbl-128ibm/e_ilogbl.c (__ieee754_ilogbl): Likewise.
49894         Remove dead code too.
49895         * sysdeps/ieee754/ldbl-128ibm/e_jnl.c (__ieee754_jnl): Likewise.
49896         (__ieee754_ynl): Likewise.
49897         * sysdeps/ieee754/ldbl-128ibm/e_log10l.c (__ieee754_log10l): Likewise.
49898         * sysdeps/ieee754/ldbl-128ibm/e_logl.c (__ieee754_logl): Likewise.
49899         * sysdeps/ieee754/ldbl-128ibm/e_powl.c (__ieee754_powl): Likewise.
49900         Remove dead code too.
49901         * sysdeps/ieee754/ldbl-128ibm/k_tanl.c (__kernel_tanl): Likewise.
49902         * sysdeps/ieee754/ldbl-128ibm/s_expm1l.c (__expm1l): Likewise.
49903         * sysdeps/ieee754/ldbl-128ibm/s_frexpl.c (__frexpl): Likewise.
49904         * sysdeps/ieee754/ldbl-128ibm/s_isinf_nsl.c (__isinf_nsl): Likewise.
49905         Simplify.
49906         * sysdeps/ieee754/ldbl-128ibm/s_isinfl.c (___isinfl): Likewise.
49907         Simplify.
49908         * sysdeps/ieee754/ldbl-128ibm/s_log1pl.c (__log1pl): Likewise.
49909         * sysdeps/ieee754/ldbl-128ibm/s_modfl.c (__modfl): Likewise.
49910         * sysdeps/ieee754/ldbl-128ibm/s_nextafterl.c (__nextafterl): Likewise.
49911         Comment on variable precision.
49912         * sysdeps/ieee754/ldbl-128ibm/s_nexttoward.c (__nexttoward): Likewise.
49913         * sysdeps/ieee754/ldbl-128ibm/s_nexttowardf.c (__nexttowardf):
49914         Likewise.
49915         * sysdeps/ieee754/ldbl-128ibm/s_remquol.c (__remquol): Likewise.
49916         * sysdeps/ieee754/ldbl-128ibm/s_scalblnl.c (__scalblnl): Likewise.
49917         * sysdeps/ieee754/ldbl-128ibm/s_scalbnl.c (__scalbnl): Likewise.
49918         * sysdeps/ieee754/ldbl-128ibm/s_tanhl.c (__tanhl): Likewise.
49919         * sysdeps/powerpc/fpu/libm-test-ulps: Adjust tan_towardzero ulps.
49920
49921 2013-10-04  Alan Modra  <amodra@gmail.com>
49922
49923         * sysdeps/ieee754/ldbl-128ibm/math_ldbl.h (ldbl_high): Define.
49924         * sysdeps/ieee754/ldbl-128ibm/e_acoshl.c (__ieee754_acoshl): Rewrite
49925         all uses of ieee854 long double macros and unions.
49926         * sysdeps/ieee754/ldbl-128ibm/e_acosl.c (__ieee754_acosl): Likewise.
49927         * sysdeps/ieee754/ldbl-128ibm/e_asinl.c (__ieee754_asinl): Likewise.
49928         * sysdeps/ieee754/ldbl-128ibm/e_atanhl.c (__ieee754_atanhl): Likewise.
49929         * sysdeps/ieee754/ldbl-128ibm/e_coshl.c (__ieee754_coshl): Likewise.
49930         * sysdeps/ieee754/ldbl-128ibm/e_log2l.c (__ieee754_log2l): Likewise.
49931         * sysdeps/ieee754/ldbl-128ibm/e_rem_pio2l.c (__ieee754_rem_pio2l):
49932         Likewise.
49933         * sysdeps/ieee754/ldbl-128ibm/e_sinhl.c (__ieee754_sinhl): Likewise.
49934         * sysdeps/ieee754/ldbl-128ibm/k_cosl.c (__kernel_cosl): Likewise.
49935         * sysdeps/ieee754/ldbl-128ibm/k_sincosl.c (__kernel_sincosl): Likewise.
49936         * sysdeps/ieee754/ldbl-128ibm/k_sinl.c (__kernel_sinl): Likewise.
49937         * sysdeps/ieee754/ldbl-128ibm/s_asinhl.c (__asinhl): Likewise.
49938         * sysdeps/ieee754/ldbl-128ibm/s_atanl.c (__atanl): Likewise.
49939         Simplify sign and nan test too.
49940         * sysdeps/ieee754/ldbl-128ibm/s_cosl.c (__cosl): Likewise.
49941         * sysdeps/ieee754/ldbl-128ibm/s_fabsl.c (__fabsl): Likewise.
49942         * sysdeps/ieee754/ldbl-128ibm/s_finitel.c (___finitel): Likewise.
49943         * sysdeps/ieee754/ldbl-128ibm/s_fpclassifyl.c (___fpclassifyl):
49944         Likewise.
49945         * sysdeps/ieee754/ldbl-128ibm/s_isnanl.c (___isnanl): Likewise.
49946         * sysdeps/ieee754/ldbl-128ibm/s_issignalingl.c (__issignalingl):
49947         Likewise.
49948         * sysdeps/ieee754/ldbl-128ibm/s_logbl.c (__logbl): Likewise.
49949         * sysdeps/ieee754/ldbl-128ibm/s_signbitl.c (___signbitl): Likewise.
49950         * sysdeps/ieee754/ldbl-128ibm/s_sincosl.c (__sincosl): Likewise.
49951         * sysdeps/ieee754/ldbl-128ibm/s_sinl.c (__sinl): Likewise.
49952         * sysdeps/ieee754/ldbl-128ibm/s_tanl.c (__tanl): Likewise.
49953         * sysdeps/powerpc/powerpc32/power7/fpu/s_logbl.c (__logbl): Likewise.
49954
49955 2013-10-04  Alan Modra  <amodra@gmail.com>
49956
49957         * stdio-common/printf_size.c (__printf_size): Don't use
49958         union ieee854_long_double in fpnum union.
49959         * stdio-common/printf_fphex.c (__printf_fphex): Likewise.  Use
49960         signbit macro to retrieve sign from long double.
49961         * stdio-common/printf_fp.c (___printf_fp): Use signbit macro to
49962         retrieve sign from long double.
49963         * sysdeps/ieee754/ldbl-128ibm/printf_fphex.c: Adjust for fpnum change.
49964         * sysdeps/ieee754/ldbl-128/printf_fphex.c: Likewise.
49965         * sysdeps/ieee754/ldbl-96/printf_fphex.c: Likewise.
49966         * sysdeps/x86_64/fpu/printf_fphex.c: Likewise.
49967         * math/test-misc.c (main): Don't use union ieee854_long_double.
49968
49969 2013-10-04  Alan Modra  <amodra@gmail.com>
49970
49971         [BZ #15680]
49972         * sysdeps/ieee754/ldbl-128ibm/e_rem_pio2l.c: Comment fix.
49973         * sysdeps/ieee754/ldbl-128ibm/printf_fphex.c
49974         (PRINT_FPHEX_LONG_DOUBLE): Tidy code by moving -53 into ediff
49975         calculation.  Remove unnecessary test for denormal exponent.
49976         * sysdeps/ieee754/ldbl-128ibm/ldbl2mpn.c (__mpn_extract_long_double):
49977         Correct handling of denormals.  Avoid undefined shift behaviour.
49978         Correct normalisation of low mantissa when low double is denormal.
49979         * sysdeps/ieee754/ldbl-128ibm/math_ldbl.h
49980         (ldbl_extract_mantissa): Likewise.  Comment.  Use uint64_t* for hi64.
49981         (ldbl_insert_mantissa): Make both hi64 and lo64 parms uint64_t.
49982         Correct normalisation of low mantissa.  Test for overflow of high
49983         mantissa and normalise.
49984         (ldbl_nearbyint): Use more readable constant for two52.
49985         * sysdeps/ieee754/ldbl-128ibm/mpn2ldbl.c
49986         (__mpn_construct_long_double): Fix test for overflow of high
49987         mantissa and correct normalisation.  Avoid undefined shift.
49988
49989 2013-10-04  Alan Modra  <amodra@gmail.com>
49990
49991         * sysdeps/ieee754/ldbl-128ibm/ieee754.h
49992         (union ibm_extended_long_double): Define as an array of ieee754_double.
49993         (IBM_EXTENDED_LONG_DOUBLE_BIAS): Delete.
49994         * sysdeps/ieee754/ldbl-128ibm/printf_fphex.c: Update all references
49995         to ibm_extended_long_double and IBM_EXTENDED_LONG_DOUBLE_BIAS.
49996         * sysdeps/ieee754/ldbl-128ibm/e_exp10l.c: Likewise.
49997         * sysdeps/ieee754/ldbl-128ibm/e_expl.c: Likewise.
49998         * sysdeps/ieee754/ldbl-128ibm/ldbl2mpn.c: Likewise.
49999         * sysdeps/ieee754/ldbl-128ibm/math_ldbl.h: Likewise.
50000         * sysdeps/ieee754/ldbl-128ibm/mpn2ldbl.c: Likewise.
50001         * sysdeps/ieee754/ldbl-128ibm/s_nearbyintl.c: Likewise.
50002         * sysdeps/ieee754/ldbl-128ibm/strtold_l.c: Likewise.
50003         * sysdeps/ieee754/ldbl-128ibm/x2y2m1l.c: Likewise.
50004
50005 2013-10-03  Joseph Myers  <joseph@codesourcery.com>
50006
50007         * locale/programs/locarchive.c (add_locale): Use constant 4096 for
50008         page size instead of calling getpagesize.
50009
50010         * locale/localeinfo.h (LOCFILE_ALIGN): New macro.
50011         (LOCFILE_ALIGN_MASK): Likewise.
50012         (LOCFILE_ALIGN_UP): Likewise.
50013         (LOCFILE_ALIGNED_P): Likewise.
50014         * locale/programs/ld-collate.c (collate_output): Use the new
50015         macros instead of __alignof__ (int32_t).
50016         * locale/weight.h (findidx): Likewise.
50017
50018 2013-10-03  Ondřej Bílka  <neleai@seznam.cz>
50019
50020         [BZ #431]
50021         * manual/string.texi: Fix strncat and wcsncat.
50022
50023 2013-10-03  Brooks Moses  <bmoses@google.com>
50024
50025         [BZ #15915]
50026         * Makefile (linkobj/libc_pic.a, linkobj/libc.so): Move rules to...
50027         * Makerules: ...here, and adjust associated comments.
50028
50029 2013-10-02  Will Newton  <will.newton@linaro.org>
50030
50031         * malloc/Makefile: Add tst-pvalloc.
50032         * malloc/tst-pvalloc.c: New file.
50033
50034 2013-10-02  Will Newton  <will.newton@linaro.org>
50035
50036         * malloc/tst-valloc.c: Rewrite to use test-skeleton.c and
50037         improve test coverage.
50038
50039 2013-10-02  Will Newton  <will.newton@linaro.org>
50040
50041         * malloc/Makefile: Add tst-posix_memalign.
50042         * malloc/tst-posix_memalign.c: New file.
50043
50044 2013-10-01  Eric Blake  <eblake@redhat.com>
50045
50046         * posix/glob.c (next_brace_sub, prefix_array, collated_compare):
50047         Use __THROWNL rather than __THROW on static functions.
50048
50049 2013-09-30  Petr Machata  <pmachata@redhat.com>
50050
50051         * elf/elf.h (R_AARCH64_ABS16): New macro.
50052         (R_AARCH64_PREL64, R_AARCH64_PREL32): Likewise.
50053         (R_AARCH64_PREL16, R_AARCH64_MOVW_UABS_G0): Likewise.
50054         (R_AARCH64_MOVW_UABS_G0_NC, R_AARCH64_MOVW_UABS_G1): Likewise.
50055         (R_AARCH64_MOVW_UABS_G1_NC, R_AARCH64_MOVW_UABS_G2): Likewise.
50056         (R_AARCH64_MOVW_UABS_G2_NC, R_AARCH64_MOVW_UABS_G3): Likewise.
50057         (R_AARCH64_MOVW_SABS_G0, R_AARCH64_MOVW_SABS_G1): Likewise.
50058         (R_AARCH64_MOVW_SABS_G2, R_AARCH64_LD_PREL_LO19): Likewise.
50059         (R_AARCH64_ADR_PREL_LO21, R_AARCH64_ADR_PREL_PG_HI21): Likewise.
50060         (R_AARCH64_ADR_PREL_PG_HI21_NC, R_AARCH64_ADD_ABS_LO12_NC): Likewise.
50061         (R_AARCH64_LDST8_ABS_LO12_NC, R_AARCH64_LDST16_ABS_LO12_NC): Likewise.
50062         (R_AARCH64_LDST32_ABS_LO12_NC, R_AARCH64_LDST64_ABS_LO12_NC): Likewise.
50063         (R_AARCH64_LDST128_ABS_LO12_NC, R_AARCH64_TSTBR14): Likewise.
50064         (R_AARCH64_CONDBR19, R_AARCH64_JUMP26, R_AARCH64_CALL26): Likewise.
50065         (R_AARCH64_MOVW_PREL_G0, R_AARCH64_MOVW_PREL_G0_NC): Likewise.
50066         (R_AARCH64_MOVW_PREL_G1, R_AARCH64_MOVW_PREL_G1_NC): Likewise.
50067         (R_AARCH64_MOVW_PREL_G2, R_AARCH64_MOVW_PREL_G2_NC): Likewise.
50068         (R_AARCH64_MOVW_PREL_G3, R_AARCH64_MOVW_GOTOFF_G0): Likewise.
50069         (R_AARCH64_MOVW_GOTOFF_G0_NC, R_AARCH64_MOVW_GOTOFF_G1): Likewise.
50070         (R_AARCH64_MOVW_GOTOFF_G1_NC, R_AARCH64_MOVW_GOTOFF_G2): Likewise.
50071         (R_AARCH64_MOVW_GOTOFF_G2_NC, R_AARCH64_MOVW_GOTOFF_G3): Likewise.
50072         (R_AARCH64_GOTREL64, R_AARCH64_GOTREL32): Likewise.
50073         (R_AARCH64_GOT_LD_PREL19, R_AARCH64_LD64_GOTOFF_LO15): Likewise.
50074         (R_AARCH64_ADR_GOT_PAGE, R_AARCH64_LD64_GOT_LO12_NC): Likewise.
50075         (R_AARCH64_LD64_GOTPAGE_LO15, R_AARCH64_TLSGD_ADR_PREL21): Likewise.
50076         (R_AARCH64_TLSGD_ADR_PAGE21, R_AARCH64_TLSGD_ADD_LO12_NC): Likewise.
50077         (R_AARCH64_TLSGD_MOVW_G1, R_AARCH64_TLSGD_MOVW_G0_NC): Likewise.
50078         (R_AARCH64_TLSLD_ADR_PREL21, R_AARCH64_TLSLD_ADR_PAGE21): Likewise.
50079         (R_AARCH64_TLSLD_ADD_LO12_NC, R_AARCH64_TLSLD_MOVW_G1): Likewise.
50080         (R_AARCH64_TLSLD_MOVW_G0_NC, R_AARCH64_TLSLD_LD_PREL19): Likewise.
50081         (R_AARCH64_TLSLD_MOVW_DTPREL_G2): Likewise.
50082         (R_AARCH64_TLSLD_MOVW_DTPREL_G1): Likewise.
50083         (R_AARCH64_TLSLD_MOVW_DTPREL_G1_NC): Likewise.
50084         (R_AARCH64_TLSLD_MOVW_DTPREL_G0): Likewise.
50085         (R_AARCH64_TLSLD_MOVW_DTPREL_G0_NC): Likewise.
50086         (R_AARCH64_TLSLD_ADD_DTPREL_HI12): Likewise.
50087         (R_AARCH64_TLSLD_ADD_DTPREL_LO12): Likewise.
50088         (R_AARCH64_TLSLD_ADD_DTPREL_LO12_NC): Likewise.
50089         (R_AARCH64_TLSLD_LDST8_DTPREL_LO12): Likewise.
50090         (R_AARCH64_TLSLD_LDST8_DTPREL_LO12_NC): Likewise.
50091         (R_AARCH64_TLSLD_LDST16_DTPREL_LO12): Likewise.
50092         (R_AARCH64_TLSLD_LDST16_DTPREL_LO12_NC): Likewise.
50093         (R_AARCH64_TLSLD_LDST32_DTPREL_LO12): Likewise.
50094         (R_AARCH64_TLSLD_LDST32_DTPREL_LO12_NC): Likewise.
50095         (R_AARCH64_TLSLD_LDST64_DTPREL_LO12): Likewise.
50096         (R_AARCH64_TLSLD_LDST64_DTPREL_LO12_NC): Likewise.
50097         (R_AARCH64_TLSLD_LDST128_DTPREL_LO12): Likewise.
50098         (R_AARCH64_TLSLD_LDST128_DTPREL_LO12_NC): Likewise.
50099         (R_AARCH64_TLSIE_MOVW_GOTTPREL_G1): Likewise.
50100         (R_AARCH64_TLSIE_MOVW_GOTTPREL_G0_NC): Likewise.
50101         (R_AARCH64_TLSIE_ADR_GOTTPREL_PAGE21): Likewise.
50102         (R_AARCH64_TLSIE_LD64_GOTTPREL_LO12_NC): Likewise.
50103         (R_AARCH64_TLSIE_LD_GOTTPREL_PREL19): Likewise.
50104         (R_AARCH64_TLSLE_MOVW_TPREL_G2): Likewise.
50105         (R_AARCH64_TLSLE_MOVW_TPREL_G1): Likewise.
50106         (R_AARCH64_TLSLE_MOVW_TPREL_G1_NC): Likewise.
50107         (R_AARCH64_TLSLE_MOVW_TPREL_G0): Likewise.
50108         (R_AARCH64_TLSLE_MOVW_TPREL_G0_NC): Likewise.
50109         (R_AARCH64_TLSLE_ADD_TPREL_HI12): Likewise.
50110         (R_AARCH64_TLSLE_ADD_TPREL_LO12): Likewise.
50111         (R_AARCH64_TLSLE_ADD_TPREL_LO12_NC): Likewise.
50112         (R_AARCH64_TLSLE_LDST8_TPREL_LO12): Likewise.
50113         (R_AARCH64_TLSLE_LDST8_TPREL_LO12_NC): Likewise.
50114         (R_AARCH64_TLSLE_LDST16_TPREL_LO12): Likewise.
50115         (R_AARCH64_TLSLE_LDST16_TPREL_LO12_NC): Likewise.
50116         (R_AARCH64_TLSLE_LDST32_TPREL_LO12): Likewise.
50117         (R_AARCH64_TLSLE_LDST32_TPREL_LO12_NC): Likewise.
50118         (R_AARCH64_TLSLE_LDST64_TPREL_LO12): Likewise.
50119         (R_AARCH64_TLSLE_LDST64_TPREL_LO12_NC): Likewise.
50120         (R_AARCH64_TLSLE_LDST128_TPREL_LO12): Likewise.
50121         (R_AARCH64_TLSLE_LDST128_TPREL_LO12_NC): Likewise.
50122         (R_AARCH64_TLSDESC_LD_PREL19): Likewise.
50123         (R_AARCH64_TLSDESC_ADR_PREL21): Likewise.
50124         (R_AARCH64_TLSDESC_ADR_PAGE21): Likewise.
50125         (R_AARCH64_TLSDESC_LD64_LO12): Likewise.
50126         (R_AARCH64_TLSDESC_ADD_LO12): Likewise.
50127         (R_AARCH64_TLSDESC_OFF_G1): Likewise.
50128         (R_AARCH64_TLSDESC_OFF_G0_NC): Likewise.
50129         (R_AARCH64_TLSDESC_LDR): Likewise.
50130         (R_AARCH64_TLSDESC_ADD): Likewise.
50131         (R_AARCH64_TLSDESC_CALL): Likewise.
50132
50133 2013-09-30  Andreas Schwab  <schwab@suse.de>
50134
50135         [BZ #15048]
50136         * nscd/aicache.c (addhstaiX): Properly use the cache variable for
50137         the nss database lookup.
50138         * nscd/initgrcache.c (addinitgroupsX): Likewise.
50139         * sysdeps/posix/getaddrinfo.c (gaih_inet): Likewise.
50140
50141 2013-09-28  Mike Frysinger  <vapier@gentoo.org>
50142
50143         * sysdeps/unix/sysv/linux/tst-fanotify.c (do_test): Fix style.
50144
50145 2013-09-28  P. J. McDermott  <pj@pehjota.net>
50146
50147         * sysdeps/unix/Makefile ($(objpfx)stub-syscalls.c): Don't use
50148         ${Bash-specific parameter/pattern/string} parameter expansion.
50149         * sysdeps/unix/make-syscalls.sh: Likewise.
50150
50151 2013-09-27  Kaz Kojima  <kkojima@rr.iij4u.or.jp>
50152
50153         * sysdeps/sh/stackguard-macros.h: New file.
50154
50155 2013-09-26  Ondřej Bílka  <neleai@seznam.cz>
50156
50157         * sysdeps/x86_64/multiarch/Makefile (sysdep_routines): Update.
50158         * sysdeps/x86_64/multiarch/ifunc-impl-list.c: Remove strrchr ifunc.
50159         * sysdeps/x86_64/multiarch/strend-sse4.S Remove.
50160         * sysdeps/x86_64/multiarch/strrchr-sse2-no-bsf.S Likewise.
50161         * sysdeps/x86_64/multiarch/strrchr.S: Likewise.
50162         * sysdeps/x86_64/strrchr.S (strrchr): Use optimized implementation.
50163
50164 2013-09-25  Adhemerval Zanella  <azanella@linux.vnet.ibm.com>
50165
50166         * sysdeps/powerpc/powerpc64/stackguard-macros.h (POINTER_CHK_GUARD:
50167         Fix thread ID register.
50168
50169 2013-09-25  Joseph Myers  <joseph@codesourcery.com>
50170
50171         * conform/data/sched.h-data [XPG3 || XPG4]: Disable whole file.
50172         [POSIX || UNIX98]: Require rather than permitting all symbols from
50173         <time.h>.
50174         [POSIX || UNIX98] (sched_ss_low_priority): Do not specify optional
50175         element of struct sched_param.
50176         [POSIX || UNIX98] (sched_ss_repl_period): Likewise.
50177         [POSIX || UNIX98] (sched_ss_init_budget): Likewise.
50178         [POSIX || UNIX98] (sched_ss_max_repl): Likewise.
50179         [POSIX || UNIX98] (SCHED_SPORADIC): Do not specify optional
50180         constant.
50181
50182 2013-09-24  Olivier Langlois  <olivier@olivierlanglois.net>
50183
50184         * stdio-common/tst-long-dbl-fphex.c (do_test): Fix swprintf length
50185         argument calculation.
50186
50187 2013-09-24  Joseph Myers  <joseph@codesourcery.com>
50188
50189         * conform/data/pthread.h-data [POSIX] (PTHREAD_MUTEX_INITIALIZER):
50190         Expect macro.
50191         [POSIX] (pthread_attr_t): Do not require type.
50192         [POSIX] (pthread_cond_t): Likewise.
50193         [POSIX] (pthread_condattr_t): Likewise.
50194         [POSIX] (pthread_key_t): Likewise.
50195         [POSIX] (pthread_mutex_t): Likewise.
50196         [POSIX] (pthread_mutexattr_t): Likewise.
50197         [POSIX] (pthread_once_t): Likewise.
50198         [POSIX] (pthread_t): Likewise.
50199         [POSIX-based standards] (pthread_atfork): Expect function.
50200
50201 2013-09-24  Joseph Myers  <joseph@codesourcery.com>
50202             Richard Sandiford  <richard@codesourcery.com>
50203
50204         * locale/programs/locfile.h: Include <byteswap.h> and <stdbool.h>.
50205         (swap_endianness_p): New extern variable.
50206         (set_big_endian): New inline function.
50207         (maybe_swap_uint32): Likewise.
50208         (maybe_swap_uint32_array): Likewise.
50209         (maybe_swap_uint32_obstack): Likewise.
50210         * locale/programs/locfile.c: Include <stdbool.h>.
50211         (swap_endianness_p): New variable.
50212         (add_locale_uint32): Call maybe_swap_uint32.
50213         (add_locale_uint32_array): Call maybe_swap_uint32_obstack.
50214         (write_locale_data): Call maybe_swap_uint32_array.
50215         * locale/programs/ld-collate.c (obstack_int32_grow): Call
50216         maybe_swap_uint32.
50217         (obstack_int32_grow_fast): Likewise.
50218         (output_weightwc): Call maybe_swap_uint32_obstack.
50219         (collate_output): Likewise.
50220         * locale/programs/localedef.c (OPT_LITTLE_ENDIAN): New macro.
50221         (OPT_LITTLE_ENDIAN): Likewise.
50222         (options): Add --little-endian and --big-endian options.
50223         (parse_opt): Handle OPT_LITTLE_ENDIAN and OPT_BIG_ENDIAN.
50224         * locale/programs/locarchive.c: Include "locfile.h".
50225         (GET): New macro.
50226         (SET): Likewise.
50227         (INC): Likewise.
50228         (create_archive): Use the new macros to access fields of
50229         structures directly mapped from or written to locale archives.
50230         (oldlocrecentcmp): Likewise.
50231         (enlarge_archive): Likewise.
50232         (insert_name): Likewise.
50233         (add_alias): Likewise.
50234         (add_locale): Likewise.
50235         (delete_locales_from_archive): Likewise.
50236         (show_archive_content): Likewise.
50237         (add_locale_to_archive): Likewise.  Use maybe_swap_uint32 on
50238         locale data.
50239
50240 2013-09-24  Roland McGrath  <roland@hack.frob.com>
50241
50242         * manual/freemanuals.texi: Updated from (newly) canonical copy at
50243         http://www.gnu.org/doc/freemanuals.texi.
50244         * manual/libc.texinfo (Free Manuals): Put the @appendix line here.
50245
50246 2013-09-24  Will Newton  <will.newton@linaro.org>
50247
50248         * sysdeps/mach/hurd/i386/tls.h (TLS_INIT_TP_EXPENSIVE): Remove
50249         macro.
50250
50251 2013-09-23  Joseph Myers  <joseph@codesourcery.com>
50252
50253         * locale/hashval.h (compute_hashval): Interpret bytes of key as
50254         unsigned char.
50255
50256 2013-09-23  Maciej W. Rozycki  <macro@codesourcery.com>
50257
50258         * manual/threads.texi (POSIX Threads): Fix a typo.
50259
50260 2013-09-23  Siddhesh Poyarekar  <siddhesh@redhat.com>
50261
50262         [BZ #14547]
50263         * string/tst-strcoll-overflow.c: New test case.
50264         * string/Makefile (xtests): Add tst-strcoll-overflow.
50265         * string/strcoll_l.c (STRCOLL): Skip allocating memory for
50266         cache if string sizes may cause integer overflow.
50267
50268         [BZ #14547]
50269         * string/strcoll_l.c (coll_seq): New members rule, idx,
50270         save_idx and back_us.
50271         (get_next_seq_nocache): New function.
50272         (do_compare_nocache): New function.
50273         (STRCOLL): Use get_next_seq_nocache and do_compare_nocache
50274         when malloc fails.
50275
50276 2013-09-23  Carlos O'Donell  <carlos@redhat.com>
50277
50278         [BZ #15754]
50279         * sysdeps/generic/stackguard-macros.h: If PTRGUARD_LOCAL use
50280         __pointer_chk_guard_local, otherwise __pointer_chk_guard.
50281         * elf/Makefile: Define CFLAGS-tst-ptrguard1-static.c.
50282
50283         [BZ #15754]
50284         * elf/Makefile (tests): Add tst-ptrguard1.
50285         (tests-static): Add tst-ptrguard1-static.
50286         (tst-ptrguard1-ARGS): Define.
50287         (tst-ptrguard1-static-ARGS): Define.
50288         * elf/tst-ptrguard1.c: New file.
50289         * elf/tst-ptrguard1-static.c: New file.
50290         * sysdeps/x86_64/stackguard-macros.h: Define POINTER_CHK_GUARD.
50291         * sysdeps/i386/stackguard-macros.h: Likewise.
50292         * sysdeps/powerpc/powerpc32/stackguard-macros.h: Likewise.
50293         * sysdeps/powerpc/powerpc64/stackguard-macros.h: Likewise.
50294         * sysdeps/s390/s390-32/stackguard-macros.h: Likewise.
50295         * sysdeps/s390/s390-64/stackguard-macros.h: Likewise.
50296         * sysdeps/sparc/sparc32/stackguard-macros.h: Likewise.
50297         * sysdeps/sparc/sparc64/stackguard-macros.h: Likewise.
50298
50299 2013-09-23  Hector Marco  <hecmargi@upv.es>
50300             Ismael Ripoll  <iripoll@disca.upv.es>
50301             Carlos O'Donell  <carlos@redhat.com>
50302
50303         [BZ #15754]
50304         * sysdeps/generic/stackguard-macros.h: Define
50305         __pointer_chk_guard_local and POINTER_CHK_GUARD.
50306         * csu/libc-start.c [!SHARED && !THREAD_SET_POINTER_GUARD]:
50307         Define __pointer_chk_guard_local.
50308         (LIBC_START_MAIN) [!SHARED]: Call _dl_setup_pointer_guard.
50309         Use THREAD_SET_POINTER_GUARD or set __pointer_chk_guard_local.
50310
50311 2013-09-15  Vinitha Vijayan <vinitha.vijayann@gmail.com>
50312
50313         [BZ #15859]
50314         * elf/dl-deps.c (_dl_map_object_deps): Remove duplicate declaration.
50315
50316 2013-09-20  Andreas Schwab  <schwab@linux-m68k.org>
50317
50318         * include/string.h (__ffs): Declare as hidden.
50319         * string/ffs.c (__ffs): Define as hidden.
50320         * sysdeps/i386/ffs.c (__ffs): Likewise.
50321         * sysdeps/i386/i686/ffs.c (__ffs): Likewise.
50322         * sysdeps/powerpc/ffs.c (__ffs): Likewise.
50323         * sysdeps/s390/ffs.c (__ffs): Likewise.
50324         * sysdeps/x86_64/ffs.c (__ffs): Likewise.
50325
50326 2013-09-20  Alexandre Oliva <aoliva@redhat.com>
50327
50328         * NEWS: Mention malloc probes.
50329
50330         * malloc/arena.c (new_heap): New memory_heap_new probe.
50331         (grow_heap): New memory_heap_more probe.
50332         (shrink_heap): New memory_heap_less probe.
50333         (heap_trim): New memory_heap_free probe.
50334         * malloc/malloc.c (sysmalloc): New memory_sbrk_more probe.
50335         (systrim): New memory_sbrk_less probe.
50336         * manual/probes.texi: Document them.
50337
50338         * malloc/arena.c (arena_get_retry): Add memory_arena_retry probe.
50339         * manual/probes.texi: Document it.
50340
50341         * malloc/malloc.c (__libc_malloc): Add memory_malloc_retry probe.
50342         (__libc_realloc): Add memory_realloc_retry probe.
50343         (__libc_memalign): Add memory_memalign_retry probe.
50344         (__libc_valloc): Add memory_valloc_retry probe.
50345         (__libc_pvalloc): Add memory_pvalloc_retry probe.
50346         (__libc_calloc): Add memory_calloc_retry probe.
50347         * manual/probes.texi: Document them.
50348
50349         * malloc/arena.c (get_free_list): Add probe
50350         memory_arena_reuse_free_list.
50351         (reused_arena) [PER_THREAD]: Add probes memory_arena_reuse_wait
50352         and memory_arena_reuse.
50353         (arena_get2) [!PER_THREAD]: Likewise.
50354         * malloc/malloc.c (__libc_realloc) [!PER_THREAD]: Add probe
50355         memory_arena_reuse_realloc.
50356         * manual/probes.texi: Document them.
50357
50358         * malloc/malloc.c (__libc_free): Add
50359         memory_mallopt_free_dyn_thresholds probe.
50360         (__libc_mallopt): Add multiple memory_mallopt probes.
50361         * manual/probes.texi: Document them.
50362
50363         * malloc/malloc.c: Include stap-probe.h.
50364         (__libc_mallopt): Add memory_mallopt probe.
50365         * malloc/arena.c (_int_new_arena): Add memory_arena_new probe.
50366         * manual/probes.texi: New.
50367         * manual/Makefile (chapters): Add probes.
50368         * manual/threads.texi: Set next node.
50369
50370 2013-09-19  Wei-Lun Chao  <bluebat@member.fsf.org>
50371
50372         [BZ #15963, #13985]
50373         * locale/iso-639.def: Add Chiga (cgg) and Chinese (gan, hak,
50374         czh, cjy, lzh, cmn, mnp, cdo, czo, cpx, wuu, hsn, yue).
50375         Add `Chinese' to `nan' entry name.
50376
50377 2013-09-19  Siddhesh Poyarekar  <siddhesh@redhat.com>
50378
50379         * sysdeps/ieee754/dbl-64/s_sin.c (POLYNOMIAL2): New macro.
50380         (POLYNOMIAL): Likewise.
50381         (TAYLOR_SINCOS): Likewise.
50382         (TAYLOR_SLOW): Likewise.
50383         (__sin): Use TAYLOR_SINCOS.
50384         (__cos): Likewise.
50385         (slow): Use TAYLOR_SLOW.
50386         (sloww): Likewise.
50387         (bsloww): Likewise.
50388         (csloww): Likewise.
50389
50390 2013-09-19  Liubov Dmitrieva  <liubov.dmitrieva@intel.com>
50391
50392         * stdlib/strtod_l.c: Fix buffer overrun.
50393
50394 2013-09-19  Siddhesh Poyarekar  <siddhesh@redhat.com>
50395
50396         * benchtests/Makefile (bench): Add sincos.
50397         * benchtests/bench-sincos.c: New file.
50398
50399         * math/libm-test.inc (cos_test_data): New test inputs.
50400         (sin_test_data): Likewise.
50401
50402         * sysdeps/ieee754/dbl-64/s_sin.c (SINCOS_TABLE_LOOKUP): New
50403         macro.
50404         (__sin): Use it.
50405         (__cos): Likewise.
50406         (slow1): Likewise.
50407         (slow2): Likewise.
50408         (sloww1): Likewise.
50409         (sloww2): Likewise.
50410         (bsloww1): Likewise.
50411         (bsloww2): Likewise.
50412         (cslow2): Likewise.
50413         (csloww1): Likewise.
50414         (csloww2): Likewise.
50415
50416         * sysdeps/ieee754/dbl-64/s_sin.c (reduce_and_compute): New
50417         function.
50418         (__sin): Use it.
50419         (__cos): Likewise.
50420
50421         * sysdeps/ieee754/dbl-64/s_sin.c (__sin): Remove redundant
50422         gotos.
50423         (__cos): Likewise.
50424
50425 2013-09-18  Maciej W. Rozycki  <macro@codesourcery.com>
50426
50427         * config.h.in (HAVE_MIPS_NAN2008): New macro.
50428         * elf/elf.h (EF_MIPS_NAN2008): Likewise.
50429         * sysdeps/generic/ldconfig.h (FLAG_MIPS_LIB32_NAN2008): Likewise.
50430         (FLAG_MIPS64_LIBN32_NAN2008): Likewise.
50431         (FLAG_MIPS64_LIBN64_NAN2008): Likewise.
50432         * elf/cache.c (print_entry): Handle the new cache flags.
50433
50434 2013-09-18  Joseph Myers  <joseph@codesourcery.com>
50435             Aldy Hernandez  <aldyh@redhat.com>
50436
50437         * sysdeps/powerpc/fpu_control.h [_SOFT_FLOAT || __NO_FPRS__]:
50438         Change condition to [_SOFT_FLOAT].
50439         [__NO_FPRS__ && !_SOFT_FLOAT] (_FPU_RC_NEAREST): New macro.
50440         [__NO_FPRS__ && !_SOFT_FLOAT] (_FPU_RC_DOWN): Likewise.
50441         [__NO_FPRS__ && !_SOFT_FLOAT] (_FPU_RC_UP): Likewise.
50442         [__NO_FPRS__ && !_SOFT_FLOAT] (_FPU_RC_ZERO): Likewise.
50443         [__NO_FPRS__ && !_SOFT_FLOAT] (_FPU_MASK_ZM): Likewise.
50444         [__NO_FPRS__ && !_SOFT_FLOAT] (_FPU_MASK_OM): Likewise.
50445         [__NO_FPRS__ && !_SOFT_FLOAT] (_FPU_MASK_UM): Likewise.
50446         [__NO_FPRS__ && !_SOFT_FLOAT] (_FPU_MASK_XM): Likewise.
50447         [__NO_FPRS__ && !_SOFT_FLOAT] (_FPU_MASK_IM): Likewise.
50448         [__NO_FPRS__ && !_SOFT_FLOAT] (_FPU_RESERVED): Likewise.
50449         [__NO_FPRS__ && !_SOFT_FLOAT] (_FPU_DEFAULT): Likewise.
50450         [__NO_FPRS__ && !_SOFT_FLOAT] (_FPU_IEEE): Likewise.
50451         [__NO_FPRS__ && !_SOFT_FLOAT] (fpu_control_t): New typedef.
50452         [__NO_FPRS__ && !_SOFT_FLOAT] (_FPU_GETCW): New macro.
50453         [__NO_FPRS__ && !_SOFT_FLOAT] (_FPU_SETCW): Likewise.
50454         [__NO_FPRS__ && !_SOFT_FLOAT] (__fpu_control): New variable
50455         declaration.
50456
50457 2013-09-18  Joseph Myers  <joseph@codesourcery.com>
50458
50459         * sysdeps/powerpc/powerpc32/__longjmp-common.S (LOAD_GP): Define
50460         macro conditional on [__SPE__ || (__NO_FPRS__ && !_SOFT_FLOAT)].
50461         (__longjmp): Use LOAD_GP to load saved GPRs.
50462         * sysdeps/powerpc/powerpc32/setjmp-common.S (SAVE_GP): Define
50463         macro conditional on [__SPE__ || (__NO_FPRS__ && !_SOFT_FLOAT)].
50464         (__sigsetjmp): Use SAVE_GP to save GPRs.
50465
50466         * sysdeps/powerpc/powerpc32/Makefile [$(with-fp) = no] (+cflags):
50467         Do not append -msoft-float.
50468         [$(with-fp) = no] (sysdep-LDFLAGS): Likewise.
50469
50470 2013-09-18  Siddhesh Poyarekar  <siddhesh@redhat.com>
50471
50472         * sysdeps/ieee754/dbl-64/sincos32.c: Fix code formatting.
50473
50474 2013-09-17  Joseph Myers  <joseph@codesourcery.com>
50475
50476         [BZ #15966]
50477         * sysdeps/powerpc/fpu_control.h [!_SOFT_FLOAT && !__NO_FPRS__]
50478         (_FPU_GETCW): Use initial "__" on variable and field names but not
50479         on macro parameter name.
50480         [!_SOFT_FLOAT && !__NO_FPRS__] (_FPU_SETCW): Likewise.  Use
50481         parentheses around reference to macro parameter.
50482
50483 2013-09-13  Richard Sandiford  <richard@codesourcery.com>
50484
50485         * locale/programs/ld-ctype.c (find_idx): Use uint32_t in
50486         prototype.
50487         (ctype_startup): Use uint32_t in cast and sizeof for
50488         ctype->charnames.
50489
50490 2013-09-11  Jia Liu  <proljc@gmail.com>
50491
50492         * sunrpc/rpc/types.h [__APPLE_CC__]: Define __u_char_defined and
50493         __daddr_t_defined.
50494         [__FreeBSD__]: Likewise.
50495
50496 2013-09-11  Ondřej Bílka  <neleai@seznam.cz>
50497
50498         * sysdeps/x86_64/multiarch/ifunc-impl-list.c
50499         (__libc_ifunc_impl_list): Remove: __strchr_sse42.
50500         * sysdeps/x86_64/multiarch/strchr.S (__strchr_sse42): Remove.
50501         (strchr): Remove __strchr_sse42 ifunc selection.
50502         * sysdeps/x86_64/strchr.S (strchr): Use optimized implementation.
50503         * sysdeps/x86_64/strchrnul.S: Include sysdeps/x86_64/strchr.S.
50504
50505 2013-09-11  Will Newton  <will.newton@linaro.org>
50506
50507         * benchtests/bench-timing.h (TIMING_INIT): Rename ITERS
50508         parameter to RES. Remove hardcoded 1000 value.
50509         * benchtests/bench-skeleton.c (main): Pass RES parameter
50510         to TIMING_INIT and multiply result by 1000.
50511
50512 2013-09-10  Adhemerval Zanella  <azanella@linux.vnet.ibm.com>
50513
50514         * sysdeps/powerpc/fpu/libm-test-ulps: Update.
50515
50516 2013-09-11  Andreas Schwab  <schwab@suse.de>
50517
50518         * sysdeps/unix/sysv/linux/bits/fcntl-linux.h (__O_TMPFILE): Define
50519         if not defined.
50520         (O_TMPFILE) [__USE_GNU]: Define.
50521         * sysdeps/unix/sysv/linux/sparc/bits/fcntl.h (__O_TMPFILE):
50522         Define.
50523
50524 2013-09-11  Will Newton  <will.newton@linaro.org>
50525
50526         [BZ #15857]
50527         * malloc/malloc.c (__libc_memalign): Check the value of bytes
50528         does not overflow.
50529
50530 2013-09-11  Will Newton  <will.newton@linaro.org>
50531
50532         [BZ #15856]
50533         * malloc/malloc.c (__libc_valloc): Check the value of bytes
50534         does not overflow.
50535
50536 2013-09-11  Will Newton  <will.newton@linaro.org>
50537
50538         [BZ #15855]
50539         * malloc/malloc.c (__libc_pvalloc): Check the value of bytes
50540         does not overflow.
50541
50542 2013-09-10  Ondřej Bílka  <neleai@seznam.cz>
50543
50544         * sysdeps/ieee754/dbl-64/e_j0.c: Remove DO_NOT_USE_THIS conditionals.
50545         * sysdeps/ieee754/dbl-64/e_j1.c: Likewise.
50546         * sysdeps/ieee754/dbl-64/s_erf.c: Likewise.
50547         * sysdeps/ieee754/dbl-64/s_expm1.c: Likewise.
50548         * sysdeps/ieee754/dbl-64/s_log1p.c: Likewise.
50549
50550 2013-09-10  Allan McRae  <allan@archlinux.org>
50551
50552         [BZ #15748]
50553         * manual/arith.texi (Parsing of Floats): Clarify
50554         cross-reference.
50555
50556         [BZ #15849]
50557         * manual/install.texi (Running make install): Mention
50558         --enable-pt-chown.
50559         * INSTALL: Regenerated.
50560
50561 2013-09-09  Maciej W. Rozycki  <macro@codesourcery.com>
50562
50563         * csu/init-first.c (_init): Remove the !SHARED condition around
50564         FPU control word initialization.
50565         * elf/dl-support.c (_dl_fpu_control): New variable.
50566         (_dl_aux_init) <AT_FPUCW>: Initialize it.
50567         * math/test-fpucw.c [!FPU_CONTROL] (FPU_CONTROL): New macro.
50568         (main): Replace _FPU_DEFAULT with FPU_CONTROL throughout.
50569         * math/test-fpucw-static.c: New file.
50570         * math/test-fpucw-ieee.c: New file.
50571         * math/test-fpucw-ieee-static.c: New file.
50572         * math/Makefile (tests): Add `test-fpucw-ieee' and
50573         `$(tests-static)'.
50574         (tests-static): New variable.
50575         [($(build-shared),yes)] ($(addprefix $(objpfx),$(tests))): Move
50576         dependency to...
50577         [($(build-shared),yes)]
50578         ($(addprefix $(objpfx),$(filter-out $(tests-static),$(tests)))):
50579         ... this.
50580         [($(build-shared),yes)] ($(addprefix $(objpfx),$(tests-static))):
50581         New dependency.
50582
50583 2013-09-09  Allan McRae  <allan@archlinux.org>
50584
50585         [BZ #15939]
50586         * manual/string.texi (Collation Functions): Fix typo in
50587         strcoll example.
50588         Reported by Suren Karapetyan <me@suren.karapetyan.name>.
50589
50590         [BZ #15893]
50591         * stdlib/isomac.c (get_null_defines): Fix memory leak.
50592
50593         [BZ #15892]
50594         * libio/memstream.c (open_memstream): Fix memory leak.
50595         * libio/wmemstream.c (open_wmemstream): Likewise.
50596
50597         [BZ #15895]
50598         * nscd/netgroupcache.c: Fix nesting of ifdefs.
50599
50600 2013-09-09  Will Newton  <will.newton@linaro.org>
50601
50602         * malloc/Makefile: Add tst-realloc to tests.
50603         * malloc/tst-realloc.c: New file.
50604
50605 2013-09-09  Allan McRae  <allan@archlinux.org>
50606
50607         [BZ #15844]
50608         * COPYING: Update from GNU website to fix FSF address.
50609         * COPYING.LIB: Likewise.
50610
50611 2013-09-06  David S. Miller  <davem@davemloft.net>
50612
50613         * po/zh_TW.po: Update Chinese (traditional) translation from
50614         translation project.
50615
50616 2013-09-06  Richard Sandiford  <richard@codesourcery.com>
50617             Joseph Myers  <joseph@codesourcery.com>
50618
50619         * locale/programs/locfile.c: Include <assert.h>, <wchar.h> and
50620         "localeinfo.h".
50621         (obstack_chunk_alloc): New macro.
50622         (obstack_chunk_free): Likewise.
50623         (record_offset): New function.
50624         (init_locale_data): Likewise.
50625         (align_locale_data): Likewise.
50626         (add_locale_empty): Likewise.
50627         (add_locale_raw_data): Likewise.
50628         (add_locale_raw_obstack): Likewise.
50629         (add_locale_string): Likewise.
50630         (add_locale_wstring): Likewise.
50631         (add_locale_uint32): Likewise.
50632         (add_locale_uint32_array): Likewise.
50633         (add_locale_char): Likewise.
50634         (start_locale_structure): Likewise.
50635         (end_locale_structure): Likewise.
50636         (start_locale_prelude): Likewise.
50637         (end_locale_prelude): Likewise.
50638         (write_locale_data): Take locale_file structure rather than an
50639         iovec.
50640         * locale/programs/locfile.h: Include "obstack.h".
50641         (struct locale_file): Change to store locale file contents instead
50642         of header.
50643         (init_locale_data): New prototype.
50644         (align_locale_data): Likewise.
50645         (add_locale_empty): Likewise.
50646         (add_locale_raw_data): Likewise.
50647         (add_locale_raw_obstack): Likewise.
50648         (add_locale_string): Likewise.
50649         (add_locale_wstring): Likewise.
50650         (add_locale_uint32): Likewise.
50651         (add_locale_uint32_array): Likewise.
50652         (add_locale_char): Likewise.
50653         (start_locale_structure): Likewise.
50654         (end_locale_structure): Likewise.
50655         (start_locale_prelude): Likewise.
50656         (end_locale_prelude): Likewise.
50657         (write_locale_data): Update prototype.
50658         * locale/programs/3level.h (struct TABLE): Remove result field.
50659         (CONCAT(TABLE,_finalize)): Change to CONCAT(add_locale_,TABLE).
50660         Use new locale_file interface.
50661         [!NO_FINALIZE]: Change condition to [!NO_ADD_LOCALE].
50662         (NO_FINALIZE): Change #undef to #undef of NO_ADD_LOCALE.
50663         * locale/programs/ld-address.c (address_output): Use new
50664         locale_file interface.
50665         * locale/programs/ld-collate.c (NO_FINALIZE): Change to
50666         NO_ADD_LOCALE.
50667         (collate_finish): Don't call collseq_table_finalize.
50668         (collate_output): Use new locale_file interface.
50669         * locale/programs/ld-ctype.c: Move includes of "3level.h" earlier
50670         in file.
50671         (NO_FINALIZE): Change to NO_ADD_LOCALE.
50672         (TABLE): Move defines earlier in file.
50673         (ELEMENT): Likewise.
50674         (DEFAULT): Likewise.
50675         (wctrans_table_add): Move macro and inline function earlier in
50676         file.
50677         (struct wctype_table): Move type earlier in file.
50678         (add_locale_wctype_table): New static prototype.
50679         (struct locale_ctype_t): Use logical types instead of struct iovec
50680         pointers for members.
50681         (ctype_output): Use new locale_file interface.
50682         (wctype_table_finalize): Change to add_locale_wctype_table.  Use
50683         new locale_file interface.
50684         (allocate_arrays): Update for use of new locale_file interface.
50685         * locale/programs/ld-identification.c (identification_output): Use
50686         new locale_file interface.
50687         * locale/programs/ld-measurement.c (measurement_output): Likewise.
50688         * locale/programs/ld-messages.c (messages_output): Likewise.
50689         * locale/programs/ld-monetary.c (monetary_output): Likewise.
50690         * locale/programs/ld-name.c (name_output): Likewise.
50691         * locale/programs/ld-numeric.c (numeric_output): Likewise.
50692         * locale/programs/ld-paper.c (paper_output): Likewise.
50693         * locale/programs/ld-telephone.c (telephone_output): Likewise.
50694         * locale/programs/ld-time.c (time_output): Likewise.
50695
50696 2013-09-06  Adhemerval Zanella  <azanella@linux.vnet.ibm.com>
50697
50698         * benchtests/Makefile: Add memrchr benchmark.
50699         * benchtests/bench-memchr.c (USE_AS_MEMRCHR): Add define to use
50700         benchmark as memrchr.
50701         * benchtests/bench-memrchr-ifunc.c: New file.
50702         * benchtests/bench-memrchr.c: New file.
50703
50704 2013-09-06   Will Newton  <will.newton@linaro.org>
50705
50706         * benchtests/Makefile (string-bench): Add memcpy.
50707
50708 2013-09-05  Carlos O'Donell  <carlos@redhat.com>
50709             Cong Wang  <amwang@redhat.com>
50710
50711         [BZ #15850]
50712         * sysdeps/unix/sysv/linux/bits/in.h
50713         [_UAPI_LINUX_IN6_H]: Define __USE_KERNEL_IPV6_DEFS.
50714         * inet/netinet/in.h: Move in_addr definition and bits/in.h inclusion
50715         before __USE_KERNEL_IPV6_DEFS uses.
50716         * inet/netinet/in.h [!__USE_KERNEL_IPV6_DEFS]: Define IPPROTO_MH, and
50717         IPPROTO_BEETPH.
50718         [__USE_KERNEL_IPV6_DEFS]: Don't define any of IPPROTO_*, in6_addr,
50719         sockaddr_in6, or ipv6_mreq.
50720
50721 2013-09-05  Adhemerval Zanella  <azanella@linux.vnet.ibm.com>
50722
50723         * sysdeps/powerpc/powerpc32/power7/memrchr.S (__memrchr): Fix invalid
50724         memory access for final bytes in some large inputs.
50725         * sysdeps/powerpc/powerpc64/power7/memrchr.S (__memrchr): Likewise.
50726
50727 2013-09-05  Adhemerval Zanella  <azanella@linux.vnet.ibm.com>
50728
50729         * string/test-memrchr.c: New file.
50730         * string/test-memrchr-ifunc.c: New file.
50731         * string/Makefile: Add new memrchr testcase.
50732
50733 2013-09-05  Mike Frysinger  <vapier@gentoo.org>
50734
50735         * sysdeps/unix/sysv/linux/tst-fanotify.c (do_test): Skip test when
50736         fanotify_init returns EPERM.
50737
50738 2013-09-04  Joseph Myers  <joseph@codesourcery.com>
50739
50740         * conform/conformtest.pl (newtoken): Treat tokens not allowed as
50741         errors.
50742         (top level): Treat second token from macro or constant entries for
50743         allowed headers as allowed.
50744         * include/complex.h: Condition internal declarations on
50745         [!_ISOMAC].
50746         * include/fenv.h: Condition include of <stdbool.h> and internal
50747         declarations on [!_ISOMAC].
50748
50749 2013-09-04  Chris Leonard  <cjl@sugarlabs,.org>
50750
50751         [BZ #15923]
50752         * locale/iso-4217.def: Update iso-1427.def and related occurrences.
50753
50754 2013-09-04  Joseph Myers  <joseph@codesourcery.com>
50755
50756         * configure.in (--enable-versioning): Remove configure option.
50757         (libc_cv_asm_symver_directive): Remove configure test.
50758         (libc_cv_ld_version_script_option): Likewise.
50759         (VERSIONING): Remove variable and AC_SUBST.
50760         (DO_VERSIONING): Remove AC_DEFINE.
50761         * configure: Regenerated.
50762         * config.h.in (DO_VERSIONING): Remove macro.
50763         * Makerules [$(versioning) = yes]: Change conditionals to
50764         [$(build-shared) = yes].
50765         * config.make.in (versioning): Remove variable.
50766         * dlfcn/Makefile [$(versioning) = yes]: Change conditionals to
50767         [$(build-shared) = yes].
50768         * dlfcn/modstatic2.c (test) [DO_VERSIONING]: Remove conditional.
50769         * dlfcn/tststatic2.c (main) [DO_VERSIONING]: Likewise.
50770         * elf/Makefile [$(versioning) = yes]: Change conditionals to
50771         [$(build-shared) = yes].
50772         * extra-lib.mk [$(versioning) = yes]: Likewise.
50773         * hurd/Makefile [$(versioning) = yes]: Likewise.
50774         * hurd/geteuids.c [SHARED && DO_VERSIONING]: Change conditional to
50775         [SHARED].
50776         * include/libc-symbols.h [DO_VERSIONING]: Change conditional to
50777         [SHARED].
50778         [SHARED && DO_VERSIONING && !NO_HIDDEN]: Change conditional to
50779         [SHARED && !NO_HIDDEN].
50780         * include/shlib-compat.h [DO_VERSIONING]: Change conditional to
50781         [SHARED].
50782         [SHARED && DO_VERSIONING]: Likewise..
50783         * libio/Makefile [$(versioning) = yes]: Change conditionals to
50784         [$(build-shared) = yes].
50785         * manual/install.texi (--disable-versioning): Remove
50786         documentation.
50787         * INSTALL: Regenerated.
50788         * resolv/res_libc.c [SHARED && DO_VERSIONING]: Change conditional
50789         to [SHARED].
50790         * sunrpc/Makefile [$(versioning) = yes]: Change conditional to
50791         [$(build-shared) = yes].
50792         * sysdeps/gnu/Makefile [$(versioning) = yes]: Likewise.
50793         * sysdeps/i386/i686/multiarch/strstr-c.c
50794         [SHARED && DO_VERSIONING && !NO_HIDDEN]: Change conditional to
50795         [SHARED && !NO_HIDDEN].
50796         * sysdeps/ieee754/ldbl-opt/math_ldbl_opt.h
50797         [SHARED && DO_VERSIONING]: Change conditional to [SHARED].
50798         * sysdeps/powerpc/powerpc32/dl-machine.c
50799         [SHARED && !(DO_VERSIONING - 0)]: Remove conditional error.
50800         * sysdeps/powerpc/powerpc32/sysdep.h
50801         [SHARED && DO_VERSIONING && PIC && !NO_HIDDEN]: Change conditional
50802         to [SHARED && PIC && !NO_HIDDEN].
50803         * sysdeps/wordsize-32/divdi3.c [SHARED && DO_VERSIONING]: Change
50804         conditional to [SHARED].
50805
50806 2013-09-04   Will Newton  <will.newton@linaro.org>
50807
50808         * benchtests/bench-timing.h (TIMING_PRINT_MEAN): New macro.
50809         * benchtests/bench-string.h: Include bench-timing.h instead
50810         of including hp-timing.h directly. (INNER_LOOP_ITERS): New
50811         define. (HP_TIMING_BEST): Delete macro. (test_init): Remove
50812         call to HP_TIMING_DIFF_INIT.
50813         * benchtests/bench-memccpy.c: Use bench-timing.h macros
50814         instead of hp-timing.h macros.
50815         * benchtests/bench-memchr.c: Likewise.
50816         * benchtests/bench-memcmp.c: Likewise.
50817         * benchtests/bench-memcpy.c: Likewise.
50818         * benchtests/bench-memmem.c: Likewise.
50819         * benchtests/bench-memmove.c: Likewise.
50820         * benchtests/bench-memset.c: Likewise.
50821         * benchtests/bench-rawmemchr.c: Likewise.
50822         * benchtests/bench-strcasecmp.c: Likewise.
50823         * benchtests/bench-strcasestr.c: Likewise.
50824         * benchtests/bench-strcat.c: Likewise.
50825         * benchtests/bench-strchr.c: Likewise.
50826         * benchtests/bench-strcmp.c: Likewise.
50827         * benchtests/bench-strcpy.c: Likewise.
50828         * benchtests/bench-strcpy_chk.c: Likewise.
50829         * benchtests/bench-strlen.c: Likewise.
50830         * benchtests/bench-strncasecmp.c: Likewise.
50831         * benchtests/bench-strncat.c: Likewise.
50832         * benchtests/bench-strncmp.c: Likewise.
50833         * benchtests/bench-strncpy.c: Likewise.
50834         * benchtests/bench-strnlen.c: Likewise.
50835         * benchtests/bench-strpbrk.c: Likewise.
50836         * benchtests/bench-strrchr.c: Likewise.
50837         * benchtests/bench-strspn.c: Likewise.
50838         * benchtests/bench-strstr.c: Likewise.
50839
50840 2013-09-04  Will Newton  <will.newton@linaro.org>
50841
50842         * benchtests/Makefile: Use LDLIBS instead of LDFLAGS.
50843
50844 2013-09-03  Joseph Myers  <joseph@codesourcery.com>
50845
50846         [BZ #15427]
50847         * sysdeps/ieee754/flt-32/e_lgammaf_r.c (__ieee754_lgammaf_r): Use
50848         2**-30 instead of 2**-70 as threshold for returning -log(|x|).
50849         * math/libm-test.inc (lgamma_test_data): Add more tests.
50850         * sysdeps/i386/fpu/libm-test-ulps: Update.
50851         * sysdeps/x86_64/fpu/libm-test-ulps: Likewise.
50852
50853 2013-09-03   Ondřej Bílka  <neleai@seznam.cz>
50854
50855         * sysdeps/x86_64/multiarch/strcmp-sse2-unaligned.S: New file.
50856         * sysdeps/x86_64/multiarch/ifunc-impl-list.c (__libc_ifunc_impl_list):
50857         Add ifunc.
50858         * sysdeps/x86_64/multiarch/Makefile (sysdep_routines):
50859         Add strcmp-sse2-unaligned
50860         * sysdeps/x86_64/multiarch/strcmp.S (strcmp): Add ifunc.
50861
50862 2013-09-02  Mike Frysinger  <vapier@gentoo.org>
50863
50864         * Versions.def (libc): Add GLIBC_2.19.
50865
50866 2013-09-02  Mike Frysinger  <vapier@gentoo.org>
50867
50868         * sysdeps/unix/sysv/linux/tst-fanotify.c: New test.
50869         * sysdeps/unix/sysv/linux/Makefile (tests): Add tst-fanotify.
50870
50871 2013-09-02  Joseph Myers  <joseph@codesourcery.com>
50872
50873         [BZ #14155]
50874         * sysdeps/ieee754/flt-32/e_jnf.c (__ieee754_jnf): Use double for
50875         intermediate calculations in recurrence.
50876         (__ieee754_ynf): Likewise.
50877         * math/libm-test.inc (jn_test_data): Do not allow spurious
50878         underflow exception.  Add more tests.
50879         (yn_test_data): Add more tests.
50880         * sysdeps/i386/fpu/libm-test-ulps: Update.
50881         * sysdeps/x86_64/fpu/libm-test-ulps: Likewise.
50882
50883 2013-09-02   Ondřej Bílka  <neleai@seznam.cz>
50884
50885         * sysdeps/powerpc/powerpc32/power6/memcpy.S: Fix typo.
50886
50887 2013-08-30   Ondřej Bílka  <neleai@seznam.cz>
50888
50889         * csu/init-first.c: Fix then/than typos.
50890         * locale/programs/ld-collate.c: Likewise.
50891         * locale/programs/linereader.h: Likewise.
50892         * manual/charset.texi: Likewise.
50893         * manual/filesys.texi: Likewise.
50894         * manual/stdio.texi: Likewise.
50895         * manual/string.texi: Likewise.
50896         * stdlib/fmtmsg.c: Likewise.
50897         * sysdeps/i386/stpncpy.S: Likewise.
50898         * sysdeps/powerpc/powerpc32/power6/memcpy.S: Likewise.
50899         * sysdeps/powerpc/powerpc32/power6/memset.S: Likewise.
50900         * sysdeps/powerpc/powerpc64/power6/memcpy.S: Likewise.
50901         * sysdeps/powerpc/powerpc64/power6/memset.S: Likewise.
50902
50903 2013-08-30   Ondřej Bílka  <neleai@seznam.cz>
50904
50905         * elf/dl-open.c: Fix typos.
50906         * iconvdata/gbbig5.c: Likewise.
50907         * iconvdata/iso-2022-jp.c: Likewise.
50908         * iconv/gconv_int.h: Likewise.
50909         * iconv/loop.c: Likewise.
50910         * nis/rpcsvc/nis.h: Likewise.
50911         * resolv/ns_name.c: Likewise.
50912         * stdio-common/vfscanf.c: Likewise.
50913         * streams/stropts.h: Likewise.
50914         * sunrpc/rpc_thread.c: Likewise.
50915         * sysdeps/i386/strpbrk.S: Likewise.
50916         * sysdeps/ieee754/k_standard.c: Likewise.
50917         * sysdeps/ieee754/ldbl-128/e_expl.c: Likewise.
50918         * sysdeps/ieee754/ldbl-128ibm/e_expl.c: Likewise.
50919         * sysdeps/mach/hurd/dl-sysdep.c: Likewise.
50920         * sysdeps/mach/hurd/profil.c: Likewise.
50921         * sysdeps/s390/dl-procinfo.h: Likewise.
50922         * sysdeps/unix/sysv/linux/i386/chown.c: Likewise.
50923         * sysdeps/unix/sysv/linux/s390/s390-32/chown.c: Likewise.
50924         * sysdeps/unix/sysv/linux/sparc/sparc32/makecontext.c: Likewise.
50925         * sysdeps/x86_64/dl-trampoline.S: Likewise.
50926         * sysdeps/x86_64/multiarch/strcmp-sse42.S: Likewise.
50927
50928 2013-08-30  Ondřej Bílka  <neleai@seznam.cz>
50929
50930         * sysdeps/x86_64/multiarch/rawmemchr.S: Delete.
50931         * sysdeps/x86_64/multiarch/ifunc-impl-list.c: Remove rawmemchr ifunc.
50932
50933 2013-08-29  Ondřej Bílka  <neleai@seznam.cz>
50934
50935         * sysdeps/unix/sysv/linux/powerpc/aix/aix-dirent.h: Remove
50936         aix specific files.
50937         * sysdeps/unix/sysv/linux/powerpc/aix/aix-errno.h: Likewise.
50938         * sysdeps/unix/sysv/linux/powerpc/aix/aix-stat.h: Likewise.
50939         * sysdeps/unix/sysv/linux/powerpc/aix/aix-termios.h: Likewise.
50940         * sysdeps/unix/sysv/linux/powerpc/aix/direntconv.c: Likewise.
50941         * sysdeps/unix/sysv/linux/powerpc/aix/errnoconv.c: Likewise.
50942         * sysdeps/unix/sysv/linux/powerpc/aix/statconv.c: Likewise.
50943         * sysdeps/unix/sysv/linux/powerpc/aix/tcgetattr.c: Likewise.
50944         * sysdeps/unix/sysv/linux/powerpc/aix/tcsetattr.c: Likewise.
50945
50946 2013-08-29  Thomas Schwinge  <thomas@codesourcery.com>
50947             Roland McGrath  <roland@hack.frob.com>
50948
50949         * sysdeps/mach/hurd/errnos.awk (BEGIN): Emit ESUCCESS.
50950         * sysdeps/mach/hurd/bits/errno.h: Regenerate.
50951
50952 2013-08-29  Samuel Thibault  <samuel.thibault@ens-lyon.org>
50953
50954         * sysdeps/mach/hurd/i386/init-first.c (init1): Use
50955         __executable_start symbol instead of _start.
50956
50957 2013-08-29  Thomas Schwinge  <thomas@codesourcery.com>
50958
50959         * sysdeps/unix/sysv/linux/ldsodefs.h (VALID_ELF_HEADER)
50960         (VALID_ELF_OSABI, VALID_ELF_ABIVERSION, MORE_ELF_HEADER_DATA):
50961         Move macros to...
50962         * sysdeps/gnu/ldsodefs.h: ... this new file.
50963
50964         * sysdeps/unix/sysv/linux/ldsodefs.h (VALID_ELF_OSABI)
50965         (VALID_ELF_ABIVERSION, MORE_ELF_HEADER_DATA): Use ELFOSABI_GNU
50966         instead of ELFOSABI_LINUX.
50967
50968         [BZ #15522] strtod ("nan(N)") returning a sNaN in some cases
50969         * stdlib/strtof_l.c (SET_MANTISSA): Rewrite.
50970         * stdlib/strtod_l.c (SET_MANTISSA): Likewise.
50971         * sysdeps/ieee754/ldbl-64-128/strtold_l.c (SET_MANTISSA):
50972         Likewise.
50973         * sysdeps/ieee754/ldbl-96/strtold_l.c (SET_MANTISSA): Likewise.
50974         * sysdeps/ieee754/ldbl-128/strtold_l.c (SET_MANTISSA): Likewise.
50975         * sysdeps/ieee754/ldbl-128ibm/strtold_l.c (SET_MANTISSA):
50976         Likewise.
50977         * sysdeps/ieee754/ldbl-128ibm/ieee754.h
50978         (ibm_extended_long_double): Add ieee_nan member.
50979         * stdlib/tst-strtod6.c (test): New function, renamed from do_test.
50980         (do_test): New function.
50981
50982         * math/basic-test.c (TEST_CONVERT): New macro, renamed from
50983         TEST_TRUNC.
50984         (convert_dfsf_test, convert_tfsf_test, convert_tfdf_test): New
50985         functions, renamed from truncdfsf_test, trunctfsf_test,
50986         trunctfdf_test.
50987         (convert_sfdf_test, convert_sftf_test, convert_dftf_test): New
50988         functions.
50989         (do_test): Run all these.
50990
50991 2013-08-29   Ondřej Bílka  <neleai@seznam.cz>
50992
50993         * argp/argp-help.c: Fix typos.
50994         * argp/argp-parse.c: Likewise.
50995         * debug/backtracesyms.c: Likewise.
50996         * elf/elf.h: Likewise.
50997         * malloc/malloc.c: Likewise.
50998         * nis/nis_print.c: Likewise.
50999         * resolv/res_comp.c: Likewise.
51000         * stdlib/stdlib.h: Likewise.
51001         * sunrpc/clnt_tcp.c: Likewise.
51002         * sunrpc/clnt_udp.c: Likewise.
51003         * sunrpc/clnt_unix.c: Likewise.
51004         * sysdeps/unix/bsd/ptsname.c: Likewise.
51005         * sysdeps/unix/sysv/linux/ifaddrs.c: Likewise.
51006         * sysdeps/unix/sysv/linux/powerpc/libc-start.c: Likewise.
51007         * sysdeps/unix/sysv/linux/powerpc/powerpc32/getcontext-common.S:
51008         Likewise.
51009         * sysdeps/unix/sysv/linux/powerpc/powerpc32/setcontext-common.S:
51010         Likewise.
51011         * sysdeps/unix/sysv/linux/powerpc/powerpc32/swapcontext-common.S:
51012         Likewise.
51013         * sysdeps/unix/sysv/linux/ptsname.c: Likewise.
51014
51015 2013-08-28  Siddhesh Poyarekar  <siddhesh@redhat.com>
51016
51017         * nscd/aicache.c (addhstaiX): Use __glibc_unlikely.
51018         * sysdeps/posix/getaddrinfo.c (gaih_inet): Likewise.
51019
51020 2013-08-27  Mike Frysinger  <vapier@gentoo.org>
51021
51022         [BZ #15897]
51023         * dlfcn/Makefile (tests): Add bug-dl-leaf.
51024         (modules-names): Add bug-dl-leaf-lib and bug-dl-leaf-lib-cb.
51025         ($(objpfx)bug-dl-leaf): New rule.
51026         ($(objpfx)bug-dl-leaf.so): Likewise.
51027         ($(objpfx)bug-dl-leaf.out): Likewise.
51028         ($(objpfx)bug-dl-leaf-lib.so): Likewise.
51029         ($(objpfx)bug-dl-leaf-lib-cb.so): Likewise.
51030         * dlfcn/bug-dl-leaf.c: New test.
51031         * dlfcn/bug-dl-leaf-lib.c: Likewise.
51032         * dlfcn/bug-dl-leaf-lib-cb.c: Likewise.
51033         * dlfcn/dlfcn.h (dlopen): Change __THROW to __THROWNL.
51034         (dlclose): Likewise.
51035         (dlmopen): Likewise.
51036
51037 2013-08-27  Roland McGrath  <roland@hack.frob.com>
51038
51039         * include/netdb.h [!_ISOMAC]:
51040         Don't include <tls.h>.
51041         (h_errno, __libc_h_errno): Move declaration and macros out of
51042         [_LIBC_REENTRANT].
51043
51044         * include/resolv.h [_RESOLV_H_]:
51045         Don't include <tls.h>.
51046         (__resp, _res): Move declaration and macro out of [_LIBC_REENTRANT].
51047         * resolv/res_libc.c: Don't include <tls.h>.
51048         (_res): Use __attribute__ ((nocommon)) in place of
51049         __attribute__ ((section (".bss"))).
51050
51051         * Makefile ($(common-objpfx)linkobj/libc_pic.a):
51052         If [sunrpc not in $(subdirs)], define to use libc_pic.a directly.
51053
51054         * resolv/res_send.c (send_dg): Don't try to use ioctl unless [FIONREAD].
51055
51056         * resolv/res_hconf.c [!NOT_IN_libc] (ifaddrs): Declare
51057         only under [SIOCGIFCONF && SIOCGIFNETMASK].
51058
51059         * resolv/res_mkquery.c: Include <sys/time.h>.
51060
51061         * inet/ifreq.c: Moved to ...
51062         * sysdeps/unix/ifreq.c: ... here.
51063         * inet/ifreq.c: New file, true stub version.
51064
51065         * socket/sa_len.c: New file.
51066         * socket/Makefile (aux): Add it.
51067         * sysdeps/unix/sysv/linux/Makefile
51068         [$(subdir) = socket] (sysdep_routines): Don't add sa_len here.
51069         * sysdeps/unix/sysv/linux/sa_len.c: Just #define HAVE_NET*_H
51070         and #include <socket/sa_len.c>.
51071         * sysdeps/unix/sysv/linux/s390/sa_len.c: Just #define
51072         HAVE_NETIUCV_IUCV_H and #include <sysdeps/unix/sysv/linux/sa_len.c>.
51073
51074         * sysdeps/unix/bsd/bsd4.4/bits/socket.h: Moved to ...
51075         * bits/socket.h: ... here.
51076
51077         * sysdeps/unix/bsd/bsd4.4/bits/socket.h (enum __socket_type):
51078         Add SOCK_CLOEXEC, SOCK_NONBLOCK with values from FreeBSD.
51079         (SOCK_MAX, SOCK_TYPE_MASK): New macros.
51080
51081 2013-08-27  Andreas Schwab  <schwab@suse.de>
51082
51083         [BZ #15736]
51084         * locale/categories.def (LC_CTYPE): Add "nonascii-case" element.
51085         * string/Makefile (test-strcasecmp-ENV, test-strncasecmp-ENV)
51086         (test-strcasecmp-ifunc-ENV, test-strncasecmp-ifunc-ENV): Define.
51087         * string/test-strcasecmp.c (test_main): Run tests in several
51088         locales.
51089         * string/test-strncasecmp.c (test_main): Likewise.
51090
51091         * sysdeps/i386/i686/multiarch/strcmp-sse4.S (__strcasecmp_sse4_2)
51092         (__strncasecmp_sse4_2) [PIC]: Restore %ebx before falling through
51093         to __strcasecmp_nonascii and __strncasecmp_nonascii.
51094         * sysdeps/i386/i686/multiarch/strcmp-ssse3.S (__strcasecmp_ssse3)
51095         (__strncasecmp_ssse3) [PIC]: Likewise.
51096
51097 2013-08-26  Roland McGrath  <roland@hack.frob.com>
51098
51099         * io/lxstat64.c: Just call __xstat64, for parity with stub __lxstat.
51100
51101         * nss/nss_files/files-key.c: Include <rpc/des_crypt.h>
51102         instead of explicitly declaring xdecrypt.
51103         * nis/nss_nis/nis-publickey.c: Likewise.
51104
51105 2013-08-26  Siddhesh Poyarekar  <siddhesh@redhat.com>
51106
51107         [BZ #15890]
51108         * nscd/aicache.c: Include res_hconf.h.
51109         (addhstaiX): Initialize res_hconf.
51110
51111 2013-08-26  Andreas Schwab  <schwab@suse.de>
51112
51113         * stdlib/Makefile (LDFLAGS-tst-tls-atexit): Remove.
51114         ($(objpfx)tst-tls-atexit): Add dependencies here instead.
51115
51116 2013-08-26  Siddhesh Poyarekar  <siddhesh@redhat.com>
51117
51118         * nscd/aicache.c (addhstaiX): Fix indentation.
51119
51120 2013-08-25  Mike Frysinger  <vapier@gentoo.org>
51121
51122         * configure.ac: Quote $build_pt_chown test.
51123         * configure: Regenerated.
51124
51125 2013-08-23  Joseph Myers  <joseph@codesourcery.com>
51126
51127         [BZ #15532]
51128         * math/s_cexp.c (__cexp): Return NaN + i0 for NaN + i0 argument.
51129         * math/s_cexpf.c (__cexpf): Likewise.
51130         * math/s_cexpl.c (__cexpl): Likewise.
51131         * math/libm-test.inc (cexp_test_data): Correct expected return
51132         value for NaN + i0.  Add another test.
51133
51134 2013-08-22  David S. Miller  <davem@davemloft.net>
51135
51136         * po/ca.po: Update Catalan translation from translation project.
51137         * po/uk.po: Add Ukrainian translations from translation project.
51138
51139 2013-08-21  Joseph Myers  <joseph@codesourcery.com>
51140
51141         [BZ #15797]
51142         * math/s_fdim.c (__fdim): Check for infinite arguments if result
51143         is infinite, not alongside NaN test.
51144         * math/s_fdimf.c (__fdimf): Likewise.
51145         * math/s_fdiml.c (__fdiml): Likewise.
51146         * math/libm-test.inc (fdim_test_data): Add more tests.  Test that
51147         errno is unchanged.
51148
51149 2013-08-21   Ondřej Bílka  <neleai@seznam.cz>
51150
51151         * argp/argp-help.c: Fix typos.
51152         * crypt/speeds.c: Likewise.
51153         * csu/check_fds.c: Likewise.
51154         * elf/dl-load.c: Likewise.
51155         * elf/dl-open.c: Likewise.
51156         * elf/reldep3.c: Likewise.
51157         * elf/reldep.c: Likewise.
51158         * elf/sprof.c: Likewise.
51159         * iconv/iconv_charmap.c: Likewise.
51160         * iconv/skeleton.c: Likewise.
51161         * iconv/strtab.c: Likewise.
51162         * io/lockf64.c: Likewise.
51163         * libio/libioP.h: Likewise.
51164         * resolv/gai_notify.c: Likewise.
51165         * resolv/ns_name.c: Likewise.
51166         * resolv/ns_samedomain.c: Likewise.
51167         * resolv/res_send.c: Likewise.
51168         * stdlib/random.c: Likewise.
51169         * sunrpc/rpc/xdr.h: Likewise.
51170         * sysdeps/i386/fpu/fraiseexcpt.c: Likewise.
51171         * sysdeps/i386/i686/multiarch/memcmp-sse4.S: Likewise.
51172         * sysdeps/i386/i686/multiarch/memset-sse2-rep.S: Likewise.
51173         * sysdeps/i386/i686/multiarch/memset-sse2.S: Likewise.
51174         * sysdeps/i386/i686/multiarch/strcat-sse2.S: Likewise.
51175         * sysdeps/i386/i686/multiarch/strcmp-sse4.S: Likewise.
51176         * sysdeps/i386/i686/multiarch/strcmp-ssse3.S: Likewise.
51177         * sysdeps/i386/i686/multiarch/strcpy-sse2.S: Likewise.
51178         * sysdeps/mach/hurd/check_fds.c: Likewise.
51179         * sysdeps/powerpc/powerpc32/cell/memcpy.S: Likewise.
51180         * sysdeps/powerpc/powerpc32/fpu/setjmp.S: Likewise.
51181         * sysdeps/powerpc/powerpc32/power4/memcmp.S: Likewise.
51182         * sysdeps/powerpc/powerpc32/power7/memcmp.S: Likewise.
51183         * sysdeps/powerpc/powerpc32/setjmp.S: Likewise.
51184         * sysdeps/powerpc/powerpc64/cell/memcpy.S: Likewise.
51185         * sysdeps/pthread/aio_notify.c: Likewise.
51186         * sysdeps/sparc/fpu/fraiseexcpt.c: Likewise.
51187         * sysdeps/unix/sysv/linux/socketcall.h: Likewise.
51188         * sysdeps/x86_64/fpu/fraiseexcpt.c: Likewise.
51189         * sysdeps/x86_64/multiarch/strcpy-sse2-unaligned.S: Likewise.
51190         * sysdeps/x86/fpu/bits/fenv.h: Likewise.
51191
51192 2013-08-21  Liubov Dmitrieva  <liubov.dmitrieva@intel.com>
51193
51194         * sysdeps/i386/i686/multiarch/strcmp.S: Skip SSE4_2
51195         version if bit_Slow_SSE4_2 is set.
51196         * sysdeps/i386/i686/multiarch/strncase.S: Likewise.
51197         * sysdeps/i386/i686/multiarch/strcasecmp.S: Likewise.
51198
51199 2013-07-23  Adhemerval Zanella  <azanella@linux.vnet.ibm.com>
51200
51201         [BZ #15867]
51202         * sysdeps/powerpc/powerpc32/backtrace.c (__backtrace): Handle signal
51203         trampoline stack frame information.
51204         * sysdeps/powerpc/powerpc64/backtrace.c (__backtrace): Likewise.
51205         * sysdeps/unix/sysv/linux/powerpc/bits/libc-vdso.h
51206         (__vdso_sigtramp_rt64): New variable: PPC64 signal trampoline.
51207         (__vdso_sigtramp32): New variable: PPC32 signal trampoline.
51208         (__vdso_sigtramp_rt32): New variable: PPC32 signal trampoline.
51209         * sysdeps/unix/sysv/linux/powerpc/init-first.c
51210         (_libc_vdso_platform_setup): Initialize the signal trampolines.
51211         * debug/tst-backtrace5.c (fn): Add an option set modify sigaction
51212         sa_flags value.
51213         * debug/tst-backtrace6.c: New file: check backtrace for signal frames,
51214         interrupting a syscall and set with option SA_SIGINFO.
51215
51216 2013-08-20  Joseph Myers  <joseph@codesourcery.com>
51217
51218         [BZ #15531]
51219         * math/s_cproj.c (__cproj): Only return an infinity if one part of
51220         argument is infinite.
51221         * math/s_cprojf.c (__cprojf): Likewise.
51222         * math/s_cprojl.c (__cprojl): Likewise.
51223         * sysdeps/ieee754/ldbl-128ibm/s_cprojl.c (__cprojl): Likewise.
51224         * math/libm-test.inc (cproj_test_data): Add more tests.
51225
51226         * sysdeps/unix/sysv/linux/mmap64.c: Include <string.h>.
51227
51228         * sysdeps/unix/sysv/linux/mmap64.c (__mmap64)
51229         [MMAP2_PAGE_SHIFT == -1]: Use __getpagesize to determine page
51230         size.  Use __ffs to determine corresponding shift.
51231
51232 2013-08-20  Joseph Myers  <joseph@codesourcery.com>
51233             Roland McGrath  <roland@hack.frob.com>
51234
51235         * Makefile (INSTALL): Remove trailing blank lines from output of
51236         makeinfo.
51237
51238 2013-08-20  Andreas Krebbel  <Andreas.Krebbel@de.ibm.com>
51239
51240         * sysdeps/unix/sysv/linux/s390/sys/procfs.h (struct elf_prstatus):
51241         Align 32 bit compat elf_greg to 8 bytes.
51242
51243 2013-08-20  Andreas Arnez  <arnez@linux.vnet.ibm.com>
51244
51245         * elf/setup-vdso.h (setup_vdso): Fix missing string termination.
51246
51247 2013-08-20  Siddhesh Poyarekar  <siddhesh@redhat.com>
51248
51249         * string/strcoll_l.c (coll_seq): New structure.
51250         (get_next_seq_cached): New function.
51251         (get_next_seq): New function.
51252         (do_compare): New function.
51253         (STRCOLL): Use GNU style definition.  Simplify implementation
51254         by using get_next_seq, get_next_seq_cached and do_compare.
51255
51256 2013-08-16  Florian Weimer  <fweimer@redhat.com>
51257
51258         [BZ #14699]
51259         CVE-2013-4237
51260         * sysdeps/posix/dirstream.h (struct __dirstream): Add errcode
51261         member.
51262         * sysdeps/posix/opendir.c (__alloc_dir): Initialize errcode
51263         member.
51264         * sysdeps/posix/rewinddir.c (rewinddir): Reset errcode member.
51265         * sysdeps/posix/readdir_r.c (__READDIR_R): Enforce NAME_MAX limit.
51266         Return delayed error code.  Remove GETDENTS_64BIT_ALIGNED
51267         conditional.
51268         * sysdeps/unix/sysv/linux/wordsize-64/readdir_r.c: Do not define
51269         GETDENTS_64BIT_ALIGNED.
51270         * sysdeps/unix/sysv/linux/i386/readdir64_r.c: Likewise.
51271         * manual/filesys.texi (Reading/Closing Directory): Document
51272         ENAMETOOLONG return value of readdir_r.  Recommend readdir more
51273         strongly.
51274         * manual/conf.texi (Limits for Files): Add portability note to
51275         NAME_MAX, PATH_MAX.
51276         (Pathconf): Add portability note for _PC_NAME_MAX, _PC_PATH_MAX.
51277
51278 2013-08-13  Andreas Schwab  <schwab@suse.de>
51279
51280         [BZ #15749]
51281         * sysdeps/ieee754/ldbl-96/s_cbrtl.c (__cbrtl): Use fabsl instead
51282         of fabs.
51283         * math/libm-test.inc (cbrt_test_data) [TEST_LDOUBLE &&
51284         LDBL_MAX_EXP >= 16384]: Add tests for it.
51285
51286 2013-08-12  David S. Miller  <davem@davemloft.net>
51287
51288         * version.h (RELEASE): Set to "development".
51289         (VERSION): Set to "2.18.90".
51290         * NEWS: Add 2.19 section.
51291
51292 2013-08-03  David S. Miller  <davem@davemloft.net>
51293
51294         * po/ko.po: Update Korean translation from translation project.
51295
51296 2013-08-01  David S. Miller  <davem@davemloft.net>
51297
51298         * manual/contrib.texi: Update entry for Siddhesh Poyarekar.  Add
51299         entries for Will Newton, Andi Kleen, David Holsgrove, and Ondrej
51300         Bilka.
51301
51302 2013-07-30  David S. Miller  <davem@davemloft.net>
51303
51304         * po/fr.po: Update French translation from translation project.
51305
51306 2013-07-28  David S. Miller  <davem@davemloft.net>
51307
51308         * po/cs.po: Update Czech translation from translation project.
51309
51310         * po/sv.po: Update Swedish translation from translation project.
51311
51312 2013-07-27  David S. Miller  <davem@davemloft.net>
51313
51314         * po/eo.po: Update Esperanto translation from translation project.
51315
51316         * po/vi.po: Update Vietnamese translation from translation project.
51317
51318         * po/de.po: Update German translation from translation project.
51319
51320 2013-07-26  David S. Miller  <davem@davemloft.net>
51321
51322         * po/bg.po: Update Bulgarian translation from translation project.
51323
51324         * po/nl.po: Update Dutch translation from translation project.
51325         * po/pl.po: Update Polish translation from translation project.
51326         * po/ru.po: Update Russian translation from translation project.
51327
51328 2013-07-24  David S. Miller  <davem@davemloft.net>
51329
51330         * po/libc.pot: Update.
51331
51332 2013-07-23  Adhemerval Zanella  <azanella@linux.vnet.ibm.com>
51333
51334         * sysdeps/unix/sysv/linux/powerpc/dl-static.c: New file to support
51335         variable page size.
51336         * sysdeps/unix/sysv/linux/powerpc/ldsodefs.h: Likewise.
51337         * sysdeps/unix/sysv/linux/powerpc/Makefile: Build dl-static in elf.
51338         * sysdeps/unix/sysv/linux/powerpc/Versions: Add _dl_var_init.
51339
51340 2013-07-22  Andreas Krebbel  <Andreas.Krebbel@de.ibm.com>
51341
51342         * sysdeps/s390/fpu/libm-test-ulps: Refresh.
51343
51344 2013-07-21  Siddhesh Poyarekar  <siddhesh@redhat.com>
51345             Andreas Schwab  <schwab@suse.de>
51346             Roland McGrath  <roland@hack.frob.com>
51347             Joseph Myers  <joseph@codesourcery.com>
51348             Carlos O'Donell  <carlos@redhat.com>
51349
51350         [BZ #15755]
51351         * config.h.in: Define HAVE_PT_CHOWN.
51352         * config.make.in (build-pt-chown): New variable.
51353         * configure.in (--enable-pt_chown): New configure option.
51354         * configure: Regenerate.
51355         * login/Makefile: Include Makeconfig.  Build pt_chown only if
51356         build-pt-chown is enabled.
51357         * sysdeps/unix/grantpt.c (grantpt) [HAVE_PT_CHOWN]: Spawn
51358         pt_chown to fix pty ownership.
51359         * sysdeps/unix/sysv/linux/grantpt.c [HAVE_PT_CHOWN]: Define
51360         CLOSE_ALL_FDS.
51361         * manual/install.texi (Configuring and compiling): Mention
51362         --enable-pt_chown. Add @findex for grantpt.
51363         * INSTALL: Regenerate.
51364
51365 2013-07-20  David S. Miller  <davem@davemloft.net>
51366
51367         * sysdeps/sparc/fpu/libm-test-ulps: Update ULPs to handle minor
51368         difference between 32-bit and 64-bit.
51369
51370 2013-07-15  Carlos O'Donell  <carlos@redhat.com>
51371
51372         [BZ #15711]
51373         * sysdeps/unix/sysv/linux/Makefile ($(objpfx)bits/syscall%h):
51374         Avoid system header dependency with -ffreestanding.
51375         ($(objpfx)bits/syscall%d): Likewise.
51376
51377 2013-07-13  David S. Miller  <davem@davemloft.net>
51378
51379         * math/libm-test.inc (casin_test_data): Annotate more cases of missing
51380         underflows from atanl/atan2l due to bug 15319.
51381         (casinh_test_data): Likewise.
51382
51383 2013-07-07  David S. Miller  <davem@davemloft.net>
51384
51385         * sysdeps/sparc/fpu/libm-test-ulps: Regenerate from scratch.
51386
51387 2013-07-05  Jeroen Albers  <_jeroen_@yahoo.com>
51388
51389         * sysdeps/i386/fpu/libm-test-ulps: Update.
51390         * sysdeps/x86_64/fpu/libm-test-ulps: Likewise.
51391
51392 2013-07-04  Siddhesh Poyarekar  <siddhesh@redhat.com>
51393
51394         * configure.in (--enable-lock-elision): Fix message text.
51395         * INSTALL: Regenerate.
51396         * configure: Regenerate.
51397
51398 2013-07-04  Adhemerval Zanella  <azanella@linux.vnet.ibm.com>
51399
51400         * sysdeps/powerpc/fpu/libm-test-ulps: Update.
51401
51402 2013-07-03  Andreas Jaeger  <aj@suse.de>
51403
51404         * sysdeps/unix/sysv/linux/sys/ptrace.h (PTRACE_LISTEN): Add
51405         define.
51406         (PTRACE_PEEKSIGINFO): Add new value from Linux 3.10.
51407         (ptrace_peeksiginfo_args): Add.
51408         (__ptrace_peeksiginfo_flags): Add.
51409         * sysdeps/unix/sysv/linux/sparc/sys/ptrace.h: Likewise.
51410         * sysdeps/unix/sysv/linux/s390/sys/ptrace.h: Likewise.
51411         * sysdeps/unix/sysv/linux/powerpc/sys/ptrace.h: Likewise.
51412
51413 2013-07-03  Allan McRae  <allan@archlinux.org>
51414
51415         * sysdeps/i386/fpu/libm-test-ulps: Update.
51416
51417 2013-07-02  David S. Miller  <davem@davemloft.net>
51418
51419         * sysdeps/sparc/fpu/libm-test-ulps: Update.
51420
51421 2013-07-02  Markus Trippelsdorf  <markus@trippelsdorf.de>
51422
51423         * sysdeps/x86_64/fpu/libm-test-ulps: Update.
51424
51425 2013-07-02  Joseph Myers  <joseph@codesourcery.com>
51426
51427         * sysdeps/i386/fpu/libm-test-ulps: Regenerated.
51428         * sysdeps/x86_64/fpu/libm-test-ulps: Likewise.
51429
51430 2013-07-02  Andi Kleen <ak@linux.intel.com>
51431
51432         * config.h.in (ENABLE_LOCK_ELISION): Add.
51433         * configure.in (--enable-lock-elision): Add option.
51434         * manual/install.texi: Document --enable lock elision.
51435         * configure: Regenerate
51436         * INSTALL: Regenerate.
51437
51438 2013-07-02  H.J. Lu  <hongjiu.lu@intel.com>
51439
51440         * sysdeps/i386/i686/multiarch/strcasecmp.S (__strcasecmp): Enable
51441         SSE4.2 strcasecmp for libc.a.
51442         * sysdeps/i386/i686/multiarch/strncase.S (__strncasecmp): Likewise.
51443
51444 2013-07-02  Joseph Myers  <joseph@codesourcery.com>
51445
51446         [BZ #13304]
51447         * soft-fp/op-common.h (_FP_FMA): New macro.
51448         * soft-fp/op-1.h (_FP_FRAC_HIGHBIT_DW_1): New macro.
51449         (_FP_MUL_MEAT_DW_1_imm): Likewise.  Split out of ...
51450         (_FP_MUL_MEAT_1_imm): ... here.
51451         (_FP_MUL_MEAT_DW_1_wide): New macro.  Split out of ...
51452         (_FP_MUL_MEAT_1_wide): ... here.
51453         (_FP_MUL_MEAT_DW_1_hard): Likewise.  Split out of ...
51454         (_FP_MUL_MEAT_1_hard): ... here.
51455         * soft-fp/op-2.h (_FP_FRAC_HIGHBIT_DW_2): New macro.
51456         (_FP_MUL_MEAT_DW_2_wide): Likewise.  Split out of ...
51457         (_FP_MUL_MEAT_2_wide): ... here.
51458         (_FP_MUL_MEAT_DW_2_wide_3mul): New macro.  Split out of ...
51459         (_FP_MUL_MEAT_2_wide_3mul): ... here.
51460         (_FP_MUL_MEAT_DW_2_gmp): New macro.  Split out of ...
51461         (_FP_MUL_MEAT_2_gmp): ... here.
51462         * soft-fp/op-4.h (_FP_FRAC_HIGHBIT_DW_4): New macro.
51463         (_FP_MUL_MEAT_DW_4_wide): Likewise.  Split out of ...
51464         (_FP_MUL_MEAT_4_wide): ... here.
51465         (_FP_MUL_MEAT_DW_4_gmp): New macro.  Split out of ...
51466         (_FP_MUL_MEAT_4_gmp): ... here.
51467         * soft-fp/single.h (_FP_FRACTBITS_DW_S): New macro.
51468         (_FP_WFRACBITS_DW_S): Likewise.
51469         (_FP_WFRACXBITS_DW_S): Likewise.
51470         (_FP_HIGHBIT_DW_S): Likewise.
51471         (FP_FMA_S): Likewise.
51472         (_FP_FRAC_HIGH_DW_S): Likewise.
51473         * soft-fp/double.h (_FP_FRACTBITS_DW_D): New macro.
51474         (_FP_WFRACBITS_DW_D): Likewise.
51475         (_FP_WFRACXBITS_DW_D): Likewise.
51476         (_FP_HIGHBIT_DW_D): Likewise.
51477         (FP_FMA_D): Likewise.
51478         (_FP_FRAC_HIGH_DW_D): Likewise.
51479         * soft-fp/extended.h (_FP_FRACTBITS_DW_E): New macro.
51480         (_FP_WFRACBITS_DW_E): Likewise.
51481         (_FP_WFRACXBITS_DW_E): Likewise.
51482         (_FP_HIGHBIT_DW_E): Likewise.
51483         (FP_FMA_E): Likewise.
51484         (_FP_FRAC_HIGH_DW_E): Likewise.
51485         * soft-fp/quad.h (_FP_FRACTBITS_DW_Q): New macro.
51486         (_FP_WFRACBITS_DW_Q): Likewise.
51487         (_FP_WFRACXBITS_DW_Q): Likewise.
51488         (_FP_HIGHBIT_DW_Q): Likewise.
51489         (FP_FMA_Q): Likewise.
51490         (_FP_FRAC_HIGH_DW_Q): Likewise.
51491         * soft-fp/fmasf4.c: New file.
51492         * soft-fp/fmadf4.c: Likewise.
51493         * soft-fp/fmatf4.c: Likewise.
51494
51495 2013-06-28  Liubov Dmitrieva  <liubov.dmitrieva@intel.com>
51496
51497         * sysdeps/x86_64/multiarch/init-arch.c (__init_cpu_features): Set
51498         bit_Slow_SSE4_2 and bit_Prefer_PMINUB_for_stringop for Intel
51499         Silvermont.
51500         * sysdeps/x86_64/multiarch/init-arch.h (bit_Slow_SSE4_2): New
51501         macro.
51502         (index_Slow_SSE4_2): Likewise.
51503         (index_Prefer_PMINUB_for_stringop): Likewise.
51504         * sysdeps/x86_64/multiarch/strchr.S: Skip SSE4.2 version if
51505         bit_Slow_SSE4_2 is set.
51506         * sysdeps/x86_64/multiarch/strcmp.S: Likewise.
51507         * sysdeps/x86_64/multiarch/strrchr.S: Likewise.
51508
51509 2013-06-28  Ryan S. Arnold  <rsa@linux.vnet.ibm.com>
51510
51511         * sysdeps/powerpc/Makefile: Add comment about generating an offset to
51512         rtld_global._dl_hwcap2.
51513         * sysdeps/powerpc/bits/hwcap.h: Added PPC_FEATURE2_* definitions for
51514         POWER8.
51515         * sysdeps/powerpc/dl-procinfo.c (_dl_powerpc_cap_flags): Extend for
51516         POWER8 feature descriptions defined in _dl_hwcap2.
51517         * sysdeps/powerpc/dl-procinfo.h (_dl_procinfo): Implement AT_HWCAP2
51518         string handling for POWER8 feature bits.
51519         (_DL_HWCAP_COUNT): Increment to 64 to cover AT_HWCAP2 bits.
51520         (_DL_HWCAP_LAST): New definition for position of last AT_HWCAP bit in
51521         _dl_powerpc_cap_flags.
51522         (_DL_HWCAP2_LAST): New definition for last usable bit of AT_HWCAP2.
51523         * sysdeps/powerpc/rtld-global-offsets.sym
51524         (RTLD_GLOBAL_RO_DL_HWCAP2_OFFSET): New offset macro to locate
51525         _dl_hwcap2 in the rtld_global_ro structure.
51526
51527 2013-06-28  Ryan S. Arnold  <rsa@linux.vnet.ibm.com>
51528
51529         * elf/dl-support.c (_dl_hwcap2): Add a new hwcap field for more
51530         hardware capabilities in support of AT_HWCAP2.
51531         (_dl_aux_init): Read AT_HWCAP2 into GLRO(dl_hwcap2).
51532         * elf/dl-sysdep.c (_dl_sysdep_start): Read AT_HWCAP2 into
51533         GLRO(dl_hwcap2).
51534         (_dl_show_auxv): Add support for calling _dl_procinfo to display
51535         AT_HWCAP2.  If a platform doesn't chose to handle displaying AT_HWCAP2
51536         explicitly the unknown a_type display mechanism is used.
51537         * misc/getauxval.c (__getauxval): Return GLRO(dl_hwcap2) on AT_HWCAP2.
51538         * sysdeps/generic/ldsodefs.h (rtld_global_ro): Add _dl_hwcap2 as a new
51539         struct member.
51540         * sysdeps/generic/dl-procinfo.h (_dl_procinfo): Add TYPE parameter
51541         to macro prototype for AT_HWCAP2 support.
51542         * sysdeps/i386/dl-procinfo.h: Likewise.
51543         * sysdeps/s390/dl-procinfo.h: Likewise.
51544         * sysdeps/powerpc/dl-procinfo.h (_dl_procinfo): Add TYPE parameter to
51545         macro prototype for AT_HWCAP2 support.  Make WORD unsigned long int
51546         rather than signed int.  Stub in handler for TYPE == AT_HWCAP2 to
51547         return -1 for unknown a_type display fallback.
51548         * sysdeps/sparc/dl-procinfo.h: Likewise.
51549         * sysdeps/unix/sysv/linux/i386/dl-procinfo.h: Likewise.
51550         * sysdeps/unix/sysv/linux/s390/dl-procinfo.h: Likewise.
51551
51552 2013-06-28  Joseph Myers  <joseph@codesourcery.com>
51553
51554         * sysdeps/unix/sysv/linux/mmap64.c (__mmap64): Shift by page_shift
51555         instead of MMAP2_PAGE_SHIFT in call to INLINE_SYSCALL.
51556
51557 2013-06-28  Pierre Ynard  <linkfanel@yahoo.fr>
51558
51559         [BZ #12492]
51560         * elf/dl-load.c (_dl_map_object_from_fd): Test for failure of
51561         mprotect making __stack_prot writable.
51562
51563 2013-06-28  Nathan Froyd  <froydnj@codesourcery.com>
51564             Joseph Myers  <joseph@codesourcery.com>
51565
51566         * elf/dl-profile.c (struct here_cg_arc_record): Declare 'count'
51567         as being properly aligned.
51568
51569 2013-06-28  Maciej W. Rozycki  <macro@codesourcery.com>
51570
51571         * dlfcn/modstatic5.c: New file.
51572         * dlfcn/tststatic5.c: New file.
51573         * dlfcn/Makefile (tests): Add tststatic5.
51574         (tests-static): Likewise.
51575         (modules-names): Add modstatic5.
51576         (tststatic5-ENV): New variable.
51577         ($(objpfx)tststatic5, $(objpfx)tststatic5.out): New dependencies.
51578
51579         [BZ #15022]
51580         * elf/dl-support.c (_dl_main_map): New variable.
51581         (_dl_ns): Use it to initialize [LM_ID_BASE] element.
51582         (_dl_nns, _dl_load_adds): Set to 1.
51583         (_dl_initial_searchlist): Refer to _dl_main_map.
51584         (_dl_non_dynamic_init): Initialize _dl_main_map.l_origin.
51585         * elf/dl-load.c (_dl_dst_substitute) [!SHARED]: Remove fallback
51586         call to _dl_get_origin.
51587         * elf/dl-open.c (dl_open_worker): Remove !SHARED special casing
51588         around call_map.
51589         (_dl_open) [!SHARED]: Remove code to initialize GL(dl_nns).
51590         * dlfcn/modstatic3.c: New file.
51591         * dlfcn/tststatic3.c: New file.
51592         * dlfcn/tststatic4.c: New file.
51593         * dlfcn/Makefile (tests): Add tststatic3 and tststatic4.
51594         (tests-static): Likewise.
51595         (modules-names): Add modstatic3.
51596         (tststatic3-ENV, tststatic4-ENV): New variables.
51597         ($(objpfx)tststatic3, $(objpfx)tststatic3.out): New dependencies.
51598         ($(objpfx)tststatic4, $(objpfx)tststatic4.out): Likewise.
51599
51600 2013-06-26  Joseph Myers  <joseph@codesourcery.com>
51601
51602         * configure.in (CC): Require GCC version 4.4 or later.
51603         * configure: Regenerated.
51604         * manual/install.texi (Tools for Compilation): Update GCC version
51605         requirement.
51606         * INSTALL: Regenerated.
51607
51608 2013-06-26  Liubov Dmitrieva  <liubov.dmitrieva@intel.com>
51609
51610         [BZ #15674]
51611         * string/test-memcmp.c (check2): New.
51612         (main): Call check2.
51613
51614         * sysdeps/x86_64/multiarch/memcmp-ssse3.S: Fix buffers overrun.
51615
51616 2013-06-26  Maciej W. Rozycki  <macro@codesourcery.com>
51617
51618         [BZ #15022]
51619         * elf/dl-open.c (_dl_open) [!SHARED]: Move call to DL_STATIC_INIT
51620         over to...
51621         (dl_open_worker) [!SHARED]: ... here.
51622
51623 2013-06-26  Ryan S. Arnold  <rsa@linux.vnet.ibm.com>
51624
51625         * elf/elf.h (AT_HWCAP2): Add a new a_type entry.
51626
51627 2013-06-25  Richard Henderson  <rth@redhat.com>
51628
51629         * locale/programs/locarchive.c: Include <libc-internal.h>
51630
51631 2013-06-25  Joseph Myers  <joseph@codesourcery.com>
51632
51633         * manual/texinfo.tex: Update to version 2013-06-21.17, with
51634         trailing whitespace removed.
51635
51636 2013-06-24  Mike Frysinger  <vapier@gentoo.org>
51637
51638         [BZ #10283]
51639         * locale/locarchive.h (struct locarhandle): Add mmap_base and mmap_len.
51640         * locale/programs/locarchive.c: Include libc-mmap.h.
51641         (prepare_address_space): Take two new outputs (the mmap base and len).
51642         Align p to MAP_FIXED_ALIGNMENT.  Set mmap base and len to the right
51643         values.
51644         (create_archive): Declare new mmap base and len values for
51645         prepare_address_space, and store the result in ah.
51646         (file_data_available_p): Replace pagesz with MAP_FIXED_ALIGNMENT.
51647         (enlarge_archive): If ah->mmap_base is not NULL, use that and
51648         ah->mmap_len to unmap rather than ah->addr and ah->reserved.
51649         Declare new mmap base and len values for
51650         prepare_address_space, and store the result in new_ah.
51651         (open_archive): Declare new mmap base and len values for
51652         prepare_address_space, and store the result in ah.
51653         (close_archive): If ah->mmap_base is not NULL, use that and
51654         ah->mmap_len to unmap rather than ah->addr and ah->reserved.
51655         * sysdeps/generic/libc-mmap.h: New file.
51656
51657 2013-06-24  Mike Frysinger  <vapier@gentoo.org>
51658
51659         * include/libc-internal.h (ALIGN_DOWN): New helper macro.
51660         (ALIGN_UP): Likewise.
51661         (PTR_ALIGN_DOWN): Likewise.
51662         (PTR_ALIGN_UP): Likewise.
51663
51664 2013-06-24  Ryan S. Arnold  <rsa@linux.vnet.ibm.com>
51665
51666         * sysdeps/powerpc/dl-procinfo.c (_dl_powerpc_platforms): Add "power8"
51667         entry mapped to PPC_PLATFORM_POWER8.
51668         * sysdeps/powerpc/dl-procinfo.h (_DL_PLATFORMS_COUNT): Increment for
51669         POWER8.
51670         (PPC_PLATFORM_POWER8): Add new platform bit for POWER8 processor.
51671         (_dl_string_platform): Add case for exporting platform position for
51672         POWER8.
51673         * sysdeps/unix/sysv/linux/powerpc/powerpc32/power8/Implies: Chain
51674         search path to sysdeps/powerpc/powerpc32/power8 directory.
51675         * sysdeps/unix/sysv/linux/powerpc/powerpc64/power8/Implies: Chain
51676         search path to sysdeps/powerpc/powerpc64/power8 directory.
51677         * sysdeps/powerpc/powerpc32/power8/Implies: Chain search path to
51678         power7 directories.
51679         * sysdeps/powerpc/powerpc64/power8/Implies: Chain search path to
51680         power7 directories.
51681
51682 2013-06-24  Siddhesh Poyarekar  <siddhesh@redhat.com>
51683
51684         * INSTALL: Regenerate.
51685
51686         * nscd/connections.c (nscd_init): Fix comment.
51687
51688 2013-06-22  Joseph Myers  <joseph@codesourcery.com>
51689
51690         * sysdeps/unix/sysv/linux/libc_fatal.c: Include <string.h>.
51691
51692         [BZ #15667]
51693         * soft-fp/op-4.h (__FP_FRAC_ADD_3): Rename variables _c1 and _c2
51694         to __FP_FRAC_ADD_3_c1 and __FP_FRAC_ADD_3_c2.
51695
51696 2013-06-21  Maciej W. Rozycki  <macro@codesourcery.com>
51697
51698         * elf/dl-dst.h (DL_DST_REQUIRED): Remove call to
51699         DL_DST_REQ_STATIC.
51700         (DL_DST_REQ_STATIC): Remove macro.
51701
51702 2013-06-21  Joseph Myers  <joseph@codesourcery.com>
51703
51704         [BZ #7006]
51705         * soft-fp/op-common.h (_FP_FROM_INT): Do not call _FP_FRAC_SLL
51706         with a shift of 0 bits.
51707
51708 2013-06-21  Maciej W. Rozycki  <macro@codesourcery.com>
51709
51710         * dlfcn/Makefile (tststatic2-ENV): Redefine in terms of
51711         $(tststatic-ENV).
51712
51713 2013-06-21  Kaz Kojima  <kkojima@rr.iij4u.or.jp>
51714
51715         [BZ #15655]
51716         * sysdeps/sh/sh4/fpu/fgetexcptflg.c: New file.
51717
51718 2013-06-20  Adhemerval Zanella  <azanella@linux.vnet.ibm.com>
51719
51720         * config.h.in (HAVE_CC_INHIBIT_LOOP_TO_LIBCALL): New define.
51721         * configure.in (libc_cv_cc_loop_to_function): Check if compiler
51722         accepts -fno-tree-loop-distribute-patterns.
51723         * include/libc-symbols.h (inhibit_loop_to_libcall): New macro.
51724         * string/memmove.c (MEMMOVE): Disable loop transformation to avoid
51725         recursive call.
51726         * string/memset.c (memset): Likewise.
51727         * string/test-memmove.c (simple_memmove): Disable loop transformation
51728         to library calls.
51729         * string/test-memset.c (simple_memset): Likewise.
51730         * benchtests/bench-memmove.c (simple_memmove): Likewise.
51731         * benchtests/bench-memset.c (simple_memset): Likewise.
51732         * configure: Regenerated.
51733
51734 2013-06-20  Joseph Myers  <joseph@codesourcery.com>
51735
51736         * math/test-misc.c (main): Ignore fesetround failure when failures
51737         of subsequent rounding tests would be ignored.
51738
51739         [BZ #15654]
51740         * math/fedisblxcpt.c (fedisableexcept): Return 0.
51741         * math/feenablxcpt.c (feenableexcept): Return 0 for argument 0.
51742         * math/fegetenv.c (__fegetenv): Return 0.
51743         * math/fegetexcept.c (fegetexcept): Return 0.
51744         * math/fegetround.c (fegetround) [FE_TONEAREST]: Return
51745         FE_TONEAREST.
51746         * math/feholdexcpt.c (feholdexcept): Return 0.
51747         * math/fesetenv.c (__fesetenv): Return 0.
51748         * math/fesetround.c (fesetround) [FE_TONEAREST]: Return 0 for
51749         argument FE_TONEAREST.
51750         * math/feupdateenv.c (__feupdateenv): Return 0.
51751         * math/fgetexcptflg.c (__fegetexceptflag): Return 0.
51752
51753 2013-06-18  Roland McGrath  <roland@hack.frob.com>
51754
51755         * elf/rtld-Rules (rtld-compile-command.S): New variable.
51756         (rtld-compile-command.s, rtld-compile-command.c): New variables.
51757         ($(objpfx)rtld-%.os rules): Use them.
51758
51759 2013-06-17  Adhemerval Zanella  <azanella@linux.vnet.ibm.com>
51760
51761         * nptl/sysdeps/powerpc/tls.h (tcbhead_t): Add Event-Based Branch
51762         fields.
51763
51764 2013-06-17  Roland McGrath  <roland@hack.frob.com>
51765
51766         * scripts/sysd-rules.awk: Sort sysd_rules_patterns by descending
51767         length of target pattern, then descending length of dependency pattern.
51768         * configure.in (AWK): Require gawk 3.1.2 or newer.
51769         * manual/install.texi (Tools for Compilation): Say that we do.
51770         * configure: Regenerated.
51771
51772         * Makerules [inhibit-sysdep-asm] (check-inhibit-asm): Variable removed.
51773         ($(common-objpfx)sysd-rules): Replace shell logic with running ...
51774         * scripts/sysd-rules.awk: ... this new script.
51775         * sysdeps/mach/hurd/Makefile (inhibit-sysdep-asm): Use a regexp rather
51776         than a glob-style pattern.
51777
51778 2013-06-17  Joseph Myers  <joseph@codesourcery.com>
51779
51780         * math/test-misc.c (main): Do not treat incorrectly rounded
51781         conversions as failure unless ROUNDING_TESTS passes.
51782
51783 2013-06-15  Joseph Myers  <joseph@codesourcery.com>
51784
51785         [BZ #15631]
51786         * sysdeps/ieee754/dbl-64/e_sqrt.c (__ieee754_sqrt): Save and
51787         restore exception state around main square root computation, then
51788         check for inexactness explicitly.
51789
51790         * math/libm-test.inc (fma_test_data): Add another test.
51791
51792 2013-06-15  Siddhesh Poyarekar  <siddhesh@redhat.com>
51793
51794         * manual/threads.texi (Non-POSIX Extensions): New document
51795         node.  Document pthread_getattr_default_np and
51796         pthread_setattr_default_np.
51797
51798         * Versions.def (libpthread): Add GLIBC_2.18.
51799         * sysdeps/unix/sysv/linux/i386/nptl/libpthread.abilist: Update.
51800         * sysdeps/unix/sysv/linux/powerpc/powerpc32/fpu/nptl/libpthread.abilist:
51801         Likewise.
51802         * sysdeps/unix/sysv/linux/powerpc/powerpc64/nptl/libpthread.abilist:
51803         Likewise.
51804         * sysdeps/unix/sysv/linux/s390/s390-32/nptl/libpthread.abilist:
51805         Likewise.
51806         * sysdeps/unix/sysv/linux/s390/s390-64/nptl/libpthread.abilist:
51807         Likewise.
51808         * sysdeps/unix/sysv/linux/sh/nptl/libpthread.abilist:
51809         Likewise.
51810         * sysdeps/unix/sysv/linux/sparc/sparc32/nptl/libpthread.abilist:
51811         Likewise.
51812         * sysdeps/unix/sysv/linux/sparc/sparc64/nptl/libpthread.abilist:
51813         Likewise.
51814         * sysdeps/unix/sysv/linux/x86_64/64/nptl/libpthread.abilist:
51815         Likewise.
51816         * sysdeps/unix/sysv/linux/x86_64/x32/nptl/libpthread.abilist:
51817         Likewise.
51818
51819 2013-06-14  Liubov Dmitrieva  <liubov.dmitrieva@intel.com>
51820
51821         * sysdeps/x86_64/multiarch/init-arch.c (__init_cpu_features):
51822         Set bit_Fast_Unaligned_Load for Intel Silvermont architecture.
51823
51824 2013-06-14  Siddhesh Poyarekar  <siddhesh@redhat.com>
51825             H.J. Lu  <hjl.tools@gmail.com>
51826
51827         [BZ #15627]
51828         * sysdeps/x86_64/rtld-memset.c: Remove file.
51829         * sysdeps/x86_64/rtld-memset.S: New file.
51830
51831 2013-06-14  Joseph Myers  <joseph@codesourcery.com>
51832
51833         * stdlib/tst-strtod-round.c: Include <math-tests.h>.
51834         (test_in_one_mode): Take arguments for whether the rounding mode
51835         is supported for each floating-point type.
51836         (do_test): Pass new arguments to test_in_one_mode using
51837         ROUNDING_TESTS.
51838
51839 2013-06-13  Roland McGrath  <roland@hack.frob.com>
51840
51841         * posix/tst-waitid.c (do_test): Distinguish different instances of
51842         stopped/continued in CHECK_SIGCHLD uses.  Insert a delay between
51843         sending SIGSTOP and calling waitpid to ensure SIGCHLD gets delivered
51844         before entering the kernel for waitpid.
51845
51846 2013-06-13  Siddhesh Poyarekar  <siddhesh@redhat.com>
51847
51848         * NEWS: Fix note on clock function precision.  Text by Roland
51849         McGrath.
51850
51851 2013-06-13  Roland McGrath  <roland@hack.frob.com>
51852
51853         * elf/Makefile ($(objpfx)ld.so): Link into a temporary file and move
51854         it into place only when and if the sanity check passes.
51855
51856 2013-06-13  Joseph Myers  <joseph@codesourcery.com>
51857
51858         * stdlib/gen-tst-strtod-round.c (round_str): Always generate
51859         output for whether conversion result is exact.  Take argument
51860         indicating whether type is IBM long double.
51861         (round_for_all): Change need_exact field to ibm_ld.
51862         * stdlib/tst-strtod-round.c (struct exactness): New type.
51863         (struct test): Change bool ld_ok field to struct exactness exact.
51864         (TEST): Update all definitions for change to field.
51865         (tests): Regenerate array contents.
51866         (test_in_one_mode): Take pointer to new field instead of old ld_ok
51867         field value.  Check for IBM long double here.
51868         (do_test): Update calls to test_in_one_mode.
51869
51870 2013-06-13  Siddhesh Poyarekar  <siddhesh@redhat.com>
51871
51872         [BZ #12515]
51873         * sysdeps/unix/sysv/linux/clock.c (clock): Use result from
51874         CLOCK_PROCESS_CPUTIME_ID clock instead of __times.
51875
51876 2013-06-12  Adhemerval Zanella  <azanella@linux.vnet.ibm.com>
51877
51878         [BZ #15605]
51879         * sysdeps/generic/symbol-hacks.h: Add workaround for memset/memmove calls
51880         generated by the compiler on loop optimizations.
51881         * sysdeps/wordsize-32/symbol-hacks.h: Include next symbol-hacks.h for
51882         general definitions.
51883
51884 2013-06-12  Joseph Myers  <joseph@codesourcery.com>
51885
51886         * math/bug-nextafter.c: Include <math-tests.h>.
51887         (main): Only test for exceptions if EXCEPTION_TESTS is true for
51888         the relevant type.
51889         * math/bug-nexttoward.c: Include <math-tests.h>.
51890         (main): Only test for exceptions if EXCEPTION_TESTS is true for
51891         the relevant type.
51892         * math/test-misc.c: Include <math-tests.h>.
51893         (main): Only test for exceptions if EXCEPTION_TESTS is true for
51894         the relevant type.
51895
51896 2013-06-12  Andreas Jaeger  <aj@suse.de>
51897
51898         * po/ia.po: Update Interlingua translation from translation
51899         project.
51900
51901 2013-06-12  Siddhesh Poyarekar  <siddhesh@redhat.com>
51902
51903         * include/fenv.h: Include stdbool.h.
51904         (struct rm_ctx): New structure.
51905         * sysdeps/generic/math_private.h (SET_RESTORE_ROUND_GENERIC):
51906         Define macro.
51907         (SET_RESTORE_ROUND): Define using SET_RESTORE_ROUND_GENERIC.
51908         (SET_RESTORE_ROUNDF): Likewise.
51909         (SET_RESTORE_ROUNDL): Likewise.
51910         (SET_RESTORE_ROUND_NOEX): Likewise.
51911         (SET_RESTORE_ROUND_NOEXF): Likewise.
51912         (SET_RESTORE_ROUND_NOEXL): Likewise.
51913         (SET_RESTORE_ROUND_53BIT): Likewise.
51914         [HAVE_RM_CTX] (libc_feresetround_noex_ctx): Define macro.
51915         (libc_feresetround_noexf_ctx): Likewise.
51916         (libc_feresetround_noexl_ctx): Likewise.
51917         (libc_feholdsetround_53bit_ctx): Likewise.
51918         (libc_feresetround_53bit_ctx): Likewise.
51919         * sysdeps/i386/fpu/fenv_private.h (HAVE_RM_CTX): Define macro.
51920         (libc_feholdexcept_setround_sse_ctx): New function.
51921         (libc_fesetenv_sse_ctx): Likewise.
51922         (libc_feupdateenv_sse_ctx): Likewise.
51923         (libc_feholdexcept_setround_387_prec_ctx): Likewise.
51924         (libc_feholdexcept_setround_387_ctx): Likewise.
51925         (libc_feholdexcept_setround_387_53bit_ctx): Likewise.
51926         (libc_feholdsetround_387_prec_ctx): Likewise.
51927         (libc_feholdsetround_387_ctx): Likewise.
51928         (libc_feholdsetround_387_53bit_ctx): Likewise.
51929         (libc_feholdsetround_sse_ctx): Likewise.
51930         (libc_feresetround_sse_ctx): Likewise.
51931         (libc_feresetround_387_ctx): Likewise.
51932         (libc_feupdateenv_387_ctx): Likewise.
51933         (libc_feholdexcept_setroundf_ctx): Define macro.
51934         (libc_fesetenvf_ctx): Likewise.
51935         (libc_feupdateenvf_ctx): Likewise.
51936         (libc_feholdsetroundf_ctx): Likewise.
51937         (libc_feresetroundf_ctx): Likewise.
51938         (libc_feholdexcept_setround_ctx): Likewise.
51939         (libc_fesetenv_ctx): Likewise.
51940         (libc_feupdateenv_ctx): Likewise.
51941         (libc_feholdsetround_ctx): Likewise.
51942         (libc_feresetround_ctx): Likewise.
51943         (libc_feholdexcept_setroundl_ctx): Likewise.
51944         (libc_feupdateenvl_ctx): Likewise.
51945         (libc_feholdsetroundl_ctx): Likewise.
51946         (libc_feresetroundl_ctx): Likewise.
51947         [!__SSE2_MATH__] (libc_feholdsetround_53bit_ctx): Likewise.
51948         (libc_feresetround_53bit_ctx): Likewise.
51949
51950 2013-06-11  Siddhesh Poyarekar  <siddhesh@redhat.com>
51951
51952         * locale/iso-639.def: Convert to UTF-8.
51953
51954 2013-06-11  Joseph Myers  <joseph@codesourcery.com>
51955
51956         * sysdeps/generic/math-tests.h (EXCEPTION_TESTS_float): New macro.
51957         (EXCEPTION_TESTS_double): Likewise.
51958         (EXCEPTION_TESTS_long_double): Likewise.
51959         (EXCEPTION_TESTS): Likewise.
51960         * math/libm-test.inc (test_exceptions): Only test exceptions if
51961         EXCEPTION_TESTS (FLOAT).
51962
51963 2013-06-11  Siddhesh Poyarekar  <siddhesh@redhat.com>
51964
51965         * benchtests/Makefile (string-bench): Add strcpy_chk and
51966         stpcpy_chk.
51967         * benchtests/bench-stpcpy_chk-ifunc.c: New file.
51968         * benchtests/bench-stpcpy_chk.c: New file.
51969         * benchtests/bench-strcpy_chk-ifunc.c: New file.
51970         * benchtests/bench-strcpy_chk.c: New file.
51971         * debug/test-strcpy_chk.c (do_one_test): Remove HP_TIMING
51972         code.
51973         (do_test): Likewise.
51974
51975 2013-06-11  Ryan S. Arnold  <rsa@linux.vnet.ibm.com>
51976
51977         * sysdeps/powerpc/dl-procinfo.c (_dl_powerpc_platforms): Add ppc405,
51978         ppc440, ppc464, and ppc476, merging from ports/ dl-procinfo.c.
51979         * sysdeps/powerpc/dl-procinfo.h: Fix whitespace by correcting spaces
51980         with tabs where appropriate.
51981         [PPC_PLATFORM_PPC405]: Define new platform merging from ports/
51982         dl-procinfo.h.
51983         [PPC_PLATFORM_PPC440]: Likewise.
51984         [PPC_PLATFORM_PPC464]: Likewise.
51985         [PPC_PLATFORM_PPC476]: Likewise.
51986         (_dl_string_platform): Add support for detecting ppc405, ppc440,
51987         ppc464, and ppc476 platform strings merging from ports/
51988         dl-procinfo.h.
51989
51990 2013-06-11  Andreas Schwab  <schwab@suse.de>
51991
51992         [BZ #14991]
51993         * iconvdata/big5hkscs.c (big5hkscs_to_ucs, from_ucs4)
51994         (from_ucs4_idx): Regenerate.
51995         (MIN_NEEDED_FROM, MAX_NEEDED_FROM, MIN_NEEDED_TO): Remove macros.
51996         (FROM_LOOP_MIN_NEEDED_FROM, FROM_LOOP_MAX_NEEDED_FROM)
51997         (FROM_LOOP_MIN_NEEDED_TO, FROM_LOOP_MAX_NEEDED_TO)
51998         (TO_LOOP_MIN_NEEDED_FROM, TO_LOOP_MAX_NEEDED_FROM)
51999         (TO_LOOP_MIN_NEEDED_TO, TO_LOOP_MAX_NEEDED_TO, PREPARE_LOOP)
52000         (EXTRA_LOOP_ARGS, SAVE_RESET_STATE, EMIT_SHIFT_TO_INIT)
52001         (EXTRA_LOOP_DECLS, MAX_NEEDED_OUTPUT): New macros.
52002         (MIN_NEEDED_INPUT, MAX_NEEDED_INPUT, MIN_NEEDED_OUTPUT): Define
52003         from FROM_LOOP and TO_LOOP specific macros.
52004         (BODY): Handle combining characters.
52005         * iconvdata/BIG5HKSCS.irreversible: Update.
52006         * iconvdata/BIG5HKSCS.precomposed: New file.
52007         * iconvdata/testdata/BIG5HKSCS: Regenerate to cover all assigned
52008         characters.
52009         * iconvdata/testdata/BIG5HKSCS..UTF8: Update.
52010
52011 2013-06-11  Siddhesh Poyarekar  <siddhesh@redhat.com>
52012
52013         * include/sys/time.h: Fix indentation and add copyright header.
52014
52015         * string/test-memccpy.c (do_one_test): Remove HP_TIMING code.
52016         (do_test): Likewise.
52017         * string/test-memchr.c (do_one_test): Likewise.
52018         (do_test): Likewise.
52019         * string/test-memcmp.c (do_one_test): Likewise.
52020         (do_test): Likewise.
52021         * string/test-memcpy.c (do_one_test): Likewise.
52022         (do_test): Likewise.
52023         * string/test-memmem.c (do_one_test): Likewise.
52024         (do_test): Likewise.
52025         (do_random_tests): Likewise.
52026         * string/test-memmove.c (do_one_test): Likewise.
52027         (do_test): Likewise.
52028         * string/test-memset.c (do_one_test): Likewise.
52029         (do_test): Likewise.
52030         * string/test-rawmemchr.c (do_one_test): Likewise.
52031         (do_test): Likewise.
52032         * string/test-strcasecmp.c (do_one_test): Likewise.
52033         (do_test): Likewise.
52034         * string/test-strcasestr.c (do_one_test): Likewise.
52035         (do_test): Likewise.
52036         * string/test-strcat.c (do_one_test): Likewise.
52037         (do_test): Likewise.
52038         * string/test-strchr.c (do_one_test): Likewise.
52039         (do_test): Likewise.
52040         * string/test-strcmp.c (do_one_test): Likewise.
52041         (do_test): Likewise.
52042         * string/test-strcpy.c (do_one_test): Likewise.
52043         (do_test): Likewise.
52044         * string/test-string.h: Likewise.
52045         (test_init): Likewise.
52046         * string/test-strlen.c (do_one_test): Likewise.
52047         (do_test): Likewise.
52048         * string/test-strncasecmp.c (do_one_test): Likewise.
52049         (do_test): Likewise.
52050         * string/test-strncat.c (do_one_test): Likewise.
52051         (do_test): Likewise.
52052         * string/test-strncmp.c (do_one_test): Likewise.
52053         (do_test_limit): Likewise.
52054         (do_test): Likewise.
52055         * string/test-strncpy.c (do_one_test): Likewise.
52056         (do_test): Likewise.
52057         * string/test-strnlen.c (do_one_test): Likewise.
52058         (do_test): Likewise.
52059         * string/test-strpbrk.c (do_one_test): Likewise.
52060         (do_test): Likewise.
52061         * string/test-strrchr.c (do_one_test): Likewise.
52062         (do_test): Likewise.
52063         * string/test-strspn.c (do_one_test): Likewise.
52064         (do_test): Likewise.
52065         * string/test-strstr.c (do_one_test): Likewise.
52066         (do_test): Likewise.
52067
52068         * benchtests/Makefile (string-bench): Add string benchmarks.
52069         * benchtests/bench-bcopy-ifunc.c: New file.
52070         * benchtests/bench-bcopy.c: New file.
52071         * benchtests/bench-bzero-ifunc.c: New file.
52072         * benchtests/bench-bzero.c: New file.
52073         * benchtests/bench-memccpy-ifunc.c: New file.
52074         * benchtests/bench-memccpy.c: New file.
52075         * benchtests/bench-memchr-ifunc.c: New file.
52076         * benchtests/bench-memchr.c: New file.
52077         * benchtests/bench-memcmp-ifunc.c: New file.
52078         * benchtests/bench-memcmp.c: New file.
52079         * benchtests/bench-memmem-ifunc.c: New file.
52080         * benchtests/bench-memmem.c: New file.
52081         * benchtests/bench-memmove-ifunc.c: New file.
52082         * benchtests/bench-memmove.c: New file.
52083         * benchtests/bench-mempcpy-ifunc.c: New file.
52084         * benchtests/bench-mempcpy.c: New file.
52085         * benchtests/bench-memset-ifunc.c: New file.
52086         * benchtests/bench-memset.c: New file.
52087         * benchtests/bench-rawmemchr-ifunc.c: New file.
52088         * benchtests/bench-rawmemchr.c: New file.
52089         * benchtests/bench-stpcpy-ifunc.c: New file.
52090         * benchtests/bench-stpcpy.c: New file.
52091         * benchtests/bench-stpncpy-ifunc.c: New file.
52092         * benchtests/bench-stpncpy.c: New file.
52093         * benchtests/bench-strcasecmp-ifunc.c: New file.
52094         * benchtests/bench-strcasecmp.c: New file.
52095         * benchtests/bench-strcasestr-ifunc.c: New file.
52096         * benchtests/bench-strcasestr.c: New file.
52097         * benchtests/bench-strcat-ifunc.c: New file.
52098         * benchtests/bench-strcat.c: New file.
52099         * benchtests/bench-strchr-ifunc.c: New file.
52100         * benchtests/bench-strchr.c: New file.
52101         * benchtests/bench-strchrnul-ifunc.c: New file.
52102         * benchtests/bench-strchrnul.c: New file.
52103         * benchtests/bench-strcmp-ifunc.c: New file.
52104         * benchtests/bench-strcmp.c: New file.
52105         * benchtests/bench-strcpy-ifunc.c: New file.
52106         * benchtests/bench-strcpy.c: New file.
52107         * benchtests/bench-strcspn-ifunc.c: New file.
52108         * benchtests/bench-strcspn.c: New file.
52109         * benchtests/bench-strlen-ifunc.c: New file.
52110         * benchtests/bench-strlen.c: New file.
52111         * benchtests/bench-strncasecmp-ifunc.c: New file.
52112         * benchtests/bench-strncasecmp.c: New file.
52113         * benchtests/bench-strncat-ifunc.c: New file.
52114         * benchtests/bench-strncat.c: New file.
52115         * benchtests/bench-strncmp-ifunc.c: New file.
52116         * benchtests/bench-strncmp.c: New file.
52117         * benchtests/bench-strncpy-ifunc.c: New file.
52118         * benchtests/bench-strncpy.c: New file.
52119         * benchtests/bench-strnlen-ifunc.c: New file.
52120         * benchtests/bench-strnlen.c: New file.
52121         * benchtests/bench-strpbrk-ifunc.c: New file.
52122         * benchtests/bench-strpbrk.c: New file.
52123         * benchtests/bench-strrchr-ifunc.c: New file.
52124         * benchtests/bench-strrchr.c: New file.
52125         * benchtests/bench-strspn-ifunc.c: New file.
52126         * benchtests/bench-strspn.c: New file.
52127         * benchtests/bench-strstr-ifunc.c: New file.
52128         * benchtests/bench-strstr.c: New file.
52129
52130         * benchtests/Makefile: Disable parallel execution of targets.
52131         (string-bench): Add memcpy.
52132         (benchset): New variable to store a list of benchmark sets.
52133         (bench-func): Renamed from bench.
52134         (bench-set): New target.
52135         (bench): Depend on bench-func and bench-set.
52136         * benchtests/README: Add section on benchmark sets.
52137         * benchtests/bench-memcpy-ifunc.c: New file.
52138         * benchtests/bench-memcpy.c: New file.
52139         * benchtests/bench-string.h: New file.
52140
52141 2013-06-11  Andreas Schwab  <schwab@suse.de>
52142
52143         [BZ #15577]
52144         * nscd/connections.c (nscd_run_worker): Always zero-terminate key.
52145         * nscd/netgroupcache.c (addgetnetgrentX): Properly handle absent
52146         values in the triple.
52147         * nscd/nscd_netgroup.c (__nscd_setnetgrent): Include zero
52148         terminator in the group key.
52149
52150 2013-06-11  Andreas Jaeger  <aj@suse.de>
52151
52152         * po/zh_TW.po: Update Chinese (traditional) translation from
52153         translation project.
52154
52155 2013-06-11  Siddhesh Poyarekar  <siddhesh@redhat.com>
52156
52157         * include/time.h (__clock_gettime): Add libc_hidden_proto.
52158         * rt/clock_getcpuclockid.c (clock_getcpuclockid): Rename to
52159         __clock_getcpuclockid.  Add weak_alias and libc_hidden_def.
52160         * sysdeps/unix/sysv/linux/clock_getcpuclockid.c
52161         (clock_getcpuclockid): Likewise.
52162         * rt/clock_getres.c (clock_getres): Rename to __clock_getres.
52163         Add weak_alias and libc_hidden_def.
52164         * sysdeps/posix/clock_getres.c (clock_getres): Likewise.
52165         * rt/clock_gettime.c (clock_gettime): Rename to
52166         __clock_gettime.  Add weak_alias and libc_hidden_def.
52167         * sysdeps/unix/clock_gettime.c (clock_gettime): Likewise.
52168         * rt/clock_nanosleep.c (clock_nanosleep): Rename to
52169         __clock_nanosleep.  Add weak_alias and libc_hidden_def.
52170         * sysdeps/unix/clock_nanosleep.c (clock_nanosleep): Likewise.
52171         * sysdeps/unix/sysv/linux/clock_nanosleep.c (clock_nanosleep):
52172         Likewise.
52173         * rt/clock_settime.c (clock_settime): Rename to
52174         __clock_settime.  Add weak_alias and libc_hidden_def.
52175         * sysdeps/unix/clock_settime.c (clock_settime): Likewise.
52176
52177 2013-06-10  Joseph Myers  <joseph@codesourcery.com>
52178
52179         * mach/err_boot.sub: Remove trailing whitespace.
52180         * mach/err_ipc.sub: Likewise.
52181         * mach/err_mach.sub: Likewise.
52182
52183         * sysdeps/generic/math-tests.h (ROUNDING_TESTS_float): New macro.
52184         (ROUNDING_TESTS_double): Likewise.
52185         (ROUNDING_TESTS_long_double): Likewise.
52186         (ROUNDING_TESTS): Likewise.
52187         * math/libm-test.inc: Include <math-tests.h>.
52188         (IF_ROUND_INIT_FE_DOWNWARD): Use ROUNDING_TESTS.
52189         (IF_ROUND_INIT_FE_TONEAREST): Likewise.
52190         (IF_ROUND_INIT_FE_TOWARDZERO): Likewise.
52191         (IF_ROUND_INIT_FE_UPWARD): Likewise.
52192
52193 2013-06-10  Siddhesh Poyarekar  <siddhesh@redhat.com>
52194
52195         * benchtests/Makefile (CPPFLAGS-nonlib): Append values instead
52196         of assigning.
52197
52198 2013-06-08  Joseph Myers  <joseph@codesourcery.com>
52199
52200         * sysdeps/gnu/errlist.awk: Do not generate space at end of
52201         otherwise empty TRANS lines.
52202         * sysdeps/gnu/errlist.c: Regenerated.
52203
52204         * catgets/gencat.c (error_print): Use (void) in function
52205         definition.
52206         * crypt/crypt_util.c (__init_des): Likewise.
52207         * crypt/speeds.c (Stop): Likewise.
52208         (main): Likewise.
52209         * hurd/hurdmalloc.c (print_malloc_free_list): Likewise.
52210         * inet/ruserpass.c (token): Likewise.
52211         * intl/finddomain.c (_nl_finddomain_subfreeres): Likewise.
52212         * intl/localealias.c (extend_alias_table): Likewise.
52213         * intl/plural-exp.c (init_germanic_plural): Likewise.
52214         * libio/fcloseall.c (__fcloseall): Likewise.
52215         * libio/genops.c (_IO_flush_all): Likewise.
52216         (_IO_flush_all_linebuffered): Likewise.
52217         (_IO_cleanup): Likewise.
52218         (_IO_iter_begin): Likewise.
52219         (_IO_iter_end): Likewise.
52220         (_IO_list_lock): Likewise.
52221         (_IO_list_unlock): Likewise.
52222         (_IO_list_resetlock): Likewise.
52223         * libio/getchar.c (getchar): Likewise.
52224         * libio/getchar_u.c (getchar_unlocked): Likewise.
52225         * libio/getwchar.c (getwchar): Likewise.
52226         * libio/getwchar_u.c (getwchar_unlocked): Likewise.
52227         * libio/oldstdfiles.c (_IO_check_libio): Likewise.
52228         * login/getpt.c (__getpt): Likewise.
52229         * login/tst-utmp.c (main): Likewise.
52230         * malloc/hooks.c (__malloc_check_init): Likewise.
52231         * malloc/malloc.c (__malloc_stats): Likewise.
52232         * malloc/mtrace.c (tr_break): Likewise.
52233         (mtrace): Likewise.
52234         (muntrace): Likewise.
52235         * misc/fstab.c (endfsent): Likewise.
52236         * misc/getclktck.c (__getclktck): Likewise.
52237         * misc/getdtsz.c (__getdtablesize): Likewise.
52238         * misc/gethostid.c (gethostid): Likewise.
52239         * misc/getpagesize.c (__getpagesize): Likewise.
52240         * misc/getsysstats.c (__get_nprocs_conf): Likewise.
52241         (__get_nprocs): Likewise.
52242         (__get_phys_pages): Likewise.
52243         (__get_avphys_pages): Likewise.
52244         * misc/getttyent.c (getttyent): Likewise.
52245         (setttyent): Likewise.
52246         (endttyent): Likewise.
52247         * misc/getusershell.c (getusershell): Likewise.
52248         (endusershell): Likewise.
52249         (setusershell): Likewise.
52250         (initshells): Likewise.
52251         * misc/hsearch.c (__hdestroy): Likewise.
52252         * misc/sync.c (sync): Likewise.
52253         * misc/syslog.c (closelog_internal): Likewise.
52254         (closelog): Likewise.
52255         * misc/ttyslot.c (ttyslot): Likewise.
52256         * misc/vhangup.c (vhangup): Likewise.
52257         * posix/fork.c (__fork): Likewise.
52258         * posix/getegid.c (__getegid): Likewise.
52259         * posix/geteuid.c (__geteuid): Likewise.
52260         * posix/getgid.c (__getgid): Likewise.
52261         * posix/getpid.c (__getpid): Likewise.
52262         * posix/getppid.c (__getppid): Likewise.
52263         * posix/getuid.c (__getuid): Likewise.
52264         * posix/pause.c (pause): Likewise.
52265         * posix/setpgrp.c (setpgrp): Likewise.
52266         * posix/setsid.c (__setsid): Likewise.
52267         * posix/test-vfork.c (noop): Likewise.
52268         * resolv/gethnamaddr.c (_endhtent): Likewise.
52269         (_gethtent): Likewise.
52270         (ht_endhostent): Likewise.
52271         (gethostent): Likewise.
52272         (dns_service): Likewise.
52273         * stdlib/drand48.c (drand48): Likewise.
52274         * stdlib/lrand48.c (lrand48): Likewise.
52275         * stdlib/mrand48.c (mrand48): Likewise.
52276         * stdlib/rand.c (rand): Likewise.
52277         * stdlib/random.c (__random): Likewise.
52278         * stdlib/setenv.c (clearenv): Likewise.
52279         * sunrpc/clnt_tcp.c (clnttcp_abort): Likewise.
52280         * sunrpc/clnt_unix.c (clntunix_abort): Likewise.
52281         * sysdeps/mach/getpagesize.c (__getpagesize): Likewise.
52282         * sysdeps/mach/getsysstats.c (__get_nprocs_conf): Likewise.
52283         (__get_nprocs): Likewise.
52284         (__get_phys_pages): Likewise.
52285         (__get_avphys_pages): Likewise.
52286         * sysdeps/mach/hurd/dl-sysdep.c (__getpid): Likewise.
52287         * sysdeps/mach/hurd/getclktck.c (__getclktck): Likewise.
52288         * sysdeps/mach/hurd/getdtsz.c (__getdtablesize): Likewise.
52289         * sysdeps/mach/hurd/getegid.c (__getegid): Likewise.
52290         * sysdeps/mach/hurd/geteuid.c (__geteuid): Likewise.
52291         * sysdeps/mach/hurd/getgid.c (__getgid): Likewise.
52292         * sysdeps/mach/hurd/gethostid.c (gethostid): Likewise.
52293         * sysdeps/mach/hurd/getlogin.c (getlogin): Likewise.
52294         * sysdeps/mach/hurd/getpid.c (__getpid): Likewise.
52295         * sysdeps/mach/hurd/getppid.c (__getppid): Likewise.
52296         * sysdeps/mach/hurd/getuid.c (__getuid): Likewise.
52297         * sysdeps/mach/hurd/sync.c (sync): Likewise.
52298         * sysdeps/posix/clock.c (clock): Likewise.
52299         * sysdeps/unix/bsd/setsid.c (__setsid): Likewise.
52300         * sysdeps/unix/getpagesize.c (__getpagesize): Likewise.
52301         * sysdeps/unix/sysv/linux/getclktck.c (__getclktck): Likewise.
52302         * sysdeps/unix/sysv/linux/gethostid.c (gethostid): Likewise.
52303         * sysdeps/unix/sysv/linux/getpagesize.c (__getpagesize): Likewise.
52304         * sysdeps/unix/sysv/linux/getsysstats.c (__get_nprocs): Likewise.
52305         (__get_nprocs_conf): Likewise.
52306         (__get_phys_pages): Likewise.
52307         (__get_avphys_pages): Likewise.
52308         * time/clock.c (clock): Likewise.
52309         * time/tzset.c (__tzname_max): Likewise.
52310
52311 2013-06-07  Joseph Myers  <joseph@codesourcery.com>
52312
52313         * bits/byteswap.h [__GNUC__ && !__GNUC_PREREQ (4, 3)]
52314         (__bswap_32): Do not use "register".
52315         * crypt/crypt.c (_ufc_doit_r): Likewise.
52316         * debug/stpcpy_chk.c (__stpcpy_chk): Likewise.
52317         * debug/wcscat_chk.c (__wcscat_chk): Likewise.
52318         * gmon/gmon.c (__monstartup): Likewise.
52319         * gmon/mcount.c (_MCOUNT_DECL(frompc, selfpc)): Likewise.
52320         * hurd/hurdmalloc.c (more_memory): Likewise.
52321         (malloc): Likewise.
52322         (free): Likewise.
52323         (realloc): Likewise.
52324         (malloc_fork_prepare): Likewise.
52325         (malloc_fork_parent): Likewise.
52326         (malloc_fork_child): Likewise.
52327         * include/rpc/auth_des.h (xdr_authdes_verf): Likewise.
52328         (_svcauth_des): Likewise.
52329         * inet/inet_lnaof.c (inet_lnaof): Likewise.
52330         * inet/inet_net.c (inet_network): Likewise.
52331         * inet/inet_netof.c (inet_netof): Likewise.
52332         * inet/rcmd.c (__validuser2_sa): Likewise.
52333         * io/fts.c (fts_open): Likewise.
52334         (fts_load): Likewise.
52335         (fts_close): Likewise.
52336         (fts_read): Likewise.
52337         (fts_children): Likewise.
52338         (fts_build): Likewise.
52339         (fts_stat): Likewise.
52340         (fts_sort): Likewise.
52341         (fts_alloc): Likewise.
52342         (fts_lfree): Likewise.
52343         * libio/fileops.c (_IO_new_file_xsputn): Likewise.
52344         (_IO_file_xsgetn): Likewise.
52345         (_IO_file_xsgetn_mmap): Likewise.
52346         * libio/iofopncook.c (_IO_cookie_read): Likewise.
52347         (_IO_cookie_write): Likewise.
52348         * libio/oldfileops.c (_IO_old_file_xsputn): Likewise.
52349         * libio/wfileops.c (_IO_wfile_xsputn): Likewise.
52350         * mach/msgserver.c (__mach_msg_server_timeout): Likewise.
52351         * malloc/obstack.c (_obstack_begin): Likewise.
52352         (_obstack_begin_1): Likewise.
52353         (_obstack_newchunk): Likewise.
52354         (_obstack_allocated_p): Likewise.
52355         (obstack_free): Likewise.
52356         (_obstack_memory_used): Likewise.
52357         * misc/getttyent.c (getttynam): Likewise.
52358         (getttyent): Likewise.
52359         (skip): Likewise.
52360         (value): Likewise.
52361         * misc/getusershell.c (initshells): Likewise.
52362         * misc/syslog.c (__vsyslog_chk): Likewise.
52363         * misc/ttyslot.c (ttyslot): Likewise.
52364         * nis/nis_hash.c (__nis_hash): Likewise.
52365         * posix/fnmatch_loop.c (FCT): Likewise.
52366         * posix/getconf.c (print_all): Likewise.
52367         (main): Likewise.
52368         * posix/getopt.c (exchange): Likewise.
52369         * posix/glob.c (globfree): Likewise.
52370         (prefix_array): Likewise.
52371         (__glob_pattern_type): Likewise.
52372         * resolv/arpa/nameser.h (NS_GET16): Likewise.
52373         (NS_GET32): Likewise.
52374         (NS_PUT16): Likewise.
52375         (NS_PUT32): Likewise.
52376         * resolv/gethnamaddr.c (getanswer): Likewise.
52377         (gethostbyname2): Likewise.
52378         (gethostbyaddr): Likewise.
52379         (_gethtent): Likewise.
52380         (_gethtbyname2): Likewise.
52381         (_gethtbyaddr): Likewise.
52382         * resolv/ns_print.c (dst_s_get_int16): Likewise.
52383         * resolv/nss_dns/dns-host.c (getanswer_r): Likewise.
52384         * resolv/res_init.c (__res_vinit): Likewise.
52385         (net_mask): Likewise.
52386         * resolv/res_mkquery.c (outchar): Likewise.
52387         (PRINT): Likewise.
52388         * stdio-common/printf_fp.c (outchar): Likewise.
52389         (PRINT): Likewise.
52390         * stdio-common/printf_fphex.c (outchar): Likewise.
52391         (PRINT): Likewise.
52392         * stdio-common/printf_size.c (outchar): Likewise.
52393         (PRINT): Likewise.
52394         * stdio-common/test_rdwr.c (main): Likewise.
52395         * stdio-common/tfformat.c (matches): Likewise.
52396         * stdio-common/vfprintf.c (outchar): Likewise.
52397         (printf_unknown): Likewise.
52398         (buffered_vfprintf): Likewise.
52399         * stdio-common/vfscanf.c (_IO_vfscanf_internal): Likewise.
52400         * stdio-common/xbug.c (AppendToBuffer): Likewise.
52401         (ReadFile): Likewise.
52402         * stdlib/qsort.c (SWAP): Likewise.
52403         (_quicksort): Likewise.
52404         * stdlib/setenv.c (__add_to_environ): Likewise.
52405         * stdlib/strtod_l.c (____STRTOF_INTERNAL): Likewise.
52406         * stdlib/strtol_l.c (__strtol_l): Likewise.
52407         * stdlib/tst-strtod.c (main): Likewise.
52408         * stdlib/tst-strtol.c (main): Likewise.
52409         * stdlib/tst-strtoll.c (main): Likewise.
52410         * string/bits/string2.h (__strcmp_cc): Likewise.
52411         (__strcmp_cg): Likewise.
52412         (__strcspn_c1): Likewise.
52413         (__strcspn_c2): Likewise.
52414         (__strcspn_c3): Likewise.
52415         (__strspn_c1): Likewise.
52416         (__strspn_c2): Likewise.
52417         (__strspn_c3): Likewise.
52418         (__strsep_1c): Likewise.
52419         (__strsep_2c): Likewise.
52420         (__strsep_3c): Likewise.
52421         * string/memccpy.c (__memccpy): Likewise.
52422         * string/stpcpy.c (__stpcpy): Likewise.
52423         * string/strcmp.c (strcmp): Likewise.
52424         * string/strrchr.c (strrchr): Likewise.
52425         * sysdeps/generic/sigset-cvt-mask.h (sigset_get_old_mask):
52426         Likewise.
52427         * sysdeps/mach/hurd/getcwd.c
52428         (_hurd_canonicalize_directory_name_internal): Likewise.
52429         * sysdeps/mach/i386/sysdep.h (SNARF_ARGS): Likewise.
52430         * sysdeps/powerpc/powerpc32/power6/wcschr.c (wcschr): Likewise.
52431         * sysdeps/powerpc/powerpc32/power6/wcsrchr.c (wcsrchr): Likewise.
52432         * sysdeps/x86/bits/byteswap-16.h [__GNUC__] (__bswap_16):
52433         Likewise, in both definitions.
52434         * sysdeps/x86/bits/byteswap.h (__bswap_32): Likewise, in multiple
52435         definitions.
52436         [__GNUC_PREREQ (2, 0) && !__GNUC_PREREQ (4, 3) && __WORDSIZE ==
52437         64] (__bswap_64): Likewise.
52438         * time/test_time.c (main): Likewise.
52439         * time/tzfile.c (__tzfile_read): Likewise.
52440         (__tzfile_compute): Likewise.
52441         * time/tzset.c (__tzset_parse_tz): Likewise.
52442         (tzset_internal): Likewise.
52443         (compute_change): Likewise.
52444         * wcsmbs/wcscat.c (__wcscat): Likewise.
52445         * wcsmbs/wcschr.c (wcschr): Likewise.
52446         * wcsmbs/wcschrnul.c (__wcschrnul): Likewise.
52447         * wcsmbs/wcscspn.c (wcscspn): Likewise.
52448         * wcsmbs/wcspbrk.c (wcspbrk): Likewise.
52449         * wcsmbs/wcsrchr.c (wcsrchr): Likewise.
52450         * wcsmbs/wcsspn.c (wcsspn): Likewise.
52451         * wcsmbs/wcsstr.c (wcsstr): Likewise.
52452         * wcsmbs/wmemchr.c (wmemchr): Likewise.
52453         * wcsmbs/wmemcmp.c (WMEMCMP): Likewise.
52454         * wcsmbs/wmemset.c (wmemset): Likewise.
52455
52456 2013-06-06  Joseph Myers  <joseph@codesourcery.com>
52457
52458         * scripts/config.guess: Update to version 2013-05-16.
52459         * scripts/config.sub: Update to version 2013-04-24.
52460         * scripts/install-sh: Update to version 2011-11-20.07.
52461         * scripts/mkinstalldirs: Update to version 2009-04-28.21.
52462         * scripts/move-if-change: Update to version 2012-01-06 07:23.
52463
52464 2013-06-06   Ondřej Bílka  <neleai@seznam.cz>
52465
52466         * debug/fgetws_u_chk.c: Fix leading whitespaces.
52467         * elf/sln.c: Likewise.
52468         * hurd/hurd/ioctl.h: Likewise.
52469         * hurd/hurdmalloc.c: Likewise.
52470         * hurd/xattr.c: Likewise.
52471         * include/shlib-compat.h: Likewise.
52472         * inet/ruserpass.c: Likewise.
52473         * libio/iofgets_u.c: Likewise.
52474         * libio/iofgetws_u.c: Likewise.
52475         * locale/programs/ld-identification.c: Likewise.
52476         * locale/programs/ld-time.c: Likewise.
52477         * mach/msg-destroy.c: Likewise.
52478         * nss/nss_files/files-netgrp.c: Likewise.
52479         * resolv/res_data.c: Likewise.
52480         * soft-fp/op-1.h: Likewise.
52481         * soft-fp/op-2.h: Likewise.
52482         * soft-fp/op-4.h: Likewise.
52483         * soft-fp/op-common.h: Likewise.
52484         * stdio-common/printf_fphex.c: Likewise.
52485         * stdlib/strtod_l.c: Likewise.
52486         * sunrpc/rpc/clnt.h: Likewise.
52487         * sysdeps/generic/framestate.c: Likewise.
52488         * sysdeps/i386/bsd-_setjmp.S: Likewise.
52489         * sysdeps/i386/bsd-setjmp.S: Likewise.
52490         * sysdeps/i386/__longjmp.S: Likewise.
52491         * sysdeps/i386/setjmp.S: Likewise.
52492         * sysdeps/ieee754/dbl-64/k_rem_pio2.c: Likewise.
52493         * sysdeps/ieee754/flt-32/e_rem_pio2f.c: Likewise.
52494         * sysdeps/ieee754/flt-32/k_rem_pio2f.c: Likewise.
52495         * sysdeps/ieee754/ldbl-128/e_expl.c: Likewise.
52496         * sysdeps/ieee754/ldbl-128ibm/e_expl.c: Likewise.
52497         * sysdeps/ieee754/ldbl-128ibm/s_fpclassifyl.c: Likewise.
52498         * sysdeps/ieee754/ldbl-128ibm/s_nexttoward.c: Likewise.
52499         * sysdeps/ieee754/ldbl-128ibm/s_scalblnl.c: Likewise.
52500         * sysdeps/ieee754/ldbl-128ibm/s_scalbnl.c: Likewise.
52501         * sysdeps/ieee754/ldbl-128/ldbl2mpn.c: Likewise.
52502         * sysdeps/ieee754/ldbl-128/s_fpclassifyl.c: Likewise.
52503         * sysdeps/ieee754/ldbl-128/s_llrintl.c: Likewise.
52504         * sysdeps/ieee754/ldbl-128/s_llroundl.c: Likewise.
52505         * sysdeps/ieee754/ldbl-128/s_lrintl.c: Likewise.
52506         * sysdeps/ieee754/ldbl-128/s_lroundl.c: Likewise.
52507         * sysdeps/ieee754/ldbl-128/s_nexttoward.c: Likewise.
52508         * sysdeps/ieee754/ldbl-128/s_truncl.c: Likewise.
52509         * sysdeps/ieee754/ldbl-96/ldbl2mpn.c: Likewise.
52510         * sysdeps/ieee754/support.c: Likewise.
52511         * sysdeps/powerpc/powerpc32/dl-machine.c: Likewise.
52512         * sysdeps/powerpc/powerpc32/lshift.S: Likewise.
52513         * sysdeps/sparc/sparc32/__longjmp.S: Likewise.
52514         * sysdeps/sparc/sparc64/soft-fp/qp_cmp.c: Likewise.
52515         * sysdeps/sparc/sparc64/soft-fp/qp_cmpe.c: Likewise.
52516         * sysdeps/sparc/sparc64/soft-fp/qp_feq.c: Likewise.
52517         * sysdeps/sparc/sparc64/soft-fp/qp_fge.c: Likewise.
52518         * sysdeps/sparc/sparc64/soft-fp/qp_fgt.c: Likewise.
52519         * sysdeps/sparc/sparc64/soft-fp/qp_fle.c: Likewise.
52520         * sysdeps/sparc/sparc64/soft-fp/qp_flt.c: Likewise.
52521         * sysdeps/sparc/sparc64/soft-fp/qp_fne.c: Likewise.
52522         * sysdeps/sparc/sparc64/soft-fp/qp_mul.c: Likewise.
52523         * sysdeps/sparc/sparc64/soft-fp/qp_qtoi.c: Likewise.
52524         * sysdeps/sparc/sparc64/soft-fp/qp_qtoui.c: Likewise.
52525         * sysdeps/sparc/sparc64/soft-fp/qp_qtoux.c: Likewise.
52526         * sysdeps/sparc/sparc64/soft-fp/qp_qtox.c: Likewise.
52527         * sysdeps/unix/sysv/linux/lutimes.c: Likewise.
52528         * sysdeps/unix/sysv/linux/powerpc/powerpc32/clone.S: Likewise.
52529
52530 2013-06-05  Ondřej Bílka  <neleai@seznam.cz>
52531
52532         * posix/transbug.c: Remove executable mode.
52533
52534 2013-06-05  Joseph Myers  <joseph@codesourcery.com>
52535
52536         * crypt/speeds.c: Remove trailing whitespace.
52537         * dlfcn/default.c: Likewise.
52538         * elf/ifuncdep2.c: Likewise.
52539         * elf/ifuncmain1.c: Likewise.
52540         * elf/ifuncmain1vis.c: Likewise.
52541         * elf/testobj.h: Likewise.
52542         * elf/tst-stackguard1.c: Likewise.
52543         * gmon/sys/gmon.h: Likewise.
52544         * hurd/hurdmsg.c: Likewise.
52545         * hurd/new-fd.c: Likewise.
52546         * hurd/ports-get.c: Likewise.
52547         * iconvdata/ibm1008_420.c: Likewise.
52548         * inet/tst-getni1.c: Likewise.
52549         * inet/tst-getni2.c: Likewise.
52550         * libio/ioungetc.c: Likewise.
52551         * libio/wfiledoalloc.c: Likewise.
52552         * manual/libm-err-tab.pl: Likewise.
52553         * math/w_dremf.c: Likewise.
52554         * misc/ftruncate.c: Likewise.
52555         * posix/bug-glob2.c: Likewise.
52556         * posix/tst-pcre.c: Likewise.
52557         * posix/wait4.c: Likewise.
52558         * resolv/README: Likewise.
52559         * resolv/res_debug.h: Likewise.
52560         * resolv/tst-inet_ntop.c: Likewise.
52561         * setjmp/bug269-setjmp.c: Likewise.
52562         * soft-fp/extended.h: Likewise.
52563         * soft-fp/op-1.h: Likewise.
52564         * soft-fp/op-2.h: Likewise.
52565         * soft-fp/op-4.h: Likewise.
52566         * soft-fp/op-8.h: Likewise.
52567         * soft-fp/testit.c: Likewise.
52568         * stdio-common/bug16.c: Likewise.
52569         * stdlib/random.c: Likewise.
52570         * sunrpc/rpcsvc/rquota.x: Likewise.
52571         * sysdeps/ieee754/dbl-64/powtwo.tbl: Likewise.
52572         * sysdeps/ieee754/flt-32/k_cosf.c: Likewise.
52573         * sysdeps/ieee754/flt-32/k_rem_pio2f.c: Likewise.
52574         * sysdeps/ieee754/flt-32/k_sinf.c: Likewise.
52575         * sysdeps/ieee754/flt-32/k_tanf.c: Likewise.
52576         * sysdeps/ieee754/flt-32/s_atanf.c: Likewise.
52577         * sysdeps/ieee754/flt-32/s_copysignf.c: Likewise.
52578         * sysdeps/ieee754/flt-32/s_erff.c: Likewise.
52579         * sysdeps/ieee754/flt-32/s_fabsf.c: Likewise.
52580         * sysdeps/ieee754/flt-32/s_frexpf.c: Likewise.
52581         * sysdeps/ieee754/flt-32/s_logbf.c: Likewise.
52582         * sysdeps/ieee754/ldbl-128/e_rem_pio2l.c: Likewise.
52583         * sysdeps/ieee754/ldbl-128/k_tanl.c: Likewise.
52584         * sysdeps/ieee754/ldbl-128/s_atanl.c: Likewise.
52585         * sysdeps/ieee754/ldbl-128/s_erfl.c: Likewise.
52586         * sysdeps/ieee754/ldbl-128/s_expm1l.c: Likewise.
52587         * sysdeps/ieee754/ldbl-128/s_log1pl.c: Likewise.
52588         * sysdeps/ieee754/ldbl-128/s_nexttowardf.c: Likewise.
52589         * sysdeps/ieee754/ldbl-128/s_remquol.c: Likewise.
52590         * sysdeps/ieee754/ldbl-128/s_scalblnl.c: Likewise.
52591         * sysdeps/ieee754/ldbl-128/s_scalbnl.c: Likewise.
52592         * sysdeps/ieee754/ldbl-128/s_tanl.c: Likewise.
52593         * sysdeps/ieee754/ldbl-128/t_sincosl.c: Likewise.
52594         * sysdeps/ieee754/ldbl-128ibm/k_cosl.c: Likewise.
52595         * sysdeps/ieee754/ldbl-128ibm/k_sincosl.c: Likewise.
52596         * sysdeps/ieee754/ldbl-128ibm/k_sinl.c: Likewise.
52597         * sysdeps/ieee754/ldbl-128ibm/math_ldbl.h: Likewise.
52598         * sysdeps/ieee754/ldbl-128ibm/s_nextafterl.c: Likewise.
52599         * sysdeps/ieee754/ldbl-96/s_erfl.c: Likewise.
52600         * sysdeps/ieee754/s_lib_version.c: Likewise.
52601         * sysdeps/mach/hurd/check_fds.c: Likewise.
52602         * sysdeps/mach/hurd/getsockname.c: Likewise.
52603         * sysdeps/mach/hurd/net/if_ppp.h: Likewise.
52604         * sysdeps/mach/hurd/recvfrom.c: Likewise.
52605         * sysdeps/powerpc/bits/link.h: Likewise.
52606         * sysdeps/powerpc/dl-procinfo.c: Likewise.
52607         * sysdeps/powerpc/fpu/feholdexcpt.c: Likewise.
52608         * sysdeps/powerpc/fpu/fenv_const.c: Likewise.
52609         * sysdeps/powerpc/fpu/fesetenv.c: Likewise.
52610         * sysdeps/powerpc/fpu/feupdateenv.c: Likewise.
52611         * sysdeps/powerpc/fpu/s_rintf.c: Likewise.
52612         * sysdeps/powerpc/fpu/t_sqrt.c: Likewise.
52613         * sysdeps/powerpc/powerpc32/bits/atomic.h: Likewise.
52614         * sysdeps/powerpc/powerpc32/fpu/s_floor.S: Likewise.
52615         * sysdeps/powerpc/powerpc32/fpu/s_floorf.S: Likewise.
52616         * sysdeps/powerpc/powerpc32/fpu/s_isnan.S: Likewise.
52617         * sysdeps/powerpc/powerpc32/fpu/s_lround.S: Likewise.
52618         * sysdeps/powerpc/powerpc32/fpu/s_round.S: Likewise.
52619         * sysdeps/powerpc/powerpc32/fpu/s_roundf.S: Likewise.
52620         * sysdeps/powerpc/powerpc32/fpu/s_trunc.S: Likewise.
52621         * sysdeps/powerpc/powerpc32/fpu/s_truncf.S: Likewise.
52622         * sysdeps/powerpc/powerpc32/power4/fpu/s_llrint.S: Likewise.
52623         * sysdeps/powerpc/powerpc32/power4/fpu/s_llrintf.S: Likewise.
52624         * sysdeps/powerpc/powerpc32/power4/fpu/s_llround.S: Likewise.
52625         * sysdeps/powerpc/powerpc32/power4/fpu/w_sqrt.S: Likewise.
52626         * sysdeps/powerpc/powerpc32/power4/fpu/w_sqrtf.S: Likewise.
52627         * sysdeps/powerpc/powerpc32/power4/hp-timing.c: Likewise.
52628         * sysdeps/powerpc/powerpc32/power4/memcmp.S: Likewise.
52629         * sysdeps/powerpc/powerpc32/power4/memset.S: Likewise.
52630         * sysdeps/powerpc/powerpc32/power4/wordcopy.c: Likewise.
52631         * sysdeps/powerpc/powerpc32/power5+/fpu/s_llround.S: Likewise.
52632         * sysdeps/powerpc/powerpc32/power5+/fpu/s_lround.S: Likewise.
52633         * sysdeps/powerpc/powerpc32/power5/fpu/w_sqrt.S: Likewise.
52634         * sysdeps/powerpc/powerpc32/power5/fpu/w_sqrtf.S: Likewise.
52635         * sysdeps/powerpc/powerpc32/power6/fpu/s_llrint.S: Likewise.
52636         * sysdeps/powerpc/powerpc32/power6/fpu/s_llrintf.S: Likewise.
52637         * sysdeps/powerpc/powerpc32/power6/fpu/s_llround.S: Likewise.
52638         * sysdeps/powerpc/powerpc32/power6/memcpy.S: Likewise.
52639         * sysdeps/powerpc/powerpc32/power6/wordcopy.c: Likewise.
52640         * sysdeps/powerpc/powerpc32/power6x/fpu/s_lround.S: Likewise.
52641         * sysdeps/powerpc/powerpc64/fpu/s_ceill.S: Likewise.
52642         * sysdeps/powerpc/powerpc64/fpu/s_floor.S: Likewise.
52643         * sysdeps/powerpc/powerpc64/fpu/s_floorf.S: Likewise.
52644         * sysdeps/powerpc/powerpc64/fpu/s_isnan.S: Likewise.
52645         * sysdeps/powerpc/powerpc64/fpu/s_llrint.S: Likewise.
52646         * sysdeps/powerpc/powerpc64/fpu/s_llrintf.S: Likewise.
52647         * sysdeps/powerpc/powerpc64/fpu/s_llround.S: Likewise.
52648         * sysdeps/powerpc/powerpc64/fpu/s_llroundf.S: Likewise.
52649         * sysdeps/powerpc/powerpc64/fpu/s_round.S: Likewise.
52650         * sysdeps/powerpc/powerpc64/fpu/s_roundf.S: Likewise.
52651         * sysdeps/powerpc/powerpc64/fpu/s_roundl.S: Likewise.
52652         * sysdeps/powerpc/powerpc64/fpu/s_trunc.S: Likewise.
52653         * sysdeps/powerpc/powerpc64/fpu/s_truncf.S: Likewise.
52654         * sysdeps/powerpc/powerpc64/fpu/s_truncl.S: Likewise.
52655         * sysdeps/powerpc/powerpc64/hp-timing.c: Likewise.
52656         * sysdeps/powerpc/powerpc64/power4/fpu/w_sqrt.c: Likewise.
52657         * sysdeps/powerpc/powerpc64/power4/fpu/w_sqrtf.c: Likewise.
52658         * sysdeps/powerpc/powerpc64/power4/memcmp.S: Likewise.
52659         * sysdeps/powerpc/powerpc64/power4/memcpy.S: Likewise.
52660         * sysdeps/powerpc/powerpc64/power5+/fpu/s_llround.S: Likewise.
52661         * sysdeps/powerpc/powerpc64/power5/fpu/s_isnan.S: Likewise.
52662         * sysdeps/powerpc/powerpc64/power6/fpu/s_isnan.S: Likewise.
52663         * sysdeps/powerpc/powerpc64/power6/memcpy.S: Likewise.
52664         * sysdeps/powerpc/powerpc64/power6/wordcopy.c: Likewise.
52665         * sysdeps/powerpc/powerpc64/power6x/fpu/s_isnan.S: Likewise.
52666         * sysdeps/powerpc/powerpc64/power6x/fpu/s_llrint.S: Likewise.
52667         * sysdeps/powerpc/powerpc64/power6x/fpu/s_llround.S: Likewise.
52668         * sysdeps/powerpc/powerpc64/strlen.S: Likewise.
52669         * sysdeps/powerpc/powerpc64/strncmp.S: Likewise.
52670         * sysdeps/powerpc/sysdep.h: Likewise.
52671         * sysdeps/s390/s390-64/s390x-mcount.S: Likewise.
52672         * sysdeps/s390/s390-64/sub_n.S: Likewise.
52673         * sysdeps/sh/dl-trampoline.S: Likewise.
52674         * sysdeps/sh/memset.S: Likewise.
52675         * sysdeps/sh/sh4/fpu/fclrexcpt.c: Likewise.
52676         * sysdeps/sh/strlen.S: Likewise.
52677         * sysdeps/sparc/sparc32/dl-trampoline.S: Likewise.
52678         * sysdeps/sparc/sparc32/dotmul.S: Likewise.
52679         * sysdeps/sparc/sparc32/memcpy.S: Likewise.
52680         * sysdeps/sparc/sparc32/rem.S: Likewise.
52681         * sysdeps/sparc/sparc32/sdiv.S: Likewise.
52682         * sysdeps/sparc/sparc32/soft-fp/q_neg.c: Likewise.
52683         * sysdeps/sparc/sparc32/strchr.S: Likewise.
52684         * sysdeps/sparc/sparc32/udiv.S: Likewise.
52685         * sysdeps/sparc/sparc32/urem.S: Likewise.
52686         * sysdeps/sparc/sparc64/add_n.S: Likewise.
52687         * sysdeps/sparc/sparc64/memcpy.S: Likewise.
52688         * sysdeps/sparc/sparc64/rawmemchr.S: Likewise.
52689         * sysdeps/sparc/sparc64/soft-fp/s_frexpl.c: Likewise.
52690         * sysdeps/sparc/sparc64/soft-fp/sfp-machine.h: Likewise.
52691         * sysdeps/sparc/sparc64/stpncpy.S: Likewise.
52692         * sysdeps/sparc/sparc64/strncmp.S: Likewise.
52693         * sysdeps/sparc/sparc64/strncpy.S: Likewise.
52694         * sysdeps/unix/bsd/times.c: Likewise.
52695         * sysdeps/unix/sysv/linux/a.out.h: Likewise.
52696         * sysdeps/unix/sysv/linux/net/if_ppp.h: Likewise.
52697         * sysdeps/unix/sysv/linux/powerpc/powerpc32/setcontext.S: Likewise.
52698         * sysdeps/unix/sysv/linux/powerpc/powerpc32/swapcontext.S: Likewise.
52699         * sysdeps/unix/sysv/linux/powerpc/powerpc64/Versions: Likewise.
52700         * sysdeps/unix/sysv/linux/powerpc/sys/procfs.h: Likewise.
52701         * sysdeps/unix/sysv/linux/powerpc/sys/ucontext.h: Likewise.
52702         * sysdeps/unix/sysv/linux/s390/s390-32/clone.S: Likewise.
52703         * sysdeps/unix/sysv/linux/s390/s390-32/getcontext.S: Likewise.
52704         * sysdeps/unix/sysv/linux/s390/s390-32/posix_fadvise64.c: Likewise.
52705         * sysdeps/unix/sysv/linux/s390/s390-32/setcontext.S: Likewise.
52706         * sysdeps/unix/sysv/linux/s390/s390-32/swapcontext.S: Likewise.
52707         * sysdeps/unix/sysv/linux/s390/s390-64/mmap.S: Likewise.
52708         * sysdeps/unix/sysv/linux/s390/s390-64/register-dump.h: Likewise.
52709         * sysdeps/unix/sysv/linux/s390/s390-64/setcontext.S: Likewise.
52710         * sysdeps/unix/sysv/linux/s390/s390-64/socket.S: Likewise.
52711         * sysdeps/unix/sysv/linux/s390/s390-64/swapcontext.S: Likewise.
52712         * sysdeps/unix/sysv/linux/s390/s390-64/syscall.S: Likewise.
52713         * sysdeps/unix/sysv/linux/scsi/scsi_ioctl.h: Likewise.
52714         * sysdeps/unix/sysv/linux/sh/brk.c: Likewise.
52715         * sysdeps/unix/sysv/linux/sh/clone.S: Likewise.
52716         * sysdeps/unix/sysv/linux/sh/sh3/getcontext.S: Likewise.
52717         * sysdeps/unix/sysv/linux/sh/sh3/register-dump.h: Likewise.
52718         * sysdeps/unix/sysv/linux/sh/sh3/setcontext.S: Likewise.
52719         * sysdeps/unix/sysv/linux/sh/sh3/swapcontext.S: Likewise.
52720         * sysdeps/unix/sysv/linux/sh/vfork.S: Likewise.
52721         * sysdeps/unix/sysv/linux/sparc/a.out.h: Likewise.
52722         * sysdeps/unix/sysv/linux/sparc/sparc64/brk.S: Likewise.
52723         * sysdeps/unix/sysv/linux/sys/personality.h: Likewise.
52724         * sysdeps/x86_64/fpu/s_ceill.S: Likewise.
52725         * sysdeps/x86_64/fpu/s_llrintl.S: Likewise.
52726         * sysdeps/x86_64/strcspn.S: Likewise.
52727
52728 2013-06-05  Ryan S. Arnold  <rsa@linux.vnet.ibm.com>
52729
52730         * locale/C-translit.h: Revert #include <stdint.h> because this is a
52731         generated file.  Regenerate properly from gen-translit.pl.
52732         * locale/gen-translit.pl: Add #include <stdint.h>.  This generates
52733         locale/C-translit.h.
52734
52735 2013-06-05  Andreas Schwab  <schwab@suse.de>
52736
52737         [BZ #15100]
52738         * time/strptime_l.c (__strptime_internal): Count Sunday in a %W
52739         week as 6 instead of -1.
52740         * time/tst-strptime.c (day_tests): Add test case.
52741
52742 2013-06-05  Siddhesh Poyarekar  <siddhesh@redhat.com>
52743
52744         * sysdeps/generic/math_private.h
52745         (libc_feholdexcept_setround_53bit): Replace with
52746         libc_feholdsetround_53bit.
52747         (libc_feupdateenv_53bit): Replace with
52748         libc_feresetround_53bit.
52749         (SET_RESTORE_ROUND_53BIT): Adjust.
52750
52751 2013-06-03  Siddhesh Poyarekar  <siddhesh@redhat.com>
52752
52753         * string/test-strchrnul.c: Add copyright header.
52754
52755         * posix/tst-getaddrinfo4.c: Increase test timeout.
52756
52757 2013-06-03  Carlos O'Donell  <carlos@redhat.com>
52758
52759         [BZ #15536]
52760         * math/libm-test.inc (MAX_EXP): Remove
52761         (MIN_EXP): Define.
52762         (ulp): Use MIN_EXP - MANT_DIG.
52763         (check_ulp): Verify subnormal ulps. Only allow a range of +/- 1 ulp.
52764
52765 2013-05-31  Carlos O'Donell  <carlos@redhat.com>
52766
52767         * po/be.po: Revert last change.
52768         * po/zh_CN.po: Likewise.
52769         * po/header.pot: Likewise.
52770
52771 2013-05-31  Joseph Myers  <joseph@codesourcery.com>
52772
52773         * Makefile ($(common-objpfx)linkobj/libc.so): Define
52774         link-libc-deps to empty as target-specific variable.
52775         * Makerules (link-libc-args): New variable.
52776         (libc-for-link): Likewise.
52777         (link-libc-deps): Likewise.
52778         (lib%.so): Depend on $(link-libc-deps).  Link with
52779         $(link-libc-args).
52780         (build-module): Link with $(link-libc-args).
52781         (build-module-asneeded): Likewise.
52782         (build-module-helper-objlist): Filter out $(link-libc-deps) from
52783         list of objects.
52784         ($(common-objpfx)libc.so): Define link-libc-deps to empty as
52785         target-specific variable.
52786         ($(extra-modules-build:%=$(objpfx)%.so)): Depend on
52787         $(link-libc-deps) instead of libc.so and libc_nonshared.a.
52788         * crypt/Makefile ($(objpfx)libcrypt.so): Remove dependencies on
52789         libc.
52790         * debug/Makefile ($(objpfx)libSegFault.so): Remove dependencies on
52791         libc and ld.so.
52792         ($(objpfx)libpcprofile.so): Likewise.
52793         * dlfcn/Makefile (LDLIBS-bug-atexit3-lib.so): Remove ld.so and
52794         libc_nonshared.a.
52795         ($(objpfx)libdl.so): Remove dependencies on libc and ld.so.
52796         * hesiod/Makefile ($(objpfx)libnss_hesiod.so): Likewise.
52797         * iconvdata/extra-module.mk ($(objpfx)$(mod).so): Depend on
52798         $(link-libc-deps).
52799         ($(objpfx)$(mod).so): Remove dependencies on libc and ld.so.
52800         * locale/Makefile ($(objpfx)libBrokenLocale.so): Likewise.
52801         * login/Makefile ($(objpfx)libutil.so): Likewise.
52802         * malloc/Makefile ($(objpfx)libmemusage.so): Likewise.
52803         * math/Makefile ($(objpfx)libm.so): Likewise.
52804         * nis/Makefile ($(services:%=$(objpfx)libnss_%.so)
52805         $(objpfx)libnsl.so): Define libc-for-link as target-specific
52806         variable instead of depending directly on libc.
52807         * nss/Makefile ($(services:%=$(objpfx)libnss_%.so)): Likewise.
52808         ($(objpfx)/libnss_test1.so): Change dependencies on libc to
52809         $(link-libc-deps).
52810         * resolv/Makefile ($(objpfx)libresolv.so): Remove dependencies on
52811         libc.
52812         [$(have-ssp) = yes] (LDLIBS-resolv.so): Remove variable.
52813         ($(objpfx)libnss_dns.so): Remove dependencies on libc.
52814         ($(objpfx)libanl.so): Likewise.
52815         * rt/Makefile ($(objpfx)librt.so): Remove dependencies on libc and
52816         ld.so.
52817         * stdlib/Makefile ($(objpfx)tst-putenvmod.so): Depend on
52818         $(link-libc-deps).
52819         * sysdeps/i386/fpu/Makefile: Remove file.
52820         * sysdeps/powerpc/fpu/Makefile [$(subdir) = math]
52821         ($(objpfx)libm.so): Remove dependency on ld.so.
52822
52823 2013-05-30  Patsy Franklin  <pfrankli@redhat.com>
52824
52825         [BZ # 15553]
52826         * nis/yp_xdr.c (XDRMAXNAME): Define.
52827         (XDRMAXRECORD): Define.
52828         (xdr_domainname): Use XDRMAXNAME.
52829         (xdr_mapname): Likewise.
52830         (xdr_peername): Likewise.
52831         (xdr_keydat): Use XDRMAXRECORD.
52832         (xdr_valdat): Likewise.
52833
52834 2013-05-30  Jeff Law  <law@redhat.com>
52835
52836         [BZ #14256]
52837         * manual/errno.texi (ESTALE): Update to account for more than
52838         just NFS file systems.
52839         * sysdeps/gnu/errlist.c: Regenerated.
52840
52841 2013-05-29  Siddhesh Poyarekar  <siddhesh@redhat.com>
52842
52843         [BZ #15465]
52844         * elf/Makefile (tests): Add tst-null-argv.
52845         (modules-names):  Add tst-null-argv-lib.
52846         ($(objpfx)tst-null-argv): Depend on tst-null-argv-lib.so.
52847         (tst-null-argv-ENV): Set environment for tst-null-argv.
52848         * sysdeps/generic/ldsodefs.h (DSO_FILENAME): New macro.
52849         (RTLD_PROGNAME): New macro.
52850         * elf/tst-null-argv.c: New test case.
52851         * elf/tst-null-argv-lib.c: Library for test case.
52852         * elf/dl-conflict.c (_dl_resolve_conflicts): Use DSO_FILENAME.
52853         * elf/dl-deps.c (_dl_map_object_deps): Likewise.
52854         * elf/dl-error.c (_dl_signal_error): Use RTLD_PROGNAME.
52855         * elf/dl-fini.c (_dl_fini): Use DSO_FILENAME.
52856         * elf/dl-init.c (call_init): Likewise.
52857         (_dl_init): Likewise.
52858         * elf/dl-load.c (print_search_path): Likewise.
52859         (_dl_map_object): Likewise.
52860         * elf/dl-lookup.c (do_lookup_x): Likewise.
52861         (add_dependency): Likewise.
52862         (_dl_lookup_symbol_x): Likewise.
52863         (_dl_debug_bindings): Likewise.
52864         * elf/dl-open.c (_dl_show_scope): Likewise.
52865         * elf/dl-reloc.c (_dl_relocate_object): Likewise.
52866         * elf/dl-version.c (match_symbol): Likewise.
52867         (_dl_check_map_versions): Likewise.
52868         * elf/rtld.c (dl_main): Likewise.
52869         (print_unresolved): Use RTLD_PROGNAME.
52870         (print_missing_version): Likewise.
52871         * sysdeps/i386/dl-machine.h (elf_machine_rel): Likewise.
52872         (elf_machine_rela): Likewise.
52873         * sysdeps/powerpc/powerpc32/dl-machine.c
52874         (__process_machine_rela): Likewise.
52875         * sysdeps/powerpc/powerpc64/dl-machine.h (elf_machine_rela):
52876         Likewise.
52877         * sysdeps/s390/s390-32/dl-machine.h (elf_machine_rela):
52878         Likewise.
52879         * sysdeps/s390/s390-64/dl-machine.h (elf_machine_rela):
52880         Likewise.
52881         * sysdeps/sh/dl-machine.h (elf_machine_rela): Likewise.
52882         * sysdeps/sparc/sparc32/dl-machine.h (elf_machine_rela):
52883         Likewise.
52884         * sysdeps/sparc/sparc64/dl-machine.h (elf_machine_rela):
52885         Likewise.
52886         * sysdeps/x86_64/dl-machine.h (elf_machine_rela): Likewise.
52887
52888 2013-05-28  Carlos O'Donell  <carlos@redhat.com>
52889
52890         * po/be.po: Add descriptive title.
52891         * po/zh_CN.po: Likewise.
52892         * po/header.pot: Likewise.
52893
52894 2013-05-28  Mike Frysinger  <vapier@gentoo.org>
52895
52896         * locale/programs/locarchive.c (create_archive): Inlucde fname in
52897         error message.
52898         (enlarge_archive): Likewise.
52899
52900 2013-05-28  Ben North  <ben@redfrontdoor.org>
52901
52902         * manual/arith.texi (frexp): It is the magnitude of the return
52903         value which lies in [0.5, 1), not the return value itself.
52904
52905 2013-05-28  Adhemerval Zanella  <azanella@linux.vnet.ibm.com>
52906
52907         * sysdeps/powerpc/fpu/libm-test-ulps: Update.
52908
52909 2013-05-26  Thomas Schwinge  <thomas@codesourcery.com>
52910
52911         * stdio-common/bug26.c (main): Correct fscanf template.
52912
52913         * sysdeps/mach/hurd/dl-sysdep.c (_dl_sysdep_start:go): Don't
52914         declare _dl_skip_args.
52915
52916         * sysdeps/mach/hurd/i386/init-first.c (_dl_non_dynamic_init):
52917         Don't declare.
52918
52919         * manual/platform.texi: Add missing @end deftypefun.
52920
52921 2013-05-24  Joseph Myers  <joseph@codesourcery.com>
52922
52923         [BZ #15529]
52924         * sysdeps/ieee754/ldbl-96/e_hypotl.c (__ieee754_hypotl): Set high
52925         bit of mantissa of 2^16382.
52926         * math/libm-test.inc (hypot_test_data): Add more tests.
52927
52928         * math/libm-test.inc: Add drem and pow10 to list of tested
52929         functions.
52930         (pow10_test): New function.
52931         (drem_test): Likewise.
52932         (drem_test_tonearest): Likewise.
52933         (drem_test_towardzero): Likewise.
52934         (drem_test_downward): Likewise.
52935         (drem_test_upward): Likewise.
52936         (main): Call the new functions.
52937
52938         * math/libm-test.inc (finite_test_data): Remove.
52939         (finite_test): Run tests from isfinite_test_data.
52940         (gamma_test_data): Remove.
52941         (gamma_test): Run tests from lgamma_test_data.
52942         * sysdeps/i386/fpu/libm-test-ulps: Update.
52943         * sysdeps/x86_64/fpu/libm-test-ulps: Likewise.
52944
52945 2013-05-24  Adhemerval Zanella  <azanella@linux.vnet.ibm.com>
52946
52947         * manual/platform.texi: Add PowerPC PPR function set documentation.
52948         * sysdeps/powerpc/sys/platform/ppc.h: Add PowerPC PPR set function
52949         implementation.
52950
52951 2013-05-24  Carlos O'Donell  <carlos@redhat.com>
52952
52953         * math/libm-test.inc (MAX_EXP): Define.
52954         (ULPDIFF): Define.
52955         (ulp): New function.
52956         (check_float_internal): Use ULPDIFF.
52957         (cpow_test): Disable failing test.
52958         (check_ulp): Test ulp() implemetnation.
52959         (main): Call check_ulp before starting tests.
52960
52961 2013-05-24  Joseph Myers  <joseph@codesourcery.com>
52962
52963         * math/gen-libm-test.pl (generate_testfile): Do not handle
52964         START_DATA and END_DATA.
52965         * math/libm-test.inc (acos_test_data): Do not use START_DATA and
52966         END_DATA.
52967         (acos_tonearest_test_data): Likewise.
52968         (acos_towardzero_test_data): Likewise.
52969         (acos_downward_test_data): Likewise.
52970         (acos_upward_test_data): Likewise.
52971         (acosh_test_data): Likewise.
52972         (asin_test_data): Likewise.
52973         (asin_tonearest_test_data): Likewise.
52974         (asin_towardzero_test_data): Likewise.
52975         (asin_downward_test_data): Likewise.
52976         (asin_upward_test_data): Likewise.
52977         (asinh_test_data): Likewise.
52978         (atan_test_data): Likewise.
52979         (atanh_test_data): Likewise.
52980         (atan2_test_data): Likewise.
52981         (cabs_test_data): Likewise.
52982         (cacos_test_data): Likewise.
52983         (cacosh_test_data): Likewise.
52984         (carg_test_data): Likewise.
52985         (casin_test_data): Likewise.
52986         (casinh_test_data): Likewise.
52987         (catan_test_data): Likewise.
52988         (catanh_test_data): Likewise.
52989         (cbrt_test_data): Likewise.
52990         (ccos_test_data): Likewise.
52991         (ccosh_test_data): Likewise.
52992         (ceil_test_data): Likewise.
52993         (cexp_test_data): Likewise.
52994         (cimag_test_data): Likewise.
52995         (clog_test_data): Likewise.
52996         (clog10_test_data): Likewise.
52997         (conj_test_data): Likewise.
52998         (copysign_test_data): Likewise.
52999         (cos_test_data): Likewise.
53000         (cos_tonearest_test_data): Likewise.
53001         (cos_towardzero_test_data): Likewise.
53002         (cos_downward_test_data): Likewise.
53003         (cos_upward_test_data): Likewise.
53004         (cosh_test_data): Likewise.
53005         (cosh_tonearest_test_data): Likewise.
53006         (cosh_towardzero_test_data): Likewise.
53007         (cosh_downward_test_data): Likewise.
53008         (cosh_upward_test_data): Likewise.
53009         (cpow_test_data): Likewise.
53010         (cproj_test_data): Likewise.
53011         (creal_test_data): Likewise.
53012         (csin_test_data): Likewise.
53013         (csinh_test_data): Likewise.
53014         (csqrt_test_data): Likewise.
53015         (ctan_test_data): Likewise.
53016         (ctan_tonearest_test_data): Likewise.
53017         (ctan_towardzero_test_data): Likewise.
53018         (ctan_downward_test_data): Likewise.
53019         (ctan_upward_test_data): Likewise.
53020         (ctanh_test_data): Likewise.
53021         (ctanh_tonearest_test_data): Likewise.
53022         (ctanh_towardzero_test_data): Likewise.
53023         (ctanh_downward_test_data): Likewise.
53024         (ctanh_upward_test_data): Likewise.
53025         (erf_test_data): Likewise.
53026         (erfc_test_data): Likewise.
53027         (exp_test_data): Likewise.
53028         (exp_tonearest_test_data): Likewise.
53029         (exp_towardzero_test_data): Likewise.
53030         (exp_downward_test_data): Likewise.
53031         (exp_upward_test_data): Likewise.
53032         (exp10_test_data): Likewise.
53033         (exp2_test_data): Likewise.
53034         (expm1_test_data): Likewise.
53035         (fabs_test_data): Likewise.
53036         (fdim_test_data): Likewise.
53037         (finite_test_data): Likewise.
53038         (floor_test_data): Likewise.
53039         (fma_test_data): Likewise.
53040         (fma_towardzero_test_data): Likewise.
53041         (fma_downward_test_data): Likewise.
53042         (fma_upward_test_data): Likewise.
53043         (fmax_test_data): Likewise.
53044         (fmin_test_data): Likewise.
53045         (fmod_test_data): Likewise.
53046         (fpclassify_test_data): Likewise.
53047         (frexp_test_data): Likewise.
53048         (gamma_test_data): Likewise.
53049         (hypot_test_data): Likewise.
53050         (ilogb_test_data): Likewise.
53051         (isfinite_test_data): Likewise.
53052         (isgreater_test_data): Likewise.
53053         (isgreaterequal_test_data): Likewise.
53054         (isinf_test_data): Likewise.
53055         (isless_test_data): Likewise.
53056         (islessequal_test_data): Likewise.
53057         (islessgreater_test_data): Likewise.
53058         (isnan_test_data): Likewise.
53059         (isnormal_test_data): Likewise.
53060         (issignaling_test_data): Likewise.
53061         (isunordered_test_data): Likewise.
53062         (j0_test_data): Likewise.
53063         (j1_test_data): Likewise.
53064         (jn_test_data): Likewise.
53065         (ldexp_test_data): Likewise.
53066         (lgamma_test_data): Likewise.
53067         (lrint_test_data): Likewise.
53068         (lrint_tonearest_test_data): Likewise.
53069         (lrint_towardzero_test_data): Likewise.
53070         (lrint_downward_test_data): Likewise.
53071         (lrint_upward_test_data): Likewise.
53072         (llrint_test_data): Likewise.
53073         (llrint_tonearest_test_data): Likewise.
53074         (llrint_towardzero_test_data): Likewise.
53075         (llrint_downward_test_data): Likewise.
53076         (llrint_upward_test_data): Likewise.
53077         (log_test_data): Likewise.
53078         (log10_test_data): Likewise.
53079         (log1p_test_data): Likewise.
53080         (log2_test_data): Likewise.
53081         (logb_test_data): Likewise.
53082         (logb_downward_test_data): Likewise.
53083         (lround_test_data): Likewise.
53084         (llround_test_data): Likewise.
53085         (modf_test_data): Likewise.
53086         (nearbyint_test_data): Likewise.
53087         (nextafter_test_data): Likewise.
53088         (nexttoward_test_data): Likewise.
53089         (pow_test_data): Likewise.
53090         (pow_tonearest_test_data): Likewise.
53091         (pow_towardzero_test_data): Likewise.
53092         (pow_downward_test_data): Likewise.
53093         (pow_upward_test_data): Likewise.
53094         (remainder_test_data): Likewise.
53095         (remainder_tonearest_test_data): Likewise.
53096         (remainder_towardzero_test_data): Likewise.
53097         (remainder_downward_test_data): Likewise.
53098         (remainder_upward_test_data): Likewise.
53099         (remquo_test_data): Likewise.
53100         (rint_test_data): Likewise.
53101         (rint_tonearest_test_data): Likewise.
53102         (rint_towardzero_test_data): Likewise.
53103         (rint_downward_test_data): Likewise.
53104         (rint_upward_test_data): Likewise.
53105         (round_test_data): Likewise.
53106         (scalb_test_data): Likewise.
53107         (scalbn_test_data): Likewise.
53108         (scalbln_test_data): Likewise.
53109         (signbit_test_data): Likewise.
53110         (sin_test_data): Likewise.
53111         (sin_tonearest_test_data): Likewise.
53112         (sin_towardzero_test_data): Likewise.
53113         (sin_downward_test_data): Likewise.
53114         (sin_upward_test_data): Likewise.
53115         (sincos_test_data): Likewise.
53116         (sinh_test_data): Likewise.
53117         (sinh_tonearest_test_data): Likewise.
53118         (sinh_towardzero_test_data): Likewise.
53119         (sinh_downward_test_data): Likewise.
53120         (sinh_upward_test_data): Likewise.
53121         (sqrt_test_data): Likewise.
53122         (tan_test_data): Likewise.
53123         (tan_tonearest_test_data): Likewise.
53124         (tan_towardzero_test_data): Likewise.
53125         (tan_downward_test_data): Likewise.
53126         (tan_upward_test_data): Likewise.
53127         (tanh_test_data): Likewise.
53128         (tgamma_test_data): Likewise.
53129         (trunc_test_data): Likewise.
53130         (y0_test_data): Likewise.
53131         (y1_test_data): Likewise.
53132         (yn_test_data): Likewise.
53133         (significand_test_data): Likewise.
53134
53135         * math/gen-libm-test.pl (@functions): Remove variable.
53136         (generate_testfile): Don't handle START and END lines.
53137         * math/libm-test.inc (START): New macro.
53138         (END): Likewise.
53139         (END_COMPLEX): Likewise.
53140         (acos_test): Use END macro without arguments.
53141         (acos_test_tonearest): Likewise.
53142         (acos_test_towardzero): Likewise.
53143         (acos_test_downward): Likewise.
53144         (acos_test_upward): Likewise.
53145         (acosh_test): Likewise.
53146         (asin_test): Likewise.
53147         (asin_test_tonearest): Likewise.
53148         (asin_test_towardzero): Likewise.
53149         (asin_test_downward): Likewise.
53150         (asin_test_upward): Likewise.
53151         (asinh_test): Likewise.
53152         (atan_test): Likewise.
53153         (atanh_test): Likewise.
53154         (atan2_test): Likewise.
53155         (cabs_test): Likewise.
53156         (cacos_test): Use END_COMPLEX macro without arguments.
53157         (cacosh_test): Likewise.
53158         (carg_test): Use END macro without arguments.
53159         (casin_test): Use END_COMPLEX macro without arguments.
53160         (casinh_test): Likewise.
53161         (catan_test): Likewise.
53162         (catanh_test): Likewise.
53163         (cbrt_test): Use END macro without arguments.
53164         (ccos_test): Use END_COMPLEX macro without arguments.
53165         (ccosh_test): Likewise.
53166         (ceil_test): Use END macro without arguments.
53167         (cexp_test): Use END_COMPLEX macro without arguments.
53168         (cimag_test): Use END macro without arguments.
53169         (clog_test): Use END_COMPLEX macro without arguments.
53170         (clog10_test): Likewise.
53171         (conj_test): Likewise.
53172         (copysign_test): Use END macro without arguments.
53173         (cos_test): Likewise.
53174         (cos_test_tonearest): Likewise.
53175         (cos_test_towardzero): Likewise.
53176         (cos_test_downward): Likewise.
53177         (cos_test_upward): Likewise.
53178         (cosh_test): Likewise.
53179         (cosh_test_tonearest): Likewise.
53180         (cosh_test_towardzero): Likewise.
53181         (cosh_test_downward): Likewise.
53182         (cosh_test_upward): Likewise.
53183         (cpow_test): Use END_COMPLEX macro without arguments.
53184         (cproj_test): Likewise.
53185         (creal_test): Use END macro without arguments.
53186         (csin_test): Use END_COMPLEX macro without arguments.
53187         (csinh_test): Likewise.
53188         (csqrt_test): Likewise.
53189         (ctan_test): Likewise.
53190         (ctan_test_tonearest): Likewise.
53191         (ctan_test_towardzero): Likewise.
53192         (ctan_test_downward): Likewise.
53193         (ctan_test_upward): Likewise.
53194         (ctanh_test): Likewise.
53195         (ctanh_test_tonearest): Likewise.
53196         (ctanh_test_towardzero): Likewise.
53197         (ctanh_test_downward): Likewise.
53198         (ctanh_test_upward): Likewise.
53199         (erf_test): Use END macro without arguments.
53200         (erfc_test): Likewise.
53201         (exp_test): Likewise.
53202         (exp_test_tonearest): Likewise.
53203         (exp_test_towardzero): Likewise.
53204         (exp_test_downward): Likewise.
53205         (exp_test_upward): Likewise.
53206         (exp10_test): Likewise.
53207         (exp2_test): Likewise.
53208         (expm1_test): Likewise.
53209         (fabs_test): Likewise.
53210         (fdim_test): Likewise.
53211         (finite_test): Likewise.
53212         (floor_test): Likewise.
53213         (fma_test): Likewise.
53214         (fma_test_towardzero): Likewise.
53215         (fma_test_downward): Likewise.
53216         (fma_test_upward): Likewise.
53217         (fmax_test): Likewise.
53218         (fmin_test): Likewise.
53219         (fmod_test): Likewise.
53220         (fpclassify_test): Likewise.
53221         (frexp_test): Likewise.
53222         (gamma_test): Likewise.
53223         (hypot_test): Likewise.
53224         (ilogb_test): Likewise.
53225         (isfinite_test): Likewise.
53226         (isgreater_test): Likewise.
53227         (isgreaterequal_test): Likewise.
53228         (isinf_test): Likewise.
53229         (isless_test): Likewise.
53230         (islessequal_test): Likewise.
53231         (islessgreater_test): Likewise.
53232         (isnan_test): Likewise.
53233         (isnormal_test): Likewise.
53234         (issignaling_test): Likewise.
53235         (isunordered_test): Likewise.
53236         (j0_test): Likewise.
53237         (j1_test): Likewise.
53238         (jn_test): Likewise.
53239         (ldexp_test): Likewise.
53240         (lgamma_test): Likewise.
53241         (lrint_test): Likewise.
53242         (lrint_test_tonearest): Likewise.
53243         (lrint_test_towardzero): Likewise.
53244         (lrint_test_downward): Likewise.
53245         (lrint_test_upward): Likewise.
53246         (llrint_test): Likewise.
53247         (llrint_test_tonearest): Likewise.
53248         (llrint_test_towardzero): Likewise.
53249         (llrint_test_downward): Likewise.
53250         (llrint_test_upward): Likewise.
53251         (log_test): Likewise.
53252         (log10_test): Likewise.
53253         (log1p_test): Likewise.
53254         (log2_test): Likewise.
53255         (logb_test): Likewise.
53256         (logb_test_downward): Likewise.
53257         (lround_test): Likewise.
53258         (llround_test): Likewise.
53259         (modf_test): Likewise.
53260         (nearbyint_test): Likewise.
53261         (nextafter_test): Likewise.
53262         (nexttoward_test): Likewise.
53263         (pow_test): Likewise.
53264         (pow_test_tonearest): Likewise.
53265         (pow_test_towardzero): Likewise.
53266         (pow_test_downward): Likewise.
53267         (pow_test_upward): Likewise.
53268         (remainder_test): Likewise.
53269         (remainder_test_tonearest): Likewise.
53270         (remainder_test_towardzero): Likewise.
53271         (remainder_test_downward): Likewise.
53272         (remainder_test_upward): Likewise.
53273         (remquo_test): Likewise.
53274         (rint_test): Likewise.
53275         (rint_test_tonearest): Likewise.
53276         (rint_test_towardzero): Likewise.
53277         (rint_test_downward): Likewise.
53278         (rint_test_upward): Likewise.
53279         (round_test): Likewise.
53280         (scalb_test): Likewise.
53281         (scalbn_test): Likewise.
53282         (scalbln_test): Likewise.
53283         (signbit_test): Likewise.
53284         (sin_test): Likewise.
53285         (sin_test_tonearest): Likewise.
53286         (sin_test_towardzero): Likewise.
53287         (sin_test_downward): Likewise.
53288         (sin_test_upward): Likewise.
53289         (sincos_test): Likewise.
53290         (sinh_test): Likewise.
53291         (sinh_test_tonearest): Likewise.
53292         (sinh_test_towardzero): Likewise.
53293         (sinh_test_downward): Likewise.
53294         (sinh_test_upward): Likewise.
53295         (sqrt_test): Likewise.
53296         (tan_test): Likewise.
53297         (tan_test_tonearest): Likewise.
53298         (tan_test_towardzero): Likewise.
53299         (tan_test_downward): Likewise.
53300         (tan_test_upward): Likewise.
53301         (tanh_test): Likewise.
53302         (tgamma_test): Likewise.
53303         (trunc_test): Likewise.
53304         (y0_test): Likewise.
53305         (y1_test): Likewise.
53306         (yn_test): Likewise.
53307         (significand_test): Likewise.
53308
53309 2013-05-24  Ondřej Bílka  <neleai@seznam.cz>
53310
53311         [BZ #15381]
53312         * libio/genops.c (_IO_no_init): Initialize wide struct info.
53313
53314 2013-05-23  Edjunior Machado  <emachado@linux.vnet.ibm.com>
53315
53316         [BZ #14894]
53317         * sysdeps/powerpc/sys/platform/ppc.h: Add __ppc_yield,
53318         __ppc_mdoio and __ppc_mdoom.
53319         * manual/platform.texi: Document new functions __ppc_yield,
53320         __ppc_mdoio and __ppc_mdoom.
53321
53322 2013-05-22  Carlos O'Donell  <carlos@redhat.com>
53323
53324         * elf/ldconfig.c (is_hwcap_platform): Make comments full setences.
53325         (main): Mention "tls" pseudo-hwcap is legacy.
53326         * elf/dl-hwcaps.c (_dl_important_hwcaps): Correct rounding comment.
53327
53328 2013-05-22  Joseph Myers  <joseph@codesourcery.com>
53329
53330         * math/gen-libm-test.pl (parse_args): Output only string of
53331         arguments as text for test name, not full call or descriptions of
53332         tests for extra outputs.
53333         (generate_testfile): Do not pass function name to parse_args.
53334         Generate this_func variable from START.
53335         * math/libm-test.inc (struct test_f_f_data): Rename test_name
53336         field to arg_str.
53337         (struct test_ff_f_data): Likewise.
53338         (test_ff_f_data_nexttoward): Likewise.
53339         (struct test_fi_f_data): Likewise.
53340         (struct test_fl_f_data): Likewise.
53341         (struct test_if_f_data): Likewise.
53342         (struct test_fff_f_data): Likewise.
53343         (struct test_c_f_data): Likewise.
53344         (struct test_f_f1_data): Likewise.  Remove field extra_name.
53345         (struct test_fF_f1_data): Likewise.
53346         (struct test_ffI_f1_data): Likewise.
53347         (struct test_c_c_data): Rename test_name field to arg_str.
53348         (struct test_cc_c_data): Likewise.
53349         (struct test_f_i_data): Likewise.
53350         (struct test_ff_i_data): Likewise.
53351         (struct test_f_l_data): Likewise.
53352         (struct test_f_L_data): Likewise.
53353         (struct test_fFF_11_data): Likewise.  Remove fields extra1_name
53354         and extra2_name.
53355         (COMMON_TEST_SETUP): New macro.
53356         (EXTRA_OUTPUT_TEST_SETUP): Likewise.
53357         (COMMON_TEST_CLEANUP): Likewise.
53358         (EXTRA_OUTPUT_TEST_CLEANUP): Likewise.
53359         (RUN_TEST_f_f): Take argument string.  Call new setup and cleanup
53360         macros.
53361         (RUN_TEST_LOOP_f_f): Update call to RUN_TEST_f_f.
53362         (RUN_TEST_2_f): Take argument string.  Call new setup and cleanup
53363         macros.
53364         (RUN_TEST_LOOP_2_f): Update call to RUN_TEST_2_f.
53365         (RUN_TEST_fff_f): Take argument string.  Call new setup and
53366         cleanup macros.
53367         (RUN_TEST_LOOP_fff_f): Update call to RUN_TEST_fff_f.
53368         (RUN_TEST_c_f): Take argument string.  Call new setup and cleanup
53369         macros.
53370         (RUN_TEST_LOOP_c_f): Update call to RUN_TEST_c_f.
53371         (RUN_TEST_f_f1): Take argument string.  Call new setup and cleanup
53372         macros.
53373         (RUN_TEST_LOOP_f_f1): Update call to RUN_TEST_f_f1.
53374         (RUN_TEST_fF_f1): Take argument string.  Call new setup and
53375         cleanup macros.
53376         (RUN_TEST_LOOP_fF_f1): Update call to RUN_TEST_fF_f1.
53377         (RUN_TEST_fI_f1): Take argument string.  Call new setup and
53378         cleanup macros.
53379         (RUN_TEST_LOOP_fI_f1): Update call to RUN_TEST_fI_f1.
53380         (RUN_TEST_ffI_f1): Take argument string.  Call new setup and
53381         cleanup macros.
53382         (RUN_TEST_LOOP_ffI_f1): Update call to RUN_TEST_ffI_f1.
53383         (RUN_TEST_c_c): Take argument string.  Call new setup and cleanup
53384         macros.
53385         (RUN_TEST_LOOP_c_c): Update call to RUN_TEST_c_c.
53386         (RUN_TEST_cc_c): Take argument string.  Call new setup and cleanup
53387         macros.
53388         (RUN_TEST_LOOP_cc_c): Update call to RUN_TEST_cc_c.
53389         (RUN_TEST_f_i): Take argument string.  Call new setup and cleanup
53390         macros.
53391         (RUN_TEST_LOOP_f_i): Update call to RUN_TEST_f_i.
53392         (RUN_TEST_f_i_tg): Take argument string.  Call new setup and
53393         cleanup macros.
53394         (RUN_TEST_LOOP_f_i_tg): Update call to RUN_TEST_f_i_tg.
53395         (RUN_TEST_ff_i_tg): Take argument string.  Call new setup and
53396         cleanup macros.
53397         (RUN_TEST_LOOP_ff_i_tg): Update call to RUN_TEST_ff_i_tg.
53398         (RUN_TEST_f_b): Take argument string.  Call new setup and cleanup
53399         macros.
53400         (RUN_TEST_LOOP_f_b): Update call to RUN_TEST_f_b.
53401         (RUN_TEST_f_b_tg): Take argument string.  Call new setup and
53402         cleanup macros.
53403         (RUN_TEST_LOOP_f_b_tg): Update call to RUN_TEST_f_b_tg.
53404         (RUN_TEST_f_l): Take argument string.  Call new setup and cleanup
53405         macros.
53406         (RUN_TEST_LOOP_f_l): Update call to RUN_TEST_f_l.
53407         (RUN_TEST_f_L): Take argument string.  Call new setup and cleanup
53408         macros.
53409         (RUN_TEST_LOOP_f_L): Update call to RUN_TEST_f_L.
53410         (RUN_TEST_fFF_11): Take argument string.  Call new setup and
53411         cleanup macros.
53412         (RUN_TEST_LOOP_fFF_11): Update call to RUN_TEST_fFF_11.
53413
53414 2013-05-22  Edjunior Barbosa Machado  <emachado@linux.vnet.ibm.com>
53415
53416         * sysdeps/unix/sysv/linux/bits/siginfo.h (siginfo_t): Add si_addr_lsb
53417         to _sifields.sigfault.
53418         (si_addr_lsb): Define new macro.
53419         (BUS_MCEERR_AR, BUS_MCEERR_AO): Define new values.
53420         * sysdeps/unix/sysv/linux/sparc/bits/siginfo.h: Likewise.
53421         * sysdeps/unix/sysv/linux/x86/bits/siginfo.h: Likewise.
53422
53423 2013-05-03  Carlos O'Donell  <carlos at redhat.com>
53424
53425         [BZ #15441]
53426         * intl/dcigettext.c (DCIGETTEXT): Skip translating if _nl_find_msg
53427         returns -1.
53428         (_nl_find_msg): Return -1 if recursive call returned -1. If newmem is
53429         null return -1.
53430         * intl/loadmsgcat.c (_nl_load_domain): If _nl_find_msg returns -1 abort
53431         loading the domain.
53432
53433 2013-05-22  Joseph Myers  <joseph@codesourcery.com>
53434
53435         * math/gen-libm-test.pl (parse_args): Do not include expected
53436         result in test name.
53437         * sysdeps/i386/fpu/libm-test-ulps: Update test names.
53438         * sysdeps/powerpc/fpu/libm-test-ulps: Likewise.
53439         * sysdeps/s390/fpu/libm-test-ulps: Likewise.
53440         * sysdeps/sh/sh4/fpu/libm-test-ulps: Likewise.
53441         * sysdeps/sparc/fpu/libm-test-ulps: Likewise.
53442         * sysdeps/x86_64/fpu/libm-test-ulps: Likewise.
53443
53444 2013-05-22  Siddhesh Poyarekar  <siddhesh@redhat.com>
53445
53446         * benchtests/Makefile: Sort function entries.
53447
53448         * benchtests/Makefile (bench): Add asin, acos, sinh, cosh,
53449         tanh, asinh, acosh, atanh.
53450         * benchtests/acos-inputs: New file.
53451         * benchtests/acosh-inputs: New file.
53452         * benchtests/asin-inputs: New file.
53453         * benchtests/asinh-inputs: New file.
53454         * benchtests/atanh-inputs: New file.
53455         * benchtests/cosh-inputs: New file.
53456         * benchtests/log-inputs: New file.
53457         * benchtests/sinh-inputs: New file.
53458         * benchtests/tanh-inputs: New file.
53459
53460 2013-05-21  Dmitry V. Levin  <ldv@altlinux.org>
53461
53462         [BZ #15339]
53463         * posix/tst-getaddrinfo4.c: New test.
53464         * posix/Makefile (tests): Add it.
53465
53466 2013-05-21  Siddhesh Poyarekar  <siddhesh@redhat.com>
53467
53468         [BZ #15339]
53469         * nss/getXXbyYY_r.c (REENTRANT_NAME): Set NETDB_INTERNAL only
53470         when no services were used.
53471         * sysdeps/posix/getaddrinfo.c (gaih_inet): Set h_errno.
53472         Return EAI_SYSTEM if h_errno is NETDB_INTERNAL.
53473
53474 2013-05-21  Andreas Schwab  <schwab@suse.de>
53475
53476         [BZ #15014]
53477         * nss/getXXbyYY_r.c (INTERNAL (REENTRANT_NAME))
53478         [HANDLE_DIGITS_DOTS]: Set any_service when digits-dots parsing was
53479         successful.
53480         * nss/digits_dots.c (__nss_hostname_digits_dots): Remove
53481         redundant variable declarations and reallocation of buffer when
53482         parsing as IPv6 address.  Always set NSS status when called from
53483         reentrant functions.  Use NETDB_INTERNAL instead of TRY_AGAIN when
53484         buffer too small.  Correct computation of needed size.
53485         * nss/Makefile (tests): Add test-digits-dots.
53486         * nss/test-digits-dots.c: New test.
53487
53488 2013-05-21  Siddhesh Poyarekar  <siddhesh@redhat.com>
53489
53490         * benchtests/Makefile: Remove instructions for adding
53491         benchmark tests.
53492         * benchtests/README: New file to explain how to execute and
53493         enhance the benchmark tests.
53494
53495 2013-05-21  Andreas Schwab  <schwab@suse.de>
53496
53497         [BZ #15493]
53498         * setjmp/Makefile (tests): Add tst-sigsetjmp.
53499         * setjmp/tst-sigsetjmp.c: New test.
53500
53501 2013-05-20  Ondřej Bílka  <neleai@seznam.cz>
53502
53503         * sysdeps/x86_64/memset.S (memset): New implementation.
53504         (__bzero): Likewise.
53505         (__memset_tail): New function.
53506
53507 2013-05-20  Ondřej Bílka  <neleai@seznam.cz>
53508
53509         * sysdeps/x86_64/multiarch/memcpy-sse2-unaligned.S: New file.
53510         * sysdeps/x86_64/multiarch/memcpy.S (__new_memcpy): Add
53511         __memcpy_sse2_unaligned ifunc selection.
53512         * sysdeps/x86_64/multiarch/Makefile (sysdep_routines):
53513         Add memcpy-sse2-unaligned.S.
53514         * sysdeps/x86_64/multiarch/ifunc-impl-list.c (__libc_ifunc_impl_list):
53515         Add: __memcpy_sse2_unaligned.
53516
53517 2013-05-19  Joseph Myers  <joseph@codesourcery.com>
53518
53519         [BZ #15490]
53520         * sysdeps/ieee754/dbl-64/s_nearbyint.c (__nearbyint): Use
53521         math_force_eval before restoring floating-point envrionment.
53522         * sysdeps/ieee754/flt-32/s_nearbyintf.c (__nearbyintf): Likewise.
53523         * sysdeps/ieee754/ldbl-128/s_nearbyintl.c (__nearbyintl):
53524         Likewise.
53525         * sysdeps/ieee754/ldbl-128ibm/s_nearbyintl.c: Include
53526         <math_private.h>.
53527         (__nearbyintl): Use math_force_eval before restoring
53528         floating-point environment.
53529         * sysdeps/ieee754/ldbl-96/s_nearbyintl.c (__nearbyintl): Likewise.
53530
53531         * math/gen-libm-test.pl (special_functions): Remove.
53532         (parse_args): Don't handle TEST_extra.  Handle functions with no
53533         return value.
53534         * math/libm-test.inc (struct test_sincos_data): Replace with
53535         struct test_fFF_11_data.
53536         (RUN_TEST_sincos): Replace with RUN_TEST_fFF_11.
53537         (RUN_TEST_LOOP_sincos): Replace with RUN_TEST_LOOP_fFF_11.
53538         (sincos_test_data): Change element type to struct
53539         test_fFF_11_data.  Use TEST_fFF_11 instead of TEST_extra.
53540         (sincos_test): Use RUN_TEST_LOOP_fFF_11 instead of
53541         RUN_TEST_LOOP_sincos.
53542         * math/README.libm-test: Don't mention special handling of
53543         individual functions.
53544         * sysdeps/i386/fpu/libm-test-ulps: Update names of sincos tests.
53545         * sysdeps/powerpc/fpu/libm-test-ulps: Likewise.
53546         * sysdeps/s390/fpu/libm-test-ulps: Likewise.
53547         * sysdeps/sh/sh4/fpu/libm-test-ulps: Likewise.
53548         * sysdeps/sparc/fpu/libm-test-ulps: Likewise.
53549         * sysdeps/x86_64/fpu/libm-test-ulps: Likewise.
53550
53551         * math/gen-libm-test.pl (get_variable): Remove function.
53552         (parse_args): Don't show pointer parameters to call in test
53553         names.  Use "extra output N" in test names for extra outputs
53554         rather than naming variables.
53555
53556 2013-05-18  Joseph Myers  <joseph@codesourcery.com>
53557
53558         [BZ #15488]
53559         * math/complex.h [__USE_ISOC11 && __GNUC_PREREQ (4, 7) &&
53560         __NO_LONG_DOUBLE_MATH] (CMPLXL): Define macro.
53561         * math/tst-CMPLX.c (do_test) [NO_LONG_DOUBLE]: Do not disable long
53562         double tests.
53563         * make/tst-CMPLX2.c [NO_LONG_DOUBLE] (check_long_double): Do not
53564         disable.
53565         (do_test) [NO_LONG_DOUBLE]: Do not disable call to
53566         check_long_double.
53567
53568         * math/gen-libm-test.pl (@tests): Remove variable.
53569         ($count): Likewise.
53570         (new_test): Remove function.
53571         (show_exceptions): New function.
53572         (special_functions): Use show_exceptions instead of new_test.
53573         (parse_args): Likewise.
53574         (generate_testfile): Pass only function name in generated call to
53575         print_max_error or print_complex_max_error.
53576         (get_ulps): Do not handle complex tests specially.
53577         (output_test): Rename to ...
53578         (get_all_ulps_for_test): ... this.  Return a string rather than
53579         printing to a file.  Require ulps to be present.
53580         (output_ulps): Generate arrays rather than #defines.
53581         * math/libm-test.inc: Move down #include of "libm-test-ulps.h".
53582         (struct ulp_data): New type.
53583         (BUILD_COMPLEX_ULP): Remove macro.
53584         (compare_ulp_data): New function.
53585         (find_ulps): Likewise.
53586         (find_test_ulps): Likewise.
53587         (find_function_ulps): Likewise.
53588         (find_complex_function_ulps): Likewise.
53589         (print_max_error): Determine allowed ulps using
53590         find_function_ulps.
53591         (print_complex_max_error): Determine allowed ulps using
53592         find_complex_function_ulps.
53593         (check_float_internal): Determine max ulps using find_test_ulps.
53594         (check_float): Do not take max_ulp parameter.  Update call to
53595         check_float_internal.
53596         (check_complex): Likewise.
53597         (check_int): Do not take max_ulp parameter.
53598         (check_long): Likewise.
53599         (check_bool): Likewise.
53600         (check_longlong): Likewise.
53601         (struct test_f_f_data): Remove max_ulp field.
53602         (struct test_ff_f_data): Likewise.
53603         (struct test_ff_f_data_nexttoward): Likewise.
53604         (struct test_fi_f_data): Likewise.
53605         (struct test_fl_f_data): Likewise.
53606         (struct test_if_f_data): Likewise.
53607         (struct test_fff_f_data): Likewise.
53608         (struct test_c_f_data): Likewise.
53609         (struct test_f_f1_data): Remove max_ulp and extra_ulp fields.
53610         (struct test_fF_f1_data): Likewise.
53611         (struct test_ffI_f1_data): Likewise.
53612         (struct test_c_c_data): Remove max_ulp field.
53613         (struct test_cc_c_data): Likewise.
53614         (struct test_f_i_data): Likewise.
53615         (struct test_ff_i_data): Likewise.
53616         (struct test_f_l_data): Likewise.
53617         (struct test_f_L_data): Likewise.
53618         (struct test_sincos_data): Likewise.
53619         (RUN_TEST_f_f): Do not handle ulps.
53620         (RUN_TEST_LOOP_f_f): Likewise.
53621         (RUN_TEST_2_f): Likewise.
53622         (RUN_TEST_LOOP_2_f): Likewise.
53623         (RUN_TEST_fff_f): Likewise.
53624         (RUN_TEST_LOOP_fff_f): Likewise.
53625         (RUN_TEST_c_f): Likewise.
53626         (RUN_TEST_LOOP_c_f): Likewise.
53627         (RUN_TEST_f_f1): Likewise.
53628         (RUN_TEST_LOOP_f_f1): Likewise.
53629         (RUN_TEST_fF_f1): Likewise.
53630         (RUN_TEST_LOOP_fF_f1): Likewise.
53631         (RUN_TEST_fI_f1): Likewise.
53632         (RUN_TEST_LOOP_fI_f1): Likewise.
53633         (RUN_TEST_ffI_f1): Likewise.
53634         (RUN_TEST_LOOP_ffI_f1): Likewise.
53635         (RUN_TEST_c_c): Likewise.
53636         (RUN_TEST_LOOP_c_c): Likewise.
53637         (RUN_TEST_cc_c): Likewise.
53638         (RUN_TEST_LOOP_cc_c): Likewise.
53639         (RUN_TEST_f_i): Likewise.
53640         (RUN_TEST_LOOP_f_i): Likewise.
53641         (RUN_TEST_f_i_tg): Likewise.
53642         (RUN_TEST_LOOP_f_i_tg): Likewise.
53643         (RUN_TEST_ff_i_tg): Likewise.
53644         (RUN_TEST_LOOP_ff_i_tg): Likewise.
53645         (RUN_TEST_f_b): Likewise.
53646         (RUN_TEST_LOOP_f_b): Likewise.
53647         (RUN_TEST_f_b_tg): Likewise.
53648         (RUN_TEST_LOOP_f_b_tg): Likewise.
53649         (RUN_TEST_f_l): Likewise.
53650         (RUN_TEST_LOOP_f_l): Likewise.
53651         (RUN_TEST_f_L): Likewise.
53652         (RUN_TEST_LOOP_f_L): Likewise.
53653         (RUN_TEST_sincos): Likewise.
53654         (RUN_TEST_LOOP_sincos): Likewise.
53655
53656 2013-05-17  Joseph Myers  <joseph@codesourcery.com>
53657
53658         [BZ #15480]
53659         [BZ #15485]
53660         * sysdeps/ieee754/dbl-64/e_remainder.c (__ieee754_remainder): For
53661         main case of finite arguments, set rounding mode to FE_TONEAREST
53662         and discard exceptions.
53663         * math/libm-test.inc (remainder_test_data): Disallow "inexact"
53664         exceptions.
53665         (remainder_tonearest_test_data): New variable.
53666         (remainder_test_tonearest): New function.
53667         (remainder_towardzero_test_data): New variable.
53668         (remainder_test_towardzero): New function.
53669         (remainder_downward_test_data): New variable.
53670         (remainder_test_downward): New function.
53671         (remainder_upward_test_data): New variable.
53672         (remainder_test_upward): New function.
53673         (main): Call the new test functions.
53674
53675         * math/libm-test.inc (struct test_f_f1_data): Remove field
53676         extra_init.
53677         (struct test_fF_f1_data): Likewise.
53678         (struct test_ffI_f1_data): Likewise.
53679         (RUN_TEST_f_f1): Remove argument EXTRA_INIT.  Initialize EXTRA_VAR
53680         based on value of EXTRA_EXPECTED.
53681         (RUN_TEST_LOOP_f_f1): Update call to RUN_TEST_f_f1.
53682         (RUN_TEST_fF_f1): Remove argument EXTRA_INIT.  Initialize
53683         EXTRA_VAR based on value of EXTRA_EXPECTED.
53684         (RUN_TEST_LOOP_fF_f1): Update call to RUN_TEST_fF_f1.
53685         (RUN_TEST_fI_f1): Remove argument EXTRA_INIT.  Initialize
53686         EXTRA_VAR based on value of EXTRA_EXPECTED.
53687         (RUN_TEST_LOOP_fI_f1): Update call to RUN_TEST_fI_f1.
53688         (RUN_TEST_ffI_f1): Remove argument EXTRA_INIT.  Initialize
53689         EXTRA_VAR based on value of EXTRA_EXPECTED.
53690         (RUN_TEST_LOOP_ffI_f1): Update call to RUN_TEST_ffI_f1.
53691         * math/gen-libm-test.pl (parse_args): Don't output initializers
53692         for extra output values.
53693
53694         * math/libm-test.inc (check_int): Expect result to be exactly
53695         equal to expected value and do not handle ulps.
53696         (check_long): Likewise.
53697         (check_longlong): Likewise.
53698
53699         * math/libm-test.inc (ceil_test_data): Test for "inexact"
53700         exceptions.
53701         (cimag_test_data): Likewise.
53702         (conj_test_data): Likewise.
53703         (copysign_test_data): Likewise.
53704         (cproj_test_data): Likewise.
53705         (creal_test_data): Likewise.
53706         (fabs_test_data): Likewise.
53707         (fdim_test_data): Likewise.
53708         (finite_test_data): Likewise.
53709         (floor_test_data): Likewise.
53710         (fmax_test_data): Likewise.
53711         (fmin_test_data): Likewise.
53712         (fmod_test_data): Likewise.
53713         (fpclassify_test_data): Likewise.
53714         (frexp_test_data): Likewise.
53715         (ilogb_test_data): Likewise.
53716         (isfinite_test_data): Likewise.
53717         (isgreater_test_data): Likewise.
53718         (isgreaterequal_test_data): Likewise.
53719         (isinf_test_data): Likewise.
53720         (isless_test_data): Likewise.
53721         (islessequal_test_data): Likewise.
53722         (islessgreater_test_data): Likewise.
53723         (isnan_test_data): Likewise.
53724         (isnormal_test_data): Likewise.
53725         (issignaling_test_data): Likewise.
53726         (isunordered_test_data): Likewise.
53727         (ldexp_test_data): Likewise.
53728         (lrint_test_data): Likewise.
53729         (lrint_test_data) [TEST_FLOAT]: Disable one test.
53730         (lrint_test_data) [!TEST_LDOUBLE]: Likewise.
53731         (lrint_tonearest_test_data): Test for "inexact" exceptions.
53732         (lrint_tonearest_test_data) [TEST_FLOAT]: Disable one test.
53733         (lrint_tonearest_test_data) [!TEST_LDOUBLE]: Likewise.
53734         (lrint_tonearest_test_data) [TEST_LDOUBLE]: Use "L" suffix on that
53735         test input.
53736         (lrint_towardzero_test_data): Test for "inexact" exceptions.
53737         (lrint_towardzero_test_data) [TEST_FLOAT]: Disable one test.
53738         (lrint_towardzero_test_data) [!TEST_LDOUBLE]: Likewise.
53739         (lrint_towardzero_test_data) [TEST_LDOUBLE]: Use "L" suffix on
53740         that test input.
53741         (lrint_downward_test_data): Test for "inexact" exceptions.
53742         (lrint_downward_test_data) [TEST_FLOAT]: Disable one test.
53743         (lrint_downward_test_data) [!TEST_LDOUBLE]: Likewise.
53744         (lrint_downward_test_data) [TEST_LDOUBLE]: Use "L" suffix on that
53745         test input.
53746         (lrint_upward_test_data): Test for "inexact" exceptions.
53747         (lrint_upward_test_data) [TEST_LDOUBLE]: Use "L" suffix on one
53748         test input.
53749         (llrint_test_data): Test for "inexact" exceptions.
53750         (llrint_test_data) [TEST_FLOAT]: Disable one test.
53751         (llrint_tonearest_test_data): Test for "inexact" exceptions.
53752         (llrint_tonearest_test_data) [TEST_FLOAT]: Disable one test.
53753         (llrint_towardzero_test_data): Test for "inexact" exceptions.
53754         (llrint_towardzero_test_data) [TEST_FLOAT]: Disable one test.
53755         (llrint_downward_test_data): Test for "inexact" exceptions.
53756         (llrint_downward_test_data) [TEST_FLOAT]: Disable one test.
53757         (llrint_upward_test_data): Test for "inexact" exceptions.
53758         (logb_test_data): Likewise.
53759         (logb_downward_test_data): Likewise.
53760         (nextafter_test_data): Likewise.
53761         (nexttoward_test_data): Likewise.
53762         (remainder_test_data): Likewise.
53763         (remquo_test_data): Likewise.
53764         (scalbn_test_data): Likewise.
53765         (scalbln_test_data): Likewise.
53766         (signbit_test_data): Likewise.
53767         (sqrt_test_data): Likewise.
53768         (significand_test_data): Likewise.
53769
53770 2013-05-17  Siddhesh Poyarekar  <siddhesh@redhat.com>
53771
53772         [BZ #15424]
53773         * benchtests/bench-modf.c (struct args): Mark arg0 as
53774         volatile.
53775         * scripts/bench.pl: Mark members of struct args as volatile.
53776
53777 2013-05-17  Adhemerval Zanella  <azanella@linux.vnet.ibm.com>
53778
53779         [BZ # 15497]
53780         * sysdeps/powerpc/fpu/e_hypot.c (GET_TWO_FLOAT_WORD): Fix test for
53781         negative infinity on POWER6 or lower.
53782         * sysdeps/powerpc/fpu/e_hypotf.c (GET_TWO_FLOAT_WORD): Likewise.
53783
53784 2013-05-16  Maciej W. Rozycki  <macro@codesourcery.com>
53785
53786         [BZ #15442]
53787         * soft-fp/op-common.h (_FP_FRAC_SNANP): New macro.
53788         (_FP_FRAC_SNANP_SEMIRAW): Likewise.
53789         (_FP_UNPACK_CANONICAL): Use _FP_FRAC_SNANP.
53790         (_FP_CHECK_SIGNAN_SEMIRAW): Use _FP_FRAC_SNANP_SEMIRAW.
53791         (_FP_SETQNAN): New macro.
53792         (_FP_SETQNAN_SEMIRAW): Likewise.
53793         (_FP_PACK_SEMIRAW): Use _FP_SETQNAN.
53794         (_FP_PACK_CANONICAL): Use _FP_SETQNAN.
53795         (_FP_ISSIGNAN): Use _FP_FRAC_SNANP.
53796         (FP_EXTEND): Use _FP_FRAC_SNANP.
53797         (FP_TRUNC): Use _FP_SETQNAN_SEMIRAW.
53798         * soft-fp/testit.c (gen_special_double): Take _FP_QNANNEGATEDP
53799         into account.
53800         * sysdeps/sparc/sparc32/soft-fp/sfp-machine.h (_FP_QNANNEGATEDP):
53801         New macro.
53802         * sysdeps/sparc/sparc64/soft-fp/sfp-machine.h (_FP_QNANNEGATEDP):
53803         Likewise.
53804
53805 2013-05-16  Joseph Myers  <joseph@codesourcery.com>
53806
53807         * math/libm-test.inc (atanh_test_data): Use ERRNO_ERANGE together
53808         with DIVIDE_BY_ZERO_EXCEPTION.
53809         (gamma_test_data): Likewise.
53810         (lgamma_test_data): Likewise.
53811         (log_test_data): Likewise.
53812         (log10_test_data): Likewise.
53813         (log2_test_data): Likewise.
53814         (tgamma_test_data): Likewise.
53815
53816         * math/libm-test.inc (acos_test): Don't test for ENOSYS error.
53817         (acos_test_tonearest): Likewise.
53818         (acos_test_towardzero): Likewise.
53819         (acos_test_downward): Likewise.
53820         (acos_test_upward): Likewise.
53821         (acosh_test): Likewise.
53822         (asin_test): Likewise.
53823         (asin_test_tonearest): Likewise.
53824         (asin_test_towardzero): Likewise.
53825         (asin_test_downward): Likewise.
53826         (asin_test_upward): Likewise.
53827         (asinh_test): Likewise.
53828         (atan_test): Likewise.
53829         (atanh_test): Likewise.
53830         (atan2_test): Likewise.
53831         (cabs_test): Likewise.
53832         (cacos_test): Likewise.
53833         (cacosh_test): Likewise.
53834         (casin_test): Likewise.
53835         (casinh_test): Likewise.
53836         (catan_test): Likewise.
53837         (catanh_test): Likewise.
53838         (cbrt_test): Likewise.
53839         (ccos_test): Likewise.
53840         (ccosh_test): Likewise.
53841         (cexp_test): Likewise.
53842         (clog_test): Likewise.
53843         (clog10_test): Likewise.
53844         (cos_test): Likewise.
53845         (cos_test_tonearest): Likewise.
53846         (cos_test_towardzero): Likewise.
53847         (cos_test_downward): Likewise.
53848         (cos_test_upward): Likewise.
53849         (cosh_test): Likewise.
53850         (cosh_test_tonearest): Likewise.
53851         (cosh_test_towardzero): Likewise.
53852         (cosh_test_downward): Likewise.
53853         (cosh_test_upward): Likewise.
53854         (cpow_test): Likewise.
53855         (csin_test): Likewise.
53856         (csinh_test): Likewise.
53857         (csqrt_test): Likewise.
53858         (ctan_test): Likewise.
53859         (ctan_test_tonearest): Likewise.
53860         (ctan_test_towardzero): Likewise.
53861         (ctan_test_downward): Likewise.
53862         (ctan_test_upward): Likewise.
53863         (ctanh_test): Likewise.
53864         (ctanh_test_tonearest): Likewise.
53865         (ctanh_test_towardzero): Likewise.
53866         (ctanh_test_downward): Likewise.
53867         (ctanh_test_upward): Likewise.
53868         (erf_test): Likewise.
53869         (erfc_test): Likewise.
53870         (exp_test): Likewise.
53871         (exp_test_tonearest): Likewise.
53872         (exp_test_towardzero): Likewise.
53873         (exp_test_downward): Likewise.
53874         (exp_test_upward): Likewise.
53875         (exp10_test): Likewise.
53876         (exp2_test): Likewise.
53877         (expm1_test): Likewise.
53878         (fmod_test): Likewise.
53879         (gamma_test): Likewise.
53880         (hypot_test): Likewise.
53881         (j0_test): Likewise.
53882         (j1_test): Likewise.
53883         (jn_test): Likewise.
53884         (lgamma_test): Likewise.
53885         (log_test): Likewise.
53886         (log10_test): Likewise.
53887         (log1p_test): Likewise.
53888         (log2_test): Likewise.
53889         (logb_test_downward): Likewise.
53890         (pow_test): Likewise.
53891         (pow_test_tonearest): Likewise.
53892         (pow_test_towardzero): Likewise.
53893         (pow_test_downward): Likewise.
53894         (pow_test_upward): Likewise.
53895         (remainder_test): Likewise.
53896         (remquo_test): Likewise.
53897         (sin_test): Likewise.
53898         (sin_test_tonearest): Likewise.
53899         (sin_test_towardzero): Likewise.
53900         (sin_test_downward): Likewise.
53901         (sin_test_upward): Likewise.
53902         (sincos_test): Likewise.
53903         (sinh_test): Likewise.
53904         (sinh_test_tonearest): Likewise.
53905         (sinh_test_towardzero): Likewise.
53906         (sinh_test_downward): Likewise.
53907         (sinh_test_upward): Likewise.
53908         (sqrt_test): Likewise.
53909         (tan_test): Likewise.
53910         (tan_test_tonearest): Likewise.
53911         (tan_test_towardzero): Likewise.
53912         (tan_test_downward): Likewise.
53913         (tan_test_upward): Likewise.
53914         (tanh_test): Likewise.
53915         (tgamma_test): Likewise.
53916         (y0_test): Likewise.
53917         (y1_test): Likewise.
53918         (yn_test): Likewise.
53919
53920         * math/gen-libm-test.pl (adjust_arg): Remove function.
53921         (special_function): Remove argument $in_func.  Only handle
53922         generating output for tables of tests, not inside functions.
53923         (parse_args): Likewise.
53924         (generate_testfile): Remove variable $in_func.  Update call to
53925         parse_args.
53926         * math/libm-test.inc (PLUS_ZERO_INIT): Rename macro to plus_zero.
53927         (MINUS_ZERO_INIT): Rename macro to minus_zero.
53928         (PLUS_INFTY_INIT): Rename macro to plus_infty.
53929         (MINUS_INFTY_INIT): Rename macro to minus_infty.
53930         (QNAN_VALUE_INIT): Rename macro to qnan_value.
53931         (MAX_VALUE_INIT): Rename macro to max_value.
53932         (MIN_VALUE_INIT): Rename macro to min_value.
53933         (MIN_SUBNORM_VALUE_INIT): Rename macro to min_subnorm_value.
53934         (plus_zero): Remove variable.
53935         (minus_zero): Likewise.
53936         (plus_infty): Likewise.
53937         (minus_infty): Likewise.
53938         (qnan_value): Likewise.
53939         (max_value): Likewise.
53940         (min_value): Likewise.
53941         (min_subnorm_value): Likewise.
53942
53943 2013-05-16  Ryan S. Arnold  <rsa@linux.vnet.ibm.com>
53944
53945         * crypt/sha512-block.c: Add missing #include <stdint.h> due to
53946         uint64_t or uint32_t usage.
53947         * crypt/sha256-block.c: Likewise.
53948         * crypt/sha256-crypt.c: Likewise.
53949         * crypt/sha256.c: Likewise.
53950         * crypt/sha512-block.c: Likewise.
53951         * crypt/sha512-crypt.c: Likewise.
53952         * crypt/sha512.c: Likewise.
53953         * debug/backtrace-tst.c: Likewise.
53954         * debug/pcprofiledump.c: Likewise.
53955         * elf/cache.c: Likewise.
53956         * elf/dl-cache.c: Likewise.
53957         * elf/dl-misc.c: Likewise.
53958         * elf/dl-profile.c: Likewise.
53959         * elf/dl-support.c: Likewise.
53960         * elf/ldconfig.c: Likewise.
53961         * elf/sprof.c: Likewise.
53962         * iconv/dummy-repertoire.c: Likewise.
53963         * iconv/iconv_charmap.c: Likewise.
53964         * iconv/skeleton.c: Likewise.
53965         * iconvdata/8bit-generic.c: Likewise.
53966         * iconvdata/cp737.h: Likewise.
53967         * iconvdata/cp775.h: Likewise.
53968         * iconvdata/ibm1008.h: Likewise.
53969         * iconvdata/ibm1025.h: Likewise.
53970         * iconvdata/ibm1046.h: Likewise.
53971         * iconvdata/ibm1097.h: Likewise.
53972         * iconvdata/ibm1112.h: Likewise.
53973         * iconvdata/ibm1122.h: Likewise.
53974         * iconvdata/ibm1123.h: Likewise.
53975         * iconvdata/ibm1124.h: Likewise.
53976         * iconvdata/ibm1129.h: Likewise.
53977         * iconvdata/ibm1130.h: Likewise.
53978         * iconvdata/ibm1132.h: Likewise.
53979         * iconvdata/ibm1133.h: Likewise.
53980         * iconvdata/ibm1137.h: Likewise.
53981         * iconvdata/ibm1140.h: Likewise.
53982         * iconvdata/ibm1141.h: Likewise.
53983         * iconvdata/ibm1142.h: Likewise.
53984         * iconvdata/ibm1143.h: Likewise.
53985         * iconvdata/ibm1144.h: Likewise.
53986         * iconvdata/ibm1145.h: Likewise.
53987         * iconvdata/ibm1146.h: Likewise.
53988         * iconvdata/ibm1147.h: Likewise.
53989         * iconvdata/ibm1148.h: Likewise.
53990         * iconvdata/ibm1149.h: Likewise.
53991         * iconvdata/ibm1153.h: Likewise.
53992         * iconvdata/ibm1154.h: Likewise.
53993         * iconvdata/ibm1155.h: Likewise.
53994         * iconvdata/ibm1156.h: Likewise.
53995         * iconvdata/ibm1157.h: Likewise.
53996         * iconvdata/ibm1158.h: Likewise.
53997         * iconvdata/ibm1160.h: Likewise.
53998         * iconvdata/ibm1161.h: Likewise.
53999         * iconvdata/ibm1162.h: Likewise.
54000         * iconvdata/ibm1163.h: Likewise.
54001         * iconvdata/ibm1164.h: Likewise.
54002         * iconvdata/ibm1166.h: Likewise.
54003         * iconvdata/ibm1167.h: Likewise.
54004         * iconvdata/ibm12712.h: Likewise.
54005         * iconvdata/ibm1390.h: Likewise.
54006         * iconvdata/ibm1399.h: Likewise.
54007         * iconvdata/ibm16804.h: Likewise.
54008         * iconvdata/ibm4517.h: Likewise.
54009         * iconvdata/ibm4899.h: Likewise.
54010         * iconvdata/ibm4909.h: Likewise.
54011         * iconvdata/ibm4971.h: Likewise.
54012         * iconvdata/ibm5347.h: Likewise.
54013         * iconvdata/ibm803.h: Likewise.
54014         * iconvdata/ibm856.h: Likewise.
54015         * iconvdata/ibm901.h: Likewise.
54016         * iconvdata/ibm902.h: Likewise.
54017         * iconvdata/ibm9030.h: Likewise.
54018         * iconvdata/ibm9066.h: Likewise.
54019         * iconvdata/ibm921.h: Likewise.
54020         * iconvdata/ibm922.h: Likewise.
54021         * iconvdata/ibm9448.h: Likewise.
54022         * iconvdata/isiri-3342.h: Likewise.
54023         * iconvdata/jis0201.h: Likewise.
54024         * include/link.h: Likewise.
54025         * include/netdb.h: Likewise.
54026         * inet/check_native.c: Likewise.
54027         * inet/check_pf.c: Likewise.
54028         * inet/getipv4sourcefilter.c: Likewise.
54029         * inet/getnameinfo.c: Likewise.
54030         * inet/getsourcefilter.c: Likewise.
54031         * inet/htonl.c: Likewise.
54032         * inet/setipv4sourcefilter.c: Likewise.
54033         * inet/setsourcefilter.c: Likewise.
54034         * inet/test-inet6_opt.c: Likewise.
54035         * inet/tst-network.c: Likewise.
54036         * locale/C-collate.c: Likewise.
54037         * locale/C-ctype.c: Likewise.
54038         * locale/C-time.c: Likewise.
54039         * locale/C-translit.h: Likewise.
54040         * locale/loadarchive.c: Likewise.
54041         * locale/programs/3level.h: Likewise.
54042         * locale/programs/charmap.c: Likewise.
54043         * locale/programs/charmap.h: Likewise.
54044         * locale/programs/ld-address.c: Likewise.
54045         * locale/programs/ld-collate.c: Likewise.
54046         * locale/programs/ld-ctype.c: Likewise.
54047         * locale/programs/ld-identification.c: Likewise.
54048         * locale/programs/ld-measurement.c: Likewise.
54049         * locale/programs/ld-messages.c: Likewise.
54050         * locale/programs/ld-monetary.c: Likewise.
54051         * locale/programs/ld-name.c: Likewise.
54052         * locale/programs/ld-numeric.c: Likewise.
54053         * locale/programs/ld-paper.c: Likewise.
54054         * locale/programs/ld-telephone.c: Likewise.
54055         * locale/programs/ld-time.c: Likewise.
54056         * locale/programs/linereader.c: Likewise.
54057         * locale/programs/locale.c: Likewise.
54058         * locale/programs/locarchive.c: Likewise.
54059         * locale/programs/locfile.h: Likewise.
54060         * locale/programs/repertoire.c: Likewise.
54061         * locale/programs/simple-hash.c: Likewise.
54062         * locale/programs/simple-hash.h: Likewise.
54063         * malloc/memusage.c: Likewise.
54064         * malloc/memusagestat.c: Likewise.
54065         * nis/nis_defaults.c: Likewise.
54066         * nis/nis_hash.c: Likewise.
54067         * nis/nis_print.c: Likewise.
54068         * nis/nis_xdr.c: Likewise.
54069         * nscd/connections.c: Likewise.
54070         * nscd/hstcache.c: Likewise.
54071         * nscd/nscd_gethst_r.c: Likewise.
54072         * nscd/nscd_getserv_r.c: Likewise.
54073         * nscd/nscd_helper.c: Likewise.
54074         * nscd/servicescache.c: Likewise.
54075         * nss/makedb.c: Likewise.
54076         * nss/nss_db/db-XXX.c: Likewise.
54077         * nss/nss_db/db-initgroups.c: Likewise.
54078         * nss/nss_db/db-netgrp.c: Likewise.
54079         * nss/nss_files/files-network.c: Likewise.
54080         * nss/nss_files/files-parse.c: Likewise.
54081         * posix/bug-regex5.c: Likewise.
54082         * posix/fnmatch_loop.c: Likewise.
54083         * posix/regcomp.c: Likewise.
54084         * posix/regexec.c: Likewise.
54085         * posix/tst-rfc3484-2.c: Likewise.
54086         * posix/tst-rfc3484-3.c: Likewise.
54087         * posix/tst-rfc3484.c: Likewise.
54088         * resolv/nss_dns/dns-canon.c: Likewise.
54089         * resolv/nss_dns/dns-network.c: Likewise.
54090         * resolv/res_init.c: Likewise.
54091         * resolv/res_mkquery.c: Likewise.
54092         * resolv/tst-aton.c: Likewise.
54093         * stdlib/cxa_atexit.c: Likewise.
54094         * stdlib/cxa_finalize.c: Likewise.
54095         * stdlib/gen-fpioconst.c: Likewise.
54096         * stdlib/strtol_l.c: Likewise.
54097         * string/tst-endian.c: Likewise.
54098         * sunrpc/auth_des.c: Likewise.
54099         * sunrpc/clnt_udp.c: Likewise.
54100         * sunrpc/rtime.c: Likewise.
54101         * sunrpc/svcauth_des.c: Likewise.
54102         * sunrpc/xdr.c: Likewise.
54103         * sunrpc/xdr_intXX_t.c: Likewise.
54104         * sunrpc/xdr_rec.c: Likewise.
54105         * sysdeps/generic/ldconfig.h: Likewise.
54106         * sysdeps/generic/ldsodefs.h: Likewise.
54107         * sysdeps/generic/memusage.h: Likewise.
54108         * sysdeps/ieee754/dbl-64/wordsize-64/e_fmod.c: Likewise.
54109         * sysdeps/ieee754/dbl-64/wordsize-64/e_log10.c: Likewise.
54110         * sysdeps/ieee754/dbl-64/wordsize-64/math_private.h: Likewise.
54111         * sysdeps/ieee754/dbl-64/wordsize-64/s_finite.c: Likewise.
54112         * sysdeps/ieee754/dbl-64/wordsize-64/s_floor.c: Likewise.
54113         * sysdeps/ieee754/dbl-64/wordsize-64/s_isnan.c: Likewise.
54114         * sysdeps/ieee754/dbl-64/wordsize-64/s_modf.c: Likewise.
54115         * sysdeps/ieee754/dbl-64/wordsize-64/s_remquo.c: Likewise.
54116         * sysdeps/ieee754/dbl-64/wordsize-64/s_round.c: Likewise.
54117         * sysdeps/ieee754/ldbl-128ibm/math_ldbl.h: Likewise.
54118         * sysdeps/posix/getaddrinfo.c: Likewise.
54119         * sysdeps/powerpc/fpu/e_hypot.c: Likewise.
54120         * sysdeps/powerpc/fpu/e_hypotf.c: Likewise.
54121         * sysdeps/powerpc/fpu/e_sqrt.c: Likewise.
54122         * sysdeps/powerpc/fpu/e_sqrtf.c: Likewise.
54123         * sysdeps/powerpc/test-gettimebase.c: Likewise.
54124         * sysdeps/unix/sysv/linux/check_pf.c: Likewise.
54125         * sysdeps/unix/sysv/linux/getipv4sourcefilter.c: Likewise.
54126         * sysdeps/unix/sysv/linux/getsourcefilter.c: Likewise.
54127         * sysdeps/unix/sysv/linux/netlinkaccess.h: Likewise.
54128         * sysdeps/unix/sysv/linux/powerpc/test-gettimebasefreq.c: Likewise.
54129         * sysdeps/unix/sysv/linux/preadv.c: Likewise.
54130         * sysdeps/unix/sysv/linux/pwritev.c: Likewise.
54131         * sysdeps/unix/sysv/linux/setipv4sourcefilter.c: Likewise.
54132         * sysdeps/unix/sysv/linux/setsourcefilter.c: Likewise.
54133         * sysdeps/unix/sysv/linux/x86_64/x32/arch_prctl.c: Likewise.
54134         * sysdeps/x86_64/dl-tls.h: Likewise.
54135         * sysdeps/x86_64/dl-tlsdesc.h: Likewise.
54136         * time/alt_digit.c: Likewise.
54137         * time/era.c: Likewise.
54138         * wcsmbs/tst-c16c32-1.c: Likewise.
54139
54140 2013-05-16  Joseph Myers  <joseph@codesourcery.com>
54141
54142         * math/libm-test.inc (struct test_sincos_data): New type.
54143         (RUN_TEST_LOOP_sincos): New macro.
54144         (sincos_test_data): New variable.
54145         (sincos_test): Run tests with RUN_TEST_LOOP_sincos.
54146
54147 2013-05-16  Richard Henderson  <rth@redhat.com>
54148
54149         * math/atest-exp2.c (LIMB64): New macro.
54150         (CONSTSZ): New macro.
54151         (mp_exp1, mp_exp_m1, mp_log2): New variables.
54152         (hexdig): Move ...
54153         (print_mpn_fp): ... to function scope.
54154         (read_mpn_hex): Remove.
54155         (get_log2): Remove.
54156         (exp2_mpn): Use mp_log2.
54157         (main): Use mp_exp1.
54158
54159 2013-05-16  Joseph Myers  <joseph@codesourcery.com>
54160
54161         * math/libm-test.inc: Remove comment about not testing "inexact"
54162         exceptions.
54163         (INEXACT_EXCEPTION): New macro.
54164         (NO_INEXACT_EXCEPTION): Likewise.
54165         (INVALID_EXCEPTION_OK): Update value.
54166         (DIVIDE_BY_ZERO_EXCEPTION_OK): Likewise.
54167         (OVERFLOW_EXCEPTION_OK): Likewise.
54168         (UNDERFLOW_EXCEPTION_OK): Likewise.
54169         (IGNORE_ZERO_INF_SIGN): Likewise.
54170         (ERRNO_UNCHANGED): Likewise.
54171         (ERRNO_EDOM): Likewise.
54172         (ERRNO_ERANGE): Likewise.
54173         (test_exceptions): Handle testing "inexact" exceptions.
54174         (nearbyint_test_data): Use NO_INEXACT_EXCEPTION on all tests.
54175         (rint_test_data): Use NO_INEXACT_EXCEPTION and INEXACT_EXCEPTION.
54176         (rint_test_data) [LDBL_MANT_DIG <= 100]: Disable some tests.
54177         (rint_tonearest_test_data): Use NO_INEXACT_EXCEPTION and
54178         INEXACT_EXCEPTION.
54179         (rint_towardzero_test_data): Likewise.
54180         (rint_downward_test_data): Likewise.
54181         (rint_upward_test_data): Likewise.
54182
54183         * math/libm-test.inc (exp_test_data): Use ERRNO_ERANGE together
54184         with OVERFLOW_EXCEPTION.
54185         (exp10_test_data): Likewise.
54186         (exp2_test_data): Likewise.
54187         (expm1_test_data): Likewise.
54188         (lgamma_test_data): Likewise.
54189         (pow_test_data): Likewise.
54190         (tgamma_test_data): Likewise.
54191         (yn_test_data): Remove duplicate test of overflow.
54192
54193         * math/libm-test.inc (struct test_cc_c_data): New type.
54194         (RUN_TEST_LOOP_cc_c): New macro.
54195         (cpow_test_data): New variable.
54196         (cpow_test): Run tests with RUN_TEST_LOOP_cc_c.
54197
54198         * math/libm-test.inc (struct test_f_L_data): New type.
54199         (RUN_TEST_LOOP_f_L): New macro.
54200         (llrint_test_data): New variable.
54201         (llrint_test): Run tests with RUN_TEST_LOOP_f_L.
54202         (llrint_tonearest_test_data): New variable.
54203         (llrint_test_tonearest): Run tests with RUN_TEST_LOOP_f_L.
54204         (llrint_towardzero_test_data): New variable.
54205         (llrint_test_towardzero): Run tests with RUN_TEST_LOOP_f_L.
54206         (llrint_downward_test_data): New variable.
54207         (llrint_test_downward): Run tests with RUN_TEST_LOOP_f_L.
54208         (llrint_upward_test_data): New variable.
54209         (llrint_test_upward): Run tests with RUN_TEST_LOOP_f_L.
54210         (llround_test_data): New variable.
54211         (llround_test): Run tests with RUN_TEST_LOOP_f_L.
54212
54213 2013-05-13  Peter Collingbourne  <pcc@google.com>
54214
54215         * math/atest-exp2.c (get_log2): Remove const attribute.
54216
54217 2013-05-15  Joseph Myers  <joseph@codesourcery.com>
54218
54219         * math/libm-test.inc (struct test_f_l_data): New type.
54220         (RUN_TEST_LOOP_f_l): New macro.
54221         (lrint_test_data): New variable.
54222         (lrint_test): Run tests with RUN_TEST_LOOP_f_l.
54223         (lrint_tonearest_test_data): New variable.
54224         (lrint_test_tonearest): Run tests with RUN_TEST_LOOP_f_l.
54225         (lrint_towardzero_test_data): New variable.
54226         (lrint_test_towardzero): Run tests with RUN_TEST_LOOP_f_l.
54227         (lrint_downward_test_data): New variable.
54228         (lrint_test_downward): Run tests with RUN_TEST_LOOP_f_l.
54229         (lrint_upward_test_data): New variable.
54230         (lrint_test_upward): Run tests with RUN_TEST_LOOP_f_l.
54231         (lround_test_data): New variable.
54232         (lround_test): Run tests with RUN_TEST_LOOP_f_l.
54233
54234 2013-05-15  Peter Collingbourne  <pcc@google.com>
54235
54236         * sysdeps/x86_64/fpu/math_private.h (MOVQ): New macro.
54237         (EXTRACT_WORDS64) Use where appropriate.
54238         (INSERT_WORDS64) Likewise.
54239
54240         * sysdeps/x86_64/fpu/multiarch/s_fma.c (__fma_fma4): Replace xm
54241         constraints with x constraints.
54242         * sysdeps/x86_64/fpu/multiarch/s_fmaf.c (__fmaf_fma4): Likewise.
54243
54244         * malloc/obstack.c (_obstack_compat): Add initializer.
54245
54246 2013-05-15  Edjunior Machado  <emachado@linux.vnet.ibm.com>
54247
54248         * sysdeps/unix/sysv/linux/s390/bits/siginfo.h (siginfo_t): Remove
54249         si_trapno and add si_addr_lsb to _sifields.sigfault.
54250         (si_trapno): Remove macro.
54251         (si_addr_lsb): Define new macro.
54252         (BUS_MCEERR_AR, BUS_MCEERR_AO): Define new values.
54253
54254 2013-05-15  Joseph Myers  <joseph@codesourcery.com>
54255
54256         * math/libm-test.inc (llrint_test): Consistently use TEST_f_L
54257         instead of TEST_f_l.
54258         (llrint_test_tonearest): Likewise.
54259         (llrint_test_towardzero): Likewise.
54260         (llrint_test_downward): Likewise.
54261         (llrint_test_upward): Likewise.
54262         (llround_test): Likewise.
54263
54264         * math/libm-test.inc (struct test_f_i_data): Add comment.
54265         (RUN_TEST_LOOP_f_b): New macro.
54266         (RUN_TEST_LOOP_f_b_tg): Likewise.
54267         (finite_test_data): New variable.
54268         (finite_test): Run tests with RUN_TEST_LOOP_f_b.
54269         (isfinite_test_data): New variable.
54270         (isfinite_test): Run tests with RUN_TEST_LOOP_f_b_tg.
54271         (isinf_test_data): New variable.
54272         (isinf_test): Run tests with RUN_TEST_LOOP_f_b_tg.
54273         (isnan_test_data): New variable.
54274         (isnan_test): Run tests with RUN_TEST_LOOP_f_b_tg.
54275         (isnormal_test_data): New variable.
54276         (isnormal_test): Run tests with RUN_TEST_LOOP_f_b_tg.
54277         (issignaling_test_data): New variable.
54278         (issignaling_test): Run tests with RUN_TEST_LOOP_f_b_tg.
54279         (signbit_test_data): New variable.
54280         (signbit_test): Run tests with RUN_TEST_LOOP_f_b_tg.
54281
54282         * math/libm-test.inc (acos_test_data): Use ERRNO_EDOM together
54283         with INVALID_EXCEPTION.
54284         (acosh_test_data): Likewise.
54285         (asin_test_data): Likewise.
54286         (atanh_test_data): Likewise.
54287         (fmod_test_data): Likewise.
54288         (log_test_data): Likewise.
54289         (log10_test_data): Likewise.
54290         (log2_test_data): Likewise.
54291         (pow_test_data): Likewise.
54292         (sqrt_test_data): Likewise.
54293         (y0_test_data): Likewise.
54294         (y1_test_data): Likewise.
54295         (yn_test_data): Likewise.
54296
54297         * math/libm-test.inc (test_single_errno) [TEST_INLINE]: Disable
54298         function contents.
54299
54300         * math/libm-test.inc (struct test_ff_i_data): New type.
54301         (RUN_TEST_LOOP_ff_i_tg): New macro.
54302         (isgreater_test_data): New variable.
54303         (isgreater_test): Run tests with RUN_TEST_LOOP_ff_i_tg.
54304         (isgreaterequal_test_data): New variable.
54305         (isgreaterequal_test): Run tests with RUN_TEST_LOOP_ff_i_tg.
54306         (isless_test_data): New variable.
54307         (isless_test): Run tests with RUN_TEST_LOOP_ff_i_tg.
54308         (islessequal_test_data): New variable.
54309         (islessequal_test): Run tests with RUN_TEST_LOOP_ff_i_tg.
54310         (islessgreater_test_data): New variable.
54311         (islessgreater_test): Run tests with RUN_TEST_LOOP_ff_i_tg.
54312         (isunordered_test_data): New variable.
54313         (isunordered_test): Run tests with RUN_TEST_LOOP_ff_i_tg.
54314
54315 2013-05-14  David S. Miller  <davem@davemloft.net>
54316
54317         * sysdeps/sparc/fpu/libm-test-ulps: Update.
54318
54319 2013-05-14  Joseph Myers  <joseph@codesourcery.com>
54320
54321         * math/libm-test.inc (RUN_TEST_LOOP_2_f): Fix whitespace.
54322
54323         * math/libm-test.inc (struct test_fF_f1_data): Change type of
54324         extra_test to int.
54325         (struct test_f_i_data): Change type of max_ulp to int.
54326
54327         * math/libm-test.inc (test_ffI_f1_data): New type.
54328         (RUN_TEST_LOOP_ffI_f1): New macro.
54329         (remquo_test_data): New variable.
54330         (remquo_test): Run tests with RUN_TEST_LOOP_ffI_f1.
54331
54332         * setjmp/tst-setjmp-fp.c: New file.
54333         * setjmp/Makefile (tests): Add tst-setjmp-fp.
54334         (link-libm): New variable.
54335         ($(objpfx)tst-setjmp-fp): Depend on $(link-libm).
54336
54337         * math/libm-test.inc (struct test_f_i_data): New type.
54338         (RUN_TEST_LOOP_f_i): New macro.
54339         (RUN_TEST_LOOP_f_i_tg): Likewise.
54340         (fpclassify_test_data): New variable.
54341         (fpclassify_test): Run tests with RUN_TEST_LOOP_f_i_tg.
54342         (ilogb_test_data): New variable.
54343         (ilogb_test): Run tests with RUN_TEST_LOOP_f_i.
54344
54345         * math/libm-test.inc (scalbln_test): Correct function name in END
54346         call.
54347
54348         * math/libm-test.inc (struct test_f_f1_data): Add comment.
54349         (RUN_TEST_LOOP_fI_f1): New macro.
54350         (frexp_test_data): New variable.
54351         (frexp_test): Run tests with RUN_TEST_LOOP_fI_f1.
54352
54353         * math/libm-test.inc (struct test_fF_f1_data): New type.
54354         (RUN_TEST_LOOP_fF_f1): New macro.
54355         (modf_test_data): New variable.
54356         (modf_test): Run tests with RUN_TEST_LOOP_fF_f1.
54357
54358         * math/libm-test.inc (struct test_f_f1_data): New type.
54359         (RUN_TEST_LOOP_f_f1): New macro.
54360         (gamma_test_data): New variable.
54361         (gamma_test): Run tests with RUN_TEST_LOOP_f_f1.
54362         (lgamma_test_data): New variable.
54363         (lgamma_test): Run tests with RUN_TEST_LOOP_f_f1.
54364
54365 2013-05-13  Carlos O'Donell  <carlos@redhat.com>
54366
54367         * elf/dl-hwcaps.c (_dl_important_hwcaps): Comment vDSO hwcap loading.
54368         * elf/ldconfig.c (is_hwcap_platform): Comment each hwcap check.
54369         (main): Comment "tls" pseudo-hwcap.
54370
54371 2013-05-13  Joseph Myers  <joseph@codesourcery.com>
54372
54373         * math/libm-test.inc (struct test_fl_f_data): New type.
54374         (RUN_TEST_LOOP_fl_f): New variable.
54375         (scalbln_test_data): New variable.
54376         (scalbln_test): Run tests with RUN_TEST_LOOP_fl_f.
54377
54378         * math/libm-test.inc (struct test_fi_f_data): New type.
54379         (RUN_TEST_LOOP_fi_f): New macro.
54380         (ldexp_test_data): New variable.
54381         (ldexp_test): Run tests with RUN_TEST_LOOP_fi_f.
54382         (scalbn_test_data): New variable.
54383         (scalbn_test): Run tests with RUN_TEST_LOOP_fi_f.
54384
54385         * math/libm-test.inc (struct test_c_f_data): New type.
54386         (RUN_TEST_LOOP_c_f): New macro.
54387         (cabs_test_data): New variable.
54388         (cabs_test): Run tests with RUN_TEST_LOOP_c_f.
54389         (carg_test_data): New variable.
54390         (carg_test): Run tests with RUN_TEST_LOOP_c_f.
54391         (cimag_test_data): New variable.
54392         (cimag_test): Run tests with RUN_TEST_LOOP_c_f.
54393         (creal_test_data): New variable.
54394         (creal_test): Run tests with RUN_TEST_LOOP_c_f.
54395
54396         * math/libm-test.inc (struct test_if_f_data): New type.
54397         (RUN_TEST_LOOP_if_f): New macro.
54398         (jn_test_data): New variable.
54399         (jn_test): Run tests with RUN_TEST_LOOP_if_f.
54400         (yn_test_data): New variable.
54401         (yn_test): Run tests with RUN_TEST_LOOP_if_f.
54402
54403         * math/libm-test.inc (scalbln_test): Consistently use TEST_fl_f.
54404
54405 2013-05-13  Adhemerval Zanella  <azanella@linux.vnet.ibm.com>
54406
54407         * math/libm-test.inc (M_1_DIV_El): Define using decimal constant.
54408         (log_test_data): Use M_1_DIV_El instead of 1.0 / M_El.
54409
54410 2013-05-13  Siddhesh Poyarekar  <siddhesh@redhat.com>
54411
54412         * benchtests/Makefile (CPPFLAGS-nonlib): Add
54413         -DUSE_CLOCK_GETTIME if USE_CLOCK_GETTIME is defined.
54414         (bench-deps): Add bench-timing.h.
54415         * benchtests-bench-skeleton.c: Include bench-timing.h.
54416         (main): Use TIMING_* macros instead of clock_gettime.
54417         * benchtests/bench-timing.h: New file.
54418
54419         [BZ #14582]
54420         * sysdeps/ieee754/s_lib_version.c (_LIB_VERSION_INTERNAL):
54421         Renamed from _LIB_VERSION.
54422         (_LIB_VERSION): Set as weak alias of _LIB_VERSION_INTERNAL.
54423
54424 2013-05-12  Joseph Myers  <joseph@codesourcery.com>
54425
54426         * math/libm-test.inc (struct test_fff_f_data): New type.
54427         (RUN_TEST_LOOP_fff_f): New macro.
54428         (fma_test_data): New variable.
54429         (fma_test): Run tests with RUN_TEST_LOOP_fff_f.
54430         (fma_towardzero_test_data): New variable.
54431         (fma_test_towardzero): Run tests with RUN_TEST_LOOP_fff_f.
54432         (fma_downward_test_data): New variable.
54433         (fma_test_downward): Run tests with RUN_TEST_LOOP_fff_f.
54434         (fma_upward_test_data): New variable.
54435         (fma_test_upward): Run tests with RUN_TEST_LOOP_fff_f.
54436
54437         * math/libm-test.inc (BUILD_COMPLEX_ULP): New macro.
54438         (struct test_c_c_data): New type.
54439         (RUN_TEST_LOOP_c_c): New macro.
54440         (cacos_test_data): New variable.
54441         (cacos_test): Run tests with RUN_TEST_LOOP_c_c.
54442         (cacosh_test_data): New variable.
54443         (cacosh_test): Run tests with RUN_TEST_LOOP_c_c.
54444         (casin_test_data): New variable.
54445         (casin_test): Run tests with RUN_TEST_LOOP_c_c.
54446         (casinh_test_data): New variable.
54447         (casinh_test): Run tests with RUN_TEST_LOOP_c_c.
54448         (catan_test_data): New variable.
54449         (catan_test): Run tests with RUN_TEST_LOOP_c_c.
54450         (catanh_test_data): New variable.
54451         (catanh_test): Run tests with RUN_TEST_LOOP_c_c.
54452         (ccos_test_data): New variable.
54453         (ccos_test): Run tests with RUN_TEST_LOOP_c_c.
54454         (ccosh_test_data): New variable.
54455         (ccosh_test): Run tests with RUN_TEST_LOOP_c_c.
54456         (cexp_test_data): New variable.
54457         (cexp_test): Run tests with RUN_TEST_LOOP_c_c.
54458         (clog_test_data): New variable.
54459         (clog_test): Run tests with RUN_TEST_LOOP_c_c.
54460         (clog10_test_data): New variable.
54461         (clog10_test): Run tests with RUN_TEST_LOOP_c_c.
54462         (conj_test_data): New variable.
54463         (conj_test): Run tests with RUN_TEST_LOOP_c_c.
54464         (cproj_test_data): New variable.
54465         (cproj_test): Run tests with RUN_TEST_LOOP_c_c.
54466         (csin_test_data): New variable.
54467         (csin_test): Run tests with RUN_TEST_LOOP_c_c.
54468         (csinh_test_data): New variable.
54469         (csinh_test): Run tests with RUN_TEST_LOOP_c_c.
54470         (csqrt_test_data): New variable.
54471         (csqrt_test): Run tests with RUN_TEST_LOOP_c_c.
54472         (ctan_test_data): New variable.
54473         (ctan_test): Run tests with RUN_TEST_LOOP_c_c.
54474         (ctan_tonearest_test_data): New variable.
54475         (ctan_test_tonearest): Run tests with RUN_TEST_LOOP_c_c.
54476         (ctan_towardzero_test_data): New variable.
54477         (ctan_test_towardzero): Run tests with RUN_TEST_LOOP_c_c.
54478         (ctan_downward_test_data): New variable.
54479         (ctan_test_downward): Run tests with RUN_TEST_LOOP_c_c.
54480         (ctan_upward_test_data): New variable.
54481         (ctan_test_upward): Run tests with RUN_TEST_LOOP_c_c.
54482         (ctanh_test_data): New variable.
54483         (ctanh_test): Run tests with RUN_TEST_LOOP_c_c.
54484         (ctanh_tonearest_test_data): New variable.
54485         (ctanh_test_tonearest): Run tests with RUN_TEST_LOOP_c_c.
54486         (ctanh_towardzero_test_data): New variable.
54487         (ctanh_test_towardzero): Run tests with RUN_TEST_LOOP_c_c.
54488         (ctanh_downward_test_data): New variable.
54489         (ctanh_test_downward): Run tests with RUN_TEST_LOOP_c_c.
54490         (ctanh_upward_test_data): New variable.
54491         (ctanh_test_upward): Run tests with RUN_TEST_LOOP_c_c.
54492         * math/gen-libm-test.pl (get_ulps): Use BUILD_COMPLEX_ULP instead
54493         of BUILD_COMPLEX.
54494
54495         * math/libm-test.inc (struct test_ff_f_data): New type.
54496         (struct test_ff_f_data_nexttoward): Likewise.
54497         (RUN_TEST_LOOP_2_f): New macro.
54498         (RUN_TEST_LOOP_ff_f): Likewise.
54499         (atan2_test_data): New variable.
54500         (atan2_test): Run tests with RUN_TEST_LOOP_ff_f.
54501         (copysign_test_data): New variable.
54502         (copysign_test): Run tests with RUN_TEST_LOOP_ff_f.
54503         (fdim_test_data): New variable.
54504         (fdim_test): Run tests with RUN_TEST_LOOP_ff_f.
54505         (fmax_test_data): New variable.
54506         (fmax_test): Run tests with RUN_TEST_LOOP_ff_f.
54507         (fmin_test_data): New variable.
54508         (fmin_test): Run tests with RUN_TEST_LOOP_ff_f.
54509         (fmod_test_data): New variable.
54510         (fmod_test): Run tests with RUN_TEST_LOOP_ff_f.
54511         (hypot_test_data): New variable.
54512         (hypot_test): Run tests with RUN_TEST_LOOP_ff_f.
54513         (nextafter_test_data): New variable.
54514         (nextafter_test): Run tests with RUN_TEST_LOOP_ff_f.
54515         (nexttoward_test_data): New variable.
54516         (nexttoward_test): Run tests with RUN_TEST_LOOP_ff_f.
54517         (pow_test_data): New variable.
54518         (pow_test): Run tests with RUN_TEST_LOOP_ff_f.
54519         (pow_tonearest_test_data): New variable.
54520         (pow_test_tonearest): Run tests with RUN_TEST_LOOP_ff_f.
54521         (pow_towardzero_test_data): New variable.
54522         (pow_test_towardzero): Run tests with RUN_TEST_LOOP_ff_f.
54523         (pow_downward_test_data): New variable.
54524         (pow_test_downward): Run tests with RUN_TEST_LOOP_ff_f.
54525         (pow_upward_test_data): New variable.
54526         (pow_test_upward): Run tests with RUN_TEST_LOOP_ff_f.
54527         (remainder_test_data): New variable.
54528         (remainder_test): Run tests with RUN_TEST_LOOP_ff_f.
54529         (scalb_test_data): New variable.
54530         (scalb_test): Run tests with RUN_TEST_LOOP_ff_f.
54531         * sysdeps/i386/fpu/libm-test-ulps: Update.
54532
54533 2013-05-11  Joseph Myers  <joseph@codesourcery.com>
54534
54535         * math/libm-test.inc (fma_test): Use max_value instead of local
54536         variable fltmax.
54537         (nextafter_test): Likewise.
54538
54539         * math/libm-test.inc (acos_towardzero_test_data): New variable.
54540         (acos_test_towardzero): Run tests with RUN_TEST_LOOP_f_f.
54541         (acos_downward_test_data): New variable.
54542         (acos_test_downward): Run tests with RUN_TEST_LOOP_f_f.
54543         (acos_upward_test_data): New variable.
54544         (acos_test_upward): Run tests with RUN_TEST_LOOP_f_f.
54545         (acosh_test_data): New variable.
54546         (acosh_test): Run tests with RUN_TEST_LOOP_f_f.
54547         (asin_test_data): New variable.
54548         (asin_test): Run tests with RUN_TEST_LOOP_f_f.
54549         (asin_tonearest_test_data): New variable.
54550         (asin_test_tonearest): Run tests with RUN_TEST_LOOP_f_f.
54551         (asin_towardzero_test_data): New variable.
54552         (asin_test_towardzero): Run tests with RUN_TEST_LOOP_f_f.
54553         (asin_downward_test_data): New variable.
54554         (asin_test_downward): Run tests with RUN_TEST_LOOP_f_f.
54555         (asin_upward_test_data): New variable.
54556         (asin_test_upward): Run tests with RUN_TEST_LOOP_f_f.
54557         (asinh_test_data): New variable.
54558         (asinh_test): Run tests with RUN_TEST_LOOP_f_f.
54559         (atan_test_data): New variable.
54560         (atan_test): Run tests with RUN_TEST_LOOP_f_f.
54561         (atanh_test_data): New variable.
54562         (atanh_test): Run tests with RUN_TEST_LOOP_f_f.
54563         (cbrt_test_data): New variable.
54564         (cbrt_test): Run tests with RUN_TEST_LOOP_f_f.
54565         (ceil_test_data): New variable.
54566         (ceil_test): Run tests with RUN_TEST_LOOP_f_f.
54567         (cos_test_data): New variable.
54568         (cos_test): Run tests with RUN_TEST_LOOP_f_f.
54569         (cos_tonearest_test_data): New variable.
54570         (cos_test_tonearest): Run tests with RUN_TEST_LOOP_f_f.
54571         (cos_towardzero_test_data): New variable.
54572         (cos_test_towardzero): Run tests with RUN_TEST_LOOP_f_f.
54573         (cos_downward_test_data): New variable.
54574         (cos_test_downward): Run tests with RUN_TEST_LOOP_f_f.
54575         (cos_upward_test_data): New variable.
54576         (cos_test_upward): Run tests with RUN_TEST_LOOP_f_f.
54577         (cosh_test_data): New variable.
54578         (cosh_test): Run tests with RUN_TEST_LOOP_f_f.
54579         (cosh_tonearest_test_data): New variable.
54580         (cosh_test_tonearest): Run tests with RUN_TEST_LOOP_f_f.
54581         (cosh_towardzero_test_data): New variable.
54582         (cosh_test_towardzero): Run tests with RUN_TEST_LOOP_f_f.
54583         (cosh_downward_test_data): New variable.
54584         (cosh_test_downward): Run tests with RUN_TEST_LOOP_f_f.
54585         (cosh_upward_test_data): New variable.
54586         (cosh_test_upward): Run tests with RUN_TEST_LOOP_f_f.
54587         (erf_test_data): New variable.
54588         (erf_test): Run tests with RUN_TEST_LOOP_f_f.
54589         (erfc_test_data): New variable.
54590         (erfc_test): Run tests with RUN_TEST_LOOP_f_f.
54591         (exp_test_data): New variable.
54592         (exp_test): Run tests with RUN_TEST_LOOP_f_f.
54593         (exp_tonearest_test_data): New variable.
54594         (exp_test_tonearest): Run tests with RUN_TEST_LOOP_f_f.
54595         (exp_towardzero_test_data): New variable.
54596         (exp_test_towardzero): Run tests with RUN_TEST_LOOP_f_f.
54597         (exp_downward_test_data): New variable.
54598         (exp_test_downward): Run tests with RUN_TEST_LOOP_f_f.
54599         (exp_upward_test_data): New variable.
54600         (exp_test_upward): Run tests with RUN_TEST_LOOP_f_f.
54601         (exp10_test_data): New variable.
54602         (exp10_test): Run tests with RUN_TEST_LOOP_f_f.
54603         (exp2_test_data): New variable.
54604         (exp2_test): Run tests with RUN_TEST_LOOP_f_f.
54605         (expm1_test_data): New variable.
54606         (expm1_test): Run tests with RUN_TEST_LOOP_f_f.
54607         (fabs_test_data): New variable.
54608         (fabs_test): Run tests with RUN_TEST_LOOP_f_f.
54609         (floor_test_data): New variable.
54610         (floor_test): Run tests with RUN_TEST_LOOP_f_f.
54611         (j0_test_data): New variable.
54612         (j0_test): Run tests with RUN_TEST_LOOP_f_f.
54613         (j1_test_data): New variable.
54614         (j1_test): Run tests with RUN_TEST_LOOP_f_f.
54615         (log_test_data): New variable.
54616         (log_test): Run tests with RUN_TEST_LOOP_f_f.
54617         (log10_test_data): New variable.
54618         (log10_test): Run tests with RUN_TEST_LOOP_f_f.
54619         (log1p_test_data): New variable.
54620         (log1p_test): Run tests with RUN_TEST_LOOP_f_f.
54621         (log2_test_data): New variable.
54622         (log2_test): Run tests with RUN_TEST_LOOP_f_f.
54623         (logb_test_data): New variable.
54624         (logb_test): Run tests with RUN_TEST_LOOP_f_f.
54625         (logb_downward_test_data): New variable.
54626         (logb_test_downward): Run tests with RUN_TEST_LOOP_f_f.
54627         (nearbyint_test_data): New variable.
54628         (nearbyint_test): Run tests with RUN_TEST_LOOP_f_f.
54629         (rint_test_data): New variable.
54630         (rint_test): Run tests with RUN_TEST_LOOP_f_f.
54631         (rint_tonearest_test_data): New variable.
54632         (rint_test_tonearest): Run tests with RUN_TEST_LOOP_f_f.
54633         (rint_towardzero_test_data): New variable.
54634         (rint_test_towardzero): Run tests with RUN_TEST_LOOP_f_f.
54635         (rint_downward_test_data): New variable.
54636         (rint_test_downward): Run tests with RUN_TEST_LOOP_f_f.
54637         (rint_upward_test_data): New variable.
54638         (rint_test_upward): Run tests with RUN_TEST_LOOP_f_f.
54639         (round_test_data): New variable.
54640         (round_test): Run tests with RUN_TEST_LOOP_f_f.
54641         (sin_test_data): New variable.
54642         (sin_test): Run tests with RUN_TEST_LOOP_f_f.
54643         (sin_tonearest_test_data): New variable.
54644         (sin_test_tonearest): Run tests with RUN_TEST_LOOP_f_f.
54645         (sin_towardzero_test_data): New variable.
54646         (sin_test_towardzero): Run tests with RUN_TEST_LOOP_f_f.
54647         (sin_downward_test_data): New variable.
54648         (sin_test_downward): Run tests with RUN_TEST_LOOP_f_f.
54649         (sin_upward_test_data): New variable.
54650         (sin_test_upward): Run tests with RUN_TEST_LOOP_f_f.
54651         (sinh_test_data): New variable.
54652         (sinh_test): Run tests with RUN_TEST_LOOP_f_f.
54653         (sinh_tonearest_test_data): New variable.
54654         (sinh_test_tonearest): Run tests with RUN_TEST_LOOP_f_f.
54655         (sinh_towardzero_test_data): New variable.
54656         (sinh_towardzero): Run tests with RUN_TEST_LOOP_f_f.
54657         (sinh_downward_test_data): New variable.
54658         (sinh_test_downward): Run tests with RUN_TEST_LOOP_f_f.
54659         (sinh_upward_test_data): New variable.
54660         (sinh_test_upward): Run tests with RUN_TEST_LOOP_f_f.
54661         (sqrt_test_data): New variable.
54662         (sqrt_test): Run tests with RUN_TEST_LOOP_f_f.
54663         (tan_test_data): New variable.
54664         (tan_test): Run tests with RUN_TEST_LOOP_f_f.
54665         (tan_tonearest_test_data): New variable.
54666         (tan_test_tonearest): Run tests with RUN_TEST_LOOP_f_f.
54667         (tan_towardzero_test_data): New variable.
54668         (tan_test_towardzero): Run tests with RUN_TEST_LOOP_f_f.
54669         (tan_downward_test_data): New variable.
54670         (tan_test_downward): Run tests with RUN_TEST_LOOP_f_f.
54671         (tan_upward_test_data): New variable.
54672         (tan_test_upward): Run tests with RUN_TEST_LOOP_f_f.
54673         (tanh_test_data): New variable.
54674         (tanh_test): Run tests with RUN_TEST_LOOP_f_f.
54675         (tgamma_test_data): New variable.
54676         (tgamma_test): Run tests with RUN_TEST_LOOP_f_f.
54677         (trunc_test_data): New variable.
54678         (trunc_test): Run tests with RUN_TEST_LOOP_f_f.
54679         (y0_test_data): New variable.
54680         (y0_test): Run tests with RUN_TEST_LOOP_f_f.
54681         (y1_test_data): New variable.
54682         (y1_test): Run tests with RUN_TEST_LOOP_f_f.
54683         (significand_test_data): New variable.
54684         (significand_test): Run tests with RUN_TEST_LOOP_f_f.
54685
54686 2013-05-10  Christian Grönke  <cgr_bugs@sysgo.com>
54687
54688         [BZ #12387]
54689         * sysdeps/unix/sysv/linux/sh/getgid.c: New file.
54690
54691 2013-05-10  Pino Toscano  <toscano.pino@tiscali.it>
54692
54693         * sysdeps/mach/hurd/bits/statvfs.h: Add ST_NOATIME.
54694
54695 2013-05-10  Andreas Jaeger  <aj@suse.de>
54696
54697         [BZ #15448]
54698         * sysdeps/unix/sysv/linux/bits/sched.h (__CPU_SET_S)
54699         (__CPU_CLR_S, __CPU_ISSET_S): Avoid integer overflow.
54700
54701 2013-05-10  Joseph Myers  <joseph@codesourcery.com>
54702
54703         * math/gen-libm-test.pl (adjust_arg): New function.
54704         (special_functions): Handle generating output in both functions
54705         and arrays.
54706         (parse_args): Likewise.
54707         (generate_testfile): Handle START_DATA and END_DATA.  Pass extra
54708         $in_func argument to parse_args.
54709         * math/libm-test.inc (struct test_f_f_data): New type.
54710         (IF_ROUND_INIT_): New macro.
54711         (IF_ROUND_INIT_FE_DOWNWARD): Likewise.
54712         (IF_ROUND_INIT_FE_TONEAREST): Likewise.
54713         (IF_ROUND_INIT_FE_TOWARDZERO): Likewise.
54714         (IF_ROUND_INIT_FE_UPWARD): Likewise.
54715         (ROUND_RESTORE_): Likewise.
54716         (ROUND_RESTORE_FE_DOWNWARD): Likewise.
54717         (ROUND_RESTORE_FE_TONEAREST): Likewise.
54718         (ROUND_RESTORE_FE_TOWARDZERO): Likewise.
54719         (ROUND_RESTORE_FE_UPWARD): Likewise.
54720         (RUN_TEST_LOOP_f_f): New macro.
54721         (acos_test_data): New variable.
54722         (acos_test): Run tests with RUN_TEST_LOOP_f_f.
54723         (acos_tonearest_test_data): New variable.
54724         (acos_test_tonearest): Run tests with RUN_TEST_LOOP_f_f.
54725
54726 2013-05-10  Siddhesh Poyarekar  <siddhesh@redhat.com>
54727
54728         * benchtests/bench-skeleton.c (startup): Fix coding style.
54729
54730 2013-05-10  Joseph Myers  <joseph@codesourcery.com>
54731
54732         [BZ #6809]
54733         * math/w_tgamma.c (__tgamma): Also call __kernel_standard for
54734         negative infinity argument.
54735         * math/w_tgammaf.c (__tgammaf): Also call __kernel_standard_f for
54736         negative infinity argument.
54737         * math/w_tgammal.c (__tgammal): Also call __kernel_standard_l for
54738         negative infinity argument.
54739         * math/libm-test.inc (tgamma_test): Expect errno to be set for
54740         domain errors.
54741
54742 2013-05-10  Florian Weimer  <fweimer@redhat.com>
54743
54744         * elf/sprof.c (load_profdata): Use fstat64 instead of fstat.
54745         * iconv/iconv_charmap.c (charmap_conversion): Likewise.
54746         * iconv/iconv_prog.c (main): Likewise.
54747         * locale/programs/charmap-dir.c (charmap_readdir)
54748         (fopen_uncompressed): Likewise.
54749         * locale/programs/locfile.c (siblings_uncached)
54750         (write_locale_data): Use lstat64 instead of lstat.
54751         * sunrpc/rpc_main.c (find_cpp, checkfiles): Use stat64 instead of
54752         stat.
54753
54754 2013-05-10  Andreas Jaeger  <aj@suse.de>
54755
54756         [BZ #15395]
54757         * sunrpc/rpc_main.c (main): Invoke setlocale and textdomain for
54758         localization.
54759         Include <locale.h>.
54760
54761 2013-05-09  Carlos O'Donell  <carlos@redhat.com>
54762
54763         * elf/dl-close.c (_dl_close_worker): Add comments.
54764
54765 2013-05-09  Joseph Myers  <joseph@codesourcery.com>
54766
54767         [BZ #15359]
54768         * sysdeps/ieee754/ldbl-128ibm/e_rem_pio2l.c (c): Use 106 bits for
54769         high part of pi/2.
54770         (__ieee754_rem_pio2l): Update comments.
54771
54772         [BZ #15429]
54773         * sysdeps/ieee754/ldbl-128/e_rem_pio2l.c (c): Use 113 bits for
54774         high part of pi/2.
54775         (__ieee754_rem_pio2l): Update comments.
54776
54777         * math/libm-test.inc (M_SQRT_2_2): Remove macro.
54778         (csqrt_test): Use M_SQRT1_2l instead of M_SQRT_2_2.
54779
54780         * math/libm-test.inc (carg_test): Use M_PI_34l instead of 3 *
54781         M_PI_4l.
54782
54783         * math/libm-test.inc (M_PI_34l): Define using decimal constant.
54784         (M_PI_34_LOG10El): Likewise.
54785         (M_PI2_LOG10El): Likewise.
54786         (M_PI4_LOG10El): Likewise.
54787         (M_PI_LOG10El): Likewise.
54788
54789 2013-05-08  Adhemerval Zanella  <azanella@linux.vnet.ibm.com>
54790
54791         * sysdeps/powerpc/fpu/libm-test-ulps: Update.
54792
54793 2013-05-08  Joseph Myers  <joseph@codesourcery.com>
54794
54795         * math/libm-test.inc (PLUS_ZERO_INIT): New macro.
54796         (MINUS_ZERO_INIT): Likewise.
54797         (PLUS_INFTY_INIT): Likewise.
54798         (MINUS_INFTY_INIT): Likewise.
54799         (QNAN_VALUE_INIT): Likewise.
54800         (MAX_VALUE_INIT): Likewise.
54801         (MIN_VALUE_INIT): Likewise.
54802         (MIN_SUBNORM_VALUE_INIT): Likewise.
54803         (plus_zero): Initialize with PLUS_ZERO_INIT.
54804         (minus_zero): Initialize with MINUS_ZERO_INIT.
54805         (plus_infty): Initialize with PLUS_INFTY_INIT.
54806         (minus_infty): Initialize with MINUS_INFTY_INIT.
54807         (qnan_value): Initialize with QNAN_VALUE_INIT.
54808         (max_value): Initialize with MAX_VALUE_INIT.
54809         (min_value): Initialize with MIN_VALUE_INIT.
54810         (min_subnorm_value): Initialize with MIN_SUBNORM_VALUE_INIT.
54811
54812         * math/libm-test.inc (RUN_TEST_if_f): New macro.
54813         (jn_test): Use TEST_if_f instead of TEST_ff_f.
54814         (ldexp_text): Use TEST_fi_i instead of TEST_ff_f.
54815         (yn_test): Use TEST_if_f instead of TEST_ff_f.
54816
54817         * math/libm-test.inc (RUN_TEST_f_f): New macro.
54818         (RUN_TEST_2_f): Likewise.
54819         (RUN_TEST_ff_f): Likewise.
54820         (RUN_TEST_fi_f): Likewise.
54821         (RUN_TEST_fl_f): Likewise.
54822         (RUN_TEST_fff_f): Likewise.
54823         (RUN_TEST_c_f): Likewise.
54824         (RUN_TEST_f_f1): Likewise.
54825         (RUN_TEST_fF_f1): Likewise.
54826         (RUN_TEST_fI_f1): Likewise.
54827         (RUN_TEST_ffI_f1): Likewise.
54828         (RUN_TEST_c_c): Likewise.
54829         (RUN_TEST_cc_c): Likewise.
54830         (RUN_TEST_f_i): Likewise.
54831         (RUN_TEST_f_i_tg): Likewise.
54832         (RUN_TEST_ff_i_tg): Likewise.
54833         (RUN_TEST_f_b): Likewise.
54834         (RUN_TEST_f_b_tg): Likewise.
54835         (RUN_TEST_f_l): Likewise.
54836         (RUN_TEST_f_L): Likewise.
54837         (RUN_TEST_sincos): Likewise.
54838         * math/gen-libm-test.pl (new_test): Take new argument to indicate
54839         whether to show exceptions.  Do not include ");\n" in return
54840         value.
54841         (special_functions): Output call to RUN_TEST_sincos instead of
54842         check_float calls.  Update calls to new_test.
54843         (parse_args): Output call to single RUN_TEST_* macro instead of
54844         check_* calls and other assignments.  Update calls to new_test.
54845
54846         [BZ #2546]
54847         [BZ #2560]
54848         [BZ #5159]
54849         [BZ #15426]
54850         * sysdeps/ieee754/k_standard.c (__kernel_standard): Copy sign of
54851         input to result for tgamma overflow.
54852         * sysdeps/ieee754/dbl-64/e_gamma_r.c: Include <float.h>.
54853         (gamma_coeff): New variable.
54854         (NCOEFF): New macro.
54855         (gamma_positive): New function.
54856         (__ieee754_gamma_r): Handle positive infinity, NaN, overflow and
54857         underflow here.  Use gamma_positive instead of exp (lgamma) for
54858         other arguments.
54859         * sysdeps/ieee754/flt-32/e_gammaf_r.c: Include <float.h>.
54860         (gamma_coeff): New variable.
54861         (NCOEFF): New macro.
54862         (gammaf_positive): New function.
54863         (__ieee754_gammaf_r): Handle positive infinity, NaN, overflow and
54864         underflow here.  Use gamma_positive instead of exp (lgamma) for
54865         other arguments.
54866         * sysdeps/ieee754/ldbl-128/e_gammal_r.c: Include <float.h>.
54867         (gamma_coeff): New variable.
54868         (NCOEFF): New macro.
54869         (gammal_positive): New function.
54870         (__ieee754_gammal_r): Handle positive infinity, NaN, overflow and
54871         underflow here.  Use gamma_positive instead of exp (lgamma) for
54872         other arguments.
54873         * sysdeps/ieee754/ldbl-128ibm/e_gammal_r.c: Include <float.h>.
54874         (gamma_coeff): New variable.
54875         (NCOEFF): New macro.
54876         (gammal_positive): New function.
54877         (__ieee754_gammal_r): Handle positive infinity, overflow and
54878         underflow here.  Handle NaN the same as positive infinity.  Remove
54879         check x < 0xffffffff for negative integers.  Use gamma_positive
54880         instead of exp (lgamma) for other arguments.
54881         * sysdeps/ieee754/ldbl-96/e_gammal_r.c: Include <float.h>.
54882         (gamma_coeff): New variable.
54883         (NCOEFF): New macro.
54884         (gammal_positive): New function.
54885         * sysdeps/ieee754/dbl-64/gamma_product.c: New file.
54886         * sysdeps/ieee754/dbl-64/gamma_productf.c: Likewise.
54887         * sysdeps/ieee754/ldbl-128/gamma_productl.c: Likewise.
54888         * sysdeps/ieee754/ldbl-128ibm/gamma_productl.c: Likewise.
54889         * sysdeps/ieee754/ldbl-96/gamma_product.c: Likewise.
54890         * sysdeps/ieee754/ldbl-96/gamma_productl.c: Likewise.
54891         * sysdeps/generic/math_private.h (__gamma_productf): New
54892         prototype.
54893         (__gamma_product): Likewise.
54894         (__gamma_productl): Likewise.
54895         * math/Makefile (libm-calls): Add gamma_product.
54896         * math/libm-test.inc (tgamma_test): Add more tests.
54897         * sysdeps/i386/fpu/libm-test-ulps: Update.
54898         * sysdeps/x86_64/fpu/libm-test-ulps: Likewise.
54899
54900 2013-05-08  Ondřej Bílka  <neleai@seznam.cz>
54901
54902         * benchtests/bench-skeleton.c (main): Preheat CPU.
54903
54904 2013-05-07  Aurelien Jarno <aurelien@aurel32.net>
54905
54906         * misc/sys/param.h (DEV_BSIZE): Define only if not already defined.
54907
54908 2013-05-07  Roland McGrath  <roland@hack.frob.com>
54909
54910         * sysdeps/generic/ldsodefs.h [IS_IN_rtld]: Declare _dl_skip_args
54911         and _dl_skip_args_internal.
54912
54913 2013-05-07  Carlos O'Donell  <carlos@redhat.com>
54914
54915         * manual/message.texi (Message Translation): Talk about users.
54916         Message to key mapping impacts design.
54917
54918 2013-05-06  Roland McGrath  <roland@hack.frob.com>
54919
54920         * sysdeps/unix/sysv/linux/wordsize-64/glob64.c: New file.
54921
54922         * elf/dl-open.c: Remove declaration of _dl_sysdep_start.
54923
54924         * sysdeps/unix/sysv/linux/wordsize-64/glob64.c: Moved to ...
54925         * sysdeps/wordsize-64/glob64.c: ... here.
54926
54927         * sysdeps/generic/not-cancel.h (NO_CANCELLATION): New macro.
54928         (pause_not_cancel, nanosleep_not_cancel, sigsuspend_not_cancel):
54929         New macros.
54930
54931         * debug/getlogin_r_chk.c: Moved to ...
54932         * login/getlogin_r_chk.c: ... here.
54933         * debug/Makefile (routines): Move getlogin_r_chk to ...
54934         * login/Makefile (routines): ... here.
54935         * debug/Versions (libc: GLIBC_2.4): Move getlogin_r_chk to ...
54936         * login/Versions (libc: GLIBC_2.4): ... here.
54937
54938         * io/poll.c (__poll): Renamed from poll.
54939         Add libc_hidden_def.
54940         (poll): Define as weak alias.
54941
54942         * debug/ptsname_r_chk.c: Moved to ...
54943         * login/ptsname_r_chk.c: ... here.
54944         * debug/Makefile (routines): Move ptsname_r_chk to ...
54945         * login/Makefile (routines): ... here.
54946         * debug/Versions (libc: GLIBC_2.4): Move __ptsname_r_chk to ...
54947         * login/Versions (libc: GLIBC_2.4): ... here.
54948
54949         * posix/getlogin.c: Moved to ...
54950         * login/getlogin.c: ... here.
54951         * posix/getlogin_r.c: Moved to ...
54952         * login/getlogin_r.c: ... here.
54953         * posix/getlogin_r.c: Moved to ...
54954         * login/getlogin_r.c: ... here.
54955         * posix/Makefile (routines): Move getlogin, getlogin_r, setlogin to ...
54956         * login/Makefile (routines): ... here.
54957         * posix/Versions (libc: GLIBC_2.0): Move setlogin to ...
54958         * login/Versions (libc: GLIBC_2.0): ... here.
54959
54960         * resource/setrlimit.c (__setrlimit): Renamed from setrlimit.
54961         (setrlimit): Define as weak alias.
54962
54963         * sysdeps/posix/truncate.c (__truncate): Renamed from truncate.
54964         Call __ names for open, ftruncate, and close.
54965         For LENGTH==0 case, just use O_TRUNC rather than calling ftruncate.
54966         (truncate): Define as weak alias.
54967
54968 2013-05-06  Joseph Myers  <joseph@codesourcery.com>
54969
54970         * math/gen-libm-test.pl (parse_args): Initialize x before each
54971         test of frexp, modf and remquo.
54972
54973         * math/libm-test.inc (gamma_test): Consistently use TEST_f_f1 to
54974         test signgam value.
54975
54976 2013-05-06  Adhemerval Zanella  <azanella@linux.vnet.ibm.com>
54977
54978         [BZ #15418]
54979         [BZ #15419]
54980         * sysdeps/powerpc/fpu/e_hypot.c: Fix spurious FP exception generated by
54981         internal tests.
54982         * sysdeps/powerpc/fpu/e_hypotf.c: Likewise.
54983
54984 2013-05-06  Roland McGrath  <roland@hack.frob.com>
54985
54986         * elf/dl-writev.h: New file.
54987         * elf/dl-misc.c: Include it.
54988         (_dl_debug_vdprintf): Call _dl_writev instead of __writev et al.
54989         * sysdeps/unix/sysv/linux/dl-writev.h: New file.
54990
54991 2013-05-04  Joseph Myers  <joseph@codesourcery.com>
54992
54993         * math/libm-test.inc (noXFails): Remove variable.
54994         (noXPasses): Likewise.
54995         (BUILD_COMPLEX_INT): Remove macro.
54996         (print_screen): Remove xfail argument.
54997         (print_screen_max_error): Likewise.
54998         (update_stats): Likewise.
54999         (print_max_error): Likewise.  Update calls to other affected
55000         functions.
55001         (print_complex_max_error): Likewise.
55002         (test_single_exception): Update calls to print_screen.
55003         (test_single_errno): Likewise.
55004         (check_float_internal): Remove xfail argument.  Update calls to
55005         other affected functions.
55006         (check_float): Likewise.
55007         (check_complex): Likewise.
55008         (check_int): Likewise.
55009         (check_long): Likewise.
55010         (check_bool): Likewise.
55011         (check_longlong): Likewise.
55012         (main): Don't print noXFails and noXPasses.
55013         * math/gen-libm-test.pl (top level): Don't mention expected
55014         failure handling in comment.
55015         (new_test): Don't handle expected failures.
55016         (parse_args): Don't mention expected failure handling in comment.
55017         (generate_testfile): Don't handle expected failures.
55018         (parse_ulps): Likewise.
55019         (print_ulps_file): Likewise.
55020         (get_failure): Remove function.
55021         (output_test): Don't handle expected failures.
55022         * make/README.libm-test: Don't mention expected failure handling.
55023
55024         * math/libm-test.inc (plus_zero): Make const.  Add initializer.
55025         (minus_zero): Likewise.
55026         (plus_infty): Likewise.
55027         (minus_infty): Likewise.
55028         (qnan_value): Likewise.
55029         (max_value): Likewise.
55030         (min_value): Likewise.
55031         (min_subnorm_value): Likewise.
55032         (initialize): Do not initialize those variables dynamically.
55033
55034 2013-05-03  Roland McGrath  <roland@hack.frob.com>
55035
55036         * io/open.c (__open_2): Moved to ...
55037         * io/open_2.c: ... this new file.
55038         * io/open64.c (__open64_2): Moved to ...
55039         * io/open64_2.c: ... this new file.
55040         * io/openat.c (__openat_2): Moved to ...
55041         * io/openat_2.c: ... this new file.
55042         * io/openat64.c (__openat64_2): Moved to ...
55043         * io/openat64_2.c: ... this new file.
55044         * io/Makefile (routines): Add them.
55045         * sysdeps/unix/sysv/linux/Makefile (sysdep_routines): Remove them.
55046         * sysdeps/unix/sysv/linux/open_2.c: File removed.
55047         * sysdeps/unix/sysv/linux/open64_2.c: File removed.
55048         * sysdeps/unix/sysv/linux/openat.c (__OPENAT_2): Removed.
55049         * sysdeps/unix/sysv/linux/openat64.c (__OPENAT_2): Removed.
55050         * sysdeps/unix/sysv/linux/wordsize-64/openat.c (__openat_2): Removed.
55051         (__openat64): Add hidden_ver.
55052         * sysdeps/mach/hurd/open.c (__open_2, __open64_2): Removed.
55053         * sysdeps/mach/hurd/openat.c (__openat_2): Removed.
55054
55055         * elf/dl-sysdep.c (_dl_sysdep_start) [NEED_DL_SYSINFO]:
55056         Separately conditionalize setting of GLRO(dl_sysinfo) so
55057         that the GLRO(dl_sysinfo_dso) test is under [NEED_DL_SYSINFO_DSO]
55058         as well, but the actual setting is only under [NEED_DL_SYSINFO].
55059
55060 2013-04-30  Adhemerval Zanella  <azanella@linux.vnet.ibm.com>
55061
55062         * sysdeps/unix/sysv/linux/powerpc/Versions: Add __vdso_time symbol.
55063         * sysdeps/unix/sysv/linux/powerpc/bits/libc-vdso.h: Add __vdso_time
55064         definition.
55065         (VDSO_IFUNC_RET): Cast to void * to silence compiler warning.
55066         * sysdeps/unix/sysv/linux/powerpc/init-first.c
55067         (_libc_vdso_platform_setup): Add __vdso_time initialization.
55068         * sysdeps/unix/sysv/linux/powerpc/time.c: New file: time implementation
55069         for PowerPC using vDSO where is avaliable or gettimeofday as a fallback.
55070
55071 2013-05-03  Joseph Myers  <joseph@codesourcery.com>
55072
55073         * math/libm-test.inc (lgamma_test): Consistently use TEST_f_f1 to
55074         test signgam value.
55075
55076         * math/libm-test.inc (hypot_test): Do not use
55077         IGNORE_ZERO_INF_SIGN.
55078
55079 2013-05-03  Andreas Jaeger  <aj@suse.de>
55080
55081         * sysdeps/gnu/netinet/tcp.h (TCP_TIMESTAMP): New value, from
55082         Linux 3.9.
55083         * sysdeps/unix/sysv/linux/bits/socket.h (PF_VSOCK, AF_VSOCK): Add.
55084         (PF_MAX): Adjust for VSOCK change.
55085
55086 2013-05-03  Adhemerval Zanella  <azanella@linux.vnet.ibm.com>
55087
55088         * sysdeps/powerpc/fpu/libm-test-ulps: Update.
55089
55090 2013-05-02  Carlos O'Donell  <carlos@redhat.com>
55091
55092         [BZ #15264]
55093         * localedata/locales/en_CA (LC_MESSAGES): Define yesstr and nostr.
55094         * localedata/locales/es_AR (LC_MESSAGES): Copy es_ES.
55095         * localedata/locales/es_ES (LC_MESSAGES): Define yesstr and nostr.
55096
55097 2013-05-02  David S. Miller  <davem@davemloft.net>
55098
55099         * sysdeps/sparc/fpu/libm-test-ulps: Update.
55100
55101 2013-05-01  Ondřej Bílka  <neleai@seznam.cz>
55102
55103         * string/bits/string2.h (__strcmp_cg): Call __strcmp_gc.
55104
55105 2013-05-01  Roland McGrath  <roland@hack.frob.com>
55106
55107         * sysdeps/posix/opendir.c: Include <sys/param.h> to get MIN/MAX macros.
55108
55109 2013-05-01  Richard Smith  <richard@metafoo.co.uk>
55110
55111         [BZ #14952]
55112         * misc/sys/cdefs.h (__extern_inline, __extern_always_inline)
55113         [__GNUC__ && (__GNUC_STDC_INLINE__ || __GNUC_GNU_INLINE__)]:
55114         Use __attribute__ ((__gnu_inline__)).
55115         [__GNUC__ && !(__GNUC_STDC_INLINE__ || __GNUC_GNU_INLINE__)]:
55116         Don't use __attribute__ ((__gnu_inline__)).
55117
55118 2013-05-01  Joseph Myers  <joseph@codesourcery.com>
55119
55120         [BZ #15423]
55121         * math/s_catan.c (__catan): Handle small real or imaginary part of
55122         input specially to avoid spurious underflow.
55123         * math/s_catanf.c (__catanf): Likewise.
55124         * math/s_catanh.c (__catanh): Likewise.
55125         * math/s_catanhf.c (__catanhf): Likewise.
55126         * math/s_catanhl.c (__catanhl): Likewise.
55127         * math/s_catanl.c (__catanl): Likewise.
55128         * math/libm-test.inc (catan_test): Add more tests.
55129         (catanh_test): Likewise.
55130         * sysdeps/i386/fpu/libm-test-ulps: Update.
55131         * sysdeps/x86_64/fpu/libm-test-ulps: Likewise.
55132
55133 2013-04-30  Adhemerval Zanella  <azanella@linux.vnet.ibm.com>
55134
55135         * sysdeps/powerpc/fpu/libm-test-ulps: Update.
55136
55137 2013-04-30  Joseph Myers  <joseph@codesourcery.com>
55138
55139         [BZ #15416]
55140         * math/s_catan.c (__catan): Compute expressions 1 - x^2 - y^2 more
55141         accurately for denominator in atan2.
55142         * math/s_catanf.c (__catanf): Likewise.
55143         * math/s_catanh.c (__catanh): Likewise.
55144         * math/s_catanhf.c (__catanhf): Likewise.
55145         * math/s_catanhl.c (__catanhl): Likewise.
55146         * math/s_catanl.c (__catanl): Likewise.
55147         * math/libm-test.inc (catan_test): Add more tests.
55148         (catanh_test): Likewise.
55149         * sysdeps/i386/fpu/libm-test-ulps: Update.
55150         * sysdeps/x86_64/fpu/libm-test-ulps: Likewise.
55151
55152 2013-04-30  Siddhesh Poyarekar  <siddhesh@redhat.com>
55153
55154         * sysdeps/ieee754/dbl-64/s_sin.c: Format code.
55155
55156         * benchtests/Makefile (bench): Remove slow benchmarks.
55157         * benchtests/atan-inputs: Add slow benchmark inputs.
55158         * benchtests/bench-modf.c (NUM_VARIANTS): Define.
55159         (BENCH_FUNC): Accept variant offset.
55160         (VARIANT): Define.
55161         * benchtests/bench-skeleton.c (main): Run benchmark for each
55162         variant.
55163         * benchtests/cos-inputs: Add slow benchmark inputs.
55164         * benchtests/exp-inputs: Likewise.
55165         * benchtests/pow-inputs: Likewise.
55166         * benchtests/sin-inputs: Likewise.
55167         * benchtests/slowatan-inputs: Remove.
55168         * benchtests/slowatan.c: Remove.
55169         * benchtests/slowcos-inputs: Remove.
55170         * benchtests/slowcos.c: Remove.
55171         * benchtests/slowexp-inputs: Remove.
55172         * benchtests/slowexp.c: Remove.
55173         * benchtests/slowpow-inputs: Remove.
55174         * benchtests/slowpow.c: Remove.
55175         * benchtests/slowsin-inputs: Remove.
55176         * benchtests/slowsin.c: Remove.
55177         * benchtests/slowtan-inputs: Remove.
55178         * benchtests/slowtan.c: Remove.
55179         * benchtests/tan-inputs: Add slow benchmark inputs.
55180         * scripts/bench.pl: Parse comments and directives.
55181
55182         * benchtests/Makefile: Remove *-ITER.  Define BENCH_DURATION
55183         in CPPFLAGS.
55184         ($(objpfx)bench-%.c): Remove *-ITER.
55185         * benchtests/bench-modf.c: Remove definition of ITER.
55186         * benchtests/bench-skeleton.c (TIMESPEC_AFTER): New macro.
55187         (main): Loop for DURATION seconds instead of fixed number of
55188         iterations.
55189         * scripts/bench.pl: Don't expect iterations in parameters.
55190
55191 2013-04-29  Roland McGrath  <roland@hack.frob.com>
55192
55193         * io/fchdir.c (__fchdir): Renamed from fchdir.
55194         (fchdir): Define as weak alias.
55195
55196 2013-04-29  Joseph Myers  <joseph@codesourcery.com>
55197
55198         * math/libm-test.inc (ERRNO_UNCHANGED): New macro.
55199         (ERRNO_EDOM): Likewise.
55200         (ERRNO_ERANGE): Likewise.
55201         (noErrnoTests): New variable.
55202         (init_max_error): Set errno to 0.
55203         (test_single_errno): New function.
55204         (test_errno): Likewise.
55205         (check_float_internal): Call test_errno.  Set errno to 0.
55206         (check_complex): Refer to errno tests in comment.
55207         (check_int): Call test_errno.  Set errno to 0.
55208         (check_long): Likewise.
55209         (check_bool): Likewise.
55210         (check_longlong): Likewise.
55211         (cos_test): Use ERRNO_* flags for errno tests instead of
55212         check_int.
55213         (expm1_test): Likewise.
55214         (fmod_test): Likewise.
55215         (ilogb_test): Likewise.
55216         (lgamma_test): Likewise.
55217         (pow_test): Likewise.
55218         (remainder_test): Likewise.
55219         (sin_test): Likewise.
55220         (tan_test): Likewise.
55221         (yn_test): Likewise.
55222         (initialize): Set errno to 0.
55223         (main): Print number of errno tests.
55224         * math/gen-libm-test.pl (parse_args): Allow ERRNO flags on tests.
55225
55226 2013-04-29  Andreas Jaeger  <aj@suse.de>
55227
55228         [BZ #15084]
55229         * resolv/res_debug.c (p_option): Fix strings for RES_USEBSTRING
55230         and RES_USEVC.
55231
55232         [BZ #15085]
55233         * resolv/resolv.h (RES_NOCHECKNAME): Mark as unimplemented.
55234         * resolv/res_debug.c (p_option): Mark RES_NOCHECKNAME as
55235         unimplemented.
55236
55237         [BZ #15380]
55238         * stdlib/random.c (__initstate): Return NULL if
55239         __initstate fails.
55240
55241         [BZ #15086]
55242         * resolv/res_debug.c (p_option): Handle RES_NOALIASES,
55243         RES_KEEPTSIG, RES_BLAST, RES_NOIP6DOTINT, RES_SNGLKUP,
55244         RES_SNGLKUPREOP.
55245
55246 2013-04-29  Adhemerval Zanella  <azanella@linux.vnet.ibm.com>
55247
55248         * sysdeps/powerpc/fpu/libm-test-ulps: Update.
55249
55250 2013-04-29  Joseph Myers  <joseph@codesourcery.com>
55251
55252         * math/libm-test.inc (cacos_test): Add missing semicolons at ends
55253         of individual tests.
55254         (casin_test): Likewise.
55255         (casinh_test): Likewise.
55256
55257 2013-04-27  Joseph Myers  <joseph@codesourcery.com>
55258
55259         [BZ #15409]
55260         * math/s_catan.c (__catan): Handle arguments with large real or
55261         imaginary part separately without squaring.
55262         * math/s_catanf.c (__catanf): Likewise.
55263         * math/s_catanh.c (__catanh): Likewise.
55264         * math/s_catanhf.c (__catanhf): Likewise.
55265         * math/s_catanhl.c [LDBL_MANT_DIG == 106] (LDBL_EPSILON): Undefine
55266         and redefine.
55267         (__catanhl): Handle arguments with large real or imaginary part
55268         separately without squaring.
55269         * math/s_catanl.c [LDBL_MANT_DIG == 106] (LDBL_EPSILON): Undefine
55270         and redefine.
55271         (__catanl): Handle arguments with large real or imaginary part
55272         separately without squaring.
55273         * math/libm-test.inc (catan_test): Add more tests.
55274         (catanh_test): Likewise.
55275         * sysdeps/i386/fpu/libm-test-ulps: Update.
55276         * sysdeps/x86_64/fpu/libm-test-ulps: Likewise.
55277
55278 2013-04-27  Andreas Jaeger  <aj@suse.de>
55279
55280         [BZ #15007]
55281         * stdlib/stdlib.h: Update guards for qecvt.
55282         * stdlib/bits/stdlib-ldbl.h: Sync guards for qecvt etc with
55283         <stdlib.h>.
55284
55285 2013-04-27  Allan McRae  <allan@archlinux.org>
55286
55287         * sysdeps/i386/fpu/libm-test-ulps: Update.
55288
55289 2013-04-26  Joseph Myers  <joseph@codesourcery.com>
55290
55291         [BZ #15406]
55292         * math/s_catan.c: Include <float.h>.
55293         (__catan): Ensure underflow exception occurs for underflowed
55294         result.
55295         * math/s_catanf.c: Include <float.h>.
55296         (__catanf): Ensure underflow exception occurs for underflowed
55297         result.
55298         * math/s_catanh.c: Include <float.h>.
55299         (__catanh): Ensure underflow exception occurs for underflowed
55300         result.
55301         * math/s_catanhf.c: Include <float.h>.
55302         (__catanhf): Ensure underflow exception occurs for underflowed
55303         result.
55304         * math/s_catanhl.c: Include <float.h>.
55305         (__catanhl): Ensure underflow exception occurs for underflowed
55306         result.
55307         * math/s_catanl.c: Include <float.h>.
55308         (__catanl): Ensure underflow exception occurs for underflowed
55309         result.
55310         * math/libm-test.inc (catan_test): Add more tests.
55311         (catanh_test): Likewise.
55312
55313         [BZ #15405]
55314         * math/s_ccosh.c (__ccosh): Ensure underflow exception occurs for
55315         underflowed result.
55316         * math/s_ccoshf.c (__ccoshf): Likewise.
55317         * math/s_ccoshl.c (__ccoshl): Likewise.
55318         * math/s_csin.c (__csin): Likewise.
55319         * math/s_csinf.c (__csinf): Likewise.
55320         * math/s_csinh.c (__csinh): Likewise.
55321         * math/s_csinhf.c (__csinhf): Likewise.
55322         * math/s_csinhl.c (__csinhl): Likewise.
55323         * math/s_csinl.c (__csinl): Likewise.
55324         * math/libm-test.inc (ccos_test): Add more tests.
55325         (ccosh_test): Likewise.
55326         (csin_test): Likewise.
55327         (csinh_test): Likewise.
55328
55329 2013-04-26  Adhemerval Zanella  <azanella@linux.vnet.ibm.com>
55330
55331         * sysdeps/powerpc/power5/fpu/s_modf.c: Moved to ...
55332         * sysdeps/powerpc/power5+/fpu/s_modf.c: ... this.
55333         * sysdeps/powerpc/power5/fpu/s_modff.c: Moved to ...
55334         * sysdeps/powerpc/power5+/fpu/s_modff.c: ... this.
55335         * sysdeps/powerpc/powerpc32/power5+/Implies: Add powerpc/power5+ and
55336         powerpc/power5+/fpu folders.
55337         * sysdeps/powerpc/powerpc64/power5+/Implies: Likewise.
55338
55339
55340 2013-04-26  Markus Trippelsdorf  <markus@trippelsdorf.de>
55341
55342         * sysdeps/x86_64/fpu/libm-test-ulps: Update.
55343
55344 2013-04-25  Joseph Myers  <joseph@codesourcery.com>
55345
55346         * elf/Makefile [$(config-machine) = x86_64] (tests): Remove
55347         additions to variable.
55348         [$(config-machine) = x86_64] (modules-names): Likewise.
55349         ($(objpfx)tst-audit3): Remove dependency.
55350         ($(objpfx)tst-audit3.out): Likewise.
55351         ($(objpfx)tst-audit4): Likewise.
55352         ($(objpfx)tst-audit4.out): Likewise.
55353         ($(objpfx)tst-audit5): Likewise.
55354         ($(objpfx)tst-audit5.out): Likewise.
55355         ($(objpfx)tst-audit6): Likewise.
55356         ($(objpfx)tst-audit6.out): Likewise.
55357         ($(objpfx)tst-audit7): Likewise.
55358         ($(objpfx)tst-audit7.out): Likewise.
55359         (tst-audit3-ENV): Remove variable.
55360         (tst-audit4-ENV): Likewise.
55361         (tst-audit5-ENV): Likewise.
55362         (tst-audit6-ENV): Likewise.
55363         (tst-audit7-ENV): Likewise.
55364         [$(config-cflags-avx) = yes] (AVX-CFLAGS): Likewise.
55365         [$(config-cflags-avx) = yes] (CFLAGS-tst-audit4.c): Remove
55366         addition to variable.
55367         [$(config-cflags-avx) = yes] (CFLAGS-tst-auditmod4a.c): Likewise.
55368         [$(config-cflags-avx) = yes] (CFLAGS-tst-auditmod4b.c): Likewise.
55369         [$(config-cflags-avx) = yes] (CFLAGS-tst-auditmod6b.c): Likewise.
55370         [$(config-cflags-avx) = yes] (CFLAGS-tst-auditmod6c.c): Likewise.
55371         [$(config-cflags-avx) = yes] (CFLAGS-tst-auditmod7b.c): Likewise.
55372         * sysdeps/x86_64/Makefile [$(subdir) = elf] (tests): Add
55373         tst-audit3, tst-audit4 and tst-audit5.
55374         [$(subdir) = elf && $(config-cflags-avx) = yes] (tests): Add
55375         tst-audit6 and tst-audit7.
55376         [$(subdir) = elf] (modules-names): Add audit modules for those
55377         tests.
55378         [$(subdir) = elf] ($(objpfx)tst-audit3): New dependency.
55379         [$(subdir) = elf] ($(objpfx)tst-audit3.out): Likewise.
55380         [$(subdir) = elf] ($(objpfx)tst-audit4): Likewise.
55381         [$(subdir) = elf] ($(objpfx)tst-audit4.out): Likewise.
55382         [$(subdir) = elf] ($(objpfx)tst-audit5): Likewise.
55383         [$(subdir) = elf] ($(objpfx)tst-audit5.out): Likewise.
55384         [$(subdir) = elf] ($(objpfx)tst-audit6): Likewise.
55385         [$(subdir) = elf] ($(objpfx)tst-audit6.out): Likewise.
55386         [$(subdir) = elf] ($(objpfx)tst-audit7): Likewise.
55387         [$(subdir) = elf] ($(objpfx)tst-audit7.out): Likewise.
55388         [$(subdir) = elf] (tst-audit3-ENV): New variable.
55389         [$(subdir) = elf] (tst-audit4-ENV): Likewise.
55390         [$(subdir) = elf] (tst-audit5-ENV): Likewise.
55391         [$(subdir) = elf] (tst-audit6-ENV): Likewise.
55392         [$(subdir) = elf] (tst-audit7-ENV): Likewise.
55393         [$(subdir) = elf && $(config-cflags-avx) = yes] (AVX-CFLAGS):
55394         Likewise.
55395         [$(subdir) = elf && $(config-cflags-avx) = yes]
55396         (CFLAGS-tst-audit4.c): Append $(AVX-CFLAGS).
55397         [$(subdir) = elf && $(config-cflags-avx) = yes]
55398         (CFLAGS-tst-auditmod4a.c): Likewise.
55399         [$(subdir) = elf && $(config-cflags-avx) = yes]
55400         (CFLAGS-tst-auditmod4b.c): Likewise.
55401         [$(subdir) = elf && $(config-cflags-avx) = yes]
55402         (CFLAGS-tst-auditmod6b.c): Likewise.
55403         [$(subdir) = elf && $(config-cflags-avx) = yes]
55404         (CFLAGS-tst-auditmod6c.c): Likewise.
55405         [$(subdir) = elf && $(config-cflags-avx) = yes]
55406         (CFLAGS-tst-auditmod7b.c): Likewise.
55407         * elf/tst-audit3.c: Move to ...
55408         * sysdeps/x86_64/tst-audit3.c: ... here.
55409         * elf/tst-audit4.c: Move to ...
55410         * sysdeps/x86_64/tst-audit4.c: ... here.
55411         * elf/tst-audit5.c: Move to ...
55412         * sysdeps/x86_64/tst-audit5.c: ... here.
55413         * elf/tst-audit6.c: Move to ...
55414         * sysdeps/x86_64/tst-audit6.c: ... here.
55415         * elf/tst-audit7.c: Move to ...
55416         * sysdeps/x86_64/tst-audit7.c: ... here.
55417         * elf/tst-auditmod3a.c: Move to ...
55418         * sysdeps/x86_64/tst-auditmod3a.c: ... here.
55419         * elf/tst-auditmod3b.c: Move to ...
55420         * sysdeps/x86_64/tst-auditmod3b.c: ... here.
55421         * elf/tst-auditmod4a.c: Move to ...
55422         * sysdeps/x86_64/tst-auditmod4a.c: ... here.
55423         * elf/tst-auditmod4b.c: Move to ...
55424         * sysdeps/x86_64/tst-auditmod4b.c: ... here.
55425         * elf/tst-auditmod5a.c: Move to ...
55426         * sysdeps/x86_64/tst-auditmod5a.c: ... here.
55427         * elf/tst-auditmod5b.c: Move to ...
55428         * sysdeps/x86_64/tst-auditmod5b.c: ... here.
55429         * elf/tst-auditmod6a.c: Move to ...
55430         * sysdeps/x86_64/tst-auditmod6a.c: ... here.
55431         * elf/tst-auditmod6b.c: Move to ...
55432         * sysdeps/x86_64/tst-auditmod6b.c: ... here.
55433         * elf/tst-auditmod6c.c: Move to ...
55434         * sysdeps/x86_64/tst-auditmod6c.c: ... here.
55435         * elf/tst-auditmod7a.c: Move to ...
55436         * sysdeps/x86_64/tst-auditmod7a.c: ... here.
55437         * elf/tst-auditmod7b.c: Move to ...
55438         * sysdeps/x86_64/tst-auditmod7b.c: ... here.
55439
55440 2013-04-25  Paul Pluzhnikov  <ppluzhnikov@google.com>
55441
55442         [BZ #15366]
55443         * sysdeps/generic/inttypes.h (PRId8, PRId16, etc.):
55444         define unconditionally.
55445         * sysdeps/generic/stdint.h (INT8_MIN, INT16_MIN, etc.):
55446         define unconditionally.
55447         (INT8_C, INT16_C, etc.): Likewise.
55448
55449 2013-04-25  Maciej W. Rozycki  <macro@codesourcery.com>
55450
55451         * csu/libc-start.c (__libc_start_main) [!SHARED]: Declare
55452         __ehdr_start with hidden visibility.
55453
55454         * soft-fp/op-common.h (_FP_SQRT): s/sNAN/NAN/ in a comment.
55455
55456 2013-04-24  Carlos O'Donell  <carlos@redhat.com>
55457
55458         * math/libm-test.inc (cos_test): Use accurate hex constants.
55459         (sincost_test): Likewise.
55460
55461 2013-04-24  Joseph Myers  <joseph@codesourcery.com>
55462
55463         * math/libm-test.inc (catan_test): Add more tests.
55464         (catanh_test): Likewise.
55465
55466         * math/s_catanf.c (__catanf): Use suffixed floating-point
55467         constants.
55468         * math/s_catanhf.c (__catanhf): Likewise.
55469         * math/s_catanhl.c (__catanhl): Likewise.
55470         * math/s_catanl.c (__catanl): Likewise.
55471
55472         [BZ #15394]
55473         * math/s_catan.c (__catan): Calculate imaginary part of result
55474         with log1p not log unless computing log of number close to 0.
55475         * math/s_catanf.c (__catanf): Likewise.
55476         * math/s_catanl.c (__catanl): Likewise.
55477         * math/s_catanh.c (__catanh): Calculate real part of result with
55478         log1p not log unless computing log of number close to 0.
55479         * math/s_catanhf.c (__catanhf): Likewise.
55480         * math/s_catanhl.c (__catanhl): Likewise.
55481         * math/libm-test.inc (catan_test): Add more tests.
55482         (catanh_test): Likewise.
55483         * sysdeps/i386/fpu/libm-test-ulps: Update.
55484         * sysdeps/x86_64/fpu/libm-test-ulps: Likewise.
55485
55486 2013-04-24  Siddhesh Poyarekar  <siddhesh@redhat.com>
55487
55488         * benchtests/Makefile: Mention files in which fast and slow
55489         paths of math functions are implemented.
55490
55491 2013-04-23  Roland McGrath  <roland@hack.frob.com>
55492
55493         * sysdeps/posix/timespec_get.c: New file.
55494
55495 2013-04-23  Adhemerval Zanella  <azanella@linux.vnet.ibm.com>
55496
55497         * sysdeps/powerpc/power5/fpu/s_modf.c: New file: modf optimization for
55498         POWER.
55499         * sysdeps/powerpc/power5/fpu/s_modff.c: New file: modff optimization
55500         for POWER.
55501         * sysdeps/powerpc/powerpc64/power5/Implies: Add powerpc/power5 and
55502         powerpc/power5/fpu folders.
55503         * sysdeps/powerpc/powerpc32/power5/Implies: Likewise.
55504         * benchtests/Makefile: Add modf testcase.
55505         * benchtests/bench-modf.c: New file: Benchmark test for mo
55506
55507 2013-04-23  Siddhesh Poyarekar  <siddhesh@redhat.com>
55508
55509         [BZ #14888]
55510         * time/Makefile (tests): Add tst-strptime-whitespace.
55511         * time/strptime_l.c (get_number): Use ISSPACE.
55512         (__strptime_internal): Likewise.
55513         * time/tst-strptime-whitespace.c: New test case.
55514
55515 2013-04-23  Andreas Schwab  <schwab@linux-m68k.org>
55516
55517         * nss/nss_files/files-init.c (TF): Don't initialize flexible array
55518         member.
55519         (_nss_files_init): Set it here.
55520
55521 2013-04-23  Heiko Carstens  <heiko.carstens@de.ibm.com>
55522
55523         * sysdeps/unix/sysv/linux/s390/bits/statfs.h: Change types of
55524         f_type, f_bsize, f_namelen, f_frsize, f_flags,and f_spare to
55525         unsigned.
55526
55527 2013-04-22  Jan-Benedict Glaw  <jbglaw@getslash.de>
55528
55529         * nss/getent.c (shadow_keys): Call endspent, not endpwent.
55530
55531 2013-04-22  Siddhesh Poyarekar  <siddhesh@redhat.com>
55532
55533         * sysdeps/posix/getaddrinfo.c (getaddrinfo): Compute results
55534         size just once.
55535
55536 2013-04-21  David S. Miller  <davem@davemloft.net>
55537
55538         * po/ru.po: Update Russion translation from translation project.
55539
55540 2013-04-17  Adam Conrad  <adconrad@0c3.net>
55541
55542         * sysdeps/unix/sysv/linux/sys/fsuid.h: Remove __wur from setfsuid
55543         and setfsgid.
55544
55545 2013-04-17  Carlos O'Donell  <carlos@redhat.com>
55546
55547         * configure.in: Remove i386 configure warning. Remove i386 case.
55548         * configure: Regenerate.
55549         * sysdeps/i386/configure.in: Raise error if config_machine is i386.
55550         Add example to error message.
55551         * sysdeps/i386/configure: Regenerate.
55552
55553 2013-04-17  Siddhesh Poyarekar  <siddhesh@redhat.com>
55554
55555         * benchtests/Makefile (bench): Add cos, tan, slowcos and
55556         slowtan.
55557         * benchtests/cos-inputs: New file.
55558         * benchtests/slowcos-inputs: New file.
55559         * benchtests/slowcos.c: New file.
55560         * benchtests/slowtan-inputs: New file.
55561         * benchtests/slowtan.c: New file.
55562         * benchtests/tan-inputs: New file.
55563
55564 2013-04-16  Roland McGrath  <roland@hack.frob.com>
55565
55566         * rt/tst-aio7.c (do_test): Don't test O_RDONLY fd case, which is now
55567         considered kosher.
55568
55569 2013-04-16  Siddhesh Poyarekar  <siddhesh@redhat.com>
55570
55571         * benchtests/Makefile: Include cppflags-iterator.mk to add
55572         -DNOT_IN_libc=1 to CPPFLAGS of all benchmark programs.
55573
55574         * Makefile.in (bench-clean): New target.
55575         * benchtests/Makefile (bench-clean): Likewise.
55576
55577 2013-04-16  David Holsgrove  <david.holsgrove@xilinx.com>
55578
55579         * elf/elf.h: Add EM_MICROBLAZE and MicroBlaze relocations.
55580
55581 2013-04-15  Thomas Schwinge  <thomas@codesourcery.com>
55582
55583         * stdio-common/tstdiomisc.c: Fix coding-style violation.
55584
55585 2013-04-15  Andreas Schwab  <schwab@suse.de>
55586
55587         * nscd/grpcache.c (cache_addgr): Properly check for short write.
55588         * nscd/initgrcache.c (addinitgroupsX): Likewise.
55589         * nscd/pwdcache.c (cache_addpw): Likewise.
55590         * nscd/servicescache.c (cache_addserv): Likewise.  Don't write
55591         more than recsize.
55592
55593 2013-04-15  Siddhesh Poyarekar  <siddhesh@redhat.com>
55594
55595         * benchtests/Makefile (bench): Write all output to
55596         bench-out.tmp together.
55597
55598 2013-04-15  Andreas Schwab  <schwab@suse.de>
55599
55600         * nscd/nscd.c (main): Don't fork again after closing files.
55601
55602 2013-04-15  Siddhesh Poyarekar  <siddhesh@redhat.com>
55603
55604         * libio/tst-fwrite-error.c (do_test): Fix BUF array definition.
55605
55606         * benchtests/Rules (bench-deps): Collect dependencies into a
55607         single variable.  Add Makefile to dependencies.
55608         ($(objpfx)bench-%.c): Depend on bench-deps.
55609
55610 2013-04-12  Roland McGrath  <roland@hack.frob.com>
55611             Xavier Roche  <roche+kml2@exalead.com>
55612
55613         [BZ #15361]
55614         * sysdeps/pthread/aio_fsync.c (aio_fsync): Don't check open modes,
55615         just that it's a file descriptor.
55616         * manual/llio.texi (Synchronizing AIO Operations): Update description
55617         for EBADF error from aio_fsync.
55618
55619 2013-04-12  Siddhesh Poyarekar  <siddhesh@redhat.com>
55620
55621         * Rules (bench): Move target definition...
55622         * benchtests/Makefile: ... here.
55623
55624 2013-04-11  Carlos O'Donell  <carlos@redhat.com>
55625
55626         * math/libm-test.inc (cos_test): Fix PI/2 test.
55627         (sincos_test): Likewise.
55628         * sysdeps/x86_64/fpu/libm-test-ulps: Regenerate.
55629         * sysdeps/i386/fpu/libm-test-ulps: Regenerate.
55630
55631 2013-04-11  Andreas Schwab  <schwab@suse.de>
55632
55633         [BZ #13988]
55634         * stdio-common/vfscanf.c (_IO_vfwscanf): When parsing a float
55635         accept exponent character only when digits were seen.
55636         * stdio-common/Makefile (tests): Add bug26.
55637         * stdio-common/bug26.c: New file.
55638
55639         [BZ #14293]
55640         * elf/dl-load.c (_dl_init_paths): Mark decomposed RUNPATH as
55641         non-freeable.
55642
55643 2013-04-11  Siddhesh Poyarekar  <siddhesh@redhat.com>
55644
55645         * Makeconfig (rtld-prefix): Define built linker prefix.
55646         * Rules (run-bench): Use it.
55647         * math/Makefile (run-regen-ulps): Likewise.
55648
55649         * Rules (bench): Remove eval.
55650
55651 2013-04-10  Siddhesh Poyarekar  <siddhesh@redhat.com>
55652             Roland McGrath  <roland@hack.frob.com>
55653             Ondrej Bilka  <neleai@seznam.cz>
55654
55655         [BZ #15346]
55656         * time/getdate.c: Include ctype.h and alloca.h.
55657         (__getdate_r): Trim leading and trailing spaces of input.
55658         * time/tst-getdate.c (tests): Add tests with leading and
55659         trailing spaces.
55660
55661 2013-04-08  Roland McGrath  <roland@hack.frob.com>
55662
55663         [BZ #14280]
55664         * sysdeps/mach/hurd/bits/ioctls.h (_IOTS): Cast to enum __ioctl_datum
55665         when computing value.
55666
55667 2013-04-06  Carlos O'Donell  <carlos@redhat.com>
55668
55669         * math/README.libm-test (How can I generate "libm-test-ulps"?):
55670         Use testrun.sh to run libm tests.
55671
55672         [BZ #15309]
55673         * elf/dl-open.c (dl_open_worker): memset all of seen array.
55674
55675 2013-04-06  Marko Myllynen  <myllynen@redhat.com>
55676
55677         [BZ #15264]
55678         * locales/fi_FI (LC_MESSAGES): Define yesstr and nostr.
55679
55680 2013-04-06  Carlos O'Donell  <carlos@redhat.com>
55681
55682         * Makefile.in (regen-ulps): New target.
55683         * math/Makefile [ifneq (no,$(PERL)]: Declare regen-ulps with .PHONY.
55684         [ifneq (no,$(PERL)] (run-regen-ulps): New variable.
55685         [ifneq (no,$(PERL)] (regen-ulps): New target.
55686         [ifeq (no,$(PERL)] (regen-ulps): New target.
55687         * math/libm-test.inc (ulps_file_name): Define.
55688         (output_dir): New variable.
55689         (options): Add "output-dir" option.
55690         (parse_opt): Handle 'o' case.
55691         (main): If output_dir is non-NULL use it as a prefix
55692         otherwise use "".
55693         * math/README.libm-test: Update `How can I generate "libm-test-ulps"?'
55694
55695 2013-04-06  Carlos O'Donell  <carlos@redhat.com>
55696
55697         [BZ #10060, #10062]
55698         * aclocal.m4 (LIBC_COMPILER_BUILTIN_INLINED): New macro.
55699         * sysdeps/i386/configure.in: Use LIBC_COMPILER_BUILTIN_INLINED and
55700         fail configure if __sync_val_compare_and_swap is not inlined.
55701         * sysdeps/i386/configure: Regenerate.
55702         * configure.in: Build for i686 when configured for i386.
55703         * configure: Regenerate.
55704         * README: Remove i386 reference.
55705
55706 2013-04-06  Carlos O'Donell  <carlos@redhat.com>
55707
55708         * sysdeps/s390/s390-32/sysdep.h: Undefine PSEUDO before redefinition.
55709         * sysdeps/s390/s390-64/sysdep.h: Likewise.
55710
55711 2013-04-05  Thomas Schwinge  <thomas@codesourcery.com>
55712
55713         * stdio-common/tstdiomisc.c (snanval, msnanval, lsnanval)
55714         (lmsnanval): New variables.
55715         (F): Add conversion tests.
55716         * stdlib/tst-strtod6.c (do_test): Add issignaling tests.
55717         * stdlib/Makefile ($(objpfx)tst-strtod6): Depend on $(link-libm).
55718
55719         * stdio-common/tstdiomisc.c (F): Properly collect individual
55720         tests' results.
55721
55722         [BZ #14686, #15336]
55723         * sysdeps/ieee754/dbl-64/urem.h (nNAN, NAN): Remove definitions.
55724         * sysdeps/ieee754/dbl-64/e_remainder.c (__ieee754_remainder):
55725         Instead, use input NaN values or generate a qNaN by arithmetic
55726         operation.  Also fix bugs to comply with the standard.
55727         * math/libm-test.inc (remainder_test): Add more tests.
55728
55729         [BZ #15335, #15342]
55730         * sysdeps/ieee754/dbl-64/upow.h (NaNQ): Remove definitions.
55731         * sysdeps/ieee754/dbl-64/e_pow.c (__ieee754_pow): Instead, use
55732         input NaN values or generate a qNaN by arithmetic operation.
55733
55734         * sysdeps/ieee754/dbl-64/e_pow.c (__ieee754_pow): Remove
55735         unreachable code.
55736
55737         * sysdeps/ieee754/dbl-64/usncs.h (NAN): Removed unused
55738         definitions.
55739
55740 2013-04-03  Joseph Myers  <joseph@codesourcery.com>
55741
55742         [BZ #14478]
55743         * math/s_cexp.c (__cexp): Ensure underflow exception occurs for
55744         underflowed result.
55745         * math/s_cexpf.c (__cexpf): Likewise.
55746         * math/s_cexpl.c (__cexpl): Likewise.
55747         * math/libm-test.inc (cexp_test): Add more tests.
55748
55749 2013-04-03  Andreas Schwab  <schwab@suse.de>
55750
55751         [BZ #15330]
55752         * sysdeps/posix/getaddrinfo.c (getaddrinfo): Allocate results and
55753         order arrays from heap if bigger than alloca cutoff.
55754
55755 2013-04-03  Thomas Schwinge  <thomas@codesourcery.com>
55756
55757         * sysdeps/i386/fpu/math-tests.h (SNAN_TESTS_float)
55758         (SNAN_TESTS_double): Refer to GCC PR56831.
55759         * sysdeps/powerpc/math-tests.h (SNAN_TESTS_TYPE_CAST): Refer to
55760         GCC PR56828.
55761
55762 2013-04-03  Siddhesh Poyarekar  <siddhesh@redhat.com>
55763
55764         * Rules (bench): Move bench.out after the run is complete.
55765
55766         * Rules (bench): Echo currently running benchmark.
55767
55768         * benchtests/Makefile (bench): Add atan and slowatan.
55769         * benchtests/atan-inputs: New file.
55770         * benchtests/slowatan-inputs: New file.
55771         * benchtests/slowatan.c: New file.
55772
55773         * sysdeps/ieee754/dbl-64/mpa.h (TWO): Remove definition.
55774         * sysdeps/ieee754/dbl-64/mpatan.c (__mpatan): Replace TWO with
55775         its value.
55776
55777         [BZ #15305]
55778         * sysdeps/unix/sysv/linux/kernel-features.h
55779         [__LINUX_KERNEL_VERSION >= 0x02061d]: Define
55780         __ASSUME_XFS_RESTRICTED_CHOWN.
55781         * sysdeps/unix/sysv/linux/pathconf.c
55782         (__statfs_chown_restricted) [!__ASSUME_XFS_RESTRICTED_CHOWN]:
55783         Save and restore errno.
55784
55785 2013-04-02  Joseph Myers  <joseph@codesourcery.com>
55786
55787         [BZ #15327]
55788         * math/s_cacosh.c (__cacosh): Implement for finite nonzero
55789         arguments using __kernel_casinh.
55790         * math/s_cacoshf.c (__cacoshf): Implement for finite nonzero
55791         arguments using __kernel_casinhf.
55792         * math/s_cacoshl.c (__cacoshl): Implement for finite nonzero
55793         arguments using __kernel_casinhl.
55794         * math/libm-test.inc (cacosh_test): Add more tests.
55795         * sysdeps/i386/fpu/libm-test-ulps: Update.
55796         * sysdeps/x86_64/fpu/libm-test-ulps: Likewise.
55797
55798 2013-04-02  Siddhesh Poyarekar  <siddhesh@redhat.com>
55799
55800         * sysdeps/ieee754/dbl-64/mpa.h (HALFRAD): Define as TWO23.
55801         * sysdeps/ieee754/dbl-64/mpexp.c (__mpexp): Use mantissa_t.
55802
55803         * bench/Makefile (bench): Add sin and slowsin.
55804         * benchtests/sin-inputs: New file.
55805         * benchtests/slowsin-inputs: New file.
55806         * benchtests/slowsin.c: New file.
55807
55808         * benchtests/Makefile: Add benchmarks for slowpow and slowexp.
55809         (bench): Add slowexp and slowpow.
55810         (exp-ITER): Increase iterations.
55811         (pow-ITER): Likewise.
55812         * benchtests/exp-inputs: Change input.
55813         * benchtests/pow-inputs: Likewise.
55814         * benchtests/slowexp-inputs: New file.
55815         * benchtests/slowexp.c: New file.
55816         * benchtests/slowpow-inputs: New file.
55817         * benchtests/slowpow.c: New file.
55818
55819 2013-04-02  Adhemerval Zanella  <azanella@linux.vnet.ibm.com>
55820
55821         * sysdeps/powerpc/powerpc32/fpu/s_rint.S: Remove branch prediction
55822         instructions.
55823         * sysdeps/powerpc/powerpc32/fpu/s_rintf.S: Likewise.
55824         * sysdeps/powerpc/powerpc64/fpu/s_rint.S: Likewise.
55825         * sysdeps/powerpc/powerpc64/fpu/s_rintf.S: Likewise.
55826         * benchtests/Makefile: Add rint benchtest.
55827         * benchtests/rint-inputs: Input for rint benchtest.
55828
55829 2013-04-02  Thomas Schwinge  <thomas@codesourcery.com>
55830
55831         * Versions.def (libm): Add GLIBC_2.18.
55832         * include/math.h [!_ISOMAC] (__issignaling, __issignalingf): Add
55833         hidden libm prototypes.
55834         [!_ISOMAC && !__NO_LONG_DOUBLE_MATH] (__issignalingl): Likewise.
55835         * math/Makefile (libm-calls): Add s_issignaling.
55836         * math/Versions (libm: GLIBC_2.18): Add __issignaling,
55837         __issignalingf, __issignalingl.  Adjust all libm.abilist files.
55838         * math/bits/mathcalls.h [__USE_GNU] (__issignaling): New prototype
55839         declaration.
55840         * math/math.h [__USE_GNU] (issignaling): New macro.
55841         * sysdeps/ieee754/flt-32/s_issignalingf.c: New file.
55842         * sysdeps/ieee754/dbl-64/s_issignaling.c: Likewise.
55843         * sysdeps/ieee754/dbl-64/wordsize-64/s_issignaling.c: Likewise.
55844         * sysdeps/ieee754/ldbl-96/s_issignalingl.c: Likewise.
55845         * sysdeps/ieee754/ldbl-128/s_issignalingl.c: Likewise.
55846         * sysdeps/ieee754/ldbl-128ibm/s_issignalingl.c: Likewise.
55847         * manual/arith.texi (issignaling): New section.
55848         * manual/libm-err-tab.pl (@all_functions): Update comment.
55849         * math/gen-libm-test.pl (parse_args): Apply special handling for
55850         issignaling.
55851         * math/libm-test.inc (print_float, issignaling_test): New
55852         functions.
55853         (check_float_internal): Add issignaling checks.
55854         * sysdeps/generic/math-tests.h (SNAN_TESTS_TYPE_CAST): Provide
55855         default definition.
55856         * sysdeps/powerpc/math-tests.h: New file.
55857         * math/basic-test.c (TEST_FUNC, TEST_TRUNC): Add issignaling
55858         tests.
55859         * math/test-snan.c (TEST_FUNC): Likewise.
55860
55861 2013-03-30  David S. Miller  <davem@davemloft.net>
55862
55863         * po/de.po: Update from translation team.
55864
55865 2013-03-30  Joseph Myers  <joseph@codesourcery.com>
55866
55867         [BZ #10357]
55868         * math/k_casinh.c (__kernel_casinh): Handle arguments with
55869         imaginary part less than 1.0 and real part less than 0.5
55870         specially.
55871         * math/k_casinhf.c (__kernel_casinhf): Likewise.
55872         * math/k_casinhl.c (__kernel_casinhl): Likewise.
55873         * math/libm-test.inc (UNDERFLOW_EXCEPTION_OK_DOUBLE): New macro.
55874         (cacos_test): Add more tests.
55875         (casin_test): Likewise.
55876         (casinh_test): Likewise.
55877         * sysdeps/i386/fpu/libm-test-ulps: Update.
55878         * sysdeps/x86_64/fpu/libm-test-ulps: Likewise.
55879
55880 2013-03-29  Siddhesh Poyarekar  <siddhesh@redhat.com>
55881
55882         * sysdeps/powerpc/power4/fpu/mpa-arch.h (INTEGER_OF): Replace
55883         ONE with its value.
55884
55885         * sysdeps/ieee754/dbl-64/mpa.h (ONE, MONE): Remove defines.
55886         (__pow_mp): Replace ONE and MONE with their values.
55887         * sysdeps/ieee754/dbl-64/e_log.c (__ieee754_log): Likewise.
55888         * sysdeps/ieee754/dbl-64/mpatan.c (__mpatan): Likewise.
55889         * sysdeps/ieee754/dbl-64/mpatan2.c (__mpatan2): Likewise.
55890         * sysdeps/ieee754/dbl-64/mptan.c (__mptan): Likewise.
55891         * sysdeps/ieee754/dbl-64/s_atan.c (atan): Likewise.
55892         * sysdeps/ieee754/dbl-64/s_tan.c (tan): Likewise.
55893
55894         * sysdeps/ieee754/dbl-64/s_tan.c: Fix formatting.
55895
55896         * sysdeps/ieee754/dbl-64/mpa.h (ZERO, MZERO): Remove defines.
55897         (__pow_mp): Replace ZERO and MZERO with their values.
55898         * sysdeps/ieee754/dbl-64/e_atan2.c (__ieee754_atan2): Likewise.
55899         * sysdeps/ieee754/dbl-64/e_log.c (__ieee754_log): Likewise.
55900         * sysdeps/ieee754/dbl-64/mpatan2.c (__mpatan2): Likewise.
55901         * sysdeps/ieee754/dbl-64/mpexp.c (__mpexp): Likewise.
55902         * sysdeps/ieee754/dbl-64/s_atan.c (atan): Likewise.
55903         * sysdeps/powerpc/power4/fpu/mpa.c (__mul): Likewise.
55904         (__sqr): Likewise.
55905
55906         * sysdeps/ieee754/dbl-64/s_atan.c: Fix formatting.
55907
55908         * sysdeps/ieee754/dbl-64/e_log.c: Fix formatting.
55909
55910 2013-03-28  Roland McGrath  <roland@hack.frob.com>
55911
55912         * include/stdlib.h [!SHARED] (__call_tls_dtors):
55913         Declare with __attribute__ ((weak)).
55914         * stdlib/exit.c (__libc_atexit) [!SHARED]:
55915         Call __call_tls_dtors only if it's not NULL.
55916
55917 2013-03-28  Roland McGrath  <roland@hack.frob.com>
55918
55919         * csu/libc-start.c (__libc_start_main) [!SHARED]: If _dl_aux_init
55920         didn't do it already, then set _dl_phdr and _dl_phnum based on the
55921         magic __ehdr_start linker symbol if it's defined.
55922         * sysdeps/mach/hurd/i386/init-first.c (init1) [!SHARED]: Don't set
55923         them up here if it was already done.
55924
55925         * elf/dl-support.c (_dl_phdr): Make pointer to const.
55926         (_dl_aux_init): Use const in cast when setting it.
55927         * sysdeps/mach/hurd/i386/init-first.c (init1): Remove superfluous cast.
55928         * sysdeps/generic/ldsodefs.h [!SHARED] (_dl_phdr): Update decl.
55929         * csu/libc-tls.c (__libc_setup_tls): Make PHDR pointer to const.
55930
55931         * sysdeps/generic/ldsodefs.h [!SHARED] (_dl_phdr, _dl_phnum):
55932         Declare them here.
55933         * elf/dl-iteratephdr.c [!SHARED] (_dl_phdr, _dl_phnum): Not here.
55934         * csu/libc-tls.c: Nor here.
55935         * sysdeps/mach/hurd/i386/init-first.c (init1): Nor here.
55936
55937         * sysdeps/posix/libc_fatal.c: Don't include <sys/syslog.h>.
55938         (__libc_message): Never call vsyslog.
55939
55940 2013-03-28  Alan Modra  <amodra@gmail.com>
55941
55942         * sysdeps/powerpc/powerpc32/start.S (cfi_startproc, cfi_endproc):
55943         Define as empty.
55944         * sysdeps/powerpc/powerpc64/start.S (cfi_startproc, cfi_endproc):
55945         Likewise.
55946
55947 2013-03-28  Adhemerval Zanella  <azanella@linux.vnet.ibm.com>
55948
55949         [BZ #15214]
55950         * sysdeps/ieee754/ldbl-128ibm/e_logl.c (__ieee754_logl): Fix spurious
55951         underflow.
55952         * sysdeps/powerpc/fpu/libm-test-ulps: Update.
55953
55954 2013-03-28  Siddhesh Poyarekar  <siddhesh@redhat.com>
55955
55956         [BZ #15304]
55957         * hesiod/nss_hesiod/hesiod-grp.c (_nss_hesiod_initgroups_dyn):
55958         Don't add gid passed as argument.
55959
55960         * sysdeps/ieee-754/dbl-64/e_atan2.c: Reformat.
55961
55962 2013-03-27  Joseph Myers  <joseph@codesourcery.com>
55963
55964         [BZ #15307]
55965         * math/k_casinh.c (__kernel_casinh): Handle arguments with
55966         imaginary part between 1.0 and 1.5 and real part less than 0.5
55967         specially.
55968         * math/k_casinhf.c (__kernel_casinhf): Likewise.
55969         * math/k_casinhl.c (__kernel_casinhl): Likewise.
55970         * math/libm-test.inc (cacos_test): Add more tests.
55971         (casin_test): Likewise.
55972         (casinh_test): Likewise.
55973         * sysdeps/i386/fpu/libm-test-ulps: Update.
55974         * sysdeps/x86_64/fpu/libm-test-ulps: Likewise.
55975
55976 2013-03-26  Siddhesh Poyarekar  <siddhesh@redhat.com>
55977
55978         * sysdeps/ieee754/dbl-64/mpa.c (__acr): Use integral
55979         constants.
55980         (norm): Likewise.
55981         (denorm): Likewise.
55982         (__dbl_mp): Likewise.
55983         (add_magnitudes): Likewise.
55984         (sub_magnitudes): Likewise.
55985         (__add): Likewise.
55986         (__sub): Likewise.
55987         (__mul): Likewise.
55988         (__sqr): Likewise.
55989         (__inv): Likewise.
55990         (__dvd): Likewise.
55991
55992         * sysdeps/ieee754/dbl-64/branred.c (__branred): Remove
55993         commented code.
55994         * sysdeps/ieee754/dbl-64/dosincos.c (__dubsin): Likewise.
55995         (__dubcos): Likewise.
55996         * sysdeps/ieee754/dbl-64/e_asin.c (__ieee754_asin): Likewise.
55997         (__ieee754_acos): Likewise.
55998         * sysdeps/ieee754/dbl-64/e_atan2.c (__ieee754_atan2): Likewise.
55999         * sysdeps/ieee754/dbl-64/e_exp.c (__ieee754_exp): Likewise.
56000         (__exp1): Likewise.
56001         * sysdeps/ieee754/dbl-64/e_log.c (__ieee754_log): Likewise.
56002         * sysdeps/ieee754/dbl-64/e_pow.c (__ieee754_pow): Likewise.
56003         (log1): Likewise.
56004         (my_log2): Likewise.
56005         (checkint): Likewise.
56006         * sysdeps/ieee754/dbl-64/e_remainder.c
56007         (__ieee754_remainder): Likewise.
56008         * sysdeps/ieee754/dbl-64/s_atan.c (atan): Likewise.
56009         * sysdeps/ieee754/dbl-64/s_sin.c (__sin): Likewise.
56010         (bsloww): Likewise.
56011         * sysdeps/ieee754/dbl-64/s_tan.c (tan): Likewise.
56012
56013         * sysdeps/ieee754/dbl-64/mpa-arch.h: New file.
56014         * sysdeps/ieee754/dbl-64/mpa.c (norm): Use MANTISSA_T and
56015         MANTISSA_STORE_T to store computations on mantissa.  Use
56016         macros for rounding and division.
56017         (denorm): Likewise.
56018         (__dbl_mp): Likewise.
56019         (add_magnitudes): Likewise.
56020         (sub_magnitudes): Likewise.
56021         (__mul): Likewise.
56022         (__sqr): Likewise.
56023         * sysdeps/ieee754/dbl-64/mpa.h: Include mpa-arch.h.  Define
56024         powers of two in terms of TWOPOW macro.
56025         (mp_no): Make type of mantissa as MANTISSA_T.
56026         [!RADIXI]: Define RADIXI.
56027         [!TWO52]: Define TWO52.
56028         * sysdeps/powerpc/power4/fpu/mpa-arch.h: New file.
56029
56030 2013-03-25  Adhemerval Zanella  <azanella@linux.vnet.ibm.com>
56031
56032         * sysdeps/powerpc/fpu/s_llround.c: Fix libm ABI issue with missing
56033         llroundl symbol when building for PPC32.
56034
56035 2013-03-24  Mark H Weaver  <mhw@netris.org>
56036
56037         * manual/arith.texi (Normalization Functions): Fix prototypes for
56038         scalbn, scalbnf, scalbnl, scalbln, scalblnf, and scalblnl.
56039
56040 2013-03-19  Adhemerval Zanella  <azanella@linux.vnet.ibm.com>
56041
56042         [BZ #13889]
56043         * sysdeps/ieee754/ldbl-128ibm/e_expl.c (__ieee754_expl): Increase the
56044         high value to check if expl overflow.
56045         * sysdeps/ieee754/ldbl-128ibm/w_expl.c (__expl): Fix threshold constants
56046         to check for underflow and overflow.
56047         * math/libm-test.inc: Add exp test.
56048
56049 2013-03-21  Dmitry V. Levin  <ldv@altlinux.org>
56050
56051         [BZ #11120]
56052         * sysdeps/x86_64/strcmp.S: Replace all occurrences of NOT_IN_lib
56053         with NOT_IN_libc.
56054
56055 2013-03-21  Adhemerval Zanella  <azanella@linux.vnet.ibm.com>
56056
56057         * sysdeps/powerpc/fpu/w_sqrt.c (compat_symbol): Add sqrtl compat
56058         symbol.
56059
56060 2013-03-21  Thomas Schwinge  <thomas@codesourcery.com>
56061
56062         * math/gen-libm-test.pl (parse_args, special_functions): Properly
56063         wrap blocks consisting of several statements.
56064
56065         * sysdeps/generic/math-tests.h: New file.
56066         * sysdeps/i386/fpu/math-tests.h: Likewise.
56067         * math/test-snan.c: Include it.
56068         (TEST_FUNC): Use SNAN_TESTS to short-circuit certain tests.
56069
56070 2013-03-21  Joseph Myers  <joseph@codesourcery.com>
56071
56072         [BZ #15285]
56073         * sysdeps/ieee754/ldbl-128/e_j0l.c: Include <float.h>.
56074         (__ieee754_j0l): Do not improve calculations using cos of twice
56075         input for inputs above LDBL_MAX / 2.0L.
56076         (__ieee754_y0l): Likewise.
56077         * sysdeps/ieee754/ldbl-128/e_j1l.c: Include <float.h>.
56078         (__ieee754_j1l): Do not improve calculations using cos of twice
56079         input for inputs above LDBL_MAX / 2.0L.
56080         (__ieee754_y1l): Likewise.
56081         * math/libm-test.inc (j0_test): Add another test.
56082         (j1_test): Likewise.
56083         (y0_test): Likewise.
56084         (y1_test): Likewise.
56085         * sysdeps/i386/fpu/libm-test-ulps: Update.
56086
56087 2013-03-21  Siddhesh Poyarekar  <siddhesh@redhat.com>
56088
56089         * Rules ($(objpfx)bench-%.c): Include code from a C source
56090         file.
56091
56092 2013-03-21  Joseph Myers  <joseph@codesourcery.com>
56093
56094         [BZ #15287]
56095         * math/k_casinh.c (__kernel_casinh): Handle arguments with
56096         imaginary part 1.0 and real part less than 0.5 specially.
56097         * math/k_casinhf.c (__kernel_casinhf): Likewise.
56098         * math/k_casinhl.c (__kernel_casinhl): Likewise.
56099         * math/libm-test.inc (cacos_test): Add more tests.
56100         (casin_test): Likewise.
56101         (casinh_test): Likewise.
56102         * sysdeps/i386/fpu/libm-test-ulps: Update.
56103         * sysdeps/x86_64/fpu/libm-test-ulps: Likewise.
56104
56105 2013-03-21  Siddhesh Poyarekar  <siddhesh@redhat.com>
56106
56107         * sysdeps/ieee754/dbl-64/mpsqrt.c (__mpsqrt): Use HALFRAD.
56108         * sysdeps/ieee754/dbl-64/sincos32.c (__mpranred): Likewise.
56109
56110 2013-03-20  Joseph Myers  <joseph@codesourcery.com>
56111
56112         * aclocal.m4 (LIBC_CONFIG_VAR): New autoconf macro.
56113         * config.make.in (config-cflags-sse4): Remove variable.
56114         (config-cflags-avx): Likewise.
56115         (config-cflags-sse2avx): Likewise.
56116         (config-cflags-novzeroupper): Likewise.
56117         (config-asflags-i686): Likewise.
56118         (have-mfma4): Likewise.
56119         (have-as-vis3): Likewise.
56120         (MIG): Likewise.
56121         * configure.in (MIG): Do not AC_SUBST.
56122         (libc_cv_cc_nofma): Move AC_SUBST next to configure test.
56123         (libc_cv_cc_sse4): Do not AC_SUBST.
56124         (libc_cv_cc_avx): Likewise.
56125         (libc_cv_cc_sse2avx): Likewise.
56126         (libc_cv_cc_novzeroupper): Likewise.
56127         (libc_cv_cc_fma4): Likewise.
56128         (libc_cv_as_i686): Likewise.
56129         (libc_cv_sparc_as_vis3): Likewise.
56130         * sysdeps/i386/configure.in (config-cflags-sse4): Set using
56131         LIBC_CONFIG_VAR.
56132         (config-asflags-i686): Likewise.
56133         (config-cflags-avx): Likewise.
56134         (config-cflags-sse2avx): Likewise.
56135         (have-mfma4): Likewise.
56136         (config-cflags-novzeroupper): Likewise.
56137         * sysdeps/mach/configure.in (MIG): Likewise.
56138         * sysdeps/sparc/configure.in (have-as-vis3): Likewise.
56139         * sysdeps/x86_64/configure.in (config-cflags-sse4): Set using
56140         LIBC_CONFIG_VAR.
56141         (config-cflags-avx): Likewise.
56142         (config-cflags-sse2avx): Likewise.
56143         (have-mfma4): Likewise.
56144         (config-cflags-novzeroupper): Likewise.
56145         * configure: Regenerated.
56146         * sysdeps/i386/configure: Likewise.
56147         * sysdeps/mach/configure: Likewise.
56148         * sysdeps/sparc/configure: Likewise.
56149         * sysdeps/x86_64/configure: Likewise.
56150
56151 2013-03-20  Roland McGrath  <roland@hack.frob.com>
56152
56153         [BZ #14812]
56154         * locale/programs/localedef.c (options): Put N_ translation marker
56155         on argument names, not just descriptions.
56156
56157 2013-03-20  Marcus Shawcroft  <marcus.shawcroft@linaro.org>
56158
56159         * Makerules ($(inst_libdir)/libc.so): Use $(rtlddir).
56160
56161 2013-03-20  Ondřej Bílka  <neleai@seznam.cz>
56162
56163         [BZ #14176]
56164         * stdlib/stdlib.h (mblen, mbtowc, wctomb): Remove __wur.
56165
56166 2013-03-19  Roland McGrath  <roland@hack.frob.com>
56167
56168         * sysdeps/posix/libc_fatal.c: Include <sys/mman.h>.
56169         [!WRITEV_FOR_FATAL] (writev_for_fatal): New function.
56170         [!WRITEV_FOR_FATAL] (WRITEV_FOR_FATAL): New macro; call that.
56171         [!BEFORE_ABORT] (before_abort): New function.
56172         [!BEFORE_ABORT] (BEFORE_ABORT): New macro; call that.
56173         * sysdeps/unix/sysv/linux/libc_fatal.c: Trim includes.
56174         (writev_for_fatal): New function.
56175         (WRITEV_FOR_FATAL): New macro; call that.
56176         (backtrace_and_maps): New function.
56177         (BEFORE_ABORT): New macro; call that.
56178         (struct str_list): Type removed.
56179         (__libc_message, __libc_fatal): Functions removed.
56180         Include <sysdeps/posix/libc_fatal.c> instead.
56181
56182 2013-03-19  Joseph Myers  <joseph@codesourcery.com>
56183
56184         * math/k_casinhf.c (__kernel_casinhf): Consistently use float
56185         constants.
56186         * math/k_casinhl.c (__kernel_casinhl): Consistently use long
56187         double constants.
56188
56189 2013-03-19  Andreas Schwab  <schwab@suse.de>
56190
56191         * sysdeps/gnu/configure.in: Set libc_cv_rtldir for s390x.
56192         * sysdeps/gnu/configure: Regenerate.
56193
56194         * configure.in: Substitute libc_cv_rtlddir.
56195         * configure: Regenerate.
56196         * config.make.in (rtlddir): Set from libc_cv_rtlddir.
56197         * Makeconfig (rtlddir, inst_rtlddir): New variables.
56198         (rtld-LDFLAGS): Use them with $(rtld-installed-name).
56199         * elf/Makefile (install-others, CFLAGS-interp.c)
56200         (ldso_install, common-ldd-rewrite): Likewise.
56201         ($(inst_rtlddir)/$(rtld-installed-name)): Renamed from
56202         $(inst_slibdir)/$(rtld-installed-name).
56203         * scripts/rellns-sh: Add -p option.
56204         * Makerules (make-shlib-link): Use rellns-sh to get relative name
56205         for source.
56206
56207 2013-03-19  Siddhesh Poyarekar  <siddhesh@redhat.com>
56208
56209         * manual/nptl.texi: Renamed to ...
56210         * manual/threads.texi: ... this.
56211         * manual/Makefile (chapters): Update.
56212
56213 2013-03-18  Roland McGrath  <roland@hack.frob.com>
56214
56215         [BZ #14812]
56216         * argp/argp-parse.c (argp_default_options): Put N_ translation marker
56217         on argument names, not just descriptions.
56218         * malloc/memusagestat.c (options): Likewise.
56219         * nss/getent.c (options): Likewise.
56220
56221 2013-03-18  Benno Schulenberg  <bensberg@justemail.net>
56222
56223         [BZ #14812]
56224         * iconv/iconv_prog.c (options): Put N_ translation marker
56225         on argument names, not just descriptions.
56226         * iconv/iconvconfig.c (options): Likewise.
56227
56228 2013-03-18  Ondrej Bilka  <neleai@seznam.cz>
56229
56230         * sysdeps/x86_64/strlen.S: Replace with new SSE2 based
56231         implementation which is faster on all x86_64 architectures.
56232         Tested on AMD, Intel Nehalem, SNB, IVB.
56233         * sysdeps/x86_64/strnlen.S: Likewise.
56234
56235         * sysdeps/x86_64/multiarch/Makefile (sysdep_routines):
56236         Remove all multiarch strlen and strnlen versions.
56237         * sysdeps/x86_64/multiarch/ifunc-impl-list.c: Update.
56238         Remove strlen and strnlen related parts.
56239
56240         * sysdeps/x86_64/multiarch/strcat-sse2-unaligned.S: Update.
56241         Inline strlen part.
56242         * sysdeps/x86_64/multiarch/strcat-ssse3.S: Likewise.
56243
56244         * sysdeps/x86_64/multiarch/strlen.S: Remove.
56245         * sysdeps/x86_64/multiarch/strlen-sse2-no-bsf.S: Likewise.
56246         * sysdeps/x86_64/multiarch/strlen-sse2-pminub.S: Likewise.
56247         * sysdeps/x86_64/multiarch/strlen-sse4.S: Likewise.
56248         * sysdeps/x86_64/multiarch/strnlen.S: Likewise.
56249         * sysdeps/x86_64/multiarch/strnlen-sse2-no-bsf.S: Likewise.
56250
56251 2013-03-17  Carlos O'Donell  <carlos@redhat.com>
56252
56253         * manual/memory.texi (Malloc Tunable Parameters):
56254         Sort parameters alphabetically. Add comments for missing entries.
56255
56256 2013-03-17  David S. Miller  <davem@davemloft.net>
56257
56258         * sysdeps/sparc/fpu/libm-test-ulps: Update.
56259
56260 2013-03-16  Joseph Myers  <joseph@codesourcery.com>
56261
56262         [BZ #15283]
56263         * sysdeps/ieee754/ldbl-96/e_j1l.c (__ieee754_y1l): Correct test
56264         for arguments at most half maximum finite value.
56265         * math/libm-test.inc (j0_test): Add more tests.
56266         (j1_test): Likewise.
56267         (y0_test): Likewise.
56268         (y1_test): Likewise.
56269         * sysdeps/i386/fpu/libm-test-ulps: Update.
56270         * sysdeps/x86_64/fpu/libm-test-ulps: Likewise.
56271
56272         [BZ #14155]
56273         * sysdeps/ieee754/ldbl-128/e_j0l.c (__ieee754_j0l): Do not compute
56274         1 / x and functions P and Q for arguments above 0x1p256L.
56275         (__ieee754_y0l): Likewise.
56276         * sysdeps/ieee754/ldbl-128/e_j1l.c (__ieee754_j1l): Likewise.
56277         (__ieee754_y1l): Likewise.
56278         * math/libm-test.inc (j0_test): Do not allow spurious underflows.
56279         (j1_test): Likewise.
56280         (y0_test): Likewise.
56281         (y1_test): Likewise.
56282
56283 2013-03-16  Thomas Schwinge  <thomas@codesourcery.com>
56284
56285         * math/test-snan.c (TEST_FUNC): Add and use minus_sNaN_var
56286         variable.
56287
56288 2013-03-15  Roland McGrath  <roland@hack.frob.com>
56289
56290         * elf/dl-support.c (_dl_aux_init): Ignore zero value for AT_PAGESZ.
56291         (_dl_non_dynamic_init): Don't set _dl_pagesize; it will never be
56292         zero since it's initialized to EXEC_PAGESIZE.
56293
56294         * sysdeps/unix/sysv/linux/ldsodefs.h
56295         (_dl_non_dynamic_init, _dl_aux_init): Move declarations to ...
56296         * sysdeps/generic/ldsodefs.h: ... here.
56297
56298 2013-03-15  Thomas Schwinge  <thomas@codesourcery.com>
56299
56300         * math/libm-test.inc (ldexp_test): Add missing START/END markers.
56301
56302         * sysdeps/powerpc/fpu/test-powerpc-snan.c: Rename to
56303         math/test-snan.c.
56304         * math/test-snan.c: Renamed from
56305         sysdeps/powerpc/fpu/test-powerpc-snan.c.
56306         * math/Makefile (tests): Add test-snan.
56307         * sysdeps/powerpc/fpu/Makefile (libm-tests): Don't add
56308         test-powerpc-snan.
56309
56310         * math/basic-test.c (TEST_FUNC): Replace NANFUNC argument with
56311         SUFFIX.  Initialize qNaN_var with __builtin_nan family of
56312         functions.
56313         (TEST_TRUNC): Add SUFFIX argument.  Initialize qNaN_var with
56314         __builtin_nan family of functions.
56315         * math/libm-test.inc (initialize): Initialize qnan_value with
56316         __builtin_nan family of functions.
56317         * sysdeps/powerpc/fpu/test-powerpc-snan.c (SNANf, SNAN, SNANl):
56318         Remove variables.
56319         (init_signaling_nan, snan_float, snan_double, snan_ldouble):
56320         Remove functions.
56321         (TEST_FUNC): Add SUFFIX argument.  Move sNaN_var into static
56322         storage class.  Initialize qNaN_var and sNaN_var with
56323         __builtin_nan and __builtin_nans families of functions,
56324         respectively.
56325
56326         * math/libm-test.inc (acosh_test): Also test with qNaN input.
56327         (sqrt_test): Remove duplicate test with qNaN input.
56328         (lrint_test, llrint_test, lround_test, llround_test, rint_test)
56329         (round_test, signbit_test, significand_test): Note missing +/-Inf
56330         as well as qNaN tests.
56331
56332         * math/basic-test.c (TEST_FUNC, TEST_TRUNC): Rename NaN_var to
56333         qNaN_var.  Fix a few strings, too.
56334         * math/libm-test.inc (nan_value): Rename to qnan_value.
56335         * math/gen-libm-test.pl (%beautify): Adjust to that.
56336         * math/bits/mathcalls.h (nan): Refer to qNaN instead of NaN.
56337         * math/test-misc.c (main): Likewise.
56338         * sysdeps/ieee754/bits/nan.h (__nan_bytes, __nan_union): Rename
56339         to __qnan_bytes, and __qnan_union, respectively.
56340         * ports/sysdeps/mips/bits/nan.h (__nan_bytes, __nan_union):
56341         Likewise.
56342         * stdio-common/tstdiomisc.c (nanval, lnanval): Rename to qnanval,
56343         and lqnanval, respectively.
56344         * sysdeps/powerpc/bits/fenv.h: Fix usage of NaN/qNaN/sNaN.
56345         * sysdeps/powerpc/fpu/fenv_libc.h: Likewise.
56346         * sysdeps/powerpc/fpu/test-powerpc-snan.c (TEST_FUNC): Likewise,
56347         and rename NaN_var to qNaN_var, and SNaN_var to sNaN_var.
56348
56349         * math/libm-test.inc (fpstack_test) [__x86_64__]: Enable test.
56350         * math/test-misc.c (main) [__x86_64__]: Enable test for long
56351         doubles.
56352
56353         * math/test-misc.c (main): Fix copy'n'pastos.
56354         * misc/tst-efgcvt.c (special): Likewise.
56355
56356         * stdio-common/printf_fp.c (__isinfl_internal, __isnanl_internal):
56357         Remove declarations.
56358
56359 2013-03-15  Siddhesh Poyarekar  <siddhesh@redhat.com>
56360
56361         * sysdeps/ieee754/dbl-64/mpa-arch.h: Remove.
56362         * sysdeps/ieee754/dbl-64/mpa.c: Revert last change.
56363         * sysdeps/ieee754/dbl-64/mpa.h: Revert last change.
56364         * sysdeps/powerpc/power4/fpu/mpa-arch.h: Remove.
56365
56366 2013-03-15  Adhemerval Zanella  <azanella@linux.vnet.ibm.com>
56367
56368         * sysdeps/unix/sysv/linux/powerpc/bits/libc-vdso.h (VDSO_IFUNC_RET): Add
56369         macro to return vdso values correctly in IFUNC implementations.
56370         * sysdeps/unix/sysv/linux/powerpc/gettimeofday.c (__gettimeofday):
56371         Optimization by using IFUNC.
56372
56373 2013-03-15  Siddhesh Poyarekar  <siddhesh@redhat.com>
56374             Richard Henderson  <rth@redhat.com>
56375             Tulio Magno Quites Machado Filho  <tuliom@linux.vnet.ibm.com>
56376
56377         * Makefile.in (bench): New target.
56378         * NEWS: Mention the benchmark framework.
56379         * Rules (bench): Likewise.
56380         (binaries-bench): Generate binaries for functions to
56381         benchmark.
56382         * benchtests/Makefile: New makefile for benchmark tests.
56383         * benchtests/bench-skeleton.c: New skeleton file for benchmark
56384         programs.
56385         * benchtests/exp-inputs: New input file for EXP function.
56386         * benchtests/pow-inputs: New input file for POW function.
56387         * scripts/bench.pl: New script to generate source files for
56388         benchmark programs.
56389
56390 2013-03-15  Siddhesh Poyarekar  <siddhesh@redhat.com>
56391
56392         * sysdeps/ieee754/dbl-64/mpa-arch.h: New file.
56393         * sysdeps/ieee754/dbl-64/mpa.c (norm): Use MANTISSA_T to store
56394         computations on mantissa.  Use macros for rounding and
56395         division.
56396         (denorm): Likewise.
56397         (__dbl_mp): Likewise.
56398         (add_magnitudes): Likewise.
56399         (sub_magnitudes): Likewise.
56400         (__mul): Likewise.
56401         (__sqr): Likewise.
56402         * sysdeps/ieee754/dbl-64/mpa.h: Include mpa-arch.h.  Define
56403         powers of two in terms of TWOPOW macro.
56404         (mp_no): Make type of mantissa as MANTISSA_T.
56405         [!RADIXI]: Define RADIXI.
56406         [!TWO52]: Define TWO52.
56407         * sysdeps/powerpc/power4/fpu/mpa-arch.h: New file.
56408
56409         * manual/nptl.texi (cindex): Modify threads to pthreads.
56410
56411 2013-03-15  Joseph Myers  <joseph@codesourcery.com>
56412
56413         * sysdeps/x86_64/preconfigure: Regenerated.
56414
56415 2013-03-14  Joseph Myers  <joseph@codesourcery.com>
56416
56417         [BZ #14155]
56418         * sysdeps/ieee754/dbl-64/e_j0.c (pzero): Return 1.0 for arguments
56419         0x1p28 and above.
56420         (qzero): Return -0.125 / x for arguments 0x1p28 and above.
56421         * sysdeps/ieee754/dbl-64/e_j1.c (pzero): Return 1.0 for arguments
56422         0x1p28 and above.
56423         (qzero): Return 0.375 / x for arguments 0x1p28 and above.
56424         * math/libm-test.inc (j0_test): Do not allow one spurious
56425         underflow exception.
56426         (y1_test): Likewise.
56427
56428 2013-03-14  Siddhesh Poyarekar  <siddhesh@redhat.com>
56429
56430         * manual/Makefile (chapters): Add nptl.
56431         * manual/debug.texi (Debugging Support): Add link to Threads
56432         chapter.
56433         * manual/nptl.texi: New file.
56434
56435         * sysdeps/unix/sysv/linux/times.c (__times): Fix formatting.
56436
56437 2013-03-14  Petr Baudis  <pasky@ucw.cz>
56438
56439         * sysdeps/unix/sysv/linux/times.c (__times): On EFAULT, test
56440         for non-NULL pointer before the memory validity test. Pointed
56441         out by Holger Brunck <holger.brunck@keymile.com>.
56442
56443 2013-03-13  Andreas Schwab  <schwab@suse.de>
56444
56445         * extra-lib.mk (extra-objs): Add static-only-routines as .oS
56446         instead of .os.
56447
56448 2013-03-13  Joseph Myers  <joseph@codesourcery.com>
56449
56450         * timezone/zic.c: Update from tzcode 2013b.
56451
56452 2013-03-12  Carlos O'Donell  <carlos@redhat.com>
56453
56454         * manual/install.texi (Configuring and compiling):
56455         Mention i686 and i586.
56456         * INSTALL: Regenerate.
56457
56458 2013-03-12  Roland McGrath  <roland@hack.frob.com>
56459
56460         * sysdeps/init_array/elf-init.c: New file.
56461         * csu/elf-init.c
56462         (__libc_csu_init) [!NO_INITFINI]: Conditionalize _init call on this.
56463         (__libc_csu_fini) [!NO_INITFINI]: Conditionalize _fini call on this.
56464
56465         * csu/gmon-start.c [GMON_START_ARRAY_SECTION]: Don't define
56466         __gmon_start__ as global, but as static with a .preinit_array pointer.
56467         * sysdeps/init_array/gmon-start.c: New file.  Use that.
56468         * sysdeps/init_array/crti.S: New file, empty except for comments.
56469         * sysdeps/init_array/crtn.S: Likewise.
56470
56471 2013-03-11  Ondřej Bílka  <neleai@seznam.cz>
56472
56473         * sysdeps/x86_64/memset.S: Remove USE_MULTIARCH conditional for
56474         definining bcopy.
56475         * sysdeps/x86_64/multiarch/init-arch.c (__init_cpu_features):
56476         Remove Prefer_SSE_for_memop.
56477         * sysdeps/x86_64/multiarch/init-arch.h: Remove
56478         bit_Prefer_SSE_for_memop, index_Prefer_SSE_for_memop,
56479         HAS_PREFER_SSE_FOR_MEMOP.
56480         * sysdeps/x86_64/multiarch/Makefile (sysdep_routines): Remove
56481         memset-x86-64.
56482         * sysdeps/x86_64/multiarch/ifunc-impl-list.c (__libc_ifunc_impl_list):
56483         Remove bzero, memset ifunc support.
56484         * sysdeps/x86_64/multiarch/bzero.S: Remove file.
56485         * sysdeps/x86_64/multiarch/memset-x86-64.S: Likewise.
56486         * sysdeps/x86_64/multiarch/memset.S: Likewise.
56487         * sysdeps/x86_64/multiarch/memset_chk.S: Likewise.
56488
56489 2013-03-11  Andreas Schwab  <schwab@suse.de>
56490
56491         [BZ #15234]
56492         * Versions.def (libpthread): Add GLIBC_2.3, so that it can be used
56493         by SHLIB_COMPAT.
56494         * sysdeps/unix/sysv/linux/x86_64/x32/nptl/libpthread.abilist
56495         (GLIBC_2.16): Remove pthread_atfork.
56496
56497 2013-03-08  Paul Pluzhnikov  <ppluzhnikov@google.com>
56498
56499         * posix/Makefile (testcases.h): Set LC_ALL=C before sed.
56500         (ptestcases.h): Likewise.
56501
56502 2013-03-08  Roland McGrath  <roland@hack.frob.com>
56503
56504         * Makeconfig ($(common-objpfx)config.status): Depend on
56505         sysdeps/*/preconfigure{,.in} too.
56506
56507 2013-03-08  Joseph Myers  <joseph@codesourcery.com>
56508
56509         * malloc/malloc.h (__malloc_ptr_t): Remove macro.
56510         (__free_hook): Use void * instead of __malloc_ptr_t.
56511         (__malloc_hook): Likewise.
56512         (__realloc_hook): Likewise.
56513         (__memalign_hook): Likewise.
56514         (__after_morecore_hook): Likewise.
56515         * malloc/arena.c (save_malloc_hook): Likewise.
56516         (save_free_hook): Likewise.
56517         * malloc/hooks.c (malloc_hook_ini): Likewise.
56518         (realloc_hook_ini): Likewise.
56519         (memalign_hook_ini): Likewise.
56520         * malloc/malloc.c (malloc_hook_ini): Likewise.
56521         (realloc_hook_ini): Likewise.
56522         (memalign_hook_ini): Likewise.
56523         (__free_hook): Likewise.
56524         (__malloc_hook): Likewise.
56525         (__realloc_hook): Likewise.
56526         (__memalign_hook): Likewise.
56527         (__libc_malloc): Likewise.
56528         (__libc_free): Likewise.
56529         (__libc_realloc): Likewise.
56530         (__libc_memalign): Likewise.
56531         (__libc_valloc): Likewise.
56532         (__libc_pvalloc): Likewise.
56533         (__libc_calloc): Likewise.
56534         (__posix_memalign): Likewise.
56535         * malloc/morecore.c (__sbrk): Likewise.
56536         (__default_morecore): Likewise.
56537
56538         * malloc/morecore.c (__default_morecore): Use ISO C prototype.
56539
56540         * malloc/malloc.h (__malloc_ptrdiff_t): Remove macro.
56541         * malloc/morecore.c (__default_morecore): Use ptrdiff_t instead of
56542         __malloc_ptrdiff_t.
56543
56544         * malloc/malloc.h (__malloc_size_t): Remove macro.
56545         * malloc/mcheck.c (old_malloc_hook): Use size_t instead of
56546         __malloc_size_t.
56547         (old_memalign_hook): Likewise.
56548         (old_realloc_hook): Likewise.
56549         (struct hdr): Likewise.
56550         (flood): Likewise.
56551         (mallochook): Likewise.
56552         (memalignhook): Likewise.
56553         (reallochook): Likewise.
56554         * malloc/mtrace.c (tr_old_malloc_hook): Likewise.
56555         (tr_old_realloc_hook): Likewise.
56556         (tr_old_memalign_hook): Likewise.
56557         (tr_mallochook): Likewise.
56558         (tr_reallochook): Likewise.
56559         (tr_memalignhook): Likewise.
56560
56561 2013-03-08  Adhemerval Zanella  <azanella@linux.vnet.ibm.com>
56562
56563         * sysdeps/ieee754/ldbl-128ibm/math_ldbl.h (ldbl_pack): Rename to
56564         default_ldbl_pack and using as default implementation.
56565         (ldbl_unpack): Rename to default_ldbl_unpack and using as default
56566         implementation.
56567         * sysdeps/powerpc/fpu/math_ldbl.h (ldbl_extract_mantissa): Remove
56568         redundant definition.
56569         (ldbl_insert_mantissa): Likewise.
56570         (ldbl_canonicalize): Likewise.
56571         (ldbl_nearbyint): Likewise.
56572         (ldbl_pack): Rename to ldbl_pack_ppc.
56573         (ldbl_unpack): Rename to ldbl_unpack_ppc.
56574         * sysdeps/unix/sysv/linux/powerpc/Implies: Remove file.
56575         * sysdeps/powerpc/Implies: Add ieee754/ldbl-opt after ieee754/ldbl-128ibm.
56576
56577 2013-03-08  Siddhesh Poyarekar  <siddhesh@redhat.com>
56578
56579         * sysdeps/powerpc/powerpc32/power4/fpu/mpa.c: Move file...
56580         * sysdeps/powerpc/power4/fpu/mpa.c: ... here.
56581         * sysdeps/powerpc/powerpc32/power4/fpu/Makefile: Move file...
56582         * sysdeps/powerpc/power4/fpu/Makefile: ... here.
56583         * sysdeps/powerpc/powerpc64/power4/fpu/mpa.c: Remove file.
56584         * sysdeps/powerpc/powerpc64/power4/fpu/Makefile: Remove file.
56585         * sysdeps/powerpc/powerpc32/power4/Implies: New file.
56586         * sysdeps/powerpc/powerpc64/power4/Implies: New file.
56587
56588 2013-03-07  Andreas Jaeger  <aj@suse.de>
56589
56590         * sysdeps/unix/sysv/linux/Makefile (sysdep_headers): Add
56591         bits/mman-linux.h.
56592
56593 2013-03-07  Siddhesh Poyarekar  <siddhesh@redhat.com>
56594
56595         * sysdeps/ieee754/dbl-64/slowexp.c [!USE_LONG_DOUBLE_FOR_MP]:
56596         Include mpa.h and declare __MPEXP.
56597         [USE_LONG_DOUBLE_FOR_MP] (__slowexp): Call __IEEE754_EXPL.
56598         * sysdeps/powerpc/powerpc32/power4/fpu/Makefile
56599         (CPPFLAGS-slowexp.c): Define USE_LONG_DOUBLE_FOR_MP.
56600         * sysdeps/powerpc/powerpc32/power4/fpu/slowexp.c: Remove.
56601         * sysdeps/powerpc/powerpc64/power4/fpu/Makefile
56602         (CPPFLAGS-slowexp.c): Define USE_LONG_DOUBLE_FOR_MP.
56603         * sysdeps/powerpc/powerpc64/power4/fpu/slowexp.c: Remove.
56604
56605         * sysdeps/ieee754/dbl-64/slowpow.c [USE_LONG_DOUBLE_FOR_MP]
56606         (__slowpow): Use long double EXPL and LOGL functions to
56607         compute POW.
56608         * sysdeps/powerpc/powerpc32/power4/fpu/Makefile
56609         (CPPFLAGS-slowpow.c): Define USE_LONG_DOUBLE_FOR_MP.
56610         * sysdeps/powerpc/powerpc32/power4/fpu/slowpow.c: Remove.
56611         * sysdeps/powerpc/powerpc64/power4/fpu/Makefile
56612         (CPPFLAGS-slowpow.c): Define USE_LONG_DOUBLE_FOR_MP.
56613         * sysdeps/powerpc/powerpc64/power4/fpu/slowpow.c: Remove.
56614
56615         * sysdeps/powerpc/powerpc32/power4/fpu/mpa.c (__mul): Use
56616         intermediate variable to calculate exponent.
56617         (__sqr): Likewise.
56618         * sysdeps/powerpc/powerpc64/power4/fpu/mpa.c (__mul):
56619         Likewise.
56620         (__sqr): Likewise.
56621
56622         * sysdeps/ieee754/dbl-64/mpa.c [!NO__MUL]: Define __mul.
56623         [!NO__SQR]: Define __sqr.
56624         * sysdeps/powerpc/powerpc32/power4/fpu/mpa.c: define NO__MUL
56625         and NO__SQR.  Remove all code except __mul and __sqr.  Include
56626         sysdeps/ieee754/dbl-64/mpa.c.
56627         * sysdeps/powerpc/powerpc64/power4/fpu/mpa.c: Likewise.
56628
56629         [BZ #12723]
56630         * posix/Makefile (tests): Add tst-pathconf.
56631         * posix/tst-pathconf.c: New test case.
56632         * sysdeps/unix/sysv/linux/fpathconf.c (__fpathconf): Remove
56633         _PC_PIPE_BUF.
56634         * sysdeps/unix/sysv/linux/pathconf.c (__pathconf): Likewise.
56635
56636 2013-03-06  Patsy Franklin  <pfrankli@redhat.com>
56637
56638         * io/fcntl.h: Added a comment about AT_EACCESS and AT_REMOVEDIR.
56639
56640 2013-03-06  Andreas Jaeger  <aj@suse.de>
56641
56642         * sysdeps/unix/sysv/linux/bits/mman-linux.h (MAP_ANONYMOUS): Allow
56643         definition via __MAP_ANONYMOUS.
56644
56645         * sysdeps/unix/sysv/linux/s390/bits/mman.h (MAP_GROWSUP): Remove,
56646         it's not part of Linux headers.
56647
56648         * sysdeps/unix/sysv/linux/bits/mman-linux.h (MAP_HUGE_SHIFT): Define.
56649         (MAP_HUGE_MASK): Define.
56650
56651         * sysdeps/unix/sysv/linux/powerpc/sys/ptrace.h (PTRACE_O_EXIT_KILL):
56652         Define.
56653         (PTRACE_O_MASK): Adjust for PTRACE_O_EXITKILL.
56654         * sysdeps/unix/sysv/linux/s390/sys/ptrace.h (PTRACE_O_EXIT_KILL):
56655         Define.
56656         (PTRACE_O_MASK): Adjust for PTRACE_O_EXITKILL.
56657         * sysdeps/unix/sysv/linux/sys/ptrace.h (PTRACE_O_EXIT_KILL):
56658         Define.
56659         (PTRACE_O_MASK): Adjust for PTRACE_O_EXITKILL.
56660         * sysdeps/unix/sysv/linux/sparc/sys/ptrace.h (PTRACE_O_EXITKILL):
56661         Define.
56662         (PTRACE_O_MASK): Adjust for PTRACE_O_EXITKILL.
56663
56664         * sysdeps/unix/sysv/linux/x86/bits/msq.h (MSG_COPY): Likewise.
56665         * sysdeps/unix/sysv/linux/generic/bits/msq.h (MSG_COPY): Define.
56666         * sysdeps/unix/sysv/linux/powerpc/bits/msq.h (MSG_COPY): Likewise.
56667         * sysdeps/unix/sysv/linux/bits/msq.h (MSG_COPY): Likewise.
56668         * sysdeps/unix/sysv/linux/s390/bits/msq.h (MSG_COPY): Likewise.
56669         * sysdeps/unix/sysv/linux/sparc/bits/msq.h (MSG_COPY): Define.
56670
56671         * sysdeps/unix/sysv/linux/pathconf.c (__statfs_filesize_max):
56672         Handle f2fs.
56673
56674         * sysdeps/unix/sysv/linux/internal_statvfs.c (__statvfs_getflags):
56675         Handle f2fs and efivarfs.
56676
56677         * sysdeps/unix/sysv/linux/pathconf.c (__statfs_link_max): Handle
56678         f2fs.
56679
56680         * sysdeps/unix/sysv/linux/linux_fsinfo.h (F2FS_SUPER_MAGIC): Add.
56681         (EFIVARFS_MAGIC): Add.
56682         (F2FS_LINK_MAX): Add.
56683
56684 2013-03-06  Paul Pluzhnikov  <ppluzhnikov@google.com>
56685
56686         * stdio-common/vfprintf.c: Replace __builtin_expect with
56687         __glibc_unlikely.
56688
56689 2013-03-06  Joseph Myers  <joseph@codesourcery.com>
56690
56691         [BZ #13550]
56692         * sysdeps/generic/bp-sym.h: Remove file.
56693         * sysdeps/powerpc/powerpc64/bp-asm.h: Likewise.
56694         * sysdeps/powerpc/powerpc64/__longjmp-common.S: Don't include
56695         <bp-sym.h> and <bp-asm.h>.
56696         (__longjmp): Don't use BP_SYM.
56697         * sysdeps/powerpc/powerpc64/a2/memcpy.S: Don't include <bp-sym.h>
56698         and <bp-asm.h>.
56699         (memcpy): Don't use BP_SYM.
56700         * sysdeps/powerpc/powerpc64/cell/memcpy.S: Don't include
56701         <bp-sym.h> and <bp-asm.h>.
56702         (memcpy): Don't use BP_SYM.
56703         * sysdeps/powerpc/powerpc64/memcpy.S: Don't include <bp-sym.h> and
56704         <bp-asm.h>.
56705         (memcpy): Don't use BP_SYM.
56706         * sysdeps/powerpc/powerpc64/memset.S: Don't include <bp-sym.h> and
56707         <bp-asm.h>.
56708         (memset): Don't use BP_SYM.
56709         (memset) [__BOUNDED_POINTERS__]: Remove conditional code.
56710         (memset) [!__BOUNDED_POINTERS__]: Make code unconditional.
56711         (__bzero): Don't use BP_SYM.
56712         (__bzero) [__BOUNDED_POINTERS__]: Remove conditional code.
56713         (__bzero) [!__BOUNDED_POINTERS__]: Make code unconditional.
56714         * sysdeps/powerpc/powerpc64/power4/memcmp.S: Don't include
56715         <bp-sym.h> and <bp-asm.h>.
56716         (memcmp): Don't use BP_SYM.  Remove comment about bounded
56717         pointers.
56718         * sysdeps/powerpc/powerpc64/power4/memcpy.S: Don't include
56719         <bp-sym.h> and <bp-asm.h>.
56720         (memcpy): Don't use BP_SYM.
56721         * sysdeps/powerpc/powerpc64/power4/memset.S: Don't include
56722         <bp-sym.h> and <bp-asm.h>.
56723         (memset): Don't use BP_SYM.
56724         (memset) [__BOUNDED_POINTERS__]: Remove conditional code.
56725         (memset) [!__BOUNDED_POINTERS__]: Make code unconditional.
56726         (__bzero): Don't use BP_SYM.
56727         (__bzero) [__BOUNDED_POINTERS__]: Remove conditional code.
56728         (__bzero) [!__BOUNDED_POINTERS__]: Make code unconditional.
56729         * sysdeps/powerpc/powerpc64/power4/strncmp.S: Don't include
56730         <bp-sym.h> and <bp-asm.h>.
56731         (strncmp): Don't use BP_SYM.  Remove comment about bounded
56732         pointers.
56733         * sysdeps/powerpc/powerpc64/power6/memcpy.S: Don't include
56734         <bp-sym.h> and <bp-asm.h>.
56735         (memcpy): Don't use BP_SYM.
56736         * sysdeps/powerpc/powerpc64/power6/memset.S: Don't include
56737         <bp-sym.h> and <bp-asm.h>.
56738         (memset): Don't use BP_SYM.
56739         (memset) [__BOUNDED_POINTERS__]: Remove conditional code.
56740         (memset) [!__BOUNDED_POINTERS__]: Make code unconditional.
56741         (__bzero): Don't use BP_SYM.
56742         (__bzero) [__BOUNDED_POINTERS__]: Remove conditional code.
56743         (__bzero) [!__BOUNDED_POINTERS__]: Make code unconditional.
56744         * sysdeps/powerpc/powerpc64/power7/memchr.S: Don't include
56745         <bp-sym.h> and <bp-asm.h>.
56746         (__memchr): Don't use BP_SYM.
56747         * sysdeps/powerpc/powerpc64/power7/memcmp.S: Don't include
56748         <bp-sym.h> and <bp-asm.h>.
56749         (memcmp): Don't use BP_SYM.  Remove comment about bounded
56750         pointers.
56751         * sysdeps/powerpc/powerpc64/power7/memcpy.S: Don't include
56752         <bp-sym.h> and <bp-asm.h>.
56753         (memcpy): Don't use BP_SYM.
56754         * sysdeps/powerpc/powerpc64/power7/mempcpy.S: Don't include
56755         <bp-sym.h> and <bp-asm.h>.
56756         (__mempcpy): Don't use BP_SYM.
56757         * sysdeps/powerpc/powerpc64/power7/memrchr.S: Don't include
56758         <bp-sym.h> and <bp-asm.h>.
56759         (__memrchr): Don't use BP_SYM.
56760         * sysdeps/powerpc/powerpc64/power7/memset.S: Don't include
56761         <bp-sym.h> and <bp-asm.h>.
56762         (memset): Don't use BP_SYM.
56763         (__bzero): Likewise.
56764         * sysdeps/powerpc/powerpc64/power7/rawmemchr.S: Don't include
56765         <bp-sym.h> and <bp-asm.h>.
56766         (__rawmemchr): Don't use BP_SYM.
56767         * sysdeps/powerpc/powerpc64/power7/strcasecmp.S: Don't include
56768         <bp-sym.h> and <bp-asm.h>.
56769         (__STRCMP): Don't use BP_SYM.
56770         * sysdeps/powerpc/powerpc64/power7/strchr.S: Don't include
56771         <bp-sym.h> and <bp-asm.h>.
56772         (strchr): Don't use BP_SYM.
56773         * sysdeps/powerpc/powerpc64/power7/strchrnul.S: Don't include
56774         <bp-sym.h> and <bp-asm.h>.
56775         (__strchrnul): Don't use BP_SYM.
56776         * sysdeps/powerpc/powerpc64/power7/strlen.S: Don't include
56777         <bp-sym.h> and <bp-asm.h>.
56778         (strlen): Don't use BP_SYM.
56779         * sysdeps/powerpc/powerpc64/power7/strncmp.S: Don't include
56780         <bp-sym.h> and <bp-asm.h>.
56781         (strncmp): Don't use BP_SYM.  Remove comment about bounded
56782         pointers.
56783         * sysdeps/powerpc/powerpc64/power7/strnlen.S: Don't include
56784         <bp-sym.h> and <bp-asm.h>.
56785         (__strnlen): Don't use BP_SYM.
56786         * sysdeps/powerpc/powerpc64/setjmp-common.S: Don't include
56787         <bp-sym.h> and <bp-asm.h>.
56788         (__GI__setjmp): Don't use BP_SYM.
56789         (_setjmp): Likewise.
56790         (__sigsetjmp): Likewise.
56791         * sysdeps/powerpc/powerpc64/start.S: Don't include "bp-sym.h".
56792         (L(start_addresses)): Don't use BP_SYM.
56793         (_start): Likewise.
56794         * sysdeps/powerpc/powerpc64/stpcpy.S: Don't include <bp-sym.h> and
56795         <bp-asm.h>.
56796         (__stpcpy): Don't use BP_SYM, CHECK_BOUNDS_LOW,
56797         STORE_RETURN_BOUNDS, CHECK_BOUNDS_HIGH and STORE_RETURN_VALUE.
56798         (__stpcpy) [__BOUNDED_POINTERS__]: Remove conditional code.
56799         (__stpcpy) [!__BOUNDED_POINTERS__]: Make code unconditional.
56800         * sysdeps/powerpc/powerpc64/strchr.S: Don't include <bp-sym.h> and
56801         <bp-asm.h>.
56802         (strchr): Don't use BP_SYM, CHECK_BOUNDS_LOW, STORE_RETURN_BOUNDS,
56803         CHECK_BOUNDS_HIGH_RTN and STORE_RETURN_VALUE.  Remove comment
56804         about bounded pointers.
56805         (strchr) [__BOUNDED_POINTERS__]: Remove conditional code.
56806         (strchr) [!__BOUNDED_POINTERS__]: Make code unconditional.
56807         * sysdeps/powerpc/powerpc64/strcmp.S: Don't include <bp-sym.h> and
56808         <bp-asm.h>.
56809         (strcmp): Don't use BP_SYM and CHECK_BOUNDS_LOW.  Remove comment
56810         about bounded pointers.  Remove GKM FIXME comments.
56811         (strcmp) [__BOUNDED_POINTERS__]: Remove conditional code.
56812         * sysdeps/powerpc/powerpc64/strcpy.S: Don't include <bp-sym.h> and
56813         <bp-asm.h>.
56814         (strcpy): Don't use BP_SYM, CHECK_BOUNDS_LOW and
56815         STORE_RETURN_BOUNDS.  Remove comment about bounded pointers.
56816         Remove GKM FIXME comments.
56817         (strcpy) [__BOUNDED_POINTERS__]: Remove conditional code.
56818         (strcpy) [!__BOUNDED_POINTERS__]: Make code unconditional.
56819         * sysdeps/powerpc/powerpc64/strlen.S: Don't include <bp-sym.h> and
56820         <bp-asm.h>.
56821         (strlen): Don't use BP_SYM and CHECK_BOUNDS_LOW.  Remove comment
56822         about bounded pointers.  Remove GKM FIXME comment.
56823         * sysdeps/powerpc/powerpc64/strncmp.S: Don't include <bp-sym.h>
56824         and <bp-asm.h>.
56825         (strncmp): Don't use BP_SYM.  Remove comment about bounded
56826         pointers.
56827         * sysdeps/unix/sysv/linux/powerpc/powerpc64/brk.S: Don't include
56828         <bp-sym.h> and <bp-asm.h>.
56829         (__brk): Don't use BP_SYM and DISCARD_BOUNDS.
56830         * sysdeps/unix/sysv/linux/powerpc/powerpc64/clone.S: Don't include
56831         <bp-sym.h> and <bp-asm.h>.
56832         (__clone): Don't use BP_SYM and DISCARD_BOUNDS.  Remove GKM FIXME
56833         comment.
56834
56835 2013-03-05  Paul Pluzhnikov  <ppluzhnikov@google.com>
56836
56837         * stdio-common/vfprintf.c (vfprintf): Check malloc return; don't
56838         call free(NULL).
56839
56840 2013-03-05  David S. Miller  <davem@davemloft.net>
56841
56842         * po/es.po: Update from translation team.
56843
56844 2013-03-05  Andreas Jaeger  <aj@suse.de>
56845
56846         * sysdeps/unix/sysv/linux/s390/bits/mman.h: Include
56847         <bits/mman-linux.h>.
56848         (MCL_CURRENT, MCL_FUTURE): Do not define here, the generic value
56849         is fine.
56850         * sysdeps/unix/sysv/linux/sh/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/x86/bits/mman.h: Move include of
56855         <bits/mman-linux.h> to end of file.
56856         (MCL_CURRENT, MCL_FUTURE): Do not define here, the generic value
56857         is fine.
56858         * sysdeps/unix/sysv/linux/sparc/bits/mman.h: Move include of
56859         <bits/mman-linux.h> to end of file.
56860
56861         * sysdeps/unix/sysv/linux/bits/mman-linux.h [!MCL_CURRENT]
56862         (MCL_CURRENT, MCL_FUTURE): Define here.
56863
56864 2013-03-05  Andreas Krebbel  <Andreas.Krebbel@de.ibm.com>
56865
56866         [BZ #15232]
56867         * sysdeps/s390/s390-32/multiarch/ifunc-resolve.c: Use
56868         attribute_hidden.
56869         * sysdeps/s390/s390-64/multiarch/ifunc-resolve.c: Likewise.
56870
56871 2013-03-05  Andreas Krebbel  <Andreas.Krebbel@de.ibm.com>
56872
56873         * sysdeps/unix/sysv/linux/s390/s390-32/getcontext.S: Set the
56874         fourth parameter needed for rt_sigprocmask syscall.
56875         * sysdeps/unix/sysv/linux/s390/s390-32/setcontext.S:
56876         * sysdeps/unix/sysv/linux/s390/s390-32/swapcontext.S: Likewise.
56877         * sysdeps/unix/sysv/linux/s390/s390-64/getcontext.S: Likewise.
56878         * sysdeps/unix/sysv/linux/s390/s390-64/setcontext.S: Likewise.
56879         * sysdeps/unix/sysv/linux/s390/s390-64/swapcontext.S: Likewise.
56880         * sysdeps/unix/sysv/linux/s390/ucontext_i.sym: Define _NSIG8.
56881
56882 2013-03-04  Joseph Myers  <joseph@codesourcery.com>
56883
56884         [BZ #13550]
56885         * sysdeps/powerpc/powerpc32/power4/strncmp.S (strncmp): Remove
56886         comment about bounded pointers.
56887         * sysdeps/powerpc/powerpc32/power7/strncmp.S (strncmp): Likewise.
56888         * sysdeps/powerpc/powerpc32/strncmp.S (strncmp): Likewise.
56889
56890 2013-03-04  Andreas Jaeger  <aj@suse.de>
56891
56892         * sysdeps/unix/sysv/linux/bits/mman-linux.h: New file, with Linux
56893         common definitions.
56894
56895         * sysdeps/unix/sysv/linux/sh/bits/mman.h: Remove all defines
56896         provided by bits/mman-linux.h and include <bits/mman-linux.h>.
56897         * sysdeps/unix/sysv/linux/x86/bits/mman.h: Likewise.
56898         * sysdeps/unix/sysv/linux/s390/bits/mman.h: Likewise.
56899         * sysdeps/unix/sysv/linux/powerpc/bits/mman.h: Likewise.
56900         * sysdeps/unix/sysv/linux/sparc/bits/mman.h: Likewise.
56901
56902 2013-03-04  Adhemerval Zanella  <azanella@linux.vnet.ibm.com>
56903
56904         [BZ #15055]
56905         * sysdeps/ieee754/ldbl-128ibm/e_acoshl.c (__ieee754_acoshl): Use
56906         __ieee754_sqrl instead of __sqrl.
56907
56908 2013-03-01  Joseph Myers  <joseph@codesourcery.com>
56909
56910         * sysdeps/powerpc/fpu/fpu_control.h: Move to ...
56911         * sysdeps/powerpc/fpu_control.h: ... here.
56912         * sysdeps/powerpc/fpu/bits/fenvinline.h: Move to ...
56913         * sysdeps/powerpc/bits/fenvinline.h: ... here.
56914         * sysdeps/powerpc/fpu/bits/mathinline.h: Move to ...
56915         * sysdeps/powerpc/bits/mathinline.h: ... here.
56916
56917 2013-03-01  Roland McGrath  <roland@hack.frob.com>
56918
56919         * elf/dl-hwcaps.c (_dl_important_hwcaps):
56920         Change [NEED_DL_SYSINFO || NEED_DL_SYSINFO_DSO] conditionals
56921         to just [NEED_DL_SYSINFO_DSO].
56922         * elf/dl-support.c: Likewise.
56923         * elf/dl-sysdep.c (_dl_sysdep_start): Likewise.
56924         * elf/rtld.c (dl_main): Likewise.
56925         * elf/setup-vdso.h (setup_vdso): Likewise.
56926         * sysdeps/generic/ldsodefs.h (struct rtld_global_ro): Likewise.
56927         * sysdeps/unix/sysv/linux/dl-sysdep.c
56928         (_dl_discover_osversion): Likewise.
56929
56930 2013-03-01  Carlos O'Donell  <carlos@redhat.com>
56931
56932         * csu/libc-start.c (__pthread_initialize_minimal): Revert last change.
56933         * csu/libc-tls.c (__pthread_initialize_minimal): Likewise.
56934
56935 2013-03-01  Siddhesh Poyarekar  <siddhesh@redhat.com>
56936
56937         * NEWS: Mention libm performance improvements and non-x86 PI
56938         futex support.
56939
56940         * csu/libc-start.c (__pthread_initialize_minimal): Change
56941         function arguments.
56942         * csu/libc-tls.c (__pthread_initialize_minimal): Likewise.
56943
56944 2013-02-28  Joseph Myers  <joseph@codesourcery.com>
56945
56946         [BZ #13550]
56947         * sysdeps/powerpc/powerpc32/bp-asm.h: Remove file.
56948         * sysdeps/powerpc/powerpc32/__longjmp-common.S: Don't include
56949         <bp-sym.h> and <bp-asm.h>.
56950         (__longjmp): Don't use BP_SYM and CHECK_BOUNDS_BOTH_WIDE_LIT.
56951         * sysdeps/powerpc/powerpc32/a2/memcpy.S: Don't include <bp-sym.h>
56952         and <bp-asm.h>.
56953         (memcpy): Don't use BP_SYM.
56954         * sysdeps/powerpc/powerpc32/add_n.S: Don't include <bp-sym.h> and
56955         <bp-asm.h>.
56956         (__mpn_add_n): Don't use BP_SYM.
56957         (__mpn_add_n) [__BOUNDED_POINTERS_]: Remove conditional code.
56958         * sysdeps/powerpc/powerpc32/addmul_1.S: Don't include <bp-sym.h>
56959         and <bp-asm.h>.
56960         (__mpn_addmul_1): Don't use BP_SYM.
56961         (__mpn_addmul_1) [__BOUNDED_POINTERS__]: Remove conditional code.
56962         * sysdeps/powerpc/powerpc32/bsd-_setjmp.S: Don't include
56963         <bp-sym.h>.
56964         (_setjmp): Don't use BP_SYM.
56965         (__novmx_setjmp): Likewise.
56966         (__GI__setjmp): Likewise.
56967         (__vmx_setjmp): Likewise.
56968         * sysdeps/powerpc/powerpc32/bsd-setjmp.S: Don't include
56969         <bp-sym.h>.
56970         * sysdeps/powerpc/powerpc32/bzero.S: Don't include <bp-sym.h>.
56971         (__bzero): Don't use BP_SYM.
56972         (__bzero) [__BOUNDED_POINTERS__]: Remove conditional code.
56973         (__bzero) [!__BOUNDED_POINTERS__]: Make code unconditional.
56974         * sysdeps/powerpc/powerpc32/cell/memcpy.S: Don't include
56975         <bp-sym.h> and <bp-asm.h>.
56976         (memcpy): Don't use BP_SYM.
56977         * sysdeps/powerpc/powerpc32/fpu/__longjmp-common.S: Don't include
56978         <bp-sym.h> and <bp-asm.h>.
56979         (__longjmp): Don't use BP_SYM and CHECK_BOUNDS_BOTH_WIDE_LIT.
56980         * sysdeps/powerpc/powerpc32/fpu/setjmp-common.S: Don't include
56981         <bp-sym.h> and <bp-asm.h>.
56982         (__sigsetjmp): Don't use BP_SYM and CHECK_BOUNDS_BOTH_WIDE_LIT.
56983         * sysdeps/powerpc/powerpc32/lshift.S: Don't include <bp-sym.h> and
56984         <bp-asm.h>.
56985         (__mpn_lshift): Don't use BP_SYM.
56986         (__mpn_lshift) [__BOUNDED_POINTERS__]: Remove conditional code.
56987         * sysdeps/powerpc/powerpc32/memset.S: Don't include <bp-sym.h> and
56988         <bp-asm.h>.
56989         (memset): Don't use BP_SYM.
56990         (memset) [__BOUNDED_POINTERS__]: Remove conditional code.
56991         (memset) [!__BOUNDED_POINTERS__]: Make code unconditional.
56992         * sysdeps/powerpc/powerpc32/mul_1.S: Don't include <bp-sym.h> and
56993         <bp-asm.h>.
56994         (__mpn_mul_1): Don't use BP_SYM.
56995         (__mpn_mul_1) [__BOUNDED_POINTERS__]: Remove conditional code.
56996         * sysdeps/powerpc/powerpc32/power4/memcmp.S: Don't include
56997         <bp-sym.h> and <bp-asm.h>.
56998         (memcmp): Don't use BP_SYM.
56999         * sysdeps/powerpc/powerpc32/power4/memcpy.S: Don't include
57000         <bp-sym.h> and <bp-asm.h>.
57001         (memcpy): Don't use BP_SYM.
57002         * sysdeps/powerpc/powerpc32/power4/memset.S: Don't include
57003         <bp-sym.h> and <bp-asm.h>.
57004         (memset): Don't use BP_SYM.
57005         * sysdeps/powerpc/powerpc32/power4/strncmp.S: Don't include
57006         <bp-sym.h> and <bp-asm.h>.
57007         (strncmp): Don't use BP_SYM.
57008         * sysdeps/powerpc/powerpc32/power6/memcpy.S: Don't include
57009         <bp-sym.h> and <bp-asm.h>.
57010         (memcpy): Don't use BP_SYM.
57011         * sysdeps/powerpc/powerpc32/power6/memset.S: Don't include
57012         <bp-sym.h> and <bp-asm.h>.
57013         (memset): Don't use BP_SYM.
57014         * sysdeps/powerpc/powerpc32/power7/memchr.S: Don't include
57015         <bp-sym.h> and <bp-asm.h>.
57016         (__memchr): Don't use BP_SYM.
57017         * sysdeps/powerpc/powerpc32/power7/memcmp.S: Don't include
57018         <bp-sym.h> and <bp-asm.h>.
57019         (memcmp): Don't use BP_SYM.
57020         * sysdeps/powerpc/powerpc32/power7/memcpy.S: Don't include
57021         <bp-sym.h> and <bp-asm.h>.
57022         (memcpy): Don't use BP_SYM.
57023         * sysdeps/powerpc/powerpc32/power7/mempcpy.S: Don't include
57024         <bp-sym.h> and <bp-asm.h>.
57025         (__mempcpy): Don't use BP_SYM.
57026         * sysdeps/powerpc/powerpc32/power7/memrchr.S: Don't include
57027         <bp-sym.h> and <bp-asm.h>.
57028         (__memrchr): Don't use BP_SYM.
57029         * sysdeps/powerpc/powerpc32/power7/memset.S: Don't include
57030         <bp-sym.h> and <bp-asm.h>.
57031         (memset): Don't use BP_SYM.
57032         * sysdeps/powerpc/powerpc32/power7/rawmemchr.S: Don't include
57033         <bp-sym.h> and <bp-asm.h>.
57034         (__rawmemchr): Don't use BP_SYM.
57035         * sysdeps/powerpc/powerpc32/power7/strcasecmp.S: Don't include
57036         <bp-sym.h> and <bp-asm.h>.
57037         (__STRCMP): Don't use BP_SYM.
57038         * sysdeps/powerpc/powerpc32/power7/strchr.S: Don't include
57039         <bp-sym.h> and <bp-asm.h>.
57040         (strchr): Don't use BP_SYM.
57041         * sysdeps/powerpc/powerpc32/power7/strchrnul.S: Don't include
57042         <bp-sym.h> and <bp-asm.h>.
57043         (__strchrnul): Don't use BP_SYM.
57044         * sysdeps/powerpc/powerpc32/power7/strlen.S: Don't include
57045         <bp-sym.h> and <bp-asm.h>.
57046         (strlen): Don't use BP_SYM.
57047         * sysdeps/powerpc/powerpc32/power7/strncmp.S: Don't include
57048         <bp-sym.h> and <bp-asm.h>.
57049         (strncmp): Don't use BP_SYM.
57050         * sysdeps/powerpc/powerpc32/power7/strnlen.S: Don't include
57051         <bp-sym.h> and <bp-asm.h>.
57052         (__strnlen): Don't use BP_SYM.
57053         * sysdeps/powerpc/powerpc32/rshift.S: Don't include <bp-sym.h> and
57054         <bp-asm.h>.
57055         (__mpn_rshift): Don't use BP_SYM.
57056         (__mpn_rshift) [__BOUNDED_POINTERS__]: Remove conditional code.
57057         * sysdeps/powerpc/powerpc32/setjmp-common.S: Don't include
57058         <bp-sym.h> and <bp-asm.h>.
57059         (__sigsetjmp): Don't use BP_SYM.
57060         * sysdeps/powerpc/powerpc32/start.S: Don't include "bp-sym.h".
57061         (L(start_addresses)): Don't use BP_SYM.
57062         (_start): Likewise.
57063         * sysdeps/powerpc/powerpc32/stpcpy.S: Don't include <bp-sym.h> and
57064         <bp-asm.h>.
57065         (__stpcpy): Don't use BP_SYM and macros from bp-asm.h.
57066         (__stpcpy) [__BOUNDED_POINTERS__]: Remove conditional code.
57067         (__stpcpy) [!__BOUNDED_POINTERS__]: Make code unconditional.
57068         * sysdeps/powerpc/powerpc32/strchr.S: Don't include <bp-sym.h> and
57069         <bp-asm.h>.
57070         (strchr): Don't use BP_SYM.h and macros from bp-asm.h.
57071         (strchr) [__BOUNDED_POINTERS__]: Remove conditional code.
57072         (strchr) [!__BOUNDED_POINTERS__]: Make code unconditional.
57073         * sysdeps/powerpc/powerpc32/strcmp.S: Don't include <bp-sym.h> and
57074         <bp-asm.h>.
57075         (strcmp): Don't use BP_SYM and CHECK_BOUNDS_LOW.  Remove GKM FIXME
57076         comments.
57077         (strcmp) [__BOUNDED_POINTERS__]: Remove conditional code.
57078         * sysdeps/powerpc/powerpc32/strcpy.S: Don't include <bp-sym.h> and
57079         <bp-asm.h>.
57080         (strcpy): Don't use BP_SYM and macros from bp-asm.h.  Remove GKM
57081         FIXME comments.
57082         (strcpy) [__BOUNDED_POINTERS__]: Remove conditional code.
57083         (strcpy) [!__BOUNDED_POINTERS__]: Make code unconditional.
57084         * sysdeps/powerpc/powerpc32/strlen.S: Don't include <bp-sym.h> and
57085         <bp-asm.h>.
57086         (strlen): Don't use BP_SYM and CHECK_BOUNDS_LOW.  Remove GKM FIXME
57087         comment.
57088         * sysdeps/powerpc/powerpc32/strncmp.S: Don't include <bp-sym.h>
57089         and <bp-asm.h>.
57090         (strncmp): Don't use BP_SYM,
57091         * sysdeps/powerpc/powerpc32/sub_n.S: Don't include <bp-sym.h> and
57092         <bp-asm.h>.
57093         (__mpn_sub_n): Don't use BP_SYM.
57094         (__mpn_sub_n) [__BOUNDED_POINTERS__]: Remove conditional code.
57095         * sysdeps/powerpc/powerpc32/submul_1.S: Don't include <bp-sym.h>
57096         and <bp-asm.h>.
57097         (__mpn_submul_1): Don't use BP_SYM.
57098         (__mpn_submul_1) [__BOUNDED_POINTERS__]: Remove conditional code.
57099         * sysdeps/unix/sysv/linux/powerpc/powerpc32/brk.S: Don't include
57100         <bp-sym.h> and <bp-asm.h>.
57101         (__brk): Don't use BP_SYM and DISCARD_BOUNDS.
57102         * sysdeps/unix/sysv/linux/powerpc/powerpc32/clone.S: Don't include
57103         <bp-sym.h> and <bp-asm.h>.
57104         (__clone): Don't use BP_SYM and DISCARD_BOUNDS.  Remove GKM FIXME
57105         comment.
57106
57107 2013-02-28  Siddhesh Poyarekar  <siddhesh@redhat.com>
57108
57109         * sysdeps/powerpc/powerpc32/power4/fpu/mpa.c (add_magnitudes):
57110         Use ZK to minimize writes to Z.
57111         (sub_magnitudes): Simplify code a bit.
57112         * sysdeps/powerpc/powerpc64/power4/fpu/mpa.c (add_magnitudes):
57113         Use ZK to minimize writes to Z.
57114         (sub_magnitudes): Simplify code a bit.
57115
57116 2013-02-27  Roland McGrath  <roland@hack.frob.com>
57117
57118         * csu/gmon-start.c: Add special exception to license text.
57119
57120 2013-02-27  Richard Henderson  <rth@redhat.com>
57121
57122         * scripts/config.guess: Update from config.git.
57123         * scripts/config.sub: Likewise.
57124
57125 2013-02-27  Siddhesh Poyarekar  <siddhesh@redhat.com>
57126
57127         * sysdeps/ieee754/dbl-64/mpsqrt.c: Reformat.
57128
57129         * sysdeps/ieee754/dbl-64/mpatan2.c: Reformat.
57130
57131         * sysdeps/ieee754/dbl-64/mpatan.c: Reformat.
57132
57133         * sysdeps/ieee754/dbl-64/mptan.c: Reformat.
57134
57135         * sysdeps/ieee754/dbl-64/mplog.c: Reformat.
57136
57137 2013-02-26  Roland McGrath  <roland@hack.frob.com>
57138
57139         * Makeconfig (%.v.i, %.v): Move these pattern rules outside of
57140         [$(build-shared = yes].
57141
57142 2013-02-26  Siddhesh Poyarekar  <siddhesh@redhat.com>
57143
57144         * sysdeps/ieee754/dbl-64/mpa.c: Include alloca.h.
57145         (__mul): Reduce iterations for calculating mantissa.
57146
57147         * sysdeps/ieee754/dbl-64/sincos32.c (__c32): Use MPONE and
57148         MPTWO.
57149         (__mpranred): Likewise.
57150
57151         [BZ #15160]
57152         * malloc/memusagestat.c (main): Draw graphs for heap and stack
57153         only if MAXSIZE_HEAP and MAXSIZE_STACK are non-zero.
57154
57155 2013-02-26  Paul Eggert  <eggert@cs.ucla.edu>
57156
57157         * posix/regex_internal.h [__GNUC__ < 3 + (__GNUC_MINOR__ < 1]:
57158         Define __attribute__.
57159
57160 2013-02-26  Siddhesh Poyarekar  <siddhesh@redhat.com>
57161
57162         * locale/elem-hash.h (elem_hash): Mark as pure and possibly
57163         unused.
57164         * posix/regex_internal.h (__attribute): Remove.
57165         [!_LIBC && __i386__]: Use __attribute__ instead of __attribute.
57166         (re_string_context_at): Likewise.
57167         (bitset_not): Use __attribute__ and mark function as possibly
57168         unused.
57169         (bitset_merge): Likewise.
57170         (bitset_mask): Likewise.
57171         (re_string_char_size_at): Likewise.
57172         (re_string_wchar_at): Likewise.
57173         (re_string_elem_size_at): Likewise.
57174
57175 2013-02-25  Siddhesh Poyarekar  <siddhesh@redhat.com>
57176
57177         * sysdeps/ieee754/dbl-64/sincos32.c (ss32): Remove commented
57178         code.
57179         (cc32): Likewise.
57180
57181         * sysdeps/ieee754/dbl-64/mpa.c (mcr): Use long instead of int.
57182         (__acr): Likewise.
57183         (__cpy): Likewise.
57184         (norm): Likewise.
57185         (denorm): Likewise.
57186         (__dbl_mp): Likewise.
57187         (add_magnitudes): Likewise.
57188         (sub_magnitudes): Likewise.
57189         (__mul): Likewise.
57190         (__inv): Likewise.
57191
57192         * sysdeps/ieee754/dbl-64/slowexp.c: Reformat in GNU coding
57193         style.
57194
57195         * sysdeps/ieee754/dbl-64/slowpow.c: Reformat in GNU coding
57196         style.
57197
57198         * sysdeps/ieee754/dbl-64/slowexp.c (__slowexp): Remove commented
57199         code.
57200
57201         * sysdeps/powerpc/powerpc32/power4/fpu/mpa.c (__mp_dbl): Sync
57202         up changes with default code.
57203         * sysdeps/powerpc/powerpc64/power4/fpu/mpa.c (__mp_dbl):
57204         Likewise.
57205
57206 2013-02-24  Allan McRae  <allan@archlinux.org>
57207
57208         * manual/socket.texi (The Internet Namespace): Order menu items
57209         to match that in the file.
57210
57211         * manual/libc-texinfo.sh: Use @detailmenu around the detailed
57212         node listing of the info page menu.
57213
57214 2013-02-21  Joseph Myers  <joseph@codesourcery.com>
57215
57216         [BZ #13550]
57217         * sysdeps/i386/bp-asm.h: Remove file.
57218         * sysdeps/i386/add_n.S: Do not include "bp-sym.h" and "bp-asm.h".
57219         (PARMS): Do not use macros from bp-asm.h.
57220         (S1): Likewise.
57221         (S2): Likewise.
57222         (SIZE): Likewise.
57223         (__mpn_add_n): Do not use BP_SYM
57224         * sysdeps/i386/addmul_1.S: Do not include "bp-sym.h" and
57225         "bp-asm.h".
57226         (PARMS): Do not use macros from bp-asm.h.
57227         (S1): Likewise.
57228         (SIZE): Likewise.
57229         (__mpn_addmul_1): Do not use BP_SYM
57230         * sysdeps/i386/bsd-_setjmp.S: Do not include "bp-sym.h" and
57231         "bp-asm.h".
57232         (PARMS): Do not use macros from bp-asm.h.
57233         (SIGMSK): Likewise.
57234         (_setjmp): Likewise.  Do not use BP_SYM.
57235         * sysdeps/i386/bsd-setjmp.S: Do not include "bp-sym.h" and
57236         "bp-asm.h".
57237         (PARMS): Do not use macros from bp-asm.h.
57238         (SIGMSK): Likewise.
57239         (setjmp): Likewise.  Do not use BP_SYM.
57240         * sysdeps/i386/fpu/s_frexp.S: Do not include "bp-sym.h" and
57241         "bp-asm.h".
57242         (PARMS): Do not use macros from bp-asm.h.
57243         (__frexp): Do not use BP_SYM.
57244         (frexp): Likewise.
57245         * sysdeps/i386/fpu/s_frexpf.S: Do not include "bp-sym.h" and
57246         "bp-asm.h".
57247         (PARMS): Do not use macros from bp-asm.h.
57248         (__frexpf): Do not use BP_SYM.
57249         (frexpf): Likewise.
57250         * sysdeps/i386/fpu/s_frexpl.S: Do not include "bp-sym.h" and
57251         "bp-asm.h".
57252         (PARMS): Do not use macros from bp-asm.h.
57253         (__frexpl): Do not use BP_SYM.
57254         (frexpl): Likewise.
57255         * sysdeps/i386/fpu/s_remquo.S: Do not include "bp-sym.h" and
57256         "bp-asm.h".
57257         (PARMS): Do not use macros from bp-asm.h.
57258         (__remquo): Do not use BP_SYM.
57259         (remquo): Likewise.
57260         * sysdeps/i386/fpu/s_remquof.S: Do not include "bp-sym.h" and
57261         "bp-asm.h".
57262         (PARMS): Do not use macros from bp-asm.h.
57263         (__remquof): Do not use BP_SYM.
57264         (remquof): Likewise.
57265         * sysdeps/i386/fpu/s_remquol.S: Do not include "bp-sym.h" and
57266         "bp-asm.h".
57267         (PARMS): Do not use macros from bp-asm.h.
57268         (__remquol): Do not use BP_SYM.
57269         (remquol): Likewise.
57270         * sysdeps/i386/i486/strcat.S: Do not include "bp-sym.h" and
57271         "bp-asm.h".
57272         (PARMS): Do not use macros from bp-asm.h.
57273         (DEST): Likewise.
57274         (SRC): Likewise.
57275         (strcat): Remove GKM FIXME comment.  Do not use BP_SYM.
57276         * sysdeps/i386/i486/strlen.S: Do not include "bp-sym.h" and
57277         "bp-asm.h".
57278         (PARMS): Do not use macros from bp-asm.h.
57279         (strlen): Do not use BP_SYM.
57280         * sysdeps/i386/i586/add_n.S: Do not include "bp-sym.h" and
57281         "bp-asm.h".
57282         (PARMS): Do not use macros from bp-asm.h.
57283         (S1): Likewise.
57284         (S2): Likewise.
57285         (SIZE): Likewise.
57286         (__mpn_add_n): Do not use BP_SYM.
57287         * sysdeps/i386/i586/addmul_1.S: Do not include "bp-sym.h" and
57288         "bp-asm.h".
57289         (PARMS): Do not use macros from bp-asm.h.
57290         (S1): Likewise.
57291         (SIZE): Likewise.
57292         (__mpn_addmul_1): Do not use BP_SYM.
57293         * sysdeps/i386/i586/bzero.S (__bzero): Do not use BP_SYM in
57294         weak_alias.
57295         (bzero): Likewise.
57296         * sysdeps/i386/i586/lshift.S: Do not include "bp-sym.h" and
57297         "bp-asm.h".
57298         (PARMS): Do not use macros from bp-asm.h.
57299         (S): Likewise.
57300         (SIZE): Likewise.
57301         (__mpn_lshift): Do not use BP_SYM.
57302         * sysdeps/i386/i586/memcpy.S: Do not include "bp-sym.h" and
57303         "bp-asm.h".
57304         (PARMS): Do not use macros from bp-asm.h.
57305         (DEST): Likewise.
57306         (SRC): Likewise.
57307         (LEN): Likewise.
57308         (memcpy): Likewise.  Do not use BP_SYM.
57309         * sysdeps/i386/i586/mempcpy.S (__mempcpy): Do not use BP_SYM in
57310         libc_hidden_def and weak_alias.
57311         (mempcpy): Do not use BP_SYM in weak_alias.
57312         * sysdeps/i386/i586/memset.S: Do not include "bp-sym.h" and
57313         "bp-asm.h".
57314         (PARMS): Do not use macros from bp-asm.h.
57315         (DEST): Likewise.
57316         (LEN): Likewise.
57317         [!BZERO_P] (CHR): Likewise.
57318         (memset): Likewise.  Do not use BP_SYM.
57319         * sysdeps/i386/i586/mul_1.S: Do not include "bp-sym.h" and
57320         "bp-asm.h".
57321         (PARMS): Do not use macros from bp-asm.h.
57322         (S1): Likewise.
57323         (SIZE): Likewise.
57324         (__mpn_mul_1): Do not use BP_SYM.
57325         * sysdeps/i386/i586/rshift.S: Do not include "bp-sym.h" and
57326         "bp-asm.h".
57327         (PARMS): Do not use macros from bp-asm.h.
57328         (S): Likewise.
57329         (SIZE): Likewise.
57330         (__mpn_rshift): Do not use BP_SYM.
57331         * sysdeps/i386/i586/strchr.S: Do not include "bp-sym.h" and
57332         "bp-asm.h".
57333         (PARMS): Do not use macros from bp-asm.h.
57334         (STR): Likewise.
57335         (CHR): Likewise.
57336         (strchr): Likewise.  Do not use BP_SYM.
57337         (index): Do not use BP_SYM in weak_alias.
57338         * sysdeps/i386/i586/strcpy.S: Do not include "bp-sym.h" and
57339         "bp-asm.h".
57340         (PARMS): Do not use macros from bp-asm.h.
57341         (DEST): Likewise.
57342         (SRC): Likewise.
57343         (STRCPY): Likewise.  Remove GKM FIXME comment.  Do not use BP_SYM.
57344         * sysdeps/i386/i586/strlen.S: Do not include "bp-sym.h" and
57345         "bp-asm.h".
57346         (PARMS): Do not use macros from bp-asm.h.
57347         (strlen): Do not use BP_SYM.
57348         * sysdeps/i386/i586/sub_n.S: Do not include "bp-sym.h" and
57349         "bp-asm.h".
57350         (PARMS): Do not use macros from bp-asm.h.
57351         (S1): Likewise.
57352         (S2): Likewise.
57353         (SIZE): Likewise.
57354         (__mpn_sub_n): Do not use BP_SYM.
57355         * sysdeps/i386/i586/submul_1.S: Do not include "bp-sym.h" and
57356         "bp-asm.h".
57357         (PARMS): Do not use macros from bp-asm.h.
57358         (S1): Likewise.
57359         (SIZE): Likewise.
57360         (__mpn_submul_1): Do not use BP_SYM.
57361         * sysdeps/i386/i686/add_n.S: Do not include "bp-sym.h" and
57362         "bp-asm.h".
57363         (PARMS): Do not use macros from bp-asm.h.
57364         (S1): Likewise.
57365         (S2): Likewise.
57366         (SIZE): Likewise.
57367         (__mpn_add_n): Do not use BP_SYM.
57368         * sysdeps/i386/i686/bzero.S (__bzero): Do not use BP_SYM in
57369         weak_alias.
57370         (bzero): Likewise.
57371         * sysdeps/i386/i686/memcmp.S: Do not include "bp-sym.h" and
57372         "bp-asm.h".
57373         (PARMS): Do not use macros from bp-asm.h.
57374         (BLK2): Likewise.
57375         (LEN): Likewise.
57376         (memcmp): Do not use BP_SYM.
57377         (bcmp): Do not use BP_SYM in weak_alias.
57378         * sysdeps/i386/i686/memcpy.S: Do not include "bp-sym.h" and
57379         "bp-asm.h".
57380         (PARMS): Do not use macros from bp-asm.h.
57381         (DEST): Likewise.
57382         (SRC): Likewise.
57383         (LEN): Likewise.
57384         (memcpy): Likewise.  Do not use BP_SYM.
57385         * sysdeps/i386/i686/memmove.S: Do not include "bp-sym.h" and
57386         "bp-asm.h".
57387         (PARMS): Do not use macros from bp-asm.h.
57388         (DEST): Likewise.
57389         (SRC): Likewise.
57390         (LEN): Likewise.
57391         (memmove): Likewise.  Do not use BP_SYM.
57392         * sysdeps/i386/i686/mempcpy.S: Do not include "bp-sym.h" and
57393         "bp-asm.h".
57394         (PARMS): Do not use macros from bp-asm.h.
57395         (DEST): Likewise.
57396         (SRC): Likewise.
57397         (LEN): Likewise.
57398         (__mempcpy): Likewise.  Do not use BP_SYM.
57399         (mempcpy): Do not use BP_SYM in weak_alias.
57400         * sysdeps/i386/i686/memset.S: Do not include "bp-sym.h" and
57401         "bp-asm.h".
57402         (PARMS): Do not use macros from bp-asm.h.
57403         (DEST): Likewise.
57404         (LEN): Likewise.
57405         [!BZERO_P] (CHR): Likewise.
57406         (memset): Likewise.  Do not use BP_SYM.
57407         * sysdeps/i386/i686/strcmp.S: Do not include "bp-sym.h" and
57408         "bp-asm.h".
57409         (PARMS): Do not use macros from bp-asm.h.
57410         (STR2): Likewise.
57411         (strcmp): Do not use BP_SYM.
57412         * sysdeps/i386/i686/strtok.S: Do not include "bp-sym.h" and
57413         "bp-asm.h".
57414         (PARMS): Do not use macros from bp-asm.h.
57415         (STR): Likewise.
57416         (DELIM): Likewise.
57417         [USE_AS_STRTOK_R] (SAVE): Likewise.
57418         (FUNCTION): Likewise.  Do not use BP_SYM.
57419         * sysdeps/i386/i686/strtok_r.S (__strtok_r): Do not use BP_SYM in
57420         aliases.
57421         (strtok_r): Likewise.
57422         (__GI___strtok_r): Likewise.
57423         * sysdeps/i386/lshift.S: Do not include "bp-sym.h" and "bp-asm.h".
57424         (PARMS): Do not use macros from bp-asm.h.
57425         (S): Likewise.
57426         (SIZE): Likewise.
57427         (__mpn_lshift): Do not use BP_SYM.
57428         * sysdeps/i386/memchr.S: Do not include "bp-sym.h" and "bp-asm.h".
57429         (PARMS): Do not use macros from bp-asm.h.
57430         (STR): Likewise.
57431         (CHR): Likewise.
57432         (__memchr): Do not use BP_SYM.
57433         (memchr): Do not use BP_SYM in weak_alias.
57434         * sysdeps/i386/memcmp.S: Do not include "bp-sym.h" and "bp-asm.h".
57435         (PARMS): Do not use macros from bp-asm.h.
57436         (BLK2): Likewise.
57437         (LEN): Likewise.
57438         (memcmp): Do not use BP_SYM.
57439         (bcmp): Do not use BP_SYM in weak_alias.
57440         * sysdeps/i386/mul_1.S: Do not include "bp-sym.h" and "bp-asm.h".
57441         (PARMS): Do not use macros from bp-asm.h.
57442         (S1): Likewise.
57443         (SIZE): Likewise.
57444         (__mpn_mul_1): Do not use BP_SYM.
57445         * sysdeps/i386/rawmemchr.S: Do not include "bp-sym.h" and
57446         "bp-asm.h".
57447         (PARMS): Do not use macros from bp-asm.h.
57448         (STR): Likewise.
57449         (CHR): Likewise.
57450         (__rawmemchr): Do not use BP_SYM.
57451         (rawmemchr): Do not use BP_SYM in weak_alias.
57452         * sysdeps/i386/rshift.S: Do not include "bp-sym.h" and "bp-asm.h".
57453         (PARMS): Do not use macros from bp-asm.h.
57454         (S): Likewise.
57455         (SIZE): Likewise.
57456         (__mpn_rshift): Do not use BP_SYM.
57457         * sysdeps/i386/setjmp.S: Do not include "bp-sym.h" and "bp-asm.h".
57458         (PARMS): Do not use macros from bp-asm.h.
57459         (SIGMSK): Likewise.
57460         (__sigsetjmp): Likewise.  Do not use BP_SYM.
57461         * sysdeps/i386/start.S: Do not include "bp-sym.h".
57462         (_start): Do not use BP_SYM.
57463         * sysdeps/i386/stpcpy.S: Do not include "bp-sym.h" and "bp-asm.h".
57464         (PARMS): Do not use macros from bp-asm.h.
57465         (DEST): Likewise.
57466         (SRC): Likewise.
57467         (__stpcpy): Likewise.  Do not use BP_SYM.
57468         (stpcpy): Do not use BP_SYM in weak_alias.
57469         * sysdeps/i386/stpncpy.S: Do not include "bp-sym.h" and
57470         "bp-asm.h".
57471         (PARMS): Do not use macros from bp-asm.h.
57472         (DEST): Likewise.
57473         (SRC): Likewise.
57474         (LEN): Likewise.
57475         (__stpncpy): Likewise.  Do not use BP_SYM.
57476         (stpncpy): Do not use BP_SYM in weak_alias.
57477         * sysdeps/i386/strchr.S: Do not include "bp-sym.h" and "bp-asm.h".
57478         (PARMS): Do not use macros from bp-asm.h.
57479         (STR): Likewise.
57480         (CHR): Likewise.
57481         (strchr): Likewise.  Do not use BP_SYM.
57482         * sysdeps/i386/strchrnul.S: Do not include "bp-sym.h" and
57483         "bp-asm.h".
57484         (PARMS): Do not use macros from bp-asm.h.
57485         (STR): Likewise.
57486         (CHR): Likewise.
57487         (__strchrnul): Likewise.  Do not use BP_SYM.
57488         (strchrnul): Do not use BP_SYM in weak_alias.
57489         * sysdeps/i386/strcspn.S: Do not include "bp-sym.h" and
57490         "bp-asm.h".
57491         (PARMS): Do not use macros from bp-asm.h.
57492         (STOP): Likewise.
57493         (strcspn): Do not use BP_SYM.
57494         * sysdeps/i386/strpbrk.S: Do not include "bp-sym.h" and
57495         "bp-asm.h".
57496         (PARMS): Do not use macros from bp-asm.h.
57497         (STR): Likewise.
57498         (STOP): Likewise.
57499         (strpbrk): Likewise.  Do not use BP_SYM.
57500         * sysdeps/i386/strrchr.S: Do not include "bp-sym.h" and
57501         "bp-asm.h".
57502         (PARMS): Do not use macros from bp-asm.h.
57503         (STR): Likewise.
57504         (CHR): Likewise.
57505         (strrchr): Likewise.  Do not use BP_SYM.
57506         * sysdeps/i386/strspn.S: Do not include "bp-sym.h" and "bp-asm.h".
57507         (PARMS): Do not use macros from bp-asm.h.
57508         (SKIP): Likewise.
57509         (strspn): Do not use BP_SYM.
57510         * sysdeps/i386/strtok.S: Do not include "bp-sym.h" and "bp-asm.h".
57511         (PARMS): Do not use macros from bp-asm.h.
57512         (STR): Likewise.
57513         (DELIM): Likewise.
57514         (SAVE): Likewise.
57515         (FUNCTION): Likewise.  Do not use BP_SYM.
57516         * sysdeps/i386/strtok_r.S (__strtok_r): Do not use BP_SYM in
57517         aliases.
57518         (strtok_r): Likewise.
57519         (__GI___strtok_r): Likewise.
57520         * sysdeps/i386/sub_n.S: Do not include "bp-sym.h" and "bp-asm.h".
57521         (PARMS): Do not use macros from bp-asm.h.
57522         (S1): Likewise.
57523         (S2): Likewise.
57524         (SIZE): Likewise.
57525         (__mpn_sub_n): Do not use BP_SYM.
57526         * sysdeps/i386/submul_1.S: Do not include "bp-sym.h" and
57527         "bp-asm.h".
57528         (PARMS): Do not use macros from bp-asm.h.
57529         (S1): Likewise.
57530         (SIZE): Likewise.
57531         (__mpn_submul_1): Do not use BP_SYM.
57532         * sysdeps/unix/i386/sysdep.S: Do not include <bp-asm.h> and
57533         <bp-sym.h>.
57534         * sysdeps/unix/sysv/linux/i386/clone.S: Do not include <bp-sym.h>
57535         and <bp-asm.h>.
57536         (PARMS): Do not use macros from bp-asm.h.
57537         (FLAGS): Likewise.
57538         (PTID): Likewise.
57539         (TLS): Likewise.
57540         (CTID): Likewise.
57541         (__clone): Do not use BP_SYM.
57542         (clone): Do not use BP_SYM in weak_alias.
57543         * sysdeps/unix/sysv/linux/i386/mmap64.S: Do not include <bp-sym.h>
57544         and <bp-asm.h>.
57545         (PARMS): Do not use macros from bp-asm.h.
57546         (LEN): Likewise.
57547         (__mmap64): Do not use BP_SYM.
57548         (mmap64): Do not use BP_SYM in weak_alias.
57549         * sysdeps/unix/sysv/linux/i386/posix_fadvise64.S: Do not include
57550         <bp-sym.h> and <bp-asm.h>.
57551         (PARMS): Do not use macros from bp-asm.h.
57552         (__posix_fadvise64_l64): Do not use BP_SYM.
57553         * sysdeps/unix/sysv/linux/i386/semtimedop.S
57554         (PARMS): Do not use macros from bp-asm.h.
57555         (NSOPS): Likewise.
57556         (semtimedop): Do not use BP_SYM.
57557         * sysdeps/unix/sysv/linux/i386/sysdep.h: Do not include <bp-sym.h>
57558         and <bp-asm.h>.
57559
57560 2013-02-21  Allan McRae  <allan@archlinux.org>
57561
57562         * manual/message.texi (Charset conversion in gettext):
57563         Move @end statement to beginning of line.
57564
57565 2013-02-21  Siddhesh Poyarekar  <siddhesh@redhat.com>
57566
57567         * sysdeps/powerpc/powerpc32/power4/fpu/mpa.c (__inv): Mark as
57568         static.
57569         * sysdeps/powerpc/powerpc64/power4/fpu/mpa.c (__inv):
57570         Likewise.
57571
57572         * sysdeps/ieee754/dbl-64/mpa.c (norm): Fix whitespace.
57573         (denorm): Likewise.
57574         * sysdeps/powerpc/powerpc32/power4/fpu/mpa.c (norm): Likewise.
57575         * sysdeps/powerpc/powerpc64/power4/fpu/mpa.c (norm): Likewise.
57576
57577 2013-02-21  Andreas Krebbel  <Andreas.Krebbel@de.ibm.com>
57578
57579         * sysdeps/s390/s390-32/dl-trampoline.S (_dl_runtime_profile): Do a
57580         tail-call to the resolved function if pltexit isn't needed.
57581
57582 2013-02-21  Siddhesh Poyarekar  <siddhesh@redhat.com>
57583
57584         * sysdeps/powerpc/powerpc32/power4/fpu/mpa.c (__mul): Mark X
57585         or Y being zero as being unlikely.
57586         * sysdeps/powerpc/powerpc64/power4/fpu/mpa.c (__mul):
57587         Likewise.
57588
57589 2013-02-20  Carlos O'Donell  <carlos@redhat.com>
57590
57591         * manual/nss.texi (System Databases and Name Service Switch):
57592         Remove frobnicate @pxref.
57593
57594 2013-02-20  Thomas Schwinge  <thomas@codesourcery.com>
57595
57596         * sysdeps/ieee754/bits/nan.h [!__GNUC__] (__nan_union): Change
57597         __attribute__ ((unused)) to __attribute__ ((__unused__)).
57598
57599 2013-02-20  Petr Machata  <pmachata@redhat.com>
57600
57601         * elf/elf.h (R_ARM_TARGET1): New macro.
57602         (R_ARM_SBREL31, R_ARM_V4BX, R_ARM_TARGET2): Likewise.
57603         (R_ARM_PREL31, R_ARM_MOVW_ABS_NC, R_ARM_MOVT_ABS): Likewise.
57604         (R_ARM_MOVW_PREL_NC, R_ARM_MOVT_PREL): Likewise.
57605         (R_ARM_THM_MOVW_ABS_NC, R_ARM_THM_MOVT_ABS): Likewise.
57606         (R_ARM_THM_MOVW_PREL_NC, R_ARM_THM_MOVT_PREL): Likewise.
57607         (R_ARM_THM_JUMP19, R_ARM_THM_JUMP6): Likewise.
57608         (R_ARM_THM_ALU_PREL_11_0, R_ARM_THM_PC12): Likewise.
57609         (R_ARM_ABS32_NOI, R_ARM_REL32_NOI): Likewise.
57610         (R_ARM_ALU_PC_G0_NC, R_ARM_ALU_PC_G0): Likewise.
57611         (R_ARM_ALU_PC_G1_NC, R_ARM_ALU_PC_G1): Likewise.
57612         (R_ARM_ALU_PC_G2, R_ARM_LDR_PC_G1, R_ARM_LDR_PC_G2): Likewise.
57613         (R_ARM_LDRS_PC_G0, R_ARM_LDRS_PC_G1): Likewise.
57614         (R_ARM_LDRS_PC_G2, R_ARM_LDC_PC_G0): Likewise.
57615         (R_ARM_LDC_PC_G1, R_ARM_LDC_PC_G2): Likewise.
57616         (R_ARM_ALU_SB_G0_NC, R_ARM_ALU_SB_G0): Likewise.
57617         (R_ARM_ALU_SB_G1_NC, R_ARM_ALU_SB_G1): Likewise.
57618         (R_ARM_ALU_SB_G2, R_ARM_LDR_SB_G0, R_ARM_LDR_SB_G1): Likewise.
57619         (R_ARM_LDR_SB_G2, R_ARM_LDRS_SB_G0): Likewise.
57620         (R_ARM_LDRS_SB_G1, R_ARM_LDRS_SB_G2): Likewise.
57621         (R_ARM_LDC_SB_G0, R_ARM_LDC_SB_G1, R_ARM_LDC_SB_G2): Likewise.
57622         (R_ARM_MOVW_BREL_NC, R_ARM_MOVT_BREL): Likewise.
57623         (R_ARM_MOVW_BREL, R_ARM_THM_MOVW_BREL_NC): Likewise.
57624         (R_ARM_THM_MOVT_BREL, R_ARM_THM_MOVW_BREL): Likewise.
57625         (R_ARM_PLT32_ABS, R_ARM_GOT_ABS, R_ARM_GOT_PREL): Likewise.
57626         (R_ARM_GOT_BREL12, R_ARM_GOTOFF12, R_ARM_GOTRELAX): Likewise.
57627         (R_ARM_TLS_LDO12, R_ARM_TLS_LE12, R_ARM_TLS_IE12GP): Likewise.
57628         (R_ARM_PRIVATE_0, R_ARM_PRIVATE_1, R_ARM_PRIVATE_2): Likewise.
57629         (R_ARM_PRIVATE_3, R_ARM_PRIVATE_4, R_ARM_PRIVATE_5): Likewise.
57630         (R_ARM_PRIVATE_6, R_ARM_PRIVATE_7, R_ARM_PRIVATE_8): Likewise.
57631         (R_ARM_PRIVATE_9, R_ARM_PRIVATE_10): Likewise.
57632         (R_ARM_PRIVATE_11, R_ARM_PRIVATE_12): Likewise.
57633         (R_ARM_PRIVATE_13, R_ARM_PRIVATE_14): Likewise.
57634         (R_ARM_PRIVATE_15, R_ARM_ME_TOO): Likewise.
57635         (R_ARM_THM_TLS_DESCSEQ16, R_ARM_THM_TLS_DESCSEQ32): Likewise.
57636         (R_ARM_THM_GOT_BREL12): Likewise.
57637         (R_ARM_PC24, R_ARM_PLT32): Updated a comment at this macro.
57638         (R_ARM_THM_PC11, R_ARM_THM_PC9): Likewise.
57639         (R_ARM_THM_ABS5, R_ARM_THM_PC22): Added a comment to this macro.
57640         (R_ARM_THM_PC8, R_ARM_THM_SWI8, R_ARM_XPC25): Likewise.
57641         (R_ARM_THM_XPC22, R_ARM_ALU_PCREL_7_0): Likewise.
57642         (R_ARM_ALU_PCREL_15_8, R_ARM_ALU_PCREL_23_15): Likewise.
57643         (R_ARM_LDR_SBREL_11_0, R_ARM_ALU_SBREL_19_12): Likewise.
57644         (R_ARM_ALU_SBREL_27_20, R_ARM_TLS_DESCSEQ): Likewise.
57645         (R_ARM_THM_TLS_DESCSEQ): Fixed whitespace.
57646
57647 2013-02-20  Thomas Schwinge  <thomas@codesourcery.com>
57648
57649         * sysdeps/ieee754/bits/nan.h [!__GNUC__] (__nan_union): Change
57650         __attribute_used__ to __attribute__ ((unused)).
57651
57652 2013-02-20  Siddhesh Poyarekar  <siddhesh@redhat.com>
57653
57654         * sysdeps/ieee754/dbl-64/mpa.c (__sqr): Copy over comment from
57655         powerpc mpa.c.
57656         * sysdeps/powerpc/powerpc32/power4/fpu/mpa.c (__mul): Fix
57657         comment formatting.
57658         * sysdeps/powerpc/powerpc64/power4/fpu/mpa.c (__mul): Likewise.
57659
57660 2013-02-19  Joseph Myers  <joseph@codesourcery.com>
57661
57662         [BZ #13550]
57663         * sysdeps/i386/bp-asm.h [__BOUNDED_POINTERS__] (BOUNDS_VIOLATED):
57664         Remove macro.
57665         (ENTER): Remove both macro definitions.
57666         (LEAVE): Likewise.
57667         (CHECK_BOUNDS_LOW): Likewise.
57668         (CHECK_BOUNDS_HIGH): Likewise.
57669         (CHECK_BOUNDS_BOTH): Likewise.
57670         (CHECK_BOUNDS_BOTH_WIDE): Likewise.
57671         (RETURN_BOUNDED_POINTER): Likewise.
57672         (RETURN_NULL_BOUNDED_POINTER): Likewise.
57673         (PUSH_ERRNO_LOCATION_RETURN): Likewise.
57674         (POP_ERRNO_LOCATION_RETURN): Likewise.
57675         * sysdeps/i386/add_n.S (__mpn_add_n): Do not use removed macros.
57676         (__mpn_add_n) [__BOUNDED_POINTERS__]: Remove conditional code.
57677         * sysdeps/i386/addmul_1.S (__mpn_addmul_1): Do not use removed
57678         macros.
57679         (__mpn_addmul_1) [__BOUNDED_POINTERS__]: Remove conditional code.
57680         * sysdeps/i386/bsd-_setjmp.S (_setjmp): Do not use removed macros.
57681         * sysdeps/i386/bsd-setjmp.S (setjmp): Likewise.
57682         * sysdeps/i386/fpu/s_frexp.S (__frexp): Likewise.
57683         * sysdeps/i386/fpu/s_frexpf.S (__frexpf): Likewise.
57684         * sysdeps/i386/fpu/s_frexpl.S (__frexpl): Likewise.
57685         * sysdeps/i386/fpu/s_remquo.S (__remquo): Likewise.
57686         * sysdeps/i386/fpu/s_remquof.S (__remquof): Likewise.
57687         * sysdeps/i386/fpu/s_remquol.S (__remquol): Likewise.
57688         * sysdeps/i386/i486/strcat.S (strcat): Likewise.
57689         * sysdeps/i386/i486/strlen.S (strlen): Likewise.
57690         * sysdeps/i386/i586/add_n.S (__mpn_add_n): Likewise.
57691         (__mpn_add_n) [__BOUNDED_POINTERS__]: Remove conditional code.
57692         * sysdeps/i386/i586/addmul_1.S (__mpn_addmul_1): Do not use
57693         removed macros.
57694         (__mpn_addmul_1) [__BOUNDED_POINTERS__]: Remove conditional code.
57695         * sysdeps/i386/i586/lshift.S (__mpn_lshift): Do not use removed
57696         macros.
57697         (__mpn_lshift) [__BOUNDED_POINTERS__]: Remove conditional code.
57698         * sysdeps/i386/i586/memcpy.S (memcpy): Do not use removed macros.
57699         * sysdeps/i386/i586/memset.S (memset): Likewise.
57700         * sysdeps/i386/i586/mul_1.S (__mpn_mul_1): Likewise.
57701         (__mpn_mul_1) [__BOUNDED_POINTERS__]: Remove conditional code.
57702         * sysdeps/i386/i586/rshift.S (__mpn_rshift): Do not use removed
57703         macros.
57704         (__mpn_rshift) [__BOUNDED_POINTERS__]: Remove conditional code.
57705         * sysdeps/i386/i586/strchr.S (strchr): Do not use removed macros.
57706         Change uses of L(2) to L(out).
57707         * sysdeps/i386/i586/strcpy.S (STRCPY): Do not use removed macros.
57708         * sysdeps/i386/i586/strlen.S (strlen): Likewise.
57709         * sysdeps/i386/i586/sub_n.S (__mpn_sub_n): Likewise.
57710         (__mpn_sub_n) [__BOUNDED_POINTERS__]: Remove conditional code.
57711         * sysdeps/i386/i586/submul_1.S (__mpn_submul_1): Do not use
57712         removed macros.
57713         (__mpn_submul_1) [__BOUNDED_POINTERS__]: Remove conditional code.
57714         * sysdeps/i386/i686/add_n.S (__mpn_add_n): Do not use removed
57715         macros.
57716         (__mpn_add_n) [__BOUNDED_POINTERS__]: Remove conditional code.
57717         * sysdeps/i386/i686/memcmp.S (ENTRANCE): Do not use macro ENTER.
57718         (RETURN): Do not use macro LEAVE.
57719         * sysdeps/i386/i686/memcpy.S (memcpy): Do not use removed macros.
57720         * sysdeps/i386/i686/memmove.S (memmove): Likewise.
57721         * sysdeps/i386/i686/mempcpy.S (mempcpy): Likewise.
57722         * sysdeps/i386/i686/memset.S (memset): Likewise.
57723         * sysdeps/i386/i686/strcmp.S (strcmp): Likewise.
57724         (strcmp) [!__BOUNDED_POINTERS__]: Make code unconditional.
57725         (strcmp) [__BOUNDED_POINTERS__]: Remove conditional code.
57726         * sysdeps/i386/i686/strtok.S (save_ptr) [__BOUNDED_POINTERS__]:
57727         Likewise.
57728         (save_ptr) [!__BOUNDED_POINTERS__]: Make code unconditional.
57729         (FUNCTION): Do not use removed macros.  Combine labels L(1_1),
57730         L(1_2) and L(1_3) into L(1).
57731         (FUNCTION) [__BOUNDED_POINTERS__]: Remove conditional code.
57732         * sysdeps/i386/lshift.S (__mpn_lshift): Do not use removed macros.
57733         (__mpn_lshift) [__BOUNDED_POINTERS__]: Remove conditional code.
57734         * sysdeps/i386/memchr.S (__memchr): Do not use removed macros.
57735         (__memchr) [__BOUNDED_POINTERS__]: Remove conditional code.
57736         * sysdeps/i386/memcmp.S (memcmp): Do not use removed macros.
57737         * sysdeps/i386/mul_1.S (__mpn_mul_1): Likewise.
57738         (__mpn_mul_1) [__BOUNDED_POINTERS__]: Remove conditional code.
57739         * sysdeps/i386/rawmemchr.S (__rawmemchr): Do not use removed
57740         macros.
57741         * sysdeps/i386/rshift.S (__mpn_rshift): Likewise.
57742         (__mpn_rshift) [__BOUNDED_POINTERS__]: Remove conditional code.
57743         * sysdeps/i386/setjmp.S (__sigsetjmp): Do not use removed macros.
57744         * sysdeps/i386/stpcpy.S (__stpcpy): Likewise.
57745         * sysdeps/i386/stpncpy.S (__stpncpy): Likewise.
57746         (__stpncpy) [__BOUNDED_POINTERS__]: Remove conditional code.
57747         * sysdeps/i386/strchr.S (strchr): Do not use removed macros.
57748         * sysdeps/i386/strchrnul.S (__strchrnul): Likewise.
57749         * sysdeps/i386/strcspn.S (strcspn): Likewise.
57750         * sysdeps/i386/strpbrk.S (strpbrk): Likewise.
57751         * sysdeps/i386/strrchr.S (strrchr): Likewise.
57752         * sysdeps/i386/strspn.S (strspn): Likewise.
57753         * sysdeps/i386/strtok.S (save_ptr) [__BOUNDED_POINTERS__]: Remove
57754         conditional code.
57755         (save_ptr) [!__BOUNDED_POINTERS__]: Make code unconditional.
57756         (FUNCTION) [!__BOUNDED_POINTERS__]: Likewise.
57757         (FUNCTION) [__BOUNDED_POINTERS__]: Remove conditional code.
57758         (FUNCTION): Do not use removed macros.  Combine labels L(1_2) and
57759         L(1_3) into L(1_1).
57760         * sysdeps/i386/sub_n.S (__mpn_sub_n): Do not use removed macros.
57761         (__mpn_sub_n) [__BOUNDED_POINTERS__]: Remove conditional code.
57762         * sysdeps/i386/submul_1.S (__mpn_submul_1): Do not use removed
57763         macros.
57764         (__mpn_submul_1) [__BOUNDED_POINTERS__]: Remove conditional code.
57765
57766 2013-02-19  Jakub Jelinek  <jakub@redhat.com>
57767
57768         * stdlib/strtod_l.c (__mpn_lshift_1): Rewritten as function-like
57769         macro.
57770
57771 2013-02-19  Siddhesh Poyarekar  <siddhesh@redhat.com>
57772
57773         * math/atest-exp.c (exp_mpn): Remove ROUND.
57774         * math/atest-exp2.c (exp_mpn): Likewise.
57775         * math/atest-sincos.c (sincosx_mpn): Remove ROUND and CHK.
57776
57777         * stdlib/cxa_thread_atexit_impl.c: Fix Copyright year.
57778         * stdlib/tst-tls-atexit-lib.c: Likewise.
57779         * stdlib/tst-tls-atexit.c: Likewise.
57780
57781 2013-02-18  Mike Frysinger  <vapier@gentoo.org>
57782
57783         * stdlib/stdlib.h (aligned_alloc): Use __attribute_malloc__
57784         and __attribute_alloc_size__.
57785
57786 2013-02-18  Mike Frysinger  <vapier@gentoo.org>
57787
57788         * include/programs/xmalloc.h: Change __attribute_alloc_size to
57789         __attribute_alloc_size__.
57790         * include/sys/cdefs.h (__attribute_alloc_size): Macro removed.
57791         * misc/sys/cdefs.h (__attribute_alloc_size__): New macro.
57792
57793 2013-02-18  Mike Frysinger  <vapier@gentoo.org>
57794
57795         * include/programs/xmalloc.h: New file.
57796         * catgets/gencat.c: Include it.
57797         (xmalloc, xcalloc, xrealloc, xstrdup): Don't declare them.
57798         * elf/pldd.c: Likewise.
57799         * iconv/iconv_charmap.c: Likewise.
57800         * iconv/iconvconfig.c: Likewise.
57801         * iconv/strtab.c: Likewise.
57802         * locale/programs/locale.c: Likewise.
57803         * locale/programs/localedef.h: Likewise.
57804         * locale/programs/simple-hash.c: Likewise.
57805         * nscd/nscd.h: Likewise.
57806         * nss/makedb.c: Likewise.
57807         * sysdeps/generic/ldconfig.h: Likewise.
57808
57809 2013-02-18  Siddhesh Poyarekar  <siddhesh@redhat.com>
57810
57811         * Versions.def: Add GLIBC_2.18.
57812         * include/link.h (struct link_map): New member l_tls_dtor_count.
57813         * include/stdlib.h (__cxa_thread_atexit_impl): Declare.
57814         (__call_tls_dtors): Likewise.
57815         * sysdeps/unix/sysv/linux/i386/nptl/libc.abilist: Add
57816         __cxa_thread_atexit_impl.
57817         * sysdeps/unix/sysv/linux/powerpc/powerpc32/fpu/nptl/libc.abilist:
57818         Likewise.
57819         * sysdeps/unix/sysv/linux/powerpc/powerpc64/nptl/libc.abilist:
57820         Likewise.
57821         * sysdeps/unix/sysv/linux/s390/s390-32/nptl/libc.abilist:
57822         Likewise.
57823         * sysdeps/unix/sysv/linux/s390/s390-64/nptl/libc.abilist:
57824         Likewise.
57825         * sysdeps/unix/sysv/linux/sh/nptl/libc.abilist: Likewise.
57826         * sysdeps/unix/sysv/linux/sparc/sparc32/nptl/libc.abilist:
57827         Likewise.
57828         * sysdeps/unix/sysv/linux/sparc/sparc64/nptl/libc.abilist:
57829         Likewise.
57830         * sysdeps/unix/sysv/linux/x86_64/64/nptl/libc.abilist: Likewise.
57831         * sysdeps/unix/sysv/linux/x86_64/x32/nptl/libc.abilist:
57832         Likewise.
57833         * stdlib/Makefile (routines): Add __cxa_thread_atexit_impl.
57834         (tests): Add test case tst-tls-atexit.
57835         (modules-names): Add shared library for tst-tls-atexit.
57836         * stdlib/Versions (GLIBC_2.18): Add __cxa_thread_atexit_impl.
57837         (GLIBC_PRIVATE): Add __call_tls_dtors.
57838         * stdlib/cxa_thread_atexit_impl.c: New file with helper function
57839         for libstdc++.
57840         * stdlib/exit.c (__run_exit_handlers): Call __call_tls_dtors.
57841         * stdlib/tst-tls-atexit.c: New test case.
57842         * stdlib/tst-tls-atexit-lib.c: New test case.
57843
57844         * misc/tst-pselect.c: Include stdlib.h for declaration of exit.
57845
57846         * elf/Versions (ld): Add _dl_find_dso_for_object.
57847         * elf/dl-addr.c (_dl_addr): Use _dl_find_dso_for_object.
57848         * elf/dl-open.c (_dl_find_dso_for_object): New function.
57849         (dl_open_worker): Use _dl_find_dso_for_object.
57850         * elf/dl-sym.c (do_sym): Likewise.
57851         * sysdeps/generic/ldsodefs.h: Declare _dl_find_dso_for_object.
57852
57853 2013-02-18  Andreas Krebbel  <Andreas.Krebbel@de.ibm.com>
57854
57855         * sysdeps/s390/s390-64/dl-trampoline.S (_dl_runtime_resolve):
57856         Syntactic changes only.
57857         (_dl_runtime_profile): Do a tail-call to the resolved function.
57858
57859 2013-02-17  Joseph Myers  <joseph@codesourcery.com>
57860
57861         [BZ #13550]
57862         * sysdeps/x86_64/bp-asm.h: Remove file.
57863         * sysdeps/unix/sysv/linux/x86_64/clone.S: Do not include
57864         <bp-sym.h> and <bp-asm.h>.
57865         (__clone): Do not use BP_SYM.
57866         * sysdeps/unix/sysv/linux/x86_64/sysdep.h: Do not include
57867         <bp-sym.h> and <bp-asm.h>.
57868         * sysdeps/unix/x86_64/sysdep.S: Likewise.
57869         * sysdeps/x86_64/bsd-_setjmp.S: Do not include "bp-sym.h" and
57870         "bp-asm.h".
57871         (_setjmp): Do not use BP_SYM.
57872         * sysdeps/x86_64/bsd-setjmp.S: Do not include "bp-sym.h" and
57873         "bp-asm.h".
57874         (setjmp): Do not use BP_SYM.
57875         * sysdeps/x86_64/mempcpy.S (__mempcpy): Do not use BP_SYM in
57876         libc_hidden_def.
57877         (mempcpy): Do not use BP_SYM in weak_alias.
57878         * sysdeps/x86_64/rtld-strchr.S: Do not include "bp-sym.h" and
57879         "bp-asm.h".
57880         (strchr): Do not use BP_SYM.
57881         * sysdeps/x86_64/rtld-strlen.S: Do not include "bp-sym.h" and
57882         "bp-asm.h".
57883         * sysdeps/x86_64/setjmp.S (__sigsetjmp): Do not use BP_SYM.
57884         * sysdeps/x86_64/start.S: Do not include "bp-sym.h".
57885         (_start): Do not use BP_SYM.
57886         * sysdeps/x86_64/strcat.S: Do not include "bp-sym.h" and
57887         "bp-asm.h".
57888         (strcat): Do not use BP_SYM.
57889         * sysdeps/x86_64/strcmp.S: Do not include "bp-sym.h" and
57890         "bp-asm.h".
57891         (STRCMP): Do not use BP_SYM.
57892         * sysdeps/x86_64/strcpy.S: Do not include "bp-sym.h" and
57893         "bp-asm.h".
57894         (STRCPY): Do not use BP_SYM.
57895         * sysdeps/x86_64/strcpy_chk.S: Do not include "bp-sym.h" and
57896         "bp-asm.h".
57897         * sysdeps/x86_64/strtok.S: Do not include "bp-sym.h" and
57898         "bp-asm.h".
57899         (FUNCTION): Do not use BP_SYM.
57900         * sysdeps/x86_64/strtok_r.S (strtok_r): Do not use BP_SYM in
57901         weak_alias.
57902         (__GI___strtok_r): Do not use BP_SYM in strong_alias.
57903
57904 2013-02-17  Andreas Jaeger  <aj@suse.de>
57905
57906         * time/Versions: Sort entries.
57907         * string/Versions: Likewise.
57908         * resolv/Versions: Likewise.
57909         * posix/Versions: Likewise.
57910         * iconv/Versions: Likewise.
57911         * elf/Versions: Likewise.
57912         * wcsmbs/Versions: Likewise.
57913
57914 2013-02-15  Siddhesh Poyarekar  <siddhesh@redhat.com>
57915
57916         * sysdeps/ieee754/dbl-64/mpa.c (__sqr): Avoid using LIM in
57917         loop termination condition.
57918
57919         * sysdeps/ieee754/dbl-64/mpa.c (__mul): Use intermediate
57920         variable to calculate EZ.
57921         (__sqr): Likewise.
57922
57923         * sysdeps/ieee754/dbl-64/mpa.c (__mul): Fix determination of
57924         the lower precision input.
57925
57926 2013-02-15  Joseph Myers  <joseph@codesourcery.com>
57927
57928         [BZ #13550]
57929         * Makeconfig [!+link-bounded] (+link-bounded): Remove variable.
57930         [!link-extra-libs] (link-extra-libs-bounded): Likewise.
57931         (run-via-rtld-prefix): Do not handle %-bp tests.
57932         (test-via-rtld-prefix): Do not mention %-bp tests in comment.
57933         (all-object-suffixes): Remove .ob.
57934         (bppfx): Remove variable.
57935         [$(build-bounded) = yes] (object-suffixes): Do not add .ob.
57936         [$(build-bounded) = yes] (CPPFLAGS-.ob): Remove variable.
57937         [$(build-bounded) = yes] (CFLAGS-.ob): Likewise.
57938         [$(build-bounded) = yes] (libtype.ob): Likewise.
57939         * Makerules (elide-routines.ob): Remove variable.
57940         (do-tests-clean): Do not handle *-bp.out.
57941         (common-mostlyclean): Do not handle *-bp and *-bp.out.
57942         * Rules [$(build-bounded) = yes] (tests-bp.out): Remove variable.
57943         [$(build-bounded) = yes] (xtests-bp.out): Likewise.
57944         (tests): Do not include $(tests-bp.out).
57945         (xtests): Do not include $(xtests-bp.out).
57946         [$(build-bounded) = yes] (binaries-bounded): Remove variable.
57947         [$(build-bounded) = yes] ($(addprefix
57948         $(objpfx),$(binaries-bounded))): Remove rule.
57949         ($(objpfx)%-bp.out): Remove rule.
57950         * config.make.in (build-bounded): Remove variable.
57951         * crypt/Makefile [$(build-bounded) = yes]
57952         ($(tests:%=$(objpfx)%-bp)): Remove dependency.
57953         * csu/Makefile [$(build-bounded) = yes] (extra-objs): Do not
57954         append to variable.
57955         [$(build-bounded) = yes] (install-lib): Likewise.
57956         [$(build-bounded) = yes] (generated): Likewise.
57957         [!start-installed-name-rule] ($(objpfx)b$(start-installed-name)):
57958         Remove rule.
57959         * intl/Makefile [$(build-bounded) = yes]
57960         ($(multithread-test-srcs:%=$(objpfx)%-bp)): Remove dependency.
57961         * math/Makefile [$(build-bounded) = yes]
57962         ($(tests:%=$(objpfx)%-bp): Likewise.
57963         * misc/Makefile [$(build-bounded) = yes]
57964         ($(objpfx)tst-tsearch-bp): Likewise.
57965         * nptl/Makeconfig (bounded-thread-library): Remove variable.
57966         * rt/Makefile [$(build-bounded) = yes] ($(tests:%=$(objpfx)%-bp)):
57967         Remove dependency.
57968         * string/Makefile (o-objects.ob): Remove variable.
57969         * sysdeps/i386/i686/Makefile [$(config-asflags-i686) = yes]
57970         (CFLAGS-.ob): Remove variable.
57971         [$(config-asflags-i686) = yes] (ASFLAGS-.ob): Likewise.
57972         * sysdeps/sparc/sparc32/sparcv9/Makefile (ASFLAGS-.ob): Remove
57973         both definitions of variable.
57974         * sysdeps/sparc/sparc64/Makefile [$(have-as-vis3) = yes]
57975         (ASFLAGS-.ob): Remove variable.
57976
57977 2013-02-14  Joseph Myers  <joseph@codesourcery.com>
57978
57979         [BZ #13550]
57980         * config.h.in [USE_REGPARMS && !PROF && !__BOUNDED_POINTERS__]:
57981         Remove __BOUNDED_POINTERS__ from condition.
57982         * elf/dl-runtime.c [!PROF && !__BOUNDED_POINTERS__]: Likewise.
57983         * string/bits/string2.h [!__NO_STRING_INLINES &&
57984         !__BOUNDED_POINTERS__]: Likewise.
57985         * sysdeps/i386/dl-machine.h [!PROF && !__BOUNDED_POINTERS__]:
57986         Likewise.
57987         * sysdeps/unix/sysv/linux/shmat.c (shmat) [__BOUNDED_POINTERS__]:
57988         Remove conditional code.
57989         * sysdeps/x86/bits/string.h [!__NO_STRING_INLINES &&
57990         __USE_STRING_INLINES && __GNUC__ && __GNUC__ >= 2 &&
57991         !__BOUNDED_POINTERS__]: Remove __BOUNDED_POINTERS__ from
57992         condition.
57993
57994         [BZ #13550]
57995         * csu/libc-start.c: Do not include <bp-sym.h>.
57996         [!LIBC_START_MAIN] (LIBC_START_MAIN): Do not use BP_SYM.
57997         * elf/dl-open.c: Do not include <bp-sym.h>.
57998         (_dl_sysdep_start): Do not use BP_SYM in weak_extern.
57999         * math/fegetenv.c: Do not include <bp-sym.h>.
58000         (fegetenv): Do not use BP_SYM in versioned symbols.
58001         * nptl/sysdeps/pthread/bits/libc-lockP.h
58002         [!__NO_WEAK_PTHREAD_ALIASES && weak_extern]: Do not include
58003         <bp-sym.h>.
58004         [!__NO_WEAK_PTHREAD_ALIASES && weak_extern]
58005         (__pthread_mutex_init): Do not use BP_SYM in weak_extern.
58006         [!__NO_WEAK_PTHREAD_ALIASES && weak_extern]
58007         (__pthread_mutex_destroy): Likewise.
58008         [!__NO_WEAK_PTHREAD_ALIASES && weak_extern]
58009         (__pthread_mutex_lock): Likewise.
58010         [!__NO_WEAK_PTHREAD_ALIASES && weak_extern]
58011         (__pthread_mutex_trylock): Likewise.
58012         [!__NO_WEAK_PTHREAD_ALIASES && weak_extern]
58013         (__pthread_mutex_unlock): Likewise.
58014         [!__NO_WEAK_PTHREAD_ALIASES && weak_extern]
58015         (__pthread_mutexattr_init): Likewise.
58016         [!__NO_WEAK_PTHREAD_ALIASES && weak_extern]
58017         (__pthread_mutexattr_destroy): Likewise.
58018         [!__NO_WEAK_PTHREAD_ALIASES && weak_extern]
58019         (__pthread_mutexattr_settype): Likewise.
58020         [!__NO_WEAK_PTHREAD_ALIASES && weak_extern]
58021         (__pthread_rwlock_init): Likewise.
58022         [!__NO_WEAK_PTHREAD_ALIASES && weak_extern]
58023         (__pthread_rwlock_destroy): Likewise.
58024         [!__NO_WEAK_PTHREAD_ALIASES && weak_extern]
58025         (__pthread_rwlock_rdlock): Likewise.
58026         [!__NO_WEAK_PTHREAD_ALIASES && weak_extern]
58027         (__pthread_rwlock_tryrdlock): Likewise.
58028         [!__NO_WEAK_PTHREAD_ALIASES && weak_extern]
58029         (__pthread_rwlock_wrlock): Likewise.
58030         [!__NO_WEAK_PTHREAD_ALIASES && weak_extern]
58031         (__pthread_rwlock_trywrlock): Likewise.
58032         [!__NO_WEAK_PTHREAD_ALIASES && weak_extern]
58033         (__pthread_rwlock_unlock): Likewise.
58034         [!__NO_WEAK_PTHREAD_ALIASES && weak_extern]
58035         (__pthread_key_create): Likewise.
58036         [!__NO_WEAK_PTHREAD_ALIASES && weak_extern]
58037         (__pthread_setspecific): Likewise.
58038         [!__NO_WEAK_PTHREAD_ALIASES && weak_extern]
58039         (__pthread_getspecific): Likewise.
58040         [!__NO_WEAK_PTHREAD_ALIASES && weak_extern] (__pthread_once):
58041         Likewise.
58042         [!__NO_WEAK_PTHREAD_ALIASES && weak_extern]
58043         (_pthread_cleanup_push_defer): Likewise.
58044         [!__NO_WEAK_PTHREAD_ALIASES && weak_extern]
58045         (_pthread_cleanup_pop_restore): Likewise.
58046         [!__NO_WEAK_PTHREAD_ALIASES && weak_extern]
58047         (pthread_setcancelstate): Likewise.
58048         * string/memchr.c [HAVE_BP_SYM_H || _LIBC]: Do not include
58049         <bp-sym.h>.
58050         [!(HAVE_BP_SYM_H || _LIBC)] (BP_SYM): Remove macro definition.
58051         (memchr): Do not use BP_SYM in weak_alias.
58052         * sysdeps/i386/fpu/fegetenv.c: Do not include <bp-sym.h>.
58053         (fegetenv): Do not use BP_SYM in versioned symbols.
58054         * sysdeps/i386/fpu/fesetenv.c: Do not include <bp-sym.h>.
58055         (fesetenv): Do not use BP_SYM in versioned symbols.
58056         * sysdeps/i386/fpu/feupdateenv.c: Do not include <bp-sym.h>.
58057         (feupdateenv): Do not use BP_SYM in versioned symbols.
58058         * sysdeps/i386/fpu/fsetexcptflg.c: Do not include <bp-sym.h>.
58059         (fesetexceptflag): Do not use BP_SYM in versioned symbols.
58060         * sysdeps/posix/open64.c: Do not include <bp-sym.h>.
58061         (__open64): Do not use BP_SYM in weak_alias and libc_hidden_weak.
58062         (open64): Do not use BP_SYM in weak_alias.
58063         * sysdeps/powerpc/fpu/fegetenv.c: Do not include <bp-sym.h>.
58064         (fegetenv): Do not use BP_SYM in versioned symbols.
58065         * sysdeps/powerpc/fpu/fesetenv.c: Do not include <bp-sym.h>.
58066         (fesetenv): Do not use BP_SYM in versioned symbols.
58067         * sysdeps/powerpc/fpu/feupdateenv.c: Do not include <bp-sym.h>.
58068         (feupdateenv): Do not use BP_SYM in versioned symbols.
58069         * sysdeps/powerpc/fpu/fgetexcptflg.c: Do not include <bp-sym.h>.
58070         (fegetexceptflag): Do not use BP_SYM in versioned symbols.
58071         * sysdeps/powerpc/fpu/fraiseexcpt.c: Do not include <bp-sym.h>.
58072         (feraiseexcept): Do not use BP_SYM in versioned symbols.
58073         * sysdeps/powerpc/fpu/fsetexcptflg.c: Do not include <bp-sym.h>.
58074         (fesetexceptflag): Do not use BP_SYM in versioned symbols.
58075         * sysdeps/unix/sysv/linux/powerpc/libc-start.c: Do not include
58076         <bp-sym.h>.
58077         (__libc_start_main): Do not use BP_SYM.
58078
58079 2013-02-14  Siddhesh Poyarekar  <siddhesh@redhat.com>
58080
58081         * sysdeps/powerpc/powerpc32/power4/fpu/mpa.c (__cpy): Remove
58082         redundant return line.
58083         (norm): Likewise.
58084         (denorm): Likewise.
58085         (dbl_mp): Likewise.
58086         (sub_magnitudes): Likewise.
58087         (__add): Likewise.
58088         (__sub): Likewise.
58089         (__mul): Likewise.
58090         (__inv): Likewise.
58091         (__dvd): Likewise.
58092         * sysdeps/powerpc/powerpc64/power4/fpu/mpa.c (__cpy): Likewise.
58093         (norm): Likewise.
58094         (denorm): Likewise.
58095         (dbl_mp): Likewise.
58096         (sub_magnitudes): Likewise.
58097         (__add): Likewise.
58098         (__sub): Likewise.
58099         (__mul): Likewise.
58100         (__inv): Likewise.
58101         (__dvd): Likewise.
58102
58103         * sysdeps/ieee754/dbl-64/mpatan.c (__mpatan): Use __sqr
58104         instead of __mul.
58105         * sysdeps/ieee754/dbl-64/mpsqrt.c (__mpsqrt): Likewise.
58106         * sysdeps/ieee754/dbl-64/sincos32.c (ss32): Likewise.
58107         (cc32): Likewise.
58108
58109         * sysdeps/ieee754/dbl-64/mpa.c (__sqr): New function.
58110         * sysdeps/ieee754/dbl-64/mpa.h (__sqr): Declare.
58111         * sysdeps/ieee754/dbl-64/mpexp.c (__mpexp): use __sqr instead
58112         of __mul for squares.
58113         * sysdeps/powerpc/powerpc32/power4/fpu/mpa.c (__sqr): New
58114         function
58115         * sysdeps/powerpc/powerpc64/power4/fpu/mpa.c (__sqr):
58116         Likewise.
58117         * sysdeps/x86_64/fpu/multiarch/mpa-avx.c: Define __sqr.
58118         * sysdeps/x86_64/fpu/multiarch/mpa-fma4.c: Likewise.
58119
58120 2013-02-13  Joseph Myers  <joseph@codesourcery.com>
58121
58122         [BZ #13550]
58123         * misc/sys/cdefs.h [!__BOUNDED_POINTERS__]: Remove conditional
58124         code.
58125         * csu/libc-start.c (LIBC_START_MAIN): Do not use __unbounded in
58126         prototype or function definition.  Rename ubp_* variables and
58127         parameters.  Remove argv definitions conditional on
58128         [__BOUNDED_POINTERS__].
58129         * debug/backtrace.c (__backtrace): Do not use __unbounded.
58130         * elf/dl-runtime.c (_dl_fixup): Likewise.
58131         * include/set-hooks.h (RUN_HOOK): Likewise.
58132         * stdio-common/vfprintf.c (JUMP): Do not use __unbounded in either
58133         definition.
58134         * string/strcpy.c (strcpy): Do not use __unbounded.
58135         * sysdeps/generic/frame.h (struct layout): Likewise.
58136         * sysdeps/gnu/bits/msq.h (struct msqid_ds): Likewise.
58137         * sysdeps/i386/dl-machine.h (_dl_fixup): Likewise.
58138         * sysdeps/powerpc/powerpc32/backtrace.c (struct layout): Likewise.
58139         * sysdeps/powerpc/powerpc64/backtrace.c (struct layout): Likewise.
58140         * sysdeps/sparc/backtrace.c (struct layout): Likewise.
58141         (__backtrace): Likewise.
58142         * sysdeps/unix/sysv/linux/aio_sigqueue.c (__aio_sigqueue): Do not
58143         use __ptrvalue.
58144         * sysdeps/unix/sysv/linux/fxstat.c (__fxstat): Likewise.
58145         * sysdeps/unix/sysv/linux/fxstatat.c (__fxstatat): Likewise.
58146         * sysdeps/unix/sysv/linux/gai_sigqueue.c (__gai_sigqueue):
58147         Likewise.
58148         * sysdeps/unix/sysv/linux/i386/brk.c (__brk): Likewise.
58149         * sysdeps/unix/sysv/linux/i386/fxstat.c (__fxstat): Likewise.
58150         * sysdeps/unix/sysv/linux/i386/fxstatat.c (__fxstatat): Likewise.
58151         * sysdeps/unix/sysv/linux/i386/lxstat.c (__lxstat): Likewise.
58152         * sysdeps/unix/sysv/linux/i386/msgctl.c (struct __old_msqid_ds):
58153         Do not use __unbounded.
58154         * sysdeps/unix/sysv/linux/i386/setrlimit.c (__new_setrlimit):
58155         Rename __unboundedrlimits parameter to rlimits in prototype.
58156         * sysdeps/unix/sysv/linux/i386/shmctl.c (struct __old_shmid_ds):
58157         Do not use __unbounded.
58158         * sysdeps/unix/sysv/linux/i386/sigaction.c (__libc_sigaction): Do
58159         not use __ptrvalue.
58160         * sysdeps/unix/sysv/linux/i386/xstat.c (__xstat): Likewise.
58161         * sysdeps/unix/sysv/linux/llseek.c (__llseek): Likewise.
58162         * sysdeps/unix/sysv/linux/lxstat.c (__lxstat): Likewise.
58163         * sysdeps/unix/sysv/linux/mmap64.c (__mmap64): Do not use
58164         __ptrvalue or __unbounded.
58165         (__mmap64) [__BOUNDED_POINTERS__]: Remove conditional code.
58166         * sysdeps/unix/sysv/linux/msgctl.c (struct __old_msqid_ds): Do not
58167         use __unbounded.
58168         (__new_msgctl): Do not use __ptrvalue.
58169         * sysdeps/unix/sysv/linux/msgrcv.c (struct ipc_kludge): Do not use
58170         __unbounded.
58171         (__libc_msgrcv): Do not use __ptrvalue.
58172         * sysdeps/unix/sysv/linux/powerpc/libc-start.c (struct
58173         startup_info): Do not use __unbounded.
58174         (__libc_start_main): Likewise.  Rename ubp_* variables and
58175         parameters.  Remove argv definitions conditional on
58176         [__BOUNDED_POINTERS__].
58177         * sysdeps/unix/sysv/linux/ptrace.c (ptrace): Do not use
58178         __ptrvalue.
58179         * sysdeps/unix/sysv/linux/semctl.c (struct __old_semid_ds): Do not
58180         use __unbounded.
58181         * sysdeps/unix/sysv/linux/shmat.c (shmat): Do not use __unbounded
58182         or __ptrvalue.
58183         * sysdeps/unix/sysv/linux/shmctl.c (struct __old_shmid_ds): Do not
58184         use __unbounded.
58185         (__new_shmctl): Do not use __ptrvalue.
58186         * sysdeps/unix/sysv/linux/shmdt.c (shmdt): Likewise.
58187         * sysdeps/unix/sysv/linux/sigaction.c (__libc_sigaction):
58188         Likewise.
58189         * sysdeps/unix/sysv/linux/sigqueue.c (__sigqueue): Likewise.
58190         * sysdeps/unix/sysv/linux/sparc/sparc64/sigaction.c
58191         (__libc_sigaction): Likewise.
58192         * sysdeps/unix/sysv/linux/sysctl.c (__sysctl): Likewise.
58193         * sysdeps/unix/sysv/linux/x86_64/sigaction.c (__libc_sigaction):
58194         Likewise.
58195         * sysdeps/unix/sysv/linux/xstat.c (__xstat): Likewise.
58196
58197 2013-02-13   Ondřej Bílka  <neleai@seznam.cz>
58198
58199         * stdlib/Makefile (headers): Add bits/stdlib-bsearch.h.
58200
58201         * string/mempcpy.c: Implement by calling memcpy.
58202
58203 2013-02-13  Siddhesh Poyarekar  <siddhesh@redhat.com>
58204
58205         * sysdeps/ieee754/dbl-64/mpexp.c (__mpexp): Remove NFA.
58206
58207         * sysdeps/ieee754/dbl-64/mpexp.c (__mpexp): Faster polynomial
58208         evaluation.
58209
58210         * sysdeps/ieee754/dbl-64/mpa.c (__mul): Don't bother with zero
58211         values in the mantissa.
58212
58213         * sysdeps/ieee754/dbl-64/mpa.c (add_magnitudes): Use ZK to
58214         minimize writes to Z.
58215         (sub_magnitudes): Simplify code a bit.
58216
58217 2013-02-12  Roland McGrath  <roland@hack.frob.com>
58218
58219         * include/libc-symbols.h (stub_warning): Remove "warning: " prefix
58220         from the message.  The linker prefixes all warnings with that already.
58221
58222 2013-02-12  Andreas Schwab  <schwab@suse.de>
58223
58224         [BZ #15078]
58225         * posix/regexec.c (extend_buffers): Add parameter min_len.
58226         (check_matching): Pass minimum needed length.
58227         (clean_state_log_if_needed): Likewise.
58228         (get_subexp): Likewise.
58229         * posix/Makefile (tests): Add bug-regex34.
58230         (bug-regex34-ENV): Define.
58231         * posix/bug-regex34.c: New file.
58232
58233         [BZ #11561]
58234         * posix/regcomp.c (parse_bracket_exp): When looking up collating
58235         elements compare against the byte sequence of it, not its name.
58236         * posix/Makefile (tests): Add bug-regex35.
58237         (bug-regex35-ENV): Define.
58238         * posix/bug-regex35.c: New file.
58239
58240 2013-02-11  Tom de Vries  <tom@codesourcery.com>
58241
58242         * string/str-two-way.h:  Fix typo RESULT_TYPE -> RETURN_TYPE in
58243         comment.
58244         Add RET0_IF_0 and CHECK_EOL to macro list in comment.
58245         (AVAILABLE1, AVAILABLE2, AVAILABLE1_USES_J): Remove superfluous undef.
58246         (CHECK_EOL): Add undef.
58247
58248 2013-02-11   Ondřej Bílka  <neleai@seznam.cz>
58249
58250         * bits/stdlib-bsearch.h: New file.
58251         * stdlib/bsearch.c: Include bits/stdlib-bsearch.h.
58252         * stdlib/stdlib.h: Likewise.
58253
58254 2013-02-11  Roland McGrath  <roland@hack.frob.com>
58255
58256         * manual/conf.texi (General Limits): Fix SSIZE_MAX type to ssize_t.
58257         * manual/errno.texi (Error Messages): Fix typo in error_print_progname
58258         declaration.
58259         * manual/search.texi (Array Search Function): Add missing const in
58260         lfind prototype.
58261         * manual/resource.texi (Limits on Resources): Fix RLIM_INFINITY
58262         declaration to use rlim_t.
58263         (Basic Scheduling Functions): Remove erroneous const from
58264         sched_getparam prototype.  Remove erroneous * from
58265         sched_get_priority_max and sched_get_priority_min prototypes.
58266         (Resource Usage): Fix summary @comment on vtimes to refer to
58267         sys/vtimes.h rather than vtimes.h.
58268         Add missing *s in vtimes prototype.
58269         (Limits on Resources): Fix ulimit prototype to return long int.
58270         * manual/math.texi (SVID Random): Fix lrand48_r and mrand48_r
58271         prototypes to use long int rather than double.
58272         (BSD Random): Fix initstate and setstate to use char *, not void *.
58273         * manual/llio.texi (Asynchronous Reads/Writes): Fix lio_listio64
58274         prototype to make second argument 'struct aiocb64 *const[]'.
58275         Fix aio_read64 and aio_write64 prototypes to use struct aiocb64.
58276         (Status of AIO Operations): Remove erroneous const in aio_return and
58277         aio_return64 prototypes.
58278         (Synchronizing I/O): Fix sync prototype to return void.
58279         * manual/startup.texi (Suboptions): Remove an erroneous const in
58280         getsubopt prototype.
58281         * manual/getopt.texi (Using Getopt): Add a const in getopt prototype.
58282         * manual/users.texi (Lookup Netgroup): Fix getnetgrent_r prototype to
58283         use size_t rather than int.
58284         (Scanning All Users): Likewise for getpwent_r.
58285         (Setting Groups): Add missing const to setgroups prototype.
58286         * manual/sysinfo.texi (mtab): Fix typo in getmntent_r prototype.
58287         * manual/socket.texi (Host Names): Fix gethostbyaddr and
58288         gethostbyaddr_r prototypes to use socklen_t rather than size_t and
58289         'const void *' rather than 'const char *'.
58290         (Host Address Functions): Likewise for inet_ntop.
58291         (Networks Database): Fix getnetbyaddr prototype to use uint32_t.
58292         (Receiving Data): Fix recv, recvfrom, recvmsg prototypes to use
58293         ssize_t for return value.
58294         (Sending Data): Likewise for send, sendto, sendmsg.
58295         (Socket Option Functions): Add a missing const in setsockopt prototype.
58296         * manual/stdio.texi (Simple Output): Fix fputwc_unlocked prototype to
58297         use wchar_t for the argument.
58298         (Formatted Input Functions): Fix swscanf prototype to use wchar_t *.
58299         * manual/arith.texi (Control Functions): Fix fegetexcept prototype to
58300         take no arguments.
58301         (Normalization Functions): Fix scalb, scalbf, scalbl prototypes to use
58302         double/float/long double for second argument.
58303         Fix return types of significand, significandf, significandl.
58304         * manual/filesys.texi (Setting Permissions): Use mode_t for second
58305         argument in fchmod prototype.
58306         (File Owner): Use uid_t and gid_t in fchown prototype.
58307         (File Times): Add const to utimes, futimes, and lutimes prototypes.
58308         (Making Special Files): Use mode_t and dev_t in mknod prototype.
58309         (Scanning Directory Content): Fix scandir and scandir64 prototypes to
58310         use 'const struct dirent **' as argument types to CMP function pointer
58311         argument.
58312         (Symbolic Links): Fix readlink prototype with ssize_t as return value.
58313         (File Times): Fix summary magic @comment for struct utimbuf and utime
58314         to refer to utime.h, not time.h.
58315         * manual/string.texi (Argz Functions): Add missing const in
58316         argz_extract and argz_next prototypes.
58317         (Finding Tokens in a String): Likewise for basename.
58318         (String/Array Comparison): Fix typo in wcscasecmp prototype.
58319         (Copying and Concatenation): Fix typo in wmemmove prototype.
58320         * manual/signal.texi (Using Pause): Use (void) in pause prototype.
58321         (Signal Stack): Remove erroneous const in sigstack prototype.
58322         * manual/time.texi (Setting an Alarm): Add missing const in setitimer
58323         prototype.
58324         (Simple Calendar Time): Likewise for stime.
58325         * manual/terminal.texi (BSD Terminal Modes): Add missing const in stty
58326         prototype.
58327         * manual/sysinfo.texi (System Parameters): Fix mentions of sysctl.h to
58328         say sys/sysctl.h instead.
58329         * manual/syslog.texi (syslog; vsyslog): Add missing const in syslog
58330         and vsyslog prototypes.
58331
58332 2013-02-11  Tom de Vries  <tom@codesourcery.com>
58333
58334         * string/Makefile (CFLAGS-bug-strstr1.c, CFLAGS-bug-strcasestr1.c):
58335         Remove.
58336
58337 2013-02-11  Roland McGrath  <roland@hack.frob.com>
58338
58339         * misc/sys/mman.h: Fix typo in mremap comment.
58340
58341 2013-02-08  Roland McGrath  <roland@hack.frob.com>
58342
58343         * manual/examples/mkfsock.c (make_named_socket): Don't add one for
58344         the '\0' terminator.
58345
58346 2013-02-08  Joseph Myers  <joseph@codesourcery.com>
58347
58348         [BZ #13550]
58349         * debug/segfault.c: Don't include <bp-checks.h>.
58350         * sysdeps/generic/bp-checks.h: Remove file.
58351         * sysdeps/unix/sysv/linux/getdents.c: Don't include <bp-checks.h>.
58352         (__GETDENTS): Don't use CHECK_N.
58353         * sysdeps/unix/sysv/linux/i386/brk.c: Don't include <bp-checks.h>.
58354         * sysdeps/unix/sysv/linux/i386/getgroups.c: Likewise.
58355         (__getgroups): Don't use CHECK_N.
58356         * sysdeps/unix/sysv/linux/i386/setgroups.c: Likewise.
58357         (setgroups): Don't use CHECK_N.
58358         * sysdeps/unix/sysv/linux/mmap64.c: Don't include <bp-checks.h>.
58359         * sysdeps/unix/sysv/linux/msgrcv.c: Likewise.
58360         (__libc_msgrcv): Don't use CHECK_N.
58361         * sysdeps/unix/sysv/linux/msgsnd.c: Don't include <bp-checks.h>.
58362         (__libc_msgsnd): Don't use CHECK_N.
58363         * sysdeps/unix/sysv/linux/powerpc/powerpc32/pread.c: Don't include
58364         <bp-checks.h>.
58365         (__libc_pread): Don't use CHECK_N.
58366         * sysdeps/unix/sysv/linux/powerpc/powerpc32/pread64.c: Don't
58367         include <bp-checks.h>.
58368         (__libc_pread64): Don't use CHECK_N.
58369         * sysdeps/unix/sysv/linux/powerpc/powerpc32/pwrite.c: Don't
58370         include <bp-checks.h>.
58371         (__libc_pwrite): Don't use CHECK_N.
58372         * sysdeps/unix/sysv/linux/powerpc/powerpc32/pwrite64.c: Don't
58373         include <bp-checks.h>.
58374         (__libc_pwrite64): Don't use CHECK_N.
58375         * sysdeps/unix/sysv/linux/powerpc/powerpc64/pread.c: Don't include
58376         <bp-checks.h>.
58377         (__libc_pread): Don't use CHECK_N.
58378         * sysdeps/unix/sysv/linux/powerpc/powerpc64/pread64.c: Don't
58379         include <bp-checks.h>.
58380         (__libc_pread64): Don't use CHECK_N.
58381         * sysdeps/unix/sysv/linux/powerpc/powerpc64/pwrite.c: Don't
58382         include <bp-checks.h>.
58383         (__libc_pwrite): Don't use CHECK_N.
58384         * sysdeps/unix/sysv/linux/powerpc/powerpc64/pwrite64.c: Don't
58385         include <bp-checks.h>.
58386         (__libc_pwrite64): Don't use CHECK_N.
58387         * sysdeps/unix/sysv/linux/pread.c: Don't include <bp-checks.h>.
58388         (do_pread): Don't use CHECK_N.
58389         * sysdeps/unix/sysv/linux/pread64.c: Don't include <bp-checks.h>.
58390         (do_pread64): Don't use CHECK_N.
58391         * sysdeps/unix/sysv/linux/pwrite.c: Don't include <bp-checks.h>.
58392         (do_pwrite): Don't use CHECK_N.
58393         * sysdeps/unix/sysv/linux/pwrite64.c: Don't include <bp-checks.h>.
58394         (do_pwrite64): Don't use CHECK_N.
58395         * sysdeps/unix/sysv/linux/readv.c: Don't include <bp-checks.h>.
58396         (__libc_readv): Don't use CHECK_N.
58397         * sysdeps/unix/sysv/linux/semop.c: Don't include <bp-checks.h>.
58398         (semop): Don't use CHECK_N.
58399         * sysdeps/unix/sysv/linux/semtimedop.c: Don't include
58400         <bp-checks.h>.
58401         (semtimedop): Don't use CHECK_N.
58402         * sysdeps/unix/sysv/linux/sh/pread.c: Don't include <bp-checks.h>.
58403         (__libc_pread): Don't use CHECK_N.
58404         * sysdeps/unix/sysv/linux/sh/pread64.c: Don't include
58405         <bp-checks.h>.
58406         (__libc_pread64): Don't use CHECK_N.
58407         * sysdeps/unix/sysv/linux/sh/pwrite.c: Don't include
58408         <bp-checks.h>.
58409         (__libc_pwrite): Don't use CHECK_N.
58410         * sysdeps/unix/sysv/linux/sh/pwrite64.c: Don't include
58411         <bp-checks.h>.
58412         (__libc_pwrite64): Don't use CHECK_N.
58413         * sysdeps/unix/sysv/linux/sparc/sparc64/msgrcv.c: Don't include
58414         <bp-checks.h>.
58415         (__libc_msgrcv): Don't use CHECK_N.
58416         * sysdeps/unix/sysv/linux/sysctl.c: Don't include <bp-checks.h>.
58417         (__sysctl): Don't use CHECK_N.  Remove GKM FIXME comment.
58418         * sysdeps/unix/sysv/linux/writev.c: Don't include <bp-checks.h>.
58419         (__libc_writev): Don't use CHECK_N.
58420
58421 2013-02-08  Roland McGrath  <roland@hack.frob.com>
58422
58423         * string/strcpy.c: Removed unused variable.
58424
58425         * Makeconfig (+sysdep-includes): Define with := rather than =.
58426         Use an existing include/ subdir of each sysdeps dir before it.
58427
58428 2013-02-08  Carlos O'Donell  <carlos@redhat.com>
58429
58430         * nscd/connection.c (register_traced_file): Comment function.
58431         [HAVE_INOTIFY] (union __inev): Define.
58432         [HAVE_INOTIFY] (inotify_check_files): New function.
58433         [HAVE_INOTIFY] (clear_db_cache): Likewise.
58434         [HAVE_INOTIFY] (main_loop_poll): Call inotify_check_files and
58435         clear_db_cache.
58436         [HAVE_INOTIFY] (main_loop_epoll): Likewise.
58437
58438 2013-02-08  Carlos O'Donell  <carlos@redhat.com>
58439
58440         * elf/dl-cache.c (_dl_load_cache_lookup): Comment that cache is
58441         loaded if not already and that a failure is permanent.
58442
58443 2013-02-08  Carlos O'Donell  <carlos@redhat.com>
58444
58445         [BZ #15006]
58446         * sysdeps/generic/ldconfig.h: Define FLAG_ARM_LIBSF.
58447         * elf/cache.c (print_entry): Add FLAG_ARM_LIBSF support.
58448
58449 2013-02-08  Joseph Myers  <joseph@codesourcery.com>
58450
58451         [BZ #13550]
58452         * sysdeps/generic/bp-checks.h (CHECK_1): Remove all definitions.
58453         (CHECK_1_NULL_OK): Likewise.
58454         * sysdeps/unix/sysv/linux/fxstat.c: Do not include <bp-checks.h>.
58455         (__fxstat): Do not use CHECK_1.
58456         * sysdeps/unix/sysv/linux/fxstat64.c: Do not include
58457         <bp-checks.h>.
58458         (___fxstat64): Do not use CHECK_1.
58459         * sysdeps/unix/sysv/linux/fxstatat.c: Do not include
58460         <bp-checks.h>.
58461         (__fxstatat): Do not use CHECK_1.
58462         * sysdeps/unix/sysv/linux/fxstatat64.c: Do not include
58463         <bp-checks.h>.
58464         (__fxstatat64): Do not use CHECK_1.
58465         * sysdeps/unix/sysv/linux/i386/fxstat.c: Do not include
58466         <bp-checks.h>.
58467         (__fxstat): Do not use CHECK_1.
58468         * sysdeps/unix/sysv/linux/i386/fxstatat.c: Do not include
58469         <bp-checks.h>.
58470         (__fxstatat): Do not use CHECK_1.
58471         * sysdeps/unix/sysv/linux/i386/getresgid.c: Do not include
58472         <bp-checks.h>.
58473         (__getresgid): Do not use CHECK_1.
58474         * sysdeps/unix/sysv/linux/i386/getresuid.c: Do not include
58475         <bp-checks.h>.
58476         (__getresuid): Do not use CHECK_1.
58477         * sysdeps/unix/sysv/linux/i386/lxstat.c: Do not include
58478         <bp-checks.h>.
58479         (__lxstat): Do not use CHECK_1.
58480         * sysdeps/unix/sysv/linux/i386/msgctl.c: Do not include
58481         <bp-checks.h>.
58482         (__old_msgctl): Do not use CHECK_1.
58483         (__new_msgctl): Likewise.
58484         * sysdeps/unix/sysv/linux/i386/setrlimit.c: Do not include
58485         <bp-checks.h>.
58486         (__new_setrlimit): Do not use CHECK_1.
58487         * sysdeps/unix/sysv/linux/i386/shmctl.c: Do not include
58488         <bp-checks.h>.
58489         (__old_shmctl): Do not use CHECK_1.
58490         (__new_shmctl): Likewise.
58491         * sysdeps/unix/sysv/linux/i386/xstat.c: Do not include
58492         <bp-checks.h>.
58493         (__xstat): Do not use CHECK_1.
58494         * sysdeps/unix/sysv/linux/lxstat.c: Do not include <bp-checks.h>.
58495         (__lxstat): Do not use CHECK_1.
58496         * sysdeps/unix/sysv/linux/lxstat64.c: Do not include
58497         <bp-checks.h>.
58498         (___lxstat64): Do not use CHECK_1.
58499         * sysdeps/unix/sysv/linux/msgctl.c: Do not include <bp-checks.h>.
58500         (__old_msgctl): Do not use CHECK_1.
58501         (__new_msgctl): Likewise.
58502         * sysdeps/unix/sysv/linux/powerpc/gettimeofday.c: Do not include
58503         <bp-checks.h>.
58504         (__gettimeofday): Do not use CHECK_1.
58505         * sysdeps/unix/sysv/linux/ptrace.c: Do not include <bp-checks.h>.
58506         (ptrace) [__BOUNDED_POINTERS__]: Remove conditional code.
58507         * sysdeps/unix/sysv/linux/s390/gettimeofday.c: Do not include
58508         <bp-checks.h>.
58509         (__gettimeofday): Do not use CHECK_1.
58510         * sysdeps/unix/sysv/linux/shmctl.c: Do not include <bp-checks.h>.
58511         (__old_shmctl): Do not use CHECK_1_NULL_OK.
58512         (__new_shmctl): Do not use CHECK_1.
58513         * sysdeps/unix/sysv/linux/sigtimedwait.c: Do not include
58514         <bp-checks.h>.
58515         (do_sigtimedwait): Do not use CHECK_1.
58516         * sysdeps/unix/sysv/linux/sigwaitinfo.c: Do not include
58517         <bp-checks.h>.
58518         (do_sigwaitinfo): Do not use CHECK_1.
58519         * sysdeps/unix/sysv/linux/sparc/sparc64/msgctl.c: Do not include
58520         <bp-checks.h>.
58521         (msgctl): Do not use CHECK_1.
58522         * sysdeps/unix/sysv/linux/sparc/sparc64/shmctl.c: Do not include
58523         <bp-checks.h>.
58524         (shmctl): Do not use CHECK_1.
58525         * sysdeps/unix/sysv/linux/ustat.c: Do not include <bp-checks.h>.
58526         (ustat): Do not use CHECK_1.
58527         * sysdeps/unix/sysv/linux/wordsize-64/fxstat.c: Do not include
58528         <bp-checks.h>.
58529         (__fxstat): Do not use CHECK_1.
58530         * sysdeps/unix/sysv/linux/wordsize-64/fxstatat.c: Do not include
58531         <bp-checks.h>.
58532         (__fxstatat): Do not use CHECK_1.
58533         * sysdeps/unix/sysv/linux/wordsize-64/lxstat.c: Do not include
58534         <bp-checks.h>.
58535         (__lxstat): Do not use CHECK_1.
58536         * sysdeps/unix/sysv/linux/wordsize-64/xstat.c: Do not include
58537         <bp-checks.h>.
58538         (__xstat): Do not use CHECK_1.
58539         * sysdeps/unix/sysv/linux/xstat.c: Do not include <bp-checks.h>.
58540         (__xstat): Do not use CHECK_1.
58541         * sysdeps/unix/sysv/linux/xstat64.c: Do not include <bp-checks.h>.
58542         (___xstat64): Do not use CHECK_1.
58543
58544         [BZ #13550]
58545         * sysdeps/generic/bp-checks.h (CHECK_BOUNDS_LOW): Remove all
58546         definitions.
58547         (CHECK_BOUNDS_HIGH): Likewise.
58548         * string/strcpy.c: Do not include <bp-checks.h>.
58549         (strcpy): Do not use CHECK_BOUNDS_LOW and CHECK_BOUNDS_HIGH.
58550
58551 2013-02-07  Roland McGrath  <roland@hack.frob.com>
58552
58553         * nscd/nscd-client.h (__nscd_drop_map_ref):
58554         Add __attribute__ ((unused)).
58555         * nis/nss-nisplus.h (niserr2nss): Likewise.
58556
58557         * sysdeps/x86_64/multiarch/strstr.c (__m128i_strloadu): Define it only
58558         under [!(USE_AS_STRCASESTR && STRCASESTR_NONASCII)].
58559
58560         * csu/libc-tls.c (init_static_tls, init_slotinfo):
58561         Remove inline keyword.
58562         * include/rounding-mode.h (round_away): Likewise.
58563         * libio/wfileops.c (adjust_wide_data): Likewise.
58564         * sysdeps/x86_64/multiarch/strstr.c (__m128i_strloadu): Likewise.
58565         (__m128i_strloadu_tolower): Likewise.
58566         * sysdeps/x86_64/multiarch/strcasestr-nonascii.c
58567         (__m128i_strloadu_tolower): Likewise.
58568         * time/mktime.c (ydhms_diff): Likewise.
58569         * locale/elem-hash.h (elem_hash): Likewise.
58570         * locale/setlocale.c (setdata): Likewise.
58571         * posix/regex_internal.h (re_string_char_size_at): Likewise.
58572         (re_string_wchar_at): Likewise.
58573         (bitset_not, bitset_merge, bitset_mask): Likewise.
58574         [!(__GNUC__ > 3)] (inline): Remove macro.
58575         * nscd/nscd-client.h (__nscd_drop_map_ref): Remove inline keyword.
58576         * elf/dl-deps.c (_dl_map_object_deps: preload): Likewise.
58577         * elf/tlsdeschtab.h (_dl_tlsdesc_resolve_early_return_p): Likewise.
58578         (_dl_tlsdesc_wake_up_held_fixups): Likewise.
58579         * string/memcmp.c (memcmp_bytes): Likewise.
58580         * locale/programs/locarchive.c (compute_hashval): Likewise.
58581         * sysdeps/ieee754/dbl-64/x2y2m1.c (mul_split): Likewise.
58582         * sysdeps/unix/sysv/linux/fips-private.h (fips_enabled_p): Likewise.
58583         * resolv/res_send.c (evNowTime, evCmpTime): Likewise.
58584         * nss/getent.c (print_rpc, print_protocols): Likewise.
58585         (print_passwd, print_group, print_aliases): Likewise.
58586         * nis/nss-nisplus.h (niserr2nss): Likewise.
58587         * nscd/connections.c (restart_p): Likewise.
58588         Change return type to bool.
58589
58590 2013-02-05  Roland McGrath  <roland@hack.frob.com>
58591
58592         * Makeconfig (all-Depend-files): Add existing
58593         $(sorted-subdirs:=/Depend) files.
58594         (all-subdirs): Remove nss.
58595         * sysdeps/unix/inet/Subdirs: Add it here instead.
58596         * hesiod/Depend: New file.
58597
58598         * elf/dl-hwcaps.c (_dl_important_hwcaps): Use a variable-length array
58599         instead of calling alloca.
58600
58601         * io/lseek.c (__lseek): Rename to __libc_lseek.
58602         Define __lseek as an alias.
58603
58604         * sysdeps/generic/malloc-sysdep.h: Include <stdbool.h> and <unistd.h>.
58605
58606 2013-02-04  Carlos O'Donell  <carlos@redhat.com>
58607
58608         * stdlib/getenv.c (getenv): Assume __BIG_ENDIAN in the
58609         else clause and remove check for non-standard endianness.
58610
58611 2013-02-04  David S. Miller  <davem@davemloft.net>
58612
58613         * sysdeps/sparc/fpu/libm-test-ulps: Update.
58614
58615 2013-02-04  Joseph Myers  <joseph@codesourcery.com>
58616
58617         [BZ #13550]
58618         * sysdeps/generic/bp-checks.h [__BOUNDED_POINTERS__]
58619         (__ubp_memchr): Remove prototype.
58620         [__BOUNDED_POINTERS__] (_CHECK_STRING): Remove macro.
58621         [__BOUNDED_POINTERS__] (CHECK_STRING): Likewise.
58622         [__BOUNDED_POINTERS__] (CHECK_STRING_NULL_OK): Likewise.
58623         [!__BOUNDED_POINTERS__] (CHECK_STRING): Likewise.
58624         * sysdeps/i386/memchr.S [!__BOUNDED_POINTERS__] (__ubp_memchr):
58625         Remove alias.
58626         * sysdeps/sparc/sparc32/memchr.S [!__BOUNDED_POINTERS__]
58627         (__ubp_memchr): Likewise.
58628         * sysdeps/sparc/sparc64/memchr.S [!__BOUNDED_POINTERS__]
58629         (__ubp_memchr): Likewise.
58630         * sysdeps/unix/sysv/linux/execve.c: Do not include <bp-checks.h>.
58631         (__execve) [__BOUNDED_POINTERS__]: Remove conditional code.
58632         (__execve) [!__BOUNDED_POINTERS__]: Make code unconditional.
58633         * sysdeps/unix/sysv/linux/fxstatat.c (__fxstatat): Do not use
58634         CHECK_STRING.
58635         * sysdeps/unix/sysv/linux/fxstatat64.c (__fxstatat64): Likewise.
58636         * sysdeps/unix/sysv/linux/getcwd.c: Do not include <bp-checks.h>.
58637         (__getcwd): Do not use CHECK_STRING.
58638         * sysdeps/unix/sysv/linux/i386/chown.c: Do not include
58639         <bp-checks.h>.
58640         (__real_chown): Do not use CHECK_STRING.
58641         * sysdeps/unix/sysv/linux/i386/fchownat.c: Do not include
58642         <bp-checks.h>.
58643         (fchownat): Do not use CHECK_STRING.
58644         * sysdeps/unix/sysv/linux/i386/fxstatat.c (__fxstatat): Do not use
58645         CHECK_STRING.
58646         * sysdeps/unix/sysv/linux/i386/lchown.c: Do not include
58647         <bp-checks.h>.
58648         (__lchown): Do not use CHECK_STRING.
58649         * sysdeps/unix/sysv/linux/i386/lxstat.c (__lxstat): Likewise.
58650         * sysdeps/unix/sysv/linux/i386/xstat.c (__xstat): Likewise.
58651         * sysdeps/unix/sysv/linux/lxstat.c (__lxstat): Likewise.
58652         * sysdeps/unix/sysv/linux/lxstat64.c (___lxstat64): Likewise.
58653         * sysdeps/unix/sysv/linux/powerpc/powerpc32/truncate64.c: Do not
58654         include <bp-checks.h>.
58655         (truncate64): Do not use CHECK_STRING.
58656         * sysdeps/unix/sysv/linux/s390/s390-32/chown.c: Do not include
58657         <bp-checks.h>.
58658         (__real_chown): Do not use CHECK_STRING.
58659         * sysdeps/unix/sysv/linux/s390/s390-32/lchown.c: Do not include
58660         <bp-checks.h>.
58661         (__lchown): Do not use CHECK_STRING.
58662         * sysdeps/unix/sysv/linux/sh/chown.c: Do not include
58663         <bp-checks.h>.
58664         (__chown): Do not use CHECK_STRING.
58665         * sysdeps/unix/sysv/linux/truncate64.c: Do not include
58666         <bp-checks.h>.
58667         (truncate64): Do not use CHECK_STRING.
58668         * sysdeps/unix/sysv/linux/wordsize-64/lxstat.c (__lxstat):
58669         Likewise.
58670         * sysdeps/unix/sysv/linux/xmknod.c: Do not include <bp-checks.h>.
58671         (__xmknod): Do not use CHECK_STRING.
58672         * sysdeps/unix/sysv/linux/xmknodat.c: Do not include
58673         <bp-checks.h>.
58674         (__xmknodat): Do not use CHECK_STRING.
58675         * sysdeps/unix/sysv/linux/xstat.c (__xstat): Likewise.
58676         * sysdeps/unix/sysv/linux/xstat64.c (___xstat64): Likewise.
58677
58678 2013-02-04  Andreas Schwab  <schwab@suse.de>
58679
58680         [BZ #14142]
58681         * include/errno.h: Redefine errno only if !NOT_IN_libc || IN_LIB.
58682         * include/netdb.h: Likewise for h_errno.
58683         * elf/tst-stackguard1.c: Include <tls.h>.
58684
58685 2013-02-02  Jan Kratochvil  <jan.kratochvil@redhat.com>
58686
58687         * elf/link.h (struct link_map): Extend the l_addr comment.
58688         * include/link.h (struct link_map): Likewise.
58689
58690 2013-02-01  Joseph Myers  <joseph@codesourcery.com>
58691
58692         [BZ #13550]
58693         * sysdeps/generic/bp-checks.h (BOUNDED_N): Remove all definitions.
58694         (BOUNDED_1): Remove macro.
58695         * debug/backtrace.c: Don't include <bp-checks.h>.
58696         (ADVANCE_STACK_FRAME): Don't use BOUNDED_1.
58697         (__backtrace): Likewise.
58698         * sysdeps/powerpc/powerpc32/backtrace.c: Don't include
58699         <bp-checks.h>.
58700         (__backtrace): Don't use BOUNDED_1.
58701         * sysdeps/powerpc/powerpc64/backtrace.c: Don't include
58702         <bp-checks.h>.
58703         (__backtrace): Don't use BOUNDED_1.
58704         * sysdeps/sparc/backtrace.c: Don't include <bp-checks.h>.
58705         (__backtrace): Don't use BOUNDED_1.
58706         * sysdeps/unix/sysv/linux/shmat.c: Don't include <bp-checks.h>.
58707         (shmat): Don't use BOUNDED_N.
58708
58709 2013-01-31  Joseph Myers  <joseph@codesourcery.com>
58710
58711         [BZ #13550]
58712         * sysdeps/generic/bp-start.h: Remove file.
58713         * csu/libc-start.c: Don't include <bp-start.h>.
58714         (LIBC_START_MAIN): Set up __environ directly instead of using
58715         INIT_ARGV_and_ENVIRON.
58716         * sysdeps/unix/sysv/linux/powerpc/libc-start.c: Don't include
58717         <bp-start.h>.
58718
58719         [BZ #13550]
58720         * sysdeps/generic/bp-checks.h (CHECK_IOCTL): Remove both
58721         definitions.
58722         (CHECK_FCNTL): Likewise.
58723         (CHECK_N_PAGES): Likewise.
58724
58725         [BZ #13550]
58726         * sysdeps/generic/bp-checks.h (CHECK_SIGSET): Remove both
58727         definitions.
58728         (CHECK_SIGSET_NULL_OK): Likewise.
58729         * sysdeps/unix/sysv/linux/sigpending.c: Don't include
58730         <bp-checks.h>.
58731         (sigpending): Don't use CHECK_SIGSET.
58732         * sysdeps/unix/sysv/linux/sigprocmask.c: Don't include
58733         <bp-checks.h>.
58734         (__sigprocmask): Don't use CHECK_SIGSET and CHECK_SIGSET_NULL_OK.
58735         * sysdeps/unix/sysv/linux/sigsuspend.c: Don't include
58736         <bp-checks.h>.
58737         (do_sigsuspend): Don't use CHECK_SIGSET.
58738         * sysdeps/unix/sysv/linux/sigtimedwait.c (do_sigtimedwait): Don't
58739         use CHECK_SIGSET.
58740         * sysdeps/unix/sysv/linux/sigwait.c: Don't include <bp-checks.h>.
58741         (do_sigwait): Don't use CHECK_SIGSET.
58742         * sysdeps/unix/sysv/linux/sigwaitinfo.c (do_sigwaitinfo): Don't
58743         use CHECK_SIGSET.
58744         * sysdeps/unix/sysv/linux/sparc/sparc64/sigpending.c: Don't
58745         include <bp-checks.h>.
58746         (sigpending): Don't use CHECK_SIGSET.
58747         * sysdeps/unix/sysv/linux/sparc/sparc64/sigprocmask.c: Don't
58748         include <bp-checks.h>.
58749         (__sigprocmask): Don't use CHECK_SIGSET and CHECK_SIGSET_NULL_OK.
58750         * sysdeps/unix/sysv/linux/x86_64/sigpending.c: Don't include
58751         <bp-checks.h>.
58752         (sigpending): Don't use CHECK_SIGSET.
58753         * sysdeps/unix/sysv/linux/x86_64/sigprocmask.c: Don't include
58754         <bp-checks.h>.
58755         (__sigprocmask): Don't use CHECK_SIGSET and CHECK_SIGSET_NULL_OK.
58756
58757         [BZ #13550]
58758         * sysdeps/generic/bp-semctl.h: Remove file.
58759         * sysdeps/unix/sysv/linux/i386/semctl.c: Don't include
58760         <bp-checks.h> and <bp-semctl.h>.
58761         (__old_semctl): Don't use CHECK_SEMCTL.
58762         (__new_semctl): Likewise.
58763         * sysdeps/unix/sysv/linux/semctl.c: Don't include <bp-checks.h>
58764         and <bp-semctl.h>.
58765         (__old_semctl): Don't use CHECK_SEMCTL.
58766         (__new_semctl): Likewise.
58767         * sysdeps/unix/sysv/linux/sparc/sparc32/semctl.c: Don't include
58768         <bp-checks.h> and <bp-semctl.h>.
58769         (__old_semctl): Don't use CHECK_SEMCTL.
58770         (__new_semctl): Likewise.
58771         * sysdeps/unix/sysv/linux/sparc/sparc64/semctl.c: Don't include
58772         <bp-checks.h> and <bp-semctl.h>.
58773         (semctl): Don't use CHECK_SEMCTL.
58774
58775         [BZ #13550]
58776         * Makerules (elide-bp-thunks): Remove variable.
58777         (elide-routines.oS): Don't use $(elide-bp-thunks).
58778         (elide-routines.os): Likewise.
58779         (elide-routines.o): Likewise.
58780         (elide-routines.op): Likewise.
58781         (elide-routines.og): Likewise.
58782         (objects): Don't use $(bp-thunks).
58783         * sysdeps/unix/Makefile ($(common-objpfx)s-proto-bp.d): Do not
58784         include.
58785         (common-generated): Do not add s-proto-bp.d.
58786         * sysdeps/unix/make-syscalls.sh (ptr): Remove variable.
58787         (int): Likewise.
58788         (typ): Likewise.
58789         Do not generate makefile rules for bounded-pointer thunks.
58790         * sysdeps/generic/bp-thunks.h: Remove file.
58791         * sysdeps/unix/sysv/linux/i386/bp-thunks.h: Likewise.
58792         * sysdeps/unix/s-proto-bp.S: Likewise.
58793
58794         [BZ #15062]
58795         * math/k_casinh.c (__kernel_casinh): Compute real and imaginary
58796         parts of result separately when argument is not close to line from
58797         -i to i and one part of argument is small.
58798         * math/k_casinhf.c (__kernel_casinhf): Likewise.
58799         * math/k_casinhl.c (__kernel_casinhl): Likewise.
58800         * math/libm-test.inc (cacos_test): Add more tests.
58801         (casin_test): Likewise.
58802         (casinh_test): Likewise.
58803         * sysdeps/i386/fpu/libm-test-ulps: Update.
58804         * sysdeps/x86_64/fpu/libm-test-ulps: Likewise.
58805
58806 2013-01-31  David S. Miller  <davem@davemloft.net>
58807
58808         * po/de.po: Update from translation team.
58809
58810 2013-01-25  Maxim Kuvyrkov  <maxim.kuvyrkov@gmail.com>
58811
58812         * time/tzfile.c: Include stdint.h for SIZE_MAX.
58813
58814 2013-01-25  Thomas Schwinge  <thomas@codesourcery.com>
58815
58816         * configure.in (_AC_PROG_CC_C89): New definition.
58817         * configure: Regenerate.
58818
58819         * configure.in (AC_PROG_CPP): New definition.
58820         * configure: Regenerate.
58821
58822 2013-01-23  Joseph Myers  <joseph@codesourcery.com>
58823
58824         * debug/tst-backtrace.h: New file.
58825         * debug/tst-backtrace2.c: Include tst-backtrace.h.
58826         (ret): Remove variable.
58827         (x): Likewise.
58828         (FAIL): Remove macro.
58829         (NO_INLINE): Likewise.
58830         (fn1): Use match function instead of strstr.
58831         * debug/tst-backtrace3.c: Include tst-backtrace.h.
58832         (ret): Remove variable.
58833         (x): Likewise.
58834         (FAIL): Remove macro.
58835         (NO_INLINE): Likewise.
58836         (fn): Use match function instead of strstr.
58837         * debug/tst-backtrace4.c: Include tst-backtrace.h.
58838         (ret): Remove variable.
58839         (x): Likewise.
58840         (FAIL): Remove macro.
58841         (NO_INLINE): Likewise.
58842         (handle_signal): Use match function instead of strstr.
58843         * debug/tst-backtrace5.c: Include tst-backtrace.h.
58844         (ret): Remove variable.
58845         (x): Likewise.
58846         (FAIL): Remove macro.
58847         (NO_INLINE): Likewise.
58848         (handle_signal): Use match function instead of strstr.
58849
58850 2013-01-23  Roland McGrath  <roland@hack.frob.com>
58851
58852         * misc/sys/cdefs.h (__glibc_unlikely, __glibc_likely): Fix whitespace.
58853
58854 2013-01-23  David S. Miller  <davem@davemloft.net>
58855
58856         * sysdeps/sparc/sparc32/sparcv9/bits/atomic.h
58857         (__arch_compare_and_exchange_val_32_acq): Use %g0 as second
58858         argument of CAS if possible.
58859         * sysdeps/sparc/sparc64/bits/atomic.h
58860         (__arch_compare_and_exchange_val_32_acq): Likewise.
58861         (__arch_compare_and_exchange_val_64_acq): Likewise.
58862
58863 2013-01-23  Pino Toscano  <toscano.pino@tiscali.it>
58864
58865         * sysdeps/unix/sysv/linux/ulimit.c: Moved to ...
58866         * sysdeps/posix/ulimit.c: ... this.
58867         Include <limits.h>.
58868         * sysdeps/unix/bsd/ulimit.c: Remove file.
58869
58870 2013-01-23  Adam Conrad  <adconrad@0c3.net>
58871
58872         * elf/Makefile (LDFLAGS-tst-array2): Add $(no-as-needed).
58873         (LDFLAGS-tst-array5): Likewise.
58874
58875 2013-01-23  Joseph Myers  <joseph@codesourcery.com>
58876
58877         [BZ #15036]
58878         * bits/wchar.h (__WCHAR_MAX): Define based on __WCHAR_MAX__, or
58879         based on [L'\0' - 1 > 0] if [!__WCHAR_MAX__].
58880         (__WCHAR_MIN): Likewise, using __WCHAR_MIN__.
58881         * sysdeps/unix/sysv/linux/x86/bits/wchar.h: Remove.
58882
58883 2013-01-21  David S. Miller  <davem@davemloft.net>
58884
58885         * sysdeps/sparc/backtrace.c: New file.
58886         * sysdeps/sparc/sparc32/backtrace.h: New file.
58887         * sysdeps/sparc/sparc32/sparcv9/backtrace.h: New file.
58888         * sysdeps/sparc/sparc64/backtrace.h: New file.
58889         * sysdeps/sparc/sparc64/backtrace.c: Delete.
58890         * sysdeps/sparc/Makefile (CFLAGS-backtrace.c): Add
58891         -funwind-tables.
58892
58893 2013-01-21  Andreas Schwab  <schwab@suse.de>
58894
58895         [BZ #15020]
58896         * posix/wordexp.c (exec_comm): Avoid busy loop when command has
58897         closed its stdout.
58898
58899 2013-01-20  Andreas Schwab  <schwab@linux-m68k.org>
58900
58901         * sysdeps/powerpc/powerpc32/power4/fpu/mpa.c: Don't include
58902         "mpa2.h".
58903         * sysdeps/powerpc/powerpc64/power4/fpu/mpa.c: Likewise.
58904
58905 2013-01-18  Joseph Myers  <joseph@codesourcery.com>
58906             Mark Mitchell  <mark@codesourcery.com>
58907             Tom de Vries  <tom@codesourcery.com>
58908             Paul Pluzhnikov  <ppluzhnikov@google.com>
58909
58910         * debug/tst-backtrace2.c: New file.
58911         * debug/tst-backtrace3.c: Likewise.
58912         * debug/tst-backtrace4.c: Likewise.
58913         * debug/tst-backtrace5.c: Likewise.
58914         * debug/Makefile (CFLAGS-tst-backtrace2.c): New variable.
58915         (CFLAGS-tst-backtrace3.c): Likewise.
58916         (CFLAGS-tst-backtrace4.c): Likewise.
58917         (CFLAGS-tst-backtrace5.c): Likewise.
58918         (LDFLAGS-tst-backtrace2): Likewise.
58919         (LDFLAGS-tst-backtrace3): Likewise.
58920         (LDFLAGS-tst-backtrace4): Likewise.
58921         (LDFLAGS-tst-backtrace5): Likewise.
58922         (tests): Add new tests tst-backtrace2, tst-backtrace3,
58923         tst-backtrace4 and tst-backtrace5.
58924
58925 2013-01-18  Anton Blanchard  <anton@samba.org>
58926             Ryan S. Arnold  <rsa@linux.vnet.ibm.com>
58927
58928         * sysdeps/unix/sysv/linux/powerpc/init-first.c: Rename
58929         __kernel_vdso_get_tbfreq to __kernel_get_tbfreq.
58930         * sysdeps/unix/sysv/linux/powerpc/get_clockfreq.c: Add parameter to
58931         INTERNAL_VSYSCALL_NO_SYSCALL_FALLBACK to specify return type.
58932         * sysdeps/unix/sysv/linux/powerpc/powerpc32/sysdep.h
58933         (INTERNAL_VSYSCALL_NCS): Change "=&r" in inline asm output regs list to
58934         "+r" and remove output regs list as redundant.  Add explicit inline
58935         asm to specify register of return val to work around compiler codegen
58936         bug.  Remove (int) cast on return value.  Add return type parameter to
58937         use in macro so that this macro does not truncate return value for
58938         64-bit values.
58939         (INTERNAL_VSYSCALL_NO_SYSCALL_FALLBACK): Add return type parameter and
58940         pass to INTERNAL_VSYSCALL_NCS.
58941         (INLINE_VSYSCALL): Add 'long int' as return type to
58942         INTERNAL_VSYSCALL_NCS macro invocation.
58943         (INTERNAL_VSYSCALL): Add 'long int' as return type to
58944         INTERNAL_VSYSCALL_NCS macro invocation.
58945         * sysdeps/unix/sysv/linux/powerpc/powerpc64/sysdep.h: Likewise.
58946
58947 2013-01-18  Siddhesh Poyarekar  <siddhesh@redhat.com>
58948
58949         [BZ #14496]
58950         * sysdeps/i386/fpu/fenv_private.h (libc_feupdateenv_test_sse):
58951         Fix application of SIMD FP exception mask.
58952
58953         * sysdeps/ieee754/dbl-64/mpa.h (__pow_mp): New function to get an
58954         mp_no from a power of two.
58955         * sysdeps/ieee754/dbl-64/mpexp.c (__mpexp): Remove
58956         __mpexp_twomm1.  Use __pow_mp.
58957
58958         * sysdeps/ieee754/dbl-64/mpexp.c (__mpexp): Remove unnecessary
58959         multiplication.
58960
58961 2013-01-17  David S. Miller  <davem@davemloft.net>
58962
58963         * sysdeps/sparc/fpu/libm-test-ulps: Update.
58964
58965 2013-01-17  Joseph Myers  <joseph@codesourcery.com>
58966
58967         [BZ #15023]
58968         * include/complex.h: Condition contents on [!_COMPLEX_H].
58969         (__kernel_casinhf): New prototype.
58970         (__kernel_casinh): Likewise.
58971         (__kernel_casinhl): Likewise.
58972         * math/Makefile (libm_calls): Add k_casinh.
58973         * math/k_casinh.c: New file.
58974         * math/k_casinhf.c: Likewise.
58975         * math/k_casinhl.c: Likewise.
58976         * math/s_cacos.c (__cacos): Implement using __kernel_casinh for
58977         finite nonzero arguments.
58978         * math/s_cacosf.c (__cacosf): Implement using __kernel_casinhf for
58979         finite nonzero arguments.
58980         * math/s_cacosl.c (__cacosl): Implement using __kernel_casinhl for
58981         finite nonzero arguments.
58982         * math/s_casinh.c: Do not include <float.h>.
58983         (__casinh): Move code for finite nonzero arguments to k_casinh.c.
58984         * math/s_casinhf.c: Do not include <float.h>.
58985         (__casinhf): Move code for finite nonzero arguments to
58986         k_casinhf.c.
58987         * math/s_casinhl.c: Do not include <float.h>.
58988         [LDBL_MANT_DIG == 106] (LDBL_EPSILON): Do not undefine and
58989         redefine.
58990         (__casinhl): Move code for finite nonzero arguments to
58991         k_casinhl.c.
58992         * math/libm-test.inc (cacos_test): Add more tests.
58993         * sysdeps/i386/fpu/libm-test-ulps: Update.
58994         * sysdeps/x86_64/fpu/libm-test-ulps: Likewise.
58995
58996 2013-01-17  Pino Toscano  <toscano.pino@tiscali.it>
58997
58998         * sysdeps/unix/sysv/linux/malloc-sysdep.h (HAVE_MREMAP): New define.
58999         * malloc/malloc.c: Include <unistd.h> and <malloc-sysdep.h>.
59000         [!HAVE_MREMAP]: Remove [defined linux] case.
59001         * malloc/arena.c: Do not include <malloc-sysdep.h>.
59002
59003 2013-01-17  Siddhesh Poyarekar  <siddhesh@redhat.com>
59004
59005         * sysdeps/ieee754/dbl-64/mpa.c: Fix header comment.
59006
59007 2013-01-17  H.J. Lu  <hongjiu.lu@intel.com>
59008
59009         * elf/elf.h (R_386_SIZE32): New relocation.
59010         * sysdeps/i386/dl-machine.h (elf_machine_rel): Handle
59011         R_386_SIZE32.
59012         (elf_machine_rela): Likewise.
59013         * sysdeps/x86_64/dl-machine.h (elf_machine_rela): Handle
59014         R_X86_64_SIZE64 and R_X86_64_SIZE32.
59015
59016 2013-01-17  Joseph Myers  <joseph@codesourcery.com>
59017
59018         * sysdeps/powerpc/bits/mathdef.h [_SOFT_FLOAT || __NO_FPRS__]
59019         (FP_FAST_FMA): Do not define.
59020         [_SOFT_FLOAT || __NO_FPRS__] (FP_FAST_FMAF): Likewise.
59021         * sysdeps/powerpc/fpu/bits/fenvinline.h [__GNUC__ && !_SOFT_FLOAT
59022         && !__NO_MATH_INLINES]: Add [!__NO_FPRS__] condition.
59023         * sysdeps/powerpc/fpu/bits/mathinline.h [__GNUC__ &&
59024         !_SOFT_FLOAT]: Likewise.
59025         * sysdeps/powerpc/fpu/fpu_control.h [_SOFT_FLOAT || __NO_FPRS__]
59026         [_SOFT_FLOAT || __NO_FPRS__] (_FPU_RESERVED): Define with generic
59027         value.
59028         [_SOFT_FLOAT || __NO_FPRS__] (_FPU_DEFAULT): Likewise.
59029         [_SOFT_FLOAT || __NO_FPRS__] (fpu_control_t): Likewise.
59030         [_SOFT_FLOAT || __NO_FPRS__] (_FPU_GETCW): Likewise.
59031         [_SOFT_FLOAT || __NO_FPRS__] (_FPU_SETCW): Likewise.
59032         [_SOFT_FLOAT || __NO_FPRS__] (__fpu_control): Likewise.
59033         [!_SOFT_FLOAT && !__NO_FPRS__]: Condition previous contents of
59034         file.
59035
59036 2013-01-16  Andreas Schwab  <schwab@suse.de>
59037
59038         [BZ #14327]
59039         * include/stdlib.h (__mktemp): Add declaration.
59040         * misc/mktemp.c (__mktemp): Renamed from mktemp, add weak alias.
59041         * misc/Versions (GLIBC_PRIVATE): Add __mktemp.
59042
59043 2013-01-16  Siddhesh Poyarekar  <siddhesh@redhat.com>
59044
59045         * sysdeps/ieee754/dbl-64/atnat.h: Remove constant value
59046         definitions.
59047         * sysdeps/ieee754/dbl-64/atnat2.h: Likewise.
59048         * sysdeps/ieee754/dbl-64/mpa.c: Do not include mpa2.h.
59049         * sysdeps/ieee754/dbl-64/mpa.h: Move all constant value
59050         definitions here.
59051         * sysdeps/ieee754/dbl-64/mpa2.h: Remove.
59052         * sysdeps/ieee754/dbl-64/mpatan.h: Remove constant value
59053         definitions.
59054         * sysdeps/ieee754/dbl-64/mpatan2.c (__mpatan2): Remove ZERO
59055         and ONE.
59056         * sysdeps/ieee754/dbl-64/mpexp.c: Do not include mpexp.h.
59057         * sysdeps/ieee754/dbl-64/mpexp.h: Remove.
59058         * sysdeps/ieee754/dbl-64/mpsqrt.h: Remove constant value
59059         definitions.
59060         * sysdeps/ieee754/dbl-64/mptan.c (__mptan): Remove MONE.
59061         * sysdeps/ieee754/dbl-64/ulog.h: Remove constant value
59062         definitions.
59063         * sysdeps/ieee754/dbl-64/utan.h: Likewise.
59064
59065         * sysdeps/ieee754/dbl-64/mpa2.h: Fix the value of TWO.
59066
59067 2013-01-15  David S. Miller  <davem@davemloft.net>
59068
59069         * sysdeps/sparc/sparc32/sparcv9/fpu/multiarch/Makefile: Add vis3
59070         trunc{,f} to libm-sysdep_routes.
59071         * sysdeps/sparc/sparc64/fpu/multiarch/Makefile: Likewise.
59072         * sysdeps/sparc/sparc32/sparcv9/fpu/multiarch/s_trunc-vis3.S: New
59073         file.
59074         * sysdeps/sparc/sparc32/sparcv9/fpu/multiarch/s_trunc.S: New file.
59075         * sysdeps/sparc/sparc32/sparcv9/fpu/multiarch/s_truncf-vis3.S: New
59076         file.
59077         * sysdeps/sparc/sparc32/sparcv9/fpu/multiarch/s_truncf.S: New
59078         file.
59079         * sysdeps/sparc/sparc32/sparcv9/fpu/s_trunc.S: New file.
59080         * sysdeps/sparc/sparc32/sparcv9/fpu/s_truncf.S: New file.
59081         * sysdeps/sparc/sparc64/fpu/multiarch/s_trunc-vis3.S: New file.
59082         * sysdeps/sparc/sparc64/fpu/multiarch/s_trunc.S: New file.
59083         * sysdeps/sparc/sparc64/fpu/multiarch/s_truncf-vis3.S: New file.
59084         * sysdeps/sparc/sparc64/fpu/multiarch/s_truncf.S: New file.
59085         * sysdeps/sparc/sparc64/fpu/s_trunc.S: New file.
59086         * sysdeps/sparc/sparc64/fpu/s_truncf.S: New file.
59087
59088         * sysdeps/sparc/sparc32/sparcv9/fpu/multiarch/Makefile: Add vis3
59089         nearbyint{,f} to libm-sysdep_routes.
59090         * sysdeps/sparc/sparc64/fpu/multiarch/Makefile: Likewise.
59091         * sysdeps/sparc/sparc32/sparcv9/fpu/multiarch/s_nearbyint-vis3.S:
59092         New file.
59093         * sysdeps/sparc/sparc32/sparcv9/fpu/multiarch/s_nearbyint.S: New
59094         file.
59095         * sysdeps/sparc/sparc32/sparcv9/fpu/multiarch/s_nearbyintf-vis3.S:
59096         New file.
59097         * sysdeps/sparc/sparc32/sparcv9/fpu/multiarch/s_nearbyintf.S: New
59098         file.
59099         * sysdeps/sparc/sparc32/sparcv9/fpu/s_nearbyint.S: New file.
59100         * sysdeps/sparc/sparc32/sparcv9/fpu/s_nearbyintf.S: New file.
59101         * sysdeps/sparc/sparc64/fpu/multiarch/s_nearbyint-vis3.S: New
59102         file.
59103         * sysdeps/sparc/sparc64/fpu/multiarch/s_nearbyint.S: New file.
59104         * sysdeps/sparc/sparc64/fpu/multiarch/s_nearbyintf-vis3.S: New
59105         file.
59106         * sysdeps/sparc/sparc64/fpu/multiarch/s_nearbyintf.S: New file.
59107         * sysdeps/sparc/sparc64/fpu/s_nearbyint.S: New file.
59108         * sysdeps/sparc/sparc64/fpu/s_nearbyintf.S: New file.
59109
59110         * sysdeps/ieee754/dbl-64/s_nearbyint.c (__nearbyint): Use
59111         libc_feholdexcept and libc_fesetenv.
59112
59113 2013-01-15  Mike Frysinger  <vapier@gentoo.org>
59114
59115         * sysdeps/unix/sysv/linux/scsi/sg.h: Include stddef.h.
59116
59117 2013-01-14  David S. Miller  <davem@davemloft.net>
59118
59119         * sysdeps/sparc/sparc-ifunc.h (SPARC_ASM_IFUNC2): New macro.
59120         (SPARC_ASM_VIS2_IFUNC): Likewise.
59121         (SPARC_ASM_VIS3_VIS2_IFUNC): Likewise.
59122         * sysdeps/sparc/sparc32/sparcv9/fpu/multiarch/s_ceil-vis3.S: Make
59123         use of 'siam' instruction.
59124         * sysdeps/sparc/sparc32/sparcv9/fpu/multiarch/s_ceilf-vis3.S:
59125         Likewise.
59126         * sysdeps/sparc/sparc32/sparcv9/fpu/multiarch/s_floor-vis3.S:
59127         Likewise.
59128         * sysdeps/sparc/sparc32/sparcv9/fpu/multiarch/s_floorf-vis3.S:
59129         Likewise.
59130         * sysdeps/sparc/sparc64/fpu/multiarch/s_ceil-vis3.S: Likewise.
59131         * sysdeps/sparc/sparc64/fpu/multiarch/s_ceilf-vis3.S: Likewise.
59132         * sysdeps/sparc/sparc64/fpu/multiarch/s_floor-vis3.S: Likewise.
59133         * sysdeps/sparc/sparc64/fpu/multiarch/s_floorf-vis3.S: Likewise.
59134         * sysdeps/sparc/sparc32/sparcv9/fpu/multiarch/s_ceil-vis2.S: New
59135         file.
59136         * sysdeps/sparc/sparc32/sparcv9/fpu/multiarch/s_ceilf-vis2.S: New
59137         file.
59138         * sysdeps/sparc/sparc32/sparcv9/fpu/multiarch/s_floor-vis2.S: New
59139         file.
59140         * sysdeps/sparc/sparc32/sparcv9/fpu/multiarch/s_floorf-vis2.S: New
59141         file.
59142         * sysdeps/sparc/sparc64/fpu/multiarch/s_ceil-vis2.S: New file.
59143         * sysdeps/sparc/sparc64/fpu/multiarch/s_ceilf-vis2.S: New file.
59144         * sysdeps/sparc/sparc64/fpu/multiarch/s_floor-vis2.S: New file.
59145         * sysdeps/sparc/sparc64/fpu/multiarch/s_floorf-vis2.S: New file.
59146         * sysdeps/sparc/sparc32/sparcv9/fpu/multiarch/s_ceil.S: Hook in
59147         new VIS2 routines.
59148         * sysdeps/sparc/sparc32/sparcv9/fpu/multiarch/s_ceilf.S: Likewise.
59149         * sysdeps/sparc/sparc32/sparcv9/fpu/multiarch/s_floor.S: Likewise.
59150         * sysdeps/sparc/sparc32/sparcv9/fpu/multiarch/s_floorf.S:
59151         Likewise.
59152         * sysdeps/sparc/sparc64/fpu/multiarch/s_ceil.S: Likewise.
59153         * sysdeps/sparc/sparc64/fpu/multiarch/s_ceilf.S: Likewise.
59154         * sysdeps/sparc/sparc64/fpu/multiarch/s_floor.S: Likewise.
59155         * sysdeps/sparc/sparc64/fpu/multiarch/s_floorf.S: Likewise.
59156         * sysdeps/sparc/sparc32/sparcv9/fpu/multiarch/Makefile: Add new VIS2
59157         routines to libm-sysdep_routines.
59158         * sysdeps/sparc/sparc64/fpu/multiarch/Makefile: Likewise.
59159
59160         * sysdeps/sparc/sparc32/sparcv9/fpu/multiarch/Makefile: Add vis3
59161         fdim/fdimf to libm-sysdep_routines.
59162         * sysdeps/sparc/sparc32/sparcv9/fpu/multiarch/s_fdim-vis3.S: New
59163         file.
59164         * sysdeps/sparc/sparc32/sparcv9/fpu/multiarch/s_fdim.S: New file.
59165         * sysdeps/sparc/sparc32/sparcv9/fpu/multiarch/s_fdimf-vis3.S: New
59166         file.
59167         * sysdeps/sparc/sparc32/sparcv9/fpu/multiarch/s_fdimf.S: New file.
59168         * sysdeps/sparc/sparc32/sparcv9/fpu/s_fdim.S: New file.
59169         * sysdeps/sparc/sparc32/sparcv9/fpu/s_fdimf.S: New file.
59170         * sysdeps/sparc/sparc32/fpu/s_fdim.S: New file.
59171         * sysdeps/sparc/sparc32/fpu/s_fdimf.S: New file.
59172         * sysdeps/sparc/sparc64/fpu/s_fdim.S: New file.
59173         * sysdeps/sparc/sparc64/fpu/s_fdimf.S: New file.
59174
59175 2013-01-14  Siddhesh Poyarekar  <siddhesh@redhat.com>
59176
59177         * sysdeps/ieee754/dbl-64/mpa.c (__mul): Add a local variable
59178         to optimize copies.
59179
59180         * sysdeps/ieee754/dbl-64/mpa.c: Fix formatting.
59181         * sysdeps/powerpc/powerpc32/power4/fpu/mpa.c: Likewise.
59182         * sysdeps/powerpc/powerpc64/power4/fpu/mpa.c: Likewise.
59183
59184         * sysdeps/powerpc/powerpc32/power4/fpu/mpa.c (__inv): Remove
59185         local variable MPTWO.
59186         * sysdeps/powerpc/powerpc64/power4/fpu/mpa.c (__inv):
59187         Likewise.
59188
59189 2013-01-13  Mike Frysinger  <vapier@gentoo.org>
59190
59191         * manual/pattern.texi (Flags for Globbing): Move GLOB_NOSORT after
59192         GLOB_NOESCAPE.
59193
59194 2013-01-13  Mike Frysinger  <vapier@gentoo.org>
59195
59196         * manual/pattern.texi (Flags for Globbing): Highlight GNU extensions.
59197
59198 2013-01-13  Mike Frysinger  <vapier@gentoo.org>
59199
59200         * manual/pattern.texi (glob_t): Document gl_flags.
59201         (glob64_t): Likewise.
59202
59203 2013-01-11  David S. Miller  <davem@davemloft.net>
59204
59205         * math/Makefile (gmp-objs): Use $(gmp-sysdep_routines).
59206         * sysdeps/sparc/sparc64/multiarch/Makefile [$(subdir) = math]
59207         (gmp-sysdep_routines): New variable.  Add VIS3 optimized GMP routines.
59208         * sysdeps/sparc/sparc64/multiarch/add_n-vis3.S: New file.
59209         * sysdeps/sparc/sparc64/multiarch/add_n.S: New file.
59210         * sysdeps/sparc/sparc64/multiarch/addmul_1-vis3.S: New file.
59211         * sysdeps/sparc/sparc64/multiarch/addmul_1.S: New file.
59212         * sysdeps/sparc/sparc64/multiarch/mul_1-vis3.S: New file.
59213         * sysdeps/sparc/sparc64/multiarch/mul_1.S: New file.
59214         * sysdeps/sparc/sparc64/multiarch/sub_n-vis3.S: New file.
59215         * sysdeps/sparc/sparc64/multiarch/sub_n.S: New file.
59216         * sysdeps/sparc/sparc64/multiarch/submul_1-vis3.S: New file.
59217         * sysdeps/sparc/sparc64/multiarch/submul_1.S: New file.
59218
59219         * sysdeps/sparc/sparc32/sparcv9/mul_1.S: Properly optimize for 32-bit
59220         sparc V9 rather than using V8 code.
59221         * sysdeps/sparc/sparc32/sparcv9/addmul_1.S: Likewise.
59222         * sysdeps/sparc/sparc32/sparcv9/submul_1.S: Likewise.
59223
59224         * sysdeps/sparc/sparc32/sparcv9/fpu/unix/sysv/linux/multiarch/Implies:
59225         Move to...
59226         * sysdeps/unix/sysv/linux/sparc/sparc32/sparcv9/fpu/multiarch/Implies:
59227         Here.
59228
59229 2013-01-11  Roland McGrath  <roland@hack.frob.com>
59230
59231         [BZ #14941]
59232         * configure.in (sysnames): Use $multi_arch_d in setting up $mach list,
59233         not in the main loop.
59234         * configure: Regenerated.
59235
59236 2013-01-11  Joseph Myers  <joseph@codesourcery.com>
59237
59238         * include/features.h (__GLIBC_HAVE_LONG_LONG): Remove.
59239         * bits/byteswap.h [__GLIBC_HAVE_LONG_LONG]: Change #elif condition
59240         to just #else.
59241         * bits/types.h [__GLIBC_HAVE_LONG_LONG]: Likewise.  Remove
59242         [!__GLIBC_HAVE_LONG_LONG] case.
59243         * posix/sys/types.h [__GLIBC_HAVE_LONG_LONG]: Change #elif
59244         condition to just #else.
59245         * stdlib/stdlib.h [__USE_ISOC99 || (__GLIBC_HAVE_LONG_LONG &&
59246         __USE_MISC)]: Change all uses to [__USE_ISOC99 || __USE_MISC].
59247         [__GLIBC_HAVE_LONG_LONG && __USE_BSD]: Change to [__USE_BSD].
59248         * string/byteswap.h [__GLIBC_HAVE_LONG_LONG]: Make code
59249         unconditional.
59250         * string/endian.h [__GLIBC_HAVE_LONG_LONG]: Likewise.
59251         * sysdeps/s390/bits/byteswap.h [__GLIBC_HAVE_LONG_LONG]: Change
59252         #elif condition to just #else.
59253         * sysdeps/unix/sysv/linux/sys/sysmacros.h
59254         [__GLIBC_HAVE_LONG_LONG]: Make code unconditional.
59255         * sysdeps/x86/bits/byteswap.h [__GLIBC_HAVE_LONG_LONG]: Change
59256         #elif condition to just #else.
59257
59258 2013-01-11  Steve Ellcey  <sellcey@mips.com>
59259
59260         * elf/elf.h (EF_MIPS_ARCH_32): Fix value.
59261         (EF_MIPS_ARCH_64): Fix value.
59262         (EF_MIPS_ARCH_32R2): New.
59263         (EF_MIPS_ARCH_64R2): New.
59264
59265 2013-01-11  H.J. Lu  <hongjiu.lu@intel.com>
59266
59267         * Makeconfig (+link-pie-before-libc): New.
59268         (+link-pie-after-libc): Likewise.
59269         (+link-pie-tests): Likewise.
59270         (+link-pie): Rewritten.
59271         (link-before-libc): Remove $(config-LDFLAGS).
59272         (+link): Add $(rtld-LDFLAGS) after $(+link-before-libc).
59273         (+link-tests): Add $(rtld-tests-LDFLAGS) after $(+link-before-libc).
59274         (config-LDFLAGS): Renamed to ...
59275         (rtld-LDFLAGS): This.
59276         (rtld-tests-LDFLAGS): New macro.
59277         (link-libc-rpath-link): Likewise.
59278         (link-libc-tests-rpath-link): Likewise.
59279         (link-libc-before-gnulib): Remove -Wl,-rpath-link=$(rpath-link).
59280         (link-libc): Prepand $(link-libc-rpath-link).
59281         (link-libc-tests): Prepand $(link-libc-tests-rpath-link).
59282         (test-program-prefix): New macro.
59283         (test-via-rtld-prefix): Likewise.
59284         (test-program-cmd): Likewise.
59285         (host-test-program-cmd): Likewise.
59286         * Makefile ($(common-objpfx)testrun.sh): Replace
59287         $(run-program-prefix) with $(test-program-prefix).
59288         * Makerules ($(LINK.o)): Replace $(config-LDFLAGS) with
59289         $(rtld-LDFLAGS).
59290         ($(common-objpfx)shlib.lds): Likewise.
59291         (build-module-helper): Likewise.
59292         ($(common-objpfx)format.lds): Likewise.
59293         * Rules (binaries-pie-tests): New.
59294         (binaries-pie-notests): Likewise.
59295         (binaries-pie): Rewritten.
59296         ($(addprefix $(objpfx),$(binaries-pie))): Renamed to ...
59297         ($(addprefix $(objpfx),$(binaries-pie-notests))): This.
59298         ($(addprefix $(objpfx),$(binaries-pie-tests))): New.
59299         (make-test-out): Replace $(host-built-program-cmd) with
59300         $(host-test-program-cmd).
59301         * config.make.in (build-hardcoded-path-in-tests): New variable.
59302         * configure.in (--enable-hardcoded-path-in-tests): New configure
59303         option.
59304         (hardcoded_path_in_tests): New AC_SUBST.
59305         * configure: Regenerated.
59306         * catgets/Makefile ($(objpfx)test-gencat.out): Replace
59307         $(built-program-cmd) with $(test-program-cmd).
59308         * catgets/test-gencat.sh (run_program_cmd): Renamed to ...
59309         (test_program_cmd): This.
59310         * elf/Makefile ($(objpfx)order.out): Run test with
59311         $(test-program-prefix).
59312         ($(objpfx)order2.out): Likewise.
59313         ($(objpfx)tst-initorder.out): Likewise.
59314         ($(objpfx)tst-initorder2.out): Likewise.
59315         ($(objpfx)tst-array1.out): Replace $(built-program-cmd) with
59316         $(test-program-cmd).
59317         ($(objpfx)tst-array1-static.out): Likewise.
59318         ($(objpfx)tst-array2.out): Likewise.
59319         ($(objpfx)tst-array3.out): Likewise.
59320         ($(objpfx)tst-array4.out): Likewise.
59321         ($(objpfx)tst-array5.out): Likewise.
59322         ($(objpfx)tst-array5-static.out): Likewise.
59323         (tst-stackguard1-ARGS): Replace $(built-program-cmd) with
59324         $(test-program-cmd).
59325         * grp/Makefile ($(objpfx)tst_fgetgrent.out): Replace
59326         $(run-program-prefix) with $(test-program-prefix).
59327         * grp/tst_fgetgrent.sh (run_program_prefix): Renamed to ...
59328         (test_program_prefix): This.
59329         * iconvdata/Makefile ($(objpfx)tst-tables.out): Replace
59330         $(run-program-prefix) with $(test-program-prefix).
59331         * iconvdata/tst-table.sh (run_program_prefix): Renamed to ...
59332         (test_program_prefix): This.
59333         * iconvdata/tst-tables.sh: Likewise.
59334         * intl/Makefile ($(objpfx)tst-gettext.out): Replace
59335         $(run-program-prefix) with $(test-program-prefix).
59336         ($(objpfx)tst-translit.out): Likewise.
59337         ($(objpfx)tst-gettext2.out): Likewise.
59338         ($(objpfx)tst-gettext4.out): Likewise.
59339         ($(objpfx)tst-gettext6.out): Likewise.
59340         * intl/tst-gettext.sh (run_program_prefix): Renamed to ...
59341         (test_program_prefix): This.
59342         * intl/tst-gettext2.sh: Likewise.
59343         * intl/tst-gettext4.sh  Likewise.
59344         * intl/tst-gettext6.sh: Likewise.
59345         * intl/tst-translit.sh: Likewise.
59346         * io/Makefile ($(objpfx)ftwtest.out): Replace $(run-program-cmd)
59347         with $(test-program-cmd).
59348         * libio/Makefile ($(objpfx)test-freopen.out): Replace
59349         $(run-program-prefix) with $(test-program-prefix).
59350         * libio/test-freopen.sh (run_program_prefix): Renamed to ...
59351         (test_program_prefix): This.
59352         * malloc/Makefile ($(objpfx)tst-mtrace.out): Replace
59353         $(run-program-prefix) with $(test-program-prefix).
59354         * malloc/tst-mtrace.sh (run_program_prefix): Renamed to ...
59355         (test_program_prefix): This.
59356         * manual/install.texi: Document --enable-hardcoded-path-in-tests.
59357         * posix/Makefile ($(objpfx)globtest.out): Replace
59358         $(run-via-rtld-prefix) and $(test-wrapper) with
59359         $(test-program-prefix) and $(test-via-rtld-prefix).
59360         ($(objpfx)wordexp-tst.out): Replace $(run-program-prefix) with
59361         $(test-program-prefix).
59362         (tst-exec-ARGS): Replace $(host-built-program-cmd) with
59363         $(host-test-program-cmd).
59364         (tst-spawn-ARGS): Likewise.
59365         ($(objpfx)tst-rxspencer-mem): Replace $(run-program-prefix) with
59366         $(test-program-prefix).
59367         * posix/globtest.sh (un_via_rtld_prefix): Renamed to ...
59368         (test_via_rtld_prefix): This.
59369         (test_wrapper): Renamed to ...
59370         (test_program_prefix): This.
59371         (run_program_prefix): Replaced by test_program_prefix.
59372         * posix/wordexp-tst.sh (run_program_prefix): Renamed to ...
59373         (test_program_prefix): This.
59374         * rt/Makefile (tst-mqueue7-ARGS): Replace $(host-built-program-cmd)
59375         with $(host-test-program-cmd).
59376         * stdio-common/Makefile ($(objpfx)tst-unbputc.out): Replace
59377         $(run-program-prefix) with $(test-program-prefix).
59378         ($(objpfx)tst-printf.out): Likewise.
59379         ($(objpfx)tst-setvbuf1.out): Replace $(built-program-cmd) with
59380         $(test-program-cmd).
59381         * stdio-common/tst-printf.sh (run_program_prefix): Renamed to ...
59382         (test_program_prefix): This.
59383         * stdio-common/tst-unbputc.sh: Likewise.
59384         * stdlib/Makefile ($(objpfx)tst-fmtmsg.out): Replace
59385         $(run-program-prefix) with $(test-program-prefix).
59386         * stdlib/tst-fmtmsg.sh (run_program_prefix): Renamed to ...
59387         (test_program_prefix): This.
59388         * string/Makefile ($(objpfx)tst-svc.out):  Replace
59389         $(built-program-cmd) with $(test-program-cmd).
59390
59391 2013-01-11  Andreas Jaeger  <aj@suse.de>
59392
59393         [BZ #15003]
59394         * sysdeps/unix/sysv/linux/bits/socket.h (MSG_FASTOPEN): New
59395         value. Sync with Linux 3.7.
59396
59397 2013-01-10  David S. Miller  <davem@davemloft.net>
59398
59399         * sysdeps/sparc/sparc32/sparcv9/mul_1.S: Revert previous changes.
59400         * sysdeps/sparc/sparc32/sparcv9/addmul_1.S: Likewise.
59401         * sysdeps/sparc/sparc32/sparcv9/submul_1.S: Likewise.
59402
59403 2013-01-10  Roland McGrath  <roland@hack.frob.com>
59404
59405         * configure.in (sysnames): Drop use of $m0sub and $msub, which are
59406         never set.
59407         * configure: Regenerated.
59408
59409 2013-01-10  David S. Miller  <davem@davemloft.net>
59410
59411         * sysdeps/sparc/sparc32/sparcv9/mul_1.S: Properly optimize for 32-bit
59412         sparc V9 rather than using V8 code.
59413         * sysdeps/sparc/sparc32/sparcv9/addmul_1.S: Likewise.
59414         * sysdeps/sparc/sparc32/sparcv9/submul_1.S: Likewise.
59415
59416 2013-01-10  Roland McGrath  <roland@hack.frob.com>
59417
59418         * elf/elf.h (DT_SPARC_REGISTER, DT_SPARC_NUM): Fix whitespace.
59419         (EF_MIPS_NOREORDER, EF_MIPS_PIC, EF_MIPS_CPIC, EF_MIPS_XGOT): Likewise.
59420         (EF_MIPS_64BIT_WHIRL, EF_MIPS_ABI2, EF_MIPS_ABI_ON32): Likewise.
59421         (EF_MIPS_ARCH, EF_MIPS_ARCH_1, EF_MIPS_ARCH_2): Likewise.
59422         (EF_MIPS_ARCH_3, EF_MIPS_ARCH_4, EF_MIPS_ARCH_5): Likewise.
59423         (EF_MIPS_ARCH_32, EF_MIPS_ARCH_64): Likewise.
59424         (E_MIPS_ARCH_1): Define in terms of EF_MIPS_ARCH_* counterpart.
59425         (E_MIPS_ARCH_2, E_MIPS_ARCH_3, E_MIPS_ARCH_4, E_MIPS_ARCH_5): Likewise.
59426         (E_MIPS_ARCH_32, E_MIPS_ARCH_64): Likewise.
59427         (SHN_MIPS_ACOMMON, SHN_MIPS_TEXT, SHN_MIPS_DATA): Fix whitespace.
59428         (SHN_MIPS_SCOMMON, SHN_MIPS_SUNDEFINED): Likewise.
59429         (SHT_MIPS_LIBLIST, SHT_MIPS_MSYM, SHT_MIPS_CONFLICT): Likewise.
59430         (SHT_MIPS_GPTAB, SHT_MIPS_UCODE, SHT_MIPS_DEBUG): Likewise.
59431         (SHT_MIPS_REGINFO, SHT_MIPS_PACKAGE, SHT_MIPS_PACKSYM): Likewise.
59432         (SHT_MIPS_RELD, SHT_MIPS_IFACE, SHT_MIPS_CONTENT): Likewise.
59433         (SHT_MIPS_OPTIONS, SHT_MIPS_SHDR, SHT_MIPS_FDESC): Likewise.
59434         (SHT_MIPS_EXTSYM, SHT_MIPS_DENSE, SHT_MIPS_PDESC): Likewise.
59435         (SHT_MIPS_LOCSYM, SHT_MIPS_AUXSYM, SHT_MIPS_OPTSYM): Likewise.
59436         (SHT_MIPS_LOCSTR, SHT_MIPS_LINE, SHT_MIPS_RFDESC): Likewise.
59437         (SHT_MIPS_DELTASYM, SHT_MIPS_DELTAINST, SHT_MIPS_DELTACLASS): Likewise.
59438         (SHT_MIPS_DELTADECL, SHT_MIPS_SYMBOL_LIB, SHT_MIPS_EVENTS): Likewise.
59439         (SHT_MIPS_TRANSLATE, SHT_MIPS_PIXIE, SHT_MIPS_XLATE): Likewise.
59440         (SHT_MIPS_XLATE_DEBUG, SHT_MIPS_WHIRL, SHT_MIPS_EH_REGION): Likewise.
59441         (SHT_MIPS_XLATE_OLD, SHT_MIPS_PDR_EXCEPTION): Likewise.
59442         (SHF_MIPS_GPREL, SHF_MIPS_MERGE, SHF_MIPS_ADDR): Likewise.
59443         (SHF_MIPS_STRINGS, SHF_MIPS_NOSTRIP, SHF_MIPS_LOCAL): Likewise.
59444         (SHF_MIPS_NAMES, SHF_MIPS_NODUPE): Likewise.
59445
59446 2013-01-10  David S. Miller  <davem@davemloft.net>
59447
59448         * sysdeps/sparc/fpu/libm-test-ulps: Update.
59449
59450 2013-01-10  H.J. Lu  <hongjiu.lu@intel.com>
59451
59452         * posix/Makefile (tests-static): New variable.
59453         (tests): Add $(tests-static).
59454         (tst-exec-static-ARGS): New variable.
59455         (tst-spawn-static-ARGS): Likewise.
59456         * posix/tst-exec-static.c: New file.
59457         * posix/tst-spawn-static.c: Likewise.
59458         * posix/tst-exec.c: Support run directly.
59459         * posix/tst-spawn.c: Likewise.
59460
59461 2013-01-10  Joseph Myers  <joseph@codesourcery.com>
59462
59463         * elf/link.h (struct dl_phdr_info): Use __extension__ with long
59464         long.
59465         * math/bits/mathcalls.h (llrint): Likewise.
59466         (llround): Likewise.
59467         * stdlib/stdlib.h (struct drand48_data): Likewise.
59468         * sysdeps/generic/inttypes.h (imaxdiv_t): Likewise.
59469         * sysdeps/s390/bits/byteswap.h (__bswap_64): Likewise.
59470         * sysdeps/unix/sysv/linux/sparc/bits/ipc.h (struct ipc_perm):
59471         Likewise.
59472         * sysdeps/unix/sysv/linux/sparc/sys/ucontext.h (struct fpu):
59473         Likewise.
59474         * sysdeps/unix/sysv/linux/x86/sys/procfs.h [__x86_64__]
59475         (elf_greg_t): Likewise.
59476         * sysdeps/x86/bits/setjmp.h [__x86_64__ && __WORDSIZE != 64]
59477         (__jmp_buf): Likewise.
59478         * sysdeps/x86/fpu/bits/mathinline.h (llrintf): Likewise, for all
59479         definitions.
59480         (llrint): Likewise, for all definitions.
59481         (llrintl): Likewise.
59482
59483         * string/string.h [__USE_BSD && __USE_GNU && __GNUC__] (ffsll):
59484         Remove [__GNUC__] condition.
59485         * wcsmbs/wchar.h [__USE_ISOC99 || (__GNUC__ && __USE_GNU)]: Change
59486         condition to just [__USE_ISOC99].
59487         [__GNUC__ && __USE_GNU]: Change condition to just [__USE_GNU].
59488
59489 2013-01-10  H.J. Lu  <hongjiu.lu@intel.com>
59490
59491         [BZ #14200]
59492         * sysdeps/unix/sysv/linux/x86/bits/environments.h
59493         (_POSIX_V7_ILP32_OFF32): Defined as 1 only if __x86_64__ isn't
59494         defined.
59495         (_POSIX_V6_ILP32_OFF32): Likewise.
59496         (_XBS5_ILP32_OFF32): Likewise.
59497         (__ILP32_OFFBIG_CFLAGS): Defined as "-mx32" for x32.
59498         (__ILP32_OFFBIG_LDFLAGS): Likewise.
59499
59500 2013-01-10  Siddhesh Poyarekar  <siddhesh@redhat.com>
59501
59502         * sysdeps/ieee754/dbl-64/mpexp.c: Fix formatting.
59503
59504         * sysdeps/ieee754/dbl-64/mpexp.c (__mpexp): New array of
59505         doubles __mpexp_twomm1.  Adjust usage.
59506         * sysdeps/ieee754/dbl-64/mpexp.h (__mpexp_twomm1):
59507         Remove.
59508
59509 2013-01-10  Andreas Schwab  <schwab@suse.de>
59510
59511         [BZ #14964]
59512         * sysdeps/unix/sysv/linux/bits/fcntl-linux.h (FALLOC_FL_KEEP_SIZE)
59513         (FALLOC_FL_PUNCH_HOLE) [__USE_GNU]: New macros.
59514
59515 2013-01-09  David S. Miller  <davem@davemloft.net>
59516
59517         [BZ #15003]
59518         * sysdeps/gnu/netinet/tcp.h (TCP_COOKIE_TRANSACTIONS)
59519         (TCP_THIN_LINEAR_TIMEOUTS, TCP_THIN_DUPACK, TCP_USER_TIMEOUT)
59520         (TCP_REPAIR, TCP_REPAIR_QUEUE, TCP_QUEUE_SEQ, TCP_REPAIR_OPTIONS)
59521         (TCP_FASTOPEN): Define.
59522         (tcp_repair_opt): New structure.
59523         (TCP_NO_QUEUE, TCP_RECV_QUEUE, TCP_SEND_QUEUE, TCP_QUEUES_NR): New
59524         enum values.
59525         (TCP_COOKIE_MIN, TCP_COOKIE_MAX, TCP_COOKIE_PAIR_SIZE)
59526         (TCP_COOKIE_IN_ALWAYS, TCP_COOKIE_OUT_NEVER, TCP_S_DATA_IN)
59527         (TCP_S_DATA_OUT, TCP_MSS_DEFAULT, TCP_MSS_DESIRED): Define.
59528         (tcp_cookie_transactions): New structure.
59529
59530 2013-01-09  Anton Blanchard  <anton@samba.org>
59531
59532         * sysdeps/unix/sysv/linux/powerpc/sched_getcpu.c: New file.
59533         * sysdeps/unix/sysv/linux/powerpc/Versions: Add __vdso_getcpu.
59534         * sysdeps/unix/sysv/linux/powerpc/bits/libc-vdso.h: Likewise.
59535         * sysdeps/unix/sysv/linux/powerpc/init-first.c: Likewise.
59536
59537 2013-01-09  Joseph Myers  <joseph@codesourcery.com>
59538
59539         * include/features.h (__USE_ANSI): Remove.
59540
59541 2013-01-09  Roland McGrath  <roland@hack.frob.com>
59542
59543         * posix/Makefile (others): Depend on $(objpfx)getconf.speclist.
59544
59545         * misc/error.c (error_tail: ALLOCA_LIMIT): Remove unused macro.
59546
59547 2013-01-09  Siddhesh Poyarekar  <siddhesh@redhat.com>
59548
59549         * sysdeps/s390/fpu/libm-test-ulps: Update.
59550
59551         * sysdeps/powerpc/fpu/libm-test-ulps: Update.
59552
59553         * sysdeps/ieee754/dbl-64/mpa.c (mcr): Reword comment.
59554         (__acr): Likewise.
59555         (__cpy): Likewise.
59556         (norm): Likewise.
59557         (denorm): Likewise.
59558         (__mp_dbl): Likewise.
59559         (__dbl_mp): Likewise.
59560         (add_magnitudes): Likewise.
59561         (sub_magnitudes): Likewise.
59562         (__add): Likewise.
59563         (__sub): Likewise.
59564         (__mul): Likewise.
59565         (__inv): Likewise.
59566         (__dvd): Likewise.
59567         * sysdeps/powerpc/powerpc32/power4/fpu/mpa.c (mcr): Likewise.
59568         (__acr): Likewise.
59569         (__cpy): Likewise.
59570         (norm): Likewise.
59571         (denorm): Likewise.
59572         (__mp_dbl): Likewise.
59573         (__dbl_mp): Likewise.
59574         (add_magnitudes): Likewise.
59575         (sub_magnitudes): Likewise.
59576         (__add): Likewise.
59577         (__sub): Likewise.
59578         (__mul): Likewise.
59579         (__inv): Likewise.
59580         (__dvd): Likewise.
59581         * sysdeps/powerpc/powerpc64/power4/fpu/mpa.c (mcr): Likewise.
59582         (__acr): Likewise.
59583         (__cpy): Likewise.
59584         (norm): Likewise.
59585         (denorm): Likewise.
59586         (__mp_dbl): Likewise.
59587         (__dbl_mp): Likewise.
59588         (add_magnitudes): Likewise.
59589         (sub_magnitudes): Likewise.
59590         (__add): Likewise.
59591         (__sub): Likewise.
59592         (__mul): Likewise.
59593         (__inv): Likewise.
59594         (__dvd): Likewise.
59595
59596 2013-01-08  Joseph Myers  <joseph@codesourcery.com>
59597
59598         * io/sys/stat.h [__GNUC__ && __GNUC__ >= 2 &&
59599         __USE_EXTERN_INLINES]: Change condition to [__USE_EXTERN_INLINES].
59600         * sysdeps/unix/sysv/linux/sys/sysmacros.h [__GNUC__ && __GNUC__ >=
59601         2 && __USE_EXTERN_INLINES]: Likewise.
59602
59603 2013-01-08  Andreas Jaeger  <aj@suse.de>
59604
59605         [BZ# 14985]
59606         * sysdeps/unix/sysv/linux/sparc/bits/epoll.h (EPOLL_NONBLOCK):
59607         Remove.
59608         * sysdeps/unix/sysv/linux/bits/epoll.h (EPOLL_NONBLOCK): Likewise.
59609         * sysdeps/unix/sysv/linux/x86/bits/epoll.h (EPOLL_NONBLOCK): Likewise.
59610
59611 2013-01-07  Anton Blanchard  <anton@samba.org>
59612
59613         * sysdeps/powerpc/fpu/feholdexcpt.c: Fixed spelling errors.
59614         * sysdeps/powerpc/fpu/feupdateenv.c: Likewise.
59615         * sysdeps/powerpc/fpu/math_ldbl.h: Likewise.
59616         * sysdeps/powerpc/powerpc32/bits/atomic.h: Likewise.
59617         * sysdeps/powerpc/powerpc32/cell/memcpy.S: Likewise.
59618         * sysdeps/powerpc/powerpc32/dl-machine.c: Likewise.
59619         * sysdeps/powerpc/powerpc32/dl-start.S: Likewise.
59620         * sysdeps/powerpc/powerpc32/memset.S: Likewise.
59621         * sysdeps/powerpc/powerpc32/power4/fpu/mpa.c: Likewise.
59622         * sysdeps/powerpc/powerpc32/power4/fpu/slowpow.c: Likewise.
59623         * sysdeps/powerpc/powerpc32/power4/fpu/w_sqrt.S: Likewise.
59624         * sysdeps/powerpc/powerpc32/power4/fpu/w_sqrtf.S: Likewise.
59625         * sysdeps/powerpc/powerpc32/power4/hp-timing.h: Likewise.
59626         * sysdeps/powerpc/powerpc32/power4/memcmp.S: Likewise.
59627         * sysdeps/powerpc/powerpc32/power4/strncmp.S: Likewise.
59628         * sysdeps/powerpc/powerpc32/power5/fpu/w_sqrt.S: Likewise.
59629         * sysdeps/powerpc/powerpc32/power5/fpu/w_sqrtf.S: Likewise.
59630         * sysdeps/powerpc/powerpc32/power6/memcpy.S: Likewise.
59631         * sysdeps/powerpc/powerpc32/power7/memchr.S: Likewise.
59632         * sysdeps/powerpc/powerpc32/power7/memcmp.S: Likewise.
59633         * sysdeps/powerpc/powerpc32/power7/memrchr.S: Likewise.
59634         * sysdeps/powerpc/powerpc32/power7/strcasecmp.S: Likewise.
59635         * sysdeps/powerpc/powerpc32/power7/strncmp.S: Likewise.
59636         * sysdeps/powerpc/powerpc32/strncmp.S: Likewise.
59637         * sysdeps/powerpc/powerpc64/bits/atomic.h: Likewise.
59638         * sysdeps/powerpc/powerpc64/cell/memcpy.S: Likewise.
59639         * sysdeps/powerpc/powerpc64/dl-machine.h: Likewise.
59640         * sysdeps/powerpc/powerpc64/fpu/s_ceill.S: Likewise.
59641         * sysdeps/powerpc/powerpc64/fpu/s_nearbyintl.S: Likewise.
59642         * sysdeps/powerpc/powerpc64/hp-timing.h: Likewise.
59643         * sysdeps/powerpc/powerpc64/memcpy.S: Likewise.
59644         * sysdeps/powerpc/powerpc64/power4/fpu/mpa.c: Likewise.
59645         * sysdeps/powerpc/powerpc64/power4/fpu/slowpow.c: Likewise.
59646         * sysdeps/powerpc/powerpc64/power4/memcmp.S: Likewise.
59647         * sysdeps/powerpc/powerpc64/power4/memcpy.S: Likewise.
59648         * sysdeps/powerpc/powerpc64/power4/strncmp.S: Likewise.
59649         * sysdeps/powerpc/powerpc64/power6/memcpy.S: Likewise.
59650         * sysdeps/powerpc/powerpc64/power7/memchr.S: Likewise.
59651         * sysdeps/powerpc/powerpc64/power7/memcmp.S: Likewise.
59652         * sysdeps/powerpc/powerpc64/power7/memrchr.S: Likewise.
59653         * sysdeps/powerpc/powerpc64/power7/strcasecmp.S: Likewise.
59654         * sysdeps/powerpc/powerpc64/power7/strncmp.S: Likewise.
59655         * sysdeps/powerpc/powerpc64/strncmp.S: Likewise.
59656
59657 2013-01-07  Joseph Myers  <joseph@codesourcery.com>
59658
59659         * malloc/malloc.h (__MALLOC_P): Remove all definitions.
59660         (__MALLOC_PMT): Likewise.
59661         [__GNUC__] (__MALLOC_HOOK_VOLATILE): Make not conditional on
59662         [__GNUC__], only on [_LIBC].
59663         [__GNUC__] (__MALLOC_DEPRECATED): Likewise.
59664         [!__GNUC__] (__MALLOC_HOOK_VOLATILE): Remove definition.
59665         [!__GNUC__] (__MALLOC_DEPRECATED): Likewise.
59666         * malloc/malloc.c (malloc_hook_ini): Do not use __MALLOC_P in
59667         forward declaration.
59668         (realloc_hook_ini): Likewise.
59669         (memalign_hook_ini): Likewise.
59670         (__libc_memalign): Do not use __MALLOC_PMT in variable
59671         declaration.
59672         (__libc_valloc): Likewise.
59673         (__libc_pvalloc): Likewise.
59674         (__libc_calloc): Likewise.
59675         (__posix_memalign): Likewise.
59676
59677         [BZ #14996]
59678         * math/s_casinh.c: Include <float.h>.
59679         (__casinh): Do not do computation with squaring and square root
59680         for large arguments.
59681         * math/s_casinhf.c: Include <float.h>.
59682         (__casinhf): Do not do computation with squaring and square root
59683         for large arguments.
59684         * math/s_casinhl.c: Include <float.h>.
59685         [LDBL_MANT_DIG == 106] (LDBL_EPSILON): Undefine and redefine.
59686         (__casinhl): Do not do computation with squaring and square root
59687         for large arguments.
59688         * math/libm-test.inc (casin_test): Add more tests.
59689         (casinh_test): Likewise.
59690         * sysdeps/i386/fpu/libm-test-ulps: Update.
59691         * sysdeps/x86_64/fpu/libm-test-ulps: Likewise.
59692
59693 2013-01-04  H.J. Lu  <hongjiu.lu@intel.com>
59694
59695         * sysdeps/i386/i686/cacheinfo.c (__x86_64_data_cache_size): Removed.
59696         (__x86_64_raw_data_cache_size): Likewise.
59697         (__x86_64_data_cache_size_half): Likewise.
59698         (__x86_64_raw_data_cache_size_half): Likewise.
59699         (__x86_64_shared_cache_size): Likewise.
59700         (__x86_64_raw_shared_cache_size): Likewise.
59701         (__x86_64_shared_cache_size_half): Likewise.
59702         (__x86_64_raw_shared_cache_size_half): Likewise.
59703         * sysdeps/x86_64/cacheinfo.c (__x86_64_data_cache_size): Renamed
59704         to ...
59705         (__x86_data_cache_size): This.
59706         (__x86_64_raw_data_cache_size): Renamed to ...
59707         (__x86_raw_data_cache_size): This.
59708         (__x86_64_data_cache_size_half): Renamed to ...
59709         (__x86_data_cache_size_half): This.
59710         (__x86_64_raw_data_cache_size_half): Renamed to ...
59711         (__x86_raw_data_cache_size_half): This.
59712         (__x86_64_shared_cache_size): Renamed to ...
59713         (__x86_shared_cache_size): This.
59714         (__x86_64_raw_shared_cache_size): Renamed to ...
59715         (__x86_raw_shared_cache_size): This.
59716         (__x86_64_shared_cache_size_half): Renamed to ...
59717         (__x86_shared_cache_size_half): This.
59718         (__x86_64_raw_shared_cache_size_half): Renamed to ...
59719         (__x86_raw_shared_cache_size_half): This.
59720         * sysdeps/x86_64/memcpy.S: Updated.
59721         * sysdeps/x86_64/memset.S: Likewise.
59722         * sysdeps/x86_64/multiarch/memcmp-sse4.S: Likewise.
59723         * sysdeps/x86_64/multiarch/memcpy-ssse3-back.S: Likewise.
59724         * sysdeps/x86_64/multiarch/memcpy-ssse3.S: Likewise.
59725
59726 2013-01-04  David S. Miller  <davem@davemloft.net>
59727
59728         * sysdeps/sparc/fpu/libm-test-ulps: Update.
59729
59730 2013-01-04  Andreas Schwab  <schwab@linux-m68k.org>
59731
59732         * sysdeps/powerpc/fpu/test-powerpc-snan.c (_GNU_SOURCE): Define as
59733         1 to avoid redefinition warning.
59734         (__USE_GNU): Don't define.
59735         (init_signaling_nan): Protoize.
59736
59737         * sysdeps/powerpc/fpu/libm-test-ulps: Update.
59738
59739 2013-01-04  Siddhesh Poyarekar  <siddhesh@redhat.com>
59740
59741         * sysdeps/ieee754/dbl-64/mpa.c: Remove commented code.
59742         * sysdeps/powerpc/powerpc32/power4/fpu/mpa.c (__cr): Remove.
59743         (__cpymn): Likewise.
59744         (norm): Remove commented code.
59745         (denorm): Likewise.
59746         (__mp_dbl): Likewise.
59747         (__inv): Likewise.
59748         * sysdeps/powerpc/powerpc64/power4/fpu/mpa.c (__cr): Remove.
59749         (__cpymn): Likewise.
59750         (norm): Remove commented code.
59751         (denorm): Likewise.
59752         (__mp_dbl): Likewise.
59753         (__inv): Likewise.
59754
59755         * sysdeps/powerpc/powerpc32/power4/fpu/mpa.c (mpone): Define
59756         mp_no value for 1.0 and 2.0.
59757         (norm): Use RADIXI instead of radixi.d.
59758         (denorm): Likewise.
59759         (__mul): Use 0.0 instead of zero.d.
59760         * sysdeps/powerpc/powerpc64/power4/fpu/mpa.c (mpone): Define
59761         mp_no value for 1.0 and 2.0.
59762         (norm): Use RADIXI instead of radixi.d.
59763         (denorm): Likewise.
59764         (__mul): Use 0.0 instead of zero.d.
59765
59766 2013-01-04  Joseph Myers  <joseph@codesourcery.com>
59767
59768         [BZ #14994]
59769         * math/s_casinh.c (__casinh): Reduce finite argument to first
59770         quadrant then set signs of results at the end.
59771         * math/s_casinhf.c (__casinhf): Likewise.
59772         * math/s_casinhl.c (__casinhl): Likewise.
59773         * math/libm-test.inc (casin_test): Add more tests.
59774         (casinh_test): Likewise.
59775         * sysdeps/i386/fpu/libm-test-ulps: Update.
59776         * sysdeps/x86_64/fpu/libm-test-ulps: Likewise.
59777
59778 2013-01-04  Siddhesh Poyarekar  <siddhesh@redhat.com>
59779
59780         * sysdeps/ieee754/dbl-64/mpa.h: Fix code formatting.
59781
59782         * sysdeps/ieee754/dbl-64/mpa.h: Clean up comment for MP_NO.
59783
59784         * sysdeps/ieee754/dbl-64/mpa.c(norm): Remove commented
59785         declarations.
59786         (denorm): Likewise.
59787         (__mp_dbl): Likewise.
59788         (__inv): Likewise.
59789
59790         * sysdeps/ieee754/dbl-64/mpa.h: Remove commented declarations
59791         and adjust the header comment.
59792
59793         * sysdeps/ieee754/dbl-64/mpa.h (__mpexp): Remove unnecessary
59794         variable name from declaration.
59795
59796 2013-01-03  H.J. Lu  <hongjiu.lu@intel.com>
59797
59798         * sysdeps/x86_64/multiarch/init-arch.c (__init_cpu_features):
59799         Initialize COMMON_CPUID_INDEX_7 element.
59800         * sysdeps/x86_64/multiarch/init-arch.h (bit_RTM): New macro.
59801         (CPUID_RTM): Likewise.
59802         (HAS_RTM): Likewise.
59803         (COMMON_CPUID_INDEX_7): New enum.
59804
59805 2013-01-03  Andreas Schwab  <schwab@linux-m68k.org>
59806
59807         [BZ #14981]
59808         * malloc/mtrace.c (tr_reallochook): If realloc returns NULL when
59809         size is zero, record memory as freed.
59810
59811 2013-01-03  Andreas Jaeger  <aj@suse.de>
59812
59813         * po/ia.po: Add new Interlingua translation.
59814
59815 2012-01-03  Allan McRae  <allan@archlinux.org>
59816
59817         * locale/programs/localedef.c: Fix description of '--posix' flag.
59818
59819 2013-01-02  Joseph Myers  <joseph@codesourcery.com>
59820
59821         * NEWS: Update dates in second copyright notice.
59822         * README: Update copyright dates in example.
59823         * manual/libc.texinfo: Update copyright dates.
59824         * scripts/test-installation.pl: Update copyright date in --version
59825         output.
59826
59827         * hurd/ctty-input.c: Fix copyright notice formatting.
59828         * hurd/ctty-output.c: Likewise.
59829         * hurd/dtable.c: Likewise.
59830         * hurd/hurd-raise.c: Likewise.
59831         * hurd/hurdprio.c: Likewise.
59832         * hurd/msgportdemux.c: Likewise.
59833         * misc/sys/file.h: Likewise.
59834         * misc/sys/ioctl.h: Likewise.
59835         * sysdeps/gnu/netinet/ip_icmp.h: Likewise.
59836         * sysdeps/mach/hurd/chdir.c: Likewise.
59837         * sysdeps/mach/hurd/fchdir.c: Likewise.
59838         * sysdeps/mach/hurd/rename.c: Likewise.
59839         * sysdeps/mach/hurd/rmdir.c: Likewise.
59840         * sysdeps/mach/hurd/seekdir.c: Likewise.
59841         * sysdeps/mach/hurd/setsid.c: Likewise.
59842         * sysdeps/posix/wait3.c: Likewise.
59843
59844         * All files with FSF copyright notices: Update copyright dates
59845         using scripts/update-copyrights.
59846         * intl/plural.c: Regenerated.
59847         * locale/programs/charmap-kw.h: Likewise.
59848         * locale/programs/locfile-kw.h: Likewise.
59849
59850 2013-01-02  Siddhesh Poyarekar  <siddhesh@redhat.com>
59851
59852         * sysdeps/ieee754/dbl-64/mpexp.h (__mpexp_twomm1): Fix first
59853         four values.
59854
59855         * sysdeps/ieee754/dbl-64/mpa.c (__mul): Split mantissa
59856         calculation loop and add branch prediction.
59857
59858         * sysdeps/ieee754/dbl-64/mpexp.c (__mpexp): Add assert to
59859         check access beyond bounds of m1np.
59860
59861         * sysdeps/ieee754/dbl-64/mpa.c [! NO__CONST]: New constant
59862         MPTWO.
59863         (__inv): Remove local variable MPTWO to use the global
59864         constant.
59865         * sysdeps/ieee754/dbl-64/mpa.h: Declare MPTWO.
59866         * sysdeps/ieee754/dbl-64/mpatan.c (__mpatan): Remove local
59867         variable MPTWO.
59868         * sysdeps/ieee754/dbl-64/mpsqrt.c (__mpsqrt): Make MPHALF and
59869         MP3HALFS static const.
59870
59871 2013-01-01  David S. Miller  <davem@davemloft.net>
59872
59873         * po/ca.po: Update from translation team.
59874
59875 2013-01-01  Joseph Myers  <joseph@codesourcery.com>
59876
59877         * scripts/update-copyrights: New file.
59878         * Makeconfig: Reformat copyright notice.
59879         * ctype/ctype.h: Likewise.
59880         * debug/swprintf_chk.c: Likewise.
59881         * elf/dl-cache.c: Likewise.
59882         * elf/dl-debug.c: Likewise.
59883         * elf/dl-object.c: Likewise.
59884         * grp/initgroups.c: Likewise.
59885         * hurd/Makefile: Likewise.
59886         * hurd/hurd/signal.h: Likewise.
59887         * hurd/hurdfault.c: Likewise.
59888         * hurd/hurdioctl.c: Likewise.
59889         * hurd/hurdlookup.c: Likewise.
59890         * hurd/intr-msg.c: Likewise.
59891         * iconv/gconv_open.c: Likewise.
59892         * libio/swprintf.c: Likewise.
59893         * locale/lc-ctype.c: Likewise.
59894         * locale/nl_langinfo.c: Likewise.
59895         * mach/Machrules: Likewise.
59896         * mach/Makefile: Likewise.
59897         * malloc/obstack.h: Likewise.
59898         * manual/Makefile: Likewise.
59899         * manual/tsort.awk: Likewise.
59900         * misc/bits/stab.def: Likewise.
59901         * nis/nis_print_group_entry.c: Likewise.
59902         * nis/nis_table.c: Likewise.
59903         * nis/nss_compat/compat-pwd.c: Likewise.
59904         * nis/nss_compat/compat-spwd.c: Likewise.
59905         * po/Makefile: Likewise.
59906         * posix/fnmatch.c: Likewise.
59907         * posix/regex.h: Likewise.
59908         * resolv/Makefile: Likewise.
59909         * resolv/nss_dns/dns-network.c: Likewise.
59910         * resolv/res_hconf.c: Likewise.
59911         * scripts/gen-sorted.awk: Likewise.
59912         * soft-fp/soft-fp.h: Likewise.
59913         * stdio-common/printf.h: Likewise.
59914         * stdlib/monetary.h: Likewise.
59915         * stdlib/random.c: Likewise.
59916         * stdlib/random_r.c: Likewise.
59917         * sysdeps/generic/Makefile: Likewise.
59918         * sysdeps/gnu/Makefile: Likewise.
59919         * sysdeps/ieee754/dbl-64/doasin.c: Likewise.
59920         * sysdeps/ieee754/dbl-64/dosincos.c: Likewise.
59921         * sysdeps/ieee754/dbl-64/e_asin.c: Likewise.
59922         * sysdeps/ieee754/dbl-64/e_atan2.c: Likewise.
59923         * sysdeps/ieee754/dbl-64/e_exp.c: Likewise.
59924         * sysdeps/ieee754/dbl-64/e_log.c: Likewise.
59925         * sysdeps/ieee754/dbl-64/e_pow.c: Likewise.
59926         * sysdeps/ieee754/dbl-64/e_remainder.c: Likewise.
59927         * sysdeps/ieee754/dbl-64/e_sqrt.c: Likewise.
59928         * sysdeps/ieee754/dbl-64/halfulp.c: Likewise.
59929         * sysdeps/ieee754/dbl-64/mpa.c: Likewise.
59930         * sysdeps/ieee754/dbl-64/mpatan.c: Likewise.
59931         * sysdeps/ieee754/dbl-64/mpatan2.c: Likewise.
59932         * sysdeps/ieee754/dbl-64/mpexp.c: Likewise.
59933         * sysdeps/ieee754/dbl-64/mplog.c: Likewise.
59934         * sysdeps/ieee754/dbl-64/mpsqrt.c: Likewise.
59935         * sysdeps/ieee754/dbl-64/mptan.c: Likewise.
59936         * sysdeps/ieee754/dbl-64/s_atan.c: Likewise.
59937         * sysdeps/ieee754/dbl-64/s_sin.c: Likewise.
59938         * sysdeps/ieee754/dbl-64/s_tan.c: Likewise.
59939         * sysdeps/ieee754/dbl-64/sincos32.c: Likewise.
59940         * sysdeps/ieee754/dbl-64/slowexp.c: Likewise.
59941         * sysdeps/ieee754/dbl-64/slowpow.c: Likewise.
59942         * sysdeps/ieee754/ldbl-128/ldbl2mpn.c: Likewise.
59943         * sysdeps/ieee754/ldbl-128/mpn2ldbl.c: Likewise.
59944         * sysdeps/ieee754/ldbl-128ibm/e_sqrtl.c: Likewise.
59945         * sysdeps/ieee754/ldbl-128ibm/mpn2ldbl.c: Likewise.
59946         * sysdeps/ieee754/ldbl-128ibm/printf_fphex.c: Likewise.
59947         * sysdeps/mach/hurd/errnos.awk: Likewise.
59948         * sysdeps/mach/hurd/fork.c: Likewise.
59949         * sysdeps/mach/hurd/getcwd.c: Likewise.
59950         * sysdeps/mach/hurd/i386/trampoline.c: Likewise.
59951         * sysdeps/mach/hurd/mmap.c: Likewise.
59952         * sysdeps/mach/hurd/utimes.c: Likewise.
59953         * sysdeps/mach/hurd/xmknod.c: Likewise.
59954         * sysdeps/posix/profil.c: Likewise.
59955         * sysdeps/posix/readdir_r.c: Likewise.
59956         * sysdeps/powerpc/bits/mathdef.h: Likewise.
59957         * sysdeps/powerpc/bits/setjmp.h: Likewise.
59958         * sysdeps/powerpc/powerpc32/__longjmp-common.S: Likewise.
59959         * sysdeps/powerpc/powerpc32/memset.S: Likewise.
59960         * sysdeps/powerpc/powerpc32/power4/fpu/mpa.c: Likewise.
59961         * sysdeps/powerpc/powerpc32/power4/fpu/slowexp.c: Likewise.
59962         * sysdeps/powerpc/powerpc32/power4/fpu/slowpow.c: Likewise.
59963         * sysdeps/powerpc/powerpc32/sysdep.h: Likewise.
59964         * sysdeps/powerpc/powerpc64/power4/fpu/mpa.c: Likewise.
59965         * sysdeps/powerpc/powerpc64/power4/fpu/slowexp.c: Likewise.
59966         * sysdeps/powerpc/powerpc64/power4/fpu/slowpow.c: Likewise.
59967         * sysdeps/pthread/lio_listio.c: Likewise.
59968         * sysdeps/sparc/dl-procinfo.h: Likewise.
59969         * sysdeps/unix/i386/sysdep.S: Likewise.
59970         * sysdeps/unix/sysv/linux/aio_sigqueue.c: Likewise.
59971         * sysdeps/unix/sysv/linux/fstatvfs64.c: Likewise.
59972         * sysdeps/unix/sysv/linux/getdents.c: Likewise.
59973         * sysdeps/unix/sysv/linux/msgctl.c: Likewise.
59974         * sysdeps/unix/sysv/linux/powerpc/powerpc64/sysdep.h: Likewise.
59975         * sysdeps/unix/sysv/linux/semctl.c: Likewise.
59976         * sysdeps/unix/sysv/linux/shmctl.c: Likewise.
59977         * sysdeps/unix/sysv/linux/speed.c: Likewise.
59978         * sysdeps/unix/sysv/linux/xstatconv.h: Likewise.
59979         * sysdeps/wordsize-32/divdi3.c: Likewise.
59980         * time/sys/time.h: Likewise.
59981         * wcsmbs/Makefile: Likewise.
59982
59983 2013-01-01  David S. Miller  <davem@davemloft.net>
59984
59985         * po/fr.po: Update from translation team.
59986
59987         * catgets/gencat.c: Update copyright year.
59988         * csu/version.c: Likewise.
59989         * debug/catchsegv.sh: Likewise.
59990         * debug/pcprofiledump.c: Likewise.
59991         * debug/xtrace.sh: Likewise.
59992         * elf/ldconfig.c: Likewise.
59993         * elf/ldd.bash.in: Likewise.
59994         * elf/pldd.c: Likewise.
59995         * elf/sotruss.ksh: Likewise.
59996         * elf/sprof.c: Likewise.
59997         * iconv/iconv_prog.c: Likewise.
59998         * iconv/iconvconfig.c: Likewise.
59999         * locale/programs/locale.c: Likewise.
60000         * locale/programs/localedef.c: Likewise.
60001         * login/programs/pt_chown.c: Likewise.
60002         * malloc/memusage.sh: Likewise.
60003         * malloc/memusagestat.c: Likewise.
60004         * malloc/mtrace.pl: Likewise.
60005         * nscd/nscd.c: Likewise.
60006         * nss/getent.c: Likewise.
60007         * nss/makedb.c: Likewise.
60008         * posix/getconf.c: Likewise.
60009
60010 2012-12-31  Siddhesh Poyarekar  <siddhesh@redhat.com>
60011
60012         * sysdeps/ieee754/dbl-64/mpa.c (__mp_dbl): Favour normal
60013         numbers.
60014
60015 2012-12-30  Mike Frysinger  <vapier@gentoo.org>
60016
60017         * math/bits/mathcalls.h (modf): Use __nonnull.
60018
60019 2012-12-29  Siddhesh Poyarekar  <siddhesh@redhat.com>
60020
60021         * sysdeps/ieee754/dbl-64/branred.h: Include dla.h.
60022         (split): Use macro CN instead of the bare value.
60023         * sysdeps/ieee754/dbl-64/dla.h: Add comment to explain why CN
60024         could be used.
60025         * sysdeps/ieee754/dbl-64/e_pow.c (__ieee754_pow): Use CN
60026         instead of the bare value.
60027         (power1): Likewise.
60028
60029 2012-12-28  Siddhesh Poyarekar  <siddhesh@redhat.com>
60030
60031         * sysdeps/ieee754/dbl-64/mpatan.c (__mpatan): Remove
60032         __ATAN_TWOM.
60033         * sysdeps/ieee754/dbl-64/mpatan.h: Likewise.
60034
60035         * sysdeps/ieee754/dbl-64/atnat.h: Replaced constants with
60036         their values.
60037         * sysdeps/ieee754/dbl-64/atnat2.h: Likewise.
60038         * sysdeps/ieee754/dbl-64/s_tan.c (tan): Likewise.
60039         * sysdeps/ieee754/dbl-64/ulog.h: Likewise.
60040         * sysdeps/ieee754/dbl-64/utan.h: Likewise.
60041
60042 2012-12-28  Andreas Jaeger  <aj@suse.de>
60043
60044         * elf/elf.h (NT_S390_TDB, NT_FILE, NT_SIGINFO): Define.  New
60045         values are from Linux 3.7.
60046
60047         * sysdeps/gnu/netinet/tcp.h (TCPI_OPT_SYN_DATA)
60048         (TCPI_OPT_ECN_SEEN): Define.  Sync with Linux 3.7.
60049
60050 2012-12-28  Siddhesh Poyarekar  <siddhesh@redhat.com>
60051
60052         * misc/sys/cdefs.h (__glibc_likely): Wrap __builtin_expect for
60053         TRUE case.
60054
60055         * sysdeps/ieee754/dbl-64/mpa.c (norm): Define R as RADIXI.
60056         (norm): Likewise.
60057         * sysdeps/ieee754/dbl-64/mpa2.h: Remove all static const
60058         variables with preprocessor constants.
60059         * sysdeps/ieee754/dbl-64/mpatan.h: Likewise.
60060         * sysdeps/ieee754/dbl-64/mpexp.h: Likewise.
60061         * sysdeps/ieee754/dbl-64/mpsqrt.h: Likewise.
60062
60063 2012-12-27  Bruno Haible  <bruno@clisp.org>
60064
60065         [BZ #14317]
60066         * string/xpg-strerror.c (__xpg_strerror_r): Optimize, call strlen
60067         only if needed.
60068
60069 2012-12-27  Siddhesh Poyarekar  <siddhesh@redhat.com>
60070
60071         * sysdeps/ieee754/dbl-64/mpexp.c (__mpexp): Eliminate __mpexp_nn
60072         and use variable directly.
60073         * sysdeps/ieee754/dbl-64/mpexp.h (__mpexp_nn): Remove.
60074
60075         * sysdeps/ieee754/dbl-64/mpa.c [! NO__CONST]: New constant
60076         MPONE.
60077         * sysdeps/ieee754/dbl-64/mpa.h: Declare MPONE.
60078         * sysdeps/ieee754/dbl-64/mpatan.c (__mpatan): Remove local
60079         variable MPONE.
60080         * sysdeps/ieee754/dbl-64/mpatan2.c (__mpatan2): Likewise.
60081         * sysdeps/ieee754/dbl-64/mpexp.c (__mpexp): Likewise.
60082         * sysdeps/ieee754/dbl-64/mplog.c (__mplog): Remove mplog.h
60083         include directive.  Remove local variable MPONE.
60084         * sysdeps/ieee754/dbl-64/mplog.h: Remove.
60085         * sysdeps/x86_64/fpu/multiarch/mpa-avx.c: Define NO__CONST.
60086         * sysdeps/x86_64/fpu/multiarch/mpa-fma4.c: Likewise.
60087
60088 2012-12-25  David S. Miller  <davem@davemloft.net>
60089
60090         * version.h (RELEASE): Set to "development".
60091         (VERSION): Set to "2.17.90".
60092         * NEWS: Add 2.18 section.
60093
60094 2012-12-21  David S. Miller  <davem@davemloft.net>
60095
60096         * po/hr.po: Update from translation team.
60097
60098 2012-12-21  Andreas Krebbel  <Andreas.Krebbel@de.ibm.com>
60099
60100         * sysdeps/s390/fpu/libm-test-ulps: Refreshed.
60101
60102 2012-12-19  Steve Ellcey  <sellcey@mips.com>
60103
60104         * NEWS:  Mention new memcpy for MIPS.
60105
60106 2012-12-18  Marcus Shawcroft  <marcus.shawcroft@linaro.org>
60107
60108         * manual/contrib.texi (Contributors): Spelling correction.
60109
60110 2012-12-15  David S. Miller  <davem@davemloft.net>
60111
60112         * po/ru.po: Update from translation team.
60113
60114 2012-12-13  David S. Miller  <davem@davemloft.net>
60115
60116         * NEWS: Mention IFUNC testsuite enhancements.
60117
60118         * po/pl.po: Update from translation team.
60119         * po/bg.po: Likewise.
60120
60121         * manual/contrib.texi (Contributors): Update entries for Hongjiu
60122         Lu and Joseph S. Myers.  Add entry for Marcus Shawcroft.
60123
60124 2012-12-11  David S. Miller  <davem@davemloft.net>
60125
60126         * po/sv.po: Update from translation team.
60127
60128         * po/vi.po: Update from translation team.
60129
60130         * po/cs.po: Update from translation team.
60131
60132         * po/de.po: Update from translation team.
60133         * po/eo.po: Likewise.
60134         * po/nl.po: Likewise.
60135
60136 2012-12-11  Siddhesh Poyarekar  <siddhesh@redhat.com>
60137
60138         [BZ #14246]
60139         * manual/argp.texi (Argp Helper Functions): Move node to follow
60140         Argp Parsing State.
60141
60142         [BZ #14872]
60143         * manual/conf.texi (Limits on File System Capacity): Mention if
60144         terminating null is included in the max size.
60145
60146 2012-12-10  Andreas Jaeger  <aj@suse.de>
60147
60148         * po/cs.po: Update from translation team.
60149
60150 2012-12-08  Siddhesh Poyarekar  <siddhesh@redhat.com>
60151
60152         * sysdeps/s390/jmpbuf-unwind.h (_jmpbuf_sp): Declare SP as
60153         void pointer and cast to uintptr_t.
60154         * sysdeps/s390/s390-64/memcmp.S: Pick sysdep.h from include
60155         path.
60156         * sysdeps/s390/s390-64/memcpy.S: Likewise.
60157         * sysdeps/s390/s390-64/memset.S: Likewise.
60158
60159 2012-12-08  Benno Schulenberg  <bensberg@justemail.net>
60160
60161         [BZ #14833]
60162         * menual/message.texi (Message Translation): Fix typos.
60163         (Helper programs for gettext): Likewise.
60164
60165 2012-12-07  Andreas Schwab  <schwab@linux-m68k.org>
60166
60167         [BZ #14898]
60168         * include/link.h (FORCED_DYNAMIC_TLS_OFFSET) [NO_TLS_OFFSET == 0]:
60169         Change to -1.
60170
60171 2012-12-07  David S. Miller  <davem@davemloft.net>
60172
60173         * po/libc.pot: Update.
60174
60175 2012-12-07  Richard Henderson  <rth@redhat.com>
60176
60177         [BZ #10114]
60178         * soft-fp/op-common.h (_FP_MUL): Pull computation of R_e from the
60179         normal/normal case to before the switch.
60180         (_FP_DIV): Likewise.
60181
60182 2012-12-06  Carlos O'Donell  <carlos@systemhalted.org>
60183             Mike Frysinger  <vapier@gentoo.org>
60184
60185         * sysdeps/unix/sysv/linux/posix_fadvise.c (posix_fadvise): Also
60186         check for __NR_fadvise64_64.
60187
60188 2012-12-06  Chris Metcalf  <cmetcalf@tilera.com>
60189
60190         * sysdeps/generic/fpu_control.h (_FPU_GETCW): Define to set cw to
60191         0, not just to plain "0" as a statement.
60192         (_FPU_SETCW): Define to (void) (cw), rather than doing nothing
60193         with cw.
60194
60195 2012-12-06  Joseph Myers  <joseph@codesourcery.com>
60196
60197         * NEWS: Use sourceware.org in Bugzilla URL.
60198
60199 2012-12-06  Siddhesh Poyarekar  <siddhesh@redhat.com>
60200
60201         * sysdeps/unix/sysv/linux/powerpc/powerpc64/sysdep.h
60202         (INTERNAL_SYSCALL_DECL): Use __attribute__ ((unused)).
60203
60204         * stdio-common/tst-put-error.c (do_test): Add newline to the
60205         padded test to ensure flush.
60206
60207 2012-12-05  Jeff Law  <law@redhat.com>
60208
60209         * sunrpc/etc.rpc (fedfs_admin): Add entry.
60210
60211 2012-12-05  Joseph Myers  <joseph@codesourcery.com>
60212
60213         * README: Don't refer to ports add-on as distributed separately.
60214         Mention AArch64 in list of systems supported in the ports add-on.
60215
60216         * LICENSES: Add more non-FSF copyright and license notices.
60217
60218         * soft-fp/op-common.h (_FP_DECL): Declare X##_s with __attribute__
60219         ((unused)).
60220
60221         * sysdeps/ieee754/ldbl-128ibm/x2y2m1l.c: Include <stdlib.h>.
60222
60223         * stdio-common/tst-put-error.c (do_test): Use 10000000 instead of
60224         10000 as width of padded output.
60225
60226 2012-12-04  Joseph Myers  <joseph@codesourcery.com>
60227
60228         * sysdeps/powerpc/sysdep.h (_SYS_AUXV_H): Define to 1 not empty.
60229
60230         * sysdeps/ieee754/ldbl-128ibm/e_atanhl.c (__ieee754_atanhl): Mark
60231         variable LX with __attribute__ ((unused)).
60232         * sysdeps/ieee754/ldbl-128ibm/e_rem_pio2l.c (__ieee754_rem_pio2l):
60233         Likewise.
60234         * sysdeps/ieee754/ldbl-128ibm/s_isnanl.c (___isnanl): Likewise.
60235         * sysdeps/ieee754/ldbl-128ibm/s_logbl.c (__logbl): Likewise.
60236         * sysdeps/ieee754/ldbl-128ibm/s_nextafterl.c: Mark variable LY
60237         with __attribute__ ((unused)).
60238
60239 2012-12-04  David S. Miller  <davem@abraco.davemloft.net>
60240
60241         * sysdeps/generic/memcopy.h: Add multiple inclusion protection.
60242
60243 2012-12-04  Joseph Myers  <joseph@codesourcery.com>
60244
60245         * sysdeps/ieee754/ldbl-opt/Makefile [$(subdir) = math]
60246         (CFLAGS-nldbl-acos.c): New variable.
60247         [$(subdir) = math] (CFLAGS-nldbl-acosh.c): Likewise.
60248         [$(subdir) = math] (CFLAGS-nldbl-asin.c): Likewise.
60249         [$(subdir) = math] (CFLAGS-nldbl-asinh.c): Likewise.
60250         [$(subdir) = math] (CFLAGS-nldbl-atan.c): Likewise.
60251         [$(subdir) = math] (CFLAGS-nldbl-atan2.c): Likewise.
60252         [$(subdir) = math] (CFLAGS-nldbl-atanh.c): Likewise.
60253         [$(subdir) = math] (CFLAGS-nldbl-cabs.c): Likewise.
60254         [$(subdir) = math] (CFLAGS-nldbl-cacos.c): Likewise.
60255         [$(subdir) = math] (CFLAGS-nldbl-cacosh.c): Likewise.
60256         [$(subdir) = math] (CFLAGS-nldbl-carg.c): Likewise.
60257         [$(subdir) = math] (CFLAGS-nldbl-casin.c): Likewise.
60258         [$(subdir) = math] (CFLAGS-nldbl-casinh.c): Likewise.
60259         [$(subdir) = math] (CFLAGS-nldbl-catan.c): Likewise.
60260         [$(subdir) = math] (CFLAGS-nldbl-catanh.c): Likewise.
60261         [$(subdir) = math] (CFLAGS-nldbl-cbrt.c): Likewise.
60262         [$(subdir) = math] (CFLAGS-nldbl-ccos.c): Likewise.
60263         [$(subdir) = math] (CFLAGS-nldbl-ccosh.c): Likewise.
60264         [$(subdir) = math] (CFLAGS-nldbl-ceil.c): Likewise.
60265         [$(subdir) = math] (CFLAGS-nldbl-cexp.c): Likewise.
60266         [$(subdir) = math] (CFLAGS-nldbl-cimag.c): Likewise.
60267         [$(subdir) = math] (CFLAGS-nldbl-clog.c): Likewise.
60268         [$(subdir) = math] (CFLAGS-nldbl-clog10.c): Likewise.
60269         [$(subdir) = math] (CFLAGS-nldbl-conj.c): Likewise.
60270         [$(subdir) = math] (CFLAGS-nldbl-copysign.c): Likewise.
60271         [$(subdir) = math] (CFLAGS-nldbl-cos.c): Likewise.
60272         [$(subdir) = math] (CFLAGS-nldbl-cosh.c): Likewise.
60273         [$(subdir) = math] (CFLAGS-nldbl-cpow.c): Likewise.
60274         [$(subdir) = math] (CFLAGS-nldbl-cproj.c): Likewise.
60275         [$(subdir) = math] (CFLAGS-nldbl-creal.c): Likewise.
60276         [$(subdir) = math] (CFLAGS-nldbl-csin.c): Likewise.
60277         [$(subdir) = math] (CFLAGS-nldbl-csinh.c): Likewise.
60278         [$(subdir) = math] (CFLAGS-nldbl-csqrt.c): Likewise.
60279         [$(subdir) = math] (CFLAGS-nldbl-ctan.c): Likewise.
60280         [$(subdir) = math] (CFLAGS-nldbl-ctanh.c): Likewise.
60281         [$(subdir) = math] (CFLAGS-nldbl-drem.c): Likewise.
60282         [$(subdir) = math] (CFLAGS-nldbl-erf.c): Likewise.
60283         [$(subdir) = math] (CFLAGS-nldbl-erfc.c): Likewise.
60284         [$(subdir) = math] (CFLAGS-nldbl-exp.c): Likewise.
60285         [$(subdir) = math] (CFLAGS-nldbl-exp10.c): Likewise.
60286         [$(subdir) = math] (CFLAGS-nldbl-exp2.c): Likewise.
60287         [$(subdir) = math] (CFLAGS-nldbl-expm1.c): Likewise.
60288         [$(subdir) = math] (CFLAGS-nldbl-fabs.c): Likewise.
60289         [$(subdir) = math] (CFLAGS-nldbl-fdim.c): Likewise.
60290         [$(subdir) = math] (CFLAGS-nldbl-finite.c): Likewise.
60291         [$(subdir) = math] (CFLAGS-nldbl-floor.c): Likewise.
60292         [$(subdir) = math] (CFLAGS-nldbl-fma.c): Likewise.
60293         [$(subdir) = math] (CFLAGS-nldbl-fmax.c): Likewise.
60294         [$(subdir) = math] (CFLAGS-nldbl-fmin.c): Likewise.
60295         [$(subdir) = math] (CFLAGS-nldbl-fmod.c): Likewise.
60296         [$(subdir) = math] (CFLAGS-nldbl-frexp.c): Likewise.
60297         [$(subdir) = math] (CFLAGS-nldbl-gamma.c): Likewise.
60298         [$(subdir) = math] (CFLAGS-nldbl-hypot.c): Likewise.
60299         [$(subdir) = math] (CFLAGS-nldbl-ilogb.c): Likewise.
60300         [$(subdir) = math] (CFLAGS-nldbl-isinf.c): Likewise.
60301         [$(subdir) = math] (CFLAGS-nldbl-isnan.c): Likewise.
60302         [$(subdir) = math] (CFLAGS-nldbl-j0.c): Likewise.
60303         [$(subdir) = math] (CFLAGS-nldbl-j1.c): Likewise.
60304         [$(subdir) = math] (CFLAGS-nldbl-jn.c): Likewise.
60305         [$(subdir) = math] (CFLAGS-nldbl-ldexp.c): Likewise.
60306         [$(subdir) = math] (CFLAGS-nldbl-lgamma.c): Likewise.
60307         [$(subdir) = math] (CFLAGS-nldbl-lgamma_r.c): Likewise.
60308         [$(subdir) = math] (CFLAGS-nldbl-llrint.c): Likewise.
60309         [$(subdir) = math] (CFLAGS-nldbl-llround.c): Likewise.
60310         [$(subdir) = math] (CFLAGS-nldbl-log.c): Likewise.
60311         [$(subdir) = math] (CFLAGS-nldbl-log10.c): Likewise.
60312         [$(subdir) = math] (CFLAGS-nldbl-log1p.c): Likewise.
60313         [$(subdir) = math] (CFLAGS-nldbl-log2.c): Likewise.
60314         [$(subdir) = math] (CFLAGS-nldbl-logb.c): Likewise.
60315         [$(subdir) = math] (CFLAGS-nldbl-lrint.c): Likewise.
60316         [$(subdir) = math] (CFLAGS-nldbl-lround.c): Likewise.
60317         [$(subdir) = math] (CFLAGS-nldbl-modf.c): Likewise.
60318         [$(subdir) = math] (CFLAGS-nldbl-nan.c): Likewise.
60319         [$(subdir) = math] (CFLAGS-nldbl-nearbyint.c): Likewise.
60320         [$(subdir) = math] (CFLAGS-nldbl-nextafter.c): Likewise.
60321         [$(subdir) = math] (CFLAGS-nldbl-nexttoward.c): Likewise.
60322         [$(subdir) = math] (CFLAGS-nldbl-nexttowardf.c): Likewise.
60323         [$(subdir) = math] (CFLAGS-nldbl-pow.c): Likewise.
60324         [$(subdir) = math] (CFLAGS-nldbl-pow10.c): Likewise.
60325         [$(subdir) = math] (CFLAGS-nldbl-remainder.c): Likewise.
60326         [$(subdir) = math] (CFLAGS-nldbl-remquo.c): Likewise.
60327         [$(subdir) = math] (CFLAGS-nldbl-rint.c): Likewise.
60328         [$(subdir) = math] (CFLAGS-nldbl-round.c): Likewise.
60329         [$(subdir) = math] (CFLAGS-nldbl-scalb.c): Likewise.
60330         [$(subdir) = math] (CFLAGS-nldbl-scalbln.c): Likewise.
60331         [$(subdir) = math] (CFLAGS-nldbl-scalbn.c): Likewise.
60332         [$(subdir) = math] (CFLAGS-nldbl-significand.c): Likewise.
60333         [$(subdir) = math] (CFLAGS-nldbl-sin.c): Likewise.
60334         [$(subdir) = math] (CFLAGS-nldbl-sincos.c): Likewise.
60335         [$(subdir) = math] (CFLAGS-nldbl-sinh.c): Likewise.
60336         [$(subdir) = math] (CFLAGS-nldbl-sqrt.c): Likewise.
60337         [$(subdir) = math] (CFLAGS-nldbl-tan.c): Likewise.
60338         [$(subdir) = math] (CFLAGS-nldbl-tanh.c): Likewise.
60339         [$(subdir) = math] (CFLAGS-nldbl-tgamma.c): Likewise.
60340         [$(subdir) = math] (CFLAGS-nldbl-trunc.c): Likewise.
60341         [$(subdir) = math] (CFLAGS-nldbl-y0.c): Likewise.
60342         [$(subdir) = math] (CFLAGS-nldbl-y1.c): Likewise.
60343         [$(subdir) = math] (CFLAGS-nldbl-yn.c): Likewise.
60344
60345         * sysdeps/unix/sysv/linux/powerpc/powerpc32/sysdep.h
60346         (INTERNAL_SYSCALL_DECL): Use __attribute__ ((unused)).
60347
60348         [BZ #14914]
60349         * sysdeps/ieee754/ldbl-128ibm/e_powl.c (__ieee754_powl): Clear
60350         whole low double instead of just low 47 bits when splitting values
60351         into two parts.
60352
60353 2012-12-03  Allan McRae  <allan@archlinux.org>
60354
60355         * manual/stdio.texi (Predefined Printf Handlers): Remove
60356         @hsep and @vsep usage.
60357
60358 2012-12-03  Mike Frysinger  <vapier@gentoo.org>
60359
60360         * bits/byteswap.h [__GNUC__]: Change __GNUC_PREREQ from 4.2 to 4.3.
60361         * sysdeps/x86/bits/byteswap.h [__GNUC__]: Likewise.
60362
60363 2012-12-03  Jeff Law  <law@redhat.com>
60364
60365         * time/sys/time.h (settimeofday): Do not mark TV argument
60366         as __nonnull.
60367
60368 2012-12-01  Mike Frysinger  <vapier@gentoo.org>
60369
60370         * libio/fileops.c (_IO_new_file_close_it): Do not always flush
60371         when currently writing and seek to current position when not.
60372         * libio/Makefile (tests): Remove bug-fclose1.
60373         * libio/bug-fclose1.c: Delete.
60374
60375 2012-12-01  Joseph Myers  <joseph@codesourcery.com>
60376
60377         * manual/arith.texi (feenableexcept): Fix typo.
60378         (fedisableexcept): Likewise.
60379
60380 2012-11-30  Roland McGrath  <roland@hack.frob.com>
60381
60382         * sysdeps/powerpc/powerpc64/entry.h (TEXT_START): Define using a
60383         second, differently-typed declaration, rather than a cast.
60384
60385 2012-11-30  Siddhesh Poyarekar  <siddhesh@redhat.com>
60386
60387         * sunrpc/rpc/svc.h (__svc_accept_failed): Move declaration...
60388         * include/rpc/svc.h: ... here.
60389
60390 2012-11-30  Aurelien Jarno  <aurel32@debian.org>
60391
60392         [BZ #13013]
60393         * resolv/res_query.c(__libc_res_nquery): Assign hp and hp2
60394         depending n and resplen2 to catch cases where answer
60395         equals answerp2.
60396
60397 2012-11-29  Carlos O'Donell  <carlos@systemhalted.org>
60398
60399         * elf/get-dynamic-info.h (elf_get_dynamic_info): Warn
60400         for unsupported DF_1_* bits when DL_DEBUG_FILES is set.
60401
60402 2012-11-29  Mike Frysinger  <vapier@gentoo.org>
60403
60404         * sysdeps/unix/sysv/linux/clock_getcpuclockid.c (HAS_CPUCLOCK): Delete.
60405
60406 2012-11-29  Roland McGrath  <roland@hack.frob.com>
60407
60408         * inet/tst-inet6_rth.c (do_test): Use a union rather than type punning.
60409
60410 2012-11-28  Jeff Law  <law@redhat.com>
60411
60412         [BZ #13761]
60413         * nscd/grpcache.c (cache_addgr): Rename alloca_used to
60414         dataset_temporary.  Track alloca usage into alloca_used.
60415         If dataset is large allocate and release it via malloc/free.
60416
60417 2012-06-04  Florian Weimer  <fweimer@redhat.com>
60418
60419         [BZ #14197]
60420         * debug/test-strcpy_chk.c: Mention __chk_fail ABI test.
60421
60422 2012-11-28  David S. Miller  <davem@davemloft.net>
60423
60424         * sysdeps/sparc/fpu/libm-test-ulps: Update.
60425
60426 2012-11-28  Joseph Myers  <joseph@codesourcery.com>
60427
60428         [BZ #14803]
60429         * sysdeps/ieee754/ldbl-96/e_asinl.c (pio2_hi): Use hex float value
60430         of pi/2 rounded to nearest to 64 bits.
60431         (pio2_lo): Use hex float value of pi/2 - pio2_hi rounded to
60432         nearest to 64 bits.
60433         (pio4_hi): Use hex float value of pi/4 rounded to nearest to 64
60434         bits.
60435
60436 2012-11-28  Jeff Law <law@redhat.com>
60437             Martin Osvald <mosvald@redhat.com>
60438
60439         [BZ #14889]
60440         * sunrpc/rpc/svc.h (__svc_accept_failed): New prototype.
60441         * sunrpc/svc.c: Include time.h.
60442         (__svc_accept_failed): New function.
60443         * sunrpc/svc_tcp.c (rendezvous_request): If the accept fails for
60444         any reason other than EINTR, call __svc_accept_failed.
60445         * sunrpc/svc_udp.c (svcudp_recv): Similarly.
60446         * sunrpc/svc_unix.c (rendezvous_request): Similarly.
60447
60448 2012-11-28  Andreas Schwab  <schwab@suse.de>
60449
60450         * scripts/abilist.awk: Also handle indirect functions in .opd
60451         section.
60452
60453 2012-11-28  Joseph Myers  <joseph@codesourcery.com>
60454
60455         [BZ #13881]
60456         * sysdeps/x86/fpu/powl_helper.c: New file.
60457         * sysdeps/x86/fpu/Makefile: Likewise.
60458         * sysdeps/i386/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         * sysdeps/x86_64/fpu/e_powl.S (limit): Remove object.
60463         (p3): New object.
60464         (__ieee754_powl): Use __powl_helper for finite arguments except
60465         integer exponents below 8.
60466         * math/libm-test.inc (pow_test): Add more tests and enable some
60467         previously disabled tests.
60468         * sysdeps/i386/fpu/libm-test-ulps: Update.
60469         * sysdeps/x86_64/fpu/libm-test-ulps: Likewise.
60470
60471 2012-11-28  Siddhesh Poyarekar  <siddhesh@redhat.com>
60472             Carlos O'Donell  <carlos_odonell@mentor.com>
60473
60474         * nss/makedb.c (is_prime): Assert that input is odd and greater
60475         than 4.  Note that fact in a comment too.
60476         (next_prime): Add 4 to input.
60477
60478 2012-11-27  Siddhesh Poyarekar  <siddhesh@redhat.com>
60479
60480         [BZ #11741]
60481         * libio/Makefile (tests): Add test case tst-fwrite-error.
60482         * libio/iofwrite.c (_IO_fwrite): Return 0 on EOF.
60483         * libio/iofwrite_u.c (fwrite_unlocked): Likewise.
60484         * libio/tst-fwrite-error.c: New test case.
60485
60486 2012-11-26  H.J. Lu  <hongjiu.lu@intel.com>
60487
60488         * elf/dl-load.c (_dl_map_object_from_fd): Cast to uintptr_t
60489         before casting to void *.
60490         * include/libc-internal.h (__pointer_type): New macro.
60491         (__integer_if_pointer_type_sub): Likewise.
60492         (__integer_if_pointer_type): Likewise.
60493         (cast_to_integer): Likewise.
60494         * sysdeps/x86_64/bits/atomic.h: Include <libc-internal.h>.
60495         (__arch_c_compare_and_exchange_val_64_acq): Use cast_to_integer
60496         before casting to atomic64_t.
60497         (atomic_exchange_acq): Likewise.
60498         (__arch_exchange_and_add_body): Likewise.
60499         (__arch_add_body): Likewise.
60500         (atomic_add_negative): Likewise.
60501         (atomic_add_zero): Likewise.
60502
60503 2012-11-26  Joseph Myers  <joseph@codesourcery.com>
60504
60505         * sysdeps/generic/unwind-dw2-fde.c (get_pc_begin): New function.
60506         (fde_unencoded_compare): Use get_pc_begin instead of type-punning.
60507         (add_fdes): Likewise.
60508         (linear_search_fdes): Likewise.
60509         (binary_search_unencoded_fdes): Likewise.
60510
60511 2012-11-26  Andreas Schwab  <schwab@linux-m68k.org>
60512
60513         * elf/sotruss.ksh: Correctly locate argument of -F and -T options.
60514
60515 2012-11-24  Adam Conrad  <adconrad@0c3.net>
60516
60517         * configure.in: Autodetect C++ header directories.
60518         * configure: Regenerated.
60519
60520 2012-11-23  Mike Frysinger  <vapier@gentoo.org>
60521
60522         * elf/Makefile ($(objpfx)ld.so): Change readelf to $(READELF).
60523
60524 2012-11-23  Andreas Schwab  <schwab@linux-m68k.org>
60525
60526         * sysdeps/powerpc/fpu/libm-test-ulps: Update.
60527
60528 2012-11-22  Joseph Myers  <joseph@codesourcery.com>
60529
60530         * math/libm-test.inc (fma_test_towardzero) [TEST_LDOUBLE &&
60531         LDBL_MANT_DIG == 106]: Disable some tests.
60532         (fma_test_downward) [TEST_LDOUBLE && LDBL_MANT_DIG == 106]:
60533         Likewise.
60534         (fma_test_upward) [TEST_LDOUBLE && LDBL_MANT_DIG == 106]:
60535         Likewise.
60536
60537         [BZ #14871]
60538         * sysdeps/ieee754/ldbl-128ibm/s_atanl.c (__atanl): Return the
60539         input for small inputs.  Return +/- pi/2 for large inputs.
60540         * math/libm-test.inc (atan_test): Add more tests.
60541
60542         * sysdeps/generic/unwind-dw2-fde-glibc.c
60543         (_Unwind_IteratePhdrCallback): Declare P_DYNAMIC with
60544         __attribute__ ((unused)).
60545
60546         [BZ #14645]
60547         * sysdeps/ieee754/ldbl-128ibm/s_fmal.c (__fmal): Compute result as
60548         x * y if x and y are nonzero and z is zero.
60549
60550         [BZ #14811]
60551         * sysdeps/ieee754/ldbl-128ibm/e_powl.c (__ieee754_powl): Saturate
60552         nonzero exponents with absolute value below 0x1p-117 to +/-
60553         0x1p-117.
60554
60555         [BZ #14869]
60556         * sysdeps/ieee754/ldbl-128ibm/e_hypotl.c (__ieee754_hypotl): Scale
60557         up arguments below 2**-450, not just those below 2**-500.
60558         * math/libm-test.inc (hypot_test): Add another test.
60559
60560         [BZ #14868]
60561         * sysdeps/ieee754/ldbl-128ibm/e_hypotl.c (__ieee754_hypotl):
60562         Return a+b for ratio over 2**120, not 2**60.
60563         * math/libm-test.inc (hypot_test): Add another test.
60564
60565         * math/libm-test.inc (clog_test): Use
60566         UNDERFLOW_EXCEPTION_LDOUBLE_IBM on two tests.
60567         (clog10_test): Likewise.
60568
60569         [BZ #6778]
60570         * sysdeps/ieee754/ldbl-128ibm/s_expm1l.c (big): Change to 1e290L.
60571
60572 2012-11-22  Andreas Schwab  <schwab@suse.de>
60573
60574         * sysdeps/i386/fpu/libm-test-ulps: Update.
60575
60576 2012-11-22  Pino Toscano  <toscano.pino@tiscali.it>
60577
60578         * sysdeps/x86_64/multiarch/test-multiarch.c (get_cpuinfo): Terminate
60579         printf output with newline.
60580
60581 2012-11-21  H.J. Lu  <hongjiu.lu@intel.com>
60582
60583         [BZ #14865]
60584         * aclocal.m4 (LIBC_LINKER_FEATURE): New macro.
60585         * configure.in: Use LIBC_LINKER_FEATURE to check -z nodelete,
60586         -z nodlopen, -z initfirst and -z execstack support.
60587         * configure: Regenerated.
60588
60589         * elf/elf.h (DF_1_NODIRECT): New macro.
60590         (DF_1_IGNMULDEF): Likewise.
60591         (DF_1_NOKSYMS): Likewise.
60592         (DF_1_NOHDR): Likewise.
60593         (DF_1_EDITED): Likewise.
60594         (DF_1_NORELOC): Likewise.
60595         (DF_1_SYMINTPOSE): Likewise.
60596         (DF_1_GLOBAUDIT): Likewise.
60597         (DF_1_SINGLETON): Likewise.
60598         * elf/get-dynamic-info.h (elf_get_dynamic_info): Assert
60599         DT_1_SUPPORTED_MASK bits.
60600         * include/elf.h (DT_1_SUPPORTED_MASK): New macro.
60601
60602 2012-11-20  Carlos O'Donell  <carlos_odonell@mentor.com>
60603
60604         * sysdeps/unix/make-syscalls.sh: Document prefixes.
60605
60606 2012-11-20  Thomas Schwinge  <thomas@codesourcery.com>
60607
60608         * sysdeps/sh/dl-machine.h (ELF_MACHINE_RUNTIME_FIXUP_PARAMS): New
60609         macro.
60610
60611         * sysdeps/unix/sysv/linux/bits/socket.h (struct mmsghdr, recvmmsg)
60612         (sendmmsg): Move declarations...
60613         * socket/sys/socket.h: ... here.
60614         * sysdeps/unix/sysv/linux/recvmmsg.c [!defined __NR_recvmmsg &&
60615         !defined __NR_socketcall] (recvmmsg): Move ENOSYS stub into and
60616         include it from...
60617         * socket/recvmmsg.c: ... this new file.
60618         * sysdeps/unix/sysv/linux/internal_sendmmsg.S [__ASSUME_SENDMMSG]
60619         (sendmmsg): Rename to __sendmmsg, create weak alias and make
60620         definition of __sendmmsg hidden.
60621         * sysdeps/unix/sysv/linux/sendmmsg.c (sendmmsg): Likewise.
60622         [!defined __NR_sendmmsg && !defined __NR_socketcall] (sendmmsg):
60623         Move ENOSYS stub into and include it from...
60624         * socket/sendmmsg.c: ... this new file.
60625         * sysdeps/unix/sysv/linux/Makefile [subdir=socket]
60626         (sysdep_routines): Move recvmmsg and sendmmsg...
60627         * socket/Makefile (routines): ... here.
60628         * socket/Versions (GLIBC_2.17): Add recvmmsg and sendmmsg.
60629         (GLIBC_PRIVATE): Add __sendmmsg.
60630         * include/sys/socket.h (__sendmmsg): Add declarations.
60631         * resolv/res_send.c (send_dg): Invoke __sendmmsg instead of
60632         sendmmsg.
60633
60634 2012-11-20  Joseph Myers  <joseph@codesourcery.com>
60635
60636         * sysdeps/ieee754/ldbl-128/s_nearbyintl.c (__nearbyintl): Mark
60637         variable I1 with __attribute__ ((unused)).
60638         * sysdeps/ieee754/ldbl-128/s_rintl.c (__rintl): Likewise.
60639
60640 2012-11-19  Joseph Myers  <joseph@codesourcery.com>
60641
60642         * stdio-common/_itowa.c (_itowa) [BITS_PER_MP_LIMB == 64]: Declare
60643         DUMMY variables with __attribute__ ((unused)).
60644
60645         * bits/byteswap.h: Include <bits/types.h>.
60646         (__bswap_64): Use __uint64_t instead of unsigned long long int.
60647
60648 2012-11-19  Pino Toscano  <toscano.pino@tiscali.it>
60649
60650         * sysdeps/mach/hurd/ptsname.c (ptsname): Change the type of PEERNAME to
60651         string_t.  Do not manually set errno.
60652         (__ptsname_r): Change the type of PEERNAME to string_t, and check its
60653         length with __strnlen.  Make sure to both set errno and return it on
60654         failure.
60655
60656 2012-11-19  David S. Miller  <davem@davemloft.net>
60657
60658         With help from Joseph Myers.
60659         * sysdeps/ieee754/ldbl-128/s_atanl.c (__atanl): Handle tiny and
60660         very large arguments properly.
60661         * math/libm-test.inc (atan_test): New tests.
60662         (atan2_test): New tests.
60663         * sysdeps/sparc/fpu/libm-test-ulps: Update.
60664         * sysdeps/x86_64/fpu/libm-test-ulps: Update.
60665
60666 2012-11-19  Joseph Myers  <joseph@codesourcery.com>
60667
60668         [BZ #14856]
60669         * posix/bits/posix1_lim.h [!__USE_XOPEN2K] (_POSIX_TZNAME_MAX):
60670         Define to 3.
60671
60672         * conform/data/errno.h-data [POSIX] (EADDRINUSE): Do not expect.
60673         [POSIX] (EADDRNOTAVAIL): Likewise.
60674         [POSIX] (EAFNOSUPPORT): Likewise.
60675         [POSIX] (EALREADY): Likewise.
60676         [POSIX] (ECONNABORTED): Likewise.
60677         [POSIX] (ECONNREFUSED): Likewise.
60678         [POSIX] (ECONNRESET): Likewise.
60679         [POSIX] (EDESTADDRREQ): Likewise.
60680         [POSIX] (EDQUOT): Likewise.
60681         [POSIX] (EHOSTUNREACH): Likewise.
60682         [POSIX] (EIDRM): Likewise.
60683         [POSIX] (EISCONN): Likewise.
60684         [POSIX] (ELOOP): Likewise.
60685         [POSIX] (EMULTIHOP): Likewise.
60686         [POSIX] (ENETDOWN): Likewise.
60687         [POSIX] (ENETUNREACH): Likewise.
60688         [POSIX] (ENOBUFS): Likewise.
60689         [POSIX] (ENODATA): Likewise.
60690         [POSIX] (ENOLINK): Likewise.
60691         [POSIX] (ENOMSG): Likewise.
60692         [POSIX] (ENOPROTOOPT): Likewise.
60693         [POSIX] (ENOSR): Likewise.
60694         [POSIX] (ENOSTR): Likewise.
60695         [POSIX] (ENOTCONN): Likewise.
60696         [POSIX] (ENOTSOCK): Likewise.
60697         [POSIX] (EOPNOTSUPP): Likewise.
60698         [POSIX] (EOVERFLOW): Likewise.
60699         [POSIX] (EPROTO): Likewise.
60700         [POSIX] (EPROTONOSUPPORT): Likewise.
60701         [POSIX] (EPROTOTYPE): Likewise.
60702         [POSIX] (ESTALE): Likewise.
60703         [POSIX] (ETIME): Likewise.
60704         [POSIX] (ETXTBSY): Likewise.
60705         [POSIX] (EWOULDBLOCK): Likewise.
60706         [!ISO && !ISO99 && !ISO11] (E*): Do not allow.
60707         * conform/data/fcntl.h-data [POSIX] (SEEK_SET): Allow.
60708         [POSIX] (SEEK_CUR): Likewise.
60709         [POSIX] (SEEK_END): Likewise.
60710         [POSIX || UNIX98] (mode_t): Do not require.
60711         [POSIX] (off_t): Likewise.
60712         [POSIX] (pid_t): Likewise.
60713         [POSIX] (sys/stat.h): Do not allow header.
60714         [POSIX] (unistd.h): Likewise.
60715         [!ISO && !ISO99 && !ISO11] (timespec): Do not allow.
60716         [!ISO && !ISO99 && !ISO11] (tv_nsec): Likewise.
60717         [!ISO && !ISO99 && !ISO11] (tv_sec): Likewise.
60718         * conform/data/locale.h-data [POSIX] (LC_MESSAGES): Do not
60719         require.
60720         * conform/data/mqueue.h-data [!ISO && !ISO99 && !ISO11] (struct
60721         sigevent): Specify elements.
60722         [XOPEN2K8 || POSIX2008] (struct sigevent): Remove duplicate type
60723         entry.
60724         [!ISO && !ISO99 && !ISO11] (mq_*): Allow.
60725         [!ISO && !ISO99 && !ISO11] (MQ_*): Likewise.
60726
60727         * conform/data/cpio.h-data [POSIX]: Disable whole file.
60728         * conform/data/glob.h-data [POSIX] (GLOB_NOSYS): Do not expect.
60729         * conform/data/limits.h-data [!ISO && !ISO99 && !ISO11]
60730         (AIO_LIST_MAX): Change to AIO_LISTIO_MAX.
60731         [!ISO && !ISO99 && !ISO11] (ATEXT_MAX): Remove.
60732         [!ISO && !ISO99 && !ISO11 && !POSIX && !XPG3] (ATEXIT_MAX): Allow.
60733         [POSIX || POSIX2008 || XPG3] (IOV_MAX): Do not allow.
60734         [POSIX || POSIX2008 || XPG3] (_XOPEN_IOV_MAX): Likewise.
60735         [!ISO && !ISO99 && !ISO11] (MQ_PRIO_MAX): Allow.
60736         [!ISO && !ISO99 && !ISO11] (RE_DUP_MAX): Remove duplicate entry.
60737         [POSIX || XPG3 || XPG4 || UNIX98] (SS_REPL_MAX): Do not allow.
60738         [POSIX || XPG3 || XPG4 || UNIX98] (SYMLOOP_MAX): Likewise.
60739         [POSIX || XPG3 || XPG4] (FILESIZEBITS): Likewise.
60740         [POSIX || XPG3 || XPG4 || UNIX98] (POSIX_ALLOC_SIZE_MIN):
60741         Likewise.
60742         [POSIX || XPG3 || XPG4 || UNIX98] (POSIX_REC_INCR_XFER_SIZE):
60743         Likewise.
60744         [POSIX || XPG3 || XPG4 || UNIX98] (POSIX_REC_MAX_XFER_SIZE):
60745         Likewise.
60746         [POSIX || XPG3 || XPG4 || UNIX98] (POSIX_REC_XFER_ALIGN):
60747         Likewise.
60748         [POSIX || XPG3 || XPG4 || UNIX98] (SYMLINK_MAX): Likewise.
60749         [POSIX || XPG3 || XPG4 || UNIX98] (_POSIX_SS_REPL_MAX): Likewise.
60750         [POSIX || XPG3 || XPG4 || UNIX98] (_POSIX_SYMLINK_MAX): Likewise.
60751         [POSIX || XPG3 || XPG4 || UNIX98] (_POSIX_SYMLOOP_MAX): Likewise.
60752         [!ISO && !ISO99 && !ISO11] (BC_BASE_MAX): Use macro-constant.
60753         Specify lower bound on value.
60754         [!ISO && !ISO99 && !ISO11] (BC_DIM_MAX): Likewise.
60755         [!ISO && !ISO99 && !ISO11] (BC_SCALE_MAX): Likewise.
60756         [!ISO && !ISO99 && !ISO11] (BC_STRING_MAX): Likewise.
60757         [!ISO && !ISO99 && !ISO11] (COLL_WEIGHTS_MAX): Likewise.
60758         [!ISO && !ISO99 && !ISO11] (EXPR_NEST_MAX): Likewise.
60759         [!ISO && !ISO99 && !ISO11] (RE_DUP_MAX): Likewise.
60760         [POSIX || XPG3 || XPG4] (CHARCLASS_NAME_MAX): Do not allow.
60761         [!ISO && !ISO99 && !ISO11] (_POSIX_CLOCKRES_MIN): Specify exact
60762         value.
60763         [!ISO && !ISO99 && !ISO11] (_POSIX_AIO_LISTIO_MAX): Do not specify
60764         as optional.
60765         [!ISO && !ISO99 && !ISO11] (_POSIX_AIO_MAX): Likewise.
60766         [!ISO && !ISO99 && !ISO11] (_POSIX_ARG_MAX): Likewise.
60767         [!ISO && !ISO99 && !ISO11] (_POSIX_CHILD_MAX): Likewise.
60768         [!ISO && !ISO99 && !ISO11] (_POSIX_DELAYTIMER_MAX): Likewise.
60769         [!ISO && !ISO99 && !ISO11] (_POSIX_LINK_MAX): Likewise.
60770         [!ISO && !ISO99 && !ISO11] (_POSIX_LOGIN_NAME_MAX): Likewise.
60771         [!ISO && !ISO99 && !ISO11] (_POSIX_MAX_CANON): Likewise.
60772         [!ISO && !ISO99 && !ISO11] (_POSIX_MAX_INPUT): Likewise.
60773         [!ISO && !ISO99 && !ISO11] (_POSIX_MQ_OPEN_MAX): Likewise.
60774         [!ISO && !ISO99 && !ISO11] (_POSIX_MQ_PRIO_MAX): Likewise.
60775         [!ISO && !ISO99 && !ISO11] (_POSIX_NAME_MAX): Likewise.
60776         [!ISO && !ISO99 && !ISO11] (_POSIX_NGROUPS_MAX): Likewise.
60777         [!ISO && !ISO99 && !ISO11] (_POSIX_OPEN_MAX): Likewise.
60778         [!ISO && !ISO99 && !ISO11] (_POSIX_PATH_MAX): Likewise.
60779         [!ISO && !ISO99 && !ISO11] (_POSIX_PIPE_BUF): Likewise.
60780         [!ISO && !ISO99 && !ISO11] (_POSIX2_RE_DUP_MAX): Remove duplicate
60781         entry.
60782         [!ISO && !ISO99 && !ISO11] (_POSIX_RTSIG_MAX): Do not specify as
60783         optional.
60784         [!ISO && !ISO99 && !ISO11] (_POSIX_SEM_NSEMS_MAX): Likewise.
60785         [!ISO && !ISO99 && !ISO11] (_POSIX_SEM_VALUE_MAX): Likewise.
60786         [!ISO && !ISO99 && !ISO11] (_POSIX_SIGQUEUE_MAX): Likewise.
60787         [!ISO && !ISO99 && !ISO11] (_POSIX_SSIZE_MAX): Likewise.
60788         [!ISO && !ISO99 && !ISO11] (_POSIX_STREAM_MAX): Likewise.
60789         [!ISO && !ISO99 && !ISO11] (_POSIX_THREAD_DESTRUCTOR_ITERATIONS):
60790         Likewise.
60791         [!ISO && !ISO99 && !ISO11] (_POSIX_THREAD_KEYS_MAX): Likewise.
60792         [!ISO && !ISO99 && !ISO11] (_POSIX_THREAD_THREADS_MAX): Likewise.
60793         [!ISO && !ISO99 && !ISO11] (_POSIX_TIMER_MAX): Likewise.
60794         [!ISO && !ISO99 && !ISO11] (_POSIX_TTY_NAME_MAX): Likewise.
60795         [!ISO && !ISO99 && !ISO11] (_POSIX_TZNAME_MAX): Likewise.  Give
60796         value as 3 for [POSIX || XPG3 || XPG4 || UNIX98].
60797         [!ISO && !ISO99 && !ISO11] (_POSIX2_BC_BASE_MAX): Do not specify
60798         as optional.
60799         [!ISO && !ISO99 && !ISO11] (_POSIX2_BC_DIM_MAX): Likewise.
60800         [!ISO && !ISO99 && !ISO11] (_POSIX2_BC_SCALE_MAX): Likewise.
60801         [!ISO && !ISO99 && !ISO11] (_POSIX2_BC_STRING_MAX): Likewise.
60802         [!ISO && !ISO99 && !ISO11] (_POSIX2_CHARCLASS_NAME_MAX):
60803         Likewise.  Do not allow for [POSIX || XPG3 || XPG4 || UNIX98].
60804         [!ISO && !ISO99 && !ISO11] (_POSIX2_COLL_WEIGHTS_MAX): Do not
60805         specify as optional.
60806         [!ISO && !ISO99 && !ISO11] (_POSIX2_EXPR_NEST_MAX): Likewise.
60807         [!ISO && !ISO99 && !ISO11] (_POSIX2_LINE_MAX): Likewise.
60808         [!ISO && !ISO99 && !ISO11] (_POSIX2_RE_DUP_MAX): Likewise.
60809         [POSIX || POSIX2008 || XPG3] (_XOPEN_IOV_MAX): Do not allow.
60810         [POSIX || XPG3] (NL_ARGMAX): Do not allow.
60811         [XPG3] (NL_LANGMAX): Likewise.
60812         [POSIX || XPG3] (NL_MSGMAX): Likewise.
60813         [POSIX || XPG3] (NL_NMAX): Likewise.
60814         [POSIX || XPG3] (NL_SETMAX): Likewise.
60815         [POSIX || XPG3] (NL_TEXTMAX): Likewise.
60816         [XPG3] (NZERO): Likewise.
60817         [XPG4 || UNIX98] (TMP_MAX): Only enable for these conditions.
60818         [POSIX || XPG3 || XPG4 || UNIX98] (*_MIN): Do not allow.
60819         [!ISO && !ISO99 && !ISO11] (*_t): Allow.
60820         * conform/data/regex.h-data [!ISO && !ISO99 && !ISO11]
60821         (REG_ERANGE): Expect.
60822         * conform/data/stdio.h-data [POSIX] (L_cuserid): Use
60823         optional-constant.
60824         [POSIX || XOPEN2K || XOPEN2K8 || POSIX2008] (getchar_unlocked):
60825         Use (void) in prototype.
60826         [POSIX] (*_t): Allow.
60827         * conform/data/sys/times.h-data [POSIX]: Enable whole file.
60828         * conform/data/wordexp.h-data [!ISO && !ISO99 && !ISO11]
60829         (WRDE_BADVAL): Expect.
60830
60831         * conform/data/fcntl.h-data [XPG3 || XPG4] (O_DSYNC): Do not
60832         expect.
60833         [XPG3 || XPG4] (O_RSYNC): Likewise.
60834         * conform/data/signal.h-data [XPG3 || XPG4] (pthread_kill):
60835         Likewise.
60836         [XPG3 || XPG4] (pthread_sigmask): Likewise.
60837         [XPG3 || XPG4] (sigqueue): Likewise.
60838         [XPG3 || XPG4] (sigtimedwait): Likewise.
60839         [XPG3 || XPG4] (sigwaitinfo): Likewise.
60840         * conform/data/stdio.h-data [XPG3 || XPG4] (snprintf): Likewise.
60841         [XPG3 || XPG4] (vsnprintf): Likewise.
60842         * conform/data/sys/stat.h-data [XPG3 || XPG4] (blkcnt_t):
60843         Likewise.
60844         [XPG3 || XPG4] (blksize_t): Likewise.
60845         * conform/data/time.h-data [XPG3 || XPG4] (struct timespec):
60846         Likewise.
60847         [XPG3 || XPG4] (CLOCK_PROCESS_CPUTIME_ID): Likewise.
60848         [XPG3 || XPG4] (CLOCK_THREAD_CPUTIME_ID): Likewise.
60849         [XPG3 || XPG4] (struct itimerspec): Likewise.
60850         [XPG3 || XPG4] (CLOCK_REALTIME): Likewise.
60851         [XPG3 || XPG4] (TIMER_ABSTIME): Likewise.
60852         [XPG3 || XPG4] (CLOCK_MONOTONIC): Likewise.
60853         [XPG3 || XPG4] (clockid_t): Likewise.
60854         [XPG3 || XPG4] (timer_t): Likewise.
60855         [XPG3 || XPG4] (clock_getres): Likewise.
60856         [XPG3 || XPG4] (clock_gettime): Likewise.
60857         [XPG3 || XPG4] (clock_settime): Likewise.
60858         [XPG3 || XPG4] (nanosleep): Likewise.
60859         [XPG3 || XPG4] (timer_create): Likewise.
60860         [XPG3 || XPG4] (timer_delete): Likewise.
60861         [XPG3 || XPG4] (timer_gettime): Likewise.
60862         [XPG3 || XPG4] (timer_getoverrun): Likewise.
60863         [XPG3 || XPG4] (timer_settime): Likewise.
60864         * conform/data/unistd.h-data [XPG3 || XPG4] (fdatasync): Likewise.
60865         [XPG3 || XPG4] (getlogin_r): Likewise.
60866         [XPG3 || XPG4] (pread): Likewise.
60867         [XPG3 || XPG4] (pthread_atfork): Likewise.
60868         [XPG3 || XPG4] (pwrite): Likewise.
60869
60870         [BZ #14835]
60871         * signal/signal.h [__USE_XOPEN_EXTENDED]: Include
60872         <bits/siginfo.h>.
60873
60874 2012-11-19  Pino Toscano  <toscano.pino@tiscali.it>
60875
60876         * malloc/mtrace.c (muntrace): Reset MALLSTREAM and the hooks before
60877         finalizing MALLSTREAM.
60878
60879         * sysdeps/mach/hurd/syncfs.c: New file.
60880
60881 2012-11-19  Siddhesh Poyarekar  <siddhesh@redhat.com>
60882
60883         [BZ #14719]
60884         * nss/getXXbyYY_r.c (INTERNAL (REENTRANT_NAME)): Set h_errno to
60885         NETDB_INTERNAL when NSS_STATUS_UNAVAIL.
60886         * resolv/nss_dns/dns-host.c (_nss_dns_gethostbyname3_r): Set
60887         h_errno to NETDB_INTERNAL when errno is EMFILE or ENFILE.
60888         (_nss_dns_gethostbyname4_r): Likewise.
60889         * sysdeps/posix/getaddrinfo.c (gaih_inet): Set result to
60890         EAI_SYSTEM if NSS_STATUS_UNAVAIL.
60891
60892 2012-11-19  Peng Haitao  <penght@cn.fujitsu.com>
60893
60894         [BZ #13763]
60895         * sunrpc/bindrsvprt.c: Add lock to protect static variable.
60896
60897 2012-11-19  Steve McIntyre  <steve.mcintyre@linaro.org>
60898
60899         * sysdeps/generic/ldconfig.h (FLAG_AARCH64_LIB64): New macro.
60900         * elf/cache.c (print_entry): Print ",AArch64" for
60901         FLAG_AARCH64_LIB64
60902
60903         * sysdeps/generic/ldconfig.h (FLAG_ARM_LIBHF): New macro.
60904         * elf/cache.c (print_entry): Print ",hard-float" for
60905         FLAG_ARM_LIBHF.
60906
60907 2012-11-18  David S. Miller  <davem@davemloft.net>
60908
60909         With help from Joseph Myers.
60910         * sysdeps/ieee754/flt-32/e_j0f.c (__ieee754_y0f): Adjust tinyness
60911         cutoff to 2**-13.
60912         * sysdeps/ieee754/flt-32/e_j1f.c (__ieee754_y1f): Adjust tinyness
60913         cutoff to 2**-25.
60914         * sysdeps/ieee754/ldbl-128/e_j0l.c (U0): New constant.
60915         ( __ieee754_y0l): Avoid arithmetic underflow when 'x' is very
60916         small.
60917         * sysdeps/ieee754/ldbl-128/e_j1l.c (__ieee754_y1l): Likewise.
60918         * math/libm-test.inc (y0_test): New tests.
60919         (y1_test): New tests.
60920         * sysdeps/i386/fpu/libm-test-ulps: Update.
60921         * sysdeps/x86_64/fpu/libm-test-ulps: Update.
60922         * sysdeps/sparc/fpu/libm-test-ulps: Update.
60923
60924 2012-11-18  Andreas Schwab  <schwab@linux-m68k.org>
60925
60926         * configure.in (libc_cv_ld_gnu_indirect_function): Use .quad on
60927         64-bit targets.
60928         * configure: Regenerated.
60929
60930 2012-11-17  David S. Miller  <davem@davemloft.net>
60931
60932         [BZ #14811]
60933         * sysdeps/ieee754/ldbl-128/e_powl.c (__ieee754_powl): Saturate
60934         nonzero exponents with absolute value below 0x1p-128 to +/-
60935         0x1p-128.
60936
60937 2012-11-17  Joseph Myers  <joseph@codesourcery.com>
60938
60939         * sysdeps/unix/sysv/linux/fxstatat.c: Include <string.h>.
60940
60941         * elf/dl-runtime.c [!ELF_MACHINE_NO_PLT]: Make code unconditional.
60942
60943         * posix/getconf-speclist.c: New file.
60944         * posix/posix-envs.def: Likewise.
60945         * posix/confstr.c (START_ENV_GROUP): New macro.
60946         (END_ENV_GROUP): Likewise.
60947         (KNOWN_ABSENT_ENVIRONMENT): Likewise.
60948         (KNOWN_PRESENT_ENV_STRING): Likewise.
60949         (KNOWN_PRESENT_ENVIRONMENT): Likewise.
60950         (UNKNOWN_ENVIRONMENT): Likewise.
60951         (confstr): Include posix-envs.def instead of handling
60952         _CS_V7_WIDTH_RESTRICTED_ENVS, _CS_V6_WIDTH_RESTRICTED_ENVS and
60953         _CS_V5_WIDTH_RESTRICTED_ENVS directly here.
60954         * sysdeps/posix/sysconf.c (START_ENV_GROUP): New macro.
60955         (END_ENV_GROUP): Likewise.
60956         (KNOWN_ABSENT_ENVIRONMENT): Likewise.
60957         (KNOWN_PRESENT_ENVIRONMENT): Likewise.
60958         (UNKNOWN_ENVIRONMENT): Likewise.
60959         (__sysconf): Include posix-envs.def instead of handling associated
60960         cases directly here.
60961         * posix/Makefile ($(objpfx)getconf.speclist): Generate by
60962         preprocessing getconf-speclist.c rather than running getconf or
60963         generating empty file.
60964
60965 2012-11-16  Pino Toscano  <toscano.pino@tiscali.it>
60966
60967         * scripts/check-local-headers.sh: Ignore 'mach' headers.
60968
60969 2012-11-16  Andrej Lajovic  <natrij@gmail.com>
60970
60971         [BZ #14672]
60972         * iconv/iconv_prog.c (main): Fix -c handling of '/'.
60973
60974 2012-11-16  David S. Miller  <davem@davemloft.net>
60975
60976         * sysdeps/ieee754/ldbl-128/s_log1pl.c (__log1pl): If xm1 is
60977         smaller than LDBL_EPSILON/2.0L, just return xm1.
60978
60979 2012-11-16  H.J. Lu  <hongjiu.lu@intel.com>
60980
60981         * elf/tst-array1.c (init): Set constructor priority to 1000.
60982         (fini): Set destructor priority to 1000.
60983         * elf/tst-array2dep.c: Likewise.
60984
60985 2012-11-16  Siddhesh Poyarekar  <siddhesh@redhat.com>
60986
60987         [BZ #11741]
60988         * libio/fileops.c (_IO_new_file_write): Correctly return error.
60989         (_IO_new_file_xsputn): Also return EOF if none of the input
60990         data was written when overflow failed.
60991         * libio/iopadn.c (_IO_padn): Likewise.
60992         * libio/iowpadn.c (_IO_wpadn): Likewise.
60993         * stdio-common/tst-put-error.c: Add copyright notice.
60994         (do_test): Add case for printing padded string.
60995         * stdio-common/vfprintf [!COMPILE_WPRINTF] (PAD): Flag error if
60996         _IO_padn returned error.
60997         [COMPILE_WPRINTF] (PAD): Flag error if _IO_wpadn returned error.
60998         * libio/libioP.h (_IO_xsputn_t): Note in comment that xsputn can
60999         return EOF.
61000
61001 2012-11-16  Siddhesh Poyarekar  <siddhesh@redhat.com>
61002
61003         * libio/libioP.h: Add comment note that the references to C++
61004         bits are now obsolete.
61005
61006 2012-11-15  Marcus Shawcroft  <marcus.shawcroft@linaro.org>
61007
61008         * math/libm-test.inc (check_complex): Use asprintf.
61009
61010 2012-11-14  Joseph Myers  <joseph@codesourcery.com>
61011
61012         * debug/pcprofiledump.c (print_version): Update copyright year.
61013         * malloc/memusagestat.c (print_version): Likewise.
61014
61015 2012-11-14  H.J. Lu  <hongjiu.lu@intel.com>
61016
61017         [BZ #14831]
61018         * elf/Makefile (tests): Add tst-audit8.
61019         ($(objpfx)tst-audit8): Also depend on $(common-objpfx)math/libm.so.
61020         ($(objpfx)tst-audit8.out): New target.
61021         (tst-audit8-ENV): New variable.
61022         * elf/dl-runtime.c (_dl_profile_fixup): Call _dl_fixup to skip
61023         audit if l_reloc_result is NULL.
61024         (ELF_MACHINE_RUNTIME_FIXUP_PARAMS): Issue an error if it isn't
61025         defined and ELF_MACHINE_RUNTIME_FIXUP_ARGS is defined.
61026         * elf/tst-audit8.c: New file.
61027
61028 2012-11-14  Marcus Shawcroft  <marcus.shawcroft@linaro.org>
61029
61030         * io/Makefile (CFLAGS-open.c, CFLAGS-open64.c): Define.
61031         * misc/Makefile (CFLAGS-select.c): Define.
61032         * posix/Makefile (CFLAGS-pause.c): Define.
61033
61034 2012-11-13  David S. Miller  <davem@davemloft.net>
61035
61036         * crypt/Makefile: Move test targets after toplevel Rules
61037         inclusion.  Grab any necessary sysdep routines when linking.
61038         * crypt/md5.c (md5_process_block): Remove define, we will always
61039         name it __md5_process_block.
61040         (md5_finish_ctx): Update md5_process_block call.
61041         (md5_stream): Likewise.
61042         (md5_process_bytes): Likewise.
61043         (md5_process_block): Rename to __md5_process_block and move to ...
61044         * crypt/md5-block.c: ... here.
61045         * crypt/sha256.c (sha256_process_block): Move to ...
61046         * crypt/sha256-block.c: ... here.
61047         * crypt/sha512.c (sha512_process_block): Move to ...
61048         * crypt/sha512-block.c: ... here.
61049         * locale/Makefile (CFLAGS-md5.c): Define to add crypt/ to include
61050         path.
61051         * sysdeps/sparc/sparc-ifunc.c (sparc_libc_ifunc): Define.
61052         * sysdeps/sparc/sparc64/multiarch/Makefile
61053         (libcrypt-sysdep_routines): Add crypto assembler sysdeps when in
61054         crypt subdir.
61055         (localedef-aux): Add md5 crypto assembler when in locale subdir.
61056         * sysdeps/sparc/sparc32/sparcv9/multiarch/Makefile: Mirror sparc64
61057         multiarch changes.
61058         * sysdeps/sparc/sparc64/multiarch/md5-block.c: New file.
61059         * sysdeps/sparc/sparc64/multiarch/md5-crop.S: New file.
61060         * sysdeps/sparc/sparc64/multiarch/sha256-block.c: New file.
61061         * sysdeps/sparc/sparc64/multiarch/sha256-crop.S: New file.
61062         * sysdeps/sparc/sparc64/multiarch/sha512-block.c: New file.
61063         * sysdeps/sparc/sparc64/multiarch/sha512-crop.S: New file.
61064         * sysdeps/sparc/sparc32/sparcv9/multiarch/md5-block.c: New file.
61065         * sysdeps/sparc/sparc32/sparcv9/multiarch/md5-crop.S: New file.
61066         * sysdeps/sparc/sparc32/sparcv9/multiarch/sha256-block.c: New
61067         file.
61068         * sysdeps/sparc/sparc32/sparcv9/multiarch/sha256-crop.S: New file.
61069         * sysdeps/sparc/sparc32/sparcv9/multiarch/sha512-block.c: New
61070         file.
61071         * sysdeps/sparc/sparc32/sparcv9/multiarch/sha512-crop.S: New file.
61072
61073 2012-11-13  Joseph Myers  <joseph@codesourcery.com>
61074
61075         * timezone/tzselect.ksh: Update from tzcode git revision
61076         a435f9f0ecafa56d9e0263835836bd0c64cd7307.
61077         * timezone/zdump.c: Likewise.
61078         * timezone/zic.c: Likewise.
61079         * timezone/Makefile ($(objpfx)version.h): Only include $(version)
61080         in TZVERSION setting, not $(PKGVERSION).
61081         ($(objpfx)tzselect): Likewise.  Also substitute PKGVERSION and
61082         REPORT_BUGS_TO settings.
61083
61084         [BZ #14838]
61085         * resolv/netdb.h [__USE_XOPEN_EXTENDED] (IPPORT_RESERVED): Define
61086         macro.
61087
61088 2012-11-13  Marcus Shawcroft  <marcus.shawcroft@linaro.org>
61089
61090         * soft-fp/op-common.h (_FP_PACK_SEMIRAW): Move underflow
61091         detection to immediately after _FP_ROUND().
61092         * soft-fp/soft-fp.h (_FP_ROUND): Don't round if working
61093         bits are 0.
61094
61095 2012-11-11  David S. Miller  <davem@davemloft.net>
61096
61097         * sysdeps/unix/sysv/linux/sparc/sparc64/get_clockfreq.c: Include
61098         inttypes.h
61099         (__get_clockfreq_via_proc_openprom): Use __open, __read, and
61100         __close rather than their public counterparts.
61101
61102 2012-11-10  Joseph Myers  <joseph@codesourcery.com>
61103
61104         * conform/data/semaphore.h-data [XPG3 || XPG4]: Disable whole
61105         file.
61106         [UNIX98] (sem_timedwait): Do not expect.
61107         * conform/data/sys/socket.h-data [XPG3]: Disable whole file.
61108         [XPG4 || UNIX98] (sockatmark): Do not expect.
61109         * conform/data/time.h-data [XPG3 || XPG4 || UNIX98]
61110         (clock_getcpuclockid): Do not expect.
61111         [XPG3 || XPG4 || UNIX98] (clock_nanosleep): Do not expect.
61112         * conform/data/unistd.h-data [XPG3 || XPG4 || UNIX98] (setegid):
61113         Do not expect.
61114         [XPG3 || XPG4 || UNIX98] (seteuid): Likewise.
61115         * conform/data/wchar.h-data [UNIX98] (vfwscanf): Do not expect.
61116         [UNIX98] (vwscanf): Likewise.
61117         [UNIX98] (vswscanf): Likewise.
61118
61119 2012-11-09  Joseph Myers  <joseph@codesourcery.com>
61120
61121         * timezone/version.h: Remove file.
61122         * timezone/README: Do not refer to version.h.
61123         * timezone/Makefile ($(objpfx)zic.o): New dependency on
61124         $(objpfx)version.h.
61125         ($(objpfx)zdump.o): Likewise.
61126         ($(objpfx)version.h): New target.
61127
61128         * timezone/tzselect.ksh: Change to verbatim copy from tzcode
61129         2012i.
61130         * timezone/README: Don't mention modification to tzselect.ksh.
61131         * timezone/Makefile ($(objpfx)tzselect): Update substitutions to
61132         work on unmodified tzselect.ksh.  Substitute version numbers in
61133         tzselect.ksh.
61134
61135         * Makefile (format-me): Remove.
61136         (INSTALL): Adjust indentation.  Use commands directly instead of
61137         using $(format-me).
61138
61139         * aclocal.m4 (ACX_PKGVERSION): New macro.
61140         (ACX_BUGURL): Likewise.
61141         * configure.in: Use ACX_PKGVERSION and ACX_BUGURL.
61142         (PKGVERSION): New AC_DEFINE_UNQUOTED.
61143         (REPORT_BUGS_TO): Likewise.
61144         * configure: Regenerated.
61145         * config.h.in (PKGVERSION): New macro.
61146         (REPORT_BUGS_TO): Likewise.
61147         * config.make.in (PKGVERSION): New variable.
61148         (PKGVERSION_TEXI): Likewise.
61149         (REPORT_BUGS_TO): Likewise.
61150         (REPORT_BUGS_TEXI): Likewise.
61151         * Makefile (format-me): Use -I$(common-objpfx)manual.
61152         (INSTALL): Depend on $(common-objpfx)manual/pkgvers.texi.
61153         ($(common-objpfx)manual/%): New target.
61154         (manual/%): Remove target.
61155         * catgets/gencat.c (more_help): Use REPORT_BUGS_TO.
61156         (print_version): Use PKGVERSION.
61157         * csu/version.c (banner): Use PKGVERSION and REPORT_BUGS_TO.
61158         * debug/Makefile ($(objpfx)catchsegv): Also substitute PKGVERSION
61159         and REPORT_BUGS_TO.
61160         ($(objpfx)xtrace): Likewise.
61161         * debug/catchsegv.sh: Use PKGVERSION and REPORT_BUGS_TO.
61162         * debug/pcprofiledump.c (more_help): Use REPORT_BUGS_TO.
61163         (print_version): Use PKGVERSION.
61164         * debug/xtrace.sh (do_help): Use REPORT_BUGS_TO.
61165         (do_version): Use PKGVERSION.
61166         * elf/Makefile ($(objpfx)sotruss): Also substitute PKGVERSION and
61167         REPORT_BUGS_TO.
61168         (common-ldd-rewrite): Likewise.
61169         * elf/dl-close.c (_dl_close_worker): Use REPORT_BUGS_TO.
61170         * elf/ldconfig.c (more_help): Use REPORT_BUGS_TO.
61171         (print_version): Use PKGVERSION.
61172         * elf/ldd.bash.in: Use PKGVERSION and REPORT_BUGS_TO.
61173         * elf/pldd.c (argp_program_bug_address): Remove variable.
61174         (more_help): New function.
61175         (argp): Use more_help.
61176         (print_version): Use PKGVERSION.
61177         * elf/sln.c (main): Use PKGVERSION.
61178         (usage): Use REPORT_BUGS_TO.
61179         * elf/sotruss.ksh (do_help): Use REPORT_BUGS_TO.
61180         (top level): Use PKGVERSION.
61181         * elf/sprof.c (more_help): Use REPORT_BUGS_TO.
61182         (print_version): Use PKGVERSION.
61183         * iconv/iconv_prog.c (more_help): Use REPORT_BUGS_TO.
61184         (print_version): Use PKGVERSION.
61185         * iconv/iconvconfig.c (more_help): Use REPORT_BUGS_TO.
61186         (print_version): Use PKGVERSION.
61187         * locale/programs/locale.c (more_help): Use REPORT_BUGS_TO.
61188         (print_version): Use PKGVERSION.
61189         * locale/programs/localedef.c (more_help): Use REPORT_BUGS_TO.
61190         (print_version): Use PKGVERSION.
61191         * login/programs/pt_chown.c (more_help): Use REPORT_BUGS_TO.
61192         (print_version): Use PKGVERSION.
61193         * malloc/Makefile ($(objpfx)mtrace): Also substitute PKGVERSION
61194         and BUGURL.
61195         ($(objpfx)memusage): Likewise.
61196         * malloc/memusage.sh (do_help): Use REPORT_BUGS_TO.
61197         (do_version): Use PKGVERSION.
61198         * malloc/memusagestat.c (more_help): Use REPORT_BUGS_TO.
61199         (print_version): Use PKGVERSION.
61200         * malloc/mtrace.pl ($PACKAGE): Remove variable.
61201         ($PKGVERSION): New variable.
61202         ($REPORT_BUGS_TO): Likewise.
61203         (usage): Use $REPORT_BUGS_TO.
61204         (top level): Use $PKGVERSION.
61205         * manual/Makefile (libc-texi-generated): Add pkgvers.texi.
61206         ($(objpfx)pkgvers.texi): New rule.
61207         ($(objpfx)stamp-pkgvers): Likewise.
61208         * manual/install.texi: Include pkgvers.texi.
61209         (--with-pkgversion): Document new configure option.
61210         (--with-bugurl): Likewise.
61211         (Reporting Bugs): Describe Bugzilla as upstream tracker rather
61212         than necessarily for this particular distribution.  Use
61213         REPORT_BUGS_TO for where to report bugs.
61214         * INSTALL: Regenerated.
61215         * manual/libc.texinfo: Include pkgvers.texi.
61216         [!PKGVERSION_DEFAULT]: Include PKGVERSION in version information.
61217         * nscd/nscd.c (more_help): Use REPORT_BUGS_TO.
61218         (print_version): Use PKGVERSION.
61219         * nss/getent.c (more_help): Use REPORT_BUGS_TO.
61220         (print_version): Use PKGVERSION.
61221         * nss/makedb.c (more_help): Use REPORT_BUGS_TO.
61222         (print_version): Use PKGVERSION.
61223         * posix/getconf.c (main): Use PKGVERSION and REPORT_BUGS_TO.
61224         * sunrpc/proto.h [IS_IN_build] (_libc_intl_domainname): Remove
61225         macro.
61226         * sunrpc/rpc_main.c (options_usage): Use REPORT_BUGS_TO.
61227         (print_version): Use PKGVERSION.
61228         * sunrpc/rpcinfo.c (usage): Use REPORT_BUGS_TO.
61229         (print_version): Use PKGVERSION.
61230         * sysdeps/unix/sysv/linux/lddlibc4.c (main): Use REPORT_BUGS_TO
61231         and PKGVERSION.
61232
61233         * timezone/checktab.awk: Update from tzcode 2012i.
61234         * timezone/ialloc.c: Likewise.
61235         * timezone/private.h: Likewise.
61236         * timezone/scheck.c: Likewise.
61237         * timezone/tzfile.h: Likewise.
61238         * timezone/tzselect.ksh: Merge in changes from tzcode 2012i.
61239         (TZVERSION): Hardcode tzcode version number.
61240         * timezone/zdump.c: Update from tzcode 2012i.
61241         * timezone/zic.c: Likewise.
61242         * timezone/version.h: New file.
61243         * timezone/README: Describe version.h.  Update upstream location.
61244
61245         [BZ #14824]
61246         * stdlib/stdlib.h [__USE_XOPEN_EXTENDED && __USE_XOPEN2K]
61247         (mktemp): Enable declaration.
61248         [__USE_XOPEN_EXTENDED && __USE_XOPEN2K] (ecvt): Likewise.
61249         [__USE_XOPEN_EXTENDED && __USE_XOPEN2K] (fcvt): Likewise.
61250         [__USE_XOPEN_EXTENDED && __USE_XOPEN2K] (gcvt): Likewise.
61251         [__USE_XOPEN_EXTENDED && __USE_XOPEN2K && __USE_MISC] (qecvt):
61252         Likewise.
61253         [__USE_XOPEN_EXTENDED && __USE_XOPEN2K && __USE_MISC] (qfcvt):
61254         Likewise.
61255         [__USE_XOPEN_EXTENDED && __USE_XOPEN2K && __USE_MISC] (qgcvt):
61256         Likewise.
61257         [__USE_XOPEN_EXTENDED && __USE_XOPEN2K && __USE_MISC] (ecvt_r):
61258         Likewise.
61259         [__USE_XOPEN_EXTENDED && __USE_XOPEN2K && __USE_MISC] (fcvt_r):
61260         Likewise.
61261         [__USE_XOPEN_EXTENDED && __USE_XOPEN2K && __USE_MISC] (gcvt_r):
61262         Likewise.
61263
61264         [BZ #14821]
61265         * sunrpc/clnt_tcp.c (clnttcp_control): Access values at fixed
61266         offset in buffer as u_int32_t not u_long.  Consistently use memcpy
61267         for copies of such integer values.
61268         * sunrpc/clnt_udp.c (clntudp_control): Likewise.
61269         * sunrpc/clnt_unix.c (clntunix_control): Likewise.
61270
61271 2012-11-09  Andreas Jaeger  <aj@suse.de>
61272
61273         * sysdeps/unix/sysv/linux/powerpc/bits/fcntl.h: Remove all
61274         definitions and declarations that are provided by
61275         <bits/fcntl-linux.h> and include <bits/fcntl-linux.h>.
61276
61277 2012-11-08  Andreas Krebbel  <Andreas.Krebbel@de.ibm.com>
61278
61279         * sysdeps/s390/dl-procinfo.c (_dl_s390_cap_flags): Add "te".
61280         * sysdeps/s390/dl-procinfo.h (HWCAP_S390_TE): Add enum value.
61281         * sysdeps/unix/sysv/linux/s390/hwcap.h (HWCAP_S390_TE): Add macro
61282         definition.
61283
61284 2012-11-08  Marcus Shawcroft  <marcus.shawcroft@linaro.org>
61285
61286         * elf/elf.h: Update comment before AArch64 relocations.
61287
61288 2012-11-07  David S. Miller  <davem@davemloft.net>
61289
61290         * sysdeps/unix/sysv/linux/sparc/sparc64/__start_context.S: New file.
61291         * sysdeps/unix/sysv/linux/sparc/sparc64/makecontext.c
61292         (__start_context): Declare.
61293         (__makecontext_ret): Delete.
61294         (__makecontext): Hook up __start_context instead of
61295         __makecontext_ret.
61296         * sysdeps/unix/sysv/linux/sparc/sparc64/Makefile
61297         (sysdep_routines): Add __start_context when in stdlib.
61298
61299 2012-11-07  Joseph Myers  <joseph@codesourcery.com>
61300
61301         * sysdeps/x86/Makefile ($(objpfx)tst-xmmymm.out): Pass $(NM),
61302         $(OBJDUMP) and $(READELF) to tst-xmmymm.sh.
61303         * sysdeps/x86/tst-xmmymm.sh (NM): New variable.  Use it instead of
61304         hardcoded "nm".
61305         (OBJDUMP): New variable.  Use it instead of hardcoded "objdump".
61306         (READELF): New variable.  Use it instead of hardcoded "readelf".
61307
61308 2012-11-07  H.J. Lu  <hongjiu.lu@intel.com>
61309
61310         * sysdeps/x86_64/Makefile ($(objpfx)tst-xmmymm.out): Moved to ...
61311         * sysdeps/x86/Makefile: Here.
61312         * sysdeps/x86_64/tst-xmmymm.sh: Renamed to ...
61313         * sysdeps/x86/tst-xmmymm.sh: This.
61314
61315 2012-11-07  Joseph Myers  <joseph@codesourcery.com>
61316
61317         * conform/data/pthread.h-data [XPG3 || XPG4]: Disable all
61318         expectations.
61319         [UNIX98] (pthread_barrier_t): Do not expect.
61320         [UNIX98] (pthread_barrierattr_t): Likewise.
61321         [UNIX98] (pthread_spinlock_t): Likewise.
61322         [UNIX98] (pthread_barrier_destroy): Likewise.
61323         [UNIX98] (pthread_barrier_init): Likewise.
61324         [UNIX98] (pthread_barrier_wait): Likewise.
61325         [UNIX98] (pthread_barrierattr_destroy): Likewise.
61326         [UNIX98] (pthread_barrierattr_getpshared): Likewise.
61327         [UNIX98] (pthread_barrierattr_init): Likewise.
61328         [UNIX98] (pthread_barrierattr_setpshared): Likewise.
61329         [UNIX98] (pthread_getcpuclockid): Likewise.
61330         [UNIX98] (pthread_mutex_timedlock): Likewise.
61331         [UNIX98] (pthread_rwlock_timedrdlock): Likewise.
61332         [UNIX98] (pthread_rwlock_timedwrlock): Likewise.
61333         [UNIX98] (pthread_sigmask): Likewise.
61334         [UNIX98] (pthread_spin_destroy): Likewise.
61335         [UNIX98] (pthread_spin_init): Likewise.
61336         [UNIX98] (pthread_spin_lock): Likewise.
61337         [UNIX98] (pthread_spin_trylock): Likewise.
61338         [UNIX98] (pthread_spin_unlock): Likewise.
61339         * conform/data/sys/types.h-data [XPG3 || XPG4] (pthread_attr_t):
61340         Do not expect.
61341         [XPG3 || XPG4 || UNIX98] (pthread_barrier_t): Likewise.
61342         [XPG3 || XPG4 || UNIX98] (pthread_barrierattr_t): Likewise.
61343         [XPG3 || XPG4] (pthread_cond_t): Likewise.
61344         [XPG3 || XPG4] (pthread_condattr_t): Likewise.
61345         [XPG3 || XPG4] (pthread_key_t): Likewise.
61346         [XPG3 || XPG4] (pthread_mutex_t): Likewise.
61347         [XPG3 || XPG4] (pthread_mutexattr_t): Likewise.
61348         [XPG3 || XPG4] (pthread_once_t): Likewise.
61349         [XPG3 || XPG4] (pthread_rwlock_t): Likewise.
61350         [XPG3 || XPG4] (pthread_rwlockattr_t): Likewise.
61351         [XPG3 || XPG4 || UNIX98] (pthread_spinlock_t): Likewise.
61352         [XPG3 || XPG4] (pthread_t): Likewise.
61353
61354         * conform/data/stdlib.h-data [XPG3 || XPG4 || UNIX98] (setenv): Do
61355         not expect.
61356         [XPG3 || XPG4 || UNIX98] (unsetenv): Likewise.
61357
61358         * conform/data/math.h-data [XPG3 || XPG4 || UNIX98] (isnan):
61359         Change function return type to int.
61360
61361         * conform/data/sys/mman.h-data [!POSIX] (POSIX_MADV_NORMAL):
61362         Change condition to [!POSIX && !XPG3 && !XPG4 && !UNIX98].
61363         [!POSIX] (POSIX_MADV_SEQUENTIAL): Likewise.
61364         [!POSIX] (POSIX_MADV_RANDOM): Likewise.
61365         [!POSIX] (POSIX_MADV_WILLNEED): Likewise.
61366         [!POSIX] (POSIX_MADV_DONTNEED): Likewise.
61367         [!POSIX] (posix_madvise): Likewise.
61368         (POSIX_TYPED_MEM_ALLOCATE): Condition on [!POSIX && !XPG3 && !XPG4
61369         && !UNIX98].
61370         (POSIX_TYPED_MEM_ALLOCATE_CONTIG): Likewise.
61371         (POSIX_TYPED_MEM_MAP_ALLOCATABLE): Likewise.
61372         (mode_t): Likewise.
61373         (posix_mem_offset): Likewise.
61374         (posix_typed_mem_get_info): Likewise.
61375         (posix_typed_mem_open): Likewise.
61376
61377         * conform/data/sys/stat.h-data [!POSIX && !POSIX2008] (mknodat):
61378         Change condition to [XOPEN2K8].
61379
61380         * conform/conformtest.pl: Preprocess allow-header data with -x c
61381         instead of from stdin.
61382         (@headers): Add stdalign.h, stdbool.h and stdnoreturn.h.
61383         * conform/data/complex.h-data [C99-based standards] (cerf): Allow.
61384         [C99-based standards] (cerfc): Likewise.
61385         [C99-based standards] (cexp2): Likewise.
61386         [C99-based standards] (cexpm1): Likewise.
61387         [C99-based standards] (clog10): Likewise.
61388         [C99-based standards] (clog1p): Likewise.
61389         [C99-based standards] (clog2): Likewise.
61390         [C99-based standards] (clgamma): Likewise.
61391         [C99-based standards] (ctgamma): Likewise.
61392         [C99-based standards] (cerff): Likewise.
61393         [C99-based standards] (cerfcf): Likewise.
61394         [C99-based standards] (cexp2f): Likewise.
61395         [C99-based standards] (cexpm1f): Likewise.
61396         [C99-based standards] (clog10f): Likewise.
61397         [C99-based standards] (clog1pf): Likewise.
61398         [C99-based standards] (clog2f): Likewise.
61399         [C99-based standards] (clgammaf): Likewise.
61400         [C99-based standards] (ctgammaf): Likewise.
61401         [C99-based standards] (cerfl): Likewise.
61402         [C99-based standards] (cerfcl): Likewise.
61403         [C99-based standards] (cexp2l): Likewise.
61404         [C99-based standards] (cexpm1l): Likewise.
61405         [C99-based standards] (clog10l): Likewise.
61406         [C99-based standards] (clog1pl): Likewise.
61407         [C99-based standards] (clog2l): Likewise.
61408         [C99-based standards] (clgammal): Likewise.
61409         [C99-based standards] (ctgammal): Likewise.
61410         * conform/data/inttypes.h-data [C99-based standards]: Include
61411         stdint.h-data.  Remove all expectations for stdint.h contents.
61412         [C99-based standards] (PRI*): Do not allow.
61413         [C99-based standards] (SCN*): Likewise.
61414         [C99-based standards] (*_t): Likewise.
61415         [C99-based-standards] (PRId8): Expect macro.
61416         [C99-based-standards] (PRIi8): Likewise.
61417         [C99-based-standards] (PRIo8): Likewise.
61418         [C99-based-standards] (PRIu8): Likewise.
61419         [C99-based-standards] (PRIx8): Likewise.
61420         [C99-based-standards] (PRIX8): Likewise.
61421         [C99-based-standards] (SCNd8): Likewise.
61422         [C99-based-standards] (SCNi8): Likewise.
61423         [C99-based-standards] (SCNo8): Likewise.
61424         [C99-based-standards] (SCNu8): Likewise.
61425         [C99-based-standards] (SCNx8): Likewise.
61426         [C99-based-standards] (PRIdLEAST8): Likewise.
61427         [C99-based-standards] (PRIiLEAST8): Likewise.
61428         [C99-based-standards] (PRIoLEAST8): Likewise.
61429         [C99-based-standards] (PRIuLEAST8): Likewise.
61430         [C99-based-standards] (PRIxLEAST8): Likewise.
61431         [C99-based-standards] (PRIXLEAST8): Likewise.
61432         [C99-based-standards] (SCNdLEAST8): Likewise.
61433         [C99-based-standards] (SCNiLEAST8): Likewise.
61434         [C99-based-standards] (SCNoLEAST8): Likewise.
61435         [C99-based-standards] (SCNuLEAST8): Likewise.
61436         [C99-based-standards] (SCNxLEAST8): Likewise.
61437         [C99-based-standards] (PRIdFAST8): Likewise.
61438         [C99-based-standards] (PRIiFAST8): Likewise.
61439         [C99-based-standards] (PRIoFAST8): Likewise.
61440         [C99-based-standards] (PRIuFAST8): Likewise.
61441         [C99-based-standards] (PRIxFAST8): Likewise.
61442         [C99-based-standards] (PRIXFAST8): Likewise.
61443         [C99-based-standards] (SCNdFAST8): Likewise.
61444         [C99-based-standards] (SCNiFAST8): Likewise.
61445         [C99-based-standards] (SCNoFAST8): Likewise.
61446         [C99-based-standards] (SCNuFAST8): Likewise.
61447         [C99-based-standards] (SCNxFAST8): Likewise.
61448         [C99-based-standards] (PRId16): Likewise.
61449         [C99-based-standards] (PRIi16): Likewise.
61450         [C99-based-standards] (PRIo16): Likewise.
61451         [C99-based-standards] (PRIu16): Likewise.
61452         [C99-based-standards] (PRIx16): Likewise.
61453         [C99-based-standards] (PRIX16): Likewise.
61454         [C99-based-standards] (SCNd16): Likewise.
61455         [C99-based-standards] (SCNi16): Likewise.
61456         [C99-based-standards] (SCNo16): Likewise.
61457         [C99-based-standards] (SCNu16): Likewise.
61458         [C99-based-standards] (SCNx16): Likewise.
61459         [C99-based-standards] (PRIdLEAST16): Likewise.
61460         [C99-based-standards] (PRIiLEAST16): Likewise.
61461         [C99-based-standards] (PRIoLEAST16): Likewise.
61462         [C99-based-standards] (PRIuLEAST16): Likewise.
61463         [C99-based-standards] (PRIxLEAST16): Likewise.
61464         [C99-based-standards] (PRIXLEAST16): Likewise.
61465         [C99-based-standards] (SCNdLEAST16): Likewise.
61466         [C99-based-standards] (SCNiLEAST16): Likewise.
61467         [C99-based-standards] (SCNoLEAST16): Likewise.
61468         [C99-based-standards] (SCNuLEAST16): Likewise.
61469         [C99-based-standards] (SCNxLEAST16): Likewise.
61470         [C99-based-standards] (PRIdFAST16): Likewise.
61471         [C99-based-standards] (PRIiFAST16): Likewise.
61472         [C99-based-standards] (PRIoFAST16): Likewise.
61473         [C99-based-standards] (PRIuFAST16): Likewise.
61474         [C99-based-standards] (PRIxFAST16): Likewise.
61475         [C99-based-standards] (PRIXFAST16): Likewise.
61476         [C99-based-standards] (SCNdFAST16): Likewise.
61477         [C99-based-standards] (SCNiFAST16): Likewise.
61478         [C99-based-standards] (SCNoFAST16): Likewise.
61479         [C99-based-standards] (SCNuFAST16): Likewise.
61480         [C99-based-standards] (SCNxFAST16): Likewise.
61481         [C99-based-standards] (PRId32): Likewise.
61482         [C99-based-standards] (PRIi32): Likewise.
61483         [C99-based-standards] (PRIo32): Likewise.
61484         [C99-based-standards] (PRIu32): Likewise.
61485         [C99-based-standards] (PRIx32): Likewise.
61486         [C99-based-standards] (PRIX32): Likewise.
61487         [C99-based-standards] (SCNd32): Likewise.
61488         [C99-based-standards] (SCNi32): Likewise.
61489         [C99-based-standards] (SCNo32): Likewise.
61490         [C99-based-standards] (SCNu32): Likewise.
61491         [C99-based-standards] (SCNx32): Likewise.
61492         [C99-based-standards] (PRIdLEAST32): Likewise.
61493         [C99-based-standards] (PRIiLEAST32): Likewise.
61494         [C99-based-standards] (PRIoLEAST32): Likewise.
61495         [C99-based-standards] (PRIuLEAST32): Likewise.
61496         [C99-based-standards] (PRIxLEAST32): Likewise.
61497         [C99-based-standards] (PRIXLEAST32): Likewise.
61498         [C99-based-standards] (SCNdLEAST32): Likewise.
61499         [C99-based-standards] (SCNiLEAST32): Likewise.
61500         [C99-based-standards] (SCNoLEAST32): Likewise.
61501         [C99-based-standards] (SCNuLEAST32): Likewise.
61502         [C99-based-standards] (SCNxLEAST32): Likewise.
61503         [C99-based-standards] (PRIdFAST32): Likewise.
61504         [C99-based-standards] (PRIiFAST32): Likewise.
61505         [C99-based-standards] (PRIoFAST32): Likewise.
61506         [C99-based-standards] (PRIuFAST32): Likewise.
61507         [C99-based-standards] (PRIxFAST32): Likewise.
61508         [C99-based-standards] (PRIXFAST32): Likewise.
61509         [C99-based-standards] (SCNdFAST32): Likewise.
61510         [C99-based-standards] (SCNiFAST32): Likewise.
61511         [C99-based-standards] (SCNoFAST32): Likewise.
61512         [C99-based-standards] (SCNuFAST32): Likewise.
61513         [C99-based-standards] (SCNxFAST32): Likewise.
61514         [C99-based-standards] (PRId64): Likewise.
61515         [C99-based-standards] (PRIi64): Likewise.
61516         [C99-based-standards] (PRIo64): Likewise.
61517         [C99-based-standards] (PRIu64): Likewise.
61518         [C99-based-standards] (PRIx64): Likewise.
61519         [C99-based-standards] (PRIX64): Likewise.
61520         [C99-based-standards] (SCNd64): Likewise.
61521         [C99-based-standards] (SCNi64): Likewise.
61522         [C99-based-standards] (SCNo64): Likewise.
61523         [C99-based-standards] (SCNu64): Likewise.
61524         [C99-based-standards] (SCNx64): Likewise.
61525         [C99-based-standards] (PRIdLEAST64): Likewise.
61526         [C99-based-standards] (PRIiLEAST64): Likewise.
61527         [C99-based-standards] (PRIoLEAST64): Likewise.
61528         [C99-based-standards] (PRIuLEAST64): Likewise.
61529         [C99-based-standards] (PRIxLEAST64): Likewise.
61530         [C99-based-standards] (PRIXLEAST64): Likewise.
61531         [C99-based-standards] (SCNdLEAST64): Likewise.
61532         [C99-based-standards] (SCNiLEAST64): Likewise.
61533         [C99-based-standards] (SCNoLEAST64): Likewise.
61534         [C99-based-standards] (SCNuLEAST64): Likewise.
61535         [C99-based-standards] (SCNxLEAST64): Likewise.
61536         [C99-based-standards] (PRIdFAST64): Likewise.
61537         [C99-based-standards] (PRIiFAST64): Likewise.
61538         [C99-based-standards] (PRIoFAST64): Likewise.
61539         [C99-based-standards] (PRIuFAST64): Likewise.
61540         [C99-based-standards] (PRIxFAST64): Likewise.
61541         [C99-based-standards] (PRIXFAST64): Likewise.
61542         [C99-based-standards] (SCNdFAST64): Likewise.
61543         [C99-based-standards] (SCNiFAST64): Likewise.
61544         [C99-based-standards] (SCNoFAST64): Likewise.
61545         [C99-based-standards] (SCNuFAST64): Likewise.
61546         [C99-based-standards] (SCNxFAST64): Likewise.
61547         [C99-based-standards] (PRIdMAX): Likewise.
61548         [C99-based-standards] (PRIiMAX): Likewise.
61549         [C99-based-standards] (PRIoMAX): Likewise.
61550         [C99-based-standards] (PRIuMAX): Likewise.
61551         [C99-based-standards] (PRIxMAX): Likewise.
61552         [C99-based-standards] (PRIXMAX): Likewise.
61553         [C99-based-standards] (SCNdMAX): Likewise.
61554         [C99-based-standards] (SCNiMAX): Likewise.
61555         [C99-based-standards] (SCNoMAX): Likewise.
61556         [C99-based-standards] (SCNuMAX): Likewise.
61557         [C99-based-standards] (SCNxMAX): Likewise.
61558         [C99-based-standards] (PRIdPTR): Likewise.
61559         [C99-based-standards] (PRIiPTR): Likewise.
61560         [C99-based-standards] (PRIoPTR): Likewise.
61561         [C99-based-standards] (PRIuPTR): Likewise.
61562         [C99-based-standards] (PRIxPTR): Likewise.
61563         [C99-based-standards] (PRIXPTR): Likewise.
61564         [C99-based-standards] (SCNdPTR): Likewise.
61565         [C99-based-standards] (SCNiPTR): Likewise.
61566         [C99-based-standards] (SCNoPTR): Likewise.
61567         [C99-based-standards] (SCNuPTR): Likewise.
61568         [C99-based-standards] (SCNxPTR): Likewise.
61569         * conform/data/iso646.h-data [ISO C standards] (*_t): Do not
61570         allow.
61571         * conform/data/stdint.h-data: Update comments to clarify
61572         requirements.
61573         [C99-based standards] (INT8_MIN): Use macro-int-constant.  Specify
61574         type.
61575         [C99-based standards] (INT8_MAX): Likewise.
61576         [C99-based standards] (INT16_MIN): Likewise.
61577         [C99-based standards] (INT16_MAX): Likewise.
61578         [C99-based standards] (INT32_MIN): Likewise.
61579         [C99-based standards] (INT32_MAX): Likewise.
61580         [C99-based standards] (INT64_MIN): Likewise.
61581         [C99-based standards] (INT64_MAX): Likewise.
61582         [C99-based standards] (UINT8_MAX): Likewise.
61583         [C99-based standards] (UINT16_MAX): Likewise.
61584         [C99-based standards] (UINT32_MAX): Likewise.
61585         [C99-based standards] (UINT64_MAX): Likewise.
61586         [C99-based standards] (INT_LEAST8_MIN): Likewise.
61587         [C99-based standards] (INT_LEAST8_MAX): Likewise.
61588         [C99-based standards] (INT_LEAST16_MIN): Likewise.
61589         [C99-based standards] (INT_LEAST16_MAX): Likewise.
61590         [C99-based standards] (INT_LEAST32_MIN): Likewise.
61591         [C99-based standards] (INT_LEAST32_MAX): Likewise.
61592         [C99-based standards] (INT_LEAST64_MIN): Likewise.
61593         [C99-based standards] (INT_LEAST64_MAX): Likewise.
61594         [C99-based standards] (UINT_LEAST8_MAX): Likewise.
61595         [C99-based standards] (UINT_LEAST16_MAX): Likewise.
61596         [C99-based standards] (UINT_LEAST32_MAX): Likewise.
61597         [C99-based standards] (UINT_LEAST64_MAX): Likewise.
61598         [C99-based standards] (INT_FAST8_MIN): Likewise.
61599         [C99-based standards] (INT_FAST8_MAX): Likewise.
61600         [C99-based standards] (INT_FAST16_MIN): Likewise.
61601         [C99-based standards] (INT_FAST16_MAX): Likewise.
61602         [C99-based standards] (INT_FAST32_MIN): Likewise.
61603         [C99-based standards] (INT_FAST32_MAX): Likewise.
61604         [C99-based standards] (INT_FAST64_MIN): Likewise.
61605         [C99-based standards] (INT_FAST64_MAX): Likewise.
61606         [C99-based standards] (UINT_FAST8_MAX): Likewise.
61607         [C99-based standards] (UINT_FAST16_MAX): Likewise.
61608         [C99-based standards] (UINT_FAST32_MAX): Likewise.
61609         [C99-based standards] (UINT_FAST64_MAX): Likewise.
61610         [C99-based standards] (INTPTR_MIN): Likewise.
61611         [C99-based standards] (INTPTR_MAX): Likewise.
61612         [C99-based standards] (UINTPTR_MAX): Likewise.
61613         [C99-based standards] (INTMAX_MIN): Likewise.
61614         [C99-based standards] (INTMAX_MAX): Likewise.
61615         [C99-based standards] (UINTMAX_MAX): Likewise.
61616         [C99-based standards] (PTRDIFF_MIN): Likewise.
61617         [C99-based standards] (PTRDIFF_MAX): Likewise.
61618         [C99-based standards] (SIG_ATOMIC_MAX): Likewise.
61619         [C99-based standards] (SIZE_MAX): Likewise.
61620         [C99-based standards] (WCHAR_MAX): Likewise.
61621         [C99-based standards] (WINT_MAX): Likewise.
61622         [C99-based standards] (SIG_ATOMIC_MIN): Likewise.  Do not specify
61623         constraint on value.
61624         [C99-based standards] (WCHAR_MIN): Likewise.
61625         [C99-based standards] (WINT_MIN): Likewise.
61626         [C99-based standards] (*_t): Allow.
61627         * conform/data/tgmath.h-data [XOPEN2K || POSIX2008]: Change
61628         condition to [!ISO && !POSIX && !XPG3 && !XPG4 && !UNIX98].
61629         Include math.h-data and complex.h-data.  Remove all expectations
61630         of math.h and complex.h contents.
61631         * conform/data/uchar.h-data [ISO11] (c16rtomb): Remove stray "16"
61632         at end of line.
61633         * conform/data/wchar.h-data [!ISO && !POSIX && !XPG3 && !XPG4]
61634         (struct tm): Expect tag.
61635         [C99-based-standards] (wcstof): Expect function.
61636         [C99-based-standards] (wcstold): Likewise.
61637         [C99-based-standards] (wcstoll): Likewise.
61638         [C99-based-standards] (wcstoull): Likewise.
61639         [!ISO && !POSIX && !XPG3 && !XPG4] (WCHAR_MIN): Use
61640         macro-int-constant.  Specify type.
61641         [!ISO && !POSIX && !XPG3 && !XPG4] (WCHAR_MAX): Likewise.  Specify
61642         constraint on value.
61643         [!ISO && !POSIX && !XPG3 && !XPG4] (WEOF): Use macro-constant.
61644         Specify type.
61645         [!ISO && !POSIX && !XPG3 && !XPG4] (NULL): Use macro-constant.
61646         Specify value.
61647         [ISO C standards]: Do not allow headers.
61648         [!ISO && !POSIX && !XPG3 && !XPG4] (wcs*): Change to
61649         wcs[abcdefghijklmnopqrstuvwxyz]*.
61650         [ISO C standards] (*_t): Do not allow.
61651         * conform/data/wctype.h-data [C99-based standards] (iswblank):
61652         Expect function.
61653         [XOPEN2K8 || POSIX2008] (iswblank_l): Likewise.
61654         [!ISO && !POSIX && !XPG3 && !XPG4] (WEOF): Use macro-constant.
61655         Specify type.
61656         [ISO C standards]: Do not allow headers.
61657         [!ISO && !POSIX && !XPG3 && !XPG4] (is*): Change to
61658         is[abcdefghijklmnopqrstuvwxyz]*.
61659         [!ISO && !POSIX && !XPG3 && !XPG4] (to*): Change to
61660         to[abcdefghijklmnopqrstuvwxyz]*.
61661         [ISO C standards] (*_t): Do not allow.
61662         * conform/data/stdalign.h-data: New file.
61663         * conform/data/stdbool.h-data: Likewise.
61664         * conform/data/stdnoreturn.h-data: Likewise.
61665
61666 2012-11-07  Roland McGrath  <roland@hack.frob.com>
61667
61668         [BZ #14815]
61669         * manual/filesys.texi (Directory Entries): Typo fix.
61670         Reported by <h-iwamoto@kit.hi-ho.ne.jp>.
61671
61672 2012-11-07  Marcus Shawcroft  <marcus.shawcroft@linaro.org>
61673
61674         * elf/elf.h (EM_AARCH64): New macro.
61675         (R_AARCH64_NONE, R_AARCH64_ABS64, R_AARCH64_ABS32): Likewise.
61676         (R_AARCH64_COPY, R_AARCH64_GLOB_DAT, R_AARCH64_JUMP_SLOT): Likewise.
61677         (R_AARCH64_RELATIVE, R_AARCH64_TLS_DTPMOD64): Likewise.
61678         (R_AARCH64_TLS_DTPREL64, R_AARCH64_TLS_TPREL64): Likewise.
61679         (R_AARCH64_TLSDESC): Likewise.
61680         (NT_ARM_TLS): Likewise.
61681         (NT_ARM_HW_BREAK): Likewise.
61682         (NT_ARM_HW_WATCH): Likewise.
61683
61684 2012-11-07  Joseph Myers  <joseph@codesourcery.com>
61685
61686         [BZ #14811]
61687         * sysdeps/i386/fpu/e_powl.S (pm79): New object.
61688         (__ieee754_powl): Saturate nonzero exponents with absolute value
61689         below 0x1p-79 to +/- 0x1p-79.
61690         * sysdeps/ieee754/dbl-64/e_pow.c (__ieee754_pow): Saturate nonzero
61691         exponents with absolute value below 0x1p-64 to +/- 0x1p-64.
61692         * sysdeps/ieee754/flt-32/e_powf.c (__ieee754_powf): Saturate
61693         nonzero exponents with absolute value below 0x1p-32 to +/-
61694         0x1p-32.
61695         * sysdeps/x86_64/fpu/e_powl.S (pm79): New object.
61696         (__ieee754_powl): Saturate nonzero exponents with absolute value
61697         below 0x1p-79 to +/- 0x1p-79.
61698         * math/libm-test.inc (pow_test): Add more tests.
61699
61700 2012-11-07  Andreas Krebbel  <Andreas.Krebbel@de.ibm.com>
61701
61702         * sysdeps/s390/dl-procinfo.c (_dl_s390_cap_flags): Sync
61703         _dl_s390_cap_flags with kernel. Increase string length.
61704         (_dl_s390_platforms): Add z196 and zEC12.
61705
61706 2012-11-07  Joseph Myers  <joseph@codesourcery.com>
61707
61708         * conform/data/time.h-data [!XOPEN21K && !XOPEN2K8 && !POSIX2008]:
61709         Change XOPEN21K to XOPEN2K.
61710
61711 2012-11-06  Maxim Kuvyrkov  <maxim@codesourcery.com>
61712
61713         * string/memmove.c: Use memcpy when possible.
61714
61715 2012-11-06  Andreas Jaeger  <aj@suse.de>
61716
61717         * po/eo.po: Update from translation team.
61718
61719 2012-11-06  Joseph Myers  <joseph@codesourcery.com>
61720
61721         [BZ #14793]
61722         * sysdeps/ieee754/dbl-64/s_fma.c (__fma): In case of large z
61723         exponent and small x and y exponents, scale x or y up.  Increase
61724         by 2 the exponent used in scaling up.
61725         * sysdeps/ieee754/ldbl-128/s_fmal.c (__fmal): Likewise.
61726         * sysdeps/ieee754/ldbl-96/s_fmal.c (__fmal): Likewise.
61727         * math/libm-test.inc (fma_test): Add more tests.
61728         (fma_test_towardzero): Likewise.
61729         (fma_test_downward): Likewise.
61730         (fma_test_upward): Likewise.
61731
61732 2012-11-05  Joseph Myers  <joseph@codesourcery.com>
61733
61734         [BZ #14805]
61735         * sysdeps/sh/sh4/fpu/bits/fenv.h (FE_DFL_ENV): Use cast to const
61736         fenv_t *.
61737
61738         [BZ #14801]
61739         * sysdeps/s390/fpu/bits/fenv.h (fenv_t): Use implementation
61740         namespace for names of struct fields.
61741         * sysdeps/s390/fpu/fegetenv.c (fegetenv): Update references to
61742         fenv_t fields.
61743         * sysdeps/s390/fpu/feholdexcpt.c (feholdexcept): Likewise.
61744         * sysdeps/s390/fpu/fesetenv.c (fesetenv): Likewise.
61745
61746 2012-11-04  Samuel Thibault  <samuel.thibault@ens-lyon.org>
61747
61748         [BZ #3665]
61749         * sysdeps/mach/hurd/bits/errno.h: Regenerated.
61750
61751 2012-11-04  Thomas Schwinge  <thomas@codesourcery.com>
61752
61753         * csu/libc-start.c (LIBC_START_MAIN): Conditionalize use of
61754         PTR_DEMANGLE.
61755
61756         [BZ #5246]
61757         * sysdeps/mach/hurd/i386/____longjmp_chk.S: Conditionalize use of
61758         PTR_DEMANGLE.
61759
61760 2012-11-04  Joseph Myers  <joseph@codesourcery.com>
61761
61762         [BZ #14797]
61763         * sysdeps/ieee754/dbl-64/s_fma.c (__fma): Compute cases that
61764         definitely overflow as x * y not x * y + z.
61765         * sysdeps/ieee754/ldbl-128/s_fmal.c (__fmal): Likewise.
61766         * sysdeps/ieee754/ldbl-96/s_fmal.c (__fmal): Likewise.
61767         * math/libm-test.inc (fma_test): Add more tests.
61768         (fma_test_towardzero): Likewise.
61769         (fma_test_downward): Likewise.
61770         (fma_test_upward): Likewise.
61771
61772 2012-11-04  Thomas Schwinge  <thomas@codesourcery.com>
61773
61774         [BZ #157]
61775
61776         * include/stub-tag.h: Remove file.
61777         * sysdeps/unix/Makefile ($(objpfx)stub-syscalls.c): Don't emit
61778         '#include' of it.
61779         * manual/maint.texi (Porting): Don't reference it.
61780         * Makerules ($(objpfx)stubs): Likewise.
61781         * dirent/closedir.c: Don't include <stub-tag.h>.
61782         * dirent/dirfd.c: Likewise.
61783         * dirent/fdopendir.c: Likewise.
61784         * dirent/getdents.c: Likewise.
61785         * dirent/getdents64.c: Likewise.
61786         * dirent/opendir.c: Likewise.
61787         * dirent/readdir.c: Likewise.
61788         * dirent/readdir64.c: Likewise.
61789         * dirent/readdir64_r.c: Likewise.
61790         * dirent/readdir_r.c: Likewise.
61791         * dirent/rewinddir.c: Likewise.
61792         * dirent/seekdir.c: Likewise.
61793         * dirent/telldir.c: Likewise.
61794         * gmon/profil.c: Likewise.
61795         * grp/setgroups.c: Likewise.
61796         * inet/if_index.c: Likewise.
61797         * io/access.c: Likewise.
61798         * io/chdir.c: Likewise.
61799         * io/chmod.c: Likewise.
61800         * io/chown.c: Likewise.
61801         * io/close.c: Likewise.
61802         * io/dup.c: Likewise.
61803         * io/dup2.c: Likewise.
61804         * io/dup3.c: Likewise.
61805         * io/euidaccess.c: Likewise.
61806         * io/faccessat.c: Likewise.
61807         * io/fchdir.c: Likewise.
61808         * io/fchmod.c: Likewise.
61809         * io/fchmodat.c: Likewise.
61810         * io/fchown.c: Likewise.
61811         * io/fchownat.c: Likewise.
61812         * io/fcntl.c: Likewise.
61813         * io/flock.c: Likewise.
61814         * io/fstatfs.c: Likewise.
61815         * io/fstatfs64.c: Likewise.
61816         * io/fstatvfs.c: Likewise.
61817         * io/fstatvfs64.c: Likewise.
61818         * io/futimens.c: Likewise.
61819         * io/fxstat.c: Likewise.
61820         * io/fxstat64.c: Likewise.
61821         * io/fxstatat.c: Likewise.
61822         * io/fxstatat64.c: Likewise.
61823         * io/getcwd.c: Likewise.
61824         * io/isatty.c: Likewise.
61825         * io/lchmod.c: Likewise.
61826         * io/lchown.c: Likewise.
61827         * io/link.c: Likewise.
61828         * io/linkat.c: Likewise.
61829         * io/lseek.c: Likewise.
61830         * io/lseek64.c: Likewise.
61831         * io/lxstat64.c: Likewise.
61832         * io/mkdir.c: Likewise.
61833         * io/mkdirat.c: Likewise.
61834         * io/mkfifo.c: Likewise.
61835         * io/mkfifoat.c: Likewise.
61836         * io/open.c: Likewise.
61837         * io/open64.c: Likewise.
61838         * io/openat.c: Likewise.
61839         * io/openat64.c: Likewise.
61840         * io/pipe.c: Likewise.
61841         * io/pipe2.c: Likewise.
61842         * io/poll.c: Likewise.
61843         * io/posix_fadvise.c: Likewise.
61844         * io/posix_fadvise64.c: Likewise.
61845         * io/posix_fallocate.c: Likewise.
61846         * io/posix_fallocate64.c: Likewise.
61847         * io/read.c: Likewise.
61848         * io/readlink.c: Likewise.
61849         * io/readlinkat.c: Likewise.
61850         * io/rmdir.c: Likewise.
61851         * io/sendfile.c: Likewise.
61852         * io/sendfile64.c: Likewise.
61853         * io/statfs.c: Likewise.
61854         * io/statfs64.c: Likewise.
61855         * io/statvfs.c: Likewise.
61856         * io/statvfs64.c: Likewise.
61857         * io/symlink.c: Likewise.
61858         * io/symlinkat.c: Likewise.
61859         * io/ttyname.c: Likewise.
61860         * io/ttyname_r.c: Likewise.
61861         * io/umask.c: Likewise.
61862         * io/unlink.c: Likewise.
61863         * io/unlinkat.c: Likewise.
61864         * io/utime.c: Likewise.
61865         * io/utimensat.c: Likewise.
61866         * io/write.c: Likewise.
61867         * io/xmknod.c: Likewise.
61868         * io/xmknodat.c: Likewise.
61869         * io/xstat.c: Likewise.
61870         * io/xstat64.c: Likewise.
61871         * login/getpt.c: Likewise.
61872         * login/grantpt.c: Likewise.
61873         * login/unlockpt.c: Likewise.
61874         * math/e_acoshl.c: Likewise.
61875         * math/e_acosl.c: Likewise.
61876         * math/e_asinl.c: Likewise.
61877         * math/e_atan2l.c: Likewise.
61878         * math/e_atanhl.c: Likewise.
61879         * math/e_coshl.c: Likewise.
61880         * math/e_expl.c: Likewise.
61881         * math/e_fmodl.c: Likewise.
61882         * math/e_gammal_r.c: Likewise.
61883         * math/e_hypotl.c: Likewise.
61884         * math/e_j0l.c: Likewise.
61885         * math/e_j1l.c: Likewise.
61886         * math/e_jnl.c: Likewise.
61887         * math/e_lgammal_r.c: Likewise.
61888         * math/e_log10l.c: Likewise.
61889         * math/e_log2l.c: Likewise.
61890         * math/e_logl.c: Likewise.
61891         * math/e_powl.c: Likewise.
61892         * math/e_rem_pio2l.c: Likewise.
61893         * math/e_sinhl.c: Likewise.
61894         * math/e_sqrtl.c: Likewise.
61895         * math/fclrexcpt.c: Likewise.
61896         * math/fedisblxcpt.c: Likewise.
61897         * math/feenablxcpt.c: Likewise.
61898         * math/fegetenv.c: Likewise.
61899         * math/fegetexcept.c: Likewise.
61900         * math/fegetround.c: Likewise.
61901         * math/feholdexcpt.c: Likewise.
61902         * math/fesetenv.c: Likewise.
61903         * math/fesetround.c: Likewise.
61904         * math/feupdateenv.c: Likewise.
61905         * math/fgetexcptflg.c: Likewise.
61906         * math/fraiseexcpt.c: Likewise.
61907         * math/fsetexcptflg.c: Likewise.
61908         * math/ftestexcept.c: Likewise.
61909         * math/k_cosl.c: Likewise.
61910         * math/k_rem_pio2l.c: Likewise.
61911         * math/k_sinl.c: Likewise.
61912         * math/k_tanl.c: Likewise.
61913         * math/s_asinhl.c: Likewise.
61914         * math/s_atanl.c: Likewise.
61915         * math/s_cbrtl.c: Likewise.
61916         * math/s_erfl.c: Likewise.
61917         * math/s_expm1l.c: Likewise.
61918         * math/s_log1pl.c: Likewise.
61919         * math/s_tanhl.c: Likewise.
61920         * misc/acct.c: Likewise.
61921         * misc/brk.c: Likewise.
61922         * misc/chflags.c: Likewise.
61923         * misc/chroot.c: Likewise.
61924         * misc/fchflags.c: Likewise.
61925         * misc/fgetxattr.c: Likewise.
61926         * misc/flistxattr.c: Likewise.
61927         * misc/fremovexattr.c: Likewise.
61928         * misc/fsetxattr.c: Likewise.
61929         * misc/fsync.c: Likewise.
61930         * misc/ftruncate.c: Likewise.
61931         * misc/futimes.c: Likewise.
61932         * misc/futimesat.c: Likewise.
61933         * misc/getdomain.c: Likewise.
61934         * misc/getdtsz.c: Likewise.
61935         * misc/gethostid.c: Likewise.
61936         * misc/gethostname.c: Likewise.
61937         * misc/getloadavg.c: Likewise.
61938         * misc/getpagesize.c: Likewise.
61939         * misc/getsysstats.c: Likewise.
61940         * misc/getxattr.c: Likewise.
61941         * misc/gtty.c: Likewise.
61942         * misc/ioctl.c: Likewise.
61943         * misc/lgetxattr.c: Likewise.
61944         * misc/listxattr.c: Likewise.
61945         * misc/llistxattr.c: Likewise.
61946         * misc/lremovexattr.c: Likewise.
61947         * misc/lsetxattr.c: Likewise.
61948         * misc/lutimes.c: Likewise.
61949         * misc/madvise.c: Likewise.
61950         * misc/mincore.c: Likewise.
61951         * misc/mlock.c: Likewise.
61952         * misc/mlockall.c: Likewise.
61953         * misc/mmap.c: Likewise.
61954         * misc/mprotect.c: Likewise.
61955         * misc/msync.c: Likewise.
61956         * misc/munlock.c: Likewise.
61957         * misc/munlockall.c: Likewise.
61958         * misc/munmap.c: Likewise.
61959         * misc/preadv.c: Likewise.
61960         * misc/preadv64.c: Likewise.
61961         * misc/ptrace.c: Likewise.
61962         * misc/pwritev.c: Likewise.
61963         * misc/pwritev64.c: Likewise.
61964         * misc/readv.c: Likewise.
61965         * misc/reboot.c: Likewise.
61966         * misc/remap_file_pages.c: Likewise.
61967         * misc/removexattr.c: Likewise.
61968         * misc/revoke.c: Likewise.
61969         * misc/select.c: Likewise.
61970         * misc/setdomain.c: Likewise.
61971         * misc/setegid.c: Likewise.
61972         * misc/seteuid.c: Likewise.
61973         * misc/sethostid.c: Likewise.
61974         * misc/sethostname.c: Likewise.
61975         * misc/setregid.c: Likewise.
61976         * misc/setreuid.c: Likewise.
61977         * misc/setxattr.c: Likewise.
61978         * misc/sstk.c: Likewise.
61979         * misc/stty.c: Likewise.
61980         * misc/swapoff.c: Likewise.
61981         * misc/swapon.c: Likewise.
61982         * misc/sync.c: Likewise.
61983         * misc/syncfs.c: Likewise.
61984         * misc/syscall.c: Likewise.
61985         * misc/truncate.c: Likewise.
61986         * misc/ualarm.c: Likewise.
61987         * misc/usleep.c: Likewise.
61988         * misc/ustat.c: Likewise.
61989         * misc/utimes.c: Likewise.
61990         * misc/vhangup.c: Likewise.
61991         * misc/writev.c: Likewise.
61992         * posix/_exit.c: Likewise.
61993         * posix/alarm.c: Likewise.
61994         * posix/execve.c: Likewise.
61995         * posix/fexecve.c: Likewise.
61996         * posix/fork.c: Likewise.
61997         * posix/fpathconf.c: Likewise.
61998         * posix/getaddrinfo.c: Likewise.
61999         * posix/getegid.c: Likewise.
62000         * posix/geteuid.c: Likewise.
62001         * posix/getgid.c: Likewise.
62002         * posix/getgroups.c: Likewise.
62003         * posix/getlogin.c: Likewise.
62004         * posix/getlogin_r.c: Likewise.
62005         * posix/getpgid.c: Likewise.
62006         * posix/getpid.c: Likewise.
62007         * posix/getppid.c: Likewise.
62008         * posix/getresgid.c: Likewise.
62009         * posix/getresuid.c: Likewise.
62010         * posix/getsid.c: Likewise.
62011         * posix/getuid.c: Likewise.
62012         * posix/glob64.c: Likewise.
62013         * posix/nanosleep.c: Likewise.
62014         * posix/pathconf.c: Likewise.
62015         * posix/pause.c: Likewise.
62016         * posix/posix_madvise.c: Likewise.
62017         * posix/pread.c: Likewise.
62018         * posix/pread64.c: Likewise.
62019         * posix/pwrite.c: Likewise.
62020         * posix/pwrite64.c: Likewise.
62021         * posix/sched_getaffinity.c: Likewise.
62022         * posix/sched_getp.c: Likewise.
62023         * posix/sched_gets.c: Likewise.
62024         * posix/sched_primax.c: Likewise.
62025         * posix/sched_primin.c: Likewise.
62026         * posix/sched_rr_gi.c: Likewise.
62027         * posix/sched_setaffinity.c: Likewise.
62028         * posix/sched_setp.c: Likewise.
62029         * posix/sched_sets.c: Likewise.
62030         * posix/sched_yield.c: Likewise.
62031         * posix/setgid.c: Likewise.
62032         * posix/setlogin.c: Likewise.
62033         * posix/setpgid.c: Likewise.
62034         * posix/setresgid.c: Likewise.
62035         * posix/setresuid.c: Likewise.
62036         * posix/setsid.c: Likewise.
62037         * posix/setuid.c: Likewise.
62038         * posix/sleep.c: Likewise.
62039         * posix/spawni.c: Likewise.
62040         * posix/sysconf.c: Likewise.
62041         * posix/times.c: Likewise.
62042         * posix/wait.c: Likewise.
62043         * posix/wait3.c: Likewise.
62044         * posix/wait4.c: Likewise.
62045         * posix/waitpid.c: Likewise.
62046         * resolv/gai_sigqueue.c: Likewise.
62047         * resource/getpriority.c: Likewise.
62048         * resource/getrlimit.c: Likewise.
62049         * resource/getrusage.c: Likewise.
62050         * resource/nice.c: Likewise.
62051         * resource/setpriority.c: Likewise.
62052         * resource/setrlimit.c: Likewise.
62053         * resource/ulimit.c: Likewise.
62054         * rt/aio_cancel.c: Likewise.
62055         * rt/aio_fsync.c: Likewise.
62056         * rt/aio_read.c: Likewise.
62057         * rt/aio_sigqueue.c: Likewise.
62058         * rt/aio_suspend.c: Likewise.
62059         * rt/aio_write.c: Likewise.
62060         * rt/clock_getres.c: Likewise.
62061         * rt/clock_gettime.c: Likewise.
62062         * rt/clock_nanosleep.c: Likewise.
62063         * rt/clock_settime.c: Likewise.
62064         * rt/lio_listio.c: Likewise.
62065         * rt/mq_close.c: Likewise.
62066         * rt/mq_getattr.c: Likewise.
62067         * rt/mq_notify.c: Likewise.
62068         * rt/mq_open.c: Likewise.
62069         * rt/mq_receive.c: Likewise.
62070         * rt/mq_send.c: Likewise.
62071         * rt/mq_setattr.c: Likewise.
62072         * rt/mq_timedreceive.c: Likewise.
62073         * rt/mq_timedsend.c: Likewise.
62074         * rt/mq_unlink.c: Likewise.
62075         * rt/shm_open.c: Likewise.
62076         * rt/shm_unlink.c: Likewise.
62077         * rt/timer_create.c: Likewise.
62078         * rt/timer_delete.c: Likewise.
62079         * rt/timer_getoverr.c: Likewise.
62080         * rt/timer_gettime.c: Likewise.
62081         * rt/timer_settime.c: Likewise.
62082         * setjmp/__longjmp.c: Likewise.
62083         * setjmp/setjmp.c: Likewise.
62084         * signal/kill.c: Likewise.
62085         * signal/killpg.c: Likewise.
62086         * signal/raise.c: Likewise.
62087         * signal/sigaction.c: Likewise.
62088         * signal/sigaltstack.c: Likewise.
62089         * signal/sigblock.c: Likewise.
62090         * signal/sigignore.c: Likewise.
62091         * signal/sigintr.c: Likewise.
62092         * signal/signal.c: Likewise.
62093         * signal/sigpause.c: Likewise.
62094         * signal/sigpending.c: Likewise.
62095         * signal/sigqueue.c: Likewise.
62096         * signal/sigreturn.c: Likewise.
62097         * signal/sigset.c: Likewise.
62098         * signal/sigsetmask.c: Likewise.
62099         * signal/sigstack.c: Likewise.
62100         * signal/sigsuspend.c: Likewise.
62101         * signal/sigtimedwait.c: Likewise.
62102         * signal/sigvec.c: Likewise.
62103         * signal/sigwait.c: Likewise.
62104         * signal/sigwaitinfo.c: Likewise.
62105         * signal/sysv_signal.c: Likewise.
62106         * socket/accept.c: Likewise.
62107         * socket/accept4.c: Likewise.
62108         * socket/bind.c: Likewise.
62109         * socket/connect.c: Likewise.
62110         * socket/getpeername.c: Likewise.
62111         * socket/getsockname.c: Likewise.
62112         * socket/getsockopt.c: Likewise.
62113         * socket/isfdtype.c: Likewise.
62114         * socket/listen.c: Likewise.
62115         * socket/recv.c: Likewise.
62116         * socket/recvfrom.c: Likewise.
62117         * socket/recvmsg.c: Likewise.
62118         * socket/send.c: Likewise.
62119         * socket/sendmsg.c: Likewise.
62120         * socket/sendto.c: Likewise.
62121         * socket/setsockopt.c: Likewise.
62122         * socket/shutdown.c: Likewise.
62123         * socket/sockatmark.c: Likewise.
62124         * socket/socket.c: Likewise.
62125         * socket/socketpair.c: Likewise.
62126         * stdio-common/ctermid.c: Likewise.
62127         * stdio-common/cuserid.c: Likewise.
62128         * stdio-common/remove.c: Likewise.
62129         * stdio-common/rename.c: Likewise.
62130         * stdio-common/renameat.c: Likewise.
62131         * stdio-common/tempname.c: Likewise.
62132         * stdlib/getcontext.c: Likewise.
62133         * stdlib/makecontext.c: Likewise.
62134         * stdlib/setcontext.c: Likewise.
62135         * stdlib/swapcontext.c: Likewise.
62136         * stdlib/system.c: Likewise.
62137         * streams/fattach.c: Likewise.
62138         * streams/fdetach.c: Likewise.
62139         * streams/getmsg.c: Likewise.
62140         * streams/getpmsg.c: Likewise.
62141         * streams/putmsg.c: Likewise.
62142         * streams/putpmsg.c: Likewise.
62143         * sysdeps/unix/bsd/getpt.c: Likewise.
62144         * sysdeps/unix/sysv/linux/epoll_pwait.c: Likewise.
62145         * sysdeps/unix/sysv/linux/futimens.c: Likewise.
62146         * sysdeps/unix/sysv/linux/lutimes.c: Likewise.
62147         * sysdeps/unix/sysv/linux/powerpc/powerpc64/sync_file_range.c:
62148         Likewise.
62149         * sysdeps/unix/sysv/linux/readahead.c: Likewise.
62150         * sysdeps/unix/sysv/linux/sync_file_range.c: Likewise.
62151         * sysdeps/unix/sysv/linux/utimensat.c: Likewise.
62152         * sysvipc/msgctl.c: Likewise.
62153         * sysvipc/msgget.c: Likewise.
62154         * sysvipc/msgrcv.c: Likewise.
62155         * sysvipc/msgsnd.c: Likewise.
62156         * sysvipc/semctl.c: Likewise.
62157         * sysvipc/semget.c: Likewise.
62158         * sysvipc/semop.c: Likewise.
62159         * sysvipc/semtimedop.c: Likewise.
62160         * sysvipc/shmat.c: Likewise.
62161         * sysvipc/shmctl.c: Likewise.
62162         * sysvipc/shmdt.c: Likewise.
62163         * sysvipc/shmget.c: Likewise.
62164         * termios/tcdrain.c: Likewise.
62165         * termios/tcflow.c: Likewise.
62166         * termios/tcflush.c: Likewise.
62167         * termios/tcgetattr.c: Likewise.
62168         * termios/tcgetpgrp.c: Likewise.
62169         * termios/tcsendbrk.c: Likewise.
62170         * termios/tcsetattr.c: Likewise.
62171         * termios/tcsetpgrp.c: Likewise.
62172         * time/adjtime.c: Likewise.
62173         * time/clock.c: Likewise.
62174         * time/getitimer.c: Likewise.
62175         * time/gettimeofday.c: Likewise.
62176         * time/setitimer.c: Likewise.
62177         * time/settimeofday.c: Likewise.
62178         * time/stime.c: Likewise.
62179         * time/time.c: Likewise.
62180
62181 2012-11-04  Pino Toscano  <toscano.pino@tiscali.it>
62182
62183         * sysdeps/generic/paths.h (_PATH_STDPATH): Remove /usr/contrib/bin and
62184         /usr/old/bin.
62185
62186         * sysdeps/generic/paths.h (_PATH_MNTTAB, _PATH_MOUNTED): Use tabs
62187         instead of spaces.
62188         * sysdeps/unix/sysv/linux/paths.h (_PATH_UTMP, _PATH_WTMP): Likewise.
62189
62190 2012-11-03  Joseph Myers  <joseph@codesourcery.com>
62191
62192         [BZ #14796]
62193         * sysdeps/ieee754/dbl-64/s_fma.c (__fma): Set rounding mode to
62194         FE_TONEAREST before applying Dekker multiplication and Knuth
62195         addition.  Clear inexact exceptions and check for exact zero
62196         results afterwards.
62197         * sysdeps/ieee754/ldbl-128/s_fmal.c (__fmal): Likewise.
62198         * sysdeps/ieee754/ldbl-96/s_fma.c (__fma): Likewise.
62199         * sysdeps/ieee754/ldbl-96/s_fmal.c (__fmal): Likewise.
62200         * math/libm-test.inc (fma_test): Add more tests.
62201         (fma_test_towardzero): Likewise.
62202         (fma_test_downward): Likewise.
62203         (fma_test_upward): Likewise.
62204         * sysdeps/generic/math_private.h (default_libc_fesetround): New
62205         function.
62206         (libc_fesetround): New macro.
62207         (libc_fesetroundf): Likewise.
62208         (libc_fesetroundl): Likewise.
62209         * sysdeps/i386/fpu/fenv_private.h (libc_fesetround_sse): New
62210         function.
62211         (libc_fesetround_387): Likewise.
62212         (libc_fesetroundf): New macro.
62213         (libc_fesetround): Likewise.
62214         (libc_fesetroundl): Likewise.
62215         * sysdeps/sparc/fpu/fenv_private.h (libc_fesetround): New
62216         function.
62217         (libc_fesetroundf): New macro.
62218         (libc_fesetround): Likewise.
62219         (libc_fesetroundl): Likewise.
62220         * include/fenv.h (feclearexcept): Add libm_hidden_proto.
62221         * math/fclrexcpt.c (feclearexcept): Add libm_hidden_ver.
62222         * sysdeps/i386/fpu/fclrexcpt.c (feclearexcept): Add
62223         libm_hidden_ver.
62224         * sysdeps/powerpc/fpu/fclrexcpt.c (feclearexcept): Likewise.
62225         * sysdeps/s390/fpu/fclrexcpt.c (feclearexcept): Add
62226         libm_hidden_def.
62227         * sysdeps/sh/sh4/fpu/fclrexcpt.c (feclearexcept): Likewise.
62228         * sysdeps/sparc/fpu/fclrexcpt.c (feclearexcept): Add
62229         libm_hidden_ver.
62230         * sysdeps/x86_64/fpu/fclrexcpt.c (feclearexcept): Add
62231         libm_hidden_def.
62232
62233         [BZ #3439]
62234         * sysdeps/powerpc/bits/fenv.h (FE_INEXACT): Define macro to
62235         integer constant usable in #if and use that to give value to enum
62236         constant.
62237         (FE_DIVBYZERO): Likewise.
62238         (FE_UNDERFLOW): Likewise.
62239         (FE_OVERFLOW): Likewise.
62240         (FE_INVALID): Likewise.
62241         (FE_INVALID_SNAN): Likewise.
62242         (FE_INVALID_ISI): Likewise.
62243         (FE_INVALID_IDI): Likewise.
62244         (FE_INVALID_ZDZ): Likewise.
62245         (FE_INVALID_IMZ): Likewise.
62246         (FE_INVALID_COMPARE): Likewise.
62247         (FE_INVALID_SOFTWARE): Likewise.
62248         (FE_INVALID_SQRT): Likewise.
62249         (FE_INVALID_INTEGER_CONVERSION): Likewise.
62250         (FE_TONEAREST): Likewise.
62251         (FE_TOWARDZERO): Likewise.
62252         (FE_UPWARD): Likewise.
62253         (FE_DOWNWARD): Likewise.
62254         * sysdeps/s390/fpu/bits/fenv.h (FE_INVALID): Likewise.
62255         (FE_DIVBYZERO): Likewise.
62256         (FE_OVERFLOW): Likewise.
62257         (FE_UNDERFLOW): Likewise.
62258         (FE_INEXACT): Likewise.
62259         (FE_TONEAREST): Likewise.
62260         (FE_DOWNWARD): Likewise.
62261         (FE_UPWARD): Likewise.
62262         (FE_TOWARDZERO): Likewise.
62263         * sysdeps/sh/sh4/fpu/bits/fenv.h (FE_INEXACT): Likewise.
62264         (FE_UNDERFLOW): Likewise.
62265         (FE_OVERFLOW): Likewise.
62266         (FE_DIVBYZERO): Likewise.
62267         (FE_INVALID): Likewise.
62268         (FE_TONEAREST): Likewise.
62269         (FE_TOWARDZERO): Likewise.
62270         * sysdeps/sparc/fpu/bits/fenv.h (FE_INVALID): Likewise.
62271         (FE_OVERFLOW): Likewise.
62272         (FE_UNDERFLOW): Likewise.
62273         (FE_DIVBYZERO): Likewise.
62274         (FE_INEXACT): Likewise.
62275         (FE_TONEAREST): Likewise.
62276         (FE_TOWARDZERO): Likewise.
62277         (FE_UPWARD): Likewise.
62278         (FE_DOWNWARD): Likewise.
62279         * sysdeps/x86/fpu/bits/fenv.h (FE_INVALID): Likewise.
62280         (FE_DIVBYZERO): Likewise.
62281         (FE_OVERFLOW): Likewise.
62282         (FE_UNDERFLOW): Likewise.
62283         (FE_INEXACT): Likewise.
62284         (FE_TONEAREST): Likewise.
62285         (FE_DOWNWARD): Likewise.
62286         (FE_UPWARD): Likewise.
62287         (FE_TOWARDZERO): Likewise.
62288
62289 2012-11-02  Chris Metcalf  <cmetcalf@tilera.com>
62290
62291         * elf/elf.h (R_TILEGX_IMM16_X[01]_HW[012]_(|LAST_)PLT_PCREL): Add.
62292
62293 2012-11-03  Andreas Schwab  <schwab@linux-m68k.org>
62294
62295         * scripts/cross-test-ssh.sh (command): Use newlines to separate
62296         commands.  Quote $PWD.
62297         (blacklist_exports): Don't use remove_newlines.  Replace "declare
62298         -x" by "export".
62299         (remove_newlines): Remove.
62300
62301 2012-11-02  H.J. Lu  <hongjiu.lu@intel.com>
62302
62303         * stdlib/Makefile (headers): Add bits/stdlib-float.h.
62304         * stdlib/stdlib.h (atof): Moved to ...
62305         * include/bits/stdlib-float.h: Here.  New file.
62306         * stdlib/stdlib.h: Include <bits/stdlib-float.h>.
62307         * stdlib/bits/stdlib-float.h: New file.
62308         * sysdeps/x86/Makefile (CFLAGS-.os): Compile rtld routines with
62309         -mno-sse -mno-mmx.
62310         * sysdeps/x86_64/multiarch/strcasestr-nonascii.c: Include
62311         <xmmintrin.h>.
62312
62313 2012-11-02  Joseph Myers  <joseph@codesourcery.com>
62314
62315         * conform/conformtest.pl (@headers): Add fenv.h.
62316         * conform/data/fenv.h-data: New file.
62317         * include/fenv.h [_ISOMAC]: Disable all contents of file except
62318         include of <math/fenv.h>.
62319
62320         * conform/data/complex.h-data [ISO99 || ISO11 || XOPEN2K ||
62321         POSIX2008]: Change condition to [!ISO && !POSIX && !XPG3 && !XPG4
62322         && !UNIX98].  Enables tests for XOPEN2K8.
62323         * conform/data/inttypes.h-data [ISO99 || ISO11 || XOPEN2K ||
62324         POSIX2008]: Likewise.
62325
62326         * conform/data/sys/wait.h-data [XPG3 || XOPEN2K8 || POSIX2008]
62327         (struct rusage): Do not expect type or its members.
62328
62329         [BZ #3439]
62330         * math/math.h (FP_NAN): Define macro to integer constant usable in
62331         #if and use that to give value to enum constant.
62332         (FP_INFINITE): Likewise.
62333         (FP_ZERO): Likewise.
62334         (FP_SUBNORMAL): Likewise.
62335         (FP_NORMAL): Likewise.
62336
62337 2012-11-02  Andreas Schwab  <schwab@linux-m68k.org>
62338
62339         * iconvdata/bug-iconv8.c (do_test): Use %z for size_t arguments.
62340         * iconvdata/bug-iconv9.c (do_test): Use %t for ptrdiff_t
62341         arguments.
62342
62343 2012-11-02  Roland McGrath  <roland@hack.frob.com>
62344
62345         * aclocal.m4 (GLIBC_AUTOCONF_VERSION): New macro.
62346         Check that AC_AUTOCONF_VERSION matches it and m4_fatal at
62347         autoconf-time if not.
62348         * configure.in: Remove AC_PREREQ.
62349
62350 2012-11-02  Tulio Magno Quites Machado Filho  <tuliom@linux.vnet.ibm.com>
62351
62352         * sysdeps/powerpc/sys/platform/ppc.h (__ppc_get_timebase): Use
62353         __builtin_ppc_get_timebase when building with GCC >= 4.8 instead
62354         of the internal implementation.
62355
62356 2012-11-02  Joseph Myers  <joseph@codesourcery.com>
62357
62358         * include/sys/syslog.h [_ISOMAC]: Disable all contents of file
62359         except include of <misc/sys/syslog.h>.
62360
62361 2012-11-01  Andreas Schwab  <schwab@linux-m68k.org>
62362
62363         * sysdeps/unix/sysv/linux/powerpc/powerpc64/makecontext.S: If the
62364         function returns with a NULL context exit with zero.
62365
62366 2012-11-01  Tulio Magno Quites Machado Filho  <tuliom@linux.vnet.ibm.com>
62367
62368         * sysdeps/powerpc/Makefile (cflags): Remove -mnew-mnemonics.
62369
62370 2012-11-01  H.J. Lu  <hongjiu.lu@intel.com>
62371
62372         * catgets/test-gencat.sh (run_program_prefix): Renamed to ...
62373         (run_program_cmd): This.
62374         * localedata/tst-langinfo.sh (run_program_prefix): Removed.
62375         (tst_langinfo): New variable.  Use it.
62376
62377 2012-11-01  Sebastan Andrzej Siewior  <bigeasy@linutronix.de>
62378
62379         * sysdeps/powerpc/powerpc32/dl-trampoline.S: Put __NO_FPRS__ around
62380         floating point opcodes.
62381
62382 2012-11-01  Thomas Schwinge  <thomas@codesourcery.com>
62383
62384         * sysdeps/mach/hurd/Makefile (link-libc-static-tests): New
62385         variable.
62386
62387         * elf/dl-support.c: Unconditionally include "setup-vdso.h".
62388
62389         * sysdeps/mach/hurd/powerpc: Remove directory.
62390         * sysdeps/mach/powerpc: Likewise.
62391
62392 2012-11-01  Andreas Schwab  <schwab@linux-m68k.org>
62393
62394         * scripts/check-local-headers.sh: Ignore c++ headers.
62395
62396 2012-11-01  Thomas Schwinge  <thomas@codesourcery.com>
62397
62398         * libio/genops.c (_IO_flush_all_lockp): Use NULL rather than 0 for
62399         __libc_cleanup_region_start argument.
62400
62401 2012-11-01  Joseph Myers  <joseph@codesourcery.com>
62402
62403         [BZ #14784]
62404         [BZ #14785]
62405         * sysdeps/ieee754/dbl-64/s_fma.c (__fma): Handle cases with small
62406         x * y using scaling, not as x * y + z.
62407         * sysdeps/ieee754/ldbl-128/s_fmal.c (__fmal): Likewise.
62408         * sysdeps/ieee754/ldbl-96/s_fmal.c (__fmal): Likewise.
62409         * math/libm-test.inc (fma_test): Add more tests.
62410         (fma_test_towardzero): Likewise.
62411         (fma_test_downward): Likewise.
62412         (fma_test_upward): Likewise.
62413
62414 2012-11-01  Thomas Schwinge  <thomas@codesourcery.com>
62415
62416         * sysdeps/mach/hurd/bits/param.h: Remove stray #endif.
62417
62418 2012-10-31  Joseph Myers  <joseph@codesourcery.com>
62419
62420         * sysdeps/sh/Makefile [$(subdir) = debug] (CFLAGS-backtrace.c):
62421         New variable.
62422
62423 2012-10-31  Thomas Schwinge  <thomas@codesourcery.com>
62424
62425         * rt/tst-shm.c (worker): Correct checking for mmap failure.
62426
62427 2012-10-31  Andreas Schwab  <schwab@linux-m68k.org>
62428
62429         * sysdeps/unix/sysv/linux/powerpc/powerpc32/fpu/nptl/libc.abilist:
62430         Fix sort order.
62431         * sysdeps/unix/sysv/linux/powerpc/powerpc64/nptl/libc.abilist:
62432         Likewise.
62433
62434 2012-10-31  Tulio Magno Quites Machado Filho  <tuliom@linux.vnet.ibm.com>
62435
62436         * sysdeps/unix/sysv/linux/powerpc/powerpc32/fpu/nptl/libc.abilist:
62437         Fix the order of the list for glibc 2.17.
62438         * sysdeps/unix/sysv/linux/powerpc/powerpc64/nptl/libc.abilist:
62439         Likewise.
62440
62441 2012-10-31  Andreas Schwab  <schwab@linux-m68k.org>
62442
62443         * sysdeps/powerpc/fpu/libm-test-ulps: Update.
62444
62445 2012-10-31  Joseph Myers  <joseph@codesourcery.com>
62446
62447         [BZ #14610]
62448         * sysdeps/ieee754/ldbl-128ibm/e_atan2l.c (__ieee754_atan2l): Check
62449         for low part of x being zero before using __atanl (y).
62450         * math/libm-test.inc (atan2_test): Add another test.
62451
62452         * manual/install.texi (Configuring and compiling): Document
62453         general use of test-wrapper and test-wrapper-env.
62454         * INSTALL: Regenerated.
62455
62456         * sysdeps/ieee754/dbl-64/s_fma.c: Include <tininess.h>.
62457         (__fma): 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-128/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         * sysdeps/ieee754/ldbl-96/s_fmal.c: Include <tininess.h>.
62465         (__fmal): Do not extract and scale down low bits on after-rounding
62466         systems when result rounded to normal precision would have normal
62467         exponent.
62468         * math/libm-test.inc (UNDERFLOW_EXCEPTION_BEFORE_ROUNDING): New
62469         macro.
62470         (fma_test): Add more tests.
62471         (fma_test_towardzero): Likewise.
62472         (fma_test_downward): Likewise.
62473         (fma_test_upward): Likewise.
62474
62475 2012-10-30  H.J. Lu  <hongjiu.lu@intel.com>
62476
62477         * sysdeps/i386/tininess.h: Renamed to ...
62478         * sysdeps/x86/tininess.h: This.
62479         * sysdeps/x86_64/tininess.h: Removed.
62480
62481 2012-10-30  Joseph Myers  <joseph@codesourcery.com>
62482
62483         * elf/Makefile ($(objpfx)tst-array1.out): Depend on comparison
62484         input.  Use $(build-program-cmd).
62485         ($(objpfx)tst-array1-static.out): Likewise.
62486         ($(objpfx)tst-array2.out): Likewise.
62487         ($(objpfx)tst-array3.out): Likewise.
62488         ($(objpfx)tst-array4.out): Likewise.
62489         ($(objpfx)tst-array5.out): Likewise.
62490         ($(objpfx)tst-array5-static.out): Likewise.
62491
62492 2012-10-30  Chris Metcalf  <cmetcalf@tilera.com>
62493
62494         * elf/dl-load.c (_dl_map_object_from_fd): Call DL_AFTER_LOAD
62495         if defined.
62496
62497         * nss/nsswitch.h (nss_interface_function): Provide new
62498         macro for use with NSS functions.
62499         * grp/initgroups.c: Use new macro.
62500         * nss/getXXbyYY.c: Likewise.
62501         * nss/getXXbyYY_r.c: Likewise.
62502         * nss/getXXent.c: Likewise.
62503         * nss/getXXent_r.c: Likewise.
62504         * sysdeps/posix/getaddrinfo.c: Likewise.
62505
62506 2012-10-30  Andreas Jaeger  <aj@suse.de>
62507
62508         * po/ru.po: Update Russion translation from translation project.
62509
62510 2012-10-30  Joseph Myers  <joseph@codesourcery.com>
62511
62512         [BZ #14152]
62513         [BZ #14783]
62514         * sysdeps/ieee754/dbl-64/s_fma.c (__fma): Extract low bits of
62515         result and shift together with sticky bit instead of replicating
62516         round-to-nearest rounding.
62517         * sysdeps/ieee754/ldbl-128/s_fmal.c (__fmal): Likewise.
62518         * sysdeps/ieee754/ldbl-96/s_fmal.c (__fmal): Likewise.
62519         * math/libm-test.inc (fma_test): Add more tests.  Do not permit
62520         missing underflow exceptions.
62521         (fma_test_towardzero): Add more tests.
62522         (fma_test_downward): Likewise.
62523         (fma_test_upward): Likewise.
62524
62525         [BZ #14047]
62526         * sysdeps/generic/tininess.h: New file.
62527         * sysdeps/i386/tininess.h: Likewise.
62528         * sysdeps/sh/tininess.h: Likewise.
62529         * sysdeps/x86_64/tininess.h: Likewise.
62530         * stdlib/tst-strtod-underflow.c: Likewise.
62531         * stdlib/tst-tininess.c: Likewise.
62532         * stdlib/strtod_l.c: Include <tininess.h>.
62533         (round_and_return): Do not set errno for exact underflow cases.
62534         Force an underflow exception when setting errno for underflow.
62535         Determine underflow based on rounding to normal precision if
62536         TININESS_AFTER_ROUNDING.
62537         * stdlib/tst-strtod.c (tests): Do not expect errno to be set to
62538         ERANGE for exact underflow cases.
62539         * stdlib/Makefile (tests): Add tst-tininess and
62540         tst-strtod-underflow.
62541         ($(objpfx)tst-tininess): Use $(link-libm).
62542         ($(objpfx)tst-strtod-underflow): Likewise.
62543
62544 2012-10-30  Andreas Jaeger  <aj@suse.de>
62545
62546         [BZ#14767]
62547         * elf/Makefile (tests): Remove conditional for have-initfini-array
62548         since this is now always required and the variable does not exist
62549         anymore.
62550         (tests-static): Likewise.
62551         (modules-names): Likewise.
62552
62553         * po/eo.po: Add Esperanto translation from translation project.
62554
62555         * elf/tst-array1.c (fini_array): Make writeable so that it can be
62556         merged with constructor/destructor.
62557         (init_array): Likewise.
62558         * elf/tst-array2dep.c (fini_array): Likewise.
62559         (init_array): Likewise.
62560
62561 2012-10-29  Mike Frysinger  <vapier@gentoo.org>
62562
62563         * manual/message.texi: Delete @cartouche tags.
62564
62565 2012-10-29  Pino Toscano  <toscano.pino@tiscali.it>
62566
62567         * sysdeps/mach/hurd/fdatasync.c: Turn ERR into EINVAL if it is
62568         EOPNOTSUPP.
62569         * sysdeps/mach/hurd/fsync.c: Likewise.
62570
62571         * sysdeps/pthread/aio_notify.c (__aio_notify_only)
62572         [_POSIX_REALTIME_SIGNALS]: Change condition to
62573         [_POSIX_REALTIME_SIGNALS > 0].
62574
62575 2012-10-27  Andreas Jaeger  <aj@suse.de>
62576
62577         * sysdeps/unix/sysv/linux/x86/bits/fcntl.h (__O_LARGEFILE)
62578         [!__x86_64]: Do not define, take value from <bits/fcntl-linux.h>.
62579         * sysdeps/unix/sysv/linux/s390/bits/fcntl.h (__O_LARGEFILE):
62580         [__WORDSIZE != 64]: Likewise.
62581
62582 2012-10-26  H.J. Lu  <hongjiu.lu@intel.com>
62583
62584         *  iconvdata/tst-table.sh: Remove ${SHELL}.
62585         *  iconvdata/tst-tables.sh: Likewise.
62586
62587 2012-10-25  David S. Miller  <davem@davemloft.net>
62588
62589         * sysdeps/unix/sysv/linux/sparc/sparc64/get_clockfreq.c
62590         (__get_clockfreq_via_proc_openprom): Use strtoumax instead
62591         of strtoull.
62592
62593         * sysdeps/sparc/sparc64/multiarch/memcpy.S: Add comments for
62594         ifunc-impl-list.c
62595         * sysdeps/sparc/sparc64/multiarch/memset.S: Likewise.
62596         * sysdeps/sparc/sparc64/multiarch/ifunc-impl-list.c: New file.
62597         * sysdeps/sparc/sparc32/sparcv9/multiarch/ifunc-impl-list.c: New
62598         file.
62599
62600 2012-10-25  Roland McGrath  <roland@hack.frob.com>
62601
62602         * sysdeps/unix/sysv/linux/sparc/sparc64/get_clockfreq.c
62603         (__get_clockfreq_via_proc_openprom): Use __getdents instead of
62604         __getdirentries.
62605
62606 2012-10-25  Joseph Myers  <joseph@codesourcery.com>
62607             Jim Blandy  <jimb@codesourcery.com>
62608
62609         * scripts/cross-test-ssh.sh: New file.
62610         * manual/install.texi (Configuring and compiling): Document use of
62611         cross-test-ssh.sh.
62612         * INSTALL: Regenerated.
62613
62614 2012-10-25  Pino Toscano  <toscano.pino@tiscali.it>
62615
62616         * sysdeps/mach/hurd/ptrace.c (ptrace): Use __hurd_fail to return
62617         EOPNOTSUPP.
62618
62619 2012-10-25  Joseph Myers  <joseph@codesourcery.com>
62620
62621         * Makeconfig (run-program-prefix): Fix comment.
62622
62623 2012-10-24  Joseph Myers  <joseph@codesourcery.com>
62624             Jim Blandy  <jimb@codesourcery.com>
62625
62626         * Makeconfig (test-wrapper): New variable,
62627         (test-wrapper-env): Likewise.
62628         [$(cross-compiling) = yes && $(test-wrapper) != ""]
62629         (run-built-tests): Define to yes.
62630         (run-program-prefix): Use $(test-wrapper).
62631         (built-program-cmd): Likewise.
62632         * Rules (make-test-out): Use $(test-wrapper-env) and
62633         $(host-built-program-cmd).
62634         * elf/Makefile ($(objpfx)order.out): Use $(test-wrapper).
62635         ($(objpfx)tst-pathopt.out): Pass $(test-wrapper-env) to
62636         tst-pathopt.sh.
62637         ($(objpfx)tst-rtld-load-self.out): Pass $(test-wrapper) and
62638         $(test-wrapper-env) to tst-rtld-load-self.sh.
62639         ($(objpfx)order2.out): Use $(test-wrapper).
62640         ($(objpfx)tst-initorder.out): Likewise.
62641         ($(objpfx)tst-initorder2.out): Likewise.
62642         ($(objpfx)tst-unused-dep.out): Use $(test-wrapper-env).
62643         * elf/tst-pathopt.sh (run_program_prefix): Remove unused variable.
62644         (test_wrapper_env): New variable.  Use it to run ld.so.
62645         * elf/tst-rtld-load-self.sh (test_wrapper): New variable.
62646         Use it to run ld.so.
62647         (test_wrapper_env): Likewise.
62648         * iconvdata/Makefile ($(objpfx)iconv-test.out): Pass
62649         $(test-wrapper) to run-iconv-test.sh.
62650         * iconvdata/run-iconv-test.sh (test_wrapper): New variable.
62651         (ICONV): Use $test_wrapper.
62652         * posix/Makefile ($(objpfx)globtest.out): Pass
62653         $(run-via-rtld-prefix), $(test-wrapper) and $(test-wrapper-env) to
62654         globtest.sh, not $(run-program-prefix).
62655         * posix/globtest.sh (run_via_rtld_prefix): New variable.
62656         (test_wrapper): Likewise.
62657         (test_wrapper_env): Likewise.  Use it to run globtest with HOME
62658         set together with run_via_rtld_prefix.
62659         (run_program_prefix): Define in terms of test_wrapper and
62660         run_via_rtld_prefix.
62661
62662 2012-10-24  Roland McGrath  <roland@hack.frob.com>
62663
62664         * nscd/Makefile ($(objpfx)nscd): Remove librt dependency.
62665         * posix/Makefile ($(objpfx)tst-regex, $(objpfx)tst-regex2):
62666         Targets removed.
62667
62668         [BZ #14743]
62669         * include/time.h: Remove librt_hidden_proto (clock_gettime).
62670         Declare __clock_getres, __clock_gettime, __clock_settime,
62671         __clock_nanosleep, and __clock_getcpuclockid.
62672         * rt/clock_gettime.c: Define __clock_gettime as an alias.
62673         Remove librt_hidden_def (clock_gettime).
62674         * sysdeps/unix/clock_gettime.c: Likewise.
62675         * rt/clock_getcpuclockid.c: Define __clock_getcpuclockid as an alias.
62676         * sysdeps/unix/sysv/linux/clock_getcpuclockid.c: Likewise.
62677         * rt/clock_getres.c: Define __clock_getres as an alias.
62678         * sysdeps/posix/clock_getres.c: Likewise.
62679         * rt/clock_settime.c: Define __clock_settime as an alias.
62680         * sysdeps/unix/clock_settime.c: Likewise.
62681         * rt/clock_nanosleep.c: Define __clock_nanosleep as an alias.
62682         * sysdeps/unix/clock_nanosleep.c: Likewise.
62683         * sysdeps/unix/sysv/linux/clock_nanosleep.c: Likewise.
62684         * rt/clock-compat.c: New file.
62685         * rt/Makefile (librt-routines): Add clock-compat and move
62686         $(clock-routines) to ...
62687         (routines): ... here, new variable.
62688         * sysdeps/unix/sysv/linux/powerpc/Makefile (sysdep_routines):
62689         Don't add get_clockfreq here.
62690         * rt/Versions (libc: GLIBC_2.17): New version set.
62691         Add clock_* symbols here.
62692         (libc: GLIBC_PRIVATE): New version set.  Add __clock_* symbols here.
62693         * sysdeps/unix/sysv/linux/i386/nptl/libc.abilist
62694         (GLIBC_2.17): Add clock_* symbols.
62695         * sysdeps/unix/sysv/linux/sparc/sparc32/nptl/libc.abilist: Likewise.
62696         * sysdeps/unix/sysv/linux/sparc/sparc64/nptl/libc.abilist: Likewise.
62697         * sysdeps/unix/sysv/linux/sh/nptl/libc.abilist: Likewise.
62698         * sysdeps/unix/sysv/linux/powerpc/powerpc64/nptl/libc.abilist:
62699         Likewise.
62700         * sysdeps/unix/sysv/linux/powerpc/powerpc32/fpu/nptl/libc.abilist:
62701         Likewise.
62702         * sysdeps/unix/sysv/linux/x86_64/64/nptl/libc.abilist: Likewise.
62703         * sysdeps/unix/sysv/linux/x86_64/x32/nptl/libc.abilist: Likewise.
62704         * sysdeps/unix/sysv/linux/s390/s390-64/nptl/libc.abilist: Likewise.
62705         * sysdeps/unix/sysv/linux/s390/s390-32/nptl/libc.abilist: Likewise.
62706         * NEWS: Mention the move.
62707
62708         * sysdeps/unix/sysv/linux/i386/get_clockfreq.c (__get_clockfreq):
62709         Use __open, __read, __close rather than their public counterparts.
62710         * sysdeps/unix/sysv/linux/sparc/sparc64/get_clockfreq.c
62711         (__get_clockfreq_via_cpuinfo): Likewise.
62712         (__get_clockfreq_via_proc_openprom): Likewise, and __getdirentries.
62713         (__get_clockfreq_via_dev_openprom): Likewise, and __ioctl.
62714
62715         * config.h.in (HAVE_IFUNC): New #undef.
62716         * configure.in: Define it if libc_cv_ld_gnu_indirect_function
62717         was successful.
62718         * configure: Regenerated.
62719
62720 2012-10-24  Mike Frysinger  <vapier@gentoo.org>
62721
62722         * configure.in: Move READELF check to start of file.
62723         (libc_cv_ld_gnu_indirect_function): Change to a link test. Rename from
62724         libc_cv_asm_gnu_indirect_function in the process.
62725         * configure: Regenerated.
62726
62727 2012-10-24  Mike Frysinger  <vapier@gentoo.org>
62728
62729         * configure.in (libc_cv_gcc_static_libgcc): Drop -q flag to grep and
62730         send the output to /dev/null.
62731         (libc_cv_cc_with_libunwind): Likewise.
62732         (libc_cv_as_noexecstack): Likewise.
62733         * configure: Regenerate.
62734
62735 2012-10-24  Joseph Myers  <joseph@codesourcery.com>
62736
62737         * io/ftwtest-sh (tmp): Define to ${objpfx}io, not using `pwd`.
62738
62739         * posix/globtest.sh (TMPDIR): Do not set.
62740         (testdir): Define using ${common_objpfx}posix not $TMPDIR.
62741         (testout): Likewise.
62742
62743 2012-10-24  Andreas Jaeger  <aj@suse.de>
62744
62745         * io/fcntl.h: Always define mode_t, off_t, pid_t and use these
62746         types for creat, creat64, lockf, posix_fadvise, posix_fallocate.
62747         [__USE_LARGEFILE64 && !__off64_t_defined]: Define off64_t.
62748         [__USE_LARGEFILE64]: Use off64_t in declaration of lock64,
62749         posix_fadvise64, posix_fallocate64.
62750
62751         * sysdeps/unix/sysv/linux/x86/bits/fcntl.h (F_GETLK, F_SETLK)
62752         (F_SETLKW) [__x86_64]: Remove, provided by <bits/fcntl-linux.h>.
62753         (F_GETLK, F_SETLK, F_SETLKW) [!__USE_FILE_OFFSET64 && !__x86_64__]:
62754         Likewise.
62755         (F_GETLK, F_SETLK, F_SETLKW) [__USE_FILE_OFFSET64 && ! __x86_64__]:
62756         Likewise.
62757         (F_GETLK64, F_SETLK64, F_SETLKW64) [!__x86_64__]: Likewise.
62758
62759         * sysdeps/unix/sysv/linux/sparc/bits/fcntl.h (F_GETLK, F_SETLK)
62760         (F_SETLKW) [__USE_FILE_OFFSET64]: Remove, provided by
62761         <bits/fcntl-linux.h>.
62762         (F_GETLK64, F_SETLK64, F_SETLKW64) [__WORDSIZE == 64]: Likewise.
62763
62764         * sysdeps/unix/sysv/linux/s390/bits/fcntl.h (F_DUPFD, F_GETFD)
62765         (F_SETFD, F_GETFL, F_SETFL): Remove, provided by <bits/fcntl-linux.h>.
62766         (F_GETLK, F_SETLK, F_SETLKW) [__WORDSIZE == 64]: Likewise.
62767         (F_GETLK, F_SETLK, F_SETLKW, F_GETLK64, F_SETLK64, F_SETLKW64)
62768         [__WORDSIZE != 64]: Likewise.
62769
62770 2012-10-23  Joseph Myers  <joseph@codesourcery.com>
62771
62772         * Makeconfig (run-built-tests): New variable.
62773         * Rules [$(cross-compiling) = yes]: Change condition to
62774         [$(run-built-tests) = no].
62775         * catgets/Makefile [$(cross-compiling) != yes]: Change condition
62776         to [$(run-built-tests) = yes].
62777         * elf/Makefile [$(cross-compiling) = no]: Likewise.
62778         * grp/Makefile [$(cross-compiling) = no]: Likewise.
62779         * iconv/Makefile [$(cross-compiling) != yes]: Likewise.
62780         * iconvdata/Makefile [$(cross-compiling) = no]: Likewise.
62781         * intl/Makefile [$(cross-compiling) = no]: Likewise.
62782         * io/Makefile [$(cross-compiling) = no]: Likewise.
62783         * libio/Makefile [$(cross-compiling) = no]: Likewise.
62784         * malloc/Makefile [$(cross-compiling) = no]: Likewise.
62785         * misc/Makefile [$(cross-compiling) = no]: Likewise.
62786         * posix/Makefile [$(cross-compiling) = no]: Likewise.
62787         * resolv/Makefile [$(cross-compiling) = no]: Likewise.
62788         * stdio-common/Makefile [$(cross-compiling) = no]: Likewise.
62789         * stdlib/Makefile [$(cross-compiling) = no]: Likewise.
62790         * string/Makefile [$(cross-compiling) = no]: Likewise.
62791
62792         * posix/Makefile ($(objpfx)globtest.out): Pass
62793         $(run-program-prefix) to globtest.sh, not $(elf-objpfx) and
62794         $(rtld-installed-name).
62795         * posix/globtest.sh (elf_objpfx): Remove variable.
62796         (rtld_installed_name): Likewise.
62797         (library_path): Likewise.
62798         (run_program_prefix): New variable.  Use for running globtest
62799         binary.
62800
62801 2012-10-23  Jim Blandy  <jimb@codesourcery.com>
62802             Joseph Myers  <joseph@codesourcery.com>
62803
62804         * Makeconfig (host-built-program-cmd): New variable.
62805         * elf/Makefile (tst-stackguard1-ARGS): Use
62806         $(host-built-program-cmd).
62807         * posix/Makefile (tst-exec-ARGS): Use $(host-built-program-cmd).
62808         (tst-spawn-ARGS): Likewise.
62809         * rt/Makefile (tst-mqueue7-ARGS): Use $(host-built-program-cmd).
62810
62811 2012-10-23  Joseph Myers  <joseph@codesourcery.com>
62812             Jim Blandy  <jimb@codesourcery.com>
62813
62814         * Makeconfig (run-via-rtld-prefix): New variable.
62815         (run-program-prefix): Define in terms of $(run-via-rtld-prefix).
62816         (built-program-cmd): Likewise.
62817
62818 2012-10-22  Andreas Jaeger  <aj@suse.de>
62819
62820         * sysdeps/unix/sysv/linux/bits/fcntl-linux.h (O_RSYNC): Define to
62821         __O_RSYNC if it exists, otherwise to O_SYNC.
62822
62823 2012-10-22  Jim Blandy  <jimb@codesourcery.com>
62824             Joseph Myers  <joseph@codesourcery.com>
62825
62826         * iconvdata/run-iconv-test.sh: Redirect iconv stdin in loops from
62827         /dev/null.
62828         * iconvdata/tst-tables.sh: Redirect tst-table.sh stdin in loop
62829         from /dev/null
62830         * posix/tst-getconf.sh: Redirect getconf stdin in loop from
62831         /dev/null.
62832
62833 2012-10-22  Andreas Jaeger  <aj@suse.de>
62834
62835         * sysdeps/unix/sysv/linux/sparc/bits/fcntl.h (__O_LARGEFILE):
62836         Define always.
62837         * sysdeps/unix/sysv/linux/s390/bits/fcntl.h (__O_LARGEFILE): Likewise.
62838
62839         * sysdeps/unix/sysv/linux/Makefile (sysdep_headers): Add
62840         bits/fcntl-linux.h.
62841
62842         * sysdeps/unix/sysv/linux/bits/fcntl-linux.h (F_GETLK, F_SETLK)
62843         (F_SETLKW) [!F_GETLK]: Define values for [!__USE_FILE_OFFSET64].
62844
62845         * sysdeps/unix/sysv/linux/s390/bits/fcntl.h (O_LARGEFILE): Rename
62846         to __O_LARGEFILE.
62847         * sysdeps/unix/sysv/linux/sparc/bits/fcntl.h (O_LARGEFILE): Rename
62848         to __O_LARGEFILE.
62849
62850 2012-10-21  Jim Blandy  <jimb@codesourcery.com>
62851             Joseph Myers  <joseph@codesourcery.com>
62852
62853         * config.make.in (NM): New variable.
62854
62855 2012-10-21  Andreas Jaeger  <aj@suse.de>
62856
62857         * sysdeps/unix/sysv/linux/sh/bits/fcntl.h: Remove all
62858         definitions and declarations that are provided by
62859         <bits/fcntl-linux.h> and include <bits/fcntl-linux.h>.
62860
62861 2012-10-20  H.J. Lu  <hongjiu.lu@intel.com>
62862
62863         [BZ #14683]
62864         * elf/Makefile (tests-static): Add tst-leaks1-static.
62865         (tests): Also depend on $(objpfx)tst-leaks1-static-mem.
62866         ($(objpfx)tst-leaks1-static): New rule.
62867         ($(objpfx)tst-leaks1-static-mem): Likewise.
62868         (tst-leaks1-static-ENV): New macro.
62869         * elf/dl-open.c (dl_open_worker): Check the main application
62870         only if SHARED is defined.
62871         * elf/tst-leaks1-static.c: New file.
62872
62873 2012-10-20  Andreas Jaeger  <aj@suse.de>
62874
62875         * sysdeps/unix/sysv/linux/bits/fcntl-linux.h: New file, contains
62876         generic values for Linux.
62877         * sysdeps/unix/sysv/linux/x86/bits/fcntl.h: Remove all definitions
62878         and declarations that are provided by <bits/fcntl-linux.h> and
62879         include <bits/fcntl-linux.h>.
62880         * sysdeps/unix/sysv/linux/sparc/bits/fcntl.h: Likewise.
62881         * sysdeps/unix/sysv/linux/s390/bits/fcntl.h: Likewise.
62882
62883 2012-10-20  Roland McGrath  <roland@hack.frob.com>
62884
62885         * io/fcntl.h: Move include of <bits/types.h> to the top and
62886         include it unconditionally.
62887
62888 2012-10-20  H.J. Lu  <hongjiu.lu@intel.com>
62889
62890         * wcsmbs/Makefile (tests-ifunc): New variable.
62891         (tests): Add $(tests-ifunc).
62892         * wcsmbs/test-wcschr-ifunc.c: New file.
62893         * wcsmbs/test-wcscmp-ifunc.c: Likewise.
62894         * wcsmbs/test-wcscpy-ifunc.c: Likewise.
62895         * wcsmbs/test-wcslen-ifunc.c: Likewise.
62896         * wcsmbs/test-wcsrchr-ifunc.c: Likewise.
62897         * wcsmbs/test-wmemcmp-ifunc.c: Likewise.
62898
62899         * string/Makefile (tests-ifunc): New variable.
62900         (tests): Add $(tests-ifunc).
62901         * string/test-memccpy.c (TEST_NAME): New macro.
62902         * string/test-memchr.c (TEST_NAME): Likewise.
62903         * string/test-memcmp.c (TEST_NAME): Likewise.
62904         * string/test-memcpy.c (TEST_NAME): Likewise.
62905         * string/test-memmem.c (TEST_NAME): Likewise.
62906         * string/test-memmove.c (TEST_NAME): Likewise.
62907         * string/test-memset.c (TEST_NAME): Likewise.
62908         * string/test-rawmemchr.c (TEST_NAME): Likewise.
62909         * string/test-stpcpy.c (TEST_NAME): Likewise.
62910         * string/test-stpncpy.c (TEST_NAME): Likewise.
62911         * string/test-strcasecmp.c (TEST_NAME): Likewise.
62912         * string/test-strcasestr.c (TEST_NAME): Likewise.
62913         * string/test-strcat.c (TEST_NAME): Likewise.
62914         * string/test-strchr.c (TEST_NAME): Likewise.
62915         * string/test-strcmp.c(TEST_NAME): Likewise.
62916         * string/test-strcpy.c (TEST_NAME): Likewise.
62917         * string/test-strcspn.c (TEST_NAME): Likewise.
62918         * string/test-strlen.c (TEST_NAME): Likewise.
62919         * string/test-strncasecmp.c (TEST_NAME): Likewise.
62920         * string/test-strncmp.c (TEST_NAME): Likewise.
62921         * string/test-strncpy.c (TEST_NAME): Likewise.
62922         * string/test-strnlen.c (TEST_NAME): Likewise.
62923         * string/test-strpbrk.c (TEST_NAME): Likewise.
62924         * string/test-strrchr.c (TEST_NAME): Likewise.
62925         * string/test-strspn.c (TEST_NAME): Likewise.
62926         * string/test-strstr.c (TEST_NAME): Likewise.
62927         * string/test-bcopy-ifunc.c: New file.
62928         * string/test-bzero-ifunc.c: Likewise.
62929         * string/test-memccpy-ifunc.c: Likewise.
62930         * string/test-memchr-ifunc.c: Likewise.
62931         * string/test-memcmp-ifunc.c: Likewise.
62932         * string/test-memcpy-ifunc.c: Likewise.
62933         * string/test-memmem-ifunc.c: Likewise.
62934         * string/test-memmove-ifunc.c: Likewise.
62935         * string/test-mempcpy-ifunc.c: Likewise.
62936         * string/test-memset-ifunc.c: Likewise.
62937         * string/test-rawmemchr-ifunc.c: Likewise.
62938         * string/test-stpcpy-ifunc.c: Likewise.
62939         * string/test-stpncpy-ifunc.c: Likewise.
62940         * string/test-strcasecmp-ifunc.c: Likewise.
62941         * string/test-strcasestr-ifunc.c: Likewise.
62942         * string/test-strcat-ifunc.c: Likewise.
62943         * string/test-strchr-ifunc.c: Likewise.
62944         * string/test-strchrnul-ifunc.c: Likewise.
62945         * string/test-strcmp-ifunc.c: Likewise.
62946         * string/test-strcpy-ifunc.c: Likewise.
62947         * string/test-strcspn-ifunc.c: Likewise.
62948         * string/test-strlen-ifunc.c: Likewise.
62949         * string/test-strncasecmp-ifunc.c: Likewise.
62950         * string/test-strncat-ifunc.c: Likewise.
62951         * string/test-strncmp-ifunc.c: Likewise.
62952         * string/test-strncpy-ifunc.c: Likewise.
62953         * string/test-strnlen-ifunc.c: Likewise.
62954         * string/test-strpbrk-ifunc.c: Likewise.
62955         * string/test-strrchr-ifunc.c: Likewise.
62956         * string/test-strspn-ifunc.c: Likewise.
62957         * string/test-strstr-ifunc.c: Likewise.
62958
62959         * debug/Makefile (tests-ifunc): New variable.
62960         (tests): Add $(tests-ifunc).
62961         * debug/test-stpcpy_chk.c (TEST_NAME): New macro.
62962         * debug/test-strcpy_chk.c (TEST_NAME): Likewise.
62963         * debug/test-stpcpy_chk-ifunc.c: New file.
62964         * debug/test-strcpy_chk-ifunc.c: Likewise.
62965
62966 2012-10-20  Siddhesh Poyarekar  <siddhesh@redhat.com>
62967
62968         [BZ #13601]
62969         * elf/dl-load.c (open_verify): Retry read if the entire ELF
62970         header is not read in.
62971
62972 2012-10-19  Joseph Myers  <joseph@codesourcery.com>
62973
62974         * io/Makefile ($(objpfx)ftwtest.out): Depend on ftwtest-sh.  Pass
62975         script to $(SHELL) as $<.  Pass $(common-objpfx) to script
62976         directly.  Pass built executable to script as
62977         $(built-program-cmd).
62978         * io/ftwtest-sh (ldso): Remove variable.  Run ftwtest directly as
62979         $testprogram without using LD_LIBRARY_PATH and $ldso.
62980
62981         * grp/Makefile ($(objpfx)tst_fgetgrent.out): Pass
62982         $(run-program-prefix) to tst_fgetgrent.sh, not $(elf-objpfx) and
62983         $(rtld-installed-name).
62984         * grp/tst_fgetgrent.sh (elf_objpfx): Remove variable.
62985         (rtld_installed_name): Likewise.
62986         (library_path): Likewise.
62987         (run_program_prefix): New variable.  Use it to run tst_fgetgrent.
62988         * iconvdata/Makefile ($(objpfx)tst-tables.out): Pass
62989         $(run-program-prefix) to tst-tables.sh.
62990         * iconvdata/tst-table.sh (run_program_prefix): New variable.  Use
62991         it to run tst-table-from and tst-table-to.
62992         * iconvdata/tst-tables.sh (run_program_prefix): New variable.
62993         Pass it to tst-table.sh.
62994         * intl/Makefile ($(objpfx)tst-gettext.out): Pass
62995         $(run-program-prefix) to tst-gettext.sh.
62996         ($(objpfx)tst-translit.out): Pass $(run-program-prefix) to
62997         tst-translit.sh.
62998         ($(objpfx)tst-gettext2.out): Pass $(run-program-prefix) to
62999         tst-gettext2.sh.
63000         * intl/tst-gettext.sh (run_program_prefix): New variable.  Use it
63001         to run tst-gettext.
63002         * intl/tst-gettext2.sh (run_program_prefix): New variable.  Use it
63003         to run tst-gettext2.
63004         * intl/tst-translit.sh (run_program_prefix): New variable.  Use it
63005         to run tst-translit.
63006         * malloc/Makefile ($(objpfx)tst-mtrace.out): Pass
63007         $(run-program-prefix) to tst-mtrace.sh.
63008         * malloc/tst-mtrace.sh (run_program_prefix): New variable.  Use it
63009         to run tst-mtrace.
63010         * posix/Makefile ($(objpfx)wordexp-tst.out): Pass
63011         $(run-program-prefix) to wordexp-tst.sh, not $(elf-objpfx) and
63012         $(rtld-installed-name).
63013         * posix/wordexp-tst.sh (elf_objpfx): Remove variable.
63014         (rtld_installed_name): Likewise.
63015         (run_program_prefix): New variable.  Use it to run wordexp-test.
63016
63017         * Makeconfig (ARCH): Remove all definitions.
63018         (machine): Likewise.
63019         [ARCH]: Remove conditional code.
63020         [!objdir]: Give error.
63021         [!objdir] (objpfx): Remove.
63022         [!objdir] (common-objpfx): Likewise.
63023         [!objdir] (common-objdir): Likewise.
63024         * configure.in (config_makefile): Remove.  Hardcode Makefile in
63025         AC_CONFIG_FILES call.
63026         * configure: Regenerated.
63027
63028         [BZ #13888]
63029         * io/ftwtest-sh (tmp): Set to use the working directory, not /tmp
63030         or TMPDIR.
63031         (testout): Likewise.
63032
63033         * posix/Makefile ($(objpfx)tst-getconf.out): Pass
63034         $(built-program-cmd) to tst-getconf.sh, not $(elf-objpfx) and
63035         $(rtld-installed-name).
63036         * posix/tst-getconf.sh (elf_objpfx): Remove variable.
63037         (rtld_installed_name): Likwise.
63038         (runit): Remove function.
63039         (run_getconf): New variable,  Use it for running getconf binary.
63040
63041 2012-10-18  H.J. Lu  <hongjiu.lu@intel.com>
63042
63043         [BZ #14716]
63044         * string/test-memmem.c (check_result): New function.
63045         (do_one_test): Use it.
63046         (check1): New function.
63047         (test_main): Use it.
63048
63049 2012-10-18  Markus Trippelsdorf  <markus@trippelsdorf.de>
63050
63051         * math/Makefile: Comment on slow compilation of test-tgmath2.c.
63052
63053 2012-10-18  Joseph Myers  <joseph@codesourcery.com>
63054
63055         * sysdeps/generic/_G_config.h (_G_OPEN64): Remove.
63056         (_G_LSEEK64): Likewise.
63057         (_G_MMAP64): Likewise.
63058         (_G_FSTAT64): Likewise.
63059         * sysdeps/unix/sysv/linux/_G_config.h (_G_OPEN64): Remove.
63060         (_G_LSEEK64): Likewise.
63061         (_G_MMAP64): Likewise.
63062         (_G_FSTAT64): Likewise.
63063         * libio/fileops.c (mmap_remap_check) [_G_MMAP64]: Make code
63064         unconditional.  Call __mmap64 directly.
63065         (mmap_remap_check) [!_G_MMAP64]: Remove conditional code.
63066         (mmap_remap_check) [_G_LSEEK64]: Make code unconditional.  Call
63067         __lseek64 directly.
63068         (mmap_remap_check) [!_G_LSEEK64]: Remove conditional code.
63069         (decide_maybe_mmap) [_G_MMAP64]: Make code unconditional.  Call
63070         __mmap64 directly.
63071         (decide_maybe_mmap) [!_G_MMAP64]: Remove conditional code.
63072         (decide_maybe_mmap) [_G_LSEEK64]: Make code unconditional.  Call
63073         __lseek64 directly.
63074         (decide_maybe_mmap) [!_G_LSEEK64]: Remove conditional code.
63075         (_IO_file_sync_mmap) [_G_LSEEK64]: Make code unconditional.  Call
63076         __lseek64 directly.
63077         (_IO_file_sync_mmap) [!_G_LSEEK64]: Remove conditional code.
63078         (_IO_file_seek) [_G_LSEEK64]: Make code unconditional.  Call
63079         __lseek64 directly.
63080         (_IO_file_seek) [!_G_LSEEK64]: Remove conditional code.
63081         (_IO_file_stat) [_G_FSTAT64]: Make code unconditional.  Call
63082         __fxstat64 directly.
63083         (_IO_file_stat) [!_G_FSTAT64]: Remove conditional code.
63084         * libio/freopen64.c (freopen64) [_G_OPEN64]: Make code
63085         unconditional.
63086         (freopen64) [!_G_OPEN64]: Remove conditional code.
63087         * libio/fseeko64.c (fseeko64) [_G_LSEEK64]: Make code
63088         unconditional.
63089         (fseeko64) [!_G_LSEEK64]: Remove conditional code.
63090         * libio/ftello64.c (ftello64) [_G_LSEEK64]: Make code
63091         unconditional.
63092         (ftello64) [!_G_LSEEK64]: Remove conditional code.
63093         * libio/iofgetpos64.c (_IO_new_fgetpos64) [_G_LSEEK64]: Make code
63094         unconditional.
63095         (_IO_new_fgetpos64) [!_G_LSEEK64]: Remove conditional code.
63096         * libio/iofopen64.c (_IO_fopen64) [_G_OPEN64]: Make code
63097         unconditional.
63098         (_IO_fopen64) [!_G_OPEN64]: Remove conditional code.
63099         * libio/iofsetpos64.c (_IO_new_fsetpos64) [_G_LSEEK64]: Make code
63100         unconditional.
63101         (_IO_new_fsetpos64) [!_G_LSEEK64]: Remove conditional code.
63102         * libio/oldiofgetpos64.c (_IO_old_fgetpos64) [_G_LSEEK64]: Make code
63103         unconditional.
63104         (_IO_old_fgetpos64) [!_G_LSEEK64]: Remove conditional code.
63105         * libio/oldiofsetpos64.c (_IO_old_fsetpos64) [_G_LSEEK64]: Make code
63106         unconditional.
63107         (_IO_old_fsetpos64) [!_G_LSEEK64]: Remove conditional code.
63108
63109 2012-10-18  Siddhesh Poyarekar  <siddhesh@redhat.com>
63110
63111         [BZ #12140]
63112         * manual/memory.texi (Malloc Tunable Parameters): Add note
63113         about free list pointers overwriting some perturb bytes.
63114         Wording suggested by Roland McGrath.
63115
63116 2012-10-17  Joseph Myers  <joseph@codesourcery.com>
63117
63118         * math/libm-test.inc (gamma_test): Do not call feclearexcept.
63119         (lgamma_test): Likewise.
63120         (tgamma_test): Likewise.
63121
63122 2012-10-16  Florian Weimer  <fweimer@redhat.com>
63123
63124         [BZ #14700]
63125         * sysdeps/posix/opendir.c (MAX_DIR_BUFFER_SIZE): New constant.
63126         (__alloc_dir): Limit buffer to MAX_DIR_BUFFER_SIZE.
63127
63128 2012-10-16  Maxim Kuvyrkov  <maxim@codesourcery.com>
63129
63130         * NEWS: Mention BZ #14716.
63131         * string/str-two-way.h (two_way_short_needle): Fix thinko introduced
63132         when removing AVAILABLE1_USES_J macro.
63133
63134 2012-10-12  H.J. Lu  <hongjiu.lu@intel.com>
63135
63136         * sysdeps/x86/bits/byteswap.h: Include <bits/types.h>.
63137         (__bswap_64): __uint64_t for unsigned 64-bit int.
63138
63139 2012-10-12  Andreas Schwab  <schwab@linux-m68k.org>
63140
63141         * include/string.h (memmem): Declare libc hidden alias.
63142         * string/memmem.c (memmem): Define libc hidden alias.
63143         * sysdeps/unix/sysv/linux/powerpc/get_clockfreq.c: Use __open,
63144         __read, __close instead of open, read, close.
63145
63146 2012-10-11  H.J. Lu  <hongjiu.lu@intel.com>
63147
63148         * sysdeps/x86_64/multiarch/ifunc-impl-list.c: New file.
63149         * sysdeps/x86_64/multiarch/memcmp.S (__memcmp_sse2): Make it
63150         global and hidden.
63151         * sysdeps/x86_64/multiarch/memcpy.S (__memcpy_sse2): Likewise.
63152         * sysdeps/x86_64/multiarch/mempcpy.S (__mempcpy_sse2): Likewise.
63153         * sysdeps/x86_64/multiarch/rawmemchr.S (__rawmemchr_sse42):
63154         Likewise.
63155         (__rawmemchr_sse2): Likewise.
63156         * sysdeps/x86_64/multiarch/strcat.S (STRCAT_SSE2): Likewise.
63157         * sysdeps/x86_64/multiarch/strchr.S (__strchr_sse42): Likewise.
63158         (__strchr_sse2): Likewise.
63159         * sysdeps/x86_64/multiarch/strcmp-sse42.S (STRCMP_SSE42): Likewise.
63160         * sysdeps/x86_64/multiarch/strcmp.S (STRCMP_SSE2): Likewise.
63161         (__strcasecmp_sse2): Likewise.
63162         (__strncasecmp_sse2): Likewise.
63163         * sysdeps/x86_64/multiarch/strcpy.S (STRCPY_SSE2): Likewise.
63164         * sysdeps/x86_64/multiarch/strlen.S (__strlen_sse2): Likewise.
63165         * sysdeps/x86_64/multiarch/strnlen.S (__strnlen_sse2): Likewise.
63166         * sysdeps/x86_64/multiarch/strrchr.S (__strrchr_sse42): Likewise.
63167         (__strrchr_sse2): Likewise.
63168         * sysdeps/x86_64/multiarch/memcmp.S: Add comments for
63169         ifunc-impl-list.c.
63170         * sysdeps/x86_64/multiarch/memcpy.S: Likewise.
63171         * sysdeps/x86_64/multiarch/memcpy_chk.S: Likewise.
63172         * sysdeps/x86_64/multiarch/memmove.c: Likewise.
63173         * sysdeps/x86_64/multiarch/memmove_chk.c: Likewise.
63174         * sysdeps/x86_64/multiarch/mempcpy.S: Likewise.
63175         * sysdeps/x86_64/multiarch/mempcpy_chk.S: Likewise.
63176         * sysdeps/x86_64/multiarch/memset.S: Likewise.
63177         * sysdeps/x86_64/multiarch/memset_chk.S: Likewise.
63178         * sysdeps/x86_64/multiarch/rawmemchr.S: Likewise.
63179         * sysdeps/x86_64/multiarch/stpcpy.S: Likewise.
63180         * sysdeps/x86_64/multiarch/stpncpy.S: Likewise.
63181         * sysdeps/x86_64/multiarch/strcasecmp_l.S: Likewise.
63182         * sysdeps/x86_64/multiarch/strcasestr-c.c: Likewise.
63183         * sysdeps/x86_64/multiarch/strcat.S: Likewise.
63184         * sysdeps/x86_64/multiarch/strchr.S: Likewise.
63185         * sysdeps/x86_64/multiarch/strcmp.S: Likewise.
63186         * sysdeps/x86_64/multiarch/strcpy.S: Likewise.
63187         * sysdeps/x86_64/multiarch/strcspn.S: Likewise.
63188         * sysdeps/x86_64/multiarch/strlen.S: Likewise.
63189         * sysdeps/x86_64/multiarch/strncase_l.S: Likewise.
63190         * sysdeps/x86_64/multiarch/strncat.S: Likewise.
63191         * sysdeps/x86_64/multiarch/strncmp.S: Likewise.
63192         * sysdeps/x86_64/multiarch/strncpy.S: Likewise.
63193         * sysdeps/x86_64/multiarch/strnlen.S: Likewise.
63194         * sysdeps/x86_64/multiarch/strpbrk.S: Likewise.
63195         * sysdeps/x86_64/multiarch/strrchr.S: Likewise.
63196         * sysdeps/x86_64/multiarch/strspn.S: Likewise.
63197         * sysdeps/x86_64/multiarch/strstr-c.c: Likewise.
63198         * sysdeps/x86_64/multiarch/wcscpy.S: Likewise.
63199         * sysdeps/x86_64/multiarch/wmemcmp.S: Likewise.
63200
63201         * sysdeps/i386/i686/multiarch/bcopy.S (__bcopy_ia32): Make it
63202         global and hidden.
63203         * sysdeps/i386/i686/multiarch/bzero.S (__bzero_ia32): Likewise.
63204         * sysdeps/i386/i686/multiarch/memcmp.S (__memcmp_ia32): Likewise.
63205         * sysdeps/i386/i686/multiarch/memcpy.S (__memcpy_ia32): Likewise.
63206         * sysdeps/i386/i686/multiarch/memmove.S (__memmove_ia32):
63207         Likewise.
63208         * sysdeps/i386/i686/multiarch/mempcpy.S (__mempcpy_ia32):
63209         Likewise.
63210         * sysdeps/i386/i686/multiarch/strcat.S (STRCAT_IA32): Likewise.
63211         * sysdeps/i386/i686/multiarch/strcmp.S (__STRCMP_IA32): Likewise.
63212         * sysdeps/i386/i686/multiarch/strcpy.S (STRCPY_IA32): Likewise.
63213         * sysdeps/i386/i686/multiarch/bcopy.S: Add comments for
63214         ifunc-impl-list.c.
63215         * sysdeps/i386/i686/multiarch/bzero.S: Likewise.
63216         * sysdeps/i386/i686/multiarch/memchr.S: Likewise.
63217         * sysdeps/i386/i686/multiarch/memcmp.S: Likewise.
63218         * sysdeps/i386/i686/multiarch/memcpy.S: Likewise.
63219         * sysdeps/i386/i686/multiarch/memcpy_chk.S: Likewise.
63220         * sysdeps/i386/i686/multiarch/memmove.S: Likewise.
63221         * sysdeps/i386/i686/multiarch/memmove_chk.S: Likewise.
63222         * sysdeps/i386/i686/multiarch/mempcpy.S: Likewise.
63223         * sysdeps/i386/i686/multiarch/mempcpy_chk.S: Likewise.
63224         * sysdeps/i386/i686/multiarch/memrchr.S: Likewise.
63225         * sysdeps/i386/i686/multiarch/memset.S: Likewise.
63226         * sysdeps/i386/i686/multiarch/memset_chk.S: Likewise.
63227         * sysdeps/i386/i686/multiarch/rawmemchr.S: Likewise.
63228         * sysdeps/i386/i686/multiarch/stpcpy.S: Likewise.
63229         * sysdeps/i386/i686/multiarch/stpncpy.S: Likewise.
63230         * sysdeps/i386/i686/multiarch/strcasecmp.S: Likewise.
63231         * sysdeps/i386/i686/multiarch/strcasecmp_l.S: Likewise.
63232         * sysdeps/i386/i686/multiarch/strcasestr-c.c: Likewise.
63233         * sysdeps/i386/i686/multiarch/strcat.S: Likewise.
63234         * sysdeps/i386/i686/multiarch/strchr.S: Likewise.
63235         * sysdeps/i386/i686/multiarch/strcmp.S: Likewise.
63236         * sysdeps/i386/i686/multiarch/strcpy.S: Likewise.
63237         * sysdeps/i386/i686/multiarch/strcspn.S: Likewise.
63238         * sysdeps/i386/i686/multiarch/strlen.S: Likewise.
63239         * sysdeps/i386/i686/multiarch/strncase.S: Likewise.
63240         * sysdeps/i386/i686/multiarch/strncase_l.S: Likewise.
63241         * sysdeps/i386/i686/multiarch/strncat.S: Likewise.
63242         * sysdeps/i386/i686/multiarch/strncmp.S: Likewise.
63243         * sysdeps/i386/i686/multiarch/strncpy.S: Likewise.
63244         * sysdeps/i386/i686/multiarch/strnlen.S: Likewise.
63245         * sysdeps/i386/i686/multiarch/strpbrk.S: Likewise.
63246         * sysdeps/i386/i686/multiarch/strrchr.S: Likewise.
63247         * sysdeps/i386/i686/multiarch/strspn.S: Likewise.
63248         * sysdeps/i386/i686/multiarch/strstr-c.c: Likewise.
63249         * sysdeps/i386/i686/multiarch/wcschr.S: Likewise.
63250         * sysdeps/i386/i686/multiarch/wcscmp.S: Likewise.
63251         * sysdeps/i386/i686/multiarch/wcscpy.S: Likewise.
63252         * sysdeps/i386/i686/multiarch/wcslen.S: Likewise.
63253         * sysdeps/i386/i686/multiarch/wcsrchr.S: Likewise.
63254         * sysdeps/i386/i686/multiarch/wmemcmp.S: Likewise.
63255         * sysdeps/i386/i686/multiarch/ifunc-impl-list.c: New file.
63256
63257         * Rules [$(multi-arch) = no] (tests): Filter out $(tests-ifunc).
63258         [$(multi-arch) = no] (xtests): Filter out $(xtests-ifunc).
63259         * include/ifunc-impl-list.h: New file.
63260         * misc/ifunc-impl-list.c: Likewise.
63261         * misc/Makefile (routines): Add ifunc-impl-list.
63262         * misc/Versions (GLIBC_PRIVATE): Add __libc_ifunc_impl_list.
63263         * string/test-string.h: Include <ifunc-impl-list.h>.
63264         (func_list, func_count, impl_count, impl_array) [TEST_IFUNC &&
63265         TEST_NAME]: New variables.
63266         (FOR_EACH_IMPL): Support func_list if TEST_IFUNC and TEST_NAME
63267         are defined.
63268         (test_init): Call __libc_ifunc_impl_list to initialize
63269         func_list if TEST_IFUNC and TEST_NAME are defined.
63270
63271         * string/Makefile (strop-tests): Add bcopy and bzero.
63272         * string/test-bcopy.c: New file.
63273         * string/test-bzero.c: Likewise.
63274         * string/test-memmove.c: Support bcopy test if TEST_BCOPY is
63275         defined.
63276         * string/test-memset.c: Support bzero test if TEST_BZERO is
63277         defined.
63278         * sysdeps/x86_64/multiarch/bcopy.S (bcopy): Jump to
63279         __libc_memmove.
63280         * sysdeps/x86_64/multiarch/bzero.S (__bzero): Jump to
63281         __libc_memset.
63282         * sysdeps/x86_64/multiarch/memset.S (__libc_memset): New alias
63283         of memset.
63284
63285 2012-10-10  Joseph Myers  <joseph@codesourcery.com>
63286
63287         * configure.in: Run $CXX, not cc1plus, to locate C++ headers.
63288         * configure: Regenerated.
63289
63290         * Makeconfig (+link-static-before-libc): Don't include
63291         $(link-static-libc).
63292
63293         * libio/libio.h (_IO_pos_t): Remove.
63294
63295 2012-10-10  Alexandre Oliva <aoliva@redhat.com>
63296
63297         * NEWS: Add note about FIPS mode.  Wording suggested by Roland
63298         McGrath.
63299
63300 2012-10-10  Alexandre Oliva <aoliva@redhat.com>
63301
63302         * crypt/crypt-entry.c: Include fips-private.h.
63303         (__crypt_r, __crypt): Disable MD5 and DES if FIPS is enabled.
63304         * crypt/md5c-test.c (main): Tolerate disabled MD5.
63305         * sysdeps/unix/sysv/linux/fips-private.h: New file.
63306         * sysdeps/generic/fips-private.h: New file, dummy fallback.
63307
63308 2012-10-10  Alexandre Oliva <aoliva@redhat.com>
63309
63310         * crypt/crypt-private.h: Include stdbool.h.
63311         (_ufc_setup_salt_r): Return bool.
63312         * crypt/crypt-entry.c: Include errno.h.
63313         (__crypt_r): Return NULL with EINVAL for bad salt.
63314         * crypt/crypt_util.c (bad_for_salt): New.
63315         (_ufc_setup_salt_r): Check that salt is long enough and within
63316         the specified alphabet.
63317         * crypt/badsalttest.c: New file.
63318         * crypt/Makefile (tests): Add it.
63319         ($(objpfx)badsalttest): New.
63320
63321 2012-10-09  Maxim Kuvyrkov  <maxim@codesourcery.com>
63322
63323         * NEWS: Add entry for BZ #14602.
63324
63325 2012-10-09  Joseph Myers  <joseph@codesourcery.com>
63326
63327         * math/gen-libm-test.pl (parse_args): Handle comparison macros as
63328         type-generic.
63329         * math/libm-test.inc: Update comment listing what functions and
63330         macros are tested.
63331         (isgreater_test): New function.
63332         (isgreaterequal_test): Likewise.
63333         (isless_test): Likewise.
63334         (islessequal_test): Likewise.
63335         (islessgreater_test): Likewise.
63336         (isunordered_test): Likewise.
63337         (main): Call the new functions.
63338
63339 2012-10-09  Roland McGrath  <roland@hack.frob.com>
63340
63341         * aclocal.m4 (GLIBC_PROVIDES): Provide _AS_BASENAME_PREPARE,
63342         _AS_ME_PREPARE, _AS_VAR_ARITH_PREPARE, AS_SHELL_FN_as_fn_set_status,
63343         AS_SHELL_FN_as_fn_exit, AS_SHELL_FN_ac_fn_c_try_compile.
63344         * sysdeps/i386/configure: Regenerated.
63345         * sysdeps/ieee754/ldbl-opt/configure: Regenerated.
63346         * sysdeps/mach/configure: Regenerated.
63347         * sysdeps/mach/hurd/configure: Regenerated.
63348         * sysdeps/powerpc/configure: Regenerated.
63349         * sysdeps/powerpc/powerpc32/configure: Regenerated.
63350         * sysdeps/powerpc/powerpc64/configure: Regenerated.
63351         * sysdeps/s390/s390-32/configure: Regenerated.
63352         * sysdeps/s390/s390-64/configure: Regenerated.
63353         * sysdeps/sh/configure: Regenerated.
63354         * sysdeps/sparc/configure: Regenerated.
63355         * sysdeps/unix/sysv/linux/configure: Regenerated.
63356         * sysdeps/unix/sysv/linux/powerpc/configure: Regenerated.
63357         * sysdeps/x86_64/configure: Regenerated.
63358
63359         * dlfcn/dlerror.c (check_free): Call _dl_addr only if SHARED is
63360         defined.  Don't check if MAP is NULL.
63361
63362 2012-10-09  Joseph Myers  <joseph@codesourcery.com>
63363
63364         * sysdeps/generic/_G_config.h (_G_off64_t): Remove.
63365         (_G_stat64): Likewise.
63366         * sysdeps/unix/sysv/linux/_G_config.h (_G_off64_t): Remove.
63367         (_G_stat64): Likewise.
63368         * libio/filedoalloc.c (_IO_file_doallocate): Use struct stat64
63369         instead of struct _G_stat64.
63370         * libio/fileops.c (mmap_remap_check): Likewise.
63371         (decide_maybe_mmap): Likewise.
63372         (_IO_new_file_seekoff): Likewise.
63373         (_IO_file_stat): Likewise.
63374         * libio/libio.h (_IO_off64_t): Define to __off64_t, not
63375         _G_off64_t.
63376         * libio/oldfileops.c (_IO_old_file_seekoff): Use struct stat64
63377         instead of struct _G_stat64.
63378         * libio/wfileops.c (_IO_wfile_seekoff): Likewise.
63379
63380 2012-10-08  Maxim Kuvyrkov  <maxim@codesourcery.com>
63381
63382         [BZ #14602]
63383         * string/str-two-way.h (AVAILABLE1, AVAILABLE2, AVAILABLE1_USES_J):
63384         Replace with ...
63385         (CHECK_EOL): New macro.
63386         (two_way_short_needle): Check beginning of haystack for EOL.  Use
63387         CHECK_EOL.
63388         * string/strcasestr.c (AVAILABLE1, AVAILABLE2, AVAILABLE1_USES_J):
63389         Replace with CHECK_EOL.
63390         * string/strstr.c (AVAILABLE1, AVAILABLE2, AVAILABLE1_USES_J):
63391         Replace with CHECK_EOL.
63392
63393 2012-10-08  Joseph Myers  <joseph@codesourcery.com>
63394
63395         * math/gen-libm-test.pl (parse_args): Handle isinf and isnan as
63396         type-generic.
63397         * math/libm-test.inc: Update comment listing what functions and
63398         macros are tested.
63399         (finite_test): New function.
63400         (isinf_test): Likewise.
63401         (isnan_test): Likewise.
63402         (fpclassify_test): Test subnormal input.
63403         (isfinite_test): Likewise.
63404         (isnormal_test): Likewise.
63405         (main): Call the new functions.
63406
63407 2012-10-08  Jonathan Nieder  <jrnieder@gmail.com>
63408
63409         [BZ #14660]
63410         * Makerules (%.dynsym): Force C locale when running
63411         $(OBJDUMP) --dynamic-syms.
63412
63413 2012-10-08  Andreas Schwab  <schwab@linux-m68k.org>
63414
63415         * sysdeps/unix/sysv/linux/powerpc/get_timebase_freq.c: Include
63416         <stdint.h>.
63417
63418 2012-10-06  David S. Miller  <davem@davemloft.net>
63419
63420         * sysdeps/sparc/sparc64/multiarch/memcpy-niagara4.S: On 32-bit, clear
63421         upper 32-bits of the length value in %o2 since we use branch-on-register
63422         tests which consider the entire 64-bit register.
63423
63424 2012-10-06  H.J. Lu  <hongjiu.lu@intel.com>
63425
63426         * string/test-strstr.c (check2): Add a test for page boundary.
63427
63428 2012-10-05  David S. Miller  <davem@davemloft.net>
63429
63430         * sysdeps/sparc/sparc64/multiarch/memset-niagara4.S: New file.
63431         * sysdeps/sparc/sparc32/sparcv9/multiarch/memset-niagara4.S: New
63432         file.
63433         * sysdeps/sparc/sparc64/multiarch/Makefile: Add to
63434         sysdep_routines.
63435         * sysdeps/sparc/sparc32/sparcv9/multiarch/Makefile: Likewise.
63436         * sysdeps/sparc/sparc64/multiarch/memset.S: Use Niagara-4 memset
63437         and bzero when HWCAP_SPARC_CRYPTO is present.
63438
63439 2012-10-05  H.J. Lu  <hongjiu.lu@intel.com>
63440
63441         [BZ #14602]
63442         * string/test-strstr.c (check2): New function.
63443         (test_main): Call check2.
63444
63445         * string/Makefile (tests): Remove bug-strstr1, bug-strcasestr1
63446         and bug-strchr1.
63447         * string/bug-strcasestr1.c (do_test): Moved to ...
63448         * string/test-strcasestr.c (check1): Here.  New function.
63449         (do_one_test): Break out result checking code into ...
63450         (check_result): This.  New function.
63451         (do_one_test): Call check_result.
63452         (test_main): Call check1.
63453         * string/bug-strchr1.c (do_test): Moved to ...
63454         * string/test-strchr.c (check1): Here.  New function.
63455         (do_one_test): Break out result checking code into ...
63456         (check_result): This.  New function.
63457         (do_one_test): Call check_result.
63458         (test_main): Call check1.
63459         * string/bug-strstr1.c (main): Moved to ...
63460         * string/test-strstr.c (check1): Here.  New function.
63461         (do_one_test): Break out result checking code into ...
63462         (check_result): This.  New function.
63463         (do_one_test): Call check_result.
63464         (test_main): Call check1.
63465         * string/bug-strcasestr1.c: Removed.
63466         * string/bug-strchr1.c: Likewise.
63467         * string/bug-strstr1.c: Likewise.
63468
63469         * elf/Makefile (dl-routines): Add hwcaps.
63470         * elf/dl-support.c (_dl_important_hwcaps): Removed.
63471         * elf/dl-sysdep.c (_DL_FIRST_EXTRA): Likewise.
63472         (_dl_important_hwcaps): Moved to ...
63473         * elf/dl-hwcaps.c: Here.  New file.
63474         * sysdeps/mach/hurd/dl-sysdep.c (_dl_important_hwcaps): Removed.
63475
63476         [BZ #14557]
63477         * elf/setup-vdso.h (setup_vdso): Set GL(dl_nns) to 1 for vDSO
63478         if IS_IN_rtld isn't defined.
63479
63480         * elf/dl-support.c (_dl_sysinfo_map): New.
63481         Include "get-dynamic-info.h" and "setup-vdso.h".
63482         (_dl_non_dynamic_init): Call setup_vdso.
63483         * elf/dynamic-link.h: Don't include <assert.h>.
63484         (elf_get_dynamic_info): Moved to ...
63485         * elf/get-dynamic-info.h: Here.  New file.
63486         * elf/dynamic-link.h: Include "get-dynamic-info.h".
63487         * elf/rtld.c (dl_main): Break out vDSO setup code into ...
63488         * elf/setup-vdso.h: Here.  New file.
63489         * elf/rtld.c: Include "setup-vdso.h".
63490         (dl_main): Call setup_vdso.
63491
63492 2012-10-05  Joseph Myers  <joseph@codesourcery.com>
63493
63494         * math/libm-test.inc: List nexttoward, cimag, clog10, conf and
63495         creal in comment listing functions tested.  List finite, isinf,
63496         isnan, isless, islessequal, isgreater, isgreaterequal,
63497         islessgreater, isunordered, lgamma_r and pow10 as functions and
63498         macros not tested.  Mention which functions not tested are aliases
63499         for other functions.  Fix typo.  Note that signs of NaNs are not
63500         tested.
63501
63502         * scripts/config.guess: Update from config.git.
63503         * scripts/config.sub: Likewise.
63504
63505 2012-10-04  Roland McGrath  <roland@hack.frob.com>
63506
63507         * misc/Versions (GLIBC_PRIVATE): New set, add __madvise.
63508         * misc/madvise.c (madvise): Renamed to __madvise.
63509         Make madvise a weak alias.
63510         * include/sys/mman.h: Declare __madvise.
63511         Replace libc_hidden_proto (madvise) with libc_hidden_proto (__madvise).
63512         * sysdeps/unix/syscalls.list
63513         (madvise): Make __madvise the strong name, and madvise a weak alias.
63514         * sysdeps/unix/sysv/linux/syscalls.list
63515         (madvise, mmap): Remove redundant entries.
63516         * malloc/arena.c (shrink_heap): Use __madvise, not madvise.
63517         * malloc/malloc.c (mtrim): Likewise.
63518         * sysdeps/mach/hurd/malloc-machine.h (madvise): Renamed to __madvise.
63519
63520 2012-10-03  Roland McGrath  <roland@hack.frob.com>
63521
63522         * sysdeps/mach/hurd/dl-cache.c: File removed.
63523         * config.h.in (USE_LDCONFIG): New #undef.
63524         * configure.in (use_ldconfig): If set, define USE_LDCONFIG.
63525         * configure: Regenerated.
63526         * elf/Makefile (dl-routines): Add dl-cache only under
63527         [$(use-ldconfig) = yes].
63528         * elf/dl-load.c (_dl_map_object): Conditionalize code consulting the
63529         cache on [USE_LDCONFIG].
63530         * elf/dl-open.c (_dl_open): Call _dl_unload_cache only under
63531         [USE_LDCONFIG].
63532         * elf/rtld.c (dl_main): Likewise.
63533
63534 2012-10-03  Pino Toscano  <toscano.pino@tiscali.it>
63535
63536         * sysdeps/posix/sysconf.c (__sysconf): Return 0 also for
63537         _SC_LEVEL4_CACHE_LINESIZE.
63538
63539 2012-10-03  Roland McGrath  <roland@hack.frob.com>
63540
63541         * sysdeps/unix/bsd/confstr.h: File removed.
63542
63543 2012-10-02  Alexandre Oliva <aoliva@redhat.com>
63544
63545         * scripts/check-local-headers.sh: Exclude sys/sdt.h and
63546         sys/sdt-config.h.
63547
63548 2012-10-02  Roland McGrath  <roland@hack.frob.com>
63549
63550         * elf/dl-load.c (_dl_map_object_from_fd: struct loadcmd):
63551         Make 'mapoff' field ElfW(Off) rather than off_t.
63552
63553 2012-10-02  Dmitry V. Levin  <ldv@altlinux.org>
63554
63555         * nscd/Makefile: Remove nscd-cflags and all its users.
63556         (CPPFLAGS-nonlib): Add preprocessor flags for nscd modules.
63557         (CFLAGS-nonlib): Add compiler flags for nscd modules.
63558
63559         [BZ #10631]
63560         * malloc.c (malloc_printerr): Clarify error message.
63561
63562 2012-10-02  H.J. Lu  <hongjiu.lu@intel.com>
63563
63564         [BZ #14648]
63565         * sysdeps/x86_64/multiarch/init-arch.c (__init_cpu_features):
63566         Set bit_FMA_Usable if FMA is supported.
63567         * sysdeps/x86_64/multiarch/init-arch.h (bit_FMA_Usable): New
63568         macro.
63569         (bit_FMA4_Usable): Updated.
63570         (index_FMA_Usable): New macro.
63571         (CPUID_FMA): Likewise.
63572         (HAS_FMA): Defined with bit_FMA_Usable.
63573
63574 2012-10-01  Roland McGrath  <roland@hack.frob.com>
63575
63576         * bits/types.h (__swblk_t): Type removed.
63577         * bits/typesizes.h (__SWBLK_T_TYPE): Macro removed.
63578         * sysdeps/mach/hurd/bits/typesizes.h (__SWBLK_T_TYPE): Likewise.
63579         * sysdeps/unix/bsd/bsd4.4/freebsd/bits/typesizes.h
63580         (__SWBLK_T_TYPE): Likewise.
63581         * sysdeps/unix/sysv/linux/x86/bits/typesizes.h
63582         (__SWBLK_T_TYPE): Likewise.
63583         * sysdeps/unix/sysv/linux/sparc/bits/typesizes.h
63584         (__SWBLK_T_TYPE): Likewise.
63585         * sysdeps/unix/sysv/linux/s390/bits/typesizes.h
63586         (__SWBLK_T_TYPE): Likewise.
63587
63588 2012-10-01  Patsy Franklin <pfrankli@redhat.com>
63589             Honza Horak <hhorak@redhat.com>
63590
63591         * nis/yp_xdr.c (xdr_domainname): Use YPMAXDOMAIN as maxsize.
63592         (xdr_mapname): Use YPMAXMAP as maxsize.
63593         (xdr_peername): Use YPMAXPEER as maxsize.
63594         (xdr_keydat): Use YPAXRECORD as maxsize.
63595         (xdr_valdat): Use YPMAXRECORD as maxsize.
63596
63597 2012-10-01  Roland McGrath  <roland@hack.frob.com>
63598
63599         * io/openat.c [!__ASSUME_ATFCTS] (__have_atfcts): New global variable.
63600
63601         * sysdeps/unix/sysv/linux/init-first.c: Moved to ...
63602         * csu/init-first.c: ... here.
63603         * sysdeps/unix/sysv/linux/powerpc/init-first.c: Update #include.
63604         * sysdeps/unix/sysv/linux/s390/init-first.c: Likewise.
63605         * sysdeps/unix/sysv/linux/x86_64/init-first.c: Likewise.
63606         * sysdeps/unix/sysv/linux/x86_64/x32/init-first.c: Likewise.
63607         * sysdeps/i386/init-first.c: File removed.
63608         * sysdeps/sh/init-first.c: File removed.
63609
63610 2012-10-01  Joseph Myers  <joseph@codesourcery.com>
63611
63612         [BZ #14645]
63613         * sysdeps/ieee754/dbl-64/s_fma.c (__fma): Compute result as x * y
63614         if x * y might underflow to zero and z is zero.
63615         * sysdeps/ieee754/ldbl-128/s_fmal.c (__fmal): Likewise.
63616         * sysdeps/ieee754/ldbl-96/s_fmal.c (__fmal): Likewise.
63617         * math/libm-test.inc (min_subnorm_value): New variable.
63618         (fma_test): Add more tests.
63619         (fma_test_towardzero): Likewise.
63620         (fma_test_downward): Likewise.
63621         (fma_test_upward): Likewise.
63622         (initialize): Set min_subnorm_value.
63623
63624 2012-09-29  Joseph Myers  <joseph@codesourcery.com>
63625
63626         [BZ #14638]
63627         * sysdeps/ieee754/dbl-64/s_fma.c (__fma): Use x * y + z for exact
63628         0 + 0.
63629         * sysdeps/ieee754/dbl-64/s_fmaf.c (__fmaf): Use original rounding
63630         mode for addition resulting in exact zero.
63631         * sysdeps/ieee754/ldbl-128/s_fma.c (__fma): Likewise.
63632         * sysdeps/ieee754/ldbl-128/s_fmal.c (__fmal): Use x * y + z for
63633         exact 0 + 0.
63634         * sysdeps/ieee754/ldbl-96/s_fma.c (__fma): Likewise.
63635         * sysdeps/ieee754/ldbl-96/s_fmal.c (__fmal): Likewise.
63636         * math/libm-test.inc (fma_test): Add more tests.
63637         (fma_test_towardzero): New function.
63638         (fma_test_downward): Likewise.
63639         (fma_test_upward): Likewise.
63640         (main): Call the new functions.
63641
63642 2012-09-28  David S. Miller  <davem@davemloft.net>
63643
63644         * sysdeps/sparc/fpu/libm-test-ulps: Fix garbage in file.
63645
63646 2012-09-28  Roland McGrath  <roland@hack.frob.com>
63647
63648         * sysdeps/posix/sleep.c (__sleep): Rewritten using __nanosleep
63649         instead of SIGALRM.
63650
63651         * sysdeps/gnu/_G_config.h: Moved to ...
63652         * sysdeps/unix/sysv/linux/_G_config.h: ... here.
63653         * sysdeps/mach/hurd/_G_config.h: Moved to ...
63654         * sysdeps/generic/_G_config.h: ... here.
63655
63656         * io/open.c (__open): Renamed to __libc_open.  Make __open an alias.
63657
63658         * posix/Makefile ($(objpfx)config-name.h): Do $(make-target-directory).
63659
63660         * nss/Makefile ($(objpfx)/libnss_test1.so$(libnss_test1.so-version)):
63661         Conditionalize target on [libnss_test1.so-version].
63662
63663         * elf/dl-sysdep.c: Conditionalize whole contents on [SHARED].
63664
63665         * Makeconfig (nssobjdir, resolvobjdir): Remove variables.
63666         (elfobjdir): Move out of conditionals.
63667
63668         * nss/nsswitch.c (nss_new_service): Conditionalize definition and
63669         declaration on [!DO_STATIC_NSS || SHARED], matching its only caller.
63670         (__nss_lookup_function): Conditionalize label remove_from_tree on
63671         [!DO_STATIC_NSS || SHARED], matching its only use.
63672
63673 2012-09-28  David S. Miller  <davem@davemloft.net>
63674
63675         * sysdeps/sparc/sparc64/multiarch/memcpy-niagara4.S: New file.
63676         * sysdeps/sparc/sparc32/sparcv9/multiarch/memcpy-niagara4.S: New
63677         file.
63678         * sysdeps/sparc/sparc64/multiarch/Makefile: Add to
63679         sysdep_routines.
63680         * sysdeps/sparc/sparc32/sparcv9/multiarch/Makefile: Likewise.
63681         * sysdeps/sparc/sparc64/multiarch/memcpy.S: Use Niagara-4 memcpy
63682         when HWCAP_SPARC_CRYPTO is present.
63683
63684 2012-09-28  Pino Toscano  <toscano.pino@tiscali.it>
63685
63686         * io/tst-mknodat.c: Create a FIFO instead of a socket.
63687
63688 2012-09-28  Andreas Schwab  <schwab@linux-m68k.org>
63689
63690         [BZ #6530]
63691         * stdio-common/vfprintf.c (process_string_arg): Revert
63692         2000-07-22 change.
63693
63694 2011-09-28  Jonathan Nieder  <jrnieder@gmail.com>
63695
63696         * stdio-common/Makefile (tst-sprintf-ENV): Set environment
63697         for testcase.
63698         * stdio-common/tst-sprintf.c: Include <locale.h>
63699         (main): Test sprintf's handling of incomplete multibyte
63700         characters.
63701
63702 2012-09-28  H.J. Lu  <hongjiu.lu@intel.com>
63703
63704         * elf/dl-runtime.c (VERSYMIDX): Removed.
63705         * elf/dl-version.c (VERSYMIDX): Likewise.
63706         * elf/do-rel.h (VERSYMIDX): Likewise.
63707         (VALIDX): Likewise.
63708         * elf/dynamic-link.h (VERSYMIDX): Likewise.
63709         * elf/rtld.c (VALIDX): Likewise.
63710         (ADDRIDX): Likewise.
63711         * sysdeps/sparc/sparc32/dl-machine.h (VALIDX): Likewise.
63712         * sysdeps/sparc/sparc64/dl-machine.h (VALIDX): Likewise.
63713         * sysdeps/x86_64/dl-tlsdesc.h (ADDRIDX): Likewise.
63714         * sysdeps/generic/ldsodefs.h (VERSYMIDX): New macro.
63715         (VALIDX): Likewise.
63716         (ADDRIDX): Likewise.
63717
63718 2012-09-28  Pino Toscano  <toscano.pino@tiscali.it>
63719
63720         * sysdeps/pthread/aio_fsync.c: Fix the file mode checking.
63721
63722 2012-09-28  Dmitry V. Levin  <ldv@altlinux.org>
63723
63724         [BZ #11438]
63725         * sysdeps/posix/getaddrinfo.c (default_scopes): Map RFC 1918 addresses
63726         to global scope.
63727         * posix/tst-rfc3484.c: Verify 10/8, 172.16/12 and 196.128/16
63728         addresses are in the same scope as 192.0.2/24.
63729         * posix/gai.conf: Document new scope table defaults.
63730
63731 2012-09-28  Siddhesh Poyarekar  <siddhesh@redhat.com>
63732
63733         [BZ #5298]
63734         * libio/fileops.c (_IO_new_file_seekoff): Don't flush buffer
63735         for ftell.  Compute offsets from write pointers instead.
63736         * libio/wfileops.c (_IO_wfile_seekoff): Likewise.
63737
63738 2012-09-28  Siddhesh Poyarekar  <siddhesh@redhat.com>
63739
63740         [BZ #14543]
63741         * libio/Makefile (tests): New test case tst-fseek.
63742         * libio/tst-fseek.c: New test case to verify that fseek/ftell
63743         combination works in wide mode.
63744         * libio/wfileops.c (_IO_wfile_seekoff): Adjust internal buffer
63745         state when the external buffer state changes.
63746
63747 2012-09-27  David S. Miller  <davem@davemloft.net>
63748
63749         [BZ #14376]
63750         * sysdeps/sparc/sparc64/dl-machine.h (elf_machine_rela): Do not
63751         pass reloc->r_addend in as the 'high' argument to
63752         sparc64_fixup_plt when handling R_SPARC_JMP_IREL relocations.
63753
63754         * sysdeps/sparc/fpu/libm-test-ulps: Update.
63755
63756 2012-09-28  Pino Toscano  <toscano.pino@tiscali.it>
63757
63758         * rt/tst-aio2.c: Include <pthread.h>.
63759         * rt/tst-aio3.c: Likewise.
63760
63761 2012-09-27  Steve Ellcey  <sellcey@mips.com>
63762
63763         * sysdeps/ieee754/ldbl-128/bits/huge_vall.h: Remove.
63764
63765 2012-09-27  H.J. Lu  <hongjiu.lu@intel.com>
63766
63767         * sysdeps/x86_64/multiarch/strncmp-ssse3.S: Conditionalize
63768         contents on [SHARED].
63769
63770 2012-09-26  Marek Polacek  <polacek@redhat.com>
63771
63772         [BZ #14530]
63773         [BZ #13741]
63774         * misc/sys/cdefs.h: Define __extern_inline and __extern_always_inline
63775         for C++ and GCC <4.3 as well as for non GCC compilers.
63776
63777 2012-09-26  Markus Trippelsdorf  <markus@trippelsdorf.de>
63778
63779         * sysdeps/x86_64/fpu/libm-test-ulps: Update.
63780
63781 2012-09-25  Roland McGrath  <roland@hack.frob.com>
63782
63783         * Makefile.in (all, install): Declare with .PHONY.
63784         Reported by Michael Hope <michael.hope@linaro.org>.
63785
63786 2012-09-25  Tulio Magno Quites Machado Filho  <tuliom@linux.vnet.ibm.com>
63787
63788         * manual/platform.texi (PowerPC): Document __ppc_get_timebase_freq.
63789         * sysdeps/powerpc/sys/platform/ppc.h: Include the operating
63790         system header.
63791         * sysdeps/unix/sysv/linux/powerpc/Makefile (sysdep_headers):
63792         Likewise.
63793         (sydep_routines): Add the new and the internal functions.
63794         * sysdeps/unix/sysv/linux/powerpc/bits/ppc.h: New file.
63795         * sysdeps/unix/sysv/linux/powerpc/get_timebase_freq.c: Likewise.
63796         * sysdeps/unix/sysv/linux/powerpc/powerpc32/Versions
63797         (GLIBC_2.17): Add the new function.
63798         * sysdeps/unix/sysv/linux/powerpc/powerpc32/fpu/nptl/libc.abilist
63799         (GLIBC_2.17): Likewise.
63800         * sysdeps/unix/sysv/linux/powerpc/powerpc64/Versions
63801         (GLIBC_2.17): Likewise.
63802         * sysdeps/unix/sysv/linux/powerpc/powerpc64/nptl/libc.abilist
63803         (GLIBC_2.17): Likewise.
63804         * sysdeps/unix/sysv/linux/powerpc/test-gettimebasefreq.c: New file.
63805
63806 2012-09-25  Alan Modra  <amodra@gmail.com>
63807
63808         * sysdeps/unix/sysv/linux/powerpc/pthread_once.c (__pthread_once):
63809         Add release barrier before setting once_control to say
63810         initialisation is done.  Add hints on lwarx.  Use macro in
63811         place of isync.
63812         (clear_once_control): Add release barrier.
63813
63814 2012-09-25  Joseph Myers  <joseph@codesourcery.com>
63815
63816         [BZ #13629]
63817         * math/s_clog.c (__clog): Handle more values close to |z| = 1
63818         specially.
63819         * math/s_clog10.c (__clog10): Likewise.
63820         * math/s_clog10f.c (__clog10f): Likewise.
63821         * math/s_clog10l.c (__clog10l): Likewise.
63822         * math/s_clogf.c (__clogf): Likewise.
63823         * math/s_clogl.c (__clogl): Likewise.
63824         * math/Makefile (libm-calls): Add x2y2m1.
63825         * sysdeps/generic/math_private.h (__x2y2m1f): Declare.
63826         (__x2y2m1): Likewise.
63827         (__x2y2m1l): Likewise.
63828         * sysdeps/ieee754/dbl-64/x2y2m1.c: New file.
63829         * sysdeps/ieee754/dbl-64/x2y2m1f.c: Likewise.
63830         * sysdeps/ieee754/ldbl-128/x2y2m1l.c: Likewise.
63831         * sysdeps/ieee754/ldbl-128ibm/x2y2m1l.c: Likewise.
63832         * sysdeps/ieee754/ldbl-96/x2y2m1.c: Likewise.
63833         * sysdeps/ieee754/ldbl-96/x2y2m1l.c: Likewise.
63834         * math/libm-test.inc (clog_test, clog10_test): Add more tests.
63835         * sysdeps/i386/fpu/libm-test-ulps: Update.
63836         * sysdeps/x86_64/fpu/libm-test-ulps: Likewise.
63837
63838         [BZ #14621]
63839         * posix/glob.c (next_brace_sub): Use size_t instead of unsigned
63840         int as type of variable DEPTH.
63841         (glob): Use size_t instead of int as type of variables NEWCOUNT
63842         and OLD_PATHC.
63843
63844 2012-09-25  Liubov Dmitrieva  <liubov.dmitrieva@gmail.com>
63845
63846         * sysdeps/i386/i686/fpu/multiarch/Makefile (sysdep_routines):
63847         Add s_sincosf-sse2.
63848         * sysdeps/i386/i686/fpu/multiarch/s_sincosf.c: New file.
63849         * sysdeps/i386/i686/fpu/multiarch/s_sincosf-sse2.S: New file.
63850         * sysdeps/ieee754/flt-32/s_sincosf.c (SINCOSF, SINCOSF_FUNC): Add
63851         macros for using routine as __sincosf_ia32.
63852         Use macro for function declaration and weak_alias.
63853         * sysdeps/i386/fpu/libm-test-ulps: Update.
63854
63855         * sysdeps/x86_64/fpu/s_sincosf.S: New file.
63856         * sysdeps/x86_64/fpu/libm-test-ulps: Update.
63857
63858         * math/s_ccoshf.c (__ccoshf): Fix wrong usage of sincos for
63859         subnormal argument.
63860         * math/s_cexpf.c (__cexpf): Likewise.
63861         * math/s_csinf.c (__csinf): Likewise.
63862         * math/s_csinhf.c (__csinhf): Likewise.
63863         * math/s_ctanf.c (__ctanf): Likewise.
63864         * math/s_ctanhf.c (__ctanhf): Likewise.
63865         * math/s_ccosh.c (__ccoshf): Likewise.
63866         * math/s_cexp.c (__cexpl): Likewise.
63867         * math/s_csin.c (__csin): Likewise.
63868         * math/s_csinh.c (__csinh): Likewise.
63869         * math/s_ctan.c (__ctan): Likewise.
63870         * math/s_ctanh.c (ctanh): Likewise.
63871         * math/s_ccoshl.c (__ccoshl): Likewise.
63872         * math/s_cexpl.c (__cexpl): Likewise.
63873         * math/s_csinl.c (__csinl): Likewise.
63874         * math/s_csinhl.c (__csinhl): Likewise.
63875         * math/s_ctanl.c (__ctanl): Likewise.
63876         * math/s_ctanhl.c (__ctanhl): Likewise.
63877
63878 2012-09-25  Joseph Myers  <joseph@codesourcery.com>
63879
63880         * libio/libio.h (_IO_size_t): Define to size_t, not _G_size_t.
63881         (_IO_ssize_t): Define to __ssize_t, not _G_ssize_t.
63882         (_IO_off_t): Define to __off_t, not _G_off_t.
63883         (_IO_pid_t): Define to __pid_t, not _G_pid_t.
63884         (_IO_uid_t): Define to __uid_t, not _G_uid_t.
63885         (_IO_wint_t): Define to wint_t, not _G_wint_t.
63886         * libio/libioP.h (struct _IO_jump_t): Use size_t not _G_size_t as
63887         type of __dummy and __dummy2 fields.
63888         * sysdeps/generic/_G_config.h (_G_size_t): Remove.
63889         (_G_ssize_t): Likewise.
63890         (_G_off_t): Likewise.
63891         (_G_pid_t): Likewise.
63892         (_G_uid_t): Likewise.
63893         (_G_wchar_t): Likewise.
63894         (_G_wint_t): Likewise.
63895         * sysdeps/gnu/_G_config.h (_G_size_t): Remove.
63896         (_G_ssize_t): Likewise.
63897         (_G_off_t): Likewise.
63898         (_G_pid_t): Likewise.
63899         (_G_uid_t): Likewise.
63900         (_G_wchar_t): Likewise.
63901         (_G_wint_t): Likewise.
63902         * sysdeps/mach/hurd/_G_config.h (_G_size_t): Remove.
63903         (_G_ssize_t): Likewise.
63904         (_G_off_t): Likewise.
63905         (_G_pid_t): Likewise.
63906         (_G_uid_t): Likewise.
63907         (_G_wchar_t): Likewise.
63908         (_G_wint_t): Likewise.
63909
63910 2012-09-25  Siddhesh Poyarekar  <siddhesh@redhat.com>
63911
63912         * malloc/arena.c: Include malloc-sysdep.h.
63913         (shrink_heap): Use check_may_shrink_heap to decide if madvise
63914         is sufficient to shrink the heap or an unmap is needed.
63915         * sysdeps/generic/malloc-sysdep.h: New file.  Define
63916         new function check_may_shrink_heap.
63917         * sysdeps/unix/sysv/linux/malloc-sysdep.h: New file.  Define
63918         new function check_may_shrink_heap.
63919
63920 2012-09-25  Siddhesh Poyarekar  <siddhesh@redhat.com>
63921
63922         * libio/fileops.c (_IO_new_file_seekoff): Fix typos in
63923         comments.
63924
63925 2012-09-24  Dmitry V. Levin  <ldv@altlinux.org>
63926
63927         * catgets/test-gencat.sh: Add "set -e".
63928         * elf/tst-pathopt.sh: Likewise.
63929         * grp/tst_fgetgrent.sh: Likewise.
63930         * iconvdata/run-iconv-test.sh: Likewise.
63931         * intl/tst-gettext.sh: Likewise.
63932         * intl/tst-gettext2.sh: Likewise.
63933         * intl/tst-gettext4.sh: Likewise.
63934         * intl/tst-gettext6.sh: Likewise.
63935         * intl/tst-translit.sh: Likewise.
63936         * io/ftwtest-sh: Likewise.
63937         * libio/test-freopen.sh: Likewise.
63938         * malloc/tst-mtrace.sh: Likewise.
63939         * posix/globtest.sh: Likewise.
63940         * posix/tst-getconf.sh: Likewise.
63941         * posix/wordexp-tst.sh: Likewise.
63942         * stdio-common/tst-printf.sh: Likewise.
63943         * stdio-common/tst-unbputc.sh: Likewise.
63944         * stdlib/tst-fmtmsg.sh: Likewise.
63945         * sysdeps/x86_64/tst-xmmymm.sh: Likewise.
63946         * catgets/Makefile: Do not specify -e option when running
63947         testsuite shell scripts.
63948         * elf/Makefile: Likewise.
63949         * grp/Makefile: Likewise.
63950         * iconvdata/Makefile: Likewise.
63951         * intl/Makefile: Likewise.
63952         * io/Makefile: Likewise.
63953         * libio/Makefile: Likewise.
63954         * malloc/Makefile: Likewise.
63955         * posix/Makefile: Likewise.
63956         * stdio-common/Makefile: Likewise.
63957         * stdlib/Makefile: Likewise.
63958         * sysdeps/x86_64/Makefile: Likewise.
63959
63960         * io/ftwtest-sh: Add copyright header.
63961         * posix/globtest.sh: Likewise.
63962         * posix/tst-getconf.sh: Likewise.
63963         * posix/wordexp-tst.sh: Likewise.
63964         * sysdeps/x86_64/tst-xmmymm.sh: Likewise.
63965
63966 2012-09-24  H.J. Lu  <hongjiu.lu@intel.com>
63967
63968         [BZ #13679]
63969         * Makeconfig (+link): Defined as $(+link-static) if
63970         $(build-shared) isn't yes.
63971         (link-tests): Defined as $(+link-static-tests) if $(build-shared)
63972         isn't yes.
63973         (static-gnulib): Add -lgcc_eh if $(build-shared) isn't yes.
63974
63975         * Makeconfig (+postctorT): Replace crtendS.o with crtend.o.
63976
63977         [BZ #14562]
63978         * malloc/arena.c (heap_trim): Properly get fencepost and adjust
63979         new chunk size with MALLOC_ALIGN_MASK.
63980
63981 2012-09-24  Joseph Myers  <joseph@codesourcery.com>
63982
63983         [BZ #5044]
63984         * stdio-common/printf_fphex.c: Include <stdbool.h> and
63985         <rounding-mode.h>.
63986         (__printf_fphex): Determine rounding using get_rounding_mode and
63987         round_away.
63988         * stdio-common/tst-printf-round.c (struct hex_test): New
63989         structure.
63990         (hex_tests): New variable.
63991         (test_hex_in_one_mode): New function.
63992         (do_test): Also run tests for hex float output.
63993
63994 2012-09-21  Joseph Myers  <joseph@codesourcery.com>
63995
63996         * libio/iopopen.c [_IO_HAVE_SYS_WAIT]: Make code unconditional.
63997         [!_IO_HAVE_SYS_WAIT]: Remove conditional code.
63998         * libio/libio.h (_IO_HAVE_SYS_WAIT): Remove.
63999         * libio/oldiopopen.c [_IO_HAVE_SYS_WAIT]: Make code unconditional.
64000         [!_IO_HAVE_SYS_WAIT]: Remove conditional code.
64001         * sysdeps/generic/_G_config.h (_G_HAVE_SYS_WAIT): Remove.
64002         * sysdeps/gnu/_G_config.h (_G_HAVE_SYS_WAIT): Likewise.
64003         * sysdeps/mach/hurd/_G_config.h (_G_HAVE_SYS_WAIT): Likewise.
64004
64005 2012-09-20  Joseph Myers  <joseph@codesourcery.com>
64006
64007         * libio/libio.h [_G_NEED_STDARG_H]: Make code unconditional.
64008         * sysdeps/generic/_G_config.h (_G_NEED_STDARG_H): Remove.
64009         * sysdeps/gnu/_G_config.h (_G_NEED_STDARG_H): Remove.
64010         * sysdeps/mach/hurd/_G_config.h (_G_NEED_STDARG_H): Remove.
64011
64012 2012-09-19  Dmitry V. Levin  <ldv@altlinux.org>
64013
64014         [BZ #14579]
64015         * elf/rtld.c (dl_main): Limit the check for self loading to normal
64016         mode only.
64017         * elf/tst-rtld-load-self.sh: New test.
64018         * elf/Makefile: Run it.
64019
64020 2012-09-18  Joseph Myers  <joseph@codesourcery.com>
64021
64022         * sysdeps/wordsize-64/Makefile [$(subdir) = misc]
64023         (tst-writev-ENV): Remove.
64024         * sysdeps/wordsize-64/tst-writev.c (TIMEOUT): Define.
64025
64026 2012-09-17  Chris Metcalf  <cmetcalf@tilera.com>
64027
64028         * crypt/md5test-giant.c (TIMEOUT): Increase to 8 minutes for tilegx.
64029
64030 2012-09-17  Joseph Myers  <joseph@codesourcery.com>
64031
64032         * libio/iogetline.c [_LIBC || !_G_HAVE_IO_GETLINE_INFO]: Make code
64033         unconditional.
64034         * libio/iogetwline.c [_LIBC || !_G_HAVE_IO_GETLINE_INFO]:
64035         Likewise.
64036         * sysdeps/generic/_G_config.h (_G_HAVE_IO_GETLINE_INFO): Remove.
64037         * sysdeps/gnu/_G_config.h (_G_HAVE_IO_GETLINE_INFO): Likewise.
64038         * sysdeps/mach/hurd/_G_config.h (_G_HAVE_IO_GETLINE_INFO):
64039         Likewise.
64040
64041 2012-09-14  H.J. Lu  <hongjiu.lu@intel.com>
64042
64043         [BZ #14587]
64044         * Makeconfig (ASFLAGS): Remove $(have-cpp-asm-debuginfo) check.
64045         * config.make.in (have-cpp-asm-debuginfo): Removed.
64046         * configure.in: Don't substitute libc_cv_cpp_asm_debuginfo.
64047         * configure: Regenerated.
64048
64049 2012-09-14  Joseph Myers  <joseph@codesourcery.com>
64050
64051         [BZ #5044]
64052         * stdio-common/printf_fp.c: Include <stdbool.h> and
64053         <rounding-mode.h>.
64054         (___printf_fp): Determine rounding using get_rounding_mode and
64055         round_away.
64056         * stdio-common/tst-printf-round.c: New file.
64057         * stdio-common/Makefile (tests): Add tst-printf-round.
64058         (link-libm): New variable.
64059         ($(objpfx)tst-printf-round): Depend in $(link-libm).
64060
64061 2012-09-13  H.J. Lu  <hongjiu.lu@intel.com>
64062
64063         [BZ #14576]
64064         * bits/libc-lock.h (__rtld_lock_init_recursive): Removed.
64065         * sysdeps/mach/bits/libc-lock.h (__rtld_lock_init_recursive):
64066         Likewise.
64067         * sysdeps/mach/hurd/bits/libc-lock.h (__rtld_lock_init_recursive):
64068         Likewise.
64069
64070 2012-09-13  Joseph Myers  <joseph@codesourcery.com>
64071
64072         * libio/libio.h [!_G_HAVE_PRINTF_FP] (_IO_USE_DTOA): Remove.
64073         * sysdeps/generic/_G_config.h (_G_HAVE_PRINTF_FP): Likewise.
64074         * sysdeps/gnu/_G_config.h (_G_HAVE_PRINTF_FP): Likewise.
64075         * sysdeps/mach/hurd/_G_config.h (_G_HAVE_PRINTF_FP): Likewise.
64076
64077 2012-09-12  Joseph Myers  <joseph@codesourcery.com>
64078
64079         [BZ #14518]
64080         * include/rounding-mode.h: New file.
64081         * sysdeps/generic/get-rounding-mode.h: Likewise.
64082         * sysdeps/s390/fpu/get-rounding-mode.h: Likewise.
64083         * stdlib/strtod_l.c: Include <rounding-mode.h>.
64084         (MAX_VALUE): New macro.
64085         (MIN_VALUE): Likewise.
64086         (overflow_value): New function.
64087         (underflow_value): Likewise.
64088         (round_and_return): Use overflow_value and underflow_value to
64089         determine return values in overflow and underflow cases.  Use
64090         round_away to determine rounding depending on rounding mode.
64091         (____STRTOF_INTERNAL): Use overflow_value and underflow_value to
64092         determine return values in overflow and underflow cases.
64093         * stdlib/tst-strtod-round.c: Include <fenv.h>.
64094         (struct test_results): New structure.
64095         (struct test): Use struct test_results to store expected results
64096         for all rounding modes.
64097         (TEST): Include expected results for all rounding modes.
64098         (test_in_one_mode): New function.
64099         (do_test): Use test_in_one_mode to compute and check results.
64100         Check results for all rounding modes.
64101         * stdlib/Makefile ($(objpfx)tst-strtod-round): Depend on
64102         $(link-libm).
64103
64104 2012-12-09  Allan McRae  <allan@archlinux.org>
64105
64106         * sysdeps/i386/fpu/libm-test-ulps: Update
64107
64108 2012-09-11  Joseph Myers  <joseph@codesourcery.com>
64109
64110         * sysdeps/generic/_G_config.h (_G_int16_t): Remove.
64111         (_G_int32_t): Likewise.
64112         (_G_uint16_t): Likewise.
64113         (_G_uint32_t): Likewise.
64114         (_G_HAVE_BOOL): Likewise.
64115         (_G_HAVE_ATEXIT): Likewise.
64116         (_G_HAVE_LONG_DOUBLE_IO): Likewise.
64117         (_G_HAVE_IO_FILE_OPEN): Likewise.
64118         * sysdeps/gnu/_G_config.h (_G_int16_t): Remove.
64119         (_G_int32_t): Likewise.
64120         (_G_uint16_t): Likewise.
64121         (_G_uint32_t): Likewise.
64122         (_G_HAVE_BOOL): Likewise.
64123         (_G_HAVE_ATEXIT): Likewise.
64124         (_G_HAVE_LONG_DOUBLE_IO): Likewise.
64125         (_G_HAVE_IO_FILE_OPEN): Likewise.
64126         * sysdeps/mach/hurd/_G_config.h (_G_int16_t): Remove.
64127         (_G_int32_t): Likewise.
64128         (_G_uint16_t): Likewise.
64129         (_G_uint32_t): Likewise.
64130         (_G_HAVE_BOOL): Likewise.
64131         (_G_HAVE_ATEXIT): Likewise.
64132         (_G_HAVE_LONG_DOUBLE_IO): Likewise.
64133         (_G_HAVE_IO_FILE_OPEN): Likewise.
64134
64135 2012-09-11  H.J. Lu  <hongjiu.lu@intel.com>
64136
64137         * csu/libc-tls.c: Update copyright years.
64138
64139 2012-09-10  Joseph Myers  <joseph@codesourcery.com>
64140
64141         * libioP.h [_G_USING_THUNKS]: Make code unconditional.
64142         [!_G_USING_THUNKS]: Remove conditional code.
64143         * sysdeps/gnu/_G_config.h (_G_USING_THUNKS): Remove.
64144         * sysdeps/mach/hurd/_G_config.h (_G_USING_THUNKS): Likewise.
64145
64146         * libio/libioP.h [__GNUC__] (VTABLE_LABEL): Remove.
64147         [!builtinbuf_vtable && __cplusplus] (builtinbuf_vtable): Likewise.
64148         * sysdeps/generic/_G_config.h (_G_NAMES_HAVE_UNDERSCORE): Remove.
64149         (_G_VTABLE_LABEL_PREFIX): Likewise.
64150         (_G_VTABLE_LABEL_HAS_LENGTH): Likewise.
64151         * sysdeps/gnu/_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         * sysdeps/mach/hurd/_G_config.h (_G_NAMES_HAVE_UNDERSCORE): Remove.
64156         (_G_VTABLE_LABEL_HAS_LENGTH): Likewise.
64157         (_G_VTABLE_LABEL_PREFIX): Likewise.
64158         (_G_VTABLE_LABEL_PREFIX_ID): Likewise.
64159
64160 2012-09-10  H.J. Lu  <hongjiu.lu@intel.com>
64161
64162         * libio/Makefile: Include ../Makeconfig before tests.
64163         (tests): Add tst-fopenloc and depend on $(objpfx)tst-fopenloc.check
64164         only if $(build-shared) is yes.
64165
64166         * iconv/gconv_db.c: Update copyright years.
64167
64168 2012-09-10  Liubov Dmitrieva  <liubov.dmitrieva@gmail.com>
64169
64170         * sysdeps/i386/i686/fpu/multiarch/s_sinf-sse2.S: Fix
64171         unwind info if defined PIC. Fix special cases description.
64172         * sysdeps/i386/i686/fpu/multiarch/s_cosf-sse2.S: Likewise.
64173
64174         * sysdeps/x86_64/fpu/s_sinf.S: Fix special cases description, fix
64175         DP_HI_MASK entry.
64176         * sysdeps/x86_64/fpu/s_cosf.S: Likewise.
64177
64178 2012-09-07  H.J. Lu  <hongjiu.lu@intel.com>
64179
64180         * scripts/check-local-headers.sh: Add "shopt -s nullglob".
64181
64182         * iconv/gconv_db.c (free_derivation): Check if deriv->steps
64183         is NULL.
64184
64185         * debug/Makefile (LDFLAGS-tst-chk4): Renamed to ...
64186         (LDLIBS-tst-chk4): This.
64187         (LDFLAGS-tst-chk5): Renamed to ...
64188         (LDLIBS-tst-chk5): This.
64189         (LDFLAGS-tst-chk6): Renamed to ...
64190         (LDLIBS-tst-chk6): This.
64191         (LDFLAGS-tst-lfschk4): Renamed to ...
64192         (LDLIBS-tst-lfschk4): This.
64193         (LDFLAGS-tst-lfschk5): Renamed to ...
64194         (LDLIBS-tst-lfschk5): This.
64195         (LDFLAGS-tst-lfschk6): Renamed to ...
64196         (LDLIBS-tst-lfschk6): This.
64197
64198         * Makefile ($(inst_includedir)/gnu/stubs.h): Remove dependency
64199         on $(common-objpfx)soversions.mk.
64200
64201 2012-09-07  Joseph Myers  <joseph@codesourcery.com>
64202
64203         [BZ #10014]
64204         * manual/examples/inetcli.c (SERVERHOST): Use www.gnu.org as
64205         example host name.
64206
64207 2012-09-07  Siddhesh Poyarekar  <siddhesh@redhat.com>
64208
64209         * malloc/arena.c (arena_get_retry): New function that gets
64210         another arena for the caller to try its request on.
64211         * malloc/malloc.c (__libc_malloc): Use get_another_arena if the
64212         current arena cannot fulfill the request.
64213         (__libc_memalign): Likewise.
64214         (__libc_memalign): Likewise.
64215         (__libc_pvalloc): Likewise.
64216         (__libc_calloc): Likewise.
64217
64218 2012-09-05  John Tobey  <john.tobey@gmail.com>
64219
64220         [BZ #13542]
64221         * manual/arith.texi (Operations on Complex): Fix description
64222         of carg branch cut.
64223
64224 2012-09-06  Joseph Myers  <joseph@codesourcery.com>
64225
64226         [BZ #10014]
64227         * manual/socket.texi (Host Addresses): Use www.gnu.org as example
64228         host name.
64229
64230         [BZ #10038]
64231         * manual/memory.texi (Memory): Make order of menu items match
64232         order of sections.
64233
64234 2012-09-06  H.J. Lu  <hongjiu.lu@intel.com>
64235
64236         * elf/dl-tls.c (DL_INITIAL_DTV): Removed.
64237         (_dl_initial_dtv): New.  Defined if SHARED isn't defined.
64238         (_dl_deallocate_tls): Restore GL(dl_initial_dtv).
64239
64240 2012-09-06  H.J. Lu  <hongjiu.lu@intel.com>
64241
64242         * csu/libc-tls.c (static_dtv): Renamed to ...
64243         (_dl_static_dtv): This.  Make it global.
64244         (_dl_initial_dtv): Removed.
64245         (__libc_setup_tls): Updated.
64246         * elf/dl-tls.c (DL_INITIAL_DTV): New macro.
64247         (_dl_deallocate_tls): Replace GL(dl_initial_dtv) with
64248         DL_INITIAL_DTV.
64249
64250 2012-09-06  Petr Machata  <pmachata@redhat.com>
64251
64252         * elf/elf.h (NT_S390_HIGH_GPRS): New macro.
64253         (NT_S390_TIMER, NT_S390_TODCMP, NT_S390_TODPREG): Likewise.
64254         (NT_S390_CTRS, NT_S390_PREFIX, NT_S390_LAST_BREAK): Likewise.
64255         (NT_S390_SYSTEM_CALL, NT_ARM_VFP): Likewise.
64256
64257 2012-09-06  H.J. Lu  <hongjiu.lu@intel.com>
64258
64259         [BZ #14545]
64260         * csu/libc-tls.c (_dl_initial_dtv): New variable.
64261         * elf/dl-tls.c (_dl_deallocate_tls): Always check dtv before
64262         freeing dtv[-1].
64263
64264 2012-09-06  H.J. Lu  <hongjiu.lu@intel.com>
64265
64266         [BZ #14544]
64267         * Makeconfig (link-static-before-libc): Replace $(+prector)
64268         with $(+prectorT).
64269         (link-static-after-libc): Replace $(+postctor) with
64270         $(+postctorT).
64271         (link-bounded): Replace $(+prector)/$(+postctor) with
64272         $(+prectorT)/$(+postctorT).
64273         (+prectorT): New macro.
64274         (+postctorT): Likewise.
64275
64276 2012-09-06  Joseph Myers  <joseph@codesourcery.com>
64277
64278         * stdlib/gen-tst-strtod-round.c: Include <assert.h>.
64279         (round_str): Handle values above the maximum for IBM long double
64280         as inexact.
64281         * stdlib/tst-strtod-round.c (tests): Regenerated.
64282
64283 2012-09-06  Andreas Krebbel  <Andreas.Krebbel@de.ibm.com>
64284
64285         * sysdeps/s390/s390-32/multiarch/Makefile: Remove -mzarch
64286         assembler flag.
64287         * sysdeps/s390/s390-32/multiarch/memcmp.S: Use .machinemode
64288         zarch_nohighgprs around the zarch optimized routines.
64289         * sysdeps/s390/s390-32/multiarch/memcpy.S: Likewise.
64290         * sysdeps/s390/s390-32/multiarch/memset.S: Likewise.
64291         * sysdeps/s390/s390-32/multiarch/ifunc-resolve.c: Explicitly check
64292         for zarch.
64293
64294 2012-09-05  David S. Miller  <davem@davemloft.net>
64295
64296         * sysdeps/sparc/fpu/libm-test-ulps: Update.
64297
64298         * sysdeps/sparc/bits/hwcap.h (HWCAP_SPARC_PAUSE)
64299         (HWCAP_SPARC_CBCOND, HWCAP_SPARC_CRYPTO): Define.
64300         * sysdeps/sparc/dl-procinfo.h (_DL_HWCAP_COUNT): Increase to 27.
64301         * sysdeps/sparc/dl-procinfo.c (_dl_sparc_cap_flags): Add new
64302         entries.
64303
64304 2012-09-05  Alexandre Oliva  <aoliva@redhat.com>
64305
64306         * malloc/arena.c: Fold copyright years.
64307         * malloc/mcheck.c, malloc/memusage.c: Likewise.
64308
64309 2012-09-05  Alexandre Oliva  <aoliva@redhat.com>
64310
64311         * malloc/malloc.c (__libc_mallopt) <M_MMAP_MAX>: Fix indentation.
64312
64313 2012-09-05  Alexandre Oliva  <aoliva@redhat.com>
64314
64315         * manual/contrib.texi (Contributors): Fix typo.  Complete entry.
64316
64317 2012-09-05  Alexandre Oliva  <aoliva@redhat.com>
64318
64319         * malloc/malloc.c (__libc_mallopt) <M_MMAP_THRESHOLD>: Do not
64320         change internal state upon failure.
64321
64322 2012-09-05  Alexandre Oliva  <aoliva@redhat.com>
64323
64324         * malloc/mcheck.c (mcheck_check_all): Fix typo.
64325         * malloc/memusage.c (mmap): Likewise.
64326         (mmap64, mremap): Likewise.  Adjust name in comment.
64327
64328 2012-09-05  Siddhesh Poyarekar  <siddhesh@redhat.com>
64329
64330         * libio/fileops.c: Fix typos in comments.
64331         * libio/oldfileops.c: Likewise.
64332         * libio/wfileops.c: Likewise.
64333
64334 2012-09-05  Siddhesh Poyarekar  <siddhesh@redhat.com>
64335
64336         [BZ #1349]
64337         * malloc/Makefile (tests): Add tst-malloc-usable test case.
64338         (tst-malloc-usable-ENV): Set environment for test case.
64339         * malloc/hooks.c (malloc_check_get_size): New function to get
64340         requested size.
64341         * malloc/malloc.c (musable): Use malloc_check_get_size.
64342         * malloc/tst-malloc-usable.c: New test case.
64343
64344 2012-09-05  Andreas Schwab  <schwab@linux-m68k.org>
64345
64346         * stdlib/tst-strtod-overflow.c (TIMEOUT): Define.
64347
64348 2012-09-05  Allan McRae  <allan@archlinux.org>
64349
64350         [BZ #13966]
64351         * configure.in (CXX_SYSINCLUDES): Use compiler output to
64352         determine header location.
64353         * configure: Regenerated.
64354
64355 2012-09-05  Andreas Schwab  <schwab@linux-m68k.org>
64356
64357         * stdlib/gen-tst-strtod-round.c (formats): Add Motorola extended
64358         float format.
64359         * stdlib/tst-strtod-round.c (TEST) [LDBL_MANT_DIG == 64 &&
64360         LDBL_MAX_EXP == 16384]: Add case for Motorola extended float
64361         format.
64362         (test): Regenerate.
64363
64364 2012-09-04  David S. Miller  <davem@davemloft.net>
64365
64366         * sysdeps/sparc/sparc32/sparcv9/addmul_1.S: New file.
64367         * sysdeps/sparc/sparc32/sparcv9/submul_1.S: New file.
64368         * sysdeps/sparc/sparc32/sparcv9/mul_1.S: New file.
64369
64370 2012-09-04  Florian Weimer  <fweimer@redhat.com>
64371
64372         * stdlib/tst-secure-getenv.c (alternative_main): Only warn on SGID
64373         failures.
64374
64375         * stdlib/tst-secure-getenv.c: Fix whitespace in comments.
64376
64377 2012-09-04  Joseph Myers  <joseph@codesourcery.com>
64378
64379         [BZ #9914]
64380         * libio/iogetdelim.c: Include <limits.h>.
64381         (_IO_getdelim): Avoid integer overflow in testing whether cur_len
64382         + len + 1 would overflow.
64383
64384 2012-09-03  Andreas Jaeger  <aj@suse.de>
64385
64386         * sysdeps/x86_64/fpu/libm-test-ulps: Update.
64387         * sysdeps/i386/fpu/libm-test-ulps: Update.
64388
64389 2012-09-03  Liubov Dmitrieva  <liubov.dmitrieva@gmail.com>
64390
64391         * sysdeps/i386/i686/fpu/multiarch/Makefile (sysdep_routines):
64392         Add s_sinf-sse2, s_conf-sse2.
64393
64394         * sysdeps/i386/i686/fpu/multiarch/s_sinf-sse2.S: New file.
64395         * sysdeps/i386/i686/fpu/multiarch/s_cosf-sse2.S: New file.
64396         * sysdeps/i386/i686/fpu/multiarch/s_sinf.c: New file.
64397         * sysdeps/i386/i686/fpu/multiarch/s_cosf.c: New file.
64398
64399         * sysdeps/ieee754/flt-32/s_sinf.c (SINF, SINF_FUNC): Add macros
64400         for using routine as __sinf_ia32.
64401         Use macro for function declaration and weak_alias.
64402         * sysdeps/ieee754/flt-32/s_cosf.c (COSF, COSF_FUNC): Add macros
64403         for using routine as __cosf_ia32.
64404         Use macro for function declaration and weak_alias.
64405
64406         * sysdeps/i386/i686/fpu/multiarch/e_expf-sse2.S: Fix Copyright.
64407         * sysdeps/i386/i686/fpu/multiarch/e_expf.c: Fix Copyright.
64408
64409         * sysdeps/x86_64/fpu/s_sinf.S: New file.
64410         * sysdeps/x86_64/fpu/s_cosf.S: New file.
64411         * sysdeps/x86_64/fpu/libm-test-ulps: Update.
64412
64413         * math/libm-test.inc (cos_test): Add more test cases.
64414         (sin_test): Likewise.
64415         (sincos_test): Likewise.
64416
64417 2012-09-03  Andreas Krebbel  <Andreas.Krebbel@de.ibm.com>
64418
64419         * sysdeps/s390/s390-32/multiarch/ifunc-resolve.c
64420         (IFUNC_RESOLVE): Make pointers to the specialized implementations
64421         hidden.
64422         * sysdeps/s390/s390-64/multiarch/ifunc-resolve.c: Likewise.
64423
64424 2012-09-02  H.J. Lu  <hongjiu.lu@intel.com>
64425
64426         [BZ #14538]
64427         * sysdeps/x86_64/dl-machine.h (elf_machine_dynamic): Use the
64428         first element of the GOT.
64429         (elf_machine_load_address): Return the difference between
64430         the runtime address of _DYNAMIC and elf_machine_dynamic ().
64431
64432 2012-09-01  Allan McRae  <allan@archlinux.org>
64433
64434         [BZ #13412]
64435         * configure.in (AWK): Require gawk version 3.0 or later.
64436         * configure: Regenerated.
64437
64438 2012-09-01  Joseph Myers  <joseph@codesourcery.com>
64439
64440         * sysdeps/unix/sysv/linux/kernel-features.h
64441         (__ASSUME_POSIX_CPU_TIMERS): Remove.
64442         * sysdeps/unix/sysv/linux/clock_getcpuclockid.c
64443         [__NR_clock_getres]: Make code unconditional.
64444         [!__ASSUME_POSIX_CPU_TIMERS]: Remoce conditional code.
64445         (clock_getcpuclockid): Remove code left unreachable by removal of
64446         conditionals.
64447         * sysdeps/unix/sysv/linux/clock_getres.c [__NR_clock_getres]: Make
64448         code unconditional.
64449         [__ASSUME_POSIX_CPU_TIMERS]: Likewise.
64450         [!__ASSUME_POSIX_CPU_TIMERS]: Remove conditional code.
64451         * sysdeps/unix/sysv/linux/clock_gettime.c [__NR_clock_gettime]:
64452         Make code unconditional.
64453         [__ASSUME_POSIX_CPU_TIMERS]: Likewise.
64454         [!__ASSUME_POSIX_CPU_TIMERS]: Remove conditional code.
64455         * sysdeps/unix/sysv/linux/clock_settime.c
64456         [__ASSUME_POSIX_CPU_TIMERS <= 0 && __NR_clock_settime]: Remove
64457         conditional code.
64458         [__ASSUME_POSIX_CPU_TIMERS]: Make code unconditional.
64459         [!__ASSUME_POSIX_CPU_TIMERS]: Remove conditional code.
64460
64461 2012-08-29  H.J. Lu  <hongjiu.lu@intel.com>
64462
64463         [BZ #14476]
64464         * Makefile (install): Also pass LD_SO=$(ld.so-version) to
64465         scripts/test-installation.pl.
64466
64467         * scripts/test-installation.pl: Use LD_SO to get $ld_so_name
64468         and $ld_so_version if it is set.
64469
64470 2012-08-29  Siddhesh Poyarekar  <siddhesh@redhat.com>
64471
64472         [BZ #14516]
64473         * sysdeps/unix/sysv/linux/ttyname.c (ttyname): Don't return
64474         failure if reading from procfs failed.
64475         * sysdeps/unix/sysv/linux/ttyname_r.c (ttyname_r): Likewise.
64476
64477 2012-08-27  Joseph Myers  <joseph@codesourcery.com>
64478
64479         * sysdeps/unix/sysv/linux/kernel-features.h
64480         (__ASSUME_STAT64_SYSCALL): Remove all definitions.
64481         * sysdeps/unix/sysv/linux/fxstat64.c [!__ASSUME_STAT64_SYSCALL]:
64482         Remove conditional code.
64483         [__ASSUME_STAT64_SYSCALL]: Make code unconditional.
64484         * sysdeps/unix/sysv/linux/fxstatat64.c [!__ASSUME_STAT64_SYSCALL]:
64485         Remove conditional code.
64486         [__ASSUME_STAT64_SYSCALL]: Make code unconditional.
64487         * sysdeps/unix/sysv/linux/i386/fxstat.c
64488         [!__ASSUME_STAT64_SYSCALL]: Remove conditional code.
64489         [__ASSUME_STAT64_SYSCALL]: Make code unconditional.
64490         * sysdeps/unix/sysv/linux/i386/fxstatat.c
64491         [!__ASSUME_STAT64_SYSCALL]: Remove conditional code.
64492         [__ASSUME_STAT64_SYSCALL]: Make code unconditional.
64493         * sysdeps/unix/sysv/linux/i386/lxstat.c
64494         [!__ASSUME_STAT64_SYSCALL]: Remove conditional code.
64495         [__ASSUME_STAT64_SYSCALL]: Make code unconditional.
64496         * sysdeps/unix/sysv/linux/i386/xstat.c [!__ASSUME_STAT64_SYSCALL]:
64497         Remove conditional code.
64498         [__ASSUME_STAT64_SYSCALL]: Make code unconditional.
64499         * sysdeps/unix/sysv/linux/lxstat64.c [!__ASSUME_STAT64_SYSCALL]:
64500         Remove conditional code.
64501         [__ASSUME_STAT64_SYSCALL]: Make code unconditional.
64502         * sysdeps/unix/sysv/linux/sparc/sparc64/xstat.c: Do not include
64503         <kernel-features.h>.
64504         [__NR_stat64 && !__ASSUME_STAT64_SYSCALL] (__have_no_stat64):
64505         Remove.
64506         * sysdeps/unix/sysv/linux/xstat64.c [!__ASSUME_STAT64_SYSCALL]:
64507         Remove conditional code.
64508         [__ASSUME_STAT64_SYSCALL]: Make code unconditional.
64509         * sysdeps/unix/sysv/linux/xstatconv.c [!__ASSUME_STAT64_SYSCALL]:
64510         Remove conditional.
64511
64512 2012-08-27  Mike Frysinger  <vapier@gentoo.org>
64513
64514         [BZ #5400]
64515         * NEWS: Add fixed bug number.
64516
64517 2012-08-27  Joseph Myers  <joseph@codesourcery.com>
64518
64519         [BZ #14519]
64520         * stdlib/strtod_l.c (round_and_return): Return -0.0 for
64521         underflowing exponent in case of negative sign.
64522         * stdlib/tst-strtod-round-data: Add more tests.
64523         * stdlib/tst-strtod-round.c (tests): Regenerated.
64524
64525         [BZ #3479]
64526         * stdlib/strtod_l.c (NDIG): Remove.
64527         (HEXNDIG): Likewise.
64528         (MPNSIZE): Increase to represent 10^n where 2^-n is 1/4 ulp of the
64529         smallest representable value.
64530         (____STRTOF_INTERNAL): Use all fractional decimal digits that may
64531         lie within an exact representation of 1/2 ulp of the result.
64532         * stdlib/fpioconst.c (__tens): Include 10^2^9 and 10^2^10
64533         unconditionally.
64534         (TENS_P9_IDX): Define unconditionally.
64535         (TENS_P9_SIZE): Likewise.
64536         (TENS_P10_IDX): Likewise.
64537         (TENS_P10_SIZE): Likewise.
64538         [BITS_PER_MP_LIMB == 32]: Change condition for larger powers of 10
64539         to !defined __NO_LONG_DOUBLE_MATH && __LDBL_MAX_EXP__ > 1024.
64540         [!__NO_LONG_DOUBLE_MATH && __LDBL_MAX_EXP__ > 1024] (__tens): Add
64541         entries for 10^2^13 and 10^2^14.
64542         [!__NO_LONG_DOUBLE_MATH && __LDBL_MAX_EXP__ > 1024]
64543         (TENS_P13_IDX): Define.
64544         (TENS_P13_SIZE): Likewise.
64545         (TENS_P14_IDX): Likewise.
64546         (TENS_P14_SIZE): Likewise.
64547         (_fpioconst_pow10): Change array size to
64548         FPIOCONST_POW10_ARRAY_SIZE.  Make entries for 10^2^9 and 10^2^10
64549         unconditional.
64550         (_fpioconst_pow10) [!__NO_LONG_DOUBLE_MATH && __LDBL_MAX_EXP__ >
64551         1024]: Add entries for 10^2^13 and 10^2^14.
64552         [LAST_POW10 > _LAST_POW10]: Remove #error.
64553         * stdlib/fpioconst.h (FPIOCONST_POW10_ARRAY_SIZE): Define.
64554         (_fpioconst_pow10): Change array size to
64555         FPIOCONST_POW10_ARRAY_SIZE.
64556         * stdlib/gen-fpioconst.c: New file.
64557         * stdlib/gen-tst-strtod-round.c: Likewise.
64558         * stdlib/tst-strtod-round-data: Likewise.
64559         * stdlib/tst-strtod-round.c: Likewise.
64560         * stdlib/Makefile (tests): Add tst-strtod-round.
64561
64562         [BZ #14459]
64563         * stdlib/strtod_l.c: Include <stdint.h>.
64564         (NDEBUG): Do not define.
64565         (round_and_return): Change EXPONENT parameter to type intmax_t.
64566         Rearrange calculations to avoid internal overflow possibilities.
64567         (str_to_mpn): Change EXPONENT parameter to type intmax_t *.
64568         Rearrange calculations to avoid internal overflow possibilities.
64569         Assert that number fits inside MPNSIZE limbs.
64570         (____STRTOF_INTERNAL): Change EXPONENT variable to type intmax_t.
64571         Change DIG_NO, INT_NO and LEAD_ZERO to type size_t.  Rearrange
64572         calculations and add assertions to avoid internal overflow
64573         possibilities.  Add casts to avoid signed/unsigned operations.
64574         * stdlib/tst-strtod-overflow.c: New file.
64575         * stdlib/Makefile (tests): Add tst-strtod-overflow.
64576
64577 2012-08-25  Marek Polacek  <polacek@redhat.com>
64578
64579         * time/time.h: Fix some typos in comments.
64580
64581 2012-08-23  Roland McGrath  <roland@hack.frob.com>
64582
64583         * posix/tst-rfc3484.c: #undef USE_NSCD before including getaddrinfo.c.
64584         * posix/tst-rfc3484-2.c: Likewise.
64585         * posix/tst-rfc3484-3.c: Likewise.
64586
64587 2012-08-23  Steve McIntyre  <steve.mcintyre@linaro.org>
64588
64589         * elf/elf.h (EF_ARM_ABI_FLOAT_SOFT): New macro.
64590         (EF_ARM_ABI_FLOAT_HARD): Likewise.
64591
64592 2012-08-23  Joseph Myers  <joseph@codesourcery.com>
64593
64594         * sysdeps/unix/sysv/linux/dl-fxstatat64.c: Use <> instead of "" in
64595         #include of fxstatat64.c.
64596
64597 2012-08-22  Roland McGrath  <roland@hack.frob.com>
64598
64599         * shadow/getspent.c: #undef USE_NSCD before #include that gets the code.
64600         * shadow/getspent_r.c: Likewise.
64601         * shadow/getspnam.c: Likewise.
64602         * shadow/getspnam_r.c: Likewise.
64603         * gshadow/getsgent.c: Likewise.
64604         * gshadow/getsgent_r.c: Likewise.
64605         * gshadow/getsgnam.c: Likewise.
64606         * gshadow/getsgnam_r.c: Likewise.
64607         * inet/getnetbyad.c: Likewise.
64608         * inet/getnetbyad_r.c: Likewise.
64609         * inet/getnetbynm.c: Likewise.
64610         * inet/getnetbynm_r.c: Likewise.
64611         * inet/getnetent.c: Likewise.
64612         * inet/getnetent_r.c: Likewise.
64613         * inet/getproto.c: Likewise.
64614         * inet/getproto_r.c: Likewise.
64615         * inet/getprtent.c: Likewise.
64616         * inet/getprtent_r.c: Likewise.
64617         * inet/getprtname.c: Likewise.
64618         * inet/getprtname_r.c: Likewise.
64619         * inet/getrpcbyname.c: Likewise.
64620         * inet/getrpcbyname_r.c: Likewise.
64621         * inet/getrpcbynumber.c: Likewise.
64622         * inet/getrpcbynumber_r.c: Likewise.
64623         * inet/getrpcent.c: Likewise.
64624         * inet/getrpcent_r.c: Likewise.
64625         * inet/getaliasent.c: Likewise.
64626         * inet/getaliasent_r.c: Likewise.
64627         * inet/getaliasname.c: Likewise.
64628         * inet/getaliasname_r.c: Likewise.
64629         * nscd/getgrgid_r.c: Likewise.
64630         * nscd/getgrnam_r.c: Likewise.
64631         * nscd/gethstbyad_r.c: Likewise.
64632         * nscd/gethstbynm3_r.c: Likewise.
64633         * nscd/getpwnam_r.c: Likewise.
64634         * nscd/getpwuid_r.c: Likewise.
64635         * nscd/getsrvbynm_r.c: Likewise.
64636         * nscd/getsrvbypt_r.c: Likewise.
64637         * nscd/gai.c: Likewise.
64638
64639         * configure.in (build_nscd): New substituted variable, set
64640         by --disable-build-nscd and defaults to $use_nscd.
64641         * configure: Regenerated.
64642         * config.make.in (build-nscd): New substituted variable.
64643         * nscd/Makefile (others, others-pie, install-sbin, extra-objs):
64644         Change conditional to require [$(build-nscd) = yes] as well.
64645         * NEWS: Mention --disable-build-nscd in the --disable-nscd item.
64646
64647         [BZ# 13696]
64648         * configure.in (use_nscd): New substituted variable, set by
64649         --disable-nscd.  If enabled, define USE_NSCD.
64650         * configure: Regenerated.
64651         * config.h.in: Add USE_NSCD.
64652         * config.make.in (use-nscd): New substituted variable.
64653         * inet/Makefile (CFLAGS-gethstbyad_r.c): Likewise.
64654         (CFLAGS-gethstbynm_r.c, CFLAGS-gethstbynm2_r.c): Likewise.
64655         (CFLAGS-getsrvbynm_r.c, CFLAGS-getsrvbypt_r.c): Variables removed.
64656         * grp/Makefile (CFLAGS-getgrgid_r.c): Remove -DUSE_NSCD.
64657         (CFLAGS-getgrnam_r.c): Likewise.
64658         (CFLAGS-initgroups.c): Likewise.
64659         * posix/Makefile (CFLAGS-getaddrinfo.c): Remove -DUSE_NSCD.
64660         * pwd/Makefile (CFLAGS-getpwuid_r.c, CFLAGS-getpwnam_r.c):
64661         Variables removed.
64662         * inet/getnetgrent_r.c
64663         (nscd_setnetgrent): New function, broken out of ...
64664         (setnetgrent): ... here.  Call it.
64665         (innetgr): Conditionalize nscd bits on [USE_NSCD].
64666         (nscd_getnetgrent): Conditionalize on [USE_NSCD].
64667         (__internal_getnetgrent_r): Conditionalize its use on [USE_NSCD].
64668         * nscd/Makefile (routines, aux): Move definitions after include of
64669         Makeconfig.  Conditionalize on [$(use-nscd) != no].
64670         * nss/nsswitch.c (nss_load_all_libraries, __nss_disable_nscd):
64671         Conditionalize on [USE_NSCD].
64672         (is_nscd, nscd_init_cb): Likewise.
64673         (nss_load_library): Conditionalize init callback on [USE_NSCD].
64674         * nss/nss_files/files-init.c: Conditionalize body on [USE_NSCD].
64675         * nss/nss_db/db-init.c: Likewise.
64676         * nscd/nscd.c (main): Conditionalize __nss_disable_nscd call on
64677         [USE_NSCD].
64678         * sysdeps/unix/sysv/linux/check_pf.c (get_nl_timestamp): New function.
64679         (make_request): Use it.
64680         (cache_valid_p): New function.
64681         (__check_pf): Use it.
64682         * NEWS: Add item for --disable-nscd.
64683
64684 2012-08-22  Dmitry V. Levin  <ldv@altlinux.org>
64685
64686         * configure.in (SED): Update AC_CHECK_PROG_VER's version extract regexp
64687         to support sed >= 4.2.1-20-ga9bf076.
64688         * configure: Regenerated.
64689
64690 2012-08-22  Roland McGrath  <roland@hack.frob.com>
64691
64692         * csu/libc-start.c (apply_irel): Move extern declarations inside here.
64693         Conditionalize whole body on [IREL].
64694
64695 2012-08-22  Jeff Law <law@redhat.com>
64696
64697         [BZ #14505]
64698         * sysdeps/posix/getaddrinfo.c (gaih_inet): Only use gethostbyname4_r
64699         if the family is PF_UNSPEC.
64700
64701 2012-08-22  Mike Frysinger  <vapier@gentoo.org>
64702
64703         * Makerules (lib-version): Rename from V.
64704         (install-lib-nosubdir): Change V to lib-version.
64705
64706 2012-08-22  Will Schmidt  <will_schmidt@vnet.ibm.com>
64707
64708         [BZ #14252]
64709         * powerpc32/power6/wcschr.c: New file.
64710         * powerpc32/power6/wcscpy.c: New file.
64711         * powerpc32/power6/wcsrchr.c: New file.
64712         * powerpc64/power6/wcschr.c: New file.
64713         * powerpc64/power6/wcscpy.c: New file.
64714         * powerpc64/power6/wcsrchr.c: New file.
64715
64716 2012-08-21  Maxim Kuvyrkov  <maxim@codesourcery.com>
64717
64718         * string/str-two-way.h (AVAILABLE1_USES_J): New macro, define default.
64719         (two_way_short_needle): Use it.
64720         * string/strstr.c (AVAILABLE1_USES_J): Define.
64721         * string/strcasestr.c: Likewise.
64722
64723         * string/str-two-way.h (two_way_short_needle): Use pointers instead of
64724         array references.
64725         * string/strcasestr.c (TOLOWER): Make side-effect safe.
64726
64727         [BZ #11607]
64728         * NEWS: Add an entry.
64729         * string/str-two-way.h (AVAILABLE1, AVAILABLE2, RET0_IF_0): New macros,
64730         define their defaults.
64731         (two_way_short_needle): Detect end-of-string on-the-fly.
64732         * string/strcasestr.c, string/strstr.c (AVAILABLE): Update.
64733         (AVAILABLE1, AVAILABLE2, RET0_IF_0, AVAILABLE_USES_J): Define.
64734         * string/bug-strcasestr1.c: New test.
64735         * string/Makefile: Run it.
64736
64737 2012-08-21  Maxim Kuvyrkov  <maxim@codesourcery.com>
64738
64739         [BZ #11607]
64740         * string/str-two-way.h (two_way_short_needle): Optimize matching of
64741         the first character.
64742
64743 2012-08-21  Roland McGrath  <roland@hack.frob.com>
64744
64745         * csu/elf-init.c (__libc_csu_irel): Function removed.
64746         * csu/libc-start.c (apply_irel): New function.
64747         (LIBC_START_MAIN): Call it instead of __libc_csu_irel.
64748
64749 2012-08-21  Joseph Myers  <joseph@codesourcery.com>
64750
64751         * sysdeps/unix/sysv/linux/kernel-features.h
64752         (__ASSUME_FADVISE64_64_SYSCALL): Remove.
64753         * sysdeps/unix/sysv/linux/i386/posix_fadvise64.S: Do not include
64754         <kernel-features.h>.
64755         [__NR_fadvise64_64]: Make code unconditional.
64756         [!__ASSUME_FADVISE64_64_SYSCALL]: Remove conditional code.
64757         [__NR_fadvise64 && (!__ASSUME_FADVISE64_64_SYSCALL ||
64758         !__NR_fadvise64_64)]: Likewise.
64759         [!(__NR_fadvise64 && (!__ASSUME_FADVISE64_64_SYSCALL ||
64760         !__NR_fadvise64_64))]: Likewise.
64761         [__NR_fadvise64]: Make code unconditional.
64762         [!__NR_fadvise64]: Remove conditional code.
64763         * sysdeps/unix/sysv/linux/posix_fadvise64.c: Do not include
64764         <kernel-features.h>.
64765         (__posix_fadvise64_l64) [__NR_fadvise64_64]: Make code
64766         unconditional.
64767         (_posix_fadvise64_l64) [!__ASSUME_FADVISE64_64_SYSCALL]: Remove
64768         conditional code.
64769         * sysdeps/unix/sysv/linux/powerpc/powerpc32/posix_fadvise64.c: Do
64770         not include <kernel-features.h>.
64771         (__posix_fadvise64_l64) [__NR_fadvise64_64]: Make code
64772         unconditional.
64773         (_posix_fadvise64_l64) [!__ASSUME_FADVISE64_64_SYSCALL]: Remove
64774         conditional code.
64775         * sysdeps/unix/sysv/linux/s390/s390-32/posix_fadvise64.c: Do not
64776         include <kernel-features.h>.
64777         (__posix_fadvise64_l64) [__NR_fadvise64_64]: Make code
64778         unconditional.
64779         (_posix_fadvise64_l64) [!__ASSUME_FADVISE64_64_SYSCALL]: Remove
64780         conditional code.
64781
64782 2012-08-21  Will Schmidt  <will_schmidt@vnet.ibm.com>
64783
64784         * sysdeps/powerpc/powerpc64/power7/memchr.S: Unrolled short loop and
64785         slight instruction rearrangements per scrollpipe analysis.
64786         * sysdeps/powerpc/powerpc64/power7/memchr.S: Likewise.
64787
64788 2012-08-20  Roland McGrath  <roland@hack.frob.com>
64789
64790         * manual/syslog.texi (syslog; vsyslog, closelog):
64791         Fix typo repeated twice: @file{dev/log} -> @file{/dev/log}.
64792         Reported by Ricardo Catalinas Jiménez <jimenezrick@gmail.com>.
64793
64794         * elf/dl-sysdep.c (_dl_important_hwcaps): Fix conditional on using
64795         DSOCAPS to match condition on defining it.
64796
64797 2012-08-20  Joseph Myers  <joseph@codesourcery.com>
64798
64799         * sysdeps/unix/sysv/linux/kernel-features.h
64800         (__ASSUME_SWAPCONTEXT_SYSCALL): Remove.
64801         * sysdeps/unix/sysv/linux/powerpc/powerpc32/getcontext.S
64802         [__ASSUME_SWAPCONTEXT_SYSCALL]: Make code unconditional.
64803         [!__ASSUME_SWAPCONTEXT_SYSCALL]: Remove conditional code.
64804         * sysdeps/unix/sysv/linux/powerpc/powerpc32/setcontext.S
64805         [__ASSUME_SWAPCONTEXT_SYSCALL]: Make code unconditional.
64806         [!__ASSUME_SWAPCONTEXT_SYSCALL]: Remove conditional code.
64807         * sysdeps/unix/sysv/linux/powerpc/powerpc32/swapcontext.S
64808         [__ASSUME_SWAPCONTEXT_SYSCALL]: Make code unconditional.
64809         [!__ASSUME_SWAPCONTEXT_SYSCALL]: Remove conditional code.
64810
64811         * sysdeps/unix/sysv/linux/kernel-features.h [__s390__ &&
64812         __LINUX_KERNEL_VERSION >= 0x020616] (__ASSUME_UTIMES): Define.
64813
64814         * sysdeps/unix/sysv/linux/kernel-features.h
64815         (__ASSUME_MMAP2_SYSCALL): Remove all definitions.
64816         * sysdeps/unix/sysv/linux/mmap64.c [__NR_mmap2]: Make code
64817         unconditional.
64818         [!__ASSUME_MMAP2_SYSCALL]: Remove conditional code.
64819         * sysdeps/unix/sysv/linux/i386/mmap.S (__mmap)
64820         [__ASSUME_MMAP2_SYSCALL]: Make code unconditional.
64821         (__mmap) [!__ASSUME_MMAP2_SYSCALL]: Remove conditional code.
64822         * sysdeps/unix/sysv/linux/i386/mmap64.S (__mmap64) [__NR_mmap2]:
64823         Make code unconditional.
64824         (__mmap64) [!__ASSUME_MMAP2_SYSCALL]: Remove conditional code.
64825         (__mmap64) [!__NR_mmap2]: Likewise.
64826         * sysdeps/unix/sysv/linux/s390/s390-32/mmap.S (__mmap)
64827         [__ASSUME_MMAP2_SYSCALL]: Make code unconditional.
64828         (__mmap) [!__ASSUME_MMAP2_SYSCALL]: Remove conditional code.
64829         * sysdeps/unix/sysv/linux/s390/s390-32/mmap64.S (__mmap64)
64830         [__NR_mmap2]: Make code unconditional.
64831         (__mmap64) [!__ASSUME_MMAP2_SYSCALL]: Remove conditional code.
64832         (__mmap64) [!__NR_mmap2]: Likewise.
64833
64834 2012-08-20  Andreas Krebbel  <Andreas.Krebbel@de.ibm.com>
64835
64836         * sysdeps/unix/sysv/linux/s390/s390-32/getrlimit.c: Remove.
64837
64838 2012-08-18  Andreas Jaeger  <aj@suse.de>
64839
64840         * stdio-common/_itoa.c (_itoa): Add missing DUMMY variable.
64841
64842 2012-08-18  Mike Frysinger  <vapier@gentoo.org>
64843
64844         * include/sys/socket.h (__have_sock_cloexec): Add attribute_hidden.
64845         * include/unistd.h (__have_sock_cloexec): Likewise.
64846         (__have_pipe2): Likewise.
64847         (__have_dup3): Likewise.
64848
64849 2012-08-18  Mike Frysinger  <vapier@gentoo.org>
64850
64851         [BZ #9685]
64852         * include/unistd.h (__have_pipe2): Change define into an extern int.
64853         (__have_dup3): Likewise.
64854         * socket/have_sock_cloexec.c: Include fcntl.h.
64855         (__have_pipe2): New variable.
64856         (__have_dup3): Likewise.
64857
64858 2012-08-17  Mike Frysinger  <vapier@gentoo.org>
64859
64860         * sysdeps/unix/sysv/linux/nice.c: Adjust #include.
64861
64862 2012-08-17  Marek Polacek  <polacek@redhat.com>
64863
64864         * sysdeps/ieee754/ldbl-96/s_sincosl.c (__sincosl): Use __attribute__
64865         ((unused)) on I1, which is set by GET_LDOUBLE_WORDS but never used.
64866
64867 2012-08-17  Roland McGrath  <roland@hack.frob.com>
64868
64869         * configure.in: Add AC_SUBST for sysheaders.
64870         * configure: Regenerated.
64871         * config.make.in (sysheaders): New substituted variable.
64872
64873         * sysdeps/unix/mkfifo.c: Moved ...
64874         * sysdeps/posix/mkfifo.c: ... here.
64875         * sysdeps/unix/mkfifoat.c: Moved ...
64876         * sysdeps/posix/mkfifoat.c: ... here.
64877
64878         * sysdeps/unix/utime.c: Moved ...
64879         * sysdeps/posix/utime.c: ... here.
64880
64881         * sysdeps/unix/time.c: Moved ...
64882         * sysdeps/posix/time.c: ... here.
64883         * sysdeps/unix/sysv/linux/time.c: Adjust #include.
64884         * sysdeps/unix/sysv/linux/sparc/sparc64/time.c: Likewise.
64885
64886         * sysdeps/unix/nice.c: Moved ...
64887         * sysdeps/posix/nice.c: ... here.
64888
64889         * sysdeps/unix/alarm.c: Moved ...
64890         * sysdeps/posix/alarm.c: ... here.
64891
64892         * intl/Makefile ($(codeset_mo)): Depend on the input file.
64893
64894 2012-08-17  Jeff Law <law@redhat.com>
64895
64896         * intl/Makefile (codeset_mo): New variable.
64897         ($(codeset_mo)): New target.
64898         (tst-codeset.out): Depend on that.  Remove explicit rule.
64899         (tst-gettext3.out, tst-gettext5.out): Likewise.
64900         (LOCPATH-ENV, tst-codeset-ENV): New variables.
64901         (tst-gettext3-ENV, tst-gettext5-ENV): Likewise.
64902         * intl/tst-codeset.sh: Remove.
64903         * intl/tst-gettext3.sh: Likewise.
64904         * intl/tst-gettext5.sh: Likewise.
64905
64906 2012-08-17  Roland McGrath  <roland@hack.frob.com>
64907
64908         * sysdeps/unix/inet/syscalls.list: File removed.  Move contents into ...
64909         * sysdeps/unix/syscalls.list: ... here.
64910
64911         * sysdeps/posix/getaddrinfo.c
64912         (save_gaiconf_mtime, check_gaiconf_mtime): New functions.
64913         (gaiconf_init, gaiconf_reload): Use them.
64914         [!_STATBUF_ST_NSEC]
64915         (gaiconf_mtime, save_gaiconf_mtime, check_gaiconf_mtime):
64916         Define using time_t rather than struct timespec.
64917
64918         * sysdeps/generic/malloc-machine.h (MUTEX_INITIALIZER): New macro.
64919         (atomic_full_barrier, atomic_read_barrier, atomic_write_barrier):
64920         Macros removed.
64921         * malloc/arena.c (save_malloc_hook, save_free_hook): Conditionalize on
64922         [!NO_THREADS].
64923         (malloc_atfork, free_atfork, atfork_recursive_cntr): Likewise.
64924         (ptmalloc_lock_all, ptmalloc_unlock_all, ptmalloc_unlock_all2):
64925         Likewise.
64926
64927         * elf/dl-iteratephdr.c (__dl_iterate_phdr): Use NULL rather than 0 for
64928         __libc_cleanup_push argument.
64929
64930         * bits/param.h: New file.
64931         * misc/sys/param.h: New file.
64932         * include/sys/param.h: New file.
64933         * misc/Makefile (headers): Add bits/param.h.
64934         * sysdeps/generic/sys/param.h: File removed.
64935         * sysdeps/unix/sysv/linux/bits/param.h: New file.
64936         * sysdeps/unix/sysv/linux/sys/param.h: File removed.
64937         * sysdeps/mach/hurd/bits/param.h: New file.
64938         * sysdeps/mach/hurd/sys/param.h: File removed.
64939
64940         * elf/dl-close.c (_dl_close_worker): Add a cast and a comment to the
64941         last change.
64942
64943         * libio/genops.c (_IO_unbuffer_write): Conditionalize locking code on
64944         [_IO_MTSAFE_IO].
64945         * libio/libioP.h [!_IO_MTSAFE_IO && !NOT_IN_libc]
64946         (_IO_acquire_lock, _IO_acquire_lock_clear_flags2, _IO_release_lock):
64947         New macros.
64948
64949         * Makeconfig [$(libc-reentrant) = yes] (libio-mtsafe): New variable.
64950         * libio/Makefile (CPPFLAGS): Append $(libio-mtsafe) unconditionally
64951         rather than -D_IO_MTSAFE_IO conditionally.
64952         * stdio-common/Makefile (CPPFLAGS): Likewise.
64953         * wcsmbs/Makefile (CPPFLAGS): Likewise.
64954         * stdlib/Makefile (CFLAGS-strfmon.c, CFLAGS-strfmon_l.c):
64955         Use $(libio-mtsafe).
64956         * debug/Makefile (CFLAGS-sprintf_chk.c): Use $(libio-mtsafe) instead
64957         of -D_IO_MTSAFE_IO.
64958         (CFLAGS-snprintf_chk.c, CFLAGS-vsprintf_chk.c): Likewise.
64959         (CFLAGS-vsnprintf_chk.c, CFLAGS-asprintf_chk.c): Likewise.
64960         (CFLAGS-vasprintf_chk.c, CFLAGS-obprintf_chk.c): Likewise.
64961         (CFLAGS-dprintf_chk.c, CFLAGS-vdprintf_chk.c): Likewise.
64962         (CFLAGS-printf_chk.c, CFLAGS-fprintf_chk.c): Likewise.
64963         (CFLAGS-vprintf_chk.c, CFLAGS-vfprintf_chk.c): Likewise.
64964         (CFLAGS-gets_chk.c, CFLAGS-fgets_chk.c): Likewise.
64965         (CFLAGS-fgets_u_chk.c, CFLAGS-fread_chk.c): Likewise.
64966         (CFLAGS-fread_u_chk.c): Likewise.
64967         (CFLAGS-swprintf_chk.c, CFLAGS-vswprintf_chk.c): Likewise.
64968         (CFLAGS-wprintf_chk.c, CFLAGS-fwprintf_chk.c): Likewise.
64969         (CFLAGS-vwprintf_chk.c, CFLAGS-vfwprintf_chk.c): Likewise.
64970         (CFLAGS-fgetws_chk.c, CFLAGS-fgetws_u_chk.c): Likewise.
64971         * grp/Makefile (CFLAGS-fgetgrent_r.c, CFLAGS-putgrent.c): Likewise.
64972         * gshadow/Makefile (CFLAGS-fgetsgent_r.c, CFLAGS-putsgent.c): Likewise.
64973         * misc/Makefile (CFLAGS-mntent_r.c): Likewise.
64974         * pwd/Makefile (CFLAGS-fgetpwent_r.c): Likewise.
64975         * shadow/Makefile (CFLAGS-fgetspent_r.c, CFLAGS-putspent.c): Likewise.
64976
64977         * libio/Makefile: Test [$(libc-reentrant) = yes]
64978         instead of [$(filter %REENTRANT, $(defines)) nonempty].
64979
64980         * Makeconfig
64981         [$(libc-reentrant) = yes] (defines): Append -D_LIBC_REENTRANT.
64982         * sysdeps/pthread/configure: File removed.
64983         * sysdeps/pthread/Makeconfig: New file.
64984         * sysdeps/mach/hurd/Makeconfig (libc-reentrant): New variable.
64985         * sysdeps/mach/hurd/configure.in: Don't touch DEFINES here.
64986
64987 2012-08-16  Gary Benson  <gbenson@redhat.com>
64988
64989         * elf/dl-close.c (_dl_close_worker): Also set r->r_map when
64990         unmapping the first object in a namespace.
64991
64992 2012-08-16  Roland McGrath  <roland@hack.frob.com>
64993
64994         * inet/getnetgrent_r.c (internal_setnetgrent): Renamed to ...
64995         (__internal_setnetgrent): ... this.  Add internal_function to
64996         definition.  Add libc_hidden_def.
64997         (setnetgrent): Update caller.
64998         (internal_endnetgrent): Renamed to ...
64999         (__internal_endnetgrent): ... this.  Add internal_function to
65000         definition.  Add libc_hidden_def.
65001         (endnetgrent): Update caller.
65002         (internal_getnetgrent_r): Renamed to ...
65003         (__internal_getnetgrent_r): ... this.  Add internal_function to
65004         definition.  Add libc_hidden_def.
65005         (__getnetgrent_r): Update caller.
65006         * inet/netgroup.h: Update declarations.  Add libc_hidden_proto uses.
65007
65008 2012-08-16  Joseph Myers  <joseph@codesourcery.com>
65009
65010         * stdlib/longlong.h: Update from GCC.
65011
65012 2012-08-16  Roland McGrath  <roland@hack.frob.com>
65013
65014         * stdlib/gmp-impl.h (udiv_qrnnd_preinv): Use __attribute__ ((unused))
65015         on _QL, which is set by umul_ppmm but never used.
65016         * stdio-common/_itoa.c (_itoa): Use __attribute__ ((unused)) on DUMMY
65017         variables, which are set by GMP macros but never used.
65018         * stdio-common/_itowa.c (_itowa): Likewise.
65019         * stdlib/divmod_1.c (mpn_divmod_1): Likewise.
65020         * stdlib/mod_1.c (mpn_mod_1): Likewise.
65021
65022 2012-08-16  Carlos O'Donell  <carlos_odonell@mentor.com>
65023
65024         * sysdeps/sh/ldsodefs.h (ARCH_PLTENTER_MEMBERS) <sh_gnu_pltenter>:
65025         struct La_sh_regs is not constant.
65026         * sysdeps/sparc/ldsodefs.h (ARCH_PLTENTER_MEMBERS)
65027         <sparc32_gnu_pltenter, sparc64_gnu_pltenter>: struct La_sparc32_regs
65028         and struct La_sparc64_regs are not constant.
65029
65030 2012-08-16  Joseph Myers  <joseph@codesourcery.com>
65031
65032         * sysdeps/unix/sysv/linux/kernel-features.h
65033         (__ASSUME_POSIX_TIMERS): Remove.
65034         * sysdeps/unix/sysv/linux/clock_getcpuclockid.c
65035         [!__ASSUME_POSIX_TIMERS]: Remove conditional code.
65036         * sysdeps/unix/sysv/linux/clock_getres.c [__ASSUME_POSIX_TIMERS]:
65037         Make code unconditional.
65038         [!__ASSUME_POSIX_TIMERS]: Remove conditional code.
65039         * sysdeps/unix/sysv/linux/clock_gettime.c [__ASSUME_POSIX_TIMERS]:
65040         Make code unconditional.
65041         [!__ASSUME_POSIX_TIMERS]: Remove conditional code.
65042         * sysdeps/unix/sysv/linux/clock_nanosleep.c
65043         [__ASSUME_POSIX_TIMERS]: Make code unconditional.
65044         [!__ASSUME_POSIX_TIMERS]: Remove conditional code.
65045         * sysdeps/unix/sysv/linux/clock_settime.c [__ASSUME_POSIX_TIMERS]:
65046         Make code unconditional.
65047         [!__ASSUME_POSIX_TIMERS]: Remove conditional code.
65048         [__ASSUME_POSIX_CPU_TIMERS <= 0 && __NR_clock_settime]
65049         (__libc_missing_posix_timers): Remove.
65050
65051 2012-08-15  Roland McGrath  <roland@hack.frob.com>
65052
65053         * elf/dl-load.c (_dl_map_object_from_fd) [SHARED]: Conditionalize
65054         check of GL(dl_error_catch_tsd) on [_LIBC_REENTRANT].
65055
65056         * bits/libc-lock.h (__rtld_lock_initialize): New macro.
65057
65058         * elf/dl-sym.c: Include <stdlib.h>.
65059
65060         * posix/regcomp.c (init_word_char): Use temporaries to hold the 64-bit
65061         constants, which avoids warnings in 32-bit builds.
65062
65063         * bits/fcntl.h [__USE_POSIX199309 || __USE_UNIX98]:
65064         (O_DSYNC, O_RSYNC): New macros (with NetBSD values).
65065
65066         * misc/lseek.c: File moved to ...
65067         * io/lseek.c: ... here.
65068
65069         * rt/clock_nanosleep.c: Include <time.h>, not <sys/time.h>.
65070
65071         * crypt/sha512.c (sha512_process_block) [!USE_TOTAL128]: Avoid
65072         shifting LEN more than 31 bits at once.
65073
65074 2012-08-15  Liubov Dmitrieva  <liubov.dmitrieva@gmail.com>
65075
65076         [BZ #14195]
65077         * sysdeps/i386/i686/multiarch/strcmp-sssse3.S: Fix
65078         segmentation fault for a case of two empty input strings.
65079         * string/test-strncasecmp.c (check1): Renamed to...
65080         (bz12205): ...this.
65081         (bz14195): Add new testcase for two empty input strings and N > 0.
65082         (test_main): Call new testcase, adapt for renamed function.
65083
65084 2012-08-15  Andreas Jaeger  <aj@suse.de>
65085
65086         [BZ #14090]
65087         * crypt/md5test2.c: New test, based on test supplied by Serge
65088         Belyshev <belyshev@depni.sinp.msu.ru>.
65089         * crypt/Makefile (xtests): Add md5test-giant..
65090         * crypt/Makefile ($(objpfx)md5test-giant): Add.
65091
65092 2012-08-15  Paul Eggert  <eggert@cs.ucla.edu>
65093
65094         [BZ #14090]
65095         * crypt/md5.c (md5_process_block): Don't assume the buffer
65096         length is less than 2**32.
65097         * crypt/sha512.c (sha512_process_block): Don't assume the buffer
65098         length is less than 2**64.
65099
65100 2012-08-15  Roland McGrath  <roland@hack.frob.com>
65101
65102         * string/str-two-way.h: Include <sys/param.h>.
65103         (MAX): Macro removed.
65104
65105         * sysdeps/x86_64/multiarch/strstr-c.c: Add copyright header.
65106         Move #define and #undef of memmove to just before and after
65107         including <string.h>.
65108
65109         * sysdeps/x86_64/multiarch/memmove.c: Don't include <stddef.h>.
65110         [!NOT_IN_libc]: Move #define and #undef of memmove to just before
65111         and after including <string.h>.  Move declarations of
65112         __memmove_sse2, __memmove_ssse3, and __memmove_ssse3_back
65113         to before #include "string/memmove.c".
65114
65115         * include/dirent.h: Declare __getdirentries.
65116
65117         * sysdeps/posix/system.c (do_system): Cast SUB_REF () to void when not
65118         using its value, to avoid warnings in the [!_LIBC_REENTRANT] case.
65119
65120 2012-08-14  Mike Frysinger  <vapier@gentoo.org>
65121
65122         * config.h.in (HAVE_CPP_ASM_DEBUGINFO): Delete.
65123         * sysdeps/i386/configure.in: Remove assembler-with-cpp debug check.
65124         * sysdeps/i386/configure: Regenerated.
65125         * sysdeps/i386/sysdep.h (ENTRY): Remove calls to STABS_CURRENT_FILE1,
65126         STABS_CURRENT_FILE, and STABS_FUN.
65127         (END): Remove call to STABS_FUN_END.
65128         (STABS_CURRENT_FILE1): Delete.
65129         (STABS_CURRENT_FILE): Likewise.
65130         (STABS_FUN): Likewise.
65131         (STABS_FUN_END): Likewise.
65132         (STABS_FUN2): Likewise.
65133         * sysdeps/x86_64/configure.in: Remove assembler-with-cpp debug check.
65134         * sysdeps/x86_64/configure: Regenerated.
65135
65136 2012-08-14  Roland McGrath  <roland@hack.frob.com>
65137
65138         * elf/dl-open.c: Include <atomic.h>.
65139         * elf/dl-lookup.c: Likewise.
65140
65141 2012-08-14  Joseph Myers  <joseph@codesourcery.com>
65142
65143         * sysdeps/unix/sysv/linux/kernel-features.h
65144         (__ASSUME_CLONE_THREAD_FLAGS): Remove.
65145         * sysdeps/unix/sysv/linux/s390/system.c (FORK): Define
65146         unconditionally.
65147         * sysdeps/unix/sysv/linux/sparc/system.c (FORK): Define
65148         unconditionally.
65149         * sysdeps/unix/sysv/linux/system.c [!FORK] (FORK): Do not
65150         condition on __ASSUME_CLONE_THREAD_FLAGS.
65151
65152 2012-08-14  Andreas Jaeger  <aj@suse.de>
65153
65154         * sysdeps/i386/fpu/libm-test-ulps: Update.
65155
65156 2012-08-13  Maxim Kuvyrkov  <maxim@codesourcery.com>
65157
65158         * include/atomic.h (atomic_exchange_and_add): Split into ...
65159         (atomic_exchange_and_add_acq, atomic_exchange_and_add_rel): ... these.
65160         New atomic macros.
65161
65162 2012-08-13  Markus Trippelsdorf  <markus@trippelsdorf.de>
65163
65164         * sysdeps/x86_64/fpu/libm-test-ulps: Update.
65165
65166 2012-08-13  Jeff Law <law@redhat.com>
65167
65168         * manual/stdio.texi (snprintf): Clarify handling of the trailing
65169         null byte in the output string.
65170
65171 2012-08-10  Joseph Myers  <joseph@codesourcery.com>
65172
65173         * sysdeps/unix/sysv/linux/kernel-features.h
65174         (__LINUX_ARG_MAX_STACK_BASED_MIN_KERNEL): Define.
65175         [__LINUX_KERNEL_VERSION >= __LINUX_ARG_MAX_STACK_BASED_MIN_KERNEL]
65176         (__ASSUME_ARG_MAX_STACK_BASED): Define.
65177         * sysdeps/unix/sysv/linux/sysconf.c (__sysconf)
65178         [__LINUX_KERNEL_VERSION < 0x020617]: Change condition to
65179         !__ASSUME_ARG_MAX_STACK_BASED.  Compare version with
65180         __LINUX_ARG_MAX_STACK_BASED_MIN_KERNEL.
65181
65182 2012-08-09  Jeff Law <law@redhat.com>
65183
65184         [BZ #13939]
65185         * malloc.c/arena.c (reused_arena): New parameter, avoid_arena.
65186         When avoid_arena is set, don't retry in the that arena.  Pick the
65187         next one, whatever it might be.
65188         (arena_get2): New parameter avoid_arena, pass through to reused_arena.
65189         (arena_lock): Pass in new parameter to arena_get2.
65190         * malloc/malloc.c (__libc_memalign): Pass in new parameter to
65191         arena_get2.
65192         (__libc_malloc): Unify retrying after main arena failure with
65193         __libc_memalign version.
65194         (__libc_valloc, __libc_pvalloc, __libc_calloc): Likewise.
65195
65196 2012-08-09  H.J. Lu  <hongjiu.lu@intel.com>
65197
65198         [BZ #14166]
65199         * sysdeps/i386/i686/multiarch/strstr-c.c (strstr): Redefined
65200         to __redirect_strstr.
65201         (__strstr_sse42): Use typeof __redirect_strstr.
65202         (__strstr_ia32): Likewise.
65203         (__libc_strstr): New prototype.
65204         (strstr): Renamed to ...
65205         (__libc_strstr): This.
65206         (strstr): New strong alias of __libc_strstr.
65207         * sysdeps/x86_64/multiarch/strstr-c.c: Likewise.
65208         * sysdeps/unix/sysv/linux/x86_64/time.c (time): Redefined to
65209         __redirect_time.
65210         Include <time.h>.
65211         (__libc_time): New prototype.
65212         (time_ifunc): Replace time with __libc_time.
65213         (time): New strong alias and hidden definition of __libc_time.
65214         (__GI_time): Remove strong alias.
65215         * sysdeps/x86_64/multiarch/memmove.c: Don't include <string.h>.
65216         Include <stddef.h>.
65217         (memmove): Redefined to __redirect_memmove.
65218         (__memmove_sse2): Use typeof __redirect_memmove.
65219         (__memmove_ssse3): Likewise.
65220         (__memmove_ssse3_back): Likewise.
65221         (__libc_memmove): New prototype.
65222         (memmove): Renamed to ...
65223         (__libc_memmove): This.
65224         (memmove): New strong alias of __libc_memmove.
65225
65226 2012-08-08  Mark Salter  <msalter@redhat.com>
65227
65228         * elf/elf.h
65229         (R_MN10300_TLS_GD): Define.
65230         (R_MN10300_TLS_LD): Likewise.
65231         (R_MN10300_TLS_LDO): Likewise.
65232         (R_MN10300_TLS_GOTIE): Likewise.
65233         (R_MN10300_TLS_IE): Likewise.
65234         (R_MN10300_TLS_LE): Likewise.
65235         (R_MN10300_TLS_DTPMOD): Likewise.
65236         (R_MN10300_TLS_DTPOFF): Likewise.
65237         (R_MN10300_TLS_TPOFF): Likewise.
65238         (R_MN10300_SYM_DIFF): Likewise.
65239         (R_MN10300_ALIGN): Likewise.
65240         (R_MN10300_NUM): Update.
65241
65242 2012-08-08  Joseph Myers  <joseph@codesourcery.com>
65243
65244         * sysdeps/unix/sysv/linux/kernel-features.h (__ASSUME_TGKILL):
65245         Remove.
65246
65247 2012-08-08  Roland McGrath  <roland@hack.frob.com>
65248
65249         * sysdeps/posix/fdopendir.c: Include <stddef.h>.
65250
65251         * sysdeps/unix/sysv/linux/readdir64_r.c: Update #include for
65252         sysdeps/unix -> sysdeps/posix move.
65253         * sysdeps/unix/sysv/linux/i386/readdir64_r.c: Likewise.
65254
65255 2012-08-07      Allan McRae     <allan@archlinux.org>
65256
65257         [BZ #14303]
65258         * sunrpc/rpc_main.c (SVR4_CPP): Remove.
65259         (SUNOS_CPP): Likewise.
65260         (find_cpp): Fall back to selecting system cpp when /lib/cpp is
65261         not found.
65262         (open_input): Call CPP using execvp.
65263
65264 2012-08-07  Joseph Myers  <joseph@codesourcery.com>
65265
65266         * sysdeps/unix/sysv/linux/kernel-features.h
65267         (__ASSUME_PROT_GROWSUPDOWN): Remove.
65268         (__ASSUME_NO_CLONE_DETACHED): Likewise.
65269         (__ASSUME_GETDENTS32_D_TYPE): Likewise.
65270         (__ASSUME_WAITID_SYSCALL): Likewise.
65271         * sysdeps/unix/sysv/linux/dl-execstack.c
65272         (_dl_make_stack_executable) [PROT_GROWSDOWN || PROT_GROWSUP]: Make
65273         code unconditional.
65274         (_dl_make_stack_executable) [!__ASSUME_PROT_GROWSUPDOWN]: Remove
65275         conditional code.
65276         * sysdeps/unix/sysv/linux/getdents.c (__GETDENTS)
65277         [__ASSUME_GETDENTS32_D_TYPE]: Make code unconditional.
65278         (__GETDENTS) [!__ASSUME_GETDENTS32_D_TYPE]: Remove conditional
65279         code.
65280         * sysdeps/unix/sysv/linux/waitid.c [__NR_waitid]: Make code
65281         unconditional.
65282         [__ASSUME_WAITID_SYSCALL]: Likewise.
65283         [!__ASSUME_WAITID_SYSCALL]: Remove conditional code.
65284
65285 2012-08-07  Roland McGrath  <roland@hack.frob.com>
65286
65287         * sysdeps/unix/closedir.c: Renamed to ...
65288         * sysdeps/posix/closedir.c: ... here.
65289         * sysdeps/unix/dirfd.c: Renamed to ...
65290         * sysdeps/posix/dirfd.c: ... here.
65291         * sysdeps/unix/dirstream.h: Renamed to ...
65292         * sysdeps/posix/dirstream.h: ... here.
65293         * sysdeps/unix/fdopendir.c: Renamed to ...
65294         * sysdeps/posix/fdopendir.c: ... here.
65295         * sysdeps/unix/opendir.c: Renamed to ...
65296         * sysdeps/posix/opendir.c: ... here.
65297         * sysdeps/unix/readdir.c: Renamed to ...
65298         * sysdeps/posix/readdir.c: ... here.
65299         * sysdeps/unix/readdir_r.c: Renamed to ...
65300         * sysdeps/posix/readdir_r.c: ... here.
65301         * sysdeps/unix/rewinddir.c: Renamed to ...
65302         * sysdeps/posix/rewinddir.c: ... here.
65303         * sysdeps/unix/seekdir.c: Renamed to ...
65304         * sysdeps/posix/seekdir.c: ... here.
65305         * sysdeps/unix/telldir.c: Renamed to ...
65306         * sysdeps/posix/telldir.c: ... here.
65307         * sysdeps/unix/sysv/linux/opendir.c: Update #include.
65308         * sysdeps/unix/sysv/linux/readdir64.c: Likewise.
65309         * sysdeps/unix/sysv/linux/i386/readdir64.c: Likewise.
65310         * sysdeps/unix/sysv/linux/wordsize-64/readdir.c: Likewise.
65311
65312         * sysdeps/unix/bsd/bsd4.4/bits/fcntl.h: Renamed to ...
65313         * bits/fcntl.h: ... here.
65314
65315         * sysdeps/unix/bsd/bsd4.4/bits/fcntl.h (O_NOCTTY): Define to 0x8000,
65316         not 0.
65317         (O_ASYNC, O_FSYNC, O_SYNC): Move outside [__USE_MISC].
65318         [__USE_XOPEN2K8] (O_DIRECTORY, O_NOFOLLOW, O_CLOEXEC): New macros.
65319         (FCREAT, FEXCL, FTRUNC, FNOCTTY, FNONBLOCK): Macros removed.
65320         (struct flock): Move l_start, l_len to the beginning.
65321         Use __pid_t for l_pid.
65322         [__USE_XOPEN2K] (POSIX_FADV_NORMAL, POSIX_FADV_RANDOM): New macros.
65323         [__USE_XOPEN2K] (POSIX_FADV_SEQUENTIAL, POSIX_FADV_WILLNEED): Likewise.
65324         [__USE_XOPEN2K] (POSIX_FADV_DONTNEED, POSIX_FADV_NOREUSE): Likewise.
65325         (F_GETLK64, F_SETLK64, F_SETLKW64): New macros.
65326         [__USE_XOPEN2K8] (F_DUPFD_CLOEXEC): New macro.
65327         [__USE_LARGEFILE64] (struct flock64): New type.
65328         (F_GETOWN, F_SETOWN): Also define for [__USE_XOPEN2K8].
65329
65330         * sysdeps/unix/bsd/bsd4.4/bits/dirent.h: Renamed to ...
65331         * bits/dirent.h: ... here.
65332
65333         * sysdeps/unix/bsd/bsd4.4/bits/dirent.h
65334         [__INO_T_MATCHES_INO64_T] (_DIRENT_MATCHES_DIRENT64): New macro.
65335
65336 2012-08-07  Joseph Myers  <joseph@codesourcery.com>
65337
65338         * sysdeps/unix/sysv/linux/configure.in (arch_minimum_kernel):
65339         Change from 2.6.0 to 2.6.16.
65340         * sysdeps/unix/sysv/linux/configure: Regenerated.
65341         * sysdeps/unix/sysv/linux/kernel-features.h
65342         (__ASSUME_POSIX_CPU_TIMERS): Define unconditionally.
65343         (__ASSUME_TGKILL): Define conditional on architectures, not kernel
65344         version.
65345         (__ASSUME_UTIMES): Likewise.
65346         (__ASSUME_CLONE_STOPPED): Remove.
65347         (__ASSUME_FADVISE64_64_SYSCALL): Define conditional on
65348         architectures, not kernel version.
65349         (__ASSUME_PROT_GROWSUPDOWN): Define unconditionally.
65350         (__ASSUME_NO_CLONE_DETACHED): Likewise.
65351         (__ASSUME_GETDENTS32_D_TYPE): Likewise.
65352         (__ASSUME_WAITID_SYSCALL): Likewise.
65353         [__sparc__ && __arch64__] (__ASSUME_STAT64_SYSCALL): Do not
65354         condition definition on __LINUX_KERNEL_VERSION >= 0x02060c.
65355         * README: State 2.6.16 as minimum Linux kernel version.  Do not
65356         refer to older versions.
65357
65358 2012-08-06  Roland McGrath  <roland@hack.frob.com>
65359
65360         * dirent/alphasort.c [_DIRENT_MATCHES_DIRENT64]:
65361         Define alphasort64 as an alias.
65362         * dirent/versionsort.c [_DIRENT_MATCHES_DIRENT64]:
65363         Define versionsort64 as an alias.
65364         * dirent/scandir.c [_DIRENT_MATCHES_DIRENT64]:
65365         Define scandir64 as an alias.
65366         * dirent/scandirat.c [_DIRENT_MATCHES_DIRENT64]:
65367         Define scandirat64 as an alias.
65368         * dirent/alphasort64.c (alphasort64):
65369         Conditionalize on [!_DIRENT_MATCHES_DIRENT64].
65370         * dirent/versionsort64.c: Likewise.
65371         * dirent/scandir64.c: Likewise.
65372         * dirent/scandirat64.c: Likewise.
65373         * sysdeps/wordsize-64/alphasort.c: File removed.
65374         * sysdeps/wordsize-64/alphasort64.c: File removed.
65375         * sysdeps/wordsize-64/scandir.c: File removed.
65376         * sysdeps/wordsize-64/scandir64.c: File removed.
65377         * sysdeps/wordsize-64/scandirat.c: File removed.
65378         * sysdeps/wordsize-64/scandirat64.c: File removed.
65379         * sysdeps/wordsize-64/versionsort.c: File removed.
65380         * sysdeps/wordsize-64/versionsort64.c: File removed.
65381         * sysdeps/unix/sysv/linux/x86_64/x32/alphasort.c: File removed.
65382         * sysdeps/unix/sysv/linux/x86_64/x32/alphasort64.c: File removed.
65383         * sysdeps/unix/sysv/linux/x86_64/x32/scandir.c: File removed.
65384         * sysdeps/unix/sysv/linux/x86_64/x32/scandir64.c: File removed.
65385         * sysdeps/unix/sysv/linux/x86_64/x32/scandirat.c: File removed.
65386         * sysdeps/unix/sysv/linux/x86_64/x32/scandirat64.c: File removed.
65387         * sysdeps/unix/sysv/linux/x86_64/x32/versionsort.c: File removed.
65388         * sysdeps/unix/sysv/linux/x86_64/x32/versionsort64.c: File removed.
65389
65390         * bits/typesizes.h [__LP64__] (__INO_T_MATCHES_INO64_T): New macros.
65391         * sysdeps/unix/sysv/linux/s390/bits/typesizes.h:
65392         [__s390x__] (__INO_T_MATCHES_INO64_T): New macro.
65393         * sysdeps/unix/sysv/linux/sparc/bits/typesizes.h
65394         [defined __arch64__ || defined __sparcv9]
65395         (__INO_T_MATCHES_INO64_T): New macro.
65396         * sysdeps/unix/sysv/linux/x86/bits/typesizes.h
65397         [__x86_64__] (__INO_T_MATCHES_INO64_T): New macro.
65398         * bits/dirent.h (_DIRENT_MATCHES_DIRENT64): New macro.
65399         * sysdeps/unix/sysv/linux/bits/dirent.h
65400         [defined __OFF_T_MATCHES_OFF64_T && defined __INO_T_MATCHES_INO64_T]
65401         (_DIRENT_MATCHES_DIRENT64): New macro.
65402
65403         * io/lockf.c [__OFF_T_MATCHES_OFF64_T]:
65404         Define lockf64 as an alias.
65405         * libio/fseeko.c [__OFF_T_MATCHES_OFF64_T]:
65406         Define fseeko64 as an alias.
65407         * libio/ftello.c [__OFF_T_MATCHES_OFF64_T]:
65408         Define ftello64 as an alias.
65409         * libio/iofgetpos.c [__OFF_T_MATCHES_OFF64_T]:
65410         Define _IO_fgetpos64 and fgetpos64 as aliases.
65411         * libio/iofsetpos.c [__OFF_T_MATCHES_OFF64_T]:
65412         Define _IO_fsetpos64 and fsetpos64 as aliases.
65413         * io/lockf64.c [!__OFF_T_MATCHES_OFF64_T]:
65414         Conditionalize body on this.
65415         * libio/fseeko64.c: Likewise.
65416         * libio/ftello64.c: Likewise.
65417         * libio/iofgetpos64.c: Likewise.
65418         * libio/iofsetpos64.c: Likewise.
65419         * sysdeps/wordsize-64/lockf.c: File removed.
65420         * sysdeps/wordsize-64/lockf64.c: File removed.
65421         * sysdeps/wordsize-64/fseeko.c: File removed.
65422         * sysdeps/wordsize-64/fseeko64.c: File removed.
65423         * sysdeps/wordsize-64/ftello.c: File removed.
65424         * sysdeps/wordsize-64/ftello64.c: File removed.
65425         * sysdeps/wordsize-64/iofgetpos.c: File removed.
65426         * sysdeps/wordsize-64/iofgetpos64.c: File removed.
65427         * sysdeps/wordsize-64/iofsetpos.c: File removed.
65428         * sysdeps/wordsize-64/iofsetpos64.c: File removed.
65429         * sysdeps/unix/sysv/linux/x86_64/x32/lockf.c: File removed.
65430         * sysdeps/unix/sysv/linux/x86_64/x32/lockf64.c: File removed.
65431         * sysdeps/unix/sysv/linux/x86_64/x32/fseeko.c: File removed.
65432         * sysdeps/unix/sysv/linux/x86_64/x32/fseeko64.c: File removed.
65433         * sysdeps/unix/sysv/linux/x86_64/x32/ftello.c: File removed.
65434         * sysdeps/unix/sysv/linux/x86_64/x32/ftello64.c: File removed.
65435         * sysdeps/unix/sysv/linux/x86_64/x32/iofgetpos.c: File removed.
65436         * sysdeps/unix/sysv/linux/x86_64/x32/iofgetpos64.c: File removed.
65437         * sysdeps/unix/sysv/linux/x86_64/x32/iofsetpos.c: File removed.
65438         * sysdeps/unix/sysv/linux/x86_64/x32/iofsetpos64.c: File removed.
65439
65440         * bits/typesizes.h [__LP64__] (__OFF_T_MATCHES_OFF64_T): New macro.
65441         * sysdeps/unix/sysv/linux/s390/bits/typesizes.h:
65442         [__s390x__] (__OFF_T_MATCHES_OFF64_T): New macro.
65443         * sysdeps/unix/sysv/linux/sparc/bits/typesizes.h
65444         [defined __arch64__ || defined __sparcv9]
65445         (__OFF_T_MATCHES_OFF64_T): New macro.
65446         * sysdeps/unix/sysv/linux/x86/bits/typesizes.h
65447         [__x86_64__] (__OFF_T_MATCHES_OFF64_T): New macro.
65448         * sysdeps/unix/bsd/bsd4.4/freebsd/bits/typesizes.h
65449         (__OFF_T_MATCHES_OFF64_T): New macro.
65450
65451 2012-08-06  H.J. Lu  <hongjiu.lu@intel.com>
65452
65453         * stdlib/secure-getenv.c (__secure_getenv): Replace
65454         GLIBC_2_16 with GLIBC_2_17.
65455
65456 2012-08-06  H.J. Lu  <hongjiu.lu@intel.com>
65457
65458         * sysdeps/unix/sysv/linux/x86_64/x32/iofopen.c: Removed.
65459         * sysdeps/unix/sysv/linux/x86_64/x32/iofopen64.c: Likewise.
65460
65461 2012-08-03  David S. Miller  <davem@davemloft.net>
65462
65463         * sysdeps/sparc/fpu/libm-test-ulps: Update.
65464
65465 2012-08-03  Joseph Myers  <joseph@codesourcery.com>
65466
65467         * sysdeps/unix/sysv/linux/kernel-features.h (__ASSUME_AT_SECURE):
65468         Remove.
65469         (__ASSUME_CORRECT_SI_PID): Likewise.
65470         (__ASSUME_BRK_PAGE_ROUNDED): Likewise.
65471         (__ASSUME_TMPFS_NAME): Likewise.
65472         * sysdeps/unix/sysv/linux/dl-sysdep.c (frob_brk)
65473         [!__ASSUME_BRK_PAGE_ROUNDED]: Remove conditional code.
65474         * sysdeps/unix/sysv/linux/ldsodefs.h [__ASSUME_AT_SECURE]
65475         (HAVE_AUX_SECURE): Make definition unconditional.
65476         * sysdeps/unix/sysv/linux/shm_open.c (where_is_shmfs)
65477         [!__ASSUME_TMPFS_NAME]: Remove conditional code.
65478
65479 2012-08-03  Roland McGrath  <roland@hack.frob.com>
65480
65481         * sysdeps/mach/hurd/sys/param.h (MAXSYMLINKS): Macro removed.
65482         * sysdeps/mach/hurd/bits/local_lim.h (SYMLOOP_MAX): Macro removed.
65483         * sysdeps/mach/hurd/eloop-threshold.h: New file.
65484         * hurd/lookup-retry.c (__hurd_file_name_lookup_retry): Use
65485         __eloop_threshold instead of SYMLOOP_MAX.
65486
65487         * sysdeps/generic/eloop-threshold.h: New file.
65488         * stdlib/canonicalize.c (__realpath): Use __eloop_threshold instead
65489         of MAXSYMLINKS.
65490         * elf/chroot_canon.c (chroot_canon): Likewise.
65491
65492 2012-08-03  Joseph Myers  <joseph@codesourcery.com>
65493
65494         [BZ #13717]
65495         * sysdeps/unix/sysv/linux/configure.in (arch_minimum_kernel):
65496         Change to 2.6.0 everywhere.
65497         * sysdeps/unix/sysv/linux/configure: Regenerated.
65498         * sysdeps/unix/sysv/linux/kernel-features.h
65499         (__ASSUME_SET_THREAD_AREA_SYSCALL): Remove.
65500         (__ASSUME_CLONE_THREAD_FLAGS): Condition on architectures, not
65501         kernel versions.
65502         (__ASSUME_POSIX_TIMERS): Define unconditionally.
65503         (__ASSUME_FUTEX_REQUEUE): Remove.
65504         (__ASSUME_STATFS64): Define unconditionally.
65505         (__ASSUME_AT_SECURE): Likewise.
65506         (__ASSUME_CORRECT_SI_PID): Likewise.
65507         (__ASSUME_TGKILL): Define without depending on kernel version for
65508         i386.
65509         (__ASSUME_UTIMES): Likewise.
65510         (__ASSUME_SWAPCONTEXT_SYSCALL): Condition on architecture, not
65511         kernel version.
65512         (__ASSUME_BRK_PAGE_ROUNDED): Define unconditionally.
65513         (__ASSUME_TMPFS_NAME): Likewise.
65514         * README: Update reference to Linux kernel versions.
65515
65516 2012-08-02  Marek Polacek  <polacek@redhat.com>
65517
65518         [BZ# 14150]
65519         * configure.in (libc_cv_asm_type_prefix): Remove test.  Replace
65520         libc_cv_asm_type_prefix with %.
65521         * configure: Regenerated.
65522         * include/libc-symbols.h: Remove comment about
65523         ASM_TYPE_DIRECTIVE_PREFIX.  Replace ASM_TYPE_DIRECTIVE_PREFIX with %.
65524         (declare_symbol_alias_1_paste) [__ASSEMBLER__]: Do not define.
65525         (declare_symbol_alias_1_paste_1) [__ASSEMBLER__]: Likewise.
65526         (declare_symbol_alias_1_stringify) [!__ASSEMBLER__]: Likewise.
65527         (declare_symbol_alias_1_stringify_1) [!__ASSEMBLER__]: Likewise.
65528         * elf/tst-unique2mod2.c: Replace ASM_TYPE_DIRECTIVE_PREFIX with %.
65529         [HAVE_ASM_UNIQUE_OBJECT]: Do not define S.
65530         [HAVE_ASM_UNIQUE_OBJECT]: Do not define _S.
65531         * elf/tst-unique2mod1.c: Likewise.
65532         * elf/tst-unique1mod2.c: Likewise.
65533         * elf/tst-unique1mod1.c: Likewise.
65534         * config.h.in: Do not undef ASM_TYPE_DIRECTIVE_PREFIX.
65535         * sysdeps/s390/s390-32/sysdep.h: Do not define ASM_TYPE_DIRECTIVE.
65536         Replace ASM_TYPE_DIRECTIVE with .type.
65537         * sysdeps/s390/s390-64/sysdep.h: Likewise.
65538         * sysdeps/i386/sysdep.h: Likewise.
65539         * sysdeps/x86_64/sysdep.h: Likewise.
65540         * sysdeps/sh/sysdep.h: Likewise.
65541         * sysdeps/unix/sysv/linux/powerpc/powerpc64/sysdep.h:
65542         Do not define ASM_TYPE_DIRECTIVE.
65543         * sysdeps/powerpc/sysdep.h: Likewise.
65544         * sysdeps/powerpc/powerpc32/sysdep.h:
65545         Replace ASM_TYPE_DIRECTIVE with .type.
65546         * sysdeps/s390/s390-32/s390-mcount.S: Likewise.
65547         * sysdeps/s390/s390-64/s390x-mcount.S: Likewise.
65548         * sysdeps/i386/fpu/e_powf.S: Likewise.
65549         * sysdeps/i386/fpu/e_expl.S: Likewise.
65550         * sysdeps/i386/fpu/e_atanhf.S: Likewise.
65551         * sysdeps/i386/fpu/e_acosh.S: Likewise.
65552         * sysdeps/i386/fpu/e_pow.S: Likewise.
65553         * sysdeps/i386/fpu/s_asinhl.S: Likewise.
65554         * sysdeps/i386/fpu/e_acoshl.S: Likewise.
65555         * sysdeps/i386/fpu/s_expm1.S: Likewise.
65556         * sysdeps/i386/fpu/s_frexpf.S: Likewise.
65557         * sysdeps/i386/fpu/e_log2.S: Likewise.
65558         * sysdeps/i386/fpu/e_log2l.S: Likewise.
65559         * sysdeps/i386/fpu/e_scalb.S: Likewise.
65560         * sysdeps/i386/fpu/e_powl.S: Likewise.
65561         * sysdeps/i386/fpu/e_log10f.S: Likewise.
65562         * sysdeps/i386/fpu/s_cbrtf.S: Likewise.
65563         * sysdeps/i386/fpu/e_logl.S: Likewise.
65564         * sysdeps/i386/fpu/s_cbrt.S: Likewise.
65565         * sysdeps/i386/fpu/s_frexpl.S: Likewise.
65566         * sysdeps/i386/fpu/s_expm1f.S: Likewise.
65567         * sysdeps/i386/fpu/e_log2f.S: Likewise.
65568         * sysdeps/i386/fpu/e_acoshf.S: Likewise.
65569         * sysdeps/i386/fpu/e_log.S: Likewise.
65570         * sysdeps/i386/fpu/e_scalbf.S: Likewise.
65571         * sysdeps/i386/fpu/e_logf.S: Likewise.
65572         * sysdeps/i386/fpu/e_log10l.S: Likewise.
65573         * sysdeps/i386/fpu/e_atanh.S: Likewise.
65574         * sysdeps/i386/fpu/s_asinhf.S: Likewise.
65575         * sysdeps/i386/fpu/e_log10.S: Likewise.
65576         * sysdeps/i386/fpu/s_frexp.S: Likewise.
65577         * sysdeps/i386/fpu/e_atanhl.S: Likewise.
65578         * sysdeps/i386/fpu/s_asinh.S: Likewise.
65579         * sysdeps/i386/fpu/s_cbrtl.S: Likewise.
65580         * sysdeps/i386/fpu/e_scalbl.S: Likewise.
65581         * sysdeps/i386/i686/fpu/multiarch/e_expf-sse2.S: Likewise.
65582         * sysdeps/i386/i686/fpu/e_logl.S: Likewise.
65583         * sysdeps/i386/i686/strtok.S: Likewise.
65584         * sysdeps/i386/i386-mcount.S: Likewise.
65585         * sysdeps/i386/strtok.S: Likewise.
65586         * sysdeps/x86_64/fpu/e_expl.S: Likewise.
65587         * sysdeps/x86_64/fpu/e_log2l.S: Likewise.
65588         * sysdeps/x86_64/fpu/e_powl.S: Likewise.
65589         * sysdeps/x86_64/fpu/e_logl.S: Likewise.
65590         * sysdeps/x86_64/fpu/e_expf.S: Likewise.
65591         * sysdeps/x86_64/fpu/e_log10l.S: Likewise.
65592         * sysdeps/x86_64/fpu/s_copysignf.S: Likewise.
65593         * sysdeps/x86_64/fpu/s_copysign.S: Likewise.
65594         * sysdeps/x86_64/fpu/e_scalbl.S: Likewise.
65595         * sysdeps/x86_64/_mcount.S: Likewise.
65596         * sysdeps/x86_64/strtok.S: Likewise.
65597         * sysdeps/sh/_mcount.S: Likewise.
65598
65599 2012-08-01  Roland McGrath  <roland@hack.frob.com>
65600
65601         * libio/iofopen.c: Include <fcntl.h>.
65602         [_LIBC] [!defined O_LARGEFILE || O_LARGEFILE == 0]
65603         (_IO_fopen64, fopen64): Define as aliases.
65604         * libio/iofopen64.c: Include <fcntl.h>.
65605         [!defined _LIBC || (defined O_LARGEFILE && O_LARGEFILE != 0)]:
65606         Conditionalize body on this.
65607         * sysdeps/wordsize-64/iofopen.c: File removed.
65608         * sysdeps/wordsize-64/iofopen64.c: File removed.
65609
65610 2012-08-01  Marek Polacek  <polacek@redhat.com>
65611
65612         * libc/Makeconfig: Use elf in place of binfmt-subdir.
65613         Use dlfcn directly instead of a variable.
65614         (binfmt-subdir): Do not define.
65615         (dlfcn): Likewise.
65616
65617 2012-08-01  Joseph Myers  <joseph@codesourcery.com>
65618
65619         * sysdeps/unix/sysv/linux/kernel-features.h (__ASSUME_FCNTL64):
65620         Remove all definitions.
65621         * sysdeps/unix/sysv/linux/i386/fcntl.c: Do not include
65622         <kernel-features.h>.
65623         [!__ASSUME_FCNTL64] (__have_no_fcntl64): Remove.
65624         (miss_F_GETOWN_EX): Remove all definitions.
65625         [NO_CANCELLATION && !__ASSUME_FCNTL64] (__fcntl_nocancel): Remove
65626         macro definition.
65627         [!__ASSUME_FCNTL64]: Remove conditional code.
65628         [__ASSUME_FCNTL64]: Make code unconditional.
65629         * sysdeps/unix/sysv/linux/i386/lockf64.c: Do not include
65630         <kernel-features.h>.
65631         [__NR_fcntl64 && !__ASSUME_FCNTL64] (__have_no_fcntl64): Remove.
65632         (lockf64) [!__ASSUME_FCNTL64]: Remove conditional code.
65633         (lockf64) [__NR_fcntl64]: Make code unconditional.
65634         (lockf64) [__ASSUME_FCNTL64]: Likewise.
65635
65636         * sysdeps/unix/sysv/linux/kernel-features.h
65637         (__ASSUME_VFORK_SYSCALL): Remove all definitions.
65638         * sysdeps/unix/sysv/linux/i386/vfork.S (__vfork) [__NR_vfork]:
65639         Make code unconditional.
65640         (__vfork) [__ASSUME_VFORK_SYSCALL]: Likewise.
65641         (__vfork) [!__ASSUME_VFORK_SYSCALL]: Remove conditional code.
65642         * sysdeps/unix/sysv/linux/powerpc/powerpc32/vfork.S (__vfork)
65643         [__NR_vfork]: Make code unconditional.
65644         (__vfork) [__ASSUME_VFORK_SYSCALL]: Likewise.
65645         (__vfork) [!__ASSUME_VFORK_SYSCALL]: Remove conditional code.
65646         * sysdeps/unix/sysv/linux/powerpc/powerpc64/vfork.S (__vfork)
65647         [__NR_vfork]: Make code unconditional.
65648         (__vfork) [__ASSUME_VFORK_SYSCALL]: Likewise.
65649         (__vfork) [!__ASSUME_VFORK_SYSCALL]: Remove conditional code.
65650
65651 2012-08-01  Roland McGrath  <roland@hack.frob.com>
65652
65653         * sysdeps/generic/sys/param.h (NGROUPS): Define only if [NGROUPS_MAX].
65654         (MAXSYMLINKS): Define only if [SYMLOOP_MAX].
65655
65656         * misc/mkstemp.c [!defined O_LARGEFILE || O_LARGEFILE == 0]:
65657         Define mkstemp64 as an alias.
65658         * misc/mkstemps.c [!defined O_LARGEFILE || O_LARGEFILE == 0]:
65659         Define mkstemps64 as an alias.
65660         * misc/mkostemp.c [!defined O_LARGEFILE || O_LARGEFILE == 0]:
65661         Define mkostemp64 as an alias.
65662         * misc/mkostemps.c [!defined O_LARGEFILE || O_LARGEFILE == 0]:
65663         Define mkostemps64 as an alias.
65664         * misc/mkstemp64.c [defined O_LARGEFILE && O_LARGEFILE != 0]:
65665         Conditionalize body on this.
65666         * misc/mkostemp64.c: Likewise.
65667         * misc/mkostemps64.c: Likewise.
65668         * misc/mkstemps64.c: Likewise.
65669         * sysdeps/wordsize-64/mkstemp64.c: File removed.
65670         * sysdeps/wordsize-64/mkostemp64.c: File removed.
65671         * sysdeps/wordsize-64/mkostemp.c: File removed.
65672         * sysdeps/wordsize-64/mkstemp.c: File removed.
65673         * sysdeps/unix/sysv/linux/x86_64/x32/mkstemp64.c: File removed.
65674         * sysdeps/unix/sysv/linux/x86_64/x32/mkostemp64.c: File removed.
65675         * sysdeps/unix/sysv/linux/x86_64/x32/mkostemp.c: File removed.
65676         * sysdeps/unix/sysv/linux/x86_64/x32/mkstemp.c: File removed.
65677
65678         [BZ #14138]
65679         * sysdeps/unix/sysv/linux/syscalls.list: Add getrlimit/ugetrlimit line.
65680         * sysdeps/unix/sysv/linux/i386/getrlimit.c: File removed.
65681         * sysdeps/unix/sysv/linux/powerpc/getrlimit.c: File removed.
65682         * sysdeps/unix/sysv/linux/sh/getrlimit.c: File removed.
65683
65684         * sysdeps/unix/make-syscalls.sh: Emit uses of the versioned_symbol and
65685         compat_symbol macros from <shlib-compat.h> rather than the underlying
65686         default_symbol_version and symbol_version macros, so that DEFAULT
65687         lines in shlib-versions are respected.
65688         * sysdeps/unix/Makefile ($(objpfx)stub-syscalls.c): Likewise.
65689
65690 2012-08-01  Florian Weimer  <fweimer@redhat.com>
65691
65692         * posix/unistd.h (setuid, setreuid, seteuid, setresuid):
65693         Declare with warn_unused_result.
65694         (setgid, setregid, setegid, setresgid): Likewise.
65695         * sysdeps/unix/sysv/linux/sys/fsuid.h (setfsuid, setfsgid):
65696         Likewise.
65697         * WUR-REPORT: Remove set*id functions.
65698
65699 2012-07-31  Pino Toscano  <toscano.pino@tiscali.it>
65700
65701         * sysdeps/mach/hurd/renameat.c: New file, mostly copied from rename.c.
65702
65703 2012-07-31  Roland McGrath  <roland@hack.frob.com>
65704
65705         [BZ #10191]
65706         * include/sys/socket.h (__libc_accept, __libc_accept4):
65707         Add attribute_hidden.
65708         * socket/accept4.c (__libc_accept4): Remove libc_hidden_def.
65709
65710         * nss/getXXbyYY_r.c (INTERNAL (REENTRANT_NAME)): Conditionalize
65711         use of PTR_MANGLE.
65712         * inet/getnetgrent_r.c (setup): Likewise.
65713
65714         * sysdeps/generic/siglist.h: Put SIGWINCH under #ifdef.
65715
65716 2012-07-31  David S. Miller  <davem@davemloft.net>
65717
65718         * sysdeps/sparc/fpu/libm-test-ulps: Update.
65719
65720 2012-07-31  Joseph Myers  <joseph@codesourcery.com>
65721
65722         [BZ #13629]
65723         * math/s_clog.c (__clog): Use __log1p if larger part has absolute
65724         value between 1.0 and 2.0 and smaller part has absolute value less
65725         than 1.0.
65726         * math/s_clog10.c (__clog10): Likewise.
65727         * math/s_clog10f.c (__clog10f): Likewise.
65728         * math/s_clog10l.c (__clog10l): Likewise.
65729         * math/s_clogf.c (__clogf): Likewise.
65730         * math/s_clogl.c (__clogl): Likewise.
65731         * math/libm-test.inc (clog_test): Add more tests.
65732         (clog10_test): Likewise.
65733         * sysdeps/i386/fpu/libm-test-ulps: Update.
65734         * sysdeps/x86_64/fpu/libm-test-ulps: Likewise.
65735
65736 2012-07-31  Florian Weimer  <fweimer@redhat.com>
65737
65738         * stdlib/tst-secure-getenv.c: Use printf for error reporting.
65739         Exit with zero in case no suitable GID is found, and write a
65740         message to standard error.
65741
65742 2012-07-30  Roland McGrath  <roland@hack.frob.com>
65743
65744         * sysdeps/generic/sys/param.h (MAXSYMLINKS): Define to SYMLOOP_MAX
65745         rather than to 1.
65746         (NBBY, NGROUPS, CANBSIZ, NCARGS): New macros.
65747         (MAXPATHLEN): Removed.
65748         (NOGROUP, NODEV): New macros.
65749         (setbit, clrbit, isset, isclr): New macros.
65750         (howmany, roundup, powerof2): New macros.
65751         (DEV_BSIZE): New macro.
65752
65753         * include/unistd.h: Add attribute_hidden on __libc_pwrite64.
65754         * sysdeps/posix/pwrite64.c: Remove libc_hidden_def (__libc_pwrite64).
65755
65756         * sysdeps/ieee754/k_standard.c (__kernel_standard_l): Conditionalize
65757         definition on [!__NO_LONG_DOUBLE_MATH].
65758
65759         * nss/nsswitch.c (__nss_lookup_function): Conditionalize use of
65760         PTR_MANGLE and PTR_DEMANGLE.
65761
65762         * socket/accept4.c (accept4): Rename to __libc_accept4.
65763         Define accept4 as a weak alias.
65764
65765         * sysdeps/posix/getcwd.c (__getcwd): Conditionalize d_type field use
65766         on [_DIRENT_HAVE_D_TYPE].
65767         * io/ftw.c (ftw_dir): Likewise.
65768
65769         * io/xmknod.c (__xmknod): Don't check PATH for being null.
65770
65771         * libio/genops.c (flush_cleanup): Move inside [_IO_MTSAFE_IO].
65772
65773         * bits/signum.h (SIGSTOP, SIGCONT, SIGTSTP, SIGTTIN, SIGTTOU, SIGCHLD):
65774         Use the BSD numbers rather than the arbitrary ones we had.
65775         (SIGBUS, SIGIO, SIGPOLL, SIGPROF, SIGSYS): New macros.
65776         (SIGTRAP, SIGURG, SIGUSR1, SIGUSR2, SIGVTALRM): New macros.
65777         (SIGXCPU, SIGXFSZ): New macros.
65778         (_NSIG): Now 32.
65779
65780         * elf/rtld.c (_rtld_global): Conditionalize .dl_ns[LM_ID_BASE]
65781         initializer on [_LIBC_REENTRANT].
65782
65783         * iconv/iconv_charmap.c (charmap_conversion): Move ST, ADDR
65784         definitions inside [_POSIX_MAPPED_FILES].
65785
65786         * posix/regex.c: Include <sys/param.h> for MIN/MAX.
65787
65788         * dirent/opendir.c: Include <fcntl.h>.
65789
65790         * bits/libc-lock.h (__libc_setspecific): Evaluate arguments.
65791         (__libc_getspecific): Likewise.
65792         (__libc_key_create): Likewise.
65793
65794         * stdio-common/tmpfile64.c: Include <fcntl.h> first.
65795         [defined O_LARGEFILE && O_LARGEFILE != 0]: Conditionalize on this.
65796         * stdio-common/tmpfile.c [!defined O_LARGEFILE || O_LARGEFILE == 0]
65797         (tmpfile64): Define as alias.
65798         * sysdeps/wordsize-64/tmpfile.c: File removed.
65799         * sysdeps/wordsize-64/tmpfile64.c: File removed.
65800         * sysdeps/unix/sysv/linux/x86_64/x32/tmpfile64.c: File removed.
65801         * sysdeps/unix/sysv/linux/x86_64/x32/tmpfile.c: File removed.
65802
65803         * stdio-common/vfscanf.c: Include <stdbool.h>.
65804         * nss/makedb.c: Likewise.
65805         * stdio-common/_i18n_number.h: Likewise.
65806         * argp/argp-help.c: Likewise.
65807         * posix/wordexp.c: Likewise.
65808         * sysdeps/posix/spawni.c: Likewise.
65809         * nss/nss_files/files-initgroups.c: Likewise.
65810         * stdio-common/reg-modifier.c: Include <stdlib.h>.
65811         * nss/nss_files/files-initgroups.c: Likewise.
65812         * nss/nss_db/db-netgrp.c: Likewise.
65813         * nss/nss_db/db-initgroups.c: Likewise.
65814         * io/fchmodat.c: Include <sys/stat.h>.
65815
65816         * sysdeps/generic/ldsodefs.h (struct rtld_global): Use
65817         __rtld_lock_define_recursive macro instead of __rtld_lock_recursive_t.
65818
65819         * intl/loadmsgcat.c (_nl_load_domain): Don't use MAP_FAILED outside of
65820         [HAVE_MMAP].
65821
65822         * bits/stat.h: Fix inclusion guard to accept _FCNTL_H too.
65823         Add multiple inclusion protection.
65824
65825 2012-07-27  David S. Miller  <davem@davemloft.net>
65826
65827         * sysdeps/sparc/fpu/libm-test-ulps: Update.
65828
65829 2012-07-27  Gary Benson  <gbenson@redhat.com>
65830
65831         [BZ #14298]
65832         * elf/rtld.c: Include <stap-probe.h>.
65833         (dl_main): Added static probes "init_start" and "init_complete".
65834         * elf/dl-load.c: Include <stap-probe.h>.
65835         (lose): Take new parameter "nsid".
65836         Added static probe "map_failed".
65837         (_dl_map_object_from_fd): Pass namespace id to lose.
65838         Added static probe "map_start".
65839         (open_verify): Pass namespace id to lose.
65840         * elf/dl-open.c: Include <stap-probe.h>.
65841         (dl_open_worker) Added static probes "map_complete", "reloc_start"
65842         and "reloc_complete".
65843         * elf/dl-close.c: Include <stap-probe.h>.
65844         (_dl_close_worker): Added static probes "unmap_start" and
65845         "unmap_complete".
65846         * elf/rtld-debugger-interface.txt: New file documenting the above.
65847
65848 2012-07-26  Roland McGrath  <roland@hack.frob.com>
65849
65850         * sunrpc/rpc_hout.c (pdeclaration): Call f_print with a "%s" format
65851         rather than a string variable.
65852         * sunrpc/rpc_main.c (h_output): Likewise.
65853         * sunrpc/rpc_svcout.c (write_real_program): Likewise.
65854
65855 2012-07-26  Pino Toscano  <toscano.pino@tiscali.it>
65856
65857         * inet/check_native.c: New file.
65858
65859 2012-07-26  Joseph Myers  <joseph@codesourcery.com>
65860
65861         [BZ #13629]
65862         * math/s_clog.c (__clog): Use __log1p or direct log1p calculation
65863         if larger part has absolute value 1.0.
65864         * math/s_clog10.c (__clog10): Likewise.
65865         * math/s_clog10f.c (__clog10f): Likewise.
65866         * math/s_clog10l.c (__clog10l): Likewise.
65867         * math/s_clogf.c (__clogf): Likewise.
65868         * math/s_clogl.c (__clogl): Likewise.
65869         * math/libm-test.inc (clog_test): Add more tests.
65870         (clog10_test): Likewise.
65871         * sysdeps/i386/fpu/libm-test-ulps: Update.
65872         * sysdeps/x86_64/fpu/libm-test-ulps: Likewise.
65873
65874         * elf/tst-auditmod1.c (pltenter): Remove all definitions of macro.
65875         (pltexit): Likewise.
65876         (La_regs): Likewise.
65877         (La_retval): Likewise.
65878         (int_retval): Likewise.
65879         Update #error for removed macros to refer only to definitions in
65880         tst-audit.h.
65881         * elf/tst-auditmod3b.c (pltenter): Remove all definitions of
65882         macro.
65883         (pltexit): Likewise.
65884         (La_regs): Likewise.
65885         (La_retval): Likewise.
65886         (int_retval): Likewise.
65887         * elf/tst-auditmod4b.c (pltenter): Remove all definitions of
65888         macro.
65889         (pltexit): Likewise.
65890         (La_regs): Likewise.
65891         (La_retval): Likewise.
65892         (int_retval): Likewise.
65893         * elf/tst-auditmod5b.c (pltenter): Remove all definitions of
65894         macro.
65895         (pltexit): Likewise.
65896         (La_regs): Likewise.
65897         (La_retval): Likewise.
65898         (int_retval): Likewise.
65899         * elf/tst-auditmod6b.c (pltenter): Remove all definitions of
65900         macro.
65901         (pltexit): Likewise.
65902         (La_regs): Likewise.
65903         (La_retval): Likewise.
65904         (int_retval): Likewise.
65905         * elf/tst-auditmod6c.c (pltenter): Remove all definitions of
65906         macro.
65907         (pltexit): Likewise.
65908         (La_regs): Likewise.
65909         (La_retval): Likewise.
65910         (int_retval): Likewise.
65911         * elf/tst-auditmod7b.c (pltenter): Remove all definitions of
65912         macro.
65913         (pltexit): Likewise.
65914         (La_regs): Likewise.
65915         (La_retval): Likewise.
65916         (int_retval): Likewise.
65917         * sysdeps/generic/tst-audit.h: Update comment to refer only to
65918         macro definitions in tst-audit.h.
65919         * sysdeps/i386/tst-audit.h: New file.
65920         * sysdeps/powerpc/powerpc32/tst-audit.h: Likewise.
65921         * sysdeps/powerpc/powerpc64/tst-audit.h: Likewise.
65922         * sysdeps/s390/s390-32/tst-audit.h: Likewise.
65923         * sysdeps/s390/s390-64/tst-audit.h: Likewise.
65924         * sysdeps/sh/tst-audit.h: Likewise.
65925         * sysdeps/sparc/sparc32/tst-audit.h: Likewise.
65926         * sysdeps/sparc/sparc64/tst-audit.h: Likewise.
65927         * sysdeps/x86_64/tst-audit.h: Likewise.
65928
65929 2012-07-26  Andreas Jaeger  <aj@suse.de>
65930
65931         * sysdeps/unix/sysv/linux/s390/sys/ptrace.h: Add __THROW for
65932         ptrace.
65933
65934         * sysdeps/unix/sysv/linux/sys/ptrace.h (__ptrace_eventcodes): Add
65935         new value PTRACE_EVENT_SECCOMP from Linux 3.5.
65936         (__ptrace_setoptions): Add new value PTRACE_O_TRACESECCOMP, adjust
65937         PTRACE_O_MASK.
65938         * sysdeps/unix/sysv/linux/s390/bits/ptrace.h: Likewise.
65939         * sysdeps/unix/sysv/linux/sparc/bits/ptrace.h: Likewise.
65940         * sysdeps/unix/sysv/linux/powerpc/bits/ptrace.h: Likewise.
65941
65942         * sysdeps/unix/sysv/linux/sys/epoll.h (EPOLLWAKEUP): Add new
65943         value.
65944
65945         * sysdeps/unix/sysv/linux/bits/siginfo.h (siginfo_t): Add
65946         _sigsys.
65947         (si_call_addr, si_syscall, si_arch): Define new macro.
65948         * sysdeps/unix/sysv/linux/s390/bits/siginfo.h (siginfo_t): Add
65949         _sigsys.
65950         (si_call_addr, si_syscall, si_arch): Define new marcro.
65951         * sysdeps/unix/sysv/linux/sparc/bits/siginfo.h (siginfo_t): Add
65952         _sigsys.
65953         (si_call_addr, si_syscall, si_arch): Define new macro.
65954         * sysdeps/unix/sysv/linux/x86/bits/siginfo.h (struct): Add
65955         _sigsys.
65956         (si_call_addr, si_syscall, si_arch): Define new macro.
65957
65958 2012-07-25  Joseph Myers  <joseph@codesourcery.com>
65959
65960         [BZ #13717]
65961         * sysdeps/unix/sysv/linux/configure.in (arch_minimum_kernel):
65962         Change to 2.4.21 where previously 2.4.1.
65963         * sysdeps/unix/sysv/linux/configure: Regenerated.
65964         * sysdeps/unix/sysv/linux/kernel-features.h [(__powerpc__ ||
65965         __sh__) && !__powerpc64__] (__ASSUME_FCNTL64): Do not condition on
65966         Linux kernel version.
65967         (__ASSUME_STD_AUXV): Remove.
65968         [__powerpc__] (__ASSUME_VFORK_SYSCALL): Do not condition on Linux
65969         kernel version.
65970         [__powerpc__ && !__powerpc64] (__ASSUME_MMAP2_SYSCALL): Likewise.
65971         (__ASSUME_NEW_PRCTL_SYSCALL): Remove.
65972         (__ASSUME_FIXED_CLONE_SYSCALL): Likewise.
65973         (__ASSUME_NEW_RT_SIGRETURN_SYSCALL): Likewise.
65974         (__ASSUME_NETLINK_SUPPORT): Likewise.
65975         * nscd/gai.c [NEED_NETLINK && __ASSUME_NETLINK_SUPPORT == 0]
65976         (__no_netlink_support): Remove conditional definition.
65977         * sysdeps/unix/sysv/linux/check_pf.c (__no_netlink_support):
65978         Remove.
65979         (__check_pf) [!__ASSUME_NETLINK_SUPPORT]: Remove conditional code.
65980         [__ASSUME_NETLINK_SUPPORT]: Make code unconditional.
65981         * sysdeps/unix/sysv/linux/if_index.c [!__ASSUME_NETLINK_SUPPORT]
65982         (if_nameindex_ioctl): Remove.
65983         (if_nameindex_netlink): Do not handle __no_netlink_support.
65984         (if_nameindex) [!__ASSUME_NETLINK_SUPPORT]: Remove conditional
65985         code.
65986         * sysdeps/unix/sysv/linux/ifaddrs.c [!__ASSUME_NETLINK_SUPPORT]:
65987         Remove conditional code.
65988         (__netlink_open) [!__ASSUME_NETLINK_SUPPORT]: Remove conditional
65989         code.
65990         (getifaddrs_internal) [__ASSUME_NETLINK_SUPPORT]: Make code
65991         unconditional.
65992         [!__ASSUME_NETLINK_SUPPORT]: Remove conditional code.
65993         [__ASSUME_NETLINK_SUPPORT] (freeifaddrs): Make code unconditional.
65994         * sysdeps/unix/sysv/linux/netlinkaccess.h (__no_netlink_support):
65995         Remove.
65996         * sysdeps/unix/sysv/linux/powerpc/dl-sysdep.c
65997         [!__ASSUME_STD_AUXV]: Remove conditional code.
65998         * sysdeps/unix/sysv/linux/powerpc/powerpc32/clone.S (__clone)
65999         [!__ASSUME_FIXED_CLONE_SYSCALL]: Remove conditional code.
66000         [__ASSUME_FIXED_CLONE_SYSCALL]: Make code unconditional.
66001         * sysdeps/unix/sysv/linux/powerpc/powerpc32/fpu/fe_mask.c
66002         [!__ASSUME_NEW_PRCTL_SYSCALL] (fe_mask_handler): Remove.
66003         (__fe_mask_env) [!__ASSUME_NEW_PRCTL_SYSCALL]: Remove conditional
66004         code.
66005         [__ASSUME_NEW_PRCTL_SYSCALL]: Make code unconditional.
66006         * sysdeps/unix/sysv/linux/powerpc/powerpc32/fpu/fe_nomask.c
66007         [!__ASSUME_NEW_PRCTL_SYSCALL] (fe_nomask_handler): Remove.
66008         (__fe_nomask_env) [!__ASSUME_NEW_PRCTL_SYSCALL]: Remove
66009         conditional code.
66010         [__ASSUME_NEW_PRCTL_SYSCALL]: Make code unconditional.
66011         * sysdeps/unix/sysv/linux/powerpc/powerpc64/fpu/fe_mask.c
66012         (__fe_mask_env) [!__ASSUME_NEW_PRCTL_SYSCALL]: Remove conditional
66013         code.
66014         * sysdeps/unix/sysv/linux/powerpc/powerpc64/fpu/fe_nomask.c
66015         (__fe_nomask_env) [!__ASSUME_NEW_PRCTL_SYSCALL]: Remove
66016         conditional code.
66017         * sysdeps/unix/sysv/linux/powerpc/powerpc64/getcontext.S
66018         (__novec_getcontext) [__ASSUME_NEW_RT_SIGRETURN_SYSCALL]: Make
66019         code unconditional.
66020         (__novec_getcontext) [!__ASSUME_NEW_RT_SIGRETURN_SYSCALL]: Remove
66021         conditional code.
66022         (__getcontext) [__ASSUME_NEW_RT_SIGRETURN_SYSCALL]: Make code
66023         unconditional.
66024         (__getcontext) [!__ASSUME_NEW_RT_SIGRETURN_SYSCALL]: Remove
66025         conditional code.
66026         * sysdeps/unix/sysv/linux/powerpc/powerpc64/makecontext.S
66027         (__makecontext) [__ASSUME_NEW_RT_SIGRETURN_SYSCALL]: Make code
66028         unconditional.
66029         (__makecontext) [!__ASSUME_NEW_RT_SIGRETURN_SYSCALL]: Remove
66030         conditional code.
66031         * sysdeps/unix/sysv/linux/powerpc/powerpc64/setcontext.S
66032         (__novec_setcontext) [__ASSUME_NEW_RT_SIGRETURN_SYSCALL]: Make
66033         code unconditional.
66034         (__novec_setcontext) [!__ASSUME_NEW_RT_SIGRETURN_SYSCALL]: Remove
66035         conditional code.
66036         (__setcontext) [__ASSUME_NEW_RT_SIGRETURN_SYSCALL]: Make code
66037         unconditional.
66038         (__setcontext) [!__ASSUME_NEW_RT_SIGRETURN_SYSCALL]: Remove
66039         conditional code.
66040         * sysdeps/unix/sysv/linux/powerpc/powerpc64/swapcontext.S
66041         (__novec_swapcontext) [__ASSUME_NEW_RT_SIGRETURN_SYSCALL]: Make
66042         code unconditional.
66043         (__novec_swapcontext) [!__ASSUME_NEW_RT_SIGRETURN_SYSCALL]: Remove
66044         conditional code.
66045         (__swapcontext) [__ASSUME_NEW_RT_SIGRETURN_SYSCALL]: Make code
66046         unconditional.
66047         (__swapcontext) [!__ASSUME_NEW_RT_SIGRETURN_SYSCALL]: Remove
66048         conditional code.
66049
66050 2012-07-25  Andreas Schwab  <schwab@linux-m68k.org>
66051
66052         * sysdeps/unix/sysv/linux/i386/accept4.S: Remove pseudo_end label.
66053         * sysdeps/unix/sysv/linux/i386/call_sync_file_range.S: Likewise.
66054         * sysdeps/unix/sysv/linux/i386/clone.S: Likewise.
66055         * sysdeps/unix/sysv/linux/i386/epoll_pwait.S: Likewise.
66056         * sysdeps/unix/sysv/linux/i386/getcontext.S: Likewise.
66057         * sysdeps/unix/sysv/linux/i386/mmap.S: Likewise.
66058         * sysdeps/unix/sysv/linux/i386/mmap64.S: Likewise.
66059         * sysdeps/unix/sysv/linux/i386/semtimedop.S: Likewise.
66060         * sysdeps/unix/sysv/linux/i386/setcontext.S: Likewise.
66061         * sysdeps/unix/sysv/linux/i386/socket.S: Likewise.
66062         * sysdeps/unix/sysv/linux/i386/swapcontext.S: Likewise.
66063         * sysdeps/unix/sysv/linux/i386/syscall.S: Likewise.
66064         * sysdeps/unix/sysv/linux/i386/sysdep.h (PSEUDO): Likewise.
66065         * sysdeps/unix/sysv/linux/i386/vfork.S: Likewise.
66066         * sysdeps/unix/sysv/linux/x86_64/clone.S: Likewise.
66067         * sysdeps/unix/sysv/linux/x86_64/getcontext.S: Likewise.
66068         * sysdeps/unix/sysv/linux/x86_64/setcontext.S: Likewise.
66069         * sysdeps/unix/sysv/linux/x86_64/sched_getcpu.S: Likewise.
66070         * sysdeps/unix/sysv/linux/x86_64/syscall.S: Likewise.
66071         * sysdeps/unix/sysv/linux/x86_64/sysdep.h (PSEUDO): Likewise.
66072         * sysdeps/unix/sysv/linux/x86_64/swapcontext.S: Likewise.
66073         * sysdeps/unix/sysv/linux/x86_64/vfork.S: Likewise.
66074         * sysdeps/unix/sysv/linux/x86_64/x32/sched_getcpu.S: Likewise.
66075
66076 2012-07-25  Florian Weimer  <fweimer@redhat.com>
66077
66078         * Versions.def: Add GLIBC_2.17.
66079         * stdlib/stdlib.h: Rename __secure_getenv to secure_getenv.
66080         * include/stdlib.h: Rename __secure_getenv to secure_getenv.
66081         Introduce __libc_secure_getenv.
66082         * stdlib/Versions (2.17): Add secure_getenv
66083         (GLIBC_PRIVATE): Add __libc_secure_getenv.
66084         * stdlib/secure-getenv.c: Rename __secure_getenv to
66085         __libc_secure_getenv.  Add secure_getenv alias.  Add compatibility
66086         symbol __secure_getenv for GLIBC_2.0.
66087         * stdlib/tst-secure-getenv.c: New.
66088         * stdlib/Makefile (tests): Add testcase.
66089         * manual/startup.texi (Environment Access): Document
66090         secure_getenv.
66091         * hesiod/hesiod.c (hesiod_init): Rename __secure_getenv to
66092         __libc_secure_getenv.
66093         * inet/ruserpass.c (ruserpass): Likewise.
66094         * malloc/mtrace.c (mtrace): Likewise.
66095         * sysdeps/mach/hurd/tmpfile.c (__tmpfile): Likewise.
66096         * sysdeps/posix/libc_fatal.c (__libc_fatal): Likewise.
66097         * sysdeps/posix/sysconf.c (__sysconf__check_spec): Likewise.
66098         * sysdeps/posix/tempname.c: Likewise.  Evaluate
66099         HAVE_SECURE_GETENV.
66100         * sysdeps/unix/sysv/linux/libc_fatal.c (__libc_message): Rename
66101         __secure_getenv to __libc_secure_getenv.
66102         * sysdeps/unix/sysv/linux/i386/nptl/libc.abilist: Add secure_getenv.
66103         * sysdeps/unix/sysv/linux/powerpc/powerpc32/fpu/nptl/libc.abilist:
66104         Likewise.
66105         * sysdeps/unix/sysv/linux/powerpc/powerpc64/nptl/libc.abilist:
66106         Likewise.
66107         * sysdeps/unix/sysv/linux/s390/s390-32/nptl/libc.abilist: Likewise.
66108         * sysdeps/unix/sysv/linux/s390/s390-64/nptl/libc.abilist: Likewise.
66109         * sysdeps/unix/sysv/linux/sh/nptl/libc.abilist: Likewise.
66110         * sysdeps/unix/sysv/linux/sparc/sparc32/nptl/libc.abilist: Likewise.
66111         * sysdeps/unix/sysv/linux/sparc/sparc64/nptl/libc.abilist: Likewise.
66112         * sysdeps/unix/sysv/linux/x86_64/64/nptl/libc.abilist: Likewise.
66113         * sysdeps/unix/sysv/linux/x86_64/x32/nptl/libc.abilist: Likewise.
66114
66115 2012-07-25  Joseph Myers  <joseph@codesourcery.com>
66116
66117         * sysdeps/generic/ldsodefs.h (struct La_i86_regs): Remove.
66118         (struct La_i86_retval): Likewise.
66119         (struct La_x86_64_regs): Likewise.
66120         (struct La_x86_64_retval): Likewise.
66121         (struct La_x32_regs): Likewise.
66122         (struct La_x32_retval): Likewise.
66123         (struct La_ppc32_regs): Likewise.
66124         (struct La_ppc32_retval): Likewise.
66125         (struct La_ppc64_regs): Likewise.
66126         (struct La_ppc64_retval): Likewise.
66127         (struct La_sh_regs): Likewise.
66128         (struct La_sh_retval): Likewise.
66129         (struct La_s390_32_regs): Likewise.
66130         (struct La_s390_32_retval): Likewise.
66131         (struct La_s390_64_regs): Likewise.
66132         (struct La_s390_64_retval): Likewise.
66133         (struct La_sparc32_regs): Likewise.
66134         (struct La_sparc32_retval): Likewise.
66135         (struct La_sparc64_regs): Likewise.
66136         (struct La_sparc64_retval): Likewise.
66137         (struct audit_ifaces): Remove architecture-specific pltenter and
66138         pltexit members.
66139         * sysdeps/i386/ldsodefs.h: New file.
66140         * sysdeps/powerpc/ldsodefs.h: Likewise.
66141         * sysdeps/s390/ldsodefs.h: Likewise.
66142         * sysdeps/sh/ldsodefs.h: Likewise.
66143         * sysdeps/sparc/ldsodefs.h: Likewise.
66144         * sysdeps/x86_64/ldsodefs.h: Likewise.
66145
66146 2012-07-25  Marek Polacek  <polacek@redhat.com>
66147
66148         [BZ #6808]
66149         * math/libm-test.inc (yn_test): Add another test.
66150         * sysdeps/ieee754/ldbl-128ibm/e_jnl.c (__ieee754_ynl): Set errno
66151         to ERANGE when the result is +-Inf.
66152         * sysdeps/ieee754/ldbl-96/e_jnl.c (__ieee754_ynl): Likewise.
66153         * sysdeps/ieee754/flt-32/e_jnf.c (__ieee754_ynf): Likewise.
66154         * sysdeps/ieee754/ldbl-128/e_jnl.c (__ieee754_ynl): Likewise.
66155         * sysdeps/ieee754/dbl-64/e_jn.c (__ieee754_yn): Likewise.
66156
66157 2012-07-24  Joseph Myers  <joseph@codesourcery.com>
66158
66159         * conform/data/time.h-data (NULL): Use macro-constant.  Require
66160         equal to 0.
66161         (CLOCKS_PER_SEC): Use macro instead of constant.  Specify type as
66162         clock_t.
66163         [ISO11] (TIME_UTC): Use macro-int-constant.  Require value > 0.
66164
66165 2012-07-23  Thomas Schwinge  <thomas@codesourcery.com>
66166
66167         * configure.in <sysdeps resolving>: Correct printing
66168         Implies_before.
66169         * configure: Regenerate.
66170
66171 2012-07-22  Thomas Schwinge  <thomas@codesourcery.com>
66172
66173         * math/w_ilogb.c: Include <limits.h>.
66174         * math/w_ilogbl.c: Likewise.
66175
66176 2012-07-20  Joseph Myers  <joseph@codesourcery.com>
66177
66178         * manual/lang.texi (__va_copy): Document primarily as ISO C99
66179         va_copy.  Document allowing for unavailable va_copy only as
66180         pre-C99 compatibility.
66181         * manual/string.texi (Copying and Concatenation): Use va_copy
66182         instead of __va_copy in concat example.
66183
66184 2012-07-20  Pino Toscano  <toscano.pino@tiscali.it>
66185
66186         * sysdeps/mach/hurd/sendto.c (create_address_port): New subroutine.
66187         (__sendto): Use create_address_port.  Initialize APORT and deallocate
66188         it if not null.
66189
66190         * sysdeps/mach/hurd/llistxattr.c: New file, copied from listxattr.c
66191         with O_NOLINK passed to __file_name_lookup.
66192
66193         * sysdeps/mach/hurd/lremovexattr.c: New file, copied from removexattr.c
66194         with O_NOLINK passed to __file_name_lookup.
66195
66196         * sysdeps/mach/hurd/getgroups.c: Return -1 and set EINVAL for
66197         negative N or less than NGIDS.
66198
66199         * sysdeps/mach/hurd/getlogin_r.c: Make LOGIN non-static and change its
66200         type to string_t.  Set ERANGE as errno and return it if NAME is not big
66201         enough.  Use memcpy instead of strncpy.
66202
66203 2012-07-20  Joseph Myers  <joseph@codesourcery.com>
66204
66205         * elf/Makefile (check-data): Remove.
66206         (localplt.data): New vpath directive.
66207         ($(objpfx)check-localplt.out): Use localplt.data from vpath
66208         instead of $(check-data).
66209         * scripts/data/localplt-generic.data: Move to ...
66210         * sysdeps/generic/localplt.data: ... here.
66211         * scripts/data/localplt-i386-linux-gnu.data: Move to ...
66212         * sysdeps/unix/sysv/linux/i386/nptl/localplt.data: ... here.
66213         * scripts/data/localplt-powerpc-linux-gnu.data: Move to ...
66214         * sysdeps/unix/sysv/linux/powerpc/powerpc32/fpu/nptl/localplt.data:
66215         ... here.
66216         * scripts/data/localplt-powerpc64-linux-gnu.data: Move to ...
66217         * sysdeps/unix/sysv/linux/powerpc/powerpc64/nptl/localplt.data:
66218         ... here.
66219         * scripts/data/localplt-s390-linux-gnu.data: Move to ...
66220         * sysdeps/unix/sysv/linux/s390/s390-32/nptl/localplt.data:
66221         ... here.
66222         * scripts/data/localplt-s390x-linux-gnu.data: Move to ...
66223         * sysdeps/unix/sysv/linux/s390/s390-64/nptl/localplt.data:
66224         ... here.
66225         * scripts/data/localplt-sparc-linux-gnu.data: Move to ...
66226         * sysdeps/unix/sysv/linux/sparc/sparc32/nptl/localplt.data:
66227         ... here.
66228         * scripts/data/localplt-sparc64-linux-gnu.data: Move to ...
66229         * sysdeps/unix/sysv/linux/sparc/sparc64/nptl/localplt.data:
66230         ... here.
66231
66232 2012-07-19 Adhemerval Zanella  <azanella@linux.vnet.ibm.com>
66233
66234         * sysdeps/powerpc/tls-macros.h: Split PowerPC definitions in
66235         PPC32 and PPC64 files.
66236         * sysdeps/powerpc/powerpc32/tls-macros.h: New file.
66237         * sysdeps/powerpc/powerpc64/tls-macros.h: Likewise.
66238
66239 2012-07-19  Andreas Krebbel  <Andreas.Krebbel@de.ibm.com>
66240
66241         * sysdeps/unix/sysv/linux/s390/s390-32/makecontext.c: Move
66242         __makecontext_ret to ...
66243         * sysdeps/unix/sysv/linux/s390/s390-32/__makecontext_ret.S:
66244         ... here and call exit if uc_link is NULL.  New file.
66245         * sysdeps/unix/sysv/linux/s390/s390-32/Makefile: Add
66246         __makecontext_ret.S.
66247         * sysdeps/unix/sysv/linux/s390/s390-64/makecontext.c: Move
66248         __makecontext_ret to ...
66249         * sysdeps/unix/sysv/linux/s390/s390-64/__makecontext_ret.S:
66250         ... here and call exit if uc_link is NULL.  New file.
66251         * sysdeps/unix/sysv/linux/s390/s390-64/Makefile: Add
66252         __makecontext_ret.S.
66253
66254 2012-07-19  Andreas Krebbel  <Andreas.Krebbel@de.ibm.com>
66255
66256         * elf/elf.h (R_390_IRELATIVE): New definition.
66257         * sysdeps/s390/s390-64/dl-machine.h (elf_machine_rela): Invoke the
66258         resolver function for IFUNC symbols.  Support R_390_IRELATIVE.
66259         (elf_machine_lazy_rel): Support R_390_IRELATIVE.
66260         * sysdeps/s390/s390-32/dl-machine.h (elf_machine_rela):
66261         (elf_machine_lazy_rel): Likewise.
66262         * sysdeps/s390/dl-irel.h: New file.
66263         * sysdeps/s390/s390-64/memcpy.S: New asm code.
66264         * sysdeps/s390/s390-64/memset.S: New asm code.
66265         * sysdeps/s390/s390-64/memcmp.S: New asm code.
66266         * sysdeps/s390/s390-64/multiarch/memset.S: New file.
66267         * sysdeps/s390/s390-64/multiarch/ifunc-resolve.c: New file.
66268         * sysdeps/s390/s390-64/multiarch/memcmp.S: New file.
66269         * sysdeps/s390/s390-64/multiarch/memcpy.S: New file.
66270         * sysdeps/s390/s390-64/multiarch/Makefile: New file.
66271         * sysdeps/s390/s390-32/multiarch/ifunc-resolve.c: New file.
66272         * sysdeps/s390/s390-32/multiarch/Makefile: New file.
66273         * sysdeps/s390/s390-32/multiarch/memcmp.S: New file.
66274         * sysdeps/s390/s390-32/multiarch/memcpy.S: New file.
66275         * sysdeps/s390/s390-32/multiarch/memset.S: New file.
66276         * sysdeps/s390/s390-32/memcpy.S: New asm code.
66277         * sysdeps/s390/s390-32/memset.S: New asm code.
66278         * sysdeps/s390/s390-32/memcmp.S: New asm code.
66279
66280 2012-07-17  Marek Polacek  <polacek@redhat.com>
66281
66282         [BZ #14349]
66283         * sysdeps/s390/s390-32/configure.in: Remove TLS check.
66284         * sysdeps/s390/s390-64/configure.in: Likewise.
66285         * sysdeps/sparc/configure.in: Likewise.
66286         * sysdeps/powerpc/powerpc32/configure.in: Likewise.
66287         * sysdeps/powerpc/powerpc64/configure.in: Likewise.
66288         * sysdeps/i386/configure.in: Likewise.
66289         * sysdeps/x86_64/configure.in: Likewise.
66290         * sysdeps/sh/configure.in: Likewise.
66291         * sysdeps/s390/s390-32/configure: Regenerated.
66292         * sysdeps/s390/s390-64/configure: Likewise.
66293         * sysdeps/x86_64/configure: Likewise.
66294         * sysdeps/sh/configure: Likewise.
66295         * sysdeps/powerpc/powerpc64/configure: Likewise.
66296         * sysdeps/powerpc/powerpc32/configure: Likewise.
66297         * sysdeps/sparc/configure: Likwise.
66298         * sysdeps/i386/configure: Likewise.
66299
66300         * elf/dl-open.c: Comment fixes.
66301
66302 2012-07-17  Joseph Myers  <joseph@codesourcery.com>
66303
66304         * Makefile [CXX] (check-data): Remove.
66305         [CXX] (c++-types.data): New vpath directive.
66306         [CXX] ($(objpfx)c++-types-check.out): Use c++-types.data from
66307         vpath.  Do not allow for C++ type data being missing.
66308         * scripts/data/c++-types-alpha-linux-gnu.data: Move to
66309         ports/sysdeps/unix/sysv/linux/alpha/nptl/c++-types.data.
66310         * scripts/data/c++-types-ia64-linux-gnu.data: Move to
66311         ports/sysdeps/unix/sysv/linux/ia64/nptl/c++-types.data.
66312         * scripts/data/c++-types-i386-linux-gnu.data: Move to ...
66313         * sysdeps/unix/sysv/linux/i386/nptl/c++-types.data: ... here.
66314         * scripts/data/c++-types-powerpc-linux-gnu.data: Move to ...
66315         * sysdeps/unix/sysv/linux/powerpc/powerpc32/fpu/nptl/c++-types.data:
66316         ... here.
66317         * scripts/data/c++-types-powerpc64-linux-gnu.data: Move to ...
66318         * sysdeps/unix/sysv/linux/powerpc/powerpc64/nptl/c++-types.data:
66319         ... here.
66320         * scripts/data/c++-types-s390-linux-gnu.data: Move to ...
66321         * sysdeps/unix/sysv/linux/s390/s390-32/nptl/c++-types.data:
66322         ... here.
66323         * scripts/data/c++-types-s390x-linux-gnu.data: Move to ...
66324         * sysdeps/unix/sysv/linux/s390/s390-64/nptl/c++-types.data:
66325         ... here.
66326         * scripts/data/c++-types-sparc-linux-gnu.data: Move to ...
66327         * sysdeps/unix/sysv/linux/sparc/sparc32/nptl/c++-types.data:
66328         ... here.
66329         * scripts/data/c++-types-sparc64-linux-gnu.data: Move to ...
66330         * sysdeps/unix/sysv/linux/sparc/sparc64/nptl/c++-types.data:
66331         ... here.
66332         * scripts/data/c++-types-x32-linux-gnu.data: Move to ...
66333         * sysdeps/unix/sysv/linux/x86_64/x32/nptl/c++-types.data:
66334         ... here.
66335         * scripts/data/c++-types-x86_64-linux-gnu.data: Move to ...
66336         * sysdeps/unix/sysv/linux/x86_64/64/nptl/c++-types.data: ... here.
66337
66338         * elf/tls-macros.h (TLS_LE): Move architecture-specific
66339         definitions to architecture-specific files.
66340         (TLS_IE): Likewise.
66341         (TLS_LD): Likewise.
66342         (TLS_GD): Likewise.
66343         * sysdeps/i386/tls-macros.h: New file.
66344         * sysdeps/powerpc/tls-macros.h: Likewise.
66345         * sysdeps/s390/s390-32/tls-macros.h: Likewise.
66346         * sysdeps/s390/s390-64/tls-macros.h: Likewise.
66347         * sysdeps/sh/tls-macros.h: Likewise.
66348         * sysdeps/sparc/sparc32/tls-macros.h: Likewise.
66349         * sysdeps/sparc/sparc64/tls-macros.h: Likewise.
66350         * sysdeps/x86_64/tls-macros.h: Likewise.
66351
66352 2012-07-17  Thomas Schwinge  <thomas@codesourcery.com>
66353
66354         * sysdeps/unix/sysv/linux/sh/makecontext.S (.Lexitcode): Preserve
66355         zero value for regular exit case.
66356
66357         * sysdeps/unix/sysv/linux/x86_64/__start_context.S
66358         (__start_context): Preserve zero value for regular exit case.
66359
66360 2012-07-17  Thomas Schwinge  <thomas@codesourcery.com>
66361             Andreas Krebbel  <Andreas.Krebbel@de.ibm.com>
66362
66363         * manual/setjmp.texi (setcontext): Clarify normal process
66364         termination when uc_link is the null pointer.
66365         * stdlib/tst-makecontext.c (cf): Exercise this: remove explicit
66366         exit call.
66367
66368 2012-07-16  Andreas Schwab  <schwab@linux-m68k.org>
66369
66370         * stdlib/bug-getcontext.c (do_test): Don't test FE_ALL_EXCEPT in
66371         preprocessor.  Test for each exception mask separately.
66372
66373 2012-07-16  Andreas Jaeger  <aj@suse.de>
66374
66375         * po/ru.po: Update from translation team.
66376
66377 2012-07-15  Joseph Myers  <joseph@codesourcery.com>
66378
66379         * conform/data/string.h-data (NULL): Use macro-constant.  Require
66380         equal to 0.
66381         [ISO || ISO99 || ISO11] (stddef.h): Do not allow header.
66382         (str*): Change to str[abcdefghijklmnopqrstuvwxyz]*.
66383         (wcs*): Change to wcs[abcdefghijklmnopqrstuvwxyz]*.
66384         (mem[abcdefghijklmnopqrstuvwxyz]*): Allow.
66385         [ISO || ISO99 || ISO11] (*_t): Do not allow.
66386
66387 2012-07-13  Andreas Jaeger  <aj@suse.de>
66388
66389         * po/fr.po: Update from translation team.
66390
66391 2012-07-12  Marek Polacek  <polacek@redhat.com>
66392
66393         [BZ #14173]
66394         * math/libm-test.inc (yn_test): Add test for BZ #14173.
66395         * sysdeps/ieee754/ldbl-96/e_jnl.c (__ieee754_ynl): Correct
66396         loop condition.
66397
66398 2012-07-12  Joseph Myers  <joseph@codesourcery.com>
66399
66400         [BZ #13717]
66401         * sysdeps/unix/sysv/linux/configure.in (arch_minimum_kernel):
66402         Change to 2.4.1 where previously 2.4.0.
66403         * sysdeps/unix/sysv/linux/configure: Regenerated.
66404         * sysdeps/unix/sysv/linux/kernel-features.h [!__sh__]
66405         (__ASSUME_ST_INO_64_BIT): Do not condition definition on kernel
66406         version.
66407         [__i386__ || __sparc__] (__ASSUME_FCNTL64): Likewise.
66408         (__ASSUME_AT_CLKTCK): Remove.
66409         (__ASSUME_AT_PAGESIZE): Likewise.
66410         (__ASSUME_AT_XID): Likewise.
66411         (__ASSUME_GETDENTS64_SYSCALL): Define unconditionally.
66412         [__i386__] (__ASSUME_VFORK_SYSCALL): Define unconditionally.
66413         * sysdeps/unix/sysv/linux/ldsodefs.h (HAVE_AUX_XID): Define
66414         unconditionally.
66415         (HAVE_AUX_PAGESIZE): Likewise.
66416         * sysdeps/unix/sysv/linux/prof-freq.c (__profile_frequency)
66417         [__ASSUME_AT_CLKTCK]: Make code unconditional.
66418         [!__ASSUME_AT_CLKTCK]: Remove conditional code.
66419
66420 2012-07-12  Jeroen van Bemmel  <jvb127@gmail.com>
66421
66422         [BZ #14307]
66423         * sysdeps/posix/getaddrinfo.c (gaih_inet): Increase the size of
66424         the temporary buffer used to invoke __gethostbyname2_r,
66425         __gethostbyaddr_r and gethostbyname4_r to make room for struct
66426         host_data / struct gaih_addrtuple.
66427         * resolv/nss_dns/dns-host.c (global scope): Move definition of
66428         implementation constants MAX_NR_ALIASES and MAX_NR_ADDRS to
66429         header file nss/nsswitch.h.
66430         * nss/nsswitch.h (global scope): Add definition of implementation
66431         constants MAX_NR_ALIASES and MAX_NR_ADDRS (moved from
66432         resolv/nss_dns/dns-host.c).
66433
66434 2012-07-11  Andreas Jaeger  <aj@suse.de>
66435
66436         * po/fr.po: Update from translation team.
66437
66438         * po/sv.po: Update from translation team
66439         * po/fr.po: Another update from translation team.
66440
66441 2012-07-11  Adhemerval Zanella  <azanella@linux.vnet.ibm.com>
66442
66443         * sysdeps/ieee754/ldbl-128ibm/s_ctanhl.c: Do not call sinh and cosh
66444         for subnormals or multiply small sinh result by itself.
66445         * sysdeps/ieee754/ldbl-128ibm/s_ctanl.c: Likewise.
66446         * sysdeps/powerpc/fpu/libm-test-ulps: Update.
66447
66448 2012-07-11  David S. Miller  <davem@davemloft.net>
66449
66450         * sysdeps/sparc/fpu/libm-test-ulps: Update.
66451
66452 2012-07-10  Andreas Schwab  <schwab@linux-m68k.org>
66453
66454         [BZ #14347]
66455         * misc/sys/syslog.h (LOG_MAKEPRI): Don't shift first argument.
66456         (INTERNAL_MARK): Shift it here.
66457
66458 2012-07-10  Marek Polacek  <polacek@redhat.com>
66459
66460         [BZ #14151]
66461         * configure.in (libc_cv_asm_global_directive): Remove test.  Replace
66462         libc_cv_asm_global_directive with .globl.
66463         * configure: Regenerated.
66464         * sysdeps/i386/configure.in: Replace libc_cv_asm_global_directive
66465         with .globl.
66466         * sysdeps/i386/configure: Regenerated.
66467         * sysdeps/x86_64/configure.in: Replace libc_cv_asm_global_directive
66468         with .globl.
66469         * sysdeps/x86_64/configure: Regenerated.
66470         * config.h.in: Do not undefine ASM_GLOBAL_DIRECTIVE.
66471         * include/libc-symbols.h: Replace ASM_GLOBAL_DIRECTIVE with .globl.
66472         * elf/tst-unique2mod2.c: Likewise.
66473         * elf/tst-unique2mod1.c: Likewise.
66474         * elf/tst-unique1mod2.c: Likewise.
66475         * elf/tst-unique1mod1.c: Likewise.
66476         * sysdeps/s390/s390-32/sysdep.h: Likewise.
66477         * sysdeps/s390/s390-32/s390-mcount.S: Likewise.
66478         * sysdeps/s390/s390-64/sysdep.h: Likewise.
66479         * sysdeps/s390/s390-64/s390x-mcount.S: Likewise.
66480         * sysdeps/mach/sysdep.h: Likewise.
66481         * sysdeps/i386/sysdep.h: Likewise.
66482         * sysdeps/i386/i386-mcount.S: Likewise.
66483         * sysdeps/x86_64/_mcount.S: Likewise.
66484         * sysdeps/x86_64/sysdep.h: Likewise.
66485         * sysdeps/sh/_mcount.S: Likewise.
66486         * sysdeps/sh/sysdep.h: Likewise.
66487         * sysdeps/powerpc/powerpc32/gprsave1.S: Likewise.
66488         * sysdeps/powerpc/powerpc32/fpu/fprrest.S: Likewise.
66489         * sysdeps/powerpc/powerpc32/fpu/fprsave.S: Likewise.
66490         * sysdeps/powerpc/powerpc32/sysdep.h: Likewise.
66491         * sysdeps/powerpc/powerpc32/gprrest1.S: Likewise.
66492         * sysdeps/powerpc/powerpc32/gprsave0.S: Likewise.
66493         * sysdeps/powerpc/powerpc32/gprrest0.S: Likewise.
66494         * locale/localeinfo.h: Likewise.
66495         (_NL_CURRENT_DEFINE_STRINGIFY): Delete macro.
66496         (_NL_CURRENT_DEFINE_STRINGIFY_1): Likewise.
66497
66498 2012-07-09  Roland McGrath  <roland@hack.frob.com>
66499
66500         [BZ #14336]
66501         * manual/charset.texi (Extended Char Intro): Word use fix, "operating
66502         system".
66503         * manual/message.texi (The Uniforum approach): Likewise.
66504         * manual/charset.texi (Extended Char Intro): Spelling fix, "affected".
66505         (glibc iconv Implementation): Likewise.
66506
66507 2012-07-09  Joseph Myers  <joseph@codesourcery.com>
66508
66509         [BZ #14337]
66510         * math/s_clog.c (__clog): Avoid scaling a value down where that
66511         could result in underflow.
66512         * math/s_clog10.c (__clog10): Likewise.
66513         * math/s_clog10f.c (__clog10f): Likewise.
66514         * math/s_clog10l.c (__clog10l): Likewise.
66515         * math/s_clogf.c (__clogf): Likewise.
66516         * math/s_clogl.c (__clogl): Likewise.
66517         * math/libm-test.inc (clog_test): Add more tests.
66518         (clog10_test): Likewise.
66519         * sysdeps/i386/fpu/libm-test-ulps: Update.
66520         * sysdeps/x86_64/fpu/libm-test-ulps: Likewise.
66521
66522 2012-07-06  Andreas Schwab  <schwab@linux-m68k.org>
66523
66524         [BZ #14283]
66525         * sysdeps/powerpc/fpu/k_rem_pio2f.c (__fp_kernel_rem_pio2f): Shift
66526         by 7 not 8 to examine high bit of fractional part.
66527
66528         [BZ #14042]
66529         * sysdeps/powerpc/powerpc32/ppc-mcount.S [SHARED]: Don't use PLT
66530         for call to __mcount_internal.
66531         * sysdeps/powerpc/powerpc32/Makefile (sysdep_routines)
66532         (shared-only-routines) [$(subdir) = gmon]: Add compat-ppc-mcount.
66533         * sysdeps/powerpc/powerpc32/compat-ppc-mcount.S: New file.
66534
66535 2012-07-06  Joseph Myers  <joseph@codesourcery.com>
66536
66537         [BZ #14154]
66538         * sysdeps/ieee754/flt-32/k_tanf.c (__kernel_tanf): Use linear
66539         approximation for values within 0x1p-13f of an odd multiple of
66540         pi/4.
66541         * math/libm-test.inc (tan_test): Do not allow spurious underflow
66542         exception.  Add more tests.
66543         * sysdeps/i386/fpu/libm-test-ulps: Update.
66544
66545         [BZ #6778]
66546         * sysdeps/i386/fpu/s_expm1.S (__expm1): Check for large negative
66547         inputs and return -1 for them.  Do not check for +Inf in case not
66548         reachable for +Inf.
66549         * sysdeps/i386/fpu/s_expm1f.S (__expm1f): Likewise.
66550         * sysdeps/i386/fpu/e_expl.S [USE_AS_EXPM1L] (csat): Do not define.
66551         (IEEE754_EXPL) [USE_AS_EXPM1L]: Check for large negative inputs
66552         and return -1 for them.  Do not check for +Inf in case not
66553         reachable for +Inf.
66554         * sysdeps/x86_64/fpu/e_expl.S [USE_AS_EXPM1L] (csat): Do not
66555         define.
66556         (IEEE754_EXPL) [USE_AS_EXPM1L]: Check for large negative inputs
66557         and return -1 for them.  Do not check for +Inf in case not
66558         reachable for +Inf.
66559         * math/libm-test.inc (expm1_test): Add more tests.  Do not allow
66560         spurious underflow.
66561         * sysdeps/i386/fpu/libm-test-ulps: Update.
66562         * sysdeps/x86_64/fpu/libm-test-ulps: Likewise.
66563
66564 2012-07-06  Mike Frysinger  <vapier@gentoo.org>
66565
66566         * sunrpc/rpc_clntout.c: Change <rpc/types.h> to "rpc/types.h".
66567
66568 2012-07-05  Joseph Myers  <joseph@codesourcery.com>
66569
66570         [BZ #14157]
66571         [BZ #14331]
66572         * math/s_csqrt.c (__csqrt): Avoid multiplying by 0.5 where this
66573         could result in spurious underflow.  Scale down values above
66574         DBL_MAX / 4.0 instead of DBL_MAX / 2.0.
66575         * math/s_csqrtf.c (__csqrtf): Likewise.
66576         * math/s_csqrtl.c (__csqrtl): Likewise.
66577         * math/libm-test.inc (csqrt_test): Add more tests.  Do not allow
66578         spurious underflow.
66579         * sysdeps/i386/fpu/libm-test-ulps: Update.
66580         * sysdeps/x86_64/fpu/libm-test-ulps: Likewise.
66581
66582 2012-07-04  Andreas Schwab  <schwab@linux-m68k.org>
66583
66584         * catgets/Makefile ($(objpfx)de.msg): Use xopen-msg.awk instead of
66585         xopen-msg.sed.
66586         * catgets/xopen-msg.awk: New file.
66587         * catgets/xopen-msg.sed: Removed.
66588
66589         * intl/Makefile ($(objpfx)msgs.h): Use po2test.awk instead of
66590         po2text.sed.
66591         * intl/po2test.awk: New file.
66592         * intl/po2test.sed: Removed.
66593
66594 2012-07-04  Joseph Myers  <joseph@codesourcery.com>
66595
66596         [BZ #14328]
66597         * math/s_ctan.c (__ctan): Do not call sinh and cosh for subnormals
66598         or multiply small sinh result by itself.
66599         * math/s_ctanf.c (__ctanf): Likewise.
66600         * math/s_ctanh.c (__ctanh): Likewise.
66601         * math/s_ctanhf.c (__ctanhf): Likewise.
66602         * math/s_ctanhl.c (__ctanhl): Likewise.
66603         * math/s_ctanl.c (__ctanl): Likewise.
66604         * math/libm-test.inc (ctan_test_tonearest): New function.
66605         (ctan_test_towardzero): Likewise.
66606         (ctan_test_downward): Likewise.
66607         (ctan_test_upward): Likewise.
66608         (ctanh_test_tonearest): Likewise.
66609         (ctanh_test_towardzero): Likewise.
66610         (ctanh_test_downward): Likewise.
66611         (ctanh_test_upward): Likewise.
66612         (main): Call these new functions.
66613         * sysdeps/i386/fpu/libm-test-ulps: Update.
66614         * sysdeps/x86_64/fpu/libm-test-ulps: Likewise.
66615
66616 2012-07-03  Mike Frysinger  <vapier@gentoo.org>
66617
66618         * .gitignore: Delete /ports entry.
66619
66620 2012-07-03  Andreas Jaeger  <aj@suse.de>
66621
66622         * po/bg.po: Update from translation team.
66623         * po/cs.po: Likewise.
66624         * po/de.po: Likewise.
66625         * po/hr.po: Likewise.
66626         * po/nl.pl: Likewise.
66627         * po/pl.po: Likewise.
66628         * po/vi.po: Likewise.
66629
66630 2012-07-03  Joseph Myers  <joseph@codesourcery.com>
66631
66632         * Makeconfig [!+link] (+link-before-libc): New variable.
66633         [!+link] (+link-after-libc): Likewise.
66634         [!+link] (+link-tests): Likewise.
66635         [!+link] (+link): Define in terms of $(+link-before-libc) and
66636         $(+link-after-libc).
66637         [!+link-static] (+link-static-before-libc): New variable.
66638         [!+link-static] (+link-static-after-libc): Likewise.
66639         [!+link-static] (+link-static-tests): Likewise.
66640         [!+link-static] (+link-static): Define in terms of
66641         $(+link-static-before-libc) and $(+link-static-after-libc).
66642         [build-shared] (link-libc-before-gnulib): New variable.
66643         [build-shared] (link-libc-tests): Likewise.
66644         [build-shared] (link-libc): Define in terms of
66645         $(link-libc-before-gnulib).
66646         [!build-shared] (link-libc-tests): New variable.
66647         (link-libc-static-tests): New variable.
66648         [!gnulib] (gnulib-arch): New variable.
66649         [!gnulib] (gnulib-tests): Likewise.
66650         [!gnulib] (static-gnulib-arch): Likewise.
66651         [!gnulib] (static-gnulib-tests): Likewise.
66652         [!gnulib] (gnulib): Use $(gnulib-arch).  Do not use $(libgcc_eh).
66653         Define with "=" instead of ":=".
66654         [!gnulib] (static-gnulib): Use $(static-gnulib-arch).  Do not use
66655         -lgcc_eh $(libunwind).  Define with "=" instead of ":=".
66656         * Rules (binaries-all-notests): New variable.
66657         (binaries-all-tests): Likewise.
66658         (binaries-static-notests): Likewise.
66659         (binaries-static-tests): Likewise.
66660         (binaries-all): Define using $(binaries-all-notests) and
66661         $(binaries-all-tests).
66662         (binaries-static): Define using $(binaries-static-notests) and
66663         $(binaries-static-tests).
66664         (binaries-shared-tests): New variable.
66665         (binaries-shared-notests): Likewise.
66666         (binaries-shared): Remove variable.
66667         ($(addprefix $(objpfx),$(binaries-shared-notests))): New rule.
66668         ($(addprefix $(objpfx),$(binaries-shared-tests))): Likewise.
66669         ($(addprefix $(objpfx),$(binaries-shared))): Remove rule.
66670         ($(addprefix $(objpfx),$(binaries-static-notests))): New rule.
66671         ($(addprefix $(objpfx),$(binaries-static-tests))): Likewise.
66672         ($(addprefix $(objpfx),$(binaries-static))): Remove rule.
66673         * elf/Makefile (sln-modules): New variable.
66674         (extra-objs): Add $(sln-modules:=.o).
66675         (ldconfig-modules): Add static-stubs.
66676         ($(objpfx)sln): Depend on $(sln-modules:%=$(objpfx)%.o).
66677         * elf/static-stubs.c: New file.
66678
66679         [BZ #14283]
66680         * sysdeps/ieee754/flt-32/k_rem_pio2f.c (__kernel_rem_pio2f): Shift
66681         by 7 not 8 to examine high bit of fractional part.  Use volatile
66682         variables when splitting into final array of floats if
66683         __FLT_EVAL_METHOD__ != 0.
66684         * math/libm-test.inc (cos_test): Add another test.
66685         (sin_test): Likewise.
66686         * sysdeps/i386/fpu/libm-test-ulps: Update.
66687
66688         [BZ #14273]
66689         * math/libm-test.inc (cosh_test): Add more tests.
66690
66691         * version.h (RELEASE): Set to "development".
66692         (VERSION): Set to "2.16.90".
66693
66694 2012-06-30  Carlos O'Donell  <carlos_odonell@mentor.com>
66695
66696         * NEWS: Update copyright. Remove last-updated date.
66697         Mention math library bug fixes and timezone data changes.
66698         * README: Mention GNU/Hurd, x32, and HPPA support status.
66699
66700 2012-06-28  Thomas Schwinge  <thomas@codesourcery.com>
66701
66702         * manual/contrib.texi (Contributors): Sort alphabetically by last name.
66703
66704 2012-06-27  Andreas Jaeger  <aj@suse.de>
66705
66706         * manual/contrib.texi (Contributors): Add Samuel Thibault.
66707
66708 2012-06-25  Andreas Jaeger  <aj@suse.de>
66709
66710         * sysdeps/s390/fpu/libm-test-ulps: Update.
66711
66712 2012-06-23  Andreas Schwab  <schwab@linux-m68k.org>
66713             Thomas Schwinge  <thomas@codesourcery.com>
66714
66715         * sysdeps/unix/sysv/linux/sh/syscalls.list: Add fanotify_mark.
66716         * sysdeps/unix/sysv/linux/sh/Versions (GLIBC_2.16): Add fanotify_mark.
66717         * sysdeps/unix/sysv/linux/sh/nptl/libc.abilist (GLIBC_2.16): Add
66718         fanotify_mark.
66719
66720 2012-06-23  Thomas Schwinge  <thomas@codesourcery.com>
66721
66722         * sysdeps/mach/start.c: Remove file.
66723         * sysdeps/mach/hurd/i386/static-start.S: Fix start.S include.
66724         * sysdeps/i386/init-first.c: Fix comment regarding start.S.
66725         * sysdeps/sh/init-first.c: Likewise.
66726
66727         * sysdeps/sh/____longjmp_chk.S (CALL_FAIL): Preserve r12 and pr
66728         registers for frame unwinding purposes, add CFI directives.
66729         * sysdeps/unix/sysv/linux/sh/____longjmp_chk.S (CALL_FAIL): Likewise.
66730         * sysdeps/unix/sysv/linux/sh/makecontext.S (.Lexitcode): Likewise.
66731         * sysdeps/unix/sysv/linux/sh/sysdep.h (SYSCALL_ERROR_HANDLER):
66732         Likewise.
66733
66734         * sysdeps/sh/____longjmp_chk.S (CALL_FAIL): Don't plan for the call to
66735         __fortify_fail returning.
66736         * sysdeps/unix/sysv/linux/sh/____longjmp_chk.S (CALL_FAIL): Likewise.
66737
66738         * sysdeps/unix/sysv/linux/sh/____longjmp_chk.S: New file, based on
66739         sysdeps/sh/____longjmp_chk.S.
66740         * sysdeps/unix/sysv/linux/sh/sigaltstack-offsets.sym: New file, based
66741         on sysdeps/unix/sysv/linux/x86_64/sigaltstack-offsets.sym.
66742         * sysdeps/unix/sysv/linux/sh/Makefile [subdir=misc]
66743         (gen-as-const-headers): Append sigaltstack-offsets.sym.
66744
66745         * sysdeps/sh/abort-instr.h: New file.
66746         * sysdeps/unix/sysv/linux/sh/makecontext.S (.Lexitcode): Terminate the
66747         process in case exit returns.
66748
66749         * sysdeps/unix/sysv/linux/sh/makecontext.S (.Lexitcode): Always
66750         initialize the GOT register before use.
66751
66752         * sysdeps/unix/sysv/linux/sh/makecontext.S (__makecontext): Fix
66753         calculation of ARGC > 4.
66754
66755         * sysdeps/unix/sysv/linux/sh/makecontext.S: Add comments and give more
66756         meaningful names to some local labels.
66757
66758 2012-06-22  Nobuhiro Iwamatsu  <iwamatsu@nigauri.org>
66759             Kaz Kojima  <kkojima@rr.iij4u.or.jp>
66760
66761         * sysdeps/unix/sysv/linux/sh/bits/atomic.h
66762         (__arch_compare_and_exchange_val_8_acq): Remove explicit nop.
66763         (__arch_compare_and_exchange_val_16_acq): Likewise.
66764         (__arch_compare_and_exchange_val_32_acq): Likewise.
66765         (atomic_exchange_and_add): Fix gUSA sequence.
66766         (atomic_add): Likewise.
66767         (atomic_add_negative): Likewise.
66768         (atomic_add_zero): Likewise.
66769         (atomic_bit_test_set): Likewise.
66770
66771 2012-06-22  Andreas Schwab  <schwab@redhat.com>
66772
66773         [BZ #13579]
66774         * include/link.h (struct link_map): Add l_free_initfini.
66775         * elf/dl-deps.c (_dl_map_object_deps): Set it when assigning
66776         l_initfini.
66777         * elf/dl-close.c (_dl_close_worker): Don't free l_initfini.
66778         * elf/rtld.c (dl_main): Clear it on all objects loaded on startup.
66779         * elf/dl-libc.c (free_mem): Free l_initfini if l_free_initfini is
66780         set.
66781
66782 2012-06-22  Carlos O'Donell  <carlos_odonell@mentor.com>
66783
66784         * configure.in: Use AC_LANG_SOURCE.
66785         * configure: Regenerate.
66786
66787 2012-06-22  Roland McGrath  <roland@hack.frob.com>
66788
66789         * configure.in (libc_cv_localstatedir): New substituted variable.
66790         * configure: Regenerated.
66791         * config.make.in (localstatedir): New variable, substituted from
66792         libc_cv_localstatedir.
66793         * Makeconfig (vardbdir): Use $(localstatedir) in place of /var.
66794         * sysdeps/gnu/configure.in (libc_cv_localstatedir): Change
66795         ${prefix}/var to /var when we change ${prefix}/etc to /etc.
66796         * sysdeps/gnu/configure: Regenerated.
66797
66798 2012-06-21  Jeff Law  <law@redhat.com>
66799
66800         [BZ #14277]
66801         * intl/dcigettext.c (_nl_find_msg): Avoid use after potential
66802         free.  Simplify list management for _LIBC case.
66803
66804 2012-06-21  Joseph Myers  <joseph@codesourcery.com>
66805
66806         [BZ #14273]
66807         * sysdeps/ieee754/dbl-64/wordsize-64/e_cosh.c (__ieee754_cosh):
66808         Clear sign bit of 64-bit integer value before comparing against
66809         overflow value.
66810
66811         * sysdeps/mach/configure: Regenerated.
66812
66813 2012-06-21  H.J. Lu  <hongjiu.lu@intel.com>
66814
66815         [BZ #14278]
66816         * sysdeps/i386/sysdep.h (SYSCALL_PIC_SETUP): Fix a typo.
66817
66818 2012-06-21  Jeff Law  <law@redhat.com>
66819
66820         [BZ #13882]
66821         * elf/dl-deps.c (_dl_map_object_deps): Fix cycle detection.  Use
66822         uint16_t for elements in the "seen" array to avoid char overflows.
66823         * elf/dl-fini.c (_dl_sort_fini): Likewise.
66824         * elf/dl-open.c (dl_open_worker): Likewise.
66825
66826 2012-06-21  Carlos O'Donell  <carlos_odonell@mentor.com>
66827
66828         * scripts/list-sources.sh: Scan PORTS for translations.
66829         * po/libc.pot: Regenerated.
66830
66831 2012-06-21  Andreas Jaeger  <aj@suse.de>
66832
66833         [BZ #12194]
66834         * sysdeps/s390/bits/byteswap-16.h (__bswap_16): Avoid -Wconversion
66835         warning.
66836         * sysdeps/s390/bits/byteswap.h (__bswap_constant_16): Likewise.
66837         * bits/byteswap-16.h (__bswap_16): Likewise.
66838         * bits/byteswap.h (__bswap_constant_16): Likewise.
66839
66840 2012-06-18  H.J. Lu  <hongjiu.lu@intel.com>
66841
66842         [BZ #14117]
66843         * sysdeps/i386/fpu_control.h: Removed.
66844         * sysdeps/x86_64/fpu_control.h: Moved to ...
66845         * sysdeps/x86/fpu_control.h: Here.
66846
66847         * sysdeps/x86_64/fpu_control.h (_FPU_GETCW): Add __volatile__.
66848         (_FPU_SETCW): Likewise.
66849
66850 2012-06-15  H.J. Lu  <hongjiu.lu@intel.com>
66851
66852         [BZ #14117]
66853         * sysdeps/i386/fpu/bits/mathinline.h: Renamed to ...
66854         * sysdeps/x86/fpu/bits/mathinline.h: This.
66855         * sysdeps/x86_64/fpu/bits/mathinline.h: Removed.
66856
66857         [BZ #14050]
66858         [BZ #14117]
66859         * sysdeps/i386/fpu/bits/mathinline.h: Disable x87 inline
66860         functions if __x86_64__ is defined.
66861
66862 2012-06-15  Chung-Lin Tang  <cltang@codesourcery.com>
66863
66864         * string/endian.h: Add !__ASSEMBLER__ condition for including
66865         conversion interfaces.
66866
66867 2012-06-15  Joseph Myers  <joseph@codesourcery.com>
66868
66869         [BZ #14241]
66870         * sysdeps/ieee754/dbl-64/e_pow.c (__ieee754_pow): Use 0.0 instead
66871         of ABS(x) in calculating zero to negative powers other than odd
66872         integers.
66873         * math/libm-test.inc (pow_test): Add more tests.
66874
66875 2012-06-15  Andreas Jaeger  <aj@suse.de>
66876
66877         * manual/contrib.texi (Contributors): Update entry of Liubov
66878         Dmitrieva and add entries for Will Schmidt and Tulio Magno Quites
66879         Machado Filho.
66880
66881 2012-06-15  Cyril Hrubis  <metan@ucw.cz>
66882
66883         * string/string.h: Add __wur to GNU version of strerror_r.
66884
66885 2012-06-14  H.J. Lu  <hongjiu.lu@intel.com>
66886
66887         [BZ #14229]
66888         * string/Makefile (tests): Add tst-strtok_r.
66889         * string/tst-strtok_r.c: New file.
66890         * sysdeps/x86_64/strtok.S: Use LP_SIZE on save_ptr and use
66891         RAX_LP/RDX_LP on SAVE_PTR.
66892
66893 2012-06-14  Roland McGrath  <roland@hack.frob.com>
66894
66895         * manual/Makefile ($(objpfx)texis): Do $(make-target-directory).
66896
66897 2012-06-14  Joseph Myers  <joseph@codesourcery.com>
66898
66899         * libm_test.inc (csqrt_test): Allow more spurious underflow
66900         exceptions.
66901         (j0_test): Likewise.
66902         (j1_test): Likewise.
66903         (y0_test): Likewise.
66904         (y1_test): Likewise.
66905
66906 2012-06-13  Carlos O'Donell  <carlos_odonell@mentor.com>
66907
66908         * po/Makefile (libc.pot): Use UTF-8 charset.
66909
66910 2012-06-13  Paul Pluzhnikov  <ppluzhnikov@google.com>
66911
66912         [BZ #14210]
66913         Suppress sign-conversion warning from FD_SET.
66914         See <http://sourceware.org/ml/libc-alpha/2012-05/msg01794.html>.
66915         * debug/fdelt_chk.c (__fdelt_chk): Accept and return long int,
66916         not unsigned long int.
66917         * misc/bits/select2.h (__fdelt_chk, __fdelt_warn, __FD_ELT): Likewise.
66918
66919 2012-06-12  H.J. Lu  <hongjiu.lu@intel.com>
66920
66921         [BZ #14050]
66922         [BZ #14117]
66923         * sysdeps/i386/fpu/bits/mathinline.h (__MATH_INLINE): Check
66924         __extern_always_inline instead of __extern_inline.
66925         (__signbitf): Support __SSE2_MATH__ and C++ namespace.
66926         (__signbit): Likewise.
66927         (__signbitl): Support C++ namespace.
66928         (lrintf): New inline function.
66929         (lrint): Likewise.
66930         (llrintf): Likewise.
66931         (llrint): Likewise.
66932         (fmaxf): Likewise.
66933         (fmax): Likewise.
66934         (fminf): Likewise.
66935         (fmin): Likewise.
66936         (rint): Likewise.
66937         (rintf): Likewise.
66938         (ceil): Likewise.
66939         (ceilf): Likewise.
66940         (floor): Likewise.
66941         (floorf): Likewise.
66942         (nearbyint): Likewise.
66943         (nearbyintf): Likewise.
66944
66945 2012-06-12  Thomas Schwinge  <thomas@codesourcery.com>
66946
66947         * sysdeps/unix/Makefile ($(objpfx)stub-syscalls.c): Fix case for
66948         non-default versions.
66949
66950 2012-06-11  Roland McGrath  <roland@hack.frob.com>
66951
66952         [BZ #14218]
66953         * manual/argp.texi (Argp): Reword argp_parse description slightly.
66954
66955 2012-06-09  Thomas Schwinge  <thomas@codesourcery.com>
66956
66957         * sysdeps/sh/sh4/fpu/bits/fenv.h (__FE_UNDEFINED): Define.
66958         (FE_UPWARD, FE_DOWNWARD): Don't define.
66959         * sysdeps/sh/sh4/fpu/fegetround.c (fegetround): Adapt to that.
66960         * sysdeps/sh/sh4/fpu/fesetround.c (fesetround): Likewise.
66961
66962         * sysdeps/sh/sh4/fpu/fegetenv.c (fegetenv): Do not re-write fpscr after
66963         reading it.
66964         * sysdeps/sh/sh4/fpu/fegetexcept.c (fegetexcept): Likewise.
66965         * sysdeps/sh/sh4/fpu/ftestexcept.c (fetestexcept): Likewise.
66966
66967 2012-06-09  Kaz Kojima  <kkojima@rr.iij4u.or.jp>
66968
66969         * sysdeps/unix/sysv/linux/sh/nptl/ld.abilist: New file.
66970         * sysdeps/unix/sysv/linux/sh/nptl/libc.abilist: Refreshed.
66971         * sysdeps/unix/sysv/linux/sh/nptl/libm.abilist: Refreshed.
66972         * sysdeps/unix/sysv/linux/sh/nptl/librt.abilist: Refreshed.
66973
66974 2012-06-06  H.J. Lu  <hongjiu.lu@intel.com>
66975
66976         [BZ #14117]
66977         * sysdeps/i386/fpu/bits/fenv.h: Removed.
66978         * sysdeps/i386/fpu/Implies: New file.
66979         * sysdeps/x86_64/fpu/Implies: Likewise.
66980         * sysdeps/x86_64/fpu/bits/fenv.h: Renamed to ...
66981         * sysdeps/x86/fpu/bits/fenv.h: This.
66982
66983         * sysdeps/x86_64/fpu/bits/fenv.h (feraiseexcept): Check
66984         __SSE_MATH__.
66985
66986 2012-06-06  Siddhesh Poyarekar  <siddhesh@redhat.com>
66987
66988         [BZ #14134]
66989         * iconvdata/ibm930.c (BODY) [FROM_LOOP]: Check for invalid
66990         character 0xffff that matches the last element of the
66991         conversion table.
66992
66993 2012-06-05  Adhemerval Zanella  <azanella@linux.vnet.ibm.com>
66994
66995         * sysdeps/ieee754/ldbl-128ibm/e_fmodl.c: Fix for wrong ldbl128-ibm
66996         fmodl commit.
66997
66998 2012-06-05  Adhemerval Zanella  <azanella@linux.vnet.ibm.com>
66999
67000         * sysdeps/ieee754/ldbl-128ibm/s_erfl.c: Fix spurious underflow for
67001         values higher than 25.6283.
67002
67003 2012-06-04  Adhemerval Zanella  <azanella@linux.vnet.ibm.com>
67004
67005         * sysdeps/ieee754/ldbl-128ibm/e_fmodl.c (__ieee754_fmodl): Fix
67006         subnormal exponent extraction and add some __builtin_expect.
67007         * sysdeps/ieee754/ldbl-128ibm/math_ldbl.h (ldbl_extract_mantissa):
67008         Fix for subnormal mantissa calculation.
67009
67010 2012-06-04  Mike Frysinger  <vapier@gentoo.org>
67011
67012         * sysdeps/unix/sysv/linux/tst-getcpu.c (do_test): Call perror when
67013         cpu2 is -1 and errno is not ENOSYS.
67014
67015 2012-06-04  H.J. Lu  <hongjiu.lu@intel.com>
67016
67017         [BZ #14117]
67018         * sysdeps/i386/i486/bits/string.h: Renamed to ...
67019         * sysdeps/x86/bits/string.h: This.
67020         * sysdeps/x86_64/bits/string.h: Removed.
67021
67022         * sysdeps/i386/i486/bits/string.h: Define inline functions only
67023         if not compiling for x86-64, but compiling for >= i486.
67024
67025         * sysdeps/unix/sysv/linux/x86_64/bits/sigcontext.h: Renamed to ...
67026         * sysdeps/unix/sysv/linux/x86/bits/sigcontext.h: This.
67027
67028         * sysdeps/unix/sysv/linux/x86_64/bits/sigcontext.h (FP_XSTATE_MAGIC1):
67029         New macro from Linux kernel 3.4.0.
67030         (FP_XSTATE_MAGIC2): Likewise.
67031         (FP_XSTATE_MAGIC2_SIZE): Likewise.
67032         (X86_FXSR_MAGIC): New macro from Linux i386 kernel.
67033         (struct _fpx_sw_bytes): New struct.
67034         (struct _xsave_hdr): Likewise.
67035         (struct _ymmh_state): Likewise.
67036         (struct _xstate): Likewise.
67037
67038         * sysdeps/unix/sysv/linux/i386/sys/debugreg.h: Removed.
67039         * sysdeps/unix/sysv/linux/i386/sys/reg.h: Likewise.
67040         * sysdeps/unix/sysv/linux/x86_64/sys/debugreg.h: Renamed to ...
67041         * sysdeps/unix/sysv/linux/x86/sys/debugreg.h: This.
67042         * sysdeps/unix/sysv/linux/x86_64/sys/reg.h: Renamed to ...
67043         * sysdeps/unix/sysv/linux/x86/sys/reg.h: This.
67044
67045         * sysdeps/unix/sysv/linux/i386/sys/io.h: Removed.
67046         * sysdeps/unix/sysv/linux/x86_64/sys/io.h: Renamed to ...
67047         * sysdeps/unix/sysv/linux/x86/sys/io.h: This.
67048         * sysdeps/unix/sysv/linux/i386/sys/perm.h: Removed.
67049         * sysdeps/unix/sysv/linux/x86_64/sys/perm.h: Renamed to ...
67050         * sysdeps/unix/sysv/linux/x86/sys/perm.h: This.
67051
67052 2012-06-04  Tulio Magno Quites Machado Filho  <tuliom@linux.vnet.ibm.com>
67053
67054         [BZ #13743]
67055         * sysdeps/powerpc/sys/platform/ppc.h: New file for PowerPC features.
67056         * sysdeps/powerpc/Makefile (tests): Add test-gettimebase.
67057         (sysdep_headers): Include sys/platform/ppc.h.
67058         * sysdeps/powerpc/test-gettimebase.c: Test for
67059         __ppc_get_timebase() to catch future ISA opcode/insn changes.
67060         * manual/Makefile (appendices): Include platform.texi.
67061         * manual/contrib.texi (Contributors): Update @node pointers.
67062         * manual/maint.texi (Maintenance): Likewise.
67063         (Platform): New node.
67064         * manual/platform.texi: New file.  Document the new features.
67065
67066 2012-06-04  Siddhesh Poyarekar  <siddhesh@redhat.com>
67067             Jakub Jelinek  <jakub@redhat.com>
67068
67069         [BZ #14188]
67070         * misc/sys/cdefs.h (__glibc_unlikely): New macro to wrap cases
67071         where __builtin_expect is unavailable.
67072
67073 2012-06-03  David S. Miller  <davem@davemloft.net>
67074
67075         * stdlib/longlong.h: Updated from GCC.
67076
67077 2012-06-02  Andreas Schwab  <schwab@linux-m68k.org>
67078
67079         [BZ #14042]
67080         * sysdeps/powerpc/powerpc32/mcount.c: New file.
67081         * sysdeps/powerpc/powerpc32/Versions (GLIBC_2.16): Add
67082         __mcount_internal.
67083         * sysdeps/unix/sysv/linux/powerpc/powerpc32/fpu/nptl/libc.abilist
67084         (GLIBC_2.16): Likewise.
67085
67086 2012-06-01  H.J. Lu  <hongjiu.lu@intel.com>
67087
67088         * sysdeps/unix/sysv/linux/x86_64/sys/io.h (outsw): Fix a typo.
67089
67090 2012-06-01  Joseph Myers  <joseph@codesourcery.com>
67091
67092         * sysdeps/unix/sysv/linux/powerpc/powerpc32/Makefile
67093         (default-abi): New variable.
67094         * sysdeps/unix/sysv/linux/powerpc/powerpc64/Makefile: New file.
67095         * sysdeps/unix/sysv/linux/s390/s390-32/Makefile (default-abi): New
67096         variable.
67097         * sysdeps/unix/sysv/linux/s390/s390-64/Makefile (default-abi):
67098         Likewise.
67099         * sysdeps/unix/sysv/linux/sparc/sparc32/Makefile (default-abi):
67100         Likewise.
67101         * sysdeps/unix/sysv/linux/sparc/sparc64/Makefile (default-abi):
67102         Likewise.
67103
67104         * Makeconfig [abi-variants && !default-abi] (default-abi): Remove
67105         definition.  Document in comment.
67106
67107 2012-06-01  David S. Miller  <davem@davemloft.net>
67108
67109         * stdlib/longlong.h: Updated from GCC.
67110
67111 2012-06-01  H.J. Lu  <hongjiu.lu@intel.com>
67112
67113         [BZ #14117]
67114         * sysdeps/unix/sysv/linux/i386/Makefile (sysdep_headers):
67115         Don't add sys/elf.h sys/perm.h sys/reg.h sys/vm86.h
67116         sys/debugreg.h sys/io.h here.
67117         * sysdeps/unix/sysv/linux/x86/Makefile (sysdep_headers): Add
67118         sys/elf.h sys/perm.h sys/reg.h sys/vm86.h sys/debugreg.h
67119         sys/io.h.
67120         * sysdeps/unix/sysv/linux/x86_64/Makefile (sysdep_headers):
67121         Don't add sys/perm.h sys/reg.h sys/debugreg.h sys/io.h here.
67122         * sysdeps/unix/sysv/linux/i386/sys/elf.h: Renamed to ...
67123         * sysdeps/unix/sysv/linux/x86/sys/elf.h: This.
67124         * sysdeps/unix/sysv/linux/i386/sys/vm86.h: Renamed to ...
67125         * sysdeps/unix/sysv/linux/x86/sys/vm86.h: This.
67126
67127         * sysdeps/unix/sysv/linux/x86_64/sys/debugreg.h (DR_LEN_8):
67128         Define only if __x86_64__ is defined.
67129
67130 2012-06-01  Joseph Myers  <joseph@codesourcery.com>
67131
67132         [BZ #14048]
67133         * sysdeps/ieee754/dbl-64/wordsize-64/e_fmod.c (__ieee754_fmod):
67134         Use int64_t for variable i.
67135         * math/libm-test.inc (fmod_test): Add more tests.
67136
67137         * sysdeps/ieee754/dbl-64/s_fmaf.c (__fmaf): Ensure temp + (double)
67138         z computation is not scheduled after fetestexcept.
67139         * sysdeps/ieee754/ldbl-128/s_fmal.c: Include <math_private.h>.
67140         Use math_force_eval instead of asm to ensure calculation scheduled
67141         before exception test.
67142         * sysdeps/ieee754/ldbl-96/s_fmal.c: Include <math_private.h>.
67143         Ensure a1 + u.d computation is not scheduled after fetestexcept.
67144
67145 2012-06-01  Aurelien Jarno  <aurelien@aurel32.net>
67146
67147         * sysdeps/ieee754/dbl-64/s_fma.c (__fma): Ensure a1 + u.d
67148         computation is not scheduled after fetestexcept.
67149
67150 2012-06-01  H.J. Lu  <hongjiu.lu@intel.com>
67151
67152         [BZ #14117]
67153         * sysdeps/unix/sysv/linux/i386/bits/wchar.h: Renamed to ...
67154         * sysdeps/unix/sysv/linux/x86/bits/wchar.h: This.
67155
67156 2012-06-01  Adhemerval Zanella  <azanella@linux.vnet.ibm.com>
67157
67158         * sysdeps/powerpc/fpu/k_cosf.c: Fix underflow generation.
67159         * sysdeps/powerpc/fpu/k_sinf.c: Likewise.
67160
67161 2012-05-31  H.J. Lu  <hongjiu.lu@intel.com>
67162
67163         [BZ #14117]
67164         * sysdeps/unix/sysv/linux/i386/bits/wchar.h: Include
67165         <bits/wordsize.h>.
67166         (__WCHAR_MIN): Support __WORDSIZE == 64.
67167         (__WCHAR_MAX): Likewise.
67168
67169         * sysdeps/unix/sysv/linux/x86_64/bits/typesizes.h: Renamed to ...
67170         * sysdeps/unix/sysv/linux/x86/bits/typesizes.h: This.
67171
67172         [BZ #14183]
67173         * sysdeps/unix/sysv/linux/x86_64/bits/typesizes.h (__FSWORD_T_TYPE):
67174         Defined with __SWORD_TYPE if __x86_64__ isn't defined.
67175
67176         [BZ #14117]
67177         * sysdeps/unix/sysv/linux/x86_64/bits/siginfo.h: Renamed to ...
67178         * sysdeps/unix/sysv/linux/x86/bits/siginfo.h: This.
67179
67180         * sysdeps/unix/sysv/linux/x86_64/bits/stat.h: Renamed to ...
67181         * sysdeps/unix/sysv/linux/x86/bits/stat.h: This.
67182
67183         * sysdeps/unix/sysv/linux/x86_64/bits/stat.h (_STAT_VER_KERNEL):
67184         Defined to 1 if __x86_64__ isn't defined.
67185         (_STAT_VER_LINUX_OLD): New.
67186         (st_atime): Remove duplicate.
67187         (st_mtime): Likewise.
67188         (st_ctime): Likewise.
67189
67190 2012-05-31  David S. Miller  <davem@davemloft.net>
67191
67192         * sysdeps/sparc/fpu/libm-test-ulps: Remove sqrt(2) and sqrt test
67193         entries.
67194
67195 2012-06-01  Andreas Schwab  <schwab@linux-m68k.org>
67196
67197         * sysdeps/powerpc/fpu/libm-test-ulps: Sort through
67198         gen-libm-test.pl.
67199
67200         [BZ #14132]
67201         * elf/dl-reloc.c: Include <_itoa.h>.
67202         (_dl_reloc_bad_type): Remove use of INTUSE.
67203         * elf/dl-minimal.c (_itoa, _itoa_lower_digits): Likewise.
67204         * stdio-common/_itoa.c (_itoa_word, _itoa): Likewise.
67205         * stdio-common/psiginfo.c (psiginfo): Likewise.
67206         * stdio-common/psignal.c (psignal): Likewise.
67207         * string/strsignal.c (strsignal): Likewise.
67208         * include/signal.h (_sys_siglist): Declare hidden proto.
67209         * stdio-common/itoa-digits.c: Include <_itoa.h>.  Replace
67210         INTVARDEF with libc_hidden_data_def.
67211         * stdio-common/itoa-udigits.c: Likewise.
67212         * sysdeps/generic/_itoa.h (_itoa_upper_digits_internal)
67213         (_itoa_lower_digits_internal): Remove declaration.
67214         (_itoa_upper_digits, _itoa_lower_digits): Declare hidden proto.
67215         * sysdeps/gnu/siglist.c (_sys_siglist_internal)
67216         (_sys_sigabbrev_internal): Remove aliases.
67217         (_sys_siglist): Define hidden alias.
67218
67219 2012-05-31  Markus Trippelsdorf  <markus@trippelsdorf.de>
67220
67221         * sysdeps/unix/sysv/linux/Makefile (sysdep_headers): Add
67222         bits/sysctl.h.
67223
67224 2012-05-31  H.J. Lu  <hongjiu.lu@intel.com>
67225
67226         [BZ #14117]
67227         * sysdeps/unix/sysv/linux/x86_64/bits/sysctl.h: Renamed to ...
67228         * sysdeps/unix/sysv/linux/x86/bits/sysctl.h: This.
67229
67230         * sysdeps/unix/sysv/linux/i386/sys/ucontext.h: Removed.
67231         * sysdeps/unix/sysv/linux/x86_64/sys/ucontext.h: Renamed to ...
67232         * sysdeps/unix/sysv/linux/x86/sys/ucontext.h: This.
67233         * sysdeps/unix/sysv/linux/i386/sys/user.h: Removed.
67234         * sysdeps/unix/sysv/linux/x86_64/sys/user.h: Renamed to ...
67235         * sysdeps/unix/sysv/linux/x86/sys/user.h: This.
67236
67237         * sysdeps/unix/sysv/linux/i386/sys/procfs.h: Removed.
67238         * sysdeps/unix/sysv/linux/x86_64/sys/procfs.h: Renamed to ...
67239         * sysdeps/unix/sysv/linux/x86/sys/procfs.h: This.
67240
67241         * sysdeps/unix/sysv/linux/x86_64/sys/io.h (insb): Replace addr
67242         with __addr.
67243         (insw): Likewise.
67244         (insl): Likewise.
67245         (outsb): Likewise.
67246         (outsw): Likewise.
67247         (outsl): Likewise.
67248
67249         * sysdeps/unix/sysv/linux/i386/bits/mman.h: Removed.
67250         * sysdeps/unix/sysv/linux/x86_64/bits/mman.h: Renamed to ...
67251         * sysdeps/unix/sysv/linux/x86/bits/mman.h: This.
67252
67253         * sysdeps/unix/sysv/linux/x86_64/bits/msq.h: Renamed to ...
67254         * sysdeps/unix/sysv/linux/x86/bits/msq.h: This.
67255         * sysdeps/unix/sysv/linux/x86_64/bits/sem.h: Renamed to ...
67256         * sysdeps/unix/sysv/linux/x86/bits/sem.h: This.
67257         * sysdeps/unix/sysv/linux/x86_64/bits/shm.h: Renamed to ...
67258         * sysdeps/unix/sysv/linux/x86/bits/shm.h: This.
67259
67260         * sysdeps/unix/sysv/linux/x86_64/bits/ipctypes.h: Renamed to ...
67261         * sysdeps/unix/sysv/linux/x86/bits/ipctypes.h: This.
67262
67263         * sysdeps/unix/sysv/linux/x86_64/bits/epoll.h: Renamed to ...
67264         * sysdeps/unix/sysv/linux/x86/bits/epoll.h: This.
67265
67266         * sysdeps/unix/sysv/linux/i386/bits/fcntl.h: Removed.
67267         * sysdeps/unix/sysv/linux/x86_64/bits/fcntl.h: Renamed to ...
67268         * sysdeps/unix/sysv/linux/x86/bits/fcntl.h: This.
67269
67270         * sysdeps/unix/sysv/linux/i386/bits/environments.h: Removed.
67271         * sysdeps/unix/sysv/linux/x86_64/bits/environments.h: Renamed
67272         to ...
67273         * sysdeps/unix/sysv/linux/x86/bits/environments.h: This.
67274
67275         * sysdeps/unix/sysv/linux/i386/bits/a.out.h: Removed.
67276         * sysdeps/unix/sysv/linux/x86_64/bits/a.out.h: Renamed to ...
67277         * sysdeps/unix/sysv/linux/x86/bits/a.out.h: This.
67278
67279         * sysdeps/unix/sysv/linux/i386/sys/elf.h: Error when compiling
67280         for x86-64.
67281         * sysdeps/unix/sysv/linux/i386/sys/vm86.h: Likewise.
67282
67283 2012-05-31  Joseph Myers  <joseph@codesourcery.com>
67284
67285         * math/math.h (M_El): Use two more decimal places.
67286         (M_LOG2El): Likewise.
67287         (M_LOG10El): Likewise.
67288         (M_LN2l): Likewise.
67289         (M_LN10l): Likewise.
67290         (M_PIl): Likewise.
67291         (M_PI_2l): Likewise.
67292         (M_PI_4l): Likewise.
67293         (M_1_PIl): Likewise.
67294         (M_2_PIl): Likewise.
67295         (M_2_SQRTPIl): Likewise.
67296         (M_SQRT2l): Likewise.
67297         (M_SQRT1_2l): Likewise.
67298
67299 2012-05-31  David S. Miller  <davem@davemloft.net>
67300
67301         * sysdeps/sparc/sparc64/memcpy.S: Use fsrc2 to move 64-bit
67302         values between float registers.
67303         * sysdeps/sparc/sparc64/memset.S: Likewise.
67304         * sysdeps/sparc/sparc64/multiarch/memcpy-niagara2.S: Likewise.
67305
67306 2012-05-31  Mike Frysinger  <vapier@gentoo.org>
67307
67308         * debug/Makefile (CFLAGS-tst-longjmp_chk.c): Delete
67309         -D_FORTIFY_SOURCE=1.
67310         (CPPFLAGS-tst-longjmp_chk.c): Define.
67311         (CFLAGS-tst-longjmp_chk2.c): Delete -D_FORTIFY_SOURCE=1.
67312         (CPPFLAGS-tst-longjmp_chk2.c): Define.
67313         * wcsmbs/Makefile (CPPFLAGS-tst-wchar-h.c): Rename from
67314         CFLAGS-tst-wchar-h.c.
67315
67316 2012-05-31  Marek Polacek  <polacek@redhat.com>
67317
67318         [BZ #14132]
67319         * include/mntent.h (__setmntent_internal, __getmntent_r_internal
67320         __endmntent_internal): Remove declaration.
67321         (__setmntent, __endmntent, __getmntent_r) [NOT_IN_libc]: Remove macro.
67322         (__setmntent, __endmntent, __getmntent_r): Declare hidden proto.
67323         * misc/mntent_r.c: Replace INTDEF with libc_hidden_def.
67324
67325 2012-05-30  David S. Miller  <davem@davemloft.net>
67326
67327         * sysdeps/sparc/sparc32/soft-fp/q_util.c
67328         (___Q_simulate_exceptions): Use real FP ops rather than writing
67329         into the %fsr.
67330         * sysdeps/sparc/sparc32/soft-fp/q_util.c (__Qp_handle_exceptions):
67331         Likewise.
67332
67333 2012-05-30  H.J. Lu  <hongjiu.lu@intel.com>
67334
67335         [BZ #14117]
67336         * sysdeps/x86_64/bits/xtitypes.h: Renamed to ...
67337         * sysdeps/x86/bits/xtitypes.h: This.
67338
67339         * sysdeps/x86_64/bits/wordsize.h: Renamed to ...
67340         * sysdeps/x86/bits/wordsize.h: This.
67341
67342         * sysdeps/i386/bits/huge_vall.h: Renamed to ...
67343         * sysdeps/x86/bits/huge_vall.h: This.
67344
67345         * sysdeps/i386/bits/select.h: Removed.
67346         * sysdeps/x86_64/bits/select.h: Renamed to ...
67347         * sysdeps/x86/bits/select.h: This.
67348
67349         * sysdeps/i386/bits/setjmp.h: Removed.
67350         * sysdeps/x86_64/bits/setjmp.h: Renamed to ...
67351         * sysdeps/x86/bits/setjmp.h: This.
67352
67353         * sysdeps/i386/bits/mathdef.h: Removed.
67354         * sysdeps/x86_64/bits/mathdef.h: Renamed to ...
67355         * sysdeps/x86/bits/mathdef.h: This.
67356
67357 2012-05-30  Andreas Schwab  <schwab@linux-m68k.org>
67358
67359         [BZ #14132]
67360         * include/sys/socket.h (__connect_internal)
67361         (__libc_sa_len_internal): Remove declaration.
67362         (__connect, __libc_sa_len): Declare hidden_proto.
67363         (SA_LEN): Remove use of INTUSE.
67364         * socket/connect.c: Add libc_hidden_def.
67365         * sysdeps/mach/hurd/connect.c: Replace INTDEF by libc_hidden_def.
67366         * sysdeps/unix/sysv/linux/sa_len.c: Likewise.
67367         * sysdeps/unix/inet/syscalls.list: Remove __connect_internal
67368         alias.
67369         * sysdeps/unix/sysv/linux/s390/s390-64/syscalls.list: Likewise.
67370         * sysdeps/unix/sysv/linux/x86_64/syscalls.list: Likewise.
67371         * sysdeps/unix/sysv/linux/connect.S: Use libc_hidden_weak instead
67372         of adding _internal alias.
67373
67374 2012-05-30  H.J. Lu  <hongjiu.lu@intel.com>
67375
67376         [BZ #14117]
67377         * sysdeps/i386/bits/link.h: Removed.
67378         * sysdeps/i386/bits/linkmap.h: Likewise.
67379         * sysdeps/x86_64/bits/link.h: Renamed to ...
67380         * sysdeps/x86/bits/link.h: This.
67381         * sysdeps/x86_64/bits/linkmap.h: Renamed to ...
67382         * sysdeps/x86/bits/linkmap.h: This.
67383
67384         * sysdeps/i386/bits/endian.h: Removed.
67385         * sysdeps/x86_64/bits/endian.h: Renamed to ...
67386         * sysdeps/x86/bits/endian.h: This.
67387
67388         * sysdeps/i386/bits/byteswap.h: Removed.
67389         * sysdeps/i386/bits/byteswap-16.h: Likewise.
67390         * sysdeps/x86_64/bits/byteswap.h: Renamed to ...
67391         * sysdeps/x86/bits/byteswap.h: This.
67392         * sysdeps/x86_64/bits/byteswap-16.h: Renamed to ...
67393         * sysdeps/x86/bits/byteswap-16.h: This.
67394         * sysdeps/i386/Implies: Add x86.
67395         * sysdeps/x86_64/Implies: Likewise.
67396
67397 2012-05-30  David S. Miller  <davem@davemloft.net>
67398
67399         * soft-fp/soft-fp.h (FP_CUR_EXCEPTIONS): Define.
67400         (FP_TRAPPING_EXCEPTIONS): Provide default implementation.
67401         * sysdeps/sparc/sparc32/soft-fp/sfp-machine.h
67402         (FP_TRAPPING_EXCEPTIONS): Define.
67403         * sysdeps/sparc/sparc64/soft-fp/sfp-machine.h
67404         (FP_TRAPPING_EXCEPTIONS): Define.
67405         * soft-fp/op-common.h (_FP_PACK_SEMIRAW): Signal underflow for
67406         subnormals only when inexact has been signalled or underflow
67407         exceptions are enabled.
67408         (_FP_PACK_CANONICAL): Likewise.
67409
67410 2012-05-30  H.J. Lu  <hongjiu.lu@intel.com>
67411
67412         [BZ #14183]
67413         * sysdeps/unix/sysv/linux/x86_64/bits/typesizes.h (__NLINK_T_TYPE):
67414         Defined with __UWORD_TYPE if __x86_64__ isn't defined.
67415
67416 2012-05-30  Richard Henderson  <rth@twiddle.net>
67417
67418         * sysdeps/unix/make-syscalls.sh: Protect symbol_version output
67419         with #ifndef NOT_IN_libc.
67420
67421         * scripts/abilist.awk: Accept 8 fields.  Handle Alpha functions
67422         marked to avoid plt entry.
67423
67424 2012-05-30  H.J. Lu  <hongjiu.lu@intel.com>
67425
67426         [BZ #14112]
67427         * Makeconfig (default-abi): New macro.
67428         (abi-includes): Likewise.
67429         ($(common-objpfx)soversions.mk): Remove WORDSIZE check.  Use
67430         $(abi-$(default-abi)-lib-soname) for soname if defined.
67431         ($(common-objpfx)gnu/lib-names.stmp): Generate from
67432         abi-variants.
67433         * Makefile (installed-stubs): Likewise.
67434         * include/stubs-biarch.h: Removed.
67435         * scripts/lib-names.awk: Only handle one library at a time.
67436         * scripts/soversions.awk: Remove WORDSIZE support.
67437         * shlib-versions: Remove WORDSIZE and i.86/s390x/powerpc64 ld
67438         entries.
67439         * sysdeps/unix/sysv/linux/Makefile (syscall-list-variants):
67440         Removed.
67441         (syscall-list-default-condition): Likewise.
67442         (syscall-list-default-condition): Likewise.
67443         (syscall-list-includes): Likewise.
67444         ($(objpfx)bits/syscall%h $(objpfx)bits/syscall%d): Replace
67445         syscall-list-* with abi-*.  Handle undefined abi-variants.
67446         * sysdeps/unix/sysv/linux/i386/Makefile (default-abi): New macro.
67447         * sysdeps/unix/sysv/linux/i386/Implies: New file.
67448         * sysdeps/unix/sysv/linux/x86/Makefile: Likewise.
67449         * sysdeps/unix/sysv/linux/x86_64/64/Makefile: Likewise.
67450         * sysdeps/unix/sysv/linux/x86_64/Implies: Add unix/sysv/linux/x86.
67451         * sysdeps/unix/sysv/linux/x86_64/Makefile (syscall-list-variants):
67452         Removed.
67453         (syscall-list-32-options): Likewise.
67454         (syscall-list-32-condition): Likewise.
67455         (syscall-list-64-options): Likewise.
67456         (syscall-list-64-condition): Likewise.
67457         * sysdeps/unix/sysv/linux/x86_64/x32/Makefile (default-abi): New
67458         macro.
67459         * sysdeps/unix/sysv/linux/powerpc/Makefile (syscall-list-*):
67460         Renamed to ...
67461         (abi-*): This.
67462         (abi-64-ld-soname): New macro.
67463         * sysdeps/unix/sysv/linux/s390/Makefile: Likewise.
67464         * sysdeps/unix/sysv/linux/sparc/Makefile (syscall-list-*):
67465         Renamed to ...
67466         (abi-*): This.
67467         * sysdeps/x86_64/64/shlib-versions: Remove ld entry.
67468         * sysdeps/x86_64/x32/shlib-versions: Likewise.
67469
67470 2012-05-30  Joseph Myers  <joseph@codesourcery.com>
67471
67472         * sysdeps/unix/sysv/linux/kernel-features.h
67473         (__ASSUME_TRUNCATE64_SYSCALL): Remove all definitions.
67474         * sysdeps/unix/sysv/linux/ftruncate64.c: Do not
67475         include <kernel-features.h>.
67476         [!__NR_ftruncate64]: Remove conditional code.
67477         [!__ASSUME_TRUNCATE64_SYSCALL]: Likewise.
67478         [__NR_ftruncate64]: Make code unconditional.
67479         [__ASSUME_TRUNCATE64_SYSCALL]: Likewise.
67480         * sysdeps/unix/sysv/linux/truncate64.c: Do not
67481         include <kernel-features.h>.
67482         [!__NR_ftruncate64]: Remove conditional code.
67483         [!__ASSUME_TRUNCATE64_SYSCALL]: Likewise.
67484         [__NR_ftruncate64]: Make code unconditional.
67485         [__ASSUME_TRUNCATE64_SYSCALL]: Likewise.
67486         * sysdeps/unix/sysv/linux/powerpc/powerpc32/ftruncate64.c: Do not
67487         include <kernel-features.h>.
67488         [!__NR_ftruncate64]: Remove conditional code.
67489         [!__ASSUME_TRUNCATE64_SYSCALL]: Likewise.
67490         [__NR_ftruncate64]: Make code unconditional.
67491         [__ASSUME_TRUNCATE64_SYSCALL]: Likewise.
67492         * sysdeps/unix/sysv/linux/powerpc/powerpc32/truncate64.c: Do not
67493         include <kernel-features.h>.
67494         [!__NR_ftruncate64]: Remove conditional code.
67495         [!__ASSUME_TRUNCATE64_SYSCALL]: Likewise.
67496         [__NR_ftruncate64]: Make code unconditional.
67497         [__ASSUME_TRUNCATE64_SYSCALL]: Likewise.
67498
67499         * configure.in (libc_cv_fpie): Weaken to a compile test using
67500         LIBC_TRY_CC_OPTION.
67501         * configure: Regenerated.
67502
67503 2012-05-29  Andreas Krebbel  <Andreas.Krebbel@de.ibm.com>
67504
67505         * sysdeps/unix/sysv/linux/s390/s390-32/nptl/ld.abilist: Refreshed.
67506         * sysdeps/unix/sysv/linux/s390/s390-32/nptl/libc.abilist: Refreshed.
67507         * sysdeps/unix/sysv/linux/s390/s390-32/nptl/libm.abilist: Refreshed.
67508         * sysdeps/unix/sysv/linux/s390/s390-32/nptl/libpthread.abilist:
67509         Refreshed.
67510         * sysdeps/unix/sysv/linux/s390/s390-32/nptl/librt.abilist: Refreshed.
67511         * sysdeps/unix/sysv/linux/s390/s390-32/nptl/libutil.abilist: Refreshed.
67512         * sysdeps/unix/sysv/linux/s390/s390-64/nptl/ld.abilist: Refreshed.
67513         * sysdeps/unix/sysv/linux/s390/s390-64/nptl/libc.abilist: Refreshed.
67514         * sysdeps/unix/sysv/linux/s390/s390-64/nptl/libm.abilist: Refreshed.
67515         * sysdeps/unix/sysv/linux/s390/s390-64/nptl/libpthread.abilist:
67516         Refreshed.
67517
67518 2012-05-27  David S. Miller  <davem@davemloft.net>
67519
67520         * sysdeps/sparc/sparc32/soft-fp/q_util.c (___Q_numbers): Delete.
67521         (___Q_zero): New.
67522         (__Q_simulate_exceptions): Return void.  Change to simulate
67523         exceptions by writing into the %fsr.
67524         * sysdeps/sparc/sparc64/soft-fp/qp_util.c
67525         (__Qp_handle_exceptions): Likewise.
67526         (numbers): Delete.
67527         * sysdeps/sparc/sparc64/soft-fp/Versions: Remove entry for
67528         __Qp_handle_exceptions.
67529         * sysdeps/unix/sysv/linux/sparc/sparc64/nptl/libc.abilist: Remove
67530         __Qp_handle_exceptions.
67531         * sysdeps/sparc/sparc32/soft-fp/sfp-machine.h (_FP_DECL_EX): Mark
67532         as unused and give dummy FP_RND_NEAREST initializer.
67533         (FP_INHIBIT_RESULTS): Define.
67534         (___Q_simulate_exceptions): Update declaration.
67535         (FP_HANDLE_EXCEPTIONS): Use ___Q_zero and tidy inline asm
67536         formatting.
67537         * sysdeps/sparc/sparc64/soft-fp/sfp-machine.h (_FP_DECL_EX): Mark
67538         as unused and give dummy FP_RND_NEAREST initializer.
67539         (__Qp_handle_exceptions): Update declaration.
67540         (FP_HANDLE_EXCEPTIONS, QP_NO_EXCEPTIONS): Tidy inline asm
67541         formatting.
67542
67543 2012-05-27  Thomas Schwinge  <thomas@codesourcery.com>
67544
67545         * sysdeps/sh/sh4/fpu/fclrexcpt.c (feclearexcept): Use fpu_control_t for
67546         the temporary FPU control word.
67547         * sysdeps/sh/sh4/fpu/fedisblxcpt.c (fedisableexcept): Likewise.
67548         * sysdeps/sh/sh4/fpu/feenablxcpt.c (feenableexcept): Likewise.
67549         * sysdeps/sh/sh4/fpu/fegetenv.c (fegetenv): Likewise.
67550         * sysdeps/sh/sh4/fpu/fegetexcept.c (fegetexcept): Likewise.
67551         * sysdeps/sh/sh4/fpu/fegetround.c (fegetround): Likewise.
67552         * sysdeps/sh/sh4/fpu/feholdexcpt.c (feholdexcept): Likewise.
67553         * sysdeps/sh/sh4/fpu/fesetenv.c (fesetenv): Likewise.
67554         * sysdeps/sh/sh4/fpu/fesetround.c (fesetround): Likewise.
67555         * sysdeps/sh/sh4/fpu/feupdateenv.c (feupdateenv): Likewise.
67556         * sysdeps/sh/sh4/fpu/fsetexcptflg.c (fesetexceptflag): Likewise.
67557         * sysdeps/sh/sh4/fpu/ftestexcept.c (fetestexcept): Likewise.
67558
67559 2012-05-27  Kaz Kojima  <kkojima@rr.iij4u.or.jp>
67560
67561         * sysdeps/sh/sh4/fpu/fraiseexcpt.c (feraiseexcept): Restore fpscr flag
67562         fields.
67563
67564 2012-05-27  Chung-Lin Tang  <cltang@codesourcery.com>
67565
67566         * sysdeps/sh/_mcount.S (_mount): Add CFI directives.
67567         * sysdeps/unix/sh/sysdep.S (__syscall_error): Likewise.
67568         * sysdeps/unix/sysv/linux/sh/sh3/setcontext.S (__setcontext): Likewise.
67569         * sysdeps/unix/sysv/linux/sh/sh3/swapcontext.S (__swapcontext):
67570         Likewise.
67571         * sysdeps/unix/sysv/linux/sh/sh4/setcontext.S (__setcontext): Likewise.
67572         * sysdeps/unix/sysv/linux/sh/sh4/swapcontext.S (__swapcontext):
67573         Likewise.
67574
67575 2012-05-27  Ulrich Drepper  <drepper@gmail.com>
67576
67577         * po/h.po: Update from translation team.
67578
67579 2012-05-26  Andreas Schwab  <schwab@linux-m68k.org>
67580
67581         * sysdeps/powerpc/powerpc32/dl-irel.h: Include <ldsodefs.h>.
67582
67583         * sysdeps/ieee754/dbl-64/s_logb.c (__logb): Optimize
67584         handling of denormals.
67585         * sysdeps/ieee754/dbl-64/wordsize-64/s_logb.c (__logb): Likewise.
67586         * sysdeps/ieee754/flt-32/s_logbf.c (__logbf): Likewise.
67587         * sysdeps/ieee754/ldbl-96/s_logbl.c (__logbl): Likewise.
67588         * sysdeps/ieee754/ldbl-128/s_logbl.c (__logbl): Likewise.
67589         * sysdeps/ieee754/ldbl-128ibm/s_logbl.c (__logbl): Likewise.
67590         * sysdeps/powerpc/powerpc32/power7/fpu/s_logb.c (_logb): Likewise.
67591         * sysdeps/powerpc/powerpc32/power7/fpu/s_logbl.c (_logbl):
67592         Likewise.
67593
67594 2012-05-26  Marek Polacek  <polacek@redhat.com>
67595
67596         [BZ #14152]
67597         * math/libm-test.inc (fma_test): Don't always expect underflow
67598         exception.
67599
67600 2012-05-26  Siddhesh Poyarekar  <siddhesh@redhat.com>
67601
67602         [BZ #12416]
67603         * elf/tst-execstack.c: Include stackinfo.h.
67604         (do_test): Adjust test case to ensure that pthread_getattr_np
67605         behaviour remains the same after marking stack executable.
67606
67607 2012-05-25  Joseph Myers  <joseph@codesourcery.com>
67608
67609         * sysdeps/unix/sysv/linux/kernel-features.h
67610         (__ASSUME_NEW_GETRLIMIT_SYSCALL): Remove all definitions.
67611         * sysdeps/unix/sysv/linux/i386/getrlimit.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         * sysdeps/unix/sysv/linux/i386/setrlimit.c Do not include
67616         kernel-features.h.
67617         [!__ASSUME_NEW_GETRLIMIT_SYSCALL]: Remove conditional code.
67618         [__ASSUME_NEW_GETRLIMIT_SYSCALL]: Make code unconditional.
67619
67620 2012-05-25  H.J. Lu  <hongjiu.lu@intel.com>
67621
67622         * configure.in: Define the default includes to being none.
67623         * configure: Regenerated.
67624
67625 2012-05-25  Roland McGrath  <roland@hack.frob.com>
67626
67627         * sysdeps/x86_64/__longjmp.S: Add a static probe here.
67628         * sysdeps/x86_64/setjmp.S: Likewise.
67629         * sysdeps/i386/bsd-setjmp.S: Likewise.
67630         * sysdeps/i386/bsd-_setjmp.S: Likewise.
67631         * sysdeps/i386/setjmp.S: Likewise.
67632         * sysdeps/i386/__longjmp.S: Likewise.
67633         * sysdeps/unix/sysv/linux/x86_64/____longjmp_chk.S: Likewise.
67634         * sysdeps/unix/sysv/linux/i386/____longjmp_chk.S: Likewise.
67635
67636         * include/stap-probe.h: New file.
67637         * configure.in: Handle --enable-systemtap.
67638         * configure: Regenerated.
67639         * config.h.in (USE_STAP_PROBE): New #undef.
67640         * extra-lib.mk (CPPFLAGS-$(lib)): Add -DIN_LIB=$(lib).
67641         * elf/Makefile (CPPFLAGS-.os): Add -DIN_LIB=rtld.
67642         * elf/rtld-Rules (rtld-CPPFLAGS): Likewise.
67643
67644 2012-05-25  Joseph Myers  <joseph@codesourcery.com>
67645
67646         [BZ #13717]
67647         * sysdeps/unix/sysv/linux/configure.in (arch_minimum_kernel): Set
67648         to 2.4.0 where earlier.
67649         * sysdeps/unix/sysv/linux/configure: Regenerated.
67650         * sysdeps/unix/sysv/linux/i386/chown.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/fchown.c: Do not include
67655         <kernel-features.h>.
67656         [__ASSUME_32BITUIDS]: Make code unconditional.
67657         [!__ASSUME_32BITUIDS]: Remove conditional code.
67658         * sysdeps/unix/sysv/linux/i386/fchownat.c (fchownat)
67659         [__ASSUME_32BITUIDS]: Make code unconditional.
67660         (fchownat) [!__ASSUME_32BITUIDS]: Remove conditional code.
67661         * sysdeps/unix/sysv/linux/i386/getegid.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/geteuid.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/getgid.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/getgroups.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/getresgid.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/getresuid.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/getuid.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/lchown.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/msgctl.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/semctl.c: Do not include
67698         <kernel-features.h>.
67699         [__ASSUME_32BITUIDS]: Make code unconditional.
67700         [!__ASSUME_32BITUIDS]: Remove conditional code.
67701         * sysdeps/unix/sysv/linux/i386/setegid.c: Do not include
67702         <kernel-features.h>.
67703         [__NR_setresgid] (__setresgid): Do not declare.
67704         [__ASSUME_32BITUIDS]: Make code unconditional.
67705         [!__ASSUME_32BITUIDS]: Remove conditional code.
67706         * sysdeps/unix/sysv/linux/i386/seteuid.c: Do not include
67707         <kernel-features.h>.
67708         [__NR_setresuid] (__setresuid): Do not declare.
67709         [__ASSUME_32BITUIDS]: Make code unconditional.
67710         [!__ASSUME_32BITUIDS]: Remove conditional code.
67711         * sysdeps/unix/sysv/linux/i386/setfsgid.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/setfsuid.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/setgid.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/setgroups.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/setregid.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/setresgid.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/setresuid.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/setreuid.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/setuid.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/i386/shmctl.c: Do not include
67748         <kernel-features.h>.
67749         [__ASSUME_32BITUIDS]: Make code unconditional.
67750         [!__ASSUME_32BITUIDS]: Remove conditional code.
67751         * sysdeps/unix/sysv/linux/kernel-features.h
67752         (__ASSUME_SETRESUID_SYSCALL): Remove.
67753         (__ASSUME_SETRESGID_SYSCALL): Likewise.
67754         (__ASSUME_32BITUIDS): Likewise.
67755         (__ASSUME_LDT_WORKS): Likewise.
67756         (__ASSUME_O_DIRECTORY): Likewise.
67757         (__ASSUME_NEW_GETRLIMIT_SYSCALL): Define conditional on
67758         architecture but not kernel version.
67759         (__ASSUME_TRUNCATE64_SYSCALL): Likewise.
67760         (__ASSUME_MMAP2_SYSCALL): Likewise.
67761         (__ASSUME_STAT64_SYSCALL): Likewise.
67762         (__ASSUME_IPC64): Likewise.
67763         * sysdeps/unix/sysv/linux/local-setxid.h: Do not include
67764         <kernel-features.h>.
67765         [__ASSUME_32BITUIDS]: Make code unconditional.
67766         [!__ASSUME_32BITUIDS]: Remove conditional code.
67767         * sysdeps/unix/sysv/linux/opendir.c: Do not include
67768         <kernel-features.h>.
67769         [__ASSUME_O_DIRECTORY]: Make code unconditional.
67770         * sysdeps/unix/sysv/linux/opensock.c [__LINUX_KERNEL_VERSION <
67771         132096]: Remove conditional code.
67772         [__LINUX_KERNEL_VERSION >= 132096]: Make code unconditional.
67773         * sysdeps/unix/sysv/linux/s390/s390-32/chown.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/s390/s390-32/lchown.c: Do not include
67778         <kernel-features.h>.
67779         [__ASSUME_32BITUIDS]: Make code unconditional.
67780         [!__ASSUME_32BITUIDS]: Remove conditional code.
67781         * sysdeps/unix/sysv/linux/setegid.c: Do not include
67782         <kernel-features.h>.
67783         [__NR_setresgid || __ASSUME_SETRESGID_SYSCALL]: Make code
67784         unconditional.
67785         (__setresgid): Do not declare.
67786         [__ASSUME_32BITUIDS]: Make code unconditional.
67787         [!__ASSUME_32BITUIDS]: Remove conditional code.
67788         * sysdeps/unix/sysv/linux/seteuid.c: Do not include
67789         <kernel-features.h>.
67790         [__NR_setresuid || __ASSUME_SETRESUID_SYSCALL]: Make code
67791         unconditional.
67792         (__setresuid): Do not declare.
67793         [__ASSUME_32BITUIDS]: Make code unconditional.
67794         [!__ASSUME_32BITUIDS]: Remove conditional code.
67795         * sysdeps/unix/sysv/linux/sh/chown.c: Do not include
67796         <kernel-features.h>.
67797         [__ASSUME_32BITUIDS]: Make code unconditional.
67798         [!__ASSUME_32BITUIDS]: Remove conditional code.
67799         * sysdeps/unix/sysv/linux/sparc/sparc32/semctl.c: Do not include
67800         <kernel-features.h>.
67801         [__ASSUME_32BITUIDS]: Make code unconditional.
67802         [!__ASSUME_32BITUIDS]: Remove conditional code.
67803
67804 2012-05-25  Richard Henderson  <rth@twiddle.net>
67805
67806         * sysdeps/powerpc/powerpc32/dl-irel.h (elf_ifunc_invoke): Pass
67807         dl_hwcap to ifunc resolver.
67808         * sysdeps/powerpc/powerpc32/dl-machine.h (elf_machine_rela): Use
67809         elf_ifunc_invoke.
67810         * sysdeps/powerpc/powerpc64/dl-irel.h (elf_ifunc_invoke): Pass
67811         dl_hwcap to ifunc resolver.
67812         * sysdeps/powerpc/powerpc64/dl-machine.h (resolve_ifunc): Likewise.
67813
67814 2012-05-24  Joseph Myers  <joseph@codesourcery.com>
67815
67816         [BZ #14153]
67817         * sysdeps/ieee754/flt-32/e_acosf.c (__ieee754_acosf): Return pi/2
67818         for |x| <= 2**-26, not 2**-57.
67819         * math/libm-test.inc (acos_test): Do not allow spurious underflow
67820         exception.
67821
67822 2012-05-24  Jeff Law  <law@redhat.com>
67823
67824         * stdio-common/Makefile (tests): Add bug25.
67825         * stdio-common/bug25.c: New test.
67826
67827 2012-05-24  H.J. Lu  <hongjiu.lu@intel.com>
67828
67829         [BZ #13576]
67830         * malloc/malloc.c (sYSMALLOc): Free the old top chunk with a
67831         multiple of MALLOC_ALIGNMENT in size.
67832         (_int_free): Check chunk size is a multiple of MALLOC_ALIGNMENT.
67833
67834 2012-05-24  Joseph Myers  <joseph@codesourcery.com>
67835
67836         * conform/data/stdio.h-data (BUFSIZ): Use macro-int-constant.
67837         Require >= 256.
67838         (FILENAME_MAX): Use macro-int-constant.
67839         (FOPEN_MAX): Use macro-int-constant.  Require >= 8.
67840         (_IOFBF): Use macro-int-constant.
67841         (_IOLBF): Likewise.
67842         (_IONBF): Likewise.
67843         (SEEK_CUR): Likewise.
67844         (SEEK_END): Likewise.
67845         (SEEK_SET): Likewise.
67846         (TMP_MAX): Likewise.
67847         (EOF): Use macro-int-constant.  Require < 0.
67848         (NULL): Use macro-constant.  Require == 0.
67849         (stdin): Require type to be FILE *.
67850         (stdout): Likewise.
67851         (stderr): Likewise.
67852         * conform/data/stdlib.h-data (EXIT_FAILURE): Use
67853         macro-int-constant.
67854         (EXIT_SUCCESS): Likewise.
67855         (NULL): Use macro-constant.  Require == 0.
67856         (RAND_MAX): Use macro-int-constant.
67857         [ISO99 || ISO11] (lldiv_t): Require also for these standards.
67858         [C99-based standards] (strtof): Require function.
67859         [C99-based standards] (strtold): Likewise.
67860         [C99-based standards] (strtoll): Likewise.
67861         [C99-based standards] (strtoull): Likewise.
67862         [ISO || ISO99 || ISO11] (stddef.h): Do not allow header.
67863         [ISO || ISO99 || ISO11] (limits.h): Likewise.
67864         [ISO || ISO99 || ISO11] (math.h): Likewise.
67865         [ISO || ISO99 || ISO11] (sys/wait.h): Likewise.
67866         (str*): Change to str[abcdefghijklmnopqrstuvwxyz]*.
67867         [ISO || ISO99 || ISO11] (*_t): Do not allow.
67868
67869 2012-05-24  Andreas Schwab  <schwab@linux-m68k.org>
67870
67871         [BZ #14132]
67872         * argp/argp-help.c (dgettext) [_LIBC]: Remove use of INTUSE.
67873         * argp/argp-parse.c (dgettext) [_LIBC]: Likewise.
67874         * intl/dgettext.c (DCGETTEXT): Likewise.
67875         * intl/gettext.c (DCGETTEXT): Likewise.
67876         * intl/l10nflist.c (__argz_count, __argz_stringify): Likewise.
67877         * posix/regex_internal.h (gettext): Likewise.
67878         * include/libintl.h (__dcgettext_internal, __dcngettext_internal):
67879         Remove declaration.
67880         * include/argz.h (__argz_count_internal)
67881         (__argz_stringify_internal): Remove declaration.
67882         (__argz_count, __argz_stringify): Declare hidden proto.
67883         * intl/dcgettext.c: Remove use of INTDEF.
67884         * string/argz-count.c: Replace INTDEF with libc_hidden_def.
67885         * string/argz-stringify.c: Likewise.
67886         * include/libio.h (_IO_free_backup_area, _IO_free_wbackup_area)
67887         (_IO_padn, _IO_putc, _IO_sgetn, _IO_vfprintf, _IO_vfscanf):
67888         Declare hidden proto.
67889         * include/libio.h (_IO_free_backup_area, _IO_free_wbackup_area)
67890         (_IO_padn, _IO_putc, _IO_sgetn, _IO_vfprintf, _IO_vfscanf):
67891         Declare hidden proto.
67892         * include/stdio.h (__asprintf_internal): Don't declare.
67893         (__asprintf): Don't define as macro.  Declare hidden proto.
67894         * include/stdio_ext.h (__fsetlocking_internal): Don't declare.
67895         (__fsetlocking): Declare hidden proto.
67896         * libio/iolibio.h (_IO_fdopen, _IO_fflush, _IO_ftell, _IO_fread)
67897         (_IO_fwrite, _IO_setbuffer, _IO_setvbuf, _IO_vsprintf): Declare
67898         hidden proto.
67899         (_IO_vprintf, _IO_freopen, _IO_freopen64, _IO_setbuf)
67900         (_IO_setlinebuf): Remove use of INTUSE.
67901         (_IO_setbuffer_internal, _IO_fread_internal, _IO_fdopen_internal)
67902         (_IO_vsprintf_internal, _IO_fflush_internal, _IO_fwrite_internal)
67903         (_IO_ftell_internal, _IO_fputs_internal, _IO_setvbuf_internal):
67904         Remove declaration.
67905         * libio/libioP.h (INTUSE, INTDEF, INTDEF2): Don't define.
67906         (_IO_do_flush): Remove use of INTUSE.
67907         (_IO_switch_to_get_mode, _IO_init, _IO_sputbackc, _IO_un_link)
67908         (_IO_link_in, _IO_doallocbuf, _IO_unsave_markers, _IO_setb)
67909         (_IO_adjust_column, _IO_least_wmarker)
67910         (_IO_switch_to_main_wget_area, _IO_switch_to_wbackup_area)
67911         (_IO_switch_to_wget_mode, _IO_wsetb, _IO_sputbackwc)
67912         (_IO_wdoallocbuf, _IO_default_uflow, _IO_wdefault_uflow)
67913         (_IO_default_doallocate, _IO_wdefault_doallocate)
67914         (_IO_default_finish, _IO_wdefault_finish, _IO_default_pbackfail)
67915         (_IO_wdefault_pbackfail, _IO_default_xsputn, _IO_wdefault_xsputn)
67916         (_IO_default_xsgetn, _IO_wdefault_xsgetn, _IO_do_write)
67917         (_IO_wdo_write, _IO_flush_all, _IO_flush_all_linebuffered)
67918         (_IO_file_doallocate, _IO_file_setbuf, _IO_file_seekoff)
67919         (_IO_file_xsputn, _IO_file_xsgetn, _IO_file_stat, _IO_file_close)
67920         (_IO_file_underflow, _IO_file_overflow, _IO_file_init)
67921         (_IO_file_attach, _IO_file_fopen, _IO_file_read, _IO_file_sync)
67922         (_IO_file_close_it, _IO_file_seek, _IO_file_finish)
67923         (_IO_wfile_xsputn, _IO_wfile_sync, _IO_wfile_underflow)
67924         (_IO_wfile_overflow, _IO_wfile_seekoff, _IO_str_underflow)
67925         (_IO_str_overflow, _IO_str_pbackfail, _IO_str_seekoff)
67926         (_IO_getline, _IO_getline_info, _IO_list_all): Declare hidden
67927         proto.
67928         (_IO_flush_all_internal, _IO_adjust_column_internal)
67929         (_IO_default_uflow_internal, _IO_default_finish_internal)
67930         (_IO_default_pbackfail_internal, _IO_default_xsputn_internal)
67931         (_IO_default_xsgetn_internal, _IO_default_doallocate_internal)
67932         (_IO_wdefault_finish_internal, _IO_wdefault_pbackfail_internal)
67933         (_IO_wdefault_xsputn_internal, _IO_wdefault_xsgetn_internal)
67934         (_IO_wdefault_doallocate_internal, _IO_wdefault_uflow_internal)
67935         (_IO_file_doallocate_internal, _IO_file_setbuf_internal)
67936         (_IO_file_seekoff_internal, _IO_file_xsputn_internal)
67937         (_IO_file_xsgetn_internal, _IO_file_stat_internal)
67938         (_IO_file_close_internal, _IO_file_close_it_internal)
67939         (_IO_file_underflow_internal, _IO_file_overflow_internal)
67940         (_IO_file_init_internal, _IO_file_attach_internal)
67941         (_IO_file_fopen_internal, _IO_file_read_internal)
67942         (_IO_file_sync_internal, _IO_file_seek_internal)
67943         (_IO_file_finish_internal, _IO_wfile_xsputn_internal)
67944         (_IO_wfile_seekoff_internal, _IO_wfile_sync_internal)
67945         (_IO_str_underflow_internal, _IO_str_overflow_internal)
67946         (_IO_str_pbackfail_internal, _IO_str_seekoff_internal)
67947         (_IO_file_jumps_internal, _IO_wfile_jumps_internal)
67948         (_IO_list_all_internal, _IO_link_in_internal)
67949         (_IO_sputbackc_internal, _IO_wdoallocbuf_internal)
67950         (_IO_sgetn_internal, _IO_flush_all_linebuffered_internal)
67951         (_IO_switch_to_wget_mode_internal, _IO_unsave_markers_internal)
67952         (_IO_switch_to_main_wget_area_internal, _IO_wdo_write_internal)
67953         (_IO_do_write_internal, _IO_padn_internal)
67954         (_IO_getline_info_internal, _IO_getline_internal)
67955         (_IO_free_wbackup_area_internal, _IO_free_backup_area_internal)
67956         (_IO_switch_to_wbackup_area_internal, _IO_setb_internal)
67957         (_IO_sputbackwc_internal, _IO_switch_to_get_mode_internal)
67958         (_IO_vfscanf_internal, _IO_vfprintf_internal)
67959         (_IO_doallocbuf_internal, _IO_wsetb_internal, _IO_putc_internal)
67960         (_IO_init_internal, _IO_un_link_internal): Don't declare.
67961         * libio/fileops.c: Replace INTDEF with libc_hidden_def and INTDEF2
67962         with libc_hidden_ver, remove use of INTUSE.
67963         * libio/genops.c: Likewise.
67964         * libio/freopen.c: Likewise.
67965         * libio/freopen64.c: Likewise.
67966         * libio/iofclose.c: Likewise.
67967         * libio/iofdopen.c: Likewise.
67968         * libio/iofflush.c: Likewise.
67969         * libio/iofflush_u.c: Likewise.
67970         * libio/iofgets.c: Likewise.
67971         * libio/iofgets_u.c: Likewise.
67972         * libio/iofopen.c: Likewise.
67973         * libio/iofopncook.c: Likewise.
67974         * libio/iofread.c: Likewise.
67975         * libio/iofread_u.c: Likewise.
67976         * libio/ioftell.c: Likewise.
67977         * libio/iofwrite.c: Likewise.
67978         * libio/iogetline.c: Likewise.
67979         * libio/iogets.c: Likewise.
67980         * libio/iogetwline.c: Likewise.
67981         * libio/iopadn.c: Likewise.
67982         * libio/iopopen.c: Likewise.
67983         * libio/ioseekoff.c: Likewise.
67984         * libio/ioseekpos.c: Likewise.
67985         * libio/iosetbuffer.c: Likewise.
67986         * libio/iosetvbuf.c: Likewise.
67987         * libio/ioungetc.c: Likewise.
67988         * libio/ioungetwc.c: Likewise.
67989         * libio/iovdprintf.c: Likewise.
67990         * libio/iovsprintf.c: Likewise.
67991         * libio/iovsscanf.c: Likewise.
67992         * libio/memstream.c: Likewise.
67993         * libio/obprintf.c: Likewise.
67994         * libio/oldfileops.c: Likewise.
67995         * libio/oldiofclose.c: Likewise.
67996         * libio/oldiofdopen.c: Likewise.
67997         * libio/oldiofopen.c: Likewise.
67998         * libio/oldiopopen.c: Likewise.
67999         * libio/oldstdfiles.c: Likewise.
68000         * libio/putc.c: Likewise.
68001         * libio/setbuf.c: Likewise.
68002         * libio/setlinebuf.c: Likewise.
68003         * libio/stdfiles.c: Likewise.
68004         * libio/strops.c: Likewise.
68005         * libio/vasprintf.c: Likewise.
68006         * libio/vscanf.c: Likewise.
68007         * libio/vsnprintf.c: Likewise.
68008         * libio/vswprintf.c: Likewise.
68009         * libio/wfiledoalloc.c: Likewise.
68010         * libio/wfileops.c: Likewise.
68011         * libio/wgenops.c: Likewise.
68012         * libio/wmemstream.c: Likewise.
68013         * libio/wstrops.c: Likewise.
68014         * libio/__fpurge.c: Likewise.
68015         * libio/__fsetlocking.c: Likewise.
68016         * assert/assert.c: Likewise.
68017         * debug/fgets_chk.c: Likewise.
68018         * debug/fgets_u_chk.c: Likewise.
68019         * debug/fread_chk.c: Likewise.
68020         * debug/fread_u_chk.c: Likewise.
68021         * debug/gets_chk.c: Likewise.
68022         * debug/obprintf_chk.c: Likewise.
68023         * debug/vasprintf_chk.c: Likewise.
68024         * debug/vdprintf_chk.c: Likewise.
68025         * debug/vsnprintf_chk.c: Likewise.
68026         * debug/vsprintf_chk.c: Likewise.
68027         * malloc/mtrace.c: Likewise.
68028         * misc/error.c: Likewise.
68029         * misc/syslog.c: Likewise.
68030         * stdio-common/asprintf.c: Likewise.
68031         * stdio-common/fxprintf.c: Likewise.
68032         * stdio-common/getw.c: Likewise.
68033         * stdio-common/isoc99_fscanf.c: Likewise.
68034         * stdio-common/isoc99_scanf.c: Likewise.
68035         * stdio-common/isoc99_vfscanf.c: Likewise.
68036         * stdio-common/isoc99_vscanf.c: Likewise.
68037         * stdio-common/isoc99_vsscanf.c: Likewise.
68038         * stdio-common/printf-prs.c: Likewise.
68039         * stdio-common/printf_fp.c: Likewise.
68040         * stdio-common/printf_fphex.c: Likewise.
68041         * stdio-common/printf_size.c: Likewise.
68042         * stdio-common/putw.c: Likewise.
68043         * stdio-common/scanf.c: Likewise.
68044         * stdio-common/sprintf.c: Likewise.
68045         * stdio-common/tmpfile.c: Likewise.
68046         * stdio-common/vfprintf.c: Likewise.
68047         * stdio-common/vfscanf.c: Likewise.
68048         * stdlib/strfmon_l.c: Likewise.
68049         * sunrpc/openchild.c: Likewise.
68050         * sunrpc/xdr_stdio.c: Likewise.
68051         * sysdeps/ieee754/ldbl-opt/nldbl-compat.c: Likewise.
68052         * sysdeps/mach/hurd/tmpfile.c: Likewise.
68053
68054 2012-05-24  Roland McGrath  <roland@hack.frob.com>
68055
68056         * sysdeps/unix/sysv/linux/x86_64/x32/syscalls.list: New file.
68057
68058         * sysdeps/unix/make-syscalls.sh: Support "syscall:vdso_name@VDSOVER"
68059         in the third column, to generate for the shared library an IFUNC
68060         that uses _dl_vdso_vsym.
68061         * Makerules (COMPILE.c, compile-stdin.c): New variables.
68062         * Makeconfig (object-suffixes-noshared): New variable.
68063
68064         * sysdeps/unix/sysv/linux/dl-vdso.h (PREPARE_VERSION_KNOWN): New macro.
68065         (VDSO_NAME_LINUX_2_6, VDSO_HASH_LINUX_2_6): New macros.
68066         (VDSO_NAME_LINUX_2_6_15, VDSO_HASH_LINUX_2_6_15): New macros.
68067         (VDSO_NAME_LINUX_2_6_29, VDSO_HASH_LINUX_2_6_29): New macros.
68068
68069         [BZ #14132]
68070         * include/sys/time.h (__gettimeofday): Remove macro.
68071         (__gettimeofday, gettimeofday): Add libc_hidden_proto.
68072         * time/gettimeofday.c (__gettimeofday): Remove #undef.
68073         Remove INTDEF.
68074         (__gettimeofday): Add libc_hidden_def.
68075         (gettimeofday): Add libc_hidden_weak.
68076         * sysdeps/mach/gettimeofday.c: Likewise.
68077         * sysdeps/posix/gettimeofday.c: Likewise.
68078         * sysdeps/unix/sysv/linux/powerpc/gettimeofday.c: Likewise.
68079         * sysdeps/unix/sysv/linux/s390/gettimeofday.c: Likewise.
68080         * sysdeps/unix/sysv/linux/x86_64/gettimeofday.c
68081         (__gettimeofday_internal): Remove strong_alias.
68082         (__gettimeofday): Add libc_hidden_def.
68083         (gettimeofday): Add libc_hidden_weak.
68084         * sysdeps/unix/syscalls.list (gettimeofday):
68085         Remove __gettimeofday_internal alias.
68086
68087 2012-05-24  Daniel Jacobowitz  <drow@false.org>
68088             H.J. Lu  <hongjiu.lu@intel.com>
68089
68090         [BZ #12495]
68091         * malloc/malloc.c (SMALLBIN_CORRECTION): New.
68092         (MIN_LARGE_SIZE, smallbin_index): Use it to handle 16-byte alignment.
68093         (largebin_index_32_big): New.
68094         (largebin_index): Use it for 16-byte alignment.
68095         (sYSMALLOc): Handle MALLOC_ALIGNMENT > 2 * SIZE_SZ.  Don't update
68096         correction with front_misalign.
68097
68098 2012-05-24  H.J. Lu  <hongjiu.lu@intel.com>
68099
68100         * sysdeps/unix/sysv/linux/x86_64/x32/nptl/ld.abilist: New file.
68101         * sysdeps/unix/sysv/linux/x86_64/x32/nptl/libBrokenLocale.abilist:
68102         Likewise.
68103         * sysdeps/unix/sysv/linux/x86_64/x32/nptl/libanl.abilist:
68104         Likewise.
68105         * sysdeps/unix/sysv/linux/x86_64/x32/nptl/libc.abilist:
68106         Likewise.
68107         * sysdeps/unix/sysv/linux/x86_64/x32/nptl/libcrypt.abilist:
68108         Likewise.
68109         * sysdeps/unix/sysv/linux/x86_64/x32/nptl/libdl.abilist:
68110         Likewise.
68111         * sysdeps/unix/sysv/linux/x86_64/x32/nptl/libm.abilist:
68112         Likewise.
68113         * sysdeps/unix/sysv/linux/x86_64/x32/nptl/libnsl.abilist:
68114         Likewise.
68115         * sysdeps/unix/sysv/linux/x86_64/x32/nptl/libpthread.abilist:
68116         Likewise.
68117         * sysdeps/unix/sysv/linux/x86_64/x32/nptl/libresolv.abilist:
68118         Likewise.
68119         * sysdeps/unix/sysv/linux/x86_64/x32/nptl/librt.abilist:
68120         Likewise.
68121         * sysdeps/unix/sysv/linux/x86_64/x32/nptl/libthread_db.abilist:
68122         Likewise.
68123         * sysdeps/unix/sysv/linux/x86_64/x32/nptl/libutil.abilist:
68124         Likewise.
68125
68126         * scripts/data/c++-types-x32-linux-gnu.data: New file.
68127         * sysdeps/x86_64/x32/shlib-versions: Add x32 ABI entry.
68128
68129 2012-05-24  Joseph Myers  <joseph@codesourcery.com>
68130
68131         [BZ #10846]
68132         [BZ #14036]
68133         * math/libm-test.inc (exp_test): Add test from bug 14036.
68134         (pow_test): Add test from bug 10846.
68135
68136         * math/gen-libm-test.pl (%beautify): Remove entries for exceptions
68137         and other flags.
68138         (special_function): Do not include flags in test name.
68139         (parse_args): Likewise.
68140         * sysdeps/i386/fpu/libm-test-ulps: Update.
68141         * sysdeps/powerpc/fpu/libm-test-ulps: Likewise.
68142         * sysdeps/s390/fpu/libm-test-ulps: Likewise.
68143         * sysdeps/sparc/fpu/libm-test-ulps: Likewise.
68144         * sysdeps/x86_64/fpu/libm-test-ulps: Likewise.
68145
68146         * math/gen-libm-test.pl (%beautify): Add entries for underflow
68147         exceptions.
68148         * math/libm-test.inc ("Philosophy"): Update comment about
68149         exception testing.
68150         (UNDERFLOW_EXCEPTION): New macro.
68151         (UNDERFLOW_EXCEPTION_OK): Likewise.
68152         (UNDERFLOW_EXCEPTION_FLOAT): Likewise.
68153         (UNDERFLOW_EXCEPTION_OK_FLOAT): Likewise.
68154         (UNDERFLOW_EXCEPTION_DOUBLE): Likewise.
68155         (UNDERFLOW_EXCEPTION_LDOUBLE_IBM): Likewise.
68156         (INVALID_EXCEPTION_OK): Update value.
68157         (DIVIDE_BY_ZERO_EXCEPTION_OK): Likewise.
68158         (OVERFLOW_EXCEPTION_OK): Likewise.
68159         (IGNORE_ZERO_INF_SIGN): Likewise.
68160         (test_exceptions): Handle underflow exceptions.
68161         (acos_test): Update for underflow exception expectations.
68162         (cexp_test): Likewise.
68163         (clog_test): Likewise.
68164         (clog10_test): Likewise.
68165         (csqrt_test): Likewise.
68166         (ctan_test): Likewise.
68167         (ctanh_test): Likewise.
68168         (exp_test): Likewise.
68169         (exp10_test): Likewise.
68170         (exp2_test): Likewise.
68171         (expm1_test): Likewise.
68172         (fma_test): Likewise.
68173         (j0_test): Likewise.
68174         (jn_test): Likewise.
68175         (nexttoward_test): Likewise.
68176         (pow_test): Likewise.
68177         (scalbn_test): Likewise.
68178         (scalbln_test): Likewise.
68179         (tan_test): Likewise.
68180         (y1_test): Likewise.
68181         * sysdeps/i386/fpu/libm-test-ulps: Update.
68182         * sysdeps/x86_64/fpu/libm-test-ulps: Likewise.
68183
68184 2012-05-23  David S. Miller  <davem@davemloft.net>
68185
68186         * sysdeps/unix/sysv/linux/sparc/sparc32/sigaction.c
68187         (__libc_sigaction): Remove unused local variables.
68188
68189 2012-05-23  H.J. Lu  <hongjiu.lu@intel.com>
68190
68191         * sysdeps/unix/sysv/linux/x86_64/x32/configure: New file.
68192
68193 2012-05-23  Paul Eggert  <eggert@cs.ucla.edu>
68194
68195         mktime: avoid signed integer overflow
68196         * time/mktime.c (__mktime_internal): Do not mishandle the case
68197         where diff == INT_MIN.
68198
68199         mktime: simplify computation of average
68200         * time/mktime.c (ranged_convert): Use new time_t_avg function
68201         instead of rolling our own (probably-slower) code.
68202
68203         mktime: do not assume signed right shift propagates sign bit
68204         * time/mktime.c (isdst_differ): New static function.
68205         (__mktime_internal): No need to normalize tm_isdst now.
68206         (__mktime_internal, not_equal_tm): Use isdst_differ to compare
68207         tm_isdst values.
68208
68209         mktime: merge another wrapv change from gnulib
68210         * time/mktime.c (TYPE_MAXIMUM): Rework slightly to avoid diagnostics
68211         from some compilers.
68212
68213         mktime: remove incorrect attempt at unusual arithmetics
68214         * time/mktime.c (TYPE_ONES_COMPLEMENT, TYPE_SIGNED_MAGNITUDE): Remove.
68215         The code didn't really work on such machines anyway.
68216         (TYPE_MINIMUM): Assume two's complement.
68217         (twos_complement_arithmetic): Verify that long_int and time_t
68218         are two's complement (or unsigned, in the latter case).
68219
68220         mktime: check signed shifts on long_int and time_t, too
68221         * time/mktime.c (SHR): Check that shifts work as desired
68222         on the types long_int and time_t too, as SHR is used on
68223         such types.
68224
68225         mktime: do not assume 'long' is wide enough
68226         * time/mktime.c (verify): Move decl up.
68227         (long_int): New type.
68228         (leapyear, ydhms_diff, guess_time_tm, __mktime_internal): Use it,
68229         to remove assumption in the code that 'long' is wide enough to
68230         store year values.  This assumption is not true on x32 and on
68231         some non-glibc platforms.
68232
68233         mktime: merge wrapv change from gnulib
68234         * time/mktime.c (WRAPV): New macro.
68235         (time_t_avg, time_t_add_ok, time_t_int_add_ok): New static functions.
68236         (guess_time_tm, __mktime_internal): Do not assume that signed
68237         integer overflow wraps around; modern compilers generate code
68238         where this assumption is no longer valid.
68239
68240 2012-05-23  H.J. Lu  <hongjiu.lu@intel.com>
68241
68242         * sysdeps/unix/sysv/linux/i386/sysdep.h (SYSCALL_ERROR_HANDLER):
68243         Replace "jmp L(pseudo_end)" with "ret".
68244         * sysdeps/unix/sysv/linux/x86_64/sysdep.h (SYSCALL_ERROR_HANDLER):
68245         Likewise.
68246
68247 2012-05-23  Andreas Jaeger  <aj@suse.de>
68248
68249         * sysdeps/unix/sysv/linux/syscalls.list: Add poll.
68250         * sysdeps/unix/sysv/linux/poll.c: Remove file.
68251
68252 2012-05-23  Andreas Jaeger  <aj@suse.de>
68253             Maximilian Attems  <max@stro.at>
68254
68255         * sysdeps/unix/sysv/linux/sys/reboot.h (RB_SW_SUSPEND, RB_KEXEC):
68256         New macros.
68257
68258 2012-05-23  H.J. Lu  <hongjiu.lu@intel.com>
68259
68260         * sysdeps/unix/sysv/linux/x86_64/x32/sched_getcpu.S: Rearrange
68261         code so that pseudo_end is just ret and the stack pointer is
68262         correct also for static library in error case.
68263
68264 2012-05-23  Joseph Myers  <joseph@codesourcery.com>
68265
68266         * sysdeps/unix/sysv/linux/powerpc/chown.c: Add comment suggesting
68267         move to syscalls.list.
68268         * sysdeps/unix/sysv/linux/powerpc/powerpc64/pread.c: Likewise.
68269         * sysdeps/unix/sysv/linux/powerpc/powerpc64/pread64.c: Likewise.
68270         * sysdeps/unix/sysv/linux/powerpc/powerpc64/pwrite.c: Likewise.
68271         * sysdeps/unix/sysv/linux/powerpc/powerpc64/pwrite64.c: Likewise.
68272
68273         * manual/install.texi (Running make install): Do not mention Linux
68274         kernel version for which pt_chown is not needed.
68275         (Linux): Do not mention problems with nscd with 2.0 kernels.
68276         * INSTALL: Regenerated.
68277
68278 2012-05-23  Andreas Jaeger  <aj@suse.de>
68279
68280         * sysdeps/unix/sysv/linux/powerpc/bits/mman.h
68281         (MADV_DONTDUMP,MADV_DODUMP): New macros from Linux 3.4.
68282         macro.
68283         * sysdeps/unix/sysv/linux/s390/bits/mman.h
68284         (MADV_DONTDUMP,MADV_DODUMP): Likewise.
68285         * sysdeps/unix/sysv/linux/sh/bits/mman.h
68286         (MADV_DONTDUMP,MADV_DODUMP): Likewise.
68287         * sysdeps/unix/sysv/linux/i386/bits/mman.h
68288         (MADV_DONTDUMP,MADV_DODUMP): Likewise.
68289         * sysdeps/unix/sysv/linux/sparc/bits/mman.h
68290         (MADV_DONTDUMP,MADV_DODUMP): Likewise.
68291         * sysdeps/unix/sysv/linux/x86_64/bits/mman.h
68292         (MADV_DONTDUMP,MADV_DODUMP): Likewise.
68293         * sysdeps/unix/sysv/linux/bits/in.h
68294         (IP_MULTICAST_ALL,IP_UNICAST_IF): Likewise.
68295
68296 2012-05-22  Roland McGrath  <roland@hack.frob.com>
68297
68298         * sysdeps/unix/sysv/linux/dl-vdso.h (CHECK_HASH): Macro removed.
68299         (PREPARE_VERSION): Just use assert instead, it will be elided
68300         under [NDEBUG] anyway.
68301
68302 2012-05-22  H.J. Lu  <hongjiu.lu@intel.com>
68303
68304         * sysdeps/unix/sysv/linux/Makefile: Include
68305         $(firstword $(wildcard $(sysdirs:=/sysctl.mk))).
68306         (sysdep_routines): Remove sysctl.
68307         * sysdeps/unix/sysv/linux/bits/sysctl.h: New file.
68308         * sysdeps/unix/sysv/linux/sysctl.mk: Likewise.
68309         * sysdeps/unix/sysv/linux/x86_64/bits/sysctl.h: Likewise.
68310         * sysdeps/unix/sysv/linux/x86_64/x32/sysctl.mk: Likewise.
68311         * sysdeps/unix/sysv/linux/sys/sysctl.h: Include <bits/sysctl.h>.
68312
68313 2012-05-22  Andreas Jaeger  <aj@suse.de>
68314
68315         * sysdeps/unix/sysv/linux/x86_64/sched_getcpu.S: Rearrange code so
68316         that pseudo_end is just ret and the stack pointer is correct also
68317         for static library in error case.
68318
68319 2012-05-22  Paul Pluzhnikov  <ppluzhnikov@google.com>
68320
68321         [BZ #14122]
68322         * nss/nsswitch.c (defconfig_entries): New variable.
68323         (__nss_database_lookup): Don't leak defconfig entries.
68324         (nss_parse_service_list): Don't leak on error paths.
68325         (free_database_entries): New function.
68326         (free_defconfig): New function.
68327         (free_mem): Move common code to free_database_entries.
68328
68329 2012-05-22  H.J. Lu  <hongjiu.lu@intel.com>
68330
68331         * sysdeps/unix/sysv/linux/x86_64/x32/Makefile (sysdep_routines):
68332         Add arch_prctl.
68333         * sysdeps/unix/sysv/linux/x86_64/x32/arch_prctl.c: New file.
68334
68335         * sysdeps/unix/sysv/linux/wordsize-64/posix_fallocate.c
68336         (posix_fallocate): Use INTERNAL_SYSCALL_TYPES if it is defined.
68337         * sysdeps/unix/sysv/linux/x86_64/sysdep.h (INLINE_SYSCALL_TYPES):
68338         New macro.
68339         (INTERNAL_SYSCALL_NCS_TYPES): Likewise.
68340         (INTERNAL_SYSCALL_TYPES): Likewise.
68341         (LOAD_ARGS_TYPES_[1-6]): Likewise.
68342         (LOAD_REGS_TYPES_[1-6]): Likewise.
68343         (LOAD_ARGS_[1-6]): Use LOAD_ARGS_TYPES_[1-6].
68344         (LOAD_REGS_[1-6]): Use LOAD_REGS_TYPES_[1-6].
68345
68346 2012-05-22  Adhemerval Zanella  <azanella@linux.vnet.ibm.com>
68347
68348         * sysdeps/powerpc/powerpc32/power6/fpu/s_copysign.S: Add compat symbol
68349         copysignl for GLIBC_2_0.
68350         * sysdeps/powerpc/powerpc32/power7/fpu/s_finite.S: Add compat symbol
68351         finitel for GLIBC_2.0 and __finitel for GLIBC_2_1.
68352         * sysdeps/powerpc/powerpc32/power7/fpu/s_logb.c: Add compat symbol
68353         logbl for GLIBC_2_0.
68354         * sysdeps/powerpc/powerpc64/power6/fpu/s_copysign.S: Likewise.
68355         * sysdeps/powerpc/powerpc64/power7/fpu/s_finite.S: Likewise.
68356
68357 2012-05-22  H.J. Lu  <hongjiu.lu@intel.com>
68358
68359         * sysdeps/unix/sysv/linux/x86_64/bits/fcntl.h: Don't include
68360         <bits/wordsize.h>.  Check __x86_64__ instead of __WORDSIZE.
68361
68362         * sysdeps/unix/sysv/linux/i386/sysdep.h (SYSCALL_ERROR_HANDLER):
68363         Use "neg %eax".
68364
68365         * time/mktime.c: Update copyright years.
68366
68367 2012-05-22  Paul Eggert  <eggert@cs.ucla.edu>
68368
68369         mktime: merge comment-quoting-style change from gnulib
68370         * time/mktime.c: Quote 'like this' in comments.
68371         The GNU coding standards suggest that we no longer quote `like this',
68372         as "`" and "'" are typically rendered asymmetrically nowadays.
68373         The typical gnulib style is to quote 'like this' when quoting
68374         code, and "like this" when quoting English.
68375
68376         * time/mktime.c (compile-command): Add "-I.".
68377
68378         mktime: merge mktime-internal.h change from gnulib
68379         * time/mktime.c [!_LIBC]: Include "mktime-internal.h".
68380
68381         mktime: merge time_r change from gnulib
68382         * time/mktime.c [!_LIBC]: Do not include "time_r.h".
68383
68384         mktime: merge DEBUG change from gnulib
68385         * time/mktime.c (mktime) [DEBUG]: #undef before #define-ing, in
68386         case system <time.h> has a #define.
68387
68388         mktime: merge <sys/types.h> change from gnulib
68389         * time/mktime.c: Do not include <sys/types.h>; no longer needed,
68390         since <time.t> is now guaranteed to define time_t.
68391
68392         mktime: merge HAVE_CONFIG_H change from gnulib
68393         * time/mktime.c: Include <config.h> if !_LIBC, not if HAVE_CONFIG_H.
68394
68395 2012-05-22  H.J. Lu  <hongjiu.lu@intel.com>
68396
68397         * sysdeps/unix/sysv/linux/x86_64/sysdep.h (SYSCALL_SET_ERRNO):
68398         Use "neg %eax".
68399
68400         * sysdeps/unix/sysv/linux/bits/resource.h (RLIM_INFINITY): Use
68401         __rlim_t cast.
68402         (struct rusage): Use anonymous union to pad each field to
68403         __syscall_slong_t.
68404
68405 2012-05-21  David S. Miller  <davem@davemloft.net>
68406
68407         * Makefules (o-iterator): Remove .s cases.
68408         (compile-command.s): Delete.
68409         (COMPILE.s): Delete.
68410         * sysdeps/unix/make-syscalls.sh: Remove .s file tests.
68411
68412 2012-05-21  Joseph Myers  <joseph@codesourcery.com>
68413
68414         * configure.in (libc_cv_predef_stack_protector): Only consider
68415         "foobar" and "__stack_chk_fail" lines in libc_undefs.
68416         * configure: Regenerated.
68417
68418 2012-05-21  H.J. Lu  <hongjiu.lu@intel.com>
68419
68420         * sysdeps/unix/sysv/linux/x86_64/sysdep.h (SYSCALL_SET_ERRNO):
68421         New macro.  Use R*LP on int and pointer.
68422         (SYSCALL_ERROR_HANDLER): Use SYSCALL_SET_ERRNO.
68423         * sysdeps/unix/sysv/linux/x86_64/x32/lseek.S: New file.
68424         * sysdeps/unix/sysv/linux/x86_64/x32/llseek.S: Likewise.
68425         * sysdeps/unix/sysv/linux/x86_64/x32/sysdep.h: Likewise.
68426
68427         * sysdeps/gnu/bits/utmp.h (struct lastlog): Check
68428         [__WORDSIZE_TIME64_COMPAT32] instead of
68429         [__WORDSIZE == 64 && __WORDSIZE_COMPAT32].
68430         (struct utmp): Likewise.
68431         * sysdeps/gnu/bits/utmpx.h (struct utmpx): Likewise.
68432         * sysdeps/powerpc/powerpc32/bits/wordsize.h (__WORDSIZE_COMPAT32):
68433         Renamed to ...
68434         (__WORDSIZE_TIME64_COMPAT32): This.
68435         * sysdeps/powerpc/powerpc64/bits/wordsize.h: Likewise.
68436         * sysdeps/sparc/sparc32/bits/wordsize.h: Likewise.
68437         * sysdeps/sparc/sparc64/bits/wordsize.h: Likewise.
68438         * sysdeps/unix/sysv/linux/powerpc/bits/wordsize.h: Likewise.
68439         * sysdeps/x86_64/bits/wordsize.h (__WORDSIZE_COMPAT32): Removed.
68440         (__WORDSIZE_TIME64_COMPAT32): New macro.
68441
68442 2012-05-21  Andreas Jaeger  <aj@suse.de>
68443
68444         * sysdeps/i386/i686/multiarch/wcschr-c.c: Redefine libc_hidden_def
68445         only if [SHARED]. Add prototype for __wcschr_ia32.
68446
68447 2012-05-21  Roland McGrath  <roland@hack.frob.com>
68448
68449         * sysdeps/x86_64/setjmp.S [PTR_MANGLE] [__ILP32__]: Preserve high bits
68450         of %rbp unmolested in the jmp_buf while mangling the low bits.
68451         * sysdeps/x86_64/__longjmp.S [PTR_DEMANGLE] [__ILP32__]: Restore the
68452         unmolested high bits of %rbp while demangling the low bits.
68453         * sysdeps/unix/sysv/linux/x86_64/____longjmp_chk.S: Likewise.
68454
68455 2012-05-21  Andreas Jaeger  <aj@suse.de>
68456
68457         * include/shlib-compat.h (libc_sunrpc_symbol): New macro.
68458         * sunrpc/svc_simple.c: Use it for registerrpc.
68459         * sunrpc/xcrypt.c: Use it for passwd2des.
68460
68461         * malloc/malloc.c: Include shlib-compat.h for SHLIB_COMPAT.
68462
68463 2012-05-21  H.J. Lu  <hongjiu.lu@intel.com>
68464
68465         * sysdeps/unix/sysv/linux/bits/statvfs.h (_STATVFSBUF_F_UNUSED):
68466         Don't define if [__SYSCALL_WORDSIZE != 32].
68467         * sysdeps/x86_64/bits/wordsize.h (__SYSCALL_WORDSIZE):
68468         New macro.
68469
68470 2012-05-21  Bruno Haible  <bruno@clisp.org>
68471             Andreas Jaeger  <aj@suse.de>
68472
68473         [BZ #13691], Revert breakage of iconv() converter for TCVN-5712.
68474         * iconvdata/tcvn5712-1.c (BODY for FROM_LOOP): Don't consider
68475         inptr and inend for must_buffer_ch.
68476         * wcsmbs/tst-mbsnrtowcs.c: Remove file.
68477         * wcsmbs/Makefile (tests): Remove tst-mbsnrtowcs.
68478         * stdio-common/Makefile (tests): Remove bug15.
68479         (bug15-ENV): Remove macro.
68480         * stdio-common/bug15.c: Remove, we do not support vi_VN.TCVN5712-1
68481         anymore.
68482
68483 2012-05-19  Andreas Jaeger  <aj@suse.de>
68484             Roland McGrath  <roland@hack.frob.com>
68485
68486         * manual/contrib.texi: Completely rewritten. It contains now an
68487         alphabetical list of contributors and their contributions.
68488
68489 2012-05-21  Richard Henderson  <rth@twiddle.net>
68490
68491         * misc/getauxval.c (__getauxval): Use unsigned long int.
68492         * misc/sys/auxv.h: Include <sys/cdefs.h>.
68493         (getauxval): Use unsigned long int.
68494
68495 2012-05-21  H.J. Lu  <hongjiu.lu@intel.com>
68496
68497         * sysdeps/unix/sysv/linux/x86_64/x32/syscalls.list: New file.
68498
68499 2012-05-21  Roland McGrath  <roland@hack.frob.com>
68500
68501         * malloc/malloc.c [!SHLIB_COMPAT (libc, GLIBC_2_0, GLIBC_2_16)]
68502         (MALLOC_ALIGNMENT): Set it to the greater of 2 * SIZE_SZ and
68503         __alignof__ (long double).
68504
68505 2012-05-21  Adhemerval Zanella  <azanella@linux.vnet.ibm.com>
68506
68507         * sysdeps/powerpc/fpu/libm-test-ulps: Update.
68508
68509 2012-05-20  Richard Henderson  <rth@twiddle.net>
68510
68511         * misc/getauxval.c: New file.
68512         * misc/sys/auxv.h: New file.
68513         * misc/Makefile (headers): Add sys/auxv.h, bits/hwcap.h.
68514         (routines): Add getauxval.
68515         * misc/Versions (GLIBC_2.16): Add __getauxval, getauxval.
68516         * sysdeps/generic/ldsodefs.h (struct rtld_global_ro): Add _dl_auxv.
68517         * elf/dl-sysdep.c (_dl_auxv): Remove.
68518         (_dl_sysdep_start, _dl_show_auxv): Use GLRO to access _dl_auxv.
68519         * elf/dl-support.c (_dl_auxv): New variable.
68520         (_dl_aux_init): Initialize it.
68521         * manual/startup.texi (Auxiliary Vector): New node.
68522         * sysdeps/generic/bits/hwcap.h: New file.
68523         * sysdeps/powerpc/bits/hwcap.h: New file, split out from ...
68524         * sysdeps/powerpc/sysdep.h: ... here.  Include it.
68525         * sysdeps/sparc/bits/hwcap.h: New file, split out from ...
68526         * sysdeps/sparc/sysdep.h: ... here.  Include it.
68527         * sysdeps/unix/sysv/linux/s390/bits/hwcap.h: New file.
68528         * sysdeps/unix/sysv/linux/i386/nptl/libc.abilist: Update.
68529         * sysdeps/unix/sysv/linux/powerpc/powerpc32/fpu/nptl/libc.abilist:
68530         Update.
68531         * sysdeps/unix/sysv/linux/powerpc/powerpc64/nptl/libc.abilist: Update.
68532         * sysdeps/unix/sysv/linux/s390/s390-32/nptl/libc.abilist: Update.
68533         * sysdeps/unix/sysv/linux/s390/s390-64/nptl/libc.abilist: Update.
68534         * sysdeps/unix/sysv/linux/sh/nptl/libc.abilist: Update.
68535         * sysdeps/unix/sysv/linux/sparc/sparc32/nptl/libc.abilist: Update.
68536         * sysdeps/unix/sysv/linux/sparc/sparc32/nptl/libc.abilist: Update.
68537         * sysdeps/unix/sysv/linux/sparc/sparc64/nptl/libc.abilist: Update.
68538         * sysdeps/unix/sysv/linux/x86_64/64/nptl/libc.abilist: Update.
68539
68540 2012-05-19  Adhemerval Zanella  <azanella@linux.vnet.ibm.com>
68541
68542         * sysdeps/powerpc/fpu/libm-test-ulps: Update.
68543
68544 2012-05-19  David S. Miller  <davem@davemloft.net>
68545
68546         * sysdeps/sparc/fpu/libm-test-ulps: Update.
68547
68548 2012-05-19  Joseph Myers  <joseph@codesourcery.com>
68549
68550         [BZ #14123]
68551         * math/s_ccosh.c: Include <float.h>
68552         (__ccosh): Avoid internal overflow calculating sinh and cosh
68553         values before multiplying by sin and cos values.
68554         * math/s_ccoshf.c: Likewise.
68555         * math/s_ccoshl.c: Likewise.
68556         * math/s_csin.c: Likewise.
68557         * math/s_csinf.c: Likewise.
68558         * math/s_csinl.c: Likewise.
68559         * math/s_csinh.c: Likewise.
68560         * math/s_csinhf.c: Likewise.
68561         * math/s_csinhl.c: Likewise.
68562         * math/libm-test.inc (ccos_test): Add more tests.
68563         (ccosh_test): Likewise.
68564         (csin_test): Likewise.
68565         (csinh_test): Likewise.
68566         * sysdeps/i386/fpu/libm-test-ulps: Update.
68567         * sysdeps/x86_64/fpu/libm-test-ulps: Likewise.
68568
68569 2012-05-19  H.J. Lu  <hongjiu.lu@intel.com>
68570
68571         * sysdeps/unix/sysv/linux/wordsize-64/preadv.c: New file.
68572         * sysdeps/unix/sysv/linux/wordsize-64/pwritev.c: Likewise.
68573
68574         * sysdeps/x86_64/x32/_itoa.h: Add comment.
68575
68576 2012-05-19  Joseph Myers  <joseph@codesourcery.com>
68577
68578         * sysdeps/powerpc/soft-fp/Makefile: Remove file.
68579         * sysdeps/powerpc/soft-fp/Subdirs: Likewise.
68580         * sysdeps/powerpc/soft-fp/Versions: Likewise.
68581         * sysdeps/powerpc/soft-fp/q_add.c: Likewise.
68582         * sysdeps/powerpc/soft-fp/q_cmp.c: Likewise.
68583         * sysdeps/powerpc/soft-fp/q_cmpe.c: Likewise.
68584         * sysdeps/powerpc/soft-fp/q_div.c: Likewise.
68585         * sysdeps/powerpc/soft-fp/q_dtoq.c: Likewise.
68586         * sysdeps/powerpc/soft-fp/q_feq.c: Likewise.
68587         * sysdeps/powerpc/soft-fp/q_fge.c: Likewise.
68588         * sysdeps/powerpc/soft-fp/q_fgt.c: Likewise.
68589         * sysdeps/powerpc/soft-fp/q_fle.c: Likewise.
68590         * sysdeps/powerpc/soft-fp/q_flt.c: Likewise.
68591         * sysdeps/powerpc/soft-fp/q_fne.c: Likewise.
68592         * sysdeps/powerpc/soft-fp/q_itoq.c: Likewise.
68593         * sysdeps/powerpc/soft-fp/q_lltoq.c: Likewise.
68594         * sysdeps/powerpc/soft-fp/q_mul.c: Likewise.
68595         * sysdeps/powerpc/soft-fp/q_neg.c: Likewise.
68596         * sysdeps/powerpc/soft-fp/q_qtod.c: Likewise.
68597         * sysdeps/powerpc/soft-fp/q_qtoi.c: Likewise.
68598         * sysdeps/powerpc/soft-fp/q_qtoll.c: Likewise.
68599         * sysdeps/powerpc/soft-fp/q_qtos.c: Likewise.
68600         * sysdeps/powerpc/soft-fp/q_qtou.c: Likewise.
68601         * sysdeps/powerpc/soft-fp/q_qtoull.c: Likewise.
68602         * sysdeps/powerpc/soft-fp/q_sqrt.c: Likewise.
68603         * sysdeps/powerpc/soft-fp/q_stoq.c: Likewise.
68604         * sysdeps/powerpc/soft-fp/q_sub.c: Likewise.
68605         * sysdeps/powerpc/soft-fp/q_ulltoq.c: Likewise.
68606         * sysdeps/powerpc/soft-fp/q_util.c: Likewise.
68607         * sysdeps/powerpc/soft-fp/q_utoq.c: Likewise.
68608         * sysdeps/powerpc/soft-fp/sfp-machine.h: Likewise.
68609
68610 2012-05-18  Andreas Jaeger  <aj@suse.de>
68611
68612         * csu/.gitignore: Delete.
68613
68614 2012-05-18  H.J. Lu  <hongjiu.lu@intel.com>
68615
68616         * sysdeps/unix/sysv/linux/bits/timex.h: Include <bits/types.h>.
68617         (timex): Use __syscall_slong_t.
68618
68619 2012-05-18  Andreas Jaeger  <aj@suse.de>
68620             Carlos O'Donell  <carlos_odonell@mentor.com>
68621
68622         * manual/install.texi (Configuring and compiling): Update
68623         description about files modified in the source directory.
68624         * INSTALL: Regenerated.
68625
68626 2012-05-18  H.J. Lu  <hongjiu.lu@intel.com>
68627
68628         * sysdeps/unix/x86_64/sysdep.S: Use RAX_LP to access return
68629         value.  Use "or" to set return value to -1.
68630         * sysdeps/unix/sysv/linux/x86_64/sysdep.S: Use RAX_LP to
68631         negate return value.
68632
68633 2012-05-18  Tulio Magno Quites Machado Filho  <tuliom@linux.vnet.ibm.com>
68634
68635         * sysdeps/powerpc/powerpc32/power4/Makefile (CFLAGS-wordcopy.c)
68636         (CFLAGS-memmove.c): remove -ftree-loop-linear which causes a build
68637         failure if the compiler has Graphite support disabled.
68638         * sysdeps/powerpc/powerpc32/power4/fpu/Makefile (CFLAGS-mpa.c):
68639         Likewise.
68640         * sysdeps/powerpc/powerpc64/power4/Makefile (CFLAGS-wordcopy.c)
68641         (CFLAGS-memmove.c): Likewise.
68642         * sysdeps/powerpc/powerpc64/power4/fpu/Makefile (CFLAGS-mpa.c):
68643         Likewise.
68644
68645 2012-05-18  H.J. Lu  <hongjiu.lu@intel.com>
68646
68647         * sysdeps/x86_64/x32/_itoa.h: New file.
68648
68649         * sysdeps/unix/sysv/linux/getdents.c (__GETDENTS): Use
68650         getdents system call only if kernel and user dirents have the
68651         same d_ino and d_off.
68652
68653         * stdio-common/_itoa.c: Check _ITOA_NEEDED instead of
68654         LLONG_MAX != LONG_MAX.
68655         (_itoa_word): Use _ITOA_WORD_TYPE on value.
68656         (_fitoa_word): Likewise.
68657
68658         * sysdeps/unix/sysv/linux/x86_64/sigcontextinfo.h: Fold copyright
68659         years.
68660         * sysdeps/unix/sysv/linux/x86_64/sys/debugreg.h: Likewise.
68661         * sysdeps/unix/sysv/linux/x86_64/sys/procfs.h: Likewise.
68662         * sysdeps/unix/sysv/linux/x86_64/sys/reg.h: Likewise.
68663
68664         * sysdeps/unix/sysv/linux/x86_64/bits/sigcontext.h: Don't
68665         include <bits/wordsize.h>.  Check __x86_64__ instead of
68666         __WORDSIZE.
68667         (sigcontext): Use "__uint64_t" instead of "unsigned long int"
68668         if __x86_64__ is defined.  Use anonymous union on fpstate.
68669
68670         * sysdeps/unix/sysv/linux/x86_64/sys/user.h (user): Use
68671         anonymous union.
68672
68673 2012-05-18  Andreas Schwab  <schwab@linux-m68k.org>
68674
68675         * sysdeps/powerpc/powerpc32/dl-start.S (_dl_start_user): Use
68676         INTUSE on _dl_argv, and _rtld_local instead of _rtld_global.
68677         * sysdeps/powerpc/powerpc32/fpu/__longjmp-common.S [IS_IN_rtld]:
68678         Refer to _rtld_local_ro instead of _rtld_global_ro.
68679         * sysdeps/powerpc/powerpc32/fpu/setjmp-common.S [IS_IN_rtld]:
68680         Likewise.
68681         * sysdeps/powerpc/powerpc64/__longjmp-common.S [IS_IN_rtld]:
68682         Likewise.
68683         * sysdeps/powerpc/powerpc64/setjmp-common.S [IS_IN_rtld]:
68684         Likewise.
68685         * sysdeps/powerpc/powerpc64/dl-trampoline.S [SHARED]: Likewise.
68686         * sysdeps/powerpc/powerpc64/dl-machine.h: Use _rtld_local instead
68687         of _rtld_global, and rtld_progname instead of _dl_argv[0].
68688
68689         [BZ #10882]
68690         * sysdeps/powerpc/powerpc32/dl-machine.c
68691         (__elf_machine_runtime_setup) [PROF]: Don't reference
68692         _dl_prof_resolve.
68693
68694 2012-05-18  Andreas Jaeger  <aj@suse.de>
68695
68696         * sysdeps/x86_64/fpu/bits/mathinline.h (lrintf): Make inline
68697         function only available for GCCs before 3.4 since GCC 3.4
68698         introduced a builtin.
68699         (lrint): Likewise.
68700         (llrintf): Likewise.
68701         (llrint): Likewise.
68702         (fmaxf): Likewise.
68703         (fmax): Likewise.
68704         (fminf): Likewise.
68705         (fmin): Likewise.
68706         (rint): Likewise.
68707         (rintf): Likewise.
68708         (nearbyint): Likewise.
68709         (nearbyintf): Likewise.
68710         (ceil): Likewise.
68711         (ceilf): Likewise.
68712         (floor): Likewise.
68713         (floorf): Likewise.
68714
68715 2012-05-17  H.J. Lu  <hongjiu.lu@intel.com>
68716
68717         * sysdeps/unix/sysv/linux/pselect.c (data): Use __syscall_ulong_t
68718         on both fields and cast pointer to __syscall_ulong_t.
68719
68720         * bits/types.h (__fsword_t): New type.
68721         * bits/typesizes.h (__FSWORD_T_TYPE): New macro.
68722         sysdeps/mach/hurd/bits/typesizes.h (__FSWORD_T_TYPE): Likewise.
68723         * sysdeps/unix/bsd/bsd4.4/freebsd/bits/typesizes.h
68724         (__FSWORD_T_TYPE): Likewise.
68725         * sysdeps/unix/sysv/linux/s390/bits/typesizes.h
68726         (__FSWORD_T_TYPE): Likewise.
68727         * sysdeps/unix/sysv/linux/sparc/bits/typesizes.h
68728         (__FSWORD_T_TYPE): Likewise.
68729         * sysdeps/unix/sysv/linux/x86_64/bits/typesizes.h
68730         (__FSWORD_T_TYPE): Likewise.
68731         * sysdeps/unix/sysv/linux/bits/statfs.h (statfs): Replace
68732         __SWORD_TYPE with __fsword_t.
68733         (statfs64): Likewise.
68734
68735 2012-05-17  David S. Miller  <davem@davemloft.net>
68736
68737         * crypt/sha512c-test.c (TIMEOUT): Increase to 32.
68738
68739 2012-05-17  Andreas Jaeger  <aj@suse.de>
68740
68741         * elf/tst-relsort1.c (do_test): Fix function declaration to avoid
68742         warning.
68743
68744 2012-05-17  H.J. Lu  <hongjiu.lu@intel.com>
68745
68746         * sysdeps/x86_64/tst-mallocalign1.c (test): Cast to unsigned long.
68747
68748 2012-05-17  Andreas Jaeger  <aj@suse.de>
68749
68750         * sysdeps/i386/dl-machine.h (elf_machine_rel): Declare refsym only
68751         when it is used.
68752
68753 2012-05-17  Chris Metcalf  <cmetcalf@tilera.com>
68754
68755         * stdio-common/bug22.c (TIMEOUT): Bump up from 30 to 60.
68756
68757 2012-05-17  H.J. Lu  <hongjiu.lu@intel.com>
68758
68759         * sysdeps/x86_64/Makefile (tests): Add tst-mallocalign1.
68760         * sysdeps/x86_64/tst-mallocalign1.c: New file.
68761
68762 2012-05-17  Andreas Jaeger  <aj@suse.de>
68763             Carlos O'Donell  <carlos_odonell@mentor.com>
68764
68765         [BZ #14059]
68766         * sysdeps/x86_64/multiarch/init-arch.h
68767         (bit_YMM_Usable): Rename to...
68768         (bit_AVX_Usable): ... this.
68769         (bit_FMA4_Usable): New macro.
68770         (bit_XMM_state): New macro.
68771         (bit_YMM_state): New macro.
68772         [__ASSEMBLER__] (index_YMM_Usable): Rename to...
68773         [__ASSEMBLER__] (index_AVX_Usable): ... this.
68774         [__ASSEMBLER__] (index_FMA4_Usable): New macro.
68775         (CPUID_OSXSAVE): New macro.
68776         (CPUID_AVX): New macro.
68777         (CPUID_FMA4): New macro.
68778         (index_YMM_Usable): Rename to...
68779         (index_AVX_Usable): ... this.
68780         (HAS_AVX): Use HAS_ARCH_FEATURE.
68781         (HAS_FMA4): Likewise.
68782         (HAS_YMM_USABLE): Remove.
68783         * sysdeps/x86_64/multiarch/init-arch.c (__init_cpu_features):
68784         Enable AVX or FMA4 IFF YMM and XMM states are usable and the features
68785         are present.
68786         * sysdeps/x86_64/multiarch/strcmp.S: Use bit_AVX_Usable.
68787         * sysdeps/i386/i686/multiarch/Makefile: Add test-multiarch to tests.
68788         * sysdeps/x86_64/multiarch/Makefile: Likewise.
68789         * sysdeps/i386/i686/multiarch/test-multiarch.c: New file.
68790         * sysdeps/x86_64/multiarch/test-multiarch.c: New file.
68791
68792 2012-05-17  Chris Metcalf  <cmetcalf@tilera.com>
68793
68794         * math/libm-test.c: Support platforms without multiple rounding modes.
68795         * math/bug-nextafter.c: Support platforms without FP exceptions.
68796         * math/bug-nexttoward.c: Likewise.
68797         * math/test-fenv.c: Likewise.
68798         * math/test-misc.c: Likewise.
68799         * stdlib/bug-getcontext.c: Likewise.
68800
68801 2012-05-17  Andreas Jaeger  <aj@suse.de>
68802
68803         * manual/examples/search.c (critter_cmp): Change signature to
68804         avoid warnings.
68805         * manual/string.texi (Collation Functions): Likewise.
68806
68807 2012-05-16  H.J. Lu  <hongjiu.lu@intel.com>
68808
68809         * bits/types.h: Fold copyright years.
68810         * bits/typesizes.h: Likewise.
68811         * sysdeps/mach/hurd/bits/typesizes.h: Likewise.
68812         * sysdeps/unix/bsd/bsd4.4/freebsd/bits/typesizes.h: Likewise.
68813         * sysdeps/unix/sysv/linux/s390/bits/typesizes.h: Likewise.
68814         * sysdeps/unix/sysv/linux/sparc/bits/typesizes.h: Likewise.
68815         * time/time.h: Likewise.
68816
68817 2012-05-16  Paul Pluzhnikov  <ppluzhnikov@google.com>
68818
68819         [BZ #208]
68820         * malloc.c (int_mallinfo): Add parameter to accumulate statistics
68821         in instead of returning them.  Return void.
68822         (__libc_mallinfo): Accumulate over all arenas.
68823         (__malloc_stats): Adjust for change in int_mallinfo interface.
68824
68825 2012-05-16  Roland McGrath  <roland@hack.frob.com>
68826
68827         [BZ #10375]
68828         * configure.in (NM): Add AC_CHECK_TOOL for it.
68829         (libc_extra_cflags): New substituted variable.
68830         Check for -fstack-protector being used implicitly.
68831         * configure: Regenerated.
68832         * config.make.in (config-extra-cflags): New variable,
68833         gets @libc_extra_cflags@.
68834         * Makeconfig (CFLAGS): Add $(config-extra-cflags) near the front.
68835
68836         [BZ #10375]
68837         * configure.in: Check for _FORTIFY_SOURCE being predefined.
68838         (CPPUNDEFS): New substituted variable; add -U_FORTIFY_SOURCE if needed.
68839         * configure: Regenerated.
68840         * config.make.in (CPPUNDEFS): New substituted variable.
68841         * Makeconfig (CPPFLAGS): Put $(CPPUNDEFS) at the beginning.
68842         * Makerules ($(stdio_lim:h=st)): Use $(CPPUNDEFS).
68843         * time/ctime.c: Don't #undef __OPTIMIZE__ and ctime.
68844
68845 2012-05-16  H.J. Lu  <hongjiu.lu@intel.com>
68846
68847         * sysdeps/unix/sysv/linux/bits/mqueue.h: Include <bits/types.h>.
68848         (mq_attr): Use __syscall_slong_t.
68849
68850 2012-05-16  H.J. Lu  <hongjiu.lu@intel.com>
68851
68852         * sysdeps/unix/sysv/linux/x86_64/bits/stat.h (_STAT_VER_SVR4):
68853         Check __x86_64__ instead of __WORDSIZE.
68854         (_STAT_VER_LINUX): Likewise.
68855         (stat): Check __x86_64__ instead of __WORDSIZE.  Use
68856         __syscall_ulong_t and __syscall_slong_t.
68857         (stat64): Likewise.
68858
68859 2012-05-16  H.J. Lu  <hongjiu.lu@intel.com>
68860
68861         * sysdeps/unix/sysv/linux/x86_64/bits/typesizes.h: New file.
68862
68863 2012-05-16  H.J. Lu  <hongjiu.lu@intel.com>
68864
68865         * sysdeps/unix/sysv/linux/x86_64/bits/ipctypes.h: New file.
68866
68867 2012-05-16  H.J. Lu  <hongjiu.lu@intel.com>
68868
68869         * sysdeps/unix/sysv/linux/bits/ipc.h (ipc_perm): Use
68870         __syscall_ulong_t.
68871
68872         * sysdeps/unix/sysv/linux/x86_64/sys/ucontext.h: Don't
68873         include <bits/wordsize.h>.  Check __x86_64__ instead of
68874         __WORDSIZE.
68875         (greg_t): Use "__extension__ long long int" if __x86_64__ is
68876         defined.
68877         (mcontext_t): Replace "unsigned long" with "unsigned long long".
68878
68879         * sysdeps/unix/sysv/linux/x86_64/sys/user.h: Don't
68880         include <bits/wordsize.h>.  Check __x86_64__ instead of
68881         __WORDSIZE.
68882         (user_regs_struct): Use "__extension__ unsigned long long"
68883         instead of "unsigned long" if __x86_64__ is defined.
68884         (user): Likewise.  Pad after pointer field if __ILP32__ is
68885         defined.
68886
68887 2012-05-16  Joseph Myers  <joseph@codesourcery.com>
68888
68889         * configure.in (makeinfo): Require version 4.5 or later.  Allow
68890         versions 5 to 9.
68891         * configure: Regenerated.
68892         * manual/install.texi (texinfo): Increase version requirement to
68893         4.5 or later.
68894         * INSTALL: Regenerated.
68895
68896         * include/stdc-predef.h (__STDC_ISO_10646__): Increase to 201103L.
68897
68898 2012-05-16  H.J. Lu  <hongjiu.lu@intel.com>
68899
68900         * sysdeps/x86_64/x32/gmp-mparam.h: New file.
68901
68902         * sysdeps/x86_64/x32/ffs.c: New file.
68903
68904         * sysdeps/unix/sysv/linux/x86_64/bits/shm.h (shmatt_t): Use
68905         __syscall_ulong_t.
68906         (shmid_ds): Add __unused1 and __unused2 only if __x86_64__ isn't
68907         defined.  Use __syscall_ulong_t.
68908         (shminfo): Use __syscall_ulong_t.
68909         (shm_info): Likewise.
68910
68911         * sysdeps/unix/sysv/linux/x86_64/bits/sem.h (semid_ds): Use
68912         __syscall_ulong_t.
68913
68914         * sysdeps/unix/sysv/linux/x86_64/bits/msq.h: Don't include
68915         <bits/wordsize.h>.
68916         (msgqnum_t): Use __syscall_ulong_t.
68917         (msglen_t): Likewise.
68918         (msqid_ds): Check __x86_64__ instead of __WORDSIZE.  Use
68919         __syscall_ulong_t.
68920
68921         * sysdeps/unix/sysv/linux/x86_64/bits/a.out.h: Don't include
68922         <bits/wordsize.h>.  Check __x86_64__ instead of __WORDSIZE.
68923
68924         * sysdeps/unix/sysv/linux/x86_64/bits/siginfo.h: New file.
68925
68926         * sysdeps/x86_64/x32/divdi3.c: New dummy file.
68927         * sysdeps/x86_64/x32/symbol-hacks.h: Likewise.
68928
68929         * sysvipc/sys/msg.h (msgbuf): Replace long int with
68930         __syscall_slong_t.
68931
68932         * sysdeps/unix/sysv/linux/x86_64/sys/reg.h: Don't
68933         include <bits/wordsize.h>.  Check __x86_64__ instead of
68934         __WORDSIZE.
68935
68936         * sysdeps/unix/sysv/linux/x86_64/sys/procfs.h (elf_greg_t): Use
68937         "unsigned long long int" if __x86_64__ is defined.
68938         (elf_fpregset_t): Check __x86_64__ instead of __WORDSIZE.
68939
68940         * sysdeps/unix/sysv/linux/x86_64/sys/debugreg.h: Don't include
68941         <bits/wordsize.h>.  Check __x86_64__ instead of __WORDSIZE.
68942         (DR_CONTROL_RESERVED): Use ULL instead of UL suffix.
68943
68944         * sysdeps/unix/sysv/linux/x86_64/sigcontextinfo.h: Include
68945         <stdint.h>.
68946         (GET_PC): Cast to uintptr_t first.
68947         (GET_FRAME): Likewise.
68948         (GET_STACK): Likewise.
68949
68950         * sysdeps/unix/sysv/linux/x86_64/x32/alphasort.c: New file.
68951         * sysdeps/unix/sysv/linux/x86_64/x32/alphasort64.c: Likewise.
68952         * sysdeps/unix/sysv/linux/x86_64/x32/fseeko.c: Likewise.
68953         * sysdeps/unix/sysv/linux/x86_64/x32/fseeko64.c: Likewise.
68954         * sysdeps/unix/sysv/linux/x86_64/x32/ftello.c: Likewise.
68955         * sysdeps/unix/sysv/linux/x86_64/x32/ftello64.c: Likewise.
68956         * sysdeps/unix/sysv/linux/x86_64/x32/ftw.c: Likewise.
68957         * sysdeps/unix/sysv/linux/x86_64/x32/ftw64.c: Likewise.
68958         * sysdeps/unix/sysv/linux/x86_64/x32/glob.c: Likewise.
68959         * sysdeps/unix/sysv/linux/x86_64/x32/iofgetpos.c: Likewise.
68960         * sysdeps/unix/sysv/linux/x86_64/x32/iofgetpos64.c: Likewise.
68961         * sysdeps/unix/sysv/linux/x86_64/x32/iofopen.c: Likewise.
68962         * sysdeps/unix/sysv/linux/x86_64/x32/iofopen64.c: Likewise.
68963         * sysdeps/unix/sysv/linux/x86_64/x32/iofsetpos.c: Likewise.
68964         * sysdeps/unix/sysv/linux/x86_64/x32/iofsetpos64.c: Likewise.
68965         * sysdeps/unix/sysv/linux/x86_64/x32/lockf.c: Likewise.
68966         * sysdeps/unix/sysv/linux/x86_64/x32/lockf64.c: Likewise.
68967         * sysdeps/unix/sysv/linux/x86_64/x32/mkostemp.c: Likewise.
68968         * sysdeps/unix/sysv/linux/x86_64/x32/mkostemp64.c: Likewise.
68969         * sysdeps/unix/sysv/linux/x86_64/x32/mkstemp.c: Likewise.
68970         * sysdeps/unix/sysv/linux/x86_64/x32/mkstemp64.c: Likewise.
68971         * sysdeps/unix/sysv/linux/x86_64/x32/scandir.c: Likewise.
68972         * sysdeps/unix/sysv/linux/x86_64/x32/scandir64.c: Likewise.
68973         * sysdeps/unix/sysv/linux/x86_64/x32/scandirat.c: Likewise.
68974         * sysdeps/unix/sysv/linux/x86_64/x32/scandirat64.c: Likewise.
68975         * sysdeps/unix/sysv/linux/x86_64/x32/tmpfile.c: Likewise.
68976         * sysdeps/unix/sysv/linux/x86_64/x32/tmpfile64.c: Likewise.
68977         * sysdeps/unix/sysv/linux/x86_64/x32/versionsort.c: Likewise.
68978         * sysdeps/unix/sysv/linux/x86_64/x32/versionsort64.c: Likewise.
68979
68980 2012-05-16  Andreas Schwab  <schwab@linux-m68k.org>
68981
68982         * Makerules (+depfiles): Also collect depfiles from .oS in
68983         $(extra-objs).
68984         * sysdeps/ieee754/ldbl-opt/Makefile (extra-objs): Add $(addsuffix
68985         .oS, $(libnldbl-routines)).
68986
68987         * Makerules (native-compile-mkdep-flags): Define.
68988         * sunrpc/Makefile (extra-objs): Add $(addprefix
68989         cross-,$(rpcgen-objs)), don't add $(cross-rpcgen-objs).
68990         ($(cross-rpcgen-objs)): Use $(native-compile-mkdep-flags) instead
68991         of $(compile-mkdep-flags).  Depend on $(before-compile) instead of
68992         calling $(make-target-directory).
68993
68994 2012-05-15  H.J. Lu  <hongjiu.lu@intel.com>
68995
68996         * bits/types.h (__snseconds_t): Removed.
68997         * time/time.h (struct timespec): Replace __snseconds_t with
68998         __syscall_slong_t.
68999         * bits/typesizes.h (__SNSECONDS_T_TYPE): Removed.
69000         * sysdeps/mach/hurd/bits/typesizes.h (__SNSECONDS_T_TYPE):
69001         Likewise.
69002         * sysdeps/unix/bsd/bsd4.4/freebsd/bits/typesizes.h
69003         (__SNSECONDS_T_TYPE): Likewise.
69004         * sysdeps/unix/sysv/linux/s390/bits/typesizes.h
69005         (__SNSECONDS_T_TYPE): Likewise.
69006         * sysdeps/unix/sysv/linux/sparc/bits/typesizes.h
69007         (__SNSECONDS_T_TYPE): Likewise.
69008
69009 2012-05-15  H.J. Lu  <hongjiu.lu@intel.com>
69010
69011         * sysdeps/mach/hurd/bits/typesizes.h
69012         (__SYSCALL_SLONG_TYPE): New macro.
69013         (__SYSCALL_ULONG_TYPE): Likewise.
69014
69015 2012-05-15  H.J. Lu  <hongjiu.lu@intel.com>
69016
69017         * bits/types.h (__syscall_slong_t): New type.
69018         (__syscall_ulong_t): Likewise.
69019
69020         * bits/typesizes.h (__SYSCALL_SLONG_TYPE): New macro.
69021         (__SYSCALL_ULONG_TYPE): Likewise.
69022         * sysdeps/unix/bsd/bsd4.4/freebsd/bits/typesizes.h
69023         (__SYSCALL_SLONG_TYPE): Likewise.
69024         (__SYSCALL_ULONG_TYPE): Likewise.
69025         * sysdeps/unix/sysv/linux/s390/bits/typesizes.h
69026         (__SYSCALL_SLONG_TYPE): Likewise.
69027         (__SYSCALL_ULONG_TYPE): Likewise.
69028         * sysdeps/unix/sysv/linux/sparc/bits/typesizes.h
69029         (__SYSCALL_SLONG_TYPE): Likewise.
69030         (__SYSCALL_ULONG_TYPE): Likewise.
69031
69032 2012-05-15  H.J. Lu  <hongjiu.lu@intel.com>
69033
69034         * sysdeps/unix/sysv/linux/x86_64/Makefile (gen-as-const-headers):
69035         Add sigaltstack-offsets.sym.
69036         * sysdeps/unix/sysv/linux/x86_64/____longjmp_chk.S: Include
69037         <sigaltstack-offsets.h>.
69038         (CALL_FAIL): Use RSP_LP to operate on stack.  Use RDI_LP on
69039         longjmp_msg pointer.
69040         (____longjmp_chk): Use R8_LP and RDX_LP on SP and PC.  Use
69041         R*_LP, sizeSS, oSS_FLAGS, oSS_SP and oSS_SIZE for alternate
69042         signal stack.
69043         * sysdeps/unix/sysv/linux/x86_64/sigaltstack-offsets.sym: New.
69044
69045 2012-05-15  Joseph Myers  <joseph@codesourcery.com>
69046
69047         * elf/stackguard-macros.h: Remove file.
69048         * sysdeps/generic/stackguard-macros.h: New file.
69049         * sysdeps/i386/stackguard-macros.h: Likewise.
69050         * sysdeps/powerpc/powerpc32/stackguard-macros.h: Likewise.
69051         * sysdeps/powerpc/powerpc64/stackguard-macros.h: Likewise.
69052         * sysdeps/s390/s390-32/stackguard-macros.h: Likewise.
69053         * sysdeps/s390/s390-64/stackguard-macros.h: Likewise.
69054         * sysdeps/sparc/sparc32/stackguard-macros.h: Likewise.
69055         * sysdeps/sparc/sparc64/stackguard-macros.h: Likewise.
69056         * sysdeps/x86_64/stackguard-macros.h: Likewise.
69057         * nptl/tst-stackguard1.c: Include <stackguard-macros.h> not
69058         <elf/stackguard-macros.h>.
69059
69060         [BZ #14109]
69061         * sysdeps/unix/sysv/linux/powerpc/sys/procfs.h (elf_vrreg_t): Use
69062         __aligned__ in attribute.
69063         * sysdeps/unix/sysv/linux/s390/sys/ucontext.h (__psw_t): Likewise.
69064         (gregset_t): Likewise.
69065
69066 2012-05-15  H.J. Lu  <hongjiu.lu@intel.com>
69067
69068         * sysdeps/x86_64/Implies (wordsize-64): Moved to ....
69069         * sysdeps/x86_64/64/Implies-after: Here.  New file.
69070         * sysdeps/x86_64/x32/Implies-after: New file.
69071
69072 2012-05-15  H.J. Lu  <hongjiu.lu@intel.com>
69073
69074         * sysdeps/x86_64/dl-trampoline.h: Use R*_LP to pass arguments
69075         and access return value for _dl_profile_fixup.  Use R10_LP to
69076         load frame size.
69077
69078 2012-05-15  H.J. Lu  <hongjiu.lu@intel.com>
69079
69080         * sysdeps/unix/sysv/linux/x86_64/x32/init-first.c: New.
69081
69082 2012-05-15  H.J. Lu  <hongjiu.lu@intel.com>
69083
69084         * sysdeps/x86_64/sysdep.h: Allowed to be include more than once.
69085         * sysdeps/x86_64/x32/sysdep.h: New file.
69086
69087 2012-05-15  H.J. Lu  <hongjiu.lu@intel.com>
69088
69089         * sysdeps/x86_64/__longjmp.S: Use R*_LP on SP and PC.
69090         * sysdeps/x86_64/setjmp.S: Likewise.
69091
69092 2012-05-15  Adhemerval Zanella  <azanella@linux.vnet.ibm.com>
69093
69094         * sysdeps/ieee754/dbl-64/wordsize-64/e_log10.c: New file.
69095         * sysdeps/ieee754/dbl-64/wordsize-64/e_log2.c: New file.
69096         * sysdeps/ieee754/dbl-64/e_log2.c: Fixing indents.
69097         * sysdeps/ieee754/dbl-64/e_log10.c: Likewise and also
69098         remove unused global constant.
69099
69100 2012-05-15  Chris Metcalf  <cmetcalf@tilera.com>
69101
69102         * sysdeps/unix/sysv/linux/getsysstats.c: Remove duplicate
69103         include of <not-cancel.h>.
69104
69105 2012-05-15  Roland McGrath  <roland@hack.frob.com>
69106
69107         * nscd/nscd-client.h (__nscd_acquire_maplock): Fix formatting.
69108
69109 2012-05-15  Jeff Law  <law@redhat.com>
69110             Andreas Jaeger  <aj@suse.de>
69111
69112         [BZ #13594]
69113         * nscd/nscd-client.h (__nscd_acquire_maplock): New function, split
69114         out from...
69115         * nscd/nscd_helper.c (__nscd_get_map_ref): ... here.
69116         * nscd/nscd-client.h: Add __nscd_acquire_maplock.
69117         * nscd/nscd_gethst_r.c (__nscd_get_nl_timestamp): Add locking to
69118         code changing __hst_map_handle.map.
69119
69120 2012-05-15  Roland McGrath  <roland@hack.frob.com>
69121
69122         * configure.in (sysnames): Look for Implies-before and Implies-after
69123         files.
69124         * configure: Regenerated.
69125
69126 2012-05-15  H.J. Lu  <hongjiu.lu@intel.com>
69127
69128         * sysdeps/unix/sysv/linux/x86_64/sigaction.c (RESTORE2): Replace
69129         8-byte data alignment with LP_SIZE alignment.
69130
69131 2012-05-15  H.J. Lu  <hongjiu.lu@intel.com>
69132
69133         * sysdeps/unix/sysv/linux/x86_64/clone.S: Load pointer to TID
69134         into R10_LP.
69135
69136 2012-05-15  H.J. Lu  <hongjiu.lu@intel.com>
69137
69138         * sysdeps/unix/sysv/linux/x86_64/x32/dl-cache.h: New.
69139
69140 2012-05-15  H.J. Lu  <hongjiu.lu@intel.com>
69141
69142         * sysdeps/unix/sysv/linux/x86_64/x32/Makefile: New file.
69143         * sysdeps/unix/sysv/linux/x86_64/x32/getcpu.c: Likewise.
69144         * sysdeps/unix/sysv/linux/x86_64/x32/sched_getcpu-static.c:
69145         Likewise.
69146         * sysdeps/unix/sysv/linux/x86_64/x32/sched_getcpu.S: Likewise.
69147
69148 2012-05-15  H.J. Lu  <hongjiu.lu@intel.com>
69149
69150         * sysdeps/x86_64/stackinfo.h (stackinfo_get_sp): Use RSP_LP.
69151         (stackinfo_sub_sp): Likewise.
69152
69153 2012-05-15  H.J. Lu  <hongjiu.lu@intel.com>
69154
69155         * sysdeps/x86_64/multiarch/strcmp-sse42.S: Load pointers into
69156         RAX_LP.
69157
69158 2012-05-15  H.J. Lu  <hongjiu.lu@intel.com>
69159
69160         * sysdeps/x86_64/multiarch/memcpy-ssse3.S: Load cache sizes
69161         into R*_LP.
69162
69163 2012-05-15  H.J. Lu  <hongjiu.lu@intel.com>
69164
69165         * sysdeps/x86_64/multiarch/memcpy-ssse3-back.S: Load cache
69166         sizes into R*_LP.
69167
69168 2012-05-15  H.J. Lu  <hongjiu.lu@intel.com>
69169
69170         * sysdeps/x86_64/strcmp.S: Load pointers into R*_LP.
69171
69172 2012-05-15  H.J. Lu  <hongjiu.lu@intel.com>
69173
69174         * sysdeps/x86_64/memcpy.S: Load __x86_64_data_cache_size_half
69175         into R11_LP and load __x86_64_shared_cache_size_half into
69176         R8_LP.
69177
69178 2012-05-15  H.J. Lu  <hongjiu.lu@intel.com>
69179
69180         * sysdeps/x86_64/multiarch/memcmp-sse4.S: Load cache size into
69181         R8_LP.
69182
69183 2012-05-15  Adhemerval Zanella  <azanella@linux.vnet.ibm.com>
69184
69185         * sysdeps/powerpc/powerpc32/power7/fpu/s_logb.c: New file. Optimized
69186         logb for POWER7.
69187         * sysdeps/powerpc/powerpc32/power7/fpu/s_logbf.c: New file. Optimized
69188         logbf for POWER7.
69189         * sysdeps/powerpc/powerpc32/power7/fpu/s_logbl.c: New file. Optimized
69190         logbl for POWER7.
69191         * sysdeps/powerpc/powerpc64/power7/fpu/s_logb.c: New file. Use
69192         powerpc32/power7/fpu/s_logb.c via #include.
69193         * sysdeps/powerpc/powerpc64/power7/fpu/s_logbf.c: New file. Use
69194         powerpc32/power7/fpu/s_logbf.c via #include.
69195         * sysdeps/powerpc/powerpc64/power7/fpu/s_logbl.c: New file. Use
69196         powerpc32/power7/fpu/s_logbl.c via #include.
69197
69198 2012-05-15  Joseph Myers  <joseph@codesourcery.com>
69199
69200         * README.libm: Remove file.
69201
69202 2012-05-14  H.J. Lu  <hongjiu.lu@intel.com>
69203
69204         * sysdeps/x86_64/start.S: Simulate popping 4-byte argument
69205         count for x32.  Use R*_LP and omit operand-size suffix.
69206
69207 2012-05-14  H.J. Lu  <hongjiu.lu@intel.com>
69208
69209         * shlib-versions: Move x86_64-.*-linux.* entries to ...
69210         * sysdeps/x86_64/64/shlib-versions: Here.  New file.
69211         * sysdeps/x86_64/x32/shlib-versions: New file.
69212
69213 2012-05-14  Roland McGrath  <roland@hack.frob.com>
69214
69215         * sysdeps/unix/sysv/linux/dl-osinfo.h (dl_fatal): Function removed.
69216         * elf/rtld.c (dl_main) [DL_SYSDEP_OSCHECK]:
69217         Use _dl_fatal_printf instead.
69218
69219 2012-05-14  Joseph Myers  <joseph@codesourcery.com>
69220
69221         * sysdeps/unix/sysv/linux/configure.in (minimum_kernel): Always
69222         set if not set by the user.  Do not allow for being unset.
69223         * sysdeps/unix/sysv/linux/configure: Regenerated.
69224
69225 2012-05-14  H.J. Lu  <hongjiu.lu@intel.com>
69226
69227         * sysdeps/x86_64/dl-machine.h (elf_machine_load_address): Remove
69228         the `q' suffix from lea and replace .quad with ASM_ADDR.
69229
69230 2012-05-14  H.J. Lu  <hongjiu.lu@intel.com>
69231
69232         * sysdeps/unix/sysv/linux/x86_64/sysdep.h (PTR_MANGLE): Remove
69233         the `q' suffix from xor/rol instructions.  Use $2*LP_SIZE+1
69234         instead of $17.
69235         (PTR_DEMANGLE): Likewise.
69236
69237 2012-05-14  H.J. Lu  <hongjiu.lu@intel.com>
69238
69239         * sysdeps/x86_64/sysdep.h (LP_SIZE): New macro.
69240         (LP_OP): Likewise.
69241         (ASM_ADDR): Likewise.
69242         (RAX_LP): Likewise.
69243         (RBP_LP): Likewise.
69244         (RBX_LP): Likewise.
69245         (RCX_LP): Likewise.
69246         (RDI_LP): Likewise.
69247         (RSI_LP): Likewise.
69248         (RSP_LP): Likewise.
69249         (R8_LP): Likewise.
69250         (R9_LP): Likewise.
69251         (R10_LP): Likewise.
69252         (R10_LP): Likewise.
69253         (R11_LP): Likewise.
69254         (R12_LP): Likewise.
69255         (R13_LP): Likewise.
69256         (R14_LP): Likewise.
69257         (R15_LP): Likewise.
69258
69259 2012-05-14  H.J. Lu  <hongjiu.lu@intel.com>
69260
69261         * sysdeps/x86_64/x32/dl-machine.h: New file.
69262
69263 2012-05-14  Andreas Jaeger  <aj@suse.de>
69264
69265         * manual/Makefile (subdir): Remove export of subdir.
69266         (all): Remove target.
69267         (.PHONY): Remove all from list.
69268         (mkinstalldirs): Remove.
69269         (.PHONY): Remove installdirs from list.
69270         ($(inst_infodir)/libc.info): Use make-target-directory.
69271         (installdirs): Remove.
69272         (subdir_%): Remove.
69273         (glibc-targets): Remove.
69274         (lib): Remove.
69275         (stubs): Remove.
69276         ($(objpfx)stubs ../po/manual.pot): Remove.
69277         ($(objpfx)stamp%): Remove.
69278         (make-target-directory): Remove.
69279         (subdir_install): Remove.
69280         (routines): Remove.
69281         (aux): Remove.
69282         (sources): Remove.
69283         (objects): Remove.
69284         (headers): Remove.
69285
69286         [BZ #13750]
69287         * manual/.gitignore: Remove, it's not needed anymore.
69288         * manual/libc-texinfo.sh: Pass OUTDIR as extra argument, create
69289         all files in it.
69290         * manual/Makefile (dvi, pdf, info, html): Depend on files in build
69291         directory.
69292         (texis): Renamed to $(objpfx)texis.
69293         (texis-path): New, contains path to generated files.
69294         (chapters.%): Use texis-path for complete path, add extra argument
69295         libc-texinfo.sh.
69296         (libc.dvi, libc.pdf, libc.info, libc.pdf): Add $(objfpx) as prefix.
69297         (libc/index.html, summary.texi): Add $(objpfx) as prefix.
69298         (summary,texi, stamp-summary): Use complete path of
69299         files. Generate files in build dir.
69300         (dir-add.texi): Build in build dir.
69301         (libm-err.texi,stamp-libm-err): Likewise.
69302         (version.texi, stamp-version): Likewise.
69303         (.%c.texi): Likewise.
69304         (%.info,%.dvi,%.pdf): Add $(objpfx) as prefix, build in build dir.
69305         (mostlyclean): Remove target.
69306         (realclean): Remove target.
69307         (generated): Add new variable with contents from mostlyclean and
69308         realclean, remove entries duplicated in common-mostlyclean, add
69309         stamp-libm-err and stamp-version.
69310         (generated-dirs): Add libc directory.
69311         ($(inst_infodir)/libc.info): Install files from build dir.
69312
69313         * manual/install.texi (Configuring and compiling): Adjust since
69314         the info files are not part of the tar ball anymore.
69315
69316 2012-05-14  Andreas Jaeger  <aj@suse.de>
69317
69318         * sysdeps/unix/sysv/linux/getcwd.c (__getcwd): Remove unused
69319         variable.
69320
69321 2012-05-14  Joseph Myers  <joseph@codesourcery.com>
69322
69323         [BZ #13717]
69324         * sysdeps/unix/sysv/linux/configure.in (arch_minimum_kernel): Set
69325         to 2.2.0 where earlier.
69326         * sysdeps/unix/sysv/linux/configure: Regenerated.
69327         * sysdeps/unix/sysv/linux/getcwd.c [!__ASSUME_GETCWD_SYSCALL]:
69328         Remove conditional code.
69329         [__ASSUME_GETCWD_SYSCALL]: Make code unconditional.
69330         * sysdeps/unix/sysv/linux/i386/chown.c [!__ASSUME_LCHOWN_SYSCALL]:
69331         Remove conditional code.
69332         [!__NR_lchown]: Likewise.
69333         [__ASSUME_LCHOWN_SYSCALL]: Make code unconditional.
69334         [__NR_lchown]: Likewise.
69335         * sysdeps/unix/sysv/linux/i386/fchownat.c (fchownat): Remove
69336         comment referencing __ASSUME_LCHOWN_SYSCALL.
69337         * sysdeps/unix/sysv/linux/i386/sigaction.c
69338         [!__ASSUME_REALTIME_SIGNALS]: Remove conditional code.
69339         [__ASSUME_REALTIME_SIGNALS]: Make code unconditional.
69340         * sysdeps/unix/sysv/linux/if_index.c [!__ASSUME_SIOCGIFNAME]:
69341         Remove conditional code.
69342         [__ASSUME_SIOCGIFNAME ]: Make code unconditional.
69343         (__protocol_available): Remove #if 0 code.
69344         * sysdeps/unix/sysv/linux/ifreq.c [!__ASSUME_SIOCGIFNAME]: Remove
69345         conditional code.
69346         [__ASSUME_SIOCGIFNAME]: Make code unconditional.
69347         * sysdeps/unix/sysv/linux/kernel-features.h
69348         (__ASSUME_GETCWD_SYSCALL): Don't define.
69349         (__ASSUME_REALTIME_SIGNALS): Likewise.
69350         (__ASSUME_PREAD_SYSCALL): Likewise.
69351         (__ASSUME_PWRITE_SYSCALL): Likewise.
69352         (__ASSUME_POLL_SYSCALL): Likewise.
69353         (__ASSUME_LCHOWN_SYSCALL): Likewise.
69354         (__ASSUME_SETRESUID_SYSCALL): Define for all kernel versions for
69355         non-SPARC.
69356         (__ASSUME_SIOCGIFNAME): Don't define.
69357         (__ASSUME_MSG_NOSIGNAL): Likewise.
69358         (__ASSUME_SENDFILE): Define unconditionally.
69359         (__ASSUME_PROC_SELF_FD_SYMLINK): Don't define.
69360         * sysdeps/unix/sysv/linux/poll.c [!__ASSUME_POLL_SYSCALL]: Remove
69361         conditional code.
69362         [__ASSUME_POLL_SYSCALL]: Make code unconditional.
69363         * sysdeps/unix/sysv/linux/powerpc/chown.c (__chown)
69364         [!__ASSUME_LCHOWN_SYSCALL]: Remove conditional code.
69365         (__chown) [__ASSUME_LCHOWN_SYSCALL]: Make code unconditional.
69366         * sysdeps/unix/sysv/linux/powerpc/fchownat.c (fchownat)
69367         [!__ASSUME_LCHOWN_SYSCALL]: Remove conditional code.
69368         (fchownat) [__ASSUME_LCHOWN_SYSCALL]: Make code unconditional.
69369         * sysdeps/unix/sysv/linux/powerpc/powerpc32/pread.c
69370         [!__ASSUME_PREAD_SYSCALL]: Remove conditional code.
69371         [__ASSUME_PREAD_SYSCALL]: Make code unconditional.
69372         * sysdeps/unix/sysv/linux/powerpc/powerpc32/pread64.c
69373         [!__ASSUME_PREAD_SYSCALL]: Remove conditional code.
69374         [__ASSUME_PREAD_SYSCALL]: Make code unconditional.
69375         * sysdeps/unix/sysv/linux/powerpc/powerpc32/pwrite.c
69376         [!__ASSUME_PWRITE_SYSCALL]: Remove conditional code.
69377         [__ASSUME_PWRITE_SYSCALL]: Make code unconditional.
69378         * sysdeps/unix/sysv/linux/powerpc/powerpc32/pwrite64.c
69379         [!__ASSUME_PWRITE_SYSCALL]: Remove conditional code.
69380         [__ASSUME_PWRITE_SYSCALL]: Make code unconditional.
69381         * sysdeps/unix/sysv/linux/powerpc/powerpc64/pread.c
69382         [!__ASSUME_PREAD_SYSCALL]: Remove conditional code.
69383         [__ASSUME_PREAD_SYSCALL]: Make code unconditional.
69384         * sysdeps/unix/sysv/linux/powerpc/powerpc64/pread64.c
69385         [!__ASSUME_PREAD_SYSCALL]: Remove conditional code.
69386         [__ASSUME_PREAD_SYSCALL]: Make code unconditional.
69387         * sysdeps/unix/sysv/linux/powerpc/powerpc64/pwrite.c
69388         [!__ASSUME_PWRITE_SYSCALL]: Remove conditional code.
69389         [__ASSUME_PWRITE_SYSCALL]: Make code unconditional.
69390         * sysdeps/unix/sysv/linux/powerpc/powerpc64/pwrite64.c
69391         [!__ASSUME_PWRITE_SYSCALL]: Remove conditional code.
69392         [__ASSUME_PWRITE_SYSCALL]: Make code unconditional.
69393         * sysdeps/unix/sysv/linux/pread.c [!__ASSUME_PREAD_SYSCALL]:
69394         Remove conditional code.
69395         [__ASSUME_PREAD_SYSCALL]: Make code unconditional.
69396         * sysdeps/unix/sysv/linux/pread64.c [!__ASSUME_PREAD_SYSCALL]:
69397         Remove conditional code.
69398         [__ASSUME_PREAD_SYSCALL]: Make code unconditional.
69399         * sysdeps/unix/sysv/linux/ptsname.c (__ptsname_internal)
69400         [__LINUX_KERNEL_VERSION < 131443]: Remove conditional code.
69401         * sysdeps/unix/sysv/linux/pwrite.c [!__ASSUME_PWRITE_SYSCALL]:
69402         Remove conditional code.
69403         [__ASSUME_PWRITE_SYSCALL]: Make code unconditional.
69404         * sysdeps/unix/sysv/linux/pwrite64.c [!__ASSUME_PWRITE_SYSCALL]:
69405         Remove conditional code.
69406         [__ASSUME_PWRITE_SYSCALL]: Make code unconditional.
69407         * sysdeps/unix/sysv/linux/sh/pread.c [!__ASSUME_PREAD_SYSCALL]:
69408         Remove conditional code.
69409         [__ASSUME_PREAD_SYSCALL]: Make code unconditional.
69410         * sysdeps/unix/sysv/linux/sh/pread64.c [!__ASSUME_PREAD_SYSCALL]:
69411         Remove conditional code.
69412         [__ASSUME_PREAD_SYSCALL]: Make code unconditional.
69413         * sysdeps/unix/sysv/linux/sh/pwrite.c [!__ASSUME_PWRITE_SYSCALL]:
69414         Remove conditional code.
69415         [__ASSUME_PWRITE_SYSCALL]: Make code unconditional.
69416         * sysdeps/unix/sysv/linux/sh/pwrite64.c
69417         [!__ASSUME_PWRITE_SYSCALL]: Remove conditional code.
69418         [__ASSUME_PWRITE_SYSCALL]: Make code unconditional.
69419         * sysdeps/unix/sysv/linux/sigaction.c
69420         [!__ASSUME_REALTIME_SIGNALS]: Remove conditional code.
69421         [__ASSUME_REALTIME_SIGNALS]: Make code unconditional.
69422         * sysdeps/unix/sysv/linux/sigpending.c
69423         [!__ASSUME_REALTIME_SIGNALS]: Remove conditional code.
69424         [__ASSUME_REALTIME_SIGNALS]: Make code unconditional.
69425         * sysdeps/unix/sysv/linux/sigprocmask.c
69426         [!__ASSUME_REALTIME_SIGNALS]: Remove conditional code.
69427         [__ASSUME_REALTIME_SIGNALS]: Make code unconditional.
69428         * sysdeps/unix/sysv/linux/sigsuspend.c
69429         [!__ASSUME_REALTIME_SIGNALS]: Remove conditional code.
69430         [__ASSUME_REALTIME_SIGNALS]: Make code unconditional.
69431         * sysdeps/unix/sysv/linux/sparc/sparc32/sigaction.c
69432         (__libc_missing_rt_sigs): Remove.
69433         (__libc_sigaction) [__NR_rt_sigaction]: Make code unconditional.
69434         (__libc_sigaction): Do not handle ENOSYS from rt_sigaction.
69435         * sysdeps/unix/sysv/linux/syslog.c [!__ASSUME_MSG_NOSIGNAL]:
69436         Remove conditional code.
69437         [__ASSUME_MSG_NOSIGNAL]: Make code unconditional.
69438         * sysdeps/unix/sysv/linux/testrtsig.h (kernel_has_rtsig): Always
69439         return 1.
69440         * sysdeps/unix/sysv/linux/ttyname.c (ttyname)
69441         [!__ASSUME_PROC_SELF_FD_SYMLINK]: Remove conditional code.
69442         * sysdeps/unix/sysv/linux/ttyname_r.c (__ttyname_r)
69443         [!__ASSUME_PROC_SELF_FD_SYMLINK]: Likewise.
69444
69445 2012-05-14  Andreas Jaeger  <aj@suse.de>
69446
69447         * sysdeps/i386/fpu/bits/mathinline.h (__pow2): Remove,
69448         it's not used in glibc.
69449         (__coshm1): Likewise.
69450         (__acosh1p): Likewise.
69451         (__sgn): Likewise.
69452
69453         * manual/string.texi (Copying and Concatenation): Add missing
69454         variable in concat example.
69455         Reported by David C. Rankin <drankinatty@suddenlinkmail.com>.
69456
69457 2012-05-14  H.J. Lu  <hongjiu.lu@intel.com>
69458
69459         [BZ #14103]
69460         * sysdeps/ieee754/dbl-64/wordsize-64/s_logb.c (__logb): Replace
69461         __builtin_clzl with __builtin_clzll.
69462
69463 2012-05-14  H.J. Lu  <hongjiu.lu@intel.com>
69464
69465         [BZ #14104]
69466         * sysdeps/unix/sysv/linux/check_pf.c (cache): Use
69467         libc_freeres_ptr.
69468
69469 2012-05-14  Liubov Dmitrieva  <liubov.dmitrieva@gmail.com>
69470
69471         * sysdeps/i386/i686/fpu/multiarch/Makefile: New file.
69472         * sysdeps/i386/i686fpu/multiarch/e_expf.c: New file.
69473         * sysdeps/i386/i686fpu/multiarch/e_expf-ia32.S: New file.
69474         * sysdeps/i386/i686/fpu/multiarch/e_expf-sse2.S: New file.
69475
69476 2012-05-14  Mike Frysinger  <vapier@gentoo.org>
69477
69478         * NEWS: Update ia64 info.
69479
69480 2012-05-12  Andreas Schwab  <schwab@linux-m68k.org>
69481
69482         * sysdeps/powerpc/memmove.c (MEMMOVE): Don't return a value if
69483         used as bcopy.
69484
69485 2012-05-12  Thomas Schwinge  <thomas@codesourcery.com>
69486
69487         * io/dup3.c (dup3): Rename to __dup3, add weak alias for dup3.
69488         * sysdeps/unix/syscalls.list (dup3): Likewise.
69489         * libio/freopen.c (freopen): Invoke __dup3 instead of dup3.
69490         * libio/freopen64.c (freopen64): Invoke __dup3 instead of dup3.
69491
69492 2012-05-11  H.J. Lu  <hongjiu.lu@intel.com>
69493
69494         * elf/stackguard-macros.h (STACK_CHK_GUARD) [__x86_64__]: Use
69495         "%c1" with "i" (offsetof (tcbhead_t, stack_guard)).
69496
69497 2012-05-11  H.J. Lu  <hongjiu.lu@intel.com>
69498
69499         * elf/tls-macros.h (TLS_LE): Use mov instead of movq to load
69500         thread pointer.
69501         (TLS_IE): Use mov/add instead of movq/addq to load thread
69502         pointer.
69503         (TLS_GD_PREFIX): New.
69504         (TLS_GD): Use it.
69505
69506 2012-05-11  David S. Miller  <davem@davemloft.net>
69507
69508         * sysdeps/sparc/fpu/bits/fenv.h (__fenv_stfsr): Add __volatile__.
69509         * sysdeps/sparc/fpu/fpu_control.h (_FPU_GETCW): Likewise.
69510         (_FPU_SETCW): Likewise.
69511
69512 2012-05-10  H.J. Lu  <hongjiu.lu@intel.com>
69513
69514         * sysdeps/x86_64/dl-trampoline.S: Check if RTLD_SAVESPACE_SSE
69515         is 32-byte aligned.
69516
69517 2012-05-11  Andreas Schwab  <schwab@linux-m68k.org>
69518
69519         [BZ #11837]
69520         * iconvdata/gb18030.c: Update tables.
69521         (BODY for FROM_LOOP): Update.  Handle two-byte encoded non-BMP
69522         characters specially.
69523         (BODY for TO_LOOP): Add encoding of missing ranges.
69524
69525 2012-05-11  Thomas Schwinge  <thomas@codesourcery.com>
69526
69527         [BZ #13673]
69528         * sysdeps/mach/hurd/accept4.c: Replace FSF snail mail address with URL.
69529         * sysdeps/mach/hurd/dup3.c: Likewise.
69530         * sysdeps/mach/hurd/readlinkat.c: Likewise.
69531         * sysdeps/powerpc/memmove.c:: Likewise.
69532
69533 2012-05-10  H.J. Lu  <hongjiu.lu@intel.com>
69534
69535         * sysdeps/x86_64/dl-machine.h (elf_machine_rela_relative): Handle
69536         R_X86_64_RELATIVE64 only if RTLD_BOOTSTRAP isn't defined.
69537
69538 2012-05-10  H.J. Lu  <hongjiu.lu@intel.com>
69539
69540         * elf/elf.h (R_X86_64_RELATIVE64): New.
69541         (R_X86_64_NUM): Updated.
69542         * sysdeps/x86_64/dl-machine.h (elf_machine_rela): Handle
69543         R_X86_64_RELATIVE64.  Always use Elf64_Addr with R_X86_64_64.
69544         (elf_machine_rela_relative): Handle R_X86_64_RELATIVE64.
69545         * sysdeps/x86_64/Makefile (tests): Add tst-quad1 tst-quad2
69546         tst-quad1pie tst-quad2pie
69547         (modules-names): Add tst-quadmod1 tst-quadmod2.
69548         ($(objpfx)tst-quad1): New dependency.
69549         ($(objpfx)tst-quad2): Likewise.
69550         ($(objpfx)tst-quad1pie): Likewise.
69551         ($(objpfx)tst-quad2pie): Likewise.
69552         * sysdeps/x86_64/tst-quad1.c: New file.
69553         * sysdeps/x86_64/tst-quad1pie.c: New file.
69554         * sysdeps/x86_64/tst-quad2.c: Likewise.
69555         * sysdeps/x86_64/tst-quad2pie.c: Likewise.
69556         * sysdeps/x86_64/tst-quadmod1.S: Likewise.
69557         * sysdeps/x86_64/tst-quadmod1pie.S: Likewise.
69558         * sysdeps/x86_64/tst-quadmod2.S: Likewise.
69559         * sysdeps/x86_64/tst-quadmod2pie.S: Likewise.
69560
69561 2012-05-10  Samuel Thibault  <samuel.thibault@ens-lyon.org>
69562
69563         * io/fcntl.h (mode_t, off_t, pid_t): Define types.
69564         (__mode_t_defined, __off_t_defined, __pid_t_defined): Define macros.
69565         * streams/stropts.h (t_scalar_t): Define type.
69566
69567         * sysdeps/generic/paths.h (_PATH_MAN): Set to "/usr/share/man"
69568         (_PATH_PRESERVE): Set to "/var/lib".
69569         (_PATH_RWHODIR): Set to "/var/spool/rwho".
69570
69571         * sysdeps/mach/hurd/openat.c (__openat): Set type of MODE to mode_t
69572         instead of int.
69573
69574         * sysdeps/mach/hurd/xmknodat.c (__xmknodat): Deallocate NODE port only
69575         if __dir_mkfile succeeded.
69576
69577         * sysdeps/mach/hurd/dup3.c: Lock _hurd_dtable_lock before
69578         checking for _hurd_dtablesize.  Unlock it right after having
69579         finished _hurd_dtable allocation.
69580
69581 2012-05-10  Thomas Schwinge  <thomas@schwinge.name>
69582
69583         * sysdeps/mach/hurd/configure.in: Remove warning for --prefix=[...].
69584         * sysdeps/mach/hurd/configure: Regenerated.
69585         * sysdeps/unix/sysv/linux/configure.in: Move --prefix=/usr
69586         special-casing to...
69587         * sysdeps/gnu/configure.in: ... this new file.
69588         * sysdeps/unix/sysv/linux/configure: Regenerated.
69589         * sysdeps/gnu/configure: New generated file.
69590
69591         * sysdeps/mach/hurd/bits/stat.h (struct stat): Align to what is done
69592         for Linux: use nsec instead of usec, as well as:
69593         [__USE_MISC || __USE_XOPEN2K8] (st_atim, st_mtim, st_ctim): New
69594         members of type struct timespec.
69595         [__USE_MISC || __USE_XOPEN2K8] (st_atime, st_mtime, st_ctime):
69596         New macros.
69597         (struct stat64): Likewise.
69598         (_STATBUF_ST_NSEC): New macro.
69599         * sysdeps/mach/hurd/xstatconv.c (xstat64_conv): Adapt to that.
69600
69601         * hurd/lookup-retry.c (__hurd_file_name_lookup_retry): Use
69602         __strtoul_internal rather than strtoul.
69603
69604 2012-05-10  Pino Toscano  <toscano.pino@tiscali.it>
69605
69606         * hurd/hurdsock.c (_hurd_socket_server): Check for negative domains,
69607         and reject them.
69608
69609 2012-05-10  Samuel Thibault  <samuel.thibault@ens-lyon.org>
69610
69611         * sysdeps/mach/hurd/setresgid.c (__setresgid): Handle the -1 case,
69612         which preserves existing values.
69613         * sysdeps/mach/hurd/setresuid.c (__setresuid): Likewise.
69614
69615 2012-05-10  Pino Toscano  <toscano.pino@tiscali.it>
69616
69617         * hurd/hurdselect.c (_hurd_select): Return EINVAL for negative
69618         TIMEOUT values.  Return EINVAL for NFDS values either negative or
69619         greater than FD_SETSIZE.
69620
69621 2012-05-10  Samuel Thibault  <samuel.thibault@ens-lyon.org>
69622
69623         * sysdeps/mach/hurd/brk.c (_hurd_set_brk): When more space needs to be
69624         allocated, call __vm_protect to finish enabling the existing space, and
69625         pass a copy of _hurd_data_end instead of PAGEBRK to __vm_allocate to
69626         allocate the remainder.
69627
69628 2012-05-10  Pino Toscano  <toscano.pino@tiscali.it>
69629
69630         * sysdeps/mach/hurd/recvfrom.c (__recvfrom): Check also for a null
69631         address port.  Set ADDR_LEN to 0 when not filling ADDRARG.
69632
69633 2012-05-10  Samuel Thibault  <samuel.thibault@ens-lyon.org>
69634
69635         * sysdeps/mach/hurd/readlinkat.c: New file, heavily derived from
69636         sysdeps/mach/hurd/readlink.c.
69637
69638         * posix/tst-sysconf.c (posix_options): Only use
69639         _POSIX_PRIORITIZED_IO, _POSIX_PRIORITY_SCHEDULING, and
69640         _POSIX_SYNCHRONIZED_IO when they are defined
69641         * sysdeps/mach/hurd/bits/posix_opt.h:
69642         (_POSIX_PRIORITY_SCHEDULING): Undefine macro.
69643         (_XOPEN_REALTIME): Undefine macro.
69644         (_XOPEN_REALTIME_THREADS): Undefine macro.
69645         (_XOPEN_SHM): Undefine macro.
69646         [__USE_XOPEN2K8] (_POSIX_THREAD_ROBUST_PRIO_INHERIT): Define
69647         macro to -1.
69648         [__USE_XOPEN2K8] (_POSIX_THREAD_ROBUST_PRIO_PROTECT): Define
69649         macro to -1.
69650         (_POSIX_ASYNC_IO): Undefine macro.
69651         (_POSIX_PRIORITIZED_IO): Undefine macro.
69652         (_POSIX_SPIN_LOCKS): Define macro to -1.
69653
69654         * bits/sigaction.h [__USE_XOPEN2K8]: Define SA_RESTART,
69655         SA_NODEFER, SA_RESETHAND.
69656         * sysdeps/mach/hurd/bits/fcntl.h [__USE_XOPEN2K8]: Define
69657         O_NOFOLLOW, O_DIRECTORY, O_CLOEXEC, F_GETOWN, F_SETOWN,
69658         F_DUPFD_CLOEXEC.
69659
69660 2012-05-10  Thomas Schwinge  <thomas@schwinge.name>
69661
69662         * elf/Makefile (pldd-modules): Define unconditionally.
69663
69664 2012-05-10  Thomas Schwinge  <thomas@schwinge.name>
69665
69666         * sysdeps/mach/hurd/opendir.c (__opendirat): New function.
69667
69668 2012-05-10  Samuel Thibault  <samuel.thibault@ens-lyon.org>
69669
69670         * hurd/hurdchdir.c (_hurd_change_directory_port_from_name):
69671         Return ENOENT when name is empty.
69672         * sysdeps/mach/hurd/chroot.c (chroot): Likewise.
69673
69674 2012-05-10  Thomas Schwinge  <thomas@schwinge.name>
69675
69676         * include/libc-symbols.h [NO_HIDDEN] (hidden_nolink): New macro.
69677
69678         * nss/makedb.c (MAP_POPULATE): If not defined, define to zero.
69679
69680 2012-05-10  Samuel Thibault  <samuel.thibault@ens-lyon.org>
69681
69682         Fix mlock in all cases except non-readable pages.
69683         * sysdeps/mach/hurd/mlock.c (mlock): Give VM_PROT_READ
69684         instead of VM_PROT_ALL as parameter to __vm_wire function.
69685
69686         * sysdeps/mach/hurd/mkdir.c: Include <string.h>.
69687         (__mkdir): When path is `/', just fail with EEXIST.
69688         * sysdeps/mach/hurd/mkdirat.c: Likewise.
69689
69690 2012-05-10  Thomas Schwinge  <thomas@schwinge.name>
69691
69692         * nss/makedb.c: Include <sys/param.h> (for MAX and roundup), and
69693         <sys/uio.h> (for writev).
69694         * nss/nss_db/db-initgroups.c: Include <limits.h> (for ULONG_MAX),
69695         and <sys/param.h> (for MIN).
69696
69697 2012-05-10  Pino Toscano  <toscano.pino@tiscali.it>
69698
69699         * sysdeps/mach/nanosleep.c: Return EINVAL for invalid values of
69700         REQUESTED_TIME.  Properly set the remaining time and return EINTR
69701         if interrupted.
69702
69703 2012-05-10  Thomas Schwinge  <thomas@schwinge.name>
69704
69705         * sysdeps/mach/hurd/Makefile ($(common-objpfx)linkobj/libc.so):
69706         Depend on against $(link-rpcuserlibs).
69707
69708 2012-05-10  Samuel Thibault  <samuel.thibault@ens-lyon.org>
69709
69710         * sysdeps/generic/ldsodefs.h [LIBC_STACK_END_NOT_RELRO]
69711         (__libc_stack_end): Do not use attribute_relro.
69712         * sysdeps/mach/hurd/dl-sysdep.h (LIBC_STACK_END_NOT_RELRO): Define.
69713         * sysdeps/mach/hurd/i386/init-first.c (init): Update __libc_stack_end
69714         to libthread-provided value.
69715         * sysdeps/mach/hurd/dl-sysdep.c (__libc_stack_end): Do not use
69716         attribute_relro.
69717
69718 2012-05-10  Thomas Schwinge  <thomas@schwinge.name>
69719
69720         [BZ #3748]
69721         * bits/libc-lock.h (__libc_once_get): New macro.
69722         * sysdeps/mach/bits/libc-lock.h: Likewise.
69723         * sysdeps/mach/hurd/bits/libc-lock.h: Likewise.
69724         * sysdeps/posix/getaddrinfo.c (getaddrinfo): Use __libc_once_get
69725         instead of using implementation details.
69726
69727         * libio/fileops.c: Unconditionally include <kernel-features.h>.
69728         * libio/freopen.c: Likewise.
69729         * libio/freopen64.c: Likewise.
69730         * misc/syslog.c: Likewise.
69731         * nscd/connections.c: Likewise.
69732         * nscd/netgroupcache.c: Likewise.
69733         * sysdeps/posix/getcwd.c: Likewise.
69734
69735 2012-05-10  Roland McGrath  <roland@hack.frob.com>
69736
69737         * math/w_ilogbf.c: Add #include <limits.h>.
69738
69739 2012-05-10  Samuel Thibault  <samuel.thibault@ens-lyon.org>
69740
69741         * sysdeps/mach/hurd/setitimer.c (setitimer_locked): Use common exit
69742         path instead of returning without unlocking.
69743
69744         * sysdeps/mach/hurd/bits/ioctls.h (_IOIW): New macro for
69745         immediate-write ioctls.
69746         * sysdeps/mach/hurd/ioctl.c: Handle cases with no arguments.
69747
69748 2012-05-10  Thomas Schwinge  <thomas@schwinge.name>
69749
69750         * sysdeps/mach/hurd/i386/init-first.c (init): Use
69751         __builtin_frame_address instead of making assumptions about the
69752         location of the return address relative to DATA.  Force early load of
69753         the return address.
69754         (_dl_init_first, doinit1 in doinit in _hurd_stack_setup): Don't use
69755         __builtin_frame_address.
69756
69757         dup3 for GNU Hurd.
69758         * include/unistd.h: Declare __dup3 and use libc_hidden_proto on it.
69759         * sysdeps/mach/hurd/dup3.c: New file, copy from dup2.c.  Evolve it to
69760         implement dup3 and do some further code clean-ups.
69761         * sysdeps/mach/hurd/dup2.c (__dup2): Reimplement using __dup3.
69762         * sysdeps/mach/hurd/kernel-features.h (__ASSUME_DUP3): Define.
69763
69764 2012-05-10  Samuel Thibault  <samuel.thibault@ens-lyon.org>
69765
69766         * sysdeps/mach/hurd/dl-sysdep.c: Conditionalize contents on [SHARED].
69767
69768         * hurd/hurd/fd.h (_hurd_fd_get): Call HURD_CRITICAL_BEGIN/
69769         HURD_CRITICAL_END around holding _hurd_dtable_lock.
69770         * sysdeps/mach/hurd/dirfd (dirfd): Likewise.
69771         * sysdeps/mach/hurd/opendir.c (_hurd_fd_opendir): Call
69772         HURD_CRITICAL_BEGIN/HURD_CRITICAL_END around holding
69773         d->port.lock.
69774
69775         * hurd/catch-signal.c (hurd_catch_signal): Use sigsetjmp/siglongjmp
69776         instead of setjmp/longjmp to restore the signal mask.  Call sigsetjmp
69777         when handler == SIG_ERR, not when handler != SIG_ERR.
69778
69779 2012-05-10  Thomas Schwinge  <thomas@schwinge.name>
69780
69781         * sysdeps/mach/hurd/bits/socket.h: New file, copy from the bsd4.4 one.
69782         (SOCK_MAX, SOCK_TYPE_MASK, SOCK_CLOEXEC, SOCK_NONBLOCK): New
69783         definitions.
69784
69785         accept4 for GNU Hurd.
69786         * include/sys/socket.h (__libc_accept4): New prototype.
69787         * sysdeps/mach/hurd/accept4.c: New file, copy from accept.c.  Evolve it
69788         to implement __libc_accept4.
69789         * sysdeps/mach/hurd/accept.c (accept): Reimplement using
69790         __libc_accept4.
69791         * sysdeps/mach/hurd/kernel-features.h (__ASSUME_ACCEPT4): Define.
69792
69793         * sysdeps/mach/hurd/i386/____longjmp_chk.S: New file.
69794         * sysdeps/mach/hurd/i386/signal-defines.sym: New file.
69795         * sysdeps/mach/hurd/i386/Makefile (gen-as-const-headers): Add
69796         signal-defines.sym.
69797
69798 2012-05-10  Samuel Thibault  <samuel.thibault@ens-lyon.org>
69799
69800         * bits/in.h (SOL_IP, SOL_IPV6, SOL_ICMPV6): New macros.
69801
69802 2012-05-10  Thomas Schwinge  <thomas@schwinge.name>
69803
69804         * sysdeps/mach/hurd/dl-sysdep.c (open_file): Do not raise
69805         assertion on O_CLOEXEC flag.
69806         * hurd/hurd/fd.h: Update comment to mention O_CLOEXEC.
69807         * hurd/intern-fd.c: Likewise.
69808         * hurd/port2fd.c: Likewise.
69809
69810 2012-05-10  Samuel Thibault  <samuel.thibault@ens-lyon.org>
69811
69812         [BZ #3906]
69813         * bits/in.h (IPV6_PKTINFO): Define new macro.
69814         (IPV6_RXINFO,IPV6_TXINFO,SCM_SRCINFO): Redefine to IPV6_PKTINFO.
69815
69816 2012-05-09  Adhemerval Zanella  <azanella@linux.vnet.ibm.com>
69817
69818         [BZ #13954]
69819         [BZ #13955]
69820         [BZ #13956]
69821         * sysdeps/ieee754/dbl-64/s_logb.c (__logb): Fix for subnormal number.
69822         * sysdeps/ieee754/dbl-64/wordsize-64/s_logb.c (__logb): Likewise.
69823         * sysdeps/ieee754/flt-32/s_logbf.c (__logf): Likewise.
69824         * sysdeps/ieee754/ldbl-128/s_logbl.c (__logbl): Likewise.
69825         * sysdeps/ieee754/ldbl-128ibm/s_logbl.c (__logbl): Likewise.
69826         * sysdeps/ieee754/ldbl-96/s_logbl.c (__logbl): Likewise.
69827         * math/libm-test.inc (logb_test) : Additional logb tests.
69828
69829 2012-05-09  Andreas Schwab  <schwab@linux-m68k.org>
69830             Andreas Jaeger  <aj@suse.de>
69831
69832         * configure.in (obsolete-rpc): Add new option --enable-obsolete-rpc.
69833         * configure: Regenerated.
69834         * config.h.in (LINK_OBSOLETE_RPC): New macro.
69835         * config.make.in (link-obsolete-rpc): New substituted variable.
69836         * include/libc-symbols.h (libc_hidden_nolink_sunrpc): Rename from
69837         libc_hidden_nolink and define based on LINK_OBSOLETE_RPC.
69838         * sunrpc/Makefile (headers) [link-obsolete-rpc]: Add rpc headers.
69839         (shared-only-routines): Don't set it under [link-obsolete-rpc],
69840         so that libc.a contains the symbols.
69841         * nis/Makefile (headers) [link-obsolete-rpc]: Add rpc headers.
69842         * sunrpc/auth_des.c: Use libc_hidden_nolink_sunrpc.
69843         * sunrpc/auth_none.c: Likewise.
69844         * sunrpc/auth_unix.c: Likewise.
69845         * sunrpc/authdes_prot.c: Likewise.
69846         * sunrpc/authuxprot.c: Likewise.
69847         * sunrpc/clnt_gen.c: Likewise.
69848         * sunrpc/clnt_perr.c: Likewise.
69849         * sunrpc/clnt_raw.c: Likewise.
69850         * sunrpc/clnt_simp.c: Likewise.
69851         * sunrpc/clnt_tcp.c: Likewise.
69852         * sunrpc/clnt_udp.c: Likewise.
69853         * sunrpc/clnt_unix.c: Likewise.
69854         * sunrpc/des_crypt.c: Likewise.
69855         * sunrpc/des_soft.c: Likewise.
69856         * sunrpc/get_myaddr.c: Likewise.
69857         * sunrpc/key_call.c: Likewise.
69858         * sunrpc/key_prot.c: Likewise.
69859         * sunrpc/netname.c: Likewise.
69860         * sunrpc/pm_getmaps.c: Likewise.
69861         * sunrpc/pm_getport.c: Likewise.
69862         * sunrpc/pmap_clnt.c: Likewise.
69863         * sunrpc/pmap_prot.c: Likewise.
69864         * sunrpc/pmap_prot2.c: Likewise.
69865         * sunrpc/pmap_rmt.c: Likewise.
69866         * sunrpc/publickey.c: Likewise.
69867         * sunrpc/rpc_cmsg.c: Likewise.
69868         * sunrpc/rpc_common.c: Likewise.
69869         * sunrpc/rpc_dtable.c: Likewise.
69870         * sunrpc/rpc_prot.c: Likewise.
69871         * sunrpc/rpc_thread.c: Likewise.
69872         * sunrpc/rtime.c: Likewise.
69873         * sunrpc/svc.c: Likewise.
69874         * sunrpc/svc_auth.c: Likewise.
69875         * sunrpc/svc_raw.c: Likewise.
69876         * sunrpc/svc_run.c: Likewise.
69877         * sunrpc/svc_tcp.c: Likewise.
69878         * sunrpc/svc_udp.c: Likewise.
69879         * sunrpc/svc_unix.c: Likewise.
69880         * sunrpc/svcauth_des.c: Likewise.
69881         * sunrpc/xcrypt.c: Likewise.
69882         * sunrpc/xdr.c: Likewise.
69883         * sunrpc/xdr_array.c: Likewise.
69884         * sunrpc/xdr_float.c: Likewise.
69885         * sunrpc/xdr_intXX_t.c: Likewise.
69886         * sunrpc/xdr_mem.c: Likewise.
69887         * sunrpc/xdr_rec.c: Likewise.
69888         * sunrpc/xdr_ref.c: Likewise.
69889         * sunrpc/xdr_sizeof.c: Likewise.
69890         * sunrpc/xdr_stdio.c: Likewise.
69891
69892 2012-05-10  Roland McGrath  <roland@hack.frob.com>
69893
69894         * sysdeps/x86_64/dl-machine.h (elf_machine_rela): Fix typo in last
69895         change.  Update copyright years.
69896
69897 2012-05-10  Joseph Myers  <joseph@codesourcery.com>
69898
69899         * include/stdc-predef.h (__STDC_NO_THREADS__): Define.
69900
69901 2012-05-10  Maxim Kuvyrkov  <maxim@codesourcery.com>
69902             Joseph Myers  <joseph@codesourcery.com>
69903             Paul Pluzhnikov  <ppluzhnikov@google.com>
69904
69905         [BZ #14012]
69906         * sunrpc/Makefile [cross-compiling] (headers): Enable additions
69907         requiring rpcgen.
69908         [cross-compiling] (extra-libs): Likewise.
69909         [cross-compiling] (extra-libs-others): Likewise.
69910         [cross-compiling] (librpcsvc-routines): Likewise.
69911         [cross-compiling] (librpcsvc-inhibit-o): Likewise.
69912         [cross-compiling] (omit-deps): Likewise.
69913         (sunrpc-CPPFLAGS): New variable.
69914         (CPPFLAGS): Define using $(sunrpc-CPPFLAGS).
69915         (BUILD_CPPFLAGS): Append $(sunrpc-CPPFLAGS).
69916         (cross-rpcgen-objs): New variable.
69917         (extra-objs): Append $(cross-rpcgen-objs).
69918         ($(cross-rpcgen-objs)): New rule.
69919         ($(objpfx)cross-rpcgen): Likewise.
69920         (rpcgen-cmd): Define to use $(built-program-file).  Expand
69921         comment.
69922         ($(objpfx)rpcsvc/%.stmp): Depend on cross-rpcgen.
69923         ($(objpfx)x%.stmp): Likewise.
69924         * sunrpc/proto.h [IS_IN_build] (_): Define.
69925         [IS_IN_build] (_libc_intl_domainname): Likewise.
69926
69927 2012-05-10  H.J. Lu  <hongjiu.lu@intel.com>
69928
69929         * sysdeps/x86_64/dl-machine.h (elf_machine_rela) [__ILP32__]:
69930         Sign extend relocation result to 64 bits for R_X86_64_DTPOFF64
69931         and R_X86_64_TPOFF64.
69932
69933 2012-05-10  Joseph Myers  <joseph@codesourcery.com>
69934
69935         * sysdeps/unix/sysv/linux/syscalls.list (alarm): Add entry from
69936         sysdeps/unix/sysv/syscalls.list.
69937         (stime): Likewise.
69938         (utime): Likewise.
69939         * sysdeps/unix/sysv/syscalls.list: Remove file.
69940
69941 2012-05-10  Paul Eggert  <eggert@cs.ucla.edu>
69942
69943         [BZ #3440]
69944         * locale/bits/locale.h (__LC_CTYPE, __LC_NUMERIC, __LC_TIME)
69945         (__LC_COLLATE, __LC_MONETARY, __LC_MESSAGES, __LC_ALL, __LC_PAPER)
69946         (__LC_NAME, __LC_ADDRESS, __LC_TELEPHONE, __LC_MEASUREMENT)
69947         (__LC_IDENTIFICATION): Make these macros useful in #if
69948         expressions, as required by C99.
69949
69950 2012-05-10  Andreas Schwab  <schwab@linux-m68k.org>
69951
69952         * sunrpc/Makefile (extra-objs) [$(build-shared) = yes]: Add
69953         $(addsuffix .os,$(rpc-compat-routines)).  Move include ../Rules
69954         after this.
69955
69956 2012-05-09  H.J. Lu  <hongjiu.lu@intel.com>
69957
69958         * stdlib/longlong.h: Updated from GCC.
69959
69960 2012-05-09  Andreas Jaeger  <aj@suse.de>
69961
69962         * nscd/nscd.c (run_modes): Make named enum, reorder so that
69963         default is first entry.
69964         (run_mode): Set type.
69965         (main): Remove informal message about syslog.
69966         (options): Fix typo.
69967
69968         [BZ #14053]
69969         * sysdeps/x86_64/fpu/bits/mathinline.h (lrintf): Add __volatile
69970         to asm.
69971         (lrint): Likewise.
69972         (llrintf): Likewise.
69973         (llrint): Likewise.
69974         (rint): Likewise.
69975         (rintf): Likewise.
69976         (nearbyint): Likewise.
69977         (nearbyintf): Likewise.
69978
69979 2012-05-09  Andreas Jaeger  <aj@suse.de>
69980             Pedro Alves  <palves@redhat.com>
69981
69982         * nscd/nscd.c (run_mode): Use enum.
69983         (main): Cleanup coding style issue.
69984
69985 2012-05-09  Alexandre Oliva  <aoliva@redhat.com>
69986             Andreas Jaeger  <aj@suse.de>
69987
69988         * nscd/nscd.c (go_background): Replaced with...
69989         (run_mode): ... this.
69990         (RUN_FOREGROUND, RUN_DAEMONIZE, RUN_DEBUG): Add.
69991         (options): Add -F --foreground.
69992         (main): Implement it.
69993         (parse_opt): Parse it.
69994
69995 2012-05-09  Andreas Jaeger  <aj@suse.de>
69996
69997         [BZ #14083]
69998         * string/bits/string2.h (strspn) [__GNUC_PREREQ(3, 2) &&
69999         !_HAVE_STRING_ARCH_strspn]: Cast zero to size_t to avoid
70000         -Wconversion warning.
70001         (strspn) [!__GNUC_PREREQ(3, 2) && !_HAVE_STRING_ARCH_strspn]:
70002         Likewise.
70003
70004 2012-05-09  Joseph Myers  <joseph@codesourcery.com>
70005
70006         * conform/data/locale.h-data (NULL): Use macro-constant.  Require
70007         == 0.
70008         (LC_ALL): Use macro-int-constant.
70009         (LC_COLLATE): Likewise.
70010         (LC_CTYPE): Likewise.
70011         (LC_MESSAGES): Likewise.
70012         (LC_MONETARY): Likewise.
70013         (LC_NUMERIC): Likewise.
70014         (LC_TIME): Likewise.
70015         [ISO || ISO99 || ISO11] (LC_MESSAGES): Do not require.
70016         (LC_*): Change to LC_[ABCDEFGHIJKLMNOPQRSTUVWXYZ]*.
70017         [ISO || ISO99 || ISO11] (*_t): Do not allow.
70018         * conform/data/math.h-data (HUGE_VAL): Use macro-constant.
70019         Specify type.
70020         [C99-based standards] (float_t): Expect type.
70021         [C99-based standards] (double_t): Expect type.
70022         [C99-based standards] (HUGE_VALF): Use macro-constant.  Specify
70023         type.
70024         [C99-based standards] (HUGE_VALL): Likewise.
70025         [C99-based standards] (INFINITY): Likewise.
70026         [C99-based standards] (NAN): Likewise.
70027         [C99-based standards] (FP_INFINITE): Use macro-int-constant.
70028         [C99-based standards] (FP_NAN): Likewise.
70029         [C99-based standards] (FP_NORMAL): Likewise.
70030         [C99-based standards] (FP_SUBNORMAL): Likewise.
70031         [C99-based standards] (FP_ZERO): Likewise.
70032         [C99-based standards] (FP_FAST_FMA): Use
70033         optional-macro-int-constant.  Specify type.  Require == 1.
70034         [C99-based standards] (FP_FAST_FMAF): Likewise.
70035         [C99-based standards] (FP_FAST_FMAL): Likewise.
70036         [C99-based standards] (FP_ILOGB0): Use macro-int-constant.
70037         [C99-based standards] (FP_ILOGBNAN): Likewise.
70038         [C99-based standards] (MATH_ERRNO): Use macro-int-constant.
70039         Specify type.
70040         [C99-based standards] (MATH_ERREXCEPT): Likewise.
70041         [C99-based standards] (math_errhandling): Specify type.
70042         [ISO99 || ISO11] (signgam): Do not allow.
70043         [non-C99-based standards] (copysignf): Do not allow.
70044         [non-C99-based standards] (exp2f): Likewise.
70045         [non-C99-based standards] (log2f): Likewise.
70046         [non-C99-based standards] (modff): Allow.
70047         [non-C99-based standards] (erff): Do not allow.
70048         [non-C99-based standards] (erfcf): Likewise.
70049         [non-C99-based standards] (gammaf): Likewise.
70050         [non-C99-based standards] (hypotf): Likewise.
70051         [non-C99-based standards] (j0f): Likewise.
70052         [non-C99-based standards] (j1f): Likewise.
70053         [non-C99-based standards] (jnf): Likewise.
70054         [non-C99-based standards] (lgammaf): Likewise.
70055         [non-C99-based standards] (tgammaf): Likewise.
70056         [non-C99-based standards] (y0f): Likewise.
70057         [non-C99-based standards] (y1f): Likewise.
70058         [non-C99-based standards] (ynf): Likewise.
70059         [non-C99-based standards] (isnanf): Likewise.
70060         [non-C99-based standards] (acoshf): Likewise.
70061         [non-C99-based standards] (asinhf): Likewise.
70062         [non-C99-based standards] (atanhf): Likewise.
70063         [non-C99-based standards] (cbrtf): Likewise.
70064         [non-C99-based standards] (expm1f): Likewise.
70065         [non-C99-based standards] (ilogbf): Likewise.
70066         [non-C99-based standards] (log1pf): Likewise.
70067         [non-C99-based standards] (logbf): Likewise.
70068         [non-C99-based standards] (nextafterf): Likewise.
70069         [non-C99-based standards] (remainderf): Likewise.
70070         [non-C99-based standards] (rintf): Likewise.
70071         [non-C99-based standards] (scalbf): Likewise.
70072         [non-C99-based standards] (copysignl): Likewise.
70073         [non-C99-based standards] (exp2l): Likewise.
70074         [non-C99-based standards] (log2l): Likewise.
70075         [non-C99-based standards] (modfl): Allow.
70076         [non-C99-based standards] (erfl): Do not allow.
70077         [non-C99-based standards] (erfcl): Likewise.
70078         [non-C99-based standards] (gammal): Likewise.
70079         [non-C99-based standards] (hypotl): Likewise.
70080         [non-C99-based standards] (j0l): Likewise.
70081         [non-C99-based standards] (j1l): Likewise.
70082         [non-C99-based standards] (jnl): Likewise.
70083         [non-C99-based standards] (lgammal): Likewise.
70084         [non-C99-based standards] (tgammal): Likewise.
70085         [non-C99-based standards] (y0l): Likewise.
70086         [non-C99-based standards] (y1l): Likewise.
70087         [non-C99-based standards] (ynl): Likewise.
70088         [non-C99-based standards] (isnanl): Likewise.
70089         [non-C99-based standards] (acoshl): Likewise.
70090         [non-C99-based standards] (asinhl): Likewise.
70091         [non-C99-based standards] (atanhl): Likewise.
70092         [non-C99-based standards] (cbrtl): Likewise.
70093         [non-C99-based standards] (expm1l): Likewise.
70094         [non-C99-based standards] (ilogbl): Likewise.
70095         [non-C99-based standards] (log1pl): Likewise.
70096         [non-C99-based standards] (logbl): Likewise.
70097         [non-C99-based standards] (nextafterl): Likewise.
70098         [non-C99-based standards] (remainderl): Likewise.
70099         [non-C99-based standards] (rintl): Likewise.
70100         [non-C99-based standards] (scalbl): Likewise.
70101         [ISO || ISO99 || ISO11] (*_t): Do not allow.
70102         [non-C99-based standards] (FP_*): Do not allow.
70103         [C99-based standards] (FP_*): Change to
70104         FP_[ABCDEFGHIJKLMNOPQRSTUVWXYZ]*.
70105         * conform/data/setjmp.h-data [ISO || ISO99 || ISO11] (*_t): Do not
70106         allow.
70107         * conform/data/signal.h-data (SIG_DFL): Use macro-constant.
70108         (SIG_ERR): Likewise.
70109         [X/Open-based standards] (SIG_HOLD): Likewise.
70110         (SIG_IGN): Likewise.
70111         (SIGABRT): Use macro-int-constant.  Specify type.  Require
70112         positive value.
70113         (SIGFPE): Likewise.
70114         (SIGILL): Likewise.
70115         (SIGINT): Likewise.
70116         (SIGSEGV): Likewise.
70117         (SIGTER): Likewise.
70118         [!ISO && !ISO99 && !ISO11] (SIGALRM): Likewise.
70119         [!ISO && !ISO99 && !ISO11] (SIGHUP): Likewise.
70120         [!ISO && !ISO99 && !ISO11] (SIGIO): Likewise.
70121         [!ISO && !ISO99 && !ISO11] (SIGKILL): Likewise.
70122         [!ISO && !ISO99 && !ISO11] (SIGPIPE): Likewise.
70123         [!ISO && !ISO99 && !ISO11] (SIGQUIT): Likewise.
70124         [!ISO && !ISO99 && !ISO11] (SIGUSR1): Likewise.
70125         [!ISO && !ISO99 && !ISO11] (SIGUSR2): Likewise.
70126         [!ISO && !ISO99 && !ISO11] (SIGCHLD): Likewise.
70127         [!ISO && !ISO99 && !ISO11] (SIGCONT): Likewise.
70128         [!ISO && !ISO99 && !ISO11] (SIGSTOP): Likewise.
70129         [!ISO && !ISO99 && !ISO11] (SIGTSTP): Likewise.
70130         [!ISO && !ISO99 && !ISO11] (SIGTTIN): Likewise.
70131         [!ISO && !ISO99 && !ISO11] (SIGTTOU): Likewise.
70132         [!ISO && !ISO99 && !ISO11] (SIGBUS): Likewise.
70133         [!ISO && !ISO99 && !ISO11] (SIGPOLL): Likewise.
70134         [!ISO && !ISO99 && !ISO11] (SIGPROF): Likewise.
70135         [!ISO && !ISO99 && !ISO11] (SIGSYS): Likewise.
70136         [X/Open-based standards] (SIGTRAP): Likewise.
70137         [!ISO && !ISO99 && !ISO11] (SIGURG): Likewise.
70138         [!ISO && !ISO99 && !ISO11] (SIGVTALRM): Likewise.
70139         [!ISO && !ISO99 && !ISO11] (SIGXCPU): Likewise.
70140         [!ISO && !ISO99 && !ISO11] (SIGXFSZ): Likewise.
70141         * conform/data/stdarg.h-data [ISO || ISO99 || ISO11] (*_t): Do not
70142         allow.
70143
70144 2012-05-08  Ian Wienand  <ianw@vmware.com>
70145
70146         [BZ #14080]
70147         * time/tzset.c (__tzset_parse_tz): Update default rules for
70148         daylight time changes in the Energy Policy Act of 2005.
70149
70150 2012-05-09  Andreas Jaeger  <aj@suse.de>
70151
70152         [BZ #13983]
70153         * elf/ldconfig.c (parse_conf): Change string to make clear that
70154         ldconfig only issued a warning if ld.so.conf does not exist.
70155
70156 2012-05-08  David S. Miller  <davem@davemloft.net>
70157
70158         * sysdeps/sparc/sparc32/sparcv9/fpu/multiarch/s_floor-vis3.S: Use
70159         movxtod instead of popping the value on the stack.
70160
70161         * sysdeps/sparc/fpu/libm-test-ulps: Update.
70162
70163 2012-05-08  Carlos O'Donell  <carlos_odonell@mentor.com>
70164
70165         * config.h.in: Add HAVE_ARM_PCS_VFP.
70166
70167 2012-05-08  Roland Mc Grath  <roland@hack.frob.com>
70168
70169         [BZ #13979]
70170         * include/features.h: Warn if user requests __FORTIFY_SOURCE
70171         checking but the checks are disabled for any reason.
70172
70173 2012-05-08  H.J. Lu  <hongjiu.lu@intel.com>
70174
70175         * sysdeps/x86_64/dl-machine.h: Replace Elf64_XXX with ElfW(XXX)
70176         and ELF64_R_TYPE with ELFW(R_TYPE).
70177
70178 2012-05-08  Joseph Myers  <joseph@codesourcery.com>
70179
70180         * sysdeps/unix/sysv/syscalls.list (pause): Remove.
70181         (ulimit): Likewise.
70182
70183         * sysdeps/unix/sysv/syscalls.list (setrlimit): Remove.
70184         (settimeofday): Likewise.
70185
70186 2012-05-08  Mike Frysinger  <vapier@gentoo.org>
70187
70188         * inet/arpa/tftp.h (struct tftphdr): Rename th_u to th_u1.  Add
70189         a struct th_u2 inside the union, and move tu_block/tu_code into
70190         a new th_u3 union of tu_block/tu_code inside of that.  Move
70191         th_data[1] into the th_u2 as tu_data[0].  Change tu_stuff[1] to
70192         tu_stuff[0].  Add a new tu_padding[4] to keep sizeof() the same.
70193         (th_block): Change to th_u1.th_u2.th_u3.tu_block.
70194         (th_code): Change to th_u1.th_u2.th_u3.tu_code.
70195         (th_stuff): Change to th_u1.tu_stuff.
70196         (th_data): Define.
70197         (th_msg): Change to th_u1.th_u2.tu_data.
70198
70199 2012-05-07  David S. Miller  <davem@davemloft.net>
70200
70201         * sysdeps/sparc/fpu/libm-test-ulps: Update.
70202
70203         [BZ #14074]
70204         * sysdeps/sparc/sysdep.h (SPARC_PIC_THUNK_CALL): New macro.
70205         (SETUP_PIC_REG): Use it.
70206         (SETUP_PIC_REG_LEAF): Use it.
70207
70208 2012-05-07  Joseph Myers  <joseph@codesourcery.com>
70209
70210         [BZ #13885]
70211         [BZ #13923]
70212         * sysdeps/i386/fpu/e_expl.S (IEEE754_EXPL): Define conditional on
70213         USE_AS_EXPM1L.
70214         (EXPL_FINITE): Likewise.
70215         (FLDLOG): Likewise.
70216         (IEEE754_EXPL) [USE_AS_EXPM1L]: Support use as expm1l.
70217         * sysdeps/i386/fpu/s_expm1l.S: Define USE_AS_EXPM1L and include
70218         e_expl.S.
70219         * sysdeps/x86_64/fpu/e_expl.S (IEEE754_EXPL): Define conditional on
70220         USE_AS_EXPM1L.
70221         (EXPL_FINITE): Likewise.
70222         (FLDLOG): Likewise.
70223         (IEEE754_EXPL) [USE_AS_EXPM1L]: Support use as expm1l.
70224         * sysdeps/x86_64/fpu/s_expm1l.S: Define USE_AS_EXPM1L and include
70225         e_expl.S.
70226         * math/libm-test.inc (expm1_test): Add more tests.  Do not disable
70227         test of -max_value argument for long double.
70228         * sysdeps/i386/fpu/libm-test-ulps: Update.
70229         * sysdeps/x86_64/fpu/libm-test-ulps: Likewise.
70230
70231 2012-05-06  David S. Miller  <davem@davemloft.net>
70232
70233         * scripts/data/localplt-sparc-linux-gnu.data: Add '?' markers to
70234         quad soft-float symbols whose references which are compiler
70235         generated.
70236         * scripts/data/localplt-sparc64-linux-gnu.data: Likewise.
70237
70238 2012-05-06  Joseph Myers  <joseph@codesourcery.com>
70239
70240         [BZ #13884]
70241         [BZ #13914]
70242         * sysdeps/i386/fpu/e_expl.S (IEEE754_EXPL): Define conditional on
70243         USE_AS_EXP10L.
70244         (EXPL_FINITE): Likewise.
70245         (FLDLOG): Likewise.
70246         (c0): Likewise.
70247         (c1): Likewise.
70248         (__ieee754_expl): Change to IEEE754_EXPL.  Use FLDLOG macro.
70249         Adjust comments for base varying.
70250         (__expl_finite): Change alias to EXPL_FINITE.
70251         * sysdeps/i386/fpu/e_exp10l.S: Define USE_AS_EXP10L and include
70252         e_expl.S.
70253         * sysdeps/ieee754/dbl-64/e_exp10.c: New file.
70254         * sysdeps/ieee754/ldbl-128/e_exp10l.c: Likewise.
70255         * sysdeps/ieee754/ldbl-128ibm/e_exp10l.c: Likewise.
70256         * sysdeps/x86_64/fpu/e_exp10l.S: Likewise.
70257         * sysdeps/x86_64/fpu/e_expl.S (IEEE754_EXPL): Define conditional on
70258         USE_AS_EXP10L.
70259         (EXPL_FINITE): Likewise.
70260         (FLDLOG): Likewise.
70261         (c0): Likewise.
70262         (c1): Likewise.
70263         (__ieee754_expl): Change to IEEE754_EXPL.  Use FLDLOG macro.
70264         Adjust comments for base varying.
70265         (__expl_finite): Change alias to EXPL_FINITE.
70266         * math/libm-test.inc (exp10_test): Add more tests.  Do not disable
70267         tests for bugs.
70268         * sysdeps/x86_64/fpu/libm-test-ulps: Update.
70269
70270         [BZ #14064]
70271         * math/libm-test.inc (check_float_internal): Correct ulp
70272         calculation for subnormal expected results.
70273
70274 2012-05-06  Andreas Jaeger  <aj@suse.de>
70275
70276         * Makeconfig (+math-flags): New, set to -frounding-math.
70277         (+cflags): Add +math-flags so that all of glibc gets compiled with
70278         it.
70279
70280         * sysdeps/x86_64/fpu/libm-test-ulps: Updated.
70281
70282 2012-05-05  Joseph Myers  <joseph@codesourcery.com>
70283
70284         * math/libm-test.inc (hypot_test) [TEST_DOUBLE && TEST_INLINE]:
70285         Disable one test.
70286
70287         [BZ #13787]
70288         [BZ #13922]
70289         [BZ #14036]
70290         * sysdeps/i386/fpu/e_expl.S (csat): New constant.
70291         (__ieee754_expl): Allow for and saturate large arguments.
70292         * sysdeps/ieee754/dbl-64/w_exp.c (o_threshold): Remove variable.
70293         (u_threshold): Likewise.
70294         (__exp): Call __ieee754_exp before checking for overflow and
70295         underflow.
70296         * sysdeps/ieee754/flt-32/w_expf.c (o_threshold): Remove variable.
70297         (u_threshold): Likewise.
70298         (__expf): Call __ieee754_expf before checking for overflow and
70299         underflow.
70300         * sysdeps/ieee754/ldbl-96/w_expl.c (o_threshold): Remove variable.
70301         (u_threshold): Likewise.
70302         (__expl): Call __ieee754_expl before checking for overflow and
70303         underflow.
70304         * sysdeps/x86_64/fpu/e_expl.S (csat): New constant.
70305         (__ieee754_expl): Allow for and saturate large arguments.
70306         * math/libm-test.inc (exp_test): Add another test.  Do not allow
70307         missing overflow exception on overflow.
70308         (expm1_test): Do not allow missing overflow exception on overflow.
70309
70310         * sysdeps/i386/fpu/e_expl.c: Move to ...
70311         * sysdeps/i386/fpu/e_expl.S: ... here.  Write directly in assembly
70312         rather than using inline asm.
70313         * sysdeps/x86_64/fpu/e_expl.c: Remove file.
70314         * sysdeps/x86_64/fpu/e_expl.S: Copy from
70315         sysdeps/i386/fpu/e_expl.S, adjusted for x86_64.
70316
70317         * sysdeps/unix/sysv/syscalls.list (ftime): Remove.
70318         (nice): Likewise.
70319         (poll): Likewise.
70320         (signal): Likewise.
70321         (time): Likewise.
70322         (times): Likewise.
70323
70324 2012-05-04  Joseph Myers  <joseph@codesourcery.com>
70325
70326         * sysdeps/unix/syscalls.list (adjtime): Add entry from
70327         sysdeps/unix/common/syscalls.list.
70328         (fchmod): Likewise.
70329         (fchown): Likewise.
70330         (ftruncate): Likewise.
70331         (getrusage): Likewise.
70332         (gettimeofday): Likewise.
70333         (setpgid): Likewise.
70334         (setregid): Likewise.
70335         (setreuid): Likewise.
70336         (sigaction): Likewise.
70337         (truncate): Likewise.
70338         (vhangup): Likewise.
70339         * sysdeps/unix/common/syscalls.list: Remove file.
70340         * sysdeps/unix/bsd/Implies: Don't include unix/common.
70341         * sysdeps/unix/sysv/linux/Implies: Likewise.
70342
70343 2012-05-04  H.J. Lu  <hongjiu.lu@intel.com>
70344
70345         * sysdeps/unix/sysv/linux/x86_64/nptl/ld.abilist: Moved to ...
70346         * sysdeps/unix/sysv/linux/x86_64/64/nptl/ld.abilist: Here.
70347         * sysdeps/unix/sysv/linux/x86_64/nptl/libBrokenLocale.abilist:
70348         Moved to ...
70349         * sysdeps/unix/sysv/linux/x86_64/64/nptl/libBrokenLocale.abilist:
70350         Here.
70351         * sysdeps/unix/sysv/linux/x86_64/nptl/libanl.abilist: Moved
70352         to ...
70353         * sysdeps/unix/sysv/linux/x86_64/64/nptl/libanl.abilist: Here.
70354         * sysdeps/unix/sysv/linux/x86_64/nptl/libc.abilist: Moved
70355         to ...
70356         * sysdeps/unix/sysv/linux/x86_64/64/nptl/libc.abilist: Here.
70357         * sysdeps/unix/sysv/linux/x86_64/nptl/libcrypt.abilist: Moved
70358         to ...
70359         * sysdeps/unix/sysv/linux/x86_64/64/nptl/libcrypt.abilist: Here.
70360         * sysdeps/unix/sysv/linux/x86_64/nptl/libdl.abilist: Moved
70361         to ...
70362         * sysdeps/unix/sysv/linux/x86_64/64/nptl/libdl.abilist: Here.
70363         * sysdeps/unix/sysv/linux/x86_64/nptl/libm.abilist: Moved
70364         to ...
70365         * sysdeps/unix/sysv/linux/x86_64/64/nptl/libm.abilist: Here.
70366         * sysdeps/unix/sysv/linux/x86_64/nptl/libnsl.abilist: Moved
70367         to ...
70368         * sysdeps/unix/sysv/linux/x86_64/64/nptl/libnsl.abilist: Here.
70369         * sysdeps/unix/sysv/linux/x86_64/nptl/libpthread.abilist: Moved
70370         to ...
70371         * sysdeps/unix/sysv/linux/x86_64/64/nptl/libpthread.abilist:
70372         Here.
70373         * sysdeps/unix/sysv/linux/x86_64/nptl/libresolv.abilist: Moved
70374         to ...
70375         * sysdeps/unix/sysv/linux/x86_64/64/nptl/libresolv.abilist:
70376         Here.
70377         * sysdeps/unix/sysv/linux/x86_64/nptl/librt.abilist: Moved
70378         to ...
70379         * sysdeps/unix/sysv/linux/x86_64/64/nptl/librt.abilist: Here.
70380         * sysdeps/unix/sysv/linux/x86_64/nptl/libthread_db.abilist:
70381         Moved to ...
70382         * sysdeps/unix/sysv/linux/x86_64/64/nptl/libthread_db.abilist:
70383         Here.
70384         * sysdeps/unix/sysv/linux/x86_64/nptl/libutil.abilist: Moved
70385         to ...
70386         * sysdeps/unix/sysv/linux/x86_64/64/nptl/libutil.abilist: Here.
70387
70388 2012-05-04  Joseph Myers  <joseph@codesourcery.com>
70389
70390         * sysdeps/unix/common/bits/dirent.h: Remove file.
70391         * sysdeps/unix/common/bits/fcntl.h: Likewise.
70392
70393         * sysdeps/unix/bsd/bits/dirent.h: Remove file.
70394         * sysdeps/unix/bsd/bits/fcntl.h: Likewise.
70395         * sysdeps/unix/bsd/bsd4.4/isatty.c: Likewise.
70396         * sysdeps/unix/bsd/isatty.c: Likewise.
70397         * sysdeps/unix/bsd/tcdrain.c: Likewise.
70398         * sysdeps/unix/bsd/tcgetattr.c: Likewise.
70399         * sysdeps/unix/bsd/tcsetattr.c: Likewise.
70400
70401 2012-05-04  Adhemerval Zanella  <azanella@linux.vnet.ibm.com>
70402
70403         [BZ #13563]
70404         * sysdeps/ieee754/ldbl-128ibm/e_acosl.c (__ieee754_acosl): Fix
70405         long double comparison inaccuracies.
70406         * sysdeps/ieee754/ldbl-128ibm/e_asinl.c (__ieee754_asinl): Likewise.
70407         * sysdeps/powerpc/fpu/libm-test-ulps: Update.
70408
70409 2012-05-04  Andreas Schwab  <schwab@linux-m68k.org>
70410
70411         * sysdeps/unix/make-syscalls.sh: Fix check for version aliases.
70412         * sysdeps/unix/sysv/linux/i386/syscalls.list: Revert last change.
70413
70414 2012-05-04  Joseph Myers  <joseph@codesourcery.com>
70415
70416         [BZ #14049]
70417         * stdlib/strtod_l.c (____STRTOF_INTERNAL): Check for trailing
70418         nonzero digits before rounding a hex value.
70419         * stdlib/tst-strtod.c (tests): Add another test.
70420
70421 2012-05-03  Andreas Krebbel  <Andreas.Krebbel@de.ibm.com>
70422
70423         * sysdeps/s390/fpu/libm-test-ulps: Update.
70424
70425 2012-05-03  Andreas Jaeger  <aj@suse.de>
70426
70427         * malloc/mcheck.c (mcheck): Add barrier so that malloc/free pair
70428         does not get optimized out.
70429         (malloc_opt_barrier): New.
70430
70431 2012-05-03  Andreas Jaeger  <aj@suse.de>
70432             Roland McGrath  <roland@hack.frob.com>
70433
70434         * Makerules (.PRECIOUS): Add %.symlist pattern to prevent
70435         intermediate file deletion.
70436         (generated): Add .symlist files.
70437
70438 2012-05-03  Joseph Myers  <joseph@codesourcery.com>
70439
70440         [BZ #13775]
70441         * libio/bits/stdio-ldbl.h [__USE_XOPEN2K8] (__dprintf_chk):
70442         Redirect under this condition.
70443         [__USE_XOPEN2K8] (__vdprintf_chk): Likewise.
70444         [__USE_GNU] (__dprintf_chk): Not under this condition.
70445         [__USE_GNU] (__vdprintf_chk): Likewise.
70446         * libio/bits/stdio2.h [__USE_XOPEN2K8] (__dprintf_chk): Declare
70447         under this condition.
70448         [__USE_XOPEN2K8] (__vdprintf_chk): Likewise.
70449         [__USE_XOPEN2K8] (dprintf): Define under this condition.
70450         [__USE_XOPEN2K8] (vdprintf): Likewise.
70451         [__USE_GNU] (__dprintf_chk): Not under this condition.
70452         [__USE_GNU] (__vdprintf_chk): Likewise.
70453         [__USE_GNU] (dprintf): Likewise.
70454         [__USE_GNU] (vdprintf): Likewise.
70455
70456 2012-05-03  Roland McGrath  <roland@hack.frob.com>
70457
70458         * elf/Makefile (common-generated): Set this instead of generated for
70459         .dyn, .phdr, .jmprel files.  Remove $(common-objpfx) from the
70460         $(all-built-dso)-derived lists.
70461
70462 2012-05-03  Andreas Jaeger  <aj@suse.de>
70463
70464         * sysdeps/i386/fpu/libm-test-ulps: Update.
70465
70466         * FAQ: Removed.
70467         * FAQ.in: Likewise.
70468         * scripts/gen-FAQ.pl: Likewise.
70469         * manual/install.texi (Installation): Point to online location of
70470         FAQ.
70471         * Makefile (files-for-dist): Remove FAQ.
70472         (FAQ): Remove.
70473
70474 2012-05-02  Allan McRae  <allan@archlinux.org>
70475
70476         * elf/Makefile: (LDFLAGS-nodel2mod3.so: Use $(no-as-needed).
70477         (LDFLAGS-reldepmod5.so): Likewise.
70478         (LDFLAGS-reldep6mod1.so): Likewise.
70479         (LDFLAGS-reldep6mod4.so): Likewise.
70480         (LDFLAGS-reldep8mod3.so): Likewise.
70481         (LDFLAGS-unload4mod1.so): Likewise.
70482         (LDFLAGS-unload4mod2.so): Likewise.
70483         (LDFLAGS-tst-initorder): Likewise.
70484         (LDFLAGS-tst-initordera2.so): Likewise.
70485         (LDFLAGS-tst-initordera3.so): Likewise.
70486         (LDFLAGS-tst-initordera4.so): Likewise.
70487         (LDFLAGS-tst-initorderb2.so): Likewise.
70488         (LDFLAGS-noload): Likewise.
70489         (LDFLAGS-next): Likewise.
70490         (LDFLAGS-order2mod1.so): Likewise.
70491         (LDFLAGS-order2mod2.so): Likewise.
70492         (LDFLAGS-tst-initorder2): Likewise.
70493         (LDFLAGS-tst-initorder2a.so): Likewise.
70494         (LDFLAGS-tst-initorder2b.so): Likewise.
70495         (LDFLAGS-tst-initorder2c.so): Likewise.
70496         * stdlib/Makefile: (LDFLAGS-tst-putenv): Likewise.
70497
70498 2012-05-02  David S. Miller  <davem@davemloft.net>
70499
70500         * sysdeps/sparc/fpu/libm-test-ulps: Update.
70501
70502 2012-05-02  Paul Pluzhnikov  <ppluzhnikov@google.com>
70503
70504         [BZ #14055]
70505         * elf/dl-sysdep.c (_dl_show_auxv): Add bounds check.
70506
70507 2012-05-02  Andreas Jaeger  <aj@suse.de>
70508
70509         * math/Makefile (CPPFLAGS-test-ildoubl.c): Add -frounding-math
70510         since we manipulate rounding mode.
70511         (CPPFLAGS-test-idouble.c): Likewise.
70512         (CPPFLAGS-test-ifloat.c): Likewise.
70513         (CFLAGS-test-ldouble.c): Likewise.
70514         (CFLAGS-test-double.c): Likewise.
70515         (CFLAGS-test-float.c): Likewise.
70516         (CFLAGS-test-misc.c): Likewise.
70517         (CFLAGS-test-test-fenv.c): Likewise.
70518
70519 2012-05-02  Adhemerval Zanella  <azanella@linux.vnet.ibm.com>
70520
70521         [BZ #2550]
70522         [BZ #2570]
70523         * sysdeps/ieee754/ldbl-128ibm/s_nexttoward.c: Use floating-point
70524         comparisons to determine direction to adjust input.
70525
70526 2012-05-01  Roland McGrath  <roland@hack.frob.com>
70527
70528         * elf/Makefile ($(objpfx)check-localplt.out): Redirect the test's
70529         output to the target.
70530
70531         * scripts/localplt.awk: New file.
70532         * elf/Makefile ($(objpfx)check-localplt): Target removed.
70533         (check-localplt-CFLAGS): Variable removed.
70534         ($(all-built-dso:=.jmprel)): New static pattern rule.
70535         (generated): Add those targets.
70536         (localplt-built-dso): New variable.
70537         ($(objpfx)check-localplt.out): Use the script on the .jmprel files.
70538
70539         * elf/check-localplt.c: File removed.
70540
70541         * scripts/check-execstack.awk: New file.
70542         * elf/Makefile ($(objpfx)check-execstack): Target removed.
70543         (check-execstack-CFLAGS): Variable removed.
70544         ($(objpfx)check-execstack.h): Target removed.
70545         ($(objpfx)execstack-default): New target.
70546         (generated): Add that instead of check-execstack.h.
70547         ($(all-built-dso:=.phdr)): New static pattern rule.
70548         (generated): Add those targets.
70549         * elf/check-execstack.c: File removed.
70550
70551         * scripts/check-textrel.awk: New file.
70552         * elf/Makefile ($(objpfx)check-textrel): Target removed.
70553         (check-textrel-CFLAGS): Variable removed.
70554         (all-built-dso): Use := to define.o
70555         ($(all-built-dso:=.dyn)): New static pattern rule.
70556         (generated): Add those targets.
70557         ($(objpfx)check-textrel.out): Use the script on the .dyn files.
70558         * config.make.in (READELF): New substituted variable.
70559         * elf/check-textrel.c: File removed.
70560
70561 2012-05-01  Joseph Myers  <joseph@codesourcery.com>
70562
70563         * conform/data/assert.h-data [ISO || ISO99 || ISO11] (*_t): Do not
70564         allow.
70565         * conform/data/ctype.h-data [C99-based standards] (isblank):
70566         Expect function.
70567         (is*): Change to is[abcdefghijklmnopqrstuvwxyz]*.
70568         (to*): Change to to[abcdefghijklmnopqrstuvwxyz]*.
70569         [ISO || ISO99 || ISO11] (*_t): Do not allow.
70570         * conform/data/errno.h-data (EDOM): Use macro-int-constant.
70571         Specify type.  Require positive value.
70572         (EILSEQ): Likewise.
70573         (ERANGE): Likewise.
70574         [ISO || POSIX] (EILSEQ): Do not expect.
70575         [!ISO && !ISO99 && !ISO11] (E2BIG): Use macro-int-constant.
70576         Specify type.  Require positive value.
70577         [!ISO && !ISO99 && !ISO11] (EACCES): Likewise.
70578         [!ISO && !ISO99 && !ISO11] (EADDRINUSE): Likewise.
70579         [!ISO && !ISO99 && !ISO11] (EADDRNOTAVAIL): Likewise.
70580         [!ISO && !ISO99 && !ISO11] (EAFNOSUPPORT): Likewise.
70581         [!ISO && !ISO99 && !ISO11] (EAGAIN): Likewise.
70582         [!ISO && !ISO99 && !ISO11] (EALREADY): Likewise.
70583         [!ISO && !ISO99 && !ISO11] (EBADF): Likewise.
70584         [!ISO && !ISO99 && !ISO11] (EBADMSG): Likewise.
70585         [!ISO && !ISO99 && !ISO11] (EBUSY): Likewise.
70586         [!ISO && !ISO99 && !ISO11] (ECANCELED): Likewise.
70587         [!ISO && !ISO99 && !ISO11] (ECHILD): Likewise.
70588         [!ISO && !ISO99 && !ISO11] (ECONNABORTED): Likewise.
70589         [!ISO && !ISO99 && !ISO11] (ECONNREFUSED): Likewise.
70590         [!ISO && !ISO99 && !ISO11] (ECONNRESET): Likewise.
70591         [!ISO && !ISO99 && !ISO11] (EDEADLK): Likewise.
70592         [!ISO && !ISO99 && !ISO11] (EDESTADDRREQ): Likewise.
70593         [!ISO && !ISO99 && !ISO11] (EDQUOT): Likewise.
70594         [!ISO && !ISO99 && !ISO11] (EEXIST): Likewise.
70595         [!ISO && !ISO99 && !ISO11] (EFAULT): Likewise.
70596         [!ISO && !ISO99 && !ISO11] (EFBIG): Likewise.
70597         [!ISO && !ISO99 && !ISO11] (EHOSTUNREACH): Likewise.
70598         [!ISO && !ISO99 && !ISO11] (EIDRM): Likewise.
70599         [!ISO && !ISO99 && !ISO11] (EINPROGRESS): Likewise.
70600         [!ISO && !ISO99 && !ISO11] (EINTR): Likewise.
70601         [!ISO && !ISO99 && !ISO11] (EINVAL): Likewise.
70602         [!ISO && !ISO99 && !ISO11] (EIO): Likewise.
70603         [!ISO && !ISO99 && !ISO11] (EISCONN): Likewise.
70604         [!ISO && !ISO99 && !ISO11] (EISDIR): Likewise.
70605         [!ISO && !ISO99 && !ISO11] (ELOOP): Likewise.
70606         [!ISO && !ISO99 && !ISO11] (EMFILE): Likewise.
70607         [!ISO && !ISO99 && !ISO11] (EMLINK): Likewise.
70608         [!ISO && !ISO99 && !ISO11] (EMSGSIZE): Likewise.
70609         [!ISO && !ISO99 && !ISO11] (EMULTIHOP): Likewise.
70610         [!ISO && !ISO99 && !ISO11] (ENAMETOOLONG): Likewise.
70611         [!ISO && !ISO99 && !ISO11] (ENETDOWN): Likewise.
70612         [!ISO && !ISO99 && !ISO11] (ENETUNREACH): Likewise.
70613         [!ISO && !ISO99 && !ISO11] (ENFILE): Likewise.
70614         [!ISO && !ISO99 && !ISO11] (ENOBUFS): Likewise.
70615         [!ISO && !ISO99 && !ISO11] (ENODATA): Likewise.
70616         [!ISO && !ISO99 && !ISO11] (ENODEV): Likewise.
70617         [!ISO && !ISO99 && !ISO11] (ENOENT): Likewise.
70618         [!ISO && !ISO99 && !ISO11] (ENOEXEC): Likewise.
70619         [!ISO && !ISO99 && !ISO11] (ENOLCK): Likewise.
70620         [!ISO && !ISO99 && !ISO11] (ENOLINK): Likewise.
70621         [!ISO && !ISO99 && !ISO11] (ENOMEM): Likewise.
70622         [!ISO && !ISO99 && !ISO11] (ENOMSG): Likewise.
70623         [!ISO && !ISO99 && !ISO11] (ENOPROTOOPT): Likewise.
70624         [!ISO && !ISO99 && !ISO11] (ENOSPC): Likewise.
70625         [!ISO && !ISO99 && !ISO11] (ENOSR): Likewise.
70626         [!ISO && !ISO99 && !ISO11] (ENOSTR): Likewise.
70627         [!ISO && !ISO99 && !ISO11] (ENOSYS): Likewise.
70628         [!ISO && !ISO99 && !ISO11] (ENOTCONN): Likewise.
70629         [!ISO && !ISO99 && !ISO11] (ENOTDIR): Likewise.
70630         [!ISO && !ISO99 && !ISO11] (ENOTEMPTY): Likewise.
70631         [!ISO && !ISO99 && !ISO11] (ENOTSOCK): Likewise.
70632         [!ISO && !ISO99 && !ISO11] (ENOTSUP): Likewise.
70633         [!ISO && !ISO99 && !ISO11] (ENOTTY): Likewise.
70634         [!ISO && !ISO99 && !ISO11] (ENXIO): Likewise.
70635         [!ISO && !ISO99 && !ISO11] (EOPNOTSUPP): Likewise.
70636         [!ISO && !ISO99 && !ISO11] (EOVERFLOW): Likewise.
70637         [!ISO && !ISO99 && !ISO11] (EPERM): Likewise.
70638         [!ISO && !ISO99 && !ISO11] (EPIPE): Likewise.
70639         [!ISO && !ISO99 && !ISO11] (EPROTO): Likewise.
70640         [!ISO && !ISO99 && !ISO11] (EPROTONOSUPPORT): Likewise.
70641         [!ISO && !ISO99 && !ISO11] (EPROTOTYPE): Likewise.
70642         [!ISO && !ISO99 && !ISO11] (EROFS): Likewise.
70643         [!ISO && !ISO99 && !ISO11] (ESPIPE): Likewise.
70644         [!ISO && !ISO99 && !ISO11] (ESRCH): Likewise.
70645         [!ISO && !ISO99 && !ISO11] (ESTALE): Likewise.
70646         [!ISO && !ISO99 && !ISO11] (ETIME): Likewise.
70647         [!ISO && !ISO99 && !ISO11] (ETIMEDOUT): Likewise.
70648         [!ISO && !ISO99 && !ISO11] (ETXTBSY): Likewise.
70649         [!ISO && !ISO99 && !ISO11] (EWOULDBLOCK): Likewise.
70650         [!ISO && !ISO99 && !ISO11] (EXDEV): Likewise.
70651         [XOPEN2K8 || defined POSIX2008] (ENOTRECOVERABLE): Likewise.
70652         [XOPEN2K8 || defined POSIX2008] (EOWNERDEAD): Likewise.
70653         * conform/data/float.h-data (FLT_RADIX): Use macro-int-constant.
70654         Require >= 2.
70655         (FLT_ROUNDS): Expect as macro, not constant.
70656         (FLT_MANT_DIG): Use macro-int-constant.
70657         (DBL_MANT_DIG): Likewise.
70658         (LDBL_MANT_DIG): Likewise.
70659         (FLT_DIG): Likewise.
70660         (DBL_DIG): Likewise.
70661         (LDBL_DIG): Likewise.
70662         (FLT_MIN_EXP): Use macro-int-constant.  Require < 0.
70663         (DBL_MIN_EXP): Likewise.
70664         (LDBL_MIN_EXP): Likewise.
70665         (FLT_MAX_EXP): Use macro-int-constant.
70666         (DBL_MAX_EXP): Likewise.
70667         (LDBL_MAX_EXP): Likewise.
70668         (FLT_MAX_10_EXP): Likewise.
70669         (DBL_MAX_10_EXP): Likewise.
70670         (LDBL_MAX_10_EXP): Likewise.
70671         (FLT_MAX): Use macro-constant.
70672         (DBL_MAX): Likewise.
70673         (LDBL_MAX): Likewise.
70674         (FLT_EPSILON): Use macro-constant.  Give upper bound.
70675         (DBL_EPSILON): Likewise.
70676         (LDBL_EPSILON): Likewise.
70677         (FLT_MIN): Likewise.
70678         (DBL_MIN): Likewise.
70679         (LDBL_MIN): Likewise.
70680         [C99-based standards] (DECIMAL_DIG): Use macro-int-constant.
70681         [C99-based standards] (FLT_EVAL_METHOD): Likewise.
70682         [ISO11] (DBL_HAS_SUBNORM): Use macro-int-constant.
70683         [ISO11] (FLT_HAS_SUBNORM): Likewise.
70684         [ISO11] (LDBL_HAS_SUBNORM): Likewise.
70685         [ISO11] (DBL_DECIMAL_DIG): Likewise.
70686         [ISO11] (FLT_DECIMAL_DIG): Likewise.
70687         [ISO11] (LDBL_DECIMAL_DIG): Likewise.
70688         [ISO11] (DBL_TRUE_MIN): Use macro-constant.
70689         [ISO11] (FLT_TRUE_MIN): Likewise.
70690         [ISO11] (LDBL_TRUE_MIN): Likewise.
70691         [ISO || ISO99 || ISO11] (*_t): Do not allow.
70692         * conform/data/limits.h-data (CHAR_BIT): Use macro-int-constant.
70693         (SCHAR_MIN): Use macro-int-constant.  Specify type.
70694         (SCHAR_MAX): Likewise.
70695         (UCHAR_MAX): Likewise.
70696         (CHAR_MIN): Likewise.
70697         (CHAR_MAX): Likewise.
70698         (MB_LEN_MAX): Use macro-int-constant.
70699         (SHRT_MIN): Use macro-int-constant.  Specify type.
70700         (SHRT_MAX): Likewise.
70701         (USHRT_MAX): Likewise.
70702         (INT_MAX): Likewise.
70703         (INT_MIN): Use macro-int-constant.  Specify type.  Make upper
70704         bound negative.
70705         (UINT_MAX): Use macro-int-constant.  Specify type.  Suffix lower
70706         bound with "U".
70707         (LONG_MAX): Use macro-int-constant.  Specify type.  Suffix lower
70708         bound with "L".
70709         (LONG_MIN): Use macro-int-constant.  Specify type.  Make upper
70710         bound negative.  Suffix upper bound with "L".
70711         (ULONG_MAX): Use macro-int-constant.  Specify type.  Suffix lower
70712         bound with "UL".
70713         [C99-based standards] (LLONG_MIN): Use macro-int-constant.
70714         Specify type.
70715         [C99-based standards] (LLONG_MAX): Likewise.
70716         [C99-based standards] (ULLONG_MAX): Likewise.
70717         * conform/data/stddef.h-data (NULL): Use macro-constant.  Require
70718         == 0.
70719         [ISO11] (max_align_t): Require type.
70720         [ISO || ISO99 || ISO11] (*_t): Do not allow.
70721
70722         * conform/conformtest.pl ($CFLAGS_namespace): Define separately
70723         from $CFLAGS, without defining away __attribute__ calls.
70724         (checknamespace): Use $CFLAGS_namespace.
70725
70726         * conform/conformtest.pl (@keywords): Only include C99 keywords
70727         for standards based on C99 or C11.
70728
70729         * conform/data/iso646.h-data [ISO || POSIX || XPG3 || XPG4]:
70730         Disable tests.
70731         * conform/data/stdint.h-data [ISO || POSIX || XPG3 || XPG4 ||
70732         UNIX98]: Likewise.
70733
70734         * conform/conformtest.pl: Handle "macro-int-constant" and test for
70735         usability of symbols in #if.
70736
70737         * conform/conformtest.pl: If macro or constant types start
70738         "promoted:", expect the symbol to be of the following type
70739         promoted by the integer promotions.
70740
70741         * conform/conformtest.pl: Parse all "constant" and "macro" lines
70742         in one place.  Also handle "macro-constant".
70743
70744         * conform/conformtest.pl: Only accept expected macro values with
70745         "==".  Parse all "macro" lines in one place.
70746         * conform/data/stdlib.h-data: Use "==" form on "macro" lines.
70747
70748         * conform/conformtest.pl: Handle braced types on "constant" lines
70749         instead of handling "typed-constant".
70750         * conform/data/signal.h-data: Use "constant" instead of
70751         "typed-constant".
70752
70753         * conform/conformtest.pl: Handle "optional-" at start of lines in
70754         one place rather than duplicating several cases.  Handle each
70755         format of "macro" line with initial "optional-".
70756
70757         * conform/conformtest.pl: Only accept expected constant or
70758         optional-constant values with "==".  Parse all "constant" lines in
70759         one place.  Parse all "optional-constant" lines in one place.
70760         * conform/data/cpio.h-data: Use "==" form on "constant" lines.
70761         * conform/data/fmtmsg.h-data: Likewise.
70762         * conform/data/netinet/in.h-data: Likewise.
70763         * conform/data/tar.h-data: Likewise.
70764         * conform/data/limits.h-data: Use "==" form on "constant" and
70765         "optional-constant" lines.
70766
70767         * conform/conformtest.pl: Use -ansi for XPG3, XPG4 and UNIX98.
70768         Use -std=c99 for XOPEN2K.
70769         (@knownproblems): Remove.
70770         (newtoken): Don't check %isknown.
70771
70772         * conform/data/math.h-data [XPG3 || XPG4 || UNIX98] (fpclassify):
70773         Do not expect macro.
70774         [XPG3 || XPG4 || UNIX98] (isfinite): Likewise.
70775         [XPG3 || XPG4 || UNIX98] (isinf): Likewise.
70776         [XPG3 || XPG4 || UNIX98] (isnan): Likewise.
70777         [XPG3 || XPG4 || UNIX98] (isnormal): Likewise.
70778         [XPG3 || XPG4 || UNIX98] (signbit): Likewise.
70779         [XPG3 || XPG4 || UNIX98] (isgreater): Likewise.
70780         [XPG3 || XPG4 || UNIX98] (isgreaterequal): Likewise.
70781         [XPG3 || XPG4 || UNIX98] (isless): Likewise.
70782         [XPG3 || XPG4 || UNIX98] (islessequal): Likewise.
70783         [XPG3 || XPG4 || UNIX98] (islessgreater): Likewise.
70784         [XPG3 || XPG4 || UNIX98] (isunordered): Likewise.
70785         [XPG3 || XPG4 || UNIX98] (isnan): Expect as function.
70786         [XPG3 || XPG4 || UNIX98] (HUGE_VALF): Do not expect.
70787         [XPG3 || XPG4 || UNIX98] (HUGE_VALL): Likewise.
70788         [XPG3 || XPG4 || UNIX98] (INFINITY): Likewise.
70789         [XPG3 || XPG4 || UNIX98] (NAN): Likewise.
70790         [XPG3 || XPG4 || UNIX98] (FP_INFINITE): Likewise.
70791         [XPG3 || XPG4 || UNIX98] (FP_NAN): Likewise.
70792         [XPG3 || XPG4 || UNIX98] (FP_NORMAL): Likewise.
70793         [XPG3 || XPG4 || UNIX98] (FP_SUBNORMAL): Likewise.
70794         [XPG3 || XPG4 || UNIX98] (FP_ZERO): Likewise.
70795         [XPG3 || XPG4 || UNIX98] (FP_FAST_FMA): Likewise.
70796         [XPG3 || XPG4 || UNIX98] (FP_FAST_FMAF): Likewise.
70797         [XPG3 || XPG4 || UNIX98] (FP_FAST_FMAL): Likewise.
70798         [XPG3 || XPG4 || UNIX98] (FP_ILOGB0): Likewise.
70799         [XPG3 || XPG4 || UNIX98] (FP_ILOGBNAN): Likewise.
70800         [XPG3 || XPG4 || UNIX98] (copysign): Likewise.
70801         [XPG3 || XPG4 || UNIX98] (exp2): Likewise.
70802         [XPG3 || XPG4 || UNIX98] (log2): Likewise.
70803         [XPG3 || XPG4 || UNIX98] (tgama): Likewise.
70804         [XPG3] (acosh): Likewise.
70805         [XPG3] (asinh): Likewise.
70806         [XPG3] (atanh): Likewise.
70807         [XPG3] (cbrt): Likewise.
70808         [XPG3] (expm1): Likewise.
70809         [XPG3] (ilogb): Likewise.
70810         [XPG3] (log1p): Likewise.
70811         [XPG3] (logb): Likewise.
70812         [XPG3] (nextafter): Likewise.
70813         [XPG3 || XPG4 || UNIX98] (nexttoward): Likewise.
70814         [XPG3 || XPG4 || UNIX98] (nearbyint): Likewise.
70815         [XPG3] (remainder): Likewise.
70816         [XPG3] (rint): Likewise.
70817         [XPG3 || XPG4 || UNIX98] (round): Likewise.
70818         [XPG3 || XPG4 || UNIX98] (trunc): Likewise.
70819         [XPG3 || XPG4 || UNIX98] (lrint): Likewise.
70820         [XPG3 || XPG4 || UNIX98] (llrint): Likewise.
70821         [XPG3 || XPG4 || UNIX98] (lround): Likewise.
70822         [XPG3 || XPG4 || UNIX98] (llround): Likewise.
70823         [XPG3 || XPG4 || UNIX98] (remquo): Likewise.
70824         [UNIX98 || XOPEN2K] (scalb): Expect.
70825         [XPG3 || XPG4 || UNIX98] (scalbn): Do not expect.
70826         [XPG3 || XPG4 || UNIX98] (scalbln): Likewise.
70827         [XPG3 || XPG4 || UNIX98] (fdim): Likewise.
70828         [XPG3 || XPG4 || UNIX98] (fmax): Likewise.
70829         [XPG3 || XPG4 || UNIX98] (fmin): Likewise.
70830         [XPG3 || XPG4 || UNIX98] (fma): Likewise.
70831         [XPG3 || XPG4 || UNIX98] (nan): Likewise.
70832         [XPG3 || XPG4 || UNIX98] (acosf): Likewise.
70833         [XPG3 || XPG4 || UNIX98] (asinf): Likewise.
70834         [XPG3 || XPG4 || UNIX98] (atanf): Likewise.
70835         [XPG3 || XPG4 || UNIX98] (atan2f): Likewise.
70836         [XPG3 || XPG4 || UNIX98] (ceilf): Likewise.
70837         [XPG3 || XPG4 || UNIX98] (copysignf): Likewise.
70838         [XPG3 || XPG4 || UNIX98] (cosf): Likewise.
70839         [XPG3 || XPG4 || UNIX98] (coshf): Likewise.
70840         [XPG3 || XPG4 || UNIX98] (expf): Likewise.
70841         [XPG3 || XPG4 || UNIX98] (exp2f): Likewise.
70842         [XPG3 || XPG4 || UNIX98] (fabsf): Likewise.
70843         [XPG3 || XPG4 || UNIX98] (floorf): Likewise.
70844         [XPG3 || XPG4 || UNIX98] (fmodf): Likewise.
70845         [XPG3 || XPG4 || UNIX98] (frexpf): Likewise.
70846         [XPG3 || XPG4 || UNIX98] (ldexpf): Likewise.
70847         [XPG3 || XPG4 || UNIX98] (logf): Likewise.
70848         [XPG3 || XPG4 || UNIX98] (log10f): Likewise.
70849         [XPG3 || XPG4 || UNIX98] (log2f): Likewise.
70850         [XPG3 || XPG4 || UNIX98] (modff): Likewise.
70851         [XPG3 || XPG4 || UNIX98] (powf): Likewise.
70852         [XPG3 || XPG4 || UNIX98] (sinf): Likewise.
70853         [XPG3 || XPG4 || UNIX98] (sinhf): Likewise.
70854         [XPG3 || XPG4 || UNIX98] (sqrtf): Likewise.
70855         [XPG3 || XPG4 || UNIX98] (tanf): Likewise.
70856         [XPG3 || XPG4 || UNIX98] (tanhf): Likewise.
70857         [XPG3 || XPG4 || UNIX98] (erff): Likewise.
70858         [XPG3 || XPG4 || UNIX98] (erfcf): Likewise.
70859         [XPG3 || XPG4 || UNIX98] (gammaf): Likewise.
70860         [XPG3 || XPG4 || UNIX98] (hypotf): Likewise.
70861         [XPG3 || XPG4 || UNIX98] (j0f): Likewise.
70862         [XPG3 || XPG4 || UNIX98] (j1f): Likewise.
70863         [XPG3 || XPG4 || UNIX98] (jnf): Likewise.
70864         [XPG3 || XPG4 || UNIX98] (lgammaf): Likewise.
70865         [XPG3 || XPG4 || UNIX98] (tgammaf): Likewise.
70866         [XPG3 || XPG4 || UNIX98] (y0f): Likewise.
70867         [XPG3 || XPG4 || UNIX98] (y1f): Likewise.
70868         [XPG3 || XPG4 || UNIX98] (ynf): Likewise.
70869         [XPG3 || XPG4 || UNIX98] (acoshf): Likewise.
70870         [XPG3 || XPG4 || UNIX98] (asinhf): Likewise.
70871         [XPG3 || XPG4 || UNIX98] (atanhf): Likewise.
70872         [XPG3 || XPG4 || UNIX98] (cbrtf): Likewise.
70873         [XPG3 || XPG4 || UNIX98] (expm1f): Likewise.
70874         [XPG3 || XPG4 || UNIX98] (ilogbf): Likewise.
70875         [XPG3 || XPG4 || UNIX98] (log1pf): Likewise.
70876         [XPG3 || XPG4 || UNIX98] (logbf): Likewise.
70877         [XPG3 || XPG4 || UNIX98] (nextafterf): Likewise.
70878         [XPG3 || XPG4 || UNIX98] (nexttowardf): Likewise.
70879         [XPG3 || XPG4 || UNIX98] (nearbyintf): Likewise.
70880         [XPG3 || XPG4 || UNIX98] (remainderf): Likewise.
70881         [XPG3 || XPG4 || UNIX98] (rintf): Likewise.
70882         [XPG3 || XPG4 || UNIX98] (roundf): Likewise.
70883         [XPG3 || XPG4 || UNIX98] (truncf): Likewise.
70884         [XPG3 || XPG4 || UNIX98] (lrintf): Likewise.
70885         [XPG3 || XPG4 || UNIX98] (llrintf): Likewise.
70886         [XPG3 || XPG4 || UNIX98] (lroundf): Likewise.
70887         [XPG3 || XPG4 || UNIX98] (llroundf): Likewise.
70888         [XPG3 || XPG4 || UNIX98] (remquof): Likewise.
70889         [XPG3 || XPG4 || UNIX98] (scalbf): Likewise.
70890         [XPG3 || XPG4 || UNIX98] (scalbnf): Likewise.
70891         [XPG3 || XPG4 || UNIX98] (scalblnf): Likewise.
70892         [XPG3 || XPG4 || UNIX98] (fdimf): Likewise.
70893         [XPG3 || XPG4 || UNIX98] (fmaxf): Likewise.
70894         [XPG3 || XPG4 || UNIX98] (fminf): Likewise.
70895         [XPG3 || XPG4 || UNIX98] (fmaf): Likewise.
70896         [XPG3 || XPG4 || UNIX98] (nanf): Likewise.
70897         [XPG3 || XPG4 || UNIX98] (acosl): Likewise.
70898         [XPG3 || XPG4 || UNIX98] (asinl): Likewise.
70899         [XPG3 || XPG4 || UNIX98] (atanl): Likewise.
70900         [XPG3 || XPG4 || UNIX98] (atan2l): Likewise.
70901         [XPG3 || XPG4 || UNIX98] (ceill): Likewise.
70902         [XPG3 || XPG4 || UNIX98] (copysignl): Likewise.
70903         [XPG3 || XPG4 || UNIX98] (cosl): Likewise.
70904         [XPG3 || XPG4 || UNIX98] (coshl): Likewise.
70905         [XPG3 || XPG4 || UNIX98] (expl): Likewise.
70906         [XPG3 || XPG4 || UNIX98] (exp2l): Likewise.
70907         [XPG3 || XPG4 || UNIX98] (fabsl): Likewise.
70908         [XPG3 || XPG4 || UNIX98] (floorl): Likewise.
70909         [XPG3 || XPG4 || UNIX98] (fmodl): Likewise.
70910         [XPG3 || XPG4 || UNIX98] (frexpl): Likewise.
70911         [XPG3 || XPG4 || UNIX98] (ldexpl): Likewise.
70912         [XPG3 || XPG4 || UNIX98] (logl): Likewise.
70913         [XPG3 || XPG4 || UNIX98] (log10l): Likewise.
70914         [XPG3 || XPG4 || UNIX98] (log2l): Likewise.
70915         [XPG3 || XPG4 || UNIX98] (modfl): Likewise.
70916         [XPG3 || XPG4 || UNIX98] (powl): Likewise.
70917         [XPG3 || XPG4 || UNIX98] (sinl): Likewise.
70918         [XPG3 || XPG4 || UNIX98] (sinhl): Likewise.
70919         [XPG3 || XPG4 || UNIX98] (sqrtl): Likewise.
70920         [XPG3 || XPG4 || UNIX98] (tanl): Likewise.
70921         [XPG3 || XPG4 || UNIX98] (tanhl): Likewise.
70922         [XPG3 || XPG4 || UNIX98] (erfl): Likewise.
70923         [XPG3 || XPG4 || UNIX98] (erfcl): Likewise.
70924         [XPG3 || XPG4 || UNIX98] (gammal): Likewise.
70925         [XPG3 || XPG4 || UNIX98] (hypotl): Likewise.
70926         [XPG3 || XPG4 || UNIX98] (j0l): Likewise.
70927         [XPG3 || XPG4 || UNIX98] (j1l): Likewise.
70928         [XPG3 || XPG4 || UNIX98] (jnl): Likewise.
70929         [XPG3 || XPG4 || UNIX98] (lgammal): Likewise.
70930         [XPG3 || XPG4 || UNIX98] (tgammal): Likewise.
70931         [XPG3 || XPG4 || UNIX98] (y0l): Likewise.
70932         [XPG3 || XPG4 || UNIX98] (y1l): Likewise.
70933         [XPG3 || XPG4 || UNIX98] (ynl): Likewise.
70934         [XPG3 || XPG4 || UNIX98] (acoshl): Likewise.
70935         [XPG3 || XPG4 || UNIX98] (asinhl): Likewise.
70936         [XPG3 || XPG4 || UNIX98] (atanhl): Likewise.
70937         [XPG3 || XPG4 || UNIX98] (cbrtl): Likewise.
70938         [XPG3 || XPG4 || UNIX98] (expm1l): Likewise.
70939         [XPG3 || XPG4 || UNIX98] (ilogbl): Likewise.
70940         [XPG3 || XPG4 || UNIX98] (log1pl): Likewise.
70941         [XPG3 || XPG4 || UNIX98] (logbl): Likewise.
70942         [XPG3 || XPG4 || UNIX98] (nextafterl): Likewise.
70943         [XPG3 || XPG4 || UNIX98] (nexttowardl): Likewise.
70944         [XPG3 || XPG4 || UNIX98] (nearbyintl): Likewise.
70945         [XPG3 || XPG4 || UNIX98] (remainderl): Likewise.
70946         [XPG3 || XPG4 || UNIX98] (rintl): Likewise.
70947         [XPG3 || XPG4 || UNIX98] (roundl): Likewise.
70948         [XPG3 || XPG4 || UNIX98] (truncl): Likewise.
70949         [XPG3 || XPG4 || UNIX98] (lrintl): Likewise.
70950         [XPG3 || XPG4 || UNIX98] (llrintl): Likewise.
70951         [XPG3 || XPG4 || UNIX98] (lroundl): Likewise.
70952         [XPG3 || XPG4 || UNIX98] (llroundl): Likewise.
70953         [XPG3 || XPG4 || UNIX98] (remquol): Likewise.
70954         [XPG3 || XPG4 || UNIX98] (scalbl): Likewise.
70955         [XPG3 || XPG4 || UNIX98] (scalbnl): Likewise.
70956         [XPG3 || XPG4 || UNIX98] (scalblnl): Likewise.
70957         [XPG3 || XPG4 || UNIX98] (fdiml): Likewise.
70958         [XPG3 || XPG4 || UNIX98] (fmaxl): Likewise.
70959         [XPG3 || XPG4 || UNIX98] (fminl): Likewise.
70960         [XPG3 || XPG4 || UNIX98] (fmal): Likewise.
70961         [XPG3 || XPG4 || UNIX98] (nanl): Likewise.
70962
70963         * conform/conformtest.pl: Define _XOPEN_SOURCE as well as
70964         _XOPEN_SOURCE_EXTENDED for XPG4.
70965
70966         * conform/conformtest.pl: Handle "symbol" lines for allow-header.
70967
70968         * Makeconfig (localtime): Remove variable.
70969         (inst_localtime-file): Likewise.
70970
70971 2012-05-01  Andreas Schwab  <schwab@linux-m68k.org>
70972
70973         * sysdeps/unix/sysv/linux/powerpc/powerpc32/fpu/nptl/ld.abilist:
70974         Update.
70975         * sysdeps/unix/sysv/linux/powerpc/powerpc32/fpu/nptl/libc.abilist:
70976         Update.
70977         * sysdeps/unix/sysv/linux/powerpc/powerpc32/fpu/nptl/libm.abilist:
70978         Update.
70979         * sysdeps/unix/sysv/linux/powerpc/powerpc32/fpu/nptl/libpthread.abilist:
70980         Update.
70981         * sysdeps/unix/sysv/linux/powerpc/powerpc32/fpu/nptl/librt.abilist:
70982         Update.
70983         * sysdeps/unix/sysv/linux/powerpc/powerpc64/nptl/ld.abilist:
70984         Update.
70985         * sysdeps/unix/sysv/linux/powerpc/powerpc64/nptl/libc.abilist:
70986         Update.
70987         * sysdeps/unix/sysv/linux/powerpc/powerpc64/nptl/libm.abilist:
70988         Update.
70989         * sysdeps/unix/sysv/linux/powerpc/powerpc64/nptl/libpthread.abilist:
70990         Update.
70991
70992 2012-05-01  Joseph Myers  <joseph@codesourcery.com>
70993
70994         [BZ #2550]
70995         [BZ #2570]
70996         * math/s_nexttowardf.c (__nexttowardf): Use floating-point
70997         comparisons to determine direction to adjust input.
70998         * sysdeps/i386/fpu/s_nexttoward.c (__nexttoward): Likewise.
70999         * sysdeps/i386/fpu/s_nexttowardf.c(__nexttowardf): Likewise.
71000         * sysdeps/ieee754/ldbl-128/s_nexttoward.c (__nexttoward):
71001         Likewise.
71002         * sysdeps/ieee754/ldbl-128/s_nexttowardf.c (__nexttowardf):
71003         Likewise.
71004         * sysdeps/ieee754/ldbl-128ibm/s_nexttowardf.c (__nexttowardf):
71005         Likewise.
71006         * sysdeps/ieee754/ldbl-96/s_nexttoward.c (__nexttoward): Likewise.
71007         * sysdeps/ieee754/ldbl-96/s_nexttowardf.c (__nexttowardf):
71008         Likewise.
71009         * sysdeps/ieee754/ldbl-opt/s_nexttowardfd.c (__nldbl_nexttowardf):
71010         Likewise.
71011         * math/libm-test.inc (nexttoward_test): Add more tests.
71012
71013 2012-05-01  Andreas Schwab  <schwab@linux-m68k.org>
71014
71015         [BZ #14040]
71016         * sysdeps/powerpc/powerpc32/fpu/s_nearbyint.S (nearbyintl): Define
71017         in version GLIBC_2.1, not GLIBC_2.0.
71018         * sysdeps/powerpc/powerpc64/fpu/s_nearbyint.S (nearbyintl):
71019         Likewise.
71020
71021 2012-04-30  Joseph Myers  <joseph@codesourcery.com>
71022
71023         [BZ #13942]
71024         * sysdeps/i386/fpu/e_acos.S (__ieee754_acos): Calculate 1 - x^2 as
71025         (1 - x) * (1 + x).
71026         * sysdeps/i386/fpu/e_acosl.c (__ieee754_acosl): Likewise.
71027         * sysdeps/i386/fpu/e_asin.S (__ieee754_asin): Likewise.
71028         * math/libm-test.inc (acos_test): Add more tests.
71029         (asin_test): Likewise.
71030         * sysdeps/i386/fpu/libm-test-ulps: Update.
71031         * sysdeps/x86_64/fpu/libm-test-ulps: Likewise.
71032
71033         [BZ #14034]
71034         * sysdeps/i386/fpu/e_acos.S (__ieee754_acos): Take absolute value
71035         of square root.
71036         * sysdeps/i386/fpu/e_acosf.S (__ieee754_acosf): Likewise.
71037         * sysdeps/i386/fpu/e_acosl.c (__ieee754_acosl): Likewise.
71038         * math/libm-test.inc (acos_test_tonearest): New function.
71039         (acos_test_towardzero): Likewise.
71040         (acos_test_downward): Likewise.
71041         (acos_test_upward): Likewise.
71042         (asin_test_tonearest): Likewise.
71043         (asin_test_towardzero): Likewise.
71044         (asin_test_downward): Likewise.
71045         (asin_test_upward): Likewise.
71046         (main): Call the new functions.
71047         * sysdeps/i386/fpu/libm-test-ulps: Update.
71048         * sysdeps/x86_64/fpu/libm-test-ulps: Update.
71049
71050         [BZ #13884]
71051         [BZ #13924]
71052         * math/e_exp10.c: Include <float.h>.
71053         (__ieee754_exp10): Handle underflow here rather than multiplying
71054         large negative argument by M_LN10.
71055         * math/e_exp10f.c (__ieee754_exp10f): Call __ieee754_exp instead
71056         of __ieee754_expf.
71057         * math/e_exp10l.c: Include <float.h>.
71058         (__ieee754_exp10l): Handle underflow here rather than multiplying
71059         large negative argument by M_LN10l.
71060         * math/libm-test.inc (exp10_test): Add another test.  Do not allow
71061         spurious overflow exception on underflow.
71062
71063 2012-04-29  Marek Polacek  <polacek@redhat.com>
71064
71065         * misc/sys/cdefs.h (__attribute_artificial__): New macro.
71066         (__fortify_function): New macro.
71067         (__extern_always_inline): Don't use __attribute__ ((__artificial__)).
71068         * libio/bits/stdio-ldbl.h: Use __fortify_function in place of
71069         __extern_always_inline.
71070         * libio/bits/stdio2.h: Likewise.
71071         * libio/bits/stdio.h: Likewise.
71072         * string/string.h: Likewise.
71073         * string/bits/string3.h: Likewise.
71074         * include/stdio.h: Likewise.
71075         * stdlib/bits/stdlib.h: Likewise.
71076         * stdlib/stdlib.h: Likewise.
71077         * rt/bits/mqueue2.h: Likewise.
71078         * rt/mqueue.h: Likewise.
71079         * posix/bits/unistd.h: Likewise.
71080         * posix/unistd.h: Likewise.
71081         * io/bits/poll2.h: Likewise.
71082         * io/bits/fcntl2.h: Likewise.
71083         * io/fcntl.h: Likewise.
71084         * io/sys/poll.h: Likewise.
71085         * misc/bits/syslog.h: Likewise.
71086         * misc/bits/syslog-ldbl.h: Likewise.
71087         * misc/sys/syslog.h: Likewise.
71088         * socket/bits/socket2.h: Likewise.
71089         * socket/sys/socket.h: Likewise.
71090         * debug/tst-chk1.c: Likewise.
71091         * wcsmbs/bits/wchar2.h: Likewise.
71092         * wcsmbs/bits/wchar-ldbl.h: Likewise.
71093         * wcsmbs/wchar.h: Likewise.
71094
71095 2012-04-29  Andreas Jaeger  <aj@suse.de>
71096
71097         * Makerules (tests): Remove enable-check-abi protection.
71098         (check-abi-warn): Remove.
71099         (check-abi-%): Remove check-abi-warn usage.
71100
71101         * configure.in: Remove check-abi configure option.
71102         * configure: Regenerated.
71103         * config.make.in (enable-check-abi): Remove.
71104
71105 2012-04-28  Andreas Schwab  <schwab@linux-m68k.org>
71106
71107         [BZ #14033]
71108         * math/bits/math-finite.h [__NO_LONG_DOUBLE_MATH]: Redirect long
71109         double functions to double *_finite functions.
71110
71111         [BZ #13941]
71112         * sysdeps/ieee754/ldbl-128ibm/ldbl2mpn.c
71113         (__mpn_extract_long_double): Use DBL_MIN_EXP instead of
71114         LDBL_MIN_EXP.
71115         * stdio-common/Makefile (tests): Add tst-sprintf3.
71116         * stdio-common/tst-sprintf3.c: New file.
71117
71118         * elf/Makefile ($(objpfx)tst-leaks1-mem, $(objpfx)noload-mem)
71119         ($(objpfx)tst-unused-dep.out): Don't run when cross-compiling.
71120
71121 2012-04-28  Joseph Myers  <joseph@codesourcery.com>
71122
71123         * conform/conformtest.pl: Remove duplicate typed-constant
71124         handling.
71125
71126 2012-04-28  David S. Miller  <davem@davemloft.net>
71127
71128         * Makerules (%.abilist): Add vpath on sysdep_dirs.
71129         (check-abi-%): Remove AWK script prerequisite and explicit
71130         abilist directory.
71131         (check-abi): Rewrite to just diff the symlist with the abilist.
71132         (config-tls, config-abi-config): Delete, no longer used.
71133         (update-abi-%): Remove AWK script and explicit abilist directory.
71134         (update-abi): Rewrite to simply compare and conditionally copy the
71135         symlist and the sysdep abilist file.  Remove update-abi-config
71136         checks.
71137         * abilist/ld.abilist: Remove.
71138         * abilist/libBrokenLocale.abilist: Remove.
71139         * abilist/libanl.abilist: Remove.
71140         * abilist/libcrypt.abilist: Remove.
71141         * abilist/libdl.abilist: Remove.
71142         * abilist/librt.abilist: Remove.
71143         * abilist/libthread_db.abilist: Remove.
71144         * abilist/libutil.abilist: Remove.
71145         * scripts/extract-abilist.awk: Remove.
71146         * scripts/merge-abilist.awk: Remove.
71147         * sysdeps/generic/libcidn.abilist: New file.
71148         * sysdeps/generic/libnss_compat.abilist: New file.
71149         * sysdeps/generic/libnss_db.abilist: New file.
71150         * sysdeps/generic/libnss_dns.abilist: New file.
71151         * sysdeps/generic/libnss_files.abilist: New file.
71152         * sysdeps/generic/libnss_hesiod.abilist: New file.
71153         * sysdeps/generic/libnss_nis.abilist: New file.
71154         * sysdeps/generic/libnss_nisplus.abilist: New file.
71155         * sysdeps/unix/sysv/linux/i386/nptl/ld.abilist: New file.
71156         * sysdeps/unix/sysv/linux/i386/nptl/libanl.abilist: New file.
71157         * sysdeps/unix/sysv/linux/i386/nptl/libBrokenLocale.abilist: New
71158         file.
71159         * sysdeps/unix/sysv/linux/i386/nptl/libc.abilist: New file.
71160         * sysdeps/unix/sysv/linux/i386/nptl/libcrypt.abilist: New file.
71161         * sysdeps/unix/sysv/linux/i386/nptl/libdl.abilist: New file.
71162         * sysdeps/unix/sysv/linux/i386/nptl/libm.abilist: New file.
71163         * sysdeps/unix/sysv/linux/i386/nptl/libnsl.abilist: New file.
71164         * sysdeps/unix/sysv/linux/i386/nptl/libpthread.abilist: New file.
71165         * sysdeps/unix/sysv/linux/i386/nptl/libresolv.abilist: New file.
71166         * sysdeps/unix/sysv/linux/i386/nptl/librt.abilist: New file.
71167         * sysdeps/unix/sysv/linux/i386/nptl/libthread_db.abilist: New
71168         file.
71169         * sysdeps/unix/sysv/linux/i386/nptl/libutil.abilist: New file.
71170         * sysdeps/unix/sysv/linux/x86_64/nptl/ld.abilist: New file.
71171         * sysdeps/unix/sysv/linux/x86_64/nptl/libanl.abilist: New file.
71172         * sysdeps/unix/sysv/linux/x86_64/nptl/libBrokenLocale.abilist: New
71173         file.
71174         * sysdeps/unix/sysv/linux/x86_64/nptl/libc.abilist: New file.
71175         * sysdeps/unix/sysv/linux/x86_64/nptl/libcrypt.abilist: New file.
71176         * sysdeps/unix/sysv/linux/x86_64/nptl/libdl.abilist: New file.
71177         * sysdeps/unix/sysv/linux/x86_64/nptl/libm.abilist: New file.
71178         * sysdeps/unix/sysv/linux/x86_64/nptl/libnsl.abilist: New file.
71179         * sysdeps/unix/sysv/linux/x86_64/nptl/libpthread.abilist: New
71180         file.
71181         * sysdeps/unix/sysv/linux/x86_64/nptl/libresolv.abilist: New file.
71182         * sysdeps/unix/sysv/linux/x86_64/nptl/librt.abilist: New file.
71183         * sysdeps/unix/sysv/linux/x86_64/nptl/libthread_db.abilist: New
71184         file.
71185         * sysdeps/unix/sysv/linux/x86_64/nptl/libutil.abilist: New file.
71186         * sysdeps/unix/sysv/linux/powerpc/powercp32/fpu/nptl/ld.abilist:
71187         New file.
71188         * sysdeps/unix/sysv/linux/powerpc/powercp32/fpu/nptl/libanl.abilist:
71189         New file.
71190         * sysdeps/unix/sysv/linux/powerpc/powercp32/fpu/nptl/libBrokenLocale.abilist:
71191         New file.
71192         * sysdeps/unix/sysv/linux/powerpc/powercp32/fpu/nptl/libc.abilist:
71193         New file.
71194         * sysdeps/unix/sysv/linux/powerpc/powercp32/fpu/nptl/libcrypt.abilist:
71195         New file.
71196         * sysdeps/unix/sysv/linux/powerpc/powercp32/fpu/nptl/libdl.abilist:
71197         New file.
71198         * sysdeps/unix/sysv/linux/powerpc/powercp32/fpu/nptl/libm.abilist:
71199         New file.
71200         * sysdeps/unix/sysv/linux/powerpc/powercp32/fpu/nptl/libnsl.abilist:
71201         New file.
71202         * sysdeps/unix/sysv/linux/powerpc/powercp32/fpu/nptl/libpthread.abilist:
71203         New file.
71204         * sysdeps/unix/sysv/linux/powerpc/powercp32/fpu/nptl/libresolv.abilist:
71205         New file.
71206         * sysdeps/unix/sysv/linux/powerpc/powercp32/fpu/nptl/librt.abilist:
71207         New file.
71208         * sysdeps/unix/sysv/linux/powerpc/powercp32/fpu/nptl/libthread_db.abilist:
71209         New file.
71210         * sysdeps/unix/sysv/linux/powerpc/powercp32/fpu/nptl/libutil.abilist:
71211         New file.
71212         * sysdeps/unix/sysv/linux/powerpc/powerpc64/nptl/ld.abilist: New
71213         file.
71214         * sysdeps/unix/sysv/linux/powerpc/powerpc64/nptl/libanl.abilist:
71215         New file.
71216         * sysdeps/unix/sysv/linux/powerpc/powerpc64/nptl/libBrokenLocale.abilist:
71217         New file.
71218         * sysdeps/unix/sysv/linux/powerpc/powerpc64/nptl/libc.abilist: New
71219         file.
71220         * sysdeps/unix/sysv/linux/powerpc/powerpc64/nptl/libcrypt.abilist:
71221         New file.
71222         * sysdeps/unix/sysv/linux/powerpc/powerpc64/nptl/libdl.abilist:
71223         New file.
71224         * sysdeps/unix/sysv/linux/powerpc/powerpc64/nptl/libm.abilist: New
71225         file.
71226         * sysdeps/unix/sysv/linux/powerpc/powerpc64/nptl/libnsl.abilist:
71227         New file.
71228         * sysdeps/unix/sysv/linux/powerpc/powerpc64/nptl/libpthread.abilist:
71229         New file.
71230         * sysdeps/unix/sysv/linux/powerpc/powerpc64/nptl/libresolv.abilist:
71231         New file.
71232         * sysdeps/unix/sysv/linux/powerpc/powerpc64/nptl/librt.abilist:
71233         New file.
71234         * sysdeps/unix/sysv/linux/powerpc/powerpc64/nptl/libthread_db.abilist:
71235         New file.
71236         * sysdeps/unix/sysv/linux/powerpc/powerpc64/nptl/libutil.abilist:
71237         New file.
71238         * sysdeps/unix/sysv/linux/s390/s390-32/nptl/ld.abilist: New file.
71239         * sysdeps/unix/sysv/linux/s390/s390-32/nptl/libanl.abilist: New
71240         file.
71241         * sysdeps/unix/sysv/linux/s390/s390-32/nptl/libBrokenLocale.abilist:
71242         New file.
71243         * sysdeps/unix/sysv/linux/s390/s390-32/nptl/libc.abilist: New
71244         file.
71245         * sysdeps/unix/sysv/linux/s390/s390-32/nptl/libcrypt.abilist: New
71246         file.
71247         * sysdeps/unix/sysv/linux/s390/s390-32/nptl/libdl.abilist: New
71248         file.
71249         * sysdeps/unix/sysv/linux/s390/s390-32/nptl/libm.abilist: New
71250         file.
71251         * sysdeps/unix/sysv/linux/s390/s390-32/nptl/libnsl.abilist: New
71252         file.
71253         * sysdeps/unix/sysv/linux/s390/s390-32/nptl/libpthread.abilist:
71254         New file.
71255         * sysdeps/unix/sysv/linux/s390/s390-32/nptl/libresolv.abilist: New
71256         file.
71257         * sysdeps/unix/sysv/linux/s390/s390-32/nptl/librt.abilist: New
71258         file.
71259         * sysdeps/unix/sysv/linux/s390/s390-32/nptl/libthread_db.abilist:
71260         New file.
71261         * sysdeps/unix/sysv/linux/s390/s390-32/nptl/libutil.abilist: New
71262         file.
71263         * sysdeps/unix/sysv/linux/s390/s390-64/nptl/ld.abilist: New file.
71264         * sysdeps/unix/sysv/linux/s390/s390-64/nptl/libanl.abilist: New
71265         file.
71266         * sysdeps/unix/sysv/linux/s390/s390-64/nptl/libBrokenLocale.abilist:
71267         New file.
71268         * sysdeps/unix/sysv/linux/s390/s390-64/nptl/libc.abilist: New
71269         file.
71270         * sysdeps/unix/sysv/linux/s390/s390-64/nptl/libcrypt.abilist: New
71271         file.
71272         * sysdeps/unix/sysv/linux/s390/s390-64/nptl/libdl.abilist: New
71273         file.
71274         * sysdeps/unix/sysv/linux/s390/s390-64/nptl/libm.abilist: New
71275         file.
71276         * sysdeps/unix/sysv/linux/s390/s390-64/nptl/libnsl.abilist: New
71277         file.
71278         * sysdeps/unix/sysv/linux/s390/s390-64/nptl/libpthread.abilist:
71279         New file.
71280         * sysdeps/unix/sysv/linux/s390/s390-64/nptl/libresolv.abilist: New
71281         file.
71282         * sysdeps/unix/sysv/linux/s390/s390-64/nptl/librt.abilist: New
71283         file.
71284         * sysdeps/unix/sysv/linux/s390/s390-64/nptl/libthread_db.abilist:
71285         New file.
71286         * sysdeps/unix/sysv/linux/s390/s390-64/nptl/libutil.abilist: New
71287         file.
71288         * sysdeps/unix/sysv/linux/sh/nptl/ld.abilist: New file.
71289         * sysdeps/unix/sysv/linux/sh/nptl/libanl.abilist: New file.
71290         * sysdeps/unix/sysv/linux/sh/nptl/libBrokenLocale.abilist: New
71291         file.
71292         * sysdeps/unix/sysv/linux/sh/nptl/libc.abilist: New file.
71293         * sysdeps/unix/sysv/linux/sh/nptl/libcrypt.abilist: New file.
71294         * sysdeps/unix/sysv/linux/sh/nptl/libdl.abilist: New file.
71295         * sysdeps/unix/sysv/linux/sh/nptl/libm.abilist: New file.
71296         * sysdeps/unix/sysv/linux/sh/nptl/libnsl.abilist: New file.
71297         * sysdeps/unix/sysv/linux/sh/nptl/libpthread.abilist: New file.
71298         * sysdeps/unix/sysv/linux/sh/nptl/libresolv.abilist: New file.
71299         * sysdeps/unix/sysv/linux/sh/nptl/librt.abilist: New file.
71300         * sysdeps/unix/sysv/linux/sh/nptl/libthread_db.abilist: New file.
71301         * sysdeps/unix/sysv/linux/sh/nptl/libutil.abilist: New file.
71302         * sysdeps/unix/sysv/linux/sparc/sparc32/nptl/ld.abilist: New file.
71303         * sysdeps/unix/sysv/linux/sparc/sparc32/nptl/libanl.abilist: New
71304         file.
71305         * sysdeps/unix/sysv/linux/sparc/sparc32/nptl/libBrokenLocale.abilist:
71306         New file.
71307         * sysdeps/unix/sysv/linux/sparc/sparc32/nptl/libc.abilist: New
71308         file.
71309         * sysdeps/unix/sysv/linux/sparc/sparc32/nptl/libcrypt.abilist: New
71310         file.
71311         * sysdeps/unix/sysv/linux/sparc/sparc32/nptl/libdl.abilist: New
71312         file.
71313         * sysdeps/unix/sysv/linux/sparc/sparc32/nptl/libm.abilist: New
71314         file.
71315         * sysdeps/unix/sysv/linux/sparc/sparc32/nptl/libnsl.abilist: New
71316         file.
71317         * sysdeps/unix/sysv/linux/sparc/sparc32/nptl/libpthread.abilist:
71318         New file.
71319         * sysdeps/unix/sysv/linux/sparc/sparc32/nptl/libresolv.abilist:
71320         New file.
71321         * sysdeps/unix/sysv/linux/sparc/sparc32/nptl/librt.abilist: New
71322         file.
71323         * sysdeps/unix/sysv/linux/sparc/sparc32/nptl/libthread_db.abilist:
71324         New file.
71325         * sysdeps/unix/sysv/linux/sparc/sparc32/nptl/libutil.abilist: New
71326         file.
71327         * sysdeps/unix/sysv/linux/sparc/sparc64/nptl/ld.abilist: New file.
71328         * sysdeps/unix/sysv/linux/sparc/sparc64/nptl/libanl.abilist: New
71329         file.
71330         * sysdeps/unix/sysv/linux/sparc/sparc64/nptl/libBrokenLocale.abilist:
71331         New file.
71332         * sysdeps/unix/sysv/linux/sparc/sparc64/nptl/libc.abilist: New
71333         file.
71334         * sysdeps/unix/sysv/linux/sparc/sparc64/nptl/libcrypt.abilist: New
71335         file.
71336         * sysdeps/unix/sysv/linux/sparc/sparc64/nptl/libdl.abilist: New
71337         file.
71338         * sysdeps/unix/sysv/linux/sparc/sparc64/nptl/libm.abilist: New
71339         file.
71340         * sysdeps/unix/sysv/linux/sparc/sparc64/nptl/libnsl.abilist: New
71341         file.
71342         * sysdeps/unix/sysv/linux/sparc/sparc64/nptl/libpthread.abilist:
71343         New file.
71344         * sysdeps/unix/sysv/linux/sparc/sparc64/nptl/libresolv.abilist:
71345         New file.
71346         * sysdeps/unix/sysv/linux/sparc/sparc64/nptl/librt.abilist: New
71347         file.
71348         * sysdeps/unix/sysv/linux/sparc/sparc64/nptl/libthread_db.abilist:
71349         New file.
71350         * sysdeps/unix/sysv/linux/sparc/sparc64/nptl/libutil.abilist: New
71351         file.
71352
71353 2012-04-28  Joseph Myers  <joseph@codesourcery.com>
71354
71355         * conform/conformtest.pl: Fix typo in handling typed-constant from
71356         allow-header.
71357
71358 2012-04-27  Joseph Myers  <joseph@codesourcery.com>
71359
71360         * README: Cut down references to pre-2.6 Linux kernels and
71361         Linuxthreads.  Update lists of configurations in libc and ports
71362         and sort alphabetically.  Say "or newer" with Linux kernel version
71363         requirements.
71364
71365         * config.h.in [IS_IN_build]: Allow compiling without optimization.
71366
71367 2012-04-27  Ryan S. Arnold  <rsa@linux.vnet.ibm.com>
71368
71369         [BZ #887]
71370         * math/libm-test.inc (logb_test_downward): New test to expose
71371         erroneous negative sign on -0.0 result of logb[l](1) in FE_DOWNWARD
71372         rounding mode.
71373
71374 2012-04-27  Joseph Myers  <joseph@codesourcery.com>
71375
71376         [BZ #14027]
71377         * math/fclrexcpt.c (__feclearexcept): Return zero if nothing needs
71378         to be done.
71379         * math/fraiseexcpt.c (__feraiseexcept): Likewise.
71380         * math/fsetexcptflg.c (__fesetexceptflag): Likewise.
71381
71382 2012-04-26  Joseph Myers  <joseph@codesourcery.com>
71383
71384         * sysdeps/unix/i386/brk.S: Remove file.
71385         * sysdeps/unix/i386/dl-brk.S: Likewise.
71386         * sysdeps/unix/i386/pipe.S: Likewise.
71387         * sysdeps/unix/i386/sigreturn.S: Likewise.
71388         * sysdeps/unix/i386/syscall.S: Likewise.
71389         * sysdeps/unix/i386/vfork.S: Likewise.
71390         * sysdeps/unix/i386/wait.S: Likewise.
71391
71392         * sysdeps/unix/common/tcsendbrk.c: Move to ...
71393         * sysdeps/unix/sysv/linux/tcsendbrk.c: ... here.
71394
71395         * configure.in (arm*-none*): Do not allow without
71396         --enable-hacker-mode.
71397         (netbsd*): Remove case setting base_os.
71398         (386bsd*): Likewise.
71399         (freebsd*): Likewise.
71400         (bsdi*): Likewise.
71401         (osf*): Likewise.
71402         (sunos*): Likewise.
71403         (ultrix*): Likewise.
71404         (newsos*): Likewise.
71405         (dynix*): Likewise.
71406         (*bsd*): Likewise.
71407         (sysv*): Likewise.
71408         (isc*): Likewise.
71409         (esix*): Likewise.
71410         (sco*): Likewise.
71411         (minix*): Likewise.
71412         (irix4*): Likewise.
71413         (irix6*): Likewise.
71414         (solaris[2-9]*): Likewise.
71415         (none): Likewise.
71416         * configure: Regenerated.
71417
71418 2012-04-26  Adhemerval Zanella  <azanella@linux.vnet.ibm.com>
71419
71420         [BZ #11521]
71421         * sysdeps/ieee754/ldbl-128ibm/s_ctanhl.c (__ctanhl): Avoid internal
71422         overflow or cancellation in calculating denominator.
71423         * sysdeps/ieee754/ldbl-128ibm/s_ctanl.c (__ctanl): Likewise.
71424         * sysdeps/ieee754/ldbl-128ibm/e_sinhl.c (__ieee754_sinhl): Breaking
71425         down expression to avoid unexpected rounding in newer GCCs.
71426         * sysdeps/powerpc/fpu/libm-test-ulps: Update for ctan, ctanh fix.
71427
71428 2012-04-26  David S. Miller  <davem@davemloft.net>
71429
71430         * sysdeps/sparc/sparc32/sparcv9/fpu/multiarch/s_ceil.S: Generate
71431         long-double compat symbols.
71432         * sysdeps/sparc/sparc32/sparcv9/fpu/multiarch/s_floor.S: Likewise.
71433         * sysdeps/sparc/sparc32/sparcv9/fpu/multiarch/s_fmax.S: Likewise.
71434         * sysdeps/sparc/sparc32/sparcv9/fpu/multiarch/s_fmin.S: Likewise.
71435         * sysdeps/sparc/sparc32/sparcv9/fpu/multiarch/s_llrint.S: Likewise.
71436         * sysdeps/sparc/sparc32/sparcv9/fpu/multiarch/s_rint.S: Likewise.
71437         * sysdeps/sparc/sparc32/sparcv9/fpu/s_ceil.S: Likewise.
71438         * sysdeps/sparc/sparc32/sparcv9/fpu/s_floor.S: Likewise.
71439         * sysdeps/sparc/sparc32/sparcv9/fpu/s_fmax.S: Likewise.
71440         * sysdeps/sparc/sparc32/sparcv9/fpu/s_fmin.S: Likewise.
71441         * sysdeps/sparc/sparc32/sparcv9/fpu/s_isnan.S: Likewise.
71442         * sysdeps/sparc/sparc32/sparcv9/fpu/s_llrint.S: Likewise.
71443         * sysdeps/sparc/sparc32/sparcv9/fpu/s_lrint.S: Likewise.
71444         * sysdeps/sparc/sparc32/sparcv9/fpu/s_rint.S: Likewise.
71445
71446 2012-04-25  David S. Miller  <davem@davemloft.net>
71447
71448         * sysdeps/sparc/sparc32/bits/atomic.h: Include sysdep.h to get
71449         HWCAP_* values only after the memory barriers have been defined.
71450         (atomic_full_barrier): Define.
71451         (atomic_read_barrier): Define.
71452         (atomic_write_barrier): Define.
71453
71454 2012-04-26  Siddhesh Poyarekar  <siddhesh@redhat.com>
71455
71456         * shlib-versions: Add libgcc_s version information.
71457         * sysdeps/generic/libgcc_s.h: Remove.
71458         * sysdeps/generic/framestate.c: Include gnu/lib-names.h instead of
71459         libgcc_s.h.
71460         * sysdeps/gnu/unwind-resume.c: Likewise.
71461         * scripts/test-installation.pl: Remove libgcc_s from link_libs.
71462
71463 2012-04-25  David S. Miller  <davem@davemloft.net>
71464
71465         * sysdeps/unix/sparc/brk.S: Delete.
71466         * sysdeps/unix/sparc/dl-brk.S: Delete.
71467         * sysdeps/unix/sparc/pipe.S: Delete.
71468         * sysdeps/unix/sparc/sysdep.S: Delete.
71469         * sysdeps/unix/sparc/sysdep.h: Delete.
71470         * sysdeps/unix/sparc/vfork.S: Delete.
71471         * sysdeps/sparc/sysdep.h (SPARC_PIC_THUNK, SPARC_PIC_REG)
71472         (SPARC_PIC_REG_LEAF, ENTRY, END, LOC): Define.
71473         * sysdeps/unix/sysv/linux/sparc/sysdep.h (ret, ret_NOERRNO)
71474         (ret_ERRVAL, r0, r1, MOVE): Define.
71475         (JUMPTARGET): Remove.
71476         * sysdeps/unix/sysv/linux/sparc/sparc32/sysdep.h: Don't include
71477         sysdeps/unix/sparc/sysdep.h
71478         (ENTRY, END): Remove.
71479         * sysdeps/unix/sysv/linux/sparc/sparc64/sysdep.h: Likewise.
71480
71481 2012-04-25  Joseph Myers  <joseph@codesourcery.com>
71482
71483         * Makerules (native-compile): Use $(BUILD_LDFLAGS).
71484         (ALL_BUILD_CFLAGS): Use $(BUILD_CPPFLAGS) -D_GNU_SOURCE
71485         -DIS_IN_build.
71486
71487         * timezone/README: Update upstream location and email address for
71488         tzcode and tzdata.
71489         * timezone/zdump.c: Update from tzcode 2012b.
71490         * timezone/zic.c: Likewise.
71491
71492         * configure.in (libc_cv_as_needed): Remove test.
71493         * configure: Regenerated.
71494         * Makeconfig [$(have-as-needed) != yes] (as-needed): Remove
71495         conditional definition.
71496         [$(have-as-needed) != yes] (no-as-needed): Likewise.
71497         [$(have-as-needed) != yes] (libgcc_eh): Likewise.
71498         * config.make.in (have-as-needed): Remove variable.
71499
71500 2012-04-25  Siddhesh Poyarekar  <siddhesh@redhat.com>
71501             Paul Pluzhnikov  <ppluzhnikov@google.com>
71502
71503         * elf/dl-minimal.c (__strtoul_internal): Parse hexadecimal and octal
71504         strings correctly.
71505
71506 2012-04-25  Chung-Lin Tang  <cltang@codesourcery.com>
71507
71508         * sysdeps/sh/memcpy.S: Remove include of endian.h, change
71509         preprocessor endian tests to '#ifdef __BIG_ENDIAN__'.
71510         * sysdeps/sh/strlen.S: Likewise.
71511
71512 2012-04-24  Joseph Myers  <joseph@codesourcery.com>
71513
71514         * sysdeps/unix/fork.S: Remove file.
71515         * sysdeps/unix/i386/fork.S: Likewise.
71516         * sysdeps/unix/sparc/fork.S: Likewise.
71517
71518         * sysdeps/unix/system.c: Remove file.
71519         * sysdeps/unix/bsd/bsd4.4/system.c: Likewise.
71520
71521         * sysdeps/unix/getegid.S: Remove file.
71522         * sysdeps/unix/geteuid.S: Likewise.
71523
71524 2012-04-24  Roland McGrath  <roland@hack.frob.com>
71525
71526         * scripts/check-localplt.awk: New file.
71527         * elf/Makefile ($(objpfx)check-localplt.out): Use that script instead
71528         of diff.
71529         * scripts/data/localplt-generic.data: Add a comment.
71530
71531         * sysdeps/mach/hurd/symlink.c: Don't call __mach_port_deallocate on
71532         NODE when __dir_mkfile failed.
71533         * sysdeps/mach/hurd/symlinkat.c: Likewise.
71534         Reported by Ludovic Courtès <ludo@gnu.org>.
71535
71536 2012-04-24  Andreas Jaeger  <aj@suse.de>
71537
71538         * Makerules (common-clean): Also remove gen-as-const-headers
71539         files.
71540
71541 2012-04-24  Joseph Myers  <joseph@codesourcery.com>
71542
71543         * Makerules (native-compile): Do not change working directory for
71544         build.  Use $(OUTPUT_OPTION) in command.
71545         (ALL_BUILD_CFLAGS): Use $(common-objpfx) to find config.h.
71546
71547 2012-04-24  Adhemerval Zanella  <azanella@linux.vnet.ibm.com>
71548
71549         [BZ #13886]
71550         * sysdeps/powerpc/powerpc64/fpu/s_floorl.S: Delete file. Use the
71551         sysdeps/ieee754/ldbl-128ibm/s_floorl.c version instead.
71552         * math/libm-test.inc (floor_test): Add more tests.
71553         * sysdeps/powerpc/fpu/libm-test-ulps: Update for pow tests.
71554
71555 2012-04-24  Joseph Myers  <joseph@codesourcery.com>
71556
71557         * sysdeps/unix/getdents.c: Remove file.
71558         * sysdeps/unix/sysv/getdents.c: Likewise.
71559         * sysdeps/unix/sysv/syscalls.list (s_getdents): Remove.
71560
71561         * sysdeps/unix/syscalls.list (madvise): Add syscall from
71562         sysdeps/unix/mman/syscalls.list.
71563         (mmap): Likewise.
71564         (mprotect): Likewise.
71565         (msync): Likewise.
71566         (munmap): Likewise.
71567         * sysdeps/unix/bsd/bsd4.4/Implies: Remove.
71568         * sysdeps/unix/mman/syscalls.list: Remove.
71569         * sysdeps/unix/sysv/linux/Implies: Don't include unix/mman.
71570
71571         * configure.in (libc_cv_libgcc_s_suffix): Remove test.
71572         (libc_cv_as_needed): Don't use $libc_cv_libgcc_s_suffix.
71573         * configure: Regenerated.
71574         * Makeconfig [$(have-as-needed) = yes] (libgcc_eh): Don't use
71575         $(libgcc_s_suffix).
71576         * config.make.in (libgcc_s_suffix): Remove variable.
71577
71578 2012-04-23  Joseph Myers  <joseph@codesourcery.com>
71579
71580         * sysdeps/unix/sysv/gethostname.c: Move to ...
71581         * sysdeps/posix/gethostname.c: ... here.
71582
71583         * sysdeps/unix/execve.S: Remove file.
71584
71585         * sysdeps/unix/_exit.S: Remove file.
71586
71587 2012-04-23  Andreas Jaeger  <aj@suse.de>
71588
71589         [BZ #13739]
71590         * manual/Makefile: Remove make dist support, there's no
71591         need for a stand-alone documentation tar ball.
71592         (TEXI2DVI): Define always, it's not in Makeconfig.
71593         (dist): Removed.
71594         (tar-it): Removed.
71595         (edition): Removed.
71596         (glibc-doc-$(edition).tar): Removed
71597         (%.Z): Removed.
71598         (%.gz): Removed.
71599         (%.uu): Removed.
71600         (ETAGS): Remove, it's in Makeconfig.
71601         (move-if-change): Remove, it's in Makeconfig.
71602
71603 2012-04-23  Paul Eggert  <eggert@cs.ucla.edu>
71604
71605         [BZ #13970]
71606         * stdlib/stdlib.h: Remove warn_unused_result attribute from strtol etc.
71607         (strtod, strtof, strtold, strtol, strtoul, strtoq)
71608         (strtouq, strtoll, strtoull, strtol_l, strtoul_l, strtoll_l, strtoull_l)
71609         (strtod_l, strtof_l, strtold_l): Remove __wur.
71610         It is not necessarily an error to ignore strtol's return value.
71611         One can reliably look at the stored endptr to decide whether
71612         the number had valid syntax.
71613
71614 2012-04-21  Andreas Jaeger  <aj@suse.de>
71615
71616         [BZ #13739]
71617         * sysdeps/s390/s390-64/Makefile (distribute): Remove variable.
71618
71619 2012-04-21  Joseph Myers  <joseph@codesourcery.com>
71620
71621         * sysdeps/unix/sysv/linux/Versions (GLIBC_2.0): Add sysinfo.
71622         * sysdeps/unix/sysv/Versions: Remove file.
71623
71624 2012-04-21  Markus Trippelsdorf  <markus@trippelsdorf.de>
71625
71626         [BZ #13927]
71627         * sysdeps/x86_64/fpu/libm-test-ulps: Update.
71628
71629 2012-04-21  Nick Alcock  <nick.alcock@oracle.com>
71630
71631         [BZ #7064]
71632         * sysdeps/unix/sysv/linux/i386/syscalls.list: Omit explicit
71633         version from __vm86.
71634
71635 2012-04-20  Joseph Myers  <joseph@codesourcery.com>
71636
71637         * sysdeps/unix/common/lxstat.c: Remove file.
71638         * sysdeps/unix/common/syscalls.list (sys_lstat): Remove.
71639
71640         * sysdeps/unix/sysv/Makefile: Remove file.
71641
71642         * sysdeps/unix/sysv/direct.h: Remove file.
71643
71644         * sysdeps/unix/sysv/bits/dirent.h: Remove file.
71645         * sysdeps/unix/sysv/bits/fcntl.h: Likewise.
71646         * sysdeps/unix/sysv/bits/local_lim.h: Likewise.
71647         * sysdeps/unix/sysv/bits/signum.h: Likewise.
71648         * sysdeps/unix/sysv/bits/stat.h: Likewise.
71649         * sysdeps/unix/sysv/bits/utmp.h: Likewise.
71650         * sysdeps/unix/sysv/bits/utsname.h: Likewise.
71651
71652         * sysdeps/unix/sysv/setrlimit.c: Remove file.
71653
71654         * sysdeps/unix/xmknod.c: Remove file.
71655         * sysdeps/unix/syscalls.list (sys_mknod): Remove.
71656
71657         * sysdeps/unix/sysv/settimeofday.c: Remove file.
71658
71659         * sysdeps/unix/sysv/i386/time.S: Remove file.
71660
71661         * sysdeps/unix/fxstat.c: Remove file.
71662         * sysdeps/unix/xstat.c: Likewise.
71663         * sysdeps/unix/syscalls.list (sys_fstat, sys_stat): Remove.
71664
71665         * sysdeps/unix/sysv/sigaction.c: Remove file.
71666
71667         * sysdeps/unix/sysv/Makefile [termio.h not in sysdep_headers]
71668         (sysdep_headers): Remove variable.
71669         [termio.h not in sysdep_headers] (generated): Likewise.
71670         [termio.h not in sysdep_headers] ($(objpfx)termio.h): Remove rule.
71671         * sysdeps/unix/sysv/sysv_termio.h: Remove file.
71672         * sysdeps/unix/sysv/tcdrain.c: Likewise.
71673         * sysdeps/unix/sysv/tcflow.c: Likewise.
71674         * sysdeps/unix/sysv/tcflush.c: Likewise.
71675         * sysdeps/unix/sysv/tcgetattr.c: Likewise.
71676         * sysdeps/unix/sysv/tcgetpgrp.c: Likewise.
71677         * sysdeps/unix/sysv/tcsendbrk.c: Likewise.
71678         * sysdeps/unix/sysv/tcsetattr.c: Likewise.
71679         * sysdeps/unix/sysv/tcsetpgrp.c: Likewise.
71680
71681         * sysdeps/unix/siglist.c: Remove file.
71682
71683         * sysdeps/unix/getppid.S: Remove file.
71684
71685         * sysdeps/unix/mkdir.c: Remove file.
71686         * sysdeps/unix/rmdir.c: Likewise.
71687
71688 2012-04-19  Andreas Schwab  <schwab@linux-m68k.org>
71689
71690         * sysdeps/gnu/errlist-compat.awk (END): Correct computation of
71691         ERR_MAX value.
71692         * sysdeps/unix/sysv/linux/Versions (GLIBC_2.12): Adjust
71693         errlist-compat value.
71694
71695 2012-04-18  David S. Miller  <davem@davemloft.net>
71696
71697         * sysdeps/generic/memcopy.h (reg_char): Delete.
71698         * debug/strcat_chk.c: Use char, not reg_char.
71699         * debug/strcpy_chk.c: Likewise.
71700         * debug/strncat_chk.c: Likewise.
71701         * debug/strncpy_chk.c: Likewise.
71702         * string/memchr.c: Likewise.
71703         * string/memrchr.c: Likewise.
71704         * string/rawmemchr.c: Likewise.
71705         * string/strcat.c: Likewise.
71706         * string/strchr.c: Likewise.
71707         * string/strchrnul.c: Likewise.
71708         * string/strcmp.c: Likewise.
71709         * string/strcpy.c: Likewise.
71710         * string/strncat.c: Likewise.
71711         * string/strncmp.c: Likewise.
71712         * string/strncpy.c: Likewise.
71713
71714 2012-04-18  Will Schmidt  <will_schmidt@vnet.ibm.com>
71715
71716         * sysdeps/powerpc/memmove.c: New file based on string/memmove.c where
71717         __builtin_memcopy is called when src and dest ranges are known to not
71718         overlap.
71719
71720 2012-04-18  Will Schmidt  <will_schmidt@vnet.ibm.com>
71721
71722         * sysdeps/powerpc/powerpc64/power6/wordcopy.c
71723         (_wordcopy_fwd_dest_aligned): Replace switch with a parameterized
71724         fwd_align_merge macro call.
71725         (_wordcopy_bwd_dest_aligned): Replace switch with a parameterized
71726         bwd_align_merge macro call.
71727         * sysdeps/powerpc/powerpc32/power6/wordcopy.c: Likewise.
71728
71729 2012-04-18  Will Schmidt  <will_schmidt@vnet.ibm.com>
71730
71731         * sysdeps/powerpc/powerpc64/power6/wordcopy.c: Add fwd_align_merge and
71732         bwd_align_merge macros.
71733         (_wordcopy_fwd_dest_aligned): Use fwd_align_merge macro calls.
71734         (_wordcopy_bwd_dest_aligned): Use bwd_align_merge macro calls.
71735         * sysdeps/powerpc/powerpc32/power6/wordcopy.c: Likewise.
71736
71737 2012-04-18  David S. Miller  <davem@davemloft.net>
71738
71739         * sysdeps/sparc/sparc64/memcopy.h: Delete.
71740
71741 2012-04-18  Andreas Jaeger  <aj@suse.de>
71742
71743         [BZ# 6794]
71744         * sysdeps/ieee754/ldbl-96/s_ilogbl.c: Moved to ...
71745         * sysdeps/ieee754/ldbl-96/e_ilogbl.c: ... here.
71746         Rename __ilogbl to __ieee754_ilogbl and remove weak_alias.
71747
71748         * sysdeps/ieee754/ldbl-128/s_ilogbl.c: Moved to ...
71749         * sysdeps/ieee754/ldbl-128/e_ilogbl.c: ... here.
71750         Rename __ilogbl to __ieee754_ilogbl and remove weak_alias.
71751
71752         * sysdeps/ieee754/ldbl-64-128/s_ilogbl.c: Moved to ...
71753         * sysdeps/ieee754/ldbl-64-128/e_ilogbl.c: ... here.
71754         Adjust for changed ldbl-128 files.
71755
71756         * sysdeps/sparc/sparc64/soft-fp/s_ilogbl.c: Moved to ...
71757         * sysdeps/sparc/sparc64/soft-fp/e_ilogbl.c: ... here.
71758         Rename __ilogbl to __ieee754_ilogbl and remove weak_alias.
71759
71760 2012-04-17  David S. Miller  <davem@davemloft.net>
71761
71762         * sysdeps/sparc/sparc32/memcopy.h: Delete.
71763
71764 2012-04-17  Andreas Schwab  <schwab@linux-m68k.org>
71765
71766         * sysdeps/i386/fpu/e_ilogb.S: Remove __ilogb*_finite alias.
71767         * sysdeps/i386/fpu/e_ilogbf.S: Likewise.
71768         * sysdeps/i386/fpu/e_ilogbl.S: Likewise.
71769         * sysdeps/x86_64/fpu/e_ilogbl.S: Likewise.
71770         * sysdeps/ieee754/dbl-64/e_ilogb.c: Likewise.
71771         * sysdeps/ieee754/flt-32/e_ilogbf.c: Likewise.
71772
71773 2012-04-17  Adhemerval Zanella  <azanella@linux.vnet.ibm.com>
71774
71775         [BZ #6794]
71776         * math/Makefile: Add e_ilogb and w_ilogb, remove s_logb.
71777         * math/libm-test.inc: Add ilogb errno and exception tests.
71778         * math/w_ilogb.c: New file: ilogb wrapper.
71779         * math/w_ilogbf.c: New file: ilogbf wrapper.
71780         * math/w_ilogbl.c: New file: ilogbl wrapper.
71781         * sysdeps/generic/math_private.h: Add __ieee754_ilogb[l|f] prototypes.
71782         * sysdeps/i386/fpu/s_ilogb.S: Moved to ...
71783         * sysdeps/i386/fpu/e_ilogb.S: ... here. Also fixed a FE_DIVBYZERO
71784         exception being thrown with 0.0 as argument.
71785         * sysdeps/i386/fpu/s_ilogbf.S: Moved to ...
71786         * sysdeps/i386/fpu/e_ilogbf.S: ... here. Also fixed a FE_DIVBYZERO
71787         exception being thrown with 0.0 as argument.
71788         * sysdeps/i386/fpu/s_ilogbl.S: Moved to ...
71789         * sysdeps/i386/fpu/e_ilogbl.S: ... here. Also fixed a FE_DIVBYZERO
71790         exception being thrown with 0.0 as argument.
71791         * sysdeps/x86_64/fpu/s_ilogbl.S: Moved to ...
71792         * sysdeps/x86_64/fpu/e_ilogbl.S: ... here. Also fixed a FE_DIVBYZERO
71793         exception being thrown with 0.0 as argument.
71794         * sysdeps/ieee754/dbl-64/s_ilogb.c: Moved to ...
71795         * sysdeps/ieee754/dbl-64/e_ilogb.c: ... here.
71796         * sysdeps/ieee754/flt-32/s_ilogbf.c: Moved to ...
71797         * sysdeps/ieee754/flt-32/e_ilogbf.c: ... here.
71798         * sysdeps/ieee754/ldbl-128ibm/s_ilogbl.c: Moved to ...
71799         * sysdeps/ieee754/ldbl-128ibm/e_ilogbl.c: ... here.
71800         * sysdeps/ieee754/ldbl-opt/s_ilogb.c: Moved to ...
71801         * sysdeps/ieee754/ldbl-opt/w_ilogb.c: ... here.
71802         * sysdeps/ieee754/ldbl-opt/w_ilogbl.c: New file: ilogbl wrapper.
71803
71804 2012-04-17  Petr Baudis  <pasky@ucw.cz>
71805
71806         * include/sys/uio.h: Change __vector to __iovec to avoid clash
71807         with altivec.
71808
71809 2012-04-16  Marek Polacek  <polacek@redhat.com>
71810
71811         * elf/pldd-xx.c: Rename static_assert to pldd_assert.
71812
71813 2012-04-16  Marek Polacek  <polacek@redhat.com>
71814
71815         * sysdeps/i386/fpu/bits/fenv.h (feraiseexcept): Reverse the
71816         operands of fdivp instruction.
71817
71818 2012-04-13  H.J. Lu  <hongjiu.lu@intel.com>
71819
71820         * elf/tst-auditmod1.c: Check __ILP32__ instead of __LP64__.
71821         * elf/tst-auditmod3b.c: Likewise.
71822         * elf/tst-auditmod4b.c: Likewise.
71823         * elf/tst-auditmod5b.c: Likewise.
71824         * elf/tst-auditmod6b.c: Likewise.
71825         * elf/tst-auditmod6c.c: Likewise.
71826         * elf/tst-auditmod7b.c: Likewise.
71827         * sysdeps/x86_64/ffsll.c (ffsl): Likewise.
71828         * sysdeps/x86_64/preconfigure.in: Likewise.
71829         * sysdeps/x86_64/preconfigure: Regenerated.
71830
71831 2012-04-13  H.J. Lu  <hongjiu.lu@intel.com>
71832
71833         * sysdeps/x86_64/bits/wordsize.h (__WORDSIZE): Also check
71834         __ILP32__.
71835
71836 2012-04-13  Antoine Balestrat <merkil33@gmail.com>
71837
71838         * sysdeps/unix/sysv/linux/sparc/sparc64/get_clockfreq.c
71839         (__get_clockfreq_via_proc_openprom): Fix test on wrong variable.
71840
71841 2012-04-13  Chris Leonard  <cjlhomeaddress@gmail.com>
71842
71843         [BZ #13973]
71844         * locale/iso-639.def: Fix gl language name. Spotted by
71845         Yaron Shahrabani.
71846
71847 2012-04-12  Roland McGrath  <roland@hack.frob.com>
71848
71849         [BZ #2074]
71850         * libio/libio.h (__io_write_fn): Update comment.
71851
71852 2012-04-12  Petr Baudis  <pasky@ucw.cz>
71853
71854         [BZ #2074]
71855         * stdio.texi (Hook Functions): The user provided writer function
71856         is not allowed to return -1.
71857
71858 2012-04-11  David S. Miller  <davem@davemloft.net>
71859
71860         * sysdeps/sparc/fpu/libm-test-ulps: Update.
71861
71862 2012-04-11  Mike Frysinger  <vapier@gentoo.org>
71863
71864         * .gitignore: Add /ports, /linuxthreads, and /linuxthreads_db.
71865         Add a leading slash to rtkaio.
71866
71867 2012-04-11  Jim Meyering  <meyering@redhat.com>
71868
71869         [BZ #11959]
71870         * libio/stdio.h (fwrite, fwrite_unlocked): Remove __wur.
71871         It is not necessarily an error to ignore fwrite's return
71872         value.  One can reliably use ferror to test for errors after
71873         the fact.
71874
71875 2012-04-10  H.J. Lu  <hongjiu.lu@intel.com>
71876
71877         * bits/types.h (__snseconds_t): New type.
71878         * time/time.h (struct timespec): Use __snseconds_t on tv_nsec.
71879
71880         * bits/typesizes.h (__SNSECONDS_T_TYPE): New macro.
71881         * sysdeps/unix/bsd/bsd4.4/freebsd/bits/typesizes.h
71882         (__SNSECONDS_T_TYPE): Likewise.
71883         * sysdeps/unix/sysv/linux/s390/bits/typesizes.h
71884         (__SNSECONDS_T_TYPE): Likewise.
71885         * sysdeps/unix/sysv/linux/sparc/bits/typesizes.h
71886         (__SNSECONDS_T_TYPE): Likewise.
71887
71888 2012-04-10  Andreas Jaeger  <aj@suse.de>
71889
71890         [BZ #2636]
71891         * manual/time.texi (Processor Time): Return type of times is
71892         elapsed real time since an arbitrary point in the past.
71893         (CPU Time): Move CLK_TCK from here...
71894         (Processor Time): ...to here.  Correct description.
71895         * manual/conf.texi (Constants for Sysconf): Correct description of
71896         _SC_CLK_TCK.
71897
71898 2012-04-10  David S. Miller  <davem@davemloft.net>
71899
71900         [BZ #13967]
71901         * elf/dynamic-link.h (_ELF_DYNAMIC_DO_RELOC): Handle the case
71902         where the is a gap between DT_REL(A) and DT_JMPREL.
71903
71904 2012-04-10  H.J. Lu  <hongjiu.lu@intel.com>
71905
71906         * sysdeps/x86_64/bits/byteswap.h: Include <features.h>.
71907         (__bswap_32): Use __builtin_bswap32 for GCC >= 4.2.
71908         (__bswap_64): Use __builtin_bswap64 for GCC >= 4.2.
71909
71910 2012-04-10  Siddhesh Poyarekar  <siddhesh@redhat.com>
71911
71912         * elf/dl-support.c (_dl_inhibit_cache): New variable.
71913         * elf/rtld.c (_rtld_global_ro): New member _dl_inhibit_cache.
71914         (dl_main): Handle --inhibit-cache.
71915         * sysdeps/generic/ldsodefs.h (struct rtld_global_ro): New member
71916         _dl_inhibit_cache.
71917         * elf/dl-load.c (_dl_map_object): Use it.
71918         * elf/Makefile: Define SYSCONFDIR when building rtld.c.
71919
71920 2012-04-09  Joseph Myers  <joseph@codesourcery.com>
71921
71922         [BZ #13872]
71923         * sysdeps/i386/fpu/e_powl.S (p78): New object.
71924         (__ieee754_powl): Saturate large exponents rather than testing for
71925         overflow of y*log2(x).
71926         * sysdeps/x86_64/fpu/e_powl.S: Likewise.
71927         * math/libm-test.inc (pow_test): Do not permit spurious overflow
71928         exceptions.
71929
71930         [BZ #11521]
71931         * math/s_ctan.c: Include <float.h>.
71932         (__ctan): Avoid internal overflow or cancellation in calculating
71933         denominator.
71934         * math/s_ctanf.c: Likewise.
71935         * math/s_ctanl.c: Likewise.
71936         * math/s_ctanh.c: Likewise.
71937         * math/s_ctanhf.c: Likewise.
71938         * math/s_ctanhl.c: Likewise.
71939         * math/libm-test.inc (ctan_test): Add more tests.
71940         (ctanh_test): Likewise.
71941         * sysdeps/i386/fpu/libm-test-ulps: Update.
71942         * sysdeps/x86_64/fpu/libm-test-ulps: Likewise.
71943
71944 2012-04-09  Andreas Jaeger  <aj@suse.de>
71945
71946         [BZ #6894]
71947         * manual/filesys.texi (Directory Entries): Mention that d_namlen
71948         is an optional BSD extension.
71949
71950         [BZ #10254]
71951         * manual/stdio.texi (Opening Streams): Document additional fopen
71952         parameters.
71953
71954 2012-04-09  Roland McGrath  <roland@hack.frob.com>
71955
71956         * sysdeps/i386/fpu/bits/mathinline.h (__sincos_code): Don't clobber
71957         %eax without telling the compiler.
71958
71959 2012-04-09  Carlos O'Donell  <carlos_odonell@mentor.com>
71960
71961         [BZ # 13963]
71962         * manual/install.texi: Use sourceware.org.
71963
71964 2012-04-09  Joseph Myers  <joseph@codesourcery.com>
71965
71966         [BZ #13873]
71967         * sysdeps/ieee754/dbl-64/e_pow.c (huge, tiny): New variables.
71968         (__ieee754_pow): Generate overflow and underflow using huge*huge
71969         and tiny*tiny rather than just returning constant infinity or zero
71970         for large exponents.
71971         * math/libm-test.inc (pow_test): Require overflow exceptions for
71972         applicable cases of large exponents.
71973
71974         [BZ #706]
71975         * sysdeps/i386/fpu/e_pow.S (p10): New object.
71976         (__ieee754_pow): Use iterative multiplication algorithm only for
71977         integer exponents with absolute value below 1024.  Check for odd
71978         integer exponents when using algorithm for real exponents.
71979         * math/libm-test.inc (pow_test): Add more tests.
71980         * sysdeps/x86_64/fpu/libm-test-ulps: Update.
71981
71982 2012-04-08  Joseph Myers  <joseph@codesourcery.com>
71983
71984         [BZ #13705]
71985         * math/libm-test.inc (exp_test): Do not allow overflow exception
71986         on underflow test.
71987
71988 2012-04-08  Aurelien Jarno  <aurelien@aurel32.net>
71989
71990         [BZ #13705]
71991         * sysdeps/ieee754/dbl-64/w_exp.c (__exp): Use __kernel_standard
71992         instead of __kernel_standard_f.
71993
71994 2012-04-08  Mike Frysinger  <vapier@gentoo.org>
71995
71996         * sysdeps/i386/i686/memset_chk.S: Update copyright year.
71997         * sysdeps/x86_64/memset_chk.S: Likewise.
71998
71999 2012-04-08  Andreas Jaeger  <aj@suse.de>
72000
72001         [BZ #10153]
72002         * manual/startup.texi (Environment Access): Describe return value
72003         for putenv and setenv.
72004
72005         [BZ #6895]
72006         * manual/filesys.texi (Directory Entries): Add description for
72007         DT_LNK.
72008
72009         [BZ #6890]
72010         * manual/filesys.texi (Directory Entries): Clarify that it's file
72011         system not operating system in the description of DT_UNKNOWN.
72012
72013         [BZ #6578]
72014         * manual/syslog.texi (closelog): Fix reference, it's openlog.
72015
72016 2012-04-08  Stephen Compall  <s11@member.fsf.org>
72017
72018         [BZ #6649]
72019         * manual/llio.texi (Opening and Closing Files): Add cross
72020         reference to explain mode argument.
72021
72022 2012-04-07  Mike Frysinger  <vapier@gentoo.org>
72023
72024         * sysdeps/i386/i686/memset_chk.S: Change PIC to SHARED.
72025         * sysdeps/x86_64/memset_chk.S: Likewise.
72026
72027 2012-04-07  David S. Miller  <davem@davemloft.net>
72028
72029         * elf/elf.h (R_SPARC_WDISP10): Define.
72030         * sysdeps/sparc/sparc32/dl-machine.h (elf_machine_rela): Handle
72031         R_SPARC_SIZE32.
72032         * sysdeps/sparc/sparc64/dl-machine.h (elf_machine_rela): Handle
72033         R_SPARC_SIZE64 and R_SPARC_H34.
72034
72035 2012-04-07  Carlos O'Donell  <carlos_odonell@mentor.com>
72036
72037         * elf/dynamic-link.h (_ELF_DYNAMIC_DO_RELOC): Simplify
72038         conditions and remove no longer applicable assertion.
72039
72040 2012-04-06  H.J. Lu  <hongjiu.lu@intel.com>
72041
72042         * bits/byteswap.h: Include <features.h>.
72043         (__bswap_32): Use __builtin_bswap32 for GCC >= 4.2.
72044         (__bswap_64): Use __builtin_bswap64 for GCC >= 4.2.
72045
72046 2012-04-06  H.J. Lu  <hongjiu.lu@intel.com>
72047
72048         * bits/byteswap.h (__bswap_16): Removed.
72049         Include <bits/byteswap-16.h> to get __bswap_16.
72050         * sysdeps/i386/bits/byteswap.h: Likewise.
72051         * sysdeps/s390/bits/byteswap.h: Likewise.
72052         * sysdeps/x86_64/bits/byteswap.h: Likewise.
72053         * bits/byteswap-16.h: New file.
72054         * sysdeps/i386/bits/byteswap-16.h: Likewise.
72055         * sysdeps/s390/bits/byteswap-16.h: Likewise.
72056         * sysdeps/x86_64/bits/byteswap-16.h: Likewise.
72057         * string/Makefile (headers): Add bits/byteswap-16.h.
72058
72059 2012-04-06  Paul Pluzhnikov  <ppluzhnikov@google.com>
72060
72061         [BZ #13895]
72062         * nss/nsswitch.c (nss_load_library, __nss_lookup_function): Avoid
72063         extra indirection.
72064         * nss/Makefile (tests-static, tests): Add tst-nss-static.
72065         * nss/tst-nss-static.c: New.
72066
72067 2012-04-06  Robert Millan  <rmh@gnu.org>
72068
72069         [BZ #6486]
72070         * manual/llio.texi (File Position Primitive): lseek
72071         refers to WHENCE when it really means OFFSET.
72072
72073 2012-04-06  Andreas Jaeger  <aj@suse.de>
72074
72075         * nss/nss_db/db-initgroups.c: Include <string.h> for strlen and
72076         strncmp declarations.
72077
72078         * abilist/libc.abilist: Add __poll and __ppoll.
72079
72080 2012-04-05  David S. Miller  <davem@davemloft.net>
72081
72082         * scripts/check-local-headers.sh: Accept a host triplet in the
72083         path matched by the exclude regexp.
72084
72085         * elf/dynamic-link.h (_ELF_DYNAMIC_DO_RELOC): Reduce down to one
72086         definition.
72087         * sysdeps/powerpc/powerpc32/dl-machine.h
72088         (ELF_MACHINE_PLTREL_OVERLAP): Delete.
72089         * sysdeps/s390/s390-32/dl-machine.h
72090         (ELF_MACHINE_PLTREL_OVERLAP): Likewise.
72091         * sysdeps/sparc/sparc32/dl-machine.h
72092         (ELF_MACHINE_PLTREL_OVERLAP): Likewise.
72093         * sysdeps/sparc/sparc64/dl-machine.h
72094         (ELF_MACHINE_PLTREL_OVERLAP): Likewise.
72095
72096         * elf/rtld.c (dl_main): If DL_DEBUG_UNUSED is enabled, turn off
72097         lazy binding.
72098         * elf/dl-lookup.c (_dl_lookup_symbol_x): If DL_DEBUG_UNUSED, ignore
72099         undefined symbol errors.
72100
72101         * elf/rtld.c (dl_main): Skip VDSO when checking for unused
72102         DT_NEEDED entries.
72103
72104 2012-04-05  Michael Matz  <matz@suse.de>
72105
72106         [BZ #13592]
72107         * sysdeps/x86_64/memset.S: Fix size paramater comparisions.
72108
72109 2012-04-05  Andreas Jaeger  <aj@suse.de>
72110
72111         [BZ #13908]
72112         * stdlib/stdlib.h: Don't warn about unused result of mktemp, fix
72113         comment.
72114
72115 2012-04-05  Nobuhiro Iwamatsu  <iwamatsu@nigauri.org>
72116
72117         * sysdeps/sh/sh4/fpu/fesetround.c (fesetround): Fix return value
72118         which ROUND is no valid rounding mode.
72119
72120 2012-04-05  Nobuhiro Iwamatsu  <iwamatsu@nigauri.org>
72121
72122         * sysdeps/sh/sh4/fpu/fegetenv.c (fegetenv): Set fpscr register which
72123         read again.
72124         * sysdeps/sh/sh4/fpu/ftestexcept.c: Likewise.
72125
72126 2012-04-05  Nobuhiro Iwamatsu  <iwamatsu@nigauri.org>
72127
72128         * sysdeps/sh/sh4/fpu/fraiseexcpt.c (feraiseexcept): Produce
72129         an exception using FPU order intentionally.
72130
72131 2012-04-05  Nobuhiro Iwamatsu  <iwamatsu@nigauri.org>
72132
72133         * sysdeps/sh/sh4/fpu/fedisblxcpt.c: New file.
72134         * sysdeps/sh/sh4/fpu/feenablxcpt.c: New file.
72135         * sysdeps/sh/sh4/fpu/fegetexcept.c: New file.
72136         * sysdeps/sh/sh4/fpu/feupdateenv.c: New file.
72137
72138 2012-04-05  Simon Josefsson  <simon@josefsson.org>
72139
72140         [BZ #12340]
72141         * sysdeps/mach/hurd/ttyname_r.c (__ttyname_r): Return ERANGE instead of
72142         EINVAL when BUFLEN is too smal.
72143
72144 2012-04-05  Thomas Schwinge  <thomas@codesourcery.com>
72145
72146         [BZ #13553]
72147         * sysdeps/mach/i386/machine-lock.h: Use volatile instead of __volatile.
72148         * sysdeps/mach/powerpc/machine-lock.h: Likewise.
72149
72150 2012-04-03  Andreas Jaeger  <aj@suse.de>
72151
72152         [BZ #13938]
72153         * manual/setjmp.texi (System V contexts): Fix sentence.
72154
72155         [BZ #13926]
72156         * sysdeps/i386/bits/byteswap.h [!__GNUC__](__bswap_constant_64):
72157         New macro for this case.
72158         [!__GNUC__] (__bswap_64): New inline function for this case.
72159         * sysdeps/x86_64/bits/byteswap.h: Likewise.
72160         * bits/byteswap.h: Likewise.
72161         * sysdeps/s390/bits/byteswap.h: [!__GNUC__] (__bswap_64): Use
72162         ull, guard with __GLIBC_HAVE_LONG_LONG.
72163
72164         * string/endian.h (htobe64,htole64,be64toh,le64toh): Guard with
72165         __GLIBC_HAVE_LONG_LONG.
72166
72167         * string/byteswap.h (bswap_64): Guard with __GLIBC_HAVE_LONG_LONG.
72168         Include <features.h> for __GLIBC_HAVE_LONG_LONG.
72169
72170 2012-04-02 Tulio Magno Quites Machado Filho <tuliom@linux.vnet.ibm.com>
72171
72172         [BZ #13691]
72173         * iconvdata/tcvn5712-1.c (FROM_LOOP): Test end of input using
72174         inptr and inend, rather than using last_ch.
72175
72176 2012-04-02  David S. Miller  <davem@davemloft.net>
72177
72178         With help from Paul Eggert, Carlos O'Donell, and Roland McGrath.
72179         * stdio-common/printf-parse.h (read_int): Change return type to
72180         'int', return -1 on INT_MAX overflow.
72181         * stdio-common/vfprintf.c (vfprintf): Validate width and precision
72182         against overflow of INT_MAX.  Set errno to EOVERFLOW when 'done'
72183         overflows INT_MAX.  Check for overflow of in-format-string precision
72184         values properly.  Use EOVERFLOW rather than ERANGE throughout.  Use
72185         SIZE_MAX not INT_MAX for integer overflow test.
72186         * stdio-common/printf-parsemb.c: If read_int signals an overflow,
72187         skip the construct in the format string but do not record anything.
72188         * stdio-common/bug22.c: Adjust to test both width/prevision
72189         INT_MAX overflow as well as total length INT_MAX overflow.  Check
72190         explicitly for proper errno values.
72191
72192 2012-04-02  Thomas Schwinge  <thomas@codesourcery.com>
72193
72194         * string/test-memcmp.c [! WIDE]: #include <limits.h> for CHAR_MIN,
72195         CHAR_MAX.
72196         * string/test-strcmp.c [! WIDE]: Likewise.
72197         * time/tst-mktime2.c: Likewise for INT_MAX.
72198         * string/test-string.h: #include <sys/param.h> for MIN.
72199
72200         * csu/init-first.c (__libc_init_first): Call __ctype_init.
72201         * sysdeps/i386/init-first.c (init): Likewise.
72202         * sysdeps/mach/hurd/i386/init-first.c (posixland_init): Likewise.
72203         * sysdeps/mach/hurd/powerpc/init-first.c (posixland_init): Likewise.
72204         * sysdeps/sh/init-first.c (init): Likewise.
72205
72206 2012-04-01  Ulrich Drepper  <drepper@gmail.com>
72207
72208         * po/ru.po: Update from translation team.
72209         * po/vi.po: Likewise.
72210
72211 2012-03-31  Siddhesh Poyarekar  <siddhesh@redhat.com>
72212
72213         * resolv/nss_dns/dns-host.c: Merge copyright years.
72214
72215 2012-03-22  Liubov Dmitrieva  <liubov.dmitrieva@gmail.com>
72216
72217         * sysdeps/i386/i686/multiarch/memcpy-ssse3.S: Update.
72218         Optimize memcpy with prefetch if
72219         DATA_CACHE_SIZE_HALF <= len <  SHARED_CACHE_SIZE_HALF and
72220         src, dst pointers have unequal 16 byte alignments.
72221
72222 2012-03-30  Siddhesh Poyarekar  <siddhesh@redhat.com>
72223
72224         [BZ #13928]
72225         * resolv/nss_dns/dns-host.c (getanswer_r): Also consider ttl
72226         from a CNAME entry and return the minimum ttl for the query.
72227         (gaih_getanswer_slice): Likewise.
72228
72229 2012-03-30  Jeff Law  <law@redhat.com>
72230
72231         * crypt/md5-crypt.c (__md5_crypt_r): Avoid unbounded alloca uses
72232         due to long keys.
72233         * crypt/sha256-crypt.c (__sha256_crypt_r): Likewise.
72234         * crypt/sha512-crypt.c (__sha512_crypt_r): Likewise.
72235
72236         * resolv/nss_dns/dns-host.c: Update copyright year.
72237
72238 2012-03-30  Ulrich Drepper  <drepper@gmail.com>
72239
72240         * resolv/res_send.c (send_dg): Use sendmmsg if we have to write two
72241         requests to save a system call.  Fix check that all bytes are sent.
72242
72243         * sysdeps/unix/sysv/linux/bits/socket.h (struct mmsghdr): Fix up
72244         comments for sendmmsg.
72245
72246 2012-03-30  Tulio Magno Quites Machado Filho  <tuliom@linux.vnet.ibm.com>
72247
72248         [BZ #13691]
72249         * iconvdata/tcvn5712-1.c (FROM_LOOP): Fix a bug when converting strings
72250         with only 1 character between 0x0041 and 0x01b0.
72251         * wcsmbs/Makefile (tests): Add tst-mbsnrtowcs.
72252         * wcsmbs/tst-mbsnrtowcs.c: New file.
72253
72254 2012-03-29  David S. Miller  <davem@davemloft.net>
72255
72256         * libio/fileops.c (_IO_new_file_xsputn): Don't try to optimize
72257         small copies by hand.
72258
72259 2012-03-28  Siddhesh Poyarekar  <siddhesh@redhat.com>
72260
72261         [BZ #13761]
72262         * nis/nss_compat/compat-initgroups.c (getgrent_next_nss)
72263         (_nss_compat_initgroups_dyn): Fall back to malloc/free for large
72264         group memberships.
72265
72266 2012-03-28  David S. Miller  <davem@davemloft.net>
72267
72268         * sysdeps/sparc/sparc32/memcpy.S: Implement mempcpy using a stub
72269         that branches into memcpy.
72270         * sysdeps/sparc/sparc64/memcpy.S: Likewise.
72271         * sysdeps/sparc/sparc64/multiarch/memcpy-niagara1.S: Likewise.
72272         * sysdeps/sparc/sparc64/multiarch/memcpy-niagara2.S: Likewise.
72273         * sysdeps/sparc/sparc64/multiarch/memcpy-ultra3.S: Likewise.
72274         * sysdeps/sparc/sparc64/multiarch/memcpy.S: Add mempcpy multiarch
72275         bits.
72276         * sysdeps/sparc/sparc64/rtld-memcpy.c: Include generic mempcpy
72277         implementation too.
72278         * sysdeps/sparc/mempcpy.S: New file.
72279
72280         * sysdeps/sparc/sparc64/multiarch/memcpy.S: Provide a hidden def to
72281         the IFUNC routine in the libc case.
72282         * sysdeps/sparc/sparc64/multiarch/memcpy.S: Likewise.
72283
72284         * sysdeps/sparc/sparc32/sparcv9/multiarch/rtld-memset.c: New file.
72285         * sysdeps/sparc/sparc32/sparcv9/multiarch/rtld-memcpy.c: New file.
72286         * sysdeps/sparc/sparc32/sparcv9/rtld-memset.c: New file.
72287         * sysdeps/sparc/sparc32/sparcv9/rtld-memcpy.c: New file.
72288         * sysdeps/sparc/sparc64/multiarch/rtld-memset.c: New file.
72289         * sysdeps/sparc/sparc64/multiarch/rtld-memcpy.c: New file.
72290         * sysdeps/sparc/sparc64/rtld-memset.c: New file.
72291         * sysdeps/sparc/sparc64/rtld-memcpy.c: New file.
72292
72293         * sysdeps/sparc/sparc64/multiarch/memset-niagara1.S: Unroll main
72294         loop to 256 bytes instead of 64 bytes and fix test signedness.
72295
72296         * sysdeps/sparc/Makefile: Add -fPIC to ASFLAGS-.os here....
72297         * sysdeps/sparc/sparc32/Makefile: rather than here...
72298         * sysdeps/sparc/sparc64/Makefile: and here.
72299
72300 2012-03-28  Ulrich Drepper  <drepper@gmail.com>
72301
72302         * malloc/mallocbug.c: Avoid warnings about unused variables.
72303
72304 2012-02-22  Siddhesh Poyarekar  <siddhesh@redhat.com>
72305
72306         [BZ #13760]
72307         * resolv/nss_dns/dns-host.c (gaih_getanswer): Look for errno
72308         in the right place. Discard and retry query if response is
72309         larger than input buffer size.
72310
72311 2012-03-28  Joseph Myers  <joseph@codesourcery.com>
72312
72313         [BZ #369]
72314         [BZ #2678]
72315         [BZ #3866]
72316         * sysdeps/i386/fpu/e_pow.S (__ieee754_pow): Take absolute value of
72317         x for large integer exponent.
72318         * sysdeps/i386/fpu/e_powf.S (__ieee754_powf): Likewise.
72319         * sysdeps/i386/fpu/e_powl.S (__ieee754_powl): Likewise.  Adjust
72320         sign of result as needed afterwards.
72321         * sysdeps/x86_64/fpu/e_powl.S (__ieee754_powl): Likewise.
72322         * sysdeps/ieee754/k_standard.c (__kernel_standard): Handle sign of
72323         result for underflowing pow the same as for overflow.
72324         (__kernel_standard_l): Handle powl overflow and underflow here
72325         rather than calling __kernel_standard.
72326         * math/libm-test.inc (pow_test): Add more tests.
72327
72328         [BZ #3868]
72329         [BZ #13879]
72330         [BZ #13910]
72331         [BZ #13911]
72332         [BZ #13912]
72333         [BZ #13913]
72334         [BZ #13915]
72335         [BZ #13916]
72336         [BZ #13917]
72337         [BZ #13918]
72338         [BZ #13919]
72339         [BZ #13920]
72340         [BZ #13921]
72341         * sysdeps/generic/math_private.h (__kernel_standard_l): Declare.
72342         * sysdeps/ieee754/k_standard.c: Include <float.h>.
72343         (__kernel_standard_l): New function.
72344         * math/w_acoshl.c (__acoshl): Use __kernel_standard_l instead of
72345         __kernel_standard.
72346         * math/w_acosl.c (__acosl): Likewise.
72347         * math/w_asinl.c (__asinl): Likewise.
72348         * math/w_atan2l.c (__atan2l): Likewise.
72349         * math/w_atanhl.c (__atanhl): Likewise.
72350         * math/w_coshl.c (__coshl): Likewise.
72351         * math/w_exp10l.c (__exp10l): Likewise.
72352         * math/w_exp2l.c (__exp2l): Likewise.
72353         * math/w_fmodl.c (__fmodl): Likewise.
72354         * math/w_hypotl.c (__hypotl): Likewise.
72355         * math/w_j0l.c (__j0l, __y0l): Likewise.
72356         * math/w_j1l.c (__j1l, __y1l): Likewise.
72357         * math/w_jnl.c (__jnl, __ynl): Likewise.
72358         * math/w_lgammal.c (__lgammal): Likewise.
72359         * math/w_log10l.c (__log10l): Likewise.
72360         * math/w_log2l.c (__log2l): Likewise.
72361         * math/w_logl.c (__logl): Likewise.
72362         * math/w_powl.c (__powl): Likewise.
72363         * math/w_remainderl.c (__remainderl): Likewise.
72364         * math/w_scalbl.c (sysv_scalbl): Likewise.
72365         * math/w_sinhl.c (__sinhl): Likewise.
72366         * math/w_sqrtl.c (__sqrtl): Likewise.
72367         * math/w_tgammal.c (__tgammal): Likewise.
72368         * sysdeps/ieee754/ldbl-128/w_expl.c (__expl): Likewise.
72369         * sysdeps/ieee754/ldbl-96/w_expl.c (__expl): Likewise.
72370         * math/libm-test.inc (acos_test): Add more tests.
72371         (acosh_test): Likewise.
72372         (asin_test): Likewise.
72373         (atanh_test): Likewise.
72374         (exp_test): Likewise.
72375         (exp10_test): Likewise.
72376         (exp2_test): Likewise.
72377         (expm1_test): Likewise.
72378         (lgamma_test): Likewise.
72379         (log_test): Likewise.
72380         (log10_test): Likewise.
72381         (log1p_test): Likewise.
72382         (log2_test): Likewise.
72383         (pow_test): Do not allow some spurious overflow exceptions.
72384         (sqrt_test): Add more tests.
72385         (tgamma_test): Likewise.
72386         (y0_test): Likewise.
72387         (y1_test): Likewise.
72388         (yn_test): Likewise.
72389
72390 2012-03-27  Anton Blanchard  <anton@samba.org>
72391
72392         * sysdeps/unix/sysv/linux/powerpc/bits/mman.h: Define MAP_STACK and
72393         MAP_HUGETLB.
72394         * sysdeps/unix/sysv/linux/s390/bits/mman.h: Likewise.
72395         * sysdeps/unix/sysv/linux/sh/bits/mman.h: Likewise.
72396         * sysdeps/unix/sysv/linux/sparc/bits/mman.h: Likewise.
72397
72398 2012-03-27  David S. Miller  <davem@davemloft.net>
72399
72400         * conform/Makefile: Run run-conformtest.sh using $(BASH).
72401
72402         * sysdeps/sparc/sparc64/Makefile (ASFLAGS-.os): Move before
72403         have-as-vis3 check.
72404
72405 2012-03-27  Andreas Jaeger  <aj@suse.de>
72406
72407         * sysdeps/x86_64/elf/configure.in: Moved to ...
72408         * sysdeps/x86_64/configure.in: ... here.
72409         * sysdeps/x86_64/elf/start.S: Moved to ...
72410         * sysdeps/x86_64/start.S: ... here.
72411         * sysdeps/x86_64/elf/configure: Delete.
72412
72413         * sysdeps/x86_64/configure.in: Merge contents from
72414         sysdeps/i386/configure.in (without i686 check).
72415
72416         * sysdeps/i386/elf/Versions: Merge into ...
72417         * sysdeps/i386/Versions: ... this.
72418         * sysdeps/i386/elf/Versions: Delete file.
72419         * sysdeps/i386/elf/start.S: Moved to ...
72420         * sysdeps/i386/start.S: ...here.
72421         * sysdeps/i386/elf/configure.in: Merge into...
72422         * sysdeps/i386/configure.in: ...here.
72423         * sysdeps/i386/elf/configure.in: Delete file.
72424         * sysdeps/i386/elf/configure: Delete file.
72425
72426         * sysdeps/generic/elf/backtracesyms.c: Moved to ...
72427         * debug/backtracesyms.c: ... here.
72428         * sysdeps/generic/elf/backtracesymsfd.c: Moved to ...
72429         * debug/backtracesymsfd.c: ... here.
72430         * sysdeps/generic/elf/ifunc-sel.h: Moved to ...
72431         * sysdeps/generic/ifunc-sel.h: ... here.
72432
72433         * sysdeps/unix/i386/start.c: Delete file.
72434         * sysdeps/unix/sparc/start.c: Delete file.
72435         * sysdeps/unix/start.c: Delete file.
72436
72437         * sysdeps/sh/elf/configure.in: Moved to ...
72438         * sysdeps/sh/configure.in: ... here.
72439         * sysdeps/sh/elf/start.S: Moved to ...
72440         * sysdeps/sh/start.S: ... here.
72441         * sysdeps/sh/elf/configure: Delete file.
72442
72443         * sysdeps/powerpc/powerpc64/elf/bzero.S: Moved to ...
72444         * sysdeps/powerpc/powerpc64/bzero.S: ... here.
72445         * sysdeps/powerpc/powerpc64/elf/entry.h: Moved to ...
72446         * sysdeps/powerpc/powerpc64/entry.h: ... here.
72447         * sysdeps/powerpc/powerpc64/elf/start.S: Moved to ...
72448         * sysdeps/powerpc/powerpc64/start.S: here.
72449         * sysdeps/powerpc/powerpc64/elf/Makefile: Merge into ...
72450         * sysdeps/powerpc/powerpc64/Makefile: ... this.
72451         * sysdeps/powerpc/powerpc64/elf/configure.in: Merge into ...
72452         * sysdeps/powerpc/powerpc64/configure.in: ... this.
72453         * sysdeps/powerpc/powerpc64/elf/configure: Delete file.
72454
72455         * sysdeps/powerpc/powerpc32/elf/bzero.S: Moved to ...
72456         * sysdeps/powerpc/powerpc32/bzero.S: ... here.
72457         * sysdeps/powerpc/powerpc32/elf/start.S: Moved to ...
72458         * sysdeps/powerpc/powerpc32/start.S: ... here.
72459         * sysdeps/powerpc/powerpc32/elf/configure.in: Merge into ...
72460         * sysdeps/powerpc/powerpc32/configure.in: ... this.
72461         * sysdeps/powerpc/powerpc32/elf/configure: Delete file.
72462
72463         * sysdeps/powerpc/elf/ifunc-sel.h: Moved to ...
72464         * sysdeps/powerpc/ifunc-sel.h: ... here.
72465         * sysdeps/powerpc/elf/rtld-global-offsets.sym: Moved to ...
72466         * sysdeps/powerpc/rtld-global-offsets.sym: ... here.
72467
72468         * sysdeps/sparc/elf/configure.in: Moved to ...
72469         * sysdeps/sparc/configure.in: ... here.
72470         * sysdeps/sparc/elf/configure: Delete file.
72471         * sysdeps/sparc/sparc32/elf/start.S: Moved to ...
72472         * sysdeps/sparc/sparc32/start.S: ... here.
72473         * sysdeps/sparc/sparc64/elf/start.S: Moved to ...
72474         * sysdeps/sparc/sparc64/start.S: ... here.
72475         * sysdeps/sparc/sparc32/elf/Makefile: Merged into ...
72476         * sysdeps/sparc/sparc32/Makefile: ... this.
72477         * sysdeps/sparc/sparc64/elf/Makefile: Merged into ...
72478         * sysdeps/sparc/sparc64/Makefile: ... this.
72479
72480         * sysdeps/s390/s390-32/elf/bsd-_setjmp.S: Moved to ...
72481         * sysdeps/s390/s390-32/bsd-_setjmp.S: ... here.
72482         * sysdeps/s390/s390-32/elf/bsd-setjmp.S: Moved to ...
72483         * sysdeps/s390/s390-32/bsd-setjmp.S: ... here.
72484         * sysdeps/s390/s390-32/elf/setjmp.S: Moved to ...
72485         * sysdeps/s390/s390-32/setjmp.S: ... here.
72486         * sysdeps/s390/s390-32/elf/configure.in: Moved to ...
72487         * sysdeps/s390/s390-32/configure.in: ... here.
72488         * sysdeps/s390/s390-32/elf/configure: Delete file.
72489         * sysdeps/s390/s390-32/elf/start.S: Moved to ...
72490         * sysdeps/s390/s390-32/start.S: ... here.
72491
72492         * sysdeps/s390/s390-64/elf/bsd-_setjmp.S: Moved to ...
72493         * sysdeps/s390/s390-64/bsd-_setjmp.S: ... here.
72494         * sysdeps/s390/s390-64/elf/bsd-setjmp.S: Moved to ...
72495         * sysdeps/s390/s390-64/bsd-setjmp.S: ... here.
72496         * sysdeps/s390/s390-64/elf/setjmp.S: Moved to ...
72497         * sysdeps/s390/s390-64/setjmp.S: ... here.
72498         * sysdeps/s390/s390-64/elf/configure.in: Moved to ...
72499         * sysdeps/s390/s390-64/configure.in: ... here
72500         * sysdeps/s390/s390-64/elf/configure: Delete file.
72501         * sysdeps/s390/s390-64/elf/start.S: Moved to ...
72502         * sysdeps/s390/s390-64/start.S: ... here.
72503         * sysdeps/s390/s390-64/elf/configure: Delete.
72504
72505         * configure.in: Remove support for elf directories in sysdeps.
72506
72507         * configure: Regenerated.
72508         * sysdeps/i386/configure: Regenerated.
72509         * sysdeps/powerpc/powerpc32/configure: Regenerated.
72510         * sysdeps/powerpc/powerpc64/configure: Regenerated.
72511         * sysdeps/s390/s390-32/configure: Regenerated.
72512         * sysdeps/s390/s390-64/configure: Regenerated.
72513         * sysdeps/sh/configure: Regenerated.
72514         * sysdeps/sparc/configure: Regenerated.
72515         * sysdeps/x86_64/configure: Regenerated.
72516
72517 2012-03-26  Andreas Schwab  <schwab@linux-m68k.org>
72518
72519         * sysdeps/powerpc/fpu/libm-test-ulps: Update.
72520
72521         * sysdeps/ieee754/ldbl-128ibm/e_expl.c (lomark): Adjust to take
72522         denormal result into account.
72523
72524 2012-03-25  Roland McGrath  <roland@hack.frob.com>
72525
72526         * posix/confstr.c (confstr): Lift RESTENVS definition to function scope.
72527         Reported by Allan McRae <allan@archlinux.org>.
72528
72529 2012-03-23  Jeff Law  <law@redhat.com>
72530
72531         * nss/getnssent.c (__nss_getent): Fix typo.
72532
72533 2012-03-23  David S. Miller  <davem@davemloft.net>
72534
72535         * sysdeps/sparc/fpu/libm-test-ulps: Update.
72536
72537 2012-03-23  H.J. Lu  <hongjiu.lu@intel.com>
72538
72539         * sysdeps/x86_64/dl-tlsdesc.h (tlsdesc): Use anonymous union
72540         to pad to uint64_t for each field.
72541         (dl_tls_index): Replace unsigned long with uint64_t.
72542
72543 2012-03-23  Daniel Jacobowitz  <dmj@google.com>
72544         Paul Pluzhnikov  <ppluzhnikov@google.com>
72545
72546         [BZ #6528]
72547         * grp/Makefile (otherlibs): Don't set it.
72548         * inet/Makefile (otherlibs): Likewise.
72549         * login/Makefile (otherlibs): Likewise.
72550         * nscd/Makefile (otherlibs): Likewise.
72551         * posix/Makefile (otherlibs): Likewise.
72552         * pwd/Makefile (otherlibs): Likewise.
72553         * rt/Makefile (otherlibs): Likewise.
72554         * sunrpc/Makefile (otherlibs): Likewise.
72555         * nss/Makefile (otherlibs): Likewise.
72556         Add libnss_files to routines and static-only-routines.
72557         ($(objpfx)getent): Remove rule.
72558         * resolv/Makefile: Add libnss_dns and libresolv to routines and
72559         static-only-routines.
72560
72561 2012-03-22  Joseph Myers  <joseph@codesourcery.com>
72562
72563         [BZ #13892]
72564         * math/s_cexp.c: Include <float.h>.
72565         (__cexp): Handle exp result overflowing not necessarily
72566         overflowing both real and imaginary parts of result.
72567         * math/s_cexpf.c: Likewise.
72568         * math/s_cexpl.c: Likewise.
72569         * math/libm-test.inc (cexp_test): Add more tests.
72570         * sysdeps/i386/fpu/libm-test-ulps: Update.
72571         * sysdeps/x86_64/fpu/libm-test-ulps: Likewise.
72572
72573 2012-03-22  H.J. Lu  <hongjiu.lu@intel.com>
72574
72575         * include/link.h (ELFW): New macro.
72576         * sysdeps/x86_64/dl-irel.h: Replace Elf64_XXX with ElfW(XXX).
72577         Replace ELF64_R_TYPE with ELFW(R_TYPE).
72578
72579 2012-03-22  H.J. Lu  <hongjiu.lu@intel.com>
72580
72581         * sysdeps/x86_64/dl-tls.h (dl_tls_index): Replace unsigned long
72582         with uint64_t.
72583
72584 2012-03-22  H.J. Lu  <hongjiu.lu@intel.com>
72585
72586         * sysdeps/generic/ldsodefs.h (struct La_x32_regs): New forward
72587         declaration.
72588         (struct La_x32_retval): Likewise.
72589
72590 2012-03-22  H.J. Lu  <hongjiu.lu@intel.com>
72591
72592         * sysdeps/x86_64/preconfigure.in: New file.
72593         * sysdeps/x86_64/preconfigure: New generated file.
72594
72595 2012-03-22  Joseph Myers  <joseph@codesourcery.com>
72596
72597         [BZ #13824]
72598         * math/e_exp2l.c: Include <float.h>.
72599         (__ieee754_exp2l): Handle overflow and underflow cases
72600         separately.  Only pass fractional part of argument to
72601         __ieee754_expl.
72602         * math/libm-test.inc (exp2_test): Add more tests.
72603
72604         * sysdeps/ieee754/ldbl-128/k_cosl.c (__kernel_cosl): Negate y if
72605         negating x to take absolute value.
72606         * sysdeps/ieee754/ldbl-128/k_sincosl.c (__kernel_sincosl):
72607         Likewise.
72608         * sysdeps/ieee754/ldbl-128ibm/k_cosl.c (__kernel_cosl): Likewise.
72609         * sysdeps/ieee754/ldbl-128ibm/k_sincosl.c (__kernel_sincosl):
72610         Likewise.
72611         * sysdeps/ieee754/ldbl-128/k_sinl.c (__kernel_sinl): Negate y when
72612         computing low part if x was negated.
72613         * sysdeps/ieee754/ldbl-128ibm/k_sinl.c (__kernel_sinl): Likewise.
72614
72615 2012-03-21  H.J. Lu  <hongjiu.lu@intel.com>
72616
72617         * elf/tst-auditmod1.c: Support la_x32_gnu_pltenter and
72618         la_x32_gnu_pltexit.
72619         (pltexit): Cast int_retval to ptrdiff_t.
72620         * elf/tst-auditmod3b.c: Likewise.
72621         * elf/tst-auditmod4b.c: Likewise.
72622         * elf/tst-auditmod5b.c: Likewise.
72623         * elf/tst-auditmod6b.c: Likewise.
72624         * elf/tst-auditmod6c.c: Likewise.
72625         * elf/tst-auditmod7b.c: Likewise.
72626
72627         * sysdeps/generic/ldsodefs.h (audit_ifaces): Add x32_gnu_pltenter
72628         and x32_gnu_pltexit.
72629
72630         * sysdeps/x86_64/bits/link.h: Check __x86_64__ instead of
72631         __ELF_NATIVE_CLASS.
72632         (La_x32_regs): New macro.
72633         (La_x32_retval): Likewise.
72634         (la_x32_gnu_pltenter): New function prototype.
72635         (la_x32_gnu_pltexit): Likewise.
72636
72637 2012-03-21  Andreas Schwab  <schwab@linux-m68k.org>
72638
72639         * sysdeps/ieee754/ldbl-128ibm/e_powl.c (huge, tiny): Correct
72640         exponent.
72641
72642         * sysdeps/powerpc/fpu/libm-test-ulps: Update.
72643
72644         * configure.in (libc_cv_cc_nofma): Check for option to disable
72645         generation of FMA instructions.
72646         * configure: Regenerate.
72647         * config.make.in (config-cflags-nofma): Set from libc_cv_cc_nofma.
72648         * sysdeps/ieee754/dbl-64/Makefile: New file.
72649         * sysdeps/x86_64/fpu/multiarch/Makefile (libm-sysdep_routines):
72650         Remove brandred-fma4.
72651         (CFLAGS-brandred-fma4.c): Remove.
72652         * sysdeps/x86_64/fpu/multiarch/brandred-fma4.c: Remove.
72653         * sysdeps/x86_64/fpu/multiarch/s_sin-fma4.c (__branred): Don't
72654         define.
72655         * sysdeps/x86_64/fpu/multiarch/s_tan-fma4.c (__branred): Don't
72656         define.
72657
72658 2012-03-21  H.J. Lu  <hongjiu.lu@intel.com>
72659
72660         * stdio-common/_itoa.c: Check _ITOA_NEEDED instead of
72661         LLONG_MAX != LONG_MAX.
72662         (_itoa_word): Use _ITOA_WORD_TYPE on value.
72663         (_fitoa_word): Likewise.
72664         * stdio-common/_itowa.c: Check _ITOA_NEEDED instead of
72665         LLONG_MAX != LONG_MAX.
72666         * stdio-common/_itowa.h: Include <_itoa.h>.
72667         (_itowa_word): Use _ITOA_WORD_TYPE on value.
72668         (_itowa): New macro.  Defined only if _ITOA_NEEDED is false.
72669         * sysdeps/generic/_itoa.h (_ITOA_NEEDED): New macro.  Defined
72670         only if not defined.
72671         (_ITOA_WORD_TYPE): Likewise.
72672         (_itoa_word): Use _ITOA_WORD_TYPE on value.
72673         Check !_ITOA_NEEDED instead of LONG_MAX == LLONG_MAX.
72674
72675 2012-03-21  David S. Miller  <davem@davemloft.net>
72676
72677         * sysdeps/sparc/fpu/libm-test-ulps: Update.
72678
72679 2012-03-21  H.J. Lu  <hongjiu.lu@intel.com>
72680
72681         * sysdeps/unix/sysv/linux/configure.in: Check x86_64* instead
72682         of x86_64 when setting libc_cv_slibdir, libdir and
72683         libc_cv_localedir.
72684         * sysdeps/unix/sysv/linux/configure: Regenerated.
72685
72686 2012-03-21  Joseph Myers  <joseph@codesourcery.com>
72687
72688         * manual/lang.texi (Old Varargs): Remove section.
72689         (How Variadic): Update menu.
72690         (va_start): Do not mention varargs.h.
72691
72692 2012-03-21  Thomas Schwinge  <thomas@codesourcery.com>
72693             Joseph Myers  <joseph@codesourcery.com>
72694
72695         * configure.in (libc_cv_ssp): Use LIBC_TRY_CC_OPTION instead of a
72696         link test.
72697         * configure: Regenerated.
72698
72699 2012-03-21  Thomas Schwinge  <thomas@codesourcery.com>
72700
72701         * conform/conformtest.pl: Handle --tmpdir argument, defaulting to /tmp.
72702         * conform/run-conformtest.sh: Pass --tmpdir argument when invoking
72703         conformtest.pl
72704
72705 2012-03-21  Joseph Myers  <joseph@codesourcery.com>
72706
72707         * NOTES: Remove.
72708         * Makefile (files-for-dist): Remove NOTES.
72709         (NOTES): Remove rule.
72710         * README: Don't refer to NOTES.
72711         * manual/creature.texi: Don't include macros.texi.
72712         * manual/intro.texi (creature.texi): Remove comment referring to
72713         NOTES.
72714
72715         * aclocal.m4 (LIBC_TRY_CC_OPTION): New macro.
72716         * configure.in (libc_cv_cc_submachine): Use LIBC_TRY_CC_OPTION.
72717         * configure: Regenerated.
72718         * sysdeps/i386/configure.in (libc_cv_cc_sse4): Use
72719         LIBC_TRY_CC_OPTION.
72720         (libc_cv_as_i686): Likewise.
72721         (libc_cv_cc_avx): Likewise.
72722         (libc_cv_cc_sse2avx): Likewise.
72723         (libc_cv_cc_fma4): Likewise.
72724         (libc_cv_cc_novzeroupper): Likewise.
72725         * sysdeps/i386/configure: Regenerated.
72726
72727         [BZ #13883]
72728         * sysdeps/i386/fpu/s_cexp.S: Remove.
72729         * sysdeps/i386/fpu/s_cexpf.S: Likewise.
72730         * sysdeps/i386/fpu/s_cexpl.S: Likewise.
72731         * math/libm-test.inc (cexp_test): Add more tests.
72732         * sysdeps/i386/fpu/libm-test-ulps: Update.
72733         * sysdeps/x86_64/fpu/libm-test-ulps: Likewise.
72734
72735 2012-03-21  Allan McRae  <allan@archlinux.org>
72736
72737         * timezone/Makefile: Do not install iso3166.tab and zone.tab
72738
72739 2012-03-21  Joseph Myers  <joseph@codesourcery.com>
72740
72741         [BZ #13871]
72742         * math/w_exp2.c: Do not include <float.h>.
72743         (o_threshold, u_threshold): Remove.
72744         (__exp2): Calculate result before checking finiteness and calling
72745         __kernel_standard.
72746         * math/w_exp2f.c: Likewise.
72747         * math/w_exp2l.c: Likewise.
72748         * math/libm-test.inc (exp2_test): Require overflow exception for
72749         1e6 input.
72750
72751         [BZ #3866]
72752         * sysdeps/i386/fpu/e_pow.S (__ieee754_pow): Test for y outside the
72753         range of signed 64-bit integers before using fistpll.  Remove
72754         checks for whether integers fit in mantissa bits.
72755         * sysdeps/i386/fpu/e_powf.S (__ieee754_powf): Test for y outside
72756         the range of signed 32-bit integers before using fistpl.  Remove
72757         checks for whether integers fit in mantissa bits.
72758         * sysdeps/i386/fpu/e_powl.S (p64): New object.
72759         (__ieee754_powl): Test for y outside the range of signed 64-bit
72760         integers before using fistpll.  Reduce 64-bit values to 63-bit
72761         ones as needed.
72762         * sysdeps/ieee754/dbl-64/e_pow.c (__ieee754_pow): Ensure
72763         divide-by-zero is raised for zero to large negative powers.
72764         * sysdeps/x86_64/fpu/e_powl.S (p64): New object.
72765         (__ieee754_powl): Test for y outside the range of signed 64-bit
72766         integers before using fistpll.  Reduce 64-bit values to 63-bit
72767         ones as needed.
72768         * math/libm-test.inc (pow_test): Add more tests.
72769
72770 2012-03-20  H.J. Lu  <hongjiu.lu@intel.com>
72771
72772         * debug/backtracesymsfd.c: Include <_itoa.h> instead of
72773         <stdio-common/_itoa.h>.
72774         * debug/segfault.c: Likewise.
72775         * elf/dl-cache.c: Likewise.
72776         * elf/dl-minimal.c: Likewise.
72777         * elf/dl-misc.c: Likewise.
72778         * elf/dl-sysdep.c: Likewise.
72779         * elf/dl-version.c: Likewise.
72780         * elf/rtld.c: Likewise.
72781         * hurd/hurdsock.c: Likewise.
72782         * hurd/lookup-retry.c: Likewise.
72783         * malloc/malloc.c: Likewise.
72784         * malloc/mtrace.c: Likewise.
72785         * nscd/nscd_getgr_r.c: Likewise.
72786         * nscd/nscd_getpw_r.c: Likewise.
72787         * nscd/nscd_getserv_r.c: Likewise.
72788         * posix/getopt_init.c: Likewise.
72789         * posix/wordexp.c: Likewise.
72790         * stdio-common/_itoa.c: Likewise.
72791         * stdio-common/printf_fphex.c: Likewise.
72792         * stdio-common/vfprintf.c: Likewise.
72793         * string/_strerror.c: Likewise.
72794         * sysdeps/generic/elf/backtracesymsfd.c: Likewise.
72795         * sysdeps/i386/i686/hp-timing.h: Likewise.
72796         * sysdeps/mach/_strerror.c: Likewise.
72797         * sysdeps/mach/hurd/powerpc/register-dump.h: Likewise.
72798         * sysdeps/mach/hurd/sethostid.c: Likewise.
72799         * sysdeps/mach/hurd/xmknodat.c: Likewise.
72800         * sysdeps/mach/xpg-strerror.c: Likewise.
72801         * sysdeps/powerpc/powerpc32/dl-machine.c: Likewise.
72802         * sysdeps/powerpc/powerpc32/power4/hp-timing.h: Likewise.
72803         * sysdeps/powerpc/powerpc32/register-dump.h: Likewise.
72804         * sysdeps/powerpc/powerpc64/dl-machine.c: Likewise.
72805         * sysdeps/powerpc/powerpc64/hp-timing.h: Likewise.
72806         * sysdeps/powerpc/powerpc64/register-dump.h: Likewise.
72807         * sysdeps/sparc/sparc32/sparcv9/hp-timing.h: Likewise.
72808         * sysdeps/sparc/sparc64/hp-timing.h: Likewise.
72809         * sysdeps/unix/sysv/linux/fd_to_filename.h: Likewise.
72810         * sysdeps/unix/sysv/linux/futimes.c: Likewise.
72811         * sysdeps/unix/sysv/linux/i386/register-dump.h: Likewise.
72812         * sysdeps/unix/sysv/linux/ptsname.c: Likewise.
72813         * sysdeps/unix/sysv/linux/s390/s390-32/register-dump.h: Likewise.
72814         * sysdeps/unix/sysv/linux/s390/s390-64/register-dump.h: Likewise.
72815         * sysdeps/unix/sysv/linux/sh/sh3/register-dump.h: Likewise.
72816         * sysdeps/unix/sysv/linux/sh/sh4/register-dump.h: Likewise.
72817         * sysdeps/unix/sysv/linux/sparc/sparc32/register-dump.h: Likewise.
72818         * sysdeps/unix/sysv/linux/sparc/sparc64/register-dump.h: Likewise.
72819         * sysdeps/unix/sysv/linux/ttyname.c: Likewise.
72820         * sysdeps/unix/sysv/linux/ttyname_r.c: Likewise.
72821         * sysdeps/unix/sysv/linux/x86_64/register-dump.h: Likewise.
72822
72823         * stdio-common/_itoa.c: Include <_itoa.h> instead of "_itoa.h".
72824
72825         * stdio-common/_itoa.h: Moved to ...
72826         * sysdeps/generic/_itoa.h: Here.
72827
72828         * stdio-common/_itowa.c: Include <_itowa.h> instead of "_itowa.h".
72829
72830         * stdio-common/printf_fphex.c: Include <_itoa.h> and <_itowa.h>
72831         instead of "_itoa.h" and "_itowa.h".
72832         * stdio-common/vfprintf.: Likewise.
72833
72834 2012-03-20  H.J. Lu  <hongjiu.lu@intel.com>
72835
72836         * sysdeps/x86_64/fpu/bits/mathinline.h: Don't include
72837         <bits/wordsize.h>.
72838         (__signbitf): Check __x86_64__ instead of __WORDSIZE.
72839         (__signbit): Likwise.
72840         (llrintf): Likwise.
72841         (llrint): Likwise.
72842
72843 2012-03-20  H.J. Lu  <hongjiu.lu@intel.com>
72844
72845         * sysdeps/x86_64/bits/setjmp.h (__jmp_buf): Support x86-64 with
72846         __WORDSIZE != 64.
72847
72848 2012-03-20  Joseph Myers  <joseph@codesourcery.com>
72849
72850         * math/gen-libm-test.pl (%beautify): Add OVERFLOW_EXCEPTION and
72851         OVERFLOW_EXCEPTION_OK.
72852         * math/libm-test.inc ("Philosophy"): Update comment about
72853         exception testing.
72854         (OVERFLOW_EXCEPTION): Define.
72855         (OVERFLOW_EXCEPTION_OK): Likewise.
72856         (INVALID_EXCEPTION_OK): Renumber.
72857         (DIVIDE_BY_ZERO_EXCEPTION_OK): Likewise.
72858         (IGNORE_ZERO_INF_SIGN): Likewise.
72859         (test_exceptions): Handle FE_OVERFLOW.
72860         (exp10_test): Expect overflow exceptions.
72861         (exp2_test): Likewise.
72862         (expm1_test): Likewise.
72863         (nextafter_test): Likewise.
72864         (pow_test): Likewise.
72865         (scalbn_test): Likewise.
72866         (scalbln_test): Likewise.
72867
72868 2012-03-19  H.J. Lu  <hongjiu.lu@intel.com>
72869
72870         * sysdeps/x86_64/bits/atomic.h
72871         (__arch_c_compare_and_exchange_val_64_acq): Use atomic64_t on
72872         64bit integer.
72873         (atomic_exchange_acq): Likewise.
72874         (__arch_exchange_and_add_body): Likewise.
72875         (__arch_add_body): Likewise.
72876         (atomic_add_negative): Likewise.
72877         (atomic_add_zero): Likewise.
72878
72879 2012-03-19  H.J. Lu  <hongjiu.lu@intel.com>
72880
72881         * sysdeps/x86_64/fpu/bits/fenv.h: Don't include <bits/wordsize.h>.
72882         (fenv_t): Check __x86_64__ instead of __WORDSIZE.
72883
72884 2012-03-19  H.J. Lu  <hongjiu.lu@intel.com>
72885
72886         * sysdeps/x86_64/bits/mathdef.h: Don't include <bits/wordsize.h>.
72887         Check __x86_64__ instead of __WORDSIZE.
72888
72889 2012-03-19  H.J. Lu  <hongjiu.lu@intel.com>
72890
72891         * sysdeps/unix/sysv/linux/x86_64/ldd-rewrite.sed: Support x32.
72892
72893 2012-03-19  David S. Miller  <davem@davemloft.net>
72894
72895         * sysdeps/sparc/fpu/libm-test-ulps: Update.
72896
72897         * sysdeps/sparc/fpu/fenv_private.h: New file.
72898         * sysdeps/sparc/fpu/math_private.h: Use it.
72899         (libc_feholdexcept, libc_feholdexceptf, libc_feholdexceptl):
72900         Remove.
72901         (libc_feholdexcept_setround, libc_feholdexcept_setroundf)
72902         (libc_feholdexcept_setroundl): Remove.
72903         (libc_fetestexcept, libc_fetestexceptf, libc_fetestexceptl):
72904         Remove.
72905         (libc_fesetenv, libc_fesetenvf, libc_fesetenvl): Remove.
72906         (libc_feupdateenv, libc_feupdateenvf, libc_feupdateenvf): Remove.
72907
72908 2012-03-19  H.J. Lu  <hongjiu.lu@intel.com>
72909
72910         * sysdeps/x86_64/fpu/math_private.h (EXTRACT_WORDS64): Use
72911         int64_t instead of long int.
72912         (INSERT_WORDS64): Likwise.
72913
72914 2012-03-19  H.J. Lu  <hongjiu.lu@intel.com>
72915
72916         * sysdeps/x86_64/jmpbuf-unwind.h (_JMPBUF_CFA_UNWINDS_ADJ): Cast
72917         _Unwind_GetCFA return to _Unwind_Ptr first.
72918
72919 2012-03-19  Joseph Myers  <joseph@codesourcery.com>
72920
72921         [BZ #13629]
72922         * math/s_clog.c: Include <float.h>.
72923         (__clog): Scale large or subnormal inputs.
72924         * math/s_clogf.c: Likewise.
72925         * math/s_clogl.c: Likewise.
72926         * math/s_clog10.c: Include <float.h>.
72927         (M_LOG10_2): Define.
72928         (__clog10): Scale large or subnormal inputs.
72929         * math/s_clog10f.c: Likewise.
72930         * math/s_clog10l.c: Likewise.
72931         * math/libm-test.inc (clog_test): Add more tests.
72932         (clog10_test): Likewise.
72933         * sysdeps/i386/fpu/libm-test-ulps: Update.
72934         * sysdeps/x86_64/fpu/libm-test-ulps: Likewise.
72935
72936         [BZ #11451]
72937         * sysdeps/ieee754/dbl-64/e_atan2.c (__ieee754_atan2): Scale large
72938         x and y.
72939         * math/libm-test.inc (atan2_test): Add another test.
72940
72941         * Makerules (common-objdir-compile): Remove.
72942         * sysdeps/unix/Makefile (config-generated): Do not add
72943         $(unix-generated) to variable.
72944         [generic bits/local_lim.h] (mk-local_lim-CFLAGS): Remove variable.
72945         [generic bits/local_lim.h] ($(common-objpfx)bits/local_lim.h):
72946         Remove rule.
72947         [generic bits/local_lim.h] ($(common-objpfx)mk-local_lim):
72948         Likewise.
72949         [generic bits/local_lim.h] (before-compile): Do not append to
72950         variable.
72951         [generic bits/local_lim.h] (common-generated): Likewise.
72952         [generic sys/param.h] (before-compile): Do not append to variable.
72953         [generic sys/param.h] ($(common-objpfx)sys/param.h): Remove rule.
72954         [generic sys/param.h] ($(common-objpfx)param.h.c): Likewise.
72955         [generic sys/param.h] ($(common-objpfx)param.h.dep): Likewise.
72956         [generic sys/param.h] ($(common-objpfx)param.h.dep): Do not
72957         include.
72958         [generic sys/param.h] (sys/param.h-includes): Remove variable.
72959         [generic sys/param.h] (sys/param.h-includes): Remove rule.
72960         [generic sys/param.h] ($(addprefix
72961         $(common-objpfx),$(sys/param.h-includes))): Likewise.
72962         [generic sys/param.h] (common-generated): Do not append to
72963         variable.
72964         [generic sys/param.h] (sysdep_headers): Likewise.
72965         [generic bits/errno.h] (before-compile): Do not append to
72966         variable.
72967         [generic bits/errno.h] ($(common-objpfx)bits/errno.h): Remove
72968         rule.
72969         [generic bits/errno.h] ($(common-objpfx)make-errnos): Likewise.
72970         [generic bits/errno.h] ($(common-objpfx)make-errnos.c): Likewise.
72971         [generic bits/errno.h] ($(common-objpfx)errnos): Likewise.
72972         [generic bits/errno.h] (common-generated): Do not append to
72973         variable.
72974         [generic bits/ioctls.h] (before-compile): Do not append to
72975         variable.
72976         [generic bits/ioctls.h] ($(common-objpfx)bits/ioctls.h): Remove
72977         rule.
72978         [generic bits/ioctls.h] (ioctl-includes): Remove variable.
72979         [generic bits/ioctls.h] (make-ioctls-CFLAGS): Likewise.
72980         [generic bits/ioctls.h] ($(common-objpfx)make-ioctls): Remove
72981         rule.
72982         [generic bits/ioctls.h] ($(common-objpfx)make-ioctls.c): Likewise.
72983         [generic bits/ioctls.h] (bits_termios.h): Remove variable.
72984         [generic bits/ioctls.h] ($(common-objpfx)ioctls): Remove rule.
72985         [generic bits/ioctls.h] (common-generated): Do not append to
72986         variable.
72987         [generic sys/syscall.h] (syscall.h): Remove variable.
72988         [generic sys/syscall.h] ($(common-objpfx)sys/syscall.h): Remove
72989         rule.
72990         [generic sys/syscall.h] (before-compile): Do not append to
72991         variable.
72992         [generic sys/syscall.h] (common-generated): Likewise.
72993         * sysdeps/unix/errnos-tmpl.c: Remove file.
72994         * sysdeps/unix/errnos.awk: Likewise.
72995         * sysdeps/unix/ioctls-tmpl.c: Likewise.
72996         * sysdeps/unix/ioctls.awk: Likewise.
72997         * sysdeps/unix/mk-local_lim.c: Likewise.
72998         * sysdeps/unix/snarf-ioctls: Likewise.
72999
73000 2012-03-19  Richard Henderson  <rth@twiddle.net>
73001
73002         * sysdeps/i386/fpu/fenv_private.h: New file.
73003         * sysdeps/i386/fpu/math_private.h: Use it.
73004         (math_opt_barrier, math_force_eval): Remove.
73005         (libc_feholdexcept_setround_53bit): Remove.
73006         (libc_feupdateenv_53bit): Remove.
73007         * sysdeps/x86_64/fpu/math_private.h: Likewise.
73008         (math_opt_barrier, math_force_eval): Remove.
73009         (libc_feholdexcept): Remove.
73010         (libc_feholdexcept_setround): Remove.
73011         (libc_fetestexcept, libc_fesetenv): Remove.
73012         (libc_feupdateenv_test): Remove.
73013         (libc_feupdateenv, libc_feholdsetround): Remove.
73014         (libc_feresetround): Remove.
73015
73016         * sysdeps/i386/fpu/feholdexcpt.c (feholdexcept): Avoid the fldenv.
73017         * sysdeps/x86_64/fpu/feholdexcpt.c (feholdexcept): Likewise.
73018
73019         * sysdeps/generic/math_private.h (default_libc_feupdateenv_test): New.
73020         (libc_feupdateenv_test, libc_feupdateenv_testf): New.
73021         (libc_feupdateenv_testl): New.
73022         * sysdeps/x86_64/fpu/math_private.h (libc_feupdateenv_test): New.
73023         (libc_feupdateenv_testf): New.
73024         (libc_feupdateenv): Use libc_feupdateenv_test.
73025         * sysdeps/ieee754/dbl-64/s_fma.c (__fma): Use libc_feupdateenv_test.
73026         * sysdeps/ieee754/dbl-64/s_fmaf.c (__fmaf): Likewise.
73027
73028         * sysdeps/generic/math_private.h (libc_feholdsetround): New.
73029         (libc_feholdsetroundf, libc_feholdsetroundl): New.
73030         (libc_feresetround, libc_feresetroundf, libc_feresetroundl): New.
73031         (libc_feresetround_noex): New.
73032         (libc_feresetround_noexf): New.
73033         (libc_feresetround_noexl): New.
73034         (SET_RESTORE_ROUND, SET_RESTORE_ROUNDF, SET_RESTORE_ROUNDL): New.
73035         (SET_RESTORE_ROUND_NOEX, SET_RESTORE_ROUND_NOEXF): New.
73036         (SET_RESTORE_ROUND_NOEXL, SET_RESTORE_ROUND_53BIT): New.
73037         * sysdeps/ieee754/dbl-64/e_exp.c (__ieee754_exp): Use
73038         SET_RESTORE_ROUND.
73039         * sysdeps/ieee754/dbl-64/e_pow.c (__ieee754_pow): Likewise.
73040         * sysdeps/ieee754/dbl-64/s_sin.c (__sin): Use SET_RESTORE_ROUND_53BIT.
73041         (__cos): Likewise.
73042         * sysdeps/ieee754/dbl-64/s_tan.c (__tan): Likewise.
73043         * sysdeps/ieee754/dbl-64/e_exp2.c (__ieee754_exp2): Use
73044         SET_RESTORE_ROUND_NOEX.
73045         * sysdeps/ieee754/dbl-64/e_exp2f.c (__ieee754_exp2f): Use
73046         SET_RESTORE_ROUND_NOEXF.
73047         * sysdeps/ieee754/flt-32/e_expf.c (__ieee754_expf): Likewise.
73048         * sysdeps/x86_64/fpu/math_private.h (libc_feholdsetround): New.
73049         (libc_feholdsetroundf): New.
73050         (libc_feresetround, libc_feresetroundf): New.
73051
73052         * sysdeps/i386/fpu/math_private.h: Include <fenv.h>, <fpu_control.h>.
73053         (libc_feholdexcept_setround_53bit): Convert from macro to function.
73054         (libc_feupdateenv_53bit): Likewise.  Don't force _FPU_EXTENDED.
73055
73056         * sysdeps/generic/math_private.h: Include <fenv.h>.
73057         (default_libc_feholdexcept): New.
73058         (default_libc_feholdexcept_setround): New.
73059         (default_libc_fesetenv, default_libc_feupdateenv): New.
73060         (libc_feholdexcept): Only define if undefined.
73061         (libc_feholdexceptf, libc_feholdexceptl): Likewise.
73062         (libc_feholdexcept_setround, libc_feholdexcept_setroundf): Likewise.
73063         (libc_feholdexcept_setroundl): Likewise.
73064         (libc_feholdexcept_setround_53bit): Likewise.
73065         (libc_fetestexcept, libc_fetestexceptf, libc_fetestexceptl): Likewise.
73066         (libc_fesetenv, libc_fesetenvf, libc_fesetenvl): Likewise.
73067         (libc_feupdateenv, libc_feupdateenvf, libc_feupdateenvl): Likewise.
73068         (libc_feupdateenv_53bit): Likewise.
73069         * sysdeps/x86_64/fpu/math_private.h: Include <fenv.h>.
73070         (libc_feholdexcept): Convert from macro to inline function.
73071         (libc_feholdexcept_setround, libc_fetestexcept): Likewise.
73072         (libc_fesetenv, libc_feupdateenv): Likewise.
73073
73074         * sysdeps/generic/math_private.h (GET_HIGH_WORD): Define only if
73075         not previously defined.
73076         (GET_LOW_WORD, EXTRACT_WORDS64, INSERT_WORDS): Likewise.
73077         (INSERT_WORDS64, SET_HIGH_WORD, SET_LOW_WORD): Likewise.
73078         (GET_FLOAT_WORD, SET_FLOAT_WORD): Likewise.
73079         * sysdeps/ieee754/dbl-64/wordsize-64/math_private.h: New file.
73080         * sysdeps/ieee754/flt-32/math_private.h: New file.
73081         * sysdeps/x86_64/fpu/math_private.h: Move the include_next of
73082         math_private.h below SET_FLOAT_WORD.
73083         (__isnan, __isinf_ns, __finite): Remove.
73084         (__isnanf, __isinf_nsf, __finitef): Remove.
73085
73086 2012-03-18  Andreas Schwab  <schwab@linux-m68k.org>
73087
73088         * sysdeps/powerpc/fpu/libm-test-ulps: Update.
73089
73090 2012-03-17  David S. Miller  <davem@davemloft.net>
73091
73092         [BZ #6471]
73093         * sysdeps/unix/sysv/linux/sparc/Versions: Add __getshmlba entry
73094         for 2.16.
73095
73096 2012-03-16  David S. Miller  <davem@davemloft.net>
73097
73098         * sysdeps/unix/sysv/linux/shmat.c (shmat): Use -1l to avoid
73099         warnings.
73100
73101         [BZ #6471]
73102         * sysdeps/unix/sysv/linux/shmat.c (shmat): Test for syscall errors
73103         properly.
73104         * sysdeps/unix/sysv/linux/sparc/getshmlba.c: New file.
73105         * sysdeps/unix/sysv/linux/sparc/Makefile: Add getshmlba to
73106         sysdep_routines when subdir is sysvipc.
73107         * sysdeps/unix/sysv/linux/sparc/bits/shm.h (SHMLBA): Use new
73108         __getshmlba helper.
73109
73110         * sysdeps/sparc/fpu/libm-test/ulps: Update.
73111
73112 2012-03-16  H.J. Lu  <hongjiu.lu@intel.com>
73113
73114         * sysdeps/x86_64/ffsll.c (ffsl): Define alias only under
73115         [__LP64__].
73116
73117 2012-03-16  H.J. Lu  <hongjiu.lu@intel.com>
73118
73119         * sysdeps/ieee754/dbl-64/wordsize-64/s_lround.c: Moved to ...
73120         * sysdeps/ieee754/dbl-64/wordsize-64/s_llround.c: This.
73121         (__lround): Renamed to ...
73122         (__llround): This.  Replace long int with long long int.
73123         Define lround functions as aliases of llround functions.
73124         * sysdeps/ieee754/dbl-64/wordsize-64/s_lround.c: Empty file.
73125
73126 2012-03-16  H.J. Lu  <hongjiu.lu@intel.com>
73127
73128         * sysdeps/unix/sysv/linux/x86_64/makecontext.c (__makecontext):
73129         Use greg_t on sp.  Use unsigned int on idx_uc_link.  Cast
73130         adresses to uintptr_t.  Replace "long int" and "unsigned long
73131         int" with "greg_t" on va_arg.
73132
73133 2012-03-16  H.J. Lu  <hongjiu.lu@intel.com>
73134
73135         * sysdeps/generic/ldconfig.h (FLAG_X8664_LIBX32): New macro.
73136         * elf/cache.c (print_entry): Handle FLAG_X8664_LIBX32.
73137
73138         * sysdeps/unix/sysv/linux/i386/readelflib.c (process_elf_file):
73139         Move e_machine check before EI_CLASS check.  Handle x32
73140         libraries.  Check EM_IA_64 only if SKIP_EM_IA_64 isn't defined.
73141         * sysdeps/unix/sysv/linux/x86_64/readelflib.c: Just define
73142         SKIP_EM_IA_64 and include
73143         <sysdeps/unix/sysv/linux/i386/readelflib.c>.
73144
73145         * sysdeps/unix/sysv/linux/x86_64/dl-cache.h:
73146         Don't include <sysdeps/unix/sysv/linux/sparc/dl-cache.h>.
73147         (add_system_dir): New macro.
73148
73149         * sysdeps/unix/sysv/linux/x86_64/ldconfig.h
73150         (SYSDEP_KNOWN_INTERPRETER_NAMES): Add /libx32/ld-linux-x32.so.2.
73151
73152 2012-03-16  Joseph Myers  <joseph@codesourcery.com>
73153
73154         [BZ #2551]
73155         [BZ #2552]
73156         [BZ #2553]
73157         [BZ #2554]
73158         [BZ #2562]
73159         [BZ #2563]
73160         [BZ #2565]
73161         [BZ #2566]
73162         [BZ #2576]
73163         * math/w_j0.c (j0): Don't produce TLOSS errors for POSIX libm.
73164         (y0): Likewise.
73165         * math/w_j0f.c (j0f): Likewise.
73166         (y0f): Likewise.
73167         * math/w_j0l.c (__j0l): Likewise.
73168         (__y0l): Likewise.
73169         * math/w_j1.c (j1): Likewise.
73170         (y1): Likewise.
73171         * math/w_j1f.c (j1f): Likewise.
73172         (y1f): Likewise.
73173         * math/w_j1l.c (__j1l): Likewise.
73174         (__y1l): Likewise.
73175         * math/w_jn.c (jn): Likewise.
73176         (yn): Likewise.
73177         * math/w_jnf.c (jnf): Likewise.
73178         (ynf): Likewise.
73179         * math/w_jnl.c (__jnl): Likewise.
73180         (__ynl): Likewise.
73181         * math/libm-test.inc (j0_test): Add more tests.
73182         (j1_test): Likewise.
73183         (jn_test): Likewise.  Add trailing semicolon to existing test.
73184         (y0_test): Likewise.
73185         (y1_test): Likewise.
73186         * sysdeps/i386/fpu/libm-test-ulps: Update.
73187         * sysdeps/x86_64/fpu/libm-test-ulps: Likewise.
73188
73189         [BZ #13851]
73190         [BZ #13854]
73191         * sysdeps/ieee754/dbl-64/s_tan.c (tan): Use
73192         libc_feholdexcept_setround_53bit and libc_feupdateenv_53bit.
73193         * sysdeps/ieee754/ldbl-96/k_tanl.c: New file.
73194         * sysdeps/ieee754/ldbl-96/s_tanl.c: Include <errno.h>.
73195         (__tanl): Set errno for infinite argument.
73196         * sysdeps/i386/fpu/mptan.c: Remove.
73197         * sysdeps/i386/fpu/s_tan.S: Likewise.
73198         * sysdeps/i386/fpu/s_tanl.S: Likewise.
73199         * sysdeps/x86_64/fpu/k_tanl.c: Likewise.
73200         * sysdeps/x86_64/fpu/s_tanl.S: Likewise.
73201         * math/libm-test.inc (tan_test): Add more tests and enable more
73202         tests for double and long double.
73203         * sysdeps/i386/fpu/libm-test-ulps: Update.
73204         * sysdeps/x86_64/fpu/libm-test-ulps: Likewise.
73205
73206 2012-03-16  Jan Kratochvil  <jan.kratochvil@redhat.com>
73207
73208         * sysdeps/x86_64/elf/start.S: Include <sysdep.h>.
73209         (_start): Add cfi_startproc, cfi_undefined for rip and cfi_endproc.
73210
73211 2012-03-16  Roland McGrath  <roland@hack.frob.com>
73212
73213         * aclocal.m4 (LIBC_PRECONFIGURE): New macro.
73214         * configure.in: Use it for both main tree and add-ons.
73215         * configure: Regenerated.
73216
73217 2012-03-16  H.J. Lu  <hongjiu.lu@intel.com>
73218
73219         * time/offtime.c (__offtime): Use time_t on days, rem, y and yg.
73220
73221 2012-03-16  Joseph Myers  <joseph@codesourcery.com>
73222
73223         * sysdeps/ieee754/ldbl-96/t_sincosl.c: Include generator program
73224         in comment.
73225
73226         [BZ #13851]
73227         * sysdeps/ieee754/ldbl-96/e_rem_pio2l.c: New file.
73228         * sysdeps/ieee754/ldbl-96/k_cosl.c: Likewise.
73229         * sysdeps/ieee754/ldbl-96/k_sinl.c: Likewise.
73230         * sysdeps/ieee754/ldbl-96/t_sincosl.c: Likewise.
73231         * sysdeps/ieee754/ldbl-96/s_cosl.c (__cosl): Correct test for
73232         infinite argument.
73233         * sysdeps/ieee754/ldbl-96/s_sinl.c (__sinl): Likewise.
73234         * sysdeps/ieee754/dbl-64/k_rem_pio2.c: Handle __FLT_EVAL_METHOD__
73235         != 0 for prec == 2.
73236         * sysdeps/i386/fpu/e_rem_pio2l.c: Remove.
73237         * sysdeps/i386/fpu/k_rem_pio2.c: Likewise.
73238         * sysdeps/i386/fpu/s_cosl.S: Likewise.
73239         * sysdeps/i386/fpu/s_sincosl.S: Likewise.
73240         * sysdeps/i386/fpu/s_sinl.S: Likewise.
73241         * sysdeps/x86_64/fpu/e_rem_pio2l.c: Likewise.
73242         * sysdeps/x86_64/fpu/k_cosl.c: Likewise.
73243         * sysdeps/x86_64/fpu/k_sinl.c: Likewise.
73244         * sysdeps/x86_64/fpu/s_cosl.S: Likewise.
73245         * sysdeps/x86_64/fpu/s_sincosl.S: Likewise.
73246         * sysdeps/x86_64/fpu/s_sinl.S: Likewise.
73247         * math/libm-test.inc (cos_test): Add more tests and enable more
73248         tests for long double.
73249         (sin_test): Likewise.
73250         (sincos_test): Likewise.
73251         * sysdeps/i386/fpu/libm-test-ulps: Update.
73252         * sysdeps/x86_64/fpu/libm-test-ulps: Likewise.
73253
73254 2012-03-16  David S. Miller  <davem@davemloft.net>
73255
73256         * sysdeps/sparc/fpu/math_private.h: New file.
73257
73258 2012-03-15  David S. Miller  <davem@davemloft.net>
73259
73260         * sysdeps/sparc/sparc32/sparcv9/fpu/multiarch/s_fma-vis3.S: New
73261         file.
73262         * sysdeps/sparc/sparc32/sparcv9/fpu/multiarch/s_fma.c: New file.
73263         * sysdeps/sparc/sparc32/sparcv9/fpu/multiarch/s_fmaf-vis3.S: New
73264         file.
73265         * sysdeps/sparc/sparc32/sparcv9/fpu/multiarch/s_fmaf.c: New file.
73266         * sysdeps/sparc/sparc64/fpu/multiarch/s_fma-vis3.S: New file.
73267         * sysdeps/sparc/sparc64/fpu/multiarch/s_fma.c: New file.
73268         * sysdeps/sparc/sparc64/fpu/multiarch/s_fmaf-vis3.S: New file.
73269         * sysdeps/sparc/sparc64/fpu/multiarch/s_fmaf.c: New file.
73270         * sysdeps/sparc/sparc64/fpu/multiarch/Makefile: Add fma/fmaf
73271         sysdep routines.
73272         * sysdeps/sparc/sparc32/sparcv9/fpu/multiarch/Makefile: Likewise.
73273
73274         * sysdeps/sparc/sparc32/fpu/s_fma.c: New file.
73275         * sysdeps/sparc/sparc64/fpu/s_fma.c: New file.
73276
73277         * sysdeps/sparc/sparc-ifunc.h: New file.
73278         * sysdeps/sparc/sparc32/sparcv9/fpu/multiarch/s_ceil.S: Use
73279         sparc-ifunc.h
73280         * sysdeps/sparc/sparc32/sparcv9/fpu/multiarch/s_ceilf.S: Likewise.
73281         * sysdeps/sparc/sparc32/sparcv9/fpu/multiarch/s_copysign.S:
73282         Likewise.
73283         * sysdeps/sparc/sparc32/sparcv9/fpu/multiarch/s_copysignf.S:
73284         Likewise.
73285         * sysdeps/sparc/sparc32/sparcv9/fpu/multiarch/s_fabs.S: Likewise.
73286         * sysdeps/sparc/sparc32/sparcv9/fpu/multiarch/s_fabsf.S: Likewise.
73287         * sysdeps/sparc/sparc32/sparcv9/fpu/multiarch/s_floor.S: Likewise.
73288         * sysdeps/sparc/sparc32/sparcv9/fpu/multiarch/s_floorf.S:
73289         Likewise.
73290         * sysdeps/sparc/sparc32/sparcv9/fpu/multiarch/s_fmax.S: Likewise.
73291         * sysdeps/sparc/sparc32/sparcv9/fpu/multiarch/s_fmaxf.S: Likewise.
73292         * sysdeps/sparc/sparc32/sparcv9/fpu/multiarch/s_fmin.S: Likewise.
73293         * sysdeps/sparc/sparc32/sparcv9/fpu/multiarch/s_fminf.S: Likewise.
73294         * sysdeps/sparc/sparc32/sparcv9/fpu/multiarch/s_llrint.S:
73295         Likewise.
73296         * sysdeps/sparc/sparc32/sparcv9/fpu/multiarch/s_llrintf.S:
73297         Likewise.
73298         * sysdeps/sparc/sparc32/sparcv9/fpu/multiarch/s_rint.S: Likewise.
73299         * sysdeps/sparc/sparc32/sparcv9/fpu/multiarch/s_rintf.S: Likewise.
73300         * sysdeps/sparc/sparc32/sparcv9/fpu/multiarch/w_sqrt.S: Likewise.
73301         * sysdeps/sparc/sparc32/sparcv9/fpu/multiarch/w_sqrtf.S: Likewise.
73302         * sysdeps/sparc/sparc64/fpu/multiarch/s_ceil.S: Likewise.
73303         * sysdeps/sparc/sparc64/fpu/multiarch/s_ceilf.S: Likewise.
73304         * sysdeps/sparc/sparc64/fpu/multiarch/s_finite.S: Likewise.
73305         * sysdeps/sparc/sparc64/fpu/multiarch/s_finitef.S: Likewise.
73306         * sysdeps/sparc/sparc64/fpu/multiarch/s_floor.S: Likewise.
73307         * sysdeps/sparc/sparc64/fpu/multiarch/s_floorf.S: Likewise.
73308         * sysdeps/sparc/sparc64/fpu/multiarch/s_fmax.S: Likewise.
73309         * sysdeps/sparc/sparc64/fpu/multiarch/s_fmaxf.S: Likewise.
73310         * sysdeps/sparc/sparc64/fpu/multiarch/s_fmin.S: Likewise.
73311         * sysdeps/sparc/sparc64/fpu/multiarch/s_fminf.S: Likewise.
73312         * sysdeps/sparc/sparc64/fpu/multiarch/s_isinf.S: Likewise.
73313         * sysdeps/sparc/sparc64/fpu/multiarch/s_isinff.S: Likewise.
73314         * sysdeps/sparc/sparc64/fpu/multiarch/s_isnan.S: Likewise.
73315         * sysdeps/sparc/sparc64/fpu/multiarch/s_isnanf.S: Likewise.
73316         * sysdeps/sparc/sparc64/fpu/multiarch/s_lrint.S: Likewise.
73317         * sysdeps/sparc/sparc64/fpu/multiarch/s_lrintf.S: Likewise.
73318         * sysdeps/sparc/sparc64/fpu/multiarch/s_rint.S: Likewise.
73319         * sysdeps/sparc/sparc64/fpu/multiarch/s_rintf.S: Likewise.
73320         * sysdeps/sparc/sparc64/fpu/multiarch/s_signbit.S: Likewise.
73321         * sysdeps/sparc/sparc64/fpu/multiarch/s_signbitf.S: Likewise.
73322
73323 2012-03-15  Andreas Schwab  <schwab@linux-m68k.org>
73324
73325         * sysdeps/powerpc/fpu/e_hypotf.c: Use double precision instead of
73326         scaling.
73327         * sysdeps/powerpc/fpu/libm-test-ulps: Update.
73328
73329 2012-03-15  Andreas Jaeger  <aj@suse.de>
73330
73331         [BZ #13852]
73332         * sysdeps/i386/fpu/e_rem_pio2f.c: Delete so that i386 uses the
73333         ieee754/flt-32 implementation for sin, cos and sincos.
73334         * sysdeps/i386/fpu/k_rem_pio2f.c: Likewise.
73335         * sysdeps/i386/fpu/s_cosf.S: Likewise.
73336         * sysdeps/i386/fpu/s_sincosf.S: Likewise.
73337         * sysdeps/i386/fpu/s_sinf.S: Likewise.
73338         * sysdeps/i386/fpu/s_tanf.S: Delete so that i386 uses the
73339         ieee754/flt-32 implementation for tan.
73340
73341         * math/libm-test.inc (cos_test): Enable some large input tests for
73342         float as well
73343         (sin_test): Likewise.
73344         (sincos_test): Likewise.
73345         (tan_test): Add tests for large input.
73346
73347         * sysdeps/i386/fpu/libm-test-ulps: Update.
73348
73349 2012-03-15  Andreas Jaeger  <aj@suse.de>
73350
73351         [BZ #13658]
73352         * math/libm-test.inc (cos_test): Add more test cases.
73353         (sin_test): Likewise.
73354         (sincos_test): Likewise.
73355
73356 2012-03-15  Andreas Jaeger  <aj@suse.de>
73357
73358         [BZ #13837]
73359         * math/libm-test.inc (cos_test): Add a test case for large input
73360         value.
73361         (sin_test): Likewise.
73362         (sincos_test): Likewise.
73363
73364 2012-03-15  Andreas Jaeger  <aj@suse.de>
73365             Joseph Myers  <joseph@codesourcery.com>
73366
73367         [BZ #13658]
73368         * sysdeps/x86_64/fpu/s_sincos.S: Delete files so that
73369         x86-64 and i386 use the iee754/dbl-64 sin and cos implementation.
73370         * sysdeps/i386/fpu/branred.c: Likewise.
73371         * sysdeps/i386/fpu/dosincos.c: Likewise.
73372         * sysdeps/i386/fpu/mpa.c: Likewise.
73373         * sysdeps/i386/fpu/s_cos.S: Likewise.
73374         * sysdeps/i386/fpu/s_sin.S: Likewise.
73375         * sysdeps/i386/fpu/s_sincos.S: Likewise.
73376         * sysdeps/i386/fpu/sincos32.c: Likewise.
73377
73378         * sysdeps/generic/math_private.h (libc_feholdexcept_setround_53bit):
73379         Define.
73380         (libc_feupdateenv_53bit): Define.
73381         * sysdeps/i386/fpu/math_private.h (libc_feholdexcept_setround_53bit):
73382         Define.
73383         (libc_feupdateenv_53bit): Define.
73384
73385         * sysdeps/ieee754/dbl-64/s_sin.c (__sin): Do double arithmetic in
73386         53 bit (without extend i386 double precision).
73387
73388         * math/libm-test.inc (sincos_test): Add tests for large input.
73389         (sin): Likewise.
73390         (cos): Likewise.
73391
73392         * sysdeps/i386/fpu/libm-test-ulps: Update ULPs.
73393
73394 2012-03-15  Andreas Schwab  <schwab@linux-m68k.org>
73395
73396         * sysdeps/powerpc/fpu/libm-test-ulps: Update.
73397
73398 2012-03-15  David S. Miller  <davem@davemloft.net>
73399
73400         * sysdeps/sparc/sparc64/fpu/s_fmax.S: New file.
73401         * sysdeps/sparc/sparc64/fpu/s_fmaxf.S: New file.
73402         * sysdeps/sparc/sparc64/fpu/s_fmin.S: New file.
73403         * sysdeps/sparc/sparc64/fpu/s_fminf.S: New file.
73404         * sysdeps/sparc/sparc32/sparcv9/fpu/s_fmax.S: New file.
73405         * sysdeps/sparc/sparc32/sparcv9/fpu/s_fmaxf.S: New file.
73406         * sysdeps/sparc/sparc32/sparcv9/fpu/s_fmin.S: New file.
73407         * sysdeps/sparc/sparc32/sparcv9/fpu/s_fminf.S: New file.
73408         * sysdeps/sparc/sparc64/fpu/multiarch/s_fmax.S: New file.
73409         * sysdeps/sparc/sparc64/fpu/multiarch/s_fmaxf-vis3.S: New file.
73410         * sysdeps/sparc/sparc64/fpu/multiarch/s_fmaxf.S: New file.
73411         * sysdeps/sparc/sparc64/fpu/multiarch/s_fmin-vis3.S: New file.
73412         * sysdeps/sparc/sparc64/fpu/multiarch/s_fmin.S: New file.
73413         * sysdeps/sparc/sparc64/fpu/multiarch/s_fminf-vis3.S: New file.
73414         * sysdeps/sparc/sparc64/fpu/multiarch/s_fminf.S: New file.
73415         * sysdeps/sparc/sparc32/sparcv9/fpu/multiarch/s_fmax-vis3.S: New
73416         file.
73417         * sysdeps/sparc/sparc32/sparcv9/fpu/multiarch/s_fmax.S: New file.
73418         * sysdeps/sparc/sparc32/sparcv9/fpu/multiarch/s_fmaxf-vis3.S: New
73419         file.
73420         * sysdeps/sparc/sparc32/sparcv9/fpu/multiarch/s_fmaxf.S: New file.
73421         * sysdeps/sparc/sparc32/sparcv9/fpu/multiarch/s_fmin-vis3.S: New
73422         file.
73423         * sysdeps/sparc/sparc32/sparcv9/fpu/multiarch/s_fmin.S: New file.
73424         * sysdeps/sparc/sparc32/sparcv9/fpu/multiarch/s_fminf-vis3.S: New
73425         file.
73426         * sysdeps/sparc/sparc32/sparcv9/fpu/multiarch/s_fminf.S: New file.
73427         * sysdeps/sparc/sparc64/fpu/multiarch/Makefile: Add new vis3
73428         fmin/fmax sysdep routines.
73429         * sysdeps/sparc/sparc32/sparcv9/fpu/multiarch/Makefile: Likewise.
73430
73431 2012-03-14  David S. Miller  <davem@davemloft.net>
73432
73433         * sysdeps/sparc/sparc64/fpu/multiarch/s_ceil-vis3.S: New file.
73434         * sysdeps/sparc/sparc64/fpu/multiarch/s_ceil.S: New file.
73435         * sysdeps/sparc/sparc64/fpu/multiarch/s_ceilf-vis3.S: New file.
73436         * sysdeps/sparc/sparc64/fpu/multiarch/s_ceilf.S: New file.
73437         * sysdeps/sparc/sparc64/fpu/multiarch/s_finite-vis3.S: New file.
73438         * sysdeps/sparc/sparc64/fpu/multiarch/s_finite.S: New file.
73439         * sysdeps/sparc/sparc64/fpu/multiarch/s_finitef-vis3.S: New file.
73440         * sysdeps/sparc/sparc64/fpu/multiarch/s_finitef.S: New file.
73441         * sysdeps/sparc/sparc64/fpu/multiarch/s_floor-vis3.S: New file.
73442         * sysdeps/sparc/sparc64/fpu/multiarch/s_floor.S: New file.
73443         * sysdeps/sparc/sparc64/fpu/multiarch/s_floorf-vis3.S: New file.
73444         * sysdeps/sparc/sparc64/fpu/multiarch/s_floorf.S: New file.
73445         * sysdeps/sparc/sparc64/fpu/multiarch/s_isinf-vis3.S: New file.
73446         * sysdeps/sparc/sparc64/fpu/multiarch/s_isinf.S: New file.
73447         * sysdeps/sparc/sparc64/fpu/multiarch/s_isinff-vis3.S: New file.
73448         * sysdeps/sparc/sparc64/fpu/multiarch/s_isinff.S: New file.
73449         * sysdeps/sparc/sparc64/fpu/multiarch/s_isnan-vis3.S: New file.
73450         * sysdeps/sparc/sparc64/fpu/multiarch/s_isnan.S: New file.
73451         * sysdeps/sparc/sparc64/fpu/multiarch/s_isnanf-vis3.S: New file.
73452         * sysdeps/sparc/sparc64/fpu/multiarch/s_isnanf.S: New file.
73453         * sysdeps/sparc/sparc64/fpu/multiarch/s_lrint-vis3.S: New file.
73454         * sysdeps/sparc/sparc64/fpu/multiarch/s_lrint.S: New file.
73455         * sysdeps/sparc/sparc64/fpu/multiarch/s_lrintf-vis3.S: New file.
73456         * sysdeps/sparc/sparc64/fpu/multiarch/s_lrintf.S: New file.
73457         * sysdeps/sparc/sparc64/fpu/multiarch/s_rint-vis3.S: New file.
73458         * sysdeps/sparc/sparc64/fpu/multiarch/s_rint.S: New file.
73459         * sysdeps/sparc/sparc64/fpu/multiarch/s_rintf-vis3.S: New file.
73460         * sysdeps/sparc/sparc64/fpu/multiarch/s_rintf.S: New file.
73461         * sysdeps/sparc/sparc64/fpu/multiarch/Makefile: Add new VIS3
73462         routines.
73463         * sysdeps/sparc/sparc32/sparcv9/fpu/multiarch/s_ceil-vis3.S: New
73464         file.
73465         * sysdeps/sparc/sparc32/sparcv9/fpu/multiarch/s_ceil.S: New file.
73466         * sysdeps/sparc/sparc32/sparcv9/fpu/multiarch/s_ceilf-vis3.S: New
73467         file.
73468         * sysdeps/sparc/sparc32/sparcv9/fpu/multiarch/s_ceilf.S: New file.
73469         * sysdeps/sparc/sparc32/sparcv9/fpu/multiarch/s_fabs-vis3.S: New
73470         file.
73471         * sysdeps/sparc/sparc32/sparcv9/fpu/multiarch/s_fabs.S: New file.
73472         * sysdeps/sparc/sparc32/sparcv9/fpu/multiarch/s_fabsf-vis3.S: New
73473         file.
73474         * sysdeps/sparc/sparc32/sparcv9/fpu/multiarch/s_fabsf.S: New file.
73475         * sysdeps/sparc/sparc32/sparcv9/fpu/multiarch/s_floor-vis3.S: New
73476         file.
73477         * sysdeps/sparc/sparc32/sparcv9/fpu/multiarch/s_floor.S: New file.
73478         * sysdeps/sparc/sparc32/sparcv9/fpu/multiarch/s_floorf-vis3.S: New
73479         file.
73480         * sysdeps/sparc/sparc32/sparcv9/fpu/multiarch/s_floorf.S: New
73481         file.
73482         * sysdeps/sparc/sparc32/sparcv9/fpu/multiarch/s_llrint-vis3.S: New
73483         file.
73484         * sysdeps/sparc/sparc32/sparcv9/fpu/multiarch/s_llrint.S: New
73485         file.
73486         * sysdeps/sparc/sparc32/sparcv9/fpu/multiarch/s_llrintf-vis3.S:
73487         New file.
73488         * sysdeps/sparc/sparc32/sparcv9/fpu/multiarch/s_llrintf.S: New
73489         file.
73490         * sysdeps/sparc/sparc32/sparcv9/fpu/multiarch/s_rint-vis3.S: New
73491         file.
73492         * sysdeps/sparc/sparc32/sparcv9/fpu/multiarch/s_rint.S: New file.
73493         * sysdeps/sparc/sparc32/sparcv9/fpu/multiarch/s_rintf-vis3.S: New
73494         file.
73495         * sysdeps/sparc/sparc32/sparcv9/fpu/multiarch/s_rintf.S: New file.
73496         * sysdeps/sparc/sparc32/sparcv9/fpu/multiarch/w_sqrt-vis3.S: New
73497         file.
73498         * sysdeps/sparc/sparc32/sparcv9/fpu/multiarch/w_sqrt.S: New file.
73499         * sysdeps/sparc/sparc32/sparcv9/fpu/multiarch/w_sqrtf-vis3.S: New
73500         file.
73501         * sysdeps/sparc/sparc32/sparcv9/fpu/multiarch/w_sqrtf.S: New file.
73502         * sysdeps/sparc/sparc32/sparcv9/fpu/multiarch/Makefile: Add new
73503         VIS3 routines.
73504
73505         * sysdeps/sparc/sparc32/sparcv9/fpu/unix/sysv/linux/multiarch/Implies:
73506         New file.
73507
73508         * sysdeps/sparc/fpu/libm-test-ulps: Update.
73509
73510         * sysdeps/sparc/configure.in: New file.
73511         * sysdeps/sparc/configure: Generate.
73512         * configure.in (libc_cv_sparc_as_vis3): Substitute.
73513         * configure: Regenerate.
73514         * config.h.in (HAVE_AS_VIS3_SUPPORT): New.
73515         * config.make.in (have-as-vis3): New.
73516         * sysdeps/sparc/sparc32/sparcv9/Makefile (ASFLAGS-*): If VIS3 is
73517         available use -Av9d instead of -Av9a.
73518         * sysdeps/sparc/sparc64/Makefile: Likewise.
73519         * sysdeps/sparc/sparc32/sparcv9/fpu/multiarch/Makefile: New file.
73520         * sysdeps/sparc/sparc32/sparcv9/fpu/multiarch/s_copysign-vis3.S:
73521         New file.
73522         * sysdeps/sparc/sparc32/sparcv9/fpu/multiarch/s_copysign.S: New
73523         file.
73524         * sysdeps/sparc/sparc32/sparcv9/fpu/multiarch/s_copysignf-vis3.S:
73525         New file.
73526         * sysdeps/sparc/sparc32/sparcv9/fpu/multiarch/s_copysignf.S: New
73527         file.
73528         * sysdeps/sparc/sparc64/fpu/multiarch/Makefile: New file.
73529         * sysdeps/sparc/sparc64/fpu/multiarch/s_signbit-vis3.S: New file.
73530         * sysdeps/sparc/sparc64/fpu/multiarch/s_signbit.S: New file.
73531         * sysdeps/sparc/sparc64/fpu/multiarch/s_signbitf-vis3.S: New file.
73532         * sysdeps/sparc/sparc64/fpu/multiarch/s_signbitf.S: New file.
73533
73534         * sysdeps/sparc/sparc64/fpu/s_copysign.S (__copysign): Use
73535         fzeros/fnegs to load 0x80000000 into a float register instead of
73536         using the stack.
73537         * sysdeps/sparc/sparc64/fpu/s_copysignf.S (__copysignf): Likewise.
73538
73539 2012-03-14  Joseph Myers  <joseph@codesourcery.com>
73540
73541         * sysdeps/unix/sysv/linux/Makefile (sysdep_headers): Add
73542         bits/syscall.h.
73543         ($(objpfx)syscall-%.h): Rename rule to $(objpfx)bits/syscall%h.
73544         ($(objpfx)syscall-%.d): Rename rule to $(objpfx)bits/syscall%d.
73545         ($(inst_includedir)/bits/syscall.h): Remove rule.
73546         ($(objpfx)bits/syscall.d): Include instead of
73547         $(objpfx)syscall-list.d.
73548         (generated): Change syscall-list.h and syscall-list.d to
73549         bits/syscall.h and bits/syscall.d.
73550
73551 2012-03-14  Roland McGrath  <roland@hack.frob.com>
73552
73553         [BZ #13846]
73554         * manual/llio.texi (Memory-mapped I/O): Fix wrong function name.
73555
73556 2012-03-14  Joseph Myers  <joseph@codesourcery.com>
73557
73558         [BZ #13841]
73559         * math/s_csqrt.c: Include <float.h>.
73560         (__csqrt): Scale large or subnormal inputs.
73561         * math/s_csqrtf.c: Likewise.
73562         * math/s_csqrtl.c: Likewise.
73563         * math/libm-test.inc (csqrt_test): Add more tests.
73564         * sysdeps/i386/fpu/libm-test-ulps: Update.
73565         * sysdeps/x86_64/fpu/libm-test-ulps: Likewise.
73566
73567         [BZ #13840]
73568         * math/libm-test.inc (hypot_test): Add more tests.
73569
73570 2012-03-13  David S. Miller  <davem@davemloft.net>
73571
73572         [BZ #13840]
73573         * sysdeps/ieee754/flt-32/e_hypotf.c (__ieee754_hypotf): Rewrite to use
73574         double-precision for the calculation instead of scaling.
73575
73576 2012-03-13  Joseph Myers  <joseph@codesourcery.com>
73577
73578         * sysdeps/ieee754/dbl-64/s_nearbyint.c (__nearbyint): Do not
73579         manipulate bits before adding and subtracting TWO52[sx].
73580         * sysdeps/ieee754/dbl-64/s_rint.c (__rint): Likewise.
73581         * sysdeps/ieee754/dbl-64/wordsize-64/s_nearbyint.c (__nearbyint):
73582         Likewise.
73583         * sysdeps/ieee754/dbl-64/wordsize-64/s_rint.c (__rint): Likewise.
73584
73585 2012-03-13  David S. Miller  <davem@davemloft.net>
73586
73587         * sysdeps/sparc/Makefile: Remove rtld-global-offsets.sym handling.
73588         * sysdeps/sparc/elf/rtld-global-offsets.sym: Delete.
73589         * sysdeps/sparc/sparc64/multiarch/memcpy.S: Don't include
73590         rtld-global-offsets.h
73591         * sysdeps/sparc/sparc64/multiarch/memset.S: Likewise.
73592
73593         * sysdeps/ieee754/ldbl-128/s_expm1l.c (__expm1l): Use expl for
73594         large parameters.
73595
73596         * sysdeps/unix/sysv/linux/sparc/sparc64/dl-fxstatat64.c: New file.
73597
73598         * sysdeps/unix/sysv/linux/openat.c (OPENAT_NOT_CANCEL): Declare syscall
73599         'err' in the ifdef scope in which it is actually used.
73600
73601         * nss/nss_db/db-init.c: Include string.h
73602
73603 2012-03-12  David S. Miller  <davem@davemloft.net>
73604
73605         * sysdeps/generic/dl-osinfo.h (_dl_setup_stack_chk_guard): Fix
73606         masking out of the most significant byte of random value used.
73607         * sysdeps/unix/sysv/linux/dl-osinfo.h (_dl_setup_stack_chk_guard):
73608         Fix coding style in previous change.
73609
73610         * sysdeps/unix/sysv/linux/kernel-features.h
73611         (__ASSUME_CLONE_THREAD_FLAGS): Set on sparc when 2.5.64 and later.
73612         (__ASSUME_TGKILL): Set on sparc when 2.6.1 and later, simplify
73613         expression.
73614         (__ASSUME_FADVISE64_64_SYSCALL): Set on sparc when 2.6.1 and
73615         later.
73616
73617 2012-03-11  David S. Miller  <davem@davemloft.net>
73618
73619         * sysdeps/unix/sysv/linux/sparc/sparc64/makecontext.c
73620         (__makecontext): Fix signedness of pointer casts setting up 'sp'.
73621         * sysdeps/unix/sysv/linux/sparc/sysdep.h (INLINE_SYSCALL) Use 'long'
73622         for 'resultvar' otherwise things get truncated on 64-bit.
73623
73624         * sysdeps/unix/sysv/linux/dl-osinfo.h (_dl_setup_stack_chk_guard):
73625         Fix masking out of the most significant byte of random value used.
73626
73627         * sysdeps/sparc/fpu/libm-test-ulps: Update.
73628
73629 2012-03-10  Andreas Schwab  <schwab@linux-m68k.org>
73630
73631         * sysdeps/powerpc/fpu/libm-test-ulps: Update.
73632
73633 2012-03-09  David S. Miller  <davem@davemloft.net>
73634
73635         * sysdeps/sparc/sparc32/dl-machine.h (elf_machine_rela): Protect local
73636         variables with appropriate CPP guards.
73637         * sysdeps/sparc/sparc32/dl-trampoline.S: Propagate the stack_ptr
73638         from the frame pointer, not the stack pointer.  Correct layout
73639         comments.  Fix test on resulting framesize and the management of
73640         the outregs buffer for pltexit.  Preserve floating point return
73641         values across _dl_call_pltexit call.
73642         * sysdeps/sparc/sparc64/dl-trampoline.S: Fix test on resulting
73643         framesize and the management of the outregs buffer for pltexit.
73644         Preserve floating point return values across _dl_call_pltexit
73645         call.
73646         * elf/sotruss-lib.c (la_sparc32_gnu_pltenter)
73647         (la_sparc64_gnu_pltenter, la_sparc32_gnu_pltexit)
73648         (la_sparc64_gnu_pltexit): New functions.
73649         (print_exit): Fix format string for return register value.
73650
73651 2012-03-10  Joseph Myers  <joseph@codesourcery.com>
73652
73653         * sunrpc/Makefile (others): Add rpcgen.
73654         ($(objpfx)rpcgen): Remove special build rule and dependency on
73655         libc.
73656         * sunrpc/rpcgen.c: New file.
73657
73658 2012-03-09  Paul Eggert  <eggert@cs.ucla.edu>
73659
73660         [BZ #13673]
73661         * posix/bug-regex33.c: Replace FSF snail mail address with URL.
73662         * stdio-common/bug-vfprintf-nargs.c: Likewise.
73663         * sysdeps/i386/crti.S: Likewise.
73664         * sysdeps/i386/crtn.S: Likewise.
73665         * sysdeps/powerpc/powerpc32/crti.S: Likewise.
73666         * sysdeps/powerpc/powerpc32/crtn.S: Likewise.
73667         * sysdeps/powerpc/powerpc64/crti.S: Likewise.
73668         * sysdeps/powerpc/powerpc64/crtn.S: Likewise.
73669         * sysdeps/sh/crti.S: Likewise.
73670         * sysdeps/sh/crtn.S: Likewise.
73671         * sysdeps/x86_64/fpu/e_expf.S: Likewise.
73672
73673         [BZ #13673]
73674         * locale/programs/charmap-kw.gperf: Replace FSF snail mail address
73675         with URL.
73676         * locale/programs/locfile-kw.gperf: Likewise.
73677         * locale/programs/charmap-kw.h: Regenerated.
73678         * locale/programs/locfile-kw.h: Likewise.
73679
73680         [BZ #13673]
73681         * intl/plural.y: Replace FSF snail mail address with URL.
73682         * intl/plural.c: Regenerated.
73683
73684 2012-03-09  Richard Henderson  <rth@twiddle.net>
73685
73686         * include/math_private.h: Remove file.
73687         * math/math_private.h: Move file ...
73688         * sysdeps/generic/math_private.h: ... here.
73689
73690         * sysdeps/i386/fpu/math_private.h: Use include_next for math_private.h.
73691         * sysdeps/powerpc/fpu/math_private.h: Likewise.
73692         * sysdeps/x86_64/fpu/math_private.h: Likewise.
73693
73694         * sysdeps/i386/fpu/s_fpclassifyl.c: Use <> to include both <math.h>
73695         and <math_private.h>.
73696         * sysdeps/i386/fpu/s_isinfl.c: Likewise.
73697         * sysdeps/i386/fpu/s_isnanl.c: Likewise.
73698         * sysdeps/i386/fpu/s_nextafterl.c: Likewise.
73699         * sysdeps/i386/fpu/s_nexttoward.c: Likewise.
73700         * sysdeps/i386/fpu/s_nexttowardf.c: Likewise.
73701         * sysdeps/ieee754/dbl-64/branred.c: Likewise.
73702         * sysdeps/ieee754/dbl-64/doasin.c: Likewise.
73703         * sysdeps/ieee754/dbl-64/dosincos.c: Likewise.
73704         * sysdeps/ieee754/dbl-64/e_acosh.c: Likewise.
73705         * sysdeps/ieee754/dbl-64/e_asin.c: Likewise.
73706         * sysdeps/ieee754/dbl-64/e_atan2.c: Likewise.
73707         * sysdeps/ieee754/dbl-64/e_atanh.c: Likewise.
73708         * sysdeps/ieee754/dbl-64/e_cosh.c: Likewise.
73709         * sysdeps/ieee754/dbl-64/e_exp.c: Likewise.
73710         * sysdeps/ieee754/dbl-64/e_fmod.c: Likewise.
73711         * sysdeps/ieee754/dbl-64/e_hypot.c: Likewise.
73712         * sysdeps/ieee754/dbl-64/e_j0.c: Likewise.
73713         * sysdeps/ieee754/dbl-64/e_j1.c: Likewise.
73714         * sysdeps/ieee754/dbl-64/e_jn.c: Likewise.
73715         * sysdeps/ieee754/dbl-64/e_lgamma_r.c: Likewise.
73716         * sysdeps/ieee754/dbl-64/e_log.c: Likewise.
73717         * sysdeps/ieee754/dbl-64/e_log10.c: Likewise.
73718         * sysdeps/ieee754/dbl-64/e_log2.c: Likewise.
73719         * sysdeps/ieee754/dbl-64/e_pow.c: Likewise.
73720         * sysdeps/ieee754/dbl-64/e_rem_pio2.c: Likewise.
73721         * sysdeps/ieee754/dbl-64/e_remainder.c: Likewise.
73722         * sysdeps/ieee754/dbl-64/e_sinh.c: Likewise.
73723         * sysdeps/ieee754/dbl-64/e_sqrt.c: Likewise.
73724         * sysdeps/ieee754/dbl-64/halfulp.c: Likewise.
73725         * sysdeps/ieee754/dbl-64/k_rem_pio2.c: Likewise.
73726         * sysdeps/ieee754/dbl-64/s_asinh.c: Likewise.
73727         * sysdeps/ieee754/dbl-64/s_atan.c: Likewise.
73728         * sysdeps/ieee754/dbl-64/s_cbrt.c: Likewise.
73729         * sysdeps/ieee754/dbl-64/s_ceil.c: Likewise.
73730         * sysdeps/ieee754/dbl-64/s_copysign.c: Likewise.
73731         * sysdeps/ieee754/dbl-64/s_erf.c: Likewise.
73732         * sysdeps/ieee754/dbl-64/s_expm1.c: Likewise.
73733         * sysdeps/ieee754/dbl-64/s_fabs.c: Likewise.
73734         * sysdeps/ieee754/dbl-64/s_finite.c: Likewise.
73735         * sysdeps/ieee754/dbl-64/s_floor.c: Likewise.
73736         * sysdeps/ieee754/dbl-64/s_fpclassify.c: Likewise.
73737         * sysdeps/ieee754/dbl-64/s_frexp.c: Likewise.
73738         * sysdeps/ieee754/dbl-64/s_ilogb.c: Likewise.
73739         * sysdeps/ieee754/dbl-64/s_isinf.c: Likewise.
73740         * sysdeps/ieee754/dbl-64/s_isinf_ns.c: Likewise.
73741         * sysdeps/ieee754/dbl-64/s_isnan.c: Likewise.
73742         * sysdeps/ieee754/dbl-64/s_llrint.c: Likewise.
73743         * sysdeps/ieee754/dbl-64/s_llround.c: Likewise.
73744         * sysdeps/ieee754/dbl-64/s_log1p.c: Likewise.
73745         * sysdeps/ieee754/dbl-64/s_logb.c: Likewise.
73746         * sysdeps/ieee754/dbl-64/s_lrint.c: Likewise.
73747         * sysdeps/ieee754/dbl-64/s_lround.c: Likewise.
73748         * sysdeps/ieee754/dbl-64/s_modf.c: Likewise.
73749         * sysdeps/ieee754/dbl-64/s_nearbyint.c: Likewise.
73750         * sysdeps/ieee754/dbl-64/s_remquo.c: Likewise.
73751         * sysdeps/ieee754/dbl-64/s_rint.c: Likewise.
73752         * sysdeps/ieee754/dbl-64/s_round.c: Likewise.
73753         * sysdeps/ieee754/dbl-64/s_scalbln.c: Likewise.
73754         * sysdeps/ieee754/dbl-64/s_scalbn.c: Likewise.
73755         * sysdeps/ieee754/dbl-64/s_signbit.c: Likewise.
73756         * sysdeps/ieee754/dbl-64/s_sin.c: Likewise.
73757         * sysdeps/ieee754/dbl-64/s_sincos.c: Likewise.
73758         * sysdeps/ieee754/dbl-64/s_tan.c: Likewise.
73759         * sysdeps/ieee754/dbl-64/s_tanh.c: Likewise.
73760         * sysdeps/ieee754/dbl-64/s_trunc.c: Likewise.
73761         * sysdeps/ieee754/dbl-64/sincos32.c: Likewise.
73762         * sysdeps/ieee754/dbl-64/slowexp.c: Likewise.
73763         * sysdeps/ieee754/dbl-64/slowpow.c: Likewise.
73764         * sysdeps/ieee754/dbl-64/wordsize-64/e_acosh.c: Likewise.
73765         * sysdeps/ieee754/dbl-64/wordsize-64/e_cosh.c: Likewise.
73766         * sysdeps/ieee754/dbl-64/wordsize-64/e_fmod.c: Likewise.
73767         * sysdeps/ieee754/dbl-64/wordsize-64/s_ceil.c: Likewise.
73768         * sysdeps/ieee754/dbl-64/wordsize-64/s_finite.c: Likewise.
73769         * sysdeps/ieee754/dbl-64/wordsize-64/s_floor.c: Likewise.
73770         * sysdeps/ieee754/dbl-64/wordsize-64/s_frexp.c: Likewise.
73771         * sysdeps/ieee754/dbl-64/wordsize-64/s_isinf.c: Likewise.
73772         * sysdeps/ieee754/dbl-64/wordsize-64/s_isinf_ns.c: Likewise.
73773         * sysdeps/ieee754/dbl-64/wordsize-64/s_isnan.c: Likewise.
73774         * sysdeps/ieee754/dbl-64/wordsize-64/s_logb.c: Likewise.
73775         * sysdeps/ieee754/dbl-64/wordsize-64/s_lround.c: Likewise.
73776         * sysdeps/ieee754/dbl-64/wordsize-64/s_modf.c: Likewise.
73777         * sysdeps/ieee754/dbl-64/wordsize-64/s_nearbyint.c: Likewise.
73778         * sysdeps/ieee754/dbl-64/wordsize-64/s_remquo.c: Likewise.
73779         * sysdeps/ieee754/dbl-64/wordsize-64/s_rint.c: Likewise.
73780         * sysdeps/ieee754/dbl-64/wordsize-64/s_round.c: Likewise.
73781         * sysdeps/ieee754/dbl-64/wordsize-64/s_scalbln.c: Likewise.
73782         * sysdeps/ieee754/dbl-64/wordsize-64/s_scalbn.c: Likewise.
73783         * sysdeps/ieee754/dbl-64/wordsize-64/s_trunc.c: Likewise.
73784         * sysdeps/ieee754/flt-32/e_acosf.c: Likewise.
73785         * sysdeps/ieee754/flt-32/e_acoshf.c: Likewise.
73786         * sysdeps/ieee754/flt-32/e_asinf.c: Likewise.
73787         * sysdeps/ieee754/flt-32/e_atan2f.c: Likewise.
73788         * sysdeps/ieee754/flt-32/e_atanhf.c: Likewise.
73789         * sysdeps/ieee754/flt-32/e_coshf.c: Likewise.
73790         * sysdeps/ieee754/flt-32/e_fmodf.c: Likewise.
73791         * sysdeps/ieee754/flt-32/e_hypotf.c: Likewise.
73792         * sysdeps/ieee754/flt-32/e_j0f.c: Likewise.
73793         * sysdeps/ieee754/flt-32/e_j1f.c: Likewise.
73794         * sysdeps/ieee754/flt-32/e_jnf.c: Likewise.
73795         * sysdeps/ieee754/flt-32/e_lgammaf_r.c: Likewise.
73796         * sysdeps/ieee754/flt-32/e_log10f.c: Likewise.
73797         * sysdeps/ieee754/flt-32/e_log2f.c: Likewise.
73798         * sysdeps/ieee754/flt-32/e_logf.c: Likewise.
73799         * sysdeps/ieee754/flt-32/e_powf.c: Likewise.
73800         * sysdeps/ieee754/flt-32/e_rem_pio2f.c: Likewise.
73801         * sysdeps/ieee754/flt-32/e_remainderf.c: Likewise.
73802         * sysdeps/ieee754/flt-32/e_sinhf.c: Likewise.
73803         * sysdeps/ieee754/flt-32/e_sqrtf.c: Likewise.
73804         * sysdeps/ieee754/flt-32/k_cosf.c: Likewise.
73805         * sysdeps/ieee754/flt-32/k_rem_pio2f.c: Likewise.
73806         * sysdeps/ieee754/flt-32/k_sinf.c: Likewise.
73807         * sysdeps/ieee754/flt-32/k_tanf.c: Likewise.
73808         * sysdeps/ieee754/flt-32/s_asinhf.c: Likewise.
73809         * sysdeps/ieee754/flt-32/s_atanf.c: Likewise.
73810         * sysdeps/ieee754/flt-32/s_cbrtf.c: Likewise.
73811         * sysdeps/ieee754/flt-32/s_ceilf.c: Likewise.
73812         * sysdeps/ieee754/flt-32/s_copysignf.c: Likewise.
73813         * sysdeps/ieee754/flt-32/s_cosf.c: Likewise.
73814         * sysdeps/ieee754/flt-32/s_erff.c: Likewise.
73815         * sysdeps/ieee754/flt-32/s_expm1f.c: Likewise.
73816         * sysdeps/ieee754/flt-32/s_fabsf.c: Likewise.
73817         * sysdeps/ieee754/flt-32/s_finitef.c: Likewise.
73818         * sysdeps/ieee754/flt-32/s_floorf.c: Likewise.
73819         * sysdeps/ieee754/flt-32/s_fpclassifyf.c: Likewise.
73820         * sysdeps/ieee754/flt-32/s_frexpf.c: Likewise.
73821         * sysdeps/ieee754/flt-32/s_ilogbf.c: Likewise.
73822         * sysdeps/ieee754/flt-32/s_isinf_nsf.c: Likewise.
73823         * sysdeps/ieee754/flt-32/s_isinff.c: Likewise.
73824         * sysdeps/ieee754/flt-32/s_isnanf.c: Likewise.
73825         * sysdeps/ieee754/flt-32/s_llrintf.c: Likewise.
73826         * sysdeps/ieee754/flt-32/s_llroundf.c: Likewise.
73827         * sysdeps/ieee754/flt-32/s_log1pf.c: Likewise.
73828         * sysdeps/ieee754/flt-32/s_logbf.c: Likewise.
73829         * sysdeps/ieee754/flt-32/s_lrintf.c: Likewise.
73830         * sysdeps/ieee754/flt-32/s_lroundf.c: Likewise.
73831         * sysdeps/ieee754/flt-32/s_modff.c: Likewise.
73832         * sysdeps/ieee754/flt-32/s_nearbyintf.c: Likewise.
73833         * sysdeps/ieee754/flt-32/s_nextafterf.c: Likewise.
73834         * sysdeps/ieee754/flt-32/s_remquof.c: Likewise.
73835         * sysdeps/ieee754/flt-32/s_rintf.c: Likewise.
73836         * sysdeps/ieee754/flt-32/s_roundf.c: Likewise.
73837         * sysdeps/ieee754/flt-32/s_scalblnf.c: Likewise.
73838         * sysdeps/ieee754/flt-32/s_scalbnf.c: Likewise.
73839         * sysdeps/ieee754/flt-32/s_signbitf.c: Likewise.
73840         * sysdeps/ieee754/flt-32/s_sincosf.c: Likewise.
73841         * sysdeps/ieee754/flt-32/s_sinf.c: Likewise.
73842         * sysdeps/ieee754/flt-32/s_tanf.c: Likewise.
73843         * sysdeps/ieee754/flt-32/s_tanhf.c: Likewise.
73844         * sysdeps/ieee754/flt-32/s_truncf.c: Likewise.
73845         * sysdeps/ieee754/k_standard.c: Likewise.
73846         * sysdeps/ieee754/ldbl-128/e_acoshl.c: Likewise.
73847         * sysdeps/ieee754/ldbl-128/e_acosl.c: Likewise.
73848         * sysdeps/ieee754/ldbl-128/e_asinl.c: Likewise.
73849         * sysdeps/ieee754/ldbl-128/e_atan2l.c: Likewise.
73850         * sysdeps/ieee754/ldbl-128/e_atanhl.c: Likewise.
73851         * sysdeps/ieee754/ldbl-128/e_coshl.c: Likewise.
73852         * sysdeps/ieee754/ldbl-128/e_fmodl.c: Likewise.
73853         * sysdeps/ieee754/ldbl-128/e_hypotl.c: Likewise.
73854         * sysdeps/ieee754/ldbl-128/e_j0l.c: Likewise.
73855         * sysdeps/ieee754/ldbl-128/e_j1l.c: Likewise.
73856         * sysdeps/ieee754/ldbl-128/e_jnl.c: Likewise.
73857         * sysdeps/ieee754/ldbl-128/e_lgammal_r.c: Likewise.
73858         * sysdeps/ieee754/ldbl-128/e_log10l.c: Likewise.
73859         * sysdeps/ieee754/ldbl-128/e_log2l.c: Likewise.
73860         * sysdeps/ieee754/ldbl-128/e_logl.c: Likewise.
73861         * sysdeps/ieee754/ldbl-128/e_powl.c: Likewise.
73862         * sysdeps/ieee754/ldbl-128/e_rem_pio2l.c: Likewise.
73863         * sysdeps/ieee754/ldbl-128/e_remainderl.c: Likewise.
73864         * sysdeps/ieee754/ldbl-128/e_sinhl.c: Likewise.
73865         * sysdeps/ieee754/ldbl-128/k_cosl.c: Likewise.
73866         * sysdeps/ieee754/ldbl-128/k_sincosl.c: Likewise.
73867         * sysdeps/ieee754/ldbl-128/k_sinl.c: Likewise.
73868         * sysdeps/ieee754/ldbl-128/k_tanl.c: Likewise.
73869         * sysdeps/ieee754/ldbl-128/s_asinhl.c: Likewise.
73870         * sysdeps/ieee754/ldbl-128/s_atanl.c: Likewise.
73871         * sysdeps/ieee754/ldbl-128/s_cbrtl.c: Likewise.
73872         * sysdeps/ieee754/ldbl-128/s_ceill.c: Likewise.
73873         * sysdeps/ieee754/ldbl-128/s_copysignl.c: Likewise.
73874         * sysdeps/ieee754/ldbl-128/s_cosl.c: Likewise.
73875         * sysdeps/ieee754/ldbl-128/s_erfl.c: Likewise.
73876         * sysdeps/ieee754/ldbl-128/s_expm1l.c: Likewise.
73877         * sysdeps/ieee754/ldbl-128/s_fabsl.c: Likewise.
73878         * sysdeps/ieee754/ldbl-128/s_finitel.c: Likewise.
73879         * sysdeps/ieee754/ldbl-128/s_floorl.c: Likewise.
73880         * sysdeps/ieee754/ldbl-128/s_fpclassifyl.c: Likewise.
73881         * sysdeps/ieee754/ldbl-128/s_frexpl.c: Likewise.
73882         * sysdeps/ieee754/ldbl-128/s_ilogbl.c: Likewise.
73883         * sysdeps/ieee754/ldbl-128/s_isinf_nsl.c: Likewise.
73884         * sysdeps/ieee754/ldbl-128/s_isinfl.c: Likewise.
73885         * sysdeps/ieee754/ldbl-128/s_isnanl.c: Likewise.
73886         * sysdeps/ieee754/ldbl-128/s_llrintl.c: Likewise.
73887         * sysdeps/ieee754/ldbl-128/s_llroundl.c: Likewise.
73888         * sysdeps/ieee754/ldbl-128/s_log1pl.c: Likewise.
73889         * sysdeps/ieee754/ldbl-128/s_logbl.c: Likewise.
73890         * sysdeps/ieee754/ldbl-128/s_lrintl.c: Likewise.
73891         * sysdeps/ieee754/ldbl-128/s_lroundl.c: Likewise.
73892         * sysdeps/ieee754/ldbl-128/s_modfl.c: Likewise.
73893         * sysdeps/ieee754/ldbl-128/s_nearbyintl.c: Likewise.
73894         * sysdeps/ieee754/ldbl-128/s_nextafterl.c: Likewise.
73895         * sysdeps/ieee754/ldbl-128/s_nexttoward.c: Likewise.
73896         * sysdeps/ieee754/ldbl-128/s_nexttowardf.c: Likewise.
73897         * sysdeps/ieee754/ldbl-128/s_remquol.c: Likewise.
73898         * sysdeps/ieee754/ldbl-128/s_rintl.c: Likewise.
73899         * sysdeps/ieee754/ldbl-128/s_roundl.c: Likewise.
73900         * sysdeps/ieee754/ldbl-128/s_scalblnl.c: Likewise.
73901         * sysdeps/ieee754/ldbl-128/s_scalbnl.c: Likewise.
73902         * sysdeps/ieee754/ldbl-128/s_signbitl.c: Likewise.
73903         * sysdeps/ieee754/ldbl-128/s_sincosl.c: Likewise.
73904         * sysdeps/ieee754/ldbl-128/s_sinl.c: Likewise.
73905         * sysdeps/ieee754/ldbl-128/s_tanhl.c: Likewise.
73906         * sysdeps/ieee754/ldbl-128/s_tanl.c: Likewise.
73907         * sysdeps/ieee754/ldbl-128/s_truncl.c: Likewise.
73908         * sysdeps/ieee754/ldbl-128/w_expl.c: Likewise.
73909         * sysdeps/ieee754/ldbl-128ibm/e_acoshl.c: Likewise.
73910         * sysdeps/ieee754/ldbl-128ibm/e_acosl.c: Likewise.
73911         * sysdeps/ieee754/ldbl-128ibm/e_asinl.c: Likewise.
73912         * sysdeps/ieee754/ldbl-128ibm/e_atan2l.c: Likewise.
73913         * sysdeps/ieee754/ldbl-128ibm/e_atanhl.c: Likewise.
73914         * sysdeps/ieee754/ldbl-128ibm/e_coshl.c: Likewise.
73915         * sysdeps/ieee754/ldbl-128ibm/e_fmodl.c: Likewise.
73916         * sysdeps/ieee754/ldbl-128ibm/e_hypotl.c: Likewise.
73917         * sysdeps/ieee754/ldbl-128ibm/e_jnl.c: Likewise.
73918         * sysdeps/ieee754/ldbl-128ibm/e_log10l.c: Likewise.
73919         * sysdeps/ieee754/ldbl-128ibm/e_log2l.c: Likewise.
73920         * sysdeps/ieee754/ldbl-128ibm/e_logl.c: Likewise.
73921         * sysdeps/ieee754/ldbl-128ibm/e_powl.c: Likewise.
73922         * sysdeps/ieee754/ldbl-128ibm/e_rem_pio2l.c: Likewise.
73923         * sysdeps/ieee754/ldbl-128ibm/e_remainderl.c: Likewise.
73924         * sysdeps/ieee754/ldbl-128ibm/e_sinhl.c: Likewise.
73925         * sysdeps/ieee754/ldbl-128ibm/k_cosl.c: Likewise.
73926         * sysdeps/ieee754/ldbl-128ibm/k_sincosl.c: Likewise.
73927         * sysdeps/ieee754/ldbl-128ibm/k_sinl.c: Likewise.
73928         * sysdeps/ieee754/ldbl-128ibm/k_tanl.c: Likewise.
73929         * sysdeps/ieee754/ldbl-128ibm/s_asinhl.c: Likewise.
73930         * sysdeps/ieee754/ldbl-128ibm/s_atanl.c: Likewise.
73931         * sysdeps/ieee754/ldbl-128ibm/s_copysignl.c: Likewise.
73932         * sysdeps/ieee754/ldbl-128ibm/s_cosl.c: Likewise.
73933         * sysdeps/ieee754/ldbl-128ibm/s_ctanhl.c: Likewise.
73934         * sysdeps/ieee754/ldbl-128ibm/s_ctanl.c: Likewise.
73935         * sysdeps/ieee754/ldbl-128ibm/s_erfl.c: Likewise.
73936         * sysdeps/ieee754/ldbl-128ibm/s_expm1l.c: Likewise.
73937         * sysdeps/ieee754/ldbl-128ibm/s_fabsl.c: Likewise.
73938         * sysdeps/ieee754/ldbl-128ibm/s_finitel.c: Likewise.
73939         * sysdeps/ieee754/ldbl-128ibm/s_fpclassifyl.c: Likewise.
73940         * sysdeps/ieee754/ldbl-128ibm/s_frexpl.c: Likewise.
73941         * sysdeps/ieee754/ldbl-128ibm/s_ilogbl.c: Likewise.
73942         * sysdeps/ieee754/ldbl-128ibm/s_isinf_nsl.c: Likewise.
73943         * sysdeps/ieee754/ldbl-128ibm/s_isinfl.c: Likewise.
73944         * sysdeps/ieee754/ldbl-128ibm/s_isnanl.c: Likewise.
73945         * sysdeps/ieee754/ldbl-128ibm/s_log1pl.c: Likewise.
73946         * sysdeps/ieee754/ldbl-128ibm/s_logbl.c: Likewise.
73947         * sysdeps/ieee754/ldbl-128ibm/s_modfl.c: Likewise.
73948         * sysdeps/ieee754/ldbl-128ibm/s_nexttoward.c: Likewise.
73949         * sysdeps/ieee754/ldbl-128ibm/s_nexttowardf.c: Likewise.
73950         * sysdeps/ieee754/ldbl-128ibm/s_remquol.c: Likewise.
73951         * sysdeps/ieee754/ldbl-128ibm/s_scalblnl.c: Likewise.
73952         * sysdeps/ieee754/ldbl-128ibm/s_scalbnl.c: Likewise.
73953         * sysdeps/ieee754/ldbl-128ibm/s_signbitl.c: Likewise.
73954         * sysdeps/ieee754/ldbl-128ibm/s_sincosl.c: Likewise.
73955         * sysdeps/ieee754/ldbl-128ibm/s_sinl.c: Likewise.
73956         * sysdeps/ieee754/ldbl-128ibm/s_tanhl.c: Likewise.
73957         * sysdeps/ieee754/ldbl-128ibm/s_tanl.c: Likewise.
73958         * sysdeps/ieee754/ldbl-96/e_acoshl.c: Likewise.
73959         * sysdeps/ieee754/ldbl-96/e_asinl.c: Likewise.
73960         * sysdeps/ieee754/ldbl-96/e_atan2l.c: Likewise.
73961         * sysdeps/ieee754/ldbl-96/e_atanhl.c: Likewise.
73962         * sysdeps/ieee754/ldbl-96/e_coshl.c: Likewise.
73963         * sysdeps/ieee754/ldbl-96/e_hypotl.c: Likewise.
73964         * sysdeps/ieee754/ldbl-96/e_j0l.c: Likewise.
73965         * sysdeps/ieee754/ldbl-96/e_j1l.c: Likewise.
73966         * sysdeps/ieee754/ldbl-96/e_jnl.c: Likewise.
73967         * sysdeps/ieee754/ldbl-96/e_lgammal_r.c: Likewise.
73968         * sysdeps/ieee754/ldbl-96/e_remainderl.c: Likewise.
73969         * sysdeps/ieee754/ldbl-96/e_sinhl.c: Likewise.
73970         * sysdeps/ieee754/ldbl-96/s_asinhl.c: Likewise.
73971         * sysdeps/ieee754/ldbl-96/s_cbrtl.c: Likewise.
73972         * sysdeps/ieee754/ldbl-96/s_ceill.c: Likewise.
73973         * sysdeps/ieee754/ldbl-96/s_copysignl.c: Likewise.
73974         * sysdeps/ieee754/ldbl-96/s_cosl.c: Likewise.
73975         * sysdeps/ieee754/ldbl-96/s_erfl.c: Likewise.
73976         * sysdeps/ieee754/ldbl-96/s_fabsl.c: Likewise.
73977         * sysdeps/ieee754/ldbl-96/s_finitel.c: Likewise.
73978         * sysdeps/ieee754/ldbl-96/s_floorl.c: Likewise.
73979         * sysdeps/ieee754/ldbl-96/s_fpclassifyl.c: Likewise.
73980         * sysdeps/ieee754/ldbl-96/s_frexpl.c: Likewise.
73981         * sysdeps/ieee754/ldbl-96/s_ilogbl.c: Likewise.
73982         * sysdeps/ieee754/ldbl-96/s_isinf_nsl.c: Likewise.
73983         * sysdeps/ieee754/ldbl-96/s_isinfl.c: Likewise.
73984         * sysdeps/ieee754/ldbl-96/s_isnanl.c: Likewise.
73985         * sysdeps/ieee754/ldbl-96/s_llrintl.c: Likewise.
73986         * sysdeps/ieee754/ldbl-96/s_llroundl.c: Likewise.
73987         * sysdeps/ieee754/ldbl-96/s_logbl.c: Likewise.
73988         * sysdeps/ieee754/ldbl-96/s_lrintl.c: Likewise.
73989         * sysdeps/ieee754/ldbl-96/s_lroundl.c: Likewise.
73990         * sysdeps/ieee754/ldbl-96/s_modfl.c: Likewise.
73991         * sysdeps/ieee754/ldbl-96/s_nearbyintl.c: Likewise.
73992         * sysdeps/ieee754/ldbl-96/s_nextafterl.c: Likewise.
73993         * sysdeps/ieee754/ldbl-96/s_nexttoward.c: Likewise.
73994         * sysdeps/ieee754/ldbl-96/s_nexttowardf.c: Likewise.
73995         * sysdeps/ieee754/ldbl-96/s_remquol.c: Likewise.
73996         * sysdeps/ieee754/ldbl-96/s_rintl.c: Likewise.
73997         * sysdeps/ieee754/ldbl-96/s_roundl.c: Likewise.
73998         * sysdeps/ieee754/ldbl-96/s_scalblnl.c: Likewise.
73999         * sysdeps/ieee754/ldbl-96/s_scalbnl.c: Likewise.
74000         * sysdeps/ieee754/ldbl-96/s_signbitl.c: Likewise.
74001         * sysdeps/ieee754/ldbl-96/s_sincosl.c: Likewise.
74002         * sysdeps/ieee754/ldbl-96/s_sinl.c: Likewise.
74003         * sysdeps/ieee754/ldbl-96/s_tanhl.c: Likewise.
74004         * sysdeps/ieee754/ldbl-96/s_tanl.c: Likewise.
74005         * sysdeps/ieee754/ldbl-96/s_truncl.c: Likewise.
74006         * sysdeps/ieee754/s_lib_version.c: Likewise.
74007         * sysdeps/ieee754/s_matherr.c: Likewise.
74008         * sysdeps/ieee754/s_signgam.c: Likewise.
74009         * sysdeps/powerpc/fpu/e_hypot.c: Likewise.
74010         * sysdeps/powerpc/fpu/e_hypotf.c: Likewise.
74011         * sysdeps/powerpc/fpu/e_rem_pio2f.c: Likewise.
74012         * sysdeps/powerpc/fpu/k_cosf.c: Likewise.
74013         * sysdeps/powerpc/fpu/k_rem_pio2f.c: Likewise.
74014         * sysdeps/powerpc/fpu/k_sinf.c: Likewise.
74015         * sysdeps/powerpc/fpu/s_cosf.c: Likewise.
74016         * sysdeps/powerpc/fpu/s_float_bitwise.h: Likewise.
74017         * sysdeps/powerpc/fpu/s_isnan.c: Likewise.
74018         * sysdeps/powerpc/fpu/s_rint.c: Likewise.
74019         * sysdeps/powerpc/fpu/s_rintf.c: Likewise.
74020         * sysdeps/powerpc/fpu/s_sinf.c: Likewise.
74021         * sysdeps/powerpc/fpu/w_sqrt.c: Likewise.
74022         * sysdeps/powerpc/fpu/w_sqrtf.c: Likewise.
74023         * sysdeps/powerpc/powerpc32/fpu/s_llrintf.c: Likewise.
74024         * sysdeps/powerpc/powerpc32/power4/fpu/slowexp.c: Likewise.
74025         * sysdeps/powerpc/powerpc32/power4/fpu/slowpow.c: Likewise.
74026         * sysdeps/powerpc/powerpc64/power4/fpu/slowexp.c: Likewise.
74027         * sysdeps/powerpc/powerpc64/power4/fpu/slowpow.c: Likewise.
74028         * sysdeps/powerpc/powerpc64/power4/fpu/w_sqrt.c: Likewise.
74029         * sysdeps/powerpc/powerpc64/power4/fpu/w_sqrtf.c: Likewise.
74030
74031 2012-03-09  Joseph Myers  <joseph@codesourcery.com>
74032
74033         * sunrpc/rpc_cout.c: Remove __GNU_LIBRARY__ conditionals.
74034         * sunrpc/rpc_main.c: Likewise.
74035         * sunrpc/rpc_svcout.c: Likewise.
74036
74037 2012-03-09  David S. Miller  <davem@davemloft.net>
74038
74039         * include/math_private.h: New file.
74040
74041 2012-03-09  Joseph Myers  <joseph@codesourcery.com>
74042
74043         * sysdeps/unix/sysv/linux/bits/socket_type.h: New file.
74044         * sysdeps/unix/sysv/linux/sparc/bits/socket_type.h: Likewise.
74045         * sysdeps/unix/sysv/linux/bits/socket.h: Get enum __socket_type
74046         from <bits/socket_type.h>.
74047         (enum __socket_type): Don't define here.
74048         * sysdeps/unix/sysv/linux/sparc/bits/socket.h: Remove.
74049         * sysdeps/unix/sysv/linux/Makefile (sysdep_headers): Add
74050         bits/socket_type.h.
74051
74052         [BZ #13566]
74053         * libio/stdio.h (gets): Always declare for C++ up to C++11 without
74054         checking __USE_GNU.
74055
74056         * Makerules ($(inst_includedir)/%.h): New rule.
74057         * stdio-common/Makefile (headers): Add bits/stdio_lim.h.
74058         (install-others): Remove variable setting.
74059         ($(inst_includedir)/bits/stdio_lim.h): Remove rule.
74060
74061 2012-03-08  Richard Henderson  <rth@twiddle.net>
74062
74063         * sysdeps/powerpc/fpu/math_private.h (__ieee754_sqrt): Convert
74064         from macro to inline function; merge with the
74065         !__LIBC_INTERNAL_MATH_INLINES version.
74066         (__ieee754_sqrtf): Likewise.
74067
74068         * sysdeps/x86_64/fpu/math_private.h (__rint): Convert from macro
74069         to inline function.
74070         (__rintf, __floor, __floorf): Likewise.
74071
74072         * sysdeps/x86_64/fpu/math_private.h (__ieee754_sqrt): Convert from
74073         macro to inline function.
74074         (__ieee754_sqrtf, __ieee754_sqrtl): Likewise.
74075
74076         * sysdeps/ieee754/ldbl-opt/math_ldbl_opt.h: Include <math_private.h>,
74077         not <math/math_private.h>.
74078
74079 2012-03-08  David S. Miller  <davem@davemloft.net>
74080
74081         * sysdeps/unix/sysv/linux/sparc/sparc64/get_clockfreq.c: Update
74082         copyright year.
74083         * sysdeps/unix/sysv/linux/sparc/sysdep.h: Likewise.
74084
74085 2012-03-08  Thomas Schwinge  <thomas@codesourcery.com>
74086
74087         * resolv/gai_misc.c (handle_requests): Fix struct timespec
74088         normalization.
74089         * rt/tst-cpuclock2.c (test_nanosleep): Likewise.
74090         * sysdeps/pthread/aio_misc.c (handle_fildes_io): Likewise.
74091
74092 2012-03-08  Ulrich Drepper  <drepper@gmail.com>
74093
74094         * stdio-common/tst-fphex.c: Various cleanups.  The macros cannot
74095         be defined individually, they must be defined as a block.  Define
74096         S for printing a string instead of hidint the different by using a
74097         macro for adding the 'l'.
74098         * stdio-common/tst-fphex-wide.c: Adjust.
74099
74100 2012-03-07  Marek Polacek  <polacek@redhat.com>
74101
74102         * stdio-common/tst-long-dbl-fphex.c: Fix test for non ldbl-96 targets.
74103
74104 2012-03-08  Marek Polacek  <polacek@redhat.com>
74105
74106         [BZ #13806]
74107         * stdio-common/Makefile (tests): Add tst-fphex-wide.
74108         * stdio-common/tst-fphex.c: Define a few macros to make the
74109         test reusable.  Use them.
74110         * stdio-common/tst-fphex-wide.c: New file.
74111
74112 2012-03-08  Joseph Myers  <joseph@codesourcery.com>
74113
74114         [BZ #6911]
74115         * manual/macros.texi (gnusystems): New macro.
74116         (nongnusystems): Likewise.
74117         (gnulinuxhurdsystems): Likewise.
74118         (gnuhurdsystems): Likewise..
74119         (gnulinuxsystems): Likewise.
74120         * manual/charset.texi: Use new macros or @theglibc{} to refer to
74121         variants of the GNU system, not "GNU system".
74122         * manual/conf.texi: Likewise.
74123         * manual/errno.texi: Likewise.  Update example of errno macro
74124         expansion.
74125         * manual/filesys.texi: Likewise.
74126         (getumask): Document as specific to GNU/Hurd.
74127         * manual/install.texi: Likewise.  Reword some references to
74128         GNU/Linux.
74129         * manual/intro.texi: Likewise.
74130         * manual/io.texi: Likewise.
74131         (File Name Portability): Detail which constraints are inapplicable
74132         to all GNU systems and which are only inapplicable to GNU/Hurd.
74133         * manual/job.texi: Likewise.
74134         * manual/llio.texi: Likewise.
74135         (O_NOCTTY): Document as present on GNU/Linux.
74136         * manual/maint.texi: Likewise.
74137         * manual/memory.texi: Likewise.
74138         * manual/pattern.texi: Likewise.
74139         * manual/pipe.texi: Likewise.
74140         * manual/process.texi: Likewise.
74141         * manual/resource.texi: Likewise.
74142         (RUSAGE_CHILDREN): Remove statement about specifying a particular
74143         child on GNU/Hurd.
74144         * manual/setjmp.texi: Likewise.
74145         * manual/signal.texi: Likewise.
74146         * manual/startup.texi: Likewise.
74147         * manual/stdio.texi: Likewise.
74148         * manual/terminal.texi: Likewise.
74149         (ONLCR): Document as POSIX.
74150         (OXTABS): Document availability on GNU/Linux as XTABS.
74151         (ONOEOT): Document availability separately from other bits.
74152         (VLNEXT, VDISCARD, VSTATUS): Document availability individually.
74153         * manual/time.texi: Likewise.
74154         * manual/users.texi: Likewise.
74155         * INSTALL: Regenerated.
74156         * sysdeps/gnu/errlist.c: Regenerated.
74157
74158         * aclocal.m4 (LIBC_TRY_LINK_STATIC): New macro.
74159         * configure.in (libc_cv_preinit_array): Use LIBC_TRY_LINK_STATIC.
74160         (libc_cv_ctors_header): Likewise.  Use asm ("") instead of calling
74161         puts.
74162         * configure: Regenerated.
74163
74164 2012-03-07  Joseph Myers  <joseph@codesourcery.com>
74165
74166         * sysdeps/i386/configure.in (cpuid.h): Use AC_CHECK_HEADER with no
74167         default includes instead of AC_HEADER_CHECK.
74168         * sysdeps/i386/configure: Regenerated.
74169
74170         [BZ #10716]
74171         * math/s_cacosh.c (__cacosh): Convert negative log results to 0.
74172         * math/s_cacoshf.c (__cacoshf): Likewise.
74173         * math/s_cacoshl.c (__cacoshl): Likewise.
74174         * math/s_casinh.c (__casinh): Set signs of result from argument.
74175         * math/s_casinhf.c (__casinhf): Likewise.
74176         * math/s_casinhl.c (__casinhl): Likewise.
74177         * math/libm-test.inc (cacos_test, cacosh_test, casin_test)
74178         (casinh_test): Add more tests.
74179         * sysdeps/i386/fpu/libm-test-ulps: Update.
74180         * sysdeps/x86_64/fpu/libm-test-ulps: Likewise.
74181
74182 2012-03-07  Ulrich Drepper  <drepper@gmail.com>
74183
74184         * po/zh_TW.po: Update from translation team.
74185
74186         * login/Makefile (distribute): Remove variable.
74187         * catgets/Makefile: Likewise.
74188         * mach/Makefile: Likewise.
74189         * malloc/Makefile: Likewise.
74190         * misc/Makefile: Likewise.
74191         * iconv/Makefile: Likewise.
74192         * nscd/Makefile: Likewise.
74193         * hurd/Makefile: Likewise.
74194         * manual/Makefile: Likewise.
74195         * locale/Makefile: Likewise.
74196         * intl/Makefile: Likewise.
74197         * conform/Makefile: Likewise.
74198         * nss/Makefile: Likewise.
74199         * time/Makefile: Likewise.
74200         * soft-fp/Makefile: Likewise.
74201         * dirent/Makefile: Likewise.
74202         * gmon/Makefile: Likewise.
74203         * po/Makefile: Likewise.
74204         * rt/Makefile: Likewise.
74205         * socket/Makefile: Likewise.
74206         * math/Makefile: Likewise.
74207         * signal/Makefile: Likewise.
74208         * debug/Makefile: Likewise.
74209         * elf/Makefile: Likewise.
74210         * timezone/Makefile: Likewise.
74211         * stdlib/Makefile: Likewise.
74212         * iconvdata/Makefile: Likewise.
74213         * sunrpc/Makefile: Likewise.
74214         * io/Makefile: Likewise.
74215         * argp/Makefile: Likewise.
74216         * inet/Makefile: Likewise.
74217         * hesiod/Makefile: Likewise.
74218         * grp/Makefile: Likewise.
74219         * csu/Makefile: Likewise.
74220         * wctype/Makefile: Likewise.
74221         * crypt/Makefile: Likewise.
74222         * libio/Makefile: Likewise.
74223         * string/Makefile: Likewise.
74224         * nis/Makefile: Likewise.
74225         * resolv/Makefile: Likewise.
74226         * stdio-common/Makefile: Likewise.
74227         * wcsmbs/Makefile: Likewise.
74228         * dlfcn/Makefile: Likewise.
74229         * posix/Makefile: Likewise.
74230
74231         [BZ #6959]
74232         * timezone/Makefile: Don't install timezone files, just the programs
74233         and scripts.
74234
74235 2012-03-06  Ulrich Drepper  <drepper@gmail.com>
74236
74237         * nss/databases.def: Add missing gshadow entry.
74238
74239         * stdio-common/vfprintf.c: Fix formatting.  Missing copyright update.
74240
74241 2012-03-06  Marek Polacek  <polacek@redhat.com>
74242
74243         [BZ #13726]
74244         * sysdeps/ieee754/ldbl-96/printf_fphex.c: Adjust position of wnumstr.
74245         * sysdeps/x86_64/fpu/printf_fphex.c: Likewise.
74246         * stdio-common/Makefile (tests): Add tst-long-dbl-fphex.
74247         * stdio-common/tst-long-dbl-fphex.c: New file.
74248
74249 2012-03-06  David S. Miller  <davem@davemloft.net>
74250
74251         * sysdeps/unix/sysv/linux/sparc/sparc64/get_clockfreq.c
74252         (set_obp_int): New function.
74253         (get_obp_int): New function.
74254         (__get_clockfreq_via_dev_openprom): Likewise.
74255         * sysdeps/unix/sysv/linux/sparc/sysdep.h (INTERNAL_SYSCALL_ERROR_P):
74256         Avoid unused variable warnings on 'val' and use builtin_expect.
74257         (INLINE_SYSCALL): Don't wrap INTERNAL_SYSCALL_ERROR_P with
74258         __builtin_expect.
74259         (INLINE_CLONE_SYSCALL): Likewise.
74260
74261 2012-03-05  David S. Miller  <davem@davemloft.net>
74262
74263         * sysdeps/sparc/fpu/libm-test-ulps: Update.
74264
74265 2012-03-05  Andreas Schwab  <schwab@linux-m68k.org>
74266
74267         * sysdeps/powerpc/fpu/libm-test-ulps: Update.
74268
74269         * sysdeps/ieee754/ldbl-128ibm/e_coshl.c: Drop exp(-x) term
74270         only for |x| >= 40.
74271         * sysdeps/ieee754/ldbl-128ibm/e_sinhl.c: Likewise.
74272
74273 2012-03-05  H.J. Lu  <hongjiu.lu@intel.com>
74274
74275         * sysdeps/unix/sysv/linux/x86_64/gettimeofday.c (gettimeofday_ifunc):
74276         Replace gettimeofday with __vdso_gettimeofday.
74277
74278         * sysdeps/unix/sysv/linux/x86_64/init-first.c
74279         (_libc_vdso_platform_setup): Replace clock_gettime and getcpu with
74280         __vdso_clock_gettime and __vdso_getcpu.
74281
74282         * sysdeps/unix/sysv/linux/x86_64/time.c (time_ifunc): Replace
74283         time with __vdso_time.
74284
74285 2012-03-05  Joseph Myers  <joseph@codesourcery.com>
74286
74287         * manual/lang.texi (size_t): Note types to which size_t may be
74288         equivalent with the GNU C Library, but do not describe when
74289         differences between them are significant.
74290
74291 2012-03-05  Andreas Jaeger  <aj@suse.de>
74292
74293         * sysdeps/i386/fpu/libm-test-ulps: Update.
74294
74295 2012-03-05  Joseph Myers  <joseph@codesourcery.com>
74296
74297         [BZ #3976]
74298         * sysdeps/ieee754/dbl-64/e_pow.c: Include <fenv.h>.
74299         (__ieee754_pow): Save and restore rounding mode and use
74300         round-to-nearest for main computations.
74301         * math/libm-test.inc (pow_test_tonearest): New function.
74302         (pow_test_towardzero): Likewise.
74303         (pow_test_downward): Likewise.
74304         (pow_test_upward): Likewise.
74305         (main): Call the new functions.
74306         * sysdeps/i386/fpu/libm-test-ulps: Update.
74307         * sysdeps/x86_64/fpu/libm-test-ulps: Likewise.
74308
74309         [BZ #3976]
74310         * math/libm-test.inc (cosh_test_tonearest): New function.
74311         (cosh_test_towardzero): Likewise.
74312         (cosh_test_downward): Likewise.
74313         (cosh_test_upward): Likewise.
74314         (sinh_test_tonearest): Likewise.
74315         (sinh_test_towardzero): Likewise.
74316         (sinh_test_downward): Likewise.
74317         (sinh_test_upward): Likewise.
74318         (main): Call the new functions.
74319         * sysdeps/i386/fpu/libm-test-ulps: Update.
74320         * sysdeps/x86_64/fpu/libm-test-ulps: Likewise.
74321
74322 2012-03-05  Tom de Vries  <tom@codesourcery.com>
74323
74324         * sysdeps/generic/dl-osinfo.h (_dl_setup_stack_chk_guard): Ensure
74325         default stack guard is set in last bytes.
74326         * sysdeps/unix/sysv/linux/dl-osinfo.h (_dl_setup_stack_chk_guard): Same.
74327
74328 2012-03-05  Kees Cook  <keescook@chromium.org>
74329
74330         * stdio-common/vfprintf.c (vfprintf): add missing errno settings.
74331
74332         [BZ #13656]
74333         * stdio-common/vfprintf.c (vfprintf): Check for nargs overflow and
74334         possibly allocate from heap instead of stack.
74335         * stdio-common/bug-vfprintf-nargs.c: New file.
74336         * stdio-common/Makefile (tests): Add nargs overflow test.
74337
74338 2012-03-03  Andreas Schwab  <schwab@linux-m68k.org>
74339
74340         * sysdeps/powerpc/fpu/libm-test-ulps: Update.
74341
74342 2012-03-03  Marek Polacek  <polacek@redhat.com>
74343
74344         * include/sys/cdefs.h: Remove __GNUC_PREREQ macro.
74345         * math/math_private.h: Likewise.
74346         * stdlib/tst-strtod.c: Likewise.
74347         * sysdeps/i386/i486/bits/atomic.h: Likewise.
74348         * sysdeps/x86_64/bits/atomic.h: Likewise.
74349
74350 2012-03-02  David S. Miller  <davem@davemloft.net>
74351
74352         * sysdeps/sparc/sparc32/sparcv9/fpu/s_llrint.S: New file.
74353         * sysdeps/sparc/sparc32/sparcv9/fpu/s_llrintf.S: New file.
74354         * sysdeps/sparc/sparc32/sparcv9/fpu/s_lrint.S: New file.
74355         * sysdeps/sparc/sparc32/sparcv9/fpu/s_lrintf.S: New file.
74356         * sysdeps/sparc/sparc64/fpu/s_llrint.S: New file.
74357         * sysdeps/sparc/sparc64/fpu/s_llrintf.S: New file.
74358         * sysdeps/sparc/sparc64/fpu/s_lrint.S: New file.
74359         * sysdeps/sparc/sparc64/fpu/s_lrintf.S: New file.
74360
74361 2012-03-02  Roland McGrath  <roland@hack.frob.com>
74362
74363         [BZ #13792]
74364         * manual/examples/README: New file, says the example source files
74365         can be used under GPL>=2.
74366         * manual/Makefile (%.c.texi): Eat the leading part of the file until a
74367         line containing just "*/".
74368         * manual/examples/add.c: Add copyright header (GPL>=2).
74369         * manual/examples/argp-ex1.c: Likewise.
74370         * manual/examples/argp-ex2.c: Likewise.
74371         * manual/examples/argp-ex3.c: Likewise.
74372         * manual/examples/argp-ex4.c: Likewise.
74373         * manual/examples/atexit.c: Likewise.
74374         * manual/examples/db.c: Likewise.
74375         * manual/examples/dir.c: Likewise.
74376         * manual/examples/dir2.c: Likewise.
74377         * manual/examples/execinfo.c: Likewise.
74378         * manual/examples/filecli.c: Likewise.
74379         * manual/examples/filesrv.c: Likewise.
74380         * manual/examples/fmtmsgexpl.c: Likewise.
74381         * manual/examples/genpass.c: Likewise.
74382         * manual/examples/inetcli.c: Likewise.
74383         * manual/examples/inetsrv.c: Likewise.
74384         * manual/examples/isockad.c: Likewise.
74385         * manual/examples/longopt.c: Likewise.
74386         * manual/examples/memopen.c: Likewise.
74387         * manual/examples/memstrm.c: Likewise.
74388         * manual/examples/mkfsock.c: Likewise.
74389         * manual/examples/mkisock.c: Likewise.
74390         * manual/examples/mygetpass.c: Likewise.
74391         * manual/examples/pipe.c: Likewise.
74392         * manual/examples/popen.c: Likewise.
74393         * manual/examples/rprintf.c: Likewise.
74394         * manual/examples/search.c: Likewise.
74395         * manual/examples/select.c: Likewise.
74396         * manual/examples/setjmp.c: Likewise.
74397         * manual/examples/sigh1.c: Likewise.
74398         * manual/examples/sigusr.c: Likewise.
74399         * manual/examples/stpcpy.c: Likewise.
74400         * manual/examples/strdupa.c: Likewise.
74401         * manual/examples/strftim.c: Likewise.
74402         * manual/examples/strncat.c: Likewise.
74403         * manual/examples/subopt.c: Likewise.
74404         * manual/examples/swapcontext.c: Likewise.
74405         * manual/examples/termios.c: Likewise.
74406         * manual/examples/testopt.c: Likewise.
74407         * manual/examples/testpass.c: Likewise.
74408         * manual/examples/timeval_subtract.c: Likewise.
74409
74410         [BZ #13792]
74411         * manual/time.texi (Elapsed Time): Move timeval_subtract example
74412         function to ...
74413         * manual/timeval_subtract.c.texi: ... here, new file.
74414
74415 2012-03-02  David S. Miller  <davem@davemloft.net>
74416
74417         * sysdeps/sparc/fpu/libm-test-ulps: Update for recently added tests.
74418
74419 2012-03-02  Joseph Myers  <joseph@codesourcery.com>
74420
74421         [BZ #3976]
74422         * sysdeps/ieee754/dbl-64/s_sin.c: Include <fenv.h>
74423         (__sin): Save and restore rounding mode and use round-to-nearest
74424         for all computations.
74425         (__cos): Save and restore rounding mode and use round-to-nearest
74426         for all computations.
74427         * sysdeps/ieee754/dbl-64/s_tan.c: Include "math_private.h" and
74428         <fenv.h>.
74429         (tan): Save and restore rounding mode and use round-to-nearest for
74430         all computations.
74431         * math/libm-test.inc (cos_test_tonearest): New function.
74432         (cos_test_towardzero): Likewise.
74433         (cos_test_downward): Likewise.
74434         (cos_test_upward): Likewise.
74435         (sin_test_tonearest): Likewise.
74436         (sin_test_towardzero): Likewise.
74437         (sin_test_downward): Likewise.
74438         (sin_test_upward): Likewise.
74439         (tan_test_tonearest): Likewise.
74440         (tan_test_towardzero): Likewise.
74441         (tan_test_downward): Likewise.
74442         (tan_test_upward): Likewise.
74443         (main): Call the new functions.
74444         * sysdeps/i386/fpu/libm-test-ulps: Update.
74445         * sysdeps/x86_64/fpu/libm-test-ulps: Likewise.
74446
74447         [BZ #10135]
74448         * sysdeps/ieee754/dbl-64/s_scalbln.c (__scalbln): First test for
74449         small n, then large n, before computing and testing k+n.
74450         * sysdeps/ieee754/dbl-64/s_scalbn.c (__scalbn): Likewise.
74451         * sysdeps/ieee754/dbl-64/wordsize-64/s_scalbln.c (__scalbln):
74452         Likewise.
74453         * sysdeps/ieee754/dbl-64/wordsize-64/s_scalbn.c (__scalbn):
74454         Likewise.
74455         * sysdeps/ieee754/flt-32/s_scalblnf.c (__scalblnf): Likewise.
74456         * sysdeps/ieee754/flt-32/s_scalbnf.c (__scalbnf): Likewise.
74457         * sysdeps/ieee754/ldbl-128/s_scalblnl.c (__scalblnl): Likewise.
74458         * sysdeps/ieee754/ldbl-128/s_scalbnl.c (__scalbnl): Likewise.
74459         * sysdeps/ieee754/ldbl-128ibm/s_scalblnl.c (__scalblnl): Likewise.
74460         * sysdeps/ieee754/ldbl-128ibm/s_scalbnl.c (__scalbnl): Likewise.
74461         * sysdeps/ieee754/ldbl-96/s_scalblnl.c (__scalblnl): Likewise.
74462         * sysdeps/ieee754/ldbl-96/s_scalbnl.c (__scalbnl): Likewise.
74463         * math/libm-test.inc (scalbn_test): Add more tests.
74464         (scalbln_test): Likewise.
74465
74466         * manual/filesys.texi (mode_t): Describe constraints on size and
74467         signedness, not exact equivalence to a particular type.
74468         (ino_t): Likewise.
74469         (ino64_t): Likewise.
74470         (dev_t): Likewise.
74471         (nlink_t): Likewise.
74472         (blkcnt_t): Likewise.
74473         (blkcnt64_t): Likewise.
74474         * manual/llio.texi (off_t): Likewise.
74475
74476         [BZ #3976]
74477         * sysdeps/ieee754/dbl-64/e_exp.c: Include <fenv.h>.
74478         (__ieee754_exp): Save and restore rounding mode and use
74479         round-to-nearest for all computations.
74480         * math/libm-test.inc (exp_test_tonearest): New function.
74481         (exp_test_towardzero): Likewise.
74482         (exp_test_downward): Likewise.
74483         (exp_test_upward): Likewise.
74484         (main): Call the new functions.
74485         * sysdeps/i386/fpu/libm-test-ulps: Update.
74486         * sysdeps/x86_64/fpu/libm-test-ulps: Likewise.
74487
74488 2012-03-01  Chris Demetriou  <cgd@google.com>
74489
74490         * sysdeps/gnu/errlist-compat.awk: Don't depend on AWK internals to
74491         have predictable order.
74492
74493 2012-03-01  David S. Miller  <davem@davemloft.net>
74494
74495         * sysdeps/unix/sysv/linux/sparc/sparc32/getpagesize.c: Delete.
74496
74497         * sysdeps/sparc/sparc64/fpu/s_finite.S: New file.
74498         * sysdeps/sparc/sparc64/fpu/s_finitef.S: New file.
74499         * sysdeps/sparc/sparc64/fpu/s_isinf.S: New file.
74500         * sysdeps/sparc/sparc64/fpu/s_isinff.S: New file.
74501
74502         * sysdeps/sparc/sparc32/fpu/s_signbit.S: New file.
74503         * sysdeps/sparc/sparc32/fpu/s_signbitf.S: New file.
74504         * sysdeps/sparc/sparc32/fpu/s_signbitl.S: New file.
74505         * sysdeps/sparc/sparc32/sparcv9/fpu/s_isnan.S: New file.
74506         * sysdeps/sparc/sparc64/fpu/s_isnan.S: New file.
74507         * sysdeps/sparc/sparc64/fpu/s_isnanf.S: New file.
74508         * sysdeps/sparc/sparc64/fpu/s_signbit.S: New file.
74509         * sysdeps/sparc/sparc64/fpu/s_signbitf.S: New file.
74510         * sysdeps/sparc/sparc64/fpu/s_signbitl.S: New file.
74511
74512         * sysdeps/sparc/fpu/libm-test-ulps: Update.
74513
74514         * sysdeps/sparc/sparc32/fpu/libm-test-ulps: Move...
74515         * sysdeps/sparc/fpu/libm-test-ulps: to here.
74516         * sysdeps/sparc/sparc64/fpu/libm-test-ulps: Delete.
74517
74518         * sysdeps/sparc/crti.S: Remove HAVE_BINUTILS_GOTDATA checks.
74519         * sysdeps/sparc/sparc32/dl-machine.h: Likewise.
74520         * sysdeps/sparc/sparc32/elf/start.S: Likewise.
74521         * sysdeps/sparc/sparc32/fpu/w_sqrt.S: Likewise.
74522         * sysdeps/sparc/sparc32/fpu/w_sqrtf.S: Likewise.
74523         * sysdeps/sparc/sparc32/sparcv9/fpu/w_sqrt.S: Likewise.
74524         * sysdeps/sparc/sparc32/sparcv9/fpu/w_sqrtf.S: Likewise.
74525         * sysdeps/sparc/sparc64/dl-machine.h: Likewise.
74526         * sysdeps/sparc/sparc64/elf/start.S: Likewise.
74527         * sysdeps/sparc/sparc64/fpu/w_sqrt.S: Likewise.
74528         * sysdeps/sparc/sparc64/fpu/w_sqrtf.S: Likewise.
74529         * sysdeps/unix/sysv/linux/sparc/sparc32/____longjmp_chk.S: Likewise.
74530         * sysdeps/unix/sysv/linux/sparc/sparc32/sysdep.h: Likewise.
74531         * sysdeps/unix/sysv/linux/sparc/sparc64/____longjmp_chk.S: Likewise.
74532         * sysdeps/unix/sysv/linux/sparc/sparc64/brk.S: Likewise.
74533         * sysdeps/unix/sysv/linux/sparc/sparc64/sysdep.h: Likewise.
74534         * config.h.in (HAVE_BINUTILS_GOTDATA): Delete.
74535         * sysdeps/sparc/elf/configure.in: Remove binutils GOTDATA checks.
74536         * sysdeps/sparc/elf/configure: Regenerated.
74537
74538 2012-03-01  Joseph Myers  <joseph@codesourcery.com>
74539
74540         * configure.in (AS, LD): Require binutils 2.20 or later.
74541         * configure: Regenerated.
74542         * manual/install.texi (Tools for Compilation): Give binutils 2.20
74543         as required minimum version.
74544         * INSTALL: Regenerated.
74545
74546         [BZ #2541]
74547         [BZ #4108]
74548         * sysdeps/ieee754/flt-32/s_erff.c (__erfcf): Mask out one more bit
74549         before squaring exponent.
74550         * sysdeps/ieee754/ldbl-128ibm/s_erfl.c (__erfcl): Mask out whole
74551         bottom long double and 27 bits of top long double before squaring
74552         exponent.
74553         * math/libm-test.inc (erfc_test): Add more tests.
74554         * sysdeps/i386/fpu/libm-test-ulps: Update.
74555         * sysdeps/powerpc/fpu/libm-test-ulps: Likewise.
74556         * sysdeps/x86_64/fpu/libm-test-ulps: Likewise.
74557
74558 2012-03-01  Kai Tietz  <ktietz@redhat.com>
74559
74560         * soft-fp/soft-fp.h (_FP_STRUCT_LAYOUT): New macro.
74561         * soft-fp/quad.h (_FP_UNION_Q): Use _FP_STRUCT_LAYOUT on struct
74562         containing bit-fields.
74563         * soft-fp/extended.h (_FP_UNION_E): Likewise.
74564         * soft-fp/single.h (_FP_UNION_S): Likewise.
74565         * soft-fp/double.h (_FP_UNION_D): Likewise.
74566
74567 2012-02-29  Joseph Myers  <joseph@codesourcery.com>
74568
74569         [BZ #13786]
74570         * sysdeps/i386/i686/multiarch/strcmp.S [USE_AS_STRCASECMP_L]: Do
74571         not include ../strcmp.S.
74572         [USE_AS_STRNCASECMP_L]: Likewise.
74573         * sysdeps/i386/i686/multiarch/strcasecmp_l-c.c
74574         (__strcasecmp_l_ia32): Define as alias to __strcasecmp_l_nonascii.
74575         * sysdeps/i386/i686/multiarch/strncase_l-c.c
74576         (__strncasecmp_l_ia32): Define as alias to
74577         __strncasecmp_l_nonascii.
74578
74579         [BZ #5794]
74580         * math/libm-test.inc (expm1_test): Add test for bug 5794.
74581         * sysdeps/i386/fpu/libm-test-ulps: Update.
74582         * sysdeps/x86_64/fpu/libm-test-ulps: Likewise.
74583
74584         * sysdeps/i386/fpu/libm-test-ulps: Reduce some expected errors.
74585         * sysdeps/x86_64/fpu/libm-test-ulps: Likewise.
74586
74587 2012-02-29  Jeff Law  <law@redhat.com>
74588
74589         * resolv/res_query.c (__libc_res_nquerydomain): Avoid
74590         out of bounds read.
74591
74592 2012-02-29  Marek Polacek  <polacek@redhat.com>
74593
74594         [BZ #13706]
74595         * elf/rtld.c (dl_main): Always set l_used to 1 for vDSO.
74596         * elf/Makefile: Add rules to run tst-unused-dep.out.
74597
74598 2012-02-28  David S. Miller  <davem@davemloft.net>
74599
74600         * sysdeps/sparc/sparc32/fpu/w_sqrt.S: New file.
74601         * sysdeps/sparc/sparc32/fpu/w_sqrtf.S: New file.
74602         * sysdeps/sparc/sparc32/sparcv9/fpu/w_sqrt.S: New file.
74603         * sysdeps/sparc/sparc32/sparcv9/fpu/w_sqrtf.S: New file.
74604         * sysdeps/sparc/sparc64/fpu/w_sqrt.S: New file.
74605         * sysdeps/sparc/sparc64/fpu/w_sqrtf.S: New file.
74606
74607 2012-02-29  Joseph Myers  <joseph@codesourcery.com>
74608
74609         * math/libm-test.inc (llround_test): Move one test from
74610         lround_test.  Use TEST_f_L in moved test.
74611         (lround_test): Move misplaced test to llround_test.  Add testcase
74612         from bug 2561.
74613
74614 2012-02-28  Ulrich Drepper  <drepper@gmail.com>
74615
74616         * sysdeps/x86_64/fpu/e_expf.S: New file.
74617         Contributed by Dmitrieva Liubov <liubov.dmitrieva@gmail.com>.
74618
74619 2012-02-28  Stanislav Brabec  <sbrabec@suse.cz>
74620
74621         [BZ #13637]
74622         * posix/regex_internal.c (re_string_skip_chars): Fix miscomputation
74623         of remain_len that may cause incomplete multi-byte character and
74624         false match.
74625         * posix/bug-regex33.c: New file.
74626         * posix/Makefile (tests): Add bug-regex33.
74627
74628 2012-02-28  Joseph Myers  <joseph@codesourcery.com>
74629
74630         * manual/macros.texi: New file.
74631         * Makefile (INSTALL, NOTES): Depend on manual/macros.texi.
74632         * manual/libc.texinfo: Include macros.texi.
74633         * manual/creatute.texi: Likewise.
74634         * manual/install.texi: Likewise.
74635         * manual/arith.texi: Use macros @Theglibc{}, @theglibc{} and
74636         @glibcadj{} in references to the GNU C Library.
74637         * manual/charset.texi: Likewise.
74638         * manual/conf.texi: Likewise.
74639         * manual/contrib.texi: Likewise.  Consistently use "GNU C Library"
74640         when not using those macros.
74641         * manual/creature.texi: Likewise.
74642         * manual/crypt.texi: Likewise.
74643         * manual/errno.texi: Likewise.
74644         * manual/filesys.texi: Likewise.
74645         * manual/header.texi: Likewise.
74646         * manual/install.texi: Likewise.
74647         * manual/intro.texi: Likewise.
74648         * manual/io.texi: Likewise.
74649         * manual/job.texi: Likewise.
74650         * manual/lang.texi: Likewise.
74651         * manual/libc.texiinfo: Likewise.
74652         * manual/llio.texi: Likewise.
74653         * manual/locale.texi: Likewise.
74654         * manual/maint.texi: Likewise.
74655         * manual/math.texi: Likewise.
74656         * manual/memory.texi: Likewise.
74657         * manual/message.texi: Likewise.
74658         * manual/nss.texi: Likewise.
74659         * manual/pattern.texi: Likewise.
74660         * manual/process.texi: Likewise.
74661         * manual/resource.texi: Likewise.
74662         * manual/search.texi: Likewise.
74663         * manual/setjmp.texi: Likewise.
74664         * manual/signal.texi: Likewise.
74665         * manual/socket.texi: Likewise.
74666         * manual/startup.texi: Likewise.
74667         * manual/stdio.texi: Likewise.
74668         * manual/string.texi: Likewise.
74669         * manual/sysinfo.texi: Likewise.
74670         * manual/syslog.texi: Likewise.
74671         * manual/terminal.texi: Likewise.
74672         * manual/time.texi: Likewise.
74673         * manual/users.texi: Likewise.
74674         * INSTALL: Regenerated.
74675         * NOTES: Regenerated.
74676         * sysdeps/gnu/errlist.c: Regenerated.
74677
74678 2012-02-28  Andreas Schwab  <schwab@linux-m68k.org>
74679
74680         * include/dirent.h: Include <dirstream.h> before
74681         <dirent/dirent.h>.
74682
74683 2012-02-28  David S. Miller  <davem@davemloft.net>
74684
74685         * sysdeps/sparc/sparc32/fpu/s_copysign.S: New file.
74686         * sysdeps/sparc/sparc32/fpu/s_copysignf.S: New file.
74687         * sysdeps/sparc/sparc64/fpu/s_copysign.S: New file.
74688         * sysdeps/sparc/sparc64/fpu/s_copysignf.S: New file.
74689
74690 2012-02-27  David S. Miller  <davem@davemloft.net>
74691
74692         * sysdeps/sparc/sparc32/sparcv9/fpu/s_floor.S: New file.
74693         * sysdeps/sparc/sparc32/sparcv9/fpu/s_floorf.S: New file.
74694         * sysdeps/sparc/sparc64/fpu/s_floor.S: New file.
74695         * sysdeps/sparc/sparc64/fpu/s_floorf.S: New file.
74696
74697         * sysdeps/sparc/sparc32/sparcv9/fpu/s_ceil.S: Fix accidental use of
74698         frame pointer instead of stack pointer relative arg slot.
74699         * sysdeps/sparc/sparc32/sparcv9/fpu/s_ceilf.S: Likewise.
74700         * sysdeps/sparc/sparc64/fpu/s_ceil.S: Likewise.
74701         * sysdeps/sparc/sparc64/fpu/s_ceilf.S: Likewise.
74702
74703 2012-02-27  Carlos O'Donell  <carlos_odonell@mentor.com>
74704
74705         [BZ #3992]
74706         * stdlib/fmtmsg.c: Use of uint32_t requires stdint.h.
74707
74708 2012-02-27  David S. Miller  <davem@davemloft.net>
74709
74710         * sysdeps/sparc/sparc32/sparcv9/fpu/s_ceil.S: Fix comment formatting.
74711         * sysdeps/sparc/sparc32/sparcv9/fpu/s_ceilf.S: Likewise.
74712         * sysdeps/sparc/sparc32/sparcv9/fpu/s_rint.S: Likewise.
74713         * sysdeps/sparc/sparc32/sparcv9/fpu/s_rintf.S: Likewise.
74714         * sysdeps/sparc/sparc64/fpu/s_ceil.S: Likewise.
74715         * sysdeps/sparc/sparc64/fpu/s_ceilf.S: Likewise.
74716         * sysdeps/sparc/sparc64/fpu/s_rint.S: Likewise.
74717         * sysdeps/sparc/sparc64/fpu/s_rintf.S: Likewise.
74718
74719 2012-02-27  Joseph Myers  <joseph@codesourcery.com>
74720
74721         * configure.in (CC): Restrict allowed GCC versions to 4.3 and
74722         later.  Allow versions 5-9.
74723         * configure: Regenerated.
74724         * manual/install.texi (Tools for Compilation): Give GCC 4.3 as
74725         required minimum version and 4.6 as recommended version.  Do not
74726         mention bugs in GCC 2.7 and 2.8.
74727         * INSTALL: Regenerated.
74728
74729 2012-02-27  David S. Miller  <davem@davemloft.net>
74730
74731         * sysdeps/sparc/sparc32/sparcv9/fpu/s_ceil.S: New file.
74732         * sysdeps/sparc/sparc32/sparcv9/fpu/s_ceilf.S: New file.
74733         * sysdeps/sparc/sparc32/sparcv9/fpu/s_rint.S: New file.
74734         * sysdeps/sparc/sparc32/sparcv9/fpu/s_rintf.S: New file.
74735         * sysdeps/sparc/sparc64/fpu/s_ceil.S: New file.
74736         * sysdeps/sparc/sparc64/fpu/s_ceilf.S: New file.
74737         * sysdeps/sparc/sparc64/fpu/s_rint.S: New file.
74738         * sysdeps/sparc/sparc64/fpu/s_rintf.S: New file.
74739
74740         * sysdeps/ieee754/ldbl-128/s_nearbyintl.c (__nearbyintl): Do not
74741         manipulate bits before adding and subtracting TWO112[sx].
74742         * sysdeps/ieee754/ldbl-128/s_rintl.c (__rintl): Likewise.
74743
74744 2012-02-27  Roland McGrath  <roland@hack.frob.com>
74745
74746         [BZ #13775]
74747         * libio/bits/stdio-ldbl.h (vdprintf, dprintf): Put these under
74748         [__USE_XOPEN2K8] rather than [__USE_GNU], to match the stdio.h decls.
74749         * libio/stdio.h (vdprintf, dprintf): Remove comment about these not
74750         being in POSIX, because they are in 1003.1-2008.
74751
74752         * rt/tst-aio.c: Include <fcntl.h>.
74753         * rt/tst-aio7.c: Likewise.
74754         * rt/tst-aio64.c: Likewise.
74755
74756         * stdio-common/tst-fmemopen.c (main): Remove spurious const.
74757
74758 2012-02-27  Joseph Myers  <joseph@codesourcery.com>
74759
74760         * manual/install.texi (--with-headers): Describe headers as
74761         interface headers, not private headers.
74762         (Specific advice for GNU/Linux systems): Describe use of headers
74763         from "make headers_install", not private headers from older
74764         kernels.
74765         * INSTALL: Regenerated.
74766         * sysdeps/unix/sysv/linux/configure.in (LIBC_LINUX_VERSION):
74767         Change to 2.6.19.
74768         * sysdeps/unix/sysv/linux/configure: Regenerated.
74769
74770         * manual/llio.texi (fclean): Remove documentation.
74771
74772         * manual/Makefile (libc-texi-generated): New variable.  Include
74773         version.texi.
74774         (libc.dvi, libc.pdf, libc.info, libc/index.html): Depend on
74775         $(libc-texi-generated), not duplicated list of files.
74776         (version.texi, stamp-version): New rules.
74777         (realclean): Remove $(libc-texi-generated), not individual files
74778         from that list.  Do not remove dir-add.texinfo.
74779         * manual/libc.texinfo: Comment out uses of edition numbers and
74780         references to printed manual.  Remove last-updated dates.
74781         (EDITION): Comment out.
74782         (ISBN): Likewise.
74783         (VERSION, UPDATED): Remove.
74784         (version.texi): Include.
74785
74786 2012-02-27  Andreas Schwab  <schwab@linux-m68k.org>
74787
74788         * sysdeps/posix/spawni.c: Include <signal.h>.
74789         * sysdeps/pthread/aio_cancel.c: Include <fcntl.h>.
74790         * sysdeps/pthread/aio_fsync.c: Likewise.
74791
74792 2012-02-26  Ulrich Drepper  <drepper@gmail.com>
74793
74794         * conform/Makefile (tests): Run only when not cross-compiling and
74795         when fast-check is not defined.
74796
74797         * conform/conformtest.pl: XPG7 and POSIX2008 require C99.
74798         * conform/data/limits.h-data: Fixes for POSIX2008.
74799         * conform/run-conformtest.sh: Run all tests.
74800         * include/arpa/inet.h: Changes to allow conformtest.pl to use the
74801         headers.
74802         * include/bits/dlfcn.h: Likewise.
74803         * include/langinfo.h: Likewise.
74804         * include/monetary.h: Likewise.
74805         * include/sys/poll.h: Likewise.
74806
74807         * io/fcntl.h: Define AT_NO_AUTOMOUNT and AT_EMPTY_PATH only
74808         for __USE_GNU.
74809         * posix/spawn.h: Define __need_sigset_t.
74810         * posix/sys/wait.h: Don't include <sys/resource.h>, define id_t here.
74811         * posix/unistd.h: Declare ctermid only for XPG before XPG6.
74812         * rt/aio.h: Don't include fcntl.h and signal.h.  Use bits/siginfo.h
74813         to get sigevent_t only.
74814         * sysdeps/unix/sysv/linux/bits/socket.h: Declare sendmmsg and recvmmsg
74815         only for __USE_GNU.
74816         * sysdeps/unix/sysv/linux/sparc/bits/socket.h: Likewise.
74817         * sysdeps/unix/sysv/linux/bits/uio.h: Declare process_vm_readv and
74818         process_vm_writev only for __USE_GNU.
74819         * termios/termios.h: Declare tcgetsid also for POSIX2008.
74820
74821         * conform/Makefile: For now ignore errors from run-conformtest.
74822         * conform/conformtest.pl: Simplify code.  Add -ansi to CFLAGS for
74823         POSIX to avoid namespace pollution.  Don't prepend headers.
74824         * conform/data/aio.h-data: Fixes for POSIX testing.
74825         * conform/data/fcntl.h-data: Likewise.
74826         * conform/data/glob.h-data: Likewise.
74827         * conform/data/grp.h-data: Likewise.
74828         * conform/data/pthread.h-data: Likewise.
74829         * conform/data/pwd.h-data: Likewise.
74830         * conform/data/signal.h-data: Likewise.
74831         * conform/data/spawn.h-data: Likewise.
74832         * conform/data/stdio.h-data: Likewise.
74833         * conform/data/stdlib.h-data: Likewise.
74834         * conform/data/stropts.h-data: Likewise.
74835         * conform/data/sys/mman.h-data: Likewise.
74836         * conform/data/sys/stat.h-data: Likewise.
74837         * conform/data/sys/types.h-data: Likewise.
74838         * conform/data/sys/wait.h-data: Likewise.
74839         * conform/data/time.h-data: Likewise.
74840         * conform/data/unistd.h-data: Likewise.
74841         * conform/data/utime.h-data: Likewise.
74842
74843         * io/sys/stat.h: fchmod was always in POSIX.
74844         * posix/sys/wait.h: Include <sys/resource.h> only for waitid.
74845         * posix/unistd.h: fsync and ftruncate were in early POSIX as well.
74846         * rt/aio.h: Define __need_timespec before including <time.h>.
74847         * sysdeps/unix/sysv/linux/bits/siginfo.h: Don't name siginfo_t
74848         struct.  Add forward declaration of pthread_attr_t and use it in
74849         sigevent.
74850         * sysdeps/unix/sysv/linux/s390/bits/siginfo.h: Likewise.
74851         * sysdeps/unix/sysv/linux/sparc/bits/siginfo.h: Likewise.
74852         * sysdeps/unix/sysv/linux/bits/time.h: Don't let __STRICT_ANSI__
74853         always remove CLK_TCK definition.
74854
74855 2012-02-26  Andreas Schwab  <schwab@linux-m68k.org>
74856
74857         * sysdeps/ieee754/dbl-64/k_tan.c: Replace with empty file.
74858
74859 2012-02-25  Ulrich Drepper  <drepper@gmail.com>
74860
74861         * conform/run-conformtest.sh: New file.
74862         * conform/Makefile: Run run-conformtest for tests.
74863         * conform/conformtest.pl: Many bug fixes.  Add ISO C99, ISO C11
74864         support.
74865
74866         * conform/data/uchar.h-data: New file.
74867         * conform/data/aio.h-data: Fixes for ISO C and POSIX 1995 testing.
74868         * conform/data/arpa/inet.h-data: Likewise.
74869         * conform/data/assert.h-data: Likewise.
74870         * conform/data/complex.h-data: Likewise.
74871         * conform/data/cpio.h-data: Likewise.
74872         * conform/data/ctype.h-data: Likewise.
74873         * conform/data/dirent.h-data: Likewise.
74874         * conform/data/dlfcn.h-data: Likewise.
74875         * conform/data/errno.h-data: Likewise.
74876         * conform/data/fcntl.h-data: Likewise.
74877         * conform/data/float.h-data: Likewise.
74878         * conform/data/fmtmsg.h-data: Likewise.
74879         * conform/data/fnmatch.h-data: Likewise.
74880         * conform/data/ftw.h-data: Likewise.
74881         * conform/data/glob.h-data: Likewise.
74882         * conform/data/grp.h-data: Likewise.
74883         * conform/data/iconv.h-data: Likewise.
74884         * conform/data/inttypes.h-data: Likewise.
74885         * conform/data/langinfo.h-data: Likewise.
74886         * conform/data/libgen.h-data: Likewise.
74887         * conform/data/limits.h-data: Likewise.
74888         * conform/data/locale.h-data: Likewise.
74889         * conform/data/math.h-data: Likewise.
74890         * conform/data/monetary.h-data: Likewise.
74891         * conform/data/mqueue.h-data: Likewise.
74892         * conform/data/ndbm.h-data: Likewise.
74893         * conform/data/net/if.h-data: Likewise.
74894         * conform/data/netdb.h-data: Likewise.
74895         * conform/data/netinet/in.h-data: Likewise.
74896         * conform/data/nl_types.h-data: Likewise.
74897         * conform/data/poll.h-data: Likewise.
74898         * conform/data/pthread.h-data: Likewise.
74899         * conform/data/pwd.h-data: Likewise.
74900         * conform/data/regex.h-data: Likewise.
74901         * conform/data/sched.h-data: Likewise.
74902         * conform/data/search.h-data: Likewise.
74903         * conform/data/semaphore.h-data: Likewise.
74904         * conform/data/setjmp.h-data: Likewise.
74905         * conform/data/signal.h-data: Likewise.
74906         * conform/data/spawn.h-data: Likewise.
74907         * conform/data/stdarg.h-data: Likewise.
74908         * conform/data/stdio.h-data: Likewise.
74909         * conform/data/stdlib.h-data: Likewise.
74910         * conform/data/string.h-data: Likewise.
74911         * conform/data/strings.h-data: Likewise.
74912         * conform/data/stropts.h-data: Likewise.
74913         * conform/data/sys/ipc.h-data: Likewise.
74914         * conform/data/sys/mman.h-data: Likewise.
74915         * conform/data/sys/msg.h-data: Likewise.
74916         * conform/data/sys/resource.h-data: Likewise.
74917         * conform/data/sys/select.h-data: Likewise.
74918         * conform/data/sys/sem.h-data: Likewise.
74919         * conform/data/sys/shm.h-data: Likewise.
74920         * conform/data/sys/socket.h-data: Likewise.
74921         * conform/data/sys/stat.h-data: Likewise.
74922         * conform/data/sys/statvfs.h-data: Likewise.
74923         * conform/data/sys/time.h-data: Likewise.
74924         * conform/data/sys/timeb.h-data: Likewise.
74925         * conform/data/sys/times.h-data: Likewise.
74926         * conform/data/sys/types.h-data: Likewise.
74927         * conform/data/sys/uio.h-data: Likewise.
74928         * conform/data/sys/un.h-data: Likewise.
74929         * conform/data/sys/utsname.h-data: Likewise.
74930         * conform/data/sys/wait.h-data: Likewise.
74931         * conform/data/syslog.h-data: Likewise.
74932         * conform/data/tar.h-data: Likewise.
74933         * conform/data/termios.h-data: Likewise.
74934         * conform/data/utime.h-data: Likewise.
74935         * conform/data/utmpx.h-data: Likewise.
74936         * conform/data/varargs.h-data: Likewise.
74937         * conform/data/wchar.h-data: Likewise.
74938         * conform/data/wctype.h-data: Likewise.
74939         * conform/data/wordexp.h-data: Likewise.
74940
74941         * include/stropts.h: New file.
74942         * include/uchar.h: New file.
74943         * include/aio.h: Changes to allow conformtest.pl to use the headers.
74944         * include/assert.h: Likewise.
74945         * include/ctype.h: Likewise.
74946         * include/dirent.h: Likewise.
74947         * include/dlfcn.h: Likewise.
74948         * include/fcntl.h: Likewise.
74949         * include/fnmatch.h: Likewise.
74950         * include/glob.h: Likewise.
74951         * include/grp.h: Likewise.
74952         * include/libio.h: Likewise.
74953         * include/locale.h: Likewise.
74954         * include/math.h: Likewise.
74955         * include/net/if.h: Likewise.
74956         * include/netdb.h: Likewise.
74957         * include/netinet/in.h: Likewise.
74958         * include/pthread.h: Likewise.
74959         * include/pwd.h: Likewise.
74960         * include/regex.h: Likewise.
74961         * include/sched.h: Likewise.
74962         * include/search.h: Likewise.
74963         * include/setjmp.h: Likewise.
74964         * include/signal.h: Likewise.
74965         * include/stdio.h: Likewise.
74966         * include/stdlib.h: Likewise.
74967         * include/string.h: Likewise.
74968         * include/sys/cdefs.h: Likewise.
74969         * include/sys/mman.h: Likewise.
74970         * include/sys/msg.h: Likewise.
74971         * include/sys/resource.h: Likewise.
74972         * include/sys/select.h: Likewise.
74973         * include/sys/socket.h: Likewise.
74974         * include/sys/stat.h: Likewise.
74975         * include/sys/statvfs.h: Likewise.
74976         * include/sys/time.h: Likewise.
74977         * include/sys/times.h: Likewise.
74978         * include/sys/uio.h: Likewise.
74979         * include/sys/utsname.h: Likewise.
74980         * include/sys/wait.h: Likewise.
74981         * include/termios.h: Likewise.
74982         * include/time.h: Likewise.
74983         * include/ulimit.h: Likewise.
74984         * include/unistd.h: Likewise.
74985         * include/utime.h: Likewise.
74986         * include/wchar.h: Likewise.
74987         * include/wctype.h: Likewise.
74988         * include/wordexp.h: Likewise.
74989
74990         * posix/tar.h (TSVTX): Should not be visible for POSIX before 2008.
74991
74992         * time/time.h: TIME_UTC must be a macro.
74993         Make timespec_get available for ISO C11 only as well.
74994
74995 2012-02-24  Ulrich Drepper  <drepper@gmail.com>
74996
74997         * stdlib/fmtmsg.c (fmtmsg): Lock around use of severity list.
74998         Reported by Peng Haitao <penght@cn.fujitsu.com>.
74999
75000 2012-02-24  Joseph Myers  <joseph@codesourcery.com>
75001
75002         * configure.in: Use -o not -a in test for unsupported multi-arch.
75003
75004 2012-02-24  Joseph Myers  <joseph@codesourcery.com>
75005
75006         * manual/texinfo.tex: Update to version 2012-01-19.16.
75007
75008 2012-02-24  Joseph Myers  <joseph@codesourcery.com>
75009
75010         * manual/Makefile (licenses): Change fdl-1.1.texi to fdl-1.3.texi.
75011
75012 2012-02-24  Roland McGrath  <roland@hack.frob.com>
75013
75014         [BZ #13738]
75015         * manual/libc.texinfo (FDL_VERSION): Set to 1.3.
75016         * manual/fdl-1.3.texi: New file.
75017         * manual/fdl-1.1.texi: File removed.
75018
75019         [BZ #13738]
75020         * manual/libc.texinfo (FDL_VERSION): New @set.
75021         Use it for mention of FDL in cover text.
75022         (Documentation License): Use it in @include file name.
75023
75024 2012-02-22  Joseph Myers  <joseph@codesourcery.com>
75025             Roland McGrath  <roland@hack.frob.com>
75026
75027         [BZ #5461]
75028         * manual/arith.texi (strtoll): Refer to LLONG_MAX and LLONG_MIN)
75029         (not LONG_LONG_MAX and LONG_LONG_MIN.
75030         * manual/lang.texi (LONG_LONG_MIN): Document first as ISO
75031         LLONG_MIN.  Refer to LONG_LONG_MIN only as older GCC-specific
75032         name.
75033         (LONG_LONG_MAX, LLONG_MAX, ULONG_LONG_MAX, ULLONG_MAX): Likewise.
75034
75035 2012-02-22  Joseph Myers  <joseph@codesourcery.com>
75036
75037         [BZ #2547]
75038         [BZ #11365]
75039         * sysdeps/ieee754/flt-32/s_nearbyintf.c (__nearbyintf): Do not
75040         manipulate bits before adding and subtracting TWO23[sx].
75041         * math/libm-test.inc (nearbyint_test): Add more tests.
75042
75043 2012-02-22  Joseph Myers  <joseph@codesourcery.com>
75044
75045         [BZ #2548]
75046         * sysdeps/ieee754/flt-32/s_rintf.c (__rintf): Do not manipulate
75047         bits before adding and subtracting TWO23[sx].
75048         * math/libm-test.inc (rint_test): Add more tests.
75049         (rint_test_tonearest): Likewise.
75050         (rint_test_towardzero): Likewise.
75051         (rint_test_downward): Likewise.
75052         (rint_test_upward: Likewise.
75053
75054 2012-02-22  Joseph Myers  <joseph@codesourcery.com>
75055
75056         [BZ #10110]
75057         * include/stdc-predef.h: New file.  Extracted from features.h.
75058         * include/features.h: Include stdc-predef.h.
75059         * Makefile (headers): Add stdc-predef.h.
75060         * CONFORMANCE (Compiler limitations): Update.
75061
75062 2012-02-22  Joseph Myers  <joseph@codesourcery.com>
75063
75064         * manual/libc.texinfo (VERSION, UPDATED): Revert.
75065
75066 2012-02-21  David S. Miller  <davem@davemloft.net>
75067
75068         * sysdeps/sparc/sparc32/fpu/libm-test-ulps: More jn test ULP updates.
75069         * sysdeps/sparc/sparc64/fpu/libm-test-ulps: Likewise.
75070
75071 2012-02-20  David S. Miller  <davem@davemloft.net>
75072
75073         * sysdeps/sparc/sparc32/__longjmp.S: Unwind in the 'thread' path
75074         using a normal save/restore sequence, rather than allocating a
75075         dummy stack frame just to store a frame pointer and restore.
75076         * sysdeps/unix/sysv/linux/sparc/sparc32/____longjmp_chk.S: Likewise.
75077
75078 2012-02-21  Joseph Myers  <joseph@codesourcery.com>
75079
75080         * manual/install.texi: Fix stray word in line-wrapped comment.
75081
75082 2012-02-20  David S. Miller  <davem@davemloft.net>
75083
75084         * sysdeps/sparc/elf/configure.in (PI_STATIC_AND_HIDDEN): Define if
75085         both binutils and gcc support GOTDATA.
75086
75087         * sysdeps/unix/sparc/sysdep.h: Document why we don't use
75088         "rd %pc" in the PIC register setup sequences.
75089
75090         * sysdeps/sparc/crti.S: Try to use GOTDATA relocs.
75091         * sysdeps/sparc/sparc32/dl-machine.h (RTLD_START): Likewise.
75092         * sysdeps/sparc/sparc32/elf/start.S: Likewise.
75093         * sysdeps/sparc/sparc64/dl-machine.h (RTLD_START): Likewise.
75094         * sysdeps/sparc/sparc64/elf/start.S: Likewise.
75095         * sysdeps/sparc/sparc64/multiarch/memcpy.S: Likewise.
75096         * sysdeps/sparc/sparc64/multiarch/memset.S: Likewise.
75097         * sysdeps/unix/sysv/linux/sparc/sparc32/____longjmp_chk.S: Likewise.
75098         * sysdeps/unix/sysv/linux/sparc/sparc32/sysdep.h
75099         (SYSCALL_ERROR_HANDLER): Likewise.
75100         * sysdeps/unix/sysv/linux/sparc/sparc64/____longjmp_chk.S: Likewise.
75101         * sysdeps/unix/sysv/linux/sparc/sparc64/brk.S: Likewise.
75102         * sysdeps/unix/sysv/linux/sparc/sparc64/sysdep.h
75103         (SYSCALL_ERROR_HANDLER): Likewise.
75104
75105         * config.h.in (HAVE_BINUTILS_GOTDATA): New.
75106         (HAVE_GCC_GOTDATA): New.
75107         * sysdeps/sparc/elf/configure.in: Test for GOTDATA
75108         relocation support in both binutils and gcc.
75109         * sysdeps/sparc/elf/configure: Regenerate.
75110
75111         * sysdeps/sparc/sparc32/elf/configure.in: Delete.
75112         * sysdeps/sparc/sparc32/elf/configure: Delete.
75113         * sysdeps/sparc/sparc64/elf/configure.in: Delete.
75114         * sysdeps/sparc/sparc64/elf/configure: Delete.
75115         * sysdeps/sparc/elf/configure.in: New file.
75116         * sysdeps/sparc/elf/configure: Generate.
75117
75118         * sysdeps/sparc/sparc32/elf/configure.in: Delete WDISP22 check.
75119         * sysdeps/sparc/sparc32/elf/configure: Regenerate.
75120         * sysdeps/sparc/sparc64/elf/configure.in: Likewise.
75121         * sysdeps/sparc/sparc64/elf/configure: Regenerate.
75122         * config.h.in (BROKEN_SPARC_WDISP22): Remove.
75123
75124 2012-02-21  Joseph Myers  <joseph@codesourcery.com>
75125
75126         * manual/install.texi: Do not mention specific glibc version
75127         numbers.
75128         * manual/libc.texinfo (VERSION, UPDATED): Update.
75129         (@copying): Use @copyright{} and range of years.
75130
75131 2012-02-21  Joseph Myers  <joseph@codesourcery.com>
75132
75133         [BZ #13695]
75134         * csu/Makefile (distribute): Remove initfini.c and defs.awk.
75135         [crti.S not in sysdirs] (generated): Do not append.
75136         [crti.S not in sysdirs] (omit-deps): Likewise.
75137         [crti.S not in sysdirs] ($(crtstuff:%=$(objpfx)%.o)): Remove rule.
75138         [crti.S not in sysdirs] ($(objpfx)initfini.s): Likewise.
75139         [crti.S not in sysdirs] ($(objpfx)crti.S): Likewise.
75140         [crti.S not in sysdirs] ($(objpfx)crtn.S): Likewise.
75141         [crti.S not in sysdirs] ($(patsubst %,$(objpfx)crt%.o,i n)):
75142         Likewise.
75143         [crti.S not in sysdirs] ($(objpfx)defs.h): Likewise.
75144         [crti.S not in sysdirs] (CFLAGS-initfini.s): Remove variable.
75145         [crti.S not in sysdirs] (initfini.c): Remove vpath directive.
75146         * csu/defs.awk: Remove file.
75147         * sysdeps/generic/initfini.c: Likewise.
75148         * sysdeps/powerpc/powerpc32/Makefile (CFLAGS-initfini.s): Remove
75149         variable.
75150         * sysdeps/powerpc/powerpc64/Makefile (CFLAGS-initfini.s):
75151         Likewise.
75152
75153 2012-02-20  Joseph Myers  <joseph@codesourcery.com>
75154
75155         * sysdeps/unix/sysv/linux/bits/epoll.h: New file.
75156         * sysdeps/unix/sysv/linux/sparc/bits/epoll.h: Likewise.
75157         * sysdeps/unix/sysv/linux/x86_64/bits/epoll.h: Likewise.
75158         * sysdeps/unix/sysv/linux/sparc/sys/epoll.h: Remove
75159         * sysdeps/unix/sysv/linux/x86_64/sys/epoll.h: Likewise.
75160         * sysdeps/unix/sysv/linux/sys/epoll.h: Get flags from
75161         <bits/epoll.h>.
75162         (EPOLL_CLOEXEC, EPOLL_NONBLOCK): Don't define here.
75163         (__EPOLL_PACKED): Define to empty if not defined by
75164         <bits/epoll.h>.
75165         (struct epoll_event): Use __EPOLL_PACKED to make possibly packed.
75166         * sysdeps/unix/sysv/linux/Makefile (sysdep_headers): Add
75167         bits/epoll.h.
75168
75169 2012-02-20  Joseph Myers  <joseph@codesourcery.com>
75170
75171         * sysdeps/unix/sysv/linux/bits/timerfd.h: New file.
75172         * sysdeps/unix/sysv/linux/sparc/bits/timerfd.h: Likewise.
75173         * sysdeps/unix/sysv/linux/sparc/sys/timerfd.h: Remove.
75174         * sysdeps/unix/sysv/linux/sys/timerfd.h: Get flags from
75175         <bits/timerfd.h>.
75176         (TFD_CLOEXEC, TFD_NONBLOCK): Don't define here.
75177         * sysdeps/unix/sysv/linux/Makefile (sysdep_headers): Add
75178         bits/timerfd.h.
75179
75180 2012-02-20  Joseph Myers  <joseph@codesourcery.com>
75181
75182         * sysdeps/i386/fpu/libm-test-ulps: Resort with gen-libm-test.pl -n
75183         in C locale.
75184         * sysdeps/powerpc/fpu/libm-test-ulps: Likewise.
75185         * sysdeps/sh/sh4/fpu/libm-test-ulps: Likewise.
75186         * sysdeps/sparc/sparc32/fpu/libm-test-ulps: Likewise.
75187         * sysdeps/x86_64/fpu/libm-test-ulps: Likewise.
75188
75189 2012-02-20  Aurelien Jarno  <aurelien@aurel32.net>
75190
75191         * sysdeps/sparc/sparc32/fpu/libm-test-ulps: Adjust ULPs for jn tests.
75192         * sysdeps/sparc/sparc64/fpu/libm-test-ulps: Likewise.
75193
75194 2012-02-19  Andreas Schwab  <schwab@linux-m68k.org>
75195
75196         * manual/errno.texi (Error Codes): Add EHWPOISON entry.
75197         * sysdeps/unix/sysv/linux/bits/errno.h (EHWPOISON): Define if not
75198         defined.
75199         * sysdeps/unix/sysv/linux/sparc/bits/errno.h (EHWPOISON):
75200         Likewise.
75201         * sysdeps/unix/sysv/linux/sparc/Versions: Add new errlist compat
75202         entry for 2.16.
75203
75204 2012-02-19  Aurelien Jarno  <aurelien@aurel32.net>
75205
75206         * math/w_acos.c: Use non-signaling floating-point comparisons.
75207         * math/w_acosf.c: Likewise.
75208         * math/w_acosh.c: Likewise.
75209         * math/w_acoshf.c: Likewise.
75210         * math/w_acoshl.c: Likewise.
75211         * math/w_acosl.c: Likewise.
75212         * math/w_asin.c: Likewise.
75213         * math/w_asinf.c: Likewise.
75214         * math/w_asinl.c: Likewise.
75215         * math/w_atanh.c: Likewise.
75216         * math/w_atanhf.c: Likewise.
75217         * math/w_atanhl.c: Likewise.
75218         * math/w_exp2.c: Likewise.
75219         * math/w_exp2f.c: Likewise.
75220         * math/w_exp2l.c: Likewise.
75221         * math/w_j0.c: Likewise.
75222         * math/w_j0f.c: Likewise.
75223         * math/w_j0l.c: Likewise.
75224         * math/w_j1.c: Likewise.
75225         * math/w_j1f.c: Likewise.
75226         * math/w_j1l.c: Likewise.
75227         * math/w_jn.c: Likewise.
75228         * math/w_jnf.c: Likewise.
75229         * math/w_log.c: Likewise.
75230         * math/w_log10.c: Likewise.
75231         * math/w_log10f.c: Likewise.
75232         * math/w_log10l.c: Likewise.
75233         * math/w_log2.c: Likewise.
75234         * math/w_log2f.c: Likewise.
75235         * math/w_log2l.c: Likewise.
75236         * math/w_logf.c: Likewise.
75237         * math/w_logl.c: Likewise.
75238         * math/w_sqrt.c: Likewise.
75239         * math/w_sqrtf.c: Likewise.
75240         * math/w_sqrtl.c: Likewise.
75241         * sysdeps/ieee754/dbl-64/e_atanh.c: Likewise.
75242         * sysdeps/ieee754/dbl-64/w_exp.c: Likewise.
75243         * sysdeps/ieee754/flt-32/e_atanhf.c: Likewise.
75244         * sysdeps/ieee754/flt-32/w_expf.c: Likewise.
75245         * sysdeps/ieee754/ldbl-96/w_expl.c: Likewise.
75246
75247 2012-02-19  Joseph Myers  <joseph@codesourcery.com>
75248
75249         [BZ #9739]
75250         * manual/string.texi (strnlen): Use correct parameter name in
75251         equivalent expression.
75252
75253 2012-02-19  Joseph Myers  <joseph@codesourcery.com>
75254
75255         [BZ #11174]
75256         * manual/users.texi (seteuid): Consistently use neweuid for
75257         argument name.
75258
75259 2012-02-19  Joseph Myers  <joseph@codesourcery.com>
75260
75261         [BZ #13704]
75262         * manual/nss.texi (Services in the NSS configuration): Correct
75263         list of services in example configuration file.
75264
75265 2012-02-19  Nick Bowler  <nbowler@draconx.ca>
75266
75267         [BZ #11322]
75268         * manual/arith.texi: Remove statements about negative zero
75269         behaving identically to zero.
75270
75271 2012-02-18  Joseph Myers  <joseph@codesourcery.com>
75272
75273         [BZ #5993]
75274         * manual/install.texi: Do not document upgrading from libc5.
75275
75276 2012-02-18  Joseph Myers  <joseph@codesourcery.com>
75277
75278         [BZ #4596]
75279         * manual/conf.texi (_POSIX_VERSION): Do not mention __POSIX__.
75280
75281 2012-02-18  David S. Miller  <davem@davemloft.net>
75282
75283         * sysdeps/unix/sparc/sysdep.h (SPARC_PIC_THUNK): New macro.
75284         (SETUP_PIC_REG): Use SPARC_PIC_THUNK and don't save and restore
75285         %o7 across the call.
75286         (SETUP_PIC_REG_LEAF): Do %o7 save/restore in this new macro
75287         instead.
75288         * sysdeps/unix/sysv/linux/sparc/sparc32/sysdep.h: Use
75289         SETUP_PIC_REG_LEAF.
75290         * sysdeps/unix/sysv/linux/sparc/sparc64/sysdep.h: Likewise.
75291         * sysdeps/sparc/crti.S: Use SETUP_PIC_REG.
75292         * sysdeps/sparc/crtn.S: Likewise.
75293
75294 2012-02-17  Ulrich Drepper  <drepper@gmail.com>
75295
75296         * aout/Makefile: Remove.
75297
75298 2012-02-18  Rafe Kettler  <rafe.kettler@gmail.com>
75299
75300         [BZ #13058]
75301         * manual/examples/argp-ex1.c (main): Format definition in GNU
75302         style.
75303         * manual/examples/argp-ex2.c (main): Likewise.
75304         * manual/examples/argp-ex3.c (main): Likewise.
75305         * manual/examples/argp-ex4.c (main): Likewise.
75306         * manual/examples/longopt.c (main): Use new-style prototype
75307         definition.
75308         * manual/examples/strncat.c (main): Specify return type and use
75309         (void) for arguments.
75310         * manual/examples/subopt.c (main): Use char **argv argument.
75311
75312 2012-02-17  Joseph Myers  <joseph@codesourcery.com>
75313
75314         [BZ #5077]
75315         * manual/lang.texi (FLT_EPSILON): Avoid description depending on
75316         rounding modes.
75317
75318 2012-02-17  Fabrice Bauzac  <fabrice.bauzac@wanadoo.fr>
75319
75320         [BZ #6907]
75321         * manual/string.texi (strchr): Change when strchrnul is
75322         recommended.
75323
75324 2012-02-17  Dwayne Grant McConnell  <decimal@us.ibm.com>
75325
75326         [BZ #174]
75327         * manual/locale.texi (setlocale): Document LOCPATH.
75328
75329 2012-02-17  Joseph Myers  <joseph@codesourcery.com>
75330
75331         [BZ #10210]
75332         * manual/process.texi (execle): Move @dots{} before last argument.
75333
75334 2012-02-17  Paul Bolle  <pebolle@tiscali.nl>
75335
75336         [BZ #12047]
75337         * manual/charset.texi (Generic Charset Conversion): Fix typo
75338         (LC_TYPE -> LC_CTYPE).
75339
75340 2012-02-17  Nicolas Boulenguez  <nicolas.boulenguez@free.fr>
75341
75342         [BZ #5805]
75343         * manual/arith.texi (scalbn): Use @var{} on parameter names.
75344         (scalbnf): Likewise.
75345         (scalbnl): Likewise.
75346         (scalbln): Likewise.
75347         (scalblnf): Likewise.
75348         (scalblnl): Likewise.
75349         * manual/errno.texi (vwarn): Name last parameter as @var{ap}.
75350         (vwarnx): Likewise.
75351         (verr): Likewise.
75352         (verrx): Likewise.
75353         * manual/filesys.texi (telldir): Use braces around return type.
75354         * manual/llio.texi (mmap): Add space after comma.
75355         (mmap64): Likewise.
75356         * manual/math.texi (jn): Use @var{} on parameter names.
75357         (jnf): Likewise.
75358         (jnl): Likewise.
75359         (yn): Likewise.
75360         (ynf): Likewise.
75361         (ynl): Likewise.
75362         * manual/memory.texi (alloca): Remove semicolon on @deftypefun
75363         line.
75364         * manual/resource.texi (ulimit): Use @dots{} instead of literal
75365         "...".
75366         (sched_get_priority_min): Remove semicolon on @deftypefun line.
75367         (sched_get_priority_max): Likewise.
75368         * manual/signal.texi (sigvec): Add space after comma.
75369         * manual/socket.texi (if_nametoindex): Use @var{} on parameter
75370         names.
75371         (if_indextoname): Likewise.
75372         (if_freenameindex): Likewise.
75373         (sendto): Use ',' instead of '.' in prototype.
75374         * manual/startup.texi (syscall): Use @dots{} instead of literal
75375         "...".
75376         * manual/stdio.texi (__fpending): Separate initial words of
75377         paragraph from @deftypefun line.
75378         * manual/syslog.texi (syslog): Use @dots{} instead of literal
75379         "...".
75380         (vsyslog): Use @var{} on parameter names.
75381         * manual/terminal.texi (stty): Use @var{} on parameter names.
75382         * manual/users.texi (getutmp): Use @var{} on parameter names.
75383         (getutmpx): Likewise.
75384
75385 2012-02-17  Joseph Myers  <joseph@codesourcery.com>
75386
75387         [BZ #6884]
75388         * manual/stdio.texi (fopen): Fix typos in description of
75389         ",ccs=STRING".
75390
75391 2012-02-17  Aurelien Jarno  <aurelien@aurel32.net>
75392
75393         [BZ #4026]
75394         * sysdeps/unix/sysv/linux/clock_settime.c: include <time.h> to
75395         get clock_id definition.
75396
75397 2012-02-17  Thomas Schwinge  <thomas@schwinge.name>
75398
75399         [BZ #4822]
75400         * sysdeps/mach/hurd/malloc-machine.h: #include <sys/mman.h>.
75401         (madvise): Cast every argument to void on its own.
75402
75403 2012-02-17  Joseph Myers  <joseph@codesourcery.com>
75404
75405         [BZ #9902]
75406         * manual/startup.texi (Exit Status): Fix typo.
75407
75408 2012-02-17  Joseph Myers  <joseph@codesourcery.com>
75409
75410         [BZ #10140]
75411         * manual/examples/argp-ex1.c: Include <stdlib.h>.
75412         * manual/examples/argp-ex2.c: Likewise.
75413         * manual/examples/argp-ex3.c: Likewise.
75414
75415 2012-02-16  Richard Henderson  <rth@redhat.com>
75416
75417         * sysdeps/s390/s390-32/crti.S, sysdeps/s390/s390-32/crtn.S: New files.
75418         * sysdeps/s390/s390-32/initfini.c: Remove.
75419         * sysdeps/s390/s390-64/crti.S, sysdeps/s390/s390-64/crtn.S:
75420         * sysdeps/s390/s390-64/initfini.c: Remove.
75421
75422 2012-02-15  Kaz Kojima  <kkojima@rr.iij4u.or.jp>
75423
75424         * sysdeps/sh/crti.S, sysdeps/sh/crtn.S: New files, based on
75425         compiler output for sysdeps/generic/initfini.c.
75426         * sysdeps/sh/elf/initfini.c: Remove file.
75427
75428 2012-02-16  David S. Miller  <davem@davemloft.net>
75429
75430         [BZ #11494]
75431         * sysdeps/unix/sysv/linux/sparc/bits/fcntl.h (O_FSYNC): Define.
75432
75433         * sysdeps/sparc/Makefile: Add -fPIC when building crt{i,n}.S
75434         * sysdeps/sparc/crti.S: New file.
75435         * sysdeps/sparc/crtn.S: New file.
75436         * sysdeps/sparc/sparc32/Makefile: Remove initfini handling.
75437         * sysdeps/sparc/sparc64/Makefile: Likewise.
75438
75439 2012-02-15  Mike Frysinger  <vapier@gentoo.org>
75440
75441         [BZ #3335]
75442         * sysdeps/unix/sysv/linux/getcwd.c: Include sys/param.h.
75443
75444 2012-02-15  Roland McGrath  <roland@hack.frob.com>
75445
75446         [BZ #4822]
75447         * sysdeps/mach/hurd/malloc-machine.h (madvise): New macro.
75448
75449         * mach/devstream.c (cookie_io_functions_t): Macro removed.
75450         (write, read, close): Likewise.
75451         Patch by Aurelien Jarno <aurelien@aurel32.net>.
75452
75453 2012-02-15  Joseph Myers  <joseph@codesourcery.com>
75454
75455         * sysdeps/unix/sysv/linux/bits/signalfd.h: New file.
75456         * sysdeps/unix/sysv/linux/sparc/bits/signalfd.h: Likewise.
75457         * sysdeps/unix/sysv/linux/sparc/sys/signalfd.h: Remove.
75458         * sysdeps/unix/sysv/linux/sys/signalfd.h: Get flags from
75459         <bits/signalfd.h>.
75460         (SFD_CLOEXEC, SFD_NONBLOCK): Don't define here.
75461         * sysdeps/unix/sysv/linux/Makefile (sysdep_headers): Add
75462         bits/signalfd.h.
75463
75464 2012-02-14  Marek Polacek  <polacek@redhat.com>
75465
75466         * sysdeps/x86_64/crti.S: New file.
75467         * sysdeps/x86_64/crtn.S: New file.
75468         * sysdeps/x86_64/elf/initfini.c: Remove file.
75469
75470 2012-02-13  Joseph Myers  <joseph@codesourcery.com>
75471
75472         * sysdeps/unix/sysv/linux/bits/inotify.h: New file.
75473         * sysdeps/unix/sysv/linux/sparc/bits/inotify.h: Likewise.
75474         * sysdeps/unix/sysv/linux/sparc/sys/inotify.h: Remove.
75475         * sysdeps/unix/sysv/linux/sys/inotify.h: Get flags from
75476         <bits/inotify.h>.
75477         (IN_CLOEXEC, IN_NONBLOCK): Don't define here.
75478         * sysdeps/unix/sysv/linux/Makefile (sysdep_headers): Add
75479         bits/inotify.h.
75480
75481 2012-02-13  Joseph Myers  <joseph@codesourcery.com>
75482
75483         * sysdeps/unix/sysv/linux/bits/eventfd.h: New file.
75484         * sysdeps/unix/sysv/linux/sparc/bits/eventfd.h: Likewise.
75485         * sysdeps/unix/sysv/linux/sparc/sys/eventfd.h: Remove.
75486         * sysdeps/unix/sysv/linux/sys/eventfd.h: Get flags from
75487         <bits/eventfd.h>.
75488         (EFD_SEMAPHORE, EFD_CLOEXEC, EFD_NONBLOCK): Don't define here.
75489         * sysdeps/unix/sysv/linux/Makefile (sysdep_headers): Add
75490         bits/eventfd.h.
75491
75492 2012-02-10  Thomas Schwinge  <thomas@codesourcery.com>
75493
75494         * sysdeps/i386/fpu/feupdateenv.c (__feupdateenv): Invoke
75495         __feraiseexcept instead of feraiseexcept.
75496
75497         * rt/tst-cpuclock1.c: Add a few comments, and error checking for
75498         nanosleep invocations.
75499         * rt/tst-cpuclock2.c: Print some values as intended, fix explanatory
75500         strings, and add error checking for a nanosleep invocations.
75501
75502 2012-02-09  Paul Eggert  <eggert@cs.ucla.edu>
75503
75504         Replace FSF snail mail address with URLs, as per GNU coding standards.
75505         Most of the snail mail addresses were wrong anyway, and omitting
75506         them makes the source code easier to maintain.  Almost all of the
75507         changes are to license notices and to locale LC_IDENTIFICATION
75508         addresses, except for this one:
75509         * manual/libc.texinfo: In "Published by", give the FSF's URL,
75510         not its snail mail address.
75511
75512 2012-02-09  Richard Henderson  <rth@twiddle.net>
75513
75514         * sysdeps/unix/sysv/linux/internal_statvfs.c: Use <> for include
75515         of kernel-features.h.
75516
75517         * elf/dl-tls.c (update_get_addr): Avoid pointer type mismatch warning.
75518
75519 2012-02-08  Marek Polacek  <polacek@redhat.com>
75520
75521         * libio/libio.h: Remove _G_HAVE_SYS_CDEFS conditional.
75522         * sysdeps/mach/hurd/_G_config.h: Remove _G_HAVE_SYS_CDEFS macro.
75523         * sysdeps/gnu/_G_config.h: Likewise.
75524         * sysdeps/generic/_G_config.h: Likewise.
75525
75526 2012-02-08  Andreas Schwab  <schwab@linux-m68k.org>
75527
75528         * sysdeps/i386/fpu/libm-test-ulps: Reduce ldouble ULPs for jn
75529         tests.
75530         * sysdeps/x86_64/fpu/libm-test-ulps: Likewise.
75531
75532         * sysdeps/powerpc/powerpc32/crti.S: New file.
75533         * sysdeps/powerpc/powerpc32/crtn.S: New file.
75534         * sysdeps/powerpc/powerpc64/crti.S: New file.
75535         * sysdeps/powerpc/powerpc64/crtn.S: New file.
75536
75537         * Makeconfig (have-initfini): Don't set.
75538         * config.make.in (have-initfini, need-nopic-initfini): Don't set.
75539         * configure.in (nopic_initfini): Don't substitute.
75540         * config.h.in (HAVE_INITFINI): Don't #undef.
75541         * csu/Makefile (CPPFLAGS): Don't add -DHAVE_INITFINI.
75542         * csu/gmon-start.c: Assume HAVE_INITFINI is defined.
75543
75544 2012-02-08  Joseph Myers  <joseph@codesourcery.com>
75545
75546         Support crti.S and crtn.S provided directly by architectures.
75547         * csu/Makefile [crti.S in sysdirs] (generated): Do not append.
75548         [crti.S in sysdirs] (omit-deps): Likewise.
75549         [crti.S in sysdirs] (CFLAGS-initfini.s): Do not define variable.
75550         [crti.S in sysdirs] ($(crtstuff:%=$(objpfx)%.o)): Disable rule.
75551         [crti.S in sysdirs] ($(objpfx)initfini.s): Likewise.
75552         [crti.S in sysdirs] ($(objpfx)crti.S): Likewise.
75553         [crti.S in sysdirs] ($(objpfx)crtn.S): Likewise.
75554         [crti.S in sysdirs] ($(patsubst %,$(objpfx)crt%.o,i n)): Likewise.
75555         [crti.S in sysdirs] ($(objpfx)defs.h): Likewise.
75556         [crti.S in sysdirs] (initfini.c): Remove vpath directive.
75557         * sysdeps/i386/crti.S, sysdeps/i386/crtn.S: New files, based on
75558         compiler output for sysdeps/generic/initfini.c.
75559         * sysdeps/i386/elf/Makefile: Remove file.
75560         * sysdeps/i386/Makefile (CFLAGS-initfini.s): Remove variable.
75561
75562 2012-02-07  Marek Polacek  <polacek@redhat.com>
75563
75564         * sysdeps/generic/_G_config.h: Remove _G_ARGS macro.
75565         * sysdeps/gnu/_G_config.h: Likewise.
75566         * sysdeps/mach/hurd/_G_config.h: Likewise.
75567
75568 2012-02-07  Marek Polacek  <polacek@redhat.com>
75569
75570         * math/Makefile (tests): Add tst-CMPLX2.
75571         * math/tst-CMPLX2.c: New file.
75572
75573 2012-02-07  Andreas Schwab  <schwab@linux-m68k.org>
75574
75575         * sysdeps/powerpc/fpu/libm-test-ulps: Adjust ULPs for jn tests.
75576
75577         * math/libm-test.inc (jn_test): Add missing L suffix.
75578
75579 2012-02-06  Marek Polacek  <polacek@redhat.com>
75580
75581         * sysdeps/s390/asm-syntax.h: Remove __ELF__ conditionals.
75582         * sysdeps/i386/fpu/e_powf.S: Likewise.
75583         * sysdeps/i386/fpu/e_atanhf.S: Likewise.
75584         * sysdeps/i386/fpu/s_cexpl.S: Likewise.
75585         * sysdeps/i386/fpu/e_acosh.S: Likewise.
75586         * sysdeps/i386/fpu/e_pow.S: Likewise.
75587         * sysdeps/i386/fpu/s_asinhl.S: Likewise.
75588         * sysdeps/i386/fpu/e_acoshl.S: Likewise.
75589         * sysdeps/i386/fpu/s_expm1.S: Likewise.
75590         * sysdeps/i386/fpu/s_frexpf.S: Likewise.
75591         * sysdeps/i386/fpu/e_log2.S: Likewise.
75592         * sysdeps/i386/fpu/e_log2l.S: Likewise.
75593         * sysdeps/i386/fpu/e_scalb.S: Likewise.
75594         * sysdeps/i386/fpu/e_powl.S: Likewise.
75595         * sysdeps/i386/fpu/s_log1p.S: Likewise.
75596         * sysdeps/i386/fpu/e_log10f.S: Likewise.
75597         * sysdeps/i386/fpu/s_cbrtf.S: Likewise.
75598         * sysdeps/i386/fpu/e_logl.S: Likewise.
75599         * sysdeps/i386/fpu/s_cbrt.S: Likewise.
75600         * sysdeps/i386/fpu/s_expm1l.S: Likewise.
75601         * sysdeps/i386/fpu/s_frexpl.S: Likewise.
75602         * sysdeps/i386/fpu/s_expm1f.S: Likewise.
75603         * sysdeps/i386/fpu/e_log2f.S: Likewise.
75604         * sysdeps/i386/fpu/e_acoshf.S: Likewise.
75605         * sysdeps/i386/fpu/e_log.S: Likewise.
75606         * sysdeps/i386/fpu/s_cexp.S: Likewise.
75607         * sysdeps/i386/fpu/e_scalbf.S: Likewise.
75608         * sysdeps/i386/fpu/s_log1pl.S: Likewise.
75609         * sysdeps/i386/fpu/e_logf.S: Likewise.
75610         * sysdeps/i386/fpu/e_log10l.S: Likewise.
75611         * sysdeps/i386/fpu/e_atanh.S: Likewise.
75612         * sysdeps/i386/fpu/s_log1pf.S: Likewise.
75613         * sysdeps/i386/fpu/s_asinhf.S: Likewise.
75614         * sysdeps/i386/fpu/s_cexpf.S: Likewise.
75615         * sysdeps/i386/fpu/e_log10.S: Likewise.
75616         * sysdeps/i386/fpu/s_frexp.S: Likewise.
75617         * sysdeps/i386/fpu/e_atanhl.S: Likewise.
75618         * sysdeps/i386/fpu/s_asinh.S: Likewise.
75619         * sysdeps/i386/fpu/s_cbrtl.S: Likewise.
75620         * sysdeps/i386/fpu/e_scalbl.S: Likewise.
75621         * sysdeps/i386/i686/fpu/e_logl.S: Likewise.
75622         * sysdeps/i386/asm-syntax.h: Likewise.
75623         * sysdeps/x86_64/fpu/e_log2l.S: Likewise.
75624         * sysdeps/x86_64/fpu/e_powl.S: Likewise.
75625         * sysdeps/x86_64/fpu/e_logl.S: Likewise.
75626         * sysdeps/x86_64/fpu/s_expm1l.S: Likewise.
75627         * sysdeps/x86_64/fpu/s_log1pl.S: Likewise.
75628         * sysdeps/x86_64/fpu/e_log10l.S: Likewise.
75629         * sysdeps/x86_64/fpu/s_copysignf.S: Likewise.
75630         * sysdeps/x86_64/fpu/s_copysign.S: Likewise.
75631         * sysdeps/x86_64/fpu/e_scalbl.S: Likewise.
75632         * sysdeps/powerpc/sysdep.h: Likewise.
75633         * sysdeps/powerpc/powerpc64/sysdep.h: Likewise.
75634         * sysdeps/powerpc/powerpc32/sysdep.h: Likewise.
75635
75636 2012-02-06  Joseph Myers  <joseph@codesourcery.com>
75637
75638         [BZ #411]
75639         * sysdeps/i386/sysdep.h (__i686): Undefine and redefine.
75640
75641 2012-02-06  Joseph Myers  <joseph@codesourcery.com>
75642
75643         * sysdeps/i386/sysdep.h: Include <features.h>.
75644         (GET_PC_THUNK, GET_PC_THUNK_STR): Define conditionally on compiler
75645         version.
75646
75647 2012-02-05  Joseph Myers  <joseph@codesourcery.com>
75648
75649         * sysdeps/i386/sysdep.h (SETUP_PIC_REG_STR, LOAD_PIC_REG_STR):
75650         Define.
75651         * sysdeps/unix/sysv/linux/i386/sysdep.h (check_consistency): Use
75652         LOAD_PIC_REG_STR.
75653
75654 2012-02-03  Joseph Myers  <joseph@codesourcery.com>
75655
75656         * sysdeps/i386/sysdep.h (GET_PC_THUNK, GET_PC_THUNK_STR): Define.
75657         (SETUP_PIC_REG): Use GET_PC_THUNK.
75658         * sysdeps/unix/sysv/linux/i386/sysdep.h: Use GET_PC_THUNK_STR
75659         macro.
75660
75661 2012-02-03  Joseph Myers  <joseph@codesourcery.com>
75662
75663         * sysdeps/i386/sysdep.h (SETUP_PIC_REG, LOAD_PIC_REG): Define also
75664         for non-PIC compilation.
75665         (SETUP_PIC_REG): Add .p2align directive.
75666         * sysdeps/i386/i686/memcmp.S: Use macros for PIC register setup.
75667         * sysdeps/i386/i686/multiarch/bcopy.S: Likewise.
75668         * sysdeps/i386/i686/multiarch/bzero.S: Likewise.
75669         * sysdeps/i386/i686/multiarch/memchr.S: Likewise.
75670         * sysdeps/i386/i686/multiarch/memcmp-sse4.S: Likewise.
75671         * sysdeps/i386/i686/multiarch/memcmp.S: Likewise.
75672         * sysdeps/i386/i686/multiarch/memcpy-ssse3-rep.S: Likewise.
75673         * sysdeps/i386/i686/multiarch/memcpy-ssse3.S: Likewise.
75674         * sysdeps/i386/i686/multiarch/memcpy.S: Likewise.
75675         * sysdeps/i386/i686/multiarch/memcpy_chk.S: Likewise.
75676         * sysdeps/i386/i686/multiarch/memmove.S: Likewise.
75677         * sysdeps/i386/i686/multiarch/memmove_chk.S: Likewise.
75678         * sysdeps/i386/i686/multiarch/mempcpy.S: Likewise.
75679         * sysdeps/i386/i686/multiarch/mempcpy_chk.S: Likewise.
75680         * sysdeps/i386/i686/multiarch/memrchr.S: Likewise.
75681         * sysdeps/i386/i686/multiarch/memset-sse2-rep.S: Likewise.
75682         * sysdeps/i386/i686/multiarch/memset-sse2.S: Likewise.
75683         * sysdeps/i386/i686/multiarch/memset.S: Likewise.
75684         * sysdeps/i386/i686/multiarch/memset_chk.S: Likewise.
75685         * sysdeps/i386/i686/multiarch/rawmemchr.S: Likewise.
75686         * sysdeps/i386/i686/multiarch/strcasecmp.S: Likewise.
75687         * sysdeps/i386/i686/multiarch/strcat-sse2.S: Likewise.
75688         * sysdeps/i386/i686/multiarch/strcat.S: Likewise.
75689         * sysdeps/i386/i686/multiarch/strchr.S: Likewise.
75690         * sysdeps/i386/i686/multiarch/strcmp-sse4.S: Likewise.
75691         * sysdeps/i386/i686/multiarch/strcmp-ssse3.S: Likewise.
75692         * sysdeps/i386/i686/multiarch/strcmp.S: Likewise.
75693         * sysdeps/i386/i686/multiarch/strcpy-sse2.S: Likewise.
75694         * sysdeps/i386/i686/multiarch/strcpy.S: Likewise.
75695         * sysdeps/i386/i686/multiarch/strcspn.S: Likewise.
75696         * sysdeps/i386/i686/multiarch/strlen.S: Likewise.
75697         * sysdeps/i386/i686/multiarch/strncase.S: Likewise.
75698         * sysdeps/i386/i686/multiarch/strnlen.S: Likewise.
75699         * sysdeps/i386/i686/multiarch/strrchr.S: Likewise.
75700         * sysdeps/i386/i686/multiarch/strspn.S: Likewise.
75701         * sysdeps/i386/i686/multiarch/wcschr.S: Likewise.
75702         * sysdeps/i386/i686/multiarch/wcscmp.S: Likewise.
75703         * sysdeps/i386/i686/multiarch/wcscpy.S: Likewise.
75704         * sysdeps/i386/i686/multiarch/wcslen.S: Likewise.
75705         * sysdeps/i386/i686/multiarch/wcsrchr.S: Likewise.
75706         * sysdeps/i386/i686/multiarch/wmemcmp.S: Likewise.
75707
75708 2012-02-03  Joseph Myers  <joseph@codesourcery.com>
75709
75710         * math/tst-CMPLX.c: Include <stdio.h>.
75711
75712 2012-01-31  Joseph Myers  <joseph@codesourcery.com>
75713
75714         * sysdeps/powerpc/bits/mathdef.h (float_t): Always define as
75715         float.
75716         * sysdeps/sh/sh4/bits/mathdef.h: Likewise.
75717         * sysdeps/sparc/bits/mathdef.h: Likewise.
75718
75719 2012-01-31  Marek Polacek  <polacek@redhat.com>
75720
75721         * libio/libio.h: Don't define _PARAMS.
75722         * locale/programs/config.h: Don't define PARAMS.
75723         * stdlib/strtol_l.c: Likewise.
75724         (__strtol_l): Remove PARAMS from the prototype.
75725
75726 2012-01-31  Ulrich Drepper  <drepper@gmail.com>
75727
75728         * malloc/malloc.c: Remove name translation.  Don't use mixed-cap
75729         names.  Just use the correct names.  Remove unnecessary wrapper
75730         functions.
75731         * malloc/arena.c: Likewise.
75732         * malloc/hooks.c: Likewise.
75733
75734         * malloc/arena.c (arena_get2): Really don't call __get_nprocs if
75735         ARENA_TEST says not to.  Simplify test for creation of a new arena.
75736         Partially based on a patch by Siddhesh Poyarekar <siddhesh@redhat.com>.
75737
75738 2012-01-30  Ulrich Drepper  <drepper@gmail.com>
75739
75740         * elf/dl-tls.c (__tls_get_addr): Optimize by transforming all calls
75741         into tail calls.
75742         (update_get_addr): New function.
75743         (tls_get_addr_tail): Take GET_ADDR_ARGS parameter, remove
75744         GET_ADDR_MODULE parameter.
75745
75746 2012-01-30  Joseph Myers  <joseph@codesourcery.com>
75747
75748         * crypt/cert.c: Remove __STDC__ conditionals.
75749         * crypt/crypt-entry.c: Likewise.
75750         * crypt/crypt_util.c: Likewise.
75751         * libio/filedoalloc.c: Likewise.
75752         * libio/fileops.c: Likewise.
75753         * libio/genops.c: Likewise.
75754         * libio/iofclose.c: Likewise.
75755         * libio/iofdopen.c: Likewise.
75756         * libio/iofopen.c: Likewise.
75757         * libio/iofopen64.c: Likewise.
75758         * libio/iogetdelim.c: Likewise.
75759         * libio/iopopen.c: Likewise.
75760         * libio/obprintf.c: Likewise.
75761         * libio/oldfileops.c: Likewise.
75762         * libio/oldiofclose.c: Likewise.
75763         * libio/oldiofdopen.c: Likewise.
75764         * libio/oldiofopen.c: Likewise.
75765         * libio/oldiopopen.c: Likewise.
75766         * libio/wfiledoalloc.c: Likewise.
75767         * libio/wgenops.c: Likewise.
75768         * locale/programs/xmalloc.c: Likewise.
75769         * misc/syslog.c: Likewise.
75770         * stdio-common/xbug.c: Likewise.
75771         * string/memchr.c: Likewise.
75772         * string/memcmp.c: Likewise.
75773         * string/memrchr.c: Likewise.
75774         * string/rawmemchr.c: Likewise.
75775         * sysdeps/posix/getcwd.c: Likewise.
75776         * time/strftime_l.c: Likewise.
75777
75778 2012-01-30  Joseph Myers  <joseph@codesourcery.com>
75779
75780         * configure.in (libc_cv_cc_sse2avx): AC_SUBST.
75781         * config.make.in (config-cflags-sse2avx): Define.
75782         * sysdeps/x86_64/fpu/multiarch/Makefile (CFLAGS-slowexp-avx.c):
75783         Fix typo.
75784
75785 2012-01-29  Chris Metcalf  <cmetcalf@tilera.com>
75786
75787         * scripts/config.guess: Update from upstream config git repository.
75788         * scripts/config.sub: Likewise.
75789
75790 2012-01-28  Chris Metcalf  <cmetcalf@tilera.com>
75791
75792         * elf/elf.h (EM_TILEPRO, EM_TILEGX): New macros.
75793         (EM_NUM): Update.
75794         (R_TILEPRO_*, R_TILEGX_*): New macros.
75795
75796         * scripts/firstversions.awk: Fix bug in version range handling.
75797
75798         * sysdeps/unix/sysv/linux/grantpt.c: Use <> brackets for not-cancel.h.
75799
75800         * sysdeps/unix/sysv/linux/faccessat.c (faccessat): Call __fxstatat64.
75801
75802         * include/sys/epoll.h: New file.
75803         * sysdeps/unix/sysv/linux/epoll_pwait.c (epoll_pwait): Mark as
75804         libc_hidden_def.
75805
75806 2012-01-28  Ulrich Drepper  <drepper@gmail.com>
75807
75808         * sysdeps/x86_64/fpu/bits/mathinline.h (__signbitl): Optimize a bit.
75809         Avoid unnecessary __WORDSIZE == 64 test.
75810         (fmaxf): Use VEX format if possible.
75811         (fmax): Likewise.
75812         (fminf): Likewise.
75813         (fmin): Likewise.
75814
75815         * config.h.in: Define HAVE_SSE2AVX_SUPPORT.
75816         * math/math_private.h: Remove libc_fegetround* and
75817         libc_fesetround*.
75818         * sysdeps/i386/configure.in: Check for -msse2avx.
75819         * sysdeps/x86_64/fpu/math_private.h: Use VEX-encoded instructions
75820         also if SSE2AVX is defined.
75821         Remove libc_fegetround* and libc_fesetround*.
75822         * sysdeps/x86_64/fpu/multiarch/Makefile: Compile *-avx functions
75823         if config-cflags-sse2avx is yes.  Also add -DSSE2AVX to defines.
75824         * sysdeps/x86_64/fpu/multiarch/e_atan2.c: Use HAS_AVX again instead
75825         of HAS_YMM_USABLE.
75826         * sysdeps/x86_64/fpu/multiarch/e_exp.c: Likewise.
75827         * sysdeps/x86_64/fpu/multiarch/e_log.c: Likewise.
75828         * sysdeps/x86_64/fpu/multiarch/s_atan.c: Likewise.
75829         * sysdeps/x86_64/fpu/multiarch/s_sin.c: Likewise.
75830         * sysdeps/x86_64/fpu/multiarch/s_tan.c: Likewise.
75831
75832         * sysdeps/x86_64/fpu/math_private.h: Simplify use of AVX instructions.
75833
75834 2012-01-19  Adhemerval Zanella  <azanella@linux.vnet.ibm.com>
75835
75836         * sysdeps/powerpc/powerpc32/a2/memcpy.S: Fix for when cache line
75837         size is not set.
75838         * sysdeps/powerpc/powerpc64/a2/memcpy.S: Likewise.
75839
75840 2012-01-27  Ulrich Drepper  <drepper@gmail.com>
75841
75842         [BZ #13618]
75843         * elf/dl-open.c (dl_open_worker): Sort objects by dependency before
75844         relocation.
75845         * Makeconfig (libm): Define.
75846         * elf/Makefile: Add rules to build and run tst-relsort1.
75847         * elf/tst-relsort1.c: New file.
75848         * elf/tst-relsort1mod1.c: New file.
75849         * elf/tst-relsort1mod2.c: New file.
75850
75851 2012-01-27  Joseph Myers  <joseph@codesourcery.com>
75852
75853         * math/s_ldexp.c: Remove __STDC__ conditionals.
75854         * math/s_ldexpf.c: Likewise.
75855         * math/s_ldexpl.c: Likewise.
75856         * math/s_nextafter.c: Likewise.
75857         * math/s_nexttowardf.c: Likewise.
75858         * math/s_significand.c: Likewise.
75859         * math/s_significandf.c: Likewise.
75860         * math/s_significandl.c: Likewise.
75861         * math/w_jnl.c: Likewise.
75862         * sysdeps/i386/fpu/s_isinfl.c: Likewise.
75863         * sysdeps/i386/fpu/s_isnanl.c: Likewise.
75864         * sysdeps/i386/fpu/s_nextafterl.c: Likewise.
75865         * sysdeps/i386/fpu/s_nexttoward.c: Likewise.
75866         * sysdeps/i386/fpu/s_nexttowardf.c: Likewise.
75867         * sysdeps/ieee754/dbl-64/k_rem_pio2.c: Likewise.
75868         * sysdeps/ieee754/dbl-64/k_tan.c: Likewise.
75869         * sysdeps/ieee754/dbl-64/s_copysign.c: Likewise.
75870         * sysdeps/ieee754/dbl-64/s_erf.c: Likewise.
75871         * sysdeps/ieee754/dbl-64/s_fabs.c: Likewise.
75872         * sysdeps/ieee754/dbl-64/s_finite.c: Likewise.
75873         * sysdeps/ieee754/dbl-64/s_floor.c: Likewise.
75874         * sysdeps/ieee754/dbl-64/s_frexp.c: Likewise.
75875         * sysdeps/ieee754/dbl-64/s_ilogb.c: Likewise.
75876         * sysdeps/ieee754/dbl-64/s_isnan.c: Likewise.
75877         * sysdeps/ieee754/dbl-64/s_logb.c: Likewise.
75878         * sysdeps/ieee754/dbl-64/s_nearbyint.c: Likewise.
75879         * sysdeps/ieee754/dbl-64/s_tanh.c: Likewise.
75880         * sysdeps/ieee754/dbl-64/wordsize-64/s_isnan.c: Likewise.
75881         * sysdeps/ieee754/flt-32/e_acoshf.c: Likewise.
75882         * sysdeps/ieee754/flt-32/e_asinf.c: Likewise.
75883         * sysdeps/ieee754/flt-32/e_rem_pio2f.c: Likewise.
75884         * sysdeps/ieee754/flt-32/k_cosf.c: Likewise.
75885         * sysdeps/ieee754/flt-32/k_rem_pio2f.c: Likewise.
75886         * sysdeps/ieee754/flt-32/k_sinf.c: Likewise.
75887         * sysdeps/ieee754/flt-32/k_tanf.c: Likewise.
75888         * sysdeps/ieee754/flt-32/s_atanf.c: Likewise.
75889         * sysdeps/ieee754/flt-32/s_copysignf.c: Likewise.
75890         * sysdeps/ieee754/flt-32/s_cosf.c: Likewise.
75891         * sysdeps/ieee754/flt-32/s_erff.c: Likewise.
75892         * sysdeps/ieee754/flt-32/s_fabsf.c: Likewise.
75893         * sysdeps/ieee754/flt-32/s_finitef.c: Likewise.
75894         * sysdeps/ieee754/flt-32/s_frexpf.c: Likewise.
75895         * sysdeps/ieee754/flt-32/s_ilogbf.c: Likewise.
75896         * sysdeps/ieee754/flt-32/s_isnanf.c: Likewise.
75897         * sysdeps/ieee754/flt-32/s_logbf.c: Likewise.
75898         * sysdeps/ieee754/flt-32/s_nextafterf.c: Likewise.
75899         * sysdeps/ieee754/flt-32/s_sinf.c: Likewise.
75900         * sysdeps/ieee754/flt-32/s_tanf.c: Likewise.
75901         * sysdeps/ieee754/flt-32/s_tanhf.c: Likewise.
75902         * sysdeps/ieee754/k_standard.c: Likewise.
75903         * sysdeps/ieee754/ldbl-128/e_asinl.c: Likewise.
75904         * sysdeps/ieee754/ldbl-128/k_tanl.c: Likewise.
75905         * sysdeps/ieee754/ldbl-128/s_asinhl.c: Likewise.
75906         * sysdeps/ieee754/ldbl-128/s_ceill.c: Likewise.
75907         * sysdeps/ieee754/ldbl-128/s_copysignl.c: Likewise.
75908         * sysdeps/ieee754/ldbl-128/s_cosl.c: Likewise.
75909         * sysdeps/ieee754/ldbl-128/s_erfl.c: Likewise.
75910         * sysdeps/ieee754/ldbl-128/s_fabsl.c: Likewise.
75911         * sysdeps/ieee754/ldbl-128/s_finitel.c: Likewise.
75912         * sysdeps/ieee754/ldbl-128/s_floorl.c: Likewise.
75913         * sysdeps/ieee754/ldbl-128/s_frexpl.c: Likewise.
75914         * sysdeps/ieee754/ldbl-128/s_ilogbl.c: Likewise.
75915         * sysdeps/ieee754/ldbl-128/s_isnanl.c: Likewise.
75916         * sysdeps/ieee754/ldbl-128/s_logbl.c: Likewise.
75917         * sysdeps/ieee754/ldbl-128/s_modfl.c: Likewise.
75918         * sysdeps/ieee754/ldbl-128/s_nearbyintl.c: Likewise.
75919         * sysdeps/ieee754/ldbl-128/s_nextafterl.c: Likewise.
75920         * sysdeps/ieee754/ldbl-128/s_nexttoward.c: Likewise.
75921         * sysdeps/ieee754/ldbl-128/s_nexttowardf.c: Likewise.
75922         * sysdeps/ieee754/ldbl-128/s_rintl.c: Likewise.
75923         * sysdeps/ieee754/ldbl-128/s_scalblnl.c: Likewise.
75924         * sysdeps/ieee754/ldbl-128/s_scalbnl.c: Likewise.
75925         * sysdeps/ieee754/ldbl-128/s_sinl.c: Likewise.
75926         * sysdeps/ieee754/ldbl-128/s_tanhl.c: Likewise.
75927         * sysdeps/ieee754/ldbl-128/s_tanl.c: Likewise.
75928         * sysdeps/ieee754/ldbl-128/w_expl.c: Likewise.
75929         * sysdeps/ieee754/ldbl-128ibm/e_acosl.c: Likewise.
75930         * sysdeps/ieee754/ldbl-128ibm/e_asinl.c: Likewise.
75931         * sysdeps/ieee754/ldbl-128ibm/e_jnl.c: Likewise.
75932         * sysdeps/ieee754/ldbl-128ibm/k_tanl.c: Likewise.
75933         * sysdeps/ieee754/ldbl-128ibm/s_asinhl.c: Likewise.
75934         * sysdeps/ieee754/ldbl-128ibm/s_ceill.c: Likewise.
75935         * sysdeps/ieee754/ldbl-128ibm/s_copysignl.c: Likewise.
75936         * sysdeps/ieee754/ldbl-128ibm/s_cosl.c: Likewise.
75937         * sysdeps/ieee754/ldbl-128ibm/s_erfl.c: Likewise.
75938         * sysdeps/ieee754/ldbl-128ibm/s_fabsl.c: Likewise.
75939         * sysdeps/ieee754/ldbl-128ibm/s_floorl.c: Likewise.
75940         * sysdeps/ieee754/ldbl-128ibm/s_frexpl.c: Likewise.
75941         * sysdeps/ieee754/ldbl-128ibm/s_ilogbl.c: Likewise.
75942         * sysdeps/ieee754/ldbl-128ibm/s_llrintl.c: Likewise.
75943         * sysdeps/ieee754/ldbl-128ibm/s_llroundl.c: Likewise.
75944         * sysdeps/ieee754/ldbl-128ibm/s_logbl.c: Likewise.
75945         * sysdeps/ieee754/ldbl-128ibm/s_lrintl.c: Likewise.
75946         * sysdeps/ieee754/ldbl-128ibm/s_lroundl.c: Likewise.
75947         * sysdeps/ieee754/ldbl-128ibm/s_modfl.c: Likewise.
75948         * sysdeps/ieee754/ldbl-128ibm/s_nearbyintl.c: Likewise.
75949         * sysdeps/ieee754/ldbl-128ibm/s_nextafterl.c: Likewise.
75950         * sysdeps/ieee754/ldbl-128ibm/s_nexttoward.c: Likewise.
75951         * sysdeps/ieee754/ldbl-128ibm/s_nexttowardf.c: Likewise.
75952         * sysdeps/ieee754/ldbl-128ibm/s_rintl.c: Likewise.
75953         * sysdeps/ieee754/ldbl-128ibm/s_roundl.c: Likewise.
75954         * sysdeps/ieee754/ldbl-128ibm/s_scalblnl.c: Likewise.
75955         * sysdeps/ieee754/ldbl-128ibm/s_scalbnl.c: Likewise.
75956         * sysdeps/ieee754/ldbl-128ibm/s_sinl.c: Likewise.
75957         * sysdeps/ieee754/ldbl-128ibm/s_tanhl.c: Likewise.
75958         * sysdeps/ieee754/ldbl-128ibm/s_tanl.c: Likewise.
75959         * sysdeps/ieee754/ldbl-128ibm/s_truncl.c: Likewise.
75960         * sysdeps/ieee754/ldbl-96/e_asinl.c: Likewise.
75961         * sysdeps/ieee754/ldbl-96/e_hypotl.c: Likewise.
75962         * sysdeps/ieee754/ldbl-96/s_asinhl.c: Likewise.
75963         * sysdeps/ieee754/ldbl-96/s_ceill.c: Likewise.
75964         * sysdeps/ieee754/ldbl-96/s_copysignl.c: Likewise.
75965         * sysdeps/ieee754/ldbl-96/s_cosl.c: Likewise.
75966         * sysdeps/ieee754/ldbl-96/s_erfl.c: Likewise.
75967         * sysdeps/ieee754/ldbl-96/s_fabsl.c: Likewise.
75968         * sysdeps/ieee754/ldbl-96/s_finitel.c: Likewise.
75969         * sysdeps/ieee754/ldbl-96/s_floorl.c: Likewise.
75970         * sysdeps/ieee754/ldbl-96/s_frexpl.c: Likewise.
75971         * sysdeps/ieee754/ldbl-96/s_ilogbl.c: Likewise.
75972         * sysdeps/ieee754/ldbl-96/s_isnanl.c: Likewise.
75973         * sysdeps/ieee754/ldbl-96/s_logbl.c: Likewise.
75974         * sysdeps/ieee754/ldbl-96/s_nearbyintl.c: Likewise.
75975         * sysdeps/ieee754/ldbl-96/s_nextafterl.c: Likewise.
75976         * sysdeps/ieee754/ldbl-96/s_nexttoward.c: Likewise.
75977         * sysdeps/ieee754/ldbl-96/s_nexttowardf.c: Likewise.
75978         * sysdeps/ieee754/ldbl-96/s_rintl.c: Likewise.
75979         * sysdeps/ieee754/ldbl-96/s_sinl.c: Likewise.
75980         * sysdeps/ieee754/ldbl-96/s_tanhl.c: Likewise.
75981         * sysdeps/ieee754/ldbl-96/s_tanl.c: Likewise.
75982         * sysdeps/ieee754/s_matherr.c: Likewise.
75983         * sysdeps/powerpc/fpu/w_sqrt.c: Likewise.
75984         * sysdeps/powerpc/fpu/w_sqrtf.c: Likewise.
75985         * sysdeps/powerpc/powerpc64/power4/fpu/w_sqrt.c: Likewise.
75986         * sysdeps/powerpc/powerpc64/power4/fpu/w_sqrtf.c: Likewise.
75987
75988 2012-01-26  Joseph Myers  <joseph@codesourcery.com>
75989
75990         * crypt/md5.h: Remove __STDC__ conditionals.
75991         * libio/libioP.h: Likewise.
75992         * locale/programs/config.h: Likewise.
75993         * sysdeps/generic/sysdep.h: Likewise.
75994         * sysdeps/i386/asm-syntax.h: Likewise.
75995         * sysdeps/s390/asm-syntax.h: Likewise.
75996         * sysdeps/unix/sysdep.h: Likewise.
75997         * sysdeps/unix/sysv/linux/powerpc/powerpc32/sysdep.h: Likewise.
75998         * sysdeps/unix/sysv/linux/powerpc/powerpc64/sysdep.h: Likewise.
75999
76000 2012-01-26  Joseph Myers  <joseph@codesourcery.com>
76001
76002         * libio/libio.h: Remove __STDC__ conditionals.
76003         * malloc/obstack.h: Likewise.
76004         * math/complex.h: Likewise.
76005         * math/math.h: Likewise.
76006         * sysdeps/generic/_G_config.h: Likewise.
76007         * sysdeps/gnu/_G_config.h: Likewise.
76008         * sysdeps/mach/hurd/_G_config.h: Likewise.
76009         * sysdeps/powerpc/bits/mathdef.h: Likewise.
76010         * sysdeps/sh/sh4/bits/mathdef.h: Likewise.
76011         * sysdeps/sparc/bits/mathdef.h: Likewise.
76012
76013 2012-01-26  Ulrich Drepper  <drepper@gmail.com>
76014
76015         [BZ #13583]
76016         * sysdeps/x86_64/multiarch/init-arch.h: Define bit_OSXSAVE.
76017         Clean up HAS_* macros.
76018         * sysdeps/x86_64/multiarch/init-arch.c (__init_cpu_features): If
76019         bit_AVX is set also check OSXAVE/XCR0 and set bit_YMM_Usable if
76020         possible.
76021         * sysdeps/x86_64/fpu/multiarch/e_atan2.c: Use HAS_YMM_USABLE, not
76022         HAS_AVX.
76023         * sysdeps/x86_64/fpu/multiarch/e_exp.c: Likewise.
76024         * sysdeps/x86_64/fpu/multiarch/e_log.c: Likewise.
76025         * sysdeps/x86_64/fpu/multiarch/s_atan.c: Likewise.
76026         * sysdeps/x86_64/fpu/multiarch/s_sin.c: Likewise.
76027         * sysdeps/x86_64/fpu/multiarch/s_tan.c: Likewise.
76028
76029 2012-01-25  Joseph Myers  <joseph@codesourcery.com>
76030
76031         * elf/tst-unique3.cc (gets): Remove declaration.
76032         * elf/tst-unique3lib.cc (gets): Likewise.
76033         * elf/tst-unique3lib2.cc (gets): Likewise.
76034         * elf/tst-unique4.cc (gets): Likewise.
76035
76036 2012-01-24  Ulrich Drepper  <drepper@gmail.com>
76037
76038         * include/stdio.h: Add C++ protection.  Add gets declarations and
76039         definitions.
76040         * debug/tst-chk1.c: Don't declare gets here.
76041         * stdio-common/tst-gets.c: Likewise.
76042
76043 2012-01-24  Joseph Myers  <joseph@codesourcery.com>
76044
76045         * posix/glob: Remove directory.
76046
76047 2012-01-24  Joseph Myers  <joseph@codesourcery.com>
76048
76049         * wcsmbs/Makefile (tst-c16c32-1-ENV): Define.
76050
76051 2012-01-22  Pino Toscano  <toscano.pino@tiscali.it>
76052
76053         * sysdeps/mach/hurd/socket.c (__socket): Return EAFNOSUPPORT instead
76054         of the non-standard EPFNOSUPPORT.
76055
76056 2011-12-26  Samuel Thibault  <samuel.thibault@ens-lyon.org>
76057
76058         * sysdeps/mach/hurd/mmap.c (__mmap): When MAPADDR is nonzero, try
76059         __vm_allocate and __vm_map with ANYWHERE set to 0 first, and try with
76060         ANYWHERE set to 1 only on KERN_NO_SPACE error.
76061
76062 2012-01-21  Ulrich Drepper  <drepper@gmail.com>
76063
76064         * wcsmbs/uchar.h: Test __STDC_VERSION__.
76065
76066 2012-01-20  Ulrich Drepper  <drepper@gmail.com>
76067
76068         * nscd/aicache.c (addhstaiX): Do not cache negative results of
76069         transient errors.
76070         * nscd/grpcache.c (cache_addgr): Likewise.
76071         * nscd/hstcache.c (cache_addhst): Likewise.
76072         * nscd/initgrcache.c (addinitgroupsX): Likewise.
76073         * nscd/pwdcache.c (cache_addpw): Likewise.
76074         * nscd/servicescache.c (cache_addserv): Likewise.
76075
76076 2012-01-16  Ulrich Drepper  <drepper@gmail.com>
76077
76078         * malloc/malloc.c: Various cleanups.
76079         * malloc/hooks.c: Likewise.
76080
76081         * stdlib/Makefile (tests): Add bug-fmtmsg1.
76082         * stdlib/bug-fmtmsg1.c: New file.
76083
76084         * stdlib/fmtmsg.c (init): Add missing unlock.
76085         Patch by Peng Haitao <penght@cn.fujitsu.com>.
76086
76087 2012-01-12  Marek Polacek  <polacek@redhat.com>
76088
76089         * libio/bits/stdio2.h: Do not define gets for ISO C11, ISO C++11,
76090         and _GNU_SOURCE.
76091
76092 2012-01-04  Will Schmidt  <will_schmidt@vnet.ibm.com>
76093
76094         * powerpc/powerpc32/sysdep.h: Add GLUE and GENERATE_GOT_LABEL macros.
76095         * unix/sysv/linux/powerpc/powerpc32/getcontext-common.S: Call
76096         macro to ensure uniqueness of label name.
76097         * unix/sysv/linux/powerpc/powerpc32/setcontext-common.S: Likewise.
76098         * unix/sysv/linux/powerpc/powerpc32/swapcontext-common.S: Likewise.
76099
76100 2012-01-11  Ulrich Drepper  <drepper@gmail.com>
76101
76102         * sysdeps/ieee754/dbl-64/wordsize-64/e_acosh.c: New file.
76103
76104         * sysdeps/ieee754/dbl-64/s_scalbln.c: Add branch prediction.
76105         * sysdeps/ieee754/flt-32/s_scalblnf.c: Likewise.
76106         * sysdeps/ieee754/ldbl-96/s_scalblnl.c: Likewise.
76107         * sysdeps/ieee754/dbl-64/wordsize-64/s_scalbln.c: New file.
76108
76109 2012-01-10  Ulrich Drepper  <drepper@gmail.com>
76110
76111         * sysdeps/ieee754/dbl-64/wordsize-64/s_modf.c: New file.
76112
76113         * sysdeps/ieee754/dbl-64/s_modf.c: Add branch prediction.
76114         * sysdeps/ieee754/flt-32/s_modff.c: Likewise.
76115         * sysdeps/ieee754/ldbl-96/s_modfl.c: Likewise.
76116
76117         * math/bits/mathcalls.h: Add const attribute to fmin and fmax.
76118
76119         * sysdeps/ieee754/dbl-64/s_scalbn.c: Add branch prediction.
76120         * sysdeps/ieee754/flt-32/s_scalbnf.c: Likewise.
76121         * sysdeps/ieee754/ldbl-96/s_scalbnl.c: Likewise.
76122         * sysdeps/ieee754/dbl-64/wordsize-64/s_scalbn.c: New file.
76123
76124         * math/bits/math-finite.h: Add ldexp support.
76125
76126 2012-01-10  Marek Polacek  <polacek@redhat.com>
76127
76128         * locale/programs/localedef.h (show_archive_content): Add noreturn
76129         attribute.
76130
76131 2012-01-09  Ulrich Drepper  <drepper@gmail.com>
76132
76133         * sysdeps/ieee754/dbl-64/s_log1p.c (__log1p): Add branch prediction.
76134
76135 2012-01-08  Ulrich Drepper  <drepper@gmail.com>
76136
76137         * io/bits/poll2.h: Add __BEGIN/__END_DECLS.
76138
76139         * io/Makefile (headers): Add bits/poll2.h.
76140
76141 2011-01-05  Will Schmidt  <will_schmidt@vnet.ibm.com>
76142
76143         * sysdeps/unix/sysv/linux/powerpc/powerpc32/getcontext.S: Fix a
76144         typo #include statement.
76145
76146 2012-01-08  Ulrich Drepper  <drepper@gmail.com>
76147
76148         * include/sys/cdefs.h: Define __attribute_alloc_size.
76149         * catgets/gencat.c: Add alloc_size attribute and apply consistently
76150         the malloc attribute to xmalloc, xcalloc, xrealloc, and xstrdup.
76151         * elf/pldd.c: Likewise.
76152         * iconv/iconv_charmap.c: Likewise.
76153         * iconv/iconvconfig.c: Likewise.
76154         * iconv/strtab.c: Likewise.
76155         * locale/programs/locale.c: Likewise.
76156         * locale/programs/localedef.h: Likewise.
76157         * locale/programs/simple-hash.c: Likewise.
76158         * nscd/nscd.h: Likewise.
76159         * nss/makedb.c: Likewise.
76160         * sysdeps/generic/ldconfig.h: Likewise.
76161         * locale/programs/localedef.c: Remove xmalloc prototype.
76162         * nscd/mem.c: Remove xmalloc and xcalloc prototypes.
76163
76164 2012-01-05  Paul Pluzhnikov  <ppluzhnikov@google.com>
76165
76166         * stdio-common/vfscanf.c (_IO_vfscanf_internal): Use alloca when
76167         appropriate.
76168
76169 2012-01-08  Ulrich Drepper  <drepper@gmail.com>
76170
76171         * math/Makefile (tests): Add tst-CMPLX.
76172         * math/tst-CMPLX.c: New file.
76173
76174         * math/complex.h (CMPLXL): Fix typo.
76175
76176         * debug/Makefile (routines): Add poll_chk and ppoll_chk.
76177         * debug/Versions: Export __pool_chk and __ppoll_chk from libc for
76178         GLIBC_2.16.
76179         * debug/tst-chk1.c: Add poll and ppoll tests.
76180         * io/sys/poll.h: Include bits/poll2.h for _FORTIFY_SOURCE.
76181         * include/sys/poll.h: Add hidden proto for ppoll.
76182         * sysdeps/unix/sysv/linux/ppoll.c: Add hidden def.
76183         * sysdeps/mach/hurd/ppoll.c: Likewise.
76184         * io/ppoll.c: Likewise.
76185         * debug/poll_chk.c: New file.
76186         * debug/ppoll_chk.c: New file.
76187         * include/bits/poll2.h: New file.
76188         * io/bits/poll2.h: New file.
76189
76190         [BZ #1350]
76191         * math/complex.h (CMPLX, CMPLXF, CMPLXL): Define.
76192
76193         * configure.in: static is always set to yes.  Remove.
76194         * config.make.in: Don't set build-static.
76195         * Makeconfig: Remove use of build-static.
76196         * dlfcn/Makefile: Likewise.
76197         * elf/Makefile: Likewise.
76198         * math/Makefile: Likewise.
76199         * misc/Makefile: Likewise.
76200         * nptl/Makefile: Likewise.
76201         * sysdeps/mach/hurd/Makefile: Likewise.
76202
76203         * configure.in: PWD_P is not used anymore.
76204         * config.make.in: Remove PWD_P entry.
76205
76206         * configure.in: Remove last remnants of RANLIB.
76207         No need to check for signed size_t anymore.
76208         Don't set libc_commonpagesize and libc_relro_required here for Alpha
76209         and IA-64.
76210         Remove __builtin_expect test because we require at least gcc 3.4.
76211         * aclocal.m4: Likewise.
76212
76213         * wcsmbs/mbrtoc16.c: Implement using towc function.
76214         * wcsmbs/wcsmbsload.h: No need for toc16 and fromc16 functions.
76215         * wcsmbs/wcsmbsload.c: Likewise.
76216         * iconv/gconv_simple.c: Likewise.
76217         * iconv/gconv_int.h: Likewise.
76218         * iconv/gconv_builtin.h: Likewise.
76219         * iconv/iconv_prog.c: Remove CHAR16 handling.
76220
76221         * wcsmbs/c16rtomb.c: Remove #if 0'ed code.
76222
76223         * wcsmbs/mbrtowc.c: Better check for invalid inputs.
76224
76225         * configure.in: Remove --with-elf and --enable-bounded options.
76226         Dont set base_machine for ia64.  More non-ELF conditions removed.
76227         Remove testing and setting of leading underscore information.
76228         * config.make.in (build-bounded): Set to no.
76229         * config.h.in: Remove NO_UNDERSCORES entry.
76230         * include/libc-symbols.h: Don't define HAVE_WEAK_SYMBOLS.  ELF has
76231         them.
76232         * csu/start.c: Remove !NO_UNDERSCORE code.
76233         * locale/localeinfo.h: Likewise.
76234         * sysdeps/generic/machine-gmon.h: Likewise.
76235         * sysdeps/generic/sysdep.h: Likewise.
76236         * sysdeps/i386/sysdep.h: Likewise.
76237         * sysdeps/ieee754/ldbl-opt/math_ldbl_opt.h: Likewise.
76238         * sysdeps/mach/sysdep.h: Likewise.
76239         * sysdeps/s390/s390-32/sysdep.h: Likewise.
76240         * sysdeps/s390/s390-64/sysdep.h: Likewise.
76241         * sysdeps/sh/sysdep.h: Likewise.
76242         * sysdeps/sparc/sparc32/alloca.S: Likewise.
76243         * sysdeps/unix/i386/sysdep.S: Likewise.
76244         * sysdeps/unix/sparc/start.c: Likewise.
76245         * sysdeps/unix/sparc/sysdep.S: Likewise.
76246         * sysdeps/unix/sparc/sysdep.h: Likewise.
76247         * sysdeps/unix/start.c: Likewise.
76248         * sysdeps/unix/x86_64/sysdep.S: Likewise.
76249         * sysdeps/x86_64/sysdep.h: Likewise.
76250
76251 2012-01-07  Ulrich Drepper  <drepper@gmail.com>
76252
76253         [BZ #13553]
76254         * misc/sys/cdefs.h: Remove __const, __signed, and __volatile definition
76255         for non-gcc.
76256         * argp/argp-fmtstream.h: Use const instead __const.
76257         * argp/argp.h: Likewise.
76258         * assert/assert.h: Likewise.
76259         * bits/fenv.h: Likewise.
76260         * bits/sched.h: Likewise.
76261         * bits/sigset.h: Likewise.
76262         * bits/sigthread.h: Likewise.
76263         * catgets/nl_types.h: Likewise.
76264         * conform/data/pthread.h-data: Likewise.
76265         * crypt/crypt-private.h: Likewise.
76266         * crypt/crypt.h: Likewise.
76267         * crypt/crypt_util.c: Likewise.
76268         * ctype/ctype.h: Likewise.
76269         * debug/execinfo.h: Likewise.
76270         * debug/mbsnrtowcs_chk.c: Likewise.
76271         * debug/mbsrtowcs_chk.c: Likewise.
76272         * debug/wcsnrtombs_chk.c: Likewise.
76273         * debug/wcsrtombs_chk.c: Likewise.
76274         * debug/wcstombs_chk.c: Likewise.
76275         * dirent/dirent.h: Likewise.
76276         * dlfcn/dlfcn.h: Likewise.
76277         * elf/neededtest4.c: Likewise.
76278         * grp/grp.h: Likewise.
76279         * gshadow/gshadow.h: Likewise.
76280         * iconv/gconv.h: Likewise.
76281         * iconv/gconv_int.h: Likewise.
76282         * iconv/gconv_simple.c: Likewise.
76283         * iconv/iconv.h: Likewise.
76284         * iconv/loop.c: Likewise.
76285         * iconv/skeleton.c: Likewise.
76286         * include/aio.h: Likewise.
76287         * include/aliases.h: Likewise.
76288         * include/argz.h: Likewise.
76289         * include/arpa/inet.h: Likewise.
76290         * include/assert.h: Likewise.
76291         * include/dirent.h: Likewise.
76292         * include/dlfcn.h: Likewise.
76293         * include/execinfo.h: Likewise.
76294         * include/fcntl.h: Likewise.
76295         * include/fenv.h: Likewise.
76296         * include/glob.h: Likewise.
76297         * include/grp.h: Likewise.
76298         * include/libintl.h: Likewise.
76299         * include/mntent.h: Likewise.
76300         * include/netdb.h: Likewise.
76301         * include/pwd.h: Likewise.
76302         * include/rpc/netdb.h: Likewise.
76303         * include/sched.h: Likewise.
76304         * include/search.h: Likewise.
76305         * include/shadow.h: Likewise.
76306         * include/signal.h: Likewise.
76307         * include/stdio.h: Likewise.
76308         * include/stdlib.h: Likewise.
76309         * include/string.h: Likewise.
76310         * include/sys/socket.h: Likewise.
76311         * include/sys/stat.h: Likewise.
76312         * include/sys/statfs.h: Likewise.
76313         * include/sys/statvfs.h: Likewise.
76314         * include/sys/syslog.h: Likewise.
76315         * include/sys/time.h: Likewise.
76316         * include/sys/uio.h: Likewise.
76317         * include/time.h: Likewise.
76318         * include/unistd.h: Likewise.
76319         * include/utmp.h: Likewise.
76320         * include/wchar.h: Likewise.
76321         * include/wctype.h: Likewise.
76322         * inet/aliases.h: Likewise.
76323         * inet/arpa/inet.h: Likewise.
76324         * inet/netinet/ether.h: Likewise.
76325         * inet/netinet/in.h: Likewise.
76326         * intl/libintl.h: Likewise.
76327         * io/bits/fcntl2.h: Likewise.
76328         * io/fcntl.h: Likewise.
76329         * io/ftw.h: Likewise.
76330         * io/sys/poll.h: Likewise.
76331         * io/sys/stat.h: Likewise.
76332         * io/sys/statfs.h: Likewise.
76333         * io/sys/statvfs.h: Likewise.
76334         * io/utime.h: Likewise.
76335         * libio/bits/stdio.h: Likewise.
76336         * libio/bits/stdio2.h: Likewise.
76337         * libio/libio.h: Likewise.
76338         * libio/libioP.h: Likewise.
76339         * libio/stdio.h: Likewise.
76340         * locale/lc-ctype.c: Likewise.
76341         * locale/locale.h: Likewise.
76342         * login/utmp.h: Likewise.
76343         * malloc/arena.c: Likewise.
76344         * malloc/malloc.c: Likewise.
76345         * malloc/malloc.h: Likewise.
76346         * malloc/mcheck.c: Likewise.
76347         * malloc/mtrace.c: Likewise.
76348         * math/bits/mathcalls.h: Likewise.
76349         * math/fenv.h: Likewise.
76350         * math/math_private.h: Likewise.
76351         * misc/bits/error.h: Likewise.
76352         * misc/bits/syslog.h: Likewise.
76353         * misc/err.h: Likewise.
76354         * misc/error.h: Likewise.
76355         * misc/fstab.h: Likewise.
76356         * misc/mntent.h: Likewise.
76357         * misc/regexp.h: Likewise.
76358         * misc/search.h: Likewise.
76359         * misc/sgtty.h: Likewise.
76360         * misc/sys/mman.h: Likewise.
76361         * misc/sys/syslog.h: Likewise.
76362         * misc/sys/uio.h: Likewise.
76363         * misc/sys/xattr.h: Likewise.
76364         * misc/ttyent.h: Likewise.
76365         * nis/rpcsvc/ypclnt.h: Likewise.
76366         * nss/nss.h: Likewise.
76367         * posix/bits/unistd.h: Likewise.
76368         * posix/fnmatch.h: Likewise.
76369         * posix/glob.h: Likewise.
76370         * posix/sched.h: Likewise.
76371         * posix/spawn.h: Likewise.
76372         * posix/sys/wait.h: Likewise.
76373         * posix/unistd.h: Likewise.
76374         * posix/wordexp.h: Likewise.
76375         * pwd/pwd.h: Likewise.
76376         * resolv/netdb.h: Likewise.
76377         * resource/sys/resource.h: Likewise.
76378         * rt/aio.h: Likewise.
76379         * rt/bits/mqueue2.h: Likewise.
76380         * rt/mqueue.h: Likewise.
76381         * shadow/shadow.h: Likewise.
76382         * signal/signal.h: Likewise.
76383         * socket/send.c: Likewise.
76384         * socket/sendto.c: Likewise.
76385         * socket/sys/socket.h: Likewise.
76386         * stdio-common/printf.h: Likewise.
76387         * stdlib/bits/stdlib.h: Likewise.
76388         * stdlib/fmtmsg.h: Likewise.
76389         * stdlib/monetary.h: Likewise.
76390         * stdlib/stdlib.h: Likewise.
76391         * stdlib/ucontext.h: Likewise.
76392         * streams/stropts.h: Likewise.
76393         * string/argz.h: Likewise.
76394         * string/bits/string2.h: Likewise.
76395         * string/string.h: Likewise.
76396         * string/strings.h: Likewise.
76397         * sunrpc/rpc/auth.h: Likewise.
76398         * sunrpc/rpc/auth_des.h: Likewise.
76399         * sunrpc/rpc/clnt.h: Likewise.
76400         * sunrpc/rpc/netdb.h: Likewise.
76401         * sunrpc/rpc/pmap_clnt.h: Likewise.
76402         * sunrpc/rpc/xdr.h: Likewise.
76403         * sysdeps/generic/inttypes.h: Likewise.
76404         * sysdeps/generic/net/if.h: Likewise.
76405         * sysdeps/generic/sys/swap.h: Likewise.
76406         * sysdeps/gnu/net/if.h: Likewise.
76407         * sysdeps/gnu/utmpx.h: Likewise.
76408         * sysdeps/i386/fpu/bits/fenv.h: Likewise.
76409         * sysdeps/i386/i486/bits/string.h: Likewise.
76410         * sysdeps/ieee754/ldbl-opt/nldbl-strtold_l.c: Likewise.
76411         * sysdeps/s390/bits/string.h: Likewise.
76412         * sysdeps/s390/fpu/bits/fenv.h: Likewise.
76413         * sysdeps/sparc/fpu/bits/fenv.h: Likewise.
76414         * sysdeps/sparc/fpu/bits/mathinline.h: Likewise.
76415         * sysdeps/unix/sysv/linux/bits/resource.h: Likewise.
76416         * sysdeps/unix/sysv/linux/bits/sched.h: Likewise.
76417         * sysdeps/unix/sysv/linux/bits/sigset.h: Likewise.
76418         * sysdeps/unix/sysv/linux/bits/socket.h: Likewise.
76419         * sysdeps/unix/sysv/linux/bits/sys_errlist.h: Likewise.
76420         * sysdeps/unix/sysv/linux/bits/uio.h: Likewise.
76421         * sysdeps/unix/sysv/linux/i386/glob64.c: Likewise.
76422         * sysdeps/unix/sysv/linux/i386/olddirent.h: Likewise.
76423         * sysdeps/unix/sysv/linux/preadv.c: Likewise.
76424         * sysdeps/unix/sysv/linux/prlimit.c: Likewise.
76425         * sysdeps/unix/sysv/linux/pwritev.c: Likewise.
76426         * sysdeps/unix/sysv/linux/readv.c: Likewise.
76427         * sysdeps/unix/sysv/linux/s390/s390-32/utmp-convert.h: Likewise.
76428         * sysdeps/unix/sysv/linux/s390/s390-32/utmpx32.h: Likewise.
76429         * sysdeps/unix/sysv/linux/sparc/bits/socket.h: Likewise.
76430         * sysdeps/unix/sysv/linux/sparc/sparc32/sigaction.c: Likewise.
76431         * sysdeps/unix/sysv/linux/sparc/sparc64/sigaction.c: Likewise.
76432         * sysdeps/unix/sysv/linux/sparc/sys/epoll.h: Likewise.
76433         * sysdeps/unix/sysv/linux/sparc/sys/timerfd.h: Likewise.
76434         * sysdeps/unix/sysv/linux/sys/acct.h: Likewise.
76435         * sysdeps/unix/sysv/linux/sys/epoll.h: Likewise.
76436         * sysdeps/unix/sysv/linux/sys/mount.h: Likewise.
76437         * sysdeps/unix/sysv/linux/sys/swap.h: Likewise.
76438         * sysdeps/unix/sysv/linux/sys/timerfd.h: Likewise.
76439         * sysdeps/unix/sysv/linux/x86_64/sys/epoll.h: Likewise.
76440         * sysdeps/x86_64/fpu/bits/fenv.h: Likewise.
76441         * sysdeps/x86_64/strcasecmp_l-nonascii.c: Likewise.
76442         * sysdeps/x86_64/strncase_l-nonascii.c: Likewise.
76443         * sysvipc/sys/ipc.h: Likewise.
76444         * sysvipc/sys/msg.h: Likewise.
76445         * sysvipc/sys/sem.h: Likewise.
76446         * sysvipc/sys/shm.h: Likewise.
76447         * termios/termios.h: Likewise.
76448         * time/sys/time.h: Likewise.
76449         * time/time.h: Likewise.
76450         * wcsmbs/bits/wchar2.h: Likewise.
76451         * wcsmbs/uchar.h: Likewise.
76452         * wcsmbs/wchar.h: Likewise.
76453         * wctype/wctype.h: Likewise.
76454
76455         [BZ #13551]
76456         * Makeconfig: Remove all but ELF support including AIX support.
76457         * Makerules: Likewise.
76458         * config.h.in: Likewise.
76459         * config.make.in: Likewise.
76460         * configure: Likewise.
76461         * configure.in: Likewise.
76462         * csu/Makefile: Likewise.
76463         * csu/version.c: Likewise.
76464         * debug/Makefile: Likewise.
76465         * dlfcn/Makefile: Likewise.
76466         * elf/Makefile: Likewise.
76467         * extra-lib.mk: Likewise.
76468         * iconv/Makefile: Likewise.
76469         * include/libc-symbols.h: Likewise.
76470         * include/shlib-compat.h: Likewise.
76471         * resolv/Makefile: Likewise.
76472         * resolv/res_libc.c: Likewise.
76473         * rt/Makefile: Likewise.
76474         * sysdeps/i386/asm-syntax.h: Likewise.
76475         * sysdeps/i386/sysdep.h: Likewise.
76476         * sysdeps/ieee754/ldbl-opt/math_ldbl_opt.h: Likewise.
76477         * sysdeps/mach/sysdep.h: Likewise.
76478         * sysdeps/powerpc/powerpc32/Makefile: Likewise.
76479         * sysdeps/powerpc/powerpc64/Makefile: Likewise.
76480         * sysdeps/s390/asm-syntax.h: Likewise.
76481         * sysdeps/s390/s390-32/sysdep.h: Likewise.
76482         * sysdeps/s390/s390-64/sysdep.h: Likewise.
76483         * sysdeps/sh/sysdep.h: Likewise.
76484         * sysdeps/unix/sparc/sysdep.h: Likewise.
76485         * sysdeps/wordsize-32/divdi3.c: Likewise.
76486         * sysdeps/x86_64/sysdep.h: Likewise.
76487
76488         * argp/Versions: Remove _argp_unlock_xxx.
76489
76490         [BZ #13559]
76491         * abilist/ld.abilist: Update.  Adjust for removal of tls option.
76492         * abilist/libBrokenLocale.abilist: Likewise.
76493         * abilist/libanl.abilist: Likewise.
76494         * abilist/libc.abilist: Likewise.
76495         * abilist/libcrypt.abilist: Likewise.
76496         * abilist/libdl.abilist: Likewise.
76497         * abilist/libm.abilist: Likewise.
76498         * abilist/libnsl.abilist: Likewise.
76499         * abilist/libpthread.abilist: Likewise.
76500         * abilist/libresolv.abilist: Likewise.
76501         * abilist/librt.abilist: Likewise.
76502         * abilist/libthread_db.abilist: Likewise.
76503         * abilist/libutil.abilist: Likewise.
76504         * abilist/libnss_db.abilist: New file.
76505
76506         * scripts/abilist.awk: Add support for indirect functions.
76507
76508         * sysdeps/unix/sysv/linux/configure.in: Remove m68k support.
76509
76510         * sysdeps/generic/ldsodefs.h: Remove Alpha support.
76511
76512         * shlib-versions: Remove entries for ports architectures.
76513
76514         * elf/tls-macros.h: Remove support for Alpha and IA-64.  Should be in
76515         files in ports.
76516         * elf/stackguard-macros.h: Remove support for IA-64.
76517         * elf/tst-auditmod1.c: Likewise.
76518         * sysdeps/generic/ldsodefs.h: Likewise.
76519
76520         * sysdeps/unix/sysv/linux/configure.in: Ports should define
76521         libc_cv_gcc_unwind_find_fde and arch_minimum_kernel in their
76522         configure files.
76523
76524         [BZ #13552]
76525         * configure.in: Remove --enable-omitfp support.
76526         * FAQ.in: Adjust.
76527         * config.make.in: Likewise.
76528         * Makeconfig: Likewise.
76529         * manual/install.texi: Likewise.
76530
76531         In case anyone cares, the IA-64 architecture could move to ports.
76532         * sysdeps/ia64/*: Removed.
76533         * sysdeps/unix/sysv/linux/ia64/*: Removed.
76534         * sysdeps/unix/sysv/linux/kernel-features.h: Remove IA-64 support.
76535
76536         [BZ #13555]
76537         * configure.in: Remove entries for unsupported architectures.
76538
76539         [BZ #13533]
76540         * iconv/gconv_builtin.h: Use CHAR16 for the char16_t conversions.
76541         * iconv/gconv_simple.c: Rename char16_t routines.  Add char16_t<->utf8
76542         routines.
76543         * iconv/gconv_int.h: Adjust prototypes for char16_t routines.
76544         * iconv/iconv_prog.c: Recognize CHAR16 as internal name.
76545         * wcsmbs/c16rtomb.c: Fix a few problems.  Disable all the code and
76546         fall back to using wcrtomb.
76547         * wcsmbs/mbrtoc16.: Fix implementation to handle real conversions.
76548         * wcsmbs/wcsmbsload.c: Make char16 routines optional.  Adjust for
76549         renaming.
76550         * wcsmbs/Makefile (tests): Add tst-c16c32-1:
76551         * wcsmbs/tst-c16c32-1.c: New file.
76552
76553         * wcsmbs/wcrtomb.c: Use MB_LEN_MAX instead of MB_CUR_MAX for sizing
76554         local variable.
76555
76556         * libio/stdio.h: Do not declare gets at all for _GNU_SOURCE.
76557
76558         * elf/tst-unique3.cc: Add explicit declaration of gets.
76559         * elf/tst-unique3lib.cc: Likewise.
76560         * elf/tst-unique3lib2.cc: Likewise.
76561         * elf/tst-unique4.cc: Likewise.
76562
76563         * string/test-strcpy.c (do_one_test): Fix format string for WIDE use.
76564
76565 2012-01-06  Joseph Myers  <joseph@codesourcery.com>
76566
76567         [BZ #13566]
76568         * assert/assert.h (static_assert): Don't define for C++.
76569         * libio/stdio.h (gets): Do declare for C++ <= C++11.
76570         * wcsmbs/uchar.h (char16_t, char32_t): Don't typedef for C++11.
76571
76572 2012-01-03  Ulrich Drepper  <drepper@gmail.com>
76573
76574         * iconv/loop.c (single loop): Fix assertion in storing of
76575         remaining bytes.
76576
76577         * posix/regcomp.c (init_word_char): Optimize a bit for sane encodings.
76578
76579 2012-01-01  Ulrich Drepper  <drepper@gmail.com>
76580
76581         * posix/getconf.c: Update copyright year.
76582         * nss/getent.c: Likewise.
76583         * nss/makedb.c: Likewise.
76584         * iconv/iconvconfig.c: Likewise.
76585         * iconv/iconv_prog.c: Likewise.
76586         * elf/ldconfig.c: Likewise.
76587         * elf/pldd.c: Likewise.
76588         * elf/sotruss.ksh: Likewise.
76589         * catgets/gencat.c: Likewise.
76590         * csu/version.c: Likewise.
76591         * elf/ldd.bash.in: Likewise.
76592         * elf/sprof.c (print_version): Likewise.
76593         * locale/programs/locale.c: Likewise.
76594         * locale/programs/localedef.c: Likewise.
76595         * login/programs/pt_chown.c: Likewise.
76596         * nscd/nscd.c (print_version): Likewise.
76597         * debug/xtrace.sh: Likewise.
76598         * malloc/memusage.sh: Likewise.
76599         * malloc/mtrace.pl: Likewise.
76600         * debug/catchsegv.sh: Likewise.
76601
76602 2011-12-30  Jakub Jelinek  <jakub@redhat.com>
76603
76604         * posix/regex_internal.c (re_string_fetch_byte_case): Remove
76605         pure attribute.
76606
76607 2011-12-24  Ulrich Drepper  <drepper@gmail.com>
76608
76609         [BZ #13533]
76610         * iconv/gconv_simple.c: Add ASCII<->UTF-16 transformations.
76611         * iconv/gconv_builtin.h: Add entries for internal ASCII<->UTF-16
76612         transformations.
76613         * iconv/gconv_int.h: Likewise.
76614         * wcsmbs/Makefile (routines): Add mbrtoc16 and c16rtomb.
76615         * wcsmbs/Versions: Export mbrtoc16, c16rtomb, mbrtoc32, c32rtomb
76616         from libc for GLIBC_2.16.
76617         * wcsmbs/mbrtowc.c: Define mbrtoc32 alias.
76618         * wcsmbs/wcrtomb.c: Define c32rtomb alias.
76619         * wcsmbs/uchar.h: Really define mbstate_t.
76620         * wcsmbs/wchar.h: Allow defining mbstate_t in uchar.h.
76621         * wcsmbs/c16rtomb.c: New file.
76622         * wcsmbs/mbrtoc16.c: New file.
76623         * wcsmbs/wcsmbsload.c: Add static definitions for c16 conversions
76624         for C/POSIX locale.
76625         (__wcsmbs_load_conv): Do not fill in c16 routines yet.
76626         * wcsmbs/wcsmbsload.h (gconv_fcts): Add entries for c16 routines.
76627
76628         * wcsmbs/wchar.h: Add missing __restrict.
76629
76630 2011-12-23  Ulrich Drepper  <drepper@gmail.com>
76631
76632         [BZ #13532]
76633         * time/Makefile (routines): Add timespec_get.
76634         * time/Versions: Export timespec_get from libc for GLIBC_2.16.
76635         * time/time.h: Define TIME_UTC and declare timespec_get.  Define
76636         timespec for ISO C11.
76637         * time/timespec_get.c: New file.
76638         * sysdeps/unix/sysv/linux/timespec_get.c: New file.
76639         * sysdeps/unix/sysv/linux/x86_64/timespec_get.c: New file.
76640
76641         [BZ #13531]
76642         * malloc/malloc.c: Define alias aligned_alloc for public_mEMALIGn.
76643         * stdlib/stdlib.h: Declare aligned_alloc.
76644         * Versions.def: Add GLIBC_2.16 for libc.
76645         * malloc/Versions: Export aligned_alloc from libc for GLIBC_2.16.
76646
76647         [BZ 13527]
76648         * stdlib/stdlib.h: Make at_quick_exit and quick_exit available for
76649         ISO C11.
76650
76651         * include/features.h: Define __USE_ISOCXX11 when compiling ISO C++11
76652         code.
76653
76654         [BZ #13528]
76655         * libio/stdio.h: Do not declare gets for ISO C11 and _GNU_SOURCE.
76656
76657         [BZ #13529]
76658         * assert/assert.h (static_assert): Define.
76659
76660         * version.h: Update for 2.16 development version.
76661
76662         [BZ #13526]
76663         * include/features.h: Handle __STDC_VERSION__ >= 201112 and
76664         _ISOC11_SOURCE.
76665
76666         * version.h (RELEASE): Bump for 2.15 release.
76667         * include/features.h (__GLIBC_MINOR__): Bump to 15.
76668
76669         * sysdeps/x86_64/dl-machine.h: Fix typos in comments.
76670         Patch by Marek Polacek <mpolacek@redhat.com>.
76671
76672         * bits/byteswap.h: Protect long long constants with __extension__.
76673         * sysdeps/i386/bits/byteswap.h: Likewise.
76674         * sysdeps/ia64/bits/byteswap.h: Likewise.
76675         * sysdeps/s390/bits/byteswap.h: Likewise.
76676         * sysdeps/x86_64/bits/byteswap.h: Likewise.
76677
76678 2011-12-23  Liubov Dmitrieva  <liubov.dmitrieva@gmail.com>
76679
76680         [BZ #13540]
76681         * sysdeps/x86_64/multiarch/strcpy-ssse3.S: Fix overrun in
76682         destination buffer.
76683         * sysdeps/x86_64/multiarch/wcscpy-ssse3.S: Likewise.
76684
76685 2011-12-23  Marek Polacek  <polacek@redhat.com>
76686
76687         * elf/dl-addr.c (determine_info): Add inline keyword.
76688         * elf/tst-auditmod4b.c (check_avx): Likewise.
76689         * elf/tst-auditmod6b.c (check_avx): Likewise.
76690         * elf/tst-auditmod6c.c (check_avx): Likewise.
76691         * elf/tst-auditmod7b.c (check_avx): Likewise.
76692
76693 2011-12-23  Ulrich Drepper  <drepper@gmail.com>
76694
76695         * sysdeps/i386/fpu/bits/fenv.h (feraiseexcept): Also enable for
76696         !__SSE_MATH__.
76697
76698 2011-12-23  Liubov Dmitrieva  <liubov.dmitrieva@gmail.com>
76699
76700         [BZ #13540]
76701         * sysdeps/i386/i686/multiarch/wcscpy-ssse3.S: Fix wrong copying
76702         processing for last bytes.
76703
76704 2011-08-06  Bruno Haible  <bruno@clisp.org>
76705
76706         [BZ #13061]
76707         * iconvdata/cp1258.c (comp_table_data): Combine U+00A8 U+0301 to
76708         U+0385, not to U+1FEE.
76709
76710         [BZ #13062]
76711         * iconvdata/tcvn5712-1.c (comp_table_data): Remove useless and wrong
76712         entry for U+00A5 U+0301.
76713
76714 2011-12-22  Ulrich Drepper  <drepper@gmail.com>
76715
76716         [BZ #13166]
76717         * inet/getnameinfo.c (getnameinfo): Return EAI_OVERFLOW if the
76718         buffer for the output is too small.
76719
76720         * sysdeps/i386/fpu/bits/fenv.h [__SSE_MATH__]: Add feraiseexcept
76721         optimization.
76722
76723         [BZ #13185]
76724         * sysdeps/i386/fpu/fgetexcptflg.c (__fegetexceptflag): Also return
76725         SSE flags if possible.
76726
76727 2011-12-22  Liubov Dmitrieva  <liubov.dmitrieva@gmail.com>
76728
76729         [BZ #13540]
76730         * sysdeps/i386/i686/multiarch/strcpy-ssse3.S: Fix wrong copying
76731         processing for last bytes.
76732
76733 2011-12-22  Joseph Myers  <joseph@codesourcery.com>
76734
76735         * sysdeps/unix/sysv/linux/Makefile (syscall-list-variants)
76736         (syscall-list-default-options, syscall-list-default-condition)
76737         (syscall-list-includes): Define.
76738         ($(objpfx)syscall-%.h $(objpfx)syscall-%.d): Support arbitrary
76739         list of ABIs and options and #if conditions for each ABI.  Do not
76740         handle common syscalls between ABIs specially.
76741         * sysdeps/unix/sysv/linux/powerpc/Makefile (64bit-predefine):
76742         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/s390/Makefile (64bit-predefine): Remove.
76747         (syscall-list-variants, syscall-list-32bit-options)
76748         (syscall-list-32bit-condition, syscall-list-64bit-options)
76749         (syscall-list-64bit-condition): Define.
76750         * sysdeps/unix/sysv/linux/sparc/Makefile (64bit-predefine):
76751         Remove.
76752         (syscall-list-variants, syscall-list-32bit-options)
76753         (syscall-list-32bit-condition, syscall-list-64bit-options)
76754         (syscall-list-64bit-condition): Define.
76755         * sysdeps/unix/sysv/linux/x86_64/Makefile (64bit-predefine):
76756         Remove.
76757         (syscall-list-variants, syscall-list-32bit-options)
76758         (syscall-list-32bit-condition, syscall-list-64bit-options)
76759         (syscall-list-64bit-condition): Define.
76760
76761 2011-12-22  Ulrich Drepper  <drepper@gmail.com>
76762
76763         * locale/iso-639.def: Add brx entry.
76764
76765         [BZ #13328]
76766         * malloc/mtrace.c (tr_freehook): Avoid unnecessary unlock/lock.
76767         Proposed by Mariusz_Cukr <marcukr@op.pl>.
76768
76769         * sysdeps/x86_64/fpu/bits/fenv.h: Use __REDIRECT_NTH for
76770         __feraiseexcept_renamed.
76771
76772 2011-12-21  Ulrich Drepper  <drepper@gmail.com>
76773
76774         [BZ #13538]
76775         * sysdeps/unix/sysv/linux/sys/epoll.h: Initialize EPOLLONESHOT and
76776         EPOLLET with unsigned values.
76777         * sysdeps/unix/sysv/linux/x86_64/sys/epoll.h: Likewise.
76778         * sysdeps/unix/sysv/linux/sparc/sys/epoll.h: Likewise.
76779
76780         * math/s_cacosh.c: Use Kahan's formula if the subtraction could lead
76781         to large cancellation.
76782         * math/s_cacoshf.c: Likewise.
76783         * math/s_cacoshl.c: Likewise.
76784
76785 2011-11-18  Richard B. Kreckel  <kreckel@ginac.de>
76786
76787         [BZ #13305]
76788         [BZ #12786]
76789         * math/s_cacosh.c: Fix rare miscomputation in cacosh().
76790         * math/s_cacoshf.c: Likewise.
76791         * math/s_cacoshl.c: Likewise.
76792
76793 2011-12-21  Ulrich Drepper  <drepper@gmail.com>
76794
76795         [BZ #13439]
76796         * iconv/gconv.h: Define __GCONV_SWAP.
76797         * iconvdata/unicode.c: The swap bit must be stored in __flags.
76798         * iconvdata/utf-16.c: Likewise.
76799         * iconvdata/utf-32.c: Likewise.
76800
76801 2011-12-21  Andreas Schwab  <schwab@linux-m68k.org>
76802
76803         [BZ #13524]
76804         * stdlib/strtod_l.c (____STRTOF_INTERNAL): Clear lowest limb of
76805         numerator after shifting it by one limb.
76806
76807 2011-12-19  Rafael Ávila de Espíndola  <rafael.espindola@gmail.com>
76808
76809         * sysdeps/x86_64/fpu/bits/fenv.h (feraiseexcept): Define it only
76810         under [__USE_EXTERN_INLINES].
76811
76812 2011-12-17  Ulrich Drepper  <drepper@gmail.com>
76813
76814         [BZ #13446]
76815         * stdio-common/vfprintf.c (vfprintf): Fix extension of specs array.
76816
76817 2011-11-22  Adhemerval Zanella  <azanella@linux.vnet.ibm.com>
76818
76819         * sysdeps/powerpc/Makefile: Added locale-defines.sym generation.
76820         * sysdeps/powerpc/locale-defines.sym: Locale definitions for strcasecmp
76821         optimized code.
76822         * sysdeps/powerpc/powerpc32/power7/Makefile: New file.
76823         * sysdeps/powerpc/powerpc32/power7/strcasecmp.S: New file.
76824         * sysdeps/powerpc/powerpc32/power7/strcasecmp_l.S: New file.
76825         * sysdeps/powerpc/powerpc64/power7/Makefile: Added unroll-loop option
76826         for strncasecmp/strncasecmp_l compilation.
76827         * sysdeps/powerpc/powerpc64/power7/strcasecmp.S: New file.
76828         * sysdeps/powerpc/powerpc64/power7/strcasecmp_l.S: New file.
76829
76830 2011-12-08  Marek Polacek  <mpolacek@redhat.com>
76831
76832         [BZ #13484]
76833         * math/bits/math-finite.h: Use __REDIRECT_NTH and __NTH instead
76834         of __asm__.
76835
76836 2011-12-17  Ulrich Drepper  <drepper@gmail.com>
76837
76838         [BZ #13506]
76839         * time/tzfile.c (__tzfile_read): Check values from file header.
76840
76841 2011-11-21  Will Schmidt  <will_schmidt@vnet.ibm.com>
76842
76843         * powerpc/powerpc32/sysdep.h: Define SETUP_GOT_ACCESS() macro.
76844         * powerpc/powerpc32/a2/memcpy.S: Use SETUP_GOT_ACCESS() macro.
76845         * powerpc/powerpc32/dl-start.S: Likewise.
76846         * powerpc/powerpc32/elf/start.S: Likewise.
76847         * powerpc/powerpc32/fpu/__longjmp-common.S: Likewise.
76848         * powerpc/powerpc32/fpu/s_ceil.S: Likewise.
76849         * powerpc/powerpc32/fpu/s_ceilf.S: Likewise.
76850         * powerpc/powerpc32/fpu/s_floor.S: Likewise.
76851         * powerpc/powerpc32/fpu/s_floorf.S: Likewise.
76852         * powerpc/powerpc32/fpu/s_lround.S: Likewise.
76853         * powerpc/powerpc32/fpu/s_rint.S: Likewise.
76854         * powerpc/powerpc32/fpu/s_rintf.S: Likewise.
76855         * powerpc/powerpc32/fpu/s_round.S: Likewise.
76856         * powerpc/powerpc32/fpu/s_roundf.S: Likewise.
76857         * powerpc/powerpc32/fpu/s_trunc.S: Likewise.
76858         * powerpc/powerpc32/fpu/s_truncf.S: Likewise.
76859         * powerpc/powerpc32/fpu/setjmp-common.S: Likewise.
76860         * powerpc/powerpc32/memset.S: Likewise.
76861         * powerpc/powerpc32/power4/fpu/s_llround.S: Likewise.
76862         * powerpc/powerpc32/power4/fpu/w_sqrt.S: Likewise.
76863         * powerpc/powerpc32/power4/fpu/w_sqrtf.S: Likewise.
76864         * powerpc/powerpc32/power5/fpu/w_sqrt.S: Likewise.
76865         * powerpc/powerpc32/power5/fpu/w_sqrtf.S: Likewise.
76866         * powerpc/powerpc32/power7/fpu/s_finite.S: Likewise.
76867         * powerpc/powerpc32/power7/fpu/s_isinf.S: Likewise.
76868         * powerpc/powerpc32/power7/fpu/s_isnan.S: Likewise.
76869         * unix/sysv/linux/powerpc/powerpc32/____longjmp_chk.S: Likewise.
76870         * unix/sysv/linux/powerpc/powerpc32/brk.S: Likewise.
76871         * unix/sysv/linux/powerpc/powerpc32/getcontext-common.S: Likewise.
76872         * unix/sysv/linux/powerpc/powerpc32/setcontext-common.S: Likewise.
76873         * unix/sysv/linux/powerpc/powerpc32/swapcontext-common.S: Likewise.
76874
76875 2011-11-18  Adhemerval Zanella  <azanella@linux.vnet.ibm.com>
76876
76877         * math/libm-test.inc: Added more nearbyint tests.
76878         * sysdeps/powerpc/powerpc32/fpu/s_nearbyint.S: New file.
76879         * sysdeps/powerpc/powerpc32/fpu/s_nearbyintf.S: New file.
76880         * sysdeps/powerpc/powerpc64/fpu/s_nearbyint.S: New file.
76881         * sysdeps/powerpc/powerpc64/fpu/s_nearbyintf.S: New file.
76882
76883 2011-11-21  Ross Lagerwall  <rosslagerwall@gmail.com>
76884
76885         * resolv/res_init.c (__res_vinit): Open /etc/resolv.conf with
76886         FD_CLOEXEC.
76887
76888 2011-11-14  Liubov Dmitrieva  <liubov.dmitrieva@gmail.com>
76889
76890         * sysdeps/x86_64/multiarch/Makefile [subdir=wcsmbs] (sysdep_routines):
76891         Add wcscpy-ssse3 wcscpy-c.
76892         * sysdeps/x86_64/multiarch/wcscpy-ssse3.S: New file.
76893         * sysdeps/x86_64/multiarch/wcscpy-c.c: New file.
76894         * sysdeps/x86_64/multiarch/wcscpy.S: New file.
76895         * sysdeps/x86_64/wcschr.S: New file.
76896         * sysdeps/x86_64/wcsrchr.S: New file.
76897         * string/test-strcmp.c: Remove checking of wcscmp function for
76898         wrong alignments.
76899         * sysdeps/i386/i686/multiarch/Makefile [subdir=wcsmbs]
76900         (sysdep_routines): Add wcscpy-ssse3 wcscpy-c wcschr-sse2 wcschr-c
76901         wcsrchr-sse2 wcsrchr-c.
76902         * sysdeps/i386/i686/multiarch/wcschr.S: New file.
76903         * sysdeps/i386/i686/multiarch/wcschr-c.c: New file.
76904         * sysdeps/i386/i686/multiarch/wcschr-sse2.S: New file.
76905         * sysdeps/i386/i686/multiarch/wcsrchr.S: New file.
76906         * sysdeps/i386/i686/multiarch/wcsrchr-c.c: New file.
76907         * sysdeps/i386/i686/multiarch/wcsrchr-sse2.S: New file.
76908         * sysdeps/i386/i686/multiarch/wcscpy.S: New file.
76909         * sysdeps/i386/i686/multiarch/wcscpy-c.c: New file.
76910         * sysdeps/i386/i686/multiarch/wcscpy-ssse3.S: New file.
76911         * wcsmbc/wcschr.c (WCSCHR): New macro.
76912
76913 2011-11-17  Liubov Dmitrieva  <liubov.dmitrieva@gmail.com>
76914
76915         * wcsmbs/Makefile (strop-tests): Add wcsrchr wcscpy.
76916         * wcsmbs/test-wcsrchr.c: New file.
76917         * string/test-strrchr.c: Add wcsrchr support.
76918         (WIDE): New macro.
76919         * wcsmbs/test-wcscpy.c: New file.
76920         * string/test-strcpy.c: Add wcscpy support.
76921         (WIDE): New macro.
76922
76923 2011-12-10  Ulrich Drepper  <drepper@gmail.com>
76924
76925         * sysdeps/generic/dl-hash.h (_dl_elf_hash): Lift one operation out of
76926         the inner loop.
76927
76928 2011-12-06  Andreas Schwab  <schwab@linux-m68k.org>
76929
76930         [BZ #13472]
76931         * sysdeps/powerpc/fpu/e_hypot.c (twoM600): Correct value.
76932
76933 2011-12-04  Ulrich Drepper  <drepper@gmail.com>
76934
76935         * sysdeps/generic/dl-hash.h (_dl_elf_hash): Fix attribute.
76936         Minor optimizations.
76937
76938         * sunrpc/clnt_unix.c (clntunix_control): Fix aliasing issues.
76939         * sunrpc/clnt_tcp.c (clnttcp_control): Likewise.
76940         * sunrpc/clnt_udp.c (clntudp_call): Likewise.
76941
76942 2011-12-03  Ulrich Drepper  <drepper@gmail.com>
76943
76944         * inet/netinet/in.h: Provide versions of IN6_IS_ADDR_UNSPECIFIED,
76945         IN6_IS_ADDR_LOOPBACK, IN6_IS_ADDR_LINKLOCAL, IN6_IS_ADDR_SITELOCAL,
76946         IN6_IS_ADDR_V4MAPPED, IN6_IS_ADDR_V4COMPAT, and IN6_ARE_ADDR_EQUAL
76947         for gcc to avoid warnings.
76948         * inet/Makefile (tests): Add tst-checks.
76949         * inet/tst-checks.c: New file.
76950
76951         * sysdeps/generic/dl-hash.h (_dl_elf_hash): Add attribute to avoid
76952         warning.
76953
76954         * sysdeps/x86_64/multiarch/wmemcmp-c.c: Provide prototype for
76955         __wmemcmp_sse2.
76956
76957         * sysdeps/x86_64/fpu/s_scalbln.c: Removed.
76958         * sysdeps/x86_64/fpu/s_scalbn.c: Removed.
76959
76960         * malloc/mcheck.h: Fix use of incorrect encoding in comment.
76961
76962 2011-12-02  Ulrich Drepper  <drepper@gmail.com>
76963
76964         * nis/nis_findserv.c (__nis_findfastest_with_timeout): Avoid aliasing
76965         problem.
76966
76967         * nscd/aicache.c (addhstaiX): Avoid unused variable warning.
76968
76969 2011-11-29  Joseph Myers  <joseph@codesourcery.com>
76970
76971         * sysdeps/unix/sysv/linux/sh/bits/atomic.h (rNOSP): Define
76972         conditional on GCC version.
76973         (__arch_compare_and_exchange_val_8_acq)
76974         (__arch_compare_and_exchange_val_16_acq)
76975         (__arch_compare_and_exchange_val_32_acq, atomic_exchange_and_add)
76976         (atomic_add, atomic_add_negative, atomic_add_zero, atomic_bit_set)
76977         (atomic_bit_test_set): Use rNOSP instead of "r" constraints.
76978
76979 2011-12-02  Joseph Myers  <joseph@codesourcery.com>
76980
76981         * sysdeps/sh/backtrace.c: New file.
76982
76983 2011-12-02  Andreas Schwab  <schwab@redhat.com>
76984
76985         * misc/bits/select2.h (__FD_ELT): Mark as extension.  Add
76986         parenthesis.
76987
76988 2011-12-01  Andreas Schwab  <schwab@redhat.com>
76989
76990         * sysdeps/unix/sysv/linux/futimes.c: Truncate time values when
76991         falling back to utime.
76992
76993 2011-11-30  Andreas Schwab  <schwab@redhat.com>
76994
76995         * sysdeps/s390/fpu/libm-test-ulps: Relax cpow (2 + 3 i, 4 + 0 i)
76996         expectations for float.
76997
76998 2011-11-29  Andreas Schwab  <schwab@redhat.com>
76999
77000         * locale/weight.h (findidx): Add parameter len.
77001         * locale/weightwc.h (findidx): Likewise.
77002         * posix/fnmatch_loop.c (FCT): Adjust caller.
77003         * posix/regcomp.c (build_equiv_class): Likewise.
77004         * posix/regex_internal.h (re_string_elem_size_at): Likewise.
77005         * posix/regexec.c (check_node_accept_bytes): Likewise.
77006         * string/strcoll_l.c (STRCOLL): Likewise.
77007         * string/strxfrm_l.c (STRXFRM): Likewise.
77008
77009 2011-11-17  Ulrich Drepper  <drepper@gmail.com>
77010
77011         * Makefile.in: Remove CVSOPT handling.
77012         * configure.in: Remove use of AC_REVISION.
77013         * iconvdata/Makefile (distribute): No need to filter out CVS.
77014         * scripts/list-sources.sh: Remove CVS, subversion and monotone
77015         handling.
77016
77017 2011-11-16  Andreas Schwab  <schwab@redhat.com>
77018
77019         * sysdeps/i386/i686/multiarch/strcmp-ssse3.S
77020         [USE_AS_STRCASECMP_L]: Fix argument offsets for non-PIC.
77021         [USE_AS_STRNCASECMP_L]: Likewise.
77022         (__strcasecmp_ssse3, __strncasecmp_ssse3): Handle
77023         NO_TLS_DIRECT_SEG_REFS.
77024         * sysdeps/i386/i686/multiarch/strcmp-sse4.S [USE_AS_STRCASECMP_L]:
77025         Fix argument offsets for non-PIC.
77026         [USE_AS_STRNCASECMP_L]: Likewise.
77027         (__strcasecmp_sse4_2, __strncasecmp_sse4_2): Handle
77028         NO_TLS_DIRECT_SEG_REFS.
77029
77030 2011-11-15  Ulrich Drepper  <drepper@gmail.com>
77031
77032         * locale/loadarchive.c (_nl_load_locale_from_archive): Open files with
77033         O_CLOEXEC.
77034         * locale/loadlocale.c (_nl_load_locale): Likewise.
77035
77036 2011-11-15  Andreas Schwab  <schwab@redhat.com>
77037
77038         * sysdeps/unix/sysv/linux/clock_gettime.c (SYSDEP_GETTIME_CPU)
77039         [__ASSUME_POSIX_CPU_TIMERS > 0]: Assign to retval and break.
77040         * sysdeps/unix/sysv/linux/x86_64/clock_gettime.c
77041         (SYSCALL_GETTIME): Set errno on error.
77042
77043         * sysdeps/unix/sysv/linux/check_pf.c (make_request): Properly
77044         count references to noai6ai_cached.
77045
77046 2011-11-15  Ulrich Drepper  <drepper@gmail.com>
77047
77048         * time/getdate.c (__getdate_r): Set FD_CLOEXEC for given file.
77049
77050         * sysdeps/unix/sysv/linux/readonly-area.c (__readonly_area): Set
77051         FD_CLOEXEC for /proc/self/maps.
77052
77053         * sysdeps/unix/sysv/linux/getsysstats.c (phys_pages_info): Set
77054         FD_CLOEXEC for /proc/meminfo.
77055
77056         * sysdeps/posix/getaddrinfo.c (gaiconf_init): Set FD_CLOEXEC for
77057         gai.conf.
77058
77059         * resolv/res_query.c (res_hostalias):  Don't allow cancellation and set
77060         FD_CLOEXEC for given file.
77061
77062         * resolv/res_hconf.c (do_init): Set FD_CLOEXEC for host.conf.
77063
77064         * resolv/gethnamaddr.c (_sethtent): Don't allow cancellation and set
77065         FD_CLOEXEC for /etc/hosts.
77066         (_gethtent): Likewise.
77067
77068         * nss/nsswitch.c (nss_parse_file): Set FD_CLOEXEC.
77069
77070         * nss/nss_files/files-netgrp.c (_nss_files_setnetgrent): Don't allow
77071         cancellation and set FD_CLOEXEC for /etc/netgroup.
77072
77073         * nss/nss_files/files-key.c (search): Don't allow cancellation when
77074         reading /etc/publickey.
77075
77076         * nss/nss_files/files-initgroups.c (_nss_files_initgroups_dyn): Don't
77077         allow cancellation when reading /etc/group.
77078
77079         * nss/nss_files/files-alias.c (internal_setent): Don't allow
77080         cancellation.
77081         (get_next_alias): Likewise for included file.  Also set FD_CLOEXEC.
77082
77083         * nss/nss_files/files-XXX.c (internal_setent): Don't allow cancellation
77084         when using data file.
77085
77086         * nis/nss-default.c (init): Set FD_CLOEXEC for /etc/default/nss.
77087
77088         * nis/nis_file.c (read_nis_obj): Set FD_CLOEXEC.
77089         (write_nis_obj): Use "c" and "e" in fopen.
77090
77091         * misc/mntent_r.c (__setmntent): Also append e to fopen format.
77092
77093         * misc/getusershell.c (initshells): Set FD_CLOEXEC for /etc/shells.
77094
77095         * misc/getttyent.c (setttyent): Set FD_CLOEXEC.
77096
77097         * misc/getpass.c (getpass): Set FD_CLOEXEC for /dev/tty.
77098
77099         * intl/localealias.c (read_alias_file): Set FD_CLOEXEC for
77100         locale.alias.
77101
77102         * inet/ruserpass.c (ruserpass): Set FD_CLOEXEC for .netrc.
77103
77104         * inet/rcmd.c (iruserfopen): Set FD_CLOEXEC for hosts.equiv.
77105
77106         * iconv/gconv_conf.c (read_conf_file): Set FD_CLOEXEC for config file.
77107
77108         * hesiod/hesiod.c (parse_config_file): Prevent cancellation in config
77109         file parsing and set FD_CLOEXEC.
77110
77111 2011-11-14  Ulrich Drepper  <drepper@gmail.com>
77112
77113         * time/tzfile.c (__tzfile_read): Use "e" in fopen call.
77114
77115 2011-11-14  Andreas Schwab  <schwab@redhat.com>
77116
77117         * malloc/arena.c (arena_get2): Don't call reused_arena when
77118         _int_new_arena failed.
77119
77120 2011-11-14  Ulrich Drepper  <drepper@gmail.com>
77121
77122         * sysdeps/i386/i686/multiarch/Makefile [subdir=string]
77123         (sysdep_routines): Add strcasecmp_l-sse4 and strncase_l-sse4.
77124         * sysdeps/i386/i686/multiarch/strcasecmp.S: Re-enable SSE4.2 code.
77125         * sysdeps/i386/i686/multiarch/strcmp.S: Likewise.
77126         * sysdeps/i386/i686/multiarch/strncase.S: Likewise.
77127         * sysdeps/i386/i686/multiarch/strcmp-sse4.S: Change to allow reuse
77128         to compile strcasecmp and strncasecmp.
77129         * sysdeps/i386/i686/multiarch/strcasecmp_l-sse4.S: New file.
77130         * sysdeps/i386/i686/multiarch/strncase_l-sse4.S: New file.
77131
77132         * sysdeps/i386/i686/multiarch/strcmp-ssse3.S: Use L macro consistently.
77133
77134 2011-11-13  Ulrich Drepper  <drepper@gmail.com>
77135
77136         * sysdeps/i386/i686/multiarch/Makefile [subdir=string]: Add
77137         locale-defines.sym to gen-as-const-headers.
77138         (sysdep_routines): Add strcasecmp_l-c, strcasecmp-c,
77139         strcasecmp_l-ssse3, strncase_l-c, strncase-c, and strncase_l-ssse3.
77140         * sysdeps/i386/i686/multiarch/strcmp-ssse3.S: Change to allow reuse
77141         to compile strcasecmp and strncasecmp.
77142         * sysdeps/i386/i686/multiarch/strcmp.S: Allow to use for
77143         strcasecmp_l and strncasecmp_l.
77144         * sysdeps/i386/i686/multiarch/locale-defines.sym: New file.
77145         * sysdeps/i386/i686/multiarch/strcasecmp-c.c: New file.
77146         * sysdeps/i386/i686/multiarch/strcasecmp.S: New file.
77147         * sysdeps/i386/i686/multiarch/strcasecmp_l-c.c: New file.
77148         * sysdeps/i386/i686/multiarch/strcasecmp_l-ssse3.S: New file.
77149         * sysdeps/i386/i686/multiarch/strcasecmp_l.S: New file.
77150         * sysdeps/i386/i686/multiarch/strncase-c.c: New file.
77151         * sysdeps/i386/i686/multiarch/strncase.S: New file.
77152         * sysdeps/i386/i686/multiarch/strncase_l-c.c: New file.
77153         * sysdeps/i386/i686/multiarch/strncase_l-ssse3.S: New file.
77154         * sysdeps/i386/i686/multiarch/strncase_l.S: New file.
77155
77156 2011-11-12  Ulrich Drepper  <drepper@gmail.com>
77157
77158         * sysdeps/unix/clock_gettime.c (clock_gettime): No need to assign
77159         result of SYSDEP_GETTIME_CPU to retval.
77160         * sysdeps/unix/sysv/linux/clock_gettime.c (SYSDEP_GETTIME_CPU): Add
77161         parameter list to macro.  Remove trailing semicolon.  Adjust users.
77162
77163         * resolv/getaddrinfo_a.c (getaddrinfo_a): Avoid warning about unused
77164         variable.
77165
77166         * sysdeps/ieee754/ldbl-96/e_j0l.c (__ieee754_j0l): Avoid storing
77167         mantissa words.
77168         * sysdeps/ieee754/ldbl-96/e_j1l.c (__ieee754_j1l): Likewise.
77169
77170         * sysdeps/ieee754/ldbl-96/e_hypotl.c (__ieee754_hypotl): Avoid warning
77171         from unused variable.
77172
77173         * sysdeps/generic/sysdep.h: Clean up, pretty print, use dwarf2.h for
77174         DWARF definitions.
77175         * sysdeps/generic/dwarf2.h: Don't define enums when using the file
77176         for assembling.
77177
77178         * elf/dl-iteratephdr.c [!SHARED] (__dl_iterate_phdr): Don't iterate
77179         over namespaces.
77180
77181         * sunrpc/rpc_prot.c (rejected): Fix case value.
77182
77183         * sysdeps/unix/sysv/linux/internal_statvfs.c (INTERNAL_STATVFS): Use
77184         unsigned long long int to avoid warnings in shift.
77185
77186         * posix/regex_internal.c (re_string_reconstruct): Actually use result
77187         of use of trans.
77188         * posix/regex_internal.h (re_string_wchar_at): Remove temporary
77189         variable tmp.
77190
77191         * sysdeps/i386/i686/multiarch/wcscmp-c.c: Avoid warning.
77192         * sysdeps/i386/i686/multiarch/wcslen-c.c: Likewise.
77193         * sysdeps/i386/i686/multiarch/wmemcmp-c.c: Likewise.
77194
77195         * nis/nis_table.c (nis_list): Use variable of correct type for
77196         result of __follow_path call.
77197
77198 2011-11-07  Adhemerval Zanella  <azanella@linux.vnet.ibm.com>
77199
77200         * sysdeps/powerpc/fpu/math_private.h: Using inline assembly version
77201         of math functions ceil, trunc, floor, round, and sqrt, when
77202         avaliable on the platform.
77203         * sysdeps/powerpc/fpu/e_sqrt.c: Undefine __ieee754_sqrt to avoid
77204         name clash.
77205         * sysdeps/powerpc/fpu/e_sqrtf.c: Likewise.
77206         * sysdeps/powerpc/powerpc64/fpu/e_sqrt.c: Likewise.
77207         * sysdeps/powerpc/powerpc64/fpu/e_sqrtf.c: Likewise.
77208
77209 2011-10-30  Marek Polacek  <mpolacek@redhat.com>
77210
77211         * libio/wfileops.c (_IO_wfile_underflow_mmap): Remove unused variable.
77212         * sysdeps/ieee754/dbl-64/mpsqrt.c (__mpsqrt): Likewise.
77213
77214 2011-11-11  Roland McGrath  <roland@hack.frob.com>
77215
77216         * include/unistd.h: Fix __readlink return type.
77217         Reported by Chris Metcalf <cmetcalf@tilera.com>.
77218
77219 2011-11-11  Ulrich Drepper  <drepper@gmail.com>
77220
77221         * stdlib/ucontext.h: Undo last change for makecontext.
77222
77223 2011-11-11  Andreas Schwab  <schwab@redhat.com>
77224
77225         * nss/db-Makefile ($(VAR_DB)/group.db): Fix typo in awk script.
77226
77227         * misc/sys/cdefs.h (__REDIRECT_NTHNL): Define.
77228         * setjmp/setjmp.h: Mark functions as non-leaf.
77229         * setjmp/bits/setjmp2.h: Likewise.
77230         * stdlib/ucontext.h: Likewise.
77231
77232 2011-11-10  Andreas Schwab  <schwab@redhat.com>
77233
77234         * malloc/arena.c (_int_new_arena): Don't increment narenas.
77235         (reused_arena): Don't check arena limit.
77236         (arena_get2): Atomically check arena limit.
77237
77238 2011-11-08  Ulrich Drepper  <drepper@gmail.com>
77239
77240         * locale/findlocale.c (_nl_find_locale): Use __strcasecmp_l.
77241         * intl/localealias.c (strcasecmp): Define using __strcasecmp_l.
77242
77243         * sysdeps/i386/i686/multiarch/strcmp-ssse3.S: Remove unnecessary
77244         instructions.
77245
77246 2011-11-07  Andreas Schwab  <schwab@redhat.com>
77247
77248         * libio/genops.c (_IO_flush_all_lockp): Only register cleanup
77249         handler when locking.
77250
77251         * nss/nss_files/files-initgroups.c (_nss_files_initgroups_dyn):
77252         Fix size of allocated buffer.
77253
77254 2011-11-04  Andreas Schwab  <schwab@redhat.com>
77255
77256         [BZ #10103]
77257         * math/math.h [__NO_LONG_DOUBLE_MATH && !_LIBC]: Provide
77258         declarations for long double functions.
77259         * math/complex.h [__NO_LONG_DOUBLE_MATH && !_LIBC]: Likewise.
77260
77261         * elf/sprof.c (load_shobj): Fix off-by-one when reading link name.
77262
77263 2011-11-03  Andreas Schwab  <schwab@redhat.com>
77264
77265         * nscd/nscd.c (main): Don't start AVC thread until credentials are
77266         installed.
77267
77268         * nss/makedb.c (set_file_creation_context): Do nothing if SELinux
77269         is disabled.
77270
77271 2011-11-02  Samuel Thibault  <samuel.thibault@ens-lyon.org>
77272
77273         * bits/ioctl-types.h (_IOT_sgttyb): Set number of chars to 4.
77274
77275 2011-11-01  Andreas Schwab  <schwab@linux-m68k.org>
77276
77277         * include/alloca.h (stackinfo_alloca_round): Define.
77278         (extend_alloca): Use it.
77279         [_STACK_GROWS_UP]: Correct check for adjacent allocation.
77280         * elf/dl-deps.c (_dl_map_object_deps): Don't round alloca size
77281         here.
77282
77283         * scripts/check-local-headers.sh: Ignore libaudit.h.
77284
77285         * nscd/Makefile (extra-objs): Make recursively expanded.
77286
77287 2011-11-01  Ulrich Drepper  <drepper@gmail.com>
77288
77289         * sysdeps/x86_64/strcmp.S: Fix test for non-ASCII locales.
77290         * sysdeps/x86_64/multiarch/strcmp-sse42.S: Likewise.
77291
77292         * posix/tst-rfc3484.c: Add missing __free_in6ai dummy function.
77293         * posix/tst-rfc3484-2.c: Likewise.
77294         * posix/tst-rfc3484-3.c: Likewise.
77295
77296         * sysdeps/unix/sysv/linux/bits/uio.h: Declare process_vm_readv and
77297         process_vm_writev.
77298         * sysdeps/unix/sysv/linux/syscalls.list: Add process_vm_readv and
77299         process_vm_writev.
77300         * sysdeps/unix/sysv/linux/Versions: Export process_vm_readv and
77301         process_vm_writev from libc using GLIBC_2.15 version.
77302
77303         * nscd/connections.c: Use kernel headers instead of <netlink/netlink.h>.
77304
77305 2011-10-31  Paul Pluzhnikov  <ppluzhnikov@google.com>
77306
77307         * elf/dl-deps.c (_dl_map_object_deps): Reuse alloca space to reduce
77308         stack usage.
77309
77310 2011-10-31  Ulrich Drepper  <drepper@gmail.com>
77311
77312         [BZ #13367]
77313         * nss/getent.c (initgroups_keys): Show error message in case no group
77314         names are given.
77315
77316         * include/ifaddrs.h: Declare __free_in6ai and __bump_nl_timestamp.
77317         * inet/check_pf.c: Provide dummy versions of __free_in6ai and
77318         __bump_nl_timestamp.
77319         * nscd/connections (nscd_init): When host database is served open
77320         netlink socket and request notification about configuration changes.
77321         (main_loop_poll): Track netlink file descriptor and bump timestamp
77322         in case data becomes available.
77323         (main_loop_epoll): Likewise.
77324         * nscd/nscd-client.h (DB_VERSION): Bump to 2.
77325         (database_pers_head): Add extra_data fileds.
77326         Declare __nscd_get_mapping and __nscd_get_nl_timestamp.
77327         * nscd/nscd_gethst_r.c (__nscd_get_nl_timestamp): New function.
77328         * nscd/nscd_helper.c (__nscd_get_mapping): Renamed from get_mapping.
77329         Adjust caller.
77330         * sysdeps/posix/getaddrinfo.c (getaddrinfo): Don't call free on
77331         in6ai data, call __free_in6ai.
77332         * sysdeps/unix/sysv/linux/Makefile [subdir=nscd] (sysdep-CFLAGS):
77333         Add -DHAVE_NETLINK.
77334         * sysdeps/unix/sysv/linux/check_pf.c: Major rewrite.  Cache the
77335         interface information.  Reuse previous data if netlink timestamp
77336         is not changed.
77337         (__bump_nl_timestamp): New function.
77338         (__free_in6ai): New function.
77339
77340 2011-10-30  Ulrich Drepper  <drepper@gmail.com>
77341
77342         * sysdeps/unix/sysv/linux/check_pf.c (make_request): Don't call
77343         close_not_cancel_no_status here.
77344         (__check_pf): Reorganize code a bit to not call close twice if OOM.
77345
77346 2011-10-29  Ulrich Drepper  <drepper@gmail.com>
77347
77348         [BZ #13276]
77349         * malloc/malloc.c (munmap_chunk): Don't use assertion to check munmap
77350         return value.
77351
77352         * posix/sys/wait.h: Mark wait3 and wait4 with __THROWNL.
77353         * libio/stdio.h: Mark sprintf, vsprintf snprintf, vsnprintf, vasprintf,
77354         asprintf, __asprintf, obstack_printf, obstack_vprintf with __THROWNL.
77355
77356 2011-07-03  Andreas Jaeger  <aj@suse.de>
77357
77358         [BZ #10709]
77359         * sysdeps/ieee754/dbl-64/s_sin.c (__sin): Fix incorrect rounding
77360         of sin. Patch suggested by Paul Zimmermann <zimmerma+gcc@loria.fr>.
77361         * math/libm-test.inc (sin_test): Add test case.
77362
77363 2011-10-29  Ulrich Drepper  <drepper@gmail.com>
77364
77365         [BZ #13337]
77366         * elf/sprof.c (load_shobj): Correctly NUL-terminate link name.
77367         Patch by Thomas Jarosch <thomas.jarosch@intra2net.com>.
77368
77369         * elf/chroot_canon.c (chroot_canon): Cleanups.
77370
77371         * elf/dl-lookup.c (_dl_setup_hash): Avoid warning.
77372
77373         [BZ #13335]
77374         * elf/chroot_canon.c (chroot_canon): Fix readlink call.
77375         Patch by Thomas Jarosch <thomas.jarosch@intra2net.com>.
77376
77377         * string/test-strchr.c: Make usable for strchrnul testing.
77378         * string/test-strchrnul.c: New file.
77379         * string/Makefile (strop-tests): Add strchrnul.
77380
77381         * po/it.po: Update from translation team.
77382         * po/es.po: Likewise.
77383
77384 2011-10-28  Ulrich Drepper  <drepper@gmail.com>
77385
77386         * sysdeps/x86_64/multiarch/strstr.c (__m128i_strloadu_tolower): Take
77387         the three constants needed as parameters.  Drop the others.
77388         (strcasestr_sse42): Load uclow, uchigh, and lcqword and pass to
77389         __m128i_strloadu_tolower.
77390         Create and initialize variable zero and use it in all the places
77391         where _mm_setzero_si128 was used.
77392
77393         * sysdeps/x86_64/fpu/multiarch/Makefile: Don't build brandred-avx.c,
77394         doasin-avx.c, dosincos-avx.c, e_asin-avx.c, mpatan-avx.c,
77395         mpatan2-avx.c, mpsqrt-avx.c, mptan-avx.c, sincos32-avx.c.
77396         * sysdeps/x86_64/fpu/multiarch/e_asin.c: There are no _avx variants
77397         anymore.
77398         * sysdeps/x86_64/fpu/multiarch/e_atan2-avx.c: Don't redirect __mpatan2.
77399         * sysdeps/x86_64/fpu/multiarch/s_atan-avx.c: Don't redirect __mpatan.
77400         * sysdeps/x86_64/fpu/multiarch/s_sin-avx.c: Don't redirect __branred,
77401         __docos, __dubsin, __mpcos, __mpcos1, __mpsin, __mpsin1.
77402         * sysdeps/x86_64/fpu/multiarch/s_tan-avx.c: Don't redirect __branred,
77403         __mpranred, __mptan.
77404         * sysdeps/x86_64/fpu/multiarch/brandred-avx.c: Removed.
77405         * sysdeps/x86_64/fpu/multiarch/doasin-avx.c: Removed.
77406         * sysdeps/x86_64/fpu/multiarch/dosincos-avx.c: Removed.
77407         * sysdeps/x86_64/fpu/multiarch/e_asin-avx.c: Removed.
77408         * sysdeps/x86_64/fpu/multiarch/mpatan-avx.c: Removed.
77409         * sysdeps/x86_64/fpu/multiarch/mpatan2-avx.c: Removed.
77410         * sysdeps/x86_64/fpu/multiarch/mpsqrt-avx.c: Removed.
77411         * sysdeps/x86_64/fpu/multiarch/mptan-avx.c: Removed.
77412         * sysdeps/x86_64/fpu/multiarch/sincos32-avx.c: Removed.
77413
77414 2011-10-28  Andreas Schwab  <schwab@redhat.com>
77415
77416         * sysdeps/i386/i686/multiarch/strnlen-c.c (libc_hidden_def): Only
77417         redefine if SHARED.
77418         * sysdeps/i386/i686/multiarch/wcscmp-c.c (libc_hidden_def): Likewise.
77419
77420         * sysdeps/i386/i686/multiarch/Makefile (sysdep_routines): Move
77421         wide char related routines to wcsmbs subdir.
77422
77423 2011-10-27  Andreas Schwab  <schwab@redhat.com>
77424
77425         [BZ #13344]
77426         * misc/sys/cdefs.h (__THROWNL): Define.
77427         * posix/unistd.h: Use __THREADNL instead of __THREAD
77428         for memory synchronization functions.
77429
77430 2011-10-26  Roland McGrath  <roland@hack.frob.com>
77431
77432         [BZ #13349]
77433         * libio/Versions (GLIBC_2.0): Remove open_obstack_stream, which
77434         doesn't exist.
77435         * manual/stdio.texi (Obstack Streams): Node removed.
77436
77437 2011-10-26  Andreas Schwab  <schwab@redhat.com>
77438
77439         * sysdeps/ieee754/flt-32/e_j0f.c: Fix use of math_force_eval.
77440         * sysdeps/ieee754/dbl-64/s_round.c: Likewise.
77441         * sysdeps/ieee754/flt-32/s_roundf.c: Likewise.
77442
77443         * math/math_private.h (math_force_eval): Allow non-addressable
77444         arguments.
77445         * sysdeps/i386/fpu/math_private.h (math_force_eval): Likewise.
77446
77447 2011-10-25  Ulrich Drepper  <drepper@gmail.com>
77448
77449         * sysdeps/ieee754/dbl-64/e_rem_pio2.c: Comment everything out, the
77450         file is not needed.
77451
77452         * sysdeps/x86_64/fpu/multiarch/e_asin.c: Support AVX variants.
77453         * sysdeps/x86_64/fpu/multiarch/e_atan2.c: Likewise.
77454         * sysdeps/x86_64/fpu/multiarch/e_exp.c: Likewise.
77455         * sysdeps/x86_64/fpu/multiarch/e_log.c: Likewise.
77456         * sysdeps/x86_64/fpu/multiarch/s_atan.c: Likewise.
77457         * sysdeps/x86_64/fpu/multiarch/s_sin.c: Likewise.
77458         * sysdeps/x86_64/fpu/multiarch/s_tan.c: Likewise.
77459         * sysdeps/x86_64/fpu/multiarch/Makefile: Fix some CFLAGS-* variables.
77460         Add AVX variants.
77461         * sysdeps/x86_64/fpu/multiarch/brandred-avx.c: New file.
77462         * sysdeps/x86_64/fpu/multiarch/doasin-avx.c: New file.
77463         * sysdeps/x86_64/fpu/multiarch/dosincos-avx.c: New file.
77464         * sysdeps/x86_64/fpu/multiarch/e_asin-avx.c: New file.
77465         * sysdeps/x86_64/fpu/multiarch/e_atan2-avx.c: New file.
77466         * sysdeps/x86_64/fpu/multiarch/e_exp-avx.c: New file.
77467         * sysdeps/x86_64/fpu/multiarch/e_log-avx.c: New file.
77468         * sysdeps/x86_64/fpu/multiarch/mpa-avx.c: New file.
77469         * sysdeps/x86_64/fpu/multiarch/mpatan-avx.c: New file.
77470         * sysdeps/x86_64/fpu/multiarch/mpatan2-avx.c: New file.
77471         * sysdeps/x86_64/fpu/multiarch/mpexp-avx.c: New file.
77472         * sysdeps/x86_64/fpu/multiarch/mplog-avx.c: New file.
77473         * sysdeps/x86_64/fpu/multiarch/mpsqrt-avx.c: New file.
77474         * sysdeps/x86_64/fpu/multiarch/mptan-avx.c: New file.
77475         * sysdeps/x86_64/fpu/multiarch/s_atan-avx.c: New file.
77476         * sysdeps/x86_64/fpu/multiarch/s_sin-avx.c: New file.
77477         * sysdeps/x86_64/fpu/multiarch/s_tan-avx.c: New file.
77478         * sysdeps/x86_64/fpu/multiarch/sincos32-avx.c: New file.
77479         * sysdeps/x86_64/fpu/multiarch/slowexp-avx.c: New file.
77480
77481         * sysdeps/x86_64/multiarch/init-arch.h: Make bit_* macros available
77482         all the time.  Define bit_AVX.  Define HAS_* macros using bit_* macros.
77483
77484         * sysdeps/x86_64/multiarch/strcmp-sse42.S: Move common code to earlier
77485         place.  Use VEX encoding when compiling for AVX.
77486
77487 2011-10-25  Andreas Schwab  <schwab@redhat.com>
77488
77489         * wcsmbs/wcscmp.c (WCSCMP): Compare as wchar_t, not wint_t.
77490         * wcsmbs/wmemcmp.c (WMEMCMP): Likewise.
77491
77492         * string/test-strchr.c (do_test): Don't generate NUL bytes.
77493
77494 2011-10-25  Ulrich Drepper  <drepper@gmail.com>
77495
77496         * sysdeps/ieee754/dbl-64/e_atanh.c: Use math_force_eval instead of a
77497         useless if() expression.
77498         * sysdeps/ieee754/dbl-64/e_j0.c: Likewise.
77499         * sysdeps/ieee754/dbl-64/s_ceil.c: Likewise.
77500         * sysdeps/ieee754/dbl-64/s_expm1.c: Likewise.
77501         * sysdeps/ieee754/dbl-64/s_floor.c: Likewise.
77502         * sysdeps/ieee754/dbl-64/s_log1p.c: Likewise.
77503         * sysdeps/ieee754/dbl-64/s_round.c: Likewise.
77504         * sysdeps/ieee754/dbl-64/wordsize-64/s_ceil.c: Likewise.
77505         * sysdeps/ieee754/dbl-64/wordsize-64/s_floor.c: Likewise.
77506         * sysdeps/ieee754/dbl-64/wordsize-64/s_round.c: Likewise.
77507         * sysdeps/ieee754/flt-32/e_atanhf.c: Likewise.
77508         * sysdeps/ieee754/flt-32/e_j0f.c: Likewise.
77509         * sysdeps/ieee754/flt-32/s_ceilf.c: Likewise.
77510         * sysdeps/ieee754/flt-32/s_expm1f.c: Likewise.
77511         * sysdeps/ieee754/flt-32/s_floorf.c: Likewise.
77512         * sysdeps/ieee754/flt-32/s_log1pf.c: Likewise.
77513         * sysdeps/ieee754/flt-32/s_roundf.c: Likewise.
77514         * sysdeps/ieee754/ldbl-96/e_atanhl.c: Likewise.
77515         * sysdeps/ieee754/ldbl-96/e_j0l.c: Likewise.
77516         * sysdeps/ieee754/ldbl-96/s_roundl.c: Likewise.
77517
77518         * sysdeps/x86_64/fpu/math_private.h: Use VEX encoding when possible.
77519
77520 2011-10-25  Andreas Schwab  <schwab@redhat.com>
77521
77522         * elf/dl-deps.c (_dl_map_object_deps): Remove always true
77523         condition.
77524         * elf/dl-fini.c (_dl_sort_fini): Likewise.
77525
77526 2011-10-25  Ulrich Drepper  <drepper@gmail.com>
77527
77528         * sysdeps/ieee754/dbl-64/branred.c: Move FMA4 code into separate
77529         .text section.  Avoid duplicate constants.
77530         * sysdeps/ieee754/dbl-64/doasin.c: Likewise.
77531         * sysdeps/ieee754/dbl-64/dosincos.c: Likewise.
77532         * sysdeps/ieee754/dbl-64/e_asin.c: Likewise.
77533         * sysdeps/ieee754/dbl-64/e_atan2.c: Likewise.
77534         * sysdeps/ieee754/dbl-64/e_exp.c: Likewise.
77535         * sysdeps/ieee754/dbl-64/e_log.c: Likewise.
77536         * sysdeps/ieee754/dbl-64/e_pow.c: Likewise.
77537         * sysdeps/ieee754/dbl-64/halfulp.c: Likewise.
77538         * sysdeps/ieee754/dbl-64/mpa.c: Likewise.
77539         * sysdeps/ieee754/dbl-64/mpa.h: Likewise.
77540         * sysdeps/ieee754/dbl-64/mpatan.c: Likewise.
77541         * sysdeps/ieee754/dbl-64/mpatan.h: Likewise.
77542         * sysdeps/ieee754/dbl-64/mpatan2.c: Likewise.
77543         * sysdeps/ieee754/dbl-64/mpexp.c: Likewise.
77544         * sysdeps/ieee754/dbl-64/mpexp.h: Likewise.
77545         * sysdeps/ieee754/dbl-64/mpsqrt.c: Likewise.
77546         * sysdeps/ieee754/dbl-64/mpsqrt.h: Likewise.
77547         * sysdeps/ieee754/dbl-64/mptan.c: Likewise.
77548         * sysdeps/ieee754/dbl-64/s_sin.c: Likewise.
77549         * sysdeps/ieee754/dbl-64/s_tan.c: Likewise.
77550         * sysdeps/ieee754/dbl-64/sincos32.c: Likewise.
77551         * sysdeps/ieee754/dbl-64/slowexp.c: Likewise.
77552         * sysdeps/ieee754/dbl-64/slowpow.c: Likewise.
77553         * sysdeps/x86_64/fpu/multiarch/brandred-fma4.c: Likewise.
77554         * sysdeps/x86_64/fpu/multiarch/doasin-fma4.c: Likewise.
77555         * sysdeps/x86_64/fpu/multiarch/dosincos-fma4.c: Likewise.
77556         * sysdeps/x86_64/fpu/multiarch/e_asin-fma4.c: Likewise.
77557         * sysdeps/x86_64/fpu/multiarch/e_atan2-fma4.c: Likewise.
77558         * sysdeps/x86_64/fpu/multiarch/e_exp-fma4.c: Likewise.
77559         * sysdeps/x86_64/fpu/multiarch/e_log-fma4.c: Likewise.
77560         * sysdeps/x86_64/fpu/multiarch/e_pow-fma4.c: Likewise.
77561         * sysdeps/x86_64/fpu/multiarch/halfulp-fma4.c: Likewise.
77562         * sysdeps/x86_64/fpu/multiarch/mpa-fma4.c: Likewise.
77563         * sysdeps/x86_64/fpu/multiarch/mpatan-fma4.c: Likewise.
77564         * sysdeps/x86_64/fpu/multiarch/mpatan2-fma4.c: Likewise.
77565         * sysdeps/x86_64/fpu/multiarch/mpexp-fma4.c: Likewise.
77566         * sysdeps/x86_64/fpu/multiarch/mplog-fma4.c: Likewise.
77567         * sysdeps/x86_64/fpu/multiarch/mpsqrt-fma4.c: Likewise.
77568         * sysdeps/x86_64/fpu/multiarch/mptan-fma4.c: Likewise.
77569         * sysdeps/x86_64/fpu/multiarch/s_atan-fma4.c: Likewise.
77570         * sysdeps/x86_64/fpu/multiarch/s_sin-fma4.c: Likewise.
77571         * sysdeps/x86_64/fpu/multiarch/s_tan-fma4.c: Likewise.
77572         * sysdeps/x86_64/fpu/multiarch/sincos32-fma4.c: Likewise.
77573         * sysdeps/x86_64/fpu/multiarch/slowexp-fma4.c: Likewise.
77574         * sysdeps/x86_64/fpu/multiarch/slowpow-fma4.c: Likewise.
77575
77576 2011-10-24  Ulrich Drepper  <drepper@gmail.com>
77577
77578         * sysdeps/x86_64/dla.h: Move to ...
77579         * sysdeps/x86_64/fpu/dla.h: ...here.
77580         (DLA_FMS): Some compilers fail to inline __builtin_fma in some
77581         situations.  Use __builtin_fma only for gcc 4.6 and up.
77582
77583         * config.make.in: Add have-mfma4 entry.
77584         * configure.in: Substitute libc_cv_cc_fma4.
77585         * math/Makefile (dbl-only-routines): Add sincostab.
77586         * sysdeps/ieee754/dbl-64/dosincos.c: Don't include sincos.tbl.
77587         Use __sincostab not sincos.
77588         * sysdeps/ieee754/dbl-64/e_asin.c: Don't define aliases when function
77589         name is a macro.
77590         * sysdeps/ieee754/dbl-64/e_exp.c: Likewise.
77591         * sysdeps/ieee754/dbl-64/e_log.c: Likewise.
77592         * sysdeps/ieee754/dbl-64/e_pow.c: Likewise.
77593         * sysdeps/ieee754/dbl-64/e_atan2.c: Likewise.  Define singArctan2
77594         using __copysign.
77595         * sysdeps/ieee754/dbl-64/mpa.c: Don't export __acr.  Don't define
77596         __cr and __cpymn.  Define __cpy unless NO___CPY is defined.  Define
77597         norm, denorm, and __mp_dbl unless NO___MP_DBL is defined.
77598         * sysdeps/ieee754/dbl-64/mpa.h: Don't declare __acr, __cr, __cpymn,
77599         and __inv.
77600         * sysdeps/ieee754/dbl-64/mpsqrt.c: Make fastiroot static.
77601         * sysdeps/ieee754/dbl-64/s_atan.c: Define __signArctan using
77602         __copysign.
77603         * sysdeps/ieee754/dbl-64/s_sin.c: Use __sincostab not sincos.  Don't
77604         define aliases when function name is a macro.
77605         * sysdeps/ieee754/dbl-64/sincostab.c: Renamed from
77606         sysdeps/ieee754/dbl-64/sincos.tbl.
77607         * sysdeps/x86_64/fpu/multiarch/Makefile: Add entries to build
77608         fma4-enabled routines.
77609         * sysdeps/x86_64/fpu/multiarch/brandred-fma4.c: New file.
77610         * sysdeps/x86_64/fpu/multiarch/doasin-fma4.c: New file.
77611         * sysdeps/x86_64/fpu/multiarch/dosincos-fma4.c: New file.
77612         * sysdeps/x86_64/fpu/multiarch/e_asin-fma4.c: New file.
77613         * sysdeps/x86_64/fpu/multiarch/e_asin.c: New file.
77614         * sysdeps/x86_64/fpu/multiarch/e_atan2-fma4.c: New file.
77615         * sysdeps/x86_64/fpu/multiarch/e_atan2.c: New file.
77616         * sysdeps/x86_64/fpu/multiarch/e_exp-fma4.c: New file.
77617         * sysdeps/x86_64/fpu/multiarch/e_exp.c: New file.
77618         * sysdeps/x86_64/fpu/multiarch/e_log-fma4.c: New file.
77619         * sysdeps/x86_64/fpu/multiarch/e_log.c: New file.
77620         * sysdeps/x86_64/fpu/multiarch/e_pow-fma4.c: New file.
77621         * sysdeps/x86_64/fpu/multiarch/e_pow.c: New file.
77622         * sysdeps/x86_64/fpu/multiarch/halfulp-fma4.c: New file.
77623         * sysdeps/x86_64/fpu/multiarch/mpa-fma4.c: New file.
77624         * sysdeps/x86_64/fpu/multiarch/mpatan-fma4.c: New file.
77625         * sysdeps/x86_64/fpu/multiarch/mpatan2-fma4.c: New file.
77626         * sysdeps/x86_64/fpu/multiarch/mpexp-fma4.c: New file.
77627         * sysdeps/x86_64/fpu/multiarch/mplog-fma4.c: New file.
77628         * sysdeps/x86_64/fpu/multiarch/mpsqrt-fma4.c: New file.
77629         * sysdeps/x86_64/fpu/multiarch/mptan-fma4.c: New file.
77630         * sysdeps/x86_64/fpu/multiarch/s_atan-fma4.c: New file.
77631         * sysdeps/x86_64/fpu/multiarch/s_atan.c: New file.
77632         * sysdeps/x86_64/fpu/multiarch/s_sin-fma4.c: New file.
77633         * sysdeps/x86_64/fpu/multiarch/s_sin.c: New file.
77634         * sysdeps/x86_64/fpu/multiarch/s_tan-fma4.c: New file.
77635         * sysdeps/x86_64/fpu/multiarch/s_tan.c: New file.
77636         * sysdeps/x86_64/fpu/multiarch/sincos32-fma4.c: New file.
77637         * sysdeps/x86_64/fpu/multiarch/slowexp-fma4.c: New file.
77638         * sysdeps/x86_64/fpu/multiarch/slowpow-fma4.c: New file.
77639
77640         * sysdeps/ieee754/dbl-64/doasin.c: Adjust for DLA_FMA -> DLA_FMS
77641         rename.
77642         * sysdeps/ieee754/dbl-64/dosincos.c: Likewise.
77643         * sysdeps/ieee754/dbl-64/dosincos.c: Likewise.
77644         * sysdeps/ieee754/dbl-64/e_atan2.c: Likewise.
77645         * sysdeps/ieee754/dbl-64/e_log.c: Likewise.
77646         * sysdeps/ieee754/dbl-64/e_pow.c: Likewise.
77647         * sysdeps/ieee754/dbl-64/halfulp.c: Likewise.
77648         * sysdeps/ieee754/dbl-64/s_atan.c: Likewise.
77649         * sysdeps/ieee754/dbl-64/s_tan.c: Likewise.
77650
77651 2011-10-24  Andreas Schwab  <schwab@redhat.com>
77652
77653         * wcsmbs/wcslen.c: Don't define WCSLEN, reverse logic.
77654
77655 2011-10-23  Ulrich Drepper  <drepper@gmail.com>
77656
77657         * sysdeps/ieee754/dbl-64/wordsize-64/s_remquo.c: New file.
77658
77659         * sysdeps/ieee754/dbl-64/e_fmod.c (__ieee754_fmod): Add some branch
77660         prediction.
77661         * sysdeps/ieee754/dbl-64/wordsize-64/e_fmod.c: New file.
77662
77663         * string/strnlen.c: Don't define STRNLEN, reverse logic.
77664         Remove unused variable magic_bits.
77665         * sysdeps/i386/i686/multiarch/rtld-strnlen.c: New file.
77666
77667         * string/strnlen.c: Define and use STRNLEN macro.
77668         * sysdeps/i386/i686/multiarch/Makefile [string] (sysdep_routines):
77669         Add strnlen-sse2, strnlen-c, wcslen-sse2, and wcslen-c.
77670         * sysdeps/i386/i686/multiarch/strlen-sse2.S: Add support for strnlen.
77671         * wcsmbs/wcslen.c: Define and use WCSLEN.
77672         * sysdeps/i386/i686/multiarch/strnlen-c.c: New file.
77673         * sysdeps/i386/i686/multiarch/strnlen-sse2.S: New file.
77674         * sysdeps/i386/i686/multiarch/strnlen.S: New file.
77675         * sysdeps/i386/i686/multiarch/wcslen-c.c: New file.
77676         * sysdeps/i386/i686/multiarch/wcslen-sse2.S: New file.
77677         * sysdeps/i386/i686/multiarch/wcslen.S: New file.
77678         Patch by Liubov Dmitrieva <liubov.dmitrieva@gmail.com>.
77679
77680 2011-10-20  Liubov Dmitrieva  <liubov.dmitrieva@gmail.com>
77681
77682         * sysdeps/x86_64/multiarch/Makefile (sysdep_routines): Add
77683         strnlen-sse2-no-bsf.
77684         Rename strlen-no-bsf to strlen-sse2-no-bsf.
77685         * sysdeps/x86_64/multiarch/strlen-no-bsf.S: Rename to
77686         * sysdeps/x86_64/multiarch/strlen-sse2-no-bsf.S:
77687         Add strnlen support.
77688         (USE_AS_STRNLEN): New macro.
77689         * sysdeps/x86_64/multiarch/strnlen-sse2-no-bsf.S: New file.
77690         * sysdeps/x86_64/multiarch/strcat-ssse3.S: Update.
77691         Rename strlen-no-bsf.S to strlen-sse2-no-bsf.S
77692         * sysdeps/x86_64/wcslen.S: New file.
77693
77694 2011-10-20  Michael Zolotukhin  <michael.v.zolotukhin@gmail.com>
77695
77696         * sysdeps/i386/i686/multiarch/memcpy-ssse3.S: Update.
77697         XMM-moves are used for copying on small sizes.
77698
77699 2011-10-19  Liubov Dmitrieva  <liubov.dmitrieva@gmail.com>
77700
77701         * wcsmbs/Makefile (strop-tests): Add wcschr.
77702         * wcsmbs/test-wcschr.c: New file.
77703         * string/test-strchr.c: Update.
77704         Add wcschr support.
77705         (WIDE): New macro.
77706
77707 2011-10-18  Liubov Dmitrieva  <liubov.dmitrieva@gmail.com>
77708
77709         * wcsmbs/Makefile (strop-tests): Add wcslen.
77710         * wcsmbs/test-wcslen.c: New file.
77711         * string/test-strlen.c: Update.
77712         Add wcslen support.
77713         (WIDE): New macro.
77714
77715 2011-10-23  Ulrich Drepper  <drepper@gmail.com>
77716
77717         * po/it.po: Update from translation team.
77718
77719 2011-09-22  Liubov Dmitrieva  <liubov.dmitrieva@gmail.com>
77720
77721         * sysdeps/x86_64/wcscmp.S: Update.
77722         Fix wrong comparison semantics.
77723         wcscmp shall use signed comparison not unsigned.
77724         Don't use substraction to avoid overflow bug.
77725         * sysdeps/i386/i686/multiarch/wcscmp-sse2.S: Likewise.
77726         * wcsmbc/wcscmp.c: Likewise.
77727         * string/test-strcmp.c: Likewise.
77728         Add new tests to check cases with negative values.
77729
77730 2011-10-23  Ulrich Drepper  <drepper@gmail.com>
77731
77732         * sysdeps/ieee754/dbl-64/dla.h: Move DLA_FMA definition to...
77733         * sysdeps/x86_64/dla.h: ...here.  New file.
77734         * sysdeps/ieee754/dbl-64/doasin.c: Use <dla.h> not "dla.h".
77735         * sysdeps/ieee754/dbl-64/dosincos.c: Likewise.
77736         * sysdeps/ieee754/dbl-64/e_atan2.c: Likewise.
77737         * sysdeps/ieee754/dbl-64/e_log.c: Likewise.
77738         * sysdeps/ieee754/dbl-64/e_pow.c: Likewise.
77739         * sysdeps/ieee754/dbl-64/e_sqrt.c: Likewise.
77740         * sysdeps/ieee754/dbl-64/halfulp.c: Likewise.
77741         * sysdeps/ieee754/dbl-64/s_atan.c: Likewise.
77742         * sysdeps/ieee754/dbl-64/s_tan.c: Likewise.
77743
77744 2011-10-23  Andreas Schwab  <schwab@linux-m68k.org>
77745
77746         * sysdeps/ieee754/ldbl-128ibm/e_jnl.c: Add __jnl_finite and
77747         __ynl_finite aliases.
77748
77749 2011-10-22  Ulrich Drepper  <drepper@gmail.com>
77750
77751         * sysdeps/x86_64/fpu/libm-test-ulps: Update.
77752
77753         * sysdeps/ieee754/dbl-64/dla.h: When compiling with FMA4 support
77754         define DLA_FMA.
77755         [DLA_FMA] (EMULV): Use DLA_FMA.
77756         [DLA_FMA] (MUL12): Use EMULV.
77757         * sysdeps/ieee754/dbl-64/doasin.c [DLA_FMA]: Don't define variables
77758         that are not needed.
77759         * sysdeps/ieee754/dbl-64/dosincos.c: Likewise.
77760         * sysdeps/ieee754/dbl-64/e_atan2.c: Likewise.
77761         * sysdeps/ieee754/dbl-64/e_log.c: Likewise.
77762         * sysdeps/ieee754/dbl-64/e_pow.c: Likewise.
77763         * sysdeps/ieee754/dbl-64/halfulp.c: Likewise.
77764         * sysdeps/ieee754/dbl-64/s_atan.c: Likewise.
77765         * sysdeps/ieee754/dbl-64/s_tan.c: Likewise.
77766
77767 2011-10-22  Andreas Schwab  <schwab@linux-m68k.org>
77768
77769         * math/s_nan.c: Undef __nan.
77770         * math/s_nanf.c: Undef __nanf.
77771         * math/s_nanl.c: Undef __nanl.
77772         * sysdeps/ieee754/ldbl-128ibm/s_atanl.c: Include <math.h> before
77773         "math_private.h".
77774
77775 2011-10-22  Ulrich Drepper  <drepper@gmail.com>
77776
77777         * math/s_catan.c: Add branch predictions.
77778         * math/s_catanf.c: Likewise.
77779         * math/s_catanh.c: Likewise.
77780         * math/s_catanhf.c: Likewise.
77781         * math/s_catanhl.c: Likewise.
77782         * math/s_catanl.c: Likewise.
77783         * math/s_cexp.c: Likewise.
77784         * math/s_cexpf.c: Likewise.
77785         * math/s_cexpl.c: Likewise.
77786         * math/s_clog.c: Likewise.
77787         * math/s_clog10.c: Likewise.
77788         * math/s_clog10f.c: Likewise.
77789         * math/s_clog10l.c: Likewise.
77790         * math/s_clogf.c: Likewise.
77791         * math/s_clogl.c: Likewise.
77792         * math/s_csqrt.c: Likewise.
77793         * math/s_csqrtf.c: Likewise.
77794         * math/s_csqrtl.c: Likewise.
77795         * math/s_ctanf.c: Likewise.
77796         * math/s_ctanh.c: Likewise.
77797         * math/s_ctanhf.c: Likewise.
77798         * math/s_ctanhl.c: Likewise.
77799         * math/s_ctanl.c: Likewise.
77800
77801         * math/math_private.h: Define __nan, __nanf, __nanl.
77802         * math/s_cacosh.c: Include <math_private.h>.
77803         * math/s_cacoshl.c: Likewise.
77804         * math/s_casinh.c: Likewise.
77805         * math/s_casinhf.c: Likewise.
77806         * math/s_casinhl.c: Likewise.
77807         * math/s_ccos.c: Rely entire on ccosh.
77808         * math/s_ccosf.c: Rely entire on ccoshf.
77809         * math/s_ccosl.c: Rely entirely on ccoshl.
77810         * math/s_ccosh.c: Add branch predicion helpers.  Add branch prediction.
77811         Remove tests for FE_INVALID.
77812         * math/s_ccoshf.c: Likewise.
77813         * math/s_ccoshl.c: Likewise.
77814         * math/s_csin.c: Likewise.
77815         * math/s_csinf.c: Likewise.
77816         * math/s_csinh.c Likewise.
77817         * math/s_csinhf.c: Likewise.
77818         * math/s_csinhl.c: Likewise.
77819         * math/s_csinl.c: Likewise.
77820         * math/s_ctan.c: Likewise.
77821         * sysdeps/ieee754/dbl-64/e_acosh.c: Use __ieee754_sqrt.
77822         * sysdeps/ieee754/flt-32/e_acoshf.c: Use __ieee754_sqrtf.
77823         * sysdeps/ieee754/ldbl-96/e_acoshl.c: Use __ieee754_sqrtl.
77824
77825 2011-10-21  Ulrich Drepper  <drepper@gmail.com>
77826
77827         * sysdeps/x86_64/multiarch/init-arch.c (__init_cpu_features): Fix
77828         compilation problems.
77829
77830         * sysdeps/ieee754/dbl-64/e_log.c (__ieee754_log): Add a few more
77831         __builtin_expect.
77832
77833 2011-10-20  Ulrich Drepper  <drepper@gmail.com>
77834
77835         * sysdeps/i386/configure.in: Test for -mfma4 option.
77836         * config.h.in: Add HAVE_FMA4_SUPPORT entry.
77837         * sysdeps/x86_64/multiarch/init-arch.h: Define HAS_FMA4 and
77838         COMMON_CPUID_INDEX_80000001.
77839         * sysdeps/x86_64/multiarch/init-arch.c: Read 80000001 leaf for AMD.
77840         * sysdeps/x86_64/fpu/multiarch/s_fma.c: Test for FMA4 support and
77841         use it if FMA3 is not supported.
77842         * sysdeps/x86_64/fpu/multiarch/s_fmaf.c: Likewise.
77843
77844         * sysdeps/x86_64/multiarch/s_fma.c: Moved to ../fpu/multiarch.
77845         * sysdeps/x86_64/multiarch/s_fmaf.c: Likewise.
77846
77847 2011-10-20  Andreas Schwab  <schwab@redhat.com>
77848
77849         [BZ #12892]
77850         * elf/dl-fini.c (_dl_sort_fini): Ignore relocation dependency if
77851         it would create a cycle with a link time dependency.
77852
77853 2011-10-19  Ulrich Drepper  <drepper@gmail.com>
77854
77855         * sysdeps/x86_64/multiarch/rawmemchr.S: Small optimization to safe an
77856         instruction.
77857         * string/Makefile (strop-tests): Add rawmemchr.
77858         * string/test-rawmemchr.c: New file.
77859
77860         * sysdeps/x86_64/multiarch/init-arch.h: Define bit_AVX and index_AVX.
77861         * sysdeps/x86_64/multiarch/strcmp-sse42.S: New file.  Split out from...
77862         * sysdeps/x86_64/multiarch/strcmp.S: ...here.  Include strcmp-sse42.S
77863         when compiling str{,n}casecmp and when AVX is available.  Hook up
77864         new optimized code in initializers.
77865
77866 2011-10-19  Andreas Schwab  <schwab@redhat.com>
77867
77868         * sysdeps/x86_64/fpu/math_private.h (libc_feupdateenv): Use
77869         __feraiseexcept instead of feraiseexcept.
77870
77871 2011-10-18  Ulrich Drepper  <drepper@gmail.com>
77872
77873         * math/math_private.h: Define defaults for libc_fetestexcept and
77874         libc_feupdateenv.
77875         * sysdeps/ieee754/dbl-64/s_fma.c: Use libc_fe* interfaces.
77876         * sysdeps/ieee754/dbl-64/s_fmaf.c: Likewise.
77877         * sysdeps/ieee754/flt-32/e_exp2f.c: Likewise.
77878         * sysdeps/ieee754/flt-32/e_expf.c: Likewise.
77879         * sysdeps/ieee754/flt-32/s_nearbyintf.c: Likewise.
77880         * sysdeps/x86_64/fpu/math_private.h: Define special versions of
77881         libc_fetestexcept and libc_feupdateenv.
77882
77883         * math/math_private.h: Define defaults for libc_feholdexcept_setround,
77884         libc_feholdexcept_setroundf, libc_feholdexcept_setroundl.
77885         * sysdeps/ieee754/dbl-64/e_exp2.c: Use libc_feholdexcept_setround.
77886         * sysdeps/x86_64/fpu/math_private.h: Define special version of
77887         libc_feholdexcept_setround.
77888
77889         * sysdeps/x86_64/fpu/multiarch/Makefile [math] (libm-sysdep-routines):
77890         Add s_nearbyint-c and s_nearbyintf-c.
77891         * sysdeps/x86_64/fpu/bits/mathinline.h: Define nearbyint and
77892         nearbyintf inlines.
77893         * sysdeps/x86_64/fpu/multiarch/s_nearbyint-c.c: New file.
77894         * sysdeps/x86_64/fpu/multiarch/s_nearbyint.S: New file.
77895         * sysdeps/x86_64/fpu/multiarch/s_nearbyintf-c.c: New file.
77896         * sysdeps/x86_64/fpu/multiarch/s_nearbyintf.S: New file.
77897
77898         * math/math_private.h: Define defaults for libc_fegetround,
77899         libc_fegetroundf, libc_fegetroundl, libc_fesetround, libc_fesetroundf,
77900         libc_fesetroundl, libc_feholdexcept, libc_feholdexceptf,
77901         libc_feholdexceptl, libc_fesetenv, libc_fesetenvf, libc_fesetenvl.
77902         * sysdeps/ieee754/dbl-64/wordsize-64/s_nearbyint.c: Use
77903         libc_feholdexcept, libc_fesetround, libc_fesetenv instead of the
77904         standard functions.
77905         * sysdeps/ieee754/dbl-64/e_exp2.c: Likewise.
77906         Remove comments and hacks for old compiler versions.
77907         * sysdeps/x86_64/fpu/math_private.h: Define special versions of
77908         libc_fegetround, libc_fesetround, libc_feholdexcept, and
77909         libc_feholdexceptl.
77910
77911 2011-10-18  Andreas Schwab  <schwab@redhat.com>
77912
77913         * sysdeps/x86_64/fpu/bits/fenv.h: Add C linkage markers.
77914         (__feraiseexcept_renamed): Add __NTH.
77915         (feraiseexcept): Add __NTH.  Rename local variables to fix
77916         namespace violations.
77917
77918 2011-10-17  Ulrich Drepper  <drepper@gmail.com>
77919
77920         * sysdeps/ieee754/dbl-64/e_exp2.c (__ieee754_exp2): Small optimization.
77921
77922         * sysdeps/ieee754/dbl-64/wordsize-64/s_frexp.c: New file.
77923
77924         * sysdeps/x86_64/fpu/math_private.h: Relax asm requirements for
77925         recently added interfaces.
77926         * sysdeps/x86_64/fpu/bits/mathinline.h: Likewise.
77927
77928         * sysdeps/x86_64/fpu/math_private.h: Add some parenthesis to be safe
77929         about macro parameter expansion.
77930
77931         * sysdeps/x86_64/fpu/bits/mathinline.h: Don't define inlines if
77932         __NO_MATH_INLINES is defined.  Cleanups.
77933
77934         * sysdeps/x86_64/fpu/math_private.h: Define __rint, __rintf, __floor,
77935         and __floorf is target has SSE4.1.
77936         * sysdeps/x86_64/fpu/multiarch/s_floor-c.c: Undef first.
77937         * sysdeps/x86_64/fpu/multiarch/s_floorf-c.: Likewise.
77938         * sysdeps/x86_64/fpu/multiarch/s_rint-c.c: Likewise.
77939         * sysdeps/x86_64/fpu/multiarch/s_rintf-c.c: Likewise.
77940
77941         * sysdeps/x86_64/fpu/bits/mathinline.h (floor): Use correct function
77942         name.
77943         (floorf): Likewise.
77944
77945         * nscd/netgroupcache.c (addgetnetgrentX): Fix #ifdef nesting.
77946
77947 2011-10-17  Andreas Schwab  <schwab@redhat.com>
77948
77949         * misc/sys/cdefs.h: Fix last change.
77950
77951         * grp/initgroups.c (internal_getgrouplist): Fix initgroups
77952         database lookup.
77953
77954 2011-10-16  Ulrich Drepper  <drepper@gmail.com>
77955
77956         * misc/sys/cdefs.h: Use leaf function attribute in __THROW.
77957
77958         * sysdeps/ieee754/dbl-64/s_ceil.c: Avoid alias renamed.
77959         * sysdeps/ieee754/dbl-64/s_floor.c: Likewise.
77960         * sysdeps/ieee754/dbl-64/s_rint.c: Likewise.
77961         * sysdeps/ieee754/dbl-64/wordsize-64/s_ceil.c: Likewise.
77962         * sysdeps/ieee754/dbl-64/wordsize-64/s_floor.c: Likewise.
77963         * sysdeps/ieee754/dbl-64/wordsize-64/s_rint.c: Likewise.
77964         * sysdeps/ieee754/flt-32/s_ceilf.c: Likewise.
77965         * sysdeps/ieee754/flt-32/s_floorf.c: Likewise.
77966         * sysdeps/ieee754/flt-32/s_rintf.c: Likewise.
77967         * sysdeps/x86_64/fpu/multiarch/Makefile: New file.
77968         * sysdeps/x86_64/fpu/multiarch/s_ceil-c.c: New file.
77969         * sysdeps/x86_64/fpu/multiarch/s_ceil.S: New file.
77970         * sysdeps/x86_64/fpu/multiarch/s_ceilf-c.c: New file.
77971         * sysdeps/x86_64/fpu/multiarch/s_ceilf.S: New file.
77972         * sysdeps/x86_64/fpu/multiarch/s_floor-c.c: New file.
77973         * sysdeps/x86_64/fpu/multiarch/s_floor.S: New file.
77974         * sysdeps/x86_64/fpu/multiarch/s_floorf-c.c: New file.
77975         * sysdeps/x86_64/fpu/multiarch/s_floorf.S: New file.
77976         * sysdeps/x86_64/fpu/multiarch/s_rint-c.c: New file.
77977         * sysdeps/x86_64/fpu/multiarch/s_rint.S: New file.
77978         * sysdeps/x86_64/fpu/multiarch/s_rintf-c.c: New file.
77979         * sysdeps/x86_64/fpu/multiarch/s_rintf.S: New file.
77980
77981         * sysdeps/x86_64/fpu/bits/mathinline.h: Add inlines for rint, rintf,
77982         ceil, ceilf, floor, floorf.
77983
77984         * elf/do-rel.h (elf_dynamic_do_Rel): Work around linker problem.
77985         Perform IRELATIVE relocations last.
77986
77987         * elf/do-rel.h: Add another parameter nrelative, replacing the
77988         local variable with the same name.  Change name of the function
77989         to end in Rel or Rela (uppercase).
77990         * elf/dynamic-link.h (_ELF_DYNAMIC_DO_RELOC): Add new element
77991         nrelative to ranges.  Only nonzero for DT_REL/DT_RELA.  Pass to the
77992         elf_dynamic_do_##reloc function.
77993
77994 2011-10-15  Ulrich Drepper  <drepper@gmail.com>
77995
77996         * sysdeps/i386/i686/fpu/e_log.S: No need for the fyl2xp1 use, fyl2x
77997         is sufficient, at least on modern CPUs.
77998
77999         * sysdeps/ieee754/dbl-64/wordsize-64/s_floor.c: New file.
78000
78001         * sysdeps/ieee754/dbl-64/e_cosh.c: Cleanup.
78002         * sysdeps/ieee754/dbl-64/wordsize-64/e_cosh.c: New file.
78003
78004         * math/Versions [libm] (GLIBC_2.15): Add __exp_finite, __expf_finite,
78005         __expl_finite.
78006         * math/bits/math-finite.h: Add entries for exp.
78007         * math/e_expl.c: Add __*_finite alias.
78008         * sysdeps/i386/fpu/e_exp.S: Likewise.
78009         * sysdeps/i386/fpu/e_expf.S: Likewise.
78010         * sysdeps/i386/fpu/e_expl.c: Likewise.
78011         * sysdeps/ieee754/dbl-64/e_exp.c: Likewise.
78012         * sysdeps/ieee754/flt-32/e_expf.c: Likewise.
78013         * sysdeps/ieee754/ldbl-128/e_expl.c: Likewise.
78014         * sysdeps/ieee754/ldbl-128ibm/e_expl.c: Likewise.
78015         * sysdeps/ieee754/dbl-64/w_exp.c: Complete rewrite.
78016         * sysdeps/ieee754/flt-32/w_expf.c: Likewise.
78017         * sysdeps/ieee754/ldbl-96/w_expl.c: Likewise.
78018
78019         * sysdeps/i386/i686/fpu/e_logf.S: No need for the fyl2xp1 use, fyl2x
78020         is sufficient, at least on modern CPUs.
78021
78022         * ctype/ctype-info.c (__ctype_init): Define.
78023         * include/ctype.h (__ctype_init): Declare.
78024         (__ctype_b_loc): The variable is always initialized.
78025         (__ctype_toupper_loc): Likewise.
78026         (__ctype_tolower_loc): Likewise.
78027         * ctype/Versions: Export __ctype_init for GLIBC_PRIVATE.
78028         * sysdeps/unix/sysv/linux/init-first.c (_init): Call __ctype_init.
78029
78030 2011-10-15  Andreas Schwab  <schwab@linux-m68k.org>
78031
78032         * wcsmbs/wmemcmp.c (WMEMCMP): Define.
78033
78034         * configure.in: Also look in $cxxmachine/include for C++ system
78035         headers.
78036
78037 2011-09-27  Liubov Dmitrieva  <liubov.dmitrieva@gmail.com>
78038
78039         * sysdeps/x86_64/multiarch/Makefile: (sysdep_routines): Add
78040         memcmp-ssse3 wmemcmp-sse4 wmemcmp-ssse3 wmemcmp-c
78041         * sysdeps/x86_64/multiarch/memcmp-ssse3: New file.
78042         * sysdeps/x86_64/multiarch/memcmp.S: Update.  Add __memcmp_ssse3.
78043         * sysdeps/x86_64/multiarch/memcmp-sse4.S: Update.
78044         (USE_AS_WMEMCMP): New macro.
78045         Fixing indents.
78046         * sysdeps/x86_64/multiarch/wmemcmp.S: New file.
78047         * sysdeps/x86_64/multiarch/wmemcmp-ssse3.S: New file.
78048         * sysdeps/x86_64/multiarch/wmemcmp-sse4.S: New file.
78049         * sysdeps/x86_64/multiarch/wmemcmp-c.S: New file.
78050         * sysdeps/i386/i686/multiarch/Makefile (sysdep_routines): Add
78051         wmemcmp-ssse3 wmemcmp-sse4 wmemcmp-c
78052         * sysdeps/i386/i686/multiarch/wmemcmp.S: New file.
78053         * sysdeps/i386/i686/multiarch/wmemcmp-c.c: New file.
78054         * sysdeps/i386/i686/multiarch/wmemcmp-ssse3.S: New file.
78055         * sysdeps/i386/i686/multiarch/wmemcmp-sse4.S: New file.
78056         * sysdeps/i386/i686/multiarch/memcmp-sse4.S: Update.
78057         (USE_AS_WMEMCMP): New macro.
78058         * sysdeps/i386/i686/multiarch/memcmp-ssse3: Likewise.
78059         * sysdeps/string/test-memcmp.c: Update.
78060         Fix simple_wmemcmp.
78061         Add new tests.
78062         * wcsmbs/wmemcmp.c: Update.
78063         (WMEMCMP): New macro.
78064         Fix overflow bug.
78065
78066 2011-10-12  Andreas Jaeger  <aj@suse.de>
78067
78068         [BZ #13268]
78069         * math/bits/mathcalls.h: Mark argument 2 of modf as non-null.
78070
78071 2011-10-15  Ulrich Drepper  <drepper@gmail.com>
78072
78073         * libio/iofwide.c (do_length): Avoid warning.
78074
78075         * ctype/ctype.h (__isctype_f): Add missing __THROW.
78076
78077 2011-10-14  Ulrich Drepper  <drepper@gmail.com>
78078
78079         * elf/pldd-xx.c (find_maps): Remove leftover debug message.
78080
78081         * sysdeps/i386/fpu/e_log.S: Add real definition of __log_finite.
78082         * sysdeps/i386/fpu/e_logf.S: Add real definition of __logf_finite.
78083         * sysdeps/i386/fpu/e_logl.S: Add real definition of __logl_finite.
78084         * sysdeps/i386/i686/fpu/e_log.S: New file.
78085         * sysdeps/i386/i686/fpu/e_logf.S: New file.
78086         * sysdeps/i386/i686/fpu/e_logl.S: New file.
78087
78088         * ctype/ctype.h: Add support for inlined isXXX functions when
78089         compiling C++ code.
78090
78091 2011-10-14  Andreas Schwab  <schwab@redhat.com>
78092
78093         * sysdeps/s390/fpu/libm-test-ulps: Adjust ULPs for jn tests.
78094
78095         * sysdeps/x86_64/fpu/fraiseexcpt.c: Fix last change.
78096
78097 2011-10-13  Roland McGrath  <roland@hack.frob.com>
78098
78099         [BZ #13291]
78100         * manual/string.texi (String/Array Comparison): Typo fix in strverscmp.
78101
78102 2011-10-13  Andreas Schwab  <schwab@redhat.com>
78103
78104         * sysdeps/x86_64/fpu/fraiseexcpt.c: Add __feraiseexcept alias.
78105         * sysdeps/x86_64/fpu/feupdateenv.c: Use __feraiseexcept instead of
78106         feraiseexcept.
78107
78108         * sysdeps/x86_64/memrchr.S: Check for zero size.
78109
78110         * string/stratcliff.c: Add memrchr tests.
78111
78112 2011-10-12  Liubov Dmitrieva  <liubov.dmitrieva@gmail.com>
78113
78114         * sysdeps/i386/i686/multiarch/Makefile (sysdep_routines): Add
78115         memchr-sse2 memchr-sse2-bsf memrchr-sse2 memrchr-sse2-bsf memrchr-c
78116         rawmemchr-sse2 rawmemchr-sse2-bsf.
78117         * sysdeps/i386/i686/multiarch/memchr.S: New file.
78118         * sysdeps/i386/i686/multiarch/memchr-sse2.S: New file.
78119         * sysdeps/i386/i686/multiarch/memchr-sse2-bsf.S: New file.
78120         * sysdeps/i386/i686/multiarch/memrchr.S: New file.
78121         * sysdeps/i386/i686/multiarch/memrchr-c.c: New file.
78122         * sysdeps/i386/i686/multiarch/memrchr-sse2.S: New file.
78123         * sysdeps/i386/i686/multiarch/memrchr-sse2-bsf.S: New file.
78124         * sysdeps/i386/i686/multiarch/rawmemchr.S: New file.
78125         * sysdeps/i386/i686/multiarch/rawmemchr-sse2.S: New file.
78126         * sysdeps/i386/i686/multiarch/rawmemchr-sse2-bsf.S: New file.
78127         * string/memrchr.c (MEMRCHR): New macro.
78128
78129 2011-10-12  Ulrich Drepper  <drepper@gmail.com>
78130
78131         Add integration with gcc's -ffinite-math-only and optimize wrapper
78132         functions in libm.
78133         * Versions.def: Define GLIBC_2.15 version for libm.
78134         * math/Makefile (headers): Add bits/math-finite.h.
78135         * math/bits/math-finite.h: New file.
78136         * sysdeps/ia64/fpu/bits/math-finite.h: New file.
78137         * math/Versions [libm] (GLIBC_2.15): Export __*_finite symbols.
78138         * math/e_acoshl.c: Add __*_finite alias.
78139         * math/e_acosl.c: Likewise.
78140         * math/e_asinl.c: Likewise.
78141         * math/e_atan2l.c: Likewise.
78142         * math/e_atanhl.c: Likewise.
78143         * math/e_coshl.c: Likewise.
78144         * math/e_exp10.c: Likewise.
78145         * math/e_exp10f.c: Likewise.
78146         * math/e_exp10l.c: Likewise.
78147         * math/e_exp2l.c: Likewise.
78148         * math/e_fmodl.c: Likewise.
78149         * math/e_gammal_r.c: Likewise.
78150         * math/e_hypotl.c: Likewise.
78151         * math/e_j0l.c: Likewise.
78152         * math/e_j1l.c: Likewise.
78153         * math/e_jnl.c: Likewise.
78154         * math/e_lgammal_r.c: Likewise.
78155         * math/e_log10l.c: Likewise.
78156         * math/e_log2l.c: Likewise.
78157         * math/e_logl.c: Likewise.
78158         * math/e_powl.c: Likewise.
78159         * math/e_sinhl.c: Likewise.
78160         * math/e_sqrtl.c: Likewise.
78161         * math/e_scalb.c: Completely rewritten and optimized.
78162         * math/e_scalbf.c: Likewise.
78163         * math/e_scalbl.c: Likewise.
78164         * math/w_acos.c: Likewise.
78165         * math/w_acosf.c: Likewise.
78166         * math/w_acosl.c: Likewise.
78167         * math/w_acosh.c: Likewise.
78168         * math/w_acoshf.c: Likewise.
78169         * math/w_acoshl.c: Likewise.
78170         * math/w_asin.c: Likewise.
78171         * math/w_asinf.c: Likewise.
78172         * math/w_asinl.c: Likewise.
78173         * math/w_atan2.c: Likewise.
78174         * math/w_atan2f.c: Likewise.
78175         * math/w_atan2l.c: Likewise.
78176         * math/w_atanh.c: Likewise.
78177         * math/w_atanhf.c: Likewise.
78178         * math/w_atanhl.c: Likewise.
78179         * math/w_exp10.c: Likewise.
78180         * math/w_exp10f.c: Likewise.
78181         * math/w_exp10l.c: Likewise.
78182         * math/w_fmod.c: Likewise.
78183         * math/w_fmodf.c: Likewise.
78184         * math/w_fmodl.c: Likewise.
78185         * math/w_j0.c: Likewise.
78186         * math/w_j0f.c: Likewise.
78187         * math/w_j0l.c: Likewise.
78188         * math/w_j1.c: Likewise.
78189         * math/w_j1f.c: Likewise.
78190         * math/w_j1l.c: Likewise.
78191         * math/w_jn.c: Likewise.
78192         * math/w_jnf.c: Likewise.
78193         * math/w_log.c: Likewise.
78194         * math/w_logf.c: Likewise.
78195         * math/w_logl.c: Likewise.
78196         * math/w_log10.c: Likewise.
78197         * math/w_log10f.c: Likewise.
78198         * math/w_log10l.c: Likewise.
78199         * math/w_log2.c: Likewise.
78200         * math/w_log2f.c: Likewise.
78201         * math/w_log2l.c: Likewise.
78202         * math/w_pow.c: Likewise.
78203         * math/w_powf.c: Likewise.
78204         * math/w_powl.c: Likewise.
78205         * math/w_remainder.c: Likewise.
78206         * math/w_remainderf.c: Likewise.
78207         * math/w_remainderl.c: Likewise.
78208         * math/w_scalb.c: Likewise.
78209         * math/w_scalbf.c: Likewise.
78210         * math/w_scalbl.c: Likewise.
78211         * math/w_sqrt.c: Likewise.
78212         * math/w_sqrtf.c: Likewise.
78213         * math/w_sqrtl.c: Likewise.
78214         * math/math.h: Define __MATH_DECLARE_LDOUBLE if long double functions
78215         are declared.  Include <bits/math-finite.h> if -ffinite-math-only is
78216         used.
78217         * math/math_private.h: Declare __kernel_standard_f.
78218         * math/w_cosh.c: Remove cruft and optimize a bit.
78219         * math/w_coshf.c: Likewise.
78220         * math/w_coshl.c: Likewise.
78221         * math/w_exp2.c: Likewise.
78222         * math/w_exp2f.c: Likewise.
78223         * math/w_exp2l.c: Likewise.
78224         * math/w_hypot.c: Likewise.
78225         * math/w_hypotf.c: Likewise.
78226         * math/w_hypotl.c: Likewise.
78227         * math/w_lgamma.c: Likewise.
78228         * math/w_lgamma_r.c: Likewise.
78229         * math/w_lgammaf.c: Likewise.
78230         * math/w_lgammaf_r.c: Likewise.
78231         * math/w_lgammal.c: Likewise.
78232         * math/w_lgammal_r.c: Likewise.
78233         * math/w_sinh.c: Likewise.
78234         * math/w_sinhf.c: Likewise.
78235         * math/w_sinhl.c: Likewise.
78236         * math/w_tgamma.c: Likewise.
78237         * math/w_tgammaf.c: Likewise.
78238         * math/w_tgammal.c: Likewise.
78239         * sysdeps/ieee754/dbl-64/e_atanh.c: Likewise.
78240         * sysdeps/ieee754/flt-32/e_atanhf.c: Likewise.
78241         * sysdeps/i386/fpu/e_acos.S: Add __*_finite alias.
78242         Minor optimizations.  Pretty printing.  Remove cruft.
78243         * sysdeps/i386/fpu/e_acosf.S: Likewise.
78244         * sysdeps/i386/fpu/e_acosh.S: Likewise.
78245         * sysdeps/i386/fpu/e_acoshf.S: Likewise.
78246         * sysdeps/i386/fpu/e_acoshl.S: Likewise.
78247         * sysdeps/i386/fpu/e_acosl.c: Likewise.
78248         * sysdeps/i386/fpu/e_asin.S: Likewise.
78249         * sysdeps/i386/fpu/e_asinf.S: Likewise.
78250         * sysdeps/i386/fpu/e_atan2.S: Likewise.
78251         * sysdeps/i386/fpu/e_atan2f.S: Likewise.
78252         * sysdeps/i386/fpu/e_atan2l.c: Likewise.
78253         * sysdeps/i386/fpu/e_atanh.S: Likewise.
78254         * sysdeps/i386/fpu/e_atanhf.S: Likewise.
78255         * sysdeps/i386/fpu/e_atanhl.S: Likewise.
78256         * sysdeps/i386/fpu/e_exp10.S: Likewise.
78257         * sysdeps/i386/fpu/e_exp10f.S: Likewise.
78258         * sysdeps/i386/fpu/e_exp10l.S: Likewise.
78259         * sysdeps/i386/fpu/e_exp2.S: Likewise.
78260         * sysdeps/i386/fpu/e_exp2f.S: Likewise.
78261         * sysdeps/i386/fpu/e_exp2l.S: Likewise.
78262         * sysdeps/i386/fpu/e_fmod.S: Likewise.
78263         * sysdeps/i386/fpu/e_fmodf.S: Likewise.
78264         * sysdeps/i386/fpu/e_fmodl.c: Likewise.
78265         * sysdeps/i386/fpu/e_hypot.S: Likewise.
78266         * sysdeps/i386/fpu/e_hypotf.S: Likewise.
78267         * sysdeps/i386/fpu/e_log.S: Likewise.
78268         * sysdeps/i386/fpu/e_log10.S: Likewise.
78269         * sysdeps/i386/fpu/e_log10f.S: Likewise.
78270         * sysdeps/i386/fpu/e_log10l.S: Likewise.
78271         * sysdeps/i386/fpu/e_log2.S: Likewise.
78272         * sysdeps/i386/fpu/e_log2f.S: Likewise.
78273         * sysdeps/i386/fpu/e_log2l.S: Likewise.
78274         * sysdeps/i386/fpu/e_logf.S: Likewise.
78275         * sysdeps/i386/fpu/e_logl.S: Likewise.
78276         * sysdeps/i386/fpu/e_pow.S: Likewise.
78277         * sysdeps/i386/fpu/e_powf.S: Likewise.
78278         * sysdeps/i386/fpu/e_powl.S: Likewise.
78279         * sysdeps/i386/fpu/e_remainder.S: Likewise.
78280         * sysdeps/i386/fpu/e_remainderf.S: Likewise.
78281         * sysdeps/i386/fpu/e_remainderl.S: Likewise.
78282         * sysdeps/i386/fpu/e_scalb.S: Likewise.
78283         * sysdeps/i386/fpu/e_scalbf.S: Likewise.
78284         * sysdeps/i386/fpu/e_scalbl.S: Likewise.
78285         * sysdeps/i386/fpu/e_sqrt.S: Likewise.
78286         * sysdeps/i386/fpu/e_sqrtf.S: Likewise.
78287         * sysdeps/i386/fpu/e_sqrtl.c: Likewise.
78288         * sysdeps/ieee754/dbl-64/e_acosh.c: Likewise.
78289         * sysdeps/ieee754/dbl-64/e_asin.c: Likewise.
78290         * sysdeps/ieee754/dbl-64/e_atan2.c: Likewise.
78291         * sysdeps/ieee754/dbl-64/e_cosh.c: Likewise.
78292         * sysdeps/ieee754/dbl-64/e_exp2.c: Likewise.
78293         * sysdeps/ieee754/dbl-64/e_fmod.c: Likewise.
78294         * sysdeps/ieee754/dbl-64/e_gamma_r.c: Likewise.
78295         * sysdeps/ieee754/dbl-64/e_hypot.c: Likewise.
78296         * sysdeps/ieee754/dbl-64/e_j0.c: Likewise.
78297         * sysdeps/ieee754/dbl-64/e_j1.c: Likewise.
78298         * sysdeps/ieee754/dbl-64/e_jn.c: Likewise.
78299         * sysdeps/ieee754/dbl-64/e_lgamma_r.c: Likewise.
78300         * sysdeps/ieee754/dbl-64/e_log.c: Likewise.
78301         * sysdeps/ieee754/dbl-64/e_log10.c: Likewise.
78302         * sysdeps/ieee754/dbl-64/e_log2.c: Likewise.
78303         * sysdeps/ieee754/dbl-64/e_pow.c: Likewise.
78304         * sysdeps/ieee754/dbl-64/e_remainder.c: Likewise.
78305         * sysdeps/ieee754/dbl-64/e_sinh.c: Likewise.
78306         * sysdeps/ieee754/dbl-64/e_sqrt.c: Likewise.
78307         * sysdeps/ieee754/dbl-64/halfulp.c: Likewise.
78308         * sysdeps/ieee754/dbl-64/s_asinh.c: Likewise.
78309         * sysdeps/ieee754/flt-32/e_acosf.c: Likewise.
78310         * sysdeps/ieee754/flt-32/e_acoshf.c: Likewise.
78311         * sysdeps/ieee754/flt-32/e_asinf.c: Likewise.
78312         * sysdeps/ieee754/flt-32/e_atan2f.c: Likewise.
78313         * sysdeps/ieee754/flt-32/e_coshf.c: Likewise.
78314         * sysdeps/ieee754/flt-32/e_exp2f.c: Likewise.
78315         * sysdeps/ieee754/flt-32/e_fmodf.c: Likewise.
78316         * sysdeps/ieee754/flt-32/e_gammaf_r.c: Likewise.
78317         * sysdeps/ieee754/flt-32/e_hypotf.c: Likewise.
78318         * sysdeps/ieee754/flt-32/e_j0f.c: Likewise.
78319         * sysdeps/ieee754/flt-32/e_j1f.c: Likewise.
78320         * sysdeps/ieee754/flt-32/e_jnf.c: Likewise.
78321         * sysdeps/ieee754/flt-32/e_lgammaf_r.c: Likewise.
78322         * sysdeps/ieee754/flt-32/e_log10f.c: Likewise.
78323         * sysdeps/ieee754/flt-32/e_log2f.c: Likewise.
78324         * sysdeps/ieee754/flt-32/e_logf.c: Likewise.
78325         * sysdeps/ieee754/flt-32/e_powf.c: Likewise.
78326         * sysdeps/ieee754/flt-32/e_remainderf.c: Likewise.
78327         * sysdeps/ieee754/flt-32/e_sinhf.c: Likewise.
78328         * sysdeps/ieee754/flt-32/e_sqrtf.c: Likewise.
78329         * sysdeps/ieee754/flt-32/s_asinhf.c: Likewise.
78330         * sysdeps/ieee754/ldbl-128/e_acoshl.c: Likewise.
78331         * sysdeps/ieee754/ldbl-128/e_acosl.c: Likewise.
78332         * sysdeps/ieee754/ldbl-128/e_asinl.c: Likewise.
78333         * sysdeps/ieee754/ldbl-128/e_atan2l.c: Likewise.
78334         * sysdeps/ieee754/ldbl-128/e_atanhl.c: Likewise.
78335         * sysdeps/ieee754/ldbl-128/e_coshl.c: Likewise.
78336         * sysdeps/ieee754/ldbl-128/e_fmodl.c: Likewise.
78337         * sysdeps/ieee754/ldbl-128/e_gammal_r.c: Likewise.
78338         * sysdeps/ieee754/ldbl-128/e_hypotl.c: Likewise.
78339         * sysdeps/ieee754/ldbl-128/e_j0l.c: Likewise.
78340         * sysdeps/ieee754/ldbl-128/e_j1l.c: Likewise.
78341         * sysdeps/ieee754/ldbl-128/e_jnl.c: Likewise.
78342         * sysdeps/ieee754/ldbl-128/e_lgammal_r.c: Likewise.
78343         * sysdeps/ieee754/ldbl-128/e_log10l.c: Likewise.
78344         * sysdeps/ieee754/ldbl-128/e_log2l.c: Likewise.
78345         * sysdeps/ieee754/ldbl-128/e_logl.c: Likewise.
78346         * sysdeps/ieee754/ldbl-128/e_powl.c: Likewise.
78347         * sysdeps/ieee754/ldbl-128/e_remainderl.c: Likewise.
78348         * sysdeps/ieee754/ldbl-128/e_sinhl.c: Likewise.
78349         * sysdeps/ieee754/ldbl-128ibm/e_acoshl.c: Likewise.
78350         * sysdeps/ieee754/ldbl-128ibm/e_acosl.c: Likewise.
78351         * sysdeps/ieee754/ldbl-128ibm/e_asinl.c: Likewise.
78352         * sysdeps/ieee754/ldbl-128ibm/e_atan2l.c: Likewise.
78353         * sysdeps/ieee754/ldbl-128ibm/e_atanhl.c: Likewise.
78354         * sysdeps/ieee754/ldbl-128ibm/e_coshl.c: Likewise.
78355         * sysdeps/ieee754/ldbl-128ibm/e_fmodl.c: Likewise.
78356         * sysdeps/ieee754/ldbl-128ibm/e_gammal_r.c: Likewise.
78357         * sysdeps/ieee754/ldbl-128ibm/e_hypotl.c: Likewise.
78358         * sysdeps/ieee754/ldbl-128ibm/e_log10l.c: Likewise.
78359         * sysdeps/ieee754/ldbl-128ibm/e_log2l.c: Likewise.
78360         * sysdeps/ieee754/ldbl-128ibm/e_logl.c: Likewise.
78361         * sysdeps/ieee754/ldbl-128ibm/e_powl.c: Likewise.
78362         * sysdeps/ieee754/ldbl-128ibm/e_remainderl.c: Likewise.
78363         * sysdeps/ieee754/ldbl-128ibm/e_sinhl.c: Likewise.
78364         * sysdeps/ieee754/ldbl-128ibm/e_sqrtl.c: Likewise.
78365         * sysdeps/ieee754/ldbl-96/e_acoshl.c: Likewise.
78366         * sysdeps/ieee754/ldbl-96/e_asinl.c: Likewise.
78367         * sysdeps/ieee754/ldbl-96/e_atan2l.c: Likewise.
78368         * sysdeps/ieee754/ldbl-96/e_atanhl.c: Likewise.
78369         * sysdeps/ieee754/ldbl-96/e_coshl.c: Likewise.
78370         * sysdeps/ieee754/ldbl-96/e_gammal_r.c: Likewise.
78371         * sysdeps/ieee754/ldbl-96/e_hypotl.c: Likewise.
78372         * sysdeps/ieee754/ldbl-96/e_j0l.c: Likewise.
78373         * sysdeps/ieee754/ldbl-96/e_j1l.c: Likewise.
78374         * sysdeps/ieee754/ldbl-96/e_jnl.c: Likewise.
78375         * sysdeps/ieee754/ldbl-96/e_lgammal_r.c: Likewise.
78376         * sysdeps/ieee754/ldbl-96/e_remainderl.c: Likewise.
78377         * sysdeps/ieee754/ldbl-96/e_sinhl.c: Likewise.
78378         * sysdeps/ieee754/ldbl-96/s_asinhl.c: Likewise.
78379         * sysdeps/powerpc/fpu/e_hypot.c: Likewise.
78380         * sysdeps/powerpc/fpu/e_hypotf.c: Likewise.
78381         * sysdeps/powerpc/fpu/e_sqrt.c: Likewise.
78382         * sysdeps/powerpc/fpu/e_sqrtf.c: Likewise.
78383         * sysdeps/powerpc/powerpc64/fpu/e_sqrt.c: Likewise.
78384         * sysdeps/powerpc/powerpc64/fpu/e_sqrtf.c: Likewise.
78385         * sysdeps/s390/fpu/e_sqrt.c: Likewise.
78386         * sysdeps/s390/fpu/e_sqrtf.c: Likewise.
78387         * sysdeps/s390/fpu/e_sqrtl.c: Likewise.
78388         * sysdeps/sparc/sparc32/e_sqrt.c: Likewise.
78389         * sysdeps/sparc/sparc64/fpu/e_sqrtl.c: Likewise.
78390         * sysdeps/x86_64/fpu/e_exp2l.S: Likewise.
78391         * sysdeps/x86_64/fpu/e_fmodl.S: Likewise.
78392         * sysdeps/x86_64/fpu/e_log10l.S: Likewise.
78393         * sysdeps/x86_64/fpu/e_log2l.S: Likewise.
78394         * sysdeps/x86_64/fpu/e_logl.S: Likewise.
78395         * sysdeps/x86_64/fpu/e_powl.S: Likewise.
78396         * sysdeps/x86_64/fpu/e_remainderl.S: Likewise.
78397         * sysdeps/x86_64/fpu/e_scalbl.S: Likewise.
78398         * sysdeps/x86_64/fpu/e_sqrt.c: Likewise.  Fix parameter order
78399         * sysdeps/x86_64/fpu/e_sqrtf.c: Likewise.
78400         * sysdeps/x86_64/fpu/math_private.h (__isnan): Cast d parameter.
78401         (__isnanf): Likewise.
78402         (__isinf_ns): Likewise.
78403         (__isinf_nsf): Likewise.
78404         (__finite): Likewise.
78405         (__finitef): Likewise.
78406         (__ieee754_sqrt): Define as macro.
78407         (__ieee754_sqrtf): Define as macro.
78408         (__ieee754_sqrtl): Define as macro.
78409         * sysdeps/x86_64/fpu/bits/fenv.h (feraiseexcept): Add partially
78410         inlined copy.
78411         * sysdeps/x86_64/fpu/bits/mathinline.h: Make use of
78412         __FINITE_MATH_ONLY__ consistent.
78413         * sysdeps/ieee754/k_standard.c (__kernel_standard_f): New function.
78414
78415 2011-10-10  Andreas Schwab  <schwab@linux-m68k.org>
78416
78417         * inet/getnetgrent_r.c (nscd_getnetgrent): Use __rawmemchr instead
78418         of rawmemchr.
78419
78420         * sysdeps/ieee754/ldbl-128ibm/s_isinf_nsl.c: New file.
78421
78422 2011-10-09  Ulrich Drepper  <drepper@gmail.com>
78423
78424         * po/ja.po: Update from translation team.
78425
78426 2011-10-08  Roland McGrath  <roland@hack.frob.com>
78427
78428         * locale/programs/locarchive.c (prepare_address_space): New function.
78429         (create_archive, enlarge_archive, open_archive): Use it.
78430
78431         * sysdeps/unix/sysv/linux/x86_64/time.c: Move #include <dl-vdso.h>
78432         inside [SHARED], where it is used.
78433
78434         * nscd/nscd_proto.h: Declare __nscd_setnetgrent.
78435
78436         * nss/getent.c (netgroup_keys): Remove unused variable.
78437         * sysdeps/ieee754/flt-32/s_isinf_nsf.c: Likewise.
78438
78439 2011-10-08  Ulrich Drepper  <drepper@gmail.com>
78440
78441         * include/math.h: Declare __isinf_ns, __isinf_nsf, __isinf_nsl.
78442         * sysdeps/ieee754/dbl-64/s_isinf_ns.c: New file.
78443         * sysdeps/ieee754/dbl-64/wordsize-64/s_isinf_ns.c: New file.
78444         * sysdeps/ieee754/flt-32/s_isinf_nsf.c: New file.
78445         * sysdeps/ieee754/ldbl-128/s_isinf_nsl.c: New file.
78446         * sysdeps/ieee754/ldbl-96/s_isinf_nsl.c: New file.
78447         * math/Makefile (libm-calls): Add s_isinf_ns.
78448         * math/divtc3.c: Use __isinf_nsl instead of isinf.
78449         * math/multc3.c: Likewise.
78450         * math/s_casin.c: Likewise.
78451         * math/s_casinf.c: Likewise.
78452         * math/s_casinl.c: Likewise.
78453         * math/s_ccos.c: Likewise.
78454         * math/s_ccosf.c: Likewise.
78455         * math/s_ccosl.c: Likewise.
78456         * math/s_ctan.c: Likewise.
78457         * math/s_ctanf.c: Likewise.
78458         * math/s_ctanh.c: Likewise.
78459         * math/s_ctanhf.c: Likewise.
78460         * math/s_ctanhl.c: Likewise.
78461         * math/s_ctanl.c: Likewise.
78462         * math/w_fmod.c: Likewise.
78463         * math/w_fmodf.c: Likewise.
78464         * math/w_fmodl.c: Likewise.
78465         * math/w_remainder.c: Likewise.
78466         * math/w_remainderf.c: Likewise.
78467         * math/w_remainderl.c: Likewise.
78468         * sysdeps/ieee754/dbl-64/s_finite.c: Undefine __finite.
78469         * sysdeps/ieee754/dbl-64/s_isnan.c: Undefine __isnan.
78470         * sysdeps/ieee754/dbl-64/wordsize-64/s_finite.c: Undefine __finite.
78471         * sysdeps/ieee754/dbl-64/wordsize-64/s_isnan.c: Undefine __nan.
78472         * sysdeps/ieee754/flt-32/s_finitef.c: Undefine __finitef.
78473         * sysdeps/ieee754/flt-32/s_isnanf.c: Undefine __nan.
78474         * sysdeps/x86_64/fpu/math_private.h: Add optimized versions of __isnsn,
78475         __isnanf, __isinf_ns, __isinf_nsf, __finite, and __finitef.
78476
78477         * stdio-common/printf_fp.c: Use the fact that isinf returns the sign
78478         of the number.
78479         * stdio-common/printf_fphex.c: Likewise.
78480         * stdio-common/printf_size.c: Likewise.
78481
78482         * math/e_exp10.c: Include math_private.h using <...> not "...".
78483         * math/e_exp10f.c: Likewise.
78484         * math/e_exp10l.c: Likewise.
78485         * math/e_exp2l.c: Likewise.
78486         * math/e_j0l.c: Likewise.
78487         * math/e_j1l.c: Likewise.
78488         * math/e_jnl.c: Likewise.
78489         * math/e_lgammal_r.c: Likewise.
78490         * math/e_rem_pio2l.c: Likewise.
78491         * math/e_scalb.c: Likewise.
78492         * math/e_scalbf.c: Likewise.
78493         * math/e_scalbl.c: Likewise.
78494         * math/k_cosl.c: Likewise.
78495         * math/k_sinl.c: Likewise.
78496         * math/k_tanl.c: Likewise.
78497         * math/s_cacoshf.c: Likewise.
78498         * math/s_catan.c: Likewise.
78499         * math/s_catanf.c: Likewise.
78500         * math/s_catanh.c: Likewise.
78501         * math/s_catanhf.c: Likewise.
78502         * math/s_catanhl.c: Likewise.
78503         * math/s_catanl.c: Likewise.
78504         * math/s_ccosh.c: Likewise.
78505         * math/s_ccoshf.c: Likewise.
78506         * math/s_ccoshl.c: Likewise.
78507         * math/s_cexp.c: Likewise.
78508         * math/s_cexpf.c: Likewise.
78509         * math/s_cexpl.c: Likewise.
78510         * math/s_clog.c: Likewise.
78511         * math/s_clog10.c: Likewise.
78512         * math/s_clog10f.c: Likewise.
78513         * math/s_clog10l.c: Likewise.
78514         * math/s_clogf.c: Likewise.
78515         * math/s_clogl.c: Likewise.
78516         * math/s_csin.c: Likewise.
78517         * math/s_csinf.c: Likewise.
78518         * math/s_csinh.c: Likewise.
78519         * math/s_csinhf.c: Likewise.
78520         * math/s_csinhl.c: Likewise.
78521         * math/s_csinl.c: Likewise.
78522         * math/s_csqrt.c: Likewise.
78523         * math/s_csqrtf.c: Likewise.
78524         * math/s_csqrtl.c: Likewise.
78525         * math/s_ctan.c: Likewise.
78526         * math/s_ctanf.c: Likewise.
78527         * math/s_ctanh.c: Likewise.
78528         * math/s_ctanhf.c: Likewise.
78529         * math/s_ctanhl.c: Likewise.
78530         * math/s_ctanl.c: Likewise.
78531         * math/s_ldexp.c: Likewise.
78532         * math/s_ldexpf.c: Likewise.
78533         * math/s_ldexpl.c: Likewise.
78534         * math/s_significand.c: Likewise.
78535         * math/s_significandf.c: Likewise.
78536         * math/s_significandl.c: Likewise.
78537         * math/w_acos.c: Likewise.
78538         * math/w_acosf.c: Likewise.
78539         * math/w_acosh.c: Likewise.
78540         * math/w_acoshf.c: Likewise.
78541         * math/w_acoshl.c: Likewise.
78542         * math/w_acosl.c: Likewise.
78543         * math/w_asin.c: Likewise.
78544         * math/w_asinf.c: Likewise.
78545         * math/w_asinl.c: Likewise.
78546         * math/w_atan2.c: Likewise.
78547         * math/w_atan2f.c: Likewise.
78548         * math/w_atan2l.c: Likewise.
78549         * math/w_atanh.c: Likewise.
78550         * math/w_atanhf.c: Likewise.
78551         * math/w_atanhl.c: Likewise.
78552         * math/w_cosh.c: Likewise.
78553         * math/w_coshf.c: Likewise.
78554         * math/w_coshl.c: Likewise.
78555         * math/w_dremf.c: Likewise.
78556         * math/w_exp10.c: Likewise.
78557         * math/w_exp10f.c: Likewise.
78558         * math/w_exp10l.c: Likewise.
78559         * math/w_exp2.c: Likewise.
78560         * math/w_exp2f.c: Likewise.
78561         * math/w_fmod.c: Likewise.
78562         * math/w_fmodf.c: Likewise.
78563         * math/w_fmodl.c: Likewise.
78564         * math/w_hypot.c: Likewise.
78565         * math/w_hypotf.c: Likewise.
78566         * math/w_hypotl.c: Likewise.
78567         * math/w_j0.c: Likewise.
78568         * math/w_j0f.c: Likewise.
78569         * math/w_j0l.c: Likewise.
78570         * math/w_j1.c: Likewise.
78571         * math/w_j1f.c: Likewise.
78572         * math/w_j1l.c: Likewise.
78573         * math/w_jn.c: Likewise.
78574         * math/w_jnf.c: Likewise.
78575         * math/w_jnl.c: Likewise.
78576         * math/w_lgamma.c: Likewise.
78577         * math/w_lgamma_r.c: Likewise.
78578         * math/w_lgammaf.c: Likewise.
78579         * math/w_lgammaf_r.c: Likewise.
78580         * math/w_lgammal.c: Likewise.
78581         * math/w_lgammal_r.c: Likewise.
78582         * math/w_log.c: Likewise.
78583         * math/w_log10.c: Likewise.
78584         * math/w_log10f.c: Likewise.
78585         * math/w_log10l.c: Likewise.
78586         * math/w_log2.c: Likewise.
78587         * math/w_log2f.c: Likewise.
78588         * math/w_log2l.c: Likewise.
78589         * math/w_logf.c: Likewise.
78590         * math/w_logl.c: Likewise.
78591         * math/w_pow.c: Likewise.
78592         * math/w_powf.c: Likewise.
78593         * math/w_powl.c: Likewise.
78594         * math/w_remainder.c: Likewise.
78595         * math/w_remainderf.c: Likewise.
78596         * math/w_remainderl.c: Likewise.
78597         * math/w_scalb.c: Likewise.
78598         * math/w_scalbf.c: Likewise.
78599         * math/w_scalbl.c: Likewise.
78600         * math/w_sinh.c: Likewise.
78601         * math/w_sinhf.c: Likewise.
78602         * math/w_sinhl.c: Likewise.
78603         * math/w_sqrt.c: Likewise.
78604         * math/w_sqrtf.c: Likewise.
78605         * math/w_sqrtl.c: Likewise.
78606         * math/w_tgamma.c: Likewise.
78607         * math/w_tgammaf.c: Likewise.
78608         * math/w_tgammal.c: Likewise.
78609
78610         * po/ja.po: Update from translation team.
78611
78612 2011-09-29  Andreas Jaeger  <aj@suse.de>
78613
78614         [BZ #13179]
78615         * sunrpc/netname.c (netname2host): Fix logic.
78616
78617         [BZ #6779]
78618         [BZ #6783]
78619         * math/w_remainderl.c (__remainderl): Handle (NaN, 0) and (Inf,y)
78620         correctly.
78621         * math/w_remainder.c (__remainder): Likewise.
78622         * math/w_remainderf.c (__remainderf): Likewise.
78623         * math/libm-test.inc (remainder_test): Add test cases.
78624
78625 2011-10-04  Andreas Krebbel  <Andreas.Krebbel@de.ibm.com>
78626
78627         * stdlib/longlong.h: Update from GCC.  Fix zarch smul_ppmm and
78628         sdiv_qrnnd.
78629
78630 2011-10-07  Ulrich Drepper  <drepper@gmail.com>
78631
78632         * string/test-memcmp.c: Avoid unncessary #defines.
78633         Patch by Liubov Dmitrieva <liubov.dmitrieva@gmail.com>.
78634
78635 2011-08-31  Liubov Dmitrieva  <liubov.dmitrieva@gmail.com>
78636
78637         * sysdeps/x86_64/multiarch/rawmemchr.S: Update.
78638         Use new sse2 version for core i3 - i7 as it's faster
78639         than sse42 version.
78640         (bit_Prefer_PMINUB_for_stringop): New.
78641         * sysdeps/x86_64/rawmemchr.S: Update.
78642         Replace with faster SSE2 version.
78643         * sysdeps/x86_64/memrchr.S: New file.
78644         * sysdeps/x86_64/memchr.S: Update.
78645         Replace with faster SSE2 version.
78646
78647 2011-09-12  Marek Polacek  <mpolacek@redhat.com>
78648
78649         * elf/dl-load.c (lose): Add cast to avoid warning.
78650
78651 2011-10-07  Ulrich Drepper  <drepper@gmail.com>
78652
78653         * po/ca.po: Update from translation team.
78654
78655         * inet/getnetgrent_r.c: Hook up nscd.
78656         * nscd/Makefile (routines): Add nscd_netgroup.
78657         (nscd-modules): Add netgroupcache.
78658         (CFLAGS-netgroupcache.c): Define.
78659         * nscd/cache.c (readdfcts): Add entries for GETNETGRENT and INNETGR.
78660         (cache_search): Add const to second parameter.
78661         * nscd/connections.c (serv2str): Add entries for GETNETGRENT and
78662         INNETGR.
78663         (dbs): Add netgrdb entry.
78664         (reqinfo): Add entries for GETNETGRENT, INNETGR, and GETFDNETGR.
78665         (verify_persistent_db): Handle netgrdb.
78666         (handle_request): Handle GETNETGRENT, INNETGR, and GETFDNETGR.
78667         * nscd/nscd-client.h (request_type): Add GETNETGRENT, INNETGR, and
78668         GETFDNETGR.
78669         (netgroup_response_header): Define.
78670         (innetgroup_response_header): Define.
78671         (datahead): Add netgroup_response_header and innetgroup_response_header
78672         elements.
78673         * nscd/nscd.conf: Add entries for netgroup cache.
78674         * nscd/nscd.h (dbtype): Add netgrdb.
78675         (_PATH_NSCD_NETGROUP_DB): Define.
78676         (netgroup_iov_disabled): Declare.
78677         (xmalloc, xcalloc, xrealloc): Move declarations here.
78678         (cache_search): Adjust prototype.
78679         Add netgroup-related prototypes.
78680         * nscd/nscd_conf.c (dbnames): Add netgrdb entry.
78681         * nscd/nscd_proto.h (__nss_not_use_nscd_netgroup): Declare.
78682         (__nscd_innetgr): Declare.
78683         * nscd/selinux.c (perms): Use access_vector_t as element type and
78684         add netgroup-related initializers.
78685         * nscd/netgroupcache.c: New file.
78686         * nscd/nscd_netgroup.c: New file.
78687         * nss/Versions [libc] (GLIBC_PRIVATE): Export __nss_lookup.
78688         * nss/getent.c (netgroup_keys): Use setnetgrent only for one parameter.
78689         For four parameters use innetgr.
78690         * nss/nss_files/files-init.c: Add definition and callback for netgr.
78691         * nss/nsswitch.c (__nss_lookup): Add libc_hidden_def.
78692         (__nss_disable_nscd): Set __nss_not_use_nscd_netgroup.
78693         * nss/nsswitch.h (__nss_lookup): Add libc_hidden_proto.
78694
78695         * nscd/connections.c (register_traced_file): Don't register file
78696         for disabled databases.
78697
78698 2011-10-06  Ulrich Drepper  <drepper@gmail.com>
78699
78700         * nscd/grpcache.c (cache_addgr): Initialize written in all cases.
78701
78702         * nss/nsswitch.c (__nss_lookup_function): Fix order of deleting
78703         from tree and freeing node.
78704
78705 2011-09-25  Jiri Olsa  <jolsa@redhat.com>
78706
78707         * nss/nsswitch.c (__nss_database_lookup): Handle
78708         nss_parse_service_list out of memory case.
78709
78710 2011-09-15  Jiri Olsa  <jolsa@redhat.com>
78711
78712         * nss/nsswitch.c (__nss_lookup_function): Handle __tsearch
78713         out of memory case.
78714
78715 2011-10-04  Andreas Schwab  <schwab@redhat.com>
78716
78717         * include/dlfcn.h (__RTLD_NOIFUNC): Define.
78718         * elf/do-rel.h (elf_dynamic_do_rel): Add parameter skip_ifunc and
78719         pass it down.
78720         * elf/dynamic-link.h: Adjust prototypes of elf_machine_rel,
78721         elf_machine_rela, elf_machine_lazy_rel.
78722         (_ELF_DYNAMIC_DO_RELOC): Add parameter skip_ifunc and pass it down.
78723         (ELF_DYNAMIC_DO_REL): Likewise.
78724         (ELF_DYNAMIC_DO_RELA): Likewise.
78725         (ELF_DYNAMIC_RELOCATE): Likewise.
78726         * elf/dl-reloc.c (_dl_relocate_object): Pass __RTLD_NOIFUNC down
78727         to ELF_DYNAMIC_DO_REL.
78728         * elf/rtld.c (_dl_start): Adjust use of ELF_DYNAMIC_RELOCATE.
78729         (dl_main): In trace mode always set __RTLD_NOIFUNC.
78730         * elf/dl-conflict.c (_dl_resolve_conflicts): Adjust call to
78731         elf_machine_rela.
78732         * sysdeps/i386/dl-machine.h (elf_machine_rel): Add parameter
78733         skip_ifunc, don't call ifunc function if non-zero.
78734         (elf_machine_rela): Likewise.
78735         (elf_machine_lazy_rel): Likewise.
78736         (elf_machine_lazy_rela): Likewise.
78737         * sysdeps/ia64/dl-machine.h (elf_machine_rela): Likewise.
78738         (elf_machine_lazy_rel): Likewise.
78739         * sysdeps/powerpc/powerpc32/dl-machine.h (elf_machine_rela):
78740         Likewise.
78741         (elf_machine_lazy_rel): Likewise.
78742         * sysdeps/powerpc/powerpc64/dl-machine.h (elf_machine_rela):
78743         Likewise.
78744         (elf_machine_lazy_rel): Likewise.
78745         * sysdeps/s390/s390-32/dl-machine.h (elf_machine_rela): Likewise.
78746         (elf_machine_lazy_rel): Likewise.
78747         * sysdeps/s390/s390-64/dl-machine.h (elf_machine_rela): Likewise.
78748         (elf_machine_lazy_rel): Likewise.
78749         * sysdeps/sh/dl-machine.h (elf_machine_rela): Likewise.
78750         (elf_machine_lazy_rel): Likewise.
78751         * sysdeps/sparc/sparc32/dl-machine.h (elf_machine_rela): Likewise.
78752         (elf_machine_lazy_rel): Likewise.
78753         * sysdeps/sparc/sparc64/dl-machine.h (elf_machine_rela): Likewise.
78754         (elf_machine_lazy_rel): Likewise.
78755         * sysdeps/x86_64/dl-machine.h (elf_machine_rela): Likewise.
78756         (elf_machine_lazy_rel): Likewise.
78757
78758 2011-09-28  Ulrich Drepper  <drepper@gmail.com>
78759
78760         * nss/nss_files/files-init.c (_nss_files_init): Use static
78761         initialization for all the *_traced_file variables.
78762
78763 2011-09-28  Andreas Schwab  <schwab@redhat.com>
78764
78765         * sysdeps/powerpc/fpu/libm-test-ulps: Adjust ULPs for jn tests.
78766
78767 2011-09-27  Roland McGrath  <roland@hack.frob.com>
78768
78769         [BZ #13226]
78770         * manual/signal.texi (Longjmp in Handler): Grammar fixes.
78771
78772 2011-09-27  Andreas Schwab  <schwab@redhat.com>
78773
78774         * nss/nss_files/files-initgroups.c (_nss_files_initgroups_dyn):
78775         Reread the line before reparsing it.
78776
78777 2011-09-26  Andreas Schwab  <schwab@redhat.com>
78778
78779         * sysdeps/x86_64/fpu/bits/mathinline.h: Use __asm instead of asm.
78780
78781 2011-09-21  Chung-Lin Tang  <cltang@codesourcery.com>
78782             Maxim Kuvyrkov  <maxim@codesourcery.com>
78783             Joseph Myers  <joseph@codesourcery.com>
78784
78785         * resolv/Makefile (LDLIBS-resolv.so): Link in $(elfobjdir)/ld.so
78786         if needed for __stack_chk_guard.
78787
78788 2011-09-19  Roland McGrath  <roland@hack.frob.com>
78789
78790         * sysdeps/posix/spawni.c (script_execute): Always define it.
78791         It will be optimized away if unused.
78792         (maybe_script_execute): New function.
78793         (__spawni): Call it.
78794
78795         * Makerules: Don't include tls.make.
78796         (config-tls): Always set to thread.
78797         * tls.make.c: File removed.
78798
78799 2011-09-19  Mike Frysinger  <vapier@gentoo.org>
78800
78801         * Makeconfig (CPPFLAGS): Prepend $(CPPFLAGS-config).
78802         * config.make.in (CPPFLAGS-config): New substituted variable.
78803
78804 2011-09-15  Ulrich Drepper  <drepper@gmail.com>
78805
78806         * sysdeps/ieee754/dbl-64/wordsize-64/s_finite.c: New file.
78807
78808         [BZ #13192]
78809         * sysdeps/unix/sysv/linux/bits/in.h (IP_MULTICAST_ALL): Define.
78810         Patch mostly by Neil Horman <nhorman@tuxdriver.com>.
78811
78812 2011-09-15  Roland McGrath  <roland@hack.frob.com>
78813
78814         * sysdeps/unix/sysv/linux/i386/____longjmp_chk.S
78815         (CALL_FAIL): Use HIDDEN_JUMPTARGET for __fortify_fail.
78816         * sysdeps/unix/sysv/linux/x86_64/____longjmp_chk.S
78817         (CALL_FAIL): Likewise.
78818         * sysdeps/unix/sysv/linux/ia64/____longjmp_chk.S (CHECK_RSP): Likewise.
78819         (CALL_FAIL): Macro removed.
78820         Patch mostly by Mike Frysinger <vapier@gentoo.org>.
78821
78822 2011-09-15  Ulrich Drepper  <drepper@gmail.com>
78823
78824         * sysdeps/x86_64/fpu/bits/mathinline.h: Add fmax and fmin optimizations
78825         for __FINITE_MATH_ONLY__ == 1.
78826
78827 2011-09-15  Andreas Schwab  <schwab@redhat.com>
78828
78829         * sysdeps/powerpc/fpu/e_hypot.c (__ieee754_hypot): Use
78830         __ieee754_sqrt instead of sqrt.
78831         * sysdeps/powerpc/fpu/e_hypotf.c (__ieee754_hypotf): Use
78832         __ieee754_sqrtf instead of sqrtf.
78833         * sysdeps/powerpc/fpu/e_rem_pio2f.c (__ieee754_rem_pio2f): Use
78834         __floorf instead of floorf.
78835         * sysdeps/powerpc/fpu/k_rem_pio2f.c (__fp_kernel_rem_pio2f): Use
78836         __floorf, __truncf instead of floorf, truncf.
78837
78838 2011-09-14  Ulrich Drepper  <drepper@gmail.com>
78839
78840         * sysdeps/x86_64/fpu/s_copysign.S [ELF]: Use correct section.
78841
78842         * sysdeps/x86_64/fpu/bits/mathinline.h (__MATH_INLINE): Use
78843         __extern_always_inline.
78844         Define lrint{f,} and llrint{f,} for 64-bit and in some situations for
78845         32-bit.
78846
78847 2011-09-14  Andreas Schwab  <schwab@redhat.com>
78848
78849         * elf/rtld.c (dl_main): Also relocate in dependency order when
78850         doing symbol dependency testing.
78851
78852 2011-09-13  Andreas Schwab  <schwab@linux-m68k.org>
78853
78854         * sysdeps/powerpc/powerpc64/dl-machine.h (elf_machine_rela):
78855         Always define `refsym'.
78856
78857 2011-09-13  Andreas Schwab  <schwab@redhat.com>
78858
78859         * misc/sys/select.h (__FD_MASK): Renamed from __FDMASK.
78860         (__FD_ELT): Renamed from __FDELT.
78861         * misc/bits/select2.h (__FD_ELT): Likewise.
78862         * bits/select.h (__FD_SET, __FD_CLR, __FD_ISSET): Use __FD_ELT,
78863         __FD_MASK instead of __FDELT, __FDMASK.
78864         * sysdeps/i386/bits/select.h (__FD_SET, __FD_CLR, __FD_ISSET):
78865         Likewise.
78866         * sysdeps/x86_64/bits/select.h (__FD_SET, __FD_CLR, __FD_ISSET):
78867         Likewise.
78868
78869         * elf/Makefile (gen-ldd): Fix pattern.
78870
78871         * elf/rtld.c (dl_main): Only use USE___THREAD when defined.
78872         (init_tls): Likewise.
78873
78874 2011-09-12  Ulrich Drepper  <drepper@gmail.com>
78875
78876         * sysdeps/ieee754/dbl-64/wordsize-64/s_logb.c: New file.
78877
78878 2011-09-12  Andreas Schwab  <schwab@redhat.com>
78879
78880         * sysdeps/unix/sysv/linux/bits/socket.h (__cmsg_nxthdr): Cast to
78881         `struct cmsghdr *' instead of `void *'.
78882         * sysdeps/unix/sysv/linux/sparc/bits/socket.h (__cmsg_nxthdr):
78883         Likewise.
78884
78885 2011-09-11  Andreas Schwab  <schwab@linux-m68k.org>
78886
78887         * elf/Makefile (gen-ldd): Prepend $(..) to $(ldd-rewrite-script)
78888         if non-absolute.
78889         * sysdeps/unix/sysv/linux/configure.in: Remove leading ../ from
78890         ldd_rewrite_script.
78891
78892 2011-09-11  Ulrich Drepper  <drepper@gmail.com>
78893
78894         * configure.in: Remove --with-tls option.
78895         * config.h.in: Remove HAVE_TLS_SUPPORT entry.
78896         * sysdeps/i386/elf/configure.in: Always test for TLS support and err
78897         out in case it is missing.
78898         * sysdeps/ia64/elf/configure.in: Likewise.
78899         * sysdeps/powerpc/powerpc32/elf/configure.in: Likewise.
78900         * sysdeps/powerpc/powerpc64/elf/configure.in: Likewise.
78901         * sysdeps/s390/s390-32/elf/configure.in: Likewise.
78902         * sysdeps/s390/s390-64/elf/configure.in: Likewise.
78903         * sysdeps/sh/elf/configure.in: Likewise.
78904         * sysdeps/sparc/sparc32/elf/configure.in: Likewise.
78905         * sysdeps/sparc/sparc64/elf/configure.in: Likewise.
78906         * sysdeps/x86_64/elf/configure.in: Likewise.
78907         * sysdeps/mach/hurd/i386/tls.h: Remove test for HAVE_TLS_SUPPORT.
78908         * sysdeps/mach/hurd/tls.h: Likewise.
78909
78910         [BZ #13067]
78911         * malloc/obstack.h [!GNUC] (obstack_free): Avoid cast to int.
78912
78913         [BZ #13090]
78914         * configure.in: Fix use of AC_INIT.
78915
78916         * elf/dl-support.c (_dl_pagesize): Initialize to EXEC_PAGESIZE.
78917
78918 2011-09-10  Ulrich Drepper  <drepper@gmail.com>
78919
78920         * malloc/malloc.c: Replace MALLOC_FAILURE_ACTION with use of
78921         __set_errno.
78922         * malloc/hooks.c: Likewise.
78923
78924         [BZ #11929]
78925         * malloc/arena.c (ptmalloc_init_minimal): Removed.  Initialize all
78926         variables statically.
78927         (narenas): Initialize.
78928         (list_lock): Initialize.
78929         (ptmalloc_init): Don't call ptmalloc_init_minimal.  Remove
78930         initializtion of main_arena and list_lock.  Small cleanups.
78931         Replace all uses of malloc_getpagesize with GLRO(dl_pagesize).
78932         * malloc/malloc.c: Remove malloc_getpagesize.  Include <ldsodefs.h>.
78933         Add initializers to main_arena and mp_.
78934         (malloc_state): Remove pagesize member.  Change all users to use
78935         GLRO(dl_pagesize).
78936
78937         * elf/rtld.c (rtld_global_ro): Initialize _dl_pagesize.
78938         * sysdeps/unix/sysv/linux/getpagesize.c: Simplify.  GLRO(dl_pagesize)
78939         is always initialized.
78940
78941         * malloc/malloc.c: Removed unused configurations and dead code.
78942         * malloc/arena.c: Likewise.
78943         * malloc/hooks.c: Likewise.
78944         * malloc/Makefile (CPPFLAGS-malloc.c): Don't add -DATOMIC_FASTBINS.
78945
78946         * include/tls.h: Removed.  USE___THREAD must always be defined.
78947         * bits/libc-tsd.h: Don't handle !USE___THREAD.
78948         * elf/dl-libc.c: Likewise.
78949         * elf/dl-tsd.c: Likewise.
78950         * include/errno.h: Likewise.
78951         * include/netdb.h: Likewise.
78952         * include/resolv.h: Likewise.
78953         * inet/herrno-loc.c: Likewise.
78954         * inet/herrno.c: Likewise.
78955         * malloc/arena.c: Likewise.
78956         * malloc/hooks.c: Likewise.
78957         * malloc/malloc.c: Likewise.
78958         * resolv/res-state.c: Likewise.
78959         * resolv/res_libc.c: Likewise.
78960         * sysdeps/i386/dl-machine.h: Likewise.
78961         * sysdeps/ia64/dl-machine.h: Likewise.
78962         * sysdeps/powerpc/powerpc32/dl-machine.h: Likewise.
78963         * sysdeps/powerpc/powerpc64/dl-machine.h: Likewise.
78964         * sysdeps/s390/s390-32/dl-machine.h: Likewise.
78965         * sysdeps/s390/s390-64/dl-machine.h: Likewise.
78966         * sysdeps/sh/dl-machine.h: Likewise.
78967         * sysdeps/sparc/sparc32/dl-machine.h: Likewise.
78968         * sysdeps/sparc/sparc64/dl-machine.h: Likewise.
78969         * sysdeps/unix/i386/sysdep.S: Likewise.
78970         * sysdeps/unix/sysv/linux/i386/sysdep.h: Likewise.
78971         * sysdeps/unix/sysv/linux/ia64/sysdep.S: Likewise.
78972         * sysdeps/unix/sysv/linux/s390/s390-32/sysdep.S: Likewise.
78973         * sysdeps/unix/sysv/linux/s390/s390-32/sysdep.h: Likewise.
78974         * sysdeps/unix/sysv/linux/s390/s390-64/sysdep.S: Likewise.
78975         * sysdeps/unix/sysv/linux/s390/s390-64/sysdep.h: Likewise.
78976         * sysdeps/unix/sysv/linux/sh/sysdep.h: Likewise.
78977         * sysdeps/unix/sysv/linux/sparc/sparc32/sysdep.h: Likewise.
78978         * sysdeps/unix/sysv/linux/sparc/sparc64/sysdep.h: Likewise.
78979         * sysdeps/unix/sysv/linux/x86_64/sysdep.h: Likewise.
78980         * sysdeps/unix/x86_64/sysdep.S: Likewise.
78981         * sysdeps/x86_64/dl-machine.h: Likewise.
78982         * tls.make.c: Likewise.
78983
78984         * configure.in: Remove --with-__thread option.  Make tests for
78985         --no-whole-archive, __builtin_expect, symbol redirection, __thread,
78986         tls_model attribute fail if no support is available.  Remove
78987         USE_IN_LIBIO.
78988         * Makeconfig: Adjust for dropped configure option.  All features are
78989         now mandatory.
78990         * Makerules: Likewise.
78991         * Versions.def: Likewise.
78992         * argp/argp-fmtstream.c: Likewise.
78993         * argp/argp-fmtstream.h: Likewise.
78994         * argp/argp-help.c: Likewise.
78995         * assert/assert.c: Likewise.
78996         * config.h.in: Likewise.
78997         * config.make.in: Likewise.
78998         * configure: Likewise.
78999         * configure.in: Likewise.
79000         * csu/Versions: Likewise.
79001         * csu/init.c: Likewise.
79002         * elf/tst-audit2.c: Likewise.
79003         * elf/tst-tls10.c: Likewise.
79004         * elf/tst-tls10.h: Likewise.
79005         * elf/tst-tls11.c: Likewise.
79006         * elf/tst-tls12.c: Likewise.
79007         * elf/tst-tls14.c: Likewise.
79008         * elf/tst-tlsmod11.c: Likewise.
79009         * elf/tst-tlsmod12.c: Likewise.
79010         * elf/tst-tlsmod13.c: Likewise.
79011         * elf/tst-tlsmod13a.c: Likewise.
79012         * elf/tst-tlsmod14a.c: Likewise.
79013         * elf/tst-tlsmod15b.c: Likewise.
79014         * elf/tst-tlsmod16a.c: Likewise.
79015         * elf/tst-tlsmod16b.c: Likewise.
79016         * elf/tst-tlsmod7.c: Likewise.
79017         * elf/tst-tlsmod8.c: Likewise.
79018         * elf/tst-tlsmod9.c: Likewise.
79019         * gmon/gmon.c: Likewise.
79020         * grp/fgetgrent_r.c: Likewise.
79021         * grp/putgrent.c: Likewise.
79022         * hurd/fopenport.c: Likewise.
79023         * include/libc-symbols.h: Likewise.
79024         * include/tls.h: Likewise.
79025         * intl/gettextP.h: Likewise.
79026         * intl/loadinfo.h: Likewise.
79027         * locale/global-locale.c: Likewise.
79028         * locale/localeinfo.h: Likewise.
79029         * mach/devstream.c: Likewise.
79030         * malloc/arena.c: Likewise.
79031         * malloc/set-freeres.c: Likewise.
79032         * misc/err.c: Likewise.
79033         * misc/getttyent.c: Likewise.
79034         * misc/mntent_r.c: Likewise.
79035         * posix/getopt.c: Likewise.
79036         * posix/wordexp.c: Likewise.
79037         * pwd/fgetpwent_r.c: Likewise.
79038         * resolv/Versions: Likewise.
79039         * resolv/res_hconf.c: Likewise.
79040         * shadow/fgetspent_r.c: Likewise.
79041         * shadow/putspent.c: Likewise.
79042         * stdio-common/printf_fphex.c: Likewise.
79043         * stdio-common/tmpfile.c: Likewise.
79044         * stdlib/abort.c: Likewise.
79045         * stdlib/fmtmsg.c: Likewise.
79046         * sunrpc/auth_unix.c: Likewise.
79047         * sunrpc/clnt_perr.c: Likewise.
79048         * sunrpc/clnt_tcp.c: Likewise.
79049         * sunrpc/clnt_udp.c: Likewise.
79050         * sunrpc/clnt_unix.c: Likewise.
79051         * sunrpc/openchild.c: Likewise.
79052         * sunrpc/svc_simple.c: Likewise.
79053         * sunrpc/svc_tcp.c: Likewise.
79054         * sunrpc/svc_udp.c: Likewise.
79055         * sunrpc/svc_unix.c: Likewise.
79056         * sunrpc/xdr.c: Likewise.
79057         * sunrpc/xdr_array.c: Likewise.
79058         * sunrpc/xdr_rec.c: Likewise.
79059         * sunrpc/xdr_ref.c: Likewise.
79060         * sunrpc/xdr_stdio.c: Likewise.
79061
79062 2011-09-09  Ulrich Drepper  <drepper@gmail.com>
79063
79064         * sysdeps/i386/fpu/libm-test-ulps: Adjust ULPs for jn tests.
79065
79066 2011-07-03  Andreas Jaeger  <aj@suse.de>
79067
79068         * math/libm-test.inc (jn_test): Add tests for BZ#11589.
79069         * sysdeps/x86_64/fpu/libm-test-ulps: Add new ULPs for jn_test,
79070         regenerate with gen-libm-tests.pl.
79071
79072 2010-05-12  Petr Baudis  <pasky@suse.cz>
79073
79074         [BZ #11589]
79075         * sysdeps/ieee754/dbl-64/e_jn.c: Compensate major precision loss
79076         around j0() zero points by switching to j1().
79077         * sysdeps/ieee754/flt-32/e_jnf.c: Likewise.
79078         * sysdeps/ieee754/ldbl-128/e_jnl.c: Likewise.
79079         * sysdeps/ieee754/ldbl-128ibm/e_jnl.c: Likewise.
79080         * sysdeps/ieee754/ldbl-96/e_jnl.c: Likewise.
79081
79082 2011-09-09  Ulrich Drepper  <drepper@gmail.com>
79083
79084         * sysdeps/unix/bsd/bsd4.4/bits/socket.h (__cmsg_nxthdr): Use NULL
79085         instead of 0.
79086         * sysdeps/unix/sysv/linux/bits/socket.h (__cmsg_nxthdr): Use (void*)0
79087         instead of 0.
79088         * sysdeps/unix/sysv/linux/sparc/bits/socket.h: Likewise.
79089         Patch in part by Pavel Roskin <proski@gnu.org>.
79090
79091         [BZ #13138]
79092         * stdio-common/vfscanf.c (ADDW): Allocate large memory block with
79093         realloc.
79094         (_IO_vfscanf_internal): Remove reteof.  Use errout after setting done.
79095         Free memory block if necessary.
79096
79097         [BZ #12847]
79098         * libio/genops.c (INTDEF): For string streams the _lock pointer can
79099         be NULL.  Don't lock in this case.
79100
79101 2011-09-09  Roland McGrath  <roland@hack.frob.com>
79102
79103         * elf/elf.h (ELFOSABI_GNU): New macro.
79104         (ELFOSABI_LINUX): Define to that.
79105
79106 2011-07-29  Denis Zaitceff  <zaitceff@gmail.com>
79107
79108         * string/strncat.c (strncat): Undef the symbol in case it has been
79109         defined in bits/string.h.
79110
79111 2011-09-09  Ulrich Drepper  <drepper@gmail.com>
79112
79113         * elf/sotruss.ksh: Clean up, fix, and complete help messages.
79114
79115         * elf/dl-iteratephdr.c (__dl_iterate_phdr): Fill in data from the real
79116         link map.
79117
79118 2011-08-17  Andreas Jaeger  <aj@suse.de>
79119
79120         * elf/sprof.c (load_shobj): Remove unused variable log_hashfraction.
79121
79122 2011-08-18  Paul Pluzhnikov  <ppluzhnikov@google.com>
79123             Ian Lance Taylor  <iant@google.com>
79124
79125         * math/libm-test.inc (lround_test): New testcase.
79126         * sysdeps/ieee754/dbl-64/s_lround.c (__lround): Don't lose precision.
79127
79128 2011-09-08  Ulrich Drepper  <drepper@gmail.com>
79129
79130         * Makefile: Remove support for automatic cvs check-ins.
79131         * Makerules: Likewise.
79132         * config.make.in: Likewise.
79133         * configure.in: Likewise.
79134         * intl/Makefile: Likewise.
79135         * locale/Makefile: Likewise.
79136         * po/Makefile: Likewise.
79137         * posix/Makefile: Likewise.
79138         * sysdeps/gnu/Makefile: Likewise.
79139         * sysdeps/mach/hurd/Makefile: Likewise.
79140         * sysdeps/sparc/sparc32/Makefile: Likewise.
79141
79142         [BZ #13118]
79143         * posix/Makefile (bug-regex32-ENV): Define.
79144         Patch by John Stanley <jpsinthemix@verizon.net>.
79145
79146         * misc/Makefile (headers): Add bits/select2.h.
79147         * misc/sys/select.h: Include bits/select2.h for _FORTIFY_SOURCE.
79148         * misc/bits/select2.h: New file.
79149         * include/bits/select2.h: New file.
79150         * debug/Makefile (routines): Add fdelt_chk.
79151         * debug/Versions: Export __fdelt_chk and __fdelt_warn for GLIBC_2.15.
79152         * debug/tst-chk1.c (do_test): Add tests for FD_SET, FD_CLR, and
79153         FD_ISSET.
79154         * debug/fdelt_chk.c: New file.
79155
79156         * wcsmbs/test-wcscmp.c: Moved from string/*.  Adjust.
79157         * wcsmbs/test-wmemcmp.c: Likewise.
79158         * string/Makefile (strop-tests): Remove wcscmp and wmemcmp.
79159         * wcsmbs/Makefile (strop-tests): Add wcscmp and wmemcmp.
79160
79161 2011-09-08  Liubov Dmitrieva  <liubov.dmitrieva@gmail.com>
79162
79163         * string/Makefile (strop-tests): Add memcmp.
79164         * string/test-wmemcmp.c: New file.
79165         * string/test-memcmp.c: Add wmemcmp support.
79166
79167 2011-09-08  Roland McGrath  <roland@hack.frob.com>
79168
79169         [BZ #13153]
79170         * manual/libc.texinfo (EDITION, VERSION, UPDATED): Update for
79171         2011-07-19 change.
79172
79173         * sysdeps/mach/hurd/fork.c (__fork): Initialize REFS so we don't use a
79174         garbage value in a __mach_port_mod_refs call in the cases of the
79175         task-self and thread-self ports.
79176
79177 2011-09-06  Samuel Thibault  <samuel.thibault@ens-lyon.org>
79178
79179         * sysdeps/mach/hurd/sys/param.h (DEV_BSIZE): New macro.
79180
79181 2011-09-08  Andreas Schwab  <schwab@redhat.com>
79182
79183         * elf/dl-load.c (lose): Check for non-null L.
79184
79185 2011-09-07  Ulrich Drepper  <drepper@gmail.com>
79186
79187         * elf/dl-load.c (open_verify): Use O_CLOEXEC.
79188
79189         * elf/dl-libc.c (dlerror_run): Pass back error code from
79190         dl_catch_error.
79191
79192         [BZ #13123]
79193         * elf/dl-load.c (lose): Free l_origin if it is valid.
79194
79195         * sysdeps/i386/i686/multiarch/strchr-sse2-bsf.S: Fix mixup in section
79196         names.
79197         * sysdeps/i386/i686/multiarch/strchr-sse2.S: Likewise.
79198         * sysdeps/i386/i686/multiarch/strlen-sse2-bsf.S: Likewise.
79199         * sysdeps/i386/i686/multiarch/strlen-sse2.S: Likewise.
79200         * sysdeps/i386/i686/multiarch/strrchr-sse2-bsf.S: Likewise.
79201         * sysdeps/i386/i686/multiarch/strrchr-sse2.S: Likewise.
79202         Patch by Liubov Dmitrieva <liubov.dmitrieva@intel.com>.
79203
79204 2011-08-01  Adhemerval Zanella  <azanella@linux.vnet.ibm.com>
79205
79206         * sysdeps/powerpc/fpu/e_hypot.c: New file.
79207         * sysdeps/powerpc/fpu/e_hypotf.c: New file.
79208         * sysdeps/powerpc/fpu/e_rem_pio2f.c: New file.
79209         * sysdeps/powerpc/fpu/k_rem_pio2f.c: New file.
79210         * sysdeps/powerpc/fpu/k_cosf.c: New file.
79211         * sysdeps/powerpc/fpu/k_sinf.c: New file.
79212         * sysdeps/powerpc/fpu/s_cosf.c: New file.
79213         * sysdeps/powerpc/fpu/s_sinf.c: New file.
79214         * sysdeps/powerpc/fpu/s_scalbnf.c: New file.
79215         * sysdeps/powerpc/fpu/s_float_bitwise.h: New file.
79216
79217 2011-08-15  Alan Modra  <amodra@gmail.com>
79218
79219         [BZ #13092]
79220         * sysdeps/powerpc/Makefile (gmon): Move sysdep_routines to..
79221         * sysdeps/powerpc/powerpc64/Makefile (gmon): ..here..
79222         * sysdeps/powerpc/powerpc32/Makefile (gmon): ..and here.  Add
79223         ppc_mcount to static-only-routines.
79224         * sysdeps/powerpc/powerpc32/Versions: Export GLIBC_PRIVATE
79225         __mcount_internal.
79226         * sysdeps/powerpc/powerpc32/ppc-mcount.S (_mcount): Call
79227         __mcount_internal with usual JUMPTARGET.  Remove useless nop.
79228
79229 2011-08-18  David Flaherty  <flaherty@linux.vnet.ibm.com>
79230
79231         * sysdeps/ieee754/ldbl-128ibm/s_fmal.c: New file which checks
79232         for finite and infinity parameters.
79233
79234 2011-08-04  Will Schmidt  <will_schmidt@vnet.ibm.com>
79235
79236         * sysdeps/powerpc/powerpc32/power7/strncmp.S: Adjust the alignment
79237         and add nop instructions for throughput optimization.
79238         * sysdeps/powerpc/powerpc64/power7/strncmp.S: Likewise.
79239
79240 2011-07-28  Will Schmidt  <will_schmidt@vnet.ibm.com>
79241
79242         * sysdeps/powerpc/powerpc32/power7/memcpy.S: Optimize the
79243         aligned copy for power7 with vector-scalar instructions.
79244         * sysdeps/powerpc/powerpc64/power7/memcpy.S: Likewise.
79245
79246 2011-07-24  H.J. Lu  <hongjiu.lu@intel.com>
79247
79248         * sysdeps/x86_64/dl-trampoline.S (_dl_runtime_profile): Simplify
79249         AVX check.
79250
79251 2011-09-07  Andreas Schwab  <schwab@redhat.com>
79252
79253         [BZ #13144]
79254         * sysdeps/unix/sysv/linux/x86_64/bits/sem.h (semdid_ds): Revert
79255         last change.
79256
79257 2011-09-07  Ulrich Drepper  <drepper@gmail.com>
79258
79259         * sysdeps/unix/sysv/linux/x86_64/init-first.c
79260         (_libc_vdso_platform_setup): If vDSO is not present store pointer to
79261         syscall wrapper around clock_gettime in __vdso_clock_gettime.
79262         * sysdeps/unix/sysv/linux/x86_64/syscalls.list: Add entry for
79263         clock_gettime.
79264
79265 2011-09-06  Ulrich Drepper  <drepper@gmail.com>
79266
79267         * sysdeps/unix/sysv/linux/x86_64/clock_gettime.c (INTERNAL_GETTIME):
79268         Forgot to demangle the pointer.
79269
79270         * sysdeps/i386/sysdep.h: Define atom_text_section.
79271         * sysdeps/x86_64/sysdep.h: Likewise.
79272         * sysdeps/i386/i686/multiarch/strchr-sse2-bsf.S: Place function in
79273         section with atom_text_section.
79274         * sysdeps/i386/i686/multiarch/strlen-sse2-bsf.S: Likewise.
79275         * sysdeps/i386/i686/multiarch/strrchr-sse2-bsf.S: Likewise.
79276         * sysdeps/x86_64/multiarch/strchr-sse2-no-bsf.S: Likewise.
79277         * sysdeps/x86_64/multiarch/strlen-no-bsf.S: Likewise.
79278         * sysdeps/x86_64/multiarch/strrchr-sse2-no-bsf.S: Likewise.
79279
79280         * sysdeps/unix/sysv/linux/x86_64/clock_gettime.c: New file.
79281         * sysdeps/unix/sysv/linux/clock_gettime.c (SYSCALL_GETTIME): Allow
79282         already be defined.  Change to take two parameters and don't assign
79283         result to variable.  Adjust all users.
79284         Define INTERNAL_GETTIME if not already defined.
79285         Use INTERNAL_GETTIME instead of INTERNAL_VSYSCALL got clock_gettime
79286         call.
79287         * sysdeps/unix/sysv/linux/x86_64/sysdep.h: Don't define
79288         HAVE_CLOCK_GETTIME_VSYSCALL.
79289         * sysdeps/unix/clock_gettime.c: Adjust use of SYSDEP_GETTIME_CPU.
79290
79291         * sysdeps/unix/sysv/linux/getsysstats.c (__get_nprocs): Don't use
79292         gettimeofday vsyscall, just use time.
79293
79294 2011-09-06  Andreas Schwab  <schwab@redhat.com>
79295
79296         * sysdeps/unix/sysv/linux/x86_64/gettimeofday.c [!SHARED]: Include
79297         <errno.h>.
79298
79299 2011-09-06  Ulrich Drepper  <drepper@gmail.com>
79300
79301         * sysdeps/unix/sysv/linux/kernel-features.h: Add entry for getcpu
79302         syscall on x86-64.
79303         * sysdeps/unix/sysv/linux/x86_64/gettimeofday.c [!SHARED]: Use real
79304         syscall.
79305         * sysdeps/unix/sysv/linux/x86_64/time.c: Likewise.
79306         * sysdeps/unix/sysv/linux/x86_64/sched_getcpu.S [!SHARED]: Use real
79307         syscall if possible.
79308
79309 2011-09-05  Ulrich Drepper  <drepper@gmail.com>
79310
79311         * elf/pldd.c (get_process_info): Don't read whole ELF header, just
79312         e_ident.  Don't pass to find_mapsXX.
79313         * elf/pldd-xx.c (find_mapsXX): Remove second parameter.
79314
79315 2011-07-20  Liubov Dmitrieva  <liubov.dmitrieva@intel.com>
79316
79317         * sysdeps/x86_64/multiarch/Makefile (sysdep_routines): Add
79318         strchr-sse2-no-bsf strrchr-sse2-no-bsf
79319         * sysdeps/x86_64/multiarch/strchr.S: Update.
79320         Check bit_slow_BSF bit.
79321         * sysdeps/x86_64/multiarch/strrchr.S: Likewise.
79322         * sysdeps/x86_64/multiarch/strchr-sse2-no-bsf.S: New file.
79323         * sysdeps/x86_64/multiarch/strrchr-sse2-no-bsf.S: New file.
79324
79325 2011-09-05  Ulrich Drepper  <drepper@gmail.com>
79326
79327         [BZ #13134]
79328         * sysdeps/posix/spawni.c (script_execute): Define only for compatibility
79329         before glibc 2.15.
79330         (tryshell): Define.
79331         (__spawni): Change last parameter to be flag.  Test
79332         SPAWN_XFLAGS_USE_PATH flag to use path or not.
79333         Don't try to use shell unless SPAWN_XFLAGS_TRY_SHELL is set.
79334         * sysdeps/mach/hurd/spawni.c: Change last parameter and adjust user.
79335         * posix/spawni.c: Likewise.
79336         * posix/spawn.c: Add compat version which passed SPAWN_XFLAGS_TRY_SHELL.
79337         * posix/spawnp.c: Likewise.  Change normal version to use
79338         SPAWN_XFLAGS_USE_PATH.
79339         * posix/spawn_int.c: Define SPAWN_XFLAGS_USE_PATH and
79340         SPAWN_XFLAGS_TRY_SHELL.
79341
79342         [BZ #13150]
79343         * posix/glob.h: Remove gcc 1.x support.
79344
79345         [BZ #13068]
79346         * elf/dl-misc.c (_dl_sysdep_read_whole_file): Use O_CLOEXEC.
79347
79348 2011-07-20  Liubov Dmitrieva  <liubov.dmitrieva@intel.com>
79349
79350         * sysdeps/i386/i686/multiarch/Makefile (sysdep_routines): Add
79351         strchr-sse2 strrchr-sse2 strchr-sse2-bsf
79352         strrchr-sse2-bsf
79353         * sysdeps/i386/i686/multiarch/strchr.S: New file.
79354         * sysdeps/i386/i686/multiarch/strrchr.S: New file.
79355         * sysdeps/i386/i686/multiarch/strchr-sse2.S: New file.
79356         * sysdeps/i386/i686/multiarch/strchr-sse2-bsf.S: New file.
79357         * sysdeps/i386/i686/multiarch/strrchr-sse2.S: New file.
79358         * sysdeps/i386/i686/multiarch/strrchr-sse2-bsf.S: New file.
79359
79360 2011-08-29  Liubov Dmitrieva  <liubov.dmitrieva@gmail.com>
79361
79362         * sysdeps/x86_64/wcscmp.S: New file.
79363
79364         * sysdeps/i386/i686/multiarch/Makefile: (sysdep_routines): Add
79365         wcscmp-c wcscmp-sse2
79366         * sysdeps/i386/i686/multiarch/wcscmp-c.c: New file.
79367         * sysdeps/i386/i686/multiarch/wcscmp.S: New file.
79368         * sysdeps/i386/i686/multiarch/wcscmp-sse2.S: New file.
79369         * wcsmbs/wcscmp.c: Allow renaming.
79370
79371 2011-09-05  David S. Miller  <davem@davemloft.net>
79372
79373         * sysdeps/sparc/sparc32/fpu/s_fabsf.S: Use first argument
79374         stack slot, rather than the struct return pointer slot.
79375         * sysdeps/sparc/sparc32/fpu/s_fabs.c: Delete.
79376         * sysdeps/sparc/sparc32/fpu/s_fabs.S: New file.
79377         * sysdeps/sparc/sparc32/sparcv9/fpu/s_fabs.S: Likewise.
79378         * sysdeps/unix/sysv/linux/sparc/sparc32/sparcv9/fpu/Implies: Likewise.
79379
79380 2011-09-05  Ulrich Drepper  <drepper@gmail.com>
79381
79382         * po/ja.po: Update from translation team.
79383
79384         [BZ #13144]
79385         * sysdeps/unix/sysv/linux/x86_64/bits/sem.h (semdid_ds): Fix to match
79386         kernel in 64-bit binaries.
79387
79388 2011-09-01  David S. Miller  <davem@davemloft.net>
79389
79390         * elf/elf.h (HWCAP_SPARC_*): Move to..
79391         * sysdeps/sparc/sysdep.h: this new file and add new values.
79392         * sysdeps/unix/sparc/sysdep.h: Include sysdeps/sparc/sysdep.h
79393         * sysdeps/sparc/dl-procinfo.h: Include sysdep.h and increase
79394         _DL_HWCAP_COUNT to 24.
79395         * sysdeps/sparc/dl-procinfo.c (_dl_sparc_cap_flags): Add new
79396         entries.
79397         * sysdeps/sparc/sparc32/bits/atomic.h: Don't use magic local
79398         __ATOMIC_HWCAP_SPARC_V9 define, use sysdep.h one instead.
79399         * sysdeps/sparc/sparc32/dl-machine.h: Include sysdep.h
79400         * sysdeps/sparc/sparc64/multiarch/memcpy.S: Use HWCAP_SPARC_*
79401         instead of magic constants.
79402         * sysdeps/sparc/sparc64/multiarch/memset.S: Likewise.
79403
79404 2011-08-31  David S. Miller  <davem@davemloft.net>
79405
79406         * sysdeps/unix/sparc/sysdep.h (SETUP_PIC_REG): Define.
79407         * sysdeps/unix/sysv/linux/sparc/sparc32/sysdep.h (PSEUDO):
79408         Reimplement to do errno handling inline.
79409         (SYSCALL_ERROR_HANDLER): New macro.
79410         (__SYSCALL_STRING): Do not do errno handling in asm.
79411         (__CLONE_SYSCALL_STRING): Delete.
79412         (__INTERNAL_SYSCALL_STRING): Delete.
79413         * sysdeps/unix/sysv/linux/sparc/sparc64/sysdep.h: Include
79414         sysdeps/unix/sparc/sysdep.h instead of sysdeps/unix/sysdep.h
79415         (PSEUDO): Reimplement to do errno handling inline.
79416         (ret, ret_NOERRNO, ret_ERRVAL, r0, r1, MOVE): Don't redefine.
79417         (SYSCALL_ERROR_HANDLER): New macro.
79418         (__SYSCALL_STRING): Do not do errno handling in asm.
79419         (__CLONE_SYSCALL_STRING): Delete.
79420         (__INTERNAL_SYSCALL_STRING): Delete.
79421         * sysdeps/unix/sysv/linux/sparc/sysdep.h (INLINE_SYSCALL):
79422         Implement in terms of INTERNAL_SYSCALL and __set_errno, just like
79423         i386.
79424         (INTERNAL_SYSCALL_DECL): Declare %g1 var for err state.
79425         (inline_syscall*): Add 'err' argument.
79426         (INTERNAL_SYSCALL, INTERNAL_SYSCALL_NCS,
79427         INTERNAL_SYSCALL_ERROR_P): Likewise and pass it down.
79428         (INLINE_CLONE_SYSCALL): Reimplement in terms of __SYSCALL_STRING,
79429         INTERNAL_SYSCALL_ERRNO, and INTERNAL_SYSCALL_ERROR_P.
79430
79431         * scripts/data/localplt-sparc-linux-gnu.data: Remove 'ffs'.
79432         * scripts/data/localplt-sparc64-linux-gnu.data: Likewise.
79433
79434 2011-08-30  Andreas Schwab  <schwab@redhat.com>
79435
79436         * elf/rtld.c (dl_main): Relocate objects in dependency order.
79437
79438 2011-08-29  Jiri Olsa <jolsa@redhat.com>
79439
79440         * sysdeps/i386/dl-trampoline.S (_dl_runtime_profile): Fix cfi
79441         directive.
79442
79443 2011-08-24  David S. Miller  <davem@davemloft.net>
79444
79445         * sysdeps/sparc/sparc64/strcmp.S: Rewrite.
79446
79447 2011-08-24  Andreas Schwab  <schwab@redhat.com>
79448
79449         * elf/Makefile: Add rules to build and run unload8 test.
79450         * elf/unload8.c: New file.
79451         * elf/unload8mod1.c: New file.
79452         * elf/unload8mod1x.c: New file.
79453         * elf/unload8mod2.c: New file.
79454         * elf/unload8mod3.c: New file.
79455
79456         * elf/dl-close.c (_dl_close_worker): Reset private search list if
79457         it wasn't used.
79458
79459 2011-08-23  David S. Miller  <davem@davemloft.net>
79460
79461         * sysdeps/sparc/sparc64/dl-machine.h (DL_STACK_END): Do not
79462         subtract stack bias.
79463         * sysdeps/sparc/sparc64/jmpbuf-unwind.h (_JMPBUF_UNWINDS): Use
79464         %sp not %fp in calculations.
79465         (_JMPBUF_UNWINDS_ADJ): Likewise.
79466
79467         * sysdeps/pthread/aio_suspend.c (do_aio_misc_wait): New function.
79468         (aio_suspend): Call it to force an exception region around the
79469         AIO_MISC_WAIT() invocation.
79470
79471 2011-08-23  Andreas Schwab  <schwab@redhat.com>
79472
79473         * sysdeps/i386/i686/multiarch/strspn.S (ENTRY): Add missing
79474         backslash.
79475
79476 2011-07-04  Aurelien Jarno  <aurelien@aurel32.net>
79477
79478         * sysdeps/powerpc/dl-tls.h: Add _PPC_DL_TLS_H inclusion
79479         protection macro.
79480         * sysdeps/powerpc/powerpc64/dl-irel.h: Include <ldsodefs.h>
79481         and <dl-machine.h>.
79482         (Elf64_FuncDesc): Remove.
79483
79484 2011-08-22  David S. Miller  <davem@davemloft.net>
79485
79486         * sysdeps/unix/sysv/linux/sparc/sparc32/____longjmp_chk.S: Fix
79487         sigaltstack check, add missing cfi directives.
79488         * sysdeps/unix/sysv/linux/sparc/sparc64/____longjmp_chk.S: Add
79489         missing cfi directives, and sigaltstack handling.
79490
79491 2011-08-16  Andreas Schwab  <schwab@redhat.com>
79492
79493         [BZ #11724]
79494         * elf/dl-deps.c (_dl_map_object_deps): Only assume cycle when
79495         object is seen twice.
79496         * elf/dl-fini.c (_dl_sort_fini): Likewise.
79497
79498         * elf/Makefile (distribute): Add tst-initorder2.c.
79499         (tests): Add tst-initorder2.
79500         (modules-names): Add tst-initorder2a tst-initorder2b
79501         tst-initorder2c tst-initorder2d.  Add rules to build them.
79502         ($(objpfx)tst-initorder2.out): New rule.
79503         * elf/tst-initorder2.c: New file.
79504         * elf/tst-initorder2.exp: New file.
79505
79506 2011-08-22  Andreas Schwab  <schwab@redhat.com>
79507
79508         * sysdeps/unix/sysv/linux/i386/scandir64.c: Include <string.h>.
79509
79510         * elf/dl-deps.c (_dl_map_object_deps): Move check for missing
79511         dependencies back to end of function.
79512
79513         * dlfcn/Makefile (LDLIBS-bug-atexit3-lib.so): Readd
79514         $(elfobjdir)/ld.so.
79515
79516 2011-08-21  Ulrich Drepper  <drepper@gmail.com>
79517
79518         * sysdeps/unix/sysv/linux/x86_64/gettimeofday.S: Removed.
79519         * sysdeps/unix/sysv/linux/x86_64/time.S: Removed.
79520         * sysdeps/unix/sysv/linux/x86_64/gettimeofday.c: New file.
79521         * sysdeps/unix/sysv/linux/x86_64/time.c: New file.
79522         * sysdeps/unix/sysv/linux/x86_64/bits/libc-vdso.h: Remove declaration
79523         of __vdso_gettimeofday.
79524         * sysdeps/unix/sysv/linux/x86_64/init-first.c: Remove definition of
79525         __vdso_gettimeofday and __vdso_time.  Define __vdso_getcpu with
79526         attribute_hidden.
79527         (_libc_vdso_platform_setup): Remove initialization of
79528         __vdso_gettimeofday and __vdso_time.
79529
79530 2011-08-20  Ulrich Drepper  <drepper@gmail.com>
79531
79532         * nss/nss_files/files-alias.c (get_next_alias): Use feof_unlocked
79533         and fgetc_unlocked.
79534         * nss/nss_files/files-key.c (search): Use fgets_unlocked and
79535         getc_unlocked.
79536
79537         * elf/dl-open.c (add_to_global): Report additions to the global scope
79538         for LD_DEBUG=scopes.
79539         (dl_open_worker): Also print scope of newly loaded dependencies.
79540         (_dl_show_scope): Indicate if there is no scope.
79541
79542         [BZ #13114]
79543         * stdio-common/Makefile (tests): Add bug24.
79544         * stdio-common/bug24.c: New file.
79545
79546 2011-08-19  Andreas Jaeger  <aj@suse.de>
79547
79548         [BZ #13114]
79549         * libio/fileops.c (_IO_new_file_fopen): Fix handling of
79550         non-existant file when using close-on-exec mode.
79551
79552 2011-08-20  Ulrich Drepper  <drepper@gmail.com>
79553
79554         * sysdeps/x86_64/dl-trampoline.S (_dl_runtime_resolve): Fix CFI for
79555         the very first instruction.
79556
79557         * sysdeps/x86_64/dl-trampoline.h: If MORE_CODE is defined, restore
79558         the CFI state in the end.
79559         * sysdeps/x86_64/dl-trampoline.S: Define MORE_CODE before first
79560         inclusion of dl-trampoline.h.
79561         Based on a patch by Jiri Olsa <jolsa@redhat.com>.
79562
79563 2011-08-19  Andreas Schwab  <schwab@redhat.com>
79564
79565         * sysdeps/powerpc/fpu/libm-test-ulps: Relax ctan (0.75 + 1.25 i)
79566         expectations for long double.
79567
79568         * sysdeps/unix/sysv/linux/powerpc/powerpc32/scandir64.c: Renamed
79569         from sysdeps/unix/sysv/linux/powerpc/scandir64.c.
79570
79571 2011-08-14  David S. Miller  <davem@davemloft.net>
79572
79573         * sysdeps/unix/sysv/linux/Makefile (CFLAGS-tst-writev.c): The
79574         artificual limit depends upon the system page size.
79575
79576 2011-08-17  Ulrich Drepper  <drepper@gmail.com>
79577
79578         * Makeconfig (override CFLAGS): Add library-specific CFLAGS.
79579         * resolv/Makefile: Define CFLAGS-libresolv.
79580
79581 2011-08-17  Andreas Schwab  <schwab@redhat.com>
79582
79583         * nss/makedb.c (compute_tables): Make variables used in nested
79584         function static.
79585
79586 2011-08-17  Ulrich Drepper  <drepper@gmail.com>
79587
79588         * elf/pldd-xx.c (r_debug): Explicitly add padding when needed.
79589         * elf/pldd.c (get_process_info): Use pread to re-read auxiliary vector
79590         if buffer was too small.
79591
79592         * elf/pldd.c (main): Attach to all threads in the process.
79593         Rewrite /proc handling to use *at functions.
79594
79595 2011-08-16  Ulrich Drepper  <drepper@gmail.com>
79596
79597         * elf/dl-open.c (_dl_show_scope): Take additional parameter which
79598         specifies first scope to show.
79599         (dl_open_worker): Update callers.  Move printing scope of new
79600         object to before the relocation.
79601         * elf/rtld.c (dl_main): Update _dl_show_scope call.
79602         * sysdeps/generic/ldsodefs.h: Update declaration.
79603
79604         * elf/dl-open.c (_dl_show_scope): Use _dl_debug_printf to generate the
79605         string for the scope number.
79606
79607 2011-08-14  Ulrich Drepper  <drepper@gmail.com>
79608
79609         * nscd/servicescache.c (cache_addserv): Make sure written is always
79610         initialized.
79611
79612 2011-08-14  Roland McGrath  <roland@hack.frob.com>
79613
79614         * sysdeps/i386/i486/bits/atomic.h
79615         (__arch_compare_and_exchange_val_64_acq): Use RET alone at end of
79616         statement expression, so as to suppress "set but not used" warning.
79617         (__arch_c_compare_and_exchange_val_64_acq): Likewise.
79618
79619         * string/strncat.c (STRNCAT): Use prototype definition.
79620
79621         * locale/Makefile (locale-CPPFLAGS): Renamed CPPFLAGS-locale-programs.
79622         (locale-CPPFLAGS): New variable; put LOCALEDIR, LOCALE_ALIAS_PATH and
79623         -Iprograms here.
79624         (cppflags-iterator.mk sequence): Use locale-programs in place of nonlib.
79625         (localedef-modules): Add localedef.
79626         (locale-modules): Add locale.
79627
79628         * sysdeps/generic/ldsodefs.h (struct unique_sym): Add a const.
79629         * elf/rtld.c (dl_main): Invert order of assignment in last change,
79630         to avoid a warning.
79631
79632 2011-08-14  David S. Miller  <davem@davemloft.net>
79633
79634         * sysdeps/unix/sysv/linux/sparc/bits/resource.h (RLIM_INFINITY,
79635         RLIM64_INFINITY): Fix 64-bit values for 32-bit sparc.
79636
79637 2011-08-13  Ulrich Drepper  <drepper@gmail.com>
79638
79639         * elf/dl-open.c: Rename show_scope to _dl_show_scope and export.
79640         (dl_open_worker): Call _dl_show_scope when DL_DEBUG_SCOPES is set.
79641         * elf/rtld.c (dl_main): Set l_name of vDSO.
79642         Call _dl_show_scope when DL_DEBUG_SCOPES.
79643         (process_dl_debug): Recognize scopes flag and also set it for all.
79644         * sysdeps/generic/ldsodefs.h: Define DL_DEBUG_SCOPES.
79645         Declare _dl_show_scope.
79646
79647         * elf/dl-libc.c (do_dlopen_args): Add caller_dlopen.
79648         (do_dlopen): Pass caller_dlopen to dl_open.
79649         (__libc_dlopen_mode): Initialize caller_dlopen.
79650
79651         * intl/l10nflist.c (_nl_normalize_codeset): Make it compile outside
79652         of libc.  Make tolower call locale-independent.  Optimize a bit by
79653         using isdigit instead of isalnum.
79654         * locale/Makefile (locale-CPPFLAGS): Add -DNOT_IN_libc.
79655
79656 2011-08-12  Ulrich Drepper  <drepper@gmail.com>
79657
79658         * elf/dl-load.c (_dl_map_object): Show in debug output whether a DSO
79659         was a dependency or dynamically loaded.
79660
79661 2011-08-11  Ulrich Drepper  <drepper@gmail.com>
79662
79663         * intl/l10nflist.c: Allow architecture-specific pop function.
79664         * sysdeps/x86_64/l10nflist.c: New file.
79665
79666         * intl/l10nflist.c (_nl_make_l10nflist): Use locale-independent
79667         classification.
79668
79669 2011-08-10  Andreas Schwab  <schwab@redhat.com>
79670
79671         * include/dirent.h: Add libc_hidden_proto for scandirat and
79672         scandirat64.  Don't declare __scandirat64.
79673         * dirent/scandirat.c: Add libc_hidden_def.
79674         * dirent/scandirat64.c (SCANDIRAT): Remove underscores.
79675         * sysdeps/unix/sysv/linux/i386/scandir64.c (SCANDIRAT): Likewise.
79676
79677 2011-08-10  David S. Miller  <davem@davemloft.net>
79678
79679         * sysdeps/unix/sysv/linux/ia64/sys/ptrace.h: Add missing comma in
79680         enum.
79681         * sysdeps/unix/sysv/linux/powerpc/sys/ptrace.h: Likewise.
79682         * sysdeps/unix/sysv/linux/s390/sys/ptrace.h: Likewise.
79683         * sysdeps/unix/sysv/linux/sparc/sys/ptrace.h: Likewise.
79684
79685 2011-08-09  Ulrich Drepper  <drepper@gmail.com>
79686
79687         * Versions.def [libc]: Add GLIBC_2.15.
79688         * dirent/Makefile (routines): Add scandirat and scandirat64.
79689         * dirent/Versions [libc]: Export scandirat and scandirat64 for
79690         GLIBC_2.15.
79691         * dirent/dirent.h: Declare scandirat and scandirat64.
79692         * dirent/scandirat.c: New file.
79693         * dirent/scandirat64.c: New file.
79694         * sysdeps/wordsize-64/scandirat.c: New file.
79695         * sysdeps/wordsize-64/scandirat64.c: New file.
79696         * dirent/opendir.c: Define opendirat.
79697         * dirent/scandir.c: Move code to scandirat.c.  Implement scandir
79698         using scandirat.
79699         * dirent/scandir64.c: Adjust for scandir.c change.
79700         * include/dirent.h: Define scandir_cancel_struct.  Declare __opendirat,
79701         __scandirat64, and __scandir_cancel_handler.
79702         * sysdeps/unix/opendir.c: Rename __opendir to __opendirat.  Take
79703         additional parameter and use openat instead of open (outside of ld.so).
79704         Add new __opendir as wrapper around __opendirat.
79705         * sysdeps/unix/sysv/linux/i386/scandir64.c: Reimplement __old_scandir64
79706         here without requiring old scandirat implementation.
79707
79708 2011-08-08  Ulrich Drepper  <drepper@gmail.com>
79709
79710         * dirent/scandir.c (cancel_handler): Renamed to
79711         __scandir_cancel_handler.  Do not define if SKIP_SCANDIR_CANCEL is
79712         defined.  Adjust users.
79713         * dirent/scandir64.c: Define SKIP_SCANDIR_CANCEL.
79714         * sysdeps/unix/sysv/linux/i386/scandir64.c: Likewise.
79715
79716 2011-08-04  Ulrich Drepper  <drepper@gmail.com>
79717
79718         * string/test-string.h (IMPL): Use __STRING to expand name and then
79719         stringify it.
79720
79721         * string/test-strcmp.c: Unify most of the WIDE and !WIDE code.  Lots
79722         of cleanups.
79723
79724 2011-07-22  Liubov Dmitrieva  <liubov.dmitrieva@gmail.com>
79725
79726         * string/Makefile: Update.
79727         (strop-tests): Append strncat.
79728         * string/test-wcscmp.c: New file.
79729         New comprehensive test for wcscmp.
79730         * string/test-strcmp.c: Update.
79731         (WIDE): New define.
79732
79733 2011-07-22  Andreas Schwab  <schwab@redhat.com>
79734
79735         * resolv/res_init.c (__res_vinit): Properly tokenize nameserver
79736         line.
79737
79738 2011-07-26  Andreas Schwab  <schwab@redhat.com>
79739
79740         * sysdeps/posix/getaddrinfo.c (gaih_inet): Don't discard result of
79741         encoding to ACE if AI_IDN.
79742
79743 2011-08-01  Jakub Jelinek  <jakub@redhat.com>
79744
79745         * sysdeps/ieee754/dbl-64/k_rem_pio2.c (__kernel_rem_pio2): Fix up fq
79746         to y conversion for prec 3 and __FLT_EVAL_METHOD__ != 0.
79747
79748 2011-07-22  Liubov Dmitrieva  <liubov.dmitrieva@intel.com>
79749
79750         * sysdeps/i386/i686/multiarch/strcat-sse2.S: Update.
79751         Fix overflow bug in strncat.
79752         * sysdeps/i386/i686/multiarch/strcpy-ssse3.S: Likewise.
79753
79754         * string/test-strncat.c: Update.
79755         Add new tests for checking overflow bugs.
79756
79757 2011-07-15  Liubov Dmitrieva  <liubov.dmitrieva@intel.com>
79758
79759         * sysdeps/i386/i686/multiarch/Makefile (sysdep_routines): Add
79760         strcat-ssse3 strcat-sse2 strncat-ssse3 strncat-sse2 strncat-c.
79761         * sysdeps/i386/i686/multiarch/strcat.S: New file.
79762         * sysdeps/i386/i686/multiarch/strcat-c.c: New file.
79763         * sysdeps/i386/i686/multiarch/strcat-sse2.S: New file.
79764         * sysdeps/i386/i686/multiarch/strcat-ssse3.S: New file.
79765         * sysdeps/i386/i686/multiarch/strncat.S: New file.
79766         * sysdeps/i386/i686/multiarch/strncat-sse2.S: New file.
79767         * sysdeps/i386/i686/multiarch/strncat-ssse3.S: New file.
79768
79769         * sysdeps/i386/i686/multiarch/strcpy-ssse3.S
79770         (USE_AS_STRCAT): Define.
79771         Add strcat and strncat support.
79772         * sysdeps/i386/i686/multiarch/strlen-sse2.S: Likewise.
79773
79774 2011-07-25  Andreas Schwab  <schwab@redhat.com>
79775
79776         * sysdeps/i386/i486/bits/string.h (__strncat_g): Correctly handle
79777         __n bigger than INT_MAX+1.
79778         (__strncmp_g): Likewise.
79779
79780 2011-07-23  Ulrich Drepper  <drepper@gmail.com>
79781
79782         * posix/unistd.h: Define SEEK_DATA and SEEK_HOLE.
79783         * libio/stido.h: Likewise.
79784
79785         * sysdeps/unix/sysv/linux/bits/socket.h (PF_NFC): Define.
79786         (AF_NFC): Define.
79787         * sysdeps/unix/sysv/linux/sparc/bits/socket.h (PF_NFC): Define.
79788         (AF_NFC): Define.
79789
79790         * sysdeps/unix/sysv/linux/sys/ptrace.h: Add new constants.
79791         * sysdeps/unix/sysv/linux/sparc/sys/ptrace.h: Likewise.
79792         * sysdeps/unix/sysv/linux/powerpc/sys/ptrace.h: Likewise.
79793         * sysdeps/unix/sysv/linux/ia64/sys/ptrace.h: Likewise.
79794         * sysdeps/unix/sysv/linux/s390/sys/ptrace.h: Likewise.
79795
79796         [BZ #13021]
79797         * scripts/test-installation.pl: Don't expect libnss_test1 to be
79798         installed.
79799
79800         * sysdeps/x86_64/dl-trampoline.S (_dl_runtime_profile): Fix one more
79801         typo.
79802         (_dl_x86_64_save_sse): Likewise.
79803
79804 2011-07-22  Ulrich Drepper  <drepper@gmail.com>
79805
79806         * sysdeps/x86_64/dl-trampoline.S (_dl_runtime_profile): Fix test for
79807         OSXSAVE.
79808         (_dl_x86_64_save_sse): Likewise.
79809
79810         * crypt/crypt_util.c (__init_des_r): Optimize memset calls.
79811
79812         * crypt/crypt_util.c (__init_des_r): Add read barrier as well.
79813
79814 2011-07-21  Andreas Schwab  <schwab@redhat.com>
79815
79816         * sysdeps/x86_64/dl-trampoline.S (_dl_runtime_profile): Fix last
79817         change.
79818         (_dl_x86_64_save_sse): Use correct AVX check.
79819
79820 2011-07-21  Liubov Dmitrieva  <liubov.dmitrieva@gmail.com>
79821
79822         * sysdeps/x86_64/multiarch/strcpy-sse2-unaligned.S: Fix overfow
79823         bug in strncpy/strncat.
79824         * sysdeps/x86_64/multiarch/strcpy-ssse3.S: Likewise.
79825
79826 2011-07-21  Ulrich Drepper  <drepper@gmail.com>
79827
79828         * string/tester.c (test_strcat): Add tests for different alignments
79829         of source and destination.
79830         (test_strncat): Likewise.
79831
79832 2011-07-20  Ulrich Drepper  <drepper@gmail.com>
79833
79834         [BZ #12852]
79835         * posix/glob.c (glob): Check passed in values before using them in
79836         expressions to avoid some overflows.
79837         (glob_in_dir): Likewise.
79838
79839         [BZ #13007]
79840         * sysdeps/x86_64/dl-trampoline.S (_dl_runtime_profile): More complete
79841         check for AVX enablement so that we don't crash with old kernels and
79842         new hardware.
79843         * elf/tst-audit4.c: Add same checks here.
79844         * elf/tst-audit6.c: Likewise.
79845
79846         * sysdeps/x86_64/bits/link.h (La_x86_64_ymm): Force 16-byte alignment.
79847
79848 2011-07-09  Andreas Schwab  <schwab@linux-m68k.org>
79849
79850         * sysdeps/unix/sysv/linux/pathconf.c: Include <string.h>.
79851
79852 2011-07-20  Ulrich Drepper  <drepper@gmail.com>
79853
79854         * po/cs.po: Update from translation team.
79855         * po/bg.po: Likewise.
79856
79857 2011-07-12  Marek Polacek  <mpolacek@redhat.com>
79858
79859         * misc/sys/cdefs.h: Add support for const attribute.
79860         * sysdeps/unix/sysv/linux/sys/sysmacros.h: Add __attribute_const__
79861         to gnu_dev_{major,minor,makedev} functions.
79862
79863 2011-07-20  Marek Polacek  <mpolacek@redhat.com>
79864
79865         * intl/dcigettext.c (get_output_charset): Add missing bracket.
79866
79867 2011-07-20  Andreas Schwab  <schwab@redhat.com>
79868
79869         * resolv/res_query.c (__libc_res_nquerydomain): Use size_t for
79870         strlen results.
79871
79872 2011-07-13  Andreas Krebbel  <Andreas.Krebbel@de.ibm.com>
79873
79874         * sysdeps/unix/sysv/linux/s390/s390-32/sysdep.h
79875         (INTERNAL_VSYSCALL_NCS): Use r10 for backing up the return address
79876         register in order to avoid conflicts with the soft frame pointer
79877         being held in r11 when necessary.
79878         * sysdeps/unix/sysv/linux/s390/s390-64/sysdep.h
79879         (INTERNAL_VSYSCALL_NCS): Likewise.
79880
79881 2011-07-14  Marek Polacek  <mpolacek@redhat.com>
79882
79883         * elf/dl-fini.c (_dl_sort_fini): Remove unused link_map *l argument,
79884         * elf/dl-fini.c (_dl_fini): Adjust caller.
79885         * elf/dl-close.c (_dl_close_worker): Likewise.
79886         * sysdeps/generic/ldsodefs.h: Adjust declaration.
79887
79888 2011-07-15  Marek Polacek  <mpolacek@redhat.com>
79889
79890         * elf/cache.c (load_aux_cache): Remove unnecessary condition of
79891         "aux_cache->nlibs < 0".
79892
79893         * nscd/nscd_conf.c (nscd_parse_file): Remove unnecessary condition
79894         in the reload-count case.
79895
79896 2011-07-15  Liubov Dmitrieva  <liubov.dmitrieva@intel.com>
79897
79898         * sysdeps/x86_64/multiarch/Makefile (sysdep_routines): Add
79899         strcat-ssse3 strcat-sse2-unaligned strncat-ssse3
79900         strncat-sse2-unaligned strncat-c strlen-sse2-pminub
79901         * sysdeps/x86_64/multiarch/strcat-sse2-unaligned.S: New file.
79902         * sysdeps/x86_64/multiarch/strcat.S: New file.
79903         * sysdeps/x86_64/multiarch/strncat.S: New file.
79904         * sysdeps/x86_64/multiarch/strncat-c.c: New file.
79905         * sysdeps/x86_64/multiarch/strcat-ssse3.S: New file.
79906         * sysdeps/x86_64/multiarch/strncat-sse2-unaligned.S: New file.
79907         * sysdeps/x86_64/multiarch/strncat-ssse3.S: New file.
79908         * sysdeps/x86_64/multiarch/strcpy-ssse3.S
79909         (USE_AS_STRCAT): Define.
79910         Add strcat and strncat support.
79911         * sysdeps/x86_64/multiarch/strlen-no-bsf.S: Likewise.
79912         * sysdeps/x86_64/multiarch/strcpy-sse2-unaligned.S: Likewise.
79913         * sysdeps/x86_64/multiarch/strlen-sse2-pminub.S: New file.
79914         * string/strncat.c: Update.
79915         (USE_AS_STRNCAT): Define.
79916         * sysdeps/x86_64/multiarch/init-arch.c (__init_cpu_features):
79917         Turn on bit_Prefer_PMINUB_for_stringop for Intel Core i3, i5
79918         and i7.
79919         * sysdeps/x86_64/multiarch/init-arch.h
79920         (bit_Prefer_PMINUB_for_stringop): New.
79921         (index_Prefer_PMINUB_for_stringop): Likewise.
79922         * sysdeps/x86_64/multiarch/strlen.S (strlen): Check
79923         bit_Prefer_PMINUB_for_stringop.
79924
79925 2011-07-19  Ulrich Drepper  <drepper@gmail.com>
79926
79927         * crypt/sha512.h (struct sha512_ctx): Move buffer into union and add
79928         buffer64.
79929         * crypt/sha512.c (__sha512_finish_ctx): Use buffer64 for writes instead
79930         of casting of buffer.
79931         * crypt/sha256.h (struct sha256_ctx): Move buffer into union and add
79932         buffer32 and buffer64.
79933         * crypt/sha256.c (__sha256_finish_ctx): Use buffer32 or buffer64 for
79934         writes instead of casting of buffer.
79935         * crypt/md5.h (struct md5_ctx): Move buffer into union and add
79936         buffer32.
79937         * crypt/md5.c (md5_finish_ctx): Use buffer32 for writes instead of
79938         casting of buffer.
79939
79940 2011-07-19  Andreas Schwab  <schwab@redhat.com>
79941
79942         * string/strxfrm_l.c (STRXFRM): Fix alloca accounting.
79943
79944 2011-07-19  Ulrich Drepper  <drepper@gmail.com>
79945
79946         * nscd/nscd.c (termination_handler): Don't do anything for a database
79947         if it has not yet been initialized.
79948
79949 2011-07-18  Ulrich Drepper  <drepper@gmail.com>
79950
79951         * sysdeps/unix/sysv/linux/bits/sched.h (__CPU_EQUAL_S): Fix a typo.
79952
79953 2011-07-15  Marek Polacek  <mpolacek@redhat.com>
79954
79955         * bits/sched.h (__CPU_EQUAL_S): Fix a typo.
79956
79957 2011-07-18  Ulrich Drepper  <drepper@gmail.com>
79958
79959         * po/nl.po: Update from translation team.
79960         * po/sv.po: Likewise.
79961
79962 2011-07-16  Roland McGrath  <roland@hack.frob.com>
79963
79964         * sysdeps/i386/Makefile: Never use -mpreferred-stack-boundary=2,
79965         now disallowed by GCC.
79966
79967         * configure.in (use-default-link): Default to yes if a test -shared
79968         link meets our qualifications.
79969         * configure: Regenerated.
79970
79971         * config.make.in (output-format): New variable.
79972         * configure.in: Check for ld --print-output-format support.
79973         * configure: Regenerated.
79974         * Makerules ($(common-objpfx)format.lds)
79975         [$(output-format) != unknown]: Just use $(output-format),
79976         instead of the linker-script munging.
79977
79978 2011-07-14  Roland McGrath  <roland@hack.frob.com>
79979
79980         * Makefile ($(common-objpfx)linkobj/libc.so): Use $(shlib-lds) instead
79981         of $(common-objpfx)shlib.lds.
79982         * elf/Makefile ($(objpfx)sotruss-lib.so): Likewise.
79983
79984         * sysdeps/i386/i686/multiarch/strstr-c.c (libc_hidden_builtin_def):
79985         Conditionalize redefinition on [SHARED && DO_VERSIONING && !NO_HIDDEN].
79986
79987         * configure.in (-z relro check): Adjust test code to add a large
79988         writable data section after it.
79989         * configure: Regenerated.
79990
79991 2011-07-11  Roland McGrath  <roland@hack.frob.com>
79992
79993         * configure.in (-z relro check): Fix test code to make the variable
79994         truly const.
79995         * configure: Regenerated.
79996
79997 2011-07-11  Ulrich Drepper  <drepper@gmail.com>
79998
79999         * nscd/nscd.h (struct traced_file): Define.
80000         (struct database_dyn): Remove inotify_descr, reset_res, and filename
80001         elements.  Add traced_files.
80002         (inotify_fd): Declare.
80003         (register_traced_file): Declare.
80004         * nscd/connections.c (dbs): Remove reset_res and filename initializers.
80005         (inotify_fd): Export.
80006         (resolv_conf_descr): Remove.
80007         (nscd_init): Move inotify descriptor creation to main.
80008         Don't register files for notification here.
80009         (register_traced_file): New function.
80010         (invalidate_cache): Don't use reset_res to determine whether to call
80011         res_init, go through the list of registered files.
80012         (main_loop_poll): The inotify descriptors are now stored in the
80013         structures for the traced files.
80014         (main_loop_epoll): Likewise.
80015         * nscd/nscd.c (main): Create inotify socket here.  Pass extra argument
80016         to __nss_disable_nscd.
80017         * nscd/cache.c (prune_cache): There is no single inotify descriptor
80018         for a database anymore.  Check the records for all the registered
80019         files instead.
80020         * nss/Makefile (libnss_files-routines): Add files-init.
80021         (libnss_db-routines): Add db-init.
80022         * nss/Versions [libnss_files] (GLIBC_PRIVATE): Add _nss_files_init.
80023         [libnss_db] (GLIBC_PRIVATE): Add _nss_db_init.
80024         * nss/nss_db/db-init.c: New file.
80025         * nss/nss_files/files-init.c: New file.
80026         * nss/nsswitch.c (nss_load_library): New function.  Broken out of
80027         __nss_lookup_function.
80028         (__nss_lookup_function): Call nss_load_library.
80029         (nss_load_all_libraries): New function.
80030         (__nss_disable_nscd): Take parameter with callback function for files
80031         to register.  Set is_nscd.  Load all the DSOs for the NSS modules
80032         used for the cached services.
80033         * nss/nsswitch.h (__nss_disable_nscd): Adjust prototype.
80034         * sysdeps/unix/sysv/linux/Makefile [subdir=nscd]: Pass the various -D
80035         options for features to all the files in nscd.
80036
80037         * nss/nsswitch.c (nss_parse_file): Add missing fclose.
80038
80039 2011-07-10  Roland McGrath  <roland@hack.frob.com>
80040
80041         * csu/elf-init.c (__libc_csu_init): Comment typo.
80042
80043 2011-07-09  Ulrich Drepper  <drepper@gmail.com>
80044
80045         * po/pl.po: Update from translation team.
80046         * po/ja.po: Likewise.
80047         * po/ru.po: Likewise.
80048         * po/ko.po: Likewise.
80049         * po/fr.po: Likewise.
80050
80051 2011-07-09  Roland McGrath  <roland@hack.frob.com>
80052
80053         * configure.in (.ctors/.dtors header and trailer check):
80054         Use an empirical test on a built program.
80055         * configure: Regenerated.
80056
80057         * configure.in (-z relro check): Use an empirical test on a built DSO.
80058         Detect, but do not require, on ia64.
80059         * configure: Regenerated.
80060
80061         * configure.in (READELF): Find it with AC_CHECK_TOOL.
80062         Update tests that use readelf to use $READELF instead.
80063         * configure: Regenerated.
80064
80065 2011-07-08  Ulrich Drepper  <drepper@gmail.com>
80066
80067         * malloc/hooks.c (memalign_check): Avoid using checked_request2size
80068         if the result is not used.
80069
80070 2011-07-05  Andreas Jaeger  <aj@suse.de>
80071
80072         [BZ#9696]
80073         * stdlib/tst-strtod.c: Add testcase.
80074
80075 2011-07-07  Ulrich Drepper  <drepper@gmail.com>
80076
80077         * sysdeps/unix/sysv/linux/pathconf.c (distinguish_extX): New function.
80078         (__statfs_link_max): Use it to distinguish between ext2/3 and ext4.
80079         The latter has a higher limit.  Take additional parameter to pass to
80080         the new function.
80081         (__pathconf): Pass file to __statfs_link_max.
80082         * sysdeps/unix/sysv/linux/fpathconf.c (__fpathconf): Pass fd to
80083         __statfs_link_max.
80084         * sysdeps/unix/sysv/linux/pathconf.h: Adjust prototype of
80085         __statfs_link_max.
80086
80087         [BZ #12868]
80088         * sysdeps/unix/sysv/linux/linux_fsinfo.h: Define Lustre constants.
80089         * sysdeps/unix/sysv/linux/internal_statvfs.c (__statvfs_getflags):
80090         Handle Lustre.
80091         * sysdeps/unix/sysv/linux/pathconf.c (__statfs_link_max): Likewise.
80092         (__statfs_filesize_max): Likewise.
80093         Patch mostly by Andreas Dilger <adilger@whamcloud.com>.
80094
80095 2011-07-05  Andreas Jaeger  <aj@suse.de>
80096
80097         * resolv/res_comp.c (dn_skipname): Remove unused variable.
80098
80099 2011-07-06  Marek Polacek  <mpolacek@redhat.com>
80100
80101         * nis/nss_nisplus/nisplus-spwd.c (_nss_nisplus_setspent): Honour the
80102         `status' variable.
80103         * nis/nss_nisplus/nisplus-ethers.c (_nss_nisplus_setetherent):
80104         Likewise.
80105
80106 2011-07-04  H.J. Lu  <hongjiu.lu@intel.com>
80107
80108         * Makefile (strop-tests): Add strncat.
80109         * string/test-strncat.c: New file.
80110
80111 2011-06-30  Marek Polacek  <mpolacek@redhat.com>
80112
80113         * iconvdata/johab.c: Don't inline `johab_sym_hanja_to_ucs' function.
80114
80115 2011-06-21  Andreas Jaeger  <aj@suse.de>
80116
80117         * sysdeps/s390/s390-64/Makefile ($(inst_gconvdir)/gconv-modules):
80118         Copy rule from iconvdata/Makefile.
80119
80120 2011-07-06  Ulrich Drepper  <drepper@gmail.com>
80121
80122         [BZ #12922]
80123         * posix/getopt.c (_getopt_internal_r): When "W;" is in short options
80124         but no long options are defined, just return 'W'.
80125
80126 2011-06-22  Marek Polacek  <mpolacek@redhat.com>
80127
80128         [BZ #9696]
80129         * stdlib/strtod_l.c (round_and_return): Set ERANGE instead of EDOM.
80130
80131 2011-07-06  Ulrich Drepper  <drepper@gmail.com>
80132
80133         * inet/getnetgrent_r.c (internal_getnetgrent_r): Fix check for known
80134         netgroups to read.
80135         (innetgr): Likewise.
80136
80137 2011-07-05  Roland McGrath  <roland@hack.frob.com>
80138
80139         * config.make.in (install_root): Default to $(DESTDIR).
80140
80141 2011-07-05  Ulrich Drepper  <drepper@gmail.com>
80142
80143         * nscd/nscd_getserv_r.c (nscd_getserv_r): Add cast to avoid warning.
80144
80145 2011-07-02  Roland McGrath  <roland@hack.frob.com>
80146
80147         * Makerules ($(common-objpfx)format.lds): Fail if result is empty.
80148
80149         * Makefile ($(common-objpfx)testrun.sh): Generate to work relative to
80150         containing directory rather than embedding absolute directory names.
80151
80152         * scripts/check-local-headers.sh: Rewritten using awk.
80153         Match by word, not by line.  Print error messages for matches.
80154         * Makefile ($(objpfx)check-local-headers.out): Pass AWK in to it.
80155
80156         * Makerules [shlib-lds-flags empty]:
80157         ($(common-objpfx)libc_pic.opts): New target.
80158         ($(common-objpfx)libc_pic.os.clean): New target.
80159         ($(common-objpfx)libc.so): Link it instead of libc_pic.os.
80160
80161         * config.make.in (OBJCOPY): New variable.
80162         * aclocal.m4 (LIBC_PROG_BINUTILS): Substitute OBJCOPY too.
80163         * configure: Regenerated.
80164
80165         * config.make.in (use-default-link): New variable.
80166         * configure.in (use_default_link): Grok --with-default-link to set it.
80167         * configure: Regenerated.
80168         * Makerules [$(elf) = yes] [$(use-default-link) = yes]:
80169         (shlib-lds, shlib-lds-flags): Define to empty.
80170
80171         * Makerules (shlib-lds): New variable.
80172         (shlib-lds-flags): New variable.
80173         (build-shlib, build-moduile, build-module-asneeded): Use it.
80174         ($(common-objpfx)libc.so): Use $(shlib-lds).
80175         ($(extra-modules-build:%=$(objpfx)%.so)): Likewise.
80176         * iconvdata/extra-module.mk ($(objpfx)$(mod).so): Likewise.
80177
80178         * elf/dynamic-link.h (elf_get_dynamic_info): Make asserts accept
80179         DT_FLAGS/DT_FLAGS_1 with zero flags.
80180
80181         * elf/Makefile ($(objpfx)ld.so): Use -defsym=_begin=0 instead of
80182         linker script munging.
80183
80184 2011-07-02  Ulrich Drepper  <drepper@gmail.com>
80185
80186         * crypt/sha512.h (struct sha512_ctx): Add union to access total also
80187         as 128-bit value.
80188         * crypt/sha512.c (sha512_process_block): Perform total addition using
80189         128-bit if possible.
80190         (__sha512_finish_ctx): Likewise.
80191         * crypt/sha256.h (struct sha256_ctx): Add union to access total also
80192         as 64-bit value.
80193         * crypt/sha256.c (SWAP64): Define.
80194         (sha256_process_block): Perform total addition using 64-bit if
80195         possible.
80196         (__sha256_finish_ctx): Likewise.
80197
80198 2011-07-01  Ulrich Drepper  <drepper@gmail.com>
80199
80200         * nscd/pwdcache.c (cache_addpw): Cleanup.  Add branch prediction.
80201         * nscd/initgrcache.c (addinitgroupsX): Likewise.
80202         * nscd/hstcache.c (cache_addhst): Likewise.
80203         * nscd/grpcache.c (cache_addgr): Likewise.
80204         * nscd/aicache.c (addhstaiX): Likewise.
80205         * nscd/servicescache.c (cache_addserv): Handle zero negtimeout.
80206
80207 2011-07-01  Thorsten Kukuk  <kukuk@suse.de>
80208
80209         * nscd/pwdcache.c (cache_addpw): Handle zero negtimeout.
80210         * nscd/initgrcache.c (addinitgroupsX): Likewise.
80211         * nscd/hstcache.c (cache_addhst): Likewise.
80212         * nscd/grpcache.c (cache_addgr): Likewise.
80213         * nscd/aicache.c (addhstaiX): Likewise.
80214
80215 2011-07-01  Andreas Schwab  <schwab@redhat.com>
80216
80217         * nis/nss_compat/compat-pwd.c (getpwent_next_nss_netgr): Query NIS
80218         domain only when needed.
80219
80220 2011-06-30  Andreas Schwab  <schwab@redhat.com>
80221
80222         * sysdeps/posix/getaddrinfo.c (gaih_inet): Make sure RES_USE_INET6
80223         is always restored.
80224
80225 2011-06-29  Ulrich Drepper  <drepper@gmail.com>
80226
80227         * nscd/grpcache.c (cache_addgr): Don't write notfound reply if we
80228         are re-adding the entry.
80229         * nscd/servicescache.c (cache_addserv): Likewise.
80230
80231 2011-06-30  Aurelien Jarno  <aurelien@aurel32.net>
80232
80233         * sysdeps/generic/dl-irel.h: fix protection against multiple
80234         inclusions.
80235         * sysdeps/generic/dl-irel.h (elf_ifunc_invoke): New.
80236
80237 2011-06-28  Ulrich Drepper  <drepper@gmail.com>
80238
80239         [BZ #12935]
80240         * malloc/memusage.sh: Fix quoting in message.
80241         * debug/xtrace.sh: Likewise.
80242
80243         * configure.in: Remove support for --experimental-malloc option, make
80244         it the default.
80245         * config.make.in: Likewise.
80246         * malloc/Makefile: Likewise.
80247
80248 2011-06-27  Andreas Schwab  <schwab@redhat.com>
80249
80250         * iconvdata/gb18030.c (BODY for TO_LOOP): Fix encoding of non-BMP
80251         two-byte characters.
80252
80253 2011-06-27  Roland McGrath  <roland@hack.frob.com>
80254
80255         * configure.in (NO_CTORS_DTORS_SECTIONS): Give this check its own
80256         AC_CACHE_CHECK invocation.
80257         * configure: Regenerated.
80258
80259         * elf/soinit.c (__CTOR_LIST__, __DTOR_LIST__): Add used attribute.
80260
80261 2011-06-27  Ulrich Drepper  <drepper@gmail.com>
80262
80263         [BZ #12350]
80264         * nscd/aicache.c (addhstaiX):  Restore only RES_USE_INET6
80265         bit from old_res_options.
80266
80267         * sysdeps/unix/sysv/linux/Makefile (CFLAGS-servicescache.c): Define.
80268
80269         * inet/getnetgrent_r.c (innetgr): Minimal cleanup, use correct return
80270         value type for setfct.
80271
80272 2011-06-23  H.J. Lu  <hongjiu.lu@intel.com>
80273
80274         * sysdeps/unix/sysv/linux/getsysstats.c (__get_nprocs): Use
80275         __gettimeofday instead of gettimeofday.
80276
80277 2011-06-26  Ulrich Drepper  <drepper@gmail.com>
80278
80279         * elf/Makefile (all-built-dso): No need to check linkobj/libc.so.
80280
80281 2011-06-24  H.J. Lu  <hongjiu.lu@intel.com>
80282
80283         * sysdeps/i386/i686/multiarch/strcpy-sse2.S (RETURN): Fix a typo.
80284
80285         * sysdeps/i386/i686/multiarch/strcpy-ssse3.S: Correct unwind
80286         info.
80287
80288 2011-06-22  H.J. Lu  <hongjiu.lu@intel.com>
80289
80290         * sysdeps/x86_64/multiarch/Makefile (sysdep_routines): Add
80291         strcpy-ssse3 strncpy-ssse3 stpcpy-ssse3 stpncpy-ssse3
80292         strcpy-sse2-unaligned strncpy-sse2-unaligned
80293         stpcpy-sse2-unaligned stpncpy-sse2-unaligned.
80294         * sysdeps/x86_64/multiarch/stpcpy-sse2-unaligned.S: New file.
80295         * sysdeps/x86_64/multiarch/stpcpy-ssse3.S: New file.
80296         * sysdeps/x86_64/multiarch/stpncpy-sse2-unaligned.S: New file.
80297         * sysdeps/x86_64/multiarch/stpncpy-ssse3.S: New file.
80298         * sysdeps/x86_64/multiarch/strcpy-sse2-unaligned.S: New file.
80299         * sysdeps/x86_64/multiarch/strcpy-ssse3.S: New file.
80300         * sysdeps/x86_64/multiarch/strncpy-sse2-unaligned.S: New file.
80301         * sysdeps/x86_64/multiarch/strncpy-ssse3.S: New file.
80302         * sysdeps/x86_64/multiarch/strcpy.S: Remove strcpy with SSSE3.
80303         (STRCPY): Support SSE2 and SSSE3 versions.
80304
80305 2011-06-24  Ulrich Drepper  <drepper@gmail.com>
80306
80307         [BZ #12874]
80308         * sysdeps/unix/sysv/linux/Makefile (CFLAGS-tst-writev.c): Define.
80309         * sysdeps/wordsize-64/tst-writev.c: Work around problem with 2.6.38+
80310         kernels which artificially limit size of requests.
80311
80312 2011-06-22  H.J. Lu  <hongjiu.lu@intel.com>
80313
80314         * sysdeps/i386/i686/multiarch/Makefile (sysdep_routines): Add
80315         strncpy-c strcpy-ssse3 strncpy-ssse3 stpcpy-ssse3 stpncpy-ssse3
80316         strcpy-sse2 strncpy-sse2 stpcpy-sse2 stpncpy-sse2.
80317         * sysdeps/i386/i686/multiarch/stpcpy-sse2.S: New file.
80318         * sysdeps/i386/i686/multiarch/stpcpy-ssse3.S: New file.
80319         * sysdeps/i386/i686/multiarch/stpncpy-sse2.S: New file.
80320         * sysdeps/i386/i686/multiarch/stpncpy-ssse3.S: New file.
80321         * sysdeps/i386/i686/multiarch/stpncpy.S : New file.
80322         * sysdeps/i386/i686/multiarch/strcpy-sse2.S : New file.
80323         * sysdeps/i386/i686/multiarch/strcpy-ssse3.S: New file.
80324         * sysdeps/i386/i686/multiarch/strcpy.S: New file.
80325         * sysdeps/i386/i686/multiarch/strncpy-c.c: New file.
80326         * sysdeps/i386/i686/multiarch/strncpy-sse2.S: New file.
80327         * sysdeps/i386/i686/multiarch/strncpy-ssse3.S: New file.
80328         * sysdeps/i386/i686/multiarch/strncpy.S: New file.
80329         * sysdeps/x86_64/multiarch/init-arch.c (__init_cpu_features):
80330         Enable unaligned load optimization for Intel Core i3, i5 and i7
80331         processors.
80332         * sysdeps/x86_64/multiarch/init-arch.h (bit_Fast_Unaligned_Load):
80333         Define.
80334         (index_Fast_Unaligned_Load): Define.
80335         (HAS_FAST_UNALIGNED_LOAD): Define.
80336
80337 2011-06-23  Marek Polacek  <mpolacek@redhat.com>
80338
80339         * nss/nss_db/db-open.c: Include <unistd.h> for read declaration.
80340
80341 2011-06-22  Ulrich Drepper  <drepper@gmail.com>
80342
80343         [BZ #12907]
80344         * sysdeps/posix/getaddrinfo.c (getaddrinfo): Avoid calling __check_pf
80345         until it is clear that the information is realy needed.
80346         Patch mostly by David Hanisch <david.hanisch@nsn.com>.
80347
80348 2011-06-22  Andreas Schwab  <schwab@redhat.com>
80349
80350         * sysdeps/posix/getaddrinfo.c (gaih_inet): Fix last change.
80351
80352 2011-06-22  Ulrich Drepper  <drepper@gmail.com>
80353
80354         * sysdeps/unix/sysv/linux/getsysstats.c (__get_nprocs): Use
80355         /sys/devices/system/cpu/online if it is usable.
80356
80357         * sysdeps/unix/sysv/linux/getsysstats.c (__get_nprocs): Rate limit
80358         reading the information from the /proc filesystem to once a second.
80359
80360 2011-06-21  Andreas Jaeger  <aj@suse.de>
80361
80362         * sysdeps/unix/sysv/linux/bits/sigcontext.h: Fix definition of
80363         NULL after inclusion of kernel headers.
80364
80365 2011-06-21  Ulrich Drepper  <drepper@gmail.com>
80366
80367         * nss/nss_db/db-XXX.c (nss_db_setENT): Only set entidx for successful
80368         calls to internal_setent.
80369
80370         [BZ #12885]
80371         * sysdeps/posix/getaddrinfo.c (gaih_inet): When looking up only IPv6
80372         addresses using gethostbyname4_r ignore IPv4 addresses.
80373
80374         * sysdeps/posix/getaddrinfo.c (gaih_inet): After the last change the
80375         branch using gethostbyname2 is only for AF_INET.  Optimize accordingly.
80376
80377         * inet/getnetgrent_r.c: Use DL_CALL_FCT in several places.
80378
80379 2011-06-20  David S. Miller  <davem@davemloft.net>
80380
80381         * sysdeps/sparc/sparc32/dl-plt.h: Protect against multiple
80382         inclusions.
80383         * sysdeps/sparc/sparc64/dl-plt.h: Likewise.
80384
80385         * sysdeps/i386/dl-irel.h (elf_ifunc_invoke): New.
80386         (elf_irel): Use it.
80387         * sysdeps/powerpc/powerpc32/dl-irel.h: Likewise.
80388         * sysdeps/powerpc/powerpc64/dl-irel.h: Likewise.
80389         * sysdeps/sparc/sparc32/dl-irel.h: Likewise.
80390         * sysdeps/sparc/sparc64/dl-irel.h: Likewise.
80391         * sysdeps/x86_64/dl-irel.h: Likewise.
80392
80393         * elf/dl-runtime.c: Use elf_ifunc_invoke.
80394         * elf/dl-sym.c: Likewise.
80395
80396 2011-06-15  Ulrich Drepper  <drepper@gmail.com>
80397
80398         * resolv/res_send.c (__libc_res_nsend): Fix typos in last patch.  We
80399         need to dereference resplen2.
80400
80401 2011-06-14  Andreas Schwab  <schwab@redhat.com>
80402
80403         * sysdeps/unix/sysv/linux/wordsize-64/dl-fxstatat64.c: New file.
80404
80405 2011-06-15  Ulrich Drepper  <drepper@gmail.com>
80406
80407         * Makeconfig: Define vardbdir and inst_vardbdir.
80408         * nss/Makefile: Add rules to install db-Makefile.
80409
80410         * nss/nss_db/db-XXX.c: Cleanup.
80411
80412         * nss/Makefile (libnss_db-dbs): Add db-initgroups.
80413         * nss/Versions [libnss_db]: Add _nss_db_initgroups_dyn for
80414         GLIBC_PRIVATE.
80415         * nss/db-Makefile (groups.db): Emit entries for initgroups lookups.
80416         * nss/makedb.c: Implement -g option to specify that value strings
80417         are generated and should not be added to table iterated over for
80418         get*ent calls.
80419         * nss/nss_db/db-initgroups.c: New file.
80420
80421         * nss/getent.c: Add support for initgroups lookups through getgrouplist
80422         interface.
80423
80424         * grp/initgroups.c (__nss_initgroups_database): Renamed and exported.
80425         (internal_getgrouplist): Adjust to name change.
80426         Update use_initgroups_entry if this is not the first call.
80427         * nss/databases.def: Add initgroups entry.
80428
80429         * nss/makedb.c (compute_tables): Check result of multiple hash table
80430         sizes to minimize maximum chain length.
80431
80432 2011-06-14  Ulrich Drepper  <drepper@gmail.com>
80433
80434         * Versions.def: Add entry for libnss_db.
80435         * shlib-versions: Likewise.
80436         * nss/Makefile: Add rules to build libnss_db.
80437         * nss/Versions: Add libnss_db information.  Organize libnss_files
80438         entries better.
80439         * nss/db-Makefile: Add gshadow support.  Change rules for the new
80440         makedb progra.  Some minor improvements to generate smaller files.
80441         * nss/nss_db/nss_db.h: Move NSS database header data structures to
80442         here from...
80443         * nss/makedb.c: ...here.
80444         Improve database format to be smaller and require less memory at
80445         runtime.
80446         * nss/nss_db/db-XXX.x: Adjust for new database format.  Don't use
80447         db anymore.
80448         * nss/nss_db/db-netgrp.c: Likewise.
80449         * nss/nss_db/db-open.c: Likewise.
80450         * nss/nss_files/flies-XXX.x: Adjust comments.
80451         * nss/nss_files/files-ethers.c: Adjust for new DB_LOOKUP definition.
80452         * nss/nss_files/files-grp.c: Likewise.
80453         * nss/nss_files/files-hosts.c: Likewise.
80454         * nss/nss_files/files-network.c: Likewise.
80455         * nss/nss_files/files-proto.c: Likewise.
80456         * nss/nss_files/files-pwd.c: Likewise.
80457         * nss/nss_files/files-rpc.c: Likewise.
80458         * nss/nss_files/files-service.c: Likewise.
80459         * nss/nss_files/files-sgrp.c: Likewise.
80460         * nss/nss_files/files-spwd.c: Likewise.
80461         * nss/nss_db/db-alias.c: Removed.
80462         * nss/nss_db/dummy-db.h: Removed.
80463
80464 2011-06-02  Ulrich Drepper  <drepper@gmail.com>
80465
80466         * nss/makedb.c: Rewritten to not use database library.
80467         * nss/Makefile: Update to build new makedb program.
80468
80469 2011-06-14  Andreas Jaeger  <aj@suse.de>
80470
80471         * sysdeps/unix/sysv/linux/check_native.c: Include <string.h> for
80472         memset declaration.
80473
80474 2011-06-10  Andreas Schwab  <schwab@redhat.com>
80475
80476         * sysdeps/posix/getaddrinfo.c (gaih_inet): Fix logic allocating
80477         tmpbuf.
80478
80479 2011-06-10  Roland McGrath  <roland@hack.frob.com>
80480
80481         * Makerules (shlib.lds): Fail if the linker script comes out empty.
80482         * elf/Makefile ($(objpfx)ld.so): Likewise.
80483
80484         * Makefile ($(common-objpfx)linkobj/libc.so): Break long lines with \.
80485         Don't list ld.so twice in dependencies.
80486
80487         * posix/bug-regex31.c: Include <stdlib.h>.
80488
80489         * nscd/hstcache.c (cache_addhst): Remove unused variable.
80490
80491         * nis/nss_compat/compat-spwd.c
80492         (getspent_next_nss_netgr): Remove unused variable.
80493         * nis/nss_compat/compat-pwd.c (getpwent_next_nss_netgr): Likewise.
80494
80495         * nis/nis_print_group_entry.c (nis_print_group_entry): Fix "Implicit
80496         nonmembers" output to use the right array.
80497
80498         * resolv/nss_dns/dns-network.c (getanswer_r): Remove unused variable.
80499
80500         * elf/dl-open.c (_dl_open): Quash warnings when DL_NNS==1.
80501
80502         * locale/programs/ld-ctype.c (ctype_read): Remove unused variable.
80503         * locale/programs/ld-collate.c (add_to_tablewc): Likewise.
80504         * catgets/gencat.c (read_input_file): Likewise.
80505         * locale/programs/locarchive.c (enlarge_archive): Likewise.
80506
80507         * sunrpc/clnt_udp.c (__libc_clntudp_bufcreate): Move DONTBLOCK
80508         variable definition inside #if's controlling its use.
80509
80510         * inet/getnetgrent_r.c (innetgr): Remove unused variable.
80511
80512         * resolv/res_hconf.c (_res_hconf_reorder_addrs): Fix errno restoration.
80513
80514         * misc/syslog.c (__vsyslog_chk): Remove unused variable.
80515
80516         * io/fts.c (fts_build): Use if (0 && ...) rather than #if 0 for
80517         unreachable code.
80518
80519         * stdio-common/printf_fp.c (___printf_fp): Remove unused variable.
80520
80521         * configure.in (nss-crypt check): Use AC_LANG_PROGRAM.
80522         * configure: Regenerated.
80523
80524         * Makerules: Revert last change.
80525         * elf/Makefile: Likewise.
80526
80527 2011-06-09  Roland McGrath  <roland@hack.frob.com>
80528
80529         * Makerules ($(common-objpfx)libc_pic.os): Use -Wl, before -r.
80530         * elf/Makefile ($(objpfx)librtld.os): Likewise.
80531         (reloc-link): Likewise.
80532
80533 2011-06-09  Ulrich Drepper  <drepper@gmail.com>
80534
80535         * elf/Makefile: Add rules to build pldd.
80536         * elf/pldd.c: New file.
80537         * elf/pldd-xx.c: New file.
80538
80539 2011-06-07  Ulrich Drepper  <drepper@gmail.com>
80540
80541         * version.h: Update for 2.15 development version.
80542
80543 2011-06-07  David S. Miller  <davem@davemloft.net>
80544
80545         * sysdeps/sparc/sparc32/dl-irel.h (elf_irela): Pass dl_hwcap to
80546         ifuncs.
80547         * sysdeps/sparc/sparc32/dl-machine.h (elf_machine_rela,
80548         elf_machine_lazy_rel): Likewise.
80549         * sysdeps/sparc/sparc64/dl-irel.h (elf_irela): Likewise.
80550         * sysdeps/sparc/sparc64/dl-machine.h (elf_machine_rela,
80551         elf_machine_lazy_rel): Likewise.
80552         * sysdeps/sparc/sparc64/multiarch/memcpy.S (memcpy): Fetch
80553         dl_hwcap via passed in argument.
80554         * sysdeps/sparc/sparc64/multiarch/memset.S (memset, bzero):
80555         Likewise.
80556
80557 2011-06-06  Andreas Krebbel  <Andreas.Krebbel@de.ibm.com>
80558
80559         * stdlib/longlong.h: Update from GCC.  Fix smul_ppmm for S/390.
80560
80561 2011-06-06  Roland McGrath  <roland@hack.frob.com>
80562
80563         [BZ #12849]
80564         * manual/fdl-1.1.texi: New file, verbatim from:
80565         http://www.gnu.org/licenses/old-licenses/fdl-1.1.texi
80566         * manual/lgpl-2.1.texi: New file, verbatim from:
80567         http://www.gnu.org/licenses/old-licenses/lgpl-2.1.texi
80568         * manual/Makefile (licenses): New variable, list those new file names.
80569         (texis): Use it.
80570         (chapters.% top-menu.%): Include $(licenses) with $(appendices).
80571
80572         * manual/fdl.texi: File removed.
80573         * manual/lesser.texi: File removed.
80574         * manual/libc.texinfo (Copying, Documentation License):
80575         Use new @include file names, put @appendix directive before @include.
80576
80577 2011-06-04  Jakub Jelinek  <jakub@redhat.com>
80578
80579         [BZ #12841]
80580         * rt/bits/mqueue2.h (__mq_open_2): Add __THROW.
80581         (__mq_open_alias): Use __REDIRECT_NTH instead of __REDIRECT.
80582         (mq_open): Add __NTH.
80583
80584 2011-06-02  H.J. Lu  <hongjiu.lu@intel.com>
80585
80586         * sysdeps/x86_64/multiarch/init-arch.c (__init_cpu_features):
80587         Assume Intel Core i3/i5/i7 processor if AVX is available.
80588
80589 2011-05-31  Ulrich Drepper  <drepper@gmail.com>
80590
80591         * sysdeps/unix/sysv/linux/dl-osinfo.h (_dl_setup_stack_chk_guard): Fix
80592         typo.
80593
80594 2011-05-31  Andreas Schwab  <schwab@redhat.com>
80595
80596         * nscd/nscd_getserv_r.c (nscd_getserv_r): Don't free non-malloced
80597         memory.  Use alloca_account.  Fix memory leak when retrying.
80598
80599 2011-05-31  Ulrich Drepper  <drepper@gmail.com>
80600
80601         * version.h (RELEASE): Bump for 2.14 release.
80602         * include/features.h (__GLIBC_MINOR__): Bump to 14.
80603
80604         * config.make.in (RANLIB): Remove entry.
80605
80606 2011-05-30  Ulrich Drepper  <drepper@gmail.com>
80607
80608         * po/Makefile (po-sed-cmd): Add ksh to extensions.
80609         (libc.pot): Work around missing support for .ksh extension in xgettext.
80610
80611         [BZ #12684]
80612         * resolv/res_send.c (__libc_res_nsend): Only go to the next name server
80613         if both request failed.
80614         (send_dg): In case of server errors clear resplen or *resplen2.
80615
80616         [BZ #12454]
80617         * elf/dl-deps.c (_dl_map_object_deps): Run initializer sorting only
80618         when there are multiple maps.
80619         * elf/dl-fini.c (_dl_sort_fini): Check for list of one.
80620         (_dl_fini): Remove test here.
80621
80622         * elf/rtld.c (dl_main): Don't allow the loader to load itself.
80623
80624 2011-05-29  Ulrich Drepper  <drepper@gmail.com>
80625
80626         [BZ #12350]
80627         * sysdeps/posix/getaddrinfo.c (gethosts): Restore only RES_USE_IENT6
80628         bit from old_res_options.
80629         (gaih_inet): Likewise.
80630
80631         [BZ #11099]
80632         * shadow/sgetspent_r.c (LINE_PARSER): Interpret numeric field values
80633         as signed.
80634
80635         * resolv/res_init.c (res_setoptions): Make the code more compact.
80636
80637         [BZ #11558]
80638         * resolv/res_init.c (res_setoptions): Recognize use-vc option and
80639         set RES_USEVC.
80640
80641         [BZ #11634]
80642         * elf/Makefile (tests): Don't add tst-audit[67] without working -mavx.
80643
80644         * malloc/malloc.h: Mark malloc hook variables as deprecated.
80645
80646         [BZ #11781]
80647         * malloc/malloc.h: Declare malloc hook variables as volatile.
80648
80649         * locale/programs/locarchive.c (add_locale_to_archive): Fix typo
80650         in last patch.
80651
80652         [BZ #11799]
80653         * sysdeps/unix/sysv/linux/bits/siginfo.h (SI_USER): Don't mention
80654         raise in the comment.
80655         * sysdeps/unix/sysv/linux/s390/bits/siginfo.h: Likewise.
80656         * sysdeps/unix/sysv/linux/sparc/bits/siginfo.h: Likewise.
80657         * sysdeps/unix/sysv/linux/ia64/bits/siginfo.h: Likewise.
80658
80659 2011-05-28  Ulrich Drepper  <drepper@gmail.com>
80660
80661         [BZ #12811]
80662         * posix/regex_internal.c (build_wcs_buffer): Don't signal we have to
80663         grow the buffers more if it already has to be sufficient.
80664         (build_wcs_upper_buffer): Likewise.
80665         * posix/regexec.c (check_matching): Likewise.
80666         (clean_state_log_if_needed): Likewise.
80667         (extend_buffers): Don't enlarge buffers beyond size of the input
80668         buffer.
80669         Patches mostly by Emil Wojak <emil@wojak.eu>.
80670         * posix/bug-regex32.c: New file.
80671         * posix/Makefile (tests): Add bug-regex32.
80672
80673         * locale/findlocale.c (_nl_find_locale): Return right away if
80674         _nl_explode_name failed.
80675         * locale/programs/locarchive.c (add_locale_to_archive): Likewise.
80676
80677         * sysdeps/unix/sysv/linux/socketcall.h (SOCKOP_sendmmsg): Define.
80678
80679         * debug/xtrace.sh: Unify messages.
80680         * malloc/memusage.sh: Likewise.
80681
80682         [BZ #12813]
80683         * sysdeps/unix/sysv/linux/x86_64/init-first.c (__vdso_time): Retrieve
80684         time symbol from vDSO.  Substitute with vsyscall if not available.
80685         * sysdeps/unix/sysv/linux/x86_64/time.S [SHARED]: Use
80686         __vdso_time.
80687
80688         * sysdeps/unix/sysv/linux/internal_sendmmsg.S: New file.
80689         * sysdeps/unix/sysv/linux/sendmmsg.c: New file.
80690         * sysdeps/unix/sysv/linux/Makefile [subdir=socket] (sysdep_routines):
80691         Add sendmmsg and internal_sendmmsg.
80692         * sysdeps/unix/sysv/linux/Versions [GLIBC_2.14]: Add sendmmsg.
80693         * sysdeps/unix/sysv/linux/bits/socket.h: Declare sendmmsg.
80694         * sysdeps/unix/sysv/linux/kernel-features.h: Define __ASSUME_SENDMMSG.
80695
80696         * sysdeps/unix/sysv/linux/syscalls.list: Add setns entry.
80697         * sysdeps/unix/sysv/linux/bits/sched.h: Declare setns.
80698         * sysdeps/unix/sysv/linux/Versions [GLIBC_2.14]: Add setns.
80699
80700 2011-05-27  Ulrich Drepper  <drepper@gmail.com>
80701
80702         [BZ #12813]
80703         * sysdeps/unix/sysv/linux/x86_64/init-first.c (__vdso_getcpu):
80704         Retrieve getcpu symbol from vDSO.  Substitute with vsyscall if not
80705         available.
80706         * sysdeps/unix/sysv/linux/x86_64/sched_getcpu.S [SHARED]: Use
80707         __vdso_getcpu.
80708
80709         [BZ #12814]
80710         * iconvdata/Makefile (tests): Add bug-iconv9.
80711         * iconvdata/bug-iconv9.c: New file.
80712
80713 2011-05-27  Andreas Schwab  <schwab@redhat.com>
80714
80715         [BZ #12814]
80716         * iconvdata/iso-2022-jp.c (BODY): Fix invalid variable shadowing.
80717
80718 2011-05-25  Jakub Jelinek  <jakub@redhat.com>
80719
80720         * sysdeps/unix/sysv/linux/x86_64/sys/user.h
80721         (struct user_regs_struct): Change intcs field back to cs.
80722
80723 2011-05-25  Ulrich Drepper  <drepper@gmail.com>
80724
80725         * po/ja.po: Update from translation team.
80726
80727 2011-05-23  Ulrich Drepper  <drepper@gmail.com>
80728
80729         [BZ #12795]
80730         * sysdeps/unix/sysv/linux/bits/resource.h (RLIMIT_RTTIME): Define.
80731         * sysdeps/unix/sysv/linux/sparc/bits/resource.h: Likewise.
80732
80733 2011-05-20  Andreas Schwab  <schwab@redhat.com>
80734
80735         * stdlib/longlong.h: Update from GCC.
80736
80737 2011-05-23  Andreas Schwab  <schwab@redhat.com>
80738
80739         * sysdeps/unix/sysv/linux/ia64/sysconf.c (HAS_CPUCLOCK): Add
80740         parameter name.
80741         * sysdeps/unix/sysv/linux/sysconf.c (has_cpuclock, HAS_CPUCLOCK):
80742         Add parameter name.
80743         (__sysconf): Pass it down.
80744
80745 2011-05-22  Ulrich Drepper  <drepper@gmail.com>
80746
80747         [BZ #12671]
80748         * nis/nss_nis/nis-alias.c (_nss_nis_getaliasbyname_r): Use malloc in
80749         some situations.
80750         * nscd/nscd_getserv_r.c (nscd_getserv_r): Likewise.
80751         * posix/glob.c (glob_in_dir): Take additional parameter alloca_used.
80752         add in in __libc_use_alloca calls.  Adjust callers.
80753         (glob): Use malloc in some situations.
80754
80755         * elf/dl-runtime.c (_dl_profile_fixup): Also store LA_SYMB_NOPLTENTER
80756         and LA_SYMB_NOPLTEXIT in flags which are passed to pltenter and
80757         pltexit.
80758
80759 2011-05-21  Ulrich Drepper  <drepper@gmail.com>
80760
80761         * sysdeps/unix/sysv/linux/bits/time.h: Define CLOCK_REALTIME_ALARM
80762         and CLOCK_BOOTTIME_ALARM.
80763
80764         [BZ #12782]
80765         * string/xpg-strerror.c (__xpg_strerror_r): Fill buffer even if error
80766         is returned.
80767
80768         * string/_strerror.c (__strerror_r): Print negative errors as signed
80769         numbers.
80770
80771         [BZ #12777]
80772         * iconvdata/cp1258.c (comp_table_data): Remove entry 0x00A5 0xEC.
80773         (decomp_table): Change U0385 entry to emit 0xA5 0xEC.
80774         * iconvdata/CP1258.irreversible: Adjust entry 0xA8EC.
80775
80776         * configure.in: Fix typo in redirection and correct removal of test
80777         files in two cases.
80778
80779         [BZ #12788]
80780         * locale/setlocale.c (new_composite_name): Fix test to check for
80781         identical name of all categories.
80782
80783         [BZ #12792]
80784         * libio/filedoalloc.c (local_isatty): New function.
80785         (_IO_file_doallocate): Use local_isatty.
80786         * stdio-common/perror.c (perror): In case a new stream is used
80787         forward the stream error.
80788         * stdio-common/vfprintf.c (ARGCHECK): For read-only streams also set
80789         error flag.
80790
80791 2011-05-20  Ulrich Drepper  <drepper@gmail.com>
80792
80793         [BZ #11884]
80794         * sysdeps/posix/getaddrinfo.c (gaih_inet): Don't unconditionally use
80795         alloca.
80796         * include/alloca.h (extend_alloca_account): Define.
80797
80798         [BZ #11857]
80799         * posix/regex.h: Fix comments with documentation of user-accessible
80800         fields after compilation and describe correct free'ing of pattern
80801         after re_compile_pattern.
80802         Patch by Reuben Thomas <rrt@sc3d.org>.
80803
80804 2011-05-18  Ryan S. Arnold  <rsa@us.ibm.com>
80805
80806         * sysdeps/powerpc/powerpc64/Makefile (no-special-regs): Add -mno-vsx
80807         and -mno-altivec to prevent the compiler from using Altivec and/or
80808         VSX instructions when the corresponding registers are not available.
80809
80810 2011-05-19  Andreas Schwab  <schwab@redhat.com>
80811
80812         * grp/compat-initgroups.c (__libc_use_alloca): Don't define.
80813
80814 2011-05-19  Ulrich Drepper  <drepper@gmail.com>
80815
80816         * libio/freopen.c (freopen): Use __dup2, not dup2.
80817         * libio/freopen64.c (freopen64): Likewise.
80818
80819 2011-05-17  H.J. Lu  <hongjiu.lu@intel.com>
80820
80821         [BZ #12775]
80822         * sysdeps/x86_64/fpu/e_powl.S: Fix a typo.
80823         * math/Makefile (tests): Add test-powl.
80824         (CFLAGS-test-powl.c): Define.
80825         * math/test-powl.c: New file.
80826
80827 2011-05-16  H.J. Lu  <hongjiu.lu@intel.com>
80828
80829         * fileops.c (_IO_new_file_fopen): Get fd from _IO_fileno.
80830
80831 2011-05-17  Ulrich Drepper  <drepper@gmail.com>
80832
80833         [BZ #11837]
80834         * iconvdata/gb18030.c: Update to GB18020-2005.
80835
80836 2011-05-16  Ulrich Drepper  <drepper@gmail.com>
80837
80838         * posix/regex.h (RE_SYNTAX_AWK, RE_SYNTAX_GNU_AWK,
80839         RE_SYNTAX_POSIX_AWK): Update to match recent development.
80840         Patch by Aharon Robbins <arnold@skeeve.com>.
80841
80842         [BZ #11892]
80843         * stdlib/putenv.c (putenv): Don't always create copy of the variable
80844         on the stack.
80845
80846         [BZ #11895]
80847         * misc/pselect.c (__pselect): Handle timeout value errors hidden
80848         through underflows.
80849
80850         [BZ #12766]
80851         * misc/error.c (error_at_line): Ensure file_name and old_file_name
80852         point to strings before performing equality test for error_one_per_line
80853         mode.
80854
80855         [BZ #11697]
80856         * login/programs/pt_chown.c (do_pt_chown): Always call chown.
80857
80858         [BZ #11820]
80859         * sysdeps/unix/sysv/linux/x86_64/sys/user.h
80860         (struct user_fpregs_struct): Avoid __uint*_t types.
80861
80862         [BZ #6420]
80863         * malloc/mtrace.c (tr_where): Add additional parameter to point to
80864         symbol info.  Use it instead of calling _dl_addr locally.
80865         (lock_and_info): New function.
80866         (tr_freehook): Call lock_and_info and pass symbol info as additional
80867         parameter to tr_where.
80868         (tr_mallochook): Likewise.
80869         (tr_reallochook): Likewise.
80870         (tr_memalignhook): Likewise.
80871
80872         * malloc/mtrace.c: Remove support for USE_MTRACE_FILE.  It is not
80873         used and couldn't be at all thread-safe.
80874
80875 2011-05-15  Ulrich Drepper  <drepper@gmail.com>
80876
80877         * libio/freopen.c (freopen): Don't close old file descriptor
80878         before the new one is opened.  Instead dup the new file descriptor
80879         to the old one after the new stream is created.
80880         * libio/freopen64.c (freopen64): Likewise.
80881         * libio/libio.h: Define _IO_FLAGS2_NOCLOSE and _IO_FLAGS2_CLOEXEC.
80882         * libio/fileops.c (_IO_new_file_close_it): Handle new
80883         _IO_FLAGS2_NOCLOSE flag.
80884         (_IO_new_file_fopen): Set _IO_FLAGS2_CLOEXEC for "e" mode.
80885         If _IO_file_open didn't set FD_CLOEXEC do it after the call.
80886         * libio/oldfileops.c (_IO_old_file_close_it): Handle new
80887         _IO_FLAGS2_NOCLOSE flag.
80888         * include/unistd.h: Add hidden_proto for dup3.
80889         Define __have_dup3.
80890         * io/dup3.c: Define hidden symbol.
80891         * sysdeps/unix/sysv/linux/kernel-features.h: Define __ASSUME_DUP3.
80892
80893         [BZ #7101]
80894         * posix/getopt.c (_getopt_internal_r): List all ambigious possibilities
80895         when an incomplete long option is used.
80896         * posix/tst-getopt_long1.c: New file.
80897         * posix/Makefile (tests): Add tst-getopt_long1.
80898
80899         [BZ #10138]
80900         * scripts/config.guess: Update from autoconf-2.68.
80901         * scripts/config.sub: Likewise.
80902
80903         [BZ #10157]
80904         * sysdeps/unix/sysv/linux/sysconf.c (__sysconf): Split out CPUTIME
80905         tests into ...
80906         (has_cpuclock): ...this.  New function.
80907         * sysdeps/unix/sysv/linux/ia64/sysconf.c: Just define HAS_CPUCLOCK
80908         macro here based on has_cpuclock code.
80909
80910         [BZ #10149]
80911         * sysdeps/unix/sysv/linux/dl-osinfo.h (_dl_setup_stack_chk_guard):
80912         First byte (not low byte) is now always NUL.
80913         * sysdeps/generic/dl-osinfo.h (_dl_setup_stack_chk_guard): Likewise.
80914
80915         * sysdeps/unix/sysv/linux/dl-osinfo.h (_dl_setup_stack_chk_guard):
80916         Use non-cancelable interfaces.
80917
80918         [BZ #9809]
80919         * locale/iso-639.def: Add entry for Sorani.
80920
80921         [BZ #11901]
80922         * include/stdlib.h: Move include protection to the right place.
80923         Define abort_msg_s.  Declare __abort_msg with it.
80924         * stdlib/abort.c (__abort_msg): Adjust type.
80925         * assert/assert.c (__assert_fail_base): New function.  Majority
80926         of code from __assert_fail.  Allocate memory for __abort_msg with
80927         mmap.
80928         (__assert_fail): Now call __assert_fail_base.
80929         * assert/assert-perr.c: Remove bulk of implementation.  Use
80930         __assert_fail_base.
80931         * include/assert.hL Declare __assert_fail_base.
80932         * sysdeps/posix/libc_fatal.c: Allocate memory for __abort_msg with
80933         mmap.
80934         * sysdeps/unix/sysv/linux/libc_fatal.c: Likewise.
80935
80936 2011-05-14  Ulrich Drepper  <drepper@gmail.com>
80937
80938         [BZ #11952]
80939         [BZ #12453]
80940         * elf/dl-open.c (dl_open_worker): Delay calls to _dl_update_slotinfo
80941         until all modules are registered in the DTV.
80942         * elf/Makefile: Add rules to build and run tst-tls19.
80943         * elf/tst-tls19.c: New file.
80944         * elf/tst-tls19mod1.c: New file.
80945         * elf/tst-tls19mod2.c: New file.
80946         * elf/tst-tls19mod3.c: New file.
80947         Patch mostly by Martin von Gagern <Martin.vGagern@gmx.net>.
80948
80949         [BZ #12083]
80950         * sysdeps/pthread/aio_misc.c (__aio_init): Compute optim.aio_num
80951         correctly.
80952
80953         [BZ #12601]
80954         * iconvdata/cp932.c (BODY to UCS4): Fix incrementing inptr in case of
80955         two-byte sequence errors.
80956         * iconvdata/Makefile (tests): Add bug-iconv8.
80957         * iconvdata/bug-iconv8.c: New file.
80958
80959         [BZ #12626]
80960         * sysdeps/generic/elf/backtracesymsfd.c (__backtrace_symbols_fd): Move
80961         buf2 definition.
80962
80963         * libio/fileops.c (_IO_new_file_close_it): Initialize write_status.
80964
80965         [BZ #12432]
80966         * sysdeps/ia64/backtrace.c (struct trace_reg): Add cfa element.
80967         (dummy_getcfa): New function.
80968         (init): Get _Unwind_GetCFA address, use dummy if not found.
80969         (backtrace_helper): In recursion check, also check whether CFA changes.
80970         (__backtrace): Completely initialize arg.
80971
80972         * iconv/loop.c (SINGLE) [STORE_REST]: Add input bytes to bytebuf before
80973         storing incomplete byte sequence in state object.  Avoid testing for
80974         guaranteed too small input if we know there is enough data available.
80975
80976 2011-05-11  Andreas Schwab  <schwab@redhat.com>
80977
80978         * Makeconfig (+link-pie): Indent.
80979         * Rules (binaries-pie): Define if $(have-fpie) and
80980         $(build-shared).
80981         (binaries-shared): Also filter out $(binaries-pie).
80982         ($(addprefix $(objpfx),$(binaries-pie))): New rule.
80983         * nscd/Makefile (others-pie): Add nscd.
80984         (LDFLAGS-nscd): Set this instead of relro-LDFLAGS.
80985         ($(objpfx)nscd): Remove command override.
80986         * login/Makefile (others-pie): Add pt_chown.
80987         ($(objpfx)pt_chown): Remove command override.
80988         * elf/Makefile: Add PIE tests to tests and tests-pie variables and
80989         remove command overrides.
80990
80991 2011-05-13  Ulrich Drepper  <drepper@gmail.com>
80992
80993         * libio/tst_putwc.c: Fix error messages.
80994
80995         [BZ #12724]
80996         * libio/fileops.c (_IO_new_file_close_it): Always flush when
80997         currently writing and seek to current position when not.
80998         * libio/Makefile (tests): Add bug-fclose1.
80999         * libio/bug-fclose1.c: New file.
81000
81001 2011-05-12  Ulrich Drepper  <drepper@gmail.com>
81002
81003         [BZ #12511]
81004         * elf/dl-lookup.c (enter): Don't test for copy relocation here and
81005         don't set DF_1_NODELETE here.
81006         (do_lookup_x): When entering new entry test for copy relocation
81007         and if necessary set DF_1_NODELETE flag.
81008         * elf/tst-unique4.cc: New file.
81009         * elf/tst-unique4.h: New file.
81010         * elf/tst-unique4lib.cc: New file.
81011         * elf/Makefile: Add rules to build and run tst-unique4.
81012         Patch by Piotr Bury <pbury@goahead.com>.
81013
81014 2011-05-11  Ulrich Drepper  <drepper@gmail.com>
81015
81016         [BZ #12052]
81017         * sysdeps/posix/spawni.c (__spawni): Fix sched_setscheduler call.
81018
81019         [BZ #12625]
81020         * misc/mntent_r.c (addmntent): Flush the stream after the output
81021
81022         [BZ #12393]
81023         * elf/dl-load.c (is_trusted_path): Remove unnecessary test.
81024         (is_trusted_path_normalize): Skip initial colon.  Append slash
81025         to empty buffer.  Duplicate is_trusted_path code but allow
81026         constructed patch to be prefix.
81027         (is_dst): Allow $ORIGIN followed by /.
81028         (_dl_dst_substitute): Correct clearing of check_for_trusted.
81029         Correct testing of result of is_trusted_path_normalize
81030         (decompose_rpath): Fix warning.
81031
81032 2011-05-10  Ulrich Drepper  <drepper@gmail.com>
81033
81034         [BZ #11257]
81035         * grp/initgroups.c (internal_getgrouplist): When we found the service
81036         list through the initgroups entry in nsswitch.conf do not always
81037         continue on a successful lookup.  Don't always use the
81038         __nss_group_database value if it is set.
81039         * nss/nsswitch.conf (initgroups): Change action for successful db
81040         lookup to continue for compatibility.
81041
81042 2011-05-09  Ulrich Drepper  <drepper@gmail.com>
81043
81044         [BZ #11532]
81045         * iconvdata/Makefile: Add rules to build CP770, CP771, CP772, CP773,
81046         and CP774 modules.
81047         * iconvdata/gconv-modules: Add entries for CP770, CP771, CP772, CP773,
81048         and CP774 modules.
81049         * iconvdata/tst-tables.sh: Likewise.
81050         * iconvdata/cp770.c: New file.
81051         * iconvdata/cp771.c: New file.
81052         * iconvdata/cp772.c: New file.
81053         * iconvdata/cp773.c: New file.
81054         * iconvdata/cp774.c: New file.
81055         * iconvdata/testdata/CP770: New file.
81056         * iconvdata/testdata/CP770..UTF8: New file.
81057         * iconvdata/testdata/CP771: New file.
81058         * iconvdata/testdata/CP771..UTF8: New file.
81059         * iconvdata/testdata/CP772: New file.
81060         * iconvdata/testdata/CP772..UTF8: New file.
81061         * iconvdata/testdata/CP773: New file.
81062         * iconvdata/testdata/CP773..UTF8: New file.
81063         * iconvdata/testdata/CP774: New file.
81064         * iconvdata/testdata/CP774..UTF8: New file.
81065
81066         * iconvdata/gen-8bit-gap-1.sh: End reading of charmap file at
81067         END CHARMAP line.
81068         * iconvdata/gen-8bit-gap.sh: Likewise.
81069         * iconvdata/gen-8bit.sh: Likewise.
81070
81071         * locale/iso-639.def: Add ary entry.
81072
81073         [BZ #11258]
81074         * locale/C-translit.h.in: Add U20A1 transliteration.
81075
81076         [BZ #12178]
81077         * locale/iso-639.def: Add wae entry.
81078         Patch by Kevin Bortis <bortis@translate-wae.ch>.
81079
81080         [BZ #12545]
81081         * locale/programs/localedef.c (construct_output_path): Use ssize_t
81082         for n.
81083
81084         [BZ #12711]
81085         * locale/C-translit.h.in: Add entry for U20B9.
81086         Patch by pravin.d.s@gmail.com.
81087
81088 2011-05-08  Ulrich Drepper  <drepper@gmail.com>
81089
81090         [BZ #12713]
81091         * sysdeps/unix/sysv/linux/getcwd.c: If getcwd syscall report
81092         ENAMETOOLONG use generic getcwd.
81093         * sysdeps/posix/getcwd.c: Add support to use openat.  Make usable
81094         in rtld.  Use *stat64.
81095         * sysdeps/unix/sysv/linux/Makefile [subdir=elf] (sysdep-rtld-routines):
81096         Add dl-getcwd, dl-openat64, dl-opendir, dl-fxstatat64.
81097         * sysdeps/unix/sysv/linux/dl-getcwd.c: New file.
81098         * sysdeps/unix/sysv/linux/dl-openat64.c: New file.
81099         * sysdeps/unix/sysv/linux/dl-opendir.c: New file.
81100         * sysdeps/unix/sysv/linux/dl-fxstat64.c: New file.
81101         * include/sys/stat.h: Define __fstatat, __lstat64, __fstat64, and
81102         __fstatat64 macros.
81103         * include/dirent.h: Add libc_hidden_proto for rewinddir.
81104         * dirent/rewinddir.c: Add libc_hidden_def.
81105         * sysdeps/mach/hurd/rewinddir.c: Likewise.
81106         * sysdeps/unix/rewinddir.c: Likewise.  Don't do locking outside libc.
81107
81108         * include/dirent.h (__alloc_dir): Add flags parameter.
81109         * sysdeps/unix/fdopendir.c (__fdopendir): Pass flags to __alloc_dir.
81110         * sysdeps/unix/opendir.c (__opendir): Pass 0 in new parameter to
81111         __alloc_dir.
81112         (__alloc_dir): Take new parameter.  Don't call fcntl for invocations
81113         from fdopendir if O_CLOEXEC is already set.
81114
81115 2011-03-15  Alan Modra  <amodra@gmail.com>
81116
81117         * elf/dl-reloc.c (_dl_try_allocate_static_tls <TLS_DTV_AT_TP>): Handle
81118         l_tls_firstbyte_offset non-zero.  Save padding offset in
81119         l_tls_firstbyte_offset for later use.
81120         * elf/dl-close.c (_dl_close_worker <TLS_DTV_AT_TP>): Correct code
81121         freeing static tls block.
81122
81123 2011-03-05  Jonathan Nieder  <jrnieder@gmail.com>
81124
81125         * sysdeps/unix/sysv/linux/sys/param.h: Fix an #ifndef __undef_ARG_MAX
81126         where #ifdef was intended.  The intent is to prevent ARG_MAX from
81127         being defined by the kernel headers.
81128
81129 2011-05-07  Ulrich Drepper  <drepper@gmail.com>
81130
81131         [BZ #12734]
81132         * resolv/resolv.h: Define RES_NOTLDQUERY.
81133         * resolv/res_init.c (res_setoptions): Recognize no_tld_query and
81134         no-tld-query and set RES_NOTLDQUERY.
81135         * resolv/res_debug.c (p_option): Handle RES_NOTLDQUERY.
81136         * resolv/res_query.c (__libc_res_nsearch): Backport changes from
81137         modern BIND to search name as TLD unless forbidden.
81138
81139 2011-05-07  Petr Baudis  <pasky@suse.cz>
81140             Ulrich Drepper  <drepper@gmail.com>
81141
81142         [BZ #12393]
81143         * elf/dl-load.c (fillin_rpath): Move trusted path check...
81144         (is_trusted_path): ...to here.
81145         (is_trusted_path_normalize): Wrapper for /../ and /./ normalization.
81146         (_dl_dst_substitute): Verify expanded $ORIGIN path elements
81147         using is_trusted_path_normalize() in setuid scripts.
81148
81149 2011-05-06  Paul Pluzhnikov  <ppluzhnikov@google.com>
81150
81151         * sysdeps/unix/sysv/linux/sys/sysmacros.h: Add missing
81152         __BEGIN/__END_DECLS.
81153
81154 2011-05-06  Ulrich Drepper  <drepper@gmail.com>
81155
81156         * nss/nss_files/files-initgroups.c (_nss_files_initgroups_dyn): Return
81157         NSS_STATUS_NOTFOUND if no record was found.
81158
81159 2011-05-05  Andreas Schwab  <schwab@redhat.com>
81160
81161         * sunrpc/Makefile (headers): Add rpc/netdb.h.
81162         (headers-not-in-tirpc): Remove rpc/netdb.h
81163         * resolv/netdb.h: Revert last change.
81164
81165 2011-05-05  Paul Pluzhnikov  <ppluzhnikov@google.com>
81166
81167         * Makeconfig (link-libc-static): Use --{start,end}-group to handle
81168         circular dependency between libgcc.a and libc.a.
81169
81170 2011-05-05  Andreas Schwab  <schwab@redhat.com>
81171
81172         * resolv/netdb.h: Don't include <rpc/netdb.h>.
81173         * nis/Makefile: Don't install rpcsvc/*.
81174         * inet/protocols/timed.h: Include <sys/types.h> and <sys/time.h>
81175         instead of <rpc/types.h>.
81176         (MAXHOSTNAMELEN): Define.
81177
81178 2011-05-03  Andreas Schwab  <schwab@redhat.com>
81179
81180         * elf/ldconfig.c (add_dir): Don't crash on empty path.
81181
81182 2011-04-28  Maciej Babinski  <mbabinski@google.com>
81183
81184         [BZ #12714]
81185         * sysdeps/posix/getaddrinfo.c (gaih_inet): Don't bypass
81186         gethostbyname4_r when IPv6 results are possible.
81187
81188 2011-05-02  Ulrich Drepper  <drepper@gmail.com>
81189
81190         [BZ #12723]
81191         * sysdeps/unix/sysv/linux/pathconf.c (__pathconf): Implement
81192         _PC_PIPE_BUF handling.
81193
81194 2011-04-30  Bruno Haible  <bruno@clisp.org>
81195
81196         [BZ #12717]
81197         * conform/data/netdb.h-data (getnameinfo): Make POSIX compliant.
81198         * resolv/netdb.h (getnameinfo): Change type of flags parameter
81199         to 'int'.
81200         * inet/getnameinfo.c (getnameinfo): Likewise.
81201
81202 2011-04-29  Ulrich Drepper  <drepper@gmail.com>
81203
81204         * grp/initgroups.c (internal_getgrouplist): Prefer initgroups setting
81205         to groups setting in database lookup.
81206         * nss/nsswitch.conf: Add initgroups entry.
81207
81208 2011-04-22  Ulrich Drepper  <drepper@gmail.com>
81209
81210         [BZ #12685]
81211         * libio/fileops.c (_IO_new_file_fopen): Scan up to 7 bytes of the
81212         mode string.
81213         Patch by Eric Blake <eblake@redhat.com>.
81214
81215 2011-04-20  H.J. Lu  <hongjiu.lu@intel.com>
81216
81217         * sunrpc/Makefile (need-export-routines): Add svc_run.
81218         (routines): Remove svc_run.
81219         ($(objpfx)thrsvc): Add $(common-objpfx)linkobj/libc.so.
81220         * sunrpc/clnt_perr.c (clnt_perrno): Export.
81221         * sunrpc/svc_run.c (svc_run): Likewise.
81222         * sunrpc/svc_udp.c (svcudp_create): Likewise.
81223
81224 2011-04-21  Ulrich Drepper  <drepper@gmail.com>
81225
81226         * nss/nss_files/files-initgroups.c (_nss_files_initgroups_dyn): Fix
81227         problem in reallocation in last patch.
81228
81229 2011-04-20  Ulrich Drepper  <drepper@gmail.com>
81230
81231         * sunrpc/Makefile: Move inclusion of Rules.
81232
81233 2011-04-19  Ulrich Drepper  <drepper@gmail.com>
81234
81235         * nss/nss_files/files-initgroups.c: New file.
81236         * nss/Makefile (libnss_files-routines): Add files-initgroups.
81237         * nss/Versions (libnss_files) [GLIBC_PRIVATE]: Export
81238         _nss_files_initgroups_dyn.
81239
81240 2011-03-31  Richard Sandiford  <richard.sandiford@linaro.org>
81241
81242         * elf/elf.h (R_ARM_IRELATIVE): Define.
81243
81244 2011-04-19  Ulrich Drepper  <drepper@gmail.com>
81245
81246         * po/ru.po: Update from translation team.
81247
81248 2011-04-17  Ulrich Drepper  <drepper@gmail.com>
81249
81250         * sunrpc/Makefile ($(rpc-compat-routines.os)): Add before-compile to
81251         dependencies.
81252
81253 2011-02-06  Mike Frysinger  <vapier@gentoo.org>
81254
81255         [BZ #12653]
81256         * sysdeps/i386/i686/multiarch/memcpy-ssse3-rep.S: Only protect
81257         MEMCPY_CHK with USE_AS_BCOPY ifdef check.
81258         * sysdeps/i386/i686/multiarch/memcpy-ssse3.S: Likewise.
81259         * sysdeps/x86_64/multiarch/memcpy-ssse3.S: Likewise.
81260         * sysdeps/x86_64/multiarch/memcpy-ssse3-back.S: Likewise.
81261
81262 2011-03-28  Andreas Schwab  <schwab@linux-m68k.org>
81263
81264         * sysdeps/powerpc/powerpc32/power4/strncmp.S: Don't read past
81265         differing bytes.
81266         * sysdeps/powerpc/powerpc64/power4/strncmp.S: Likewise.
81267         * sysdeps/powerpc/powerpc32/power7/strncmp.S: Likewise.
81268         * sysdeps/powerpc/powerpc64/power7/strncmp.S: Likewise.
81269
81270 2011-04-17  Ulrich Drepper  <drepper@gmail.com>
81271
81272         [BZ #12420]
81273         * sysdeps/unix/sysv/linux/x86_64/getcontext.S: Reload context after
81274         storing it.
81275         * stdlib/bug-getcontext.c: New file.
81276         * stdlib/Makefile: Add rules to build and run bug-getcontext.
81277
81278 2011-04-13  Andreas Krebbel  <Andreas.Krebbel@de.ibm.com>
81279
81280         * sysdeps/s390/s390-64/utf16-utf32-z9.c: Wrap the z9-109
81281         instructions into .machine "z9-109".
81282         * sysdeps/s390/s390-64/utf8-utf16-z9.c: Likewise.
81283         * sysdeps/s390/s390-64/utf8-utf32-z9.c: Likewise.
81284
81285 2011-04-11  Andreas Krebbel  <Andreas.Krebbel@de.ibm.com>
81286
81287         * sysdeps/s390/s390-32/elf/start.S (_start): Skip extra zeroes
81288         between environment variables and auxiliary vector.
81289
81290 2011-04-16  Ulrich Drepper  <drepper@gmail.com>
81291
81292         * Makefile: Add rules to build linkobj/libc.so.
81293         * include/libc-symbols.h: Define libc_hidden_nolink.
81294         * include/rpc/auth.h: Mark functions which are to be hidden.
81295         * include/rpc/auth_des.h: Likewise.
81296         * include/rpc/auth_unix.h: Likewise.
81297         * include/rpc/clnt.h: Likewise.
81298         * include/rpc/des_crypt.h: Likewise.
81299         * include/rpc/key_prot.h: Likewise.
81300         * include/rpc/pmap_clnt.h: Likewise.
81301         * include/rpc/pmap_prot.h: Likewise.
81302         * include/rpc/pmap_rmt.h: Likewise.
81303         * include/rpc/rpc_msg.h: Likewise.
81304         * include/rpc/svc.h: Likewise.
81305         * include/rpc/svc_auth.h: Likewise.
81306         * include/rpc/xdr.h: Likewise.
81307         * nis/Makefile: Link all DSOs against linkobj/libc.so.
81308         * nss/Makefile: Likewise.
81309         * sunrpc/Makefile: Don't install headers.  Build library with normal
81310         entry points.  Don't build rpcinfo.  Link RPC tests appropriately.
81311         * sunrpc/auth_des.c: Hide exported symbols by default, export some
81312         for the compat linking library.  Remove use of INTDEF/INTUSE.
81313         * sunrpc/auth_none.c: Likewise.
81314         * sunrpc/auth_unix.c: Likewise.
81315         * sunrpc/authdes_prot.c: Likewise.
81316         * sunrpc/authuxprot.c: Likewise.
81317         * sunrpc/clnt_gen.c: Likewise.
81318         * sunrpc/clnt_perr.c: Likewise.
81319         * sunrpc/clnt_raw.c: Likewise.
81320         * sunrpc/clnt_simp.c: Likewise.
81321         * sunrpc/clnt_tcp.c: Likewise.
81322         * sunrpc/clnt_udp.c: Likewise.
81323         * sunrpc/clnt_unix.c: Likewise.
81324         * sunrpc/des_crypt.c: Likewise.
81325         * sunrpc/des_soft.c: Likewise.
81326         * sunrpc/get_myaddr.c: Likewise.
81327         * sunrpc/key_call.c: Likewise.
81328         * sunrpc/key_prot.c: Likewise.
81329         * sunrpc/netname.c: Likewise.
81330         * sunrpc/pm_getmaps.c: Likewise.
81331         * sunrpc/pm_getport.c: Likewise.
81332         * sunrpc/pmap_clnt.c: Likewise.
81333         * sunrpc/pmap_prot.c: Likewise.
81334         * sunrpc/pmap_prot2.c: Likewise.
81335         * sunrpc/pmap_rmt.c: Likewise.
81336         * sunrpc/publickey.c: Likewise.
81337         * sunrpc/rpc_cmsg.c: Likewise.
81338         * sunrpc/rpc_common.c: Likewise.
81339         * sunrpc/rpc_dtable.c: Likewise.
81340         * sunrpc/rpc_prot.c: Likewise.
81341         * sunrpc/rpc_thread.c: Likewise.
81342         * sunrpc/rtime.c: Likewise.
81343         * sunrpc/svc.c: Likewise.
81344         * sunrpc/svc_auth.c: Likewise.
81345         * sunrpc/svc_authux.c: Likewise.
81346         * sunrpc/svc_raw.c: Likewise.
81347         * sunrpc/svc_run.c: Likewise.
81348         * sunrpc/svc_simple.c: Likewise.
81349         * sunrpc/svc_tcp.c: Likewise.
81350         * sunrpc/svc_udp.c: Likewise.
81351         * sunrpc/svc_unix.c: Likewise.
81352         * sunrpc/svcauth_des.c: Likewise.
81353         * sunrpc/xcrypt.c: Likewise.
81354         * sunrpc/xdr.c: Likewise.
81355         * sunrpc/xdr_array.c: Likewise.
81356         * sunrpc/xdr_float.c: Likewise.
81357         * sunrpc/xdr_intXX_t.c: Likewise.
81358         * sunrpc/xdr_mem.c: Likewise.
81359         * sunrpc/xdr_rec.c: Likewise.
81360         * sunrpc/xdr_ref.c: Likewise.
81361         * sunrpc/xdr_sizeof.c: Likewise.
81362         * sunrpc/xdr_stdio.c: Likewise.
81363
81364 2011-04-10  Ulrich Drepper  <drepper@gmail.com>
81365
81366         [BZ #12650]
81367         * sysdeps/i386/dl-tls.h: Define TLS_DTV_UNALLOCATED.
81368         * sysdeps/ia64/dl-tls.h: Likewise.
81369         * sysdeps/powerpc/dl-tls.h: Likewise.
81370         * sysdeps/s390/dl-tls.h: Likewise.
81371         * sysdeps/sh/dl-tls.h: Likewise.
81372         * sysdeps/sparc/dl-tls.h: Likewise.
81373         * sysdeps/x86_64/dl-tls.h: Likewise.
81374         * elf/dl-tls.c: Don't define TLS_DTV_UNALLOCATED here.
81375
81376 2011-03-14  Andreas Schwab  <schwab@redhat.com>
81377
81378         * elf/dl-load.c (_dl_dst_substitute): When skipping the first
81379         rpath element also skip the following colon.
81380         (expand_dynamic_string_token): Add is_path parameter and pass
81381         down to DL_DST_REQUIRED and _dl_dst_substitute.
81382         (decompose_rpath): Call expand_dynamic_string_token with
81383         non-zero is_path.  Ignore empty rpaths.
81384         (_dl_map_object_from_fd): Call expand_dynamic_string_token
81385         with zero is_path.
81386
81387 2011-04-08  Andreas Schwab  <schwab@linux-m68k.org>
81388
81389         * sysdeps/unix/sysv/linux/powerpc/powerpc64/sync_file_range.c:
81390         Make cancelable.
81391
81392 2011-04-09  Ulrich Drepper  <drepper@gmail.com>
81393
81394         [BZ #12655]
81395         * sysdeps/unix/sysv/linux/sys/syscall.h: Fix comment.
81396         Patch by Filipe David Manana <fdmanana@apache.org>.
81397
81398 2011-04-07  Andreas Schwab  <schwab@redhat.com>
81399
81400         * sysdeps/unix/sysv/linux/x86_64/____longjmp_chk.S (CALL_FAIL):
81401         Maintain aligned stack.
81402         (CHECK_RSP): Remove unused macro.
81403
81404 2011-04-03  Ulrich Drepper  <drepper@gmail.com>
81405
81406         * sysdeps/x86_64/cacheinfo.c (intel_02_known): Fix typo in table.
81407         * sysdeps/unix/sysv/linux/i386/sysconf.c (intel_02_known): Likewise.
81408
81409 2011-04-02  Ulrich Drepper  <drepper@gmail.com>
81410
81411         * sysdeps/unix/sysv/linux/bits/time.h (CLOCK_BOOTTIME): Define.
81412
81413         * include/features.h: Mention __USE_XOPEN2K8 in comment.
81414
81415 2011-03-26  H.J. Lu  <hongjiu.lu@intel.com>
81416
81417         [BZ #12518]
81418         * sysdeps/x86_64/Versions: Add memcpy to GLIBC_2.14.
81419         * sysdeps/x86_64/memcpy.S: Provide GLIBC_2_14 memcpy.
81420         * sysdeps/x86_64/memmove.c: New file.
81421         * sysdeps/x86_64/multiarch/memcpy.S: Include <shlib-compat.h>.
81422         (memcpy): Renamed to ...
81423         (__new_memcpy): This.
81424         (memcpy): Provide GLIBC_2_14 memcpy.
81425         * sysdeps/x86_64/multiarch/memmove.c: Include <shlib-compat.h>.
81426         (memcpy): Provide GLIBC_2_2_5 memcpy.
81427
81428 2011-04-01  Ulrich Drepper  <drepper@gmail.com>
81429
81430         [BZ #12631]
81431         * wcsmbs/wchar.h: Make wcpcpy and wcpncpy visible for __USE_XOPEN2K8.
81432
81433 2011-03-30  Andreas Schwab  <schwab@redhat.com>
81434
81435         * misc/syncfs.c: New file.
81436         * misc/Makefile (routines): Add syncfs.
81437         * posix/unistd.h: Declare syncfs.
81438         * sysdeps/unix/syscalls.list: Add syncfs.
81439
81440 2011-04-01  Andreas Schwab  <schwab@redhat.com>
81441
81442         * sysdeps/unix/sysv/linux/Versions: Rename open_by_handle to
81443         open_by_handle_at.
81444         * sysdeps/unix/sysv/linux/i386/bits/fcntl.h: Likewise.
81445         * sysdeps/unix/sysv/linux/ia64/bits/fcntl.h: Likewise.
81446         * sysdeps/unix/sysv/linux/s390/bits/fcntl.h: Likewise.
81447         * sysdeps/unix/sysv/linux/sh/bits/fcntl.h: Likewise.
81448         * sysdeps/unix/sysv/linux/sparc/bits/fcntl.h: Likewise.
81449         * sysdeps/unix/sysv/linux/syscalls.list: Likewise.
81450         * sysdeps/unix/sysv/linux/x86_64/bits/fcntl.h: Likewise.
81451
81452 2011-04-01  Ulrich Drepper  <drepper@gmail.com>
81453
81454         * sysdeps/unix/sysv/linux/i386/bits/fcntl.h: Define O_PATH.
81455         * sysdeps/unix/sysv/linux/ia64/bits/fcntl.h: Likewise.
81456         * sysdeps/unix/sysv/linux/powerpc/bits/fcntl.h: Likewise.
81457         * sysdeps/unix/sysv/linux/s390/bits/fcntl.h: Likewise.
81458         * sysdeps/unix/sysv/linux/sh/bits/fcntl.h: Likewise.
81459         * sysdeps/unix/sysv/linux/sparc/bits/fcntl.h: Likewise.
81460         * sysdeps/unix/sysv/linux/x86_64/bits/fcntl.h: Likewise.
81461
81462         * io/Makefile: Compile fallocate.c, fallocate64.c, and
81463         sync_file_range.c with -fexceptions.
81464         * sysdeps/unix/sysv/linux/fallocate.c: Make cancelable.
81465         * sysdeps/unix/sysv/linux/fallocate64.c: Likewise.
81466         * sysdeps/unix/sysv/linux/i386/fallocate.c: Likewise.
81467         * sysdeps/unix/sysv/linux/i386/fallocate64.c: Likewise.
81468         * sysdeps/unix/sysv/linux/wordsize-64/fallocate.c: Likewise.
81469         * sysdeps/unix/sysv/linux/sync_file_range.c: Likewise.
81470         * sysdeps/unix/sysv/linux/wordsize-64/syscalls.list: Mark
81471         sync_file_range as cancellation point
81472         * sysdeps/unix/sysv/linux/i386/sync_file_range.c: New file.  This is
81473         now a wrapper around __call_sync_file_range with cancellation handling.
81474         * sysdeps/unix/sysv/linux/i386/sync_file_range.S: Renamed to ...
81475         * sysdeps/unix/sysv/linux/i386/call_sync_file_range.S: ...this.  Change
81476         function name to __call_sync_file_range.
81477         * sysdeps/unix/sysv/linux/i386/Makefile [subdir=io] (sysdep_routines):
81478         Add call_sync_file_range.
81479
81480 2011-04-01  Andreas Schwab  <schwab@redhat.com>
81481
81482         * sysdeps/unix/sysv/linux/Makefile (sysdep_headers): Add
81483         bits/timex.h.
81484
81485 2011-04-01  Ulrich Drepper  <drepper@gmail.com>
81486
81487         * iconv/iconv.h: Fix typo in comment.
81488         * io/fcntl.h: Likewise.
81489         * libio/stdio.h: Likewise.
81490         * posix/spawn.h: Likewise.
81491         * posix/unistd.h: Likewise.
81492         * stdlib/stdlib.h: Likewise.
81493         * time/time.h: Likewise.
81494         * wcsmbs/wchar.h: Likewise.
81495
81496         * sysdeps/unix/sysv/linux/Versions [GLIBC_2.14] (name_to_handle_at,
81497         open_by_handle): Add.
81498         * sysdeps/unix/sysv/linux/i386/bits/fcntl.h: Define struct file_handle
81499         and MAX_HANDLE_SZ.  Declare name_to_handle_at and open_by_handle.
81500         Augment a few comments.
81501         * sysdeps/unix/sysv/linux/ia64/bits/fcntl.h: Likewise.
81502         * sysdeps/unix/sysv/linux/s390/bits/fcntl.h: Likewise.
81503         * sysdeps/unix/sysv/linux/sh/bits/fcntl.h: Likewise.
81504         * sysdeps/unix/sysv/linux/sparc/bits/fcntl.h: Likewise.
81505         * sysdeps/unix/sysv/linux/x86_64/bits/fcntl.h: Likewise.
81506         * sysdeps/unix/sysv/linux/syscalls.list: Add name_to_handle_at and
81507         open_by_handle.
81508
81509         * io/fcntl.h (AT_EMPTY_PATH): Define.
81510
81511 2011-03-30  Ulrich Drepper  <drepper@gmail.com>
81512
81513         * sysdeps/unix/sysv/linux/syscalls.list: Add clock_adjtime.
81514         * sysdeps/unix/sysv/linux/bits/time.h: New file.
81515         * sysdeps/unix/sysv/linux/sys/timex.h: Move struct timex definition
81516         to...
81517         * sysdeps/unix/sysv/linux/bits/timex.h: ...here.  New file.
81518         * Versions.def: Add GLIBC_2.14.
81519         * sysdeps/unix/sysv/linux/Versions [GLIBC_2.14] (clock_adjtime):
81520         Export.
81521
81522 2011-03-22  Ulrich Drepper  <drepper@gmail.com>
81523
81524         * sysdeps/unix/sysv/linux/i386/sysconf.c (intel_check_word): Increment
81525         round counter.
81526         * sysdeps/x86_64/cacheinfo.c (intel_check_word): Likewise.
81527
81528 2011-03-20  H.J. Lu  <hongjiu.lu@intel.com>
81529
81530         [BZ #12597]
81531         * string/test-strncmp.c (do_page_test): New function.
81532         (check2): Likewise.
81533         (test_main): Call check2.
81534         * sysdeps/x86_64/multiarch/strcmp.S: Properly cross page boundary.
81535
81536 2011-03-20  Ulrich Drepper  <drepper@gmail.com>
81537
81538         [BZ #12587]
81539         * sysdeps/unix/sysv/linux/i386/sysconf.c (intel_check_word):
81540         Handle cache information in CPU leaf 4.
81541         * sysdeps/x86_64/cacheinfo.c (intel_check_word): Likewise.
81542
81543 2011-03-18  Ulrich Drepper  <drepper@gmail.com>
81544
81545         [BZ #12583]
81546         * posix/fnmatch.c (fnmatch): Check size of pattern in wide
81547         character representation.
81548         Partly based on a patch by Tomas Hoger <thoger@redhat.com>.
81549
81550 2011-03-16  Ryan S. Arnold  <rsa@us.ibm.com>
81551
81552         * sysdeps/powerpc/powerpc32/power6/fpu/s_isnanf.S (isnanf): Fix
81553         END(__isnan) to END(__isnanf) to match function entry point/label
81554         EALIGN(__isnanf,...).
81555
81556 2011-03-10  Jakub Jelinek  <jakub@redhat.com>
81557
81558         * wcsmbs/wchar.h (wmemcmp): Remove __restrict qualifiers.
81559
81560 2011-03-10  Ulrich Drepper  <drepper@gmail.com>
81561
81562         [BZ #12510]
81563         * elf/dl-lookup.c (do_lookup_x): For copy relocations of unique objects
81564         copy from the symbol referenced in the relocation to initialize the
81565         used variable.
81566         Patch by Piotr Bury <pbury@goahead.com>.
81567         * elf/Makefile: Add rules to build and tst-unique3.
81568         * include/bits/dlfcn.h: Remove _dl_mcount_wrapper_check declaration.
81569         * elf/tst-unique3.cc: New file.
81570         * elf/tst-unique3.h: New file.
81571         * elf/tst-unique3lib.cc: New file.
81572         * elf/tst-unique3lib2.cc: New file.
81573
81574         * elf/Makefile: Don't run tst-execstack* tests of SELinux is enabled.
81575
81576 2011-03-10  Mike Frysinger  <vapier@gentoo.org>
81577
81578         * sysdeps/sparc/sparc64/elf/configure.in (libc_cv_sparc64_tls): Add
81579         $LDFLAGS and -nostdlib -nostartfiles to linking step.  Change main
81580         to _start.
81581
81582 2011-03-06  Ulrich Drepper  <drepper@gmail.com>
81583
81584         * elf/dl-load.c (_dl_map_object): If we are looking for the first
81585         to-be-loaded object along a path to loader is ld.so.
81586
81587 2011-03-02  Harsha Jagasia  <harsha.jagasia@amd.com>
81588             Ulrich Drepper  <drepper@gmail.com>
81589
81590         * sysdeps/x86_64/memset.S: After aligning destination, code
81591         branches to different locations depending on the value of
81592         misalignment, when multiarch is enabled. Fix this.
81593
81594 2011-03-02  Harsha Jagasia  <harsha.jagasia@amd.com>
81595
81596         * sysdeps/x86_64/cacheinfo.c (init_cacheinfo):
81597         Set _x86_64_preferred_memory_instruction for AMD processsors.
81598         * sysdeps/x86_64/multiarch/init-arch.c (__init_cpu_features):
81599         Set bit_Prefer_SSE_for_memop for AMD processors.
81600
81601 2011-03-04  Ulrich Drepper  <drepper@gmail.com>
81602
81603         * libio/fmemopen.c (fmemopen): Optimize a bit.
81604
81605 2011-03-03  Andreas Schwab  <schwab@redhat.com>
81606
81607         * libio/fmemopen.c (fmemopen): Don't read past end of buffer.
81608
81609 2011-03-03  Roland McGrath  <roland@redhat.com>
81610
81611         * setjmp/bits/setjmp2.h: Canonicalize comment formatting.
81612
81613 2011-02-28  Aurelien Jarno  <aurelien@aurel32.net>
81614
81615         * sysdeps/sparc/sparc64/multiarch/memset.S(__bzero): Call
81616         __bzero_ultra1 instead of __memset_ultra1.
81617
81618 2011-02-23  Andreas Schwab  <schwab@redhat.com>
81619             Ulrich Drepper  <drepper@gmail.com>
81620
81621         [BZ #12509]
81622         * include/link.h (struct link_map): Add l_orig_initfini.
81623         * elf/dl-load.c (_dl_map_object_from_fd): Free realname before
81624         returning unsuccessfully.
81625         * elf/dl-close.c (_dl_close_worker): If this is the last explicit
81626         close of a file loaded at startup, restore the original l_initfini
81627         list.
81628         * elf/dl-deps.c (_dl_map_object_deps): Don't free old l_initfini
81629         list, store the pointer.
81630         * elf/Makefile ($(objpfx)noload-mem): New rule.
81631         (noload-ENV): Define.
81632         (tests): Add $(objpfx)noload-mem.
81633         * elf/noload.c: Include <memcheck.h>.
81634         (main): Call mtrace.  Close all opened handles.
81635
81636 2011-02-17  Andreas Schwab  <schwab@redhat.com>
81637
81638         [BZ #12454]
81639         * elf/dl-deps.c (_dl_map_object_deps): Signal error early when
81640         dependencies are missing.
81641
81642 2011-02-22  Samuel Thibault  <samuel.thibault@ens-lyon.org>
81643
81644         Fix __if_freereq crash: Unlike the generic version which uses free,
81645         Hurd needs munmap.
81646         * sysdeps/mach/hurd/ifreq.h: New file.
81647
81648 2011-01-27  Petr Baudis  <pasky@suse.cz>
81649             Ulrich Drepper  <drepper@gmail.com>
81650
81651         [BZ 12445]#
81652         * stdio-common/vfprintf.c (vfprintf): Pass correct newlen
81653         to extend_alloca().
81654         * stdio-common/bug23.c: New file.
81655         * stdio-common/Makefile (tests): Add bug23.
81656
81657 2010-09-28  Andreas Schwab  <schwab@redhat.com>
81658             Ulrich Drepper  <drepper@gmail.com>
81659
81660         [BZ #12489]
81661         * elf/rtld.c (dl_main): Move setting of GLRO(dl_init_all_dirs)
81662         before performing relro protection.  At old place add assertion
81663         to make sure nothing changed.
81664
81665 2011-02-17  Nathan Sidwell  <nathan@codesourcery.com>
81666             Glauber de Oliveira Costa  <glommer@gmail.com>
81667
81668         * elf/elf.h: Add new ARM TLS relocs.
81669
81670 2011-02-16  Ryan S. Arnold  <rsa@us.ibm.com>
81671
81672         * sysdeps/unix/sysv/linux/powerpc/powerpc64/sysdep.h:
81673         (INTERNAL_VSYSCALL_NCS INTERNAL_SYSCALL_NCS): Remove erroneous (int)
81674         cast from r3.
81675         * sysdeps/wordsize-64/Makefile: New file.  Add tst-writev to
81676         'tests' variable.
81677         * sysdeps/wordsize-64/tst-writev.c: New file.
81678
81679 2011-02-15  Ryan S. Arnold  <rsa@us.ibm.com>
81680
81681         * sysdeps/powerpc/powerpc64/power7/Makefile: New file which adds
81682         -mno-vsx to the CFLAGS-rtld.c variable to avoid using VSX registers and
81683         insns in _dl_start to prevent a TOC reference before relocs are
81684         resolved.
81685
81686 2011-02-15  Ulrich Drepper  <drepper@gmail.com>
81687
81688         [BZ #12469]
81689         * Makeconfig: Remove RANLIB definition.
81690         * Makerules: Don't use RANLIB.
81691         * aclocal.m4: Remove ranlib test.
81692         * configure.in: No need to check for ranlib.
81693         * elf/rtld-Rules: Don't use RANLIB.
81694
81695 2011-02-16  Samuel Thibault  <samuel.thibault@ens-lyon.org>
81696
81697         * sysdeps/mach/i386/sysdep.h: Add _MACH_I386_SYSDEP_H inclusion
81698         protection macro.
81699         * sysdeps/mach/i386/thread_state.h: Add _MACH_I386_THREAD_STATE_H
81700         inclusion protection macro.
81701
81702         * stdio-common/psiginfo.c (psiginfo): Check pinfo->si_signo against
81703         SIGRTMIN and SIGRTMAX and print information in that case only when
81704         SIGRTMIN is defined.
81705
81706 2011-02-11  Jakub Jelinek  <jakub@redhat.com>
81707
81708         * stdio-common/printf-parsemb.c (__parse_one_specmb): Handle
81709         arginfo fn returning -1.
81710
81711         * stdio-common/_i18n_number.h (_i18n_number_rewrite): Ensure decimal
81712         and thousands string is zero terminated.
81713
81714 2011-02-03  Andreas Schwab  <schwab@redhat.com>
81715
81716         * sysdeps/unix/sysv/linux/sparc/bits/socket.h: Sync with
81717         sysdeps/unix/sysv/linux/bits/socket.h.
81718
81719 2011-01-30  Samuel Thibault  <samuel.thibault@ens-lyon.org>
81720
81721         * bits/sched.h (__CPU_ZERO, __CPU_SET, __CPU_CLR, __CPU_ISSET)
81722         (__CPU_COUNT): Remove old macros.
81723         (__CPU_ZERO_S, __CPU_SET_S, __CPU_CLR_S, __CPU_ISSET_S)
81724         (__CPU_COUNT, __CPU_EQUAL_S, __CPU_OP_S, __CPU_ALLOC_SIZE)
81725         (__CPU_ALLOC, __CPU_FREE): Add macros.
81726         (__sched_cpualloc, __sched_cpufree): Add declarations.
81727
81728 2011-02-05  Ulrich Drepper  <drepper@gmail.com>
81729
81730         * nscd/nscd-client.h: Define MAX_TIMEOUT_VALUE.
81731         (struct datahead): Reuse 32 bits of the alignment for a TTL field.
81732         * nscd/aicache.c (addhstaiX): Return timeout of added value.
81733         (readdhstai): Return value of addhstaiX call.
81734         * nscd/grpcache.c (cache_addgr): Return timeout of added value.
81735         (addgrbyX): Return value returned by cache_addgr.
81736         (readdgrbyname): Return value returned by addgrbyX.
81737         (readdgrbygid): Likewise.
81738         * nscd/pwdcache.c (cache_addpw): Return timeout of added value.
81739         (addpwbyX): Return value returned by cache_addpw.
81740         (readdpwbyname): Return value returned by addhstbyX.
81741         (readdpwbyuid): Likewise.
81742         * nscd/servicescache.c (cache_addserv): Return timeout of added value.
81743         (addservbyX): Return value returned by cache_addserv.
81744         (readdservbyname): Return value returned by addservbyX:
81745         (readdservbyport): Likewise.
81746         * nscd/hstcache.c (cache_addhst): Return timeout of added value.
81747         (addhstbyX): Return value returned by cache_addhst.
81748         (readdhstbyname): Return value returned by addhstbyX.
81749         (readdhstbyaddr): Likewise.
81750         (readdhstbynamev6): Likewise.
81751         (readdhstbyaddrv6): Likewise.
81752         * nscd/initgrcache.c (addinitgroupsX): Return timeout of added value.
81753         (readdinitgroups): Return value returned by addinitgroupsX.
81754         * nscd/cache.c (readdfcts): Change return value of functions to time_t.
81755         (prune_cache): Keep track of timeout value of re-added entries.
81756         * nscd/connections.c (nscd_run_prune): Use MAX_TIMEOUT_VALUE.
81757         * nscd/nscd.h: Adjust prototypes of readd* functions.
81758
81759 2011-02-04  Roland McGrath  <roland@redhat.com>
81760
81761         * nis/nis_server.c (nis_servstate): Use the right name for 0.
81762         (nis_stats): Likewise.
81763         * nis/nis_modify.c (nis_modify): Likewise.
81764         * nis/nis_remove.c (nis_remove): Likewise.
81765         * nis/nis_add.c (nis_add): Likewise.
81766
81767         * elf/dl-object.c (_dl_new_object): Remove unused variable L.
81768
81769         * posix/fnmatch_loop.c: Add some consts.
81770
81771         * sysdeps/x86_64/multiarch/memset-x86-64.S: Add an #undef.
81772
81773 2011-02-02  H.J. Lu  <hongjiu.lu@intel.com>
81774
81775         [BZ #12460]
81776         * config.make.in (config-cflags-novzeroupper): Define.
81777         * configure.in: Substitute libc_cv_cc_novzeroupper.
81778         * elf/Makefile (AVX-CFLAGS): Define.
81779         (CFLAGS-tst-audit4.c): Replace -mavx with $(AVX-CFLAGS).
81780         (CFLAGS-tst-auditmod4a.c): Likewise.
81781         (CFLAGS-tst-auditmod4b.c): Likewise.
81782         (CFLAGS-tst-auditmod6b.c): Likewise.
81783         (CFLAGS-tst-auditmod6c.c): Likewise.
81784         (CFLAGS-tst-auditmod7b.c): Likewise.
81785         * sysdeps/i386/configure.in: Check -mno-vzeroupper.
81786
81787 2011-02-02  Ulrich Drepper  <drepper@gmail.com>
81788
81789         * elf/dl-runtime.c (_dl_call_pltexit): Pass correct address of the
81790         function to the callback.
81791         Patch partly by Jiri Olsa <jolsa@redhat.com>.
81792
81793 2011-02-02  Andreas Schwab  <schwab@redhat.com>
81794
81795         * shadow/sgetspent.c: Check return value of __sgetspent_r instead
81796         of errno.
81797
81798 2011-01-19  Ulrich Drepper  <drepper@gmail.com>
81799
81800         [BZ #11724]
81801         * elf/dl-deps.c (_dl_map_object_deps): Rewrite sorting determining order
81802         of constructors.
81803         * elf/dl-fini.c (_dl_sort_fini): Rewrite sorting determining order
81804         of destructors.
81805         (_dl_fini): Don't call _dl_sort_fini if there is only one object.
81806
81807         [BZ #11724]
81808         * elf/Makefile: Add rules to build and run new test.
81809         * elf/tst-initorder.c: New file.
81810         * elf/tst-initorder.exp: New file.
81811         * elf/tst-initordera1.c: New file.
81812         * elf/tst-initordera2.c: New file.
81813         * elf/tst-initordera3.c: New file.
81814         * elf/tst-initordera4.c: New file.
81815         * elf/tst-initorderb1.c: New file.
81816         * elf/tst-initorderb2.c: New file.
81817         * elf/tst-order-a1.c: New file.
81818         * elf/tst-order-a2.c: New file.
81819         * elf/tst-order-a3.c: New file.
81820         * elf/tst-order-a4.c: New file.
81821         * elf/tst-order-b1.c: New file.
81822         * elf/tst-order-b2.c: New file.
81823         * elf/tst-order-main.c: New file.
81824         New test case by George Gensure <werkt0@gmail.com>.
81825
81826 2010-10-01  Andreas Schwab  <schwab@redhat.com>
81827
81828         * sysdeps/posix/getaddrinfo.c (gaih_inet): Don't discard result of
81829         decoding ACE if AI_CANONIDN.
81830
81831 2011-01-18  Ulrich Drepper  <drepper@gmail.com>
81832
81833         * elf/Makefile: Build IFUNC tests unless multi-arch = no.
81834
81835 2011-01-17  Ulrich Drepper  <drepper@gmail.com>
81836
81837         * version.h (RELEASE): Bump for 2.13 release.
81838         * include/features.h: (__GLIBC_MINOR__): Bump to 13.
81839
81840         * io/fcntl.h: Define AT_NO_AUTOMOUNT.
81841
81842         * sysdeps/unix/sysv/linux/i386/bits/mman.h: Define MADV_HUGEPAGE and
81843         MADV_NOHUGEPAGE.
81844         * sysdeps/unix/sysv/linux/ia64/bits/mman.h: Likewise.
81845         * sysdeps/unix/sysv/linux/powerpc/bits/mman.h: Likewise.
81846         * sysdeps/unix/sysv/linux/s390/bits/mman.h: Likewise.
81847         * sysdeps/unix/sysv/linux/sh/bits/mman.h: Likewise.
81848         * sysdeps/unix/sysv/linux/sparc/bits/mman.h: Likewise.
81849         * sysdeps/unix/sysv/linux/x86_64/bits/mman.h: Likewise.
81850
81851         * posix/getconf.c: Update copyright year.
81852         * catgets/gencat.c: Likewise.
81853         * csu/version.c: Likewise.
81854         * debug/catchsegv.sh: Likewise.
81855         * debug/xtrace.sh: Likewise.
81856         * elf/ldconfig.c: Likewise.
81857         * elf/ldd.bash.in: Likewise.
81858         * elf/sprof.c (print_version): Likewise.
81859         * iconv/iconv_prog.c: Likewise.
81860         * iconv/iconvconfig.c: Likewise.
81861         * locale/programs/locale.c: Likewise.
81862         * locale/programs/localedef.c: Likewise.
81863         * malloc/memusage.sh: Likewise.
81864         * malloc/mtrace.pl: Likewise.
81865         * nscd/nscd.c (print_version): Likewise.
81866         * nss/getent.c: Likewise.
81867
81868         * sysdeps/unix/sysv/linux/bits/socket.h: Define AF_CAIF, AF_ALG,
81869         PF_CAIF, and PF_ALG.
81870         * sysdeps/unix/sysv/linux/sparc/bits/socket.h: Likewise.
81871
81872 2011-01-16  Andreas Schwab  <schwab@linux-m68k.org>
81873
81874         * elf/Makefile (tlsmod17a-modules, tlsmod18a-modules): Define.
81875         (modules-names): Use them.
81876         (ifunc-test-modules, ifunc-pie-tests): Define.
81877         (extra-test-objs): Add tlsmod17a-modules, tlsmod18a-modules,
81878         tst-pie1, ifunc-test-modules and ifunc-pie-tests objects.
81879         (test-extras): Likewise.
81880         ($(patsubst %,$(objpfx)%.os,$(tlsmod17a-modules))): Use
81881         $(compile-command.c).
81882         ($(patsubst %,$(objpfx)%.os,$(tlsmod18a-modules))): Likewise.
81883         (all-built-dso): Define.
81884         (check-textrel.out, check-execstack.out): Depend on it.
81885
81886         * configure.in: Don't override --enable-multi-arch.
81887
81888 2011-01-15  Ulrich Drepper  <drepper@gmail.com>
81889
81890         [BZ #6812]
81891         * nscd/hstcache.c (tryagain): Define.
81892         (cache_addhst): Return tryagain not notfound for temporary errors.
81893         (addhstbyX): Also set h_errno to TRY_AGAIN when memory allocation
81894         failed.
81895
81896 2011-01-14  Ulrich Drepper  <drepper@gmail.com>
81897
81898         [BZ #10563]
81899         * sysdeps/unix/sysv/linux/i386/setgroups.c: Use INLINE_SETXID_SYSCALL
81900         to make the syscall.
81901         * sysdeps/unix/sysv/linux/setgroups.c: New file.
81902
81903         [BZ #12378]
81904         * posix/fnmatch_loop.c (FCT): When matching '[' keep track of beginning
81905         and fall back to matching as normal character if the string ends before
81906         the matching ']' is found.  This is what POSIX requires.
81907         * posix/testfnm.c: Adjust test result.
81908         * posix/globtest.sh: Adjust test result.  Add new test.
81909         * posix/tst-fnmatch.input: Likewise.
81910         * posix/tst-fnmatch2.c: Add new test.
81911
81912 2010-12-28  Andreas Schwab  <schwab@linux-m68k.org>
81913
81914         * elf/Makefile (check-execstack): Revert last change.  Depend on
81915         check-execstack.h.
81916         (check-execstack.h): New target.
81917         (generated): Add check-execstack.h.
81918         * elf/check-execstack.c: Include "check-execstack.h".
81919         (main): Revert last change.
81920         (handle_file): Return zero if GNU_STACK is absent and
81921         DEFAULT_STACK_PERMS doesn't include PF_X.
81922
81923 2011-01-13  Ulrich Drepper  <drepper@gmail.com>
81924
81925         * sysdeps/posix/spawni.c (__spawni): Don't fail if close file action
81926         in child fails because the descriptor is already closed.
81927         * include/sys/resource.h: Add libc_hidden_proto for getrlimit64.
81928         * sysdeps/unix/sysv/linux/getrlimit64.c: Add libc_hidden_def.
81929         * sysdeps/unix/sysv/linux/i386/getrlimit64.c: Likewise.
81930
81931         [BZ #12397]
81932         * sysdeps/unix/sysv/linux/mkdirat.c (mkdirat): Fix handling of missing
81933         syscall.
81934
81935         [BZ #10484]
81936         * nss/nss_files/files-hosts.c (HOST_DB_LOOKUP): Handle overflows of
81937         temporary buffer used to handle multi lookups locally.
81938         * include/alloca.h: Add libc_hidden_proto for __libc_alloca_cutoff.
81939
81940 2011-01-12  Ulrich Drepper  <drepper@gmail.com>
81941
81942         * elf/dl-dst.h (DL_DST_REQUIRED): Allow l_origin to be NULL when
81943         loader is ld.so.
81944
81945 2011-01-10  Paul Pluzhnikov  <ppluzhnikov@google.com>
81946
81947         * sysdeps/i386/Makefile: stdlib/cxa_finalize.c needs 16-byte stack
81948         alignment for SSE2.
81949
81950 2011-01-12  Ulrich Drepper  <drepper@gmail.com>
81951
81952         [BZ #12394]
81953         * stdio-common/printf_fp.c (__printf_fp): Add more room for grouping
81954         characters.  When rounding increased number of integer digits recompute
81955         number of groups.
81956         * stdio-common/tst-grouping.c: New file.
81957         * stdio-common/Makefile: Add rules to build and run tst-grouping.
81958
81959 2011-01-09  Ulrich Drepper  <drepper@gmail.com>
81960
81961         * sysdeps/i386/bits/select.h: Don't use asm code for __FD_SET,
81962         __FD_CLR, and __FS_ISSET.  gcc generates better code on its own.
81963
81964         * sysdeps/x86_64/bits/select.h: Mark value of __FD_SET and __FD_CLR as
81965         void.
81966         * bits/select.h: Likewise.
81967
81968 2011-01-08  Ulrich Drepper  <drepper@gmail.com>
81969
81970         * po/ja.po: Update from translation team.
81971
81972 2011-01-04  David S. Miller  <davem@sunset.davemloft.net>
81973
81974         [BZ #11155]
81975         * sysdeps/unix/sysv/linux/sparc/sparc64/fxstat.c: Use i386's
81976         implementation just like for lxstat, fxstatat, et al.
81977
81978 2010-12-27  Jim Meyering  <meyering@redhat.com>
81979
81980         [BZ #12348]
81981         * posix/regexec.c (build_trtable): Return failure indication upon
81982         calloc failure.  Otherwise, re_search_internal could infloop on OOM.
81983
81984 2010-12-25  Ulrich Drepper  <drepper@gmail.com>
81985
81986         [BZ #12201]
81987         * sysdeps/unix/sysv/linux/getrlimit64.c: New file.
81988         * sysdeps/unix/sysv/linux/setrlimit64.c: New file.
81989         * sysdeps/unix/sysv/linux/i386/getrlimit64.c: Use ../getrlimit64.c.
81990         * sysdeps/unix/sysv/linux/kernel-features.h: Define __ASSUME_PRLIMIT64.
81991
81992         [BZ #12207]
81993         * malloc/malloc.c (do_check_malloc_state): Use fastbin macro.
81994
81995         [BZ #12204]
81996         * string/xpg-strerror.c (__xpg_strerror_r): Return error code, not -1.
81997         * sysdeps/mach/xpg-strerror.c (__xpg_strerror_r): Likewise.
81998
81999 2010-12-15  H.J. Lu  <hongjiu.lu@intel.com>
82000
82001         * config.h.in (NO_CTORS_DTORS_SECTIONS): Define.
82002         * configure.in: Define NO_CTORS_DTORS_SECTIONS if linker
82003         script has SORT_BY_INIT_PRIORITY.
82004         * elf/sofini.c: Remove `.ctors' and `.dtors' sections if
82005         NO_CTORS_DTORS_SECTIONS is defined.
82006         * elf/soinit.c: Likewise.
82007         * sysdeps/i386/init-first.c: Don't call __libc_global_ctors if
82008         NO_CTORS_DTORS_SECTIONS is defined.
82009         * sysdeps/mach/hurd/i386/init-first.c: Likewise.
82010         * sysdeps/mach/hurd/powerpc/init-first.c: Likewise.
82011         * sysdeps/sh/init-first.c: Likewise.
82012         * sysdeps/unix/sysv/linux/init-first.c: Likewise.
82013
82014 2010-12-24  Ulrich Drepper  <drepper@gmail.com>
82015
82016         * stdio-common/vfprintf.c (vfprintf): If printf handlers are installed
82017         always use the slow path.
82018
82019 2010-12-15  Ryan S. Arnold  <rsa@us.ibm.com>
82020
82021         * elf/Makefile: (check-execstack): Replace $(native-compile) with a
82022         similar rule which adds the sysdep directories to the header search in
82023         order to pick up the correct platform stackinfo.h.
82024         * elf/check-execstack.c (main): Check DEFAULT_STACK_PERMS for PF_X and
82025         perform test if it is, otherwise return successfully without testing.
82026         * elf/dl-load.c (_dl_map_object_from_fd): Source stack_flags from
82027         DEFAULT_STACK_PERMS define in stackinfo.h.
82028         * elf/dl-support.c (_dl_stack_flags): Source from DEFAULT_STACK_PERMS
82029         defined in stackinfo.h.
82030         * elf/rtld.c (_dl_starting_up): Source ._dl_stack_flags from
82031         DEFAULT_STACK_PERMS defined in stackinfo.h.
82032         * sysdeps/i386/stackinfo.h: Define DEFAULT_STACK_PERMS with PF_X.
82033         * sysdeps/ia64/stackinfo.h: Likewise.
82034         * sysdeps/s390/stackinfo.h: Likewise.
82035         * sysdeps/sh/stackinfo.h: Likewise.
82036         * sysdeps/sparc/stackinfo.h: Likewise.
82037         * sysdeps/x86_64/stackinfo.h: Likewise.
82038         * sysdeps/powerpc/stackinfo.h: Define DEFAULT_STACK_PERMS without
82039         PF_X for powerpc64.  Retain PF_X for powerpc32.
82040
82041 2010-12-19  Ulrich Drepper  <drepper@gmail.com>
82042
82043         * sysdeps/unix/readdir_r.c (__READDIR_R): Compute reclen more
82044         accurately.
82045         * sysdeps/unix/sysv/linux/wordsize-64/readdir_r.c: Define
82046         GETDENTS_64BIT_ALIGNED.
82047
82048 2010-12-14  Ulrich Drepper  <dreper@gmail.com>
82049
82050         * sysdeps/i386/i686/multiarch/strcmp.S: Undo accidental checkin.
82051
82052 2010-12-10  Andreas Schwab  <schwab@redhat.com>
82053
82054         * wcsmbs/wchar.h (wcpcpy, wcpncpy): Only declare under
82055         _GNU_SOURCE.
82056
82057         * wcsmbs/wchar.h (wcpcpy, wcpncpy): Add __restrict.
82058         * wcsmbs/bits/wchar2.h (__wmemmove_chk_warn, wmemmove, wmemset):
82059         Remove __restrict.
82060         (wcscpy, __wcpcpy_chk, __wcpcpy_alias, wcpcpy, wcsncpy, wcpncpy)
82061         (wcscat, wcsncat, __wcrtomb_chk, wcrtomb): Add __restrict.
82062
82063 2010-12-09  Ulrich Drepper  <drepper@gmail.com>
82064
82065         [BZ #11655]
82066         * stdlib/msort.c (qsort_r): Make sure both phys_pages and pagesize
82067         are initialized.
82068
82069 2010-12-09  Jakub Jelinek  <jakub@redhat.com>
82070
82071         * string/bits/string3.h (memmove, bcopy): Remove __restrict.
82072
82073 2010-12-03  Ulrich Drepper  <drepper@gmail.com>
82074
82075         * po/it.po: Update from translation team.
82076
82077 2010-12-01  H.J. Lu  <hongjiu.lu@intel.com>
82078
82079         * sysdeps/i386/i686/multiarch/strcmp-ssse3.S (STRCMP): Remove
82080         unused codes.
82081
82082 2010-11-30  Ulrich Drepper  <drepper@gmail.com>
82083
82084         * sysdeps/i386/fpu/libm-test-ulps: Relax ynf(10,0.75) test expectations.
82085
82086 2010-11-24  Andreas Schwab  <schwab@redhat.com>
82087
82088         * resolv/nss_dns/dns-host.c (getanswer_r): Don't handle ttl == 0
82089         specially.
82090         (gaih_getanswer_slice): Likewise.
82091
82092 2010-10-20  Jakub Jelinek  <jakub@redhat.com>
82093
82094         * sysdeps/ieee754/ldbl-128/s_fmal.c (__fmal): Fix up inline asm.
82095
82096 2010-05-31  Petr Baudis  <pasky@suse.cz>
82097
82098         [BZ #11149]
82099         * elf/ldconfig.c (main): Allow aux_cache_file open()ing to fail
82100         silently even in the chroot mode.
82101
82102 2010-11-22  Ulrich Drepper  <drepper@gmail.com>
82103
82104         * nis/nss_compat/compat-initgroups.c (internal_getgrent_r): Optimize
82105         last patch a bit.  Pretty printing
82106
82107 2010-05-31  Petr Baudis <pasky@suse.cz>
82108
82109         [BZ #10085]
82110         * nis/nss_compat/compat-initgroups.c (internal_getgrent_r): Fix
82111         initialization of skip_initgroups_dyn.
82112
82113 2010-11-19  Ulrich Drepper  <drepper@gmail.com>
82114
82115         * sysdeps/unix/sysv/linux/i386/bits/mman.h: Define MAP_HUGETLB.
82116         * sysdeps/unix/sysv/linux/x86_64/bits/mman.h: Likewise.
82117
82118 2010-11-16  Ulrich Drepper  <drepper@gmail.com>
82119
82120         * sysdeps/unix/sysv/linux/sys/swap.h (SWAP_FLAG_DISCARD): Define.
82121
82122 2010-11-11  Andreas Schwab  <schwab@redhat.com>
82123
82124         * posix/fnmatch_loop.c (NEW_PATTERN): Fix use of alloca.
82125         * posix/Makefile (tests): Add $(objpfx)tst-fnmatch-mem.
82126         (tst-fnmatch-ENV): Set MALLOC_TRACE.
82127         ($(objpfx)tst-fnmatch-mem): New rule.
82128         (generated): Add tst-fnmatch-mem and tst-fnmatch.mtrace.
82129         * posix/tst-fnmatch.c (main): Call mtrace.
82130
82131 2010-11-11  H.J. Lu  <hongjiu.lu@intel.com>
82132
82133         * sysdeps/x86_64/multiarch/init-arch.c (__init_cpu_features):
82134         Support Intel processor model 6 and model 0x2c.
82135
82136 2010-11-10  Luis Machado  <luisgpm@br.ibm.com>
82137
82138         * sysdeps/ieee754/ldbl-128ibm/e_sqrtl.c (__ieee754_sqrtl): Force
82139           signed comparison.
82140
82141 2010-11-09  H.J. Lu  <hongjiu.lu@intel.com>
82142
82143         [BZ #12205]
82144         * string/test-strncasecmp.c (check_result): New function.
82145         (do_one_test): Use it.
82146         (check1): New function.
82147         (test_main): Use it.
82148         * sysdeps/i386/i686/multiarch/strcmp.S (nibble_ashr_use_sse4_2_exit):
82149         Support strcasecmp and strncasecmp.
82150
82151 2010-11-08  Ulrich Drepper  <drepper@gmail.com>
82152
82153         [BZ #12194]
82154         * sysdeps/i386/bits/byteswap.h: Avoid warning in __bswap_16.
82155         * sysdeps/x86_64/bits/byteswap.h: Likewise.
82156
82157 2010-11-07  H.J. Lu  <hongjiu.lu@intel.com>
82158
82159         * sysdeps/x86_64/memset.S: Check USE_MULTIARCH and USE_SSE2 for
82160         IFUNC support.
82161         * sysdeps/x86_64/multiarch/Makefile (sysdep_routines): Add
82162         memset-x86-64.
82163         * sysdeps/x86_64/multiarch/bzero.S: New file.
82164         * sysdeps/x86_64/multiarch/cacheinfo.c: New file.
82165         * sysdeps/x86_64/multiarch/memset-x86-64.S: New file.
82166         * sysdeps/x86_64/multiarch/memset.S: New file.
82167         * sysdeps/x86_64/multiarch/memset_chk.S: New file.
82168         * sysdeps/x86_64/multiarch/init-arch.c (__init_cpu_features):
82169         Set bit_Prefer_SSE_for_memop for Intel processors.
82170         * sysdeps/x86_64/multiarch/init-arch.h (bit_Prefer_SSE_for_memop):
82171         Define.
82172         (index_Prefer_SSE_for_memop): Define.
82173         (HAS_PREFER_SSE_FOR_MEMOP): Define.
82174
82175 2010-11-04  Luis Machado  <luisgpm@br.ibm.com>
82176
82177         * sysdeps/powerpc/powerpc32/power7/mempcpy.S: New file.
82178         * sysdeps/powerpc/powerpc64/power7/mempcpy.S: New file.
82179
82180 2010-11-03  H.J. Lu  <hongjiu.lu@intel.com>
82181
82182         [BZ #12191]
82183         * sysdeps/i386/i686/cacheinfo.c (__x86_64_raw_data_cache_size): New.
82184         (__x86_64_raw_data_cache_size_half): Likewise.
82185         (__x86_64_raw_shared_cache_size): Likewise.
82186         (__x86_64_raw_shared_cache_size_half): Likewise.
82187
82188         * sysdeps/x86_64/cacheinfo.c (__x86_64_raw_data_cache_size): New.
82189         (__x86_64_raw_data_cache_size_half): Likewise.
82190         (__x86_64_raw_shared_cache_size): Likewise.
82191         (__x86_64_raw_shared_cache_size_half): Likewise.
82192         (init_cacheinfo): Set __x86_64_raw_data_cache_size,
82193         __x86_64_raw_data_cache_size_half, __x86_64_raw_shared_cache_size
82194         and __x86_64_raw_shared_cache_size_half.  Round
82195         __x86_64_data_cache_size_half, __x86_64_data_cache_size
82196         __x86_64_shared_cache_size_half and __x86_64_shared_cache_size,
82197         to multiple of 256 bytes.
82198
82199 2010-11-03  Ulrich Drepper  <drepper@gmail.com>
82200
82201         [BZ #12167]
82202         * sysdeps/unix/sysv/linux/ttyname.c (ttyname): Recognize new mangling
82203         of inacessible symlinks.  Verify result of symlink before returning it.
82204         * sysdeps/unix/sysv/linux/ttyname_r.c (__ttyname_r): Likewise.
82205         Patch mostly by Miklos Szeredi <miklos@szeredi.hu>.
82206
82207 2010-10-28  Erich Ritz  <erichritz@gmail.com>
82208
82209         * math/math.h (isinf): Fix typo in comment.
82210
82211 2010-11-01  Ulrich Drepper  <drepper@gmail.com>
82212
82213         * po/da.po: Update from translation team.
82214
82215 2010-10-26  Ulrich Drepper  <drepper@gmail.com>
82216
82217         * elf/rtld.c (dl_main): Move assertion after the point where rtld map
82218         is added to the list.
82219
82220 2010-10-20  Andreas Krebbel  <Andreas.Krebbel@de.ibm.com>
82221             Ulrich Drepper  <drepper@gmail.com>
82222
82223         * elf/dl-object.c (_dl_new_object): Don't append the new object to
82224         the global list here.  Move code to...
82225         (_dl_add_to_namespace_list): ...here.  New function.
82226         * elf/rtld.c (dl_main): Invoke _dl_add_to_namespace_list.
82227         * sysdeps/generic/ldsodefs.h (_dl_add_to_namespace_list): Declare.
82228         * elf/dl-load.c (lose): Don't remove the element from the list.
82229         (_dl_map_object_from_fd): Invoke _dl_add_to_namespace_list.
82230         (_dl_map_object): Likewise.
82231
82232 2010-10-25  Ulrich Drepper  <drepper@gmail.com>
82233
82234         [BZ #12159]
82235         * sysdeps/x86_64/multiarch/strchr.S: Fix propagation of search byte
82236         into all bytes of SSE register.
82237         Patch by Richard Li <richardpku@gmail.com>.
82238
82239 2010-10-24  Ulrich Drepper  <drepper@gmail.com>
82240
82241         [BZ #12140]
82242         * malloc/malloc.c (_int_free): Fill correct number of bytes when
82243         perturbing.
82244
82245 2010-10-20  Michael B. Brutman  <brutman@us.ibm.com>
82246
82247         * sysdeps/powerpc/dl-procinfo.c: Add support for ppca2 platform
82248         * sysdeps/powerpc/dl-procinfo.h: Add support for ppca2 platform
82249         * sysdeps/powerpc/powerpc32/a2/memcpy.S: New file.
82250         * sysdeps/powerpc/powerpc64/a2/memcpy.S: Likewise.
82251         * sysdeps/unix/sysv/linux/powerpc/powerpc32/a2/Implies: New
82252         submachine.
82253         * sysdeps/unix/sysv/linux/powerpc/powerpc64/a2/Implies: Likewise.
82254
82255 2010-10-22  Andreas Schwab  <schwab@redhat.com>
82256
82257         * include/dlfcn.h (__RTLD_SECURE): Define.
82258         * elf/dl-load.c (_dl_map_object): Remove preloaded parameter.  Use
82259         mode & __RTLD_SECURE instead.
82260         (open_path): Rename preloaded parameter to secure.
82261         * sysdeps/generic/ldsodefs.h (_dl_map_object): Adjust declaration.
82262         * elf/dl-open.c (dl_open_worker): Adjust call to _dl_map_object.
82263         * elf/dl-deps.c (openaux): Likewise.
82264         * elf/rtld.c (struct map_args): Remove is_preloaded.
82265         (map_doit): Don't use it.
82266         (dl_main): Likewise.
82267         (do_preload): Use __RTLD_SECURE instead of is_preloaded.
82268         (dlmopen_doit): Add __RTLD_SECURE to mode bits.
82269
82270 2010-09-09  Andreas Schwab  <schwab@redhat.com>
82271
82272         * Makeconfig (sysd-rules-patterns): Add rtld-%:rtld-%.
82273         (sysd-rules-targets): Remove duplicates.
82274         * elf/rtld-Rules ($(objpfx)rtld-%.os): Add pattern rules with
82275         rtld-%.$o dependency.
82276
82277 2010-10-18  Andreas Schwab  <schwab@redhat.com>
82278
82279         * elf/dl-open.c (dl_open_worker): Don't expand DST here, let
82280         _dl_map_object do it.
82281
82282 2010-10-19  Ulrich Drepper  <drepper@gmail.com>
82283
82284         * sysdeps/i386/bits/mathdef.h (FP_FAST_FMA): If the GCC 4.6 port has
82285         fast fma builtins, define the macros in the C99 standard.
82286         (FP_FAST_FMAF): Likewise.
82287         (FP_FAST_FMAL): Likewise.
82288         * sysdeps/x86_64/bits/mathdef.h: Likewise.
82289
82290         * bits/mathdef.h: Update copyright year.
82291         * sysdeps/powerpc/bits/mathdef.h: Likewise.
82292
82293 2010-10-19  Michael Meissner  <meissner@linux.vnet.ibm.com>
82294
82295         * bits/mathdef.h (FP_FAST_FMA): If the GCC 4.6 port has fast fma
82296         builtins, define the macros in the C99 standard.
82297         (FP_FAST_FMAF): Likewise.
82298         (FP_FAST_FMAL): Likewise.
82299         * sysdeps/powerpc/bits/mathdef.h (FP_FAST_FMA): Define, ppc as
82300         multiply/add.
82301         (FP_FAST_FMAF): Likewise.
82302
82303 2010-10-15  Jakub Jelinek  <jakub@redhat.com>
82304
82305         [BZ #3268]
82306         * math/libm-test.inc (fma_test): Some new testcases.
82307         * sysdeps/ieee754/ldbl-128/s_fmal.c: New file.
82308         * sysdeps/ieee754/ldbl-96/s_fma.c (__fma): Fix fma with finite x and
82309         y and infinite z.  Do multiplication by C already in long double.
82310         * sysdeps/ieee754/ldbl-96/s_fmal.c: New file.
82311         * sysdeps/ieee754/dbl-64/s_fma.c (__fma): Fix fma with finite x and
82312         y and infinite z.  Do bitwise or of inexact bit into u.d.
82313         * sysdeps/ieee754/ldbl-64-128/s_fmal.c: New file.
82314         * sysdeps/i386/fpu/s_fmaf.S: Removed.
82315         * sysdeps/i386/fpu/s_fma.S: Removed.
82316         * sysdeps/i386/fpu/s_fmal.S: Removed.
82317
82318 2010-10-16  Jakub Jelinek  <jakub@redhat.com>
82319
82320         [BZ #3268]
82321         * math/libm-test.inc (fma_test): Add IEEE quad long double fmal tests.
82322         * sysdeps/ieee754/ldbl-128/s_fmal.c (__fmal): Ensure a1 + u.d
82323         computation is not scheduled after fetestexcept.  Fix value
82324         of minimum denormal long double.
82325
82326 2010-10-14  Jakub Jelinek  <jakub@redhat.com>
82327
82328         [BZ #3268]
82329         * math/libm-test.inc (fma_test): Add some more tests.
82330         * sysdeps/ieee754/dbl-64/s_fma.c (__fma): Handle underflows
82331         correctly.
82332
82333 2010-10-15  Andreas Schwab  <schwab@redhat.com>
82334
82335         * scripts/data/localplt-s390-linux-gnu.data: New file.
82336         * scripts/data/localplt-s390x-linux-gnu.data: New file.
82337
82338 2010-10-13  Jakub Jelinek  <jakub@redhat.com>
82339
82340         [BZ #3268]
82341         * math/libm-test.inc (fma_test): Some more fmaf and fma tests.
82342         * sysdeps/i386/i686/multiarch/s_fma.c: Include ldbl-96 version
82343         instead of dbl-64.
82344         * sysdeps/i386/fpu/bits/mathinline.h (fma, fmaf, fmal): Remove
82345         inlines.
82346         * sysdeps/ieee754/ldbl-96/s_fma.c: New file.
82347         * sysdeps/ieee754/dbl-64/s_fma.c (__fma): Fix exponent adjustment
82348         if one of x and y is very large and the other is subnormal.
82349         * sysdeps/s390/fpu/s_fmaf.c: New file.
82350         * sysdeps/s390/fpu/s_fma.c: New file.
82351         * sysdeps/powerpc/fpu/s_fmaf.S: New file.
82352         * sysdeps/powerpc/fpu/s_fma.S: New file.
82353         * sysdeps/powerpc/powerpc32/fpu/s_fma.S: New file.
82354         * sysdeps/powerpc/powerpc64/fpu/s_fma.S: New file.
82355         * sysdeps/unix/sysv/linux/s390/fpu/s_fma.c: New file.
82356
82357 2010-10-12  Jakub Jelinek  <jakub@redhat.com>
82358
82359         [BZ #3268]
82360         * math/libm-test.inc (fma_test): Add some more fmaf tests, add
82361         fma tests.
82362         * sysdeps/ieee754/dbl-64/s_fmaf.c (__fmaf): Fix Inf/Nan check.
82363         * sysdeps/ieee754/dbl-64/s_fma.c: New file.
82364         * sysdeps/i386/i686/multiarch/s_fma.c: Include
82365         sysdeps/ieee754/dbl-64/s_fma.c instead of math/s_fma.c.
82366         * sysdeps/x86_64/multiarch/s_fma.c: Likewise.
82367         * sysdeps/ieee754/ldbl-opt/s_fma.c: Likewise.
82368         * sysdeps/ieee754/ldbl-128/s_fma.c: New file.
82369
82370 2010-10-12  Ulrich Drepper  <drepper@redhat.com>
82371
82372         [BZ #12078]
82373         * posix/regcomp.c (parse_branch): One more memory leak plugged.
82374         * posix/bug-regex31.input: Add test case.
82375
82376 2010-10-11  Ulrich Drepper  <drepper@gmail.com>
82377
82378         * posix/bug-regex31.c: Rewrite to run multiple tests from stdin.
82379         * posix/bug-regex31.input: New file.
82380
82381         [BZ #12078]
82382         * posix/regcomp.c (parse_branch): Free memory when allocation failed.
82383         (parse_sub_exp): Fix last change, use postorder.
82384
82385         * posix/bug-regex31.c: New file.
82386         * posix/Makefile: Add rules to build and run bug-regex31.
82387
82388         * posix/regcomp.c (parse_bracket_exp): Add missing re_free calls.
82389
82390         [BZ #12078]
82391         * posix/regcomp.c (parse_sub_exp): Free tree data when it is not used.
82392
82393         [BZ #12108]
82394         * stdio-common/psiginfo.c (psiginfo): Don't expext SIGRTMIN..SIGRTMAX
82395         to have entries in sys_siglist.
82396
82397         [BZ #12093]
82398         * sysdeps/unix/sysv/linux/check_pf.c (__check_pf): ->ifa_addr might
82399         be NULL.
82400
82401 2010-10-07  Jakub Jelinek  <jakub@redhat.com>
82402
82403         [BZ #3268]
82404         * math/libm-test.inc (fma_test): Add 2 fmaf tests.
82405         * sysdeps/ieee754/dbl-64/s_fmaf.c: New file.
82406         * sysdeps/i386/i686/multiarch/s_fmaf.c: Include
82407         sysdeps/ieee754/dbl-64/s_fmaf.c instead of math/s_fmaf.c.
82408         * sysdeps/x86_64/multiarch/s_fmaf.c: Likewise.
82409         * include/fenv.h (feupdateenv, fetestexcept): Add libm_hidden_proto.
82410         * math/feupdateenv.c (feupdateenv): Add libm_hidden_ver.
82411         * sysdeps/i386/fpu/feupdateenv.c (feupdateenv): Likewise.
82412         * sysdeps/powerpc/fpu/feupdateenv.c (feupdateenv): Likewise.
82413         * sysdeps/x86_64/fpu/feupdateenv.c (feupdateenv): Likewise.
82414         * sysdeps/sparc/fpu/feupdateenv.c (feupdateenv): Likewise.
82415         * sysdeps/ia64/fpu/feupdateenv.c (feupdateenv): Add libm_hidden_def.
82416         * sysdeps/s390/fpu/feupdateenv.c (feupdateenv): Likewise.
82417         * math/ftestexcept.c (fetestexcept): Likewise.
82418         * sysdeps/ia64/fpu/ftestexcept.c (fetestexcept): Likewise.
82419         * sysdeps/i386/fpu/ftestexcept.c (fetestexcept): Likewise.
82420         * sysdeps/s390/fpu/ftestexcept.c (fetestexcept): Likewise.
82421         * sysdeps/powerpc/fpu/ftestexcept.c (fetestexcept): Likewise.
82422         * sysdeps/x86_64/fpu/ftestexcept.c (fetestexcept): Likewise.
82423         * sysdeps/sparc/fpu/ftestexcept.c (fetestexcept): Likewise.
82424         * sysdeps/sh/sh4/fpu/ftestexcept.c (fetestexcept): Likewise.
82425
82426 2010-10-11  Ulrich Drepper  <drepper@gmail.com>
82427
82428         [BZ #12107]
82429         * stdio-common/psiginfo.c (psiginfo): Terminate all strings with
82430         newline.
82431
82432 2010-10-06  Ulrich Drepper  <drepper@gmail.com>
82433
82434         * string/bug-strstr1.c: New file.
82435         * string/Makefile: Add rules to build and run bug-strstr1.
82436
82437 2010-10-05  Eric Blake  <eblake@redhat.com>
82438
82439         [BZ #12092]
82440         * string/str-two-way.h (two_way_long_needle): Always clear memory
82441         when skipping input due to the shift table.
82442
82443 2010-10-03  Ulrich Drepper  <drepper@gmail.com>
82444
82445         [BZ #12005]
82446         * malloc/mcheck.c: Handle large requests.
82447
82448         [BZ #12077]
82449         * sysdeps/x86_64/strcmp.S: Fix handling of remaining bytes in buffer
82450         for strncmp and strncasecmp.
82451         * string/stratcliff.c: Add tests for strcmp and strncmp.
82452         * wcsmbs/wcsatcliff.c: Adjust for stratcliff change.
82453
82454 2010-09-28  Nobuhiro Iwamatsu  <iwamatsu@nigauri.org>
82455
82456         * sysdeps/sh/sh4/fpu/fpu_control.h: Add 'extern "C"' protection to
82457         __set_fpscr.
82458
82459 2010-09-30  Andreas Jaeger  <aj@suse.de>
82460
82461         * sysdeps/unix/sysv/linux_fsinfo.h (BTRFS_SUPER_MAGIC): Define.
82462         (CGROUP_SUPER_MAGIC): Define.
82463         * sysdeps/unix/sysv/linux/internal_statvfs.c (__statvfs_getflags):
82464         Handle btrfs and cgroup file systems.
82465         * sysdeps/unix/sysv/linux/pathconf.c (__statfs_filesize_max):
82466         Likewise.
82467
82468 2010-09-27  Luis Machado  <luisgpm@br.ibm.com>
82469
82470         * sysdeps/powerpc/powerpc32/rtld-memset.c: New file.
82471         * sysdeps/powerpc/powerpc64/rtld-memset.c: New file.
82472
82473 2010-09-29  Andreas Krebbel  <Andreas.Krebbel@de.ibm.com>
82474
82475         [BZ #12067]
82476         * sysdeps/s390/s390-32/elf/start.S: Fix address calculation when
82477         trying to locate the ELF header.
82478
82479 2010-09-27  Andreas Schwab  <schwab@redhat.com>
82480
82481         [BZ #11611]
82482         * sysdeps/unix/sysv/linux/internal_statvfs.c (INTERNAL_STATVFS):
82483         Mask out sign-bit copies when constructing f_fsid.
82484
82485 2010-09-24  Petr Baudis <pasky@suse.cz>
82486
82487         * debug/stack_chk_fail_local.c: Add missing licence exception.
82488         * debug/warning-nop.c: Likewise.
82489
82490 2010-09-15  Joseph Myers  <joseph@codesourcery.com>
82491
82492         * sysdeps/unix/sysv/linux/getdents.c (__GETDENTS): When
82493         implementing getdents64 using getdents syscall, set d_type if
82494         __ASSUME_GETDENTS32_D_TYPE.
82495
82496 2010-09-16  Andreas Schwab  <schwab@redhat.com>
82497
82498         * elf/dl-close.c (free_slotinfo, free_mem): Move to...
82499         * elf/dl-libc.c (free_slotinfo, free_mem): ... here.
82500
82501 2010-09-21  Ulrich Drepper  <drepper@redhat.com>
82502
82503         [BZ #12037]
82504         * posix/unistd.h: Undo change of feature selection for ftruncate from
82505         2010-01-11.
82506
82507 2010-09-20  Ulrich Drepper  <drepper@redhat.com>
82508
82509         * sysdeps/x86_64/strcmp.S: Fix another typo in x86-64 strncasecmp limit
82510         detection.
82511
82512 2010-09-20  Andreas Schwab  <schwab@redhat.com>
82513
82514         * sysdeps/unix/sysv/linux/sparc/sparc32/syscalls.list: Add
82515         fanotify_mark.
82516         * sysdeps/unix/sysv/linux/s390/s390-32/syscalls.list: Likewise.
82517
82518 2010-09-14  Andreas Schwab  <schwab@redhat.com>
82519
82520         * sysdeps/s390/s390-32/__longjmp.c (__longjmp): Define register
82521         variables after CHECK_SP call.
82522         * sysdeps/s390/s390-64/__longjmp.c (__longjmp): Likewise.
82523
82524 2010-09-13  Andreas Schwab  <schwab@redhat.com>
82525             Ulrich Drepper  <drepper@redhat.com>
82526
82527         * elf/rtld.c (dl_main): Set GLRO(dl_init_all_dirs) just before
82528         re-relocationg ld.so.
82529         * elf/dl-support.c (_dl_non_dynamic_init): And here after the
82530         _dl_init_paths call.
82531         * elf/dl-load.c (_dl_init_paths).  Don't set GLRO(dl_init_all_dirs)
82532         here anymore.
82533
82534 2010-09-14  Ulrich Drepper  <drepper@redhat.com>
82535
82536         * resolv/res_init.c (__res_vinit): Count the default server we added.
82537
82538 2010-09-08  Chung-Lin Tang  <cltang@codesourcery.com>
82539             Ulrich Drepper  <drepper@redhat.com>
82540
82541         [BZ #11968]
82542         * sysdeps/unix/sysv/linux/x86_64/____longjmp_chk.S
82543         (____longjmp_chk): Use %ebx for saving value across system call.
82544         Add unwind info.
82545
82546 2010-09-06  Andreas Schwab  <schwab@redhat.com>
82547
82548         * manual/Makefile: Don't mix pattern rules with normal rules.
82549
82550 2010-09-05  Andreas Schwab  <schwab@linux-m68k.org>
82551
82552         * debug/vdprintf_chk.c (__vdprintf_chk): Remove undefined
82553         operation.
82554         * libio/iofdopen.c (_IO_new_fdopen): Likewise.
82555         * libio/iofopncook.c (_IO_cookie_init): Likewise.
82556         * libio/iovdprintf.c (_IO_vdprintf): Likewise.
82557         * libio/oldiofdopen.c (_IO_old_fdopen): Likewise.
82558         * sysdeps/powerpc/powerpc64/dl-machine.h (elf_machine_rela):
82559         Likewise.
82560
82561 2010-09-04  Ulrich Drepper  <drepper@redhat.com>
82562
82563         [BZ #11979]
82564         * iconvdata/gconv-modules: Remove EBCDIC-CP-AR2 alias from
82565         IBM-930, IBM-933, IBM-935, IBM-937, and IBM-939.
82566
82567 2010-09-02  Ulrich Drepper  <drepper@redhat.com>
82568
82569         * sysdeps/x86_64/add_n.S: Update from GMP 5.0.1.
82570         * sysdeps/x86_64/addmul_1.S: Likewise.
82571         * sysdeps/x86_64/lshift.S: Likewise.
82572         * sysdeps/x86_64/mul_1.S: Likewise.
82573         * sysdeps/x86_64/rshift.S: Likewise.
82574         * sysdeps/x86_64/sub_n.S: Likewise.
82575         * sysdeps/x86_64/submul_1.S: Likewise.
82576
82577 2010-09-01  Samuel Thibault  <samuel.thibault@ens-lyon.org>
82578
82579         This aligns bits/sched.h onto sysdeps/unix/sysv/linux/bits/sched.h:
82580         Define __sched_param instead of SCHED_* and sched_param when
82581         <bits/sched.h> is included with __need_schedparam defined.
82582         * bits/sched.h [__need_schedparam]
82583         (SCHED_OTHER, SCHED_FIFO, SCHED_RR, sched_param): Do not define.
82584         [!__defined_schedparam && (__need_schedparam || _SCHED_H)]
82585         (__defined_schedparam): Define to 1.
82586         (__sched_param): New structure, identical to sched_param.
82587         (__need_schedparam): Undefine.
82588
82589 2010-08-31  Mike Frysinger  <vapier@gentoo.org>
82590
82591         * sysdeps/unix/sysv/linux/sparc/sys/epoll.h (epoll_create2): Delete.
82592         (epoll_create1): Declare.
82593
82594         * sysdeps/unix/sysv/linux/x86_64/sys/epoll.h: Fix typo.
82595
82596 2010-08-31  Andreas Schwab  <schwab@redhat.com>
82597
82598         [BZ #7066]
82599         * stdlib/strtod_l.c (____STRTOF_INTERNAL): Fix array overflow when
82600         shifting retval into place.
82601
82602 2010-09-01  Ulrich Drepper  <drepper@redhat.com>
82603
82604         * nis/rpcsvc/nis.h: Update copyright notice.
82605         * nis/rpcsvc/nis.x: Likewise.
82606         * nis/rpcsvc/nis_callback.h: Likewise.
82607         * nis/rpcsvc/nis_callback.x: Likewise.
82608         * nis/rpcsvc/nis_object.x: Likewise.
82609         * nis/rpcsvc/nis_tags.h: Likewise.
82610         * nis/rpcsvc/yp.h: Likewise.
82611         * nis/rpcsvc/yp.x: Likewise.
82612         * nis/rpcsvc/ypupd.h: Likewise.
82613         * nis/yp_xdr.c: Likewise.
82614         * nis/ypupdate_xdr.c: Likewise.
82615
82616         * sunrpc/pm_getport.c (__libc_rpc_getport): New function.  This is
82617         mainly the body of pmap_getport.  Add parameters to specify timeouts.
82618         (pmap_getport): Use __libc_rpc_getport.
82619         * sunrpc/Versions: Export __libc_rpc_getport with GLIBC_PRIVATE.
82620         * include/rpc/pmap_clnt.h: Declare __libc_rpc_getport.
82621         * nis/nis_findserv.c: Remove pmap_getport copy. Use __libc_rpc_getport.
82622
82623 2010-08-31  Andreas Schwab  <schwab@linux-m68k.org>
82624
82625         * sysdeps/unix/sysv/linux/powerpc/powerpc32/syscalls.list: Add
82626         fanotify_mark.
82627
82628 2010-08-27  Roland McGrath  <roland@redhat.com>
82629
82630         * sysdeps/i386/i686/multiarch/Makefile
82631         (CFLAGS-varshift.c): New variable.
82632
82633 2010-08-27  Ulrich Drepper  <drepper@redhat.com>
82634
82635         * sysdeps/i386/i686/multiarch/varshift.S: File removed.
82636         * sysdeps/i386/i686/multiarch/varshift.c: New file.
82637
82638         * sysdeps/x86_64/multiarch/strlen-no-bsf.S: Move to .text.slow section.
82639
82640         * sysdeps/x86_64/strlen.S: Minimal code improvement.
82641
82642 2010-08-26  H.J. Lu  <hongjiu.lu@intel.com>
82643
82644         * sysdeps/x86_64/strlen.S: Unroll the loop.
82645         * sysdeps/x86_64/multiarch/Makefile (sysdep_routines): Add
82646         strlen-sse2 strlen-sse2-bsf.
82647         * sysdeps/x86_64/multiarch/strlen.S ((strlen): Return
82648         __strlen_no_bsf if bit_Slow_BSF is set.
82649         (__strlen_sse42): Removed.
82650         * sysdeps/x86_64/multiarch/strlen-no-bsf.S: New file.
82651         * sysdeps/x86_64/multiarch/strlen-sse4.S: New file.
82652
82653 2010-08-25  Roland McGrath  <roland@redhat.com>
82654
82655         * sysdeps/x86_64/multiarch/varshift.S: File removed.
82656         * sysdeps/x86_64/multiarch/varshift.c: New file.
82657         * sysdeps/x86_64/multiarch/Makefile (CFLAGS-varshift.c): New variable.
82658         * sysdeps/x86_64/multiarch/varshift.h: Clean up decls, fix a cast.
82659         * sysdeps/x86_64/multiarch/memmove.c: Move decls around.
82660         * sysdeps/x86_64/multiarch/memmove_chk.c: Likewise.
82661
82662 2010-08-25  H.J. Lu  <hongjiu.lu@intel.com>
82663
82664         * sysdeps/i386/i686/multiarch/Makefile (sysdep_routines): Add
82665         strlen-sse2 strlen-sse2-bsf.
82666         * sysdeps/i386/i686/multiarch/strlen.S (strlen): Return
82667         __strlen_sse2_bsf if bit_Slow_BSF is unset.
82668         (__strlen_sse2): Removed.
82669         * sysdeps/i386/i686/multiarch/strlen-sse2-bsf.S: New file.
82670         * sysdeps/i386/i686/multiarch/strlen-sse2.S: New file.
82671         * sysdeps/x86_64/multiarch/init-arch.c (__init_cpu_features): Set
82672         bit_Slow_BSF for Atom.
82673         * sysdeps/x86_64/multiarch/init-arch.h (bit_Slow_BSF): Define.
82674         (index_Slow_BSF): Define.
82675         (HAS_SLOW_BSF): Define.
82676
82677 2010-08-25  Ulrich Drepper  <drepper@redhat.com>
82678
82679         [BZ #10851]
82680         * resolv/res_init.c (__res_vinit): When no server address at all
82681         is given default to loopback.
82682
82683 2010-08-24  Roland McGrath  <roland@redhat.com>
82684
82685         * configure.in: Remove config-name.h generation.
82686         * configure: Regenerated.
82687         * config-name.in: File removed.
82688         * scripts/config-uname.sh: New file.
82689         * posix/Makefile (uname.c): Depend on $(objdir)config-name.h.
82690         ($(objdir)config-name.h): New target.
82691
82692         * sunrpc/rpc_parse.h: Avoid nested comment.
82693
82694 2010-08-24  Richard Henderson  <rth@redhat.com>
82695             Ulrich Drepper  <drepper@redhat.com>
82696             H.J. Lu  <hongjiu.lu@intel.com>
82697
82698         * sysdeps/i386/i686/multiarch/Makefile (sysdep_routines): Add varshift.
82699         * sysdeps/x86_64/multiarch/Makefile (sysdep_routines): Likewise.
82700         * sysdeps/x86_64/multiarch/strcspn-c.c: Include "varshift.h".
82701         Replace _mm_srli_si128 with __m128i_shift_right.  Replace
82702         _mm_alignr_epi8 with _mm_loadu_si128.
82703         * sysdeps/x86_64/multiarch/strspn-c.c: Likewise.
82704         * sysdeps/x86_64/multiarch/strstr.c: Include "varshift.h".
82705         (__m128i_shift_right): Removed.
82706         * sysdeps/i386/i686/multiarch/varshift.h: New file.
82707         * sysdeps/i386/i686/multiarch/varshift.S: New file.
82708         * sysdeps/x86_64/multiarch/varshift.h: New file.
82709         * sysdeps/x86_64/multiarch/varshift.S: New file.
82710
82711 2010-08-21  Mike Frysinger  <vapier@gentoo.org>
82712
82713         * configure.in: Move assembler checks to before sysdep dir checking.
82714
82715 2010-08-20  Petr Baudis  <pasky@suse.cz>
82716
82717         * LICENSES: Sync the sunrpc license.
82718
82719 2010-08-19  Ulrich Drepper  <drepper@redhat.com>
82720
82721         * sunrpc/auth_des.c: Update copyright notice once again.
82722         * sunrpc/auth_none.c: Likewise.
82723         * sunrpc/auth_unix.c: Likewise.
82724         * sunrpc/authdes_prot.c: Likewise.
82725         * sunrpc/authuxprot.c: Likewise.
82726         * sunrpc/bindrsvprt.c: Likewise.
82727         * sunrpc/clnt_gen.c: Likewise.
82728         * sunrpc/clnt_perr.c: Likewise.
82729         * sunrpc/clnt_raw.c: Likewise.
82730         * sunrpc/clnt_simp.c: Likewise.
82731         * sunrpc/clnt_tcp.c: Likewise.
82732         * sunrpc/clnt_udp.c: Likewise.
82733         * sunrpc/clnt_unix.c: Likewise.
82734         * sunrpc/des_crypt.c: Likewise.
82735         * sunrpc/des_soft.c: Likewise.
82736         * sunrpc/get_myaddr.c: Likewise.
82737         * sunrpc/getrpcport.c: Likewise.
82738         * sunrpc/key_call.c: Likewise.
82739         * sunrpc/key_prot.c: Likewise.
82740         * sunrpc/openchild.c: Likewise.
82741         * sunrpc/pm_getmaps.c: Likewise.
82742         * sunrpc/pm_getport.c: Likewise.
82743         * sunrpc/pmap_clnt.c: Likewise.
82744         * sunrpc/pmap_prot.c: Likewise.
82745         * sunrpc/pmap_prot2.c: Likewise.
82746         * sunrpc/pmap_rmt.c: Likewise.
82747         * sunrpc/rpc/auth.h: Likewise.
82748         * sunrpc/rpc/auth_unix.h: Likewise.
82749         * sunrpc/rpc/clnt.h: Likewise.
82750         * sunrpc/rpc/des_crypt.h: Likewise.
82751         * sunrpc/rpc/key_prot.h: Likewise.
82752         * sunrpc/rpc/netdb.h: Likewise.
82753         * sunrpc/rpc/pmap_clnt.h: Likewise.
82754         * sunrpc/rpc/pmap_prot.h: Likewise.
82755         * sunrpc/rpc/pmap_rmt.h: Likewise.
82756         * sunrpc/rpc/rpc.h: Likewise.
82757         * sunrpc/rpc/rpc_des.h: Likewise.
82758         * sunrpc/rpc/rpc_msg.h: Likewise.
82759         * sunrpc/rpc/svc.h: Likewise.
82760         * sunrpc/rpc/svc_auth.h: Likewise.
82761         * sunrpc/rpc/types.h: Likewise.
82762         * sunrpc/rpc/xdr.h: Likewise.
82763         * sunrpc/rpc_clntout.c: Likewise.
82764         * sunrpc/rpc_cmsg.c: Likewise.
82765         * sunrpc/rpc_common.c: Likewise.
82766         * sunrpc/rpc_cout.c: Likewise.
82767         * sunrpc/rpc_dtable.c: Likewise.
82768         * sunrpc/rpc_hout.c: Likewise.
82769         * sunrpc/rpc_main.c: Likewise.
82770         * sunrpc/rpc_parse.c: Likewise.
82771         * sunrpc/rpc_parse.h: Likewise.
82772         * sunrpc/rpc_prot.c: Likewise.
82773         * sunrpc/rpc_sample.c: Likewise.
82774         * sunrpc/rpc_scan.c: Likewise.
82775         * sunrpc/rpc_scan.h: Likewise.
82776         * sunrpc/rpc_svcout.c: Likewise.
82777         * sunrpc/rpc_tblout.c: Likewise.
82778         * sunrpc/rpc_util.c: Likewise.
82779         * sunrpc/rpc_util.h: Likewise.
82780         * sunrpc/rpcinfo.c: Likewise.
82781         * sunrpc/rpcsvc/bootparam_prot.x: Likewise.
82782         * sunrpc/rpcsvc/key_prot.x: Likewise.
82783         * sunrpc/rpcsvc/klm_prot.x: Likewise.
82784         * sunrpc/rpcsvc/mount.x: Likewise.
82785         * sunrpc/rpcsvc/nfs_prot.x: Likewise.
82786         * sunrpc/rpcsvc/nlm_prot.x: Likewise.
82787         * sunrpc/rpcsvc/rex.x: Likewise.
82788         * sunrpc/rpcsvc/rstat.x: Likewise.
82789         * sunrpc/rpcsvc/rusers.x: Likewise.
82790         * sunrpc/rpcsvc/sm_inter.x: Likewise.
82791         * sunrpc/rpcsvc/spray.x: Likewise.
82792         * sunrpc/rpcsvc/yppasswd.x: Likewise.
82793         * sunrpc/rtime.c: Likewise.
82794         * sunrpc/svc.c: Likewise.
82795         * sunrpc/svc_auth.c: Likewise.
82796         * sunrpc/svc_authux.c: Likewise.
82797         * sunrpc/svc_raw.c: Likewise.
82798         * sunrpc/svc_run.c: Likewise.
82799         * sunrpc/svc_simple.c: Likewise.
82800         * sunrpc/svc_tcp.c: Likewise.
82801         * sunrpc/svc_udp.c: Likewise.
82802         * sunrpc/svc_unix.c: Likewise.
82803         * sunrpc/svcauth_des.c: Likewise.
82804         * sunrpc/xcrypt.c: Likewise.
82805         * sunrpc/xdr.c: Likewise.
82806         * sunrpc/xdr_array.c: Likewise.
82807         * sunrpc/xdr_float.c: Likewise.
82808         * sunrpc/xdr_mem.c: Likewise.
82809         * sunrpc/xdr_rec.c: Likewise.
82810         * sunrpc/xdr_ref.c: Likewise.
82811         * sunrpc/xdr_sizeof.c: Likewise.
82812         * sunrpc/xdr_stdio.c: Likewise.
82813
82814         * sysdeps/x86_64/multiarch/strcmp.S: Fix two typos in strncasecmp
82815         handling.
82816
82817 2010-08-19  Andreas Schwab  <schwab@redhat.com>
82818
82819         * sysdeps/i386/i686/multiarch/strspn.S [!SHARED]: Fix SSE4.2 check.
82820
82821 2010-08-19  Luis Machado  <luisgpm@br.ibm.com>
82822
82823         * sysdeps/powerpc/powerpc32/power7/memchr.S: New file.
82824         * sysdeps/powerpc/powerpc32/power7/memrchr.S: New file.
82825         * sysdeps/powerpc/powerpc32/power7/rawmemchr.S: New file.
82826         * sysdeps/powerpc/powerpc32/power7/strchr.S: New file.
82827         * sysdeps/powerpc/powerpc32/power7/strchrnul.S: New file.
82828         * sysdeps/powerpc/powerpc32/power7/strlen.S: New file.
82829         * sysdeps/powerpc/powerpc32/power7/strnlen.S: New file.
82830         * sysdeps/powerpc/powerpc64/power7/memchr.S: New file.
82831         * sysdeps/powerpc/powerpc64/power7/memrchr.S: New file.
82832         * sysdeps/powerpc/powerpc64/power7/rawmemchr.S: New file.
82833         * sysdeps/powerpc/powerpc64/power7/strchr.S: New file.
82834         * sysdeps/powerpc/powerpc64/power7/strchrnul.S: New file.
82835         * sysdeps/powerpc/powerpc64/power7/strlen.S: New file.
82836         * sysdeps/powerpc/powerpc64/power7/strnlen.S: New file.
82837
82838 2010-07-26  Anton Blanchard  <anton@samba.org>
82839
82840         * malloc/malloc.c (sYSTRIm): Replace divide and multiply with mask.
82841         * malloc/arena.c (heap_trim): Likewise.
82842
82843 2010-08-16  Ulrich Drepper  <drepper@redhat.com>
82844
82845         * sysdeps/unix/sysv/linux/syscalls.list: Add entry for fanotify_init
82846         here.  Not...
82847         * sysdeps/unix/sysv/linux/wordsize-64/syscalls.list: ...here...
82848         * sysdeps/unix/sysv/linux/i386/syscalls.list: ... orhere.
82849
82850 2010-08-12  H.J. Lu  <hongjiu.lu@intel.com>
82851
82852         * sysdeps/i386/elf/Makefile: New file.
82853
82854 2010-08-14  Andreas Schwab  <schwab@linux-m68k.org>
82855
82856         * sysdeps/unix/sysv/linux/sys/fanotify.h: Remove third argument
82857         from fanotify_init.
82858         * sysdeps/unix/sysv/linux/i386/syscalls.list: Likewise.
82859         * sysdeps/unix/sysv/linux/wordsize-64/syscalls.list: Likewise.
82860
82861 2010-08-15  Ulrich Drepper  <drepper@redhat.com>
82862
82863         * sysdeps/x86_64/strcmp.S: Use correct register for fourth parameter
82864         of strncasecmp_l.
82865         * sysdeps/multiarch/strcmp.S: Likewise.
82866
82867 2010-08-14  Ulrich Drepper  <drepper@redhat.com>
82868
82869         * sysdeps/x86_64/Makefile [subdir=string] (sysdep_routines): Add
82870         strncase_l-nonascii.
82871         * sysdeps/x86_64/multiarch/Makefile [subdir=string] (sysdep_routines):
82872         Add strncase_l-ssse3.
82873         * sysdeps/x86_64/multiarch/strcmp.S: Prepare for use as strncasecmp.
82874         * sysdeps/x86_64/strcmp.S: Likewise.
82875         * sysdeps/x86_64/multiarch/strncase_l-ssse3.S: New file.
82876         * sysdeps/x86_64/multiarch/strncase_l.S: New file.
82877         * sysdeps/x86_64/strncase.S: New file.
82878         * sysdeps/x86_64/strncase_l-nonascii.c: New file.
82879         * sysdeps/x86_64/strncase_l.S: New file.
82880         * string/Makefile (strop-tests): Add strncasecmp.
82881         * string/test-strncasecmp.c: New file.
82882
82883         * sysdeps/x86_64/strcasecmp_l-nonascii.c: Add prototype to avoid
82884         warning.
82885
82886         * sysdeps/x86_64/strcmp.S: Move definition of NO_NOLOCALE_ALIAS to...
82887         * sysdeps/x86_64/multiarch/strcasecmp_l-ssse3.S: ... here.
82888
82889 2010-08-14  Andreas Schwab  <schwab@linux-m68k.org>
82890
82891         * sysdeps/unix/sysv/linux/prlimit.c: Make it compile.
82892
82893 2010-08-12  Ulrich Drepper  <drepper@redhat.com>
82894
82895         * sysdeps/unix/sysv/linux/bits/termios.h: Define EXTPROC.
82896         * sysdeps/unix/sysv/linux/powerpc/bits/termios.h: Likewise.
82897         * sysdeps/unix/sysv/linux/sparc/bits/termios.h: Likewise.
82898
82899 2010-05-01  Alan Modra  <amodra@gmail.com>
82900
82901         * sysdeps/powerpc/powerpc32/power4/memcmp.S: Correct cfi for r24.
82902         * sysdeps/powerpc/powerpc64/bsd-_setjmp.S: Move contents..
82903         * sysdeps/powerpc/powerpc64/bsd-setjmp.S: ..and these too..
82904         * sysdeps/powerpc/powerpc64/setjmp.S: ..to here..
82905         * sysdeps/powerpc/powerpc64/setjmp-common.S: ..and here, with some
82906         tidying.  Don't tail-call __sigjmp_save for static lib.
82907         * sysdeps/powerpc/powerpc64/sysdep.h (SAVE_ARG, REST_ARG): Correct
82908         save location.
82909         (CFI_SAVE_ARG, CFI_REST_ARG): New macros.
82910         (CALL_MCOUNT): Add eh info, and nop after bl.
82911         (TAIL_CALL_SYSCALL_ERROR): New macro.
82912         (PSEUDO_RET): Use it.
82913         * sysdeps/powerpc/powerpc64/dl-trampoline.S (_dl_runtime_resolve):
82914         Correct save location of integer regs and cr.
82915         (_dl_profile_resolve): Correct cr save location.  Delete nops
82916         after bl when SHARED.  Reduce cfi size a little by better
82917         placement of cfi directives.
82918         * sysdeps/powerpc/powerpc64/fpu/s_copysign.S (__copysign): Don't
82919         make a stack frame.  Instead use parm save area as a temp.
82920         * sysdeps/unix/sysv/linux/powerpc/powerpc64/brk.S (__brk): Don't
82921         make a stack frame.  Use TAIL_CALL_SYSCALL_ERROR.
82922         * sysdeps/unix/sysv/linux/powerpc/powerpc64/clone.S (__clone):
82923         Don't make a stack frame for parent, use parm save area.
82924         Increase child stack frame to 112 bytes.  Don't save unused reg,
82925         and adjust reg usage.  Set up cfi on error recovery and
82926         epilogue of parent, and use TAIL_CALL_SYSCALL_ERROR, PSEUDO_RET.
82927         * sysdeps/unix/sysv/linux/powerpc/powerpc64/makecontext.S
82928         (__makecontext): Add dummy nop after jump to exit.
82929         * sysdeps/unix/sysv/linux/powerpc/powerpc64/socket.S (__socket):
82930         Use correct parm save area and cr save, reduce stack frame.
82931         Correct cfi for possible PSEUDO_RET frame setup.
82932         * sysdeps/unix/sysv/linux/powerpc/powerpc64/vfork.S (__vfork):
82933         Branch to local label emitted by PSEUDO_RET rather than
82934         __syscall_error.
82935
82936 2010-08-12  Andreas Schwab  <schwab@redhat.com>
82937
82938         [BZ #11904]
82939         * locale/programs/locale.c (print_assignment): New function.
82940         (show_locale_vars): Use it.
82941
82942 2010-08-11  Ulrich Drepper  <drepper@redhat.com>
82943
82944         * sysdeps/unix/sysv/linux/bits/statfs.h (struct statfs): Add f_flags
82945         field.
82946         (struct statfs64): Likewise.
82947         (_STATFS_F_FLAGS): Define.
82948         * sysdeps/unix/sysv/linux/s390/bits/statfs.h: Likewise.
82949         * sysdeps/unix/sysv/linux/internal_statvfs.c (__statvfs_getflags):
82950         Don't define if __ASSUME_STATFS_F_FLAGS is defined.
82951         (ST_VALID): Define locally.
82952         (INTERNAL_STATVFS): If f_flags has ST_VALID set don't call
82953         __statvfs_getflags, use the provided value.
82954         * sysdeps/unix/sysv/linux/kernel-features.h: Define
82955         __ASSUME_STATFS_F_FLAGS.
82956
82957         * sysdeps/unix/sysv/linux/sys/inotify.h (IN_EXCL_UNLINK): Define.
82958
82959         * sysdeps/unix/sysv/linux/Makefile [subdir=misc] (sysdep_headers):
82960         Add sys/fanotify.h.
82961         * sysdeps/unix/sysv/linux/Versions [libc]: Export fanotify_init and
82962         fanotify_mask for GLIBC_2.13.
82963         * sysdeps/unix/sysv/linux/i386/syscalls.list: Add entries for
82964         fanotify_init and fanotify_mark.
82965         * sysdeps/unix/sysv/linux/wordsize-64/syscalls.list: Likewise.
82966         * sysdeps/unix/sysv/linux/sys/fanotify.h: New file.
82967
82968         * sysdeps/unix/sysv/linux/Makefile [subdir=misc] (sysdep_routines):
82969         Add prlimit.
82970         * sysdeps/unix/sysv/linux/Versions [libc]: Export prlimit and
82971         prlimit64 for GLIBC_2.13.
82972         * sysdeps/unix/sysv/linux/bits/resource.h: Declare prlimit and
82973         prlimit64.
82974         * sysdeps/unix/sysv/linux/i386/syscalls.list: Add entry for prlimit64
82975         syscall.
82976         * sysdeps/unix/sysv/linux/powerpc/powerpc32/syscalls.list: Likewise.
82977         * sysdeps/unix/sysv/linux/s390/s390-32/syscalls.list: Likewise.
82978         * sysdeps/unix/sysv/linux/sh/syscalls.list: Likewise.
82979         * sysdeps/unix/sysv/linux/sparc/sparc32/syscalls.lis: Likewise.
82980         * sysdeps/unix/sysv/linux/wordsize-64/syscalls.list: Likewise.  Also
82981         add prlimit alias.
82982         * sysdeps/unix/sysv/linux/prlimit.c: New file.
82983
82984         [BZ #11903]
82985         * sysdeps/generic/netinet/ip.h (IPTOS_CLASS): Fix definition.
82986         Patch by Evgeni Bikov <bikovevg@iitp.ru>.
82987
82988         * nss/Makefile: Add rules to build and run tst-nss-test1.
82989         * shlib-versions: Add entry for libnss_test1.
82990         * nss/nss_test1.c: New file.
82991         * nss/tst-nss-test1.c: New file.
82992
82993         * nss/nsswitch.c (__nss_database_custom): Define new variable.
82994         (__nss_configure_lookup): Set appropriate entry in
82995         __nss_configure_lookup to true.
82996         * nss/nsswitch.h: Define enum with indeces of databases in
82997         databases and __nss_database_custom arrays.  Declare
82998         __nss_database_custom.
82999         * grp/initgroups.c (internal_getgrouplist): Use __nss_database_custom
83000         to avoid using nscd when custom rules are installed.
83001         * nss/getXXbyYY_r.c: Likewise.
83002         * sysdeps/posix/getaddrinfo.c (gaih_inet): Likewise.
83003
83004         * nss/nss_files/files-parse.c: Whitespace fixes.
83005
83006 2010-08-09  Ulrich Drepper  <drepper@redhat.com>
83007
83008         [BZ #11883]
83009         * posix/fnmatch.c: Keep track of alloca use and fall back on malloc.
83010         * posix/fnmatch_loop.c: Likewise.
83011
83012 2010-07-17  Andi Kleen  <ak@linux.intel.com>
83013
83014         * sysdeps/i386/i386-mcount.S (__fentry__): Define.
83015         * sysdeps/x86_64/_mcount.S (__fentry__): Define.
83016         * stdlib/Versions (__fentry__): Add for GLIBC 2.13
83017         * Versions.def [GLIBC_2.13]: Add.
83018
83019 2010-08-06  Ulrich Drepper  <drepper@redhat.com>
83020
83021         * sysdeps/unix/sysv/linux/getlogin_r.c (__getlogin_r_loginuid):
83022         Also fail if tpwd after pwuid call is NULL.
83023
83024 2010-07-31  Samuel Thibault  <samuel.thibault@ens-lyon.org>
83025
83026         * hurd/hurdselect.c (_hurd_select): Round timeout up instead of down
83027         when converting to ms.
83028
83029 2010-06-06  Samuel Thibault  <samuel.thibault@ens-lyon.org>
83030
83031         * sysdeps/mach/hurd/ttyname.c (ttyname): Replace MIG_BAD_ID and
83032         EOPNOTSUPP errors with ENOTTY.
83033         * sysdeps/mach/hurd/ttyname_r.c (__ttyname_r): Replace MIG_BAD_ID and
83034         EOPNOTSUPP errors with ENOTTY.
83035
83036 2010-07-31  Ulrich Drepper  <drepper@redhat.com>
83037
83038         * sysdeps/x86_64/multiarch/Makefile [subdir=string] (sysdep_routines):
83039         Add strcasecmp_l-ssse3.
83040         * sysdeps/x86_64/multiarch/strcmp.S: Add support to compile for
83041         strcasecmp.
83042         * sysdeps/x86_64/strcmp.S: Allow more flexible compiling of strcasecmp.
83043         * sysdeps/x86_64/multiarch/strcasecmp_l.S: New file.
83044         * sysdeps/x86_64/multiarch/strcasecmp_l-ssse3.S: New file.
83045
83046 2010-07-30  Ulrich Drepper  <drepper@redhat.com>
83047
83048         * sysdeps/x86_64/multiarch/strcmp.S: Pretty printing.
83049
83050         * string/Makefile (strop-tests): Add strcasecmp.
83051         * sysdeps/x86_64/Makefile [subdir=string] (sysdep_routines): Add
83052         strcasecmp_l-nonascii.
83053         (gen-as-const-headers): Add locale-defines.sym.
83054         * sysdeps/x86_64/strcmp.S: Add support for strcasecmp implementation.
83055         * sysdeps/x86_64/strcasecmp.S: New file.
83056         * sysdeps/x86_64/strcasecmp_l.S: New file.
83057         * sysdeps/x86_64/strcasecmp_l-nonascii.c: New file.
83058         * sysdeps/x86_64/locale-defines.sym: New file.
83059         * string/test-strcasecmp.c: New file.
83060
83061         * string/test-strcasestr.c: Test both ends of the range of characters.
83062         * sysdeps/x86_64/multiarch/strstr.c: Fix UCHIGH definition.
83063
83064 2010-07-29  Roland McGrath  <roland@redhat.com>
83065
83066         [BZ #11856]
83067         * manual/locale.texi (Yes-or-No Questions): Fix example code.
83068
83069 2010-07-27  Ulrich Drepper  <drepper@redhat.com>
83070
83071         * sysdeps/x86_64/multiarch/strcmp-ssse3.S: Avoid compiling the file
83072         for ld.so.
83073
83074 2010-07-27  Andreas Schwab  <schwab@redhat.com>
83075
83076         * manual/memory.texi (Malloc Tunable Parameters): Document
83077         M_PERTURB.
83078
83079 2010-07-26  Roland McGrath  <roland@redhat.com>
83080
83081         [BZ #11840]
83082         * configure.in (-fgnu89-inline check): Set and substitute
83083         gnu89_inline, not libc_cv_gnu89_inline.
83084         * configure: Regenerated.
83085         * config.make.in (gnu89-inline-CFLAGS): Use @gnu89_inline@.
83086
83087 2010-07-26  Ulrich Drepper  <drepper@redhat.com>
83088
83089         * string/test-strnlen.c: New file.
83090         * string/Makefile (strop-tests): Add strnlen.
83091         * string/tester.c (test_strnlen): Add a few more test cases.
83092         * string/tst-strlen.c: Better error reporting.
83093
83094         * sysdeps/x86_64/strnlen.S: New file.
83095
83096 2010-07-24  Ulrich Drepper  <drepper@redhat.com>
83097
83098         * sysdeps/x86_64/multiarch/strstr.c (__m128i_strloadu_tolower): Use
83099         lower-latency instructions.
83100
83101 2010-07-23  Ulrich Drepper  <drepper@redhat.com>
83102
83103         * string/test-strcasestr.c: New file.
83104         * string/test-strstr.c: New file.
83105         * string/Makefile (strop-tests): Add strstr and strcasestr.
83106         * string/str-two-way.h: Don't undefine MAX.
83107         * string/strcasestr.c: Don't define alias if NO_ALIAS is defined.
83108
83109 2010-07-21  Andreas Schwab  <schwab@redhat.com>
83110
83111         * sysdeps/i386/i686/multiarch/Makefile (sysdep_routines): Add
83112         strcasestr-nonascii.
83113         (CFLAGS-strcasestr-nonascii.c): Define.
83114         * sysdeps/i386/i686/multiarch/strcasestr-nonascii.c: New file.
83115         * sysdeps/x86_64/multiarch/strcasestr-nonascii.c (STRSTR_SSE42):
83116         Remove unused attribute.
83117
83118 2010-07-20  Roland McGrath  <roland@redhat.com>
83119
83120         * elf/dl-sysdep.c (_dl_important_hwcaps): Add dsocaps mask to
83121         dl_hwcap_mask as well as dl_hwcap.  Without this, dsocaps matching in
83122         ld.so.cache was broken.  With it, there is no way to disable dsocaps
83123         like LD_HWCAP_MASK can disable hwcaps.
83124
83125 2010-06-02  Emilio Pozuelo Monfort  <pochu27@gmail.com>
83126
83127         * sysdeps/mach/hurd/sendmsg.c (__libc_sendmsg): Fix memory leaks.
83128
83129 2010-07-16  Ulrich Drepper  <drepper@redhat.com>
83130
83131         * sysdeps/x86_64/multiarch/strstr.c: Rewrite to avoid indirect function
83132         call in strcasestr.
83133         * sysdeps/x86_64/multiarch/strcasestr.c: Declare
83134         __strcasestr_sse42_nonascii.
83135         * sysdeps/x86_64/multiarch/Makefile: Add rules to build
83136         strcasestr-nonascii.c.
83137         * sysdeps/x86_64/multiarch/strcasestr-nonascii.c: New file.
83138
83139 2010-06-15  Luis Machado  <luisgpm@br.ibm.com>
83140
83141         * sysdeps/powerpc/powerpc32/power6/fpu/s_copysign.S: New file.
83142         * sysdeps/powerpc/powerpc32/power6/fpu/s_copysignf.S: New file.
83143         * sysdeps/powerpc/powerpc64/power6/fpu/s_copysign.S: New file.
83144         * sysdeps/powerpc/powerpc64/power6/fpu/s_copysignf.S: New file.
83145
83146 2010-07-09  Ulrich Drepper  <drepper@redhat.com>
83147
83148         * sysdeps/unix/sysv/linux/fpathconf.c (__fpathconf): Use __fcntl not
83149         fcntl.
83150
83151 2010-07-06  Andreas Schwab  <schwab@redhat.com>
83152
83153         [BZ #11577]
83154         * elf/dl-version.c (match_symbol): Don't pass NULL occation to
83155         dl_signal_cerror.
83156
83157 2010-07-06  Ulrich Drepper  <drepper@redhat.com>
83158
83159         * sysdeps/unix/sysv/linux/fpathconf.c (__fpathconf): Implement
83160         _PC_PIPE_BUF using F_GETPIPE_SZ.
83161
83162 2010-07-05  Roland McGrath  <roland@redhat.com>
83163
83164         * manual/arith.texi (Rounding Functions): Fix rint description
83165         implicit in round description.
83166
83167 2010-07-02  Ulrich Drepper  <drepper@redhat.com>
83168
83169         * elf/Makefile: Fix linking for a few tests to make recent linker
83170         happy.
83171
83172 2010-06-30  Andreas Schwab  <schwab@redhat.com>
83173
83174         * dlfcn/Makefile (LDLIBS-bug-atexit3-lib.so): Readd
83175         $(common-objpfx)libc_nonshared.a.
83176
83177 2010-06-21  Luis Machado  <luisgpm@br.ibm.com>
83178
83179         * sysdeps/powerpc/powerpc32/970/fpu/Implies: Remove.
83180         * sysdeps/powerpc/powerpc32/power5/fpu/Implies: Remove.
83181         * sysdeps/powerpc/powerpc32/power5+/fpu/Implies: Remove.
83182         * sysdeps/powerpc/powerpc32/power6x/fpu/Implies: Remove.
83183         * sysdeps/powerpc/powerpc64/970/fpu/Implies: Remove.
83184         * sysdeps/powerpc/powerpc64/power5/fpu/Implies: Remove.
83185         * sysdeps/powerpc/powerpc64/power5+/fpu/Implies: Remove.
83186         * sysdeps/powerpc/powerpc64/power6x/fpu/Implies: Remove.
83187         * sysdeps/unix/sysv/linux/powerpc/powerpc32/970/fpu/Implies: Remove.
83188         * sysdeps/unix/sysv/linux/powerpc/powerpc32/power4/fpu/Implies: Remove.
83189         * sysdeps/unix/sysv/linux/powerpc/powerpc32/power5/fpu/Implies: Remove.
83190         * sysdeps/unix/sysv/linux/powerpc/powerpc32/power5+/fpu/Implies: Remove.
83191         * sysdeps/unix/sysv/linux/powerpc/powerpc32/power6/fpu/Implies: Remove.
83192         * sysdeps/unix/sysv/linux/powerpc/powerpc32/power6x/fpu/Implies: Remove.
83193         * sysdeps/unix/sysv/linux/powerpc/powerpc32/power7/fpu/Implies: Remove.
83194         * sysdeps/unix/sysv/linux/powerpc/powerpc64/970/fpu/Implies: Remove.
83195         * sysdeps/unix/sysv/linux/powerpc/powerpc64/power4/fpu/Implies: Remove.
83196         * sysdeps/unix/sysv/linux/powerpc/powerpc64/power5/fpu/Implies: Remove.
83197         * sysdeps/unix/sysv/linux/powerpc/powerpc64/power5+/fpu/Implies: Remove.
83198         * sysdeps/unix/sysv/linux/powerpc/powerpc64/power6/fpu/Implies: Remove.
83199         * sysdeps/unix/sysv/linux/powerpc/powerpc64/power6x/fpu/Implies: Remove.
83200         * sysdeps/unix/sysv/linux/powerpc/powerpc64/power7/fpu/Implies: Remove.
83201         * sysdeps/powerpc/powerpc32/970/Implies: Point to power4.
83202         * sysdeps/powerpc/powerpc32/power5/Implies: Point to power4.
83203         * sysdeps/powerpc/powerpc32/power5+/Implies: Point to power5.
83204         * sysdeps/powerpc/powerpc32/power6/Implies: Point to power5+.
83205         * sysdeps/powerpc/powerpc32/power6x/Implies: Point to power6.
83206         * sysdeps/powerpc/powerpc64/970/Implies: Point to power4.
83207         * sysdeps/powerpc/powerpc64/power5/Implies: Point to power4.
83208         * sysdeps/powerpc/powerpc64/power5+/Implies: Point to power5.
83209         * sysdeps/powerpc/powerpc64/power6/Implies: Point to power5+.
83210         * sysdeps/powerpc/powerpc64/power6x/Implies: Point to power6.
83211         * sysdeps/powerpc/powerpc32/power7/Implies: New file.
83212         * sysdeps/powerpc/powerpc64/power7/Implies: New file.
83213         * sysdeps/unix/sysv/linux/powerpc/powerpc32/970/Implies: New file.
83214         * sysdeps/unix/sysv/linux/powerpc/powerpc32/cell/Implies: New file.
83215         * sysdeps/unix/sysv/linux/powerpc/powerpc32/power4/Implies: New file.
83216         * sysdeps/unix/sysv/linux/powerpc/powerpc32/power5/Implies: New file.
83217         * sysdeps/unix/sysv/linux/powerpc/powerpc32/power6/Implies: New file.
83218         * sysdeps/unix/sysv/linux/powerpc/powerpc32/power6x/Implies: New file.
83219         * sysdeps/unix/sysv/linux/powerpc/powerpc32/power7/Implies: New file.
83220         * sysdeps/unix/sysv/linux/powerpc/powerpc64/970/Implies: New file.
83221         * sysdeps/unix/sysv/linux/powerpc/powerpc64/cell/Implies: New file.
83222         * sysdeps/unix/sysv/linux/powerpc/powerpc64/power4/Implies: New file.
83223         * sysdeps/unix/sysv/linux/powerpc/powerpc64/power5/Implies: New file.
83224         * sysdeps/unix/sysv/linux/powerpc/powerpc64/power6/Implies: New file.
83225         * sysdeps/unix/sysv/linux/powerpc/powerpc64/power6x/Implies: New file.
83226         * sysdeps/unix/sysv/linux/powerpc/powerpc64/power7/Implies: New file.
83227
83228 2010-06-25  H.J. Lu  <hongjiu.lu@intel.com>
83229
83230         * debug/memmove_chk.c (__memmove_chk): Renamed to ...
83231         (MEMMOVE_CHK): ...this.  Default to __memmove_chk.
83232         * string/memmove.c (memmove): Renamed to ...
83233         (MEMMOVE): ...this.  Default to memmove.
83234         * sysdeps/x86_64/memcpy.S: Use ENTRY_CHK and END_CHK.
83235         * sysdeps/x86_64/sysdep.h (ENTRY_CHK): Define.
83236         (END_CHK): Define.
83237         * sysdeps/x86_64/multiarch/Makefile (sysdep_routines): Add
83238         memcpy-ssse3 mempcpy-ssse3 memmove-ssse3 memcpy-ssse3-back
83239         mempcpy-ssse3-back memmove-ssse3-back.
83240         * sysdeps/x86_64/multiarch/bcopy.S: New file .
83241         * sysdeps/x86_64/multiarch/memcpy-ssse3-back.S: New file.
83242         * sysdeps/x86_64/multiarch/memcpy-ssse3.S: New file.
83243         * sysdeps/x86_64/multiarch/memcpy.S: New file.
83244         * sysdeps/x86_64/multiarch/memcpy_chk.S: New file.
83245         * sysdeps/x86_64/multiarch/memmove-ssse3-back.S: New file.
83246         * sysdeps/x86_64/multiarch/memmove-ssse3.S: New file.
83247         * sysdeps/x86_64/multiarch/memmove.c: New file.
83248         * sysdeps/x86_64/multiarch/memmove_chk.c: New file.
83249         * sysdeps/x86_64/multiarch/mempcpy-ssse3-back.S: New file.
83250         * sysdeps/x86_64/multiarch/mempcpy-ssse3.S: New file.
83251         * sysdeps/x86_64/multiarch/mempcpy.S: New file.
83252         * sysdeps/x86_64/multiarch/mempcpy_chk.S: New file.
83253         * sysdeps/x86_64/multiarch/init-arch.h (bit_Fast_Copy_Backward):
83254         Define.
83255         (index_Fast_Copy_Backward): Define.
83256         (HAS_ARCH_FEATURE): Define.
83257         (HAS_FAST_REP_STRING): Define.
83258         (HAS_FAST_COPY_BACKWARD): Define.
83259
83260 2010-06-21  Andreas Schwab  <schwab@redhat.com>
83261
83262         * sysdeps/unix/sysv/linux/getlogin_r.c (__getlogin_r_loginuid):
83263         Restore proper fallback handling.
83264
83265 2010-06-19  Ulrich Drepper  <drepper@redhat.com>
83266
83267         [BZ #11701]
83268         * posix/group_member.c (__group_member): Correct checking loop.
83269
83270         * sysdeps/unix/sysv/linux/getlogin_r.c (__getlogin_r_loginuid): Handle
83271         OOM in getpwuid_r correctly.  Return error number when the caller
83272         should return, otherwise -1.
83273         (getlogin_r): Adjust to return also for result of __getlogin_r_loginuid
83274         call returning > 0 value.
83275         * sysdeps/unix/sysv/linux/getlogin.c (getlogin): Likewise.
83276
83277 2010-06-07  Andreas Schwab  <schwab@redhat.com>
83278
83279         * dlfcn/Makefile: Remove explicit dependencies on libc.so and
83280         libc_nonshared.a from targets in modules-names.
83281
83282 2010-06-02  Kirill A. Shutemov  <kirill@shutemov.name>
83283
83284         * elf/dl-reloc.c: Flush cache after solving TEXTRELs if arch
83285         requires it.
83286
83287 2010-06-10  Luis Machado  <luisgpm@br.ibm.com>
83288
83289         * sysdeps/powerpc/powerpc32/power7/memcmp.S: New file
83290         * sysdeps/powerpc/powerpc64/power7/memcmp.S: New file.
83291         * sysdeps/powerpc/powerpc32/power7/strncmp.S: New file.
83292         * sysdeps/powerpc/powerpc64/power7/strncmp.S: New file.
83293
83294 2010-06-02  Andreas Schwab  <schwab@redhat.com>
83295
83296         * nis/nss_nis/nis-initgroups.c (get_uid): Properly resize buffer.
83297
83298 2010-06-14  Ulrich Drepper  <drepper@redhat.com>
83299
83300         * sysdeps/unix/sysv/linux/powerpc/bits/fcntl.h: Define F_SETPIPE_SZ
83301         and F_GETPIPE_SZ.
83302         * sysdeps/unix/sysv/linux/i386/bits/fcntl.h: Likewise.
83303         * sysdeps/unix/sysv/linux/x86_64/bits/fcntl.h: Likewise.
83304         * sysdeps/unix/sysv/linux/s390/bits/fcntl.h: Likewise.
83305         * sysdeps/unix/sysv/linux/sparc/bits/fcntl.h: Likewise.
83306         * sysdeps/unix/sysv/linux/sh/bits/fcntl.h: Likewise.
83307         * sysdeps/unix/sysv/linux/ia64/bits/fcntl.h: Likewise.
83308
83309 2010-06-14  Roland McGrath  <roland@redhat.com>
83310
83311         * manual/libc.texinfo (@copying): Change to GFDL v1.3.
83312
83313 2010-06-07  Jakub Jelinek  <jakub@redhat.com>
83314
83315         * libio/stdio.h (sscanf, vsscanf): Use __REDIRECT_NTH instead of
83316         __REDIRECT followed by __THROW.
83317         * wcsmbs/wchar.h (swscanf, vswscanf): Likewise.
83318         * posix/getopt.h (getopt): Likewise.
83319
83320 2010-06-02  Emilio Pozuelo Monfort  <pochu27@gmail.com>
83321
83322         * hurd/lookup-at.c (__file_name_lookup_at): Accept
83323         AT_SYMLINK_FOLLOW in AT_FLAGS.  Fail with EINVAL if both
83324         AT_SYMLINK_FOLLOW and AT_SYMLINK_NOFOLLOW are present
83325         in AT_FLAGS.
83326         * hurd/hurd/fd.h (__file_name_lookup_at): Update comment.
83327         * sysdeps/mach/hurd/linkat.c (linkat): Pass O_NOLINK in FLAGS.
83328
83329 2010-05-28  Luis Machado  <luisgpm@br.ibm.com>
83330
83331         * sysdeps/powerpc/powerpc32/power7/memcpy.S: Exchange srdi for srwi.
83332
83333 2010-05-26  H.J. Lu  <hongjiu.lu@intel.com>
83334
83335         [BZ #11640]
83336         * sysdeps/x86_64/multiarch/init-arch.c (__init_cpu_features):
83337         Properly check family and model.
83338
83339 2010-05-26  Takashi Yoshii  <takashi.yoshii.zj@renesas.com>
83340
83341         * sysdeps/unix/sysv/linux/sh/sh4/register-dump.h: Fix iov[] size.
83342
83343 2010-05-24  Luis Machado  <luisgpm@br.ibm.com>
83344
83345         * sysdeps/powerpc/powerpc32/power7/memset.S: POWER7 32-bit memset fix.
83346
83347 2010-05-21  Ulrich Drepper  <drepper@redhat.com>
83348
83349         * elf/dl-runtime.c (_dl_profile_fixup): Don't crash on unresolved weak
83350         symbol reference.
83351
83352 2010-05-19  Andreas Schwab  <schwab@redhat.com>
83353
83354         * elf/dl-runtime.c (_dl_fixup): Don't crash on unresolved weak
83355         symbol reference.
83356
83357 2010-05-21  Andreas Schwab  <schwab@redhat.com>
83358
83359         * sysdeps/unix/sysv/linux/Makefile (sysdep_routines): Add recvmmsg
83360         and internal_recvmmsg.
83361         * sysdeps/unix/sysv/linux/recvmmsg.c: New file.
83362         * sysdeps/unix/sysv/linux/internal_recvmmsg.S: New file.
83363         * sysdeps/unix/sysv/linux/socketcall.h (SOCKOP_recvmmsg): Define.
83364         * sysdeps/unix/sysv/linux/syscalls.list (recvmmsg): Remove.
83365
83366         * sunrpc/clnt_tcp.c (clnttcp_control): Add missing break.
83367         * sunrpc/clnt_udp.c (clntudp_control): Likewise.
83368         * sunrpc/clnt_unix.c (clntunix_control): Likewise.
83369
83370 2010-05-20  Andreas Schwab  <schwab@redhat.com>
83371
83372         * sysdeps/unix/sysv/linux/sys/timex.h: Use __REDIRECT_NTH.
83373
83374 2010-05-17  Luis Machado  <luisgpm@br.ibm.com>
83375
83376         POWER7 optimizations.
83377         * sysdeps/powerpc/powerpc64/power7/memset.S: New file.
83378         * sysdeps/powerpc/powerpc32/power7/memset.S: New file.
83379
83380 2010-05-19  Ulrich Drepper  <drepper@redhat.com>
83381
83382         * version.h: Update for 2.13 development version.
83383
83384 2010-05-12  Andrew Stubbs  <ams@codesourcery.com>
83385
83386         * sysdeps/sh/sh4/fpu/feholdexcpt.c (feholdexcept): Really disable all
83387         exceptions.  Return 0.
83388
83389 2010-05-07  Roland McGrath  <roland@redhat.com>
83390
83391         * elf/ldconfig.c (main): Add a const.
83392
83393 2010-05-06  Ulrich Drepper  <drepper@redhat.com>
83394
83395         * nss/getent.c (idn_flags): Default to AI_IDN|AI_CANONIDN.
83396         (args_options): Add no-idn option.
83397         (ahosts_keys_int): Add idn_flags to ai_flags.
83398         (parse_option): Handle 'i' option to clear idn_flags.
83399
83400         * malloc/malloc.c (_int_free): Possible race in the most recently
83401         added check.  Only act on the data if no current modification
83402         happened.
83403
83404 See ChangeLog.17 for earlier changes.