nptl/tst-minstack-throw: Compile in C++11 mode with GNU extensions
[glibc.git] / ChangeLog
blob26914f7d76264038dbce30f43279aecfa98f2c68
1 2018-01-16  Florian Weimer  <fweimer@redhat.com>
3         * nptl/Makefile (CFLAGS-tst-minstack-throw.o): Compile in C++11
4         mode with GNU extensions.
6 2018-01-15  Alan Hayward  <alan.hayward@arm.com>
8         * elf/elf.h (NT_ARM_SVE): Define.
10 2018-01-15  Florian Weimer  <fweimer@redhat.com>
12         [BZ #22636]
13         * nptl/tst-minstack-throw.cc: New file.
14         * nptl/Makefile (tests): Add tst-minstack-throw.
15         (LDLIBS-tst-minstack-throw): Link with libstdc++.
16         [!CXX] (tests-unsupported): Add tst-minstack-throw.
18 2018-01-15  Joseph Myers  <joseph@codesourcery.com>
20         * scripts/build-many-glibcs.py (Context.checkout): Default
21         binutils version to 2.30 branch, MPFR version to 4.0.0 and MPC
22         version to 1.1.0.
24 2018-01-13  Carlos O'Donell  <carlos@redhat.com>
26         [BZ #22707]
27         * elf/elf.h (DF_1_STUB): Define.
28         (DF_1_PIE): Define.
30 2018-01-12  Tulio Magno Quites Machado Filho  <tuliom@linux.vnet.ibm.com>
32         [BZ #22697]
33         * sysdeps/powerpc/powerpc32/power4/fpu/s_llround.S (__llround):
34         Do not add 0.5 to integer or out-of-range arguments.
36 2018-01-12  Dmitry V. Levin  <ldv@altlinux.org>
38         * po/bg.po: Update translations.
39         * po/cs.po: Likewise.
40         * po/de.po: Likewise.
41         * po/ko.po: Likewise.
42         * po/pl.po: Likewise.
43         * po/sv.po: Likewise.
44         * po/uk.po: Likewise.
45         * po/vi.po: Likewise.
47 2018-01-12  Szabolcs Nagy  <szabolcs.nagy@arm.com>
49         * aarch64/start.S (_start): Use __wrap_main.
50         (__wrap_main): New local symbol.
52 2018-01-12  Dmitry V. Levin  <ldv@altlinux.org>
54         [BZ #22679]
55         CVE-2018-1000001
56         * sysdeps/unix/sysv/linux/getcwd.c (__getcwd): Fall back to
57         generic_getcwd if the path returned by getcwd syscall is not absolute.
58         * io/tst-getcwd-abspath.c: New test.
59         * io/Makefile (tests): Add tst-getcwd-abspath.
61 2018-01-12  Istvan Kurucsai  <pistukem@gmail.com>
63         * malloc/malloc.c (malloc_consolidate): Add size check.
65 2018-01-12  Florian Weimer  <fweimer@redhat.com>
67         * support/write_message.c (write_message): Preserve errno.
68         * support/check.c (print_failure): Likewise.
69         * support/support_test_verify_impl.c (support_test_verify_impl):
70         Likewise.
71         * support/support_test_compare_failure.c
72         (support_test_compare_failure): Likewise.
74 2018-01-12  Florian Weimer  <fweimer@redhat.com>
76         [BZ #22701]
77         * nis/Makefile (install-lib-ldscripts, $(inst_libdir)/libnsl.so):
78         Prevent installation of libnsl.so.
79         (libnsl-inhibit-o): Do not build (or install) static libraries.
81 2018-01-12  Rafal Luzynski <digitalfreak@lingonborough.com>
82             Egmont Koblinger  <egmont@gmail.com>
84         [BZ #22657]
85         * localedata/locales/hu_HU (d_t_fmt): Avoid a leading space
86         before the day number which may produce a double space.
87         (date_fmt): Likewise.
89 2018-01-12  Joseph Myers  <joseph@codesourcery.com>
91         * sysdeps/s390/fpu/feholdexcpt.c (__feholdexcept): Call __fegetenv
92         instead of fegetenv.
94 2018-01-11  Joseph Myers  <joseph@codesourcery.com>
96         [BZ #22702]
97         * sysdeps/generic/math_private.h (libc_feresetround_noex): Update
98         comment to say exceptions are discarded.
99         (libc_feholdsetround_noex_ctx): Use __feholdexcept instead of
100         __fegetenv.
101         (SET_RESTORE_ROUND_NOEX): Update comment to say non-stop mode must
102         be enabled.
104 2018-01-11  Florian Weimer  <fweimer@redhat.com>
106         * sysdeps/gnu/unwind-resume.c (__libgcc_s_init): Update comment
107         and error message.
109 2018-01-11  Florian Weimer  <fweimer@redhat.com>
111         [BZ #22636]
112         * nptl/Makefile (tests): Add tst-minstack-cancel, tst-minstack-exit.
113         * nptl/tst-minstack-cancel.c, nptl/tst-minstack-exit.c: New files.
115 2018-01-10  Joseph Myers  <joseph@codesourcery.com>
117         [BZ #22693]
118         * sysdeps/ieee754/ldbl-128ibm/s_log1pl.c (__log1pl): Handle
119         negative arguments in test for NaN or infinity argument.
121 2018-01-10  Dmitry V. Levin  <ldv@altlinux.org>
123         * po/libc.pot: Regenerate.
125 2018-01-10  Florian Weimer  <fweimer@redhat.com>
127         [BZ #22636]
128         * sysdeps/nptl/unwind-forcedunwind.c (pthread_cancel_init): Open
129         libgcc.so with RTLD_NOW, to avoid lazy binding during unwind.
131 2018-01-10  Samuel Thibault  <samuel.thibault@ens-lyon.org>
133         * hurd/hurd/fd.h: Include <fcntl.h>
134         (__hurd_at_flags): New function.
135         * hurd/lookup-at.c (__file_name_lookup_at): Replace flag computation
136         with call to __hurd_at_flags.
137         * include/unistd.h (__faccessat, __faccessat_noerrno): Add declaration.
138         * sysdeps/mach/hurd/access.c (access_common): Move implementation to
139         __faccessat
140         (hurd_fail_seterrno, hurd_fail_noerrno): Move to sysdeps/mach/hurd/faccessat.c.
141         (__access_noerrno): Use __faccessat_common instead of access_common.
142         (__access): Likewise.
143         * sysdeps/mach/hurd/euidaccess.c (__euidaccess): Replace implementation
144         with a call to __faccessat.
145         * sysdeps/mach/hurd/faccessat.c (faccessat): Rename into...
146         (__faccessat_common): ... this. Move implementation of __access into it when
147         AT_FLAGS does not contain AT_EACCESS. Make it call __hurd_at_flags, add
148         reauthenticate_cwdir_at helper to implement AT mechanism.
149         (__faccessat_noerrno): New function, just calls __faccessat_common.
150         (__faccessat): New function, just calls __faccessat_common.
151         (faccessat): Define weak alias.
153 2018-01-10  Joseph Myers  <joseph@codesourcery.com>
155         [BZ #22691]
156         * sysdeps/powerpc/nofpu/Makefile [$(subdir) = math]
157         (CFLAGS-s_fmaxmagl.c): New variable.
158         [$(subdir) = math] (CFLAGS-s_fminmagl.c: Likewise.
160         [BZ #22690]
161         * sysdeps/ieee754/ldbl-128ibm/s_lrintl.c (__lrintl): Use unsigned
162         long int for arguments of possibly overflowing addition or
163         subtraction.
164         * sysdeps/ieee754/ldbl-128ibm/s_lroundl.c (__lroundl): Likewise.
166 2018-01-09  Joseph Myers  <joseph@codesourcery.com>
168         [BZ #22688]
169         * sysdeps/powerpc/nofpu/Makefile [$(subdir) = math]
170         (CFLAGS-e_remainderl.c): New variable.
172         [BZ #22687]
173         * sysdeps/powerpc/nofpu/Makefile (CFLAGS-s_cacosl.c): New
174         variable.
175         (CFLAGS-s_cacoshl.c): Likewise.
176         (CFLAGS-s_casinhl.c): Likewise.
177         (CFLAGS-s_catanl.c): Likewise.
178         (CFLAGS-s_catanhl.c): Likewise.
179         (CFLAGS-s_cexpl.c): Likewise.
180         (CFLAGS-s_ccoshl.c): Add -fsignaling-nans.
181         (CFLAGS-s_csinhl.c): Likewise.
182         (CFLAGS-s_clogl.c): Likewise.
183         (CFLAGS-s_clog10l.c): Likewise.
184         (CFLAGS-s_csinl.c): Likewise.
185         (CFLAGS-s_csqrtl.c): Likewise.
187 2010-08-04  Emilio Pozuelo Monfort  <pochu27@gmail.com>
188 2017-09-26  Svante Signell  <svante.signell@gmail.com>
190         * hurd/hurdexec.c (_hurd_exec): Deprecate function.
191         (_hurd_exec_paths): New function.
192         * hurd/hurd.h (_hurd_exec): Deprecate function.
193         (_hurd_exec_paths): Declare function.
194         * hurd/Versions: Export _hurd_exec_paths.
195         * sysdeps/mach/hurd/execve.c: Include <stdlib.h> and <stdio.h>
196         (__execve): Use __getcwd to build absolute path, and use
197         _hurd_exec_paths instead of _hurd_exec.
198         * sysdeps/mach/hurd/spawni.c: Likewise.
199         * sysdeps/mach/hurd/fexecve.c: Use _hurd_exec_paths instead of
200         _hurd_exec.
202 2018-01-08  Dmitry V. Levin  <ldv@altlinux.org>
204         * sysdeps/unix/sysv/linux/tst-ttyname.c (do_in_chroot_1): Skip the
205         test instead of failing in case of ENOENT returned by posix_openpt.
207 2018-01-08  Florian Weimer  <fweimer@redhat.com>
209         resolv: Support binary labels in test framework.
210         * support/resolv_test.c (struct to_be_freed): Remove.
211         (struct compressed_name): New.
212         (allocate_compressed_name, ascii_tolower)
213         (compare_compressed_name): New functions.
214         (struct resolv_response_builder): Update type of
215         compression_offsets for use with tsearch.  Rempve to_be_freed.
216         (response_push_pointer_to_free): Remove function.
217         (resolv_response_add_name): Rewrite using struct compressed_name
218         and tsearch instead of hsearch_r.
219         (response_builder_allocate): Remove initialization of
220         compression_offsets.
221         (response_builder_free): Update for removal of to_be_freed.  Use
222         tdestroy instead of hdestroy_r.
223         * resolv/Makefile (tests): Add tst-resolv-binary.
224         (tst-resolv-binary): Link with -lresolv -lpthread.
226 2018-01-08  Florian Weimer  <fweimer@redhat.com>
228         * support/check.h (TEST_COMPARE): Allow sign mismatch at compile
229         time.  Pass positive flag instead of negative flag to
230         support_test_compare_failure.
231         (support_test_compare_failure): Change negative parameter to
232         positive.
233         * support/support_test_compare_failure.c (report)
234         (support_test_compare_failure): Likewise.
235         * support/tst-test_compare.c (return_ssize_t, return_int): New.
236         (do_test): Check int/size_t, ssize_t/size_t comparisons.
238 2018-01-08  Szabolcs Nagy  <szabolcs.nagy@arm.com>
240         [BZ #22637]
241         * nptl/descr.h (stackblock, stackblock_size): Update comments.
242         * nptl/allocatestack.c (allocate_stack): Add guardsize to stacksize.
243         * nptl/nptl-init.c (__pthread_get_minstack): Remove guardsize from
244         stacksize.
245         * nptl/pthread_getattr_np.c (pthread_getattr_np): Likewise.
247 2018-01-08  H.J. Lu  <hongjiu.lu@intel.com>
249         * sysdeps/x86_64/fpu/multiarch/Makefile (libm-sysdep_routines):
250         Add s_sincosf-sse2 and s_sincosf-fma.
251         (CFLAGS-s_sincosf-fma.c): New.
252         * sysdeps/x86_64/fpu/multiarch/s_sincosf-fma.c: New file.
253         * sysdeps/x86_64/fpu/multiarch/s_sincosf-sse2.S: Likewise.
254         * sysdeps/x86_64/fpu/multiarch/s_sincosf.c: Likewise.
255         * sysdeps/x86_64/fpu/s_sincosf.S: Don't add alias if
256         __sincosf is defined.
258 2018-01-08  Florian Weimer  <fweimer@redhat.com>
260         * nptl/tst-thread-exit-clobber.cc: New file.
261         * nptl/Makefile (CFLAGS-tst-thread-exit-clobber.o): Compile in
262         C++11 mode.
263         (LDLIBS-tst-thread-exit-clobber): Link with libstdc++.
264         (tests): Add tst-thread-exit-clobber.
265         [!CXX] (tests-unsupported): Add tst-thread-exit-clobber.
267 2018-01-08  Florian Weimer  <fweimer@redhat.com>
269         * support/check.h (support_static_assert): Define.
270         (TEST_COMPARE): Use it.
272 2018-01-07  Aurelien Jarno  <aurelien@aurel32.net>
274         * sysdeps/unix/sysv/linux/getrlimit64 (getrlimit64)
275         [!__RLIM_T_MATCHES_RLIM64_T]
276         [!SHLIB_COMPAT (libc, GLIBC_2_1, GLIBC_2_2)]: Define as weak alias of
277         __getrlimit64. Add libc_hidden_weak.
279 2018-01-06  Palmer Dabbelt  <palmer@sifive.com>
281         * elf/elf.h (R_RISCV_NONE): New define.
282         (R_RISCV_32): Likewise.
283         (R_RISCV_64): Likewise.
284         (R_RISCV_RELATIVE): Likewise.
285         (R_RISCV_COPY): Likewise.
286         (R_RISCV_JUMP_SLOT): Likewise.
287         (R_RISCV_TLS_DTPMOD32): Likewise.
288         (R_RISCV_TLS_DTPMOD64): Likewise.
289         (R_RISCV_TLS_DTPREL32): Likewise.
290         (R_RISCV_TLS_DTPREL64): Likewise.
291         (R_RISCV_TLS_TPREL32): Likewise.
292         (R_RISCV_TLS_TPREL64): Likewise.
293         * Makerules (make-link-multidir): Make directories before linking into
294         them.
295         * sysdeps/unix/sysv/linux/dl-vdso.h (VDSO_NAME_LINUX_4_15): New
296         define.
297         (VDSO_HASH_LINUX_4_15): Likewise.
298         * scripts/build-many-glibcs.py (class Glibc): Strip shared objects
299         in subdirectories of lib.
300         * nptl/Makefile (/librt.so): Always depend on
301         "$(shared-thread-library)".
303 2018-01-06  Samuel Thibault  <samuel.thibault@ens-lyon.org>
305         * sysdeps/mach/hurd/i386/jmp_buf-macros.h: New file.
306         * sysdeps/i386/dl-tlsdesc.S (_dl_tlsdesc_dynamic) [NO_RTLD_HIDDEN]: Call
307         JUMPTARGET (___tls_get_addr) instead of HIDDEN_JUMPTARGET
308         (___tls_get_addr).
309         * sysdeps/x86_64/dl-tlsdesc.S (_dl_tlsdesc_dynamic): Likewise.
310         * sysdeps/i386/fpu/libm-test-ulps: Regenerated for GCC 7 with
311         "-O2 -march=i686".
312         * posix/tst-glob_symlinks.c [!PATH_MAX]: Define PATH_MAX macro.
313         * sysdeps/gnu/glob64.c (__glob): Define macro instead of glob macro.
314         (__glob64): Define GLIBC_2_27 versioned symbol instead of glob64.
315         * sysdeps/gnu/glob-lstat-compat.c: New file.
316         * sysdeps/gnu/glob64-lstat-compat.c: New file.
317         * sysdeps/posix/pwritev_common.c: Add PROT_READ to __mmap prot.
319 2018-01-05  Tulio Magno Quites Machado Filho  <tuliom@linux.vnet.ibm.com>
321         * sysdeps/powerpc/powerpc64/dl-machine.c (_dl_reloc_overflow):
322         Reserve 16 chars to reloc_addr before calling _itoa_word.
324 2018-01-05  Aurelien Jarno  <aurelien@aurel32.net>
326         [BZ #22678]
327         * sysdeps/unix/sysv/linux/prlimit.c (prlimit): Translate
328         old_rlimit from RLIM64_INFINITY to RLIM_INFINITY.
330         * sysdeps/unix/sysv/linux/tst-rlimit-infinity.c: New file.
331         * sysdeps/unix/sysv/linux/Makefile (tests): Add tst-rlimit-infinity.
333         * resource/tst-getrlimit.c: Add copyright header.
335 2018-01-05  Aurelien Jarno  <aurelien@aurel32.net>
336             Adhemerval Zanella  <adhemerval.zanella@linaro.org>
338         * sysdeps/unix/sysv/linux/getrlimit64.c [USE_VERSIONED_RLIMIT]: Do not
339         define getrlimit and getrlimit64 as weak aliases of __getrlimit64.
340         Define __GI_getrlimit64 as weak alias of __getrlimit64.
341         [__RLIM_T_MATCHES_RLIM64_T]: Do not redefine SHLIB_COMPAT, use #elif
342         instead.
343         * sysdeps/unix/sysv/linux/setrlimit64.c [USE_VERSIONED_RLIMIT]: Do not
344         define setrlimit and setrlimit64 as weak aliases of __setrlimit64.
345         * sysdeps/unix/sysv/linux/alpha/bits/resource.h (RLIM_INFINITY,
346         RLIM64_INFINITY): Fix values to match the kernel ones.
347         * sysdeps/unix/sysv/linux/alpha/getrlimit64.c: Define
348         USE_VERSIONED_RLIMIT.  Rename __getrlimit64 into __old_getrlimit64 and
349         provide it as getrlimit@@GLIBC_2_0 and getrlimit64@@GLIBC_2_1.  Add a
350         __getrlimit64 function and provide it as getrlimit@@GLIBC_2_27 and
351         getrlimit64@@GLIBC_2_27.
352         * sysdeps/unix/sysv/linux/alpha/setrlimit64.c: Ditto with setrlimit
353         and setrlimit64.
354         * sysdeps/unix/sysv/linux/alpha/libc.abilist (GLIBC_2.27): Add
355         getrlimit, setrlimit, getrlimit64 and setrlimit64.
356         * sysdeps/unix/sysv/linux/alpha/Versions (libc): Add getrlimit,
357         setrlimit, getrlimit64 and setrlimit64.
359 2018-01-05  Aurelien Jarno  <aurelien@aurel32.net>
361         [BZ #22648]
362         * sysdeps/unix/sysv/linux/alpha/getrlimit64.c: New file.
363         * sysdeps/unix/sysv/linux/alpha/setrlimit64.c: Ditto.
365 2018-01-04  Joseph Myers  <joseph@codesourcery.com>
367         * malloc/tst-malloc-tcache-leak.c (TIMEOUT): Define to 50.
368         * posix/tst-glob-tilde.c (TIMEOUT): Define to 200.
369         * resolv/tst-resolv-res_ninit.c (TIMEOUT): Define to 50.
371 2018-01-03  Adhemerval Zanella  <adhemerval.zanella@linaro.org>
373         [BZ #15479]
374         [BZ #22666]
375         * sysdeps/alpha/fpu/s_trunc.c: Remove file.
376         * sysdeps/alpha/fpu/s_truncf.c: Likewise.
378         [BZ #15479]
379         [BZ #22665]
380         * sysdeps/alpha/fpu/s_ceil.c: Remove file.
381         * sysdeps/alpha/fpu/s_ceilf.c: Likewise.
382         * sysdeps/alpha/fpu/s_floor.c: Likewise.
383         * sysdeps/alpha/fpu/s_floorf.c: Likewise.
385 2018-01-04  Florian Weimer  <fweimer@redhat.com>
387         [BZ #22667]
388         * sysdeps/unix/sysv/linux/i386/makecontext.S (__makecontext):
389         Align the stack before calling exit.
390         * stdlib/tst-makecontext-align.c: New file.
391         * stdlib/Makefile (tests): Add tst-makecontext-align.
393 2018-01-04  Florian Weimer  <fweimer@redhat.com>
395         Add support for calling dlvsym from libc.so.
396         * include/dlfcn.h (__libc_dlvsym): Declare.
397         * elf/Makefile (tests-static-internal): Add
398         tst-libc_dlvsym-static.
399         (tests-internal): Add tst-libc_dlvsym.
400         (modules-names): Add tst-libc_dlvsym-dso.
401         (tst-libc_dlvsym, tst-libc_dlvsym-static): Link with libdl.
402         (tst-libc_dlvsym-dso.so): Link with libdl, libsupport.
403         (tst-libc_dlvsym.out, tst-libc_dlvsym-static.out): The shared
404         object tst-libc_dlvsym-dso.so needs to be built before running
405         these tests.
406         (tst-libc_dlvsym-static-ENV): Set LD_LIBRARY_PATH.
407         * elf/Versions: Export __libc_dlvsym.
408         * elf/dl-libc.c (struct do_dlvsym_args): New.
409         (do_dlvsym, __libc_dlvsym): New functions.
410         (struct dl_open_hook, _dl_open_hook): Add dlvsym member.
411         (_dl_open_hook2): New variable.
412         (__libc_register_dl_open_hook): Set it.
413         * elf/tst-libc_dlvsym-dso.c: New file.
414         * elf/tst-libc_dlvsym-static.c: Likewise.
415         * elf/tst-libc_dlvsym.c: Likewise.
416         * elf/tst-libc_dlvsym.h: Likewise.
418 2018-01-03  Samuel Thibault  <samuel.thibault@ens-lyon.org>
420         * support/support_enter_mount_namespace.c [!CLONE_NEWNS]: Do not
421         include <sys/mount.h>.
423 2018-01-02  Wilco Dijkstra  <wdijkstr@arm.com>
425         * math/math.h (math_errhandling): Set to 0 with __FAST_MATH__.
426         Add __NO_MATH_ERRNO__ check.
428 2018-01-02  Joseph Myers  <joseph@codesourcery.com>
430         * sysdeps/mips/mips32/libm-test-ulps: Update.
431         * sysdeps/mips/mips64/libm-test-ulps: Likewise.
433 2018-01-02  Florian Weimer  <fweimer@redhat.com>
435         * misc/tst-pselect.c: Add copyright header.
437 2018-01-02  Aurelien Jarno <aurelien@aurel32.net>
439         * sysdeps/unix/sysv/linux/alpha/getrlimit64.c: Fix a typo in the
440         comment.
441         * sysdeps/unix/sysv/linux/alpha/setrlimit64.c: Fix a typo in the
442         comment.
443         (settrlimit): Rename into setrlimit.
444         (__sttrlimit): Rename into __setrlimit.
446         * sysdeps/unix/sysv/linux/alpha/getrlimit64.c (__old_getrlimit64):
447         Drop __RLIM_T_MATCHES_RLIM64_T conditional as __old_getrlimit64 is
448         never defined in that case.
450 2018-01-02  Joseph Myers  <joseph@codesourcery.com>
452         * sysdeps/powerpc/nofpu/libm-test-ulps: Update.
454         * sysdeps/arm/libm-test-ulps: Update.
456         * math/Makefile (run-regen-ulps): Add $(objpfx) to test name here.
457         (regen-ulps): Use $(libm-tests) not $^ in shell loop.
459 2018-01-02  Rajalakshmi Srinivasaraghavan  <raji@linux.vnet.ibm.com>
461         * NEWS: Add cosf and sincosf to list of optimized functions.
463 2018-01-02  Aurelien Jarno  <aurelien@aurel32.net>
465         [BZ #22660]
466         * sysdeps/alpha/fpu/s_fmax.S: Remove file.
467         * sysdeps/alpha/fpu/s_fmaxf.S: Likewise.
468         * sysdeps/alpha/fpu/s_fmin.S: Likewise.
469         * sysdeps/alpha/fpu/s_fminf.S: Likewise.
471 2018-01-01  Dmitry V. Levin  <ldv@altlinux.org>
473         [BZ #22433]
474         * sysdeps/unix/sysv/linux/arm/sys/ptrace.h: New file.
476         * elf/dl-load.c (decompose_rpath): Check for rpath emptiness before
477         making a copy of it.
479 2018-01-01  Joseph Myers  <joseph@codesourcery.com>
481         * manual/texinfo.tex: Update to version 2017-12-26.21 with
482         trailing whitespace removed.
483         * scripts/config.guess: Update to version 2018-01-01.
484         * scripts/config.sub: Update to version 2018-01-01.
485         * scripts/move-if-change: Update from gnulib.
487         * NEWS: Update copyright dates.
488         * catgets/gencat.c (print_version): Likewise.
489         * csu/version.c (banner): Likewise.
490         * debug/catchsegv.sh: Likewise.
491         * debug/pcprofiledump.c (print_version): Likewise.
492         * debug/xtrace.sh (do_version): Likewise.
493         * elf/ldconfig.c (print_version): Likewise.
494         * elf/ldd.bash.in: Likewise.
495         * elf/pldd.c (print_version): Likewise.
496         * elf/sotruss.sh: Likewise.
497         * elf/sprof.c (print_version): Likewise.
498         * iconv/iconv_prog.c (print_version): Likewise.
499         * iconv/iconvconfig.c (print_version): Likewise.
500         * locale/programs/locale.c (print_version): Likewise.
501         * locale/programs/localedef.c (print_version): Likewise.
502         * login/programs/pt_chown.c (print_version): Likewise.
503         * malloc/memusage.sh (do_version): Likewise.
504         * malloc/memusagestat.c (print_version): Likewise.
505         * malloc/mtrace.pl: Likewise.
506         * manual/libc.texinfo: Likewise.
507         * nptl/version.c (banner): Likewise.
508         * nscd/nscd.c (print_version): Likewise.
509         * nss/getent.c (print_version): Likewise.
510         * nss/makedb.c (print_version): Likewise.
511         * posix/getconf.c (main): Likewise.
512         * scripts/test-installation.pl: Likewise.
513         * sysdeps/unix/sysv/linux/lddlibc4.c (main): Likewise.
515         * All files with FSF copyright notices: Update copyright dates
516         using scripts/update-copyrights.
517         * locale/programs/charmap-kw.h: Regenerated.
518         * locale/programs/locfile-kw.h: Likewise.
520 2017-12-31  Zack Weinberg  <zackw@panix.com>
522         * libio/bits/libio-ldbl.h: Correct check for improper
523         inclusion.  Add own multiple include guard.
525 2017-12-30  Aurelien Jarno  <aurelien@aurel32.net>
526             Dmitry V. Levin  <ldv@altlinux.org>
528         [BZ #22625]
529         CVE-2017-16997
530         * elf/dl-load.c (fillin_rpath): Check for empty tokens before dynamic
531         string token expansion. Check for NULL pointer or empty string possibly
532         returned by expand_dynamic_string_token.
533         (decompose_rpath): Check for empty path after dynamic string
534         token expansion.
536 2017-12-29  Dmitry V. Levin  <ldv@altlinux.org>
538         [BZ #22433]
539         * sysdeps/unix/sysv/linux/x86/sys/ptrace.h: New file.
541         * sysdeps/unix/sysv/linux/sys/ptrace.h (__ptrace_request): Add comments
542         about PTRACE_PEEKSIGINFO, PTRACE_GETSIGMASK, PTRACE_SETSIGMASK, and
543         PTRACE_SECCOMP_GET_FILTER.  Update comments about PTRACE_SINGLESTEP
544         and PTRACE_SYSCALL.
545         * sysdeps/unix/sysv/linux/aarch64/sys/ptrace.h: Likewise.
546         * sysdeps/unix/sysv/linux/ia64/sys/ptrace.h: Likewise.
547         * sysdeps/unix/sysv/linux/powerpc/sys/ptrace.h: Likewise.
548         * sysdeps/unix/sysv/linux/s390/sys/ptrace.h: Likewise.
549         * sysdeps/unix/sysv/linux/sparc/sys/ptrace.h: Likewise.
550         * sysdeps/unix/sysv/linux/tile/sys/ptrace.h: Likewise.
552         * sysdeps/unix/sysv/linux/sys/ptrace.h: Include <bits/ptrace-shared.h>.
553         (__ptrace_setoptions, __ptrace_eventcodes, __ptrace_peeksiginfo_args,
554         __ptrace_peeksiginfo_flags, ptrace): Move to ...
555         * sysdeps/unix/sysv/linux/bits/ptrace-shared.h: ... new file.
556         * sysdeps/unix/sysv/linux/Makefile (sysdep_headers): Add
557         bits/ptrace-shared.h.
558         * sysdeps/unix/sysv/linux/aarch64/sys/ptrace.h: Include
559         <bits/ptrace-shared.h>.
560         (__ptrace_setoptions, __ptrace_eventcodes, __ptrace_peeksiginfo_args,
561         __ptrace_peeksiginfo_flags, ptrace): Remove.
562         * sysdeps/unix/sysv/linux/ia64/sys/ptrace.h: Likewise.
563         * sysdeps/unix/sysv/linux/powerpc/sys/ptrace.h: Likewise.
564         * sysdeps/unix/sysv/linux/s390/sys/ptrace.h: Likewise.
565         * sysdeps/unix/sysv/linux/sparc/sys/ptrace.h: Likewise.
566         * sysdeps/unix/sysv/linux/tile/sys/ptrace.h: Likewise.
568 2017-12-29  Aurelien Jarno  <aurelien@aurel32.net>
570         [BZ #17804]
571         * dirent/scandir-tail.c (SCANDIR_TAIL): Move __set_errno (0) at the
572         end of the loop. Improve comments.
574 2017-12-29  Zack Weinberg  <zackw@panix.com>
576         [BZ #22615]
577         * manual/errno.texi (Checking for Errors): Explicitly say that errno
578         might be set on success.
580 2017-12-29  Aurelien Jarno  <aurelien@aurel32.net>
582         [BZ #22611]
583         * malloc/tst-realloc.c (do_test): Remove the test checking that errno
584         is unchanged on success.
586 2017-12-27  Dmitry V. Levin  <ldv@altlinux.org>
588         * elf/dl-dst.h (DL_DST_COUNT): Remove is_path argument, all callers
589         updated.
590         * elf/dl-load.c (is_dst, _dl_dst_count, _dl_dst_substitute,
591         expand_dynamic_string_token): Likewise.
592         * sysdeps/generic/ldsodefs.h (_dl_dst_count, _dl_dst_substitute): Remove
593         is_path argument.
595         * elf/dl-load.c (is_dst): Remove checks that is_path is set and name
596         contains ':'.
598         * elf/dl-load.c (_dl_dst_substitute): Remove checks that is_path
599         is set and name contains ':', and all code depending on these checks.
601 2017-12-24  Zack Weinberg  <zackw@panix.com>
603         * libio/libio.h, libio/_G_config.h: New stub headers which issue a
604         deprecation warning and then include <bits/libio.h>, <bits/_G_config.h>
605         respectively.
606         * libio/libio.h: Rename the original version of this file to
607         libio/bits/libio.h.  Error out if not included by stdio.h or the
608         stub libio.h.
609         * include/libio.h: Move to include/bits.  Forward to libio/bits/libio.h.
610         * sysdeps/generic/_G_config.h: Move to top-level bits/.  Error out
611         if not included by bits/libio.h or the stub _G_config.h.
612         * sysdeps/unix/sysv/linux/_G_config.h: Move to
613         sysdeps/unix/sysv/linux/bits.  Error out if not included by
614         bits/libio.h or the stub _G_config.h.
615         * libio/stdio.h: Include bits/libio.h, not libio.h.
616         * libio/Makefile: Install bits/libio.h and bits/_G_config.h as
617         well as libio.h and _G_config.h.
619         * csu/init.c, libio/fmemopen.c, libio/iolibio.h, libio/oldfmemopen.c
620         * libio/strfile.h, stdio-common/vfscanf.c
621         * sysdeps/pthread/flockfile.c, sysdeps/pthread/funlockfile.c
622         Include stdio.h, not _G_config.h nor libio.h.
623         * libio/iofgetpos.c: Also rename fgetpos64 out of the way.
624         * libio/iofsetpos.c: Also rename fsetpos64 out of the way.
626         * scripts/check-installed-headers.sh: Skip libio.h and _G_config.h.
628 2017-12-23  Dmitry V. Levin  <ldv@altlinux.org>
630         [BZ #22347]
631         * stdlib/getrandom.c (getrandom): Fix comment.
632         * sysdeps/unix/sysv/linux/getrandom.c (getrandom): Likewise.
634 2017-12-23  Aurelien Jarno <aurelien@aurel32.net>
636         [BZ #21161]
637         * manual/arith.texi (strtoul): Fix a typo.
639         [BZ #22596]
640         * manual/arith.texi (finite): Fix the description of the return
641         value.
643 2017-12-22  Eric Blake  <ebb9@byu.net>
645         Avoid gcc warnings on cygwin
646         * posix/regex_internal.c (re_string_reconstruct) [!RE_ENABLE_I18N]:
647         * posix/regexec.c (check_arrival_add_next_nodes) [!RE_ENABLE_I18N]:
648         Avoid unused variable.
650 2017-12-22  Florian Weimer  <fweimer@redhat.com>
652         * io/Makefile (routines): Add copy_file_range.
653         (tests): Add tst-copy_file_range.
654         (tests-static, tests-internal): Add tst-copy_file_range-compat.
655         * io/Versions (GLIBC_2.27): Export copy_file_range.
656         * io/copy_file_range-compat.c: New file.
657         * io/copy_file_range.c: Likewise.
658         * io/tst-copy_file_range-compat.c: Likewise.
659         * io/tst-copy_file_range.c: Likewise.
660         * manual/llio.texi (Copying File Data): New section.
661         * posix/unistd.h [__USE_GNU] (copy_file_range): Declare.
662         * support/Makefile (libsupport-routines): Add support-xfstat,
663         xftruncate, xlseek.
664         * support/support-xfstat.c: New file.
665         * support/xftruncate.c: Likewise.
666         * support/xlseek.c: Likewise.
667         * support/xunistd.h (xfstat, xftruncate, xlseek): Declare.
668         * sysdeps/unix/sysv/linux/**.abilist: Update.
669         * sysdeps/unix/sysv/linux/copy_file_range.c: New file.
671 2017-12-21  Szabolcs Nagy  <szabolcs.nagy@arm.com>
673         * scripts/build-many-glibcs.py (Context.add_all_configs): Add
674         disable-multi-arch variant to aarch64-linux-gnu.
676 2017-12-20  Joseph Myers  <joseph@codesourcery.com>
678         * manual/texinfo.tex: Update to version 2017-12-18.20 with
679         trailing whitespace removed.
680         * scripts/config.guess: Update to version 2017-12-17.
681         * scripts/config.sub: Update to version 2017-11-23.
682         * scripts/install-sh: Update to version 2017-09-23.17.
683         * scripts/move-if-change: Update to version 2017-09-13 06:45.
685 2017-12-20  Adhemerval Zanella  <adhemerval.zanella@linaro.org>
687         * sysdeps/tile/__longjmp.S (__longjmp): Use lowercase instructions.
688         * sysdeps/tile/__tls_get_addr.S (__tls_get_addr): Likewise.
689         * sysdeps/tile/_mcount.S (__mcount): Likewise.
690         * sysdeps/tile/crti.S (_init, _fini): Likewise.
691         * sysdeps/tile/crtn.S: Likewise.
692         * sysdeps/tile/dl-start.S (_start): Likewise.
693         * sysdeps/tile/dl-trampoline.S: Likewise.
694         * sysdeps/tile/setjmp.S (__sigsetjmp): Likewise.
695         * sysdeps/tile/start.S (_start): Likewise.
696         * sysdeps/unix/sysv/linux/tile/clone.S (_clone): Likewise.
697         * sysdeps/unix/sysv/linux/tile/getcontext.S (__getcontext): Likewise.
698         * sysdeps/unix/sysv/linux/tile/ioctl.S (__ioctl): Likewise.
699         * sysdeps/unix/sysv/linux/tile/setcontext.S (__setcontext): Likewise.
700         * sysdeps/unix/sysv/linux/tile/swapcontext.S (__swapcontext): Likewise.
701         * sysdeps/unix/sysv/linux/tile/syscall.S (syscall): Likewise.
702         * sysdeps/unix/sysv/linux/tile/vfork.S (__vfork): Likewise.
704         * stdlib/bug-getcontext.c (do_test): Remove tilepro mention in
705         comment.
706         * sysdeps/tile/preconfigure: Remove tilegx folder.
707         * sysdeps/tile/tilegx/Implies: Move definitions to ...
708         * sysdeps/tile/Implies: ... here.
709         * sysdeps/tile/tilegx/Makefile: Move rules to ...
710         * sysdeps/tile/Makefile: ... here.
711         * sysdeps/tile/tilegx/atomic-machine.h: Move definitions to ...
712         * sysdeps/tile/atomic-machine.h: ... here.  Add include guards.
713         * sysdeps/tile/tilegx/bits/wordsize.h: Move to ...
714         * sysdeps/tile/bits/wordsize.h: ... here.
715         * sysdeps/tile/tilegx/*: Move to ...
716         * sysdeps/tile/*: ... here.
717         * sysdeps/tile/tilegx/tilegx32/Implies: Move to ...
718         * sysdeps/tile/tilegx32/Implies: ... here.
719         * sysdeps/tile/tilegx/tilegx64/Implies: Move to ...
720         * sysdeps/tile/tilegx64/Implies: ... here.
721         * sysdeps/unix/sysv/linux/tile/tilegx/Makefile: Move definitions
722         to ...
723         * sysdeps/unix/sysv/linux/tile/Makefile: ... here.
724         * sysdeps/unix/sysv/linux/tile/tilegx/*: Move to ...
725         * sysdeps/unix/sysv/linux/tile/*: ... here.
726         * sysdeps/unix/sysv/linux/tile/tilegx/tilegx32/*: Move to ...
727         * sysdeps/unix/sysv/linux/tile/tilegx32/*: ... here.
728         * sysdeps/unix/sysv/linux/tile/tilegx/tilegx64/*: Move to ...
729         * sysdeps/unix/sysv/linux/tile/tilegx64/*: ... here.
731         * README: Remove tilepro-*-linux-gnu from supported architecture.
732         * scripts/build-many-glibcs.py: Likewise.
733         * sysdeps/tile/__tls_get_addr.S (__tls_get_addr): Likewise.
734         * sysdeps/tile/crti.S (PREINIT_FUNCTION): Likewise.
735         * sysdeps/tile/dl-machine.h (ELF_MACHINE_NAME,
736         elf_machine_matches_host, elf_machine_dynamic,
737         elf_machine_load_address, elf_machine_runtime_setup, reloc_howto
738         howto, elf_machine_rela): Likewise.
739         * sysdeps/tile/dl-start.S (_start): Likewise.
740         * sysdeps/tile/memcmp.c (DBLALIGN, REVBYTES): Likewise.
741         * sysdeps/tile/memcopy.h (MEMCPY_OK_FOR_FWD_MEMMOVE,
742         MEMCPY_OK_FOR_FWD_MEMMOVE, op_t): Likewise.
743         * sysdeps/tile/nptl/pthread_spin_lock.c (TNS, CMPTNS): Likewise.
744         * sysdeps/tile/nptl/pthread_spin_trylock.c (TNS): Likewise.
745         * sysdeps/tile/nptl/pthread_spin_unlock.c (pthread_spin_unlock):
746         Likewise.
747         * sysdeps/tile/nptl/tls.h (DB_THREAD_SELF): Likewise.
748         * sysdeps/tile/preconfigure: Likewise.
749         * sysdeps/tile/stackguard-macros.h (STACK_CHK_GUARD,
750         POINTER_CHK_GUARD): Likewise.
751         * sysdeps/tile/stackinfo.h (__stackinfo_sub): Likewise.
752         * sysdeps/tile/start.S (_start): Likewise.
753         * sysdeps/tile/tls-macros.h (TLS_GD_OFFSET, TLS_IE_OFFSET, _TLS_LE):
754         Likewise.
755         * sysdeps/tile/sysdep.h (REGSIZE): Likewise.
756         (LD, LD4U, ST, ST4, BNEZ, BEQZ, BEQZT, BGTZ, CMPEQI, CMPEQ, CMOVEQZ,
757         CMOVNEZ): Remove.
758         * sysdeps/unix/sysv/linux/tile/bits/environments.h
759         (__ILP32_OFF32_CFLAGS, __ILP32_OFFBIG_CFLAGS, __ILP32_OFF32_LDFLAGS,
760         __ILP32_OFFBIG_LDFLAGS, __LP64_OFF64_CFLAGS, __LP64_OFF64_LDFLAGS):
761         Likewise.
762         * sysdeps/tile/wordcopy.c (DBLALIGN): Likewise.
763         * sysdeps/tile/tilepro/Implies: Remove file.
764         * sysdeps/tile/tilepro/atomic-machine.h: Likewise.
765         * sysdeps/tile/tilepro/bits/wordsize.h: Likewise.
766         * sysdeps/tile/tilepro/memchr.c: Likewise.
767         * sysdeps/tile/tilepro/memcpy.S: Likewise.
768         * sysdeps/tile/tilepro/memset.c: Likewise.
769         * sysdeps/tile/tilepro/memusage.h: Likewise.
770         * sysdeps/tile/tilepro/rawmemchr.c: Likewise.
771         * sysdeps/tile/tilepro/strchr.c: Likewise.
772         * sysdeps/tile/tilepro/strchrnul.c: Likewise.
773         * sysdeps/tile/tilepro/strlen.c: Likewise.
774         * sysdeps/tile/tilepro/strrchr.c: Likewise.
775         * sysdeps/unix/sysv/linux/tile/tilepro/Implies: Likewise.
776         * sysdeps/unix/sysv/linux/tile/tilepro/c++-types.data: Likewise.
777         * sysdeps/unix/sysv/linux/tile/tilepro/jmp_buf-macros.h: Likewise.
778         * sysdeps/unix/sysv/linux/tile/tilepro/ld.abilist: Likewise.
779         * sysdeps/unix/sysv/linux/tile/tilepro/ldconfig.h: Likewise.
780         * sysdeps/unix/sysv/linux/tile/tilepro/libBrokenLocale.abilist:
781         Likewise.
782         * sysdeps/unix/sysv/linux/tile/tilepro/libanl.abilist: Likewise.
783         * sysdeps/unix/sysv/linux/tile/tilepro/libc.abilist: Likewise.
784         * sysdeps/unix/sysv/linux/tile/tilepro/libcrypt.abilist: Likewise.
785         * sysdeps/unix/sysv/linux/tile/tilepro/libdl.abilist: Likewise.
786         * sysdeps/unix/sysv/linux/tile/tilepro/libm.abilist: Likewise.
787         * sysdeps/unix/sysv/linux/tile/tilepro/libnsl.abilist: Likewise.
788         * sysdeps/unix/sysv/linux/tile/tilepro/libpthread.abilist: Likewise.
789         * sysdeps/unix/sysv/linux/tile/tilepro/libresolv.abilist: Likewise.
790         * sysdeps/unix/sysv/linux/tile/tilepro/librt.abilist: Likewise.
791         * sysdeps/unix/sysv/linux/tile/tilepro/libthread_db.abilist: Likewise.
792         * sysdeps/unix/sysv/linux/tile/tilepro/libutil.abilist: Likewise.
793         * sysdeps/unix/sysv/linux/tile/tilepro/register-dump.h: Likewise.
794         * sysdeps/unix/sysv/linux/tile/sysconf.c (linux_sysconf): Remove
795         tilepro mention in comment.
797         * nptl/Makefile (libpthread-routines): Add pthread_join_common.
798         * nptl/pthreadP.h (__pthread_timedjoin_ex): New prototype.
799         * nptl/pthread_join_common.c: New file: common function used on
800         pthread_join, pthread_timedjoin_np, pthread_tryjoin_np.
801         * nptl/pthread_join.c (pthread_join): Use __pthread_timedjoin_ex.
802         * nptl/pthread_tryjoin.c (pthread_tryjoin): Likewise.
803         * nptl/pthread_timedjoin.c (pthread_timedjoin_np): Likewise.
804         (cleanup): Move definition to pthread_join_common.c.
805         * sysdeps/unix/sysv/linux/i386/lowlevellock.h (__lll_timedwait_tid):
806         Remove superflous checks.
807         * sysdeps/unix/sysv/linux/x86_64/lowlevellock.h (__lll_timedwait_tid):
808         Likewise.
810 2017-12-20  Szabolcs Nagy  <szabolcs.nagy@arm.com>
812         * sysdeps/aarch64/libm-test-ulps: Update.
814 2017-12-20  Adhemerval Zanella  <adhemerval.zanella@linaro.org>
816         * sysdeps/aarch64/memset.S (MEMSET): Define.
818 2017-12-20  Florian Weimer  <fweimer@redhat.com>
820         [BZ #22635]
821         nptl: Provide full implementation of pthread_self in libc.so.
822         * nptl/Makefile (routines): Add pthread_self.
823         (libpthread-routines): Replace pthread_self with
824         compat-pthread_self.
825         * nptl/forward.c (pthread_self): Remove.
826         * nptl/nptl-init.c (pthread_functions): Do not initialize
827         ptr_pthread_self.
828         * nptl/pthread_self.c (pthread_self): Remove weak alias.
829         * nptl/compat-pthread_self.c: New file.
830         * sysdeps/nptl/pthread-functions.h (struct pthread_functions):
831         Remove ptr_pthread_self.
833 2017-12-19  Arnold D. Robbins  <arnold@skeeve.com>
835         * posix/regcomp.c: Fix spelling in comments.
836         * posix/regex.h: Likewise.
837         * posix/regex_internal.c: Likewise.
838         * posix/regexec.c: Likewise.
840 2017-12-19  Gabriel F. T. Gomes  <gabriel@inconstante.eti.br>
842         [BZ #22377]
843         * math/Makefile [C++] (tests): Add test for iseqsig.
844         * math/math.h [C++] (iseqsig): New implementation, which does
845         not rely on __MATH_TG/__builtin_types_compatible_p.
846         * math/test-math-iseqsig.cc: New file.
847         * sysdeps/powerpc/powerpc64le/Makefile
848         (CFLAGS-test-math-iseqsig.cc): New variable.
850 2017-12-19  Dmitry V. Levin  <ldv@altlinux.org>
852         * elf/dl-load.c (is_trusted_path): Remove.
853         (fillin_rpath): Remove check_trusted argument and its use,
854         all callers changed.
856 2017-12-19  H.J. Lu  <hongjiu.lu@intel.com>
858         [BZ #22630]
859         * Makeconfig (link-pie-before-libc): Replace -pie with
860         $(if $($(@F)-no-pie),$(no-pie-ldflag),-pie).
861         * elf/Makefile (LDFLAGS-tst-dlopen-aout): Removed.
862         (tst-dlopen-aout-no-pie): New.
863         (LDFLAGS-tst-prelink): Removed.
864         (tst-prelink-no-pie): New.
865         (LDFLAGS-tst-main1): Removed.
866         (tst-main1-no-pie): New.
867         * gmon/Makefile (LDFLAGS-tst-gmon): Removed.
868         (tst-gmon-no-pie): New.
870 2017-12-19  H.J. Lu  <hongjiu.lu@intel.com>
872         * manual/install.texi: Document that --enable-static-pie
873         implies PIE.
874         * INSTALL: Regenerated.
876 2017-12-19  Bernd Edlinger  <bernd.edlinger@hotmail.de>
878         [BZ #21309]
879         * sysdeps/ieee754/dbl-64/e_pow.c (checkint): Make m and n
880         unsigned.
882 2017-12-19  Joseph Myers  <joseph@codesourcery.com>
884         Revert:
886         2017-12-19  Joseph Myers  <joseph@codesourcery.com>
888         * sysdeps/x86_64/fpu/libm-test-ulps: Update.
890         2017-12-19  Patrick McGehearty  <patrick.mcgehearty@oracle.com>
892         * sysdeps/ieee754/dbl-64/e_exp.c: Include <math-svid-compat.h> and
893         <errno.h>.  Include "eexp.tbl".
894         (half): New constant.
895         (one): Likewise.
896         (__ieee754_exp): Rewrite.
897         (__slowexp): Remove prototype.
898         * sysdeps/ieee754/dbl-64/eexp.tbl: New file.
899         * sysdeps/ieee754/dbl-64/slowexp.c: Remove file.
900         * sysdeps/i386/fpu/slowexp.c: Likewise.
901         * sysdeps/ia64/fpu/slowexp.c: Likewise.
902         * sysdeps/m68k/m680x0/fpu/slowexp.c: Likewise.
903         * sysdeps/x86_64/fpu/multiarch/slowexp-avx.c: Likewise.
904         * sysdeps/x86_64/fpu/multiarch/slowexp-fma.c: Likewise.
905         * sysdeps/x86_64/fpu/multiarch/slowexp-fma4.c: Likewise.
906         * sysdeps/generic/math_private.h (__slowexp): Remove prototype.
907         * sysdeps/ieee754/dbl-64/e_pow.c: Remove mention of slowexp.c in
908         comment.
909         * sysdeps/powerpc/power4/fpu/Makefile [$(subdir) = math]
910         (CPPFLAGS-slowexp.c): Remove variable.
911         * sysdeps/x86_64/fpu/multiarch/Makefile (libm-sysdep_routines):
912         Remove slowexp-fma, slowexp-fma4 and slowexp-avx.
913         (CFLAGS-slowexp-fma.c): Remove variable.
914         (CFLAGS-slowexp-fma4.c): Likewise.
915         (CFLAGS-slowexp-avx.c): Likewise.
916         * sysdeps/x86_64/fpu/multiarch/e_exp-avx.c (__slowexp): Do not
917         define as macro.
918         * sysdeps/x86_64/fpu/multiarch/e_exp-fma.c (__slowexp): Likewise.
919         * sysdeps/x86_64/fpu/multiarch/e_exp-fma4.c (__slowexp): Likewise.
920         * math/Makefile (type-double-routines): Remove slowexp.
921         * manual/probes.texi (slowexp_p6): Remove.
922         (slowexp_p32): Likewise.
924 2017-12-19  Adhemerval Zanella  <adhemerval.zanella@linaro.org>
926         * lib/glob.c (glob): Use a 'char *', not a 'void *', in pointer
927         arithmetic.
929         * lib/glob.c (glob): Do not pass NULL to mempcpy.
931 2017-12-19  Joseph Myers  <joseph@codesourcery.com>
933         * sysdeps/x86_64/fpu/libm-test-ulps: Update.
935 2017-12-19  Patrick McGehearty  <patrick.mcgehearty@oracle.com>
937         * sysdeps/ieee754/dbl-64/e_exp.c: Include <math-svid-compat.h> and
938         <errno.h>.  Include "eexp.tbl".
939         (half): New constant.
940         (one): Likewise.
941         (__ieee754_exp): Rewrite.
942         (__slowexp): Remove prototype.
943         * sysdeps/ieee754/dbl-64/eexp.tbl: New file.
944         * sysdeps/ieee754/dbl-64/slowexp.c: Remove file.
945         * sysdeps/i386/fpu/slowexp.c: Likewise.
946         * sysdeps/ia64/fpu/slowexp.c: Likewise.
947         * sysdeps/m68k/m680x0/fpu/slowexp.c: Likewise.
948         * sysdeps/x86_64/fpu/multiarch/slowexp-avx.c: Likewise.
949         * sysdeps/x86_64/fpu/multiarch/slowexp-fma.c: Likewise.
950         * sysdeps/x86_64/fpu/multiarch/slowexp-fma4.c: Likewise.
951         * sysdeps/generic/math_private.h (__slowexp): Remove prototype.
952         * sysdeps/ieee754/dbl-64/e_pow.c: Remove mention of slowexp.c in
953         comment.
954         * sysdeps/powerpc/power4/fpu/Makefile [$(subdir) = math]
955         (CPPFLAGS-slowexp.c): Remove variable.
956         * sysdeps/x86_64/fpu/multiarch/Makefile (libm-sysdep_routines):
957         Remove slowexp-fma, slowexp-fma4 and slowexp-avx.
958         (CFLAGS-slowexp-fma.c): Remove variable.
959         (CFLAGS-slowexp-fma4.c): Likewise.
960         (CFLAGS-slowexp-avx.c): Likewise.
961         * sysdeps/x86_64/fpu/multiarch/e_exp-avx.c (__slowexp): Do not
962         define as macro.
963         * sysdeps/x86_64/fpu/multiarch/e_exp-fma.c (__slowexp): Likewise.
964         * sysdeps/x86_64/fpu/multiarch/e_exp-fma4.c (__slowexp): Likewise.
965         * math/Makefile (type-double-routines): Remove slowexp.
966         * manual/probes.texi (slowexp_p6): Remove.
967         (slowexp_p32): Likewise.
969 2017-12-19  Adhemerval Zanella  <adhemerval.zanella@linaro.org>
970             James Clarke <jrtc27@jrtc27.com>
972         [BZ #22603]
973         * sysdeps/ia64/memchr.S (__memchr): Avoid overflow in pointer
974         addition.
976 2017-12-19  Adhemerval Zanella  <adhemerval.zanella@linaro.org>
978         [BZ #22605]
979         * sysdeps/unix/sysv/linux/sh/clone.S (__clone): Fix exit return
980         code.
982 2017-12-19  H.J. Lu  <hongjiu.lu@intel.com>
984         [BZ #22563]
985         * sysdeps/i386/nptl/tcb-offsets.sym (FEATURE_1_OFFSET): New.
986         * sysdeps/i386/nptl/tls.h (tcbhead_t): Add feature_1.
987         * sysdeps/x86_64/nptl/tcb-offsets.sym (FEATURE_1_OFFSET): New.
988         * sysdeps/x86_64/nptl/tls.h (tcbhead_t): Rename __glibc_unused1
989         to feature_1.
991 2017-12-19  H.J. Lu  <hongjiu.lu@intel.com>
993         [BZ #22563]
994         * bits/types/__cancel_jmp_buf_tag.h: New file.
995         * sysdeps/unix/sysv/linux/x86/bits/types/__cancel_jmp_buf_tag.h
996         * sysdeps/unix/sysv/linux/x86/pthreaddef.h: Likewise.
997         * sysdeps/unix/sysv/linux/x86/nptl/pthreadP.h: Likewise.
998         * nptl/Makefile (headers): Add
999         bits/types/__cancel_jmp_buf_tag.h.
1000         * nptl/descr.h [NEED_SAVED_MASK_IN_CANCEL_JMP_BUF]
1001         (pthread_unwind_buf): Add saved_mask to cancel_jmp_buf.
1002         * sysdeps/nptl/pthread.h: Include
1003         <bits/types/__cancel_jmp_buf_tag.h>.
1004         (__pthread_unwind_buf_t): Use struct __cancel_jmp_buf_tag with
1005         __cancel_jmp_buf.
1006         * sysdeps/unix/sysv/linux/hppa/pthread.h: Likewise.
1008 2017-12-18  H.J. Lu  <hongjiu.lu@intel.com>
1010         * scripts/build-many-glibcs.py (Context.add_all_configs): Add
1011         --enable-static-pie variants to x86_64, x32 and i686.
1013 2017-12-19  Joseph Myers  <joseph@codesourcery.com>
1015         [BZ #22631]
1016         * sysdeps/m68k/m680x0/fpu/bits/mathinline.h (__m81_defun): Add
1017         argument for attrubutes.  All callers changed.
1018         (__inline_mathop1): Likewise.  All callers changed.
1019         (__inline_mathop): Likewise.  All callers changed.
1020         [__USE_MISC] (scalbn): Use __inline_forward instead of
1021         __inline_forward_c.
1022         [__USE_ISOC99] (scalbln): Likewise.
1023         [__USE_ISOC99] (nearbyint): Likewise.
1024         [__USE_ISOC99] (lrint): Likewise.
1025         [__USE_MISC] (scalbnf): Likewise.
1026         [__USE_ISOC99] (scalblnf): Likewise.
1027         [__USE_ISOC99] (nearbyintf): Likewise.
1028         [__USE_ISOC99] (lrintf): Likewise.
1029         [__USE_MISC] (scalbnl): Likewise.
1030         [__USE_ISOC99] (scalblnl): Likewise.
1031         [__USE_ISOC99] (nearbyintl): Likewise.
1032         [__USE_ISOC99] (lrintl): Likewise.
1033         * sysdeps/m68k/m680x0/fpu/mathimpl.h: All callers of
1034         __inline_mathop and __m81_defun changed.
1036         * scripts/build-many-glibcs.py (Context.add_all_configs): Specify
1037         CPU or FPU for ARM hard-float configurations.
1039 2017-12-18  Joseph Myers  <joseph@codesourcery.com>
1041         * nptl/tst-attr3.c: Include <libc-diag.h>.
1042         (do_test) [__GNUC_PREREQ (7, 0)]: Ignore -Wrestrict for two tests.
1044         * posix/tst-glob_symlinks.c (do_test): Increase size of buf.
1046         * string/tester.c (test_strncat): Also disable -Warray-bounds
1047         warnings for two tests.
1049 2017-12-18  H.J. Lu  <hongjiu.lu@intel.com>
1051         [BZ #22614]
1052         * Makeconfig (no-pie-ldflag): Set to -no-pie only if
1053         $(cc-pie-default) == yes.
1054         * config.make.in (cc-pie-default): New.
1055         * configure.ac (libc_cv_pie_default): Renamed to ...
1056         (libc_cv_cc_pie_default): This.
1057         (libc_cv_pie_default): Set to $libc_cv_cc_pie_default.
1058         * configure: Regenerated.
1060 2017-12-18  Florian Weimer  <fweimer@redhat.com>
1062         [BZ #20204]
1063         ld.so: Harden dl-libc/libdl hooks.
1064         * sysdeps/generic/ldsodefs.h (_dl_init_all_dirs): Update comment.
1065         (rtld_active): New function.
1066         * dlfcn/dladdr.c (__dladdr): Call it.
1067         * dlfcn/dladdr1.c (__dladdr1): Likewise.
1068         * dlfcn/dlclose.c (__dlcose): Likewise.
1069         * dlfcn/dlerror.c (__dlerror): Likewise.
1070         * dlfcn/dlinfo.c (__dlinfo): Likewise.
1071         * dlfcn/dlmopen.c (__dlmopen): Likewise.
1072         * dlfcn/dlopen.c (__dlopen): Likewise.
1073         * dlfcn/dlopenold.c (__dlopen_nocheck): Likewise.
1074         * dlfcn/dlsym.c (__dlsym): Likewise.
1075         * dlfcn/dlvsym.c (__dlvsym): Likewise.
1076         * libio/vtables.c (_IO_vtable_check): Likewise.
1077         * elf/dl-libc.c (__libc_dlopen_mode, __libc_dlsym)
1078         (__libc_dlclose): Likewise.
1079         * elf/rtld.c (dl_main): Update comment on the _dl_init_all_dirs
1080         assignment.
1082 2017-12-18  Joseph Myers  <joseph@codesourcery.com>
1084         [BZ #22446]
1085         * nscd/connections.c (handle_request) [SO_PEERCRED]: Use separate
1086         buffers for readlink input and output.
1088 2017-12-18  Sergei Trofimovich  <slyfox@gentoo.org>
1090         [BZ #22624]
1091         * sysdeps/mips/setjmp_aux.c (__sigsetjmp_aux): Use
1092         inhibit_stack_protector.
1094         [BZ #22624]
1095         * sysdeps/mips/mips64/setjmp_aux.c (__sigsetjmp_aux): Use
1096         inhibit_stack_protector.
1098 2017-12-18  Dmitry V. Levin  <ldv@altlinux.org>
1100         [BZ #22627]
1101         * elf/dl-load.c (_dl_init_paths): Remove _dl_dst_substitute preparatory
1102         code and invocation.
1104 2017-12-18  Szabolcs Nagy  <szabolcs.nagy@arm.com>
1106         * sysdeps/aarch64/start.S (_start): Handle PIC && !SHARED case.
1108 2017-12-16  Aurelien Jarno  <aurelien@aurel32.net>
1110         [BZ #22505]
1111         * elf/ldconfig.c (main): Call setlocale to force LC_COLLATE to C.
1113 2017-12-16  Rajalakshmi Srinivasaraghavan  <raji@linux.vnet.ibm.com>
1115         * sysdeps/s390/fpu/libm-test-ulps: Update.
1117 2017-12-16  Rajalakshmi Srinivasaraghavan  <raji@linux.vnet.ibm.com>
1119         * sysdeps/powerpc/fpu/libm-test-ulps: Update.
1121 2017-12-16  Rajalakshmi Srinivasaraghavan  <raji@linux.vnet.ibm.com>
1123         * sysdeps/ieee754/flt-32/s_cosf.c: Move reduced() and
1124         constants to s_sincosf.h file.
1125         * sysdeps/ieee754/flt-32/s_sinf.c: Likewise.
1126         * sysdeps/ieee754/flt-32/s_sincosf.c: New
1127         implementation.
1128         * sysdeps/ieee754/flt-32/s_sincosf.h:
1129         New file.
1131 2017-12-12  Carlos O'Donell <carlos@redhat.com>
1133         [BZ #14681]
1134         * elf/tst-leaks1.c (do_test): Call one dlopen with $ORIGIN expansion
1135         before mtrace.
1137 2017-12-15  H.J. Lu  <hongjiu.lu@intel.com>
1139         [BZ #19574]
1140         * INSTALL: Regenerated.
1141         * Makeconfig (real-static-start-installed-name): New.
1142         (pic-default): Updated for --enable-static-pie.
1143         (pie-default): New for --enable-static-pie.
1144         (default-pie-ldflag): Likewise.
1145         (+link-static-before-libc): Replace $(DEFAULT-LDFLAGS-$(@F))
1146         with $(if $($(@F)-no-pie),$(no-pie-ldflag),$(default-pie-ldflag)).
1147         Replace $(static-start-installed-name) with
1148         $(real-static-start-installed-name).
1149         (+prectorT): Updated for --enable-static-pie.
1150         (+postctorT): Likewise.
1151         (CFLAGS-.o): Add $(pie-default).
1152         (CFLAGS-.op): Likewise.
1153         * NEWS: Mention --enable-static-pie.
1154         * config.h.in (ENABLE_STATIC_PIE): New.
1155         * configure.ac (--enable-static-pie): New configure option.
1156         (have-no-dynamic-linker): New LIBC_CONFIG_VAR.
1157         (have-static-pie): Likewise.
1158         Enable static PIE if linker supports --no-dynamic-linker.
1159         (ENABLE_STATIC_PIE): New AC_DEFINE.
1160         (enable-static-pie): New LIBC_CONFIG_VAR.
1161         * configure: Regenerated.
1162         * csu/Makefile (omit-deps): Add r$(start-installed-name) and
1163         gr$(start-installed-name) for --enable-static-pie.
1164         (extra-objs): Likewise.
1165         (install-lib): Likewise.
1166         (extra-objs): Add static-reloc.o and static-reloc.os
1167         ($(objpfx)$(start-installed-name)): Also depend on
1168         $(objpfx)static-reloc.o.
1169         ($(objpfx)r$(start-installed-name)): New.
1170         ($(objpfx)g$(start-installed-name)): Also depend on
1171         $(objpfx)static-reloc.os.
1172         ($(objpfx)gr$(start-installed-name)): New.
1173         * csu/libc-start.c (LIBC_START_MAIN): Call _dl_relocate_static_pie
1174         in libc.a.
1175         * csu/libc-tls.c (__libc_setup_tls): Add main_map->l_addr to
1176         initimage.
1177         * csu/static-reloc.c: New file.
1178         * elf/Makefile (routines): Add dl-reloc-static-pie.
1179         (elide-routines.os): Likewise.
1180         (DEFAULT-LDFLAGS-tst-tls1-static-non-pie): Removed.
1181         (tst-tls1-static-non-pie-no-pie): New.
1182         * elf/dl-reloc-static-pie.c: New file.
1183         * elf/dl-support.c (_dl_get_dl_main_map): New function.
1184         * elf/dynamic-link.h (ELF_DURING_STARTUP): Also check
1185         STATIC_PIE_BOOTSTRAP.
1186         * elf/get-dynamic-info.h (elf_get_dynamic_info): Likewise.
1187         * gmon/Makefile (tests): Add tst-gmon-static-pie.
1188         (tests-static): Likewise.
1189         (DEFAULT-LDFLAGS-tst-gmon-static): Removed.
1190         (tst-gmon-static-no-pie): New.
1191         (CFLAGS-tst-gmon-static-pie.c): Likewise.
1192         (CRT-tst-gmon-static-pie): Likewise.
1193         (tst-gmon-static-pie-ENV): Likewise.
1194         (tests-special): Likewise.
1195         ($(objpfx)tst-gmon-static-pie.out): Likewise.
1196         (clean-tst-gmon-static-pie-data): Likewise.
1197         ($(objpfx)tst-gmon-static-pie-gprof.out): Likewise.
1198         * gmon/tst-gmon-static-pie.c: New file.
1199         * manual/install.texi: Document --enable-static-pie.
1200         * sysdeps/generic/ldsodefs.h (_dl_relocate_static_pie): New.
1201         (_dl_get_dl_main_map): Likewise.
1202         * sysdeps/i386/configure.ac: Check if linker supports static PIE.
1203         * sysdeps/x86_64/configure.ac: Likewise.
1204         * sysdeps/i386/configure: Regenerated.
1205         * sysdeps/x86_64/configure: Likewise.
1206         * sysdeps/mips/Makefile (ASFLAGS-.o): Add $(pie-default).
1207         (ASFLAGS-.op): Likewise.
1209 2017-12-15  Joseph Myers  <joseph@codesourcery.com>
1211         * io/Makefile (tst-open-tmpfile-ARGS): New variable.
1212         * posix/tst-mmap-offset.c (fname): Use /tmp.
1213         * stdlib/tst-setcontext3.sh (tempfile): Use ${objpfx}.
1215 2017-12-15  Steve Ellcey  <sellcey@cavium.com>
1217         * nscd/dbg_log.c (dbg_log): Increase msg buffer size.
1219 2017-12-15  Thomas Schwinge  <thomas@codesourcery.com>
1221         * sysdeps/mach/hurd/dl-sysdep.c (__access_noerrno): Don't set
1222         errno.
1224 2017-12-15  Joseph Myers  <joseph@codesourcery.com>
1226         * scripts/build-many-glibcs.py (Context.add_all_configs): Use
1227         --with-float=hard for arm-linux-gnueabihf configurations.
1229         [BZ #14121]
1230         * po/Makefile (generated): Add $(ALL_LINGUAS:%=%.mo).
1231         (%.mo): Change to $(objpfx)%.mo.  Use $(make-target-directory).
1232         ($(mo-installed)): Use $(objpfx)%.mo.
1233         (realclean): Remove rule.
1235         * po/Makefile (linguas): Remove rule and dependencies.
1236         (linguas.mo): Likewise.
1237         (.PHONY): Do not depend on linguas and linguas.mo.
1238         (podir): Remove variable.
1239         (pofiles): Likewise.
1240         [$(pofiles)] (%.po): Remove rule.
1242         * sysdeps/sparc/sparc32/Makefile
1243         ($(divrem:%=$(sysdep_dir)/sparc/sparc32/%.S)): Do not include
1244         start-of-line whitespace in argument of echo.
1245         * sysdeps/sparc/sparc32/divrem.m4: Avoid generating lines starting
1246         with whitespace.  Generate __wrap_.udiv alias.
1247         * sysdeps/sparc/sparc32/rem.S: Regenerated.
1248         * sysdeps/sparc/sparc32/sdiv.S: Likewise.
1249         * sysdeps/sparc/sparc32/udiv.S: Likewise.
1250         * sysdeps/sparc/sparc32/urem.S: Likewise.
1252 2017-12-15  Rajalakshmi Srinivasaraghavan  <raji@linux.vnet.ibm.com>
1254         * sysdeps/powerpc/powerpc64/power8/strcpy.S: Use vectors
1255         for aligned inputs.
1257 2017-12-14  Siddhesh Poyarekar  <siddhesh@sourceware.org>
1259         * benchtests/bench-strcmp.c: Print output in JSON format.
1261         * elf/dl-tunables.list: Remove redundant SXID_ERASE.
1263 2017-12-14  Florian Weimer  <fweimer@redhat.com>
1265         [BZ #22607]
1266         CVE-2017-1000409
1267         * elf/dl-load.c (_dl_init_paths): Compute number of components in
1268         the expanded path string.
1270 2017-12-14  Florian Weimer  <fweimer@redhat.com>
1272         [BZ #22606]
1273         CVE-2017-1000408
1274         * elf/dl-load.c (system_dirs): Update comment.
1275         (nsystem_dirs_len): Use array_length.
1276         (_dl_init_paths): Use nsystem_dirs_len to compute the array size.
1278 2017-12-14  Florian Weimer  <fweimer@redhat.com>
1280         Simplify compiling most of support/ outside of glibc.
1281         * support/check_addrinfo.c: Include <string.h>.
1282         * support/check_dns_packet.c: Likewise.
1283         * support/check_hostent.c: Likewise.
1284         * support/support_can_chroot.c: Include <support/xunistd.h>.
1285         * support/support_format_addrinfo.c: Include <stdlib.h>
1286         * support/support_format_dns_packet.c: Include <stdbool.h>.
1287         * support/support_format_hostent.c: Include <stdlib.h>.
1288         * support/support_format_netent.c: Likewise.
1289         * support/support_write_string.c: Include <support/xunistd.h>.
1290         * support/xdlfcn.c: Include <stddef.h>.
1292 2017-12-14  H.J. Lu  <hongjiu.lu@intel.com>
1294         * sysdeps/x86_64/fpu/s_cosf.S: Removed.
1296 2017-12-14  Patrick McGehearty  <patrick.mcgehearty@oracle.com>
1297             Adhemerval Zanella  <adhemerval.zanella@linaro.org>
1299         * sysdeps/sparc/sparc32/sparcv9/multiarch/Makefile
1300         (sysdeps_routines): Add memset-niagara7.
1301         * sysdeps/sparc/sparc64/multiarch/Makefile (sysdes_rotuines):
1302         Likewise.
1303         * sysdeps/sparc/sparc32/sparcv9/multiarch/memset-niagara7.S: New
1304         file.
1305         * sysdeps/sparc/sparc64/multiarch/memset-niagara7.S: Likewise.
1306         * sysdeps/sparc/sparc64/multiarch/ifunc-impl-list.c
1307         (__libc_ifunc_impl_list): Add __bzero_niagara7 and __memset_niagara7.
1308         * sysdeps/sparc/sparc64/multiarch/ifunc-memset.h (IFUNC_SELECTOR):
1309         Add niagara7 option.
1310         * NEWS: Mention sparc m7 optimized memcpy, mempcpy, memmove, and
1311         memset.
1313         * sysdeps/sparc/sparc32/sparcv9/multiarch/Makefile
1314         (sysdeps_routines): Add memcpy-memmove-niagara7 and memmove-ultra1.
1315         * sysdeps/sparc/sparc64/multiarch/Makefile (sysdeps_routines):
1316         Likewise.
1317         * sysdeps/sparc/sparc32/sparcv9/multiarch/memcpy-memmove-niagara7.S:
1318         New file.
1319         * sysdeps/sparc/sparc32/sparcv9/multiarch/memmove-ultra1.S: Likewise.
1320         * sysdeps/sparc/sparc32/sparcv9/multiarch/rtld-memmove.c: Likewise.
1321         * sysdeps/sparc/sparc64/multiarch/ifunc-impl-list.c
1322         (__libc_ifunc_impl_list): Add __memcpy_niagara7, __mempcpy_niagara7,
1323         and __memmove_niagara7.
1324         * sysdeps/sparc/sparc64/multiarch/ifunc-memcpy.h (IFUNC_SELECTOR):
1325         Add niagara7 option.
1326         * sysdeps/sparc/sparc64/multiarch/memmove.c: New file.
1327         * sysdeps/sparc/sparc64/multiarch/ifunc-memmove.h: Likewise.
1328         * sysdeps/sparc/sparc64/multiarch/memcpy-memmove-niagara7.S: Likewise.
1329         * sysdeps/sparc/sparc64/multiarch/memmove-ultra1.S: Likewise.
1330         * sysdeps/sparc/sparc64/multiarch/rtld-memmove.c: Likewise.
1332 2017-12-14  Jose E. Marchesi  <jose.marchesi@oracle.com>
1334         * sysdeps/sparc/sparc32/sparcv9/memmove.S: New file.
1335         * sysdeps/sparc/sparc32/sparcv9/rtld-memmove.c: Likewise.
1336         * sysdeps/sparc/sparc64/memmove.S: Likewise.
1337         * sysdeps/sparc/sparc64/rtld-memmove.c: Likewise.
1339         * sysdeps/sparc/bits/hwcap.h (HWCAP_SPARC_ADP): Defined.
1340         * sysdeps/sparc/dl-procinfo.c: Added "adp" to the
1341         _dl_sparc_cap_flags array.
1342         * sysdeps/sparc/dl-procinfo.h (_DL_HWCAP_COUNT): Increment.
1344 2017-12-13  Siddhesh Poyarekar  <siddhesh@sourceware.org>
1346         * sysdeps/aarch64/strcmp.S (misaligned8): Compare dword at a
1347         time whenever possible.
1349 2017-12-12  Carlos O'Donell <carlos@redhat.com>
1351         * elf/Makefile [$(nss-crypt)$(static-nss-crypt) == yesno]
1352         (CFLAGS-tst-linkall-static.c): Undefine USE_CRYPT first.
1354 2017-12-12  Joseph Myers  <joseph@codesourcery.com>
1356         * soft-fp/fmadf4.c: Move to ....
1357         * sysdeps/ieee754/soft-fp/s_fma.c: ... here.
1358         * soft-fp/fmasf4.c: Move to ....
1359         * sysdeps/ieee754/soft-fp/s_fmaf.c: ... here.
1360         * soft-fp/fmatf4.c: Move to ....
1361         * sysdeps/ieee754/soft-fp/s_fmal.c: ... here.
1362         * sysdeps/ieee754/soft-fp/Makefile: New file.
1363         * sysdeps/arm/preconfigure.ac: Define with_fp_cond.
1364         * sysdeps/arm/preconfigure: Regenerated.
1365         * sysdeps/arm/nofpu/Implies: New file.
1366         * sysdeps/arm/s_fma.c: Remove file.
1367         * sysdeps/arm/s_fmaf.c: Likewise.
1368         * sysdeps/m68k/coldfire/nofpu/Implies: New file.
1369         * sysdeps/m68k/coldfire/nofpu/s_fma.c: Remove file.
1370         * sysdeps/m68k/coldfire/nofpu/s_fmaf.c: Likewise.
1371         * sysdeps/microblaze/Implies: Add ieee754/soft-fp.
1372         * sysdeps/microblaze/s_fma.c: Remove file.
1373         * sysdeps/microblaze/s_fmaf.c: Likewise.
1374         * sysdeps/mips/mips32/nofpu/Implies: New file.
1375         * sysdeps/mips/mips64/n32/fpu/s_fma.c: Likewise.
1376         * sysdeps/mips/mips64/n32/nofpu/Implies: Likewise.
1377         * sysdeps/mips/mips64/n64/fpu/s_fma.c: Likewise.
1378         * sysdeps/mips/mips64/n64/nofpu/Implies: Likewise.
1379         * sysdeps/mips/ieee754/s_fma.c: Remove file.
1380         * sysdeps/mips/ieee754/s_fmaf.c: Likewise.
1381         * sysdeps/mips/ieee754/s_fmal.c: Update include for move of fmal
1382         implementation.
1383         * sysdeps/nios2/Implies: Add ieee754/soft-fp.
1384         * sysdeps/nios2/s_fma.c: Remove file.
1385         * sysdeps/nios2/s_fmaf.c: Likewise.
1386         * sysdeps/sh/nofpu/Implies: New file.
1387         * sysdeps/sh/s_fma.c: Remove file.
1388         * sysdeps/sh/s_fmaf.c: Likewise.
1389         * sysdeps/tile/Implies: Add ieee754/soft-fp.
1390         * sysdeps/tile/s_fma.c: Remove file.
1391         * sysdeps/tile/s_fmaf.c: Likewise.
1393 2017-12-12  H.J. Lu  <hongjiu.lu@intel.com>
1395         * sysdeps/x86_64/fpu/multiarch/Makefile (libm-sysdep_routines):
1396         Add s_cosf-sse2 and s_cosf-fma.
1397         (CFLAGS-s_cosf-fma.c): New.
1398         * sysdeps/x86_64/fpu/multiarch/s_cosf-fma.c: New file.
1399         * sysdeps/x86_64/fpu/multiarch/s_cosf-sse2.c: Likewise.
1400         * sysdeps/x86_64/fpu/multiarch/s_cosf.c: Likewise.
1402 2017-12-12  Steve Ellcey  <sellcey@cavium.com>
1404         * nscd/nscd.h (init_traced_file): Change strncpy to memcpy.
1406 2017-12-12  Adhemerval Zanella  <adhemerval.zanella@linaro.org>
1408         * libio/Makefile (tests): Add tst-bz22415.
1409         (tst-bz22415-ENV): New rule.
1410         (generated): Add tst-bz22415.mtrace and tst-bz22415.check.
1411         (tests-special): Add tst-bz22415-mem.out.
1412         ($(objpfx)tst-bz22415-mem.out): New rule.
1413         * libio/fileops.c (_IO_new_file_seekoff): Call _IO_free_backup_area
1414         in case of a successful seek operation.
1415         * libio/wfileops.c (_IO_wfile_seekoff): Likewise.
1416         (_IO_wfile_overflow): Call _IO_free_wbackup_area in case a write
1417         buffer is required.
1418         * libio/tst-bz22415.c: New test.
1420         * sysdeps/ia64/fpu/libm-test-ulps: Update.
1422 2017-12-12  James Clarke <jrtc27@jrtc27.com>
1424         * sysdeps/unix/sysv/linux/ia64/ipc_priv.h: New file defining
1425         __IPC_64 to 0 to avoid IPC_64 being set.
1427 2017-12-12  Szabolcs Nagy  <szabolcs.nagy@arm.com>
1429         [BZ #22593]
1430         * math/bits/mathcalls.h (nextafter): Remove const.
1431         (nexttoward): Likewise.
1433 2017-12-12  Joseph Myers  <joseph@codesourcery.com>
1435         * configure.ac (--with-fp): Remove configure option.
1436         (with_fp_cond): New variable.
1437         (libc_cv_with_fp): New configure test.  Use this variable instead
1438         of with_fp.
1439         * configure: Regenerated.
1440         * config.make.in (with-fp): Use @libc_cv_with_fp@.
1441         * manual/install.texi (Configuring and compiling): Remove
1442         --without-fp.
1443         * INSTALL: Regenerated.
1444         * sysdeps/m68k/preconfigure (with_fp_cond): Define for ColdFire.
1445         * sysdeps/mips/preconfigure (with_fp_cond): Define.
1446         * sysdeps/powerpc/preconfigure (with_fp_cond): Define for 32-bit.
1447         * sysdeps/sh/preconfigure (with_fp_cond): Define.
1448         * scripts/build-many-glibcs.py (Context.add_all_configs): Do not
1449         use --without-fp to configure glibc.
1451 2017-12-12  Rical Jasan  <ricaljasan@pacific.net>
1453         * manual/locale.texi (nl_langinfo): Fix a typo.
1455 2017-12-12  Aurelien Jarno <aurelien@aurel32.net>
1457         [BZ #22588]
1458         * manual/conf.texi (SC_SSIZE_MAX): Rename into _SC_SSIZE_MAX.
1460 2017-12-11  H.J. Lu  <hongjiu.lu@intel.com>
1462         * argp/Makefile (CFLAGS-argp-help.c): Replace = with +=.
1463         (CFLAGS-argp-parse.c): Likewise.
1464         (CFLAGS-argp-fmtstream.c): Likewise.
1465         * crypt/Makefile (CPPFLAGS-sha256-crypt.c): Likewise.
1466         (CPPFLAGS-sha512-crypt.c): Likewise.
1467         (CPPFLAGS-md5-crypt.c): Likewise.
1468         * debug/Makefile (CFLAGS-stack_chk_fail.c): Likewise.
1469         (CFLAGS-stack_chk_fail_local.c): Likewise.
1470         (CFLAGS-backtrace.c): Likewise.
1471         (CFLAGS-sprintf_chk.c): Likewise.
1472         (CFLAGS-snprintf_chk.c): Likewise.
1473         (CFLAGS-vsprintf_chk.c): Likewise.
1474         (CFLAGS-vsnprintf_chk.c): Likewise.
1475         (CFLAGS-asprintf_chk.c): Likewise.
1476         (CFLAGS-vasprintf_chk.c): Likewise.
1477         (CFLAGS-obprintf_chk.c): Likewise.
1478         (CFLAGS-dprintf_chk.c): Likewise.
1479         (CFLAGS-vdprintf_chk.c): Likewise.
1480         (CFLAGS-printf_chk.c): Likewise.
1481         (CFLAGS-fprintf_chk.c): Likewise.
1482         (CFLAGS-vprintf_chk.c): Likewise.
1483         (CFLAGS-vfprintf_chk.c): Likewise.
1484         (CFLAGS-gets_chk.c): Likewise.
1485         (CFLAGS-fgets_chk.c): Likewise.
1486         (CFLAGS-fgets_u_chk.c): Likewise.
1487         (CFLAGS-fread_chk.c): Likewise.
1488         (CFLAGS-fread_u_chk.c): Likewise.
1489         (CFLAGS-swprintf_chk.c): Likewise.
1490         (CFLAGS-vswprintf_chk.c): Likewise.
1491         (CFLAGS-wprintf_chk.c): Likewise.
1492         (CFLAGS-fwprintf_chk.c): Likewise.
1493         (CFLAGS-vwprintf_chk.c): Likewise.
1494         (CFLAGS-vfwprintf_chk.c): Likewise.
1495         (CFLAGS-fgetws_chk.c): Likewise.
1496         (CFLAGS-fgetws_u_chk.c): Likewise.
1497         (CFLAGS-read_chk.c): Likewise.
1498         (CFLAGS-pread_chk.c): Likewise.
1499         (CFLAGS-pread64_chk.c): Likewise.
1500         (CFLAGS-recv_chk.c): Likewise.
1501         (CFLAGS-recvfrom_chk.c): Likewise.
1502         (CFLAGS-tst-longjmp_chk.c): Likewise.
1503         (CPPFLAGS-tst-longjmp_chk.c): Likewise.
1504         (CFLAGS-tst-longjmp_chk2.c): Likewise.
1505         (CPPFLAGS-tst-longjmp_chk2.c): Likewise.
1506         (CFLAGS-tst-longjmp_chk3.c): Likewise.
1507         (CPPFLAGS-tst-longjmp_chk3.c): Likewise.
1508         (CFLAGS-tst-chk1.c): Likewise.
1509         (CFLAGS-tst-chk2.c): Likewise.
1510         (CFLAGS-tst-chk3.c): Likewise.
1511         (CFLAGS-tst-chk4.cc): Likewise.
1512         (CFLAGS-tst-chk5.cc): Likewise.
1513         (CFLAGS-tst-chk6.cc): Likewise.
1514         (CFLAGS-tst-lfschk1.c): Likewise.
1515         (CFLAGS-tst-lfschk2.c): Likewise.
1516         (CFLAGS-tst-lfschk3.c): Likewise.
1517         (CFLAGS-tst-lfschk4.cc): Likewise.
1518         (CFLAGS-tst-lfschk5.cc): Likewise.
1519         (CFLAGS-tst-lfschk6.cc): Likewise.
1520         (CFLAGS-tst-ssp-1.c): Likewise.
1521         * dirent/Makefile (CFLAGS-scandir.c): Likewise.
1522         (CFLAGS-scandir64.c): Likewise.
1523         (CFLAGS-scandir-tail.c): Likewise.
1524         (CFLAGS-scandir64-tail.c): Likewise.
1525         * elf/Makefile (CPPFLAGS-dl-tunables.c): Likewise.
1526         (CFLAGS-dl-tunables.c): Likewise.
1527         (CFLAGS-dl-runtime.c): Likewise.
1528         (CFLAGS-dl-lookup.c): Likewise.
1529         (CFLAGS-dl-iterate-phdr.c): Likewise.
1530         (CFLAGS-vismain.c): Likewise.
1531         (CFLAGS-tst-linkall-static.c): Likewise.
1532         (CFLAGS-tst-linkall-static.c): Likewise.
1533         (CPPFLAGS-dl-load.c): Likewise.
1534         (CFLAGS-ldconfig.c): Likewise.
1535         (CFLAGS-dl-cache.c): Likewise.
1536         (CFLAGS-cache.c): Likewise.
1537         (CFLAGS-rtld.c): Likewise.
1538         (CFLAGS-multiload.c): Likewise.
1539         (CFLAGS-filtmod1.c): Likewise.
1540         (CFLAGS-tst-align.c): Likewise.
1541         (CFLAGS-tst-align2.c): Likewise.
1542         (CFLAGS-tst-alignmod.c): Likewise.
1543         (CFLAGS-tst-alignmod2.c): Likewise.
1544         (CPPFLAGS-tst-execstack.c): Likewise.
1545         (CFLAGS-tst-ptrguard1-static.c): Likewise.
1546         (CFLAGS-tst-latepthreadmod.c): Likewise.
1547         * grp/Makefile (CFLAGS-getgrgid_r.c): Likewise.
1548         (CFLAGS-getgrnam_r.c): Likewise.
1549         (CFLAGS-getgrent_r.c): Likewise.
1550         (CFLAGS-getgrent.c): Likewise.
1551         (CFLAGS-fgetgrent.c): Likewise.
1552         (CFLAGS-fgetgrent_r.c): Likewise.
1553         (CFLAGS-putgrent.c): Likewise.
1554         (CFLAGS-initgroups.c): Likewise.
1555         (CFLAGS-getgrgid.c): Likewise.
1556         * gshadow/Makefile (CFLAGS-getsgent_r.c): Likewise.
1557         (CFLAGS-getsgent.c): Likewise.
1558         (CFLAGS-fgetsgent.c): Likewise.
1559         (CFLAGS-fgetsgent_r.c): Likewise.
1560         (CFLAGS-putsgent.c): Likewise.
1561         (CFLAGS-getsgnam.c): Likewise.
1562         (CFLAGS-getsgnam_r.c): Likewise.
1563         * iconv/Makefile (CFLAGS-iconv_prog.c): Likewise.
1564         (CFLAGS-iconv_charmap.c): Likewise.
1565         (CFLAGS-dummy-repertoire.c): Likewise.
1566         (CFLAGS-charmap.c): Likewise.
1567         (CFLAGS-linereader.c): Likewise.
1568         (CFLAGS-simple-hash.c): Likewise.
1569         (CFLAGS-gconv_conf.c): Likewise.
1570         (CFLAGS-iconvconfig.c): Likewise.
1571         * inet/Makefile (CFLAGS-gethstbyad_r.c): Likewise.
1572         (CFLAGS-gethstbyad.c): Likewise.
1573         (CFLAGS-gethstbynm_r.c): Likewise.
1574         (CFLAGS-gethstbynm.c): Likewise.
1575         (CFLAGS-gethstbynm2_r.c): Likewise.
1576         (CFLAGS-gethstbynm2.c): Likewise.
1577         (CFLAGS-gethstent_r.c): Likewise.
1578         (CFLAGS-gethstent.c): Likewise.
1579         (CFLAGS-rcmd.c): Likewise.
1580         (CFLAGS-getnetbynm_r.c): Likewise.
1581         (CFLAGS-getnetbynm.c): Likewise.
1582         (CFLAGS-getnetbyad_r.c): Likewise.
1583         (CFLAGS-getnetbyad.c): Likewise.
1584         (CFLAGS-getnetent_r.c): Likewise.
1585         (CFLAGS-getnetent.c): Likewise.
1586         (CFLAGS-getaliasent_r.c): Likewise.
1587         (CFLAGS-getaliasent.c): Likewise.
1588         (CFLAGS-getrpcent_r.c): Likewise.
1589         (CFLAGS-getrpcent.c): Likewise.
1590         (CFLAGS-getservent_r.c): Likewise.
1591         (CFLAGS-getservent.c): Likewise.
1592         (CFLAGS-getprtent_r.c): Likewise.
1593         (CFLAGS-getprtent.c): Likewise.
1594         (CFLAGS-either_ntoh.c): Likewise.
1595         (CFLAGS-either_hton.c): Likewise.
1596         (CFLAGS-getnetgrent.c): Likewise.
1597         (CFLAGS-getnetgrent_r.c): Likewise.
1598         (CFLAGS-tst-checks-posix.c): Likewise.
1599         (CFLAGS-tst-sockaddr.c): Likewise.
1600         * intl/Makefile (CFLAGS-tst-gettext.c): Likewise.
1601         (CFLAGS-tst-translit.c): Likewise.
1602         (CFLAGS-tst-gettext2.c): Likewise.
1603         (CFLAGS-tst-codeset.c): Likewise.
1604         (CFLAGS-tst-gettext3.c): Likewise.
1605         (CFLAGS-tst-gettext4.c): Likewise.
1606         (CFLAGS-tst-gettext5.c): Likewise.
1607         (CFLAGS-tst-gettext6.c): Likewise.
1608         * io/Makefile (CFLAGS-open.c): Likewise.
1609         (CFLAGS-open64.c): Likewise.
1610         (CFLAGS-creat.c): Likewise.
1611         (CFLAGS-creat64.c): Likewise.
1612         (CFLAGS-fcntl.c): Likewise.
1613         (CFLAGS-poll.c): Likewise.
1614         (CFLAGS-ppoll.c): Likewise.
1615         (CFLAGS-lockf.c): Likewise.
1616         (CFLAGS-statfs.c): Likewise.
1617         (CFLAGS-fstatfs.c): Likewise.
1618         (CFLAGS-statvfs.c): Likewise.
1619         (CFLAGS-fstatvfs.c): Likewise.
1620         (CFLAGS-fts.c): Likewise.
1621         (CFLAGS-fts64.c): Likewise.
1622         (CFLAGS-ftw.c): Likewise.
1623         (CFLAGS-ftw64.c): Likewise.
1624         (CFLAGS-lockf.c): Likewise.
1625         (CFLAGS-posix_fallocate.c): Likewise.
1626         (CFLAGS-posix_fallocate64.c): Likewise.
1627         (CFLAGS-fallocate.c): Likewise.
1628         (CFLAGS-fallocate64.c): Likewise.
1629         (CFLAGS-read.c): Likewise.
1630         (CFLAGS-write.c): Likewise.
1631         (CFLAGS-test-stat.c): Likewise.
1632         (CFLAGS-test-lfs.c): Likewise.
1633         * libio/Makefile (CFLAGS-fileops.c): Likewise.
1634         (CFLAGS-fputc.c): Likewise.
1635         (CFLAGS-fputwc.c): Likewise.
1636         (CFLAGS-freopen64.c): Likewise.
1637         (CFLAGS-freopen.c): Likewise.
1638         (CFLAGS-fseek.c): Likewise.
1639         (CFLAGS-fseeko64.c): Likewise.
1640         (CFLAGS-fseeko.c): Likewise.
1641         (CFLAGS-ftello64.c): Likewise.
1642         (CFLAGS-ftello.c): Likewise.
1643         (CFLAGS-fwide.c): Likewise.
1644         (CFLAGS-genops.c): Likewise.
1645         (CFLAGS-getc.c): Likewise.
1646         (CFLAGS-getchar.c): Likewise.
1647         (CFLAGS-getwc.c): Likewise.
1648         (CFLAGS-getwchar.c): Likewise.
1649         (CFLAGS-iofclose.c): Likewise.
1650         (CFLAGS-iofflush.c): Likewise.
1651         (CFLAGS-iofgetpos64.c): Likewise.
1652         (CFLAGS-iofgetpos.c): Likewise.
1653         (CFLAGS-iofgets.c): Likewise.
1654         (CFLAGS-iofgetws.c): Likewise.
1655         (CFLAGS-iofputs.c): Likewise.
1656         (CFLAGS-iofputws.c): Likewise.
1657         (CFLAGS-iofread.c): Likewise.
1658         (CFLAGS-iofsetpos64.c): Likewise.
1659         (CFLAGS-iofsetpos.c): Likewise.
1660         (CFLAGS-ioftell.c): Likewise.
1661         (CFLAGS-iofwrite.c): Likewise.
1662         (CFLAGS-iogetdelim.c): Likewise.
1663         (CFLAGS-iogetline.c): Likewise.
1664         (CFLAGS-iogets.c): Likewise.
1665         (CFLAGS-iogetwline.c): Likewise.
1666         (CFLAGS-ioputs.c): Likewise.
1667         (CFLAGS-ioseekoff.c): Likewise.
1668         (CFLAGS-ioseekpos.c): Likewise.
1669         (CFLAGS-iosetbuffer.c): Likewise.
1670         (CFLAGS-iosetvbuf.c): Likewise.
1671         (CFLAGS-ioungetc.c): Likewise.
1672         (CFLAGS-ioungetwc.c): Likewise.
1673         (CFLAGS-oldfileops.c): Likewise.
1674         (CFLAGS-oldiofclose.c): Likewise.
1675         (CFLAGS-oldiofgetpos64.c): Likewise.
1676         (CFLAGS-oldiofgetpos.c): Likewise.
1677         (CFLAGS-oldiofsetpos64.c): Likewise.
1678         (CFLAGS-oldiofsetpos.c): Likewise.
1679         (CFLAGS-peekc.c): Likewise.
1680         (CFLAGS-putc.c): Likewise.
1681         (CFLAGS-putchar.c): Likewise.
1682         (CFLAGS-putwc.c): Likewise.
1683         (CFLAGS-putwchar.c): Likewise.
1684         (CFLAGS-rewind.c): Likewise.
1685         (CFLAGS-wfileops.c): Likewise.
1686         (CFLAGS-wgenops.c): Likewise.
1687         (CFLAGS-oldiofopen.c): Likewise.
1688         (CFLAGS-iofopen.c): Likewise.
1689         (CFLAGS-iofopen64.c): Likewise.
1690         (CFLAGS-oldtmpfile.c): Likewise.
1691         (CFLAGS-tst_putwc.c): Likewise.
1692         * locale/Makefile (CFLAGS-md5.c): Likewise.
1693         (CFLAGS-charmap.c): Likewise.
1694         (CFLAGS-locfile.c): Likewise.
1695         (CFLAGS-charmap-dir.c): Likewise.
1696         * login/Makefile (CFLAGS-grantpt.c): Likewise.
1697         (CFLAGS-getpt.c): Likewise.
1698         (CFLAGS-pt_chown.c): Likewise.
1699         * malloc/Makefile (CFLAGS-mcheck-init.c): Likewise.
1700         (CFLAGS-obstack.c): Likewise.
1701         * math/Makefile (CFLAGS-test-tgmath3.c): Likewise.
1702         (CFLAGS-test-double-vlen4-wrappers.c): Likewise.
1703         (CFLAGS-test-double-vlen8-wrappers.c): Likewise.
1704         (CFLAGS-test-float-vlen8-wrappers.c): Likewise.
1705         (CFLAGS-test-float-vlen16-wrappers.c): Likewise.
1706         (CFLAGS-test-tgmath.c): Likewise.
1707         (CFLAGS-test-tgmath2.c): Likewise.
1708         (CFLAGS-test-tgmath-ret.c): Likewise.
1709         (CFLAGS-test-powl.c): Likewise.
1710         (CFLAGS-test-snan.c): Likewise.
1711         (CFLAGS-test-signgam-finite.c): Likewise.
1712         (CFLAGS-test-signgam-finite-c99.c): Likewise.
1713         (CFLAGS-test-signgam-finite-c11.c): Likewise.
1714         (CFLAGS-test-signgam-uchar.c): Likewise.
1715         (CFLAGS-test-signgam-uchar-init.c): Likewise.
1716         (CFLAGS-test-signgam-uchar-static.c): Likewise.
1717         (CFLAGS-test-signgam-uchar-init-static.c): Likewise.
1718         (CFLAGS-test-signgam-uint.c): Likewise.
1719         (CFLAGS-test-signgam-uint-init.c): Likewise.
1720         (CFLAGS-test-signgam-uint-static.c): Likewise.
1721         (CFLAGS-test-signgam-uint-init-static.c): Likewise.
1722         (CFLAGS-test-signgam-ullong.c): Likewise.
1723         (CFLAGS-test-signgam-ullong-init.c): Likewise.
1724         (CFLAGS-test-signgam-ullong-static.c): Likewise.
1725         (CFLAGS-test-signgam-ullong-init-static.c): Likewise.
1726         (CFLAGS-test-math-cxx11.cc): Likewise.
1727         (CFLAGS-test-math-isinff.cc): Likewise.
1728         (CFLAGS-test-math-iszero.cc): Likewise.
1729         (CFLAGS-test-math-issignaling.cc): Likewise.
1730         (CFLAGS-test-math-iscanonical.cc): Likewise.
1731         (CFLAGS-test-iszero-excess-precision.c): Likewise.
1732         (CFLAGS-test-iseqsig-excess-precision.c): Likewise.
1733         (CFLAGS-test-flt-eval-method.c): Likewise.
1734         (CFLAGS-test-fe-snans-always-signal.c): Likewise.
1735         (CFLAGS-test-finite-macros.c): Likewise.
1736         * misc/Makefile (CFLAGS-select.c): Likewise.
1737         (CFLAGS-tsearch.c): Likewise.
1738         (CFLAGS-lsearch.c): Likewise.
1739         (CFLAGS-pselect.c): Likewise.
1740         (CFLAGS-readv.c): Likewise.
1741         (CFLAGS-writev.c): Likewise.
1742         (CFLAGS-preadv.c): Likewise.
1743         (CFLAGS-preadv64.c): Likewise.
1744         (CFLAGS-pwritev.c): Likewise.
1745         (CFLAGS-pwritev64.c): Likewise.
1746         (CFLAGS-preadv2.c): Likewise.
1747         (CFLAGS-preadv64v2.c): Likewise.
1748         (CFLAGS-pwritev2.c): Likewise.
1749         (CFLAGS-pwritev64v2.c): Likewise.
1750         (CFLAGS-usleep.c): Likewise.
1751         (CFLAGS-syslog.c): Likewise.
1752         (CFLAGS-error.c): Likewise.
1753         (CFLAGS-getpass.c): Likewise.
1754         (CFLAGS-mkstemp.c): Likewise.
1755         (CFLAGS-mkstemp64.c): Likewise.
1756         (CFLAGS-getsysstats.c): Likewise.
1757         (CFLAGS-getusershell.c): Likewise.
1758         (CFLAGS-err.c): Likewise.
1759         (CFLAGS-tst-tsearch.c): Likewise.
1760         (CFLAGS-msync.c): Likewise.
1761         (CFLAGS-fdatasync.c): Likewise.
1762         (CFLAGS-fsync.c): Likewise.
1763         * nptl/Makefile (CFLAGS-nptl-init.c): Likewise.
1764         (CFLAGS-unwind.c): Likewise.
1765         (CFLAGS-unwind-forcedunwind.c): Likewise.
1766         (CFLAGS-pthread_cancel.c): Likewise.
1767         (CFLAGS-pthread_setcancelstate.c): Likewise.
1768         (CFLAGS-pthread_setcanceltype.c): Likewise.
1769         (CFLAGS-cancellation.c): Likewise.
1770         (CFLAGS-libc-cancellation.c): Likewise.
1771         (CFLAGS-pthread_exit.c): Likewise.
1772         (CFLAGS-forward.c): Likewise.
1773         (CFLAGS-pthread_testcancel.c): Likewise.
1774         (CFLAGS-pthread_join.c): Likewise.
1775         (CFLAGS-pthread_timedjoin.c): Likewise.
1776         (CFLAGS-pthread_once.c): Likewise.
1777         (CFLAGS-pthread_cond_wait.c): Likewise.
1778         (CFLAGS-sem_wait.c): Likewise.
1779         (CFLAGS-sem_timedwait.c): Likewise.
1780         (CFLAGS-fcntl.c): Likewise.
1781         (CFLAGS-lockf.c): Likewise.
1782         (CFLAGS-pread.c): Likewise.
1783         (CFLAGS-pread64.c): Likewise.
1784         (CFLAGS-pwrite.c): Likewise.
1785         (CFLAGS-pwrite64.c): Likewise.
1786         (CFLAGS-wait.c): Likewise.
1787         (CFLAGS-waitpid.c): Likewise.
1788         (CFLAGS-sigwait.c): Likewise.
1789         (CFLAGS-msgrcv.c): Likewise.
1790         (CFLAGS-msgsnd.c): Likewise.
1791         (CFLAGS-tcdrain.c): Likewise.
1792         (CFLAGS-open.c): Likewise.
1793         (CFLAGS-open64.c): Likewise.
1794         (CFLAGS-pause.c): Likewise.
1795         (CFLAGS-recv.c): Likewise.
1796         (CFLAGS-send.c): Likewise.
1797         (CFLAGS-accept.c): Likewise.
1798         (CFLAGS-sendto.c): Likewise.
1799         (CFLAGS-connect.c): Likewise.
1800         (CFLAGS-recvfrom.c): Likewise.
1801         (CFLAGS-recvmsg.c): Likewise.
1802         (CFLAGS-sendmsg.c): Likewise.
1803         (CFLAGS-close.c): Likewise.
1804         (CFLAGS-read.c): Likewise.
1805         (CFLAGS-write.c): Likewise.
1806         (CFLAGS-nanosleep.c): Likewise.
1807         (CFLAGS-sigsuspend.c): Likewise.
1808         (CFLAGS-msync.c): Likewise.
1809         (CFLAGS-fdatasync.c): Likewise.
1810         (CFLAGS-fsync.c): Likewise.
1811         (CFLAGS-pt-system.c): Likewise.
1812         (CFLAGS-tst-cleanup2.c): Likewise.
1813         (CFLAGS-tst-cleanupx2.c): Likewise.
1814         (CFLAGS-flockfile.c): Likewise.
1815         (CFLAGS-ftrylockfile.c): Likewise.
1816         (CFLAGS-funlockfile.c): Likewise.
1817         (CFLAGS-tst-initializers1.c): Likewise.
1818         (CFLAGS-tst-initializers1-c89.c): Likewise.
1819         (CFLAGS-tst-initializers1-c99.c): Likewise.
1820         (CFLAGS-tst-initializers1-c11.c): Likewise.
1821         (CFLAGS-tst-initializers1-gnu89.c): Likewise.
1822         (CFLAGS-tst-initializers1-gnu99.c): Likewise.
1823         (CFLAGS-tst-initializers1-gnu11.c): Likewise.
1824         * nscd/Makefile (CFLAGS-nscd_getpw_r.c): Likewise.
1825         (CFLAGS-nscd_getgr_r.c): Likewise.
1826         (CFLAGS-nscd_gethst_r.c): Likewise.
1827         (CFLAGS-nscd_getai.c): Likewise.
1828         (CFLAGS-nscd_initgroups.c): Likewise.
1829         * posix/Makefile (CFLAGS-getaddrinfo.c): Likewise.
1830         (CFLAGS-pause.c): Likewise.
1831         (CFLAGS-pread.c): Likewise.
1832         (CFLAGS-pread64.c): Likewise.
1833         (CFLAGS-pwrite.c): Likewise.
1834         (CFLAGS-pwrite64.c): Likewise.
1835         (CFLAGS-sleep.c): Likewise.
1836         (CFLAGS-wait.c): Likewise.
1837         (CFLAGS-waitid.c): Likewise.
1838         (CFLAGS-waitpid.c): Likewise.
1839         (CFLAGS-getopt.c): Likewise.
1840         (CFLAGS-wordexp.c): Likewise.
1841         (CFLAGS-sysconf.c): Likewise.
1842         (CFLAGS-pathconf.c): Likewise.
1843         (CFLAGS-fpathconf.c): Likewise.
1844         (CFLAGS-spawn.c): Likewise.
1845         (CFLAGS-spawnp.c): Likewise.
1846         (CFLAGS-spawni.c): Likewise.
1847         (CFLAGS-glob.c): Likewise.
1848         (CFLAGS-glob64.c): Likewise.
1849         (CFLAGS-getconf.c): Likewise.
1850         (CFLAGS-nanosleep.c): Likewise.
1851         * pwd/Makefile (CFLAGS-getpwent_r.c): Likewise.
1852         (CFLAGS-getpwent.c): Likewise.
1853         (CFLAGS-getpw.c): Likewise.
1854         (CFLAGS-fgetpwent_r.c): Likewise.
1855         * resolv/Makefile (CFLAGS-res_hconf.c): Likewise.
1856         * rt/Makefile (CFLAGS-aio_suspend.c): Likewise.
1857         (CFLAGS-mq_timedreceive.c): Likewise.
1858         (CFLAGS-mq_timedsend.c): Likewise.
1859         (CFLAGS-clock_nanosleep.c): Likewise.
1860         (CFLAGS-librt-cancellation.c): Likewise.
1861         * shadow/Makefile (CFLAGS-getspent_r.c): Likewise.
1862         (CFLAGS-getspent.c): Likewise.
1863         (CFLAGS-fgetspent.c): Likewise.
1864         (CFLAGS-fgetspent_r.c): Likewise.
1865         (CFLAGS-putspent.c): Likewise.
1866         (CFLAGS-getspnam.c): Likewise.
1867         (CFLAGS-getspnam_r.c): Likewise.
1868         * signal/Makefile (CFLAGS-sigpause.c): Likewise.
1869         (CFLAGS-sigsuspend.c): Likewise.
1870         (CFLAGS-sigtimedwait.c): Likewise.
1871         (CFLAGS-sigwait.c): Likewise.
1872         (CFLAGS-sigwaitinfo.c): Likewise.
1873         (CFLAGS-sigreturn.c): Likewise.
1874         * stdio-common/Makefile (CFLAGS-vfprintf.c): Likewise.
1875         (CFLAGS-vfwprintf.c): Likewise.
1876         (CFLAGS-tmpfile.c): Likewise.
1877         (CFLAGS-tmpfile64.c): Likewise.
1878         (CFLAGS-tempname.c): Likewise.
1879         (CFLAGS-psignal.c): Likewise.
1880         (CFLAGS-vprintf.c): Likewise.
1881         (CFLAGS-cuserid.c): Likewise.
1882         (CFLAGS-errlist.c): Likewise.
1883         (CFLAGS-siglist.c): Likewise.
1884         (CFLAGS-scanf15.c): Likewise.
1885         (CFLAGS-scanf17.c): Likewise.
1886         * stdlib/Makefile (CFLAGS-bsearch.c): Likewise.
1887         (CFLAGS-msort.c): Likewise.
1888         (CFLAGS-qsort.c): Likewise.
1889         (CFLAGS-system.c): Likewise.
1890         (CFLAGS-fmtmsg.c): Likewise.
1891         (CFLAGS-strfmon.c): Likewise.
1892         (CFLAGS-strfmon_l.c): Likewise.
1893         (CFLAGS-strfromd.c): Likewise.
1894         (CFLAGS-strfromf.c): Likewise.
1895         (CFLAGS-strfroml.c): Likewise.
1896         (CFLAGS-tst-bsearch.c): Likewise.
1897         (CFLAGS-tst-qsort.c): Likewise.
1898         (CFLAGS-tst-makecontext2.c): Likewise.
1899         * sunrpc/Makefile (CFLAGS-xbootparam_prot.c): Likewise.
1900         (CFLAGS-xnlm_prot.c): Likewise.
1901         (CFLAGS-xrstat.c): Likewise.
1902         (CFLAGS-xyppasswd.c): Likewise.
1903         (CFLAGS-xklm_prot.c): Likewise.
1904         (CFLAGS-xrex.c): Likewise.
1905         (CFLAGS-xsm_inter.c): Likewise.
1906         (CFLAGS-xmount.c): Likewise.
1907         (CFLAGS-xrusers.c): Likewise.
1908         (CFLAGS-xspray.c): Likewise.
1909         (CFLAGS-xnfs_prot.c): Likewise.
1910         (CFLAGS-xrquota.c): Likewise.
1911         (CFLAGS-xkey_prot.c): Likewise.
1912         (CFLAGS-auth_unix.c): Likewise.
1913         (CFLAGS-key_call.c): Likewise.
1914         (CFLAGS-pmap_rmt.c): Likewise.
1915         (CFLAGS-clnt_perr.c): Likewise.
1916         (CFLAGS-openchild.c): Likewise.
1917         * sysvipc/Makefile (CFLAGS-msgrcv.c): Likewise.
1918         (CFLAGS-msgsnd.c): Likewise.
1919         * termios/Makefile (CFLAGS-tcdrain.c): Likewise.
1920         * time/Makefile (CFLAGS-tzfile.c): Likewise.
1921         (CFLAGS-tzset.c): Likewise.
1922         (CFLAGS-getdate.c): Likewise.
1923         (CFLAGS-test_time.c): Likewise.
1924         (CPPFLAGS-tst-tzname.c): Likewise.
1925         * timezone/Makefile (CFLAGS-zdump.c): Likewise.
1926         (CFLAGS-zic.c): Likewise.
1927         * wcsmbs/Makefile (CFLAGS-wcwidth.c): Likewise.
1928         (CFLAGS-wcswidth.c): Likewise.
1929         (CFLAGS-wcstol.c): Likewise.
1930         (CFLAGS-wcstoul.c): Likewise.
1931         (CFLAGS-wcstoll.c): Likewise.
1932         (CFLAGS-wcstoull.c): Likewise.
1933         (CFLAGS-wcstod.c): Likewise.
1934         (CFLAGS-wcstold.c): Likewise.
1935         (CFLAGS-wcstof128.c): Likewise.
1936         (CFLAGS-wcstof.c): Likewise.
1937         (CFLAGS-wcstol_l.c): Likewise.
1938         (CFLAGS-wcstoul_l.c): Likewise.
1939         (CFLAGS-wcstoll_l.c): Likewise.
1940         (CFLAGS-wcstoull_l.c): Likewise.
1941         (CFLAGS-wcstod_l.c): Likewise.
1942         (CFLAGS-wcstold_l.c): Likewise.
1943         (CFLAGS-wcstof128_l.c): Likewise.
1944         (CFLAGS-wcstof_l.c): Likewise.
1945         (CPPFLAGS-tst-wchar-h.c): Likewise.
1946         (CPPFLAGS-wcstold_l.c): Likewise.
1948 2017-12-11  Paul A. Clarke  <pc@us.ibm.com>
1950         * sysdeps/ieee754/flt-32/s_cosf.c: New implementation.
1952 2017-12-11  Adhemerval Zanella  <azanella@linux.vnet.ibm.com>
1953             Tulio Magno Quites Machado Filho  <tuliom@linux.vnet.ibm.com>
1955         * manual/tunables.texi (Hardware Capability Tunables): Document
1956         glibc.tune.cached_memopt.
1957         * sysdeps/powerpc/cpu-features.c: New file.
1958         * sysdeps/powerpc/cpu-features.h: New file.
1959         * sysdeps/powerpc/dl-procinfo.c [!IS_IN(ldconfig)]: Add
1960         _dl_powerpc_cpu_features.
1961         * sysdeps/powerpc/dl-tunables.list: New file.
1962         * sysdeps/powerpc/ldsodefs.h: Include cpu-features.h.
1963         * sysdeps/powerpc/powerpc32/power4/multiarch/init-arch.h
1964         (INIT_ARCH): Initialize use_aligned_memopt.
1965         * sysdeps/powerpc/powerpc64/dl-machine.h [defined(SHARED &&
1966         IS_IN(rtld))]: Restrict dl_platform_init availability and
1967         initialize CPU features used by tunables.
1968         * sysdeps/powerpc/powerpc64/multiarch/Makefile (sysdep_routines):
1969         Add memcpy-power8-cached.
1970         * sysdeps/powerpc/powerpc64/multiarch/ifunc-impl-list.c: Add
1971         __memcpy_power8_cached.
1972         * sysdeps/powerpc/powerpc64/multiarch/memcpy.c: Likewise.
1973         * sysdeps/powerpc/powerpc64/multiarch/memcpy-power8-cached.S:
1974         New file.
1976 2017-12-11  H.J. Lu  <hongjiu.lu@intel.com>
1978         * string/Makefile (CFLAGS-inl-tester.c): Replace = with +=.
1979         (CFLAGS-noinl-tester.c): Likewise.
1980         (CFLAGS-tst-strlen.c): Likewise.
1981         (CFLAGS-stratcliff.c): Likewise.
1982         (CFLAGS-test-ffs.c): Likewise.
1983         (CFLAGS-tst-inlcall.c): Likewise.
1984         (CFLAGS-tst-xbzero-opt.c): Likewise.
1985         (CFLAGS-memcpy.c): Likewise.
1986         (CFLAGS-wordcopy.c): Likewise.
1988 2017-12-11  Stefan Liebler  <stli@linux.vnet.ibm.com>
1990         * sysdeps/s390/s390-64/dl-trampoline.h (_dl_runtime_resolve):
1991         Store r15 on stack and add cfi rule.
1992         * sysdeps/s390/s390-32/dl-trampoline.h (_dl_runtime_resolve):
1993         Likewise.
1995 2017-12-10  Aurelien Jarno <aurelien@aurel32.net>
1997         [BZ #22577]
1998         * elf/rtld.c (init_tls): Add missing new line to the _dl_fatal_printf
1999         call.
2001 2017-12-07  H.J. Lu  <hongjiu.lu@intel.com>
2003         * sysdeps/x86_64/fpu/multiarch/Makefile (libm-sysdep_routines):
2004         Add s_sinf-sse2 and s_sinf-fma.
2005         (CFLAGS-s_sinf-fma.c): New.
2006         * sysdeps/x86_64/fpu/multiarch/s_sinf-fma.c: New file.
2007         * sysdeps/x86_64/fpu/multiarch/s_sinf-sse2.c: Likewise.
2008         * sysdeps/x86_64/fpu/multiarch/s_sinf.c: Likewise.
2010 2017-12-07  H.J. Lu  <hongjiu.lu@intel.com>
2012         * sysdeps/x86_64/fpu/s_sinf.S: Removed.
2014 2017-12-07  Joseph Myers  <joseph@codesourcery.com>
2016         [BZ #22568]
2017         * math/s_ctan_template.c (M_DECL_FUNC (__ctan)): Set imaginary
2018         part of result to imaginary part of argument if it is zero and the
2019         real part of the argument is not finite.
2020         * math/s_ctanh_template.c (M_DECL_FUNC (__ctanh)): Set real part
2021         of result to real part of argument if it is zero and the imaginary
2022         part of the argument is not finite.
2024 2017-12-07  Mike FABIAN  <mfabian@redhat.com>
2026         [BZ #22524]
2027         * localedata/Makefile: Add lt_LT.UTF-8 to test-input
2028         and to the list of locales to be built for testing.
2029         * localedata/lt_LT.UTF-8.in: New file for testing the collation.
2030         * localedata/locales/lt_LT (LC_COLLATE): Use “copy "iso14651_t1"”
2031         and build the collation rules upon that.
2033 2017-12-07  Joseph Myers  <joseph@codesourcery.com>
2035         * bits/floatn-common.h (__HAVE_FLOAT32): Define to 1.
2036         * manual/math.texi (Mathematics): Document support for _Float32.
2037         * math/Makefile (test-types): Add float32.
2038         * math/Versions (GLIBC_2.27): Add _Float32 functions.
2039         * stdlib/Versions (GLIBC_2.27): Likewise.
2040         * wcsmbs/Versions (GLIBC_2.27): Likewise.
2041         * sysdeps/unix/sysv/linux/aarch64/libc.abilist: Update.
2042         * sysdeps/unix/sysv/linux/aarch64/libm.abilist: Likewise.
2043         * sysdeps/unix/sysv/linux/alpha/libc.abilist: Likewise.
2044         * sysdeps/unix/sysv/linux/alpha/libm.abilist: Likewise.
2045         * sysdeps/unix/sysv/linux/arm/libc.abilist: Likewise.
2046         * sysdeps/unix/sysv/linux/arm/libm.abilist: Likewise.
2047         * sysdeps/unix/sysv/linux/hppa/libc.abilist: Likewise.
2048         * sysdeps/unix/sysv/linux/hppa/libm.abilist: Likewise.
2049         * sysdeps/unix/sysv/linux/i386/libc.abilist: Likewise.
2050         * sysdeps/unix/sysv/linux/i386/libm.abilist: Likewise.
2051         * sysdeps/unix/sysv/linux/ia64/libc.abilist: Likewise.
2052         * sysdeps/unix/sysv/linux/ia64/libm.abilist: Likewise.
2053         * sysdeps/unix/sysv/linux/m68k/coldfire/libc.abilist: Likewise.
2054         * sysdeps/unix/sysv/linux/m68k/coldfire/libm.abilist: Likewise.
2055         * sysdeps/unix/sysv/linux/m68k/m680x0/libc.abilist: Likewise.
2056         * sysdeps/unix/sysv/linux/m68k/m680x0/libm.abilist: Likewise.
2057         * sysdeps/unix/sysv/linux/microblaze/libc.abilist: Likewise.
2058         * sysdeps/unix/sysv/linux/microblaze/libm.abilist: Likewise.
2059         * sysdeps/unix/sysv/linux/mips/mips32/fpu/libc.abilist: Likewise.
2060         * sysdeps/unix/sysv/linux/mips/mips32/libm.abilist: Likewise.
2061         * sysdeps/unix/sysv/linux/mips/mips32/nofpu/libc.abilist:
2062         Likewise.
2063         * sysdeps/unix/sysv/linux/mips/mips64/libm.abilist: Likewise.
2064         * sysdeps/unix/sysv/linux/mips/mips64/n32/libc.abilist: Likewise.
2065         * sysdeps/unix/sysv/linux/mips/mips64/n64/libc.abilist: Likewise.
2066         * sysdeps/unix/sysv/linux/nios2/libc.abilist: Likewise.
2067         * sysdeps/unix/sysv/linux/nios2/libm.abilist: Likewise.
2068         * sysdeps/unix/sysv/linux/powerpc/powerpc32/fpu/libc.abilist:
2069         Likewise.
2070         * sysdeps/unix/sysv/linux/powerpc/powerpc32/fpu/libm.abilist:
2071         Likewise.
2072         * sysdeps/unix/sysv/linux/powerpc/powerpc32/nofpu/libc.abilist:
2073         Likewise.
2074         * sysdeps/unix/sysv/linux/powerpc/powerpc32/nofpu/libm.abilist:
2075         Likewise.
2077         * sysdeps/unix/sysv/linux/powerpc/powerpc64/libc-le.abilist:
2078         Likewise.
2079         * sysdeps/unix/sysv/linux/powerpc/powerpc64/libc.abilist:
2080         Likewise.
2081         * sysdeps/unix/sysv/linux/powerpc/powerpc64/libm-le.abilist:
2082         Likewise.
2083         * sysdeps/unix/sysv/linux/powerpc/powerpc64/libm.abilist:
2084         Likewise.
2085         * sysdeps/unix/sysv/linux/s390/s390-32/libc.abilist: Likewise.
2086         * sysdeps/unix/sysv/linux/s390/s390-32/libm.abilist: Likewise.
2087         * sysdeps/unix/sysv/linux/s390/s390-64/libc.abilist: Likewise.
2088         * sysdeps/unix/sysv/linux/s390/s390-64/libm.abilist: Likewise.
2089         * sysdeps/unix/sysv/linux/sh/libc.abilist: Likewise.
2090         * sysdeps/unix/sysv/linux/sh/libm.abilist: Likewise.
2091         * sysdeps/unix/sysv/linux/sparc/sparc32/libc.abilist: Likewise.
2092         * sysdeps/unix/sysv/linux/sparc/sparc32/libm.abilist: Likewise.
2093         * sysdeps/unix/sysv/linux/sparc/sparc64/libc.abilist: Likewise.
2094         * sysdeps/unix/sysv/linux/sparc/sparc64/libm.abilist: Likewise.
2095         * sysdeps/unix/sysv/linux/tile/tilegx/tilegx32/libc.abilist:
2096         Likewise.
2097         * sysdeps/unix/sysv/linux/tile/tilegx/tilegx32/libm.abilist:
2098         Likewise.
2099         * sysdeps/unix/sysv/linux/tile/tilegx/tilegx64/libc.abilist:
2100         Likewise.
2101         * sysdeps/unix/sysv/linux/tile/tilegx/tilegx64/libm.abilist:
2102         Likewise.
2103         * sysdeps/unix/sysv/linux/tile/tilepro/libc.abilist: Likewise.
2104         * sysdeps/unix/sysv/linux/tile/tilepro/libm.abilist: Likewise.
2105         * sysdeps/unix/sysv/linux/x86_64/64/libc.abilist: Likewise.
2106         * sysdeps/unix/sysv/linux/x86_64/64/libm.abilist: Likewise.
2107         * sysdeps/unix/sysv/linux/x86_64/x32/libc.abilist: Likewise.
2108         * sysdeps/unix/sysv/linux/x86_64/x32/libm.abilist: Likewise.
2109         * sysdeps/i386/fpu/libm-test-ulps: Likewise.
2110         * sysdeps/i386/i686/fpu/multiarch/libm-test-ulps: Likewise.
2112 2017-12-06  Joseph Myers  <joseph@codesourcery.com>
2114         * stdlib/strtof.c: Include <bits/floatn.h>
2115         [__HAVE_FLOAT32 && !__HAVE_DISTINCT_FLOAT32] (strtof32): Define
2116         and later undefine as macro.  Define as weak alias if
2117         [!USE_WIDE_CHAR].
2118         [__HAVE_FLOAT32 && !__HAVE_DISTINCT_FLOAT32] (wcstof32): Define
2119         and later undefine as macro.  Define as weak alias if
2120         [USE_WIDE_CHAR].
2121         * stdlib/strtof_l.c: Include <bits/floatn.h>
2122         [__HAVE_FLOAT32 && !__HAVE_DISTINCT_FLOAT32] (strtof32_l): Define
2123         and later undefine as macro.  Define as weak alias if
2124         [!USE_WIDE_CHAR].
2125         [__HAVE_FLOAT32 && !__HAVE_DISTINCT_FLOAT32] (wcstof32_l): Define
2126         and later undefine as macro.  Define as weak alias if
2127         [USE_WIDE_CHAR].
2129         * stdlib/strfromf.c: Include <bits/floatn.h>.
2130         [__HAVE_FLOAT32 && !__HAVE_DISTINCT_FLOAT32] (strfromf32): Define
2131         and later undefine as macro and define as weak alias.
2133         * math/test-float32.h: New file.
2135         * sysdeps/generic/libm-alias-float.h: Include <bits/floatn.h>.
2136         [__HAVE_FLOAT32 && !__HAVE_DISTINCT_FLOAT32]
2137         (libm_alias_float_other_r): Create f32 alias.
2138         (libm_alias_float_r): Use semicolon before call to
2139         libm_alias_float_other_r.
2141         * sysdeps/ia64/fpu/e_exp2f.S (__exp2f): Use exp2 not __exp2 as
2142         second argument to libm_alias_float_other.
2143         * sysdeps/ia64/fpu/e_log2f.S (__log2f): Use log2 not __log2 as
2144         second argument to libm_alias_float_other.
2145         * sysdeps/ia64/fpu/e_powf.S (__powf): Use pow not __pow as second
2146         argument to libm_alias_float_other.
2148         [BZ #22561]
2149         * math/s_cacosh_template.c (M_DECL_FUNC (__cacosh)): Use pi/2 for
2150         real part of result for argument 0 + i * NaN.
2151         * math/libm-test-cacosh.inc (cacosh_test_data): Update expected
2152         results for tests of 0 + i * NaN.
2154 2017-12-06  Adhemerval Zanella  <adhemerval.zanella@linaro.org>
2156         * sysdeps/alpha/fpu/libm-test-ulps: Update.
2158 2017-12-06  David S. Miller  <davem@davemloft.net>
2160         * sysdeps/sparc/fpu/libm-test-ulps: Update
2161         exp_{downward,towardzero,upward} ulps.
2163 2017-12-06  Joseph Myers  <joseph@codesourcery.com>
2165         * sysdeps/ieee754/ldbl-96/e_j1l.c (qone): Don't make local
2166         variables static.
2168         * sysdeps/ieee754/ldbl-128/e_j0l.c (Y0_2N): Make const.
2169         (Y0_2D): Likewise.
2170         * sysdeps/ieee754/ldbl-128/e_j1l.c (Y0_2N): Likewise.
2171         (Y0_2D): Likewise.
2172         * sysdeps/ieee754/ldbl-128ibm/e_j0l.c (Y0_2N): Likewise.
2173         (Y0_2D): Likewise.
2174         * sysdeps/ieee754/ldbl-128ibm/e_j1l.c (Y0_2N): Likewise.
2175         (Y0_2D): Likewise.
2177 2017-12-06  Mike FABIAN  <mfabian@redhat.com>
2179         [BZ #22515]
2180         * localedata/Makefile: Add hsb_DE.UTF-8 to test-input
2181         and to the list of locales to be built for testing.
2182         * localedata/hsb_DE.UTF-8.in: New file for testing the collation.
2183         * localedata/locales/hsb_DE (LC_COLLATE): Use “copy "iso14651_t1"”
2184         and build the collation rules upon that.
2186 2017-12-06  Rajalakshmi Srinivasaraghavan  <raji@linux.vnet.ibm.com>
2188         * NEWS: Add sinf to list of optimized functions.
2190 2017-12-06  Joseph Myers  <joseph@codesourcery.com>
2192         * bits/floatn-common.h (__HAVE_FLOAT64): Define to 1.
2193         (__HAVE_FLOAT32X): Likewise.
2194         * manual/math.texi (Mathematics): Document support for _Float64
2195         and _Float32x.
2196         * math/Makefile (test-types): Add float64 and float32x.
2197         * math/Versions (GLIBC_2.27): Add _Float64 and _Float32x
2198         functions.
2199         * stdlib/Versions (GLIBC_2.27): Likewise.
2200         * wcsmbs/Versions (GLIBC_2.27): Likewise.
2201         * sysdeps/unix/sysv/linux/aarch64/libc.abilist: Update.
2202         * sysdeps/unix/sysv/linux/aarch64/libm.abilist: Likewise.
2203         * sysdeps/unix/sysv/linux/alpha/libc.abilist: Likewise.
2204         * sysdeps/unix/sysv/linux/alpha/libm.abilist: Likewise.
2205         * sysdeps/unix/sysv/linux/arm/libc.abilist: Likewise.
2206         * sysdeps/unix/sysv/linux/arm/libm.abilist: Likewise.
2207         * sysdeps/unix/sysv/linux/hppa/libc.abilist: Likewise.
2208         * sysdeps/unix/sysv/linux/hppa/libm.abilist: Likewise.
2209         * sysdeps/unix/sysv/linux/i386/libc.abilist: Likewise.
2210         * sysdeps/unix/sysv/linux/i386/libm.abilist: Likewise.
2211         * sysdeps/unix/sysv/linux/ia64/libc.abilist: Likewise.
2212         * sysdeps/unix/sysv/linux/ia64/libm.abilist: Likewise.
2213         * sysdeps/unix/sysv/linux/m68k/coldfire/libc.abilist: Likewise.
2214         * sysdeps/unix/sysv/linux/m68k/coldfire/libm.abilist: Likewise.
2215         * sysdeps/unix/sysv/linux/m68k/m680x0/libc.abilist: Likewise.
2216         * sysdeps/unix/sysv/linux/m68k/m680x0/libm.abilist: Likewise.
2217         * sysdeps/unix/sysv/linux/microblaze/libc.abilist: Likewise.
2218         * sysdeps/unix/sysv/linux/microblaze/libm.abilist: Likewise.
2219         * sysdeps/unix/sysv/linux/mips/mips32/fpu/libc.abilist: Likewise.
2220         * sysdeps/unix/sysv/linux/mips/mips32/libm.abilist: Likewise.
2221         * sysdeps/unix/sysv/linux/mips/mips32/nofpu/libc.abilist:
2222         Likewise.
2223         * sysdeps/unix/sysv/linux/mips/mips64/libm.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/nios2/libm.abilist: Likewise.
2228         * sysdeps/unix/sysv/linux/powerpc/powerpc32/fpu/libc.abilist:
2229         Likewise.
2230         * sysdeps/unix/sysv/linux/powerpc/powerpc32/fpu/libm.abilist:
2231         Likewise.
2232         * sysdeps/unix/sysv/linux/powerpc/powerpc32/nofpu/libc.abilist:
2233         Likewise.
2234         * sysdeps/unix/sysv/linux/powerpc/powerpc32/nofpu/libm.abilist:
2235         Likewise.
2236         * sysdeps/unix/sysv/linux/powerpc/powerpc64/libc-le.abilist:
2237         Likewise.
2238         * sysdeps/unix/sysv/linux/powerpc/powerpc64/libc.abilist:
2239         Likewise.
2240         * sysdeps/unix/sysv/linux/powerpc/powerpc64/libm-le.abilist:
2241         Likewise.
2242         * sysdeps/unix/sysv/linux/powerpc/powerpc64/libm.abilist:
2243         Likewise.
2244         * sysdeps/unix/sysv/linux/s390/s390-32/libc.abilist: Likewise.
2245         * sysdeps/unix/sysv/linux/s390/s390-32/libm.abilist: Likewise.
2246         * sysdeps/unix/sysv/linux/s390/s390-64/libc.abilist: Likewise.
2247         * sysdeps/unix/sysv/linux/s390/s390-64/libm.abilist: Likewise.
2248         * sysdeps/unix/sysv/linux/sh/libc.abilist: Likewise.
2249         * sysdeps/unix/sysv/linux/sh/libm.abilist: Likewise.
2250         * sysdeps/unix/sysv/linux/sparc/sparc32/libc.abilist: Likewise.
2251         * sysdeps/unix/sysv/linux/sparc/sparc32/libm.abilist: Likewise.
2252         * sysdeps/unix/sysv/linux/sparc/sparc64/libc.abilist: Likewise.
2253         * sysdeps/unix/sysv/linux/sparc/sparc64/libm.abilist: Likewise.
2254         * sysdeps/unix/sysv/linux/tile/tilegx/tilegx32/libc.abilist:
2255         Likewise.
2256         * sysdeps/unix/sysv/linux/tile/tilegx/tilegx32/libm.abilist:
2257         Likewise.
2258         * sysdeps/unix/sysv/linux/tile/tilegx/tilegx64/libc.abilist:
2259         Likewise.
2260         * sysdeps/unix/sysv/linux/tile/tilegx/tilegx64/libm.abilist:
2261         Likewise.
2262         * sysdeps/unix/sysv/linux/tile/tilepro/libc.abilist: Likewise.
2263         * sysdeps/unix/sysv/linux/tile/tilepro/libm.abilist: Likewise.
2264         * sysdeps/unix/sysv/linux/x86_64/64/libc.abilist: Likewise.
2265         * sysdeps/unix/sysv/linux/x86_64/64/libm.abilist: Likewise.
2266         * sysdeps/unix/sysv/linux/x86_64/x32/libc.abilist: Likewise.
2267         * sysdeps/unix/sysv/linux/x86_64/x32/libm.abilist: Likewise.
2268         * sysdeps/i386/fpu/libm-test-ulps: Likewise.
2269         * sysdeps/i386/i686/fpu/multiarch/libm-test-ulps: Likewise.
2271 2017-12-05  Joseph Myers  <joseph@codesourcery.com>
2273         * bits/floatn-common.h: Include <bits/long-double.h>.
2274         [__HAVE_FLOAT64 && (!__GNUC_PREREQ (7, 0) || defined __cplusplus)
2275         && __NO_LONG_DOUBLE_MATH] (__f64): Use suffix 'l'.
2276         [__HAVE_FLOAT64 && (!__GNUC_PREREQ (7, 0) || defined __cplusplus)
2277         && __NO_LONG_DOUBLE_MATH] (__CFLOAT64): Use _Complex long double.
2278         [__HAVE_FLOAT64 && (!__GNUC_PREREQ (7, 0) || defined __cplusplus)
2279         && __NO_LONG_DOUBLE_MATH] (_Float64): Use long double.
2280         [__HAVE_FLOAT64 && !__GNUC_PREREQ (7, 0) && __NO_LONG_DOUBLE_MATH]
2281         (__builtin_huge_valf64): Use __builtin_huge_vall.
2282         [__HAVE_FLOAT64 && !__GNUC_PREREQ (7, 0) && __NO_LONG_DOUBLE_MATH]
2283         (__builtin_inff64): Use __builtin_infl.
2284         [__HAVE_FLOAT64 && !__GNUC_PREREQ (7, 0) && __NO_LONG_DOUBLE_MATH]
2285         (__builtin_nanf64): Use __builtin_nanl.
2286         [__HAVE_FLOAT64 && !__GNUC_PREREQ (7, 0) && __NO_LONG_DOUBLE_MATH]
2287         (__builtin_nansf64): Use __builtin_nansl.
2289 2017-12-05  Rogerio A. Cardoso  <rcardoso@linux.vnet.ibm.com>,
2290             Paul E. Murphy  <murphyp@linux.vnet.ibm.com>,
2291             Carlos O'Donnell <carlos@redhat.com>
2293         * elf/dl-tunables.list: Add elision parameters.
2294         * manual/tunables.texi: Add entries about elision tunable.
2295         * sysdeps/unix/sysv/linux/powerpc/elision-conf.c:
2296         Add callback functions to dynamically enable/disable elision.
2297         Add multiple callbacks functions to set elision parameters.
2298         Deleted __libc_enable_secure check.
2299         * sysdeps/unix/sysv/linux/s390/elision-conf.c: Likewise.
2300         * sysdeps/unix/sysv/linux/x86/elision-conf.c: Likewise.
2301         * configure: Regenerated.
2302         * configure.ac: Option enable_lock_elision was deleted.
2303         * config.h.in: ENABLE_LOCK_ELISION flag was deleted.
2304         * config.make.in: Remove references to enable_lock_elision.
2305         * manual/install.texi: Elision configure option was removed.
2306         * INSTALL: Regenerated to remove enable_lock_elision.
2307         * nptl/Makefile:
2308         Disable elision so it can verify error case for destroying a mutex.
2309         * sysdeps/powerpc/nptl/elide.h:
2310         Cleanup ENABLE_LOCK_ELISION check.
2311         Deleted macros for the case when ENABLE_LOCK_ELISION was not defined.
2312         * sysdeps/s390/configure: Regenerated.
2313         * sysdeps/s390/configure.ac: Remove references to enable_lock_elision..
2314         * nptl/tst-mutex8.c:
2315         Deleted all #ifndef ENABLE_LOCK_ELISION from the test.
2316         * sysdeps/powerpc/powerpc32/sysdep.h:
2317         Deleted all ENABLE_LOCK_ELISION checks.
2318         * sysdeps/powerpc/powerpc64/sysdep.h: Likewise.
2319         * sysdeps/powerpc/sysdep.h: Likewise.
2320         * sysdeps/s390/nptl/bits/pthreadtypes-arch.h: Likewise.
2321         * sysdeps/unix/sysv/linux/powerpc/force-elision.h: Likewise.
2322         * sysdeps/unix/sysv/linux/s390/elision-conf.h: Likewise.
2323         * sysdeps/unix/sysv/linux/s390/force-elision.h: Likewise.
2324         * sysdeps/unix/sysv/linux/s390/lowlevellock.h: Likewise.
2325         * sysdeps/unix/sysv/linux/s390/Makefile: Remove references to
2326         enable-lock-elision.
2328 2017-12-05  Joseph Myers  <joseph@codesourcery.com>
2330         * stdlib/strtod.c: Include <bits/floatn.h>.
2331         (BUILD_DOUBLE): New macro.
2332         [BUILD_DOUBLE && __HAVE_FLOAT64 && !__HAVE_DISTINCT_FLOAT64]
2333         (strtof64): Define and later undefine as macro.  Define as weak
2334         alias if [!USE_WIDE_CHAR].
2335         [BUILD_DOUBLE && __HAVE_FLOAT64 && !__HAVE_DISTINCT_FLOAT64]
2336         (wcstof64): Define and later undefine as macro.  Define as weak
2337         alias if [USE_WIDE_CHAR].
2338         [BUILD_DOUBLE && __HAVE_FLOAT32X && !__HAVE_DISTINCT_FLOAT32X]
2339         (strtof32x): Define and later undefine as macro.  Define as weak
2340         alias if [!USE_WIDE_CHAR].
2341         [BUILD_DOUBLE && __HAVE_FLOAT32X && !__HAVE_DISTINCT_FLOAT32X]
2342         (wcstof32x): Define and later undefine as macro.  Define as weak
2343         alias if [USE_WIDE_CHAR].
2344         * stdlib/strtod_l.c: Include <bits/floatn.h>.
2345         (BUILD_DOUBLE): New macro.
2346         [BUILD_DOUBLE && __HAVE_FLOAT64 && !__HAVE_DISTINCT_FLOAT64]
2347         (strtof64_l): Define and later undefine as macro.  Define as weak
2348         alias if [!USE_WIDE_CHAR].
2349         [BUILD_DOUBLE && __HAVE_FLOAT64 && !__HAVE_DISTINCT_FLOAT64]
2350         (wcstof64_l): Define and later undefine as macro.  Define as weak
2351         alias if [USE_WIDE_CHAR].
2352         [BUILD_DOUBLE && __HAVE_FLOAT32X && !__HAVE_DISTINCT_FLOAT32X]
2353         (strtof32x_l): Define and later undefine as macro.  Define as weak
2354         alias if [!USE_WIDE_CHAR].
2355         [BUILD_DOUBLE && __HAVE_FLOAT32X && !__HAVE_DISTINCT_FLOAT32X]
2356         (wcstof32x_l): Define and later undefine as macro.  Define as weak
2357         alias if [USE_WIDE_CHAR].
2359 2017-12-05  Adhemerval Zanella  <adhemerval.zanella@linaro.org>
2361         * sysdeps/ieee754/flt-32/s_sinf.c (ones): Define as double.
2362         (reduced): Use ones as double instead of integer.
2364 2017-12-05  Szabolcs Nagy  <szabolcs.nagy@arm.com>
2366         * sysdeps/ieee754/flt-32/s_sinf.c (sinf): Use isless.
2368 2017-12-05  Joseph Myers  <joseph@codesourcery.com>
2370         * stdlib/strfromd.c: Include <bits/floatn.h>.
2371         [__HAVE_FLOAT64 && !__HAVE_DISTINCT_FLOAT64] (strfromf64): Define
2372         and later undefine as macro and define as weak alias.
2373         [__HAVE_FLOAT32X && !__HAVE_DISTINCT_FLOAT32X] (strfromf32x):
2374         Likewise.
2376         * math/test-float32x.h: New file.
2377         * math/test-float64.h: Likewise.
2379         * sysdeps/generic/libm-alias-double.h: Include <bits/floatn.h>.
2380         (libm_alias_double_other_r_f64): New macro.
2381         (libm_alias_double_other_r_f32x): Likewise.
2382         (libm_alias_double_other_r): Use libm_alias_double_other_r_f64 and
2383         libm_alias_double_other_r_f32x.
2384         (libm_alias_double_r): Use semicolon before call to
2385         libm_alias_double_other_r.
2386         * sysdeps/ieee754/ldbl-opt/libm-alias-double.h: Include
2387         <bits/floatn.h>.
2388         (libm_alias_double_other_r_f64): New macro.
2389         (libm_alias_double_other_r_f32x): Likewise.
2390         (libm_alias_double_other_r): Use libm_alias_double_other_r_f64 and
2391         libm_alias_double_other_r_f32x.
2393 2017-12-05  H.J. Lu  <hongjiu.lu@intel.com>
2395         * sysdeps/ieee754/flt-32/s_sinf.c (reduced): Replace long with
2396         int.
2397         (SINF_FUNC): Likewise.  Replace floor with simple casts.
2399 2017-12-05  Mike FABIAN  <mfabian@redhat.com>
2401         [BZ #22517]
2402         * localedata/Makefile: Add et_EE.UTF-8 to test-input
2403         and to the list of locales to be built for testing.
2404         * localedata/et_EE.UTF-8.in: New file for testing the collation.
2405         * localedata/locales/et_EE (LC_COLLATE): Use “copy "iso14651_t1"”
2406         and build the collation rules upon that.
2408 2017-12-05  Chris Metcalf  <cmetcalf@mellanox.com>
2410         * sysdeps/tile/tilegx/string-endian.h (VECOP): Provide working
2411         replacements for __insn_xxx builtins for v1cmpeq, v1cmpltu,
2412         v1cmpne, v1add, v1shru, v1shl (register and immediate versions).
2413         * sysdeps/tile/tilegx/memchr.c (__memchr): Use VECOP function
2414         instead of __insn__xxx.
2415         * sysdeps/tile/tilegx/rawmemchr.c (__rawmemchr): Likewise.
2416         * sysdeps/tile/tilegx/strstr.c (strcasechr): Likewise.
2417         * sysdeps/tile/tilegx/strrchr.c (strrchr): Likewise.
2418         * sysdeps/tile/tilegx/strlen.c (strlen): Likewise.
2419         * sysdeps/tile/tilegx/strchrnul.c (__strchrnul): Likewise.
2420         * sysdeps/tile/tilegx/strchr.c (strchr): Likewise.
2422 2017-12-05  Florian Weimer  <fweimer@redhat.com>
2424         Linux: Implement interfaces for memory protection keys
2425         * support/Makefile (libsupport-routines): Add xraise, xsigaction,
2426         xsignal, xsysconf.
2427         * support/xsignal.h (xraise, xsignal, xsigaction): Declare.
2428         * support/xunistd.h (xsysconf): Declare.
2429         * support/xraise.c: New file.
2430         * support/xsigaction.c: Likewise.
2431         * support/xsignal.c: Likewise.
2432         * support/xsysconf.c: Likewise.
2433         * sysdeps/unix/sysv/linux/Makefile [misc] (routines): Add
2434         pkey_set, pkey_get, pkey_mprotect.
2435         [misc] (tests): Add tst-pkey.
2436         (tst-pkey): Link with -lpthread.
2437         * sysdeps/unix/sysv/linux/Versions (GLIBC_2.27): Add pkey_alloc,
2438         pkey_free, pkey_set, pkey_get, pkey_mprotect.
2439         * sysdeps/unix/sysv/linux/bits/mman-linux.h (PKEY_DISABLE_ACCESS)
2440         (PKEY_DISABLE_WRITE): Define.
2441         (pkey_alloc, pkey_free, pkey_set, pkey_get, pkey_mprotect):
2442         Declare.
2443         * sysdeps/unix/sysv/linux/bits/siginfo-consts.h (SEGV_BNDERR)
2444         (SEGV_PKUERR): Add.
2445         * sysdeps/unix/sysv/linux/pkey_get.c: New file.
2446         * sysdeps/unix/sysv/linux/pkey_set.c: Likewise.
2447         * sysdeps/unix/sysv/linux/pkey_mprotect.c: Likewise.
2448         * sysdeps/unix/sysv/linux/syscalls.list (pkey_alloc, pkey_free):
2449         Add.
2450         * sysdeps/unix/sysv/linux/tst-pkey.c: New file.
2451         * sysdeps/unix/sysv/linux/x86/arch-pkey.h: Likewise.
2452         * sysdeps/unix/sysv/linux/x86/pkey_get.c: Likewise.
2453         * sysdeps/unix/sysv/linux/x86/pkey_set.c: Likewise.
2454         * sysdeps/unix/sysv/linux/**.abilist: Update.
2456 2017-12-05  Florian Weimer  <fweimer@redhat.com>
2458         * support/tst-test_compare.c (subprocess): Use long long instead
2459         of long argument for consistent type width across 32-bit and
2460         64-bit architectures.
2461         (do_test): Adjust expected output.
2463 2017-12-05  Joseph Myers  <joseph@codesourcery.com>
2465         * sysdeps/powerpc/fpu/s_cosf.c: Include <libm-alias-float.h>.
2466         (cosf): Define using libm_alias_float.
2467         * sysdeps/powerpc/fpu/s_fabs.S: Include <libm-alias-float.h>.
2468         (fabsf): Define using libm_alias_float.
2469         * sysdeps/powerpc/fpu/s_fmaf.S: Include <libm-alias-float.h>.
2470         (fmaf): Define using libm_alias_float.
2471         * sysdeps/powerpc/fpu/s_rintf.c: Include <libm-alias-float.h>.
2472         (rintf): Define using libm_alias_float.
2473         * sysdeps/powerpc/fpu/s_sinf.c: Include <libm-alias-float.h>.
2474         (sinf): Define using libm_alias_float.
2475         * sysdeps/powerpc/power5+/fpu/s_modff.c: Include
2476         <libm-alias-float.h>.
2477         (modff): Define using libm_alias_float.
2478         * sysdeps/powerpc/power7/fpu/s_logbf.c: Include
2479         <libm-alias-float.h>.
2480         (logbf): Define using libm_alias_float.
2481         * sysdeps/powerpc/powerpc32/fpu/s_ceilf.S: Include
2482         <libm-alias-float.h>.
2483         (ceilf): Define using libm_alias_float.
2484         * sysdeps/powerpc/powerpc32/fpu/s_copysign.S: Include
2485         <libm-alias-float.h>.
2486         (copysignf): Define using libm_alias_float.
2487         * sysdeps/powerpc/powerpc32/fpu/s_floorf.S: Include
2488         <libm-alias-float.h>.
2489         (floorf): Define using libm_alias_float.
2490         * sysdeps/powerpc/powerpc32/fpu/s_llrintf.c: Include
2491         <libm-alias-float.h>.
2492         (llrintf): Define using libm_alias_float.
2493         * sysdeps/powerpc/powerpc32/fpu/s_llroundf.c: Include
2494         <libm-alias-float.h>.
2495         (llroundf): Define using libm_alias_float.
2496         * sysdeps/powerpc/powerpc32/fpu/s_lrint.S: Include
2497         <libm-alias-float.h>.
2498         (lrintf): Define using libm_alias_float.
2499         * sysdeps/powerpc/powerpc32/fpu/s_lround.S: Include
2500         <libm-alias-float.h>.
2501         (lroundf): Define using libm_alias_float.
2502         * sysdeps/powerpc/powerpc32/fpu/s_nearbyintf.S: Include
2503         <libm-alias-float.h>.
2504         (nearbyintf): Define using libm_alias_float.
2505         * sysdeps/powerpc/powerpc32/fpu/s_rintf.S: Include
2506         <libm-alias-float.h>.
2507         (rintf): Define using libm_alias_float.
2508         * sysdeps/powerpc/powerpc32/fpu/s_roundf.S: Include
2509         <libm-alias-float.h>.
2510         (roundf): Define using libm_alias_float.
2511         * sysdeps/powerpc/powerpc32/fpu/s_truncf.S: Include
2512         <libm-alias-float.h>.
2513         (truncf): Define using libm_alias_float.
2514         * sysdeps/powerpc/powerpc32/power4/fpu/multiarch/s_ceilf.c:
2515         Include <libm-alias-float.h>.
2516         (ceilf): Define using libm_alias_float.
2517         * sysdeps/powerpc/powerpc32/power4/fpu/multiarch/s_copysignf.c:
2518         Include <libm-alias-float.h>.
2519         (copysignf): Define using libm_alias_float.
2520         * sysdeps/powerpc/powerpc32/power4/fpu/multiarch/s_floorf.c:
2521         Include <libm-alias-float.h>.
2522         (floorf): Define using libm_alias_float.
2523         * sysdeps/powerpc/powerpc32/power4/fpu/multiarch/s_llrintf.c:
2524         Include <libm-alias-float.h>.
2525         (llrintf): Define using libm_alias_float.
2526         * sysdeps/powerpc/powerpc32/power4/fpu/multiarch/s_llroundf.c:
2527         Include <libm-alias-float.h>.
2528         (llroundf): Define using libm_alias_float.
2529         * sysdeps/powerpc/powerpc32/power4/fpu/multiarch/s_logbf.c:
2530         Include <libm-alias-float.h>.
2531         (logbf): Define using libm_alias_float.
2532         * sysdeps/powerpc/powerpc32/power4/fpu/multiarch/s_lrintf.c:
2533         Include <libm-alias-float.h>.
2534         (lrintf): Define using libm_alias_float.
2535         * sysdeps/powerpc/powerpc32/power4/fpu/multiarch/s_lroundf.c:
2536         Include <libm-alias-float.h>.
2537         (lroundf): Define using libm_alias_float.
2538         * sysdeps/powerpc/powerpc32/power4/fpu/multiarch/s_modff.c:
2539         Include <libm-alias-float.h>.
2540         (modff): Define using libm_alias_float.
2541         * sysdeps/powerpc/powerpc32/power4/fpu/multiarch/s_roundf.c:
2542         Include <libm-alias-float.h>.
2543         (roundf): Define using libm_alias_float.
2544         * sysdeps/powerpc/powerpc32/power4/fpu/multiarch/s_truncf.c:
2545         Include <libm-alias-float.h>.
2546         (truncf): Define using libm_alias_float.
2547         * sysdeps/powerpc/powerpc32/power4/fpu/s_llrintf.S: Include
2548         <libm-alias-float.h>.
2549         (llrintf): Define using libm_alias_float.
2550         * sysdeps/powerpc/powerpc32/power4/fpu/s_llround.S: Include
2551         <libm-alias-float.h>.
2552         (llroundf): Define using libm_alias_float.
2553         * sysdeps/powerpc/powerpc32/power5+/fpu/s_ceilf.S: Include
2554         <libm-alias-float.h>.
2555         (ceilf): Define using libm_alias_float.
2556         * sysdeps/powerpc/powerpc32/power5+/fpu/s_floorf.S: Include
2557         <libm-alias-float.h>.
2558         (floorf): Define using libm_alias_float.
2559         * sysdeps/powerpc/powerpc32/power5+/fpu/s_llround.S: Include
2560         <libm-alias-float.h>.
2561         (llroundf): Define using libm_alias_float.
2562         * sysdeps/powerpc/powerpc32/power5+/fpu/s_lround.S: Include
2563         <libm-alias-float.h>.
2564         (lroundf): Define using libm_alias_float.
2565         * sysdeps/powerpc/powerpc32/power5+/fpu/s_roundf.S: Include
2566         <libm-alias-float.h>.
2567         (roundf): Define using libm_alias_float.
2568         * sysdeps/powerpc/powerpc32/power5+/fpu/s_truncf.S: Include
2569         <libm-alias-float.h>.
2570         (truncf): Define using libm_alias_float.
2571         * sysdeps/powerpc/powerpc32/power6/fpu/s_copysign.S: Include
2572         <libm-alias-float.h>.
2573         (copysignf): Define using libm_alias_float.
2574         * sysdeps/powerpc/powerpc32/power6/fpu/s_llrintf.S: Include
2575         <libm-alias-float.h>.
2576         (llrintf): Define using libm_alias_float.
2577         * sysdeps/powerpc/powerpc32/power6/fpu/s_llround.S: Include
2578         <libm-alias-float.h>.
2579         (llroundf): Define using libm_alias_float.
2580         * sysdeps/powerpc/powerpc32/power6x/fpu/s_lrint.S: Include
2581         <libm-alias-float.h>.
2582         (lrintf): Define using libm_alias_float.
2583         * sysdeps/powerpc/powerpc32/power6x/fpu/s_lround.S: Include
2584         <libm-alias-float.h>.
2585         (lroundf): Define using libm_alias_float.
2586         * sysdeps/powerpc/powerpc64/fpu/multiarch/s_ceilf.c: Include
2587         <libm-alias-float.h>.
2588         (ceilf): Define using libm_alias_float.
2589         * sysdeps/powerpc/powerpc64/fpu/multiarch/s_copysignf.c: Include
2590         <libm-alias-float.h>.
2591         (copysignf): Define using libm_alias_float.
2592         * sysdeps/powerpc/powerpc64/fpu/multiarch/s_cosf.c: Include
2593         <libm-alias-float.h>.
2594         (cosf): Define using libm_alias_float.
2595         * sysdeps/powerpc/powerpc64/fpu/multiarch/s_floorf.c: Include
2596         <libm-alias-float.h>.
2597         (floorf): Define using libm_alias_float.
2598         * sysdeps/powerpc/powerpc64/fpu/multiarch/s_llrintf.c: Include
2599         <libm-alias-float.h>.
2600         (llrintf): Define using libm_alias_float.
2601         * sysdeps/powerpc/powerpc64/fpu/multiarch/s_llroundf.c: Include
2602         <libm-alias-float.h>.
2603         (llroundf): Define using libm_alias_float.
2604         * sysdeps/powerpc/powerpc64/fpu/multiarch/s_logbf.c: Include
2605         <libm-alias-float.h>.
2606         (logbf): Define using libm_alias_float.
2607         * sysdeps/powerpc/powerpc64/fpu/multiarch/s_modff.c: Include
2608         <libm-alias-float.h>.
2609         (modff): Define using libm_alias_float.
2610         * sysdeps/powerpc/powerpc64/fpu/multiarch/s_roundf.c: Include
2611         <libm-alias-float.h>.
2612         (roundf): Define using libm_alias_float.
2613         * sysdeps/powerpc/powerpc64/fpu/multiarch/s_sinf.c: Include
2614         <libm-alias-float.h>.
2615         (sinf): Define using libm_alias_float.
2616         * sysdeps/powerpc/powerpc64/fpu/multiarch/s_truncf.c: Include
2617         <libm-alias-float.h>.
2618         (truncf): Define using libm_alias_float.
2619         * sysdeps/powerpc/powerpc64/fpu/s_ceilf.S: Include
2620         <libm-alias-float.h>.
2621         (ceilf): Define using libm_alias_float.
2622         * sysdeps/powerpc/powerpc64/fpu/s_copysign.S: Include
2623         <libm-alias-float.h>.
2624         (copysignf): Define using libm_alias_float.
2625         * sysdeps/powerpc/powerpc64/fpu/s_floorf.S: Include
2626         <libm-alias-float.h>.
2627         (floorf): Define using libm_alias_float.
2628         * sysdeps/powerpc/powerpc64/fpu/s_llrint.S: Include
2629         <libm-alias-float.h>.
2630         (llrintf): Define using libm_alias_float.
2631         * sysdeps/powerpc/powerpc64/fpu/s_llroundf.S: Include
2632         <libm-alias-float.h>.
2633         (llroundf): Define using libm_alias_float.
2634         * sysdeps/powerpc/powerpc64/fpu/s_nearbyintf.S: Include
2635         <libm-alias-float.h>.
2636         (nearbyintf): Define using libm_alias_float.
2637         * sysdeps/powerpc/powerpc64/fpu/s_rintf.S: Include
2638         <libm-alias-float.h>.
2639         (rintf): Define using libm_alias_float.
2640         * sysdeps/powerpc/powerpc64/fpu/s_roundf.S: Include
2641         <libm-alias-float.h>.
2642         (roundf): Define using libm_alias_float.
2643         * sysdeps/powerpc/powerpc64/fpu/s_truncf.S: Include
2644         <libm-alias-float.h>.
2645         (truncf): Define using libm_alias_float.
2646         * sysdeps/powerpc/powerpc64/power5+/fpu/s_ceilf.S: Include
2647         <libm-alias-float.h>.
2648         (ceilf): Define using libm_alias_float.
2649         * sysdeps/powerpc/powerpc64/power5+/fpu/s_floorf.S: Include
2650         <libm-alias-float.h>.
2651         (floorf): Define using libm_alias_float.
2652         * sysdeps/powerpc/powerpc64/power5+/fpu/s_llround.S: Include
2653         <libm-alias-float.h>.
2654         (llroundf): Define using libm_alias_float.
2655         * sysdeps/powerpc/powerpc64/power5+/fpu/s_roundf.S: Include
2656         <libm-alias-float.h>.
2657         (roundf): Define using libm_alias_float.
2658         * sysdeps/powerpc/powerpc64/power5+/fpu/s_truncf.S: Include
2659         <libm-alias-float.h>.
2660         (truncf): Define using libm_alias_float.
2661         * sysdeps/powerpc/powerpc64/power6/fpu/s_copysign.S: Include
2662         <libm-alias-float.h>.
2663         (copysignf): Define using libm_alias_float.
2664         * sysdeps/powerpc/powerpc64/power6x/fpu/s_llrint.S: Include
2665         <libm-alias-float.h>.
2666         (llrintf): Define using libm_alias_float.
2667         * sysdeps/powerpc/powerpc64/power6x/fpu/s_llround.S: Include
2668         <libm-alias-float.h>.
2669         (llroundf): Define using libm_alias_float.
2670         * sysdeps/powerpc/powerpc64/power8/fpu/s_cosf.S: Include
2671         <libm-alias-float.h>.
2672         (cosf): Define using libm_alias_float.
2673         * sysdeps/powerpc/powerpc64/power8/fpu/s_llrint.S: Include
2674         <libm-alias-float.h>.
2675         (llrintf): Define using libm_alias_float.
2676         * sysdeps/powerpc/powerpc64/power8/fpu/s_llround.S: Include
2677         <libm-alias-float.h>.
2678         (llroundf): Define using libm_alias_float.
2679         * sysdeps/powerpc/powerpc64/power8/fpu/s_sinf.S: Include
2680         <libm-alias-float.h>.
2681         (sinf): Define using libm_alias_float.
2683 2017-12-04  Florian Weimer  <fweimer@redhat.com>
2685         * support/check.h (TEST_COMPARE): Define.
2686         (support_test_compare_failure): Declare.
2687         * support/Makefile (libsupport-routines): Add
2688         support_test_compare_failure.
2689         (tests): Add tst-test_compare.
2690         * support /support_test_compare_failure.c: New file.
2691         * support/tst-test_compare.c: Likewise.
2693 2017-12-04  Mike FABIAN  <mfabian@redhat.com>
2695         [BZ #22527]
2696         *  localedata/locales/tr_TR (LC_COLLATE): Base collation rules
2697         on iso14651_t1. A test file localedata/tr_TR.UTF-8.in is already
2698         available, this rewrite of the collation rules does reproduce
2699         the test file in the same order.
2701 2017-12-04  Mike FABIAN  <mfabian@redhat.com>
2703         [BZ #10580]
2704         * localedata/locales/hr_HR (LC_TIME): Use two letters for the
2705         digraphs in the month and day names. Using single code points for
2706         digraphs is deprecated.  While there are dedicated Unicode
2707         codepoints, for the digraphs, these are included for backwards
2708         compatibility and modern texts use a sequence of Basic Latin
2709         characters. See: https://www.unicode.org/faq/ligature_digraph.html
2710         This makes the month and day names agree exactly with CLDR now,
2711         CLDR does not use the single code points for the digraphs either.
2713 2017-12-04  Chris Metcalf  <cmetcalf@mellanox.com>
2715         * sysdeps/tile/libm-test-ulps: Update ca{cos,sin,tan}{,h} ulps.
2717 2017-12-04  Joseph Myers  <joseph@codesourcery.com>
2719         * sysdeps/ieee754/flt-32/s_sinf.c (SINF_FUNC): Use __floor instead
2720         of floor.
2722 2017-12-04  Siddhesh Poyarekar  <siddhesh@sourceware.org>
2724         * sysdeps/aarch64/multiarch/memcpy_generic.S (__GI_memcpy):
2725         Define only for libc.so.
2727 2017-12-04  Stefan Liebler  <stli@linux.vnet.ibm.com>
2729         * sysdeps/unix/sysv/linux/s390/s390-64/sysdep.h
2730         (INTERNAL_VSYSCALL_CALL, CLOBBER_0, CLOBBER_1, CLOBBER_2,
2731          CLOBBER_3, CLOBBER_4, CLOBBER_5, CLOBBER_6,
2732         INTERNAL_VSYSCALL_NO_SYSCALL_FALLBACK): Remove.
2733         * sysdeps/unix/sysv/linux/s390/s390-32/sysdep.h: Likewise.
2735 2017-12-04  Rajalakshmi Srinivasaraghavan  <raji@linux.vnet.ibm.com>
2737         [BZ #5997]
2738         * sysdeps/ieee754/flt-32/s_sinf.c: New implementation.
2740 2017-12-02  John David Anglin  <danglin@gcc.gnu.org>
2742         [BZ libc/19170]
2743         * sysdeps/hppa/crti.S: Declare PREINIT_FUNCTION weak_extern when
2744         PREINIT_FUNCTION_WEAK is nonzero.
2745         (gmon_initializer): New function.  Put procedure label for it in
2746         .init_array section.
2747         (_init): Don't call PREINIT_FUNCTION.
2748         * sysdeps/hppa/crtn.S (__gmon_start__): Remove.
2749         * sysdeps/hppa/dl-lookupcfg.h (DL_FIXUP_MAKE_VALUE): Create null fixup
2750         value when map argument is null.
2752         * sysdeps/hppa/dl-fptr.c (elf_machine_resolve): Remove unnecessary
2753         depi instruction from PIC pc-relative sequence.
2754         * sysdeps/hppa/dl-fptr.h (ELF_MACHINE_LOAD_ADDRESS): Likewise.
2755         * sysdeps/hppa/dl-machine.h (elf_machine_dynamic): Likewise.
2756         (elf_machine_load_address): Likewise.
2757         (elf_machine_runtime_setup): Likewise.
2759 2017-12-02  Joseph Myers  <joseph@codesourcery.com>
2761         * sysdeps/powerpc/power7/fpu/s_logb.c: Include
2762         <libm-alias-double.h>.
2763         (logb): Define using libm_alias_double.
2764         * sysdeps/powerpc/powerpc32/fpu/s_copysign.S: Include
2765         <libm-alias-double.h>.
2766         (copysign): Define using libm_alias_double.
2767         * sysdeps/powerpc/powerpc32/fpu/s_llrint.c: Include
2768         <libm-alias-double.h>.
2769         (llrint): Define using libm_alias_double.
2770         * sysdeps/powerpc/powerpc32/fpu/s_llround.c: Include
2771         <libm-alias-double.h>.
2772         (llround): Define using libm_alias_double.
2773         * sysdeps/powerpc/powerpc32/fpu/s_lrint.S: Include
2774         <libm-alias-double.h>.
2775         (lrint): Define using libm_alias_double.
2776         * sysdeps/powerpc/powerpc32/fpu/s_lround.S: Include
2777         <libm-alias-double.h>.
2778         (lround): Define using libm_alias_double.
2779         * sysdeps/powerpc/powerpc32/power4/fpu/multiarch/s_copysign.c:
2780         Include <libm-alias-double.h>.
2781         (copysign): Define using libm_alias_double.
2782         * sysdeps/powerpc/powerpc32/power4/fpu/multiarch/s_llrint.c:
2783         Include <libm-alias-double.h>.
2784         (llrint): Define using libm_alias_double.
2785         * sysdeps/powerpc/powerpc32/power4/fpu/multiarch/s_llround.c:
2786         Include <libm-alias-double.h>.
2787         (llround): Define using libm_alias_double.
2788         * sysdeps/powerpc/powerpc32/power4/fpu/multiarch/s_logb.c: Include
2789         <libm-alias-double.h>.
2790         (logb): Define using libm_alias_double.
2791         * sysdeps/powerpc/powerpc32/power4/fpu/multiarch/s_lrint.c:
2792         Include <libm-alias-double.h>.
2793         (lrint): Define using libm_alias_double.
2794         * sysdeps/powerpc/powerpc32/power4/fpu/multiarch/s_lround.c:
2795         Include <libm-alias-double.h>.
2796         (lround): Define using libm_alias_double.
2797         * sysdeps/powerpc/powerpc32/power4/fpu/s_llrint.S: Include
2798         <libm-alias-double.h>.
2799         (llrint): Define using libm_alias_double.
2800         * sysdeps/powerpc/powerpc32/power4/fpu/s_llround.S: Include
2801         <libm-alias-double.h>.
2802         (llround): Define using libm_alias_double.
2803         * sysdeps/powerpc/powerpc32/power5+/fpu/s_llround.S: Include
2804         <libm-alias-double.h>.
2805         (llround): Define using libm_alias_double.
2806         * sysdeps/powerpc/powerpc32/power5+/fpu/s_lround.S: Include
2807         <libm-alias-double.h>.
2808         (lround): Define using libm_alias_double.
2809         * sysdeps/powerpc/powerpc32/power6/fpu/s_copysign.S: Include
2810         <libm-alias-double.h>.
2811         (copysign): Define using libm_alias_double.
2812         * sysdeps/powerpc/powerpc32/power6/fpu/s_llrint.S: Include
2813         <libm-alias-double.h>.
2814         (llrint): Define using libm_alias_double.
2815         * sysdeps/powerpc/powerpc32/power6/fpu/s_llround.S: Include
2816         <libm-alias-double.h>.
2817         (llround): Define using libm_alias_double.
2818         * sysdeps/powerpc/powerpc32/power6x/fpu/s_lrint.S: Include
2819         <libm-alias-double.h>.
2820         (lrint): Define using libm_alias_double.
2821         * sysdeps/powerpc/powerpc32/power6x/fpu/s_lround.S: Include
2822         <libm-alias-double.h>.
2823         (lround): Define using libm_alias_double.
2824         * sysdeps/powerpc/powerpc64/fpu/multiarch/s_copysign.c: Include
2825         <libm-alias-double.h>.
2826         (copysign): Define using libm_alias_double.
2827         * sysdeps/powerpc/powerpc64/fpu/multiarch/s_llrint.c: Include
2828         <libm-alias-double.h>.
2829         (llrint): Define using libm_alias_double.
2830         (lrint): Likewise.
2831         * sysdeps/powerpc/powerpc64/fpu/multiarch/s_llround.c: Include
2832         <libm-alias-double.h>.
2833         (llround): Define using libm_alias_double.
2834         (lround): Likewise.
2835         * sysdeps/powerpc/powerpc64/fpu/multiarch/s_logb.c: Include
2836         <libm-alias-double.h>.
2837         (logb): Define using libm_alias_double.
2838         * sysdeps/powerpc/powerpc64/fpu/s_copysign.S: Include
2839         <libm-alias-double.h>.
2840         (copysign): Define using libm_alias_double.
2841         * sysdeps/powerpc/powerpc64/fpu/s_llrint.S: Include
2842         <libm-alias-double.h>.
2843         (llrint): Define using libm_alias_double.
2844         (lrint): Likewise.
2845         * sysdeps/powerpc/powerpc64/fpu/s_llround.S: Include
2846         <libm-alias-double.h>.
2847         (llround): Define using libm_alias_double.
2848         (lround): Likewise.
2849         * sysdeps/powerpc/powerpc64/power5+/fpu/s_llround.S: Include
2850         <libm-alias-double.h>.
2851         (llround): Define using libm_alias_double.
2852         (lround): Likewise.
2853         * sysdeps/powerpc/powerpc64/power6/fpu/s_copysign.S: Include
2854         <libm-alias-double.h>.
2855         (copysign): Define using libm_alias_double.
2856         * sysdeps/powerpc/powerpc64/power6x/fpu/s_llrint.S: Include
2857         <libm-alias-double.h>.
2858         (llrint): Define using libm_alias_double.
2859         (lrint): Likewise.
2860         * sysdeps/powerpc/powerpc64/power6x/fpu/s_llround.S: Include
2861         <libm-alias-double.h>.
2862         (llround): Define using libm_alias_double.
2863         (lround): Likewise.
2864         * sysdeps/powerpc/powerpc64/power8/fpu/s_llrint.S: Include
2865         <libm-alias-double.h>.
2866         (llrint): Define using libm_alias_double.
2867         (lrint): Likewise.
2868         * sysdeps/powerpc/powerpc64/power8/fpu/s_llround.S: Include
2869         <libm-alias-double.h>.
2870         (llround): Define using libm_alias_double.
2871         (lround): Likewise.
2873 2017-12-01  Joseph Myers  <joseph@codesourcery.com>
2875         * sysdeps/powerpc/powerpc64/fpu/multiarch/s_llround.c
2876         [LONG_DOUBLE_COMPAT(libm, GLIBC_2_1)] (lroundl): Do not define
2877         compat symbol based on llround.
2879         * sysdeps/powerpc/power7/fpu/s_logb.c
2880         [LONG_DOUBLE_COMPAT (libm, GLIBC_2_0)] (logbl): Define as compat
2881         symbol based on __logb, not on logb.
2882         * sysdeps/powerpc/powerpc32/power4/fpu/multiarch/s_logb.c
2883         [LONG_DOUBLE_COMPAT (libm, GLIBC_2_0)] (logbl): Likewise.
2884         * sysdeps/powerpc/powerpc64/fpu/multiarch/s_logb.c
2885         [LONG_DOUBLE_COMPAT (libm, GLIBC_2_0)] (logbl): Likewise.
2887         * sysdeps/powerpc/fpu/s_rint.c: Include <libm-alias-double.h>.
2888         (rint): Define using libm_alias_double.
2889         * sysdeps/powerpc/power5+/fpu/s_modf.c: Include
2890         <libm-alias-double.h>.
2891         (modf): Define using libm_alias_double.
2892         * sysdeps/powerpc/powerpc32/fpu/s_ceil.S: Include
2893         <libm-alias-double.h>.
2894         (ceil): Define using libm_alias_double.
2895         * sysdeps/powerpc/powerpc32/fpu/s_floor.S: Include
2896         <libm-alias-double.h>.
2897         (floor): Define using libm_alias_double.
2898         * sysdeps/powerpc/powerpc32/fpu/s_nearbyint.S: Include
2899         <libm-alias-double.h>.
2900         (nearbyint): Define using libm_alias_double.
2901         * sysdeps/powerpc/powerpc32/fpu/s_rint.S: Include
2902         <libm-alias-double.h>.
2903         (rint): Define using libm_alias_double.
2904         * sysdeps/powerpc/powerpc32/fpu/s_round.S: Include
2905         <libm-alias-double.h>.
2906         (round): Define using libm_alias_double.
2907         * sysdeps/powerpc/powerpc32/fpu/s_trunc.S: Include
2908         <libm-alias-double.h>.
2909         (trunc): Define using libm_alias_double.
2910         * sysdeps/powerpc/powerpc32/power4/fpu/multiarch/s_ceil.c: Include
2911         <libm-alias-double.h>.
2912         (ceil): Define using libm_alias_double.
2913         * sysdeps/powerpc/powerpc32/power4/fpu/multiarch/s_floor.c:
2914         Include <libm-alias-double.h>.
2915         (floor): Define using libm_alias_double.
2916         * sysdeps/powerpc/powerpc32/power4/fpu/multiarch/s_modf.c: Include
2917         <libm-alias-double.h>.
2918         (modf): Define using libm_alias_double.
2919         * sysdeps/powerpc/powerpc32/power4/fpu/multiarch/s_round.c:
2920         Include <libm-alias-double.h>.
2921         (round): Define using libm_alias_double.
2922         * sysdeps/powerpc/powerpc32/power4/fpu/multiarch/s_trunc.c:
2923         Include <libm-alias-double.h>.
2924         (trunc): Define using libm_alias_double.
2925         * sysdeps/powerpc/powerpc32/power5+/fpu/s_ceil.S: Include
2926         <libm-alias-double.h>.
2927         (ceil): Define using libm_alias_double.
2928         * sysdeps/powerpc/powerpc32/power5+/fpu/s_floor.S: Include
2929         <libm-alias-double.h>.
2930         (floor): Define using libm_alias_double.
2931         * sysdeps/powerpc/powerpc32/power5+/fpu/s_round.S: Include
2932         <libm-alias-double.h>.
2933         (round): Define using libm_alias_double.
2934         * sysdeps/powerpc/powerpc32/power5+/fpu/s_trunc.S: Include
2935         <libm-alias-double.h>.
2936         (trunc): Define using libm_alias_double.
2937         * sysdeps/powerpc/powerpc64/fpu/multiarch/s_ceil.c: Include
2938         <libm-alias-double.h>.
2939         (ceil): Define using libm_alias_double.
2940         * sysdeps/powerpc/powerpc64/fpu/multiarch/s_floor.c: Include
2941         <libm-alias-double.h>.
2942         (floor): Define using libm_alias_double.
2943         * sysdeps/powerpc/powerpc64/fpu/multiarch/s_modf.c: Include
2944         <libm-alias-double.h>.
2945         (modf): Define using libm_alias_double.
2946         * sysdeps/powerpc/powerpc64/fpu/multiarch/s_round.c: Include
2947         <libm-alias-double.h>.
2948         (round): Define using libm_alias_double.
2949         * sysdeps/powerpc/powerpc64/fpu/multiarch/s_trunc.c: Include
2950         <libm-alias-double.h>.
2951         (trunc): Define using libm_alias_double.
2952         * sysdeps/powerpc/powerpc64/fpu/s_ceil.S: Include
2953         <libm-alias-double.h>.
2954         (ceil): Define using libm_alias_double.
2955         * sysdeps/powerpc/powerpc64/fpu/s_floor.S: Include
2956         <libm-alias-double.h>.
2957         (floor): Define using libm_alias_double.
2958         * sysdeps/powerpc/powerpc64/fpu/s_nearbyint.S: Include
2959         <libm-alias-double.h>.
2960         (nearbyint): Define using libm_alias_double.
2961         * sysdeps/powerpc/powerpc64/fpu/s_rint.S: Include
2962         <libm-alias-double.h>.
2963         (rint): Define using libm_alias_double.
2964         * sysdeps/powerpc/powerpc64/fpu/s_round.S: Include
2965         <libm-alias-double.h>.
2966         (round): Define using libm_alias_double.
2967         * sysdeps/powerpc/powerpc64/fpu/s_trunc.S: Include
2968         <libm-alias-double.h>.
2969         (trunc): Define using libm_alias_double.
2970         * sysdeps/powerpc/powerpc64/power5+/fpu/s_ceil.S: Include
2971         <libm-alias-double.h>.
2972         (ceil): Define using libm_alias_double.
2973         * sysdeps/powerpc/powerpc64/power5+/fpu/s_floor.S: Include
2974         <libm-alias-double.h>.
2975         (floor): Define using libm_alias_double.
2976         * sysdeps/powerpc/powerpc64/power5+/fpu/s_round.S: Include
2977         <libm-alias-double.h>.
2978         (round): Define using libm_alias_double.
2979         * sysdeps/powerpc/powerpc64/power5+/fpu/s_trunc.S: Include
2980         <libm-alias-double.h>.
2981         (trunc): Define using libm_alias_double.
2983         * sysdeps/powerpc/fpu/s_fabs.S: Include <libm-alias-double.h>.
2984         (fabs): Define using libm_alias_double.
2985         * sysdeps/powerpc/fpu/s_fma.S: Include <libm-alias-double.h>.
2986         (fma): Define using libm_alias_double.
2987         * sysdeps/powerpc/powerpc32/fpu/s_fabs.S: Remove file.
2988         * sysdeps/powerpc/powerpc32/fpu/s_fma.S: Likewise.
2989         * sysdeps/powerpc/powerpc64/fpu/s_fabs.S: Likewise.
2990         * sysdeps/powerpc/powerpc64/fpu/s_fma.S: Likewise.
2992 2017-12-01  Adhemerval Zanella  <adhemerval.zanella@linaro.org>
2994         * sysdeps/unix/sysv/linux/x86_64/x32/getcpu.c: Remove file.
2996         * sysdeps/sparc/sparc-ifunc.h (SPARC_ASM_IFUNC_DFLT,
2997         SPARC_ASM_IFUNC1, SPARC_ASM_IFUNC2, SET, SPARC_ASM_VIS2_IFUNC,
2998         SPARC_ASM_VIS3_IFUNC, SPARC_ASM_VIS3_VIS2_IFUNC): Remove macros.
3000         * sysdeps/sparc/sparc32/sparcv9/fpu/multiarch/s_copysign.c: Fix build
3001         due redirect macro.
3003 2017-12-01  Andreas Schwab  <schwab@linux-m68k.org>
3005         * intl/Makefile ($(objpfx)plural.c): Add $(make-target-directory).
3007 2017-12-01  Adhemerval Zanella  <adhemerval.zanella@linaro.org>
3009         * sysdeps/sparc/sparc64/cpu_relax.c: New file.
3010         * sysdeps/sparc/sparc32/sparcv9/cpu_relax.c: Likewise.
3011         * sysdeps/sparc/sparc64/cpu_relax.S: Remove file.
3012         * sysdeps/sparc/sparc32/sparcv9/cpu_relax.S: Likewise.
3014         * sysdeps/sparc/sparc32/sparcv9/fpu/multiarch/Makefile
3015         (libm-sysdep_routines): Add s_nearbyintf-generic and
3016         s_nearbyint-generic.
3017         * sysdeps/sparc/sparc32/sparcv9/fpu/multiarch/s_nearbyint-generic.S:
3018         New file.
3019         * sysdeps/sparc/sparc32/sparcv9/fpu/multiarch/s_nearbyint.c: Likewise.
3020         * sysdeps/sparc/sparc32/sparcv9/fpu/multiarch/s_nearbyintf-generic.S:
3021         Likewise.
3022         * sysdeps/sparc/sparc32/sparcv9/fpu/multiarch/s_nearbyintf.c:
3023         Likewise.
3024         * sysdeps/sparc/sparc32/sparcv9/fpu/multiarch/s_nearbyint.S: Remove
3025         file.
3026         * sysdeps/sparc/sparc32/sparcv9/fpu/multiarch/s_nearbyintf.S:
3027         Likewise.
3029         * sysdeps/sparc/sparc32/sparcv9/fpu/multiarch/Makefile
3030         (libm-sysdep_routines): Add s_rintf-generic and s_rint-generic.
3031         * sysdeps/sparc/sparc32/sparcv9/fpu/multiarch/s_rint-generic.S: New
3032         file.
3033         * sysdeps/sparc/sparc32/sparcv9/fpu/multiarch/s_rint.c: Likewise.
3034         * sysdeps/sparc/sparc32/sparcv9/fpu/multiarch/s_rintf-generic.S:
3035         Likewise.
3036         * sysdeps/sparc/sparc32/sparcv9/fpu/multiarch/s_rintf.c: Likewise.
3037         * sysdeps/sparc/sparc32/sparcv9/fpu/multiarch/s_rint.S: Remove file.
3038         * sysdeps/sparc/sparc32/sparcv9/fpu/multiarch/s_rintf.S: Likewise.
3040         * sysdeps/sparc/sparc32/sparcv9/fpu/multiarch/Makefile
3041         (libm-sysdep_routines): Add s_llrintf-generic and s_llrint-generic.
3042         * sysdeps/sparc/sparc32/sparcv9/fpu/multiarch/s_llrint-generic.S: New
3043         file.
3044         * sysdeps/sparc/sparc32/sparcv9/fpu/multiarch/s_llrint.c: Likewise.
3045         * sysdeps/sparc/sparc32/sparcv9/fpu/multiarch/s_llrintf-generic.S:
3046         Likewise.
3047         * sysdeps/sparc/sparc32/sparcv9/fpu/multiarch/s_llrintf.c: Likewise.
3048         * sysdeps/sparc/sparc32/sparcv9/fpu/multiarch/s_llrint.S: Remove file.
3049         * sysdeps/sparc/sparc32/sparcv9/fpu/multiarch/s_llrintf.S: Likewise.
3051         * sysdeps/sparc/sparc32/sparcv9/fpu/multiarch/Makefile
3052         (libm-sysdep_routines): Add s_fabsf-generic and s_fabs-generic.
3053         * sysdeps/sparc/sparc32/sparcv9/fpu/multiarch/s_fabs-generic.S: New
3054         file.
3055         * sysdeps/sparc/sparc32/sparcv9/fpu/multiarch/s_fabs.c: Likewise.
3056         * sysdeps/sparc/sparc32/sparcv9/fpu/multiarch/s_fabsf-generic.S:
3057         Likewise.
3058         * sysdeps/sparc/sparc32/sparcv9/fpu/multiarch/s_fabsf.c: Likewise.
3059         * sysdeps/sparc/sparc32/sparcv9/fpu/multiarch/s_fabs.S: Remove file.
3060         * sysdeps/sparc/sparc32/sparcv9/fpu/multiarch/s_fabsf.S: Likewise.
3062         * sysdeps/sparc/sparc32/sparcv9/fpu/multiarch/Makefile
3063         (sysdep_calls): New rule.
3064         (sysdep_routines): Use sysdep_calls as base.
3065         (libm-sysdep_routines): Add generic rule for symbols shared with
3066         libc.  Add s_copysign-generic and s_copysign-generic objects.
3067         * sysdeps/sparc/sparc32/sparcv9/fpu/multiarch/s_copysign-generic.S:
3068         New file.
3069         * sysdeps/sparc/sparc32/sparcv9/fpu/multiarch/s_copysign.c: Likewise.
3070         * sysdeps/sparc/sparc32/sparcv9/fpu/multiarch/s_copysignf-generic.S:
3071         Likewise.
3072         * sysdeps/sparc/sparc32/sparcv9/fpu/multiarch/s_copysignf.c: Likewise.
3073         * sysdeps/sparc/sparc32/sparcv9/fpu/multiarch/s_copysign.S: Remove file.
3074         * sysdeps/sparc/sparc32/sparcv9/fpu/multiarch/s_copysignf.S: Likewise.
3076 2017-12-01  Mike FABIAN  <mfabian@redhat.com>
3078         [BZ #22519]
3079         * localedata/Makefile: Add is_IS.UTF-8 to test-input and to
3080         the list of locales to be built for testing.
3081         * localedata/is_IS.UTF-8.in: New file.
3082         * localedata/locales/is_IS (LC_COLLATE): Base collation rules
3083         on iso14651_t1.
3085 2017-12-01  Joseph Myers  <joseph@codesourcery.com>
3087         * sysdeps/powerpc/powerpc32/e500/nofpu/s_fabsf.S: Include
3088         <libm-alias-float.h>.
3089         (fabsf): Define using libm_alias_float.
3091 2017-11-30  H.J. Lu  <hongjiu.lu@intel.com>
3093         * sysdeps/mips/dl-machine.h (elf_machine_reloc): Expand MIN.
3095 2017-11-30  Joseph Myers  <joseph@codesourcery.com>
3097         * sysdeps/m68k/coldfire/fpu/s_fabsf.c: Include
3098         <libm-alias-float.h>.
3099         (fabsf): Define using libm_alias_float.
3100         * sysdeps/m68k/coldfire/fpu/s_lrintf.c: Include
3101         <libm-alias-float.h>.
3102         (lrintf): Define using libm_alias_float.
3103         * sysdeps/m68k/coldfire/fpu/s_rintf.c: Include
3104         <libm-alias-float.h>.
3105         (rintf): Define using libm_alias_float.
3107         * sysdeps/m68k/coldfire/fpu/s_fabs.c: Include
3108         <libm-alias-double.h>.
3109         (fabs): Define using libm_alias_double.
3110         * sysdeps/m68k/coldfire/fpu/s_lrint.c: Include
3111         <libm-alias-double.h>.
3112         (lrint): Define using libm_alias_double.
3113         * sysdeps/m68k/coldfire/fpu/s_rint.c: Include
3114         <libm-alias-double.h>.
3115         (rint): Define using libm_alias_double.
3117         * sysdeps/m68k/m680x0/fpu/s_atan_template.c: New file.
3118         * sysdeps/m68k/m680x0/fpu/s_ceil_template.c: Likewise.
3119         * sysdeps/m68k/m680x0/fpu/s_cos_template.c: Likewise.
3120         * sysdeps/m68k/m680x0/fpu/s_expm1_template.c: Likewise.
3121         * sysdeps/m68k/m680x0/fpu/s_fabs_template.c: Likewise.
3122         * sysdeps/m68k/m680x0/fpu/s_floor_template.c: Likewise.
3123         * sysdeps/m68k/m680x0/fpu/s_frexp_template.c: Likewise.
3124         * sysdeps/m68k/m680x0/fpu/s_lrint_template.c: Likewise.
3125         * sysdeps/m68k/m680x0/fpu/s_modf_template.c: Likewise.
3126         * sysdeps/m68k/m680x0/fpu/s_nearbyint_template.c: Likewise.
3127         * sysdeps/m68k/m680x0/fpu/s_remquo_template.c: Likewise.
3128         * sysdeps/m68k/m680x0/fpu/s_rint_template.c: Likewise.
3129         * sysdeps/m68k/m680x0/fpu/s_sin_template.c: Likewise.
3130         * sysdeps/m68k/m680x0/fpu/s_sincos_template.c: Likewise.
3131         * sysdeps/m68k/m680x0/fpu/s_tan_template.c: Likewise.
3132         * sysdeps/m68k/m680x0/fpu/s_tanh_template.c: Likewise.
3133         * sysdeps/m68k/m680x0/fpu/s_trunc_template.c: Likewise.
3134         * sysdeps/m68k/m680x0/fpu/s_atan.c: Reimplement to use
3135         s_atan_template.c.
3136         * sysdeps/m68k/m680x0/fpu/s_atanf.c: Likewise.
3137         * sysdeps/m68k/m680x0/fpu/s_atanl.c: Likewise.
3138         * sysdeps/m68k/m680x0/fpu/s_ceil.c: Reimplement to use
3139         s_ceil_template.c.
3140         * sysdeps/m68k/m680x0/fpu/s_ceilf.c: Likewise.
3141         * sysdeps/m68k/m680x0/fpu/s_ceill.c: Likewise.
3142         * sysdeps/m68k/m680x0/fpu/s_cos.c: Reimplement to use
3143         s_cos_template.c.
3144         * sysdeps/m68k/m680x0/fpu/s_cosf.c: Likewise.
3145         * sysdeps/m68k/m680x0/fpu/s_cosl.c: Likewise.
3146         * sysdeps/m68k/m680x0/fpu/s_expm1.c: Reimplement to use
3147         s_expm1_template.c.
3148         * sysdeps/m68k/m680x0/fpu/s_expm1f.c: Likewise.
3149         * sysdeps/m68k/m680x0/fpu/s_expm1l.c: Likewise.
3150         * sysdeps/m68k/m680x0/fpu/s_fabs.c: Reimplement to use
3151         s_fabs_template.c.
3152         * sysdeps/m68k/m680x0/fpu/s_fabsf.c: Likewise.
3153         * sysdeps/m68k/m680x0/fpu/s_fabsl.c: Likewise.
3154         * sysdeps/m68k/m680x0/fpu/s_floor.c: Reimplement to use
3155         s_floor_template.c.
3156         * sysdeps/m68k/m680x0/fpu/s_floorf.c: Likewise.
3157         * sysdeps/m68k/m680x0/fpu/s_floorl.c: Likewise.
3158         * sysdeps/m68k/m680x0/fpu/s_frexp.c: Reimplement to use
3159         s_frexp_template.c.
3160         * sysdeps/m68k/m680x0/fpu/s_frexpf.c: Likewise.
3161         * sysdeps/m68k/m680x0/fpu/s_lrint.c: Reimplement to use
3162         s_lrint_template.c.
3163         * sysdeps/m68k/m680x0/fpu/s_lrintf.c: Likewise.
3164         * sysdeps/m68k/m680x0/fpu/s_lrintl.c: Likewise.
3165         * sysdeps/m68k/m680x0/fpu/s_modf.c: Reimplement to use
3166         s_modf_template.c.
3167         * sysdeps/m68k/m680x0/fpu/s_modff.c: Likewise.
3168         * sysdeps/m68k/m680x0/fpu/s_modfl.c: Likewise.
3169         * sysdeps/m68k/m680x0/fpu/s_nearbyint.c: Reimplement to use
3170         s_nearbyint_template.c.
3171         * sysdeps/m68k/m680x0/fpu/s_nearbyintf.c: Likewise.
3172         * sysdeps/m68k/m680x0/fpu/s_nearbyintl.c: Likewise.
3173         * sysdeps/m68k/m680x0/fpu/s_remquo.c: Reimplement to use
3174         s_remquo_template.c.
3175         * sysdeps/m68k/m680x0/fpu/s_remquof.c: Likewise.
3176         * sysdeps/m68k/m680x0/fpu/s_remquol.c: Likewise.
3177         * sysdeps/m68k/m680x0/fpu/s_rint.c: Reimplement to use
3178         s_rint_template.c.
3179         * sysdeps/m68k/m680x0/fpu/s_rintf.c: Likewise.
3180         * sysdeps/m68k/m680x0/fpu/s_rintl.c: Likewise.
3181         * sysdeps/m68k/m680x0/fpu/s_sin.c: Reimplement to use
3182         s_sin_template.c.
3183         * sysdeps/m68k/m680x0/fpu/s_sinf.c: Likewise.
3184         * sysdeps/m68k/m680x0/fpu/s_sinl.c: Likewise.
3185         * sysdeps/m68k/m680x0/fpu/s_sincos.c: Reimplement to use
3186         s_sincos_template.c.
3187         * sysdeps/m68k/m680x0/fpu/s_sincosf.c: Likewise.
3188         * sysdeps/m68k/m680x0/fpu/s_sincosl.c: Likewise.
3189         * sysdeps/m68k/m680x0/fpu/s_tan.c: Reimplement to use
3190         s_tan_template.c.
3191         * sysdeps/m68k/m680x0/fpu/s_tanf.c: Likewise.
3192         * sysdeps/m68k/m680x0/fpu/s_tanl.c: Likewise.
3193         * sysdeps/m68k/m680x0/fpu/s_tanh.c: Reimplement to use
3194         s_tanh_template.c.
3195         * sysdeps/m68k/m680x0/fpu/s_tanhf.c: Likewise.
3196         * sysdeps/m68k/m680x0/fpu/s_tanhl.c: Likewise.
3197         * sysdeps/m68k/m680x0/fpu/s_trunc.c: Reimplement to use
3198         s_trunc_template.c.
3199         * sysdeps/m68k/m680x0/fpu/s_truncf.c: Likewise.
3200         * sysdeps/m68k/m680x0/fpu/s_truncl.c: Likewise.
3201         * sysdeps/m68k/m680x0/fpu/s_significand.c: Reimplement based on
3202         s_atan.c instead of including s_atan.c.
3203         * sysdeps/m68k/m680x0/fpu/s_significandf.c: Reimplement based on
3204         s_atanf.c instead of including s_atanf.c.
3205         * sysdeps/m68k/m680x0/fpu/s_significandl.c: Reimplement based on
3206         s_atanl.c instead of including s_atanl.c.
3207         * sysdeps/m68k/m680x0/fpu/s_log1p.c: Include s_significand.c
3208         instead of s_atan.c.
3209         * sysdeps/m68k/m680x0/fpu/s_log1pf.c: Include s_significandf.c
3210         instead of s_atanf.c.
3211         * sysdeps/m68k/m680x0/fpu/s_log1pl.c: Include s_significandl.c
3212         instead of s_atanl.c.
3214         * scripts/update-copyrights: Do not handle intl/plural.c
3215         specially.
3217 2017-11-30  Juro Bystricky  <juro.bystricky@linux.intel.com>
3219         [BZ #22432]
3220         * configure.ac (BISON): Require to be present.
3221         * configure: Regenerated.
3222         * intl/Makefile (generated): Add plural.c.
3223         [$(BISON) != no]: Make code unconditional.
3224         (plural.c): Change rule to $(objpfx)plural.c.
3225         ($(objpfx)plural.o): Depend on $(objpfx)plural.c.
3226         * intl/plural.c: Remove.
3227         * manual/install.texi (Tools for Compilation): Document bison as
3228         required.
3229         * INSTALL: Regenerated.
3231 2017-11-30  Joseph Myers  <joseph@codesourcery.com>
3233         * sysdeps/m68k/m680x0/fpu/s_llrint.c: Include
3234         <libm-alias-double.h>.
3235         (llrint): Define using libm_alias_double.
3236         * sysdeps/m68k/m680x0/fpu/s_llrintf.c: Include
3237         <libm-alias-float.h>.
3238         (llrintf): Define using libm_alias_float.
3239         * sysdeps/m68k/m680x0/fpu/s_llrintl.c: Include
3240         <libm-alias-ldouble.h>.
3241         (llrintl): Define using libm_alias_ldouble.
3243         * sysdeps/m68k/m680x0/fpu/s_ccosh_template.c (ccosh): Use
3244         declare_mgen_alias instead of weak_alias.
3245         * sysdeps/m68k/m680x0/fpu/s_cexp_template.c (cexp): Likewise.
3246         * sysdeps/m68k/m680x0/fpu/s_csin_template.c (csin): Likewise.
3247         * sysdeps/m68k/m680x0/fpu/s_csinh_template.c (csinh): Likewise.
3249 2017-11-30  Adhemerval Zanella  <adhemerval.zanella@linaro.org>
3251         * sysdeps/sparc/sparc64/multiarch/Makefile (sysdep_routines):
3252         Add add_n-generic.
3253         * sysdeps/sparc/sparc64/multiarch/add_n-generic.S: New file.
3254         * sysdeps/sparc/sparc64/multiarch/add_n.c: Likewise.
3255         * sysdeps/sparc/sparc64/multiarch/add_n.S: Remove file.
3257         * sysdeps/sparc/sparc64/multiarch/Makefile (sysdep_routines):
3258         Add submul_1-generic.
3259         * sysdeps/sparc/sparc64/multiarch/submul_1-generic.S: New file.
3260         * sysdeps/sparc/sparc64/multiarch/submul_1.c: Likewise.
3261         * sysdeps/sparc/sparc64/multiarch/submul_1.S: Remove file.
3263         * sysdeps/sparc/sparc64/multiarch/Makefile (sysdep_routines):
3264         Add addmul_1-generic.
3265         * sysdeps/sparc/sparc64/multiarch/addmul_1-generic.S: New file.
3266         * sysdeps/sparc/sparc64/multiarch/addmul_1.c: Likewise.
3267         * sysdeps/sparc/sparc64/multiarch/addmul_1.S: Remove file.
3269         * sysdeps/sparc/sparc64/multiarch/Makefile (sysdep_routines):
3270         Add sub_n-generic.
3271         * sysdeps/sparc/sparc64/multiarch/sub_n-generic.S: New file.
3272         * sysdeps/sparc/sparc64/multiarch/sub_n.c: Likewise.
3273         * sysdeps/sparc/sparc64/multiarch/sub_n.S: Remove file.
3275         * sysdeps/sparc/sparc64/multiarch/Makefile (sysdep_routines):
3276         Add mul_1-generic.
3277         * sysdeps/sparc/sparc64/multiarch/mul_1-generic.S: New file.
3278         * sysdeps/sparc/sparc64/multiarch/mul_1.c: Likewise.
3279         * sysdeps/sparc/sparc64/multiarch/mul_1.S: Remove file.
3281 2017-11-30  Mike FABIAN  <mfabian@redhat.com>
3283         According to CLDR, collation rules for Serbian and Bosnian
3284         should be the same as for Croatian.
3286         [BZ #22534]
3287         * localedata/Makefile: Add sr_RS.UTF-8 and bs_BA.UTF-8 to test-input
3288         and to the list of locales to be built for testing.
3289         * localedata/bs_BA.UTF-8.in: New file (same as hr_HR.UTF-8.in).
3290         * localedata/sr_RS.UTF-8.in: New file (same as hr_HR.UTF-8.in).
3291         * localedata/locales/bs_BA (LC_COLLATE): Use “copy "hr_HR"”.
3292         * localedata/locales/sr_RS (LC_COLLATE): Use “copy "hr_HR"”.
3294 2017-11-30  Mike FABIAN  <mfabian@redhat.com>
3296         * localedata/locales/hr_HR (LC_COLLATE): Fix collation
3297         to make test case pass.
3298         * localedata/hr_HR.UTF-8.in: Add more test strings.
3300 2017-11-30  Mike FABIAN  <mfabian@redhat.com>
3302         * stdlib/tst-strfmon_l.c: Fix testcase. Needed because of [BZ #10580]
3304 2017-11-30  Dragan Stanojević - Nevidljivi <invisible@hidden-city.net>
3306         * localedata/Makefile: Add hr_HR.UTF-8 to test-input and to
3307         the list of locales to built for testing.
3308         * localedata/hr_HR.UTF-8.in: New file.
3310 2017-11-30  Dragan Stanojević - Nevidljivi <invisible@hidden-city.net>
3312         [BZ #10580]
3313         * localedata/locales/hr_HR (LC_COLLATE): Base collation rules on
3314         iso14651_t1.
3315         * localedata/locales/hr_HR (LC_TIME): Sync month and day names with
3316         CLDR (except use ligatures for the digraphs, CLDR does not use
3317         the ligatures), add first_workday, some fixes in the date and time
3318         formats.
3319         * localedata/locales/hr_HR (LC_CTYPE): Add transliteration rules
3320         for Đ and đ.
3321         * localedata/locales/hr_HR (LC_MONETARY): Change currency_symbol to
3322         lower case. p_cs_precedes and n_cs_precedes should be 0 instead of 1.
3323         Add int_p_cs_precedes and int_n_cs_precedes.
3324         * localedata/locales/hr_HR (LC_NUMERIC): Change thousands_sep to
3325         "<U202F>" (NARROW NO-BREAK SPACE) and grouping to 3;3 (Agrees with
3326         LC_MONETARY now).
3327         * localedata/locales/hr_HR (LC_TELEPHONE): Add tel_dom_fmt.
3328         * localedata/locales/hr_HR (LC_NAME): Add name_mr, name_mrs, and
3329         name_miss.
3330         * localedata/locales/hr_HR (LC_ADDRESS): Add country_post, country_isbn,
3331         and lang_lib. Change postal_fmt.
3333 2017-11-30  H.J. Lu  <hongjiu.lu@intel.com>
3335         * debug/longjmp_chk.c: Include <setjmpP.h> instead of
3336         <setjmp.h>.
3337         * setjmp/longjmp.c: Include <setjmpP.h> instead of <setjmp.h>.
3338         (__libc_siglongjmp): Cast &env[0].__saved_mask to "sigset_t *".
3339         * setjmp/sigjmp.c: Include <setjmpP.h> instead of <setjmp.h>.
3340         (__sigjmp_save): Cast &env[0].__saved_mask to "sigset_t *".
3341         * sysdeps/generic/setjmpP.h: New file.
3342         * sysdeps/unix/sysv/linux/x86/jmp_buf-ssp.sym: Likewise.
3343         * sysdeps/unix/sysv/linux/x86/setjmpP.h: Likewise.
3344         * sysdeps/unix/sysv/linux/x86/tst-saved_mask-1.c: Likewise.
3345         * sysdeps/unix/sysv/linux/x86/Makefile (gen-as-const-headers):
3346         Add jmp_buf-ssp.sym.
3347         (tests): Add tst-saved_mask-1.
3349 2017-11-30  Arjun Shankar  <arjun@redhat.com>
3351         [BZ #22375]
3352         CVE-2017-17426
3353         * malloc/malloc.c (__libc_malloc): Use checked_request2size
3354         instead of request2size.
3356 2017-11-30  Joseph Myers  <joseph@codesourcery.com>
3358         * sysdeps/sparc/sparc32/sparcv9/fpu/multiarch/s_llrint.S
3359         (__lllrint): Remove alias.
3360         (lllrint): Likewise.
3361         * sysdeps/sparc/sparc32/sparcv9/fpu/multiarch/s_llrintf.S
3362         (__lllrintf): Likewise.
3363         (lllrintf): Likewise.
3365         * sysdeps/sparc/sparc32/fpu/s_copysignf.S: Include
3366         <libm-alias-float.h>.
3367         (copysignf): Define using libm_alias_float.
3368         * sysdeps/sparc/sparc32/fpu/s_fabsf.S: Include
3369         <libm-alias-float.h>.
3370         (fabsf): Define using libm_alias_float.
3371         * sysdeps/sparc/sparc32/sparcv9/fpu/multiarch/s_copysignf.S:
3372         Include <libm-alias-float.h>.
3373         (copysignf): Define using libm_alias_float.
3374         * sysdeps/sparc/sparc32/sparcv9/fpu/multiarch/s_fabsf.S: Include
3375         <libm-alias-float.h>.
3376         (fabsf): Define using libm_alias_float.
3377         * sysdeps/sparc/sparc32/sparcv9/fpu/multiarch/s_fdimf.c: Include
3378         <libm-alias-float.h>.
3379         (fdimf): Define using libm_alias_float.
3380         * sysdeps/sparc/sparc32/sparcv9/fpu/multiarch/s_fmaf.c: Include
3381         <libm-alias-float.h>.
3382         (fmaf): Define using libm_alias_float.
3383         * sysdeps/sparc/sparc32/sparcv9/fpu/multiarch/s_llrintf.S: Include
3384         <libm-alias-float.h>.
3385         (llrintf): Define using libm_alias_float.
3386         * sysdeps/sparc/sparc32/sparcv9/fpu/multiarch/s_nearbyintf.S:
3387         Include <libm-alias-float.h>.
3388         (nearbyintf): Define using libm_alias_float.
3389         * sysdeps/sparc/sparc32/sparcv9/fpu/multiarch/s_rintf.S: Include
3390         <libm-alias-float.h>.
3391         (rintf): Define using libm_alias_float.
3392         * sysdeps/sparc/sparc32/sparcv9/fpu/s_llrintf.S: Include
3393         <libm-alias-float.h>.
3394         (llrintf): Define using libm_alias_float.
3395         * sysdeps/sparc/sparc32/sparcv9/fpu/s_lrintf.S: Include
3396         <libm-alias-float.h>.
3397         (lrintf): Define using libm_alias_float.
3398         * sysdeps/sparc/sparc32/sparcv9/fpu/s_nearbyintf.S: Include
3399         <libm-alias-float.h>.
3400         (nearbyintf): Define using libm_alias_float.
3401         * sysdeps/sparc/sparc32/sparcv9/fpu/s_rintf.S: Include
3402         <libm-alias-float.h>.
3403         (rintf): Define using libm_alias_float.
3404         * sysdeps/sparc/sparc64/fpu/multiarch/s_ceilf.c: Include
3405         <libm-alias-float.h>.
3406         (ceilf): Define using libm_alias_float.
3407         * sysdeps/sparc/sparc64/fpu/multiarch/s_floorf.c: Include
3408         <libm-alias-float.h>.
3409         (floorf): Define using libm_alias_float.
3410         * sysdeps/sparc/sparc64/fpu/multiarch/s_fmaf.c: Include
3411         <libm-alias-float.h>.
3412         (fmaf): Define using libm_alias_float.
3413         * sysdeps/sparc/sparc64/fpu/multiarch/s_lrintf.c: Include
3414         <libm-alias-float.h>.
3415         (lrintf): Define using libm_alias_float.
3416         (llrintf): Likewise.
3417         * sysdeps/sparc/sparc64/fpu/multiarch/s_nearbyintf.c: Include
3418         <libm-alias-float.h>.
3419         (nearbyintf): Define using libm_alias_float.
3420         * sysdeps/sparc/sparc64/fpu/multiarch/s_rintf.c: Include
3421         <libm-alias-float.h>.
3422         (rintf): Define using libm_alias_float.
3423         * sysdeps/sparc/sparc64/fpu/multiarch/s_truncf.c: Include
3424         <libm-alias-float.h>.
3425         (truncf): Define using libm_alias_float.
3426         * sysdeps/sparc/sparc64/fpu/s_copysignf.S: Include
3427         <libm-alias-float.h>.
3428         (copysignf): Define using libm_alias_float.
3429         * sysdeps/sparc/sparc64/fpu/s_fabsf.c: Include
3430         <libm-alias-float.h>.
3431         (fabsf): Define using libm_alias_float.
3432         * sysdeps/sparc/sparc64/fpu/s_lrintf.S: Include
3433         <libm-alias-float.h>.
3434         (lrintf): Define using libm_alias_float.
3435         (llrintf): Likewise.
3436         * sysdeps/sparc/sparc64/fpu/s_nearbyintf.S: Include
3437         <libm-alias-float.h>.
3438         (nearbyintf): Define using libm_alias_float.
3439         * sysdeps/sparc/sparc64/fpu/s_rintf.S: Include
3440         <libm-alias-float.h>.
3441         (rintf): Define using libm_alias_float.
3443 2017-11-29  Joseph Myers  <joseph@codesourcery.com>
3445         * sysdeps/sparc/sparc32/fpu/s_copysign.S: Include
3446         <libm-alias-double.h>.
3447         (copysign): Define using libm_alias_double.
3448         * sysdeps/sparc/sparc32/fpu/s_fabs.S: Include
3449         <libm-alias-double.h>.
3450         (fabs): Define using libm_alias_double.
3451         * sysdeps/sparc/sparc32/sparcv9/fpu/multiarch/s_copysign.S:
3452         Include <libm-alias-double.h>.
3453         (copysign): Define using libm_alias_double.
3454         * sysdeps/sparc/sparc32/sparcv9/fpu/multiarch/s_fabs.S: Include
3455         <libm-alias-double.h>.
3456         (fabs): Define using libm_alias_double.
3457         * sysdeps/sparc/sparc32/sparcv9/fpu/multiarch/s_fdim.c: Include
3458         <libm-alias-double.h>.
3459         (fdim): Define using libm_alias_double.
3460         * sysdeps/sparc/sparc32/sparcv9/fpu/multiarch/s_fma.c: Include
3461         <libm-alias-double.h>.
3462         (fma): Define using libm_alias_double.
3463         * sysdeps/sparc/sparc32/sparcv9/fpu/multiarch/s_llrint.S: Include
3464         <libm-alias-double.h>.
3465         (llrint): Define using libm_alias_double.
3466         * sysdeps/sparc/sparc32/sparcv9/fpu/multiarch/s_nearbyint.S:
3467         Include <libm-alias-double.h>.
3468         (nearbyint): Define using libm_alias_double.
3469         * sysdeps/sparc/sparc32/sparcv9/fpu/multiarch/s_rint.S: Include
3470         <libm-alias-double.h>.
3471         (rint): Define using libm_alias_double.
3472         * sysdeps/sparc/sparc32/sparcv9/fpu/s_fabs.S: Include
3473         <libm-alias-double.h>.
3474         (fabs): Define using libm_alias_double.
3475         * sysdeps/sparc/sparc32/sparcv9/fpu/s_llrint.S: Include
3476         <libm-alias-double.h>.
3477         (llrint): Define using libm_alias_double.
3478         * sysdeps/sparc/sparc32/sparcv9/fpu/s_nearbyint.S: Include
3479         <libm-alias-double.h>.
3480         (nearbyint): Define using libm_alias_double.
3481         * sysdeps/sparc/sparc32/sparcv9/fpu/s_rint.S: Include
3482         <libm-alias-double.h>.
3483         (rint): Define using libm_alias_double.
3484         * sysdeps/sparc/sparc64/fpu/multiarch/s_ceil.c: Include
3485         <libm-alias-double.h>.
3486         (ceil): Define using libm_alias_double.
3487         * sysdeps/sparc/sparc64/fpu/multiarch/s_floor.c: Include
3488         <libm-alias-double.h>.
3489         (floor): Define using libm_alias_double.
3490         * sysdeps/sparc/sparc64/fpu/multiarch/s_fma.c: Include
3491         <libm-alias-double.h>.
3492         (fma): Define using libm_alias_double.
3493         * sysdeps/sparc/sparc64/fpu/multiarch/s_lrint.c: Include
3494         <libm-alias-double.h>.
3495         (lrint): Define using libm_alias_double.
3496         (llrint): Likewise.
3497         * sysdeps/sparc/sparc64/fpu/multiarch/s_nearbyint.c: Include
3498         <libm-alias-double.h>.
3499         (nearbyint): Define using libm_alias_double.
3500         * sysdeps/sparc/sparc64/fpu/multiarch/s_rint.c: Include
3501         <libm-alias-double.h>.
3502         (rint): Define using libm_alias_double.
3503         * sysdeps/sparc/sparc64/fpu/multiarch/s_trunc.c: Include
3504         <libm-alias-double.h>.
3505         (trunc): Define using libm_alias_double.
3506         * sysdeps/sparc/sparc64/fpu/s_copysign.S: Include
3507         <libm-alias-double.h>.
3508         (copysign): Define using libm_alias_double.
3509         * sysdeps/sparc/sparc64/fpu/s_fabs.c: Include
3510         <libm-alias-double.h>.
3511         (fabs): Define using libm_alias_double.
3512         * sysdeps/sparc/sparc64/fpu/s_lrint.S: Include
3513         <libm-alias-double.h>.
3514         (lrint): Define using libm_alias_double.
3515         (llrint): Likewise.
3516         * sysdeps/sparc/sparc64/fpu/s_nearbyint.S: Include
3517         <libm-alias-double.h>.
3518         (nearbyint): Define using libm_alias_double.
3519         * sysdeps/sparc/sparc64/fpu/s_rint.S: Include
3520         <libm-alias-double.h>.
3521         (rint): Define using libm_alias_double.
3523         [BZ #22229]
3524         * sysdeps/sparc/sparc32/sparcv9/fpu/s_fabs.S: Include
3525         <math_ldbl_opt.h>.
3526         (fabsl): Define as compat symbol at version GLIBC_2_0 for libm.
3528         * scripts/build-many-glibcs.py (Context.add_all_configs): Add
3529         SPARC --disable-multi-arch glibc variants.
3531         * sysdeps/x86_64/fpu/multiarch/e_exp2f.c: Include
3532         <libm-alias-float.h>.
3533         (exp2f): Define using libm_alias_float, or libm_alias_float_other
3534         if [SHARED].
3535         * sysdeps/x86_64/fpu/multiarch/e_expf.c: Include
3536         <libm-alias-float.h>.
3537         (exp2f): Define using libm_alias_float, or libm_alias_float_other
3538         if [SHARED].
3539         * sysdeps/x86_64/fpu/multiarch/e_log2f.c: Include
3540         <libm-alias-float.h>.
3541         (exp2f): Define using libm_alias_float, or libm_alias_float_other
3542         if [SHARED].
3543         * sysdeps/x86_64/fpu/multiarch/e_logf.c: Include
3544         <libm-alias-float.h>.
3545         (exp2f): Define using libm_alias_float, or libm_alias_float_other
3546         if [SHARED].
3547         * sysdeps/x86_64/fpu/multiarch/e_powf.c: Include
3548         <libm-alias-float.h>.
3549         (exp2f): Define using libm_alias_float, or libm_alias_float_other
3550         if [SHARED].
3551         * sysdeps/x86_64/fpu/multiarch/s_ceilf.c: Include
3552         <libm-alias-float.h>.
3553         (ceilf): Define using libm_alias_float.
3554         * sysdeps/x86_64/fpu/multiarch/s_floorf.c: Include
3555         <libm-alias-float.h>.
3556         (floorf): Define using libm_alias_float.
3557         * sysdeps/x86_64/fpu/multiarch/s_fmaf.c: Include
3558         <libm-alias-float.h>.
3559         (fmaf): Define using libm_alias_float.
3560         * sysdeps/x86_64/fpu/multiarch/s_nearbyintf.c: Include
3561         <libm-alias-float.h>.
3562         (nearbyintf): Define using libm_alias_float.
3563         * sysdeps/x86_64/fpu/multiarch/s_rintf.c: Include
3564         <libm-alias-float.h>.
3565         (rintf): Define using libm_alias_float.
3566         * sysdeps/x86_64/fpu/multiarch/s_truncf.c: Include
3567         <libm-alias-float.h>.
3568         (truncf): Define using libm_alias_float.
3569         * sysdeps/x86_64/fpu/s_copysignf.S: Include <libm-alias-float.h>.
3570         (copysignf): Define using libm_alias_float.
3571         * sysdeps/x86_64/fpu/s_cosf.S: Include <libm-alias-float.h>.
3572         (cosf): Define using libm_alias_float.
3573         * sysdeps/x86_64/fpu/s_fabsf.c: Include <libm-alias-float.h>.
3574         (fabsf): Define using libm_alias_float.
3575         * sysdeps/x86_64/fpu/s_fmaxf.S: Include <libm-alias-float.h>.
3576         (fmaxf): Define using libm_alias_float.
3577         * sysdeps/x86_64/fpu/s_fminf.S: Include <libm-alias-float.h>.
3578         (fminf): Define using libm_alias_float.
3579         * sysdeps/x86_64/fpu/s_llrintf.S: Include <libm-alias-float.h>.
3580         (llrintf): Define using libm_alias_float.
3581         [!__ILP32__] (lrintf): Likewise.
3582         * sysdeps/x86_64/fpu/s_sincosf.S: Include <libm-alias-float.h>.
3583         (sincosf): Define using libm_alias_float.
3584         * sysdeps/x86_64/fpu/s_sinf.S: Include <libm-alias-float.h>.
3585         (sinf): Define using libm_alias_float.
3586         * sysdeps/x86_64/x32/fpu/s_lrintf.S: Include <libm-alias-float.h>.
3587         (lrintf): Define using libm_alias_float.
3589         * sysdeps/x86_64/fpu/multiarch/s_atan.c: Include
3590         <libm-alias-double.h>.
3591         (atan): Define using libm_alias_double.
3592         * sysdeps/x86_64/fpu/multiarch/s_ceil.c: Include
3593         <libm-alias-double.h>.
3594         (ceil): Define using libm_alias_double.
3595         * sysdeps/x86_64/fpu/multiarch/s_floor.c: Include
3596         <libm-alias-double.h>.
3597         (floor): Define using libm_alias_double.
3598         * sysdeps/x86_64/fpu/multiarch/s_fma.c: Include
3599         <libm-alias-double.h>.
3600         (fma): Define using libm_alias_double.
3601         * sysdeps/x86_64/fpu/multiarch/s_nearbyint.c: Include
3602         <libm-alias-double.h>.
3603         (nearbyint): Define using libm_alias_double.
3604         * sysdeps/x86_64/fpu/multiarch/s_rint.c: Include
3605         <libm-alias-double.h>.
3606         (rint): Define using libm_alias_double.
3607         * sysdeps/x86_64/fpu/multiarch/s_sin.c: Include
3608         <libm-alias-double.h>.
3609         (sin): Define using libm_alias_double.
3610         (cos): Likewise.
3611         * sysdeps/x86_64/fpu/multiarch/s_tan.c: Include
3612         <libm-alias-double.h>.
3613         (tan): Define using libm_alias_double.
3614         * sysdeps/x86_64/fpu/multiarch/s_trunc.c: Include
3615         <libm-alias-double.h>.
3616         (trunc): Define using libm_alias_double.
3617         * sysdeps/x86_64/fpu/s_copysign.S: Include <libm-alias-double.h>.
3618         (copysign): Define using libm_alias_double.
3619         * sysdeps/x86_64/fpu/s_fabs.c: Include <libm-alias-double.h>.
3620         (fabs): Define using libm_alias_double.
3621         * sysdeps/x86_64/fpu/s_fmax.S: Include <libm-alias-double.h>.
3622         (fmax): Define using libm_alias_double.
3623         * sysdeps/x86_64/fpu/s_fmin.S: Include <libm-alias-double.h>.
3624         (fmin): Define using libm_alias_double.
3625         * sysdeps/x86_64/fpu/s_llrint.S: Include <libm-alias-double.h>.
3626         (llrint): Define using libm_alias_double.
3627         [!__ILP32__] (lrint): Likewise.
3628         * sysdeps/x86_64/x32/fpu/s_lrint.S: Include <libm-alias-double.h>.
3629         (lrint): Define using libm_alias_double.
3631 2017-11-29  Adhemerval Zanella  <adhemerval.zanella@linaro.org>
3633         * sysdeps/sparc/sparc64/fpu/multiarch/Makefile
3634         (libm-sysdep_routines): Add s_rintf-generic and s_rint-generic
3635         objects.
3636         * sysdeps/sparc/sparc64/fpu/multiarch/s_rint-generic.S: New file.
3637         * sysdeps/sparc/sparc64/fpu/multiarch/s_rint.c: Likewise.
3638         * sysdeps/sparc/sparc64/fpu/multiarch/s_rintf-generic.S: Likewise.
3639         * sysdeps/sparc/sparc64/fpu/multiarch/s_rintf.c: Likewise.
3640         * sysdeps/sparc/sparc64/fpu/multiarch/s_rint.S: Remove file.
3641         * sysdeps/sparc/sparc64/fpu/multiarch/s_rintf.S: Likewise.
3643         * sysdeps/sparc/sparc64/fpu/multiarch/Makefile
3644         (libm-sysdep_routines): Add s_lrint-generic and s_lrintf-generic
3645         objects.
3646         * sysdeps/sparc/sparc64/fpu/multiarch/s_lrint-generic.S: New file.
3647         * sysdeps/sparc/sparc64/fpu/multiarch/s_lrint.c: Likewise.
3648         * sysdeps/sparc/sparc64/fpu/multiarch/s_lrintf-generic.S: Likewise.
3649         * sysdeps/sparc/sparc64/fpu/multiarch/s_lrintf.c: Likewise.
3650         * sysdeps/sparc/sparc64/fpu/multiarch/s_lrint.S: Remove file.
3651         * sysdeps/sparc/sparc64/fpu/multiarch/s_lrintf.S: Likewise.
3653         * sysdeps/sparc/sparc64/fpu/multiarch/Makefile
3654         (libm-sysdep_routines): Add s_nearbyint-generic and
3655         s_nearbyintf-generic objects.
3656         * sysdeps/sparc/sparc64/fpu/multiarch/s_nearbyint-generic.S: New file.
3657         * sysdeps/sparc/sparc64/fpu/multiarch/s_nearbyint.c: Likewise.
3658         * sysdeps/sparc/sparc64/fpu/multiarch/s_nearbyintf-generic.S: Likewise.
3659         * sysdeps/sparc/sparc64/fpu/multiarch/s_nearbyintf.c: Likewise.
3660         * sysdeps/sparc/sparc64/fpu/multiarch/s_nearbyint.S: Remove file.
3661         * sysdeps/sparc/sparc64/fpu/multiarch/s_nearbyintf.S: Likewise.
3663         * sysdeps/sparc/sparc64/fpu/multiarch/Makefile (sysdeps_calls):
3664         Add s_finitef-generic and s_finite-generic objects.
3665         * sysdeps/sparc/sparc64/fpu/multiarch/s_finite-generic.S: New file.
3666         * sysdeps/sparc/sparc64/fpu/multiarch/s_finite.c: Likewise.
3667         * sysdeps/sparc/sparc64/fpu/multiarch/s_finitef-generic.S: Likewise.
3668         * sysdeps/sparc/sparc64/fpu/multiarch/s_finitef.c: Likewise.
3669         * sysdeps/sparc/sparc64/fpu/multiarch/s_finite.S: Remove file.
3670         * sysdeps/sparc/sparc64/fpu/multiarch/s_finitef.S: Remove file.
3672         * sysdeps/sparc/sparc64/fpu/multiarch/Makefile (sysdeps_calls):
3673         Add s_isinff-generic and s_isinf-generic objects.
3674         * sysdeps/sparc/sparc64/fpu/multiarch/s_isinf-generic.S: New file.
3675         * sysdeps/sparc/sparc64/fpu/multiarch/s_isinf.c: Likewise.
3676         * sysdeps/sparc/sparc64/fpu/multiarch/s_isinff-generic.S: Likewise.
3677         * sysdeps/sparc/sparc64/fpu/multiarch/s_isinff.c: Likewise.
3678         * sysdeps/sparc/sparc64/fpu/multiarch/s_isinf.S: Remove file.
3679         * sysdeps/sparc/sparc64/fpu/multiarch/s_isinff.S: Likewise.
3681         * sysdeps/sparc/sparc64/fpu/multiarch/Makefile (sysdeps_calls):
3682         Add s_isnanf-generic and s_isnan-generic objects.
3683         * sysdeps/sparc/sparc64/fpu/multiarch/s_isnan-generic.S: New file.
3684         * sysdeps/sparc/sparc64/fpu/multiarch/s_isnanf-generic.S: Likewise.
3685         * sysdeps/sparc/sparc64/fpu/multiarch/s_isnan.c: Likewise.
3686         * sysdeps/sparc/sparc64/fpu/multiarch/s_isnanf.c: Likewise.
3687         * sysdeps/sparc/sparc64/fpu/multiarch/s_isnan.S: Remove file.
3688         * sysdeps/sparc/sparc64/fpu/multiarch/s_isnanf.S: Likewise.
3690         * sysdeps/sparc/sparc-ifunc.h (sparc_libm_ifunc_redirected): New
3691         macro.
3692         * sysdeps/sparc/sparc64/fpu/multiarch/Makefile (sysdep_calls): New
3693         rule.
3694         (sysdep_routines): Use sysdep_calls as base.
3695         (libm-sysdep_routines): Add generic rule for symbols shared with
3696         libc.  Add s_signbit-generic and s_signbitf-generic objects.
3697         * sysdeps/sparc/sparc64/fpu/multiarch/s_signbit.c: New file.
3698         * sysdeps/sparc/sparc64/fpu/multiarch/s_signbitf.c: Likewise.
3699         * sysdeps/sparc/sparc64/fpu/multiarch/s_signbit-generic.S: Likewise.
3700         * sysdeps/sparc/sparc64/fpu/multiarch/s_signbitf-generic.S: Likewise.
3701         * sysdeps/sparc/sparc64/fpu/multiarch/s_signbit.S: Remove file.
3702         * sysdeps/sparc/sparc64/fpu/multiarch/s_signbitf.S: Likewise.
3704 2017-11-29  Joseph Myers  <joseph@codesourcery.com>
3706         * sysdeps/ia64/fpu/libm-symbols.h: Include <libm-alias-float.h>.
3707         * sysdeps/ia64/fpu/e_acosf.S (acosf): Use libm_alias_float_other.
3708         * sysdeps/ia64/fpu/e_acoshf.S (acoshf): Likewise.
3709         * sysdeps/ia64/fpu/e_asinf.S (asinf): Likewise.
3710         * sysdeps/ia64/fpu/e_atan2f.S (atan2f): Likewise.
3711         * sysdeps/ia64/fpu/e_atanhf.S (atanhf): Likewise.
3712         * sysdeps/ia64/fpu/e_coshf.S (coshf): Likewise.
3713         * sysdeps/ia64/fpu/e_exp10f.S (exp10f): Likewise.
3714         * sysdeps/ia64/fpu/e_exp2f.S (exp2f): Likewise.
3715         * sysdeps/ia64/fpu/e_expf.S (expf): Likewise.
3716         * sysdeps/ia64/fpu/e_fmodf.S (fmodf): Likewise.
3717         * sysdeps/ia64/fpu/e_hypotf.S (hypotf): Likewise.
3718         * sysdeps/ia64/fpu/e_lgammaf_r.c (lgammaf_r): Define using
3719         libm_alias_float_r.
3720         * sysdeps/ia64/fpu/e_log2f.S (log2f): Use libm_alias_float_other.
3721         * sysdeps/ia64/fpu/e_logf.S (log10f): Likewise.
3722         (logf): Likewise.
3723         * sysdeps/ia64/fpu/e_powf.S (powf): Likewise.
3724         * sysdeps/ia64/fpu/e_remainderf.S (remainderf): Likewise.
3725         * sysdeps/ia64/fpu/e_sinhf.S (sinhf): Likewise.
3726         * sysdeps/ia64/fpu/e_sqrtf.S (sqrtf): Likewise.
3727         * sysdeps/ia64/fpu/libm_sincosf.S (sincosf): Likewise.
3728         * sysdeps/ia64/fpu/s_asinhf.S (asinhf): Likewise.
3729         * sysdeps/ia64/fpu/s_atanf.S (atanf): Likewise.
3730         * sysdeps/ia64/fpu/s_cbrtf.S (cbrtf): Likewise.
3731         * sysdeps/ia64/fpu/s_ceilf.S (ceilf): Likewise.
3732         * sysdeps/ia64/fpu/s_copysign.S (copysignf): Define using
3733         libm_alias_float.
3734         * sysdeps/ia64/fpu/s_cosf.S (sinf): Use libm_alias_float_other.
3735         (cosf): Likewise.
3736         * sysdeps/ia64/fpu/s_erfcf.S (erfcf): Likewise.
3737         * sysdeps/ia64/fpu/s_erff.S (erff): Likewise.
3738         * sysdeps/ia64/fpu/s_expm1f.S (expm1f): Likewise.
3739         * sysdeps/ia64/fpu/s_fabsf.S (fabsf): Likewise.
3740         * sysdeps/ia64/fpu/s_fdimf.S (fdimf): Likewise.
3741         * sysdeps/ia64/fpu/s_floorf.S (floorf): Likewise.
3742         * sysdeps/ia64/fpu/s_fmaf.S (fmaf): Likewise.
3743         * sysdeps/ia64/fpu/s_fmaxf.S (fmaxf): Likewise.
3744         * sysdeps/ia64/fpu/s_frexpf.c (frexpf): Likewise.
3745         * sysdeps/ia64/fpu/s_ldexpf.c (ldexpf): Likewise.
3746         * sysdeps/ia64/fpu/s_log1pf.S (log1pf): Likewise.
3747         * sysdeps/ia64/fpu/s_logbf.S (logbf): Likewise.
3748         * sysdeps/ia64/fpu/s_modff.S (modff): Likewise.
3749         * sysdeps/ia64/fpu/s_nearbyintf.S (nearbyintf): Likewise.
3750         * sysdeps/ia64/fpu/s_nextafterf.S (nextafterf): Likewise.
3751         * sysdeps/ia64/fpu/s_rintf.S (rintf): Likewise.
3752         * sysdeps/ia64/fpu/s_roundf.S (roundf): Likewise.
3753         * sysdeps/ia64/fpu/s_scalblnf.c (scalblnf): Likewise.
3754         * sysdeps/ia64/fpu/s_scalbnf.c (scalbnf): Define using
3755         libm_alias_float.
3756         * sysdeps/ia64/fpu/s_tanf.S (tanf): Use libm_alias_float_other.
3757         * sysdeps/ia64/fpu/s_tanhf.S (tanhf): Likewise.
3758         * sysdeps/ia64/fpu/s_truncf.S (truncf): Likewise.
3759         * sysdeps/ia64/fpu/w_lgammaf_main.c
3760         [BUILD_LGAMMA && !USE_AS_COMPAT] (lgammaf): Likewise.
3761         * sysdeps/ia64/fpu/w_tgammaf_compat.S (tgammaf): Likewise.
3763 2017-11-28  Mike FABIAN  <mfabian@redhat.com>, Alexandre Oliva <aoliva@redhat.com>
3765         [BZ #17750]
3766         * Makefile: add fr_CA.UTF-8 to test-input and LOCALES.
3767         * localedata/fr_CA.UTF-8.in: New file with test data for backward
3768         accents sorting.
3769         * localedata/fr_FR.UTF-8.in: Fix test data for forward accents
3770         sorting.
3771         * localedata/locales/cs_CZ (LC_COLLATE): Remove “define DIACRIT_FORWARD”
3772         * localedata/locales/de_DE (LC_COLLATE): Likewise.
3773         * localedata/locales/hu_HU (LC_COLLATE): Likewise.
3774         * localedata/locales/lb_LU (LC_COLLATE): Likewise.
3775         * localedata/locales/yuw_PG (LC_COLLATE): Likewise.
3776         * localedata/locales/fr_CA (LC_COLLATE): Add “define DIACRIT_BACKWARD”
3777         * localedata/locales/iso14651_t1_common: Use “ifdef DIACRIT_FORWARD”
3778         instead of “ifdef DIACRIT_BACKWARD”.
3780 2017-11-29  Adhemerval Zanella  <adhemerval.zanella@linaro.org>
3782         * config.h.in (HAVE_AS_VIS3_SUPPORT): Remove check for VIS3 support.
3783         * sysdeps/sparc/configure.ac (HAVE_AS_VIS3_SUPPORT): Likewise.
3784         * sysdeps//sparc/sparc32/sparcv9/fpu/multiarch/s_fdim.c: Likewise.
3785         * sysdeps//sparc/sparc32/sparcv9/fpu/multiarch/s_fdimf.c: Likewise.
3786         * sysdeps//sparc/sparc32/sparcv9/fpu/multiarch/s_fma.c: Likewise.
3787         * sysdeps//sparc/sparc32/sparcv9/fpu/multiarch/s_fmaf.c: Likewise.
3788         * sysdeps/sparc/sparc64/fpu/multiarch/s_ceil.c: Likewise.
3789         * sysdeps/sparc/sparc64/fpu/multiarch/s_ceilf.c: Likewise.
3790         * sysdeps/sparc/sparc64/fpu/multiarch/s_floor.c: Likewise.
3791         * sysdeps/sparc/sparc64/fpu/multiarch/s_floorf.c: Likewise.
3792         * sysdeps/sparc/sparc64/fpu/multiarch/s_fma.c: Likewise.
3793         * sysdeps/sparc/sparc64/fpu/multiarch/s_fmaf.c: Likewise.
3794         * sysdeps/sparc/sparc64/fpu/multiarch/s_trunc.c: Likewise.
3795         * sysdeps/sparc/sparc64/fpu/multiarch/s_truncf.c: Likewise.
3796         * sysdeps/sparc/sparc-ifunc.h [!HAVE_AS_VIS3_SUPPORT]
3797         (SPARC_ASM_VIS3_IFUNC, SPARC_ASM_VIS3_VIS2_IFUNC): Remove macros.
3798         * sysdeps/sparc/sparc32/sparcv9/Makefile [$(have-as-vis3) != yes]
3799         (ASFLAGS.o, ASFLAGS-.os, ASFLAGS-.op, ASFLAGS-.oS): Remove rules.
3800         * sysdeps/sparc/sparc32/sparcv9/fpu/multiarch/Makefile
3801         ($(have-as-vis3) == yes): Remove conditional.
3802         * sysdeps/sparc/sparc64/Makefile (($(have-as-vis3) == yes)):
3803         Likewise.
3804         * sysdeps/sparc/sparc32/sparcv9/fpu/multiarch/s_fdim-generic.c: New
3805         file.
3806         * sysdeps/sparc/sparc32/sparcv9/fpu/multiarch/s_fdimf-generic.c: New
3807         file.
3808         * sysdeps/sparc/sparc32/sparcv9/fpu/multiarch/s_fma-generic.c: New
3809         file.
3810         * sysdeps/sparc/sparc32/sparcv9/fpu/multiarch/s_fmaf-generic.c: New
3811         file.
3812         * sysdeps/sparc/sparc64/fpu/multiarch/s_ceil-generic.c: New file.
3813         * sysdeps/sparc/sparc64/fpu/multiarch/s_ceilf-generic.c: New file.
3814         * sysdeps/sparc/sparc64/fpu/multiarch/s_floor-generic.c: New file.
3815         * sysdeps/sparc/sparc64/fpu/multiarch/s_floorf-generic.c: New file.
3816         * sysdeps/sparc/sparc64/fpu/multiarch/s_fma-generic.c: New file.
3817         * sysdeps/sparc/sparc64/fpu/multiarch/s_fmaf-generic.c: New file.
3818         * sysdeps/sparc/sparc64/fpu/multiarch/s_trunc-generic.c: New file.
3819         * sysdeps/sparc/sparc64/fpu/multiarch/s_truncf-generic.c: New file.
3821 2017-11-29  Joseph Myers  <joseph@codesourcery.com>
3823         * sysdeps/ia64/fpu/libm-symbols.h: Include <libm-alias-double.h>.
3824         * sysdeps/ia64/fpu/e_acos.S (acos): Use libm_alias_double_other.
3825         * sysdeps/ia64/fpu/e_acosh.S (acosh): Likewise.
3826         * sysdeps/ia64/fpu/e_asin.S (asin): Likewise.
3827         * sysdeps/ia64/fpu/e_atan2.S (atan2): Likewise.
3828         * sysdeps/ia64/fpu/e_atanh.S (atanh): Likewise.
3829         * sysdeps/ia64/fpu/e_cosh.S (cosh): Likewise.
3830         * sysdeps/ia64/fpu/e_exp.S (exp): Likewise.
3831         * sysdeps/ia64/fpu/e_exp10.S (exp10): Likewise.
3832         * sysdeps/ia64/fpu/e_exp2.S (exp2): Likewise.
3833         * sysdeps/ia64/fpu/e_fmod.S (fmod): Likewise.
3834         * sysdeps/ia64/fpu/e_hypot.S (hypot): Likewise.
3835         * sysdeps/ia64/fpu/e_lgamma_r.c (lgamma_r): Define using
3836         libm_alias_double_r.
3837         * sysdeps/ia64/fpu/e_log.S (log10): Use libm_alias_double_other.
3838         (log): Likewise.
3839         * sysdeps/ia64/fpu/e_log2.S (log2): Likewise.
3840         * sysdeps/ia64/fpu/e_pow.S (pow): Likewise.
3841         * sysdeps/ia64/fpu/e_remainder.S (remainder): Likewise.
3842         * sysdeps/ia64/fpu/e_sinh.S (sinh): Likewise.
3843         * sysdeps/ia64/fpu/e_sqrt.S (sqrt): Likewise.
3844         * sysdeps/ia64/fpu/libm_sincos.S (sincos): Likewise.
3845         * sysdeps/ia64/fpu/s_asinh.S (asinh): Likewise.
3846         * sysdeps/ia64/fpu/s_atan.S (atan): Likewise.
3847         * sysdeps/ia64/fpu/s_cbrt.S (cbrt): Likewise.
3848         * sysdeps/ia64/fpu/s_ceil.S (ceil): Likewise.
3849         * sysdeps/ia64/fpu/s_copysign.S (copysign): Define using
3850         libm_alias_double.
3851         * sysdeps/ia64/fpu/s_cos.S (sin): Use libm_alias_double_other.
3852         (cos): Likewise.
3853         * sysdeps/ia64/fpu/s_erf.S (erf): Likewise.
3854         * sysdeps/ia64/fpu/s_erfc.S (erfc): Likewise.
3855         * sysdeps/ia64/fpu/s_expm1.S (expm1): Likewise.
3856         * sysdeps/ia64/fpu/s_fabs.S (fabs): Likewise.
3857         * sysdeps/ia64/fpu/s_fdim.S (fdim): Likewise.
3858         * sysdeps/ia64/fpu/s_floor.S (floor): Likewise.
3859         * sysdeps/ia64/fpu/s_fma.S (fma): Likewise.
3860         * sysdeps/ia64/fpu/s_fmax.S (fmax): Likewise.
3861         * sysdeps/ia64/fpu/s_frexp.c (frexp): Likewise.
3862         * sysdeps/ia64/fpu/s_ldexp.c (ldexp): Likewise.
3863         * sysdeps/ia64/fpu/s_log1p.S (log1p): Likewise.
3864         * sysdeps/ia64/fpu/s_logb.S (logb): Likewise.
3865         * sysdeps/ia64/fpu/s_modf.S (modf): Likewise.
3866         * sysdeps/ia64/fpu/s_nearbyint.S (nearbyint): Likewise.
3867         * sysdeps/ia64/fpu/s_nextafter.S (nextafter): Likewise.
3868         * sysdeps/ia64/fpu/s_rint.S (rint): Likewise.
3869         * sysdeps/ia64/fpu/s_round.S (round): Likewise.
3870         * sysdeps/ia64/fpu/s_scalbn.c (scalbn): Define using
3871         libm_alias_double.
3872         * sysdeps/ia64/fpu/s_tan.S (tan): Use libm_alias_double_other.
3873         * sysdeps/ia64/fpu/s_tanh.S (tanh): Likewise.
3874         * sysdeps/ia64/fpu/s_trunc.S (trunc): Likewise.
3875         * sysdeps/ia64/fpu/w_lgamma_main.c
3876         [BUILD_LGAMMA && !USE_AS_COMPAT] (lgamma): Likewise.
3877         * sysdeps/ia64/fpu/w_tgamma_compat.S (tgamma): Likewise.
3879 2017-11-28  John David Anglin  <danglin@gcc.gnu.org>
3881         * sysdeps/hppa/start.S (_start): Check PIC instead of SHARED.  Load
3882         address of $global$ into %dp register earlier.  Use pc-relative
3883         instruction sequence for PIC case.
3885 2017-11-28  Joseph Myers  <joseph@codesourcery.com>
3887         * sysdeps/i386/fpu/s_asinhf.S: Include <libm-alias-float.h>.
3888         (asinhf): Define using libm_alias_float.
3889         * sysdeps/i386/fpu/s_atanf.S: Include <libm-alias-float.h>.
3890         (atanf): Define using libm_alias_float.
3891         * sysdeps/i386/fpu/s_cbrtf.S: Include <libm-alias-float.h>.
3892         (cbrtf): Define using libm_alias_float.
3893         * sysdeps/i386/fpu/s_ceilf.S: Include <libm-alias-float.h>.
3894         (ceilf): Define using libm_alias_float.
3895         * sysdeps/i386/fpu/s_copysignf.S: Include <libm-alias-float.h>.
3896         (copysignf): Define using libm_alias_float.
3897         * sysdeps/i386/fpu/s_expm1f.S: Include <libm-alias-float.h>.
3898         (expm1f): Define using libm_alias_float.
3899         * sysdeps/i386/fpu/s_fabsf.S: Include <libm-alias-float.h>.
3900         (fabsf): Define using libm_alias_float.
3901         * sysdeps/i386/fpu/s_floorf.S: Include <libm-alias-float.h>.
3902         (floorf): Define using libm_alias_float.
3903         * sysdeps/i386/fpu/s_fmaxf.S: Include <libm-alias-float.h>.
3904         (fmaxf): Define using libm_alias_float.
3905         * sysdeps/i386/fpu/s_fminf.S: Include <libm-alias-float.h>.
3906         (fminf): Define using libm_alias_float.
3907         * sysdeps/i386/fpu/s_frexpf.S: Include <libm-alias-float.h>.
3908         (frexpf): Define using libm_alias_float.
3909         * sysdeps/i386/fpu/s_llrintf.S: Include <libm-alias-float.h>.
3910         (llrintf): Define using libm_alias_float.
3911         * sysdeps/i386/fpu/s_logbf.S: Include <libm-alias-float.h>.
3912         (logbf): Define using libm_alias_float.
3913         * sysdeps/i386/fpu/s_lrintf.S: Include <libm-alias-float.h>.
3914         (lrintf): Define using libm_alias_float.
3915         * sysdeps/i386/fpu/s_nearbyintf.S: Include <libm-alias-float.h>.
3916         (nearbyintf): Define using libm_alias_float.
3917         * sysdeps/i386/fpu/s_remquof.S: Include <libm-alias-float.h>.
3918         (remquof): Define using libm_alias_float.
3919         * sysdeps/i386/fpu/s_rintf.S: Include <libm-alias-float.h>.
3920         (rintf): Define using libm_alias_float.
3921         * sysdeps/i386/fpu/s_truncf.S: Include <libm-alias-float.h>.
3922         (truncf): Define using libm_alias_float.
3923         * sysdeps/i386/i686/fpu/multiarch/e_exp2f.c: Include
3924         <libm-alias-float.h>.
3925         (exp2f): Define using libm_alias_float, or libm_alias_float_other
3926         if [SHARED].
3927         * sysdeps/i386/i686/fpu/multiarch/e_expf.c: Include
3928         <libm-alias-float.h>.
3929         (expf): Define using libm_alias_float, or libm_alias_float_other
3930         if [SHARED].
3931         * sysdeps/i386/i686/fpu/multiarch/e_log2f.c: Include
3932         <libm-alias-float.h>.
3933         (log2f): Define using libm_alias_float, or libm_alias_float_other
3934         if [SHARED].
3935         * sysdeps/i386/i686/fpu/multiarch/e_logf.c: Include
3936         <libm-alias-float.h>.
3937         (logf): Define using libm_alias_float, or libm_alias_float_other
3938         if [SHARED].
3939         * sysdeps/i386/i686/fpu/multiarch/e_powf.c: Include
3940         <libm-alias-float.h>.
3941         (powf): Define using libm_alias_float, or libm_alias_float_other
3942         if [SHARED].
3943         * sysdeps/i386/i686/fpu/multiarch/s_cosf.c: Include
3944         <libm-alias-float.h>.
3945         (cosf): Define using libm_alias_float.
3946         * sysdeps/i386/i686/fpu/multiarch/s_sincosf.c: Include
3947         <libm-alias-float.h>.
3948         (sincosf): Define using libm_alias_float.
3949         * sysdeps/i386/i686/fpu/multiarch/s_sinf.c: Include
3950         <libm-alias-float.h>.
3951         (sinf): Define using libm_alias_float.
3952         * sysdeps/i386/i686/fpu/s_fmaxf.S: Include <libm-alias-float.h>.
3953         (fmaxf): Define using libm_alias_float.
3954         * sysdeps/i386/i686/fpu/s_fminf.S: Include <libm-alias-float.h>.
3955         (fminf): Define using libm_alias_float.
3956         * sysdeps/i386/i686/multiarch/s_fmaf.c: Include
3957         <libm-alias-float.h>.
3958         (fmaf): Define using libm_alias_float.
3960         * sysdeps/i386/fpu/s_asinh.S: Include <libm-alias-double.h>.
3961         (asinh): Define using libm_alias_double.
3962         * sysdeps/i386/fpu/s_atan.S: Include <libm-alias-double.h>.
3963         (atan): Define using libm_alias_double.
3964         * sysdeps/i386/fpu/s_cbrt.S: Include <libm-alias-double.h>.
3965         (cbrt): Define using libm_alias_double.
3966         * sysdeps/i386/fpu/s_ceil.S: Include <libm-alias-double.h>.
3967         (ceil): Define using libm_alias_double.
3968         * sysdeps/i386/fpu/s_copysign.S: Include <libm-alias-double.h>.
3969         (copysign): Define using libm_alias_double.
3970         * sysdeps/i386/fpu/s_expm1.S: Include <libm-alias-double.h>.
3971         (expm1): Define using libm_alias_double.
3972         * sysdeps/i386/fpu/s_fabs.S: Include <libm-alias-double.h>.
3973         (fabs): Define using libm_alias_double.
3974         * sysdeps/i386/fpu/s_fdim.c: Include <libm-alias-double.h>.
3975         (fdim): Define using libm_alias_double.
3976         * sysdeps/i386/fpu/s_floor.S: Include <libm-alias-double.h>.
3977         (floor): Define using libm_alias_double.
3978         * sysdeps/i386/fpu/s_fmax.S: Include <libm-alias-double.h>.
3979         (fmax): Define using libm_alias_double.
3980         * sysdeps/i386/fpu/s_fmin.S: Include <libm-alias-double.h>.
3981         (fmin): Define using libm_alias_double.
3982         * sysdeps/i386/fpu/s_frexp.S: Include <libm-alias-double.h>.
3983         (frexp): Define using libm_alias_double.
3984         * sysdeps/i386/fpu/s_llrint.S: Include <libm-alias-double.h>.
3985         (llrint): Define using libm_alias_double.
3986         * sysdeps/i386/fpu/s_logb.S: Include <libm-alias-double.h>.
3987         (logb): Define using libm_alias_double.
3988         * sysdeps/i386/fpu/s_lrint.S: Include <libm-alias-double.h>.
3989         (lrint): Define using libm_alias_double.
3990         * sysdeps/i386/fpu/s_nearbyint.S: Include <libm-alias-double.h>.
3991         (nearbyint): Define using libm_alias_double.
3992         * sysdeps/i386/fpu/s_remquo.S: Include <libm-alias-double.h>.
3993         (remquo): Define using libm_alias_double.
3994         * sysdeps/i386/fpu/s_rint.S: Include <libm-alias-double.h>.
3995         (rint): Define using libm_alias_double.
3996         * sysdeps/i386/fpu/s_trunc.S: Include <libm-alias-double.h>.
3997         (trunc): Define using libm_alias_double.
3998         * sysdeps/i386/i686/fpu/s_fmax.S: Include <libm-alias-double.h>.
3999         (fmax): Define using libm_alias_double.
4000         * sysdeps/i386/i686/fpu/s_fmin.S: Include <libm-alias-double.h>.
4001         (fmin): Define using libm_alias_double.
4002         * sysdeps/i386/i686/multiarch/s_fma.c: Include <libm-alias-double.h>.
4003         (fma): Define using libm_alias_double.
4005 2017-11-28  H.J. Lu  <hongjiu.lu@intel.com>
4007         [BZ #22370]
4008         * elf/dl-hwcaps.c (ROUND): Removed.
4009         (_dl_important_hwcaps): Replace ROUND with ELF_NOTE_DESC_OFFSET
4010         and ELF_NOTE_NEXT_OFFSET.
4011         * elf/dl-load.c (ROUND): Removed.
4012         (open_verify): Replace ROUND with ELF_NOTE_NEXT_OFFSET.
4013         * elf/readelflib.c (ROUND): Removed.
4014         (process_elf_file): Replace ROUND with ELF_NOTE_NEXT_OFFSET.
4015         * include/elf.h [!_ISOMAC]: Include <libc-pointer-arith.h>.
4016         [!_ISOMAC] (ELF_NOTE_DESC_OFFSET): New.
4017         [!_ISOMAC] (ELF_NOTE_NEXT_OFFSET): Likewise.
4019 2017-11-28  Joseph Myers  <joseph@codesourcery.com>
4021         * sysdeps/s390/fpu/s_fmaf.c: Include <libm-alias-float.h>.
4022         [!__fmaf] (fmaf): Define using libm_alias_float.
4024         * sysdeps/s390/fpu/s_fma.c: Include <libm-alias-double.h>.
4025         [!__fma] (fma): Define using libm_alias_double.
4026         * sysdeps/unix/sysv/linux/s390/fpu/s_fma.c: Remove.
4028 2017-11-28  Mike FABIAN  <mfabian@redhat.com>
4030         [BZ #22336]
4031         * localedata/locales/cs_CZ (LC_COLLATE): Use “copy "iso14651_t1"”
4032         and implement the collation rules for cs from CLDR on top of that.
4033         * Makefile: Add cs_CZ.UTF-8 to test-input.
4034         * cs_CZ.UTF-8.in: New file with test data to test the Czech sorting.
4036 2017-11-28  Siddhesh Poyarekar  <siddhesh@sourceware.org>
4038         * localedata/Makefile (LOCALES): Remove duplicate cs_CZ.UTF-8.
4040 2017-11-28  Victor Rodriguez  <victor.rodriguez.bahena@intel.com>
4041             Icarus Sparry  <icarus.w.sparry@intel.com>
4043         * benchtests/Makefile:Add BENCHSET to allow subsets of
4044         benchmarks to be run.
4045         * benchtests/README: Add documentation for: Running subsets of
4046         benchmarks.
4048 2017-11-28  Victor Rodriguez  <victor.rodriguez.bahena@intel.com>
4050         * benchtests/scripts/benchout.schema.json: Fix regex to accept a wider
4051         range of tests names.
4053         * benchtests/scripts/benchout.schema.json: Add throughput as accepted
4054         result from property and remove "max", min" and "mean" from
4055         required properties based on benchtests/bench-skeleton.c.
4057 2017-11-28  Florian Weimer  <fweimer@redhat.com>
4059         [BZ #20826]
4060         Turn posix/tst-getaddrinfo4, posix/tst-getaddrinfo5 into xtests
4061         due to Internet requirement.
4062         * posix/Makefile (tests): Remove tst-getaddrinfo4,
4063         tst-getaddrinfo5.
4064         (xtests): Add tst-getaddrinfo4, tst-getaddrinfo5.
4066 2017-11-28  Adhemerval Zanella  <adhemerval.zanella@linaro.org>
4068         * sysdeps/sparc/sparc32/sparcv9/multiarch/Makefile
4069         [$(subdir) = string] (sysdep_routines): Add memset-ultra1.
4070         * sysdeps/sparc/sparc64/multiarch/Makefile [$(subdir) = string]
4071         (sysdep_routines): Add memset-ultra1.
4072         * sysdeps/sparc/sparc32/sparcv9/multiarch/memset-ultra1.S: New
4073         file.
4074         * sysdeps/sparc/sparc32/sparcv9/multiarch/memset.c: Likewise.
4075         * sysdeps/sparc/sparc32/sparcv9/multiarch/bzero.c: Likewise.
4076         * sysdeps/sparc/sparc64/multiarch/ifunc-memset.h: Likewise.
4077         * sysdeps/sparc/sparc64/multiarch/memset-ultra1.S: Likewise.
4078         * sysdeps/sparc/sparc64/multiarch/memset.c: Likewise.
4079         * sysdeps/sparc/sparc64/multiarch/bzero.c: Likewise.
4080         * sysdeps/sparc/sparc32/sparcv9/multiarch/memset.S: Remove file.
4081         * sysdeps/sparc/sparc64/multiarch/memset.S: Likewise.
4083         * sysdeps/sparc/sparc32/sparcv9/multiarch/memcpy-ultra1.S: New
4084         file.
4085         * sysdeps/sparc/sparc32/sparcv9/multiarch/memcpy.c: Likewise.
4086         * sysdeps/sparc/sparc32/sparcv9/multiarch/mempcpy.c: Likewise.
4087         * sysdeps/sparc/sparc64/multiarch/ifunc-memcpy.h: Likewise.
4088         * sysdeps/sparc/sparc64/multiarch/memcpy-ultra1.S: Likewise.
4089         * sysdeps/sparc/sparc64/multiarch/memcpy.c: Likewise.
4090         * sysdeps/sparc/sparc64/multiarch/mempcpy.c: Likewise.
4091         * sysdeps/sparc/sparc-ifunc.h (sparc_libc_ifunc_redirected): New
4092         macro.
4093         * sysdeps/sparc/sparc32/sparcv9/multiarch/Makefile
4094         [$(subdir) = string] (sysdep_routines): Add memcpy-ultra1.
4095         * sysdeps/sparc/sparc64/multiarch/Makefile [$(subdir) = string]
4096         (sysdep_routines): Add memcpy-ultra1.
4097         * sysdeps/sparc/sparc64/multiarch/memcpy.S: Remove file.
4098         * sysdeps/sparc/sparc32/sparcv9/multiarch/memcpy.S: Likewise.
4100 2017-11-28  Joseph Myers  <joseph@codesourcery.com>
4102         * sysdeps/alpha/fpu/cfloat-compat.h: Include <libm-alias-float.h>.
4103         (cfloat_versions): Take function argument without trailing 'f'.
4104         Call libm_alias_float_other.
4105         * sysdeps/alpha/fpu/cabsf.c: Update call to cfloat_versions.
4106         * sysdeps/alpha/fpu/cargf.c: Likewise.
4107         * sysdeps/alpha/fpu/cimagf.c: Likewise.
4108         * sysdeps/alpha/fpu/conjf.c: Likewise.
4109         * sysdeps/alpha/fpu/crealf.c: Likewise.
4110         * sysdeps/alpha/fpu/s_cacosf.c: Likewise.
4111         * sysdeps/alpha/fpu/s_cacoshf.c: Likewise.
4112         * sysdeps/alpha/fpu/s_casinf.c: Likewise.
4113         * sysdeps/alpha/fpu/s_casinhf.c: Likewise.
4114         * sysdeps/alpha/fpu/s_catanf.c: Likewise.
4115         * sysdeps/alpha/fpu/s_catanhf.c: Likewise.
4116         * sysdeps/alpha/fpu/s_ccosf.c: Likewise.
4117         * sysdeps/alpha/fpu/s_ccoshf.c: Likewise.
4118         * sysdeps/alpha/fpu/s_cexpf.c: Likewise.
4119         * sysdeps/alpha/fpu/s_clogf.c: Likewise.
4120         * sysdeps/alpha/fpu/s_cpowf.c: Likewise.
4121         * sysdeps/alpha/fpu/s_cprojf.c: Likewise.
4122         * sysdeps/alpha/fpu/s_csinf.c: Likewise.
4123         * sysdeps/alpha/fpu/s_csinhf.c: Likewise.
4124         * sysdeps/alpha/fpu/s_csqrtf.c: Likewise.
4125         * sysdeps/alpha/fpu/s_ctanf.c: Likewise.
4126         * sysdeps/alpha/fpu/s_ctanhf.c: Likewise.
4127         * sysdeps/alpha/fpu/s_clog10f.c: Include <libm-alias-float.h>.
4128         (clog10f): Use libm_alias_float_other.
4129         * sysdeps/alpha/fpu/s_ceilf.c: Include <libm-alias-float.h>.
4130         (ceilf): Define using libm_alias_float.
4131         * sysdeps/alpha/fpu/s_copysignf.c: Include <libm-alias-float.h>.
4132         (copysignf): Define using libm_alias_float.
4133         * sysdeps/alpha/fpu/s_fabsf.c: Include <libm-alias-float.h>.
4134         (fabsf): Define using libm_alias_float.
4135         * sysdeps/alpha/fpu/s_floorf.c: Include <libm-alias-float.h>.
4136         (floorf): Define using libm_alias_float.
4137         * sysdeps/alpha/fpu/s_fmax.S: Include <libm-alias-float.h>.
4138         (fmaxf): Define using libm_alias_float.
4139         * sysdeps/alpha/fpu/s_fmin.S: Include <libm-alias-float.h>.
4140         (fminf): Define using libm_alias_float.
4141         * sysdeps/alpha/fpu/s_lrintf.c: Include <libm-alias-float.h>.
4142         (lrintf): Define using libm_alias_float.
4143         (llrintf): Likewise.
4144         * sysdeps/alpha/fpu/s_lroundf.c: Include <libm-alias-float.h>.
4145         (lroundf): Define using libm_alias_float.
4146         (llroundf): Likewise.
4147         * sysdeps/alpha/fpu/s_rintf.c: Include <libm-alias-float.h>.
4148         (rintf): Define using libm_alias_float.
4149         * sysdeps/alpha/fpu/s_truncf.c: Include <libm-alias-float.h>.
4150         (truncf): Define using libm_alias_float.
4152         * sysdeps/aarch64/fpu/s_ceilf.c: Include <libm-alias-float.h>.
4153         (ceilf): Define using libm_alias_float.
4154         * sysdeps/aarch64/fpu/s_floorf.c: Include <libm-alias-float.h>.
4155         (floorf): Define using libm_alias_float.
4156         * sysdeps/aarch64/fpu/s_fmaf.c: Include <libm-alias-float.h>.
4157         (fmaf): Define using libm_alias_float.
4158         * sysdeps/aarch64/fpu/s_fmaxf.c: Include <libm-alias-float.h>.
4159         (fmaxf): Define using libm_alias_float.
4160         * sysdeps/aarch64/fpu/s_fminf.c: Include <libm-alias-float.h>.
4161         (fminf): Define using libm_alias_float.
4162         * sysdeps/aarch64/fpu/s_llrintf.c: Include <libm-alias-float.h>.
4163         (llrintf): Define using libm_alias_float.
4164         * sysdeps/aarch64/fpu/s_llroundf.c: Include <libm-alias-float.h>.
4165         (llroundf): Define using libm_alias_float.
4166         * sysdeps/aarch64/fpu/s_lrintf.c: Include <libm-alias-float.h>.
4167         (lrintf): Define using libm_alias_float.
4168         * sysdeps/aarch64/fpu/s_lroundf.c: Include <libm-alias-float.h>.
4169         (lroundf): Define using libm_alias_float.
4170         * sysdeps/aarch64/fpu/s_nearbyintf.c: Include
4171         <libm-alias-float.h>.
4172         (nearbyintf): Define using libm_alias_float.
4173         * sysdeps/aarch64/fpu/s_rintf.c: Include <libm-alias-float.h>.
4174         (rintf): Define using libm_alias_float.
4175         * sysdeps/aarch64/fpu/s_roundf.c: Include <libm-alias-float.h>.
4176         (roundf): Define using libm_alias_float.
4177         * sysdeps/aarch64/fpu/s_truncf.c: Include <libm-alias-float.h>.
4178         (truncf): Define using libm_alias_float.
4180         * sysdeps/alpha/fpu/s_ceil.c: Include <libm-alias-double.h>.
4181         (ceil): Define using libm_alias_double.
4182         * sysdeps/alpha/fpu/s_copysign.c: Include <libm-alias-double.h>.
4183         (copysign): Define using libm_alias_double.
4184         * sysdeps/alpha/fpu/s_fabs.c: Include <libm-alias-double.h>.
4185         (fabs): Define using libm_alias_double.
4186         * sysdeps/alpha/fpu/s_floor.c: Include <libm-alias-double.h>.
4187         (floor): Define using libm_alias_double.
4188         * sysdeps/alpha/fpu/s_fmax.S: Include <libm-alias-double.h>.
4189         (fmax): Define using libm_alias_double.
4190         * sysdeps/alpha/fpu/s_fmin.S: Include <libm-alias-double.h>.
4191         (fmin): Define using libm_alias_double.
4192         * sysdeps/alpha/fpu/s_lrint.c: Include <libm-alias-double.h>.
4193         (lrint): Define using libm_alias_double.
4194         (llrint): Likewise.
4195         * sysdeps/alpha/fpu/s_lround.c: Include <libm-alias-double.h>.
4196         (lround): Define using libm_alias_double.
4197         (llround): Likewise.
4198         * sysdeps/alpha/fpu/s_rint.c: Include <libm-alias-double.h>.
4199         (rint): Define using libm_alias_double.
4200         * sysdeps/alpha/fpu/s_trunc.c: Include <libm-alias-double.h>.
4201         (trunc): Define using libm_alias_double.
4203         * sysdeps/ieee754/ldbl-opt/libm-alias-double.h
4204         (libm_alias_double_r): Add semicolon after weak_alias call.
4206 2017-11-27  Joseph Myers  <joseph@codesourcery.com>
4208         * sysdeps/aarch64/fpu/s_ceil.c: Include <libm-alias-double.h>.
4209         (ceil): Define using libm_alias_double.
4210         * sysdeps/aarch64/fpu/s_floor.c: Include <libm-alias-double.h>.
4211         (floor): Define using libm_alias_double.
4212         * sysdeps/aarch64/fpu/s_fma.c: Include <libm-alias-double.h>.
4213         (fma): Define using libm_alias_double.
4214         * sysdeps/aarch64/fpu/s_fmax.c: Include <libm-alias-double.h>.
4215         (fmax): Define using libm_alias_double.
4216         * sysdeps/aarch64/fpu/s_fmin.c: Include <libm-alias-double.h>.
4217         (fmin): Define using libm_alias_double.
4218         * sysdeps/aarch64/fpu/s_llrint.c: Include <libm-alias-double.h>.
4219         (llrint): Define using libm_alias_double.
4220         * sysdeps/aarch64/fpu/s_llround.c: Include <libm-alias-double.h>.
4221         (llround): Define using libm_alias_double.
4222         * sysdeps/aarch64/fpu/s_lrint.c: Include <libm-alias-double.h>.
4223         (lrint): Define using libm_alias_double.
4224         * sysdeps/aarch64/fpu/s_lround.c: Include <libm-alias-double.h>.
4225         (lround): Define using libm_alias_double.
4226         * sysdeps/aarch64/fpu/s_nearbyint.c: Include <libm-alias-double.h>.
4227         (nearbyint): Define using libm_alias_double.
4228         * sysdeps/aarch64/fpu/s_rint.c: Include <libm-alias-double.h>.
4229         (rint): Define using libm_alias_double.
4230         * sysdeps/aarch64/fpu/s_round.c: Include <libm-alias-double.h>.
4231         (round): Define using libm_alias_double.
4232         * sysdeps/aarch64/fpu/s_trunc.c: Include <libm-alias-double.h>.
4233         (trunc): Define using libm_alias_double.
4235 2017-11-27  Florian Weimer  <fweimer@redhat.com>
4237         * sysdeps/unix/sysv/linux/mlock2.c: New file.
4238         * sysdeps/unix/sysv/linux/tst-mlock2.c: Likewise.
4239         * sysdeps/unix/sysv/linux/Makefile (routines): Add mlock2.
4240         (tests): Add tst-mlock2.
4241         * sysdeps/unix/sysv/linux/Versions (GLIBC_2.27): Export mlock2.
4242         * sysdeps/unix/sysv/linux/kernel-features.h (__ASSUME_MLOCK2)
4243         [__LINUX_KERNEL_VERSION >= 4.4]: Define.
4244         * sysdeps/unix/sysv/linux/libc**.abilist: Update.
4245         * manual/memory.texi (Page Lock Functions): Move @end deftypefun
4246         for mlock.  Document mlock2.
4248 2017-11-27  Joseph Myers  <joseph@codesourcery.com>
4250         * sysdeps/ia64/Makeconfig (float64x-alias-fcts): New variable.
4251         * sysdeps/ieee754/float128/Makeconfig (float64x-alias-fcts):
4252         Likewise.
4253         * sysdeps/ieee754/ldbl-128/Makeconfig (float64x-alias-fcts):
4254         Likewise.
4255         * sysdeps/x86/Makeconfig: New file.
4256         * bits/floatn-common.h (__HAVE_FLOAT64X): Remove macro.
4257         (__HAVE_FLOAT64X_LONG_DOUBLE): Likewise.
4258         * bits/floatn.h (__HAVE_FLOAT64X): New macro.
4259         (__HAVE_FLOAT64X_LONG_DOUBLE): Likewise.
4260         * sysdeps/ia64/bits/floatn.h (__HAVE_FLOAT64X): Likewise.
4261         (__HAVE_FLOAT64X_LONG_DOUBLE): Likewise.
4262         * sysdeps/ieee754/ldbl-128/bits/floatn.h (__HAVE_FLOAT64X):
4263         Likewise.
4264         (__HAVE_FLOAT64X_LONG_DOUBLE): Likewise.
4265         * sysdeps/mips/ieee754/bits/floatn.h (__HAVE_FLOAT64X): Likewise.
4266         (__HAVE_FLOAT64X_LONG_DOUBLE): Likewise.
4267         * sysdeps/powerpc/bits/floatn.h (__HAVE_FLOAT64X): Likewise.
4268         (__HAVE_FLOAT64X_LONG_DOUBLE): Likewise.
4269         * sysdeps/x86/bits/floatn.h (__HAVE_FLOAT64X): Likewise.
4270         (__HAVE_FLOAT64X_LONG_DOUBLE): Likewise.
4271         * manual/math.texi (Mathematics): Document support for _Float64x.
4272         * math/Versions (GLIBC_2.27): Add _Float64x functions.
4273         * stdlib/Versions (GLIBC_2.27): Likewise.
4274         * wcsmbs/Versions (GLIBC_2.27): Likewise.
4275         * sysdeps/unix/sysv/linux/aarch64/libc.abilist: Update.
4276         * sysdeps/unix/sysv/linux/aarch64/libm.abilist: Likewise.
4277         * sysdeps/unix/sysv/linux/alpha/libc.abilist: Likewise.
4278         * sysdeps/unix/sysv/linux/alpha/libm.abilist: Likewise.
4279         * sysdeps/unix/sysv/linux/i386/libc.abilist: Likewise.
4280         * sysdeps/unix/sysv/linux/i386/libm.abilist: Likewise.
4281         * sysdeps/unix/sysv/linux/ia64/libc.abilist: Likewise.
4282         * sysdeps/unix/sysv/linux/ia64/libm.abilist: Likewise.
4283         * sysdeps/unix/sysv/linux/mips/mips64/libm.abilist: Likewise.
4284         * sysdeps/unix/sysv/linux/mips/mips64/n32/libc.abilist: Likewise.
4285         * sysdeps/unix/sysv/linux/mips/mips64/n64/libc.abilist: Likewise.
4286         * sysdeps/unix/sysv/linux/powerpc/powerpc64/libc-le.abilist:
4287         Likewise.
4288         * sysdeps/unix/sysv/linux/powerpc/powerpc64/libm-le.abilist:
4289         Likewise.
4290         * sysdeps/unix/sysv/linux/s390/s390-32/libc.abilist: Likewise.
4291         * sysdeps/unix/sysv/linux/s390/s390-32/libm.abilist: Likewise.
4292         * sysdeps/unix/sysv/linux/s390/s390-64/libc.abilist: Likewise.
4293         * sysdeps/unix/sysv/linux/s390/s390-64/libm.abilist: Likewise.
4294         * sysdeps/unix/sysv/linux/sparc/sparc32/libc.abilist: Likewise.
4295         * sysdeps/unix/sysv/linux/sparc/sparc32/libm.abilist: Likewise.
4296         * sysdeps/unix/sysv/linux/sparc/sparc64/libc.abilist: Likewise.
4297         * sysdeps/unix/sysv/linux/sparc/sparc64/libm.abilist: Likewise.
4298         * sysdeps/unix/sysv/linux/x86_64/64/libc.abilist: Likewise.
4299         * sysdeps/unix/sysv/linux/x86_64/64/libm.abilist: Likewise.
4300         * sysdeps/unix/sysv/linux/x86_64/x32/libc.abilist: Likewise.
4301         * sysdeps/unix/sysv/linux/x86_64/x32/libm.abilist: Likewise.
4302         * sysdeps/i386/fpu/libm-test-ulps: Likewise.
4303         * sysdeps/i386/i686/fpu/multiarch/libm-test-ulps: Likewise.
4305 2017-11-27  Andreas Schwab  <schwab@suse.de>
4307         * elf/Makefile (dl-routines): Add dl-sort-maps.
4308         * elf/dl-sort-maps.c: New file.
4309         * sysdeps/generic/ldsodefs.h (_dl_sort_fini): Don't declare.
4310         (_dl_sort_maps): Declare.
4311         * elf/dl-fini.c (_dl_sort_fini): Remove.
4312         (_dl_fini): Use _dl_sort_maps instead of _dl_sort_fini.
4313         * elf/dl-close.c (_dl_close_worker): Likewise.
4314         * elf/dl-deps.c (_dl_map_object_deps): Use _dl_sort_maps instead of
4315         open-coding it.
4316         * elf/dl-open.c (dl_open_worker): Likewise.
4318 2017-11-24  Joseph Myers  <joseph@codesourcery.com>
4320         * sysdeps/ieee754/float128/s_fromfpf128.c (fromfpf128): Define
4321         using libm_alias_float128.
4322         * sysdeps/ieee754/float128/s_fromfpxf128.c (fromfpxf128):
4323         Likewise.
4324         * sysdeps/ieee754/float128/s_setpayloadf128.c (setpayloadf128):
4325         Likewise.
4326         * sysdeps/ieee754/float128/s_setpayloadsigf128.c
4327         (setpayloadsigf128): Likewise.
4328         * sysdeps/ieee754/float128/s_ufromfpf128.c (ufromfpf128):
4329         Likewise.
4330         * sysdeps/ieee754/float128/s_ufromfpxf128.c (ufromfpxf128):
4331         Likewise.
4333         * sysdeps/powerpc/powerpc64le/Makefile ($(foreach
4334         suf,$(all-object-suffixes),$(objpfx)test-float64x%$(suf))): Add
4335         -mfloat128 to CFLAGS.
4336         ($(foreach
4337         suf,$(all-object-suffixes),$(objpfx)test-ifloat64x%$(suf))):
4338         Likewise.
4339         (CFLAGS-libm-test-support-float64x.c): New variable.
4340         ($(objpfx)test-float64x% $(objpfx)test-ifloat64x%): Add
4341         $(f128-loader-link) to gnulib-tests.
4343         * sysdeps/generic/libm-alias-float128.h: Include <bits/floatn.h>.
4344         (libm_alias_float128_other_r): If
4345         [__HAVE_FLOAT64X && !__HAVE_FLOAT64X_LONG_DOUBLE], define f64x
4346         alias.
4347         (libm_alias_float128_r): Add semicolon after weak_alias call.
4348         * sysdeps/generic/libm-alias-ldouble.h
4349         (libm_alias_ldouble_other_r_f128): New macro.
4350         (libm_alias_ldouble_other_r_f64x): Likewise.
4351         (libm_alias_ldouble_other_r): Use libm_alias_ldouble_other_r_f128
4352         and libm_alias_ldouble_other_r_f64x.
4353         (libm_alias_ldouble_r): Add semicolon after weak_alias call.
4354         * sysdeps/ieee754/ldbl-opt/libm-alias-ldouble.h
4355         (libm_alias_ldouble_other_r_f128): New macro.
4356         (libm_alias_ldouble_other_r_f64x): Likewise.
4357         (libm_alias_ldouble_other_r): Use libm_alias_ldouble_other_r_f128
4358         and libm_alias_ldouble_other_r_f64x.
4360         * stdlib/strfroml.c: Always include <stdlib.h>.
4361         [__HAVE_FLOAT64X_LONG_DOUBLE] (strfromf64x): Define and later
4362         undefine as macro and define as weak alias.
4363         * sysdeps/ieee754/float128/strfromf128.c: Include <bits/floatn.h>.
4364         [__HAVE_FLOAT64X && !__HAVE_FLOAT64X_LONG_DOUBLE]: Include
4365         <stdlib.h>.
4366         [__HAVE_FLOAT64X && !__HAVE_FLOAT64X_LONG_DOUBLE] (strfromf64x):
4367         Define and later undefine as macro and define as weak alias.
4369         * stdlib/strtold.c [__HAVE_FLOAT64X_LONG_DOUBLE] (strtof64x):
4370         Define and later undefine as macro.  Define as weak alias if
4371         [!USE_WIDE_CHAR].
4372         [__HAVE_FLOAT64X_LONG_DOUBLE] (wcstof64x): Define and later
4373         undefine as macro.  Define as weak alias if [USE_WIDE_CHAR].
4374         * sysdeps/ieee754/float128/strtof128.c: Include <bits/floatn.h>.
4375         [__HAVE_FLOAT64X && !__HAVE_FLOAT64X_LONG_DOUBLE] (strtof64x):
4376         Define and later undefine as macro.  Define as weak alias if
4377         [!USE_WIDE_CHAR].
4378         [__HAVE_FLOAT64X && !__HAVE_FLOAT64X_LONG_DOUBLE] (wcstof64x):
4379         Define and later undefine as macro.  Define as weak alias if
4380         [USE_WIDE_CHAR].
4381         * sysdeps/ieee754/float128/strtof128_l.c
4382         [__HAVE_FLOAT64X && !__HAVE_FLOAT64X_LONG_DOUBLE] (strtof64x_l):
4383         Define and later undefine as macro.  Define as weak alias if
4384         [!USE_WIDE_CHAR].
4385         [__HAVE_FLOAT64X && !__HAVE_FLOAT64X_LONG_DOUBLE] (wcstof64x_l):
4386         Define and later undefine as macro.  Define as weak alias if
4387         [USE_WIDE_CHAR].
4388         * sysdeps/ieee754/ldbl-128/strtold_l.c
4389         [__HAVE_FLOAT64X_LONG_DOUBLE] (strtof64x_l): Define and later
4390         undefine as macro.  Define as weak alias if [!USE_WIDE_CHAR].
4391         [__HAVE_FLOAT64X_LONG_DOUBLE] (wcstof64x_l): Define and later
4392         undefine as macro.  Define as weak alias if [USE_WIDE_CHAR].
4393         * sysdeps/ieee754/ldbl-64-128/strtold_l.c
4394         [__HAVE_FLOAT64X_LONG_DOUBLE] (strtof64x_l): Define and later
4395         undefine as macro.  Define as weak alias if [!USE_WIDE_CHAR].
4396         [__HAVE_FLOAT64X_LONG_DOUBLE] (wcstof64x_l): Define and later
4397         undefine as macro.  Define as weak alias if [USE_WIDE_CHAR].
4398         * sysdeps/ieee754/ldbl-96/strtold_l.c
4399         [__HAVE_FLOAT64X_LONG_DOUBLE] (strtof64x_l): Define and later
4400         undefine as macro.  Define as weak alias if [!USE_WIDE_CHAR].
4401         [__HAVE_FLOAT64X_LONG_DOUBLE] (wcstof64x_l): Define and later
4402         undefine as macro.  Define as weak alias if [USE_WIDE_CHAR].
4404         * math/test-float64x.h: New file.
4405         * math/Makefile (type-float64x-yes): New variable.
4406         (test-types): Add $(type-float64x-$(float64x-alias-fcts)).
4408         * sysdeps/generic/math_private.h (min_of_type_f): Make into a
4409         function-like macro.
4410         (min_of_type_): Likewise.
4411         (min_of_type_l): Likewise.
4412         (min_of_type_f128): Likewise.
4413         (min_of_type): Pass () as last argument of __MATH_TG.
4415         * stdlib/tst-strtod-round-skeleton.c
4416         (__STDC_WANT_IEC_60559_TYPES_EXT__): Define before including
4417         headers.
4419         * math/gen-tgmath-tests.py (Type.init_types): Pass suffix argument
4420         for combinations of long double with _Float64 and _Float64x.
4422         * bits/libm-simd-decl-stubs.h (__DECL_SIMD_cosf16): New macro.
4423         (__DECL_SIMD_cosf32): Likewise.
4424         (__DECL_SIMD_cosf64): Likewise.
4425         (__DECL_SIMD_cosf32x): Likewise.
4426         (__DECL_SIMD_cosf64x): Likewise.
4427         (__DECL_SIMD_cosf128x): Likewise.
4428         (__DECL_SIMD_sinf16): Likewise.
4429         (__DECL_SIMD_sinf32): Likewise.
4430         (__DECL_SIMD_sinf64): Likewise.
4431         (__DECL_SIMD_sinf32x): Likewise.
4432         (__DECL_SIMD_sinf64x): Likewise.
4433         (__DECL_SIMD_sinf128x): Likewise.
4434         (__DECL_SIMD_sincosf16): Likewise.
4435         (__DECL_SIMD_sincosf32): Likewise.
4436         (__DECL_SIMD_sincosf64): Likewise.
4437         (__DECL_SIMD_sincosf32x): Likewise.
4438         (__DECL_SIMD_sincosf64x): Likewise.
4439         (__DECL_SIMD_sincosf128x): Likewise.
4440         (__DECL_SIMD_logf16): Likewise.
4441         (__DECL_SIMD_logf32): Likewise.
4442         (__DECL_SIMD_logf64): Likewise.
4443         (__DECL_SIMD_logf32x): Likewise.
4444         (__DECL_SIMD_logf64x): Likewise.
4445         (__DECL_SIMD_logf128x): Likewise.
4446         (__DECL_SIMD_expf16): Likewise.
4447         (__DECL_SIMD_expf32): Likewise.
4448         (__DECL_SIMD_expf64): Likewise.
4449         (__DECL_SIMD_expf32x): Likewise.
4450         (__DECL_SIMD_expf64x): Likewise.
4451         (__DECL_SIMD_expf128x): Likewise.
4452         (__DECL_SIMD_powf16): Likewise.
4453         (__DECL_SIMD_powf32): Likewise.
4454         (__DECL_SIMD_powf64): Likewise.
4455         (__DECL_SIMD_powf32x): Likewise.
4456         (__DECL_SIMD_powf64x): Likewise.
4457         (__DECL_SIMD_powf128x): Likewise.
4459         * stdlib/Versions (libc): Move entries for wcstof128 and
4460         wcstof128_l to ....
4461         * wcsmbs/Versions (libc): ... here.
4462         Include <float128-abi.h>.
4464 2017-11-24  Florian Weimer  <fweimer@redhat.com>
4466         * sysdeps/unix/sysv/linux/Makefile (sysdep_headers): Add
4467         bits/mman-shared.h.
4468         * sysdeps/unix/sysv/linux/bits/mman-linux.h: Include
4469         <bits/mman-shared.h>.
4470         (MFD_CLOEXEC, MFD_ALLOW_SEALING, MFD_HUGETLB, memfd_create): Move
4471         to ...
4472         * sysdeps/unix/sysv/linux/bits/mman-shared.h: ... this new file.
4473         Add #ifndef guard for the MFD_* constants based on MFD_CLOEXEC.
4474         * sysdeps/unix/sysv/linux/hppa/bits/mman.h: Include
4475         <bits/mman-shared.h>.
4477 2017-11-24  Adhemerval Zanella  <adhemerval.zanella@linaro.org>
4479         [BZ #22457]
4480         * sysdeps/posix/preadv_common.c (PREADV): Use mmap/munmap instead of
4481         posix_memalign/free.
4482         * sysdeps/posix/pwritev_common.c (PWRITEV): Likewise.
4484 2017-11-22  Mike FABIAN  <mfabian@redhat.com>
4486         [BZ #22469]
4487         * localedata/locales/pl_PL (LC_COLLATE): Use “copy "iso14651_t1"”
4488         and implement the collation rules for pl from CLDR on top of that.
4489         * Makefile: Add pl_PL.UTF-8 to test-input and to the list
4490         of locales to be built for testing.
4491         * pl_PL.UTF-8.in: New file with test data to test the Polish sorting.
4493 2017-11-23  Joseph Myers  <joseph@codesourcery.com>
4495         * sysdeps/ia64/fpu/libm-symbols.h: Include <libm-alias-ldouble.h>.
4496         * sysdeps/ia64/fpu/e_acoshl.S (acoshl): Use
4497         libm_alias_ldouble_other.
4498         * sysdeps/ia64/fpu/e_acosl.S (acosl): Likewise.
4499         * sysdeps/ia64/fpu/e_asinl.S (asinl): Likewise.
4500         * sysdeps/ia64/fpu/e_atanhl.S (atanhl): Likewise.
4501         * sysdeps/ia64/fpu/e_coshl.S (coshl): Likewise.
4502         * sysdeps/ia64/fpu/e_exp10l.S (exp10l): Likewise.
4503         * sysdeps/ia64/fpu/e_exp2l.S (exp2l): Likewise.
4504         * sysdeps/ia64/fpu/e_fmodl.S (fmodl): Likewise.
4505         * sysdeps/ia64/fpu/e_hypotl.S (hypotl): Likewise.
4506         * sysdeps/ia64/fpu/e_lgammal_r.c (lgammal_r): Define using
4507         libm_alias_ldouble_r.
4508         * sysdeps/ia64/fpu/e_log2l.S (log2l): Use
4509         libm_alias_ldouble_other.
4510         * sysdeps/ia64/fpu/e_logl.S (logl): Likewise.
4511         (log10l): Likewise.
4512         * sysdeps/ia64/fpu/e_powl.S (powl): Likewise.
4513         * sysdeps/ia64/fpu/e_remainderl.S (remainderl): Likewise.
4514         * sysdeps/ia64/fpu/e_sinhl.S (sinhl): Likewise.
4515         * sysdeps/ia64/fpu/e_sqrtl.S (sqrtl): Likewise.
4516         * sysdeps/ia64/fpu/libm_sincosl.S (sincosl): Likewise.
4517         * sysdeps/ia64/fpu/s_asinhl.S (asinhl): Likewise.
4518         * sysdeps/ia64/fpu/s_atanl.S (atanl): Likewise.
4519         (atan2l): Likewise.
4520         * sysdeps/ia64/fpu/s_cbrtl.S (cbrtl): Likewise.
4521         * sysdeps/ia64/fpu/s_ceill.S (ceill): Likewise.
4522         * sysdeps/ia64/fpu/s_copysign.S (copysignl): Define using
4523         libm_alias_ldouble.
4524         * sysdeps/ia64/fpu/s_cosl.S (sinl): Use libm_alias_ldouble_other.
4525         (cosl): Likewise.
4526         * sysdeps/ia64/fpu/s_erfcl.S (erfcl): Likewise.
4527         * sysdeps/ia64/fpu/s_erfl.S (erfl): Likewise.
4528         * sysdeps/ia64/fpu/s_expm1l.S (expm1l): Likewise.
4529         (expl): Likewise.
4530         * sysdeps/ia64/fpu/s_fabsl.S (fabsl): Likewise.
4531         * sysdeps/ia64/fpu/s_fdiml.S (fdiml): Likewise.
4532         * sysdeps/ia64/fpu/s_floorl.S (floorl): Likewise.
4533         * sysdeps/ia64/fpu/s_fmal.S (fmal): Likewise.
4534         * sysdeps/ia64/fpu/s_fmaxl.S (fmaxl): Likewise.
4535         * sysdeps/ia64/fpu/s_frexpl.c (frexpl): Likewise.
4536         * sysdeps/ia64/fpu/s_ldexpl.c (ldexpl): Likewise.
4537         * sysdeps/ia64/fpu/s_log1pl.S (log1pl): Likewise.
4538         * sysdeps/ia64/fpu/s_logbl.S (logbl): Likewise.
4539         * sysdeps/ia64/fpu/s_modfl.S (modfl): Likewise.
4540         * sysdeps/ia64/fpu/s_nearbyintl.S (nearbyintl): Define using
4541         libm_alias_ldouble.
4542         * sysdeps/ia64/fpu/s_nextafterl.S (nextafterl): Use
4543         libm_alias_ldouble_other.
4544         * sysdeps/ia64/fpu/s_rintl.S (rintl): Likewise.
4545         * sysdeps/ia64/fpu/s_roundl.S (roundl): Likewise.
4546         * sysdeps/ia64/fpu/s_scalbnl.c (scalbnl): Define using
4547         libm_alias_ldouble.
4548         * sysdeps/ia64/fpu/s_tanhl.S (tanhl): Use
4549         libm_alias_ldouble_other.
4550         * sysdeps/ia64/fpu/s_tanl.S (tanl): Likewise.
4551         * sysdeps/ia64/fpu/s_truncl.S (truncl): Likewise.
4552         * sysdeps/ia64/fpu/w_lgammal_main.c
4553         [BUILD_LGAMMA && !USE_AS_COMPAT] (lgammal): Likewise.
4554         * sysdeps/ia64/fpu/w_tgammal_compat.S (tgammal): Likewise.
4556 2017-11-23  Florian Weimer  <fweimer@redhat.com>
4558         * malloc/malloc.c (tcache_thread_shutdown): Rename from
4559         tcache_thread_freeres.  Define for USE_TCACHE and !USE_TCACHE
4560         alike.  Remove freeres marker.
4561         * malloc/arena.c (arena_thread_freeres): Call
4562         tcache_thread_shutdown.
4564 2017-11-23  Florian Weimer  <fweimer@redhat.com>
4566         [BZ #22459]
4567         Export nscd hash function as __nss_hash.
4568         * include/nss.h (__nss_hash): Declare.
4569         * nis/nis_hash.c (__nis_hash): Call __nss_hash.  Turn into compat
4570         symbol.
4571         * nscd/Makefile (aux, nscd-modules): Remove nscd_hash.
4572         * nscd/cache.c (cache_search, cache_add): Call __nss_hash instead
4573         of __nscd_hash.
4574         * nscd/nscd_helper.c (__nscd_cache_search): Likewise.
4575         * nscd/nscd_hash.h, nscd/nscd_hash.c: Remove files.
4576         * nss/Makefiles (routines): Add nss_hash.
4577         * nss/Versions (GLIBC_PRIVATE): Export __nss_hash.
4578         * nss/nss_hash.c: Rename from nis/nis_hash.c.
4579         (__nss_hash): Rename from __nis_hash.  Define hidden alias.
4580         * nis/rpcsvc/nislib.h (__nis_hash): Remove declaration.
4582 2017-11-23  Florian Weimer  <fweimer@redhat.com>
4584         [BZ #22478]
4585         * sysdeps/unix/sysv/linux/sigwait.c (__sigwait): Retry on EINTR.
4586         Return error code, not -1.
4587         * signal/tst-sigwait-eintr.c: New file.
4588         * signal/Makefile (tests): Add tst-sigwait-eintr.
4590 2017-11-23  Florian Weimer  <fweimer@redhat.com>
4592         Linux: Add memfd_create system call wrapper
4593         * sysdeps/unix/sysv/linux/Makefile [misc] (tests): Add
4594         tst-memfd_create.
4595         * sysdeps/unix/sysv/linux/bits/mman-linux.h [__USE_GNU]
4596         (MFD_CLOEXEC, MFD_ALLOW_SEALING): Define.
4597         [__USE_GNU] (memfd_create): Declare.
4598         * sysdeps/unix/sysv/linux/Versions (GLIBC_2.27): Add memfd_create.
4599         * sysdeps/unix/sysv/linux/syscalls.list (memfd_create): Add.
4600         * sysdeps/unix/sysv/linux/tst-memfd_create.c: New file.
4601         * sysdeps/unix/sysv/linux/**.abilist: Update.
4602         * manual/llio.texi (Memory-mapped I/O): Document memfd_create.
4604 2017-11-22  Joseph Myers  <joseph@codesourcery.com>
4606         * localedata/gen-locale.sh: Fix typo in variable name.
4608         * resolv/res_debug.c (p_secstodate): Condition definition on
4609         [SHLIB_COMPAT (libresolv, GLIBC_2_0, GLIBC_2_27)].  Define
4610         directly as __p_secstodate, and as a compat symbol.  Do not use
4611         libresolv_hidden_def.
4612         * resolv/resolv.h (p_secstodate): Remove macro and function
4613         declaration.
4614         * resolv/ns_print.c (ns_sprintrrf): Print times with %lu, not
4615         using p_secstodate.
4616         * include/resolv.h (__p_secstodate): Do not use
4617         libresolv_hidden_proto.
4618         * resolv/Makefile (tests): Move tst-p_secstodate to ....
4619         (tests-internal): ... here.
4620         * resolv/tst-p_secstodate.c: Include <shlib-compat.h>.  Condition
4621         all contents on [TEST_COMPAT (libresolv, GLIBC_2_0, GLIBC_2_27)]
4622         and declare and use __p_secstodate and use compat_symbol_reference
4623         in that case.
4624         [!TEST_COMPAT (libresolv, GLIBC_2_0, GLIBC_2_27)] (do_test): Add
4625         implementation returning 77.
4627         [BZ #22463]
4628         * resolv/res_debug.c: Include <libc-diag.h>.
4629         (p_secstodate): Assert time_t at least as wide as u_long.  On
4630         overflow, use integer seconds since the epoch as output, or use
4631         "<overflow>" as output and set errno to EOVERFLOW if integer
4632         seconds since the epoch would be 14 or more characters.
4633         (p_secstodate) [__GNUC_PREREQ (7, 0)]: Disable -Wformat-overflow=
4634         for sprintf call.
4635         * resolv/tst-p_secstodate.c: New file.
4636         * resolv/Makefile (tests): Add tst-p_secstodate.
4637         ($(objpfx)tst-p_secstodate): Depend on $(objpfx)libresolv.so.
4639         * sysdeps/sparc/sparc64/soft-fp/s_frexpl.c: Remove file.
4640         * sysdeps/sparc/sparc64/soft-fp/s_scalblnl.c: Likewise.
4641         * sysdeps/sparc/sparc64/soft-fp/s_scalbnl.c: Likewise.
4643 2017-11-22  Paul Eggert  <eggert@cs.ucla.edu>
4645         * posix/regcomp.c (init_word_char): Add comments.
4647 2017-11-22  Joseph Myers  <joseph@codesourcery.com>
4649         [BZ #22447]
4650         * sysdeps/unix/getlogin_r.c (__getlogin_r): Use __strnlen not
4651         strlen to compute length of ut_user and set trailing NUL byte of
4652         result explicitly.
4654 2017-11-21  Mike FABIAN  <mfabian@redhat.com>
4656         [BZ #15537]
4657         * localedata/locales/lv_LV (LC_COLLATE): Fix collation by
4658         using “copy "iso14651_t1"” and then implementing the
4659         collation rules for lv from CLDR on top of that.
4660         * Makefile: Add lv_LV.UTF-8 to test-input and to the list
4661         of locales to be built for testing.
4662         * lv_LV.UTF-8.in: New file with test data to test the Latvian
4663         sorting.
4665 2017-11-21  Joseph Myers  <joseph@codesourcery.com>
4667         * sysdeps/unix/sysv/linux/hppa/bits/mman.h
4668         [__USE_MISC] (MADV_SPACEAVAIL): Remove macro.
4669         [__USE_MISC] (MADV_VPS_PURGE): Likewise.
4670         [__USE_MISC] (MADV_VPS_INHERIT): Likewise.
4671         [__USE_MISC] (MADV_HWPOISON): New macro.
4672         [__USE_MISC] (MADV_SOFT_OFFLINE): Likewise.
4674 2017-11-21  Adhemerval Zanella  <adhemerval.zanella@linaro.org>
4676         * nptl/pthreadP.h (ASSERT_PTHREAD_INTERNAL_SIZE): Add workarond for
4677         -Wmissing-braces on GCC 4.9.
4679 2017-11-21  Stefan Liebler  <stli@linux.vnet.ibm.com>
4681         * sysdeps/s390/s390-64/start.S (_start): Add cfi information for r14.
4682         * sysdeps/s390/s390-32/start.S (_start): Likewise
4683         * sysdeps/unix/sysv/linux/s390/s390-64/clone.S
4684         (thread_start): Likewise.
4685         * sysdeps/unix/sysv/linux/s390/s390-32/clone.S
4686         (thread_start): Likewise.
4687         * sysdeps/unix/sysv/linux/s390/s390-64/__makecontext_ret.S
4688         (__makecontext_ret): Likewise.
4689         * sysdeps/unix/sysv/linux/s390/s390-32/__makecontext_ret.S
4690         (__makecontext_ret): Likewise.
4692 2017-11-21  Stefan Liebler  <stli@linux.vnet.ibm.com>
4694         * include/wchar.h (__wcsnlen, __wcscat, __wcsncpy, __wcpncpy,
4695         __wcschrnul): Remove attribute_hidden.
4697 2017-11-20  Paul Eggert  <eggert@cs.ucla.edu>
4699         regex: don't assume uint64_t or uint32_t
4700         This avoids -Werror=overflow errors for 32-bit systems in
4701         the 64-bit case.  Problem reported by Joseph Myers in:
4702         https://sourceware.org/ml/libc-alpha/2017-11/msg00694.html
4703         Also, when this code is used in Gnulib it ports to platforms
4704         that lack uint64_t and uint32_t.  The C standard doesn't guarantee
4705         them, and on some 32-bit compilers there is no uint64_t.
4706         Problem reported by Gianluigi Tiesi in:
4707         http://lists.gnu.org/archive/html/bug-gnulib/2012-03/msg00154.html
4708         * posix/regcomp.c (init_word_char): Don't assume that the types
4709         uint64_t and uint32_t exist.  Adapted from Gnulib patch
4710         2012-05-27T06:40:00!eggert@cs.ucla.edu.  See:
4711         https://git.savannah.gnu.org/cgit/gnulib.git/commit/?id=252b52457da7887667c036d18cc5169777615bb0
4713 2017-11-20  Siddhesh Poyarekar  <siddhesh@sourceware.org>
4715         * sysdeps/aarch64/memset-reg.h: New file.
4716         * sysdeps/aarch64/memset.S: Use it.
4717         (__memset): Rename to MEMSET macro.
4718         [ZVA_MACRO]: Use zva_macro.
4719         * sysdeps/aarch64/multiarch/Makefile (sysdep_routines):
4720         Add memset_generic and memset_falkor.
4721         * sysdeps/aarch64/multiarch/ifunc-impl-list.c
4722         (__libc_ifunc_impl_list): Add memset ifuncs.
4723         * sysdeps/aarch64/multiarch/init-arch.h (INIT_ARCH): New
4724         local variable zva_size.
4725         * sysdeps/aarch64/multiarch/memset.c: New file.
4726         * sysdeps/aarch64/multiarch/memset_generic.S: New file.
4727         * sysdeps/aarch64/multiarch/memset_falkor.S: New file.
4728         * sysdeps/aarch64/multiarch/rtld-memset.S: New file.
4729         * sysdeps/unix/sysv/linux/aarch64/cpu-features.c
4730         (DCZID_DZP_MASK): New macro.
4731         (DCZID_BS_MASK): Likewise.
4732         (init_cpu_features): Read and set zva_size.
4733         * sysdeps/unix/sysv/linux/aarch64/cpu-features.h
4734         (struct cpu_features): New member zva_size.
4736         * benchtests/bench-memcpy-walk.c (START_SIZE): Set to 128.
4737         * benchtests/bench-memmove-walk.c (START_SIZE): Likewise.
4738         * benchtests/bench-memset-walk.c (START_SIZE): Likewise.
4740         * benchtests/bench-memcpy-walk.c (do_one_test): Copy only
4741         backwards.  Fix timing computation.
4742         * benchtests/bench-memmove-walk.c (do_one_test): Likewise.
4743         * benchtests/bench-memset-walk.c (do_one_test): Walk backwards
4744         on memset by N at a time.  Fix timing computation.
4746 2017-11-20  Florian Weimer  <fweimer@redhat.com>
4748         * manual/llio.texi (Memory-mapped I/O): Document MAP_HUGETLB,
4749         MADV_HUGEPAGE, MADV_NOHUGEPAGE.
4751 2017-11-19  Florian Weimer  <fweimer@redhat.com>
4753         manual: Document mprotect
4754         * manual/memory.texi (Memory Protection): New section.
4755         * manual/llio.texi (Memory-mapped I/O): Remove duplicate
4756         documentation of PROT_* flags and reference the Memory Protection
4757         section instead.
4759 2017-11-19  Florian Weimer  <fweimer@redhat.com>
4761         * manual/llio.texi (I/O Primitives): Move preadv, preadv64,
4762         pwritev, pwritev64, preadv2, preadv64v2, pwritev2, pwritev64v2 ...
4763         (Scatter-Gather): ... to here.  Remove misleading comment.
4765 2017-11-18  Christian Brauner <christian.brauner@ubuntu.com>
4767         * support/support_become_root.c (setup_uid_gid_mapping): Fix comment
4768         style.
4770         * support/support_become_root.c (setup_uid_gid_mapping): Don't fail
4771         when /proc/<pid>/setgroups does not exist.
4773 2017-11-18  Florian Weimer  <fweimer@redhat.com>
4775         * sysdeps/unix/sysv/linux/tst-ttyname.c
4776         (become_root_in_mount_ns): Remove.
4777         (do_in_chroot_1): Call support_enter_mount_namespace.
4778         (do_in_chroot_2): Likewise.
4779         (do_test): Call support_become_root early.
4781 2017-11-18  Florian Weimer  <fweimer@redhat.com>
4783         * support/namespace.h (support_enter_mount_namespace): Declare.
4784         * support/support_enter_mount_namespace.c: New file.
4785         * support/Makefile (libsupport-routines): Add
4786         support_enter_mount_namespace.
4788 2017-11-18  Florian Weimer  <fweimer@redhat.com>
4790         * support/temp_file.c (support_create_temp_directory): Use
4791         test_dir and do not rely on the presence of the XXXXXX suffix.
4792         * support/temp_file.h (support_create_temp_directory): Update
4793         comment.
4794         * support/tst-xreadlink.c (do_test): Adjust.
4795         * support/support_chroot.c (support_chroot_create): Likewise.
4797 2017-11-17  Tulio Magno Quites Machado Filho  <tuliom@linux.vnet.ibm.com>
4799         * sysdeps/powerpc/bits/hwcap.h (PPC_FEATURE2_HTM_NO_SUSPEND): New
4800         macro.
4801         * sysdeps/powerpc/dl-procinfo.c (_dl_powerpc_cap_flags): Add
4802         htm-no-suspend.
4804 2017-11-17  Joseph Myers  <joseph@codesourcery.com>
4806         * sysdeps/x86_64/fpu/e_expl.S: Include <libm-alias-ldouble.h>.
4807         [USE_AS_EXPM1L] (expm1l): Define using libm_alias_ldouble.
4808         * sysdeps/x86_64/fpu/s_ceill.S: Include <libm-alias-ldouble.h>.
4809         (ceill): Define using libm_alias_ldouble.
4810         * sysdeps/x86_64/fpu/s_copysignl.S: Include
4811         <libm-alias-ldouble.h>.
4812         (copysignl): Define using libm_alias_ldouble.
4813         * sysdeps/x86_64/fpu/s_fabsl.S: Include <libm-alias-ldouble.h>.
4814         (fabsl): Define using libm_alias_ldouble.
4815         * sysdeps/x86_64/fpu/s_floorl.S: Include <libm-alias-ldouble.h>.
4816         (floorl): Define using libm_alias_ldouble.
4817         * sysdeps/x86_64/fpu/s_fmaxl.S: Include <libm-alias-ldouble.h>.
4818         (fmaxl): Define using libm_alias_ldouble.
4819         * sysdeps/x86_64/fpu/s_fminl.S: Include <libm-alias-ldouble.h>.
4820         (fminl): Define using libm_alias_ldouble.
4821         * sysdeps/x86_64/fpu/s_llrintl.S: Include <libm-alias-ldouble.h>.
4822         (llrintl): Define using libm_alias_ldouble.
4823         (lrintl): Likewise.
4824         * sysdeps/x86_64/fpu/s_nearbyintl.S: Include
4825         <libm-alias-ldouble.h>.
4826         (nearbyintl): Define using libm_alias_ldouble.
4827         * sysdeps/x86_64/fpu/s_truncl.S: Include <libm-alias-ldouble.h>.
4828         (truncl): Define using libm_alias_ldouble.
4829         * sysdeps/x86_64/x32/fpu/s_lrintl.S: Include
4830         <libm-alias-ldouble.h>.
4831         (lrintl): Define using libm_alias_ldouble.
4833         * sysdeps/i386/fpu/e_expl.S: Include <libm-alias-ldouble.h>.
4834         [USE_AS_EXPM1L] (expm1l): Define using libm_alias_ldouble.
4835         * sysdeps/i386/fpu/s_asinhl.S: Include <libm-alias-ldouble.h>.
4836         (asinhl): Define using libm_alias_ldouble.
4837         * sysdeps/i386/fpu/s_atanl.c: Include <libm-alias-ldouble.h>.
4838         (atanl): Define using libm_alias_ldouble.
4839         * sysdeps/i386/fpu/s_cbrtl.S: Include <libm-alias-ldouble.h>.
4840         (cbrtl): Define using libm_alias_ldouble.
4841         * sysdeps/i386/fpu/s_ceill.S: Include <libm-alias-ldouble.h>.
4842         (ceill): Define using libm_alias_ldouble.
4843         * sysdeps/i386/fpu/s_copysignl.S: Include <libm-alias-ldouble.h>.
4844         (copysignl): Define using libm_alias_ldouble.
4845         * sysdeps/i386/fpu/s_fabsl.S: Include <libm-alias-ldouble.h>.
4846         (fabsl): Define using libm_alias_ldouble.
4847         * sysdeps/i386/fpu/s_floorl.S: Include <libm-alias-ldouble.h>.
4848         (floorl): Define using libm_alias_ldouble.
4849         * sysdeps/i386/fpu/s_fmaxl.S: Include <libm-alias-ldouble.h>.
4850         (fmaxl): Define using libm_alias_ldouble.
4851         * sysdeps/i386/fpu/s_fminl.S: Include <libm-alias-ldouble.h>.
4852         (fminl): Define using libm_alias_ldouble.
4853         * sysdeps/i386/fpu/s_frexpl.S: Include <libm-alias-ldouble.h>.
4854         (frexpl): Define using libm_alias_ldouble.
4855         * sysdeps/i386/fpu/s_llrintl.S: Include <libm-alias-ldouble.h>.
4856         (llrintl): Define using libm_alias_ldouble.
4857         * sysdeps/i386/fpu/s_logbl.c: Include <libm-alias-ldouble.h>.
4858         (logbl): Define using libm_alias_ldouble.
4859         * sysdeps/i386/fpu/s_lrintl.S: Include <libm-alias-ldouble.h>.
4860         (lrintl): Define using libm_alias_ldouble.
4861         * sysdeps/i386/fpu/s_nearbyintl.S: Include <libm-alias-ldouble.h>.
4862         (nearbyintl): Define using libm_alias_ldouble.
4863         * sysdeps/i386/fpu/s_nextafterl.c: Include <libm-alias-ldouble.h>.
4864         (nextafterl): Define using libm_alias_ldouble.
4865         * sysdeps/i386/fpu/s_remquol.S: Include <libm-alias-ldouble.h>.
4866         (remquol): Define using libm_alias_ldouble.
4867         * sysdeps/i386/fpu/s_rintl.c: Include <libm-alias-ldouble.h>.
4868         (rintl): Define using libm_alias_ldouble.
4869         * sysdeps/i386/fpu/s_truncl.S: Include <libm-alias-ldouble.h>.
4870         (truncl): Define using libm_alias_ldouble.
4871         * sysdeps/i386/i686/fpu/s_fmaxl.S: Include <libm-alias-ldouble.h>.
4872         (fmaxl): Define using libm_alias_ldouble.
4873         * sysdeps/i386/i686/fpu/s_fminl.S: Include <libm-alias-ldouble.h>.
4874         (fminl): Define using libm_alias_ldouble.
4876         * bits/floatn-common.h [!__ASSEMBLER]: Disable everything related
4877         to C syntax instead of availability and properties of types.
4878         * bits/floatn.h [!__ASSEMBLER]: Likewise.
4879         * sysdeps/ia64/bits/floatn.h [!__ASSEMBLER]: Likewise.
4880         * sysdeps/ieee754/ldbl-128/bits/floatn.h [!__ASSEMBLER]: Likewise.
4881         * sysdeps/mips/ieee754/bits/floatn.h [!__ASSEMBLER]: Likewise.
4882         * sysdeps/powerpc/bits/floatn.h [!__ASSEMBLER]: Likewise.
4883         * sysdeps/x86/bits/floatn.h [!__ASSEMBLER]: Likewise.
4885 2017-11-17  Florian Weimer  <fweimer@redhat.com>
4887         support_become_root: Enable file creation in namespaces.
4888         * support/support_become_root.c (setup_mapping): New function.
4889         (support_become_root): Call it.
4891 2017-11-17  Joseph Myers  <joseph@codesourcery.com>
4893         * sysdeps/unix/sysv/linux/aarch64/bits/hwcap.h (HWCAP_DCPOP): New
4894         macro.
4896 2017-11-16  Adhemerval Zanella  <adhemerval.zanella@linaro.org>
4898         * sysdeps/aarch64/fpu/Makefile (CFLAGS-s_fmax.c, CFLAGS-s_fmaxf.c,
4899         CFLAGS-s_fmin.c, CFLAGS-s_fminf.c): New rule: add -ffinite-math-only.
4901 2017-11-16  Joseph Myers  <joseph@codesourcery.com>
4903         * sysdeps/unix/sysv/linux/net/if_arp.h (ARPHRD_RAWIP): New macro.
4905         * sysdeps/unix/sysv/linux/syscall-names.list: Update kernel
4906         version to 4.14.
4908 2017-11-16  Siddhesh Poyarekar  <siddhesh@sourceware.org>
4910         * INSTALL: Fix botched up regeneration.
4912         * NEWS: Update sourceare link to https.
4913         * configure.ac: Likewise.
4914         * crypt/md5test-giant.c: Likewise.
4915         * dlfcn/bug-atexit1.c: Likewise.
4916         * dlfcn/bug-atexit2.c: Likewise.
4917         * localedata/README: Likewise.
4918         * malloc/tst-mallocfork.c: Likewise.
4919         * manual/install.texi: Likewise.
4920         * nptl/tst-pthread-getattr.c: Likewise.
4921         * stdio-common/tst-fgets.c: Likewise.
4922         * stdio-common/tst-fwrite.c: Likewise.
4923         * sunrpc/Makefile: Likewise.
4924         * sysdeps/arm/armv7/multiarch/memcpy_impl.S: Likewise.
4925         * wcsmbs/tst-mbrtowc2.c: Likewise.
4926         * configure: Regenerate.
4927         * INSTALL: Regenerate.
4929 2017-11-15  Martin Sebor  <msebor@redhat.com>
4931         * misc/sys/cdefs.h (__attribute_nonstring__): New macro.
4932         * sysdeps/gnu/bits/utmp.h (struct utmp): Use it.
4933         * sysdeps/unix/sysv/linux/s390/bits/utmp.h (struct utmp): Same.
4935 2017-11-15  Luke Shumaker  <lukeshu@parabola.nu>
4937         [BZ #22145]
4938         * sysdeps/unix/sysv/linux/tst-ttyname.c: New file.
4939         * sysdeps/unix/sysv/linux/Makefile: Add tst-ttyname to tests.
4941         [BZ #22145]
4942         * sysdeps/unix/sysv/linux/ttyname.c (ttyname):
4943         Defer is_pty check until end of the function.
4944         * sysdeps/unix/sysv/linux/ttyname_r.c (__ttyname_r): Likewise.
4946         [BZ #22145]
4947         * sysdeps/unix/sysv/linux/ttyname.h (is_mytty): New function.
4948         * sysdeps/unix/sysv/linux/ttyname.c (getttyname): Call is_mytty.
4949         (ttyname): Likewise.
4950         * sysdeps/unix/sysv/linux/ttyname_r.c (getttyname_r): Likewise.
4951         (__ttyname_r): Likewise.
4953         * sysdeps/unix/sysv/linux/ttyname.h (is_pty): Change return type from
4954         int to bool.
4956         * sysdeps/unix/sysv/linux/ttyname.h (is_pty): Update doc reference.
4958         * manual/terminal.texi (Is It a Terminal):
4959         Mention ENODEV for ttyname and ttyname_r.
4961 2017-11-15  Joseph Myers  <joseph@codesourcery.com>
4963         * sysdeps/unix/sysv/linux/bits/socket.h (MSG_ZEROCOPY): New enum
4964         constant and macro.
4966         * sysdeps/unix/sysv/linux/bits/mman-linux.h
4967         [__USE_MISC] (MADV_WIPEONFORK): New macro.
4968         [__USE_MISC] (MADV_KEEPONFORK): Likewise.
4969         * sysdeps/unix/sysv/linux/hppa/bits/mman.h
4970         [__USE_MISC] (MADV_WIPEONFORK): Likewise.
4971         [__USE_MISC] (MADV_KEEPONFORK): Likewise.
4973 2017-11-15  Adhemerval Zanella  <adhemerval.zanella@linaro.org>
4975         * signal/sigrelse.c (sigrelse): Optimize implementation.
4977         * sysdeps/posix/sigpause.c (do_sigpause): Remove.
4978         (__sigpause): Rely on __sigsuspend to implement single thread
4979         optimization.  Add LIBC_CANCEL_HANDLED for cancellation marking.
4981 2017-11-15  Joseph Myers  <joseph@codesourcery.com>
4983         * scripts/build-many-glibcs.py (Context.checkout): Default Linux
4984         kernel version to 4.14.
4986 2017-11-15  Steve Ellcey  <sellcey@cavium.com>
4988         [BZ #22442]
4989         * sysdeps/unix/sysv/linux/if_index.c (__if_nametoindex):
4990         Check if ifname is too long.
4992 2017-11-15  Luke Shumaker  <lukeshu@parabola.nu>
4994         * sysdeps/unix/sysv/linux/epoll_wait.c: Include <sysdep-cancel.h>.
4996 2017-11-15  Mike FABIAN  <mfabian@redhat.com>
4998         * localedata/locales/ka_GE (LC_MESSAGES): Add “X” back to yesexpr,
4999         was accidentally lost.
5001 2017-11-15  Mike FABIAN  <mfabian@redhat.com>
5003         * localedata/locales/az_IR: Add standard copyright header.
5005 2017-11-15  Florian Weimer  <fweimer@redhat.com>
5007         [BZ #22439]
5008         * malloc/malloc.c (__malloc_info): Count all heaps in an arena,
5009         not just the top one.  Output a new "subheaps" statistic.
5011 2017-11-15  Florian Weimer  <fweimer@redhat.com>
5013         [BZ #22408]
5014         * malloc/malloc.c (__malloc_info): Obtain arena heap statistics
5015         under the per-arena lock.
5016         * malloc/Makefile (tests): Add tst-malloc_info.
5017         (tst-malloc_info): Link with libpthread.
5018         * malloc/tst-malloc_info.c: New file.
5020 2017-11-15  Joseph Myers  <joseph@codesourcery.com>
5022         [BZ #21660]
5023         * math/tgmath.h (__HAVE_BUILTIN_TGMATH): New macro.
5024         [__HAVE_BUILTIN_TGMATH] (__TG_F16_ARG): Likewise.
5025         [__HAVE_BUILTIN_TGMATH] (__TG_F32_ARG): Likewise.
5026         [__HAVE_BUILTIN_TGMATH] (__TG_F64_ARG): Likewise.
5027         [__HAVE_BUILTIN_TGMATH] (__TG_F128_ARG): Likewise.
5028         [__HAVE_BUILTIN_TGMATH] (__TG_F32X_ARG): Likewise.
5029         [__HAVE_BUILTIN_TGMATH] (__TG_F64X_ARG): Likewise.
5030         [__HAVE_BUILTIN_TGMATH] (__TG_F128X_ARG): Likewise.
5031         [__HAVE_BUILTIN_TGMATH] (__TGMATH_FUNCS): Likewise.
5032         [__HAVE_BUILTIN_TGMATH] (__TGMATH_RCFUNCS): Likewise.
5033         [__HAVE_BUILTIN_TGMATH] (__TGMATH_1): Likewise.
5034         [__HAVE_BUILTIN_TGMATH] (__TGMATH_2): Likewise.
5035         [__HAVE_BUILTIN_TGMATH] (__TGMATH_2STD): Likewise.
5036         [__HAVE_BUILTIN_TGMATH] (__TGMATH_3): Likewise.
5037         [__HAVE_BUILTIN_TGMATH] (__TGMATH_1C): Likewise.
5038         [__HAVE_BUILTIN_TGMATH] (__TGMATH_2C): Likewise.
5039         (__tgml): Make conditional on [!__HAVE_BUILTIN_TGMATH].
5040         (__floating_type): Likewise.
5041         (__real_integer_type): Likewise.
5042         (__complex_integer_type): Likewise.
5043         (__expr_is_real): Likewise.
5044         (__tgmath_real_type_sub): Likewise.
5045         (__tgmath_real_type): Likewise.
5046         (__tgmath_complex_type_sub): Likewise.
5047         (__tgmath_complex_type): Likewise.
5048         (__TGMATH_F128): Likewise.
5049         (__TGMATH_CF128): Likewise.
5050         [__HAVE_BUILTIN_TGMATH] (__TGMATH_UNARY_REAL_ONLY): Define using
5051         new macros.
5052         [__HAVE_BUILTIN_TGMATH] (__TGMATH_UNARY_REAL_RET_ONLY): Likewise.
5053         [__HAVE_BUILTIN_TGMATH] (__TGMATH_BINARY_FIRST_REAL_ONLY):
5054         Likewise.
5055         [__HAVE_BUILTIN_TGMATH] (__TGMATH_BINARY_FIRST_REAL_STD_ONLY):
5056         Likewise.
5057         [__HAVE_BUILTIN_TGMATH] (__TGMATH_BINARY_REAL_ONLY): Likewise.
5058         [__HAVE_BUILTIN_TGMATH] (__TGMATH_BINARY_REAL_STD_ONLY): Likewise.
5059         [__HAVE_BUILTIN_TGMATH] (__TGMATH_BINARY_REAL_RET_ONLY): Likewise.
5060         [__HAVE_BUILTIN_TGMATH] (__TGMATH_TERNARY_FIRST_SECOND_REAL_ONLY):
5061         Likewise.
5062         [__HAVE_BUILTIN_TGMATH] (__TGMATH_TERNARY_REAL_ONLY): Likewise.
5063         [__HAVE_BUILTIN_TGMATH] (__TGMATH_TERNARY_FIRST_REAL_RET_ONLY):
5064         Likewise.
5065         [__HAVE_BUILTIN_TGMATH] (__TGMATH_UNARY_REAL_IMAG): Likewise.
5066         [__HAVE_BUILTIN_TGMATH] (__TGMATH_UNARY_IMAG): Likewise.
5067         [__HAVE_BUILTIN_TGMATH] (__TGMATH_UNARY_REAL_IMAG_RET_REAL):
5068         Likewise.
5069         [__HAVE_BUILTIN_TGMATH] (__TGMATH_BINARY_REAL_IMAG): Likewise.
5070         (__TGMATH_UNARY_REAL_IMAG_RET_REAL_SAME): New macro.
5071         (carg): Use __TGMATH_UNARY_REAL_IMAG_RET_REAL_SAME.
5072         (cimag): Likewise.
5073         (creal): Likewise.
5075 2017-11-14  Joseph Myers  <joseph@codesourcery.com>
5077         * string/tester.c (test_stpncpy): Disable -Wstringop-truncation
5078         for stpncpy calls for GCC 8.
5079         (test_strncat): Disable -Wstringop-truncation warning for strncat
5080         calls for GCC 8.  Disable -Wstringop-overflow= warning for one
5081         strncat call for GCC 7.
5082         (test_strncpy): Disable -Wstringop-truncation warning for strncpy
5083         calls for GCC 8.
5084         (test_memcmp): Use memcpy instead of strncpy for calls not copying
5085         trailing NUL.
5087         * string/bug-strncat1.c: Include <libc-diag.h>.
5088         (main): Disable -Wstringop-truncation for strncat call for GCC 8.
5090 2017-11-13  Claude Paroz <claude@2xlibre.net>
5092         [BZ #22387]
5093         * localedata/locales/aa_DJ: Improved readibility by replacing
5094         <Uxxxx> sequences in the ASCII printable range by their ASCII
5095         character equivalents.
5096         * localedata/locales/aa_ER: Likewise.
5097         * localedata/locales/aa_ER@saaho: Likewise.
5098         * localedata/locales/aa_ET: Likewise.
5099         * localedata/locales/af_ZA: Likewise.
5100         * localedata/locales/agr_PE: Likewise.
5101         * localedata/locales/ak_GH: Likewise.
5102         * localedata/locales/am_ET: Likewise.
5103         * localedata/locales/anp_IN: Likewise.
5104         * localedata/locales/ar_AE: Likewise.
5105         * localedata/locales/ar_BH: Likewise.
5106         * localedata/locales/ar_DZ: Likewise.
5107         * localedata/locales/ar_EG: Likewise.
5108         * localedata/locales/ar_IN: Likewise.
5109         * localedata/locales/ar_IQ: Likewise.
5110         * localedata/locales/ar_JO: Likewise.
5111         * localedata/locales/ar_KW: Likewise.
5112         * localedata/locales/ar_LB: Likewise.
5113         * localedata/locales/ar_LY: Likewise.
5114         * localedata/locales/ar_MA: Likewise.
5115         * localedata/locales/ar_OM: Likewise.
5116         * localedata/locales/ar_QA: Likewise.
5117         * localedata/locales/ar_SA: Likewise.
5118         * localedata/locales/ar_SD: Likewise.
5119         * localedata/locales/ar_SS: Likewise.
5120         * localedata/locales/ar_SY: Likewise.
5121         * localedata/locales/ar_TN: Likewise.
5122         * localedata/locales/ar_YE: Likewise.
5123         * localedata/locales/as_IN: Likewise.
5124         * localedata/locales/ast_ES: Likewise.
5125         * localedata/locales/ayc_PE: Likewise.
5126         * localedata/locales/az_AZ: Likewise.
5127         * localedata/locales/az_IR: Likewise.
5128         * localedata/locales/be_BY: Likewise.
5129         * localedata/locales/be_BY@latin: Likewise.
5130         * localedata/locales/bem_ZM: Likewise.
5131         * localedata/locales/ber_DZ: Likewise.
5132         * localedata/locales/ber_MA: Likewise.
5133         * localedata/locales/bg_BG: Likewise.
5134         * localedata/locales/bhb_IN: Likewise.
5135         * localedata/locales/bho_IN: Likewise.
5136         * localedata/locales/bi_VU: Likewise.
5137         * localedata/locales/bn_BD: Likewise.
5138         * localedata/locales/bn_IN: Likewise.
5139         * localedata/locales/bo_CN: Likewise.
5140         * localedata/locales/bo_IN: Likewise.
5141         * localedata/locales/br_FR: Likewise.
5142         * localedata/locales/brx_IN: Likewise.
5143         * localedata/locales/bs_BA: Likewise.
5144         * localedata/locales/byn_ER: Likewise.
5145         * localedata/locales/ca_AD: Likewise.
5146         * localedata/locales/ca_ES: Likewise.
5147         * localedata/locales/ca_FR: Likewise.
5148         * localedata/locales/ca_IT: Likewise.
5149         * localedata/locales/ce_RU: Likewise.
5150         * localedata/locales/chr_US: Likewise.
5151         * localedata/locales/cmn_TW: Likewise.
5152         * localedata/locales/crh_UA: Likewise.
5153         * localedata/locales/cs_CZ: Likewise.
5154         * localedata/locales/csb_PL: Likewise.
5155         * localedata/locales/cv_RU: Likewise.
5156         * localedata/locales/cy_GB: Likewise.
5157         * localedata/locales/da_DK: Likewise.
5158         * localedata/locales/de_AT: Likewise.
5159         * localedata/locales/de_BE: Likewise.
5160         * localedata/locales/de_CH: Likewise.
5161         * localedata/locales/de_DE: Likewise.
5162         * localedata/locales/de_IT: Likewise.
5163         * localedata/locales/de_LI: Likewise.
5164         * localedata/locales/de_LU: Likewise.
5165         * localedata/locales/doi_IN: Likewise.
5166         * localedata/locales/dv_MV: Likewise.
5167         * localedata/locales/dz_BT: Likewise.
5168         * localedata/locales/el_CY: Likewise.
5169         * localedata/locales/el_GR: Likewise.
5170         * localedata/locales/en_AG: Likewise.
5171         * localedata/locales/en_AU: Likewise.
5172         * localedata/locales/en_BW: Likewise.
5173         * localedata/locales/en_CA: Likewise.
5174         * localedata/locales/en_DK: Likewise.
5175         * localedata/locales/en_GB: Likewise.
5176         * localedata/locales/en_HK: Likewise.
5177         * localedata/locales/en_IE: Likewise.
5178         * localedata/locales/en_IL: Likewise.
5179         * localedata/locales/en_IN: Likewise.
5180         * localedata/locales/en_NG: Likewise.
5181         * localedata/locales/en_NZ: Likewise.
5182         * localedata/locales/en_PH: Likewise.
5183         * localedata/locales/en_SG: Likewise.
5184         * localedata/locales/en_US: Likewise.
5185         * localedata/locales/en_ZA: Likewise.
5186         * localedata/locales/en_ZM: Likewise.
5187         * localedata/locales/en_ZW: Likewise.
5188         * localedata/locales/eo: Likewise.
5189         * localedata/locales/es_AR: Likewise.
5190         * localedata/locales/es_BO: Likewise.
5191         * localedata/locales/es_CL: Likewise.
5192         * localedata/locales/es_CO: Likewise.
5193         * localedata/locales/es_CR: Likewise.
5194         * localedata/locales/es_CU: Likewise.
5195         * localedata/locales/es_DO: Likewise.
5196         * localedata/locales/es_EC: Likewise.
5197         * localedata/locales/es_ES: Likewise.
5198         * localedata/locales/es_GT: Likewise.
5199         * localedata/locales/es_HN: Likewise.
5200         * localedata/locales/es_MX: Likewise.
5201         * localedata/locales/es_NI: Likewise.
5202         * localedata/locales/es_PA: Likewise.
5203         * localedata/locales/es_PE: Likewise.
5204         * localedata/locales/es_PR: Likewise.
5205         * localedata/locales/es_PY: Likewise.
5206         * localedata/locales/es_SV: Likewise.
5207         * localedata/locales/es_US: Likewise.
5208         * localedata/locales/es_UY: Likewise.
5209         * localedata/locales/es_VE: Likewise.
5210         * localedata/locales/et_EE: Likewise.
5211         * localedata/locales/eu_ES: Likewise.
5212         * localedata/locales/eu_ES@euro: Likewise.
5213         * localedata/locales/fa_IR: Likewise.
5214         * localedata/locales/ff_SN: Likewise.
5215         * localedata/locales/fi_FI: Likewise.
5216         * localedata/locales/fil_PH: Likewise.
5217         * localedata/locales/fo_FO: Likewise.
5218         * localedata/locales/fr_BE: Likewise.
5219         * localedata/locales/fr_CA: Likewise.
5220         * localedata/locales/fr_CH: Likewise.
5221         * localedata/locales/fr_FR: Likewise.
5222         * localedata/locales/fr_LU: Likewise.
5223         * localedata/locales/fur_IT: Likewise.
5224         * localedata/locales/fy_DE: Likewise.
5225         * localedata/locales/fy_NL: Likewise.
5226         * localedata/locales/ga_IE: Likewise.
5227         * localedata/locales/gd_GB: Likewise.
5228         * localedata/locales/gez_ER: Likewise.
5229         * localedata/locales/gez_ET: Likewise.
5230         * localedata/locales/gl_ES: Likewise.
5231         * localedata/locales/gu_IN: Likewise.
5232         * localedata/locales/gv_GB: Likewise.
5233         * localedata/locales/ha_NG: Likewise.
5234         * localedata/locales/hak_TW: Likewise.
5235         * localedata/locales/he_IL: Likewise.
5236         * localedata/locales/hi_IN: Likewise.
5237         * localedata/locales/hif_FJ: Likewise.
5238         * localedata/locales/hne_IN: Likewise.
5239         * localedata/locales/hr_HR: Likewise.
5240         * localedata/locales/hsb_DE: Likewise.
5241         * localedata/locales/ht_HT: Likewise.
5242         * localedata/locales/hu_HU: Likewise.
5243         * localedata/locales/hy_AM: Likewise.
5244         * localedata/locales/i18n: Likewise.
5245         * localedata/locales/ia_FR: Likewise.
5246         * localedata/locales/id_ID: Likewise.
5247         * localedata/locales/ig_NG: Likewise.
5248         * localedata/locales/ik_CA: Likewise.
5249         * localedata/locales/is_IS: Likewise.
5250         * localedata/locales/it_CH: Likewise.
5251         * localedata/locales/it_IT: Likewise.
5252         * localedata/locales/iu_CA: Likewise.
5253         * localedata/locales/ja_JP: Likewise.
5254         * localedata/locales/ka_GE: Likewise.
5255         * localedata/locales/kk_KZ: Likewise.
5256         * localedata/locales/kl_GL: Likewise.
5257         * localedata/locales/kn_IN: Likewise.
5258         * localedata/locales/ko_KR: Likewise.
5259         * localedata/locales/kok_IN: Likewise.
5260         * localedata/locales/ks_IN: Likewise.
5261         * localedata/locales/ks_IN@devanagari: Likewise.
5262         * localedata/locales/ku_TR: Likewise.
5263         * localedata/locales/kw_GB: Likewise.
5264         * localedata/locales/ky_KG: Likewise.
5265         * localedata/locales/lb_LU: Likewise.
5266         * localedata/locales/lg_UG: Likewise.
5267         * localedata/locales/li_BE: Likewise.
5268         * localedata/locales/li_NL: Likewise.
5269         * localedata/locales/lij_IT: Likewise.
5270         * localedata/locales/ln_CD: Likewise.
5271         * localedata/locales/lo_LA: Likewise.
5272         * localedata/locales/lt_LT: Likewise.
5273         * localedata/locales/lv_LV: Likewise.
5274         * localedata/locales/lzh_TW: Likewise.
5275         * localedata/locales/mag_IN: Likewise.
5276         * localedata/locales/mai_IN: Likewise.
5277         * localedata/locales/mg_MG: Likewise.
5278         * localedata/locales/mhr_RU: Likewise.
5279         * localedata/locales/mi_NZ: Likewise.
5280         * localedata/locales/mk_MK: Likewise.
5281         * localedata/locales/ml_IN: Likewise.
5282         * localedata/locales/mn_MN: Likewise.
5283         * localedata/locales/mni_IN: Likewise.
5284         * localedata/locales/mr_IN: Likewise.
5285         * localedata/locales/ms_MY: Likewise.
5286         * localedata/locales/mt_MT: Likewise.
5287         * localedata/locales/my_MM: Likewise.
5288         * localedata/locales/nan_TW: Likewise.
5289         * localedata/locales/nan_TW@latin: Likewise.
5290         * localedata/locales/nb_NO: Likewise.
5291         * localedata/locales/nds_DE: Likewise.
5292         * localedata/locales/nds_NL: Likewise.
5293         * localedata/locales/ne_NP: Likewise.
5294         * localedata/locales/nhn_MX: Likewise.
5295         * localedata/locales/niu_NU: Likewise.
5296         * localedata/locales/niu_NZ: Likewise.
5297         * localedata/locales/nl_AW: Likewise.
5298         * localedata/locales/nl_BE: Likewise.
5299         * localedata/locales/nl_NL: Likewise.
5300         * localedata/locales/nn_NO: Likewise.
5301         * localedata/locales/nr_ZA: Likewise.
5302         * localedata/locales/nso_ZA: Likewise.
5303         * localedata/locales/oc_FR: Likewise.
5304         * localedata/locales/om_ET: Likewise.
5305         * localedata/locales/om_KE: Likewise.
5306         * localedata/locales/or_IN: Likewise.
5307         * localedata/locales/os_RU: Likewise.
5308         * localedata/locales/pa_IN: Likewise.
5309         * localedata/locales/pa_PK: Likewise.
5310         * localedata/locales/pap_AW: Likewise.
5311         * localedata/locales/pap_CW: Likewise.
5312         * localedata/locales/pl_PL: Likewise.
5313         * localedata/locales/ps_AF: Likewise.
5314         * localedata/locales/pt_BR: Likewise.
5315         * localedata/locales/pt_PT: Likewise.
5316         * localedata/locales/quz_PE: Likewise.
5317         * localedata/locales/raj_IN: Likewise.
5318         * localedata/locales/ro_RO: Likewise.
5319         * localedata/locales/ru_RU: Likewise.
5320         * localedata/locales/ru_UA: Likewise.
5321         * localedata/locales/rw_RW: Likewise.
5322         * localedata/locales/sa_IN: Likewise.
5323         * localedata/locales/sat_IN: Likewise.
5324         * localedata/locales/sc_IT: Likewise.
5325         * localedata/locales/sd_IN: Likewise.
5326         * localedata/locales/sd_IN@devanagari: Likewise.
5327         * localedata/locales/se_NO: Likewise.
5328         * localedata/locales/sgs_LT: Likewise.
5329         * localedata/locales/shs_CA: Likewise.
5330         * localedata/locales/si_LK: Likewise.
5331         * localedata/locales/sid_ET: Likewise.
5332         * localedata/locales/sk_SK: Likewise.
5333         * localedata/locales/sl_SI: Likewise.
5334         * localedata/locales/sm_WS: Likewise.
5335         * localedata/locales/so_DJ: Likewise.
5336         * localedata/locales/so_ET: Likewise.
5337         * localedata/locales/so_KE: Likewise.
5338         * localedata/locales/so_SO: Likewise.
5339         * localedata/locales/sq_AL: Likewise.
5340         * localedata/locales/sq_MK: Likewise.
5341         * localedata/locales/sr_ME: Likewise.
5342         * localedata/locales/sr_RS: Likewise.
5343         * localedata/locales/sr_RS@latin: Likewise.
5344         * localedata/locales/ss_ZA: Likewise.
5345         * localedata/locales/st_ZA: Likewise.
5346         * localedata/locales/sv_FI: Likewise.
5347         * localedata/locales/sv_SE: Likewise.
5348         * localedata/locales/sw_KE: Likewise.
5349         * localedata/locales/sw_TZ: Likewise.
5350         * localedata/locales/szl_PL: Likewise.
5351         * localedata/locales/ta_IN: Likewise.
5352         * localedata/locales/ta_LK: Likewise.
5353         * localedata/locales/tcy_IN: Likewise.
5354         * localedata/locales/te_IN: Likewise.
5355         * localedata/locales/tg_TJ: Likewise.
5356         * localedata/locales/th_TH: Likewise.
5357         * localedata/locales/the_NP: Likewise.
5358         * localedata/locales/ti_ER: Likewise.
5359         * localedata/locales/ti_ET: Likewise.
5360         * localedata/locales/tig_ER: Likewise.
5361         * localedata/locales/tk_TM: Likewise.
5362         * localedata/locales/tl_PH: Likewise.
5363         * localedata/locales/tn_ZA: Likewise.
5364         * localedata/locales/to_TO: Likewise.
5365         * localedata/locales/tpi_PG: Likewise.
5366         * localedata/locales/tr_CY: Likewise.
5367         * localedata/locales/tr_TR: Likewise.
5368         * localedata/locales/ts_ZA: Likewise.
5369         * localedata/locales/tt_RU: Likewise.
5370         * localedata/locales/tt_RU@iqtelif: Likewise.
5371         * localedata/locales/ug_CN: Likewise.
5372         * localedata/locales/uk_UA: Likewise.
5373         * localedata/locales/unm_US: Likewise.
5374         * localedata/locales/ur_IN: Likewise.
5375         * localedata/locales/ur_PK: Likewise.
5376         * localedata/locales/uz_UZ: Likewise.
5377         * localedata/locales/uz_UZ@cyrillic: Likewise.
5378         * localedata/locales/ve_ZA: Likewise.
5379         * localedata/locales/vi_VN: Likewise.
5380         * localedata/locales/wa_BE: Likewise.
5381         * localedata/locales/wae_CH: Likewise.
5382         * localedata/locales/wal_ET: Likewise.
5383         * localedata/locales/wo_SN: Likewise.
5384         * localedata/locales/xh_ZA: Likewise.
5385         * localedata/locales/yi_US: Likewise.
5386         * localedata/locales/yo_NG: Likewise.
5387         * localedata/locales/yue_HK: Likewise.
5388         * localedata/locales/yuw_PG: Likewise.
5389         * localedata/locales/zh_CN: Likewise.
5390         * localedata/locales/zh_HK: Likewise.
5391         * localedata/locales/zh_SG: Likewise.
5392         * localedata/locales/zh_TW: Likewise.
5393         * localedata/locales/zu_ZA: Likewise.
5395 2017-11-13  Florian Weimer  <fweimer@redhat.com>
5397         * support/next_to_fault.h, support/next_to_fault.c: New files.
5398         * support/Makefile (libsupport-routines): Add next_to_fault.
5399         * resolv/tst-inet_pton.c (struct next_to_fault)
5400         (next_to_fault_allocate, next_to_fault_free): Remove.
5401         (run_one_test): Switch to <support/next_to_fault.h> interfaces.
5403 2017-11-13  H.J. Lu  <hongjiu.lu@intel.com>
5405         * elf/dl-support.c: Include <dl-procruntime.c>.
5406         * include/link.h: Include <link_map.h>.
5407         * sysdeps/generic/dl-procruntime.c: New file.
5408         * sysdeps/generic/link_map.h: Likewise.
5409         * sysdeps/generic/ldsodefs.h: Include <dl-procruntime.c> in
5410         the writable ld.so namespace.
5412 2017-11-12  Paul Eggert  <eggert@cs.ucla.edu>
5414         timezone: pacify GCC -Wstringop-truncation
5415         Problem reported by Martin Sebor in:
5416         https://sourceware.org/ml/libc-alpha/2017-11/msg00336.html
5417         * timezone/zic.c (writezone): Use memcpy, not strncpy.
5419 2017-11-12  Florian Weimer  <fweimer@redhat.com>
5421         * support/Makefile (libsupport-routines): Add xreadlink, xstrndup,
5422         tst-xreadlink.
5423         (tests): Add tst-xreadlink.
5424         * support/support.h (xstrndup): Declare.
5425         * support/xunistd.h (xunlink, xreadlink): Declare.
5426         * support/temp_file.h (support_create_temp_directory): Declare.
5427         * support/temp_file.c (support_create_temp_directory): New function.
5428         * support/support_chroot.c (support_chroot_create): Use it.
5429         * support/xreadlink.c: New file.
5430         * support/xstrndup.c: Likewise.
5431         * support/xunlink.c: Likewise.
5432         * support/tst-xreadlink.c: Likewise.
5434 2017-11-11  John David Anglin  <danglin@gcc.gnu.org>
5436         * sysdeps/hppa/fpu/libm-test-ulps: Update clog10_downward ulps.
5438 2017-11-11  Florian Weimer  <fweimer@redhat.com>
5440         [BZ #22409]
5441         [BZ #22412]
5442         * resolv/res_comp.c (printable_string, binary_hnok)
5443         (binary_leading_dash): New functions.
5444         (res_hnok): Reimplement using these functions and ns_name_pton.
5445         (res_ownok): Likewise.
5446         (res_mailok): Reimplement using printable_string, ns_name_pton and
5447         binary_hnok.
5448         (res_dnok): Reimplement using printable_string and ns_name_pton.
5449         * resolv/tst-res_hnok.c (tests): Add additional tests.
5450         (LETTERDIGITS, PRINTABLE): Define.
5451         (do_test): Adjust one_char results.
5453 2017-11-11  Florian Weimer  <fweimer@redhat.com>
5455         [BZ #22413]
5456         * resolv/ns_name.c (ns_name_pton): Treat trailing backslash as error.
5457         * resolv/tst-ns_name_pton.c (tests): Add trailing backslash tests.
5459 2017-11-11  Florian Weimer  <fweimer@redhat.com>
5461         * resolv/tst-ns_name_pton.c: New file.
5462         * resolv/Makefile (tests): Add tst-ns_name_pton.
5463         (tst-ns_name_pton): Link against libresolv.
5465 2017-11-11  Florian Weimer  <fweimer@redhat.com>
5467         * resolv/tst-res_hnok.c: New file.
5468         * resolv/Makefile (tests): Add tst-res_hnok.
5469         (tst-res_hnok): Link against libresolv.
5471 2017-11-11  Florian Weimer  <fweimer@redhat.com>
5473         * resolv/tst-resolv-network.c: Use test framework instead explicit
5474         main function.
5476 2017-11-09  H.J. Lu  <hongjiu.lu@intel.com>
5478         * include/setjmp.h [!_ISOMAC]: Include <stddef.h> and
5479         <jmp_buf-macros.h>.
5480         [!_ISOMAC] (STR_HELPER): New.
5481         [!_ISOMAC] (STR): Likewise.
5482         [!_ISOMAC] (TEST_SIZE): Likewise.
5483         [!_ISOMAC] (TEST_ALIGN): Likewise.
5484         [!_ISOMAC] (TEST_OFFSET): Likewise.
5485         [!_ISOMAC] Add _Static_assert to check sizes, alignments and
5486         field offsets of jmp_buf as well as sigjmp_buf.
5487         * sysdeps/unix/sysv/linux/aarch64/jmp_buf-macros.h: Likewise.
5488         * sysdeps/unix/sysv/linux/alpha/jmp_buf-macros.h: Likewise.
5489         * sysdeps/unix/sysv/linux/arm/jmp_buf-macros.h: Likewise.
5490         * sysdeps/unix/sysv/linux/hppa/jmp_buf-macros.h: Likewise.
5491         * sysdeps/unix/sysv/linux/i386/jmp_buf-macros.h: Likewise.
5492         * sysdeps/unix/sysv/linux/ia64/jmp_buf-macros.h: Likewise.
5493         * sysdeps/unix/sysv/linux/m68k/jmp_buf-macros.h: Likewise.
5494         * sysdeps/unix/sysv/linux/microblaze/jmp_buf-macros.h: Likewise.
5495         * sysdeps/unix/sysv/linux/mips/mips32/jmp_buf-macros.h: Likewise.
5496         * sysdeps/unix/sysv/linux/mips/mips64/n32/jmp_buf-macros.h:
5497         Likewise.
5498         * sysdeps/unix/sysv/linux/mips/mips64/n64/jmp_buf-macros.h:
5499         Likewise.
5500         * sysdeps/unix/sysv/linux/nios2/jmp_buf-macros.h: Likewise.
5501         * sysdeps/unix/sysv/linux/powerpc/powerpc32/jmp_buf-macros.h:
5502         Likewise.
5503         * sysdeps/unix/sysv/linux/powerpc/powerpc64/jmp_buf-macros.h:
5504         Likewise.
5505         * sysdeps/unix/sysv/linux/s390/s390-32/jmp_buf-macros.h: Likewise.
5506         * sysdeps/unix/sysv/linux/s390/s390-64/jmp_buf-macros.h: Likewise.
5507         * sysdeps/unix/sysv/linux/sh/jmp_buf-macros.h: Likewise.
5508         * sysdeps/unix/sysv/linux/sparc/sparc32/jmp_buf-macros.h: Likewise.
5509         * sysdeps/unix/sysv/linux/sparc/sparc64/jmp_buf-macros.h: Likewise.
5510         * sysdeps/unix/sysv/linux/tile/tilegx/tilegx32/jmp_buf-macros.h:
5511         Likewise.
5512         * sysdeps/unix/sysv/linux/tile/tilegx/tilegx64/jmp_buf-macros.h:
5513         Likewise.
5514         * sysdeps/unix/sysv/linux/tile/tilepro/jmp_buf-macros.h: Likewise.
5515         * sysdeps/unix/sysv/linux/x86_64/64/jmp_buf-macros.h: Likewise.
5516         * sysdeps/unix/sysv/linux/x86_64/x32/jmp_buf-macros.h: Likewise.
5518 2017-11-07  Joseph Myers  <joseph@codesourcery.com>
5520         * include/float.h
5521         [!__GNUC_PREREQ (7, 0) && __GLIBC_USE (IEC_60559_TYPES_EXT)
5522         && __HAVE_FLOAT32] (FLT32_MANT_DIG): New macro.
5523         [!__GNUC_PREREQ (7, 0) && __GLIBC_USE (IEC_60559_TYPES_EXT)
5524         && __HAVE_FLOAT32] (FLT32_DECIMAL_DIG): Likewise.
5525         [!__GNUC_PREREQ (7, 0) && __GLIBC_USE (IEC_60559_TYPES_EXT)
5526         && __HAVE_FLOAT32] (FLT32_DIG): Likewise.
5527         [!__GNUC_PREREQ (7, 0) && __GLIBC_USE (IEC_60559_TYPES_EXT)
5528         && __HAVE_FLOAT32] (FLT32_MIN_EXP): Likewise.
5529         [!__GNUC_PREREQ (7, 0) && __GLIBC_USE (IEC_60559_TYPES_EXT)
5530         && __HAVE_FLOAT32] (FLT32_MIN_10_EXP): Likewise.
5531         [!__GNUC_PREREQ (7, 0) && __GLIBC_USE (IEC_60559_TYPES_EXT)
5532         && __HAVE_FLOAT32] (FLT32_MAX_EXP): Likewise.
5533         [!__GNUC_PREREQ (7, 0) && __GLIBC_USE (IEC_60559_TYPES_EXT)
5534         && __HAVE_FLOAT32] (FLT32_MAX_10_EXP): Likewise.
5535         [!__GNUC_PREREQ (7, 0) && __GLIBC_USE (IEC_60559_TYPES_EXT)
5536         && __HAVE_FLOAT32] (FLT32_MAX): Likewise.
5537         [!__GNUC_PREREQ (7, 0) && __GLIBC_USE (IEC_60559_TYPES_EXT)
5538         && __HAVE_FLOAT32] (FLT32_EPSILON): Likewise.
5539         [!__GNUC_PREREQ (7, 0) && __GLIBC_USE (IEC_60559_TYPES_EXT)
5540         && __HAVE_FLOAT32] (FLT32_MIN): Likewise.
5541         [!__GNUC_PREREQ (7, 0) && __GLIBC_USE (IEC_60559_TYPES_EXT)
5542         && __HAVE_FLOAT32] (FLT32_TRUE_MIN): Likewise.
5543         [!__GNUC_PREREQ (7, 0) && __GLIBC_USE (IEC_60559_TYPES_EXT)
5544         && __HAVE_FLOAT64] (FLT64_MANT_DIG): Likewise.
5545         [!__GNUC_PREREQ (7, 0) && __GLIBC_USE (IEC_60559_TYPES_EXT)
5546         && __HAVE_FLOAT64] (FLT64_DECIMAL_DIG): Likewise.
5547         [!__GNUC_PREREQ (7, 0) && __GLIBC_USE (IEC_60559_TYPES_EXT)
5548         && __HAVE_FLOAT64] (FLT64_DIG): Likewise.
5549         [!__GNUC_PREREQ (7, 0) && __GLIBC_USE (IEC_60559_TYPES_EXT)
5550         && __HAVE_FLOAT64] (FLT64_MIN_EXP): Likewise.
5551         [!__GNUC_PREREQ (7, 0) && __GLIBC_USE (IEC_60559_TYPES_EXT)
5552         && __HAVE_FLOAT64] (FLT64_MIN_10_EXP): Likewise.
5553         [!__GNUC_PREREQ (7, 0) && __GLIBC_USE (IEC_60559_TYPES_EXT)
5554         && __HAVE_FLOAT64] (FLT64_MAX_EXP): Likewise.
5555         [!__GNUC_PREREQ (7, 0) && __GLIBC_USE (IEC_60559_TYPES_EXT)
5556         && __HAVE_FLOAT64] (FLT64_MAX_10_EXP): Likewise.
5557         [!__GNUC_PREREQ (7, 0) && __GLIBC_USE (IEC_60559_TYPES_EXT)
5558         && __HAVE_FLOAT64] (FLT64_MAX): Likewise.
5559         [!__GNUC_PREREQ (7, 0) && __GLIBC_USE (IEC_60559_TYPES_EXT)
5560         && __HAVE_FLOAT64] (FLT64_EPSILON): Likewise.
5561         [!__GNUC_PREREQ (7, 0) && __GLIBC_USE (IEC_60559_TYPES_EXT)
5562         && __HAVE_FLOAT64] (FLT64_MIN): Likewise.
5563         [!__GNUC_PREREQ (7, 0) && __GLIBC_USE (IEC_60559_TYPES_EXT)
5564         && __HAVE_FLOAT64] (FLT64_TRUE_MIN): Likewise.
5565         [!__GNUC_PREREQ (7, 0) && __GLIBC_USE (IEC_60559_TYPES_EXT)
5566         && __HAVE_FLOAT32X] (FLT32X_MANT_DIG): Likewise.
5567         [!__GNUC_PREREQ (7, 0) && __GLIBC_USE (IEC_60559_TYPES_EXT)
5568         && __HAVE_FLOAT32X] (FLT32X_DECIMAL_DIG): Likewise.
5569         [!__GNUC_PREREQ (7, 0) && __GLIBC_USE (IEC_60559_TYPES_EXT)
5570         && __HAVE_FLOAT32X] (FLT32X_DIG): Likewise.
5571         [!__GNUC_PREREQ (7, 0) && __GLIBC_USE (IEC_60559_TYPES_EXT)
5572         && __HAVE_FLOAT32X] (FLT32X_MIN_EXP): Likewise.
5573         [!__GNUC_PREREQ (7, 0) && __GLIBC_USE (IEC_60559_TYPES_EXT)
5574         && __HAVE_FLOAT32X] (FLT32X_MIN_10_EXP): Likewise.
5575         [!__GNUC_PREREQ (7, 0) && __GLIBC_USE (IEC_60559_TYPES_EXT)
5576         && __HAVE_FLOAT32X] (FLT32X_MAX_EXP): Likewise.
5577         [!__GNUC_PREREQ (7, 0) && __GLIBC_USE (IEC_60559_TYPES_EXT)
5578         && __HAVE_FLOAT32X] (FLT32X_MAX_10_EXP): Likewise.
5579         [!__GNUC_PREREQ (7, 0) && __GLIBC_USE (IEC_60559_TYPES_EXT)
5580         && __HAVE_FLOAT32X] (FLT32X_MAX): Likewise.
5581         [!__GNUC_PREREQ (7, 0) && __GLIBC_USE (IEC_60559_TYPES_EXT)
5582         && __HAVE_FLOAT32X] (FLT32X_EPSILON): Likewise.
5583         [!__GNUC_PREREQ (7, 0) && __GLIBC_USE (IEC_60559_TYPES_EXT)
5584         && __HAVE_FLOAT32X] (FLT32X_MIN): Likewise.
5585         [!__GNUC_PREREQ (7, 0) && __GLIBC_USE (IEC_60559_TYPES_EXT)
5586         && __HAVE_FLOAT32X] (FLT32X_TRUE_MIN): Likewise.
5587         [!__GNUC_PREREQ (7, 0) && __GLIBC_USE (IEC_60559_TYPES_EXT)
5588         && __HAVE_FLOAT64X] (FLT64X_MANT_DIG): Likewise.
5589         [!__GNUC_PREREQ (7, 0) && __GLIBC_USE (IEC_60559_TYPES_EXT)
5590         && __HAVE_FLOAT64X] (FLT64X_DECIMAL_DIG): Likewise.
5591         [!__GNUC_PREREQ (7, 0) && __GLIBC_USE (IEC_60559_TYPES_EXT)
5592         && __HAVE_FLOAT64X] (FLT64X_DIG): Likewise.
5593         [!__GNUC_PREREQ (7, 0) && __GLIBC_USE (IEC_60559_TYPES_EXT)
5594         && __HAVE_FLOAT64X] (FLT64X_MIN_EXP): Likewise.
5595         [!__GNUC_PREREQ (7, 0) && __GLIBC_USE (IEC_60559_TYPES_EXT)
5596         && __HAVE_FLOAT64X] (FLT64X_MIN_10_EXP): Likewise.
5597         [!__GNUC_PREREQ (7, 0) && __GLIBC_USE (IEC_60559_TYPES_EXT)
5598         && __HAVE_FLOAT64X] (FLT64X_MAX_EXP): Likewise.
5599         [!__GNUC_PREREQ (7, 0) && __GLIBC_USE (IEC_60559_TYPES_EXT)
5600         && __HAVE_FLOAT64X] (FLT64X_MAX_10_EXP): Likewise.
5601         [!__GNUC_PREREQ (7, 0) && __GLIBC_USE (IEC_60559_TYPES_EXT)
5602         && __HAVE_FLOAT64X] (FLT64X_MAX): Likewise.
5603         [!__GNUC_PREREQ (7, 0) && __GLIBC_USE (IEC_60559_TYPES_EXT)
5604         && __HAVE_FLOAT64X] (FLT64X_EPSILON): Likewise.
5605         [!__GNUC_PREREQ (7, 0) && __GLIBC_USE (IEC_60559_TYPES_EXT)
5606         && __HAVE_FLOAT64X] (FLT64X_MIN): Likewise.
5607         [!__GNUC_PREREQ (7, 0) && __GLIBC_USE (IEC_60559_TYPES_EXT)
5608         && __HAVE_FLOAT64X] (FLT64X_TRUE_MIN): Likewise.
5610         * stdlib/tst-strtod.h (F16): New macro.
5611         (F32): Likewise.
5612         (F64): Likewise.
5613         (F32X): Likewise.
5614         (F64X): Likewise.
5615         (F128X): Likewise.
5616         (IF_FLOAT16): Likewise.
5617         (IF_FLOAT32): Likewise.
5618         (IF_FLOAT64): Likewise.
5619         (IF_FLOAT32X): Likewise.
5620         (IF_FLOAT64X): Likewise.
5621         (IF_FLOAT128X): Likewise.
5622         (GEN_TEST_STRTOD_FOREACH): Conditionally call macros for _Float16,
5623         _Float32, _Float64, _Float32x, _Float64x and _Float128x.
5624         (STRTOD_TEST_FOREACH): Likewise.
5625         * stdlib/tst-strtod-round-skeleton.c (CHOOSE_f32): New macro.
5626         (CHOOSE_f64): Likewise.
5627         (CHOOSE_f32x): Likewise.
5628         (CHOOSE_f64x): Likewise.
5630 2017-11-07  Andreas Schwab  <schwab@suse.de>
5632         * nptl/Makefile (tests-internal): Remove tst-typesizes.
5634 2017-11-07  Mike FABIAN  <mfabian@redhat.com>
5636         [BZ #22403]
5637         * localedata/locales/mfe_MU (LC_TIME): Fix wrong d_fmt, / needs
5638         to be escaped.
5639         * localedata/locales/miq_NI (LC_TIME): Fix wrong d_fmt, / needs
5640         to be escaped.
5642 2017-11-07  Claude Paroz <claude@2xlibre.net>
5644         [BZ #22403]
5645         * localedata/locales/an_ES (LC_TIME): Fix wrong d_fmt, / needs
5646         to be escaped.
5647         * localedata/locales/kab_DZ (LC_TIME): Fix wrong d_fmt, / needs
5648         to be escaped.
5649         * localedata/locales/om_ET (LC_TIME): Fix wrong d_fmt, / needs
5650         to be escaped.
5652 2017-11-07  Adhemerval Zanella  <adhemerval.zanella@linaro.org>
5654         [BZ #22298]
5655         * nptl/allocatestack.c (allocate_stack): Check if
5656         __PTHREAD_MUTEX_HAVE_PREV is non-zero, instead if
5657         __PTHREAD_MUTEX_HAVE_PREV is defined.
5658         * nptl/descr.h (pthread): Likewise.
5659         * nptl/nptl-init.c (__pthread_initialize_minimal_internal):
5660         Likewise.
5661         * nptl/pthread_create.c (START_THREAD_DEFN): Likewise.
5662         * sysdeps/nptl/fork.c (__libc_fork): Likewise.
5663         * sysdeps/nptl/pthread.h (PTHREAD_MUTEX_INITIALIZER): Likewise.
5664         * sysdeps/nptl/bits/thread-shared-types.h
5665         (__PTHREAD_MUTEX_NUSERS_AFTER_KIND, __PTHREAD_MUTEX_USE_UNION): New
5666         defines.
5667         (__pthread_internal_list): Check __PTHREAD_MUTEX_USE_UNION instead
5668         of __WORDSIZE for internal layout.
5669         (__pthread_mutex_s): Check __PTHREAD_MUTEX_NUSERS_AFTER_KIND instead
5670         of __WORDSIZE for internal __nusers layout and __PTHREAD_MUTEX_USE_UNION
5671         instead of __WORDSIZE whether to use an union for __spins and __list
5672         fields.
5673         (__PTHREAD_MUTEX_HAVE_PREV): Define also for __PTHREAD_MUTEX_USE_UNION
5674         case.
5675         * sysdeps/aarch64/nptl/bits/pthreadtypes-arch.h
5676         (__PTHREAD_MUTEX_NUSERS_AFTER_KIND, __PTHREAD_MUTEX_USE_UNION): New
5677         defines.
5678         * sysdeps/alpha/nptl/bits/pthreadtypes-arch.h
5679         (__PTHREAD_MUTEX_NUSERS_AFTER_KIND, __PTHREAD_MUTEX_USE_UNION):
5680         Likewise.
5681         * sysdeps/arm/nptl/bits/pthreadtypes-arch.h
5682         (__PTHREAD_MUTEX_NUSERS_AFTER_KIND, __PTHREAD_MUTEX_USE_UNION):
5683         Likewise.
5684         * sysdeps/hppa/nptl/bits/pthreadtypes-arch.h
5685         (__PTHREAD_MUTEX_NUSERS_AFTER_KIND, __PTHREAD_MUTEX_USE_UNION):
5686         Likewise.
5687         * sysdeps/ia64/nptl/bits/pthreadtypes-arch.h
5688         (__PTHREAD_MUTEX_NUSERS_AFTER_KIND, __PTHREAD_MUTEX_USE_UNION):
5689         Likewise.
5690         * sysdeps/m68k/nptl/bits/pthreadtypes-arch.h
5691         (__PTHREAD_MUTEX_NUSERS_AFTER_KIND, __PTHREAD_MUTEX_USE_UNION):
5692         Likewise.
5693         * sysdeps/microblaze/nptl/bits/pthreadtypes-arch.h
5694         (__PTHREAD_MUTEX_NUSERS_AFTER_KIND, __PTHREAD_MUTEX_USE_UNION):
5695         Likewise.
5696         * sysdeps/mips/nptl/bits/pthreadtypes-arch.h
5697         (__PTHREAD_MUTEX_NUSERS_AFTER_KIND, __PTHREAD_MUTEX_USE_UNION):
5698         Likewise.
5699         * sysdeps/nios2/nptl/bits/pthreadtypes-arch.h
5700         (__PTHREAD_MUTEX_NUSERS_AFTER_KIND, __PTHREAD_MUTEX_USE_UNION):
5701         Likewise.
5702         * sysdeps/powerpc/nptl/bits/pthreadtypes-arch.h
5703         (__PTHREAD_MUTEX_NUSERS_AFTER_KIND, __PTHREAD_MUTEX_USE_UNION):
5704         Likewise.
5705         * sysdeps/s390/nptl/bits/pthreadtypes-arch.h
5706         (__PTHREAD_MUTEX_NUSERS_AFTER_KIND, __PTHREAD_MUTEX_USE_UNION):
5707         Likewise.
5708         * sysdeps/sh/nptl/bits/pthreadtypes-arch.h
5709         (__PTHREAD_MUTEX_NUSERS_AFTER_KIND, __PTHREAD_MUTEX_USE_UNION):
5710         Likewise.
5711         * sysdeps/sparc/nptl/bits/pthreadtypes-arch.h
5712         (__PTHREAD_MUTEX_NUSERS_AFTER_KIND, __PTHREAD_MUTEX_USE_UNION):
5713         Likewise.
5714         * sysdeps/tile/nptl/bits/pthreadtypes-arch.h
5715         (__PTHREAD_MUTEX_NUSERS_AFTER_KIND, __PTHREAD_MUTEX_USE_UNION):
5716         Likewise.
5717         * sysdeps/x86/nptl/bits/pthreadtypes-arch.h
5718         (__PTHREAD_MUTEX_NUSERS_AFTER_KIND, __PTHREAD_MUTEX_USE_UNION):
5719         Likewise.
5721         * nptl/pthreadP.h (ASSERT_TYPE_SIZE, ASSERT_PTHREAD_INTERNAL_SIZE):
5722         New macros.
5723         * nptl/pthread_attr_init.c (__pthread_mutex_init): Add build time
5724         checks for expected input type size.
5725         * nptl/pthread_barrier_init.c (__pthread_barrier_init): Likewise.
5726         * nptl/pthread_barrierattr_init.c (pthread_barrierattr_init):
5727         Likewise.
5728         * nptl/pthread_cond_init.c (__pthread_cond_init): Likewise.
5729         * nptl/pthread_condattr_init.c (__pthread_condattr_init): Likewise.
5730         * nptl/pthread_mutex_init.c (__pthread_mutex_init): Likewise.
5731         * nptl/pthread_mutexattr_init.c (__pthread_mutexattr_init): Likewise.
5732         * nptl/pthread_rwlock_init.c (__pthread_rwlock_init): Likewise.
5733         * nptl/pthread_rwlockattr_init.c (pthread_rwlockattr_init): Likewise.
5734         * nptl/sem_init.c (__new_sem_init, __old_sem_init): Likewise
5735         * nptl/pthread_attr_destroy.c (__pthread_attr_destroy): Remove
5736         superflous runtime assert check.
5737         * nptl/pthread_attr_getaffinity.c (__pthread_attr_getaffinity_new):
5738         Likewise.
5739         * nptl/pthread_attr_getdetachstate.c (__pthread_attr_getdetachstate):
5740         Likewise.
5741         * nptl/pthread_attr_getguardsize.c (pthread_attr_getguardsize):
5742         Likewise.
5743         * nptl/pthread_attr_getinheritsched.c (__pthread_attr_getinheritsched):
5744         Likewise.
5745         * nptl/pthread_attr_getschedparam.c (__pthread_attr_getschedparam):
5746         Likewise.
5747         * nptl/pthread_attr_getschedpolicy.c (__pthread_attr_getschedpolicy):
5748         Likewise.
5749         * nptl/pthread_attr_getscope.c (__pthread_attr_getscope): Likewise.
5750         * nptl/pthread_attr_getstack.c (__pthread_attr_getstack): Likewise.
5751         * nptl/pthread_attr_getstackaddr.c (__pthread_attr_getstackaddr):
5752         Likewise.
5753         * nptl/pthread_attr_getstacksize.c (__pthread_attr_getstacksize):
5754         Likewise.
5755         * nptl/pthread_attr_setaffinity.c (__pthread_attr_setaffinity_new):
5756         Likewise.
5757         * nptl/pthread_attr_setdetachstate.c (__pthread_attr_setdetachstate):
5758         Likewise.
5759         * nptl/pthread_attr_setguardsize.c (pthread_attr_setguardsize):
5760         Likewise.
5761         * nptl/pthread_attr_setinheritsched.c
5762         (__pthread_attr_setinheritsched): Likewise.
5763         * nptl/pthread_attr_setschedparam.c (__pthread_attr_setschedparam):
5764         Likewise.
5765         * nptl/pthread_attr_setschedpolicy.c (__pthread_attr_setschedpolicy):
5766         Likewise.
5767         * nptl/pthread_attr_setscope.c (__pthread_attr_setscope): Likewise.
5768         * nptl/pthread_attr_setstack.c (__pthread_attr_setstack,
5769         __old_pthread_attr_setstack): Likewise.
5770         * nptl/pthread_attr_setstackaddr.c (__pthread_attr_setstackaddr):
5771         Likewise.
5772         * nptl/pthread_attr_setstacksize.c (__pthread_attr_setstacksize):
5773         Likewise.
5774         * nptl/pthread_getattr_default_np.c (pthread_getattr_default_np):
5775         Likewise.
5776         * nptl/pthread_mutex_lock.c (__pthread_mutex_lock): Likewise.
5777         * nptl/pthread_setattr_default_np.c (pthread_setattr_default_np):
5778         Likewise.
5779         * nptl/tst-typesizes.c: Remove file.
5781         * nptl/pthreadP.h (ASSERT_PTHREAD_STRING,
5782         ASSERT_PTHREAD_INTERNAL_OFFSET): New macro.
5783         * nptl/pthread_mutex_init.c (__pthread_mutex_init): Add build time
5784         checks for internal pthread_mutex_t offsets.
5785         * sysdeps/aarch64/nptl/pthread-offsets.h
5786         (__PTHREAD_MUTEX_NUSERS_OFFSET, __PTHREAD_MUTEX_KIND_OFFSET,
5787         __PTHREAD_MUTEX_SPINS_OFFSET, __PTHREAD_MUTEX_ELISION_OFFSET,
5788         __PTHREAD_MUTEX_LIST_OFFSET): New macro.
5789         * sysdeps/alpha/nptl/pthread-offsets.h: Likewise.
5790         * sysdeps/arm/nptl/pthread-offsets.h: Likewise.
5791         * sysdeps/hppa/nptl/pthread-offsets.h: Likewise.
5792         * sysdeps/i386/nptl/pthread-offsets.h: Likewise.
5793         * sysdeps/ia64/nptl/pthread-offsets.h: Likewise.
5794         * sysdeps/m68k/nptl/pthread-offsets.h: Likewise.
5795         * sysdeps/microblaze/nptl/pthread-offsets.h: Likewise.
5796         * sysdeps/mips/nptl/pthread-offsets.h: Likewise.
5797         * sysdeps/nios2/nptl/pthread-offsets.h: Likewise.
5798         * sysdeps/powerpc/nptl/pthread-offsets.h: Likewise.
5799         * sysdeps/s390/nptl/pthread-offsets.h: Likewise.
5800         * sysdeps/sh/nptl/pthread-offsets.h: Likewise.
5801         * sysdeps/sparc/nptl/pthread-offsets.h: Likewise.
5802         * sysdeps/tile/nptl/pthread-offsets.h: Likewise.
5803         * sysdeps/x86_64/nptl/pthread-offsets.h: Likewise.
5805 2017-11-07  Florian Weimer  <fweimer@redhat.com>
5807         * bits/mman-linux.h: Move ...
5808         * sysdeps/unix/sysv/linux/bits/mman-linux.h: ... here.  Update
5809         comment.
5810         * sysdeps/unix/sysv/linux/bits/Makefile (sysdep_headers): Remove
5811         outdated comment.
5813 2017-11-07  Rajalakshmi Srinivasaraghavan  <raji@linux.vnet.ibm.com>
5815         * sysdeps/powerpc/powerpc64/multiarch/strcasestr-power8.S (STRNLEN):
5816         Redefine STRNLEN as __strnlen_power8.
5818 2017-11-06  Adhemerval Zanella  <adhemerval.zanella@linaro.org>
5820         * signal/sighold.c (sighold): Optimize implementation.
5822         * sysdeps/unix/sysv/linux/sigqueue.c (__sigqueue): Asssume
5823         __NR_rt_sigqueueinfo.
5825         * sysdeps/unix/sysv/linux/Versions (libc) [GLIBC_PRIVATE]: Add
5826         __sigtimedwait.
5827         * sysdeps/unix/sysv/linux/sigtimedwait.c: Simplify includes and
5828         assume __NR_rt_sigtimedwait.
5829         * sysdeps/unix/sysv/linux/sigwait.c (__sigwait): Call __sigtimedwait
5830         and add LIBC_CANCEL_HANDLED for cancellation marking.
5831         * sysdeps/unix/sysv/linux/sigwaitinfo.c (__sigwaitinfo): Likewise.
5833         * sysdeps/arm/armv7/multiarch/Makefile [$(subdir) = string]
5834         (sysdeps_routines): Add memchr_noneon.
5835         * sysdeps/arm/armv7/multiarch/ifunc-memchr.h: New file.
5836         * sysdeps/arm/armv7/multiarch/memchr_noneon.S: Likewise.
5837         * sysdeps/arm/armv7/multiarch/rtld-memchr.S: Likewise.
5838         * sysdeps/arm/armv7/multiarch/memchr.S: Remove file.
5839         * sysdeps/arm/armv7/multiarch/memchr.c: New file.
5840         * sysdeps/arm/armv7/multiarch/memchr_impl.S: Move to ...
5841         * sysdeps/arm/armv7/multiarch/memchr_neon.S: ... here.
5843         * sysdeps/arm/arm-ifunc.h: New file.
5844         * sysdeps/arm/armv7/multiarch/ifunc-memcpy.h: Likewise.
5845         * sysdeps/arm/armv7/multiarch/memcpy.c: Likewise.
5846         * sysdeps/arm/armv7/multiarch/memcpy_arm.S: Likewise.
5847         * sysdeps/arm/armv7/multiarch/rtld-memcpy.S: Likewise.
5848         * sysdeps/arm/armv7/multiarch/memcpy_neon.S [!__ARM_NEON__]
5849         (__memcpy_neon): Avoid create hidden alias.
5850         * sysdeps/arm/armv7/multiarch/memcpy_vfp.S [!__ARM_NEON_]
5851         (__memcpy_vfp): Likewise.
5852         * sysdeps/arm/armv7/multiarch/Makefile [$(subdir) = string]
5853         (sysdep_routines): Add memcpy_arm.
5854         * sysdeps/arm/armv7/multiarch/memcpy.S: Remove file.
5856 2017-11-06  H.J. Lu  <hongjiu.lu@intel.com>
5858         [BZ #22362]
5859         * Makerules (make-link-multidir): New.
5860         * config.make.in (multidir): New.
5861         * configure.ac (libc_cv_multidir): New.  AC_SUBST.
5862         * configure: Regenerated.
5863         * csu/Makefile [$(multidir) != .](multilib-extra-objs): New.
5864         [$(multidir) != .](extra-objs): Add $(multilib-extra-objs).
5865         [$(multidir) != .]($(addprefix $(objpfx)$(multidir)/, $(install-lib))):
5866         New target.
5868 2017-11-06  Joseph Myers  <joseph@codesourcery.com>
5870         [BZ #22402]
5871         * sysdeps/powerpc/bits/floatn.h: Include <bits/long-double.h>.
5872         [__NO_LONG_DOUBLE_MATH] (__HAVE_FLOAT128): Define to 0.
5874 2017-11-04  Mike FABIAN  <mfabian@redhat.com>
5876         * localedata/locales/tpi_PG (LC_TIME): Fix wrong d_fmt, / needs
5877         to be escaped.
5879 2017-11-04  Florian Weimer  <fweimer@redhat.com>
5881         * manual/llio.texi (Open-time Flags): Document O_TMPFILE.
5883 2017-11-03  Joseph Myers  <joseph@codesourcery.com>
5885         * math/math.h [__HAVE_DISTINCT_FLOAT16
5886         || __HAVE_DISTINCT_FLOAT32 || __HAVE_DISTINCT_FLOAT64
5887         || __HAVE_DISTINCT_FLOAT32X || __HAVE_DISTINCT_FLOAT64X
5888         || __HAVE_DISTINCT_FLOAT128X]: Use #error.
5889         [__NO_LONG_DOUBLE_MATH && __HAVE_DISTINCT_FLOAT128]: Likewise.
5890         [__HAVE_DISTINCT_FLOAT128 && !__HAVE_GENERIC_SELECTION
5891         && __HAVE_FLOATN_NOT_TYPEDEF]: Likewise.
5892         [__HAVE_DISTINCT_FLOAT128 && __HAVE_GENERIC_SELECTION]
5893         (__MATH_TG_F32): New macro.
5894         [__HAVE_DISTINCT_FLOAT128 && __HAVE_GENERIC_SELECTION]
5895         (__MATH_TG_F64X): Likewise.
5896         [__HAVE_DISTINCT_FLOAT128 && __HAVE_GENERIC_SELECTION]
5897         (__MATH_TG): Use __MATH_TG_F32 and __MATH_TG_F64X.
5899 2017-11-03  Dmitry V. Levin  <ldv@altlinux.org>
5901         * po/de.po: Update translations.
5902         * po/ru.po: Likewise.
5904 2017-11-03  Florian Weimer  <fweimer@redhat.com>
5906         * manual/filesys.texi (Hard Links): Document linkat.
5908 2017-11-03  Joseph Myers  <joseph@codesourcery.com>
5910         * math/tgmath.h [__HAVE_DISTINCT_FLOAT16
5911         || __HAVE_DISTINCT_FLOAT32 || __HAVE_DISTINCT_FLOAT64
5912         || __HAVE_DISTINCT_FLOAT32X || __HAVE_DISTINCT_FLOAT64X
5913         || __HAVE_DISTINCT_FLOAT128X]: Use #error.
5914         [__HAVE_DISTINCT_FLOAT128 && __GLIBC_USE (IEC_60559_TYPES_EXT)
5915         && __HAVE_FLOAT64X && !__HAVE_FLOAT64X_LONG_DOUBLE
5916         && __HAVE_FLOATN_NOT_TYPEDEF] (__TGMATH_F128): Handle _Float64x
5917         the same as _Float128.
5918         [__HAVE_DISTINCT_FLOAT128 && __GLIBC_USE (IEC_60559_TYPES_EXT)
5919         && __HAVE_FLOAT64X && !__HAVE_FLOAT64X_LONG_DOUBLE
5920         && __HAVE_FLOATN_NOT_TYPEDEF] (__TGMATH_CF128): Likewise.
5922         * stdlib/stdlib.h
5923         [__HAVE_FLOAT16 && __GLIBC_USE (IEC_60559_TYPES_EXT)] (strtof16):
5924         Declare.
5925         [__HAVE_FLOAT32 && __GLIBC_USE (IEC_60559_TYPES_EXT)] (strtof32):
5926         Likewise.
5927         [__HAVE_FLOAT64 && __GLIBC_USE (IEC_60559_TYPES_EXT)] (strtof64):
5928         Likewise.
5929         [__HAVE_FLOAT32X && __GLIBC_USE (IEC_60559_TYPES_EXT)]
5930         (strtof32x): Likewise.
5931         [__HAVE_FLOAT64X && __GLIBC_USE (IEC_60559_TYPES_EXT)]
5932         (strtof64x): Likewise.
5933         [__HAVE_FLOAT128X && __GLIBC_USE (IEC_60559_TYPES_EXT)]
5934         (strtof128x): Likewise.
5935         [__HAVE_FLOAT16 && __GLIBC_USE (IEC_60559_TYPES_EXT)]
5936         (strfromf16): Likewise.
5937         [__HAVE_FLOAT32 && __GLIBC_USE (IEC_60559_TYPES_EXT)]
5938         (strfromf32): Likewise.
5939         [__HAVE_FLOAT64 && __GLIBC_USE (IEC_60559_TYPES_EXT)]
5940         (strfromf64): Likewise.
5941         [__HAVE_FLOAT32X && __GLIBC_USE (IEC_60559_TYPES_EXT)]
5942         (strfromf32x): Likewise.
5943         [__HAVE_FLOAT64X && __GLIBC_USE (IEC_60559_TYPES_EXT)]
5944         (strfromf64x): Likewise.
5945         [__HAVE_FLOAT128X && __GLIBC_USE (IEC_60559_TYPES_EXT)]
5946         (strfromf128x): Likewise.
5947         [__USE_GNU && __HAVE_FLOAT16] (strtof16_l): Likewise.
5948         [__USE_GNU && __HAVE_FLOAT32] (strtof32_l): Likewise.
5949         [__USE_GNU && __HAVE_FLOAT64] (strtof64_l): Likewise.
5950         [__USE_GNU && __HAVE_FLOAT32X] (strtof32x_l): Likewise.
5951         [__USE_GNU && __HAVE_FLOAT64X] (strtof64x_l): Likewise.
5952         [__USE_GNU && __HAVE_FLOAT128X] (strtof128x_l): Likewise.
5954 2017-11-03  Richard Henderson  <rth@twiddle.net>
5956         * sysdeps/unix/sysv/linux/aarch64/sysconf.c: New file.
5958 2017-11-03  Szabolcs Nagy  <szabolcs.nagy@arm.com>
5960         * sysdeps/aarch64/dl-tlsdesc.S (_dl_tlsdesc_dynamic): Optimize.
5962 2017-11-03  Szabolcs Nagy  <szabolcs.nagy@arm.com>
5964         * sysdeps/arm/dl-machine.h (elf_machine_runtime_setup): Remove
5965         DT_TLSDESC_GOT initialization.
5966         * sysdeps/arm/dl-tlsdesc.S (_dl_tlsdesc_lazy_resolver): Remove.
5967         (_dl_tlsdesc_resolve_hold): Likewise.
5968         * sysdeps/aarch64/dl-tlsdesc.h (_dl_tlsdesc_lazy_resolver): Remove.
5969         (_dl_tlsdesc_resolve_hold): Likewise.
5970         * sysdeps/aarch64/tlsdesc.c (_dl_tlsdesc_lazy_resolver_fixup): Remove.
5971         (_dl_tlsdesc_resolve_hold_fixup): Likewise.
5973 2017-11-03  Szabolcs Nagy  <szabolcs.nagy@arm.com>
5975         * sysdeps/arm/dl-machine.h (elf_machine_rel): Remove volatile.
5977 2017-11-03  Szabolcs Nagy  <szabolcs.nagy@arm.com>
5979         [BZ #18572]
5980         * sysdeps/arm/dl-machine.h (elf_machine_lazy_rel): Do symbol binding
5981         non-lazily for R_ARM_TLS_DESC.
5983 2017-11-03  Szabolcs Nagy  <szabolcs.nagy@arm.com>
5985         [BZ #17078]
5986         * sysdeps/arm/dl-machine.h (elf_machine_rela): Remove the
5987         R_ARM_TLS_DESC case.
5988         (elf_machine_lazy_rel): Remove the prelink check.
5990 2017-11-03  Szabolcs Nagy  <szabolcs.nagy@arm.com>
5992         * sysdeps/aarch64/dl-machine.h (elf_machine_runtime_setup): Remove
5993         DT_TLSDESC_GOT initialization.
5994         * sysdeps/aarch64/dl-tlsdesc.S (_dl_tlsdesc_return_lazy): Remove.
5995         (_dl_tlsdesc_resolve_rela): Likewise.
5996         (_dl_tlsdesc_resolve_hold): Likewise.
5997         (_dl_tlsdesc_undefweak): Remove ldar.
5998         (_dl_tlsdesc_dynamic): Likewise.
5999         * sysdeps/aarch64/dl-tlsdesc.h (_dl_tlsdesc_return_lazy): Remove.
6000         (_dl_tlsdesc_resolve_rela): Likewise.
6001         (_dl_tlsdesc_resolve_hold): Likewise.
6002         * sysdeps/aarch64/tlsdesc.c (_dl_tlsdesc_resolve_rela_fixup): Remove.
6003         (_dl_tlsdesc_resolve_hold_fixup): Likewise.
6004         (_dl_tlsdesc_resolve_rela): Likewise.
6005         (_dl_tlsdesc_resolve_hold): Likewise.
6007 2017-11-03  Szabolcs Nagy  <szabolcs.nagy@arm.com>
6009         * sysdeps/aarch64/dl-machine.h (elf_machine_lazy_rel): Do symbol
6010         binding and initialization non-lazily for R_AARCH64_TLSDESC.
6012 2017-11-03  Szabolcs Nagy  <szabolcs.nagy@arm.com>
6014         * elf/tlsdeschtab.h (_dl_tls_resolve_early_return_p): Mark unused.
6015         (_dl_tlsdesc_wake_up_held_fixups): Likewise.
6017 2017-11-02  Joseph Myers  <joseph@codesourcery.com>
6019         * wcsmbs/wchar.h [__HAVE_FLOAT16 && __USE_GNU] (wcstof16):
6020         Declare.
6021         [__HAVE_FLOAT32 && __USE_GNU] (wcstof32): Likewise.
6022         [__HAVE_FLOAT64 && __USE_GNU] (wcstof64): Likewise.
6023         [__HAVE_FLOAT32X && __USE_GNU] (wcstof32x): Likewise.
6024         [__HAVE_FLOAT64X && __USE_GNU] (wcstof64x): Likewise.
6025         [__HAVE_FLOAT128X && __USE_GNU] (wcstof128x): Likewise.
6026         [__HAVE_FLOAT16 && __USE_GNU] (wcstof16_l): Likewise.
6027         [__HAVE_FLOAT32 && __USE_GNU] (wcstof32_l): Likewise.
6028         [__HAVE_FLOAT64 && __USE_GNU] (wcstof64_l): Likewise.
6029         [__HAVE_FLOAT32X && __USE_GNU] (wcstof32x_l): Likewise.
6030         [__HAVE_FLOAT64X && __USE_GNU] (wcstof64x_l): Likewise.
6031         [__HAVE_FLOAT128X && __USE_GNU] (wcstof128x_l): Likewise.
6033 2017-11-02  Mike FABIAN  <mfabian@redhat.com>
6035         [BZ #22382]
6036         * localedata/locales/tpi_PG (LC_TIME): Fix syntax error.
6037         * localedata/locales/tpi_PG: Add standard header.
6039 2017-11-02  Florian Weimer  <fweimer@redhat.com>
6041         test-errno-linux: quotactl can fail with EPERM in containers.
6042         * sysdeps/unix/sysv/linux/test-errno-linux.c
6043         (LIST, LIST_FORWARD): New macros.
6044         (check_error_in_list): New function.
6045         (test_wrp_rv): Accept list of permitted error codes.
6046         (test_wrp_rv2): Remove.
6047         (test_wrp): Call test_wrp_rv with list of error codes.
6048         (test_wrp2): Accept list of error codes.
6049         (do_test): Adjust.  Allow EPERM for quotactl.
6051 2017-11-02  Florian Weimer  <fweimer@redhat.com>
6053         * stdio-common/bug16.c (do_test): Use array_length.
6054         * stdio-common/errlist.c (_sys_nerr): Likewise.
6055         * stdio-common/printf_fp.c (PRINTF_FP_FETCH): Likewise.
6056         * stdio-common/printf_fphex.c (__printf_fphex): Use array_end.
6057         * stdio-common/psiginfo.c (psiginfo): Use array_length.
6058         * stdio-common/test-vfprintf.c (nlocs): Remove definition.
6059         (do_test): Use array_length.
6060         * stdio-common/tst-fphex.c (do_test): Use array_end, array_length.
6061         * stdio-common/tst-long-dbl-fphex.c (do_test): Use array_length.
6062         * stdio-common/tst-printf-round.c (do_test): Likewise.
6063         * stdio-common/tst-swprintf.c (nbuf): Remove definition.
6064         (CHECK): Use array_length.
6065         * stdio-common/tstdiomisc.c (t3, F): Likewise.
6066         * stdio-common/tstscanf.c (main): Likewise.
6067         * stdio-common/vfprintf.c (process_string_arg): Likewise.
6069 2017-11-02  Florian Weimer  <fweimer@redhat.com>
6071         Add array_length and array_end macros.
6072         * include/array_length.h: New file.
6074 2017-11-02  Florian Weimer  <fweimer@redhat.com>
6076         [BZ #22332]
6077         * posix/tst-glob-tilde.c (do_noescape): New variable.
6078         (one_test): Process it.
6079         (do_test): Set do_noescape.  Add unescaping test case.
6081 2017-11-01  Joseph Myers  <joseph@codesourcery.com>
6083         * math/complex.h
6084         [(__HAVE_DISTINCT_FLOAT16 || (__HAVE_FLOAT16 && !_LIBC))
6085         && __GLIBC_USE (IEC_60559_TYPES_EXT)]: Include <bits/cmathcalls.h>
6086         with appropriate macros defined and undefined.
6087         [(__HAVE_DISTINCT_FLOAT32 || (__HAVE_FLOAT32 && !_LIBC))
6088         && __GLIBC_USE (IEC_60559_TYPES_EXT)]: Likewise.
6089         [(__HAVE_DISTINCT_FLOAT64 || (__HAVE_FLOAT64 && !_LIBC))
6090         && __GLIBC_USE (IEC_60559_TYPES_EXT)]: Likewise.
6091         [(__HAVE_DISTINCT_FLOAT32X || (__HAVE_FLOAT32X && !_LIBC))
6092         && __GLIBC_USE (IEC_60559_TYPES_EXT)]: Likewise.
6093         [(__HAVE_DISTINCT_FLOAT64X || (__HAVE_FLOAT64X && !_LIBC))
6094         && __GLIBC_USE (IEC_60559_TYPES_EXT)]: Likewise.
6095         [(__HAVE_DISTINCT_FLOAT128X || (__HAVE_FLOAT128X && !_LIBC))
6096         && __GLIBC_USE (IEC_60559_TYPES_EXT)]: Likewise.
6098         * math/complex.h
6099         [(__HAVE_DISTINCT_FLOAT128 || (__HAVE_FLOAT128 && !LIBC))
6100         && __GLIBC_USE (IEC_60559_TYPES_EXT)]: Move conditional code after
6101         that for long double.  Do not condition define and undefine of
6102         _Mdouble_complex_ on [__CFLOAT128].
6104 2017-11-01  H.J. Lu  <hongjiu.lu@intel.com>
6106         * sysdeps/i386/sysdep.h: Include <sysdeps/x86/sysdep.h> instead
6107         of <sysdeps/generic/sysdep.h>.
6108         (ALIGNARG): Removed.
6109         (ASM_SIZE_DIRECTIVE): Likewise.
6110         (ENTRY): Likewise.
6111         (END): Likewise.
6112         (ENTRY_CHK): Likewise.
6113         (END_CHK): Likewise.
6114         (syscall_error): Likewise.
6115         (mcount): Likewise.
6116         (PSEUDO_END): Likewise.
6117         (L): Likewise.
6118         (atom_text_section): Likewise.
6119         * sysdeps/x86/sysdep.h: New file.
6120         * sysdeps/x86_64/sysdep.h: Include <sysdeps/x86/sysdep.h> instead
6121         of <sysdeps/generic/sysdep.h>.
6122         (ALIGNARG): Removed.
6123         (ASM_SIZE_DIRECTIVE): Likewise.
6124         (ENTRY): Likewise.
6125         (END): Likewise.
6126         (ENTRY_CHK): Likewise.
6127         (END_CHK): Likewise.
6128         (syscall_error): Likewise.
6129         (mcount): Likewise.
6130         (PSEUDO_END): Likewise.
6131         (L): Likewise.
6132         (atom_text_section): Likewise.
6134 2017-10-31  Rafal Luzynski  <digitalfreak@lingonborough.com>
6136         * localedata/unicode-gen/gen_unicode_ctype.py (output_head):
6137         category of LC_CTYPE set to "i18n:2012".
6138         * localedata/locales/i18n_ctype: Regenerate.
6140 2017-10-31  Yury Norov  <ynorov@caviumnetworks.com>
6142         * sysdeps/unix/sysv/linux/sigprocmask.c: Remove useless #ifdefs.
6143         * sysdeps/unix/sysv/linux/sigtimedwait.c: Likewise.
6144         * sysdeps/unix/sysv/linux/sigwait.c: Likewise.
6145         * sysdeps/unix/sysv/linux/sigwaitinfo.c: Likewise.
6147         * sysdeps/unix/sysv/linux/ia64/sigpending.c: Remove file.
6148         * sysdeps/unix/sysv/linux/s390/s390-64/sigpending.c: Likewise.
6149         * sysdeps/unix/sysv/linux/sparc/sparc64/sigpending.c: Likewise.
6150         * sysdeps/unix/sysv/linux/x86_64/sigpending.c: Likewise.
6152 2017-10-31  Joseph Myers  <joseph@codesourcery.com>
6154         * math/complex.h
6155         [__HAVE_FLOAT16 && __GLIBC_USE (IEC_60559_TYPES_EXT)] (CMPLXF16):
6156         New macro.
6157         [__HAVE_FLOAT32 && __GLIBC_USE (IEC_60559_TYPES_EXT)] (CMPLXF32):
6158         Likewise.
6159         [__HAVE_FLOAT64 && __GLIBC_USE (IEC_60559_TYPES_EXT)] (CMPLXF64):
6160         Likewise.
6161         [__HAVE_FLOAT32X && __GLIBC_USE (IEC_60559_TYPES_EXT)]
6162         (CMPLXF32X): Likewise.
6163         [__HAVE_FLOAT64X && __GLIBC_USE (IEC_60559_TYPES_EXT)]
6164         (CMPLXF64X): Likewise.
6165         [__HAVE_FLOAT128X && __GLIBC_USE (IEC_60559_TYPES_EXT)]
6166         (CMPLXF128X): Likewise.
6168         * math/math.h
6169         [__FLT_EVAL_METHOD__ == 0 || __FLT_EVAL_METHOD__ == 32]
6170         (__MATH_EVAL_FMT2): Define to add 0.0f.
6172 2017-10-31  Alan Modra  <amodra@gmail.com>
6174         * sysdeps/powerpc/powerpc64/fpu/multiarch/e_expf-power8.S: Don't
6175         include sysdep.h.
6176         * sysdeps/powerpc/powerpc64/fpu/multiarch/s_ceilf-power5+.S: Likewise.
6177         * sysdeps/powerpc/powerpc64/fpu/multiarch/s_ceilf-ppc64.S: Likewise.
6178         * sysdeps/powerpc/powerpc64/fpu/multiarch/s_cosf-power8.S: Likewise.
6179         * sysdeps/powerpc/powerpc64/fpu/multiarch/s_cosf-ppc64.c: Likewise.
6180         * sysdeps/powerpc/powerpc64/fpu/multiarch/s_finite-power7.S: Likewise.
6181         * sysdeps/powerpc/powerpc64/fpu/multiarch/s_finite-power8.S: Likewise.
6182         * sysdeps/powerpc/powerpc64/fpu/multiarch/s_floor-power5+.S: Likewise.
6183         * sysdeps/powerpc/powerpc64/fpu/multiarch/s_floor-ppc64.S: Likewise.
6184         * sysdeps/powerpc/powerpc64/fpu/multiarch/s_roundf-power5+.S: Likewise.
6185         * sysdeps/powerpc/powerpc64/fpu/multiarch/s_roundf-ppc64.S: Likewise.
6186         * sysdeps/powerpc/powerpc64/fpu/multiarch/s_sinf-power8.S: Likewise.
6187         * sysdeps/powerpc/powerpc64/fpu/multiarch/s_sinf-ppc64.c: Likewise.
6188         * sysdeps/powerpc/powerpc64/fpu/multiarch/s_truncf-power5+.S: Likewise.
6189         * sysdeps/powerpc/powerpc64/fpu/multiarch/s_truncf-ppc64.S: Likewise.
6190         * sysdeps/powerpc/powerpc64/multiarch/memchr-power7.S: Likewise.
6191         * sysdeps/powerpc/powerpc64/multiarch/memchr-power8.S: Likewise.
6192         * sysdeps/powerpc/powerpc64/multiarch/memcmp-power4.S: Likewise.
6193         * sysdeps/powerpc/powerpc64/multiarch/memcmp-power7.S: Likewise.
6194         * sysdeps/powerpc/powerpc64/multiarch/memcmp-power8.S: Likewise.
6195         * sysdeps/powerpc/powerpc64/multiarch/memcpy-a2.S: Likewise.
6196         * sysdeps/powerpc/powerpc64/multiarch/memcpy-cell.S: Likewise.
6197         * sysdeps/powerpc/powerpc64/multiarch/memcpy-power4.S: Likewise.
6198         * sysdeps/powerpc/powerpc64/multiarch/memcpy-power6.S: Likewise.
6199         * sysdeps/powerpc/powerpc64/multiarch/memcpy-power7.S: Likewise.
6200         * sysdeps/powerpc/powerpc64/multiarch/memcpy-ppc64.S: Likewise.
6201         * sysdeps/powerpc/powerpc64/multiarch/memmove-power7.S: Likewise.
6202         * sysdeps/powerpc/powerpc64/multiarch/mempcpy-power7.S: Likewise.
6203         * sysdeps/powerpc/powerpc64/multiarch/memrchr-power7.S: Likewise.
6204         * sysdeps/powerpc/powerpc64/multiarch/memrchr-power8.S: Likewise.
6205         * sysdeps/powerpc/powerpc64/multiarch/memset-power4.S: Likewise.
6206         * sysdeps/powerpc/powerpc64/multiarch/memset-power6.S: Likewise.
6207         * sysdeps/powerpc/powerpc64/multiarch/memset-power7.S: Likewise.
6208         * sysdeps/powerpc/powerpc64/multiarch/memset-power8.S: Likewise.
6209         * sysdeps/powerpc/powerpc64/multiarch/rawmemchr-power7.S: Likewise.
6210         * sysdeps/powerpc/powerpc64/multiarch/stpcpy-power8.S: Likewise.
6211         * sysdeps/powerpc/powerpc64/multiarch/stpncpy-power7.S: Likewise.
6212         * sysdeps/powerpc/powerpc64/multiarch/stpncpy-power8.S: Likewise.
6213         * sysdeps/powerpc/powerpc64/multiarch/strcasecmp-power7.S: Likewise.
6214         * sysdeps/powerpc/powerpc64/multiarch/strcasecmp-power8.S: Likewise.
6215         * sysdeps/powerpc/powerpc64/multiarch/strcasecmp_l-power7.S: Likewise.
6216         * sysdeps/powerpc/powerpc64/multiarch/strcasestr-power8.S: Likewise.
6217         * sysdeps/powerpc/powerpc64/multiarch/strchr-power7.S: Likewise.
6218         * sysdeps/powerpc/powerpc64/multiarch/strchr-power8.S: Likewise.
6219         * sysdeps/powerpc/powerpc64/multiarch/strchr-ppc64.S: Likewise.
6220         * sysdeps/powerpc/powerpc64/multiarch/strchrnul-power7.S: Likewise.
6221         * sysdeps/powerpc/powerpc64/multiarch/strchrnul-power8.S: Likewise.
6222         * sysdeps/powerpc/powerpc64/multiarch/strcmp-power7.S: Likewise.
6223         * sysdeps/powerpc/powerpc64/multiarch/strcmp-power8.S: Likewise.
6224         * sysdeps/powerpc/powerpc64/multiarch/strcmp-power9.S: Likewise.
6225         * sysdeps/powerpc/powerpc64/multiarch/strcmp-ppc64.S: Likewise.
6226         * sysdeps/powerpc/powerpc64/multiarch/strcpy-power8.S: Likewise.
6227         * sysdeps/powerpc/powerpc64/multiarch/strcspn-power8.S: Likewise.
6228         * sysdeps/powerpc/powerpc64/multiarch/strlen-power7.S: Likewise.
6229         * sysdeps/powerpc/powerpc64/multiarch/strlen-power8.S: Likewise.
6230         * sysdeps/powerpc/powerpc64/multiarch/strlen-ppc64.S: Likewise.
6231         * sysdeps/powerpc/powerpc64/multiarch/strncase-power8.S: Likewise.
6232         * sysdeps/powerpc/powerpc64/multiarch/strncmp-power4.S: Likewise.
6233         * sysdeps/powerpc/powerpc64/multiarch/strncmp-power7.S: Likewise.
6234         * sysdeps/powerpc/powerpc64/multiarch/strncmp-power8.S: Likewise.
6235         * sysdeps/powerpc/powerpc64/multiarch/strncmp-power9.S: Likewise.
6236         * sysdeps/powerpc/powerpc64/multiarch/strncmp-ppc64.S: Likewise.
6237         * sysdeps/powerpc/powerpc64/multiarch/strncpy-power7.S: Likewise.
6238         * sysdeps/powerpc/powerpc64/multiarch/strncpy-power8.S: Likewise.
6239         * sysdeps/powerpc/powerpc64/multiarch/strnlen-power7.S: Likewise.
6240         * sysdeps/powerpc/powerpc64/multiarch/strnlen-power8.S: Likewise.
6241         * sysdeps/powerpc/powerpc64/multiarch/strrchr-power7.S: Likewise.
6242         * sysdeps/powerpc/powerpc64/multiarch/strrchr-power8.S: Likewise.
6243         * sysdeps/powerpc/powerpc64/multiarch/strspn-power8.S: Likewise.
6244         * sysdeps/powerpc/powerpc64/multiarch/strstr-power7.S: Likewise.
6246         * sysdeps/powerpc/powerpc64/fpu/multiarch/s_floorf-ppc64.S: Don't
6247         include sysdep.h and math_ldbl_opt.h.
6249         * sysdeps/powerpc/powerpc64/fpu/multiarch/s_ceil-power5+.S: Don't
6250         include sysdep.h and math_ldbl_opt.h.  Include shlib-compat.h.
6251         * sysdeps/powerpc/powerpc64/fpu/multiarch/s_ceil-ppc64.S: Likewise.
6252         * sysdeps/powerpc/powerpc64/fpu/multiarch/s_copysign-power6.S: Likewise.
6253         * sysdeps/powerpc/powerpc64/fpu/multiarch/s_copysign-ppc64.S: Likewise.
6254         * sysdeps/powerpc/powerpc64/fpu/multiarch/s_floorf-power5+.S: Likewise.
6255         * sysdeps/powerpc/powerpc64/fpu/multiarch/s_isinf-power7.S: Likewise.
6256         * sysdeps/powerpc/powerpc64/fpu/multiarch/s_isinf-power8.S: Likewise.
6257         * sysdeps/powerpc/powerpc64/fpu/multiarch/s_isnan-power5.S: Likewise.
6258         * sysdeps/powerpc/powerpc64/fpu/multiarch/s_isnan-power6.S: Likewise.
6259         * sysdeps/powerpc/powerpc64/fpu/multiarch/s_isnan-power6x.S: Likewise.
6260         * sysdeps/powerpc/powerpc64/fpu/multiarch/s_isnan-power7.S: Likewise.
6261         * sysdeps/powerpc/powerpc64/fpu/multiarch/s_isnan-power8.S: Likewise.
6262         * sysdeps/powerpc/powerpc64/fpu/multiarch/s_isnan-ppc64.S: Likewise.
6263         * sysdeps/powerpc/powerpc64/fpu/multiarch/s_llrint-power6x.S: Likewise.
6264         * sysdeps/powerpc/powerpc64/fpu/multiarch/s_llrint-power8.S: Likewise.
6265         * sysdeps/powerpc/powerpc64/fpu/multiarch/s_llrint-ppc64.S: Likewise.
6266         * sysdeps/powerpc/powerpc64/fpu/multiarch/s_llround-power5+.S: Likewise.
6267         * sysdeps/powerpc/powerpc64/fpu/multiarch/s_llround-power6x.S: Likewise.
6268         * sysdeps/powerpc/powerpc64/fpu/multiarch/s_llround-power8.S: Likewise.
6269         * sysdeps/powerpc/powerpc64/fpu/multiarch/s_llround-ppc64.S: Likewise.
6270         * sysdeps/powerpc/powerpc64/fpu/multiarch/s_llroundf-ppc64.S: Likewise.
6271         * sysdeps/powerpc/powerpc64/fpu/multiarch/s_round-power5+.S: Likewise.
6272         * sysdeps/powerpc/powerpc64/fpu/multiarch/s_round-ppc64.S: Likewise.
6273         * sysdeps/powerpc/powerpc64/fpu/multiarch/s_trunc-power5+.S: Likewise.
6274         * sysdeps/powerpc/powerpc64/fpu/multiarch/s_trunc-ppc64.S: Likewise.
6276 2017-10-31  Alan Modra  <amodra@gmail.com>
6278         * sysdeps/powerpc/powerpc64/multiarch/strncase_l-power7.c: Include
6279         string/strncase_l.c, not string/strncase.c.
6280         (USE_IN_EXTENDED_LOCALE_MODEL): Don't define.
6281         (libc_hidden_def): Redefine.
6283 2017-10-31  Alan Modra  <amodra@gmail.com>
6285         * sysdeps/powerpc/powerpc64/multiarch/strcasecmp_l-power7.S:
6286         (__STRCMP, STRCMP, __strcasecmp_l): Define.
6287         (__strcasecmp): Don't define.
6289 2017-10-31  Alan Modra  <amodra@gmail.com>
6291         * sysdeps/powerpc/powerpc64/multiarch/strcmp-power8.S: Wrap in
6292         IS_IN (libc).
6293         * sysdeps/powerpc/powerpc64/multiarch/strcmp-power9.S: Likewise.
6294         * sysdeps/powerpc/powerpc64/multiarch/strncmp-power8.S: Likewise.
6295         * sysdeps/powerpc/powerpc64/multiarch/strncmp-power9.S: Likewise.
6297 2017-10-31  Alan Modra  <amodra@gmail.com>
6299         * sysdeps/powerpc/powerpc64/multiarch/stpncpy-power8.S: Don't define
6300         USE_AS_STPNCPY.
6302 2017-10-31  Alan Modra  <amodra@gmail.com>
6304         * sysdeps/powerpc/powerpc64/fpu/multiarch/s_isnan-ppc64.S (hidden_def):
6305         Redefine only when SHARED.
6307 2017-10-30  Joseph Myers  <joseph@codesourcery.com>
6309         * math/math.h [__HAVE_DISTINCT_FLOAT16 || (__HAVE_FLOAT16 && !_LIBC)]:
6310         Include <bits/math-finite.h> with appropriate macros defined and
6311         undefined.
6312         [__HAVE_DISTINCT_FLOAT32 || (__HAVE_FLOAT32 && !_LIBC)]: Likewise.
6313         [__HAVE_DISTINCT_FLOAT64 || (__HAVE_FLOAT64 && !_LIBC)]: Likewise.
6314         [__HAVE_DISTINCT_FLOAT32X || (__HAVE_FLOAT32X && !_LIBC)]: Likewise.
6315         [__HAVE_DISTINCT_FLOAT64X || (__HAVE_FLOAT64X && !_LIBC)]: Likewise.
6316         [__HAVE_DISTINCT_FLOAT128X || (__HAVE_FLOAT128X && !_LIBC)]: Likewise.
6318         * math/math.h [!_Mfloat_] (_Mfloat_): Do not define.
6319         [!_Mlong_double_] (_Mlong_double_): Likewise.
6320         [!_Mfloat16_] (_Mfloat16_): Likewise.
6321         [!_Mfloat32_] (_Mfloat32_): Likewise.
6322         [!_Mfloat64_] (_Mfloat64_): Likewise.
6323         [!_Mfloat128_] (_Mfloat128_): Likewise.
6324         [!_Mfloat32x_] (_Mfloat32x_): Likewise.
6325         [!_Mfloat64x_] (_Mfloat64x_): Likewise.
6326         [!_Mfloat128x_] (_Mfloat128x_): Likewise.
6327         (_Mdouble_): Define without indirection through those macros.
6328         * math/complex.h [!_Mfloat_] (_Mfloat_): Do not define.
6329         [!_Mfloat128_] (_Mfloat128_): Likewise.
6330         [_Mlong_double_] (_Mlong_double_): Likewise.
6331         (_Mdouble_): Define without indirection through those macros.
6332         * math/Makefile [$(long-double-fcts) != yes] (math-CPPFLAGS): Do
6333         not add -D_Mlong_double_=double.
6334         * include/math.h [_ISOMAC] (_Mlong_double_): Do not undefine.
6335         * math/test-signgam-finite-c99.c (_Mlong_double_): Likewise.
6337 2017-10-30  H.J. Lu  <hongjiu.lu@intel.com>
6339         * sysdeps/x86/libc-start.c: Add /* !SHARED */.
6341 2017-10-30  H.J. Lu  <hongjiu.lu@intel.com>
6343         * sysdeps/x86/libc-start.c: Reformat.
6345 2017-10-30  H.J. Lu  <hongjiu.lu@intel.com>
6347         [BZ #22353]
6348         * sysdeps/i386/i586/strcpy.S (STRCPY): Use conditional branches.
6349         (1): Renamed to ...
6350         (L(Src0)): This.
6351         (L(Src1)): New.
6352         (L(Src2)): Likewise.
6353         (L(1)): Renamed to ...
6354         (L(Src3)): This.
6356 2017-10-30  Joseph Myers  <joseph@codesourcery.com>
6358         * math/math.h [__HAVE_FLOAT16 && __USE_GNU] (M_Ef16): New macro.
6359         [__HAVE_FLOAT16 && __USE_GNU] (M_LOG2Ef16): Likewise.
6360         [__HAVE_FLOAT16 && __USE_GNU] (M_LOG10Ef16): Likewise.
6361         [__HAVE_FLOAT16 && __USE_GNU] (M_LN2f16): Likewise.
6362         [__HAVE_FLOAT16 && __USE_GNU] (M_LN10f16): Likewise.
6363         [__HAVE_FLOAT16 && __USE_GNU] (M_PIf16): Likewise.
6364         [__HAVE_FLOAT16 && __USE_GNU] (M_PI_2f16): Likewise.
6365         [__HAVE_FLOAT16 && __USE_GNU] (M_PI_4f16): Likewise.
6366         [__HAVE_FLOAT16 && __USE_GNU] (M_1_PIf16): Likewise.
6367         [__HAVE_FLOAT16 && __USE_GNU] (M_2_PIf16): Likewise.
6368         [__HAVE_FLOAT16 && __USE_GNU] (M_2_SQRTPIf16): Likewise.
6369         [__HAVE_FLOAT16 && __USE_GNU] (M_SQRT2f16): Likewise.
6370         [__HAVE_FLOAT16 && __USE_GNU] (M_SQRT1_2f16): Likewise.
6371         [__HAVE_FLOAT32 && __USE_GNU] (M_Ef32): Likewise.
6372         [__HAVE_FLOAT32 && __USE_GNU] (M_LOG2Ef32): Likewise.
6373         [__HAVE_FLOAT32 && __USE_GNU] (M_LOG10Ef32): Likewise.
6374         [__HAVE_FLOAT32 && __USE_GNU] (M_LN2f32): Likewise.
6375         [__HAVE_FLOAT32 && __USE_GNU] (M_LN10f32): Likewise.
6376         [__HAVE_FLOAT32 && __USE_GNU] (M_PIf32): Likewise.
6377         [__HAVE_FLOAT32 && __USE_GNU] (M_PI_2f32): Likewise.
6378         [__HAVE_FLOAT32 && __USE_GNU] (M_PI_4f32): Likewise.
6379         [__HAVE_FLOAT32 && __USE_GNU] (M_1_PIf32): Likewise.
6380         [__HAVE_FLOAT32 && __USE_GNU] (M_2_PIf32): Likewise.
6381         [__HAVE_FLOAT32 && __USE_GNU] (M_2_SQRTPIf32): Likewise.
6382         [__HAVE_FLOAT32 && __USE_GNU] (M_SQRT2f32): Likewise.
6383         [__HAVE_FLOAT32 && __USE_GNU] (M_SQRT1_2f32): Likewise.
6384         [__HAVE_FLOAT64 && __USE_GNU] (M_Ef64): Likewise.
6385         [__HAVE_FLOAT64 && __USE_GNU] (M_LOG2Ef64): Likewise.
6386         [__HAVE_FLOAT64 && __USE_GNU] (M_LOG10Ef64): Likewise.
6387         [__HAVE_FLOAT64 && __USE_GNU] (M_LN2f64): Likewise.
6388         [__HAVE_FLOAT64 && __USE_GNU] (M_LN10f64): Likewise.
6389         [__HAVE_FLOAT64 && __USE_GNU] (M_PIf64): Likewise.
6390         [__HAVE_FLOAT64 && __USE_GNU] (M_PI_2f64): Likewise.
6391         [__HAVE_FLOAT64 && __USE_GNU] (M_PI_4f64): Likewise.
6392         [__HAVE_FLOAT64 && __USE_GNU] (M_1_PIf64): Likewise.
6393         [__HAVE_FLOAT64 && __USE_GNU] (M_2_PIf64): Likewise.
6394         [__HAVE_FLOAT64 && __USE_GNU] (M_2_SQRTPIf64): Likewise.
6395         [__HAVE_FLOAT64 && __USE_GNU] (M_SQRT2f64): Likewise.
6396         [__HAVE_FLOAT64 && __USE_GNU] (M_SQRT1_2f64): Likewise.
6397         [__HAVE_FLOAT32X && __USE_GNU] (M_Ef32x): Likewise.
6398         [__HAVE_FLOAT32X && __USE_GNU] (M_LOG2Ef32x): Likewise.
6399         [__HAVE_FLOAT32X && __USE_GNU] (M_LOG10Ef32x): Likewise.
6400         [__HAVE_FLOAT32X && __USE_GNU] (M_LN2f32x): Likewise.
6401         [__HAVE_FLOAT32X && __USE_GNU] (M_LN10f32x): Likewise.
6402         [__HAVE_FLOAT32X && __USE_GNU] (M_PIf32x): Likewise.
6403         [__HAVE_FLOAT32X && __USE_GNU] (M_PI_2f32x): Likewise.
6404         [__HAVE_FLOAT32X && __USE_GNU] (M_PI_4f32x): Likewise.
6405         [__HAVE_FLOAT32X && __USE_GNU] (M_1_PIf32x): Likewise.
6406         [__HAVE_FLOAT32X && __USE_GNU] (M_2_PIf32x): Likewise.
6407         [__HAVE_FLOAT32X && __USE_GNU] (M_2_SQRTPIf32x): Likewise.
6408         [__HAVE_FLOAT32X && __USE_GNU] (M_SQRT2f32x): Likewise.
6409         [__HAVE_FLOAT32X && __USE_GNU] (M_SQRT1_2f32x): Likewise.
6410         [__HAVE_FLOAT64X && __USE_GNU] (M_Ef64x): Likewise.
6411         [__HAVE_FLOAT64X && __USE_GNU] (M_LOG2Ef64x): Likewise.
6412         [__HAVE_FLOAT64X && __USE_GNU] (M_LOG10Ef64x): Likewise.
6413         [__HAVE_FLOAT64X && __USE_GNU] (M_LN2f64x): Likewise.
6414         [__HAVE_FLOAT64X && __USE_GNU] (M_LN10f64x): Likewise.
6415         [__HAVE_FLOAT64X && __USE_GNU] (M_PIf64x): Likewise.
6416         [__HAVE_FLOAT64X && __USE_GNU] (M_PI_2f64x): Likewise.
6417         [__HAVE_FLOAT64X && __USE_GNU] (M_PI_4f64x): Likewise.
6418         [__HAVE_FLOAT64X && __USE_GNU] (M_1_PIf64x): Likewise.
6419         [__HAVE_FLOAT64X && __USE_GNU] (M_2_PIf64x): Likewise.
6420         [__HAVE_FLOAT64X && __USE_GNU] (M_2_SQRTPIf64x): Likewise.
6421         [__HAVE_FLOAT64X && __USE_GNU] (M_SQRT2f64x): Likewise.
6422         [__HAVE_FLOAT64X && __USE_GNU] (M_SQRT1_2f64x): Likewise.
6423         [__HAVE_FLOAT128X && __USE_GNU]: Use #error.
6425 2017-10-30  Florian Weimer  <fweimer@redhat.com>
6427         * elf/ldconfig.c (search_dir): Assume that _DIRENT_HAVE_D_TYPE is
6428         always defined.
6429         * io/tst-mkdirat.c (do_test): Likewise.
6430         * io/tst-mkfifoat.c (do_test): Likewise.
6431         * io/tst-mknodat.c (do_test): Likewise.
6432         * locale/programs/charmap-dir.c (charmap_readdir): Likewise.
6433         * locale/programs/locale.c (select_dirs): Likewise.
6434         * locale/programs/locarchive.c (add_locales_to_archive): Likewise.
6435         * posix/bug-glob2.c (my_readdir): Likewise.
6436         * posix/tst-dir.c (main): Likewise.
6437         * posix/tst-glob_lstat_compat.c (my_readdir): Likewise.
6438         * posix/tst-gnuglob-skeleton.c (my_readdir): Likewise.
6440 2017-10-30  Florian Weimer  <fweimer@redhat.com>
6442         * string/strings.h (ffsl, ffsll): Declare under __USE_MISC, not
6443         just __USE_GNU.
6445 2017-10-30  Florian Weimer  <fweimer@redhat.com>
6447         * posix/tst-gnuglob-skeleton.c: Renamed from tst-gnuglob.c.
6448         Convert to support/test-driver.c.
6449         (GLOB_FUNC, GLOB_TYPE, GLOBFREE_FUNC, DIRENT_STRUCT, STAT_STRUCT):
6450         New macro parameters.
6451         (PRINTF): Remove macro.  Use test_verbose conditionals instead.
6452         * posix/tst-gnuglob.c: New file.
6453         * posix/tst-gnuglob64.c: Likewise.
6454         * posix/Makefile (tests): Add tst-gnuglob64.
6456 2017-10-30  Michal Ostrowski <ostrowski.michal@gmail.com>
6458         [BZ #19485]
6459         * localedata/locales/csb_PL (LC_TIME): Fix “abmon” for March
6460         and use a better translation for March in “mon”.
6461         * localedata/locales/csb_PL: Use more ASCII to improve the
6462         readability of the source.
6464 2017-10-30  Mike FABIAN  <mfabian@redhat.com>
6466         [BZ #13953]
6467         * localedata/locales/km_KH: Use ASCII as much
6468         as possible for better readability of the source and
6469         remove useless comments.
6470         * localedata/locales/km_KH (LC_TIME): Remove era stuff, it
6471         was commented out and apparently wrong anyway because it was
6472         using Lao characters. If Buddhist era should be used
6473         for km_KH, a native speaker should write the correct formaat
6474         for Khmer.
6475         * localedata/locales/km_KH (LC_TIME): Add first_weekday 1
6476         (According to CLDR, the first weekday for Cambodia is Sunday).
6477         * localedata/locales/km_KH (LC_NAME): Remove name_mr and name_mrs
6478         (These were using Lao characters which must be wrong. If we get
6479         the correct data from a native speaker, we could add it back, until
6480         then it is better not to have name_mr and name_mrs at all than
6481         having it wrong).
6483 2017-10-27  Rafal Luzynski  <digitalfreak@lingonborough.com>
6485         * locale/loadlocale.c: Correct size of
6486         _nl_value_type_LC_<category> arrays.
6488 2017-10-27  Joseph Myers  <joseph@codesourcery.com>
6490         * math/math.h [__HAVE_DISTINCT_FLOAT16 || (__HAVE_FLOAT16 && !_LIBC)]:
6491         Include <bits/mathcalls-helper-functions.h> and <bits/mathcalls.h>
6492         with appropriate macros defined and undefined.
6493         [__HAVE_DISTINCT_FLOAT32 || (__HAVE_FLOAT32 && !_LIBC)]: Likewise.
6494         [__HAVE_DISTINCT_FLOAT64 || (__HAVE_FLOAT64 && !_LIBC)]: Likewise.
6495         [__HAVE_DISTINCT_FLOAT32X || (__HAVE_FLOAT32X && !_LIBC)]: Likewise.
6496         [__HAVE_DISTINCT_FLOAT64X || (__HAVE_FLOAT64X && !_LIBC)]: Likewise.
6497         [__HAVE_DISTINCT_FLOAT128X || (__HAVE_FLOAT128X && !_LIBC)]: Likewise.
6499 2017-10-27  H.J. Lu  <hongjiu.lu@intel.com>
6501         * sysdeps/i386/fpu/libm-test-ulps: Regenerated for GCC 7 with
6502         "-O2 -march=i586".
6504 2017-10-27  Mike FABIAN  <mfabian@redhat.com>
6506         * localedata/locales/tt_RU (LC_MESSAGES): Start yesstr and nostr
6507         with lowercase letters to make it agree with CLDR.
6509 2017-10-27  Mike FABIAN  <mfabian@redhat.com>
6511         [BZ #15260]
6512         * localedata/locales/doi_IN (LC_MESSAGES): Match only for the
6513         first letters of yesstr and nostr in yesexpr and noexpr,
6514         not for the full words.
6515         * localedata/locales/hne_IN (LC_MESSAGES): Likewise.
6516         * localedata/locales/kok_IN (LC_MESSAGES): Likewise.
6517         * localedata/locales/mr_IN (LC_MESSAGES): Likewise.
6518         * localedata/locales/sat_IN (LC_MESSAGES): Likewise.
6519         * localedata/locales/km_KH (LC_MESSAGES): Match also for the
6520         first letters of yesstr and nostr in yesexpr and noexpr,
6521         until now only English was matched in yesexpr and noexpr.
6522         * localedata/locales/tl_PH (LC_MESSAGES): Use “copy "fil_PH"”
6523         instead of “copy "en_US"”. CLDR has yesstr and nostr data for
6524         fil but not for tl. As tl and fil are very similar, using fil
6525         is probably better than using English.
6527 2017-10-27  Thierry Vignaud <thierry.vignaud@gmail.com>
6529         [BZ #21706]
6530         * localedata/locales/br_FR (LC_MESSAGES): Use all lowercase
6531         in yesstr and nostr.
6533 2017-10-26  Joseph Myers  <joseph@codesourcery.com>
6535         * math/math.h [__HAVE_FLOAT16 && __GLIBC_USE
6536         (IEC_60559_TYPES_EXT)] (SNANF16): New macro.
6537         [__HAVE_FLOAT32 && __GLIBC_USE (IEC_60559_TYPES_EXT)] (SNANF32):
6538         Likewise.
6539         [__HAVE_FLOAT64 && __GLIBC_USE (IEC_60559_TYPES_EXT)] (SNANF64):
6540         Likewise.
6541         [__HAVE_FLOAT32X && __GLIBC_USE (IEC_60559_TYPES_EXT)] (SNANF32X):
6542         Likewise.
6543         [__HAVE_FLOAT64X && __GLIBC_USE (IEC_60559_TYPES_EXT)] (SNANF64X):
6544         Likewise.
6545         [__HAVE_FLOAT128X && __GLIBC_USE (IEC_60559_TYPES_EXT)]
6546         (SNANF128X): Likewise.
6548         * math/math.h [__HAVE_FLOAT16 && __GLIBC_USE
6549         (IEC_60559_TYPES_EXT)] (HUGE_VAL_F16): New macro.
6550         [__HAVE_FLOAT32 && __GLIBC_USE (IEC_60559_TYPES_EXT)]
6551         (HUGE_VAL_F32): Likewise.
6552         [__HAVE_FLOAT64 && __GLIBC_USE (IEC_60559_TYPES_EXT)]
6553         (HUGE_VAL_F64): Likewise.
6554         [__HAVE_FLOAT32X && __GLIBC_USE (IEC_60559_TYPES_EXT)]
6555         (HUGE_VAL_F32X): Likewise.
6556         [__HAVE_FLOAT64X && __GLIBC_USE (IEC_60559_TYPES_EXT)]
6557         (HUGE_VAL_F64X): Likewise.
6558         [__HAVE_FLOAT128X && __GLIBC_USE (IEC_60559_TYPES_EXT)]
6559         (HUGE_VAL_F128X): Likewise.
6561 2017-10-26  Thierry Vignaud <thierry.vignaud@gmail.com>
6563         * localedata/locales/br_FR (LC_IDENTIFICATON): Add
6564         Thierry Vignaud <thierry.vignaud@gmail.com> as the contact
6565         for the br_FR locale.
6567 2017-10-26  Thierry Vignaud <thierry.vignaud@gmail.com>
6569         [BZ #21706]
6570         * localedata/locales/br_FR (LC_MESSAGES): Fix nostr.
6572 2017-10-25  Carlos O'Donell  <carlos@redhat.com>
6574         * locale/programs/record-status.h: Define globals, and function
6575         prototypes. Move function bodies...
6576         * locale/programs/record-status.c: ... to here. New file.
6577         * iconv/Makefile (iconv_prog-modules): Add record-status.
6578         * locale/Makefile (lib-modules): Likewise.
6579         * iconv/iconv_prog.c: Remove verbose.
6580         * iconv/iconv_prog.h: Include record-status.h (defines verbose).
6581         * locale/programs/charmap.c (charmap_read): If warn_ascii is true then
6582         record a warning about ASCII compatibility.
6583         * locale/programs/ld-monetary.c (monetary_finish): If
6584         warn_int_curr_symbol is true then record a warning about the symbol
6585         not being in our ISO 4217 list.
6586         * locale/programs/locale.c: Include record-status.h. Remove verbose.
6587         * locale/programs/localedef.c: Include ctype.h. Remove delcaration of
6588         verbose, recorded_warning_count, recorded_error_count, and be_quiet.
6589         (OPT_NO_WARN): Define.
6590         (OPT_WARN): Define.
6591         (options): Add entry for --no-warnings, and --warnings.
6592         (set_warnings): New function to enable/disable warnings.
6593         (parse_opt): Call set_warnings for OPT_NO_WARN and OPT_WARN.
6594         * locale/programs/localedef.h: Remove warn_int_curr_symbol.
6595         * localedata/gen-locale.sh: Default flags to `--quiet -c'.
6596         Add `--no-warnings=ascii' to locales using SHIFT_JIS or SHIFT_JIXX0213.
6597         Pass flags to generate_locale.
6598         (generate_locale): Accept new flag argument and pass it to localedef
6599         invocation.
6600         * localedata/Makefile (INSTALL-SUPPORTED-LOCALES): Use
6601         --no-warnings=ascii for SHIFT_JIS and SHIFT_JISX0213 charmaps.
6603         * localedata/Makefile (test-input-data): Use full file name.
6604         * localedata/da_DK.in: Rename to...
6605         * localedata/da_DK.ISO-8859-1.in: ...this.
6606         * localedata/de_DE.in: Rename to...
6607         * localedata/de_DE.ISO-8859-1.in: ...this.
6608         * localedata/en_US.in: Rename to...
6609         * localedata/en_US.ISO-8859-1.in: ...this.
6610         * localedata/fr_FR.in: Rename to...
6611         * localedata/fr_FR.UTF-8.in: ... this.
6612         * localedata/hr_HR.in: Rename to...
6613         * localedata/hr_HR.ISO-8859-2.in: ...this.
6614         * localedata/hu_HU.in: Rename to...
6615         * localedata/hu_HU.UTF-8.in: ...this.
6616         * localedata/si_LK.in: Rename to...
6617         * localedata/si_LK.UTF-8.in: ...this.
6618         * localedata/sv_SE.in: Rename to...
6619         * localedata/sv_SE.ISO-8859-1.in: ...this.
6620         * localedata/tr_TR.in: Rename to...
6621         * localedata/tr_TR.UTF-8.in: ...this.
6622         * localedata/uk_UA.in: Rename to...
6623         * localedata/uk_UA.UTF-8.in: ...this.
6624         * localedata/sort-test.sh: Test file is locale name with the
6625         suffix.
6627         * localedata/unicode-gen/Makefile (check_i18n): Rename to
6628         check_i18n_ctype. Depend on i18n_ctype-report. Check i18n_ctype-report
6629         file.
6630         * localedata/locales/i18n_ctype: Regenerate.
6631         * localedata/locales/tr_TR: Likewise.
6632         * localedata/locales/translit_circle: Likewise.
6633         * localedata/locales/translit_cjk_compat: Likewise.
6634         * localedata/locales/translit_combining: Likewise.
6635         * localedata/locales/translit_compat: Likewise.
6636         * localedata/locales/translit_font: Likewise.
6637         * localedata/locales/translit_fraction: Likewise.
6639 2017-10-25  Rajalakshmi Srinivasaraghavan  <raji@linux.vnet.ibm.com>
6641         * sysdeps/powerpc/powerpc64/power7/memcpy.S: Replace
6642         lxvd2x/stxvd2x with lvx/stvx.
6643         * sysdeps/powerpc/powerpc64/power7/memmove.S: Likewise.
6645 2017-10-25  H.J. Lu  <hongjiu.lu@intel.com>
6647         * include/alloc_buffer.h: Replace "if if " with "if " in
6648         comments.
6649         * sysdeps/mips/memcpy.S: Likkewise.
6650         * sysdeps/mips/memset.S: Likewise.
6651         * sysdeps/x86_64/fpu/multiarch/svml_s_sincosf16_core_avx512.S:
6652         Likewise.
6653         * sysdeps/x86_64/fpu/multiarch/svml_s_sincosf4_core_sse4.S:
6654         Likewise.
6655         * sysdeps/x86_64/fpu/multiarch/svml_s_sincosf8_core_avx2.S:
6656         Likewise.
6658 2017-10-25  Mike FABIAN  <mfabian@redhat.com>
6660         [BZ #15261]
6661         * localedata/locales/cmn_TW (LC_MESSAGES): Add fullwidth yYnN to
6662         yesexpr and noexpr.
6663         * localedata/locales/hak_TW (LC_MESSAGES): Likewise.
6664         * localedata/locales/ko_KR (LC_MESSAGES): Likewise.
6665         * localedata/locales/lzh_TW (LC_MESSAGES): Likewise.
6666         * localedata/locales/nan_TW (LC_MESSAGES): Likewise.
6667         * localedata/locales/zh_CN (LC_MESSAGES): Likewise.
6668         * localedata/locales/zh_HK (LC_MESSAGES): Likewise.
6669         * localedata/locales/zh_TW (LC_MESSAGES): Likewise.
6671 2017-10-25  Mike FABIAN  <mfabian@redhat.com>
6673         * localedata/locales/am_ET (LC_MESSAGES): Sync with CLDR.
6674         * localedata/locales/az_AZ (LC_MESSAGES): Likewise.
6675         * localedata/locales/el_GR (LC_MESSAGES): Likewise.
6676         * localedata/locales/ha_NG (LC_MESSAGES): Likewise.
6677         * localedata/locales/ln_CD (LC_MESSAGES): Likewise.
6678         * localedata/locales/mfe_MU (LC_MESSAGES): Likewise.
6679         * localedata/locales/ml_IN (LC_MESSAGES): Likewise.
6680         * localedata/locales/mt_MT (LC_MESSAGES): Likewise.
6681         * localedata/locales/os_RU (LC_MESSAGES): Likewise.
6682         * localedata/locales/tg_TJ (LC_MESSAGES): Likewise.
6683         * localedata/locales/tt_RU (LC_MESSAGES): Likewise.
6684         * localedata/locales/wo_SN (LC_MESSAGES): Likewise.
6686 2017-10-25  Mike FABIAN  <mfabian@redhat.com>
6688         * localedata/locales/aa_ET (LC_MESSAGES): Use ASCII as much
6689         as possible for better readability of the source.
6690         * localedata/locales/af_ZA (LC_MESSAGES): Likewise.
6691         * localedata/locales/ak_GH (LC_MESSAGES): Likewise.
6692         * localedata/locales/am_ET (LC_MESSAGES): Likewise.
6693         * localedata/locales/anp_IN (LC_MESSAGES): Likewise.
6694         * localedata/locales/ar_EG (LC_MESSAGES): Likewise.
6695         * localedata/locales/as_IN (LC_MESSAGES): Likewise.
6696         * localedata/locales/ast_ES (LC_MESSAGES): Likewise.
6697         * localedata/locales/ayc_PE (LC_MESSAGES): Likewise.
6698         * localedata/locales/az_AZ (LC_MESSAGES): Likewise.
6699         * localedata/locales/az_IR (LC_MESSAGES): Likewise.
6700         * localedata/locales/be_BY (LC_MESSAGES): Likewise.
6701         * localedata/locales/be_BY@latin (LC_MESSAGES): Likewise.
6702         * localedata/locales/bem_ZM (LC_MESSAGES): Likewise.
6703         * localedata/locales/ber_MA (LC_MESSAGES): Likewise.
6704         * localedata/locales/bg_BG (LC_MESSAGES): Likewise.
6705         * localedata/locales/bhb_IN (LC_MESSAGES): Likewise.
6706         * localedata/locales/bi_VU (LC_MESSAGES): Likewise.
6707         * localedata/locales/bo_CN (LC_MESSAGES): Likewise.
6708         * localedata/locales/br_FR (LC_MESSAGES): Likewise.
6709         * localedata/locales/bs_BA (LC_MESSAGES): Likewise.
6710         * localedata/locales/ca_ES (LC_MESSAGES): Likewise.
6711         * localedata/locales/ce_RU (LC_MESSAGES): Likewise.
6712         * localedata/locales/crh_UA (LC_MESSAGES): Likewise.
6713         * localedata/locales/cs_CZ (LC_MESSAGES): Likewise.
6714         * localedata/locales/csb_PL (LC_MESSAGES): Likewise.
6715         * localedata/locales/cv_RU (LC_MESSAGES): Likewise.
6716         * localedata/locales/cy_GB (LC_MESSAGES): Likewise.
6717         * localedata/locales/da_DK (LC_MESSAGES): Likewise.
6718         * localedata/locales/de_DE (LC_MESSAGES): Likewise.
6719         * localedata/locales/dv_MV (LC_MESSAGES): Likewise.
6720         * localedata/locales/dz_BT (LC_MESSAGES): Likewise.
6721         * localedata/locales/el_GR (LC_MESSAGES): Likewise.
6722         * localedata/locales/en_CA (LC_MESSAGES): Likewise.
6723         * localedata/locales/en_US (LC_MESSAGES): Likewise.
6724         * localedata/locales/es_ES (LC_MESSAGES): Likewise.
6725         * localedata/locales/et_EE (LC_MESSAGES): Likewise.
6726         * localedata/locales/eu_ES (LC_MESSAGES): Likewise.
6727         * localedata/locales/fa_IR (LC_MESSAGES): Likewise.
6728         * localedata/locales/ff_SN (LC_MESSAGES): Likewise.
6729         * localedata/locales/fi_FI (LC_MESSAGES): Likewise.
6730         * localedata/locales/fil_PH (LC_MESSAGES): Likewise.
6731         * localedata/locales/fo_FO (LC_MESSAGES): Likewise.
6732         * localedata/locales/fr_BE (LC_MESSAGES): Likewise.
6733         * localedata/locales/fr_CH (LC_MESSAGES): Likewise.
6734         * localedata/locales/fr_FR (LC_MESSAGES): Likewise.
6735         * localedata/locales/fr_LU (LC_MESSAGES): Likewise.
6736         * localedata/locales/fur_IT (LC_MESSAGES): Likewise.
6737         * localedata/locales/fy_DE (LC_MESSAGES): Likewise.
6738         * localedata/locales/ga_IE (LC_MESSAGES): Likewise.
6739         * localedata/locales/gd_GB (LC_MESSAGES): Likewise.
6740         * localedata/locales/gl_ES (LC_MESSAGES): Likewise.
6741         * localedata/locales/gu_IN (LC_MESSAGES): Likewise.
6742         * localedata/locales/gv_GB (LC_MESSAGES): Likewise.
6743         * localedata/locales/ha_NG (LC_MESSAGES): Likewise.
6744         * localedata/locales/hak_TW (LC_MESSAGES): Likewise.
6745         * localedata/locales/he_IL (LC_MESSAGES): Likewise.
6746         * localedata/locales/hif_FJ (LC_MESSAGES): Likewise.
6747         * localedata/locales/hne_IN (LC_MESSAGES): Likewise.
6748         * localedata/locales/hr_HR (LC_MESSAGES): Likewise.
6749         * localedata/locales/hsb_DE (LC_MESSAGES): Likewise.
6750         * localedata/locales/ht_HT (LC_MESSAGES): Likewise.
6751         * localedata/locales/hu_HU (LC_MESSAGES): Likewise.
6752         * localedata/locales/hy_AM (LC_MESSAGES): Likewise.
6753         * localedata/locales/ia_FR (LC_MESSAGES): Likewise.
6754         * localedata/locales/id_ID (LC_MESSAGES): Likewise.
6755         * localedata/locales/ig_NG (LC_MESSAGES): Likewise.
6756         * localedata/locales/ik_CA (LC_MESSAGES): Likewise.
6757         * localedata/locales/is_IS (LC_MESSAGES): Likewise.
6758         * localedata/locales/it_CH (LC_MESSAGES): Likewise.
6759         * localedata/locales/it_IT (LC_MESSAGES): Likewise.
6760         * localedata/locales/iu_CA (LC_MESSAGES): Likewise.
6761         * localedata/locales/ja_JP (LC_MESSAGES): Likewise.
6762         * localedata/locales/kk_KZ (LC_MESSAGES): Likewise.
6763         * localedata/locales/kl_GL (LC_MESSAGES): Likewise.
6764         * localedata/locales/ko_KR (LC_MESSAGES): Likewise.
6765         * localedata/locales/ks_IN (LC_MESSAGES): Likewise.
6766         * localedata/locales/ku_TR (LC_MESSAGES): Likewise.
6767         * localedata/locales/kw_GB (LC_MESSAGES): Likewise.
6768         * localedata/locales/ky_KG (LC_MESSAGES): Likewise.
6769         * localedata/locales/lb_LU (LC_MESSAGES): Likewise.
6770         * localedata/locales/lg_UG (LC_MESSAGES): Likewise.
6771         * localedata/locales/li_NL (LC_MESSAGES): Likewise.
6772         * localedata/locales/lij_IT (LC_MESSAGES): Likewise.
6773         * localedata/locales/ln_CD (LC_MESSAGES): Likewise.
6774         * localedata/locales/lo_LA (LC_MESSAGES): Likewise.
6775         * localedata/locales/lt_LT (LC_MESSAGES): Likewise.
6776         * localedata/locales/lv_LV (LC_MESSAGES): Likewise.
6777         * localedata/locales/lzh_TW (LC_MESSAGES): Likewise.
6778         * localedata/locales/mg_MG (LC_MESSAGES): Likewise.
6779         * localedata/locales/mhr_RU (LC_MESSAGES): Likewise.
6780         * localedata/locales/mi_NZ (LC_MESSAGES): Likewise.
6781         * localedata/locales/mk_MK (LC_MESSAGES): Likewise.
6782         * localedata/locales/ml_IN (LC_MESSAGES): Likewise.
6783         * localedata/locales/mn_MN (LC_MESSAGES): Likewise.
6784         * localedata/locales/ms_MY (LC_MESSAGES): Likewise.
6785         * localedata/locales/mt_MT (LC_MESSAGES): Likewise.
6786         * localedata/locales/my_MM (LC_MESSAGES): Likewise.
6787         * localedata/locales/nan_TW (LC_MESSAGES): Likewise.
6788         * localedata/locales/nan_TW@latin (LC_MESSAGES): Likewise.
6789         * localedata/locales/nb_NO (LC_MESSAGES): Likewise.
6790         * localedata/locales/nds_DE (LC_MESSAGES): Likewise.
6791         * localedata/locales/nds_NL (LC_MESSAGES): Likewise.
6792         * localedata/locales/ne_NP (LC_MESSAGES): Likewise.
6793         * localedata/locales/nhn_MX (LC_MESSAGES): Likewise.
6794         * localedata/locales/niu_NU (LC_MESSAGES): Likewise.
6795         * localedata/locales/nl_NL (LC_MESSAGES): Likewise.
6796         * localedata/locales/nn_NO (LC_MESSAGES): Likewise.
6797         * localedata/locales/nr_ZA (LC_MESSAGES): Likewise.
6798         * localedata/locales/nso_ZA (LC_MESSAGES): Likewise.
6799         * localedata/locales/oc_FR (LC_MESSAGES): Likewise.
6800         * localedata/locales/om_ET (LC_MESSAGES): Likewise.
6801         * localedata/locales/or_IN (LC_MESSAGES): Likewise.
6802         * localedata/locales/os_RU (LC_MESSAGES): Likewise.
6803         * localedata/locales/pa_IN (LC_MESSAGES): Likewise.
6804         * localedata/locales/pa_PK (LC_MESSAGES): Likewise.
6805         * localedata/locales/pap_AW (LC_MESSAGES): Likewise.
6806         * localedata/locales/pap_CW (LC_MESSAGES): Likewise.
6807         * localedata/locales/pl_PL (LC_MESSAGES): Likewise.
6808         * localedata/locales/ps_AF (LC_MESSAGES): Likewise.
6809         * localedata/locales/pt_BR (LC_MESSAGES): Likewise.
6810         * localedata/locales/quz_PE (LC_MESSAGES): Likewise.
6811         * localedata/locales/raj_IN (LC_MESSAGES): Likewise.
6812         * localedata/locales/ro_RO (LC_MESSAGES): Likewise.
6813         * localedata/locales/ru_RU (LC_MESSAGES): Likewise.
6814         * localedata/locales/ru_UA (LC_MESSAGES): Likewise.
6815         * localedata/locales/rw_RW (LC_MESSAGES): Likewise.
6816         * localedata/locales/sa_IN (LC_MESSAGES): Likewise.
6817         * localedata/locales/sc_IT (LC_MESSAGES): Likewise.
6818         * localedata/locales/sd_IN@devanagari (LC_MESSAGES): Likewise.
6819         * localedata/locales/se_NO (LC_MESSAGES): Likewise.
6820         * localedata/locales/sgs_LT (LC_MESSAGES): Likewise.
6821         * localedata/locales/si_LK (LC_MESSAGES): Likewise.
6822         * localedata/locales/sk_SK (LC_MESSAGES): Likewise.
6823         * localedata/locales/sl_SI (LC_MESSAGES): Likewise.
6824         * localedata/locales/sm_WS (LC_MESSAGES): Likewise.
6825         * localedata/locales/so_DJ (LC_MESSAGES): Likewise.
6826         * localedata/locales/sq_AL (LC_MESSAGES): Likewise.
6827         * localedata/locales/sr_RS (LC_MESSAGES): Likewise.
6828         * localedata/locales/sr_RS@latin (LC_MESSAGES): Likewise.
6829         * localedata/locales/ss_ZA (LC_MESSAGES): Likewise.
6830         * localedata/locales/st_ZA (LC_MESSAGES): Likewise.
6831         * localedata/locales/sv_SE (LC_MESSAGES): Likewise.
6832         * localedata/locales/sw_KE (LC_MESSAGES): Likewise.
6833         * localedata/locales/szl_PL (LC_MESSAGES): Likewise.
6834         * localedata/locales/tcy_IN (LC_MESSAGES): Likewise.
6835         * localedata/locales/tg_TJ (LC_MESSAGES): Likewise.
6836         * localedata/locales/th_TH (LC_MESSAGES): Likewise.
6837         * localedata/locales/the_NP (LC_MESSAGES): Likewise.
6838         * localedata/locales/ti_ER (LC_MESSAGES): Likewise.
6839         * localedata/locales/tk_TM (LC_MESSAGES): Likewise.
6840         * localedata/locales/tn_ZA (LC_MESSAGES): Likewise.
6841         * localedata/locales/to_TO (LC_MESSAGES): Likewise.
6842         * localedata/locales/tr_TR (LC_MESSAGES): Likewise.
6843         * localedata/locales/ts_ZA (LC_MESSAGES): Likewise.
6844         * localedata/locales/tt_RU (LC_MESSAGES): Likewise.
6845         * localedata/locales/tt_RU@iqtelif (LC_MESSAGES): Likewise.
6846         * localedata/locales/uk_UA (LC_MESSAGES): Likewise.
6847         * localedata/locales/unm_US (LC_MESSAGES): Likewise.
6848         * localedata/locales/ur_IN (LC_MESSAGES): Likewise.
6849         * localedata/locales/ur_PK (LC_MESSAGES): Likewise.
6850         * localedata/locales/uz_UZ (LC_MESSAGES): Likewise.
6851         * localedata/locales/uz_UZ@cyrillic (LC_MESSAGES): Likewise.
6852         * localedata/locales/ve_ZA (LC_MESSAGES): Likewise.
6853         * localedata/locales/vi_VN (LC_MESSAGES): Likewise.
6854         * localedata/locales/wa_BE (LC_MESSAGES): Likewise.
6855         * localedata/locales/wo_SN (LC_MESSAGES): Likewise.
6856         * localedata/locales/xh_ZA (LC_MESSAGES): Likewise.
6857         * localedata/locales/yi_US (LC_MESSAGES): Likewise.
6858         * localedata/locales/yo_NG (LC_MESSAGES): Likewise.
6859         * localedata/locales/yue_HK (LC_MESSAGES): Likewise.
6860         * localedata/locales/zh_CN (LC_MESSAGES): Likewise.
6861         * localedata/locales/zh_HK (LC_MESSAGES): Likewise.
6862         * localedata/locales/zh_TW (LC_MESSAGES): Likewise.
6863         * localedata/locales/zu_ZA (LC_MESSAGES): Likewise.
6865 2017-10-25  Mike FABIAN  <mfabian@redhat.com>
6867         * localedata/locales/brx_IN (LC_MESSAGES): Fix yesexpr and noexpr
6868         (Use first letters of yesstr and nostr correctly instead of using
6869         full words).
6871 2017-10-25  Mike FABIAN  <mfabian@redhat.com>
6873         * localedata/locales/ta_IN (LC_MESSAGES): Fix yesexpr and noexpr
6874         (Use first letters of yesstr and nostr correctly).
6876 2017-10-25  Mike FABIAN  <mfabian@redhat.com>
6878         * localedata/locales/hi_IN (LC_MESSAGES): In yesexpr and noexpr,
6879         also check for the first characters of yesstr and nostr.
6880         * localedata/locales/kn_IN (LC_MESSAGES): Likewise.
6881         * localedata/locales/ks_IN@devanagari (LC_MESSAGES): Likewise.
6883 2017-10-25  Mike FABIAN  <mfabian@redhat.com>
6885         * localedata/locales/cmn_TW (LC_MESSAGES): In yesexpr and noexpr,
6886         also check for Chinese characters.
6888 2017-10-25  Mike FABIAN  <mfabian@redhat.com>
6890         * localedata/locales/chr_US (LC_MESSAGES): In yesexpr and noexpr,
6891         match also for the contents of yesstr and nostr. As the first letter
6892         of yesstr and nostr is equal, checking only for the first letter
6893         is not enough.
6895 2017-10-25  Mike FABIAN  <mfabian@redhat.com>
6897         * localedata/locales/ber_DZ (LC_MESSAGES): Use copy "kab_DZ",
6898         it is the same according to  Belkacem Mohammed <belkacem77@gmail.com>.
6900 2017-10-25  Mike FABIAN  <mfabian@redhat.com>
6902         * localedata/locales/kab_DZ (LC_IDENTIFICATION): Add e-mail
6903         of main contributor.
6905 2017-10-25  Mike FABIAN  <mfabian@redhat.com>
6907         * localedata/locales/zh_SG (LC_MESSAGES): Use copy "zh_CN"
6908         instead of using English.
6910 2017-10-25  Mike FABIAN  <mfabian@redhat.com>
6912         * localedata/locales/ug_CN (LC_MESSAGES): Fix noexpr and yesexpr
6913         by including the first letters of nostr and yesexpr in the regexp.
6914         Also make it more readable by using ASCII where possible.
6916 2017-10-25  Mike FABIAN  <mfabian@redhat.com>
6918         * localedata/locales/te_IN (LC_MESSAGES): Fix noexpr by including
6919         the first letter of nostr in the regexp. It agrees with CLDR now.
6920         Also make it more readable by using ASCII where possible.
6922 2017-10-24  Mike FABIAN  <mfabian@redhat.com>
6924         * localedata/locales/km_KH (LC_MESSAGES): Fix yestr and nostr.
6925         The yesstr and nostr apparently came from CLDR. And CLDR has a bug there:
6926         these strings contain a U+17D6 (which somewhat looks like a colon)
6927         instead of a real colon to separate the full words for “yes”
6928         and “no” from the single letter responses.
6930 2017-10-24  Mike FABIAN  <mfabian@redhat.com>
6932         * localedata/locales/ka_GE (LC_MESSAGES): Fix yesexp to make
6933         it agree with CLDR (include the first letter of yesstr).
6934         Also make it more readable by using ASCII where possible.
6936 2017-10-24  Mike FABIAN  <mfabian@redhat.com>
6938         * localedata/locales/mr_IN (LC_MESSAGES): Fix yesstr and nostr
6939         and improve yesexpr and noexpr. The yesstr and nostr apparently
6940         came from CLDR. And CLDR has a bug there: these strings contain
6941         a U+0903 (which looks like a colon) instead of a real colon
6942         to separate the full words for “yes” and “no” from the single
6943         letter responses.
6945 2017-10-24  Mike FABIAN  <mfabian@redhat.com>
6947         * localedata/locales/bn_BD (LC_MESSAGES): Use only the first
6948         letters of the full yesstr and nostr in yesexpr and noexpr.
6950 2017-10-24  Mike FABIAN  <mfabian@redhat.com>
6952         * localedata/locales/an_ES (LC_MESSAGES): Add yesstr and nostr.
6953         * localedata/locales/an_ES (LC_ADDRESS): Add lang_term and lang_lib.
6954         * localedata/locales/an_ES: Make source more readable by using ASCII
6955         where possible.
6957 2017-10-24  Mike FABIAN  <mfabian@redhat.com>
6959         [BZ #20952]
6960         * localedata/locales/yuw_PG: New file.
6961         * localedata/SUPPORTED: Add yuw_PG/UTF-8.
6962         * locale/iso-639.def: Add Yau (Uruwa).
6964 2017-10-23  Wilco Dijkstra  <wdijkstr@arm.com>
6966         * malloc/malloc.c (_int_malloc): Add SINGLE_THREAD_P path.
6968 2017-10-23  Wilco Dijkstra  <wdijkstr@arm.com>
6970         * malloc/malloc.c (__libc_malloc): Add SINGLE_THREAD_P path.
6971         (__libc_realloc): Likewise.
6972         (_mid_memalign): Likewise.
6973         (__libc_calloc): Likewise.
6975 2017-10-23  Mike FABIAN  <mfabian@redhat.com>
6977         * localedata/locales/tpi_PG (LC_MESSAGES): Fix yesexpr and noexpr
6978         by adding the generic +1 and -0 as in all other locales.
6979         * localedata/locales/tpi_PG (LC_TIME): Fix some typos in the month and
6980         day names and make it more readable by using ASCII where possible.
6982 2017-10-24  Joseph Myers  <joseph@codesourcery.com>
6984         * sysdeps/x86/fpu/fix-fp-int-compare-invalid.h
6985         (FIX_COMPARE_INVALID): Define to 0 if [__GNUC_PREREQ (8, 0)].
6987 2017-10-23  Adhemerval Zanella  <adhemerval.zanella@linaro.org>
6989         * sysdeps/unix/sysv/linux/spawni.c (__spawnix): Use 0 instead of
6990         WNOHANG in waitpid call.
6992 2017-10-23  Siddhesh Poyarekar  <siddhesh@sourceware.org>
6994         * manual/conf.texi (_SC_LEVEL1_DCACHE_LINESIZE,
6995         _SC_LEVEL1_ICACHE_LINESIZE): Document aarch64 caveat.
6997         * manual/conf.texi (_SC_LEVEL1_ICACHE_SIZE,
6998         _SC_LEVEL1_ICACHE_ASSOC, _SC_LEVEL1_ICACHE_LINESIZE,
6999         _SC_LEVEL1_DCACHE_SIZE, _SC_LEVEL1_DCACHE_ASSOC,
7000         _SC_LEVEL1_DCACHE_LINESIZE, _SC_LEVEL2_CACHE_SIZE,
7001         _SC_LEVEL2_CACHE_ASSOC, _SC_LEVEL2_CACHE_LINESIZE,
7002         _SC_LEVEL3_CACHE_SIZE, _SC_LEVEL3_CACHE_ASSOC,
7003         _SC_LEVEL3_CACHE_LINESIZE, _SC_LEVEL4_CACHE_SIZE,
7004         _SC_LEVEL4_CACHE_ASSOC, _SC_LEVEL4_CACHE_LINESIZE): New
7005         variables.
7007 2017-10-23  Michael Collison  <michael.collison@arm.com>
7009         * sysdeps/aarch64/fpu/e_sqrt.c (ieee754_sqrt): Replace asm statements
7010         with __builtin_sqrt.
7011         * sysdeps/aarch64/fpu/e_sqrtf.c (ieee754_sqrtf): Replace asm statements
7012         with __builtin_sqrtf.
7013         * sysdeps/aarch64/fpu/s_ceil.c (__ceil): Replace asm statements
7014         with __builtin_ceil.
7015         * sysdeps/aarch64/fpu/s_ceilf.c (__ceilf): Replace asm statements
7016         with __builtin_ceilf.
7017         * sysdeps/aarch64/fpu/s_floor.c (__floor): Replace asm statements
7018         with __builtin_floor.
7019         * sysdeps/aarch64/fpu/s_floorf.c (__floorf): Replace asm statements
7020         with __builtin_floorf.
7021         * sysdeps/aarch64/fpu/s_fma.c (__fma): Replace asm statements
7022         with __builtin_fma.
7023         * sysdeps/aarch64/fpu/s_fmaf.c (__fmaf): Replace asm statements
7024         with __builtin_fmaf.
7025         * sysdeps/aarch64/fpu/s_fmax.c (__fmax): Replace asm statements
7026         with __builtin_fmax.
7027         * sysdeps/aarch64/fpu/s_fmaxf.c (__fmaxf): Replace asm statements
7028         with __builtin_fmaxf.
7029         * sysdeps/aarch64/fpu/s_fmin.c (__fmin): Replace asm statements
7030         with __builtin_fmin.
7031         * sysdeps/aarch64/fpu/s_fminf.c (__fminf): Replace asm statements
7032         with __builtin_fminf.
7033         * sysdeps/aarch64/fpu/s_frint.c: Delete file.
7034         * sysdeps/aarch64/fpu/s_frintf.c: Delete file.
7035         * sysdeps/aarch64/fpu/s_llrint.c (__llrint): Replace asm statements
7036         with builtin_rint and conversion to int.
7037         * sysdeps/aarch64/fpu/s_llrintf.c (__llrintf): Likewise.
7038         * sysdeps/aarch64/fpu/s_llround.c (__llround): Replace asm statements
7039         with builtin_llround.
7040         * sysdeps/aarch64/fpu/s_llroundf.c (__llroundf): Likewise.
7041         * sysdeps/aarch64/fpu/s_lrint.c (__lrint): Replace asm statements
7042         with builtin_rint and conversion to long int.
7043         * sysdeps/aarch64/fpu/s_lrintf.c (__lrintf): Likewise.
7044         * sysdeps/aarch64/fpu/s_lround.c (__lround): Replace asm statements
7045         with builtin_lround.
7046         * sysdeps/aarch64/fpu/s_lroundf.c (__lroundf): Replace asm statements
7047         with builtin_lroundf.
7048         * sysdeps/aarch64/fpu/s_nearbyint.c (__nearbyint): Replace asm
7049         statements with __builtin_nearbyint.
7050         * sysdeps/aarch64/fpu/s_nearbyintf.c (__nearbyintf): Replace asm
7051         statements with __builtin_nearbyintf.
7052         * sysdeps/aarch64/fpu/s_rint.c (__rint): Replace asm statements
7053         with __builtin_rint.
7054         * sysdeps/aarch64/fpu/s_rintf.c (__rintf): Replace asm statements
7055         with __builtin_rintf.
7056         * sysdeps/aarch64/fpu/s_round.c (__round): Replace asm statements
7057         with __builtin_round.
7058         * sysdeps/aarch64/fpu/s_roundf.c (__roundf): Replace asm statements
7059         with __builtin_roundf.
7060         * sysdeps/aarch64/fpu/s_trunc.c (__trunc): Replace asm statements
7061         with __builtin_trunc.
7062         * sysdeps/aarch64/fpu/s_truncf.c (__truncf): Replace asm statements
7063         with __builtin_truncf.
7064         * sysdeps/aarch64/fpu/Makefile: Build e_sqrt[f].c with -fno-math-errno,
7065         and s_l[l]round[f].c too.
7067 2017-10-23  Alan Modra  <amodra@gmail.com>
7069         * sysdeps/powerpc/powerpc64/power8/strncpy.S: Move LR cfi.
7070         Adjust stack after restoring regs.  Add missing LR cfi_restore.
7072 2017-10-23  Alan Modra  <amodra@gmail.com>
7074         * sysdeps/powerpc/powerpc64/power7/strncpy.S: Decrease FRAMESIZE.
7075         Move LR save and frame setup/teardown and LR restore to
7076         immediately around memset call.  Provide cfi.
7078 2017-10-22  H.J. Lu  <hongjiu.lu@intel.com>
7080         * sysdeps/i386/fpu/e_powf.S: Removed.
7081         * sysdeps/i386/fpu/e_powf_log2_data.c: Likewise.
7082         * sysdeps/i386/fpu/w_powf.c: Likewise.
7083         * sysdeps/i386/fpu/libm-test-ulps: Updated for generic e_powf.c.
7084         * sysdeps/i386/i686/fpu/multiarch/libm-test-ulps: Likewise.
7085         * sysdeps/i386/i686/fpu/multiarch/Makefile (libm-sysdep_routines):
7086         Add e_powf-sse2.
7087         (CFLAGS-e_powf-sse2.c): New.
7088         * sysdeps/i386/i686/fpu/multiarch/e_powf-sse2.c: New file.
7089         * sysdeps/i386/i686/fpu/multiarch/e_powf.c: Likewise.
7091 2017-10-22  H.J. Lu  <hongjiu.lu@intel.com>
7093         * sysdeps/i386/fpu/e_log2f.S: Removed.
7094         * sysdeps/i386/fpu/e_log2f_data.c: Likewise.
7095         * sysdeps/i386/fpu/w_log2f.c: Likewise.
7096         * sysdeps/i386/fpu/libm-test-ulps: Updated for generic e_log2f.c.
7097         * sysdeps/i386/i686/fpu/multiarch/libm-test-ulps: Likewise.
7098         * sysdeps/i386/i686/fpu/multiarch/Makefile (libm-sysdep_routines):
7099         Add e_log2f-sse2.
7100         (CFLAGS-e_log2f-sse2.c): New.
7101         * sysdeps/i386/i686/fpu/multiarch/e_log2f-sse2.c: New file.
7102         * sysdeps/i386/i686/fpu/multiarch/e_log2f.c: Likewise.
7104 2017-10-22  H.J. Lu  <hongjiu.lu@intel.com>
7106         * sysdeps/x86_64/fpu/multiarch/Makefile (libm-sysdep_routines):
7107         Add e_powf-fma.
7108         (CFLAGS-e_powf-fma.c): New.
7109         * sysdeps/x86_64/fpu/multiarch/e_powf-fma.c: New file.
7110         * sysdeps/x86_64/fpu/multiarch/e_powf.c: Likewise.
7112 2017-10-22  H.J. Lu  <hongjiu.lu@intel.com>
7114         * sysdeps/x86_64/fpu/multiarch/Makefile (libm-sysdep_routines):
7115         Add e_log2f-fma.
7116         (CFLAGS-e_log2f-fma.c): New.
7117         * sysdeps/x86_64/fpu/multiarch/e_log2f-fma.c: New file.
7118         * sysdeps/x86_64/fpu/multiarch/e_log2f.c: Likewise.
7120 2017-10-22  H.J. Lu  <hongjiu.lu@intel.com>
7122         * sysdeps/x86_64/fpu/multiarch/Makefile (libm-sysdep_routines):
7123         Add e_logf-fma.
7124         (CFLAGS-e_logf-fma.c): New.
7125         * sysdeps/x86_64/fpu/multiarch/e_logf-fma.c: New file.
7126         * sysdeps/x86_64/fpu/multiarch/e_logf.c: Likewise.
7128 2017-10-22  H.J. Lu  <hongjiu.lu@intel.com>
7130         * sysdeps/i386/fpu/e_logf.S: Removed.
7131         * sysdeps/i386/fpu/e_logf_data.c: Likewise.
7132         * sysdeps/i386/fpu/w_logf.c: Likewise.
7133         * sysdeps/i386/i686/fpu/e_logf.S: Likewise.
7134         * sysdeps/i386/fpu/libm-test-ulps: Updated for generic e_logf.c.
7135         * sysdeps/i386/i686/fpu/multiarch/libm-test-ulps: Likewise.
7136         * sysdeps/i386/i686/fpu/multiarch/Makefile (libm-sysdep_routines):
7137         Add e_logf-sse2.
7138         (CFLAGS-e_logf-sse2.c): New.
7139         * sysdeps/i386/i686/fpu/multiarch/e_logf-sse2.c: New file.
7140         * sysdeps/i386/i686/fpu/multiarch/e_logf.c: Likewise.
7142 2017-10-22  H.J. Lu  <hongjiu.lu@intel.com>
7144         * sysdeps/i386/fpu/e_exp2f.S: Removed.
7145         * sysdeps/i386/fpu/w_exp2f.c: Likewise.
7146         * sysdeps/i386/fpu/libm-test-ulps: Updated for generic e_exp2f.c.
7147         * sysdeps/i386/i686/fpu/multiarch/libm-test-ulps: Likewise.
7148         * sysdeps/i386/i686/fpu/multiarch/Makefile (libm-sysdep_routines):
7149         Add e_exp2f-sse2.
7150         (CFLAGS-e_exp2f-sse2.c): New.
7151         * sysdeps/i386/i686/fpu/multiarch/e_exp2f-sse2.c: New file.
7152         * sysdeps/i386/i686/fpu/multiarch/e_exp2f.c: Likewise.
7154 2017-10-22  H.J. Lu  <hongjiu.lu@intel.com>
7156         * sysdeps/x86_64/fpu/multiarch/Makefile (libm-sysdep_routines):
7157         Add e_exp2f-fma.
7158         (CFLAGS-e_exp2f-fma.c): New.
7159         * sysdeps/x86_64/fpu/multiarch/e_exp2f-fma.c: New file.
7160         * sysdeps/x86_64/fpu/multiarch/e_exp2f.c: Likewise.
7162 2017-10-22  H.J. Lu  <hongjiu.lu@intel.com>
7164         * sysdeps/i386/fpu/e_exp2f_data.c: Removed.
7165         * sysdeps/i386/fpu/e_expf.S: Likewise.
7166         * sysdeps/i386/fpu/math_errf.c: Likewise.
7167         * sysdeps/i386/fpu/w_expf.c: Likewise.
7168         * sysdeps/i386/i686/fpu/multiarch/e_expf-ia32.S: Likewise.
7169         * sysdeps/i386/i686/fpu/multiarch/e_expf-sse2.S: Likewise.
7170         * sysdeps/i386/i686/fpu/multiarch/w_expf.c: Likewise.
7171         * sysdeps/i386/fpu/libm-test-ulps: Updated for generic e_expf.c.
7172         * sysdeps/i386/i686/fpu/multiarch/libm-test-ulps: Likewise.
7173         * sysdeps/i386/i686/fpu/multiarch/Makefile (libm-sysdep_routines):
7174         Remove e_expf-ia32.
7175         (CFLAGS-e_expf-sse2.c): New.
7176         * sysdeps/i386/i686/fpu/multiarch/e_expf-sse2.c: New file.
7177         * sysdeps/i386/i686/fpu/multiarch/e_expf.c: Rewritten.
7179 2017-10-22  H.J. Lu  <hongjiu.lu@intel.com>
7181         * sysdeps/x86_64/fpu/e_expf.S: Removed.
7182         * sysdeps/x86_64/fpu/multiarch/e_expf-fma.S: Likewise.
7183         * sysdeps/x86_64/fpu/w_expf.c: Likewise.
7184         * sysdeps/x86_64/fpu/libm-test-ulps: Updated for generic
7185         e_expf.c.
7186         * sysdeps/x86_64/fpu/multiarch/Makefile (CFLAGS-e_expf-fma.c):
7187         New.
7188         * sysdeps/x86_64/fpu/multiarch/e_expf-fma.c: New file.
7189         * sysdeps/x86_64/fpu/multiarch/e_expf.c (__redirect_ieee754_expf):
7190         Renamed to ...
7191         (__redirect_expf): This.
7192         (SYMBOL_NAME): Changed to expf.
7193         (__ieee754_expf): Renamed to ...
7194         (__expf): This.
7195         (__GI___expf): This.
7196         (__ieee754_expf): Add strong_alias.
7197         (__expf_finite): Likewise.
7198         (__expf): New.
7199         Include <sysdeps/ieee754/flt-32/e_expf.c>.
7201 2017-10-22  Paul Eggert <eggert@cs.ucla.edu>
7203         [BZ #22332]
7204         * posix/glob.c (__glob): Fix buffer overflow during GLOB_TILDE
7205         unescaping.
7207 2017-10-21  Florian Weimer  <fweimer@redhat.com>
7209         * posix/Makefile (tests): Add tst-glob-tilde.
7210         (tests-special): Add tst-glob-tilde-mem.out
7211         (tst-glob-tilde-ENV): Set MALLOC_TRACE.
7212         (tst-glob-tilde-mem.out): Add mtrace check.
7213         * posix/tst-glob-tilde.c: New file.
7215 2017-10-20  Joseph Myers  <joseph@codesourcery.com>
7217         * bits/floatn-common.h: New file.
7218         * math/Makefile (headers): Add bits/floatn-common.h.
7219         * bits/floatn.h: Include <bits/floatn-common.h>.
7220         * sysdeps/ia64/bits/floatn.h: Likewise.
7221         * sysdeps/ieee754/ldbl-128/bits/floatn.h: Likewise.
7222         * sysdeps/mips/ieee754/bits/floatn.h: Likewise.
7223         * sysdeps/powerpc/bits/floatn.h: Likewise.
7224         * sysdeps/x86/bits/floatn.h: Likewise.
7226 2017-10-20  Adhemerval Zanella  <adhemerval.zanella@linaro.org>
7228         * configure.ac (libc_cv_gcc_incompatbile_alias): New define:
7229         indicates whether compiler emits an warning for alias for
7230         functions with incompatible types.
7232         [BZ #22273]
7233         * sysdeps/unix/sysv/linux/spawni.c (__spawnix): Handle the case where
7234         the auxiliary process is terminated by a signal before calling _exit
7235         or execve.
7237 2017-10-20  H.J. Lu  <hongjiu.lu@intel.com>
7239         [BZ #21265]
7240         * sysdeps/x86/cpu-features-offsets.sym (XSAVE_STATE_SIZE_OFFSET):
7241         New.
7242         * sysdeps/x86/cpu-features.c: Include <libc-pointer-arith.h>.
7243         (get_common_indeces): Set xsave_state_size, xsave_state_full_size
7244         and bit_arch_XSAVEC_Usable if needed.
7245         (init_cpu_features): Remove bit_arch_Use_dl_runtime_resolve_slow
7246         and bit_arch_Use_dl_runtime_resolve_opt.
7247         * sysdeps/x86/cpu-features.h (bit_arch_Use_dl_runtime_resolve_opt):
7248         Removed.
7249         (bit_arch_Use_dl_runtime_resolve_slow): Likewise.
7250         (bit_arch_Prefer_No_AVX512): Updated.
7251         (bit_arch_MathVec_Prefer_No_AVX512): Likewise.
7252         (bit_arch_XSAVEC_Usable): New.
7253         (STATE_SAVE_OFFSET): Likewise.
7254         (STATE_SAVE_MASK): Likewise.
7255         [__ASSEMBLER__]: Include <cpu-features-offsets.h>.
7256         (cpu_features): Add xsave_state_size and xsave_state_full_size.
7257         (index_arch_Use_dl_runtime_resolve_opt): Removed.
7258         (index_arch_Use_dl_runtime_resolve_slow): Likewise.
7259         (index_arch_XSAVEC_Usable): New.
7260         * sysdeps/x86/cpu-tunables.c (TUNABLE_CALLBACK (set_hwcaps)):
7261         Support XSAVEC_Usable.  Remove Use_dl_runtime_resolve_slow.
7262         * sysdeps/x86_64/Makefile (tst-x86_64-1-ENV): New if tunables
7263         is enabled.
7264         * sysdeps/x86_64/dl-machine.h (elf_machine_runtime_setup):
7265         Replace _dl_runtime_resolve_sse, _dl_runtime_resolve_avx,
7266         _dl_runtime_resolve_avx_slow, _dl_runtime_resolve_avx_opt,
7267         _dl_runtime_resolve_avx512 and _dl_runtime_resolve_avx512_opt
7268         with _dl_runtime_resolve_fxsave, _dl_runtime_resolve_xsave and
7269         _dl_runtime_resolve_xsavec.
7270         * sysdeps/x86_64/dl-trampoline.S (DL_RUNTIME_UNALIGNED_VEC_SIZE):
7271         Removed.
7272         (DL_RUNTIME_RESOLVE_REALIGN_STACK): Check STATE_SAVE_ALIGNMENT
7273         instead of VEC_SIZE.
7274         (REGISTER_SAVE_BND0): Removed.
7275         (REGISTER_SAVE_BND1): Likewise.
7276         (REGISTER_SAVE_BND3): Likewise.
7277         (REGISTER_SAVE_RAX): Always defined to 0.
7278         (VMOV): Removed.
7279         (_dl_runtime_resolve_avx): Likewise.
7280         (_dl_runtime_resolve_avx_slow): Likewise.
7281         (_dl_runtime_resolve_avx_opt): Likewise.
7282         (_dl_runtime_resolve_avx512): Likewise.
7283         (_dl_runtime_resolve_avx512_opt): Likewise.
7284         (_dl_runtime_resolve_sse): Likewise.
7285         (_dl_runtime_resolve_sse_vex): Likewise.
7286         (USE_FXSAVE): New.
7287         (_dl_runtime_resolve_fxsave): Likewise.
7288         (USE_XSAVE): Likewise.
7289         (_dl_runtime_resolve_xsave): Likewise.
7290         (USE_XSAVEC): Likewise.
7291         (_dl_runtime_resolve_xsavec): Likewise.
7292         * sysdeps/x86_64/dl-trampoline.h (_dl_runtime_resolve_avx512):
7293         Removed.
7294         (_dl_runtime_resolve_avx512_opt): Likewise.
7295         (_dl_runtime_resolve_avx): Likewise.
7296         (_dl_runtime_resolve_avx_opt): Likewise.
7297         (_dl_runtime_resolve_sse): Likewise.
7298         (_dl_runtime_resolve_sse_vex): Likewise.
7299         (_dl_runtime_resolve_fxsave): New.
7300         (_dl_runtime_resolve_xsave): Likewise.
7301         (_dl_runtime_resolve_xsavec): Likewise.
7303 2017-10-20  Paul Eggert <eggert@cs.ucla.edu>
7305         [BZ #22320]
7306         CVE-2017-15670
7307         * posix/glob.c (__glob): Fix one-byte overflow.
7309 2017-10-20  Wilco Dijkstra  <wdijkstr@arm.com>
7311         * malloc/malloc.c (sysdep-cancel.h): Add include.
7313 2017-10-20  Wilco Dijkstra  <wdijkstr@arm.com>
7315         * malloc/malloc.c (_int_free): Add SINGLE_THREAD_P fast paths.
7317 2017-10-20  Will Hawkins  <hawkinsw@borlaugic.com>
7319         * resolv/Makefile [$(build-shared)$(have-thread-library) == yesyes]
7320         (tests): Remove $(objpfx)ga_test depdendency.
7321         * resolv/ga_test.c: Remove file.
7323 2017-10-20  Mike FABIAN  <mfabian@redhat.com>
7325         [BZ #18812]
7326         * localedata/SUPPORTED: Add kab_DZ/UTF-8.
7327         * localedata/locales/kab_DZ: New file.
7329 2017-10-20  H.J. Lu  <hongjiu.lu@intel.com>
7331         * sysdeps/m68k/dl-machine.h (elf_machine_load_address): Use
7332         _dl_relocate_static_pie instead of _dl_start to compute load
7333         address in static PIE.
7335 2017-10-20  H.J. Lu  <hongjiu.lu@intel.com>
7337         * sysdeps/m68k/start.S (_start): Check PIC instead of SHARED.
7339 2017-10-20  Mike FABIAN  <mfabian@redhat.com>
7341         [BZ #13605]
7342         * localedata/SUPPORTED: Add shn_MM/UTF-8.
7343         * localedata/locales/shn_MM: New file.
7345 2017-10-20  Florian Weimer  <fweimer@redhat.com>
7347         [BZ #22321]
7348         sysconf: Fix missing definition of UIO_MAXIOV on Linux.
7349         * sysdeps/posix/sysconf.c: Include <sys/uio.h>.
7350         * sysdeps/unix/sysv/linux/Makefile (tests): Add tst-sysconf-iov_max.
7351         (tst-sysconf-iov_max): Link with tst-sysconf-iov_max-uapi.o.
7352         * sysdeps/unix/sysv/linux/tst-sysconf-iov_max.c: New file.
7353         * sysdeps/unix/sysv/linux/tst-sysconf-iov_max-uapi.c: Likewise.
7355 2017-10-19  H.J. Lu  <hongjiu.lu@intel.com>
7357         * sysdeps/i386/fpu/libm-test-ulps: Regenerated.
7359 2017-10-19  Joseph Myers  <joseph@codesourcery.com>
7361         * sysdeps/mips/ieee754/bits/floatn.h: New file.
7363         [BZ #22322]
7364         * sysdeps/mips/bits/long-double.h: Move to ....
7365         * sysdeps/mips/ieee754/bits/long-double.h: ... here.
7367 2017-10-19  Wilco Dijkstra  <wdijkstr@arm.com>
7369         * malloc/malloc.c (_int_free): Fix deadlock bug in consistency check.
7371 2017-10-19  Valery Reznic <valery_reznic@yahoo.com>
7372             H.J. Lu  <hongjiu.lu@intel.com>
7374         [BZ #22299]
7375         * sysdeps/x86/cpu-features.c (init_cpu_features): Don't set
7376         GLRO(dl_platform) to NULL.
7377         * sysdeps/x86_64/Makefile (tests): Add tst-platform-1.
7378         (modules-names): Add tst-platformmod-1 and
7379         x86_64/tst-platformmod-2.
7380         (CFLAGS-tst-platform-1.c): New.
7381         (CFLAGS-tst-platformmod-1.c): Likewise.
7382         (CFLAGS-tst-platformmod-2.c): Likewise.
7383         (LDFLAGS-tst-platformmod-2.so): Likewise.
7384         ($(objpfx)tst-platform-1): Likewise.
7385         ($(objpfx)tst-platform-1.out): Likewise.
7386         (tst-platform-1-ENV): Likewise.
7387         ($(objpfx)x86_64/tst-platformmod-2.os): Likewise.
7388         * sysdeps/x86_64/tst-platform-1.c: New file.
7389         * sysdeps/x86_64/tst-platformmod-1.c: Likewise.
7390         * sysdeps/x86_64/tst-platformmod-2.c: Likewise.
7392 2017-10-19  Mike FABIAN  <mfabian@redhat.com>
7394         [BZ #13994]
7395         * locale/iso-639.def: Add Karbi.
7396         * localedata/SUPPORTED: Add mjw_IN/UTF-8.
7397         * localedata/locales/mjw_IN: New file.
7399 2017-10-18  Joseph Myers  <joseph@codesourcery.com>
7401         * sysdeps/ieee754/ldbl-128/Makeconfig: New file.
7402         * sysdeps/ieee754/ldbl-128/bits/floatn.h: Likewise.
7403         * sysdeps/ieee754/ldbl-128/float128-abi.h: Likewise.
7404         * sysdeps/generic/libm-alias-ldouble.h: Include <bits/floatn.h>.
7405         [__HAVE_FLOAT128 && !__HAVE_DISTINCT_FLOAT128]
7406         (libm_alias_ldouble_other_r): Also create _Float128 alias.
7407         * sysdeps/ieee754/ldbl-opt/libm-alias-ldouble.h: Include
7408         <bits/floatn.h>.
7409         [__HAVE_FLOAT128 && !__HAVE_DISTINCT_FLOAT128]
7410         (libm_alias_ldouble_other_r): Also create _Float128 alias.
7411         * manual/math.texi (Mathematics): Document additional architecture
7412         support for _Float128.
7413         * sysdeps/unix/sysv/linux/aarch64/libc.abilist: Update.
7414         * sysdeps/unix/sysv/linux/aarch64/libm.abilist: Likewise.
7415         * sysdeps/unix/sysv/linux/alpha/libc.abilist: Likewise.
7416         * sysdeps/unix/sysv/linux/alpha/libm.abilist: Likewise.
7417         * sysdeps/unix/sysv/linux/mips/mips64/libm.abilist: Likewise.
7418         * sysdeps/unix/sysv/linux/mips/mips64/n32/libc.abilist: Likewise.
7419         * sysdeps/unix/sysv/linux/mips/mips64/n64/libc.abilist: Likewise.
7420         * sysdeps/unix/sysv/linux/s390/s390-32/libc.abilist: Likewise.
7421         * sysdeps/unix/sysv/linux/s390/s390-32/libm.abilist: Likewise.
7422         * sysdeps/unix/sysv/linux/s390/s390-64/libc.abilist: Likewise.
7423         * sysdeps/unix/sysv/linux/s390/s390-64/libm.abilist: Likewise.
7424         * sysdeps/unix/sysv/linux/sparc/sparc32/libc.abilist: Likewise.
7425         * sysdeps/unix/sysv/linux/sparc/sparc32/libm.abilist: Likewise.
7426         * sysdeps/unix/sysv/linux/sparc/sparc64/libc.abilist: Likewise.
7427         * sysdeps/unix/sysv/linux/sparc/sparc64/libm.abilist: Likewise.
7429 2017-10-18  Renlin Li  <renlin.li@arm.com>
7431         * sysdeps/aarch64/dl-machine.h (elf_machine_load_address): Use
7432         _DYNAMIC symbol to calculate load address.
7434 2017-10-18  Paul A. Clarke  <pc@us.ibm.com>
7436         * sysdeps/powerpc/fpu/fenv_private.h (_FPU_MASK_TRAPS_RN):
7437         (_FPU_MASK_FRAC_INEX_RET_CC): Fix masks to more properly handle
7438         summary bits.
7439         (_FPU_MASK_RN): Expand _FPU_MASK_RN to 64bit hex.
7440         (_FPU_MASK_NOT_RN_NI): Treat bit 52 (left-to-right) as reserved.
7442 2017-10-18  Mike FABIAN  <mfabian@redhat.com>
7444         [BZ #16777]
7445         * localedata/locales/pl_PL (LC_MONETARY): Use U+202F as mon_thousands_sep
7446         and improve readability by using more ASCII.
7447         * localedata/locales/pl_PL (LC_NUMERIC): Use U+202F as thousands_sep
7448         and improve readability by using more ASCII.
7450 2017-10-18  Wilco Dijkstra  <wdijkstr@arm.com>
7452         * malloc/malloc.c (malloc_state): Use int for have_fastchunks since
7453         not all targets support atomics on bool.
7455 2017-10-17  Joseph Myers  <joseph@codesourcery.com>
7457         * include/float.h [!__GNUC_PREREQ (7, 0) && __HAVE_FLOAT128 &&
7458         __GLIBC_USE (IEC_60559_TYPES_EXT)] (FLT128_MAX): Define using
7459         __f128.
7460         [!__GNUC_PREREQ (7, 0) && __HAVE_FLOAT128 && __GLIBC_USE
7461         (IEC_60559_TYPES_EXT)] (FLT128_EPSILON): Likewise.
7462         [!__GNUC_PREREQ (7, 0) && __HAVE_FLOAT128 && __GLIBC_USE
7463         (IEC_60559_TYPES_EXT)] (FLT128_MIN): Likewise.
7464         [!__GNUC_PREREQ (7, 0) && __HAVE_FLOAT128 && __GLIBC_USE
7465         (IEC_60559_TYPES_EXT)] (FLT128_TRUE_MIN): Likewise.
7467 2017-10-17  Adhemerval Zanella  <adhemerval.zanella@linaro.org>
7469         * bits/uio-ext.h (RWF_HIPRI, RWF_DSYNC, RWF_SYNC, RWF_NOWAIT): New
7470         defines.
7472 2017-10-17  Wilco Dijkstra  <wdijkstr@arm.com>
7474         [BZ #22159]
7475         * malloc/arena.c (ptmalloc_init): Call malloc_init_state.
7476         * malloc/malloc.c (do_check_free_chunk): Fix build bug.
7477         (do_check_remalloced_chunk): Fix build bug.
7478         (do_check_malloc_state): Add assert that checks arena->top.
7479         (malloc_consolidate): Remove initialization.
7480         (int_mallinfo): Remove call to malloc_consolidate.
7481          (__libc_mallopt): Clarify why malloc_consolidate is needed.
7483 2017-10-17  Wilco Dijkstra  <wdijkstr@arm.com>
7485         * malloc/malloc.c (FASTCHUNKS_BIT): Remove.
7486         (have_fastchunks): Remove.
7487         (clear_fastchunks): Remove.
7488         (set_fastchunks): Remove.
7489         (malloc_state): Add have_fastchunks.
7490         (malloc_init_state): Use have_fastchunks.
7491         (do_check_malloc_state): Remove incorrect invariant checks.
7492         (_int_malloc): Use have_fastchunks.
7493         (_int_free): Likewise.
7494         (malloc_consolidate): Likewise.
7496 2017-10-17  Wilco Dijkstra  <wdijkstr@arm.com>
7498         * malloc/malloc.c (tcache_put): Inline.
7499         (tcache_get): Inline.
7501 2017-10-17  Jordi Mallach  <jordi@gnu.org>
7503         Aurelien Jarno  <aurelien@aurel32.net>
7504         [BZ #2522]
7505         * localedata/locales/ca_ES@valencia: New file.
7506         * localedata/SUPPORTED: Add ca_ES@valencia/UTF-8.
7508 2017-10-17  Romain Naour  <romain.naour@gmail.com>  (tiny change)
7510         [BZ #22296]
7511         * math/math.h: Let signbit use the builtin in C++ mode with gcc
7512         < 6.x
7514 2017-10-17  Adhemerval Zanella  <adhemerval.zanella@linaro.org>
7516         * scripts/build-many-glibcs.py (Context.add_all_configs):
7517         Add arm-linux-gnueabihf multiarch extra_glibcs.
7519         * sysdeps/generic/ifunc-init.h: New file.
7520         * sysdeps/x86/init-arch.h: Use generic ifunc-init.h.
7522 2017-10-17  Mike FABIAN  <mfabian@redhat.com>
7524         [BZ #22019]
7525         * localedata/locales/el_GR: Set n_cs_precedes to 0.
7526         * localedata/locales/el_CY: copy "el_GR" because it is identical.
7527         * stdlib/tst-strfmon_l.c: adapt test case.
7529 2017-10-16  Joseph Myers  <joseph@codesourcery.com>
7531         * sysdeps/generic/float128-abi.h: New file.
7532         * sysdeps/ieee754/float128/Versions (FLOAT128_VERSION): Move
7533         non-__prefixed symbols to ....
7534         * math/Versions: ... here.  Include <float128-abi.h>.
7535         * stdlib/Versions ... and here.  Include <float128-abi.h>
7537 2017-10-16  Florian Weimer  <fweimer@redhat.com>
7539         * version.h (VERSION): Switch to ".9000" as the development
7540         version suffix.
7542 2017-10-16  Florian Weimer  <fweimer@redhat.com>
7544         [BZ #22050]
7545         * malloc/mcheck-init.c (__malloc_initialize_hook): Use
7546         compat_symbol_reference to access non-default version.
7548 2017-10-16  Florian Weimer  <fweimer@redhat.com>
7550         * malloc/Makefile (others-extras): Set to mcheck-init.o.
7552 2017-10-16  Carlos O'Donell  <carlos@redhat.com>
7554         * include/shlib-compat.h (compat_symbol_reference): Update
7555         comment.
7557 2017-10-16  Joseph Myers  <joseph@codesourcery.com>
7559         * math/Makefile (test-types): Add
7560         $(type-float128-$(float128-alias-fcts)).
7561         * math/test-float128.h (TYPE_STR): Define conditional on
7562         [FLT128_MANT_DIG == LDBL_MANT_DIG].
7563         (ULP_IDX): Likewise.
7564         (ULP_I_IDX): Likewise.
7566         * stdlib/strtold.c: Include <bits/floatn.h>
7567         [__HAVE_FLOAT128 && !__HAVE_DISTINCT_FLOAT128] (strtof128): Define
7568         and later undefine as macro.  Define as weak alias if
7569         [!USE_WIDE_CHAR].
7570         [__HAVE_FLOAT128 && !__HAVE_DISTINCT_FLOAT128] (wcstof128): Define
7571         and later undefine as macro.  Define as weak alias if
7572         [USE_WIDE_CHAR].
7573         * sysdeps/ieee754/ldbl-128/strtold_l.c [__HAVE_FLOAT128 &&
7574         !__HAVE_DISTINCT_FLOAT128] (strtof128_l): Define and later
7575         undefine as macro.  Define as weak alias if [!USE_WIDE_CHAR].
7576         [__HAVE_FLOAT128 && !__HAVE_DISTINCT_FLOAT128] (wcstof128_l):
7577         Define and later undefine as macro.  Define as weak alias if
7578         [USE_WIDE_CHAR].
7579         * sysdeps/ieee754/ldbl-64-128/strtold_l.c: Include
7580         <bits/floatn.h>.
7581         [__HAVE_FLOAT128 && !__HAVE_DISTINCT_FLOAT128] (strtof128_l):
7582         Define and later undefine as macro.  Define as weak alias if
7583         [!USE_WIDE_CHAR].
7584         [__HAVE_FLOAT128 && !__HAVE_DISTINCT_FLOAT128] (wcstof128_l):
7585         Define and later undefine as macro.  Define as weak alias if
7586         [USE_WIDE_CHAR].
7588 2017-10-15  Carlos O'Donell  <carlos@redhat.com>
7590         * localedata/collate-test.c (allocate_arrays): Don't use \n in
7591         record_verbose messages.
7593 2017-10-15  H.J. Lu  <hongjiu.lu@intel.com>
7595         [BZ #22052]
7596         * malloc/hooks.c (realloc_check): Use DIAG_IGNORE_NEEDS_COMMENT
7597         to silence -O3 -Wall warning with GCC 7.
7599 2017-10-14  H.J. Lu  <hongjiu.lu@intel.com>
7601         * Makeconfig (+link-static-before-libc): Use the first of
7602         $(CRT-$(@F)) and $(csu-objpfx)$(static-start-installed-name).
7603         * gmon/Makefile (tests): Add tst-gmon-static.
7604         (tests-static): Likewise.
7605         (CFLAGS-tst-gmon-static.c): New.
7606         (CRT-tst-gmon-static): Likewise.
7607         (DEFAULT-LDFLAGS-tst-gmon-static): Likewise.
7608         (tst-gmon-static-ENV): Likewise.
7609         (tests-special): Likewise.
7610         ($(objpfx)tst-gmon-static.out): Likewise.
7611         (clean-tst-gmon-static-data): Likewise.
7612         ($(objpfx)tst-gmon-static-gprof.out): Likewise.
7613         * gmon/tst-gmon-static-gprof.sh: New file.
7614         * gmon/tst-gmon-static.c: Likewise.
7616 2017-10-13  Carlos O'Donell  <carlos@redhat.com>
7618         [BZ #22295]
7619         * locale/programs/linereader.c (get_string): Don't warn on
7620         non-symbolic character.
7622         [BZ #22294]
7623         * locale/programs/ld-monetary.c (monetary_finish): Allow ""
7624         int_curr_symbol.
7626         [BZ #22292]
7627         * locale/programs/record-status.h: New file
7628         * locale/programs/locale.c: Add comment.
7629         * locale/programs/charmap-dir.c: Don't include error.h.
7630         (charmap_opendir): Use record_error.
7631         * locale/programs/charmap.c: Don't include error.h.
7632         (charmap_read): Use record_error, and record_warning.
7633         (parse_charmap): Likewise.
7634         * locale/programs/ld-address.c: Don't include error.h.
7635         (address_finish): Use record_error, and record_warning.
7636         * locale/programs/ld-collate.c: Don't include error.h.
7637         (collate_finish): Use record_error, and record_error_at_line.
7638         * locale/programs/ld-ctype.c (ctype_finish): Use record_error.
7639         (ctype_class_new): Likewise.
7640         (ctype_map_new): Likewise.
7641         (set_one_default): Likewise.
7642         (set_class_defaults): Likewise.
7643         (translit_flatten): Likewise.
7644         (allocate_arrays): Use record_error, and record_verbose.
7645         * locale/programs/ld-identification.c: Don't include error.h.
7646         (indentation_finish): Use record_error and record_warning.
7647         * locale/programs/ld-measurement.c: Don't include error.h.
7648         (measurement_finish): Use record_error.
7649         * locale/programs/ld-messages.c
7650         (message_finish): Likewise.
7651         * locale/programs/ld-monetary.c
7652         (monetary_finish): Likewise.
7653         * locale/programs/ld-name.c (name_finish): Use record_error
7654         and record_warning.
7655         * locale/programs/ld-numeric.c
7656         (numeric_finish): Use record_error.
7657         * locale/programs/ld-paper.c: Don't include error.h.
7658         (paper_finish): Use record_error.
7659         * locale/programs/ld-telephone.c: Don't include error.h.
7660         (telephone_finish): Use record_error.
7661         * locale/programs/ld-time.c (time_finish): Likewise.
7662         * locale/programs/linereader.h (lr_error): Make inline func.
7663         * locale/programs/localedef.c: Define recorded_warning_count,
7664         and recorded_error_count.
7665         (main): Use record_error. Use recorded_error_count and
7666         recorded_warning_count to issue correct error returns.
7667         (add_to_readlist): Use record_error.
7668         (find_locale): Likewise.
7669         (load_locale): Likewise.
7670         * locale/programs/localedef.h: Remove be_quiet
7671         and WITH_CUR_LOCALE.
7672         * locale/programs/locarchive.c (compare_from_file): Use
7673         record_error.
7674         * locale/programs/locfile.c (write_locale_data): Use
7675         record_error.
7676         * locale/programs/repertoire.c: Dont include error.h.
7677         (repertoire_complain): Use record_error.
7678         * localedata/tst-fmon.sh: Expect failures from localedef.
7679         * localedata/tst-locale.sh: Likewise.
7680         * localedata/gen-locale.sh: Expect failures from SHIFT_JIS.
7682         * localedata/unicode-gen/Makefile (GENERATED): Use i18n_ctype.
7683         (REPORTS): Likewise.
7684         (check): Likewise.
7685         (i18n): Rename to...
7686         (i18n_ctype): ...this.
7687         (i18n-report): Rename to...
7688         (i18n_ctype-report): ...this.
7689         * localedata/locales/i18n_ctype: Regenerate.
7690         * localedata/locales/i18n: copy i18n_ctype.
7692 2017-10-13  Joseph Myers  <joseph@codesourcery.com>
7694         * stdlib/strfroml.c: Include <bits/floatn.h>.
7695         [__HAVE_FLOAT128 && !__HAVE_DISTINCT_FLOAT128] (strfromf128):
7696         Define before include of <stdlib.h> and undefine afterwards, then
7697         define as weak alias.
7699         * sysdeps/ieee754/ldbl-64-128/s_nextafterl.c (weak_alias):
7700         Undefine and restore default definition.  Use
7701         libm_alias_ldouble_other.
7703 2017-10-13  Peter Zelezny  <peter.zelezny@dektech.com.au>
7705         [BZ #22153]
7706         * nptl/allocatestack.c (__nptl_setxid_error): Preserve error code
7707         in coredumps.
7709 2017-10-13  James Clarke  <jrtc27@jrtc27.com>
7711         * sysdeps/powerpc/powerpc32/dl-machine.h (elf_machine_rela):
7712         Assign sym_map to be map for local symbols, as TLS relocations
7713         use sym_map to determine whether the symbol is defined and to
7714         extract the TLS information.
7715         * sysdeps/sparc/sparc32/dl-machine.h (elf_machine_rela): Likewise.
7716         * sysdeps/sparc/sparc64/dl-machine.h (elf_machine_rela): Likewise.
7718 2017-10-13  Tulio Magno Quites Machado Filho  <tuliom@linux.vnet.ibm.com>
7720         [BZ #22189]
7721         * sysdeps/powerpc/fpu/math_private.h (math_opt_barrier):
7722         (math_force_eval): Add powerpc version.
7724         [BZ #22142]
7725         * stdio-common/tst-printf.c (fp_test): Add tests for DBL_MAX and
7726         -DBL_MAX.
7727         (do_test): Likewise.
7728         * stdio-common/tst-printf.sh: Likewise.
7729         * sysdeps/powerpc/powerpc64/power7/add_n.S: Invert the initial
7730         ifdef clause in order to set the carry bit right.  Replace r0 by
7731         0 without changing the behavior.
7733 2017-10-13  Joseph Myers  <joseph@codesourcery.com>
7735         * sysdeps/sparc/sparc32/fpu/s_fabsl.c: Include
7736         <libm-alias-ldouble.h>.
7737         (fabsl): Define using libm_alias_ldouble.
7738         * sysdeps/sparc/sparc64/fpu/s_fabsl.c: Include
7739         <libm-alias-ldouble.h>.
7740         (fabsl): Define using libm_alias_ldouble.
7742         * sysdeps/ieee754/ldbl-opt/w_lgamma_compatl.c [BUILD_LGAMMA]:
7743         Remove conditional code.
7745         * sysdeps/ieee754/ldbl-opt/s_clog10l.c (__clog10l__internal):
7746         Rename to __clog10_internal_l.
7747         (__clog10_internal_l): Define aliases using
7748         libm_alias_ldouble_other instead of using libm_alias_ldouble_other
7749         with __clog10.
7751 2017-10-13  Rajalakshmi Srinivasaraghavan  <raji@linux.vnet.ibm.com>
7753         * benchtests/Makefile (bench-math):  Add sinf, cosf and sincosf.
7754         * benchtests/sincosf-inputs: New file.
7755         * benchtests/cosf-inputs: New file.
7756         * benchtests/sinf-inputs: New file.
7758 2017-10-12  Szabolcs Nagy  <szabolcs.nagy@arm.com>
7760         * posix/tst-spawn.c (do_test): Wait for both children.
7762 2017-10-12  H.J. Lu  <hongjiu.lu@intel.com>
7764         [BZ #22284]
7765         * gmon/Makefile [$(have-fpie)$(build-shared) == yesyes] (tests,
7766         tests-pie): Add tst-gmon-pie.
7767         (CFLAGS-tst-gmon-pie.c): New.
7768         (CRT-tst-gmon-pie): Likewise.
7769         (tst-gmon-pie-ENV): Likewise.
7770         [$(have-fpie)$(build-shared) == yesyes] (tests-special): Likewise.
7771         ($(objpfx)tst-gmon-pie.out): Likewise.
7772         (clean-tst-gmon-pie-data): Likewise.
7773         ($(objpfx)tst-gmon-pie-gprof.out): Likewise.
7774         * gmon/gmon.c [PIC]: Include <link.h>.
7775         [PIC] (callback): New function.
7776         (write_hist): Add an argument for load address.  Subtract load
7777         address from PCs.
7778         (write_call_graph): Likewise.
7779         (write_gmon): Call __dl_iterate_phdr to get load address, pass
7780         it to write_hist and write_call_graph.
7781         * gmon/tst-gmon-pie.c: New file.
7783 2017-10-11  Joseph Myers  <joseph@codesourcery.com>
7785         * math/Makefile (test-types-basic): New variable.
7786         (test-types): Likewise.
7787         (libm-test-support): Use $(test-types) instead of $(types).
7788         (libm-tests-base-normal): Likewise.
7789         (libm-tests-base-finite): Likewise.
7790         (libm-tests-base-inline): Likewise.
7791         (generated): Likewise.
7792         ($(objpfx)libm-test-support-$(t).c): Likewise.
7793         (libm-tests-for-type iterator): Likewise.
7794         (libm-test-support iterator): Likewise.
7795         * math/libm-test-support.c (ulp_i_idx): Use ULP_I_IDX.
7796         (ulp_idx): Use ULP_IDX.
7797         * math/test-ldouble.h: Include <float.h>.
7798         (TYPE_STR): Define conditional on [LDBL_MANT_DIG == DBL_MANT_DIG].
7799         (ULP_IDX): New macro.
7800         (ULP_I_IDX): Likewise.
7801         * math/test-double.h (ULP_IDX): Likewise.
7802         (ULP_I_IDX): Likewise.
7803         * math/test-float.h (ULP_IDX): Likewise.
7804         (ULP_I_IDX): Likewise.
7805         * math/test-float128.h (ULP_IDX): Likewise.
7806         (ULP_I_IDX): Likewise.
7808 2017-10-11  Adhemerval Zanella  <adhemerval.zanella@linaro.org>
7810         * sysdeps/unix/sysv/linux/aarch64/sysdep-cancel.h: Remove file.
7811         * sysdeps/unix/sysv/linux/alpha/sysdep-cancel.h: Likewise.
7812         * sysdeps/unix/sysv/linux/arm/sysdep-cancel.h: Likewise.
7813         * sysdeps/unix/sysv/linux/hppa/sysdep-cancel.h: Likewise.
7814         * sysdeps/unix/sysv/linux/mips/sysdep-cancel.h: Likewise.
7815         * sysdeps/unix/sysv/linux/nios2/sysdep-cancel.h: Likewise.
7816         * sysdeps/unix/sysv/linux/powerpc/sysdep-cancel.h: Likewise.
7817         * sysdeps/unix/sysv/linux/s390/s390-32/sysdep-cancel.h: Likewise.
7818         * sysdeps/unix/sysv/linux/s390/s390-64/sysdep-cancel.h: Likewise.
7819         * sysdeps/unix/sysv/linux/sh/sysdep-cancel.h: Likewise.
7820         * sysdeps/unix/sysv/linux/sparc/sysdep-cancel.h: Likewise.
7821         * sysdeps/unix/sysv/linux/tile/sysdep-cancel.h: Likewise.
7822         * sysdeps/unix/sysv/linux/x86_64/sysdep-cancel.h: Likewise.
7823         * sysdeps/unix/sysv/linux/s390/s390-64/sysdep.h
7824         (SINGLE_THREAD_BY_GLOBAL): Define.
7825         * sysdeps/unix/sysv/linux/aarch64/sysdep.h (SINGLE_THREAD_BY_GLOBAL):
7826         Likewise.
7827         * sysdeps/unix/sysv/linux/alpha/sysdep.h (SINGLE_THREAD_BY_GLOBAL):
7828         Likewise.
7829         * sysdeps/unix/sysv/linux/arm/sysdep.h (SINGLE_THREAD_BY_GLOBAL):
7830         Likewise.
7831         * sysdeps/unix/sysv/linux/hppa/sysdep.h (SINGLE_THREAD_BY_GLOBAL):
7832         Likewise.
7833         * sysdeps/unix/sysv/linux/microblaze/sysdep.h
7834         (SINGLE_THREAD_BY_GLOBAL): Likewise.
7835         * sysdeps/unix/sysv/linux/x86_64/sysdep.h (SINGLE_THREAD_BY_GLOBAL):
7836         Likewise.
7838 2017-10-11  Andreas Schwab  <schwab@suse.de>
7840         * nis/Makefile (aux): Remove.
7841         * nscd/Makefile (aux): Add nscd_hash.
7842         (nscd-modules): Likewise.
7843         ($(objpfx)nscd): Don't depend on libnsl.
7844         * nscd/nscd_hash.c: New file.
7845         * nscd/nscd_hash.h: Likewise.
7846         * nscd/cache.c: Include "nscd_hash.h" instead of <rpcsvc/nis.h>.
7847         (cache_search, cache_add): Use __nscd_hash instead of __nis_hash.
7848         * nscd/nscd_helper.c: Include <sys/param.h> and "nscd_hash.h"
7849         instead of <nis/rpcsvc/nis.h>.
7850         (__nscd_cache_search): Use __nscd_hash instead of __nis_hash.
7852 2017-10-11  Florian Weimer  <fweimer@redhat.com>
7854         [BZ #22078]
7855         Avoid large NSS buffers with many addresses, aliases.
7856         * nss/nss_files/files-hosts.c (gethostbyname3_multi): Rewrite
7857         using dynarrays and struct alloc_buffer.
7858         * nss/Makefile (tests): Add tst-nss-files-hosts-multi.
7859         (tst-nss-files-hosts-multi): Link with -ldl.
7860         * nss/tst-nss-files-hosts-multi.c: New file.
7862 2017-10-11  Florian Weimer  <fweimer@redhat.com>
7864         [BZ #18023]
7865         * nss/nss_files/files-hosts.c (gethostbyname3_multi): Use struct
7866         scratch_buffer.  Eliminate gotos.
7868 2017-10-11  Joseph Myers  <joseph@codesourcery.com>
7870         * sysdeps/ieee754/ldbl-opt/s_clog10l.c: Use
7871         libm_alias_ldouble_other.
7872         * sysdeps/ieee754/ldbl-opt/w_exp10l_compat.c (weak_alias): Do not
7873         undefine and redefine.
7874         [LIBM_SVID_COMPAT && !LONG_DOUBLE_COMPAT (libm, GLIBC_2_1)]
7875         (exp10l): Do not define here.
7876         * sysdeps/ieee754/ldbl-opt/w_lgamma_compatl.c [BUILD_LGAMMA]
7877         (weak_alias): Undefine and redefine.
7878         [BUILD_LGAMMA]: Use libm_alias_ldouble_other.
7879         * sysdeps/ieee754/ldbl-opt/w_remainderl_compat.c
7880         [LIBM_SVID_COMPAT] (weak_alias): Undefine and redefine here.
7881         [LIBM_SVID_COMPAT]: Use libm_alias_ldouble_other.
7883         * soft-fp/fmadf4.c: Include <libm-alias-double.h>.
7884         [!__fma] (fma): Define using libm_alias_double.
7885         * soft-fp/fmasf4.c: Include <libm-alias-float.h>.
7886         [!__fmaf] (fmaf): Define using libm_alias_float.
7887         * soft-fp/fmatf4.c: Include <libm-alias-ldouble.h>.
7888         (fmal): Define using libm_alias_ldouble.
7890 2017-10-10  Joseph Myers  <joseph@codesourcery.com>
7892         * sysdeps/generic/libm-alias-double.h (libm_alias_double_other_r):
7893         New macro.
7894         (libm_alias_double_other): Likewise.
7895         (libm_alias_double_r): Use libm_alias_double_other_r.
7896         * sysdeps/generic/libm-alias-float.h (libm_alias_float_other_r):
7897         New macro.
7898         (libm_alias_float_other): Likewise.
7899         (libm_alias_float_r): Use libm_alias_float_other_r.
7900         * sysdeps/generic/libm-alias-float128.h
7901         (libm_alias_float128_other_r): New macro.
7902         (libm_alias_float128_other): Likewise.
7903         (libm_alias_float128_r): Use libm_alias_float128_other_r.
7904         * sysdeps/generic/libm-alias-ldouble.h
7905         (libm_alias_ldouble_other_r): New macro.
7906         (libm_alias_ldouble_other): Likewise.
7907         (libm_alias_ldouble_r): Use libm_alias_ldouble_other_r.
7908         * sysdeps/ieee754/ldbl-opt/libm-alias-double.h
7909         (libm_alias_double_other_r): New macro.
7910         (libm_alias_double_other): Likewise.
7911         (libm_alias_double_r): Use libm_alias_double_other_r.
7912         * sysdeps/ieee754/ldbl-opt/libm-alias-ldouble.h
7913         (libm_alias_ldouble_other_r): New macro.
7914         (libm_alias_ldouble_other): Likewise.
7915         (libm_alias_ldouble_r): Use libm_alias_ldouble_other_r.
7916         * math/w_lgamma_main.c: Include <libm-alias-double.h>.
7917         [!USE_AS_COMPAT]: Use libm_alias_double_other.
7918         * math/w_lgammaf_main.c: Include <libm-alias-float.h>.
7919         [!USE_AS_COMPAT]: Use libm_alias_float_other.
7920         * math/w_lgammal_main.c: Include <libm-alias-ldouble.h>.
7921         [!USE_AS_COMPAT]: Use libm_alias_ldouble_other.
7922         * math/w_exp2f.c: Use libm_alias_float_other.
7923         * math/w_expf.c: Likewise.
7924         * math/w_log2f.c: Likewise.
7925         * math/w_logf.c: Likewise.
7926         * math/w_powf.c: Likewise.
7927         * sysdeps/ieee754/flt-32/e_exp2f.c: Include <libm-alias-float.h>.
7928         [!__exp2f]: Use libm_alias_float_other.
7929         * sysdeps/ieee754/flt-32/e_expf.c: Include <libm-alias-float.h>.
7930         [!__expf]: Use libm_alias_float_other.
7931         * sysdeps/ieee754/flt-32/e_log2f.c: Include <libm-alias-float.h>.
7932         [!__log2f]: Use libm_alias_float_other.
7933         * sysdeps/ieee754/flt-32/e_logf.c: Include <libm-alias-float.h>.
7934         [!__logf]: Use libm_alias_float_other.
7935         * sysdeps/ieee754/flt-32/e_powf.c: Include <libm-alias-float.h>.
7936         [!__powf]: Use libm_alias_float_other.
7938 2017-10-10  Florian Weimer  <fweimer@redhat.com>
7940         * nss/nss_files/files-hosts.c (gethostbyname3_multi): New
7941         function.
7942         (_nss_files_gethostbyname3_r): Call it.
7944 2017-10-09  Joseph Myers  <joseph@codesourcery.com>
7946         * sysdeps/generic/math-type-macros.h [!declare_mgen_alias]: Give
7947         error.  Remove default definition of declare_mgen_alias.
7948         [!declare_mgen_alias_r]: Likewise.
7949         * sysdeps/generic/math-type-macros-double.h
7950         [!declare_mgen_alias_r] (declare_mgen_alias_r): New macro.
7951         * sysdeps/generic/math-type-macros-float.h [!declare_mgen_alias_r]
7952         (declare_mgen_alias_r): Likewise.
7953         * sysdeps/generic/math-type-macros-float128.h
7954         [!declare_mgen_alias_r] (declare_mgen_alias_r): Likewise.
7955         * sysdeps/generic/math-type-macros-ldouble.h
7956         [!declare_mgen_alias_r] (declare_mgen_alias_r): Likewise.
7957         * math/w_lgamma_r_template.c (declare_mgen_alias_r_x): Remove
7958         macro.
7959         (declare_mgen_alias_r_s): Likewise.
7960         (declare_mgen_alias_r): Likewise.
7961         * math/w_lgamma_r_compat.c: Include <libm-alias-double.h>.
7962         (lgamma_r): Define using libm_alias_double_r.
7963         * math/w_lgammaf_r_compat.c: Include <libm-alias-float.h>.
7964         (lgammaf_r): Define using libm_alias_float_r.
7965         * math/w_lgammal_r_compat.c: Include <libm-alias-ldouble.h>.
7966         (lgammal_r): Define using libm_alias_ldouble_r.
7967         * sysdeps/ieee754/ldbl-opt/w_lgamma_r_compat.c: Remove file.
7968         * sysdeps/ieee754/ldbl-opt/w_lgammal_r_compat.c: Likewise.
7970 2017-10-09  Adhemerval Zanella  <adhemerval.zanella@linaro.org>
7972         * lib/glob.c (__glob_pattern_type): Remove now-spurious
7973         extern declaration.
7975 2017-10-09  Joseph Myers  <joseph@codesourcery.com>
7977         * sysdeps/ieee754/ldbl-opt/w_scalbln.c: Remove file.
7979 2017-10-09  Jonathan Wakely  <jwakely@redhat.com>
7981         [BZ #21326]
7982         * include/features.h [__cplusplus >= 201703] (__USE_ISOC11): Define.
7983         [__cplusplus >= 201103] (__USE_ISOC99): Define.
7984         * math/Makefile (test-math-cxx11): New test.
7985         * math/test-math-cxx11.cc: New file.
7987 2017-10-08  Christian Brauner  <christian.brauner@ubuntu.com>
7989         * login/openpty.c (openpty): Close slave pty file descriptor on error.
7991         * login/openpty.c (openpty): If defined, use the TIOCGPTPEER ioctl()
7992         call to allocate the slave pty file descriptor.
7994 2017-10-06  Joseph Myers  <joseph@codesourcery.com>
7996         * sysdeps/ieee754/ldbl-128/s_fma.c: Include <libm-alias-double.h>.
7997         [!__fma] (fma): Define using libm_alias_double.
7998         * sysdeps/ieee754/ldbl-96/s_fma.c: Include <libm-alias-double.h>.
7999         [!__fma] (fma): Define using libm_alias_double.
8001         * sysdeps/ieee754/float128/float128_private.h: Include
8002         <libm-alias-ldouble.h> and <libm-alias-float128.h>.
8003         (libm_alias_ldouble_r): Undefine and redefine.
8004         * sysdeps/ieee754/ldbl-128/s_asinhl.c: Include
8005         <libm-alias-ldouble.h>.
8006         (asinhl): Define using libm_alias_ldouble.
8007         * sysdeps/ieee754/ldbl-128/s_atanl.c: Include
8008         <libm-alias-ldouble.h>.
8009         (atanl): Define using libm_alias_ldouble.
8010         * sysdeps/ieee754/ldbl-128/s_cbrtl.c: Include
8011         <libm-alias-ldouble.h>.
8012         (cbrtl): Define using libm_alias_ldouble.
8013         * sysdeps/ieee754/ldbl-128/s_ceill.c: Include
8014         <libm-alias-ldouble.h>.
8015         (ceill): Define using libm_alias_ldouble.
8016         * sysdeps/ieee754/ldbl-128/s_copysignl.c: Include
8017         <libm-alias-ldouble.h>.
8018         (copysignl): Define using libm_alias_ldouble.
8019         * sysdeps/ieee754/ldbl-128/s_cosl.c: Include
8020         <libm-alias-ldouble.h>.
8021         (cosl): Define using libm_alias_ldouble.
8022         * sysdeps/ieee754/ldbl-128/s_erfl.c: Include
8023         <libm-alias-ldouble.h>.
8024         (erfl): Define using libm_alias_ldouble.
8025         (erfcl): Likewise.
8026         * sysdeps/ieee754/ldbl-128/s_expm1l.c: Include
8027         <libm-alias-ldouble.h>.
8028         (expm1l): Define using libm_alias_ldouble.
8029         * sysdeps/ieee754/ldbl-128/s_fabsl.c: Include
8030         <libm-alias-ldouble.h>.
8031         (fabsl): Define using libm_alias_ldouble.
8032         * sysdeps/ieee754/ldbl-128/s_floorl.c: Include
8033         <libm-alias-ldouble.h>.
8034         (floorl): Define using libm_alias_ldouble.
8035         * sysdeps/ieee754/ldbl-128/s_fmal.c: Include
8036         <libm-alias-ldouble.h>.
8037         (fmal): Define using libm_alias_ldouble.
8038         * sysdeps/ieee754/ldbl-128/s_frexpl.c: Include
8039         <libm-alias-ldouble.h>.
8040         (frexpl): Define using libm_alias_ldouble.
8041         * sysdeps/ieee754/ldbl-128/s_fromfpl.c (fromfpl): Define using
8042         libm_alias_ldouble.
8043         * sysdeps/ieee754/ldbl-128/s_fromfpl_main.c: Include
8044         <libm-alias-ldouble.h>.
8045         * sysdeps/ieee754/ldbl-128/s_fromfpxl.c (fromfpxl): Define using
8046         libm_alias_ldouble.
8047         * sysdeps/ieee754/ldbl-128/s_getpayloadl.c: Include
8048         <libm-alias-ldouble.h>.
8049         (getpayloadl): Define using libm_alias_ldouble.
8050         * sysdeps/ieee754/ldbl-128/s_llrintl.c: Include
8051         <libm-alias-ldouble.h>.
8052         (llrintl): Define using libm_alias_ldouble.
8053         * sysdeps/ieee754/ldbl-128/s_llroundl.c: Include
8054         <libm-alias-ldouble.h>.
8055         (llroundl): Define using libm_alias_ldouble.
8056         * sysdeps/ieee754/ldbl-128/s_logbl.c: Include
8057         <libm-alias-ldouble.h>.
8058         (logbl): Define using libm_alias_ldouble.
8059         * sysdeps/ieee754/ldbl-128/s_lrintl.c: Include
8060         <libm-alias-ldouble.h>.
8061         (lrintl): Define using libm_alias_ldouble.
8062         * sysdeps/ieee754/ldbl-128/s_lroundl.c: Include
8063         <libm-alias-ldouble.h>.
8064         (lroundl): Define using libm_alias_ldouble.
8065         * sysdeps/ieee754/ldbl-128/s_modfl.c: Include
8066         <libm-alias-ldouble.h>.
8067         (modfl): Define using libm_alias_ldouble.
8068         * sysdeps/ieee754/ldbl-128/s_nearbyintl.c: Include
8069         <libm-alias-ldouble.h>.
8070         (nearbyintl): Define using libm_alias_ldouble.
8071         * sysdeps/ieee754/ldbl-128/s_nextafterl.c: Include
8072         <libm-alias-ldouble.h>.
8073         (nextafterl): Define using libm_alias_ldouble.
8074         * sysdeps/ieee754/ldbl-128/s_nextupl.c: Include
8075         <libm-alias-ldouble.h>.
8076         (nextupl): Define using libm_alias_ldouble.
8077         * sysdeps/ieee754/ldbl-128/s_remquol.c: Include
8078         <libm-alias-ldouble.h>.
8079         (remquol): Define using libm_alias_ldouble.
8080         * sysdeps/ieee754/ldbl-128/s_rintl.c: Include
8081         <libm-alias-ldouble.h>.
8082         (rintl): Define using libm_alias_ldouble.
8083         * sysdeps/ieee754/ldbl-128/s_roundevenl.c: Include
8084         <libm-alias-ldouble.h>.
8085         (roundevenl): Define using libm_alias_ldouble.
8086         * sysdeps/ieee754/ldbl-128/s_roundl.c: Include
8087         <libm-alias-ldouble.h>.
8088         (roundl): Define using libm_alias_ldouble.
8089         * sysdeps/ieee754/ldbl-128/s_setpayloadl.c (setpayloadl): Define
8090         using libm_alias_ldouble.
8091         * sysdeps/ieee754/ldbl-128/s_setpayloadl_main.c: Include
8092         <libm-alias-ldouble.h>.
8093         * sysdeps/ieee754/ldbl-128/s_setpayloadsigl.c (setpayloadsigl):
8094         Define using libm_alias_ldouble.
8095         * sysdeps/ieee754/ldbl-128/s_sincosl.c: Include
8096         <libm-alias-ldouble.h>.
8097         (sincosl): Define using libm_alias_ldouble.
8098         * sysdeps/ieee754/ldbl-128/s_sinl.c: Include
8099         <libm-alias-ldouble.h>.
8100         (sinl): Define using libm_alias_ldouble.
8101         * sysdeps/ieee754/ldbl-128/s_tanhl.c: Include
8102         <libm-alias-ldouble.h>.
8103         (tanhl): Define using libm_alias_ldouble.
8104         * sysdeps/ieee754/ldbl-128/s_tanl.c: Include
8105         <libm-alias-ldouble.h>.
8106         (tanl): Define using libm_alias_ldouble.
8107         * sysdeps/ieee754/ldbl-128/s_totalorderl.c: Include
8108         <libm-alias-ldouble.h>.
8109         (totalorderl): Define using libm_alias_ldouble.
8110         * sysdeps/ieee754/ldbl-128/s_totalordermagl.c: Include
8111         <libm-alias-ldouble.h>.
8112         (totalordermagl): Define using libm_alias_ldouble.
8113         * sysdeps/ieee754/ldbl-128/s_truncl.c: Include
8114         <libm-alias-ldouble.h>.
8115         (truncl): Define using libm_alias_ldouble.
8116         * sysdeps/ieee754/ldbl-128/s_ufromfpl.c (ufromfpl): Define using
8117         libm_alias_ldouble.
8118         * sysdeps/ieee754/ldbl-128/s_ufromfpxl.c (ufromfpxl): Define using
8119         libm_alias_ldouble.
8120         * sysdeps/ieee754/ldbl-64-128/s_copysignl.c: Include
8121         <libm-alias-ldouble.h>.
8122         (weak_alias): Do not undefine and redefine.
8123         [IS_IN (libc)] (libm_alias_ldouble): Undefine and redefine.
8124         (copysignl): Define with long_double_symbol only if [IS_IN
8125         (libc)].
8126         * sysdeps/ieee754/ldbl-64-128/s_frexpl.c: Include
8127         <libm-alias-ldouble.h>.
8128         (weak_alias): Do not undefine and redefine.
8129         [IS_IN (libc)] (libm_alias_ldouble): Undefine and redefine.
8130         (frexpl): Define with long_double_symbol only if [IS_IN (libc)].
8131         * sysdeps/ieee754/ldbl-64-128/s_modfl.c: Include
8132         <libm-alias-ldouble.h>.
8133         (weak_alias): Do not undefine and redefine.
8134         [IS_IN (libc)] (libm_alias_ldouble): Undefine and redefine.
8135         (modfl): Define with long_double_symbol only if [IS_IN (libc)].
8136         * sysdeps/ieee754/ldbl-64-128/s_asinhl.c: Remove file.
8137         * sysdeps/ieee754/ldbl-64-128/s_atanl.c: Likewise.
8138         * sysdeps/ieee754/ldbl-64-128/s_cbrtl.c: Likewise.
8139         * sysdeps/ieee754/ldbl-64-128/s_ceill.c: Likewise.
8140         * sysdeps/ieee754/ldbl-64-128/s_cosl.c: Likewise.
8141         * sysdeps/ieee754/ldbl-64-128/s_erfl.c: Likewise.
8142         * sysdeps/ieee754/ldbl-64-128/s_expm1l.c: Likewise.
8143         * sysdeps/ieee754/ldbl-64-128/s_fabsl.c: Likewise.
8144         * sysdeps/ieee754/ldbl-64-128/s_floorl.c: Likewise.
8145         * sysdeps/ieee754/ldbl-64-128/s_fmal.c: Likewise.
8146         * sysdeps/ieee754/ldbl-64-128/s_llrintl.c: Likewise.
8147         * sysdeps/ieee754/ldbl-64-128/s_llroundl.c: Likewise.
8148         * sysdeps/ieee754/ldbl-64-128/s_logbl.c: Likewise.
8149         * sysdeps/ieee754/ldbl-64-128/s_lrintl.c: Likewise.
8150         * sysdeps/ieee754/ldbl-64-128/s_lroundl.c: Likewise.
8151         * sysdeps/ieee754/ldbl-64-128/s_nearbyintl.c: Likewise.
8152         * sysdeps/ieee754/ldbl-64-128/s_remquol.c: Likewise.
8153         * sysdeps/ieee754/ldbl-64-128/s_rintl.c: Likewise.
8154         * sysdeps/ieee754/ldbl-64-128/s_roundl.c: Likewise.
8155         * sysdeps/ieee754/ldbl-64-128/s_sincosl.c: Likewise.
8156         * sysdeps/ieee754/ldbl-64-128/s_sinl.c: Likewise.
8157         * sysdeps/ieee754/ldbl-64-128/s_tanhl.c: Likewise.
8158         * sysdeps/ieee754/ldbl-64-128/s_tanl.c: Likewise.
8159         * sysdeps/ieee754/ldbl-64-128/s_truncl.c: Likewise.
8161 2017-10-06  Carlos O'Donell  <carlos@redhat.com>
8163         [BZ #22111]
8164         * malloc/malloc.c (tcache_shutting_down): Use bool type.
8165         (tcache_thread_freeres): Set tcache_shutting_down before
8166         freeing the tcache.
8167         * malloc/Makefile (tests): Add tst-malloc-tcache-leak.
8168         * malloc/tst-malloc-tcache-leak.c: New file.
8170 2017-10-06  Rajalakshmi Srinivasaraghavan  <raji@linux.vnet.ibm.com>
8172         * sysdeps/powerpc/powerpc64/multiarch/memrchr-ppc64.c: Revert
8173         back to powerpc32 file.
8174         * sysdeps/powerpc/powerpc64/multiarch/memrchr.c
8175         (memrchr): Add __memrchr_power8 to ifunc list.
8176         * sysdeps/powerpc/powerpc64/power8/memrchr.S: Mask
8177         extra bytes for unaligned inputs.
8179 2017-10-06  Joseph Myers  <joseph@codesourcery.com>
8181         * sysdeps/ieee754/ldbl-64-128/e_ilogbl.c: Remove file.
8182         * sysdeps/ieee754/ldbl-64-128/s_log1pl.c: Likewise.
8183         * sysdeps/ieee754/ldbl-64-128/s_scalblnl.c: Likewise.
8184         * sysdeps/ieee754/ldbl-64-128/s_scalbnl.c: Likewise.
8185         * sysdeps/ieee754/ldbl-64-128/w_scalblnl.c: Likewise.
8187 2017-10-05  Joseph Myers  <joseph@codesourcery.com>
8189         * sysdeps/arm/libm-test-ulps: Update.
8191         * sysdeps/ieee754/ldbl-96/s_asinhl.c: Include
8192         <libm-alias-ldouble.h>.
8193         (asinhl): Define using libm_alias_ldouble.
8194         * sysdeps/ieee754/ldbl-96/s_cbrtl.c: Include
8195         <libm-alias-ldouble.h>.
8196         (cbrtl): Define using libm_alias_ldouble.
8197         * sysdeps/ieee754/ldbl-96/s_copysignl.c: Include
8198         <libm-alias-ldouble.h>.
8199         (copysignl): Define using libm_alias_ldouble.
8200         * sysdeps/ieee754/ldbl-96/s_cosl.c: Include
8201         <libm-alias-ldouble.h>.
8202         (cosl): Define using libm_alias_ldouble.
8203         * sysdeps/ieee754/ldbl-96/s_erfl.c: Include
8204         <libm-alias-ldouble.h>.
8205         (erfl): Define using libm_alias_ldouble.
8206         (erfcl): Likewise.
8207         * sysdeps/ieee754/ldbl-96/s_fmal.c: Include
8208         <libm-alias-ldouble.h>.
8209         (fmal): Define using libm_alias_ldouble.
8210         * sysdeps/ieee754/ldbl-96/s_frexpl.c: Include
8211         <libm-alias-ldouble.h>.
8212         (frexpl): Define using libm_alias_ldouble.
8213         * sysdeps/ieee754/ldbl-96/s_fromfpl.c (fromfpl): Define using
8214         libm_alias_ldouble.
8215         * sysdeps/ieee754/ldbl-96/s_fromfpl_main.c: Include
8216         <libm-alias-ldouble.h>.
8217         * sysdeps/ieee754/ldbl-96/s_fromfpxl.c (fromfpxl): Define using
8218         libm_alias_ldouble.
8219         * sysdeps/ieee754/ldbl-96/s_getpayloadl.c: Include
8220         <libm-alias-ldouble.h>.
8221         (getpayloadl): Define using libm_alias_ldouble.
8222         * sysdeps/ieee754/ldbl-96/s_llrintl.c: Include
8223         <libm-alias-ldouble.h>.
8224         (llrintl): Define using libm_alias_ldouble.
8225         * sysdeps/ieee754/ldbl-96/s_llroundl.c: Include
8226         <libm-alias-ldouble.h>.
8227         (llroundl): Define using libm_alias_ldouble.
8228         * sysdeps/ieee754/ldbl-96/s_lrintl.c: Include
8229         <libm-alias-ldouble.h>.
8230         (lrintl): Define using libm_alias_ldouble.
8231         * sysdeps/ieee754/ldbl-96/s_lroundl.c: Include
8232         <libm-alias-ldouble.h>.
8233         (lroundl): Define using libm_alias_ldouble.
8234         * sysdeps/ieee754/ldbl-96/s_modfl.c: Include
8235         <libm-alias-ldouble.h>.
8236         (modfl): Define using libm_alias_ldouble.
8237         * sysdeps/ieee754/ldbl-96/s_nextupl.c: Include
8238         <libm-alias-ldouble.h>.
8239         (nextupl): Define using libm_alias_ldouble.
8240         * sysdeps/ieee754/ldbl-96/s_remquol.c: Include
8241         <libm-alias-ldouble.h>.
8242         (remquol): Define using libm_alias_ldouble.
8243         * sysdeps/ieee754/ldbl-96/s_roundevenl.c: Include
8244         <libm-alias-ldouble.h>.
8245         (roundevenl): Define using libm_alias_ldouble.
8246         * sysdeps/ieee754/ldbl-96/s_roundl.c: Include
8247         <libm-alias-ldouble.h>.
8248         (roundl): Define using libm_alias_ldouble.
8249         * sysdeps/ieee754/ldbl-96/s_setpayloadl.c (setpayloadl): Define
8250         using libm_alias_ldouble.
8251         * sysdeps/ieee754/ldbl-96/s_setpayloadl_main.c: Include
8252         <libm-alias-ldouble.h>.
8253         * sysdeps/ieee754/ldbl-96/s_setpayloadsigl.c: Include
8254         <libm-alias-ldouble.h>.
8255         (setpayloadsigl): Define using libm_alias_ldouble.
8256         * sysdeps/ieee754/ldbl-96/s_sincosl.c: Include
8257         <libm-alias-ldouble.h>.
8258         (sincosl): Define using libm_alias_ldouble.
8259         * sysdeps/ieee754/ldbl-96/s_sinl.c: Include
8260         <libm-alias-ldouble.h>.
8261         (sinl): Define using libm_alias_ldouble.
8262         * sysdeps/ieee754/ldbl-96/s_tanhl.c: Include
8263         <libm-alias-ldouble.h>.
8264         (tanhl): Define using libm_alias_ldouble.
8265         * sysdeps/ieee754/ldbl-96/s_tanl.c: Include
8266         <libm-alias-ldouble.h>.
8267         (tanl): Define using libm_alias_ldouble.
8268         * sysdeps/ieee754/ldbl-96/s_totalorderl.c: Include
8269         <libm-alias-ldouble.h>.
8270         (totalorderl): Define using libm_alias_ldouble.
8271         * sysdeps/ieee754/ldbl-96/s_totalordermagl.c: Include
8272         <libm-alias-ldouble.h>.
8273         (totalordermagl): Define using libm_alias_ldouble.
8274         * sysdeps/ieee754/ldbl-96/s_ufromfpl.c (ufromfpl): Define using
8275         libm_alias_ldouble.
8276         * sysdeps/ieee754/ldbl-96/s_ufromfpxl.c (ufromfpxl): Define using
8277         libm_alias_ldouble.
8279 2017-10-05  Siddhesh Poyarekar  <siddhesh@sourceware.org>
8281         * sysdeps/aarch64/multiarch/Makefile (sysdep_routines): Add
8282         memmove_falkor.
8283         * sysdeps/aarch64/multiarch/ifunc-impl-list.c
8284         (__libc_ifunc_impl_list): Likewise.
8285         * sysdeps/aarch64/multiarch/memmove.c: Likewise.
8286         * sysdeps/aarch64/multiarch/memmove_falkor.S: New file.
8288         * benchtests/bench-memmove-walk.c: New file.
8289         * benchtests/Makefile (string-benchset): Add it.
8291         * benchtests/bench-memset-walk.c: New file.
8292         * benchtests/Makefile (string-benchset): Add it.
8294         * benchtests/bench-memcpy-walk.c: New file.
8295         * benchtests/Makefile (string-benchset): Add it.
8297 2017-10-05  Florian Weimer  <fweimer@redhat.com>
8299         nscd: Eliminate compilation time dependency in the build output.
8300         * nscd/nscd_stat.c (STATDATA_VERSION)
8301         (STATDATA_VERSION_SELINUX_FLAG, STATDATA_VERSION_FLAGS)
8302         (STATDATA_VERSION_FULL): New macro definitions.
8303         (compilation): Remove.
8304         (struct statdata): Adjust version member.
8305         (send_stats): Set version from STATDATA_VERSION_FULL.
8306         (receive_print_stats): Verify version against STATDATA_VERSION_FULL.
8308 2017-10-05  Joseph Myers  <joseph@codesourcery.com>
8310         * configure.ac (--enable-add-ons): Remove option.
8311         (machine): Do not mention add-ons in comment.
8312         (LIBC_PRECONFIGURE): Likewise.
8313         (add_ons): Remove variable and sanity checks and logic to locate
8314         add-ons.
8315         (add_ons_automatic): Remove variable.
8316         (configured_add_ons): Likewise.
8317         (add_ons_sfx): Likewise.
8318         (add_ons_pfx): Likewise.
8319         (add_on_subdirs): Likewise.
8320         (sysnames_add_ons): Likewise.  Remove loop over add-ons and
8321         consideration of add-ons in Implies handling.
8322         (sysdeps_add_ons): Likewise.
8323         * configure: Regenerated.
8324         * libidn/configure.ac: Remove.
8325         * libidn/configure: Likewise.
8326         * sysdeps/unix/inet/configure.ac: New file.
8327         * sysdeps/unix/inet/configure: New generated file.
8328         * sysdeps/unix/inet/Subdirs: Add libidn.
8329         * Makeconfig (sysdeps-srcdirs): Remove variable.
8330         (+sysdep_dirs): Do not include $(sysdeps-srcdirs).
8331         ($(common-objpfx)config.status): Do not depend on add-on files.
8332         ($(common-objpfx)shlib-versions.v.i): Do not mention add-ons in
8333         comment.
8334         (all-subdirs): Do not include $(add-on-subdirs).
8335         * Makefile (dist-prepare): Do not use $(sysdeps-add-ons).
8336         * config.make.in (add-ons): Remove variable.
8337         (add-on-subdirs): Likewise.
8338         (sysdeps-add-ons): Likewise.
8339         * manual/Makefile (add-chapters): Remove.
8340         ($(objpfx)texis): Do not depend on $(add-chapters).
8341         (nonexamples): Do not handle $(add-chapters).
8342         (examples): Do not handle $(add-ons).
8343         (chapters.% top-menu.%): Do not pass '$(add-chapters)' to
8344         libc-texinfo.sh.
8345         * manual/install.texi (Installation): Do not mention add-ons.
8346         (--enable-add-ons): Do not document configure option.
8347         * INSTALL: Regenerated.
8348         * manual/libc-texinfo.sh: Do not handle $2 add-ons argument.
8349         * manual/maint.texi (Hierarchy Conventions): Do not mention
8350         add-ons.
8351         * scripts/build-many-glibcs.py (Glibc.build_glibc): Do not use
8352         --enable-add-ons.
8353         * scripts/gen-sorted.awk: Do not handle Subdirs files from
8354         add-ons.
8355         * scripts/test-installation.pl: Do not handle glibc-compat add-on.
8356         * sysdeps/nptl/Makeconfig: Do not mention add-ons in comment.
8358 2017-10-05  Andreas Schwab  <schwab@suse.de>
8360         [BZ #15142]
8361         * libio/genops.c (_IO_list_all_stamp): Delete.  All uses removed.
8362         (_IO_flush_all_lockp): Always lock list_all_lock.
8363         (_IO_flush_all_linebuffered): Likewise.
8364         (_IO_unbuffer_all): Likewise.
8366 2017-10-05  Florian Weimer  <fweimer@redhat.com>
8368         [BZ #15436]
8369         Do not flush stdio streams on abort.
8370         * stdlib/abort.c (fflush): Remove macro definition.
8371         (abort): Remove stages related to stdio flushing.
8373 2017-10-05  Florian Weimer  <fweimer@redhat.com>
8375         * gmon/Makefile (CFLAGS-tst-gmon.c): Add -fno-omit-frame-pointer.
8377 2017-10-05  Stefan Liebler  <stli@linux.vnet.ibm.com>
8379         * sysdeps/s390/fpu/libm-test-ulps: Regenerated.
8381 2017-10-05  Florian Weimer  <fweimer@redhat.com>
8383         * support/support_format_hostent.c (support_format_hostent): Add
8384         more error information for NETDB_INTERNAL.
8386 2017-10-04  H.J. Lu  <hongjiu.lu@intel.com>
8388         * config.h.in (NO_HIDDEN_EXTERN_FUNC_IN_PIE): New.
8389         * include/libc-symbols.h (__hidden_proto_hiddenattr): Add check
8390         for PIC and NO_HIDDEN_EXTERN_FUNC_IN_PIE.
8391         * sysdeps/i386/configure.ac (NO_HIDDEN_EXTERN_FUNC_IN_PIE): New
8392         AC_DEFINE if multi-arch is enabled.
8393         * sysdeps/i386/configure: Regenerated.
8395 2017-10-04  H.J. Lu  <hongjiu.lu@intel.com>
8397         * Makeconfig (+link-static-before-libc): Use
8398         $(DEFAULT-LDFLAGS-$(@F)).
8399         * elf/Makefile (CRT-tst-tls1-static-non-pie): New.
8400         (LDFLAGS-tst-tls1-static-non-pie): Renamed to ...
8401         (DEFAULT-LDFLAGS-tst-tls1-static-non-pie): This.
8403 2017-10-04  H.J. Lu  <hongjiu.lu@intel.com>
8405         * elf/Makefile (tests): Add tst-main1.
8406         (modules-names): Add tst-main1mod.
8407         ($(objpfx)tst-main1): New.
8408         (CRT-tst-main1): Likewise.
8409         (LDFLAGS-tst-main1): Likewise.
8410         (LDLIBS-tst-main1): Likewise.
8411         (tst-main1mod.so-no-z-defs): Likewise.
8412         * elf/tst-main1.c: New file.
8413         * elf/tst-main1mod.c: Likewise.
8415 2017-10-04  H.J. Lu  <hongjiu.lu@intel.com>
8417         * math/test-math-iscanonical.cc (do_test): Return errors != 0.
8419 2017-10-04  Joseph Myers  <joseph@codesourcery.com>
8421         * sysdeps/ieee754/dbl-64/s_fma.c: Include <libm-alias-double.h>.
8422         (fma): Define using libm_alias_double.
8423         * sysdeps/ieee754/ldbl-opt/s_fma.c: Remove file.
8424         * sysdeps/sparc/sparc32/fpu/s_fma.c: Do not include
8425         <math_ldbl_opt.h>.
8426         (fmal): Do not define as compat symbol here.
8427         * sysdeps/alpha/fpu/s_fma.c: New file.
8429 2017-10-04  Szabolcs Nagy  <szabolcs.nagy@arm.com>
8431         * sysdeps/aarch64/dl-machine.h (elf_machine_rela): Expand MIN.
8433 2017-10-04  Joseph Myers  <joseph@codesourcery.com>
8435         [BZ #22229]
8436         * sysdeps/sparc/sparc32/fpu/s_copysign.S: Include
8437         <math_ldbl_opt.h>
8438         (copysignl): Define as compat symbol at version GLIBC_2_0 for libm
8439         and libc.
8440         * sysdeps/sparc/sparc32/fpu/s_fabs.S: Include <math_ldbl_opt.h>.
8441         (fabsl): Define as compat symbol at version GLIBC_2_0 for libm.
8442         * sysdeps/sparc/sparc32/fpu/s_fma.c: Include <math_ldbl_opt.h>.
8443         (fmal): Define as compat symbol at version GLIBC_2_1 for libm.
8444         * sysdeps/sparc/sparc32/sparcv9/fpu/multiarch/s_copysign.S:
8445         Include <math_ldbl_opt.h>
8446         (copysignl): Define as compat symbol at version GLIBC_2_0 for libm
8447         and libc.
8448         (compat_symbol): Undefine and redefine.
8449         * sysdeps/sparc/sparc32/sparcv9/fpu/multiarch/s_fabs.S: Include
8450         <math_ldbl_opt.h>
8451         (fabsl): Define as compat symbol at version GLIBC_2_0 for libm.
8452         (compat_symbol): Undefine and redefine.
8453         * sysdeps/sparc/sparc32/sparcv9/fpu/multiarch/s_fma.c
8454         [HAVE_AS_VIS3_SUPPORT]: Include <math_ldbl_opt.h>.
8455         [HAVE_AS_VIS3_SUPPORT] (fmal): Define as compat symbol at version
8456         GLIBC_2_1 for libm.
8457         * sysdeps/unix/sysv/linux/sparc/sparc32/libc.abilist: Add
8458         GLIBC_2.0 copysignl symbol.
8459         * sysdeps/unix/sysv/linux/sparc/sparc32/libm.abilist: Add
8460         GLIBC_2.0 copysignl and fabsl and GLIBC_2.1 fmal symbols.
8462         * sysdeps/alpha/fpu/s_nearbyint.c: Remove file.
8464 2017-10-04  Florian Weimer  <fweimer@redhat.com>
8466         * scripts/check-local-headers.sh: Ignore nspr4 header file
8467         directory in addition to nspr.
8469 2017-10-04  Guido Trentalancia  <guido@trentalancia.net>
8471         [BZ #17956]
8472         * configure.ac (--enable-nss-crypt): Use NSPR include directory.
8473         * configure: Regenerate.
8474         * crypt/Makefile (nss-cpp-flags): New variable.
8475         (CPPFLAGS-sha256-crypt.c, CPPFLAGS-sha512-crypt.c)
8476         (CPPFLAGS-md5-crypt.c): Use it.
8477         * scripts/check-local-headers.sh: Ignore nspr header file
8478         directory.
8480 2017-10-04  Andreas Schwab  <schwab@suse.de>
8482         * nis/Makefile (services): Remove compat.
8483         (libnss_compat-routines, libnss_compat-inhibit-o): Don't define.
8484         ($(objpfx)libnss_compat.so): Remove rule.
8485         * nis/Versions (libnss_compat): Remove.
8486         * nss/Makefile (services): Add compat.
8487         (libnss_compat-routines, libnss_compat-inhibit-o): Define.
8488         * nss/Versions (libnss_compat): Define.
8489         * nss/nss_compat/compat-grp.c: Moved here from nis/nss_compat.
8490         Don't include <rpc/types.h>.  Replace bool_t by bool.
8491         * nss/nss_compat/compat-initgroups.c: Likewise.
8492         * nss/nss_compat/compat-pwd.c: Likewise.  Include "nisdomain.h"
8493         instead of <rpcsrv/ypclnt.h>.
8494         (getpwent_next_nss_netgr): Use __nss_get_default_domain instead of
8495         yp_get_default_domain.
8496         * nss/nss_compat/compat-pwd.c: Likewise.
8497         (getspent_next_nss_netgr): Use __nss_get_default_domain instead of
8498         yp_get_default_domain.
8499         * nss/nss_compat/nisdomain.c: New file.
8500         * nss/nss_compat/nisdomain.h: Likewise.
8502 2017-10-04  Szabolcs Nagy  <szabolcs.nagy@arm.com>
8504         [BZ #22244]
8505         * sysdeps/ieee754/dbl-64/e_jn.c (__ieee754_yn): Fix x == 0 case.
8506         * sysdeps/ieee754/flt-32/e_jnf.c (__ieee754_ynf): Likewise.
8508 2017-10-04  Szabolcs Nagy  <szabolcs.nagy@arm.com>
8510         [BZ #22243]
8511         * sysdeps/ieee754/dbl-64/wordsize-64/e_log10.c (__ieee754_log10): Use fabs.
8512         * sysdeps/ieee754/dbl-64/wordsize-64/e_log2.c (__ieee754_log2): Likewise.
8514 2017-10-03  H.J. Lu  <hongjiu.lu@intel.com>
8516         * sysdeps/i386/start.S: Replace "leal main@GOT(%ebx), %eax" with
8517         "movl main@GOTOFF(%ebx), %eax".
8519 2017-10-03  H.J. Lu  <hongjiu.lu@intel.com>
8521         * sysdeps/i386/dl-machine.h (elf_machine_load_address): Don't
8522         allow undefined _DYNAMIC in PIE libc.a.
8523         * sysdeps/x86_64/dl-machine.h (elf_machine_load_address):
8524         Likewse.
8526 2017-10-03  H.J. Lu  <hongjiu.lu@intel.com>
8528         * sysdeps/mips/dl-machine.h (elf_machine_load_address): Don't
8529         check _DYNAMIC.
8531 2017-10-03  H.J. Lu  <hongjiu.lu@intel.com>
8533         * sysdeps/arm/dl-machine.h (elf_machine_load_address): Don't
8534         check _DYNAMIC.
8536 2017-10-03  H.J. Lu  <hongjiu.lu@intel.com>
8538         * math/test-math-iscanonical.cc (error): Replace bool with int.
8540 2017-10-03  Joseph Myers  <joseph@codesourcery.com>
8542         * sysdeps/ieee754/dbl-64/s_modf.c: Include <libm-alias-double.h>.
8543         (modf): Define using libm_alias_double, only if [!__modf].
8544         * sysdeps/ieee754/dbl-64/wordsize-64/s_modf.c: Include
8545         <libm-alias-double.h>.
8546         (modf): Define using libm_alias_double, only if [!__modf].
8547         * sysdeps/ieee754/ldbl-opt/s_modf.c (modfl): Only define libc
8548         compat symbol here.
8549         * sysdeps/powerpc/powerpc32/power4/fpu/multiarch/s_modf-ppc32.c
8550         (weak_alias): Do not undefine and redefine.
8551         (strong_alias): Likewise.
8552         * sysdeps/powerpc/powerpc64/fpu/multiarch/s_modf-ppc64.c
8553         (weak_alias): Likewise.
8554         (strong_alias): Likewise.
8556         * sysdeps/ieee754/dbl-64/s_logb.c: Include <libm-alias-double.h>.
8557         (logb): Define using libm_alias_double, only if [!__logb].
8558         * sysdeps/ieee754/dbl-64/wordsize-64/s_logb.c: Include
8559         <libm-alias-double.h>.
8560         (logb): Define using libm_alias_double, only if [!__logb].
8561         * sysdeps/ieee754/ldbl-opt/s_logb.c: Remove file.
8562         * sysdeps/powerpc/powerpc32/power4/fpu/multiarch/s_logb-ppc32.c
8563         (weak_alias): Do not undefine and redefine.
8564         (strong_alias): Likewise.
8565         * sysdeps/powerpc/powerpc64/fpu/multiarch/s_logb-ppc64.c
8566         (weak_alias): Likewise.
8567         (strong_alias): Likewise.
8569 2017-10-03  H.J. Lu  <hongjiu.lu@intel.com>
8571         * sysdeps/unix/sysv/linux/tile/sysdep.h (SYSCALL_ERROR_NAME):
8572         Check SHARED instead PIC.
8574 2017-10-03  Joseph Myers  <joseph@codesourcery.com>
8576         * sysdeps/ieee754/dbl-64/s_fmaf.c: Include <libm-alias-float.h>.
8577         [!__fmaf] (fmaf): Define using libm_alias_float.
8579         * sysdeps/ieee754/dbl-64/s_frexp.c: Include <libm-alias-double.h>.
8580         (frexp): Define using libm_alias_double.
8581         * sysdeps/ieee754/dbl-64/wordsize-64/s_frexp.c: Include
8582         <libm-alias-double.h>.
8583         (frexp): Define using libm_alias_double.
8584         * sysdeps/ieee754/ldbl-opt/s_frexp.c (frexpl): Only define libc
8585         compat symbol here.
8587 2017-10-03  Gabriel F. T. Gomes  <gabriel@inconstante.eti.br>
8589         [BZ #22235]
8590         * math/math.h: Trivial fix for unbalanced parentheses in comment.
8591         * math/Makefile [CXX] (tests): Add test-math-iscanonical.cc.
8592         (CFLAGS-test-math-iscanonical.cc): New variable.
8593         * math/test-math-iscanonical.cc: New file.
8594         * sysdeps/ieee754/ldbl-96/bits/iscanonical.h (iscanonical):
8595         Provide a C++ implementation based on function overloading,
8596         rather than using __MATH_TG, which uses C-only builtins.
8597         * sysdeps/ieee754/ldbl-128ibm/bits/iscanonical.h (iscanonical):
8598         Likewise.
8599         * sysdeps/powerpc/powerpc64le/Makefile
8600         (CFLAGS-test-math-iscanonical.cc): New variable.
8602 2017-10-03  Joseph Myers  <joseph@codesourcery.com>
8604         * sysdeps/ieee754/dbl-64/s_ceil.c: Include <libm-alias-double.h>.
8605         (ceil): Define using libm_alias_double.
8606         * sysdeps/ieee754/dbl-64/s_floor.c: Include <libm-alias-double.h>.
8607         (floor): Define using libm_alias_double.
8608         * sysdeps/ieee754/dbl-64/s_llround.c: Include
8609         <libm-alias-double.h>.
8610         (llround): Define using libm_alias_double.
8611         * sysdeps/ieee754/dbl-64/s_lround.c: Include
8612         <libm-alias-double.h>.
8613         (lround): Define using libm_alias_double.
8614         * sysdeps/ieee754/dbl-64/s_nearbyint.c: Include
8615         <libm-alias-double.h>.
8616         (nearbyint): Define using libm_alias_double.
8617         * sysdeps/ieee754/dbl-64/s_remquo.c: Include
8618         <libm-alias-double.h>.
8619         (remquo): Define using libm_alias_double.
8620         * sysdeps/ieee754/dbl-64/s_rint.c: Include <libm-alias-double.h>.
8621         (rint): Define using libm_alias_double.
8622         * sysdeps/ieee754/dbl-64/s_round.c: Include <libm-alias-double.h>.
8623         (round): Define using libm_alias_double.
8624         * sysdeps/ieee754/dbl-64/s_trunc.c: Include <libm-alias-double.h>.
8625         (trunc): Define using libm_alias_double.
8626         * sysdeps/ieee754/dbl-64/wordsize-64/s_ceil.c: Include
8627         <libm-alias-double.h>.
8628         (ceil): Define using libm_alias_double.
8629         * sysdeps/ieee754/dbl-64/wordsize-64/s_floor.c: Include
8630         <libm-alias-double.h>.
8631         (floor): Define using libm_alias_double.
8632         * sysdeps/ieee754/dbl-64/wordsize-64/s_llround.c: Include
8633         <libm-alias-double.h>.
8634         (llround): Define using libm_alias_double.
8635         [_LP64] (lround): Likewise.
8636         * sysdeps/ieee754/dbl-64/wordsize-64/s_lround.c: Include
8637         <libm-alias-double.h>.
8638         [!_LP64] (lround): Define using libm_alias_double.
8639         * sysdeps/ieee754/dbl-64/wordsize-64/s_nearbyint.c: Include
8640         <libm-alias-double.h>.
8641         (nearbyint): Define using libm_alias_double.
8642         * sysdeps/ieee754/dbl-64/wordsize-64/s_remquo.c: Include
8643         <libm-alias-double.h>.
8644         (remquo): Define using libm_alias_double.
8645         * sysdeps/ieee754/dbl-64/wordsize-64/s_rint.c: Include
8646         <libm-alias-double.h>.
8647         (rint): Define using libm_alias_double.
8648         * sysdeps/ieee754/dbl-64/wordsize-64/s_round.c: Include
8649         <libm-alias-double.h>.
8650         (round): Define using libm_alias_double.
8651         * sysdeps/ieee754/dbl-64/wordsize-64/s_trunc.c: Include
8652         <libm-alias-double.h>.
8653         (trunc): Define using libm_alias_double.
8654         * sysdeps/ieee754/ldbl-opt/s_ceil.c: Remove file.
8655         * sysdeps/ieee754/ldbl-opt/s_floor.c: Likewise.
8656         * sysdeps/ieee754/ldbl-opt/s_llround.c: Likewise.
8657         * sysdeps/ieee754/ldbl-opt/s_lround.c: Likewise.
8658         * sysdeps/ieee754/ldbl-opt/s_nearbyint.c: Likewise.
8659         * sysdeps/ieee754/ldbl-opt/s_remquo.c: Likewise.
8660         * sysdeps/ieee754/ldbl-opt/s_rint.c: Likewise.
8661         * sysdeps/ieee754/ldbl-opt/s_round.c: Likewise.
8662         * sysdeps/ieee754/ldbl-opt/s_trunc.c: Likewise.
8664 2017-10-03  Szabolcs Nagy  <szabolcs.nagy@arm.com>
8666         * math/w_remainder.c: New file.
8667         * math/w_remainderf.c: New file.
8668         * math/w_remainderl.c: New file.
8670 2017-10-03  H.J. Lu  <hongjiu.lu@intel.com>
8672         * elf/rtld.c (BOOTSTRAP_MAP): New.
8673         (RESOLVE_MAP): Replace (&bootstrap_map) with BOOTSTRAP_MAP.
8674         * sysdeps/hppa/dl-machine.h (ELF_MACHINE_BEFORE_RTLD_RELOC):
8675         Likewise.
8676         * sysdeps/ia64/dl-machine.h (ELF_MACHINE_BEFORE_RTLD_RELOC):
8677         Likewise.
8678         * sysdeps/mips/dl-machine.h (ELF_MACHINE_BEFORE_RTLD_RELOC):
8679         Likewise.
8681 2017-10-03  Samuel Thibault  <samuel.thibault@ens-lyon.org>
8683         * include/libc-symbols.h [NO_RTLD_HIDDEN] (rtld_hidden_proto,
8684         rtld_hidden_tls_proto, rtld_hidden_def, rtld_hidden_weak,
8685         rtld_hidden_rtld_hidden_ver, data_def, rtld_hidden_data_weak,
8686         rtld_hidden_data_ver): Define to empty.
8687         * include/assert.h [IS_IN(rtld) && NO_RTLD_HIDDEN] (__assert_fail,
8688         __assert_perror_fail): Likewise.
8689         * include/dirent.h [IS_IN(rtld) && NO_RTLD_HIDDEN]
8690         (__rewinddir): Likewise.
8691         * include/libc-internal.h [IS_IN(rtld) && NO_RTLD_HIDDEN]
8692         (__profile_frequency): Likewise.
8693         * include/setjmp.h (__sigsetjmp): Likewise.
8694         * include/signal.h [IS_IN(rtld) && NO_RTLD_HIDDEN] (__sigaction,
8695         __libc_sigaction): Likewise.
8696         * include/stdlib.h [NO_RTLD_HIDDEN] (unsetenv, __strtoul_internal): Do
8697         not set hidden attribute.
8698         * include/string.h [IS_IN(rtld) && NO_RTLD_HIDDEN] (__stpcpy, __strdup,
8699         __strerror_t, __strsep_g, memchr, memcmp, memcpy, memmove, memset,
8700         rawmemchr, stpcpy, strchr, strcmp, strlen, strnlen, strsep): Likewise.
8701         * include/sys/stat.h [IS_IN(rtld) && NO_RTLD_HIDDEN] (__fxstat,
8702         __fxstat64, __lxstat, __lxstat64, __xstat, __xstat64,
8703         __fxstatat64): Likewise.
8704         * include/sys/utsname.h [IS_IN(rtld) && NO_RTLD_HIDDEN]
8705         (__uname): Likewise.
8706         * include/sysdeps/generic/_itoa.h [IS_IN(rtld) && NO_RTLD_HIDDEN]
8707         (_itoa_upper_digits, _itoa_lower_digits): Likewise.
8708         * sysdeps/mach/hurd/configure.ac (NO_HIDDEN): Do not set.
8709         (NO_RTLD_HIDDEN): Set.
8710         * sysdeps/mach/hurd/configure: Refresh.
8711         * config.h.in: Refresh.
8713 2017-10-02  Joseph Myers  <joseph@codesourcery.com>
8715         * sysdeps/ieee754/dbl-64/s_atan.c: Include <libm-alias-double.h>.
8716         (atan): Define using libm_alias_double.
8717         * sysdeps/ieee754/dbl-64/s_tan.c: Include <libm-alias-double.h>.
8718         (tan): Define using libm_alias_double.
8719         * sysdeps/ieee754/ldbl-opt/s_atan.c: Remove file.
8720         * sysdeps/ieee754/ldbl-opt/s_tan.c: Likewise.
8722         * sysdeps/ieee754/dbl-64/s_atan.c (atan): Rename to __atan and
8723         define as weak alias of __atan.  Do not define any aliases if
8724         [__atan].
8725         [NO_LONG_DOUBLE] (__atanl): Define as strong alias of __atan.
8726         [NO_LONG_DOUBLE] (atanl): Define as weak alias of __atanl.
8727         * sysdeps/ieee754/dbl-64/s_tan.c (tan): Rename to __tan and define
8728         as weak alias of __tan.  Do not define any aliases if [__tan].
8729         [NO_LONG_DOUBLE] (__tanl): Define as strong alias of __tan.
8730         [NO_LONG_DOUBLE] (tanl): Define as weak alias of __tanl.
8731         * sysdeps/x86_64/fpu/multiarch/s_atan-avx.c (atan): Rename to
8732         __atan.
8733         * sysdeps/x86_64/fpu/multiarch/s_atan-fma.c (atan): Likewise.
8734         * sysdeps/x86_64/fpu/multiarch/s_atan-fma4.c (atan): Likewise.
8735         * sysdeps/x86_64/fpu/multiarch/s_atan.c (atan): Rename to __atan
8736         and define as weak alias of __atan.
8737         * sysdeps/x86_64/fpu/multiarch/s_tan-avx.c (tan): Rename to
8738         __atan.
8739         * sysdeps/x86_64/fpu/multiarch/s_tan-fma.c (tan): Likewise.
8740         * sysdeps/x86_64/fpu/multiarch/s_tan-fma4.c (tan): Likewise.
8741         * sysdeps/x86_64/fpu/multiarch/s_tan.c (tan): Rename to __tan and
8742         define as weak alias of __tan.
8744 2017-10-02  Szabolcs Nagy  <szabolcs.nagy@arm.com>
8746         * math/w_lgamma.c: New file.
8747         * math/w_lgammaf.c: New file.
8748         * math/w_lgammal.c: New file.
8750 2017-10-02  Szabolcs Nagy  <szabolcs.nagy@arm.com>
8752         * sysdeps/ieee754/flt-32/e_log2f.c (__log2f): Define without wrapper.
8753         * sysdeps/ieee754/flt-32/e_logf.c (__logf): Likewise
8754         * sysdeps/ieee754/flt-32/e_powf.c (__powf): Likewise
8755         * sysdeps/ieee754/flt-32/w_log2f.c: New file.
8756         * sysdeps/ieee754/flt-32/w_logf.c: New file.
8757         * sysdeps/ieee754/flt-32/w_powf.c: New file.
8758         * sysdeps/i386/fpu/w_log2f.c: New file.
8759         * sysdeps/i386/fpu/w_logf.c: New file.
8760         * sysdeps/i386/fpu/w_powf.c: New file.
8761         * sysdeps/m68k/m680x0/fpu/w_log2f.c: New file.
8762         * sysdeps/m68k/m680x0/fpu/w_logf.c: New file.
8763         * sysdeps/m68k/m680x0/fpu/w_powf.c: New file.
8765 2017-10-02  Szabolcs Nagy  <szabolcs.nagy@arm.com>
8766             H.J. Lu  <hongjiu.lu@intel.com>
8768         * sysdeps/ieee754/flt-32/e_exp2f.c (__exp2f): Define without wrapper.
8769         * sysdeps/ieee754/flt-32/e_expf.c (__expf): Likewise
8770         * sysdeps/ieee754/flt-32/w_exp2f.c: New file.
8771         * sysdeps/ieee754/flt-32/w_expf.c: New file.
8772         * sysdeps/powerpc/powerpc64/fpu/multiarch/e_expf-ppc64.c: Update for
8773         the new expf code.
8774         * sysdeps/powerpc/powerpc64/fpu/multiarch/w_expf.c: New file.
8775         * sysdeps/powerpc/powerpc64/power8/fpu/w_expf.c: New file.
8776         * sysdeps/m68k/m680x0/fpu/w_exp2f.c: New file.
8777         * sysdeps/m68k/m680x0/fpu/w_expf.c: New file.
8778         * sysdeps/i386/fpu/w_exp2f.c: New file.
8779         * sysdeps/i386/fpu/w_expf.c: New file.
8780         * sysdeps/i386/i686/fpu/multiarch/w_expf.c: New file.
8781         * sysdeps/x86_64/fpu/w_expf.c: New file.
8783 2017-10-02  Szabolcs Nagy  <szabolcs.nagy@arm.com>
8785         * math/Versions (logf): New libm symbol at GLIBC_2.27.
8786         (log2f): Likewise.
8787         (powf): Likewise.
8788         * math/w_log2f.c: New file.
8789         * math/w_logf.c: New file.
8790         * math/w_powf.c: New file.
8791         * math/w_log2f_compat.c (__log2f_compat): For compat symbol only.
8792         * math/w_logf_compat.c (__logf_compat): Likewise.
8793         * math/w_powf_compat.c (__powf_compat): Likewise.
8794         * sysdeps/ia64/fpu/e_log2f.S: Add versioned symbols.
8795         * sysdeps/ia64/fpu/e_logf.S: Likewise.
8796         * sysdeps/ia64/fpu/e_powf.S: Likewise.
8797         * sysdeps/unix/sysv/linux/aarch64/libm.abilist: Update.
8798         * sysdeps/unix/sysv/linux/alpha/libm.abilist: Likewise.
8799         * sysdeps/unix/sysv/linux/arm/libm.abilist: Likewise.
8800         * sysdeps/unix/sysv/linux/hppa/libm.abilist: Likewise.
8801         * sysdeps/unix/sysv/linux/i386/libm.abilist: Likewise.
8802         * sysdeps/unix/sysv/linux/ia64/libm.abilist: Likewise.
8803         * sysdeps/unix/sysv/linux/m68k/coldfire/libm.abilist: Likewise.
8804         * sysdeps/unix/sysv/linux/m68k/m680x0/libm.abilist: Likewise.
8805         * sysdeps/unix/sysv/linux/microblaze/libm.abilist: Likewise.
8806         * sysdeps/unix/sysv/linux/mips/mips32/libm.abilist: Likewise.
8807         * sysdeps/unix/sysv/linux/mips/mips64/libm.abilist: Likewise.
8808         * sysdeps/unix/sysv/linux/nios2/libm.abilist: Likewise.
8809         * sysdeps/unix/sysv/linux/powerpc/powerpc32/fpu/libm.abilist:
8810         Likewise.
8811         * sysdeps/unix/sysv/linux/powerpc/powerpc32/nofpu/libm.abilist:
8812         Likewise.
8813         * sysdeps/unix/sysv/linux/powerpc/powerpc64/libm-le.abilist:
8814         Likewise.
8815         * sysdeps/unix/sysv/linux/powerpc/powerpc64/libm.abilist:
8816         Likewise.
8817         * sysdeps/unix/sysv/linux/s390/s390-32/libm.abilist: Likewise.
8818         * sysdeps/unix/sysv/linux/s390/s390-64/libm.abilist: Likewise.
8819         * sysdeps/unix/sysv/linux/sh/libm.abilist: Likewise.
8820         * sysdeps/unix/sysv/linux/sparc/sparc32/libm.abilist: Likewise.
8821         * sysdeps/unix/sysv/linux/sparc/sparc64/libm.abilist: Likewise.
8822         * sysdeps/unix/sysv/linux/tile/tilegx/tilegx32/libm.abilist:
8823         Likewise.
8824         * sysdeps/unix/sysv/linux/tile/tilegx/tilegx64/libm.abilist:
8825         Likewise.
8826         * sysdeps/unix/sysv/linux/tile/tilepro/libm.abilist: Likewise.
8827         * sysdeps/unix/sysv/linux/x86_64/64/libm.abilist: Likewise.
8828         * sysdeps/unix/sysv/linux/x86_64/x32/libm.abilist: Likewise.
8830 2017-10-02  Rajalakshmi Srinivasaraghavan  <raji@linux.vnet.ibm.com>
8832         * sysdeps/powerpc/powerpc64/multiarch/Makefile
8833         (sysdep_routines): Add memrchr_power8.
8834         * sysdeps/powerpc/powerpc64/multiarch/ifunc-impl-list.c
8835         (memrchr): Add __memrchr_power8 to list of memrchr functions.
8836         * sysdeps/powerpc/powerpc64/multiarch/memrchr-power8.S:
8837         New file.
8838         * sysdeps/powerpc/powerpc64/multiarch/memrchr.c
8839         (memrchr): Add __memrchr_power8 to ifunc list.
8840         * sysdeps/powerpc/powerpc64/power8/memrchr.S: New file.
8842 2017-10-01  H.J. Lu  <hongjiu.lu@intel.com>
8844         [BZ #18822]
8845         * sysdeps/unix/sysv/linux/posix_fadvise64.c
8846         (__posix_fadvise64_l64): Add Add libc_hidden_proto and
8847         libc_hidden_def.
8848         * sysdeps/unix/sysv/linux/posix_fallocate64.c
8849         (__posix_fallocate64_l64): Likewise.
8851 2017-10-01  H.J. Lu  <hongjiu.lu@intel.com>
8853         [BZ #18822]
8854         * sysdeps/unix/sysv/linux/sched_setaffinity.c
8855         (__sched_setaffinity_new): Add libc_hidden_proto and
8856         libc_hidden_def.
8858 2017-10-01  H.J. Lu  <hongjiu.lu@intel.com>
8860         [BZ #18822]
8861         * include/glob.h (__glob64): Add libc_hidden_proto.
8862         * sysdeps/unix/sysv/linux/glob64.c (__glob64): Add
8863         libc_hidden_def.
8865 2017-10-01  H.J. Lu  <hongjiu.lu@intel.com>
8867         [BZ #18822]
8868         * sysdeps/unix/sysv/linux/getrlimit64.c (__new_getrlimit): Add
8869         attribute_hidden.
8871 2017-10-01  H.J. Lu  <hongjiu.lu@intel.com>
8873         [BZ #18822]
8874         * stdlib/exit.h (__new_exitfn): Add attribute_hidden.
8876 2017-10-01  H.J. Lu  <hongjiu.lu@intel.com>
8878         [BZ #18822]
8879         * mon/gmon.c (__moncontrol): Add libc_hidden_proto and
8880         libc_hidden_def.
8882 2017-10-01  H.J. Lu  <hongjiu.lu@intel.com>
8884         [BZ #18822]
8885         * csu/version.c (__libc_print_version): Add attribute_hidden.
8887 2017-10-01  H.J. Lu  <hongjiu.lu@intel.com>
8889         [BZ #18822]
8890         * include/libc-internal.h (__init_misc): Add attribute_hidden.
8892 2017-10-01  H.J. Lu  <hongjiu.lu@intel.com>
8894         [BZ #18822]
8895         * include/fpu_control.h (__setfpucw): Add attribute_hidden.
8897 2017-10-01  H.J. Lu  <hongjiu.lu@intel.com>
8899         [BZ #18822]
8900         * nscd/nscd_helper.c (__nis_hash): New prototype.
8902 2017-10-01  H.J. Lu  <hongjiu.lu@intel.com>
8904         [BZ #18822]
8905         * include/termios.h (__tcgetattr): Add libc_hidden_proto.
8906         * sysdeps/unix/bsd/tcgetattr.c (__tcgetattr): Add
8907         libc_hidden_def.
8908         * sysdeps/unix/sysv/linux/tcgetattr.c (__tcgetattr): Likewise.
8909         * termios/tcgetattr.c (__tcgetattr): Likewise.
8911 2017-10-01  H.J. Lu  <hongjiu.lu@intel.com>
8913         [BZ #18822]
8914         * include/sys/resource.h (__setrlimit): Add libc_hidden_proto.
8915         * resource/setrlimit.c (__setrlimit): Add libc_hidden_def.
8916         * sysdeps/mach/hurd/setrlimit.c (__setrlimit): Likewise.
8917         * sysdeps/unix/sysv/linux/setrlimit.c (__setrlimit): Likewise.
8918         * sysdeps/unix/sysv/linux/setrlimit64.c (__GI___setrlimit): New.
8920 2017-10-01  H.J. Lu  <hongjiu.lu@intel.com>
8922         [BZ #18822]
8923         * include/monetary.h (__vstrfmon_l): Add attribute_hidden.
8925 2017-10-01  H.J. Lu  <hongjiu.lu@intel.com>
8927         [BZ #18822]
8928         * include/sched.h (__sched_setparam): Add libc_hidden_proto.
8929         * posix/sched_setp.c (__sched_setparam): Add libc_hidden_def.
8931 2017-10-01  H.J. Lu  <hongjiu.lu@intel.com>
8933         [BZ #18822]
8934         * intl/hash-string.h (__hash_string): Add attribute_hidden.
8936 2017-10-01  H.J. Lu  <hongjiu.lu@intel.com>
8938         [BZ #18822]
8939         * include/mntent.h (__hasmntopt): Add libc_hidden_proto.
8940         * misc/mntent_r.c (__hasmntopt): Add libc_hidden_def.
8942 2017-10-01  H.J. Lu  <hongjiu.lu@intel.com>
8944         [BZ #18822]
8945         * include/ifreq.h: New file.
8946         * sysdeps/generic/ifreq.h (__if_nextreq): Removed.
8947         (__ifreq): Likewise.
8948         * sysdeps/mach/hurd/ifreq.h (__if_nextreq): Removed.
8949         (__ifreq): Likewise.
8951 2017-10-01  H.J. Lu  <hongjiu.lu@intel.com>
8953         [BZ #18822]
8954         * include/idna.h: New file.
8955         * inet/getnameinfo.c: Include <idna.h> instead of
8956         <libidn/idna.h>.
8957         (__idna_to_unicode_lzlz): Removed.
8958         * sysdeps/posix/getaddrinfo.c: Include <idna.h> instead of
8959         <libidn/idna.h>.
8960         (__idna_to_ascii_lz): Removed.
8961         (__idna_to_unicode_lzlz): Likewise.
8963 2017-10-01  H.J. Lu  <hongjiu.lu@intel.com>
8965         [BZ #18822]
8966         * include/plural-exp.h: New file.
8967         * intl/plural-exp.c: Include <plural-exp.h> instead of
8968         "plural-exp.h".
8970 2017-10-01  H.J. Lu  <hongjiu.lu@intel.com>
8972         [BZ #18822]
8973         * sysdeps/unix/sysv/linux/getsourcefilter.c: Include
8974         "getsourcefilter.h".
8975         * sysdeps/unix/sysv/linux/getsourcefilter.h: New file.
8976         * sysdeps/unix/sysv/linux/setsourcefilter.c: Include
8977         "getsourcefilter.h".
8978         (__get_sol): Removed.
8980 2017-10-01  H.J. Lu  <hongjiu.lu@intel.com>
8982         [BZ #18822]
8983         * elf/dl-iteratephdr.c (hidden_proto (__dl_iterate_phdr)): Moved
8984         to ...
8985         * include/link.h (hidden_proto (__dl_iterate_phdr)): Here.
8987 2017-10-01  H.J. Lu  <hongjiu.lu@intel.com>
8989         [BZ #18822]
8990         * sysdeps/unix/sysv/linux/getpt.c (__bsd_getpt): Add
8991         attribute_hidden.
8993 2017-10-01  H.J. Lu  <hongjiu.lu@intel.com>
8995         [BZ #18822]
8996         * libio/iolibio.h (__fopen_maybe_mmap): Add attribute_hidden.
8998 2017-10-01  H.J. Lu  <hongjiu.lu@intel.com>
9000         [BZ #18822]
9001         * include/search.h (__tdestroy): Add libc_hidden_proto.
9002         * misc/tsearch.c (__tdestroy): Add libc_hidden_def.
9004 2017-10-01  H.J. Lu  <hongjiu.lu@intel.com>
9006         [BZ #18822]
9007         * include/assert.h (__assert_fail_base): Add attribute_hidden.
9009 2017-10-01  H.J. Lu  <hongjiu.lu@intel.com>
9011         [BZ #18822]
9012         * sysdeps/unix/sysv/linux/include/sys/sysinfo.h (__sysinfo): Add
9013         attribute_hidden.
9015 2017-10-01  H.J. Lu  <hongjiu.lu@intel.com>
9017         [BZ #18822]
9018         * include/signal.h (__kill): Add libc_hidden_proto.
9019         (__sigblock): Likewise.
9020         (__sigprocmask): Likewise.
9021         (__sigaltstack): Likewise.
9022         * signal/kill.c (__kill): Add libc_hidden_def.
9023         * signal/sigblock.c (__sigblock): Likewise.
9024         * signal/sigprocmask.c (__sigprocmask): Likewise.
9025         * sysdeps/mach/hurd/kill.c (__kill): Likewise.
9026         * sysdeps/mach/hurd/sigaltstack.c (__sigaltstack): Likewise.
9027         * sysdeps/mach/hurd/sigprocmask.c (__sigprocmask): Likewise.
9028         * sysdeps/posix/sigblock.c (__sigblock): Likewise.
9029         * sysdeps/unix/sysv/linux/alpha/sigprocmask.c (__sigprocmask):
9030         Likewise.
9031         * sysdeps/unix/sysv/linux/ia64/sigprocmask.c (__sigprocmask):
9032         Likewise.
9033         * sysdeps/unix/sysv/linux/s390/s390-64/sigprocmask.c
9034         (__sigprocmask): Likewise.
9035         * sysdeps/unix/sysv/linux/sigprocmask.c (__sigprocmask):
9036         Likewise.
9037         * /sysdeps/unix/sysv/linux/sparc/sparc64/sigprocmask.c
9038         (__sigprocmask): Likewise.
9039         * sysdeps/unix/sysv/linux/x86_64/sigprocmask.c (__sigprocmask):
9040         Likewise.
9042 2017-10-01  H.J. Lu  <hongjiu.lu@intel.com>
9044         [BZ #18822]
9045         * include/string.h (__strsep): Add libc_hidden_proto.
9046         * string/strsep.c (__strsep): Add libc_hidden_def.
9048 2017-10-01  H.J. Lu  <hongjiu.lu@intel.com>
9050         [BZ #18822]
9051         * posix/spawn_int.h (__posix_spawn_file_actions_realloc): Add
9052         attribute_hidden.
9053         (__spawni): Likewise.
9055 2017-10-01  H.J. Lu  <hongjiu.lu@intel.com>
9057         [BZ #18822]
9058         * include/sys/mman.h (__mremap): Add libc_hidden_proto.
9059         * sysdeps/unix/sysv/linux/m68k/mremap.S (__mremap): Add
9060         libc_hidden_def.
9062 2017-10-01  H.J. Lu  <hongjiu.lu@intel.com>
9064         [BZ #18822]
9065         * include/malloc.h (__malloc_check_init): Add attribute_hidden.
9067 2017-10-01  H.J. Lu  <hongjiu.lu@intel.com>
9069         [BZ #18822]
9070         * include/sys/ioctl.h (__ioctl): Add libc_hidden_proto.
9071         * misc/ioctl.c (__ioctl): Add libc_hidden_def.
9072         * sysdeps/mach/hurd/ioctl.c (__ioctl): Likewise.
9073         * sysdeps/unix/sysv/linux/aarch64/ioctl.S (__ioctl): Likewise.
9074         * sysdeps/unix/sysv/linux/mips/mips64/n64/ioctl.S (__ioctl):
9075         Likewise.
9076         * sysdeps/unix/sysv/linux/powerpc/ioctl.c (__ioctl): Likewise.
9077         * sysdeps/unix/sysv/linux/tile/tilegx/ioctl.S (__ioctl): Likewise.
9079 2017-10-01  H.J. Lu  <hongjiu.lu@intel.com>
9081         [BZ #18822]
9082         * intl/gettextP.h (__dcngettext): Add attribute_hidden.
9083         (__dcigettext): Likewise.
9085 2017-10-01  H.J. Lu  <hongjiu.lu@intel.com>
9087         [BZ #18822]
9088         * include/sys/sysinfo.h (__get_nprocs_conf): Add
9089         libc_hidden_proto.
9090         (__get_nprocs): Likewise.
9091         (__get_phys_pages): Likewise.
9092         (__get_avphys_pages): Likewise.
9093         (__get_child_max): Add attribute_hidden.
9094         * misc/getsysstats.c (__get_nprocs_conf): Add libc_hidden_def.
9095         (__get_nprocs): Likewise.
9096         (__get_phys_pages): Likewise.
9097         (__get_avphys_pages): Likewise.
9098         * sysdeps/mach/getsysstats.c (__get_nprocs_conf): Add
9099         libc_hidden_def.
9100         (__get_nprocs): Likewise.
9101         (__get_phys_pages): Likewise.
9102         (__get_avphys_pages): Likewise.
9103         * sysdeps/unix/sysv/linux/getsysstats.c (__get_nprocs): Add
9104         libc_hidden_def.
9105         (__get_nprocs_conf): Likewise.
9106         (__get_phys_pages): Likewise.
9107         (__get_avphys_pages): Likewise.
9109 2017-10-01  H.J. Lu  <hongjiu.lu@intel.com>
9111         [BZ #18822]
9112         * sysdeps/unix/sysv/linux/netlinkaccess.h (__netlink_open): Add
9113         attribute_hidden.
9114         (__netlink_close): Likewise.
9115         (__netlink_free_handle): Likewise.
9116         (__netlink_request): Likewise.
9118 2017-10-01  H.J. Lu  <hongjiu.lu@intel.com>
9120         [BZ #18822]
9121         * include/rpc/rpc.h (__rpc_thread_variables): Add
9122         attribute_hidden.
9123         (__rpc_thread_svc_cleanup): Likewise.
9124         (__rpc_thread_clnt_cleanup): Likewise.
9125         (__rpc_thread_key_cleanup): Likewise.
9127 2017-10-01  H.J. Lu  <hongjiu.lu@intel.com>
9129         [BZ #18822]
9130         * include/sys/uio.h (__readv): Add libc_hidden_proto.
9131         (__writev): Likewise.
9132         * misc/readv.c (__readv): Add libc_hidden_def.
9133         * misc/writev.c (__writev): Likewise.
9134         * sysdeps/posix/readv.c (__readv): Likewise.
9135         * sysdeps/posix/writev.c (__writev): Likewise.
9136         * sysdeps/unix/sysv/linux/readv.c: Include <sys/uio.h>.
9137         (__readv): Likewise.
9138         * sysdeps/unix/sysv/linux/writev.c: Include <sys/uio.h>.
9139         (__writev): Likewise.
9141 2017-10-01  H.J. Lu  <hongjiu.lu@intel.com>
9143         [BZ #18822]
9144         * include/regex.h (__re_compile_fastmap): Add attribute_hidden.
9145         (__regcomp): Add libc_hidden_proto.
9146         (__regexec): Likewise.
9147         (__regfree): Likewise.
9148         * posix/regcomp.c (__regcomp): Add libc_hidden_def.
9149         (__regfree): Likewise.
9150         * posix/regexec.c (__regexec): Likewise.
9152 2017-10-01  H.J. Lu  <hongjiu.lu@intel.com>
9154         [BZ #18822]
9155         * include/utmp.h (__updwtmp): Add libc_hidden_proto.
9156         (__getutent): Likewise.
9157         (__getutid): Likewise.
9158         (__getutline): Likewise.
9159         (__pututline): Likewise.
9160         (__getutent_r): Likewise.
9161         (__getutid_r): Likewise.
9162         (__getutline_r): Likewise.
9163         (__utmpname): Add attribute_hidden.
9164         (__setutent): Likewise.
9165         (__endutent): Likewise.
9166         * login/getutent.c (__getutent): Add libc_hidden_def.
9167         * login/getutent_r.c (__getutent_r): Likewise.
9168         (__pututline): Likewise.
9169         * login/getutid.c (__getutid): Likewise.
9170         * login/getutid_r.c (__getutid_r): Likewise.
9171         * login/getutline.c (__getutline): Likewise.
9172         * login/getutline_r.c (__getutline_r): Likewise.
9173         * login/updwtmp.c (__updwtmp): Likewise.
9175 2017-10-01  H.J. Lu  <hongjiu.lu@intel.com>
9177         [BZ #18822]
9178         * include/dirent.h (__opendir): Always add attribute_hidden.
9179         (__fdopendir): Likewise.
9180         (__closedir): Likewise.
9181         (__readdir): Likewise.
9182         (__readdir64): Add libc_hidden_proto.
9183         * sysdeps/mach/hurd/readdir64.c (__readdir64): Add libc_hidden_def.
9184         * sysdeps/unix/sysv/linux/i386/readdir64.c (__readdir64): Likewise.
9185         * sysdeps/unix/sysv/linux/readdir64.c (__readdir64): Likewise.
9186         * sysdeps/unix/sysv/linux/wordsize-64/readdir.c (__GI___readdir64):
9187         New alias.
9189 2017-10-01  H.J. Lu  <hongjiu.lu@intel.com>
9191         [BZ #18822]
9192         * include/aliases.h (__getaliasbyname_r): Add attribute_hidden.
9193         * include/netdb.h (__gethostbyaddr_r): Likewise.
9194         (__gethostbyname_r): Likewise.
9195         (__gethostbyname2_r): Likewise.
9196         (__getnetbyaddr_r): Likewise.
9197         (__getnetbyname_r): Likewise.
9198         (__getservbyname_r): Likewise.
9199         (__getservbyport_r): Likewise.
9200         (__getprotobyname_r): Likewise.
9201         (__getprotobynumber_r): Likewise.
9202         (__getnetgrent_r): Likewise.
9203         * include/rpc/netdb.h (__getrpcbyname_r): Likewise.
9204         (__getrpcbynumber_r): Likewise.
9205         * nss/getXXbyYY.c (INTERNAL (REENTRANT_NAME)): Likewise.
9207 2017-10-01  H.J. Lu  <hongjiu.lu@intel.com>
9209         [BZ #18822]
9210         * include/stdio.h (__fcloseall): Add attribute_hidden.
9211         (__getline): Likewise.
9212         (__path_search): Likewise.
9213         (__gen_tempname): Likewise.
9214         (__libc_message): Likewise.
9215         (__flockfile): Likewise.
9216         (__funlockfile): Likewise.
9217         (__fxprintf): Likewise.
9218         (__fxprintf_nocancel): Likewise.
9220 2017-10-01  H.J. Lu  <hongjiu.lu@intel.com>
9222         [BZ #18822]
9223         * include/gshadow.h (__fgetsgent_r): Add attribute_hidden.
9224         (__sgetsgent_r): Likewise.
9226 2017-10-01  H.J. Lu  <hongjiu.lu@intel.com>
9228         [BZ #18822]
9229         * include/sys/statfs.h (__fstatfs): Add attribute_hidden.
9230         (__statfs64): Likewise.
9231         (__fstatfs64): Likewise.
9232         * include/sys/statvfs.h (__statvfs64): Likewise.
9233         (__fstatvfs64): Likewise.
9234         * sysdeps/unix/sysv/linux/pathconf.h (__statfs_link_max): Likewise.
9235         (__statfs_filesize_max): Likewise.
9236         (__statfs_symlinks): Likewise.
9237         (__statfs_chown_restricted): Likewise.
9239 2017-10-01  H.J. Lu  <hongjiu.lu@intel.com>
9241         [BZ #18822]
9242         * include/time.h (__tzstring): Add attribute_hidden.
9243         (__tzfile_read): Likewise.
9244         (__tzfile_compute): Likewise.
9245         (__tzfile_default): Likewise.
9246         (__tzset_parse_tz): Likewise.
9247         (__offtime): Likewise.
9248         (__asctime_r): Likewise.
9249         (__tzset): Likewise.
9250         (__tz_convert): Likewise.
9251         (__getdate_r): Likewise.
9252         (__getclktck): Likewise.
9254 2017-10-01  H.J. Lu  <hongjiu.lu@intel.com>
9256         [BZ #18822]
9257         * nscd/nscd-client.h (__nscd_get_map_ref): Add attribute_hidden.
9258         (__nscd_unmap): Likewise.
9259         (__nscd_cache_search): Likewise.
9260         (__nscd_get_nl_timestamp): Likewise.
9261         (__nscd_getpwnam_r): Likewise.
9262         (__nscd_getpwuid_r): Likewise.
9263         (__nscd_getgrnam_r): Likewise.
9264         (__nscd_getgrgid_r): Likewise.
9265         (__nscd_gethostbyname_r): Likewise.
9266         (__nscd_gethostbyname2_r): Likewise.
9267         (__nscd_gethostbyaddr_r): Likewise.
9268         (__nscd_getai): Likewise.
9269         (__nscd_getgrouplist): Likewise.
9270         (__nscd_getservbyname_r): Likewise.
9271         (__nscd_getservbyport_r): Likewise.
9272         (__nscd_innetgr): Likewise.
9273         (__nscd_setnetgrent): Likewise.
9275 2017-10-01  H.J. Lu  <hongjiu.lu@intel.com>
9277         [BZ #18822]
9278         * include/gmp.h: Declare internal functions only if _ISOMAC is
9279         undefined.
9280         (__mpn_extract_double): Add attribute_hidden.
9281         (__mpn_extract_long_double): Likewise.
9282         (__mpn_extract_float128): Likewise.
9283         (__mpn_construct_float): Likewise.
9284         (__mpn_construct_double): Likewise.
9285         (__mpn_construct_long_double): Likewise.
9286         (__mpn_construct_float128): Likewise.
9287         (mpn_add_1): Likewise.
9288         (mpn_addmul_1): Likewise.
9289         (mpn_add_n): Likewise.
9290         (mpn_cmp): Likewise.
9291         (mpn_divrem): Likewise.
9292         (mpn_lshift): Likewise.
9293         (mpn_mul): Likewise.
9294         (mpn_mul_1): Likewise.
9295         (mpn_rshift): Likewise.
9296         (mpn_sub_1): Likewise.
9297         (mpn_submul_1): Likewise.
9298         (mpn_sub_n): Likewise.
9300 2017-10-01  H.J. Lu  <hongjiu.lu@intel.com>
9302         [BZ #18822]
9303         * include/wchar.h (__wcsnlen): Add attribute_hidden.
9304         (__wcscat): Likewise.
9305         (__btowc): Likewise.
9306         (__wcrtomb): Likewise.
9307         (__mbsrtowcs): Likewise.
9308         (__wcsrtombs): Likewise.
9309         (__mbsnrtowcs): Likewise.
9310         (__wcsnrtombs): Likewise.
9311         (__wcsncpy): Likewise.
9312         (__wcpncpy): Likewise.
9313         (__wmemcpy): Likewise.
9314         (__wmempcpy): Likewise.
9315         (__wmemmove): Likewise.
9316         (__wcschrnul): Likewise.
9317         (__vfwscanf): Likewise.
9318         (__vswprintf): Likewise.
9319         (__fwprintf): Likewise.
9320         (__vfwprintf): Likewise.
9322 2017-10-01  H.J. Lu  <hongjiu.lu@intel.com>
9324         [BZ #18822]
9325         * include/grp.h (__fgetgrent_r): Add attribute_hidden.
9326         (__getgrgid_r): Likewise.
9327         (__getgrnam_r): Likewise.
9328         * include/pwd.h (__getpwuid_r): Likewise.
9329         (__getpwnam_r): Likewise.
9330         (__fgetpwent_r): Likewise.
9331         * include/shadow.h (__getspnam_r): Likewise.
9332         (__sgetspent_r): Likewise.
9333         (__fgetspent_r): Likewise.
9335 2017-10-01  H.J. Lu  <hongjiu.lu@intel.com>
9337         [BZ #18822]
9338         * include/unistd.h (__access): Add attribute_hidden.
9339         (__lseek64): Likewise.
9340         (__libc_pread64): Likewise.
9341         (__pipe2): Likewise.
9342         (__sleep): Likewise.
9343         (__chdir): Likewise.
9344         (__fchdir): Likewise.
9345         (__getcwd): Likewise.
9346         (__rmdir): Likewise.
9347         (__execvpe): Likewise.
9348         (__execve): Likewise.
9349         (__setsid): Likewise.
9350         (__getuid): Likewise.
9351         (__geteuid): Likewise.
9352         (__getgid): Likewise.
9353         (__getegid): Likewise.
9354         (__getgroups): Likewise.
9355         (__group_member): Likewise.
9356         (__ttyname_r): Likewise.
9357         (__isatty): Likewise.
9358         (__readlink): Likewise.
9359         (__unlink): Likewise.
9360         (__gethostname): Likewise.
9361         (__profil): Likewise.
9362         (__getdtablesize): Likewise.
9363         (__brk): Likewise.
9364         (__ftruncate): Likewise.
9365         (__ftruncate64): Likewise.
9367 2017-10-01  H.J. Lu  <hongjiu.lu@intel.com>
9369         [BZ #18822]
9370         * argp/argp-fmtstream.c: Include <argp-fmtstream.h>.
9371         * argp/argp-fs-xinl.c: Likewise.
9372         * argp/argp-help.c: Include <argp.h> and <argp-fmtstream.h>.
9373         * argp/argp-parse.c: Include <argp.h>.
9374         * argp/argp-xinl.c: Likewise.
9375         * include/argp-fmtstream.h: New file.
9376         * include/argp.h (__argp_error): Add attribute_hidden.
9377         (__argp_failure): Likewise.
9378         (__argp_input): Likewise.
9379         (__argp_state_help): Likewise.
9381 2017-10-01  H.J. Lu  <hongjiu.lu@intel.com>
9383         [BZ #18822]
9384         * include/wchar.h (____wcstof_l_internal): New prototype.
9385         (____wcstod_l_internal): Likewise.
9386         (____wcstold_l_internal): Likewise.
9387         (____wcstol_l_internal): Likewise.
9388         (____wcstoul_l_internal): Likewise.
9389         (____wcstoll_l_internal): Likewise.
9390         (____wcstoull_l_internal): Likewise.
9391         (____wcstof128_l_internal): Likewise.
9392         * sysdeps/ieee754/float128/wcstof128.c
9393         (____wcstof128_l_internal): Removed.
9394         * sysdeps/ieee754/float128/wcstof128_l.c
9395         (____wcstof128_l_internal): Likewise.
9396         * wcsmbs/wcstod.c (____wcstod_l_internal): Likewise.
9397         * wcsmbs/wcstod_l.c (____wcstod_l_internal): Likewise.
9398         * wcsmbs/wcstof.c (____wcstof_l_internal): Likewise.
9399         * wcsmbs/wcstof_l.c (____wcstof_l_internal): Likewise.
9400         * wcsmbs/wcstol_l.c (____wcstol_l_internal): Likewise.
9401         * wcsmbs/wcstold.c (____wcstold_l_internal): Likewise.
9402         * wcsmbs/wcstold_l.c (____wcstold_l_internal): Likewise.
9403         * wcsmbs/wcstoll_l.c (____wcstoll_l_internal): Likewise.
9404         * wcsmbs/wcstoul_l.c (____wcstoul_l_internal): Likewise.
9405         * wcsmbs/wcstoull_l.c (____wcstoull_l_internal): Likewise.
9407 2017-10-01  H.J. Lu  <hongjiu.lu@intel.com>
9409         [BZ #18822]
9410         * sysdeps/unix/sysv/linux/fstatvfs.c: Include "internal_statvfs.h"
9411         instead of <sys/statvfs.h>.
9412         (__internal_statvfs): Removed.
9413         * sysdeps/unix/sysv/linux/fstatvfs64.c Include "internal_statvfs.h"
9414         instead of <sys/statvfs.h>.
9415         (__internal_statvfs64): Removed.
9416         * sysdeps/unix/sysv/linux/internal_statvfs.c: Include
9417         "internal_statvfs.h" instead of <sys/statvfs.h>.
9418         * sysdeps/unix/sysv/linux/internal_statvfs.h: New file.
9419         * sysdeps/unix/sysv/linux/statvfs.c Include "internal_statvfs.h"
9420         instead of <sys/statvfs.h>.
9421         (__internal_statvfs): Removed.
9422         * sysdeps/unix/sysv/linux/statvfs64.c Include "internal_statvfs.h"
9423         instead of <sys/statvfs.h>.
9424         (__internal_statvfs64): Removed.
9426 2017-10-01  H.J. Lu  <hongjiu.lu@intel.com>
9428         [BZ #18822]
9429         * iconv/gconv_int.h (__gconv_open): Add attribute_hidden.
9430         (__gconv_close): Likewise.
9431         (__gconv): Likewise.
9432         (__gconv_find_transform): Likewise.
9433         (__gconv_lookup_cache): Likewise.
9434         (__gconv_compare_alias_cache): Likewise.
9435         (__gconv_load_cache): Likewise.
9436         (__gconv_get_path): Likewise.
9437         (__gconv_close_transform): Likewise.
9438         (__gconv_release_cache): Likewise.
9439         (__gconv_find_shlib): Likewise.
9440         (__gconv_release_shlib): Likewise.
9441         (__gconv_get_builtin_trans): Likewise.
9442         (__gconv_compare_alias): Likewise.
9443         * include/dlfcn.h (_dlerror_run): Likewise.
9444         * include/stdio.h (__fortify_fail_abort): Likewise.
9445         * include/time.h (__tz_compute): Likewise.
9446         (__strptime_internal): Likewise.
9447         * intl/gettextP.h (_nl_find_domain): Likewise.
9448         (_nl_load_domain): Likewise.
9449         (_nl_find_msg): Likewise.
9450         * intl/plural-exp.h (FREE_EXPRESSION): Likewise.
9451         (EXTRACT_PLURAL_EXPRESSION): Likewise.
9452         * locale/coll-lookup.h (__collidx_table_lookup): Likewise.
9453         * resolv/gai_misc.h (__gai_enqueue_request): Likewise.
9454         (__gai_find_request): Likewise.
9455         (__gai_remove_request): Likewise.
9456         (__gai_notify): Likewise.
9457         (__gai_notify_only): Likewise.
9458         * sysdeps/generic/aio_misc.h (__aio_sigqueue): Likewise.
9459         * sysdeps/generic/ldsodefs.h (_dl_fini): Likewise.
9460         (_dl_non_dynamic_init): Likewise.
9461         (_dl_aux_init): Likewise.
9462         * sysdeps/i386/machine-gmon.h (mcount_internal): Likewise.
9463         * sysdeps/unix/sysv/linux/i386/olddirent.h (__old_getdents64):
9464         Likewise.
9465         * wcsmbs/wcsmbsload.h (__wcsmbs_load_conv): Likewise.
9466         (__wcsmbs_clone_conv): Likewise.
9467         (__wcsmbs_named_conv): Likewise.
9469 2017-10-01  H.J. Lu  <hongjiu.lu@intel.com>
9471         [BZ #18822]
9472         * include/stdlib.h (__random): Add attribute_hidden.
9473         (__random_r): Likewise.
9474         (__srandom_r): Likewise.
9475         (__initstate_r): Likewise.
9476         (__setstate_r): Likewise.
9477         (__erand48_r): Likewise.
9478         (__nrand48_r): Likewise.
9479         (__jrand48_r): Likewise.
9480         (__srand48_r): Likewise.
9481         (__seed48_r): Likewise.
9482         (__lcong48_r): Likewise.
9483         (__drand48_iterate): Likewise.
9484         (__setenv): Likewise.
9485         (__unsetenv): Likewise.
9486         (__clearenv): Likewise.
9487         (__ptsname_r): Likewise.
9488         (__posix_openpt): Likewise.
9489         (__add_to_environ): Likewise.
9490         (__realpath): Add libc_hidden_proto.
9491         (__ecvt_r): Likewise.
9492         (__fcvt_r): Likewise.
9493         (__qecvt_r): Likewise.
9494         (__qfcvt_r): Likewise.
9495         * misc/efgcvt_r.c (cvt_symbol_1): Add libc_hidden_def (local).
9496         * stdlib/canonicalize.c (__realpath): Add libc_hidden_def.
9498 2017-10-01  H.J. Lu  <hongjiu.lu@intel.com>
9500         [BZ #18822]
9501         * include/stdlib.h (__ptsname_internal): Add attribute_hidden.
9502         * include/time.h (__mktime_internal): Likewise.
9503         * libio/iolibio.h (__fopen_internal): Likewise.
9505 2017-10-01  John David Anglin  <danglin@gcc.gnu.org>
9507         * sysdeps/unix/sysv/linux/hppa/getcontext.S (__getcontext): Save return
9508         pointer in frame.
9509         * sysdeps/unix/sysv/linux/hppa/setcontext.S (__setcontext): Likewise.
9510         Correct offset used to restore PIC register.
9512 2017-09-30  John David Anglin  <danglin@gcc.gnu.org>
9514         [BZ libc/22165]
9515         * sysdeps/unix/sysv/linux/hppa/getcontext.S (__getcontext): Use PIC
9516         code to load address of __getcontext_ret when generating PIC code.
9518 2017-09-30  H.J. Lu  <hongjiu.lu@intel.com>
9520         * elf/Makefile (tests-static-internal): Add
9521         tst-tls1-static-non-pie.
9522         (LDFLAGS-tst-tls1-static-non-pie): New.
9523         * elf/tst-tls1-static-non-pie.c: New file.
9525 2017-09-29  Joseph Myers  <joseph@codesourcery.com>
9527         * sysdeps/ieee754/dbl-64/s_asinh.c: Include <libm-alias-double.h>.
9528         (asinh): Define using libm_alias_double.
9529         * sysdeps/ieee754/dbl-64/s_cbrt.c: Include <libm-alias-double.h>.
9530         (cbrt): Define using libm_alias_double.
9531         * sysdeps/ieee754/dbl-64/s_copysign.c: Include
9532         <libm-alias-double.h>.
9533         (copysign): Define using libm_alias_double.
9534         * sysdeps/ieee754/dbl-64/s_erf.c: Include <libm-alias-double.h>.
9535         (erf): Define using libm_alias_double.
9536         (erfc): Likewise.
9537         * sysdeps/ieee754/dbl-64/s_expm1.c: Include <libm-alias-double.h>.
9538         (expm1): Define using libm_alias_double.
9539         * sysdeps/ieee754/dbl-64/s_fabs.c: Include <libm-alias-double.h>.
9540         (fabs): Define using libm_alias_double.
9541         * sysdeps/ieee754/dbl-64/s_fromfp.c (fromfp): Define using
9542         libm_alias_double.
9543         * sysdeps/ieee754/dbl-64/s_fromfp_main.c: Include
9544         <libm-alias-double.h>.
9545         * sysdeps/ieee754/dbl-64/s_fromfpx.c (fromfpx): Define using
9546         libm_alias_double.
9547         * sysdeps/ieee754/dbl-64/s_getpayload.c: Include
9548         <libm-alias-double.h>.
9549         (getpayload): Define using libm_alias_double.
9550         * sysdeps/ieee754/dbl-64/s_llrint.c: Include
9551         <libm-alias-double.h>.
9552         (llrint): Define using libm_alias_double.
9553         * sysdeps/ieee754/dbl-64/s_lrint.c: Include <libm-alias-double.h>.
9554         (lrint): Define using libm_alias_double.
9555         * sysdeps/ieee754/dbl-64/s_nextup.c: Include
9556         <libm-alias-double.h>.
9557         (nextup): Define using libm_alias_double.
9558         * sysdeps/ieee754/dbl-64/s_roundeven.c: Include
9559         <libm-alias-double.h>.
9560         (roundeven): Define using libm_alias_double.
9561         * sysdeps/ieee754/dbl-64/s_setpayload.c (setpayload): Define using
9562         libm_alias_double.
9563         * sysdeps/ieee754/dbl-64/s_setpayload_main.c: Include
9564         <libm-alias-double.h>.
9565         * sysdeps/ieee754/dbl-64/s_setpayloadsig.c (setpayloadsig): Define
9566         using libm_alias_double.
9567         * sysdeps/ieee754/dbl-64/s_sin.c: Include <libm-alias-double.h>.
9568         (cos): Define using libm_alias_double.
9569         (sin): Likewise.
9570         * sysdeps/ieee754/dbl-64/s_sincos.c: Include
9571         <libm-alias-double.h>.
9572         (sincos): Define using libm_alias_double.
9573         * sysdeps/ieee754/dbl-64/s_tanh.c: Include <libm-alias-double.h>.
9574         (tanh): Define using libm_alias_double.
9575         * sysdeps/ieee754/dbl-64/s_totalorder.c: Include
9576         <libm-alias-double.h>.
9577         (totalorder): Define using libm_alias_double.
9578         * sysdeps/ieee754/dbl-64/s_totalordermag.c: Include
9579         <libm-alias-double.h>.
9580         (totalordermag): Define using libm_alias_double.
9581         * sysdeps/ieee754/dbl-64/s_ufromfp.c (ufromfp): Define using
9582         libm_alias_double.
9583         * sysdeps/ieee754/dbl-64/s_ufromfpx.c (ufromfpx): Define using
9584         libm_alias_double.
9585         * sysdeps/ieee754/dbl-64/wordsize-64/s_getpayload.c: Include
9586         <libm-alias-double.h>.
9587         (getpayload): Define using libm_alias_double.
9588         * sysdeps/ieee754/dbl-64/wordsize-64/s_roundeven.c: Include
9589         <libm-alias-double.h>.
9590         (roundeven): Define using libm_alias_double.
9591         * sysdeps/ieee754/dbl-64/wordsize-64/s_setpayload_main.c: Include
9592         <libm-alias-double.h>.
9593         * sysdeps/ieee754/dbl-64/wordsize-64/s_totalorder.c: Include
9594         <libm-alias-double.h>.
9595         (totalorder): Define using libm_alias_double.
9596         * sysdeps/ieee754/dbl-64/wordsize-64/s_totalordermag.c: Include
9597         <libm-alias-double.h>.
9598         (totalordermag): Define using libm_alias_double.
9599         * sysdeps/ieee754/ldbl-opt/s_copysign.c (copysignl): Only define
9600         libc compat symbol here.
9601         * sysdeps/ieee754/ldbl-opt/s_asinh.c: Remove file.
9602         * sysdeps/ieee754/ldbl-opt/s_cbrt.c: Likewise.
9603         * sysdeps/ieee754/ldbl-opt/s_erf.c: Likewise.
9604         * sysdeps/ieee754/ldbl-opt/s_expm1.c: Likewise.
9605         * sysdeps/ieee754/ldbl-opt/s_fabs.c: Likewise.
9606         * sysdeps/ieee754/ldbl-opt/s_llrint.c: Likewise.
9607         * sysdeps/ieee754/ldbl-opt/s_lrint.c: Likewise.
9608         * sysdeps/ieee754/ldbl-opt/s_sin.c: Likewise.
9609         * sysdeps/ieee754/ldbl-opt/s_sincos.c: Likewise.
9610         * sysdeps/ieee754/ldbl-opt/s_tanh.c: Likewise.
9612 2017-09-29  H.J. Lu  <hongjiu.lu@intel.com>
9614         * sysdeps/arm/dl-machine.h (elf_machine_load_address): Use
9615         _dl_relocate_static_pie instead of _dl_start to compute load
9616         address in static PIE.  Return 0 if _DYNAMIC is undefined for
9617         static executable.
9619 2017-09-29  H.J. Lu  <hongjiu.lu@intel.com>
9621         * sysdeps/mips/dl-machine.h (elf_machine_dynamic): Return 0 if
9622         _DYNAMIC is undefined for static executable.
9624 2017-09-29  H.J. Lu  <hongjiu.lu@intel.com>
9626         * sysdeps/arm/start.S (_start): Check PIC instead of SHARED.
9628 2017-09-29  Joseph Myers  <joseph@codesourcery.com>
9630         * sysdeps/x86_64/fpu/libm-test-ulps: Update.
9632 2017-09-29  Wilco Dijkstra  <wdijkstr@arm.com>
9634         * sysdeps/ieee754/dbl-64/e_lgamma_r.c
9635         (__ieee754_lgamma_r): Use fabs rather than __fabs.
9636         * sysdeps/ieee754/dbl-64/e_log10.c (__ieee754_log10): Likewise.
9637         * sysdeps/ieee754/dbl-64/e_log2.c (__ieee754_log2): Likewise.
9638         * sysdeps/ieee754/flt-32/e_lgammaf_r.c
9639         (__ieee754_lgammaf_r): Use fabsf rather than __fabsf.
9640         * sysdeps/ieee754/flt-32/e_log10f.c (__ieee754_log10f): Likewise.
9641         * sysdeps/ieee754/flt-32/e_log2f.c (__ieee754_log2f): Likewise.
9642         * sysdeps/ieee754/ldbl-128/e_lgammal_r.c
9643         (__ieee754_lgammal_r): Use fabsl rather than __fabsl.
9644         * sysdeps/ieee754/ldbl-128/e_log10l.c (__ieee754_log10l): Likewise.
9645         * sysdeps/ieee754/ldbl-128/e_log2l.c (__ieee754_log2l): Likewise.
9646         * sysdeps/ieee754/ldbl-128ibm/e_lgammal_r.c
9647         (__ieee754_lgammal_r): Use fabsl rather than __fabsl.
9648         * sysdeps/ieee754/ldbl-128ibm/e_log10l.c (__ieee754_log10l): Likewise.
9649         * sysdeps/ieee754/ldbl-128ibm/e_log2l.c (__ieee754_log2l): Likewise.
9650         * sysdeps/powerpc/nofpu/Makefile: Add -fno-builtin-fabsl for BZ #29253.
9652 2017-09-29  Wilco Dijkstra  <wdijkstr@arm.com>
9654         * math/bits/cmathcalls.h (cimag): Remove inline.
9655         (creal): Remove inline.
9656         (conj): Remove inline.
9658 2017-09-29  Szabolcs Nagy  <szabolcs.nagy@arm.com>
9660         * math/Makefile (type-float-routines): Add e_powf_log2_data.
9661         * sysdeps/ieee754/flt-32/e_powf.c: New implementation.
9662         * sysdeps/ieee754/flt-32/e_powf_log2_data.c: New file.
9663         * sysdeps/ieee754/flt-32/math_config.h (__powf_log2_data): Define.
9664         (issignalingf_inline): Likewise.
9665         (POWF_LOG2_TABLE_BITS): Likewise.
9666         (POWF_LOG2_POLY_ORDER): Likewise.
9667         (POWF_SCALE_BITS): Likewise.
9668         (POWF_SCALE): Likewise.
9669         * sysdeps/i386/fpu/e_powf_log2_data.c: New file.
9670         * sysdeps/ia64/fpu/e_powf_log2_data.c: New file.
9671         * sysdeps/m68k/m680x0/fpu/e_powf_log2_data.c: New file.
9673 2017-09-29  Szabolcs Nagy  <szabolcs.nagy@arm.com>
9675         * math/Makefile (type-float-routines): Add e_log2f_data.
9676         * sysdeps/ieee754/flt-32/e_log2f.c: New implementation.
9677         * sysdeps/ieee754/flt-32/e_log2f_data.c: New file.
9678         * sysdeps/ieee754/flt-32/math_config.h (__log2f_data): Define.
9679         (LOG2F_TABLE_BITS, LOG2F_POLY_ORDER): Define.
9680         * sysdeps/i386/fpu/e_log2f_data.c: New file.
9681         * sysdeps/ia64/fpu/e_log2f_data.c: New file.
9682         * sysdeps/m68k/m680x0/fpu/e_log2f_data.c: New file.
9684 2017-09-29  Szabolcs Nagy  <szabolcs.nagy@arm.com>
9686         * math/Makefile (type-float-routines): Add e_logf_data.
9687         * sysdeps/ieee754/flt-32/e_logf.c: New implementation.
9688         * sysdeps/ieee754/flt-32/e_logf_data.c: New file.
9689         * sysdeps/ieee754/flt-32/math_config.h (__logf_data): Define.
9690         (LOGF_TABLE_BITS, LOGF_POLY_ORDER): Define.
9691         * sysdeps/i386/fpu/e_logf_data.c: New file.
9692         * sysdeps/ia64/fpu/e_logf_data.c: New file.
9693         * sysdeps/m68k/m680x0/fpu/e_logf_data.c: New file.
9695 2017-09-28  H.J. Lu  <hongjiu.lu@intel.com>
9697         * sysdeps/i386/dl-machine.h (elf_machine_load_address): Allow
9698         undefined _DYNAMIC in PIE libc.a.
9699         * sysdeps/x86_64/dl-machine.h (elf_machine_load_address):
9700         Likewse.
9702 2017-09-28  Wilco Dijkstra  <wdijkstr@arm.com>
9704         * sysdeps/alpha/fpu/bits/mathinline.h: Delete file.
9705         * sysdeps/ia64/fpu/bits/mathinline.h: Delete file.
9706         * sysdeps/m68k/coldfire/fpu/bits/mathinline.h: Delete file.
9707         * sysdeps/m68k/m680x0/fpu/bits/mathinline.h: (__signbitf): Remove.
9708         (__signbit): Remove.
9709         (__signbitl): Remove.
9710         * sysdeps/powerpc/bits/mathinline.h (__signbitf): Remove.
9711         (__signbit): Remove.
9712         (__signbitl): Remove.
9713         * sysdeps/s390/fpu/bits/mathinline.h: (__signbitf): Remove.
9714         (__signbit): Remove.
9715         (__signbitl): Remove.
9716         * sysdeps/sparc/fpu/bits/mathinline.h (__signbitf): Remove.
9717         (__signbit): Remove.
9718         (__signbitl): Remove.
9719         * sysdeps/tile/bits/mathinline.h: Delete file.
9720         * sysdeps/x86/fpu/bits/mathinline.h (__signbitf): Remove.
9721         (__signbit): Remove.
9722         (__signbitl): Remove.
9724 2017-09-28  Wilco Dijkstra  <wdijkstr@arm.com>
9726         * math/math.h: Improve handling of C99 isgreater macros.
9727         * sysdeps/alpha/fpu/bits/mathinline.h: Remove isgreater macros.
9728         * sysdeps/m68k/m680x0/fpu/bits/mathinline.h: Likewise.
9729         * sysdeps/powerpc/bits/mathinline.h: Likewise.
9730         * sysdeps/sparc/fpu/bits/mathinline.h: Likewise.
9731         * sysdeps/x86/fpu/bits/mathinline.h: Likewise.
9733 2017-09-28  Szabolcs Nagy  <szabolcs.nagy@arm.com>
9735         * sysdeps/aarch64/libm-test-ulps: Update.
9737 2017-09-28  Joseph Myers  <joseph@codesourcery.com>
9739         [BZ #22225]
9740         * sysdeps/ieee754/dbl-64/s_nearbyint.c (__nearbyint): Use
9741         math_opt_barrier on argument when doing arithmetic on it.
9742         * sysdeps/ieee754/dbl-64/wordsize-64/s_nearbyint.c (__nearbyint):
9743         Likewise.  Use math_force_eval not math_opt_barrier after
9744         arithmetic.
9745         * sysdeps/ieee754/flt-32/s_nearbyintf.c (__nearbyintf): Use
9746         math_opt_barrier on argument when doing arithmetic on it.
9747         * sysdeps/ieee754/ldbl-128/s_nearbyintl.c (__nearbyintl):
9748         Likewise.
9750 2017-09-27  H.J. Lu  <hongjiu.lu@intel.com>
9752         * sysdeps/unix/sysv/linux/ifaddrs.c (__getifaddrs): Add
9753         libc_hidden_def.
9754         (__freeifaddrs): Likewise.
9756 2017-09-27  Samuel Thibault  <samuel.thibault@ens-lyon.org>
9758         * include/dirent.h (__dirfd): New declaration.
9759         * dirent/dirfd.c (dirfd): Rename to __dirfd, and redefine as weak
9760         alias.
9761         * sysdeps/posix/dirfd/dirfd.c (dirfd): Likewise.
9762         * sysdeps/mach/hurd/dirfd.c (dirfd): Likewise.
9763         * io/ftw.c (open_dir_stream, ftw_dir): Use __dirfd instead of dirfd.
9764         * include/unistd.h (__revoke): New declaration.
9765         * misc/revoke.c (revoke): Rename to __revoke, and redefine as weak
9766         alias.
9767         * sysdeps/mach/hurd/revoke.c (revoke): Likewise.
9768         * sysdeps/unix/bsd/unlockpt.c (unlockpt): Use __revoke instead of
9769         revoke.
9770         * include/dirent.h (__seekdir): New declaration.
9771         * sysdeps/mach/hurd/seekdir.c (seekdir): Rename to __seekdir and
9772         redefine as weak alias.
9773         * sysdeps/mach/hurd/rewinddir.c (__rewinddir): Use __seekdir instead
9774         of seekdir.
9775         * include/ifaddrs.h (__getifaddrs, __freeifaddrs): New declarations,
9776         and use libc_hidden_def on them.
9777         * inet/ifaddrs.c (__getifaddrs, __freeifaddrs): Use libc_hidden_def on
9778         them.
9779         * sysdeps/gnu/ifaddrs.c (__getifaddrs, __freeifaddrs): Likewise.
9780         * inet/check_pf.c (__check_pf): Use __getifaddrs and __freeifaddrs
9781         instead of getifaddrs and freeifaddrs.
9783 2017-09-26  H.J. Lu  <hongjiu.lu@intel.com>
9785         [BZ #18822]
9786         * dlfcn/modatexit.c (foo): Remove __dso_handle check.
9787         * dlfcn/modcxaatexit.c: Include <dso_handle.h>.
9788         (__dso_handle): Remove declaration.
9789         * dlfcn/tstatexit.c (__dso_handle): Removed.
9790         (main): Don't check __dso_handle.
9791         * dlfcn/tstcxaatexit.c (__dso_handle): Removed.
9792         (main): Don't check __dso_handle.
9793         * include/dso_handle.h: New file.
9794         * malloc/mtrace.c: Include <dso_handle.h>.
9795         (mtrace): Pass __dso_handle directly.
9796         * nptl/pthread_atfork.c: Include <dso_handle.h>.
9797         (__dso_handle): Remove declaration.
9798         (__pthread_atfork): Pass __dso_handle directly.
9799         * nptl/tst-atfork2mod.c: Include <dso_handle.h>.
9800         (__dso_handle): Removed.
9801         * posix/wordexp-test.c: Include <dso_handle.h>.
9802         (__dso_handle): Remove declaration.
9803         (__app_register_atfork): Pass __dso_handle directly.
9804         * stdlib/at_quick_exit.c: Include <dso_handle.h>.
9805         (__dso_handle): Remove declaration.
9806         (at_quick_exit): Pass __dso_handle directly.
9807         * stdlib/atexit.c: Include <dso_handle.h>.
9808         (__dso_handle): Remove declaration.
9809         (atexit): Pass __dso_handle directly.
9810         * stdlib/tst-tls-atexit-lib.c: Include <dso_handle.h>.
9811         (__dso_handle): Removed.
9813 2017-09-26  Joseph Myers  <joseph@codesourcery.com>
9815         * sysdeps/unix/make-syscalls.sh: Use __ifunc to define symbols
9816         using VDSO.
9818 2017-09-26  Alexey Makhalov  <amakhalov@vmware.com>
9820         * elf/dl-tunables.c (do_tunable_update_val): Range checking fix.
9821         * scripts/gen-tunables.awk: Set unspecified minval and/or maxval
9822         values to correct default value for given type.
9824 2017-09-26  H.J. Lu  <hongjiu.lu@intel.com>
9826         [BZ #22101]
9827         * elf/Makefile (tests): Add tst-debug1.
9828         ($(objpfx)tst-debug1): New.
9829         ($(objpfx)tst-debug1.out): Likewise.
9830         ($(objpfx)tst-debug1mod1.so): Likewise.
9831         * elf/dl-load.c (_dl_map_object_from_fd): Skip PT_DYNAMIC segment
9832         with p_filesz == 0.
9833         * elf/tst-debug1.c: New file.
9835 2017-09-26  Joseph Myers  <joseph@codesourcery.com>
9837         * sysdeps/sparc/sparc-ifunc.h [!__ASSEMBLER__] (sparc_libm_ifunc):
9838         Define using __ifunc.
9840 2017-09-26  Tulio Magno Quites Machado Filho  <tuliom@linux.vnet.ibm.com>
9842         * sysdeps/powerpc/fpu/libm-test-ulps: Regenerate expf() and
9843         exp2f() values.
9845 2017-09-26  Joseph Myers  <joseph@codesourcery.com>
9847         [BZ #22156]
9848         * sysdeps/ia64/stackinfo.h (DEFAULT_STACK_PERMS): Likewise.
9850 2017-09-26  Florian Weimer  <fweimer@redhat.com>
9852         * resolv/Makefile (tests-internal): Fix typo in comment.
9854 2017-09-26  Florian Weimer  <fweimer@redhat.com>
9856         * resolv/nss_dns/dns-host.c: Fix typo in comment.
9858 2017-09-25  Adhemerval Zanella  <adhemerval.zanella@linaro.org>
9860         * lib/malloc/scratch_buffer.h (struct scratch_buffer):
9861         Use an union instead of a max_align_t array for __space,
9862         so that __space is the same size on all platforms.
9863         * malloc/scratch_buffer_grow_preserve.c
9864         (__libc_scratch_buffer_grow_preserve): Likewise.
9866         [BZ #22183]
9867         * include/gnu-versions.h (_GNU_GLOB_INTERFACE_VERSION): Increase
9868         version to 2.
9869         * posix/Makefile (routines): Add glob-lstat-compat and
9870         glob64-lstat-compat.
9871         * posix/Versions (GLIBC_2.27, glob, glob64): Add symbol version.
9872         * posix/glob-lstat-compat.c: New file.
9873         * posix/glob64-lstat-compat.c: Likewise.
9874         * posix/tst-glob_lstat_compat.c: Likewise.
9875         * sysdeps/unix/sysv/linux/glob-lstat-compat.c: Likewise.
9876         * sysdeps/unix/sysv/linux/alpha/glob-lstat-compat.c: Likewise.
9877         * sysdeps/unix/sysv/linux/glob64-lstat-compat.c: Likewise.
9878         * sysdeps/unix/sysv/linux/s390/s390-32/glob64-lstat-compat.c:
9879         Likewise.
9880         * sysdeps/unix/sysv/linux/alpha/glob.c: Remove file.
9881         * sysdeps/unix/sysv/linux/s390/s390-32/glob64.c: Likewise.
9882         * posix/glob.c (glob_lstat): New function.
9883         (glob): Rename to __glob and add versioned symbol to 2.27.
9884         (glob_in_dir): Use glob_lstat.
9885         * posix/glob64.c (glob64): Add GLOB_ATTRIBUTE.
9886         * sysdeps/unix/sysv/linux/arm/libc.abilist: Likewise.
9887         * sysdeps/unix/sysv/linux/glob.c (glob): Add versioned symbol for
9888         2.27.
9889         * sysdeps/unix/sysv/linux/glob64.c (glob64): Likewise.
9890         * sysdeps/unix/sysv/linux/oldglob.c (GLOB_NO_LSTAT): Define.
9891         * sysdeps/unix/sysv/linux/alpha/oldglob.c (__old_glob): Do not use
9892         gl_lstat on glob call.
9893         * sysdeps/unix/sysv/linux/aarch64/libc.abilist: Add GLIBC_2.27 glob
9894         and glob64 symbols.
9895         * sysdeps/unix/sysv/linux/alpha/libc.abilist: Likewise.
9896         * sysdeps/unix/sysv/linux/hppa/libc.abilist: Likewise.
9897         * sysdeps/unix/sysv/linux/i386/libc.abilist: Likewise.
9898         * sysdeps/unix/sysv/linux/ia64/libc.abilist: Likewise.
9899         * sysdeps/unix/sysv/linux/m68k/coldfire/libc.abilist: Likewise.
9900         * sysdeps/unix/sysv/linux/m68k/m680x0/libc.abilist: Likewise.
9901         * sysdeps/unix/sysv/linux/microblaze/libc.abilist: Likewise.
9902         * sysdeps/unix/sysv/linux/mips/mips32/fpu/libc.abilist: Likewise.
9903         * sysdeps/unix/sysv/linux/mips/mips32/nofpu/libc.abilist: Likewise.
9904         * sysdeps/unix/sysv/linux/mips/mips64/n32/libc.abilist: Likewise.
9905         * sysdeps/unix/sysv/linux/mips/mips64/n64/libc.abilist: Likewise.
9906         * sysdeps/unix/sysv/linux/nios2/libc.abilist: Likewise.
9907         * sysdeps/unix/sysv/linux/powerpc/powerpc32/fpu/libc.abilist:
9908         Likewise.
9909         * sysdeps/unix/linux/powerpc/powerpc32/nofpu/libc.abilist: Likewise.
9910         * sysdeps/unix/sysv/linux/powerpc/powerpc64/libc.abilist: Likewise.
9911         * sysdeps/unix/sysv/linux/s390/s390-32/libc.abilist: Likewise.
9912         * sysdeps/unix/sysv/linux/s390/s390-64/libc.abilist: Likewise.
9913         * sysdeps/unix/sysv/linux/sh/libc.abilist: Likewise.
9914         * sysdeps/unix/sysv/linux/sparc/sparc32/libc.abilist: Likewise.
9915         * sysdeps/unix/sysv/linux/sparc/sparc64/libc.abilist: Likewise.
9916         * sysdeps/unix/sysv/linux/tile/tilegx/tilegx32/libc.abilist: Likewise.
9917         * sysdeps/unix/sysv/linux/tile/tilegx/tilegx64/libc.abilist: Likewise.
9918         * sysdeps/unix/sysv/linux/tile/tilepro/libc.abilist: Likewise.
9919         * sysdeps/unix/sysv/linux/x86_64/64/libc.abilist: Likewise.
9920         * sysdeps/unix/sysv/linux/x86_64/x32/libc.abilist: Likewise.
9922 2017-09-25  H.J. Lu  <hongjiu.lu@intel.com>
9924         * configure.ac (AS): Require binutils 2.25 or later.
9925         * configure: Regenerated.
9927 2017-09-25  Paul Pluzhnikov  <ppluzhnikov@google.com>
9929         [BZ #22207]
9930         * stdlib/test-atexit-race-common.c (do_test): Minimize required
9931         VM size.
9933 2017-09-25  DJ Delorie  <dj@redhat.com>
9935         [BZ #22161]
9936         * nscd/netgroupcache.c (addinnetgrX): Release read lock after
9937         resetting timeout.
9939 2017-09-25  Stefan Liebler  <stli@linux.vnet.ibm.com>
9941         * sysdeps/ieee754/dbl-64/sincos32.h
9942         [SINCCOS32_H]: Remove define.
9943         [SINCOS32_H]: Define.
9945 2017-09-25  Szabolcs Nagy  <szabolcs.nagy@arm.com>
9947         * math/Versions (expf): New libm symbol at GLIBC_2.27.
9948         (exp2f): Likewise.
9949         * math/w_exp2f.c: New file.
9950         * math/w_expf.c: New file.
9951         * math/w_exp2f_compat.c (__exp2f_compat): For compat symbol only.
9952         * math/w_expf_compat.c (__expf_compat): Likewise.
9953         * sysdeps/ia64/fpu/e_exp2f.S: Add versioned symbols.
9954         * sysdeps/ia64/fpu/e_expf.S: Likewise.
9955         * sysdeps/unix/sysv/linux/aarch64/libm.abilist: Update.
9956         * sysdeps/unix/sysv/linux/alpha/libm.abilist: Likewise.
9957         * sysdeps/unix/sysv/linux/arm/libm.abilist: Likewise.
9958         * sysdeps/unix/sysv/linux/hppa/libm.abilist: Likewise.
9959         * sysdeps/unix/sysv/linux/i386/libm.abilist: Likewise.
9960         * sysdeps/unix/sysv/linux/ia64/libm.abilist: Likewise.
9961         * sysdeps/unix/sysv/linux/m68k/coldfire/libm.abilist: Likewise.
9962         * sysdeps/unix/sysv/linux/m68k/m680x0/libm.abilist: Likewise.
9963         * sysdeps/unix/sysv/linux/microblaze/libm.abilist: Likewise.
9964         * sysdeps/unix/sysv/linux/mips/mips32/libm.abilist: Likewise.
9965         * sysdeps/unix/sysv/linux/mips/mips64/libm.abilist: Likewise.
9966         * sysdeps/unix/sysv/linux/nios2/libm.abilist: Likewise.
9967         * sysdeps/unix/sysv/linux/powerpc/powerpc32/fpu/libm.abilist:
9968         Likewise.
9969         * sysdeps/unix/sysv/linux/powerpc/powerpc32/nofpu/libm.abilist:
9970         Likewise.
9971         * sysdeps/unix/sysv/linux/powerpc/powerpc64/libm-le.abilist:
9972         Likewise.
9973         * sysdeps/unix/sysv/linux/powerpc/powerpc64/libm.abilist:
9974         Likewise.
9975         * sysdeps/unix/sysv/linux/s390/s390-32/libm.abilist: Likewise.
9976         * sysdeps/unix/sysv/linux/s390/s390-64/libm.abilist: Likewise.
9977         * sysdeps/unix/sysv/linux/sh/libm.abilist: Likewise.
9978         * sysdeps/unix/sysv/linux/sparc/sparc32/libm.abilist: Likewise.
9979         * sysdeps/unix/sysv/linux/sparc/sparc64/libm.abilist: Likewise.
9980         * sysdeps/unix/sysv/linux/tile/tilegx/tilegx32/libm.abilist:
9981         Likewise.
9982         * sysdeps/unix/sysv/linux/tile/tilegx/tilegx64/libm.abilist:
9983         Likewise.
9984         * sysdeps/unix/sysv/linux/tile/tilepro/libm.abilist: Likewise.
9985         * sysdeps/unix/sysv/linux/x86_64/64/libm.abilist: Likewise.
9986         * sysdeps/unix/sysv/linux/x86_64/x32/libm.abilist: Likewise.
9988 2017-09-25  Szabolcs Nagy  <szabolcs.nagy@arm.com>
9990         * math/Makefile (type-float-routines): Add math_errf and e_exp2f_data.
9991         * sysdeps/aarch64/fpu/math_private.h (TOINT_INTRINSICS): Define.
9992         (roundtoint, converttoint): Likewise.
9993         * sysdeps/ieee754/flt-32/e_expf.c: New implementation.
9994         * sysdeps/ieee754/flt-32/e_exp2f.c: New implementation.
9995         * sysdeps/ieee754/flt-32/e_exp2f_data.c: New file.
9996         * sysdeps/ieee754/flt-32/math_config.h: New file.
9997         * sysdeps/ieee754/flt-32/math_errf.c: New file.
9998         * sysdeps/ieee754/flt-32/t_exp2f.h: Remove.
9999         * sysdeps/i386/fpu/e_exp2f_data.c: New file.
10000         * sysdeps/i386/fpu/math_errf.c: New file.
10001         * sysdeps/ia64/fpu/e_exp2f_data.c: New file.
10002         * sysdeps/ia64/fpu/math_errf.c: New file.
10003         * sysdeps/m68k/m680x0/fpu/e_exp2f_data.c: New file.
10004         * sysdeps/m68k/m680x0/fpu/math_errf.c: New file.
10006 2017-09-24  Samuel Thibault  <samuel.thibault@ens-lyon.org>
10008         * sysdeps/mach/hurd/dl-sysdep.c (check_no_hidden): New macro.
10009         (__open, __close, __libc_read, __libc_write, __writev, __libc_lseek64,
10010         __mmap, __fxstat64, __xstat64, __access, __access_noerrno, __getpid,
10011         __getcwd, __sbrk, __strtoul_internal, _exit, abort): Use check_no_hidden
10012         to make sure that these symbols are defined.
10013         * sysdeps/mach/hurd/bits/socket.h: Include <bits/wordsize.h> instead
10014         of <limits.h>
10015         (__need_NULL): Do not define.
10016         (__ss_aligntype): Use __WORDSIZE instead of ULONG_MAX to determine
10017         alignment.
10018         [!__USE_MISC] (pseudo_AF_XTP, pseudo_AF_RTIP, pseudo_AF_PIP,
10019         CMGROUP_MAX, cmsgcred): Do not define.
10020         (CMSG_FIRSTHDR, __cmsg_nxthdr): Use (struct cmsghdr *) 0 instead of
10021         NULL.
10022         * bits/socket.h: Likewise.
10023         * sysdeps/unix/clock_gettime.c (realtime_gettime, __clock_gettime): Use
10024         __gettimeofday instead of gettimeofday.
10025         * sysdeps/unix/clock_settime.c (__clock_settime): Use __settimeofday
10026         instead of settimeofday.
10028 2017-09-22  Joseph Myers  <joseph@codesourcery.com>
10030         * sysdeps/ieee754/flt-32/s_asinhf.c: Include <libm-alias-float.h>.
10031         (asinhf): Define using libm_alias_float.
10032         * sysdeps/ieee754/flt-32/s_atanf.c: Include <libm-alias-float.h>.
10033         (atanf): Define using libm_alias_float.
10034         * sysdeps/ieee754/flt-32/s_cbrtf.c: Include <libm-alias-float.h>.
10035         (cbrtf): Define using libm_alias_float.
10036         * sysdeps/ieee754/flt-32/s_ceilf.c: Include <libm-alias-float.h>.
10037         (ceilf): Define using libm_alias_float.
10038         * sysdeps/ieee754/flt-32/s_copysignf.c: Include
10039         <libm-alias-float.h>.
10040         (copysignf): Define using libm_alias_float.
10041         * sysdeps/ieee754/flt-32/s_cosf.c: Include <libm-alias-float.h>.
10042         (cosf): Define using libm_alias_float.
10043         * sysdeps/ieee754/flt-32/s_erff.c: Include <libm-alias-float.h>.
10044         (erff): Define using libm_alias_float.
10045         (erfcf): Likewise.
10046         * sysdeps/ieee754/flt-32/s_expm1f.c: Include <libm-alias-float.h>.
10047         (expm1f): Define using libm_alias_float.
10048         * sysdeps/ieee754/flt-32/s_fabsf.c: Include <libm-alias-float.h>.
10049         (fabsf): Define using libm_alias_float.
10050         * sysdeps/ieee754/flt-32/s_floorf.c: Include <libm-alias-float.h>.
10051         (floorf): Define using libm_alias_float.
10052         * sysdeps/ieee754/flt-32/s_frexpf.c: Include <libm-alias-float.h>.
10053         (frexpf): Define using libm_alias_float.
10054         * sysdeps/ieee754/flt-32/s_fromfpf.c (fromfpf): Define using
10055         libm_alias_float.
10056         * sysdeps/ieee754/flt-32/s_fromfpf_main.c: Include
10057         <libm-alias-float.h>.
10058         * sysdeps/ieee754/flt-32/s_fromfpxf.c (fromfpxf): Define using
10059         libm_alias_float.
10060         * sysdeps/ieee754/flt-32/s_getpayloadf.c: Include
10061         <libm-alias-float.h>.
10062         (getpayloadf): Define using libm_alias_float.
10063         * sysdeps/ieee754/flt-32/s_llrintf.c: Include
10064         <libm-alias-float.h>.
10065         (llrintf): Define using libm_alias_float.
10066         * sysdeps/ieee754/flt-32/s_llroundf.c: Include
10067         <libm-alias-float.h>.
10068         (llroundf): Define using libm_alias_float.
10069         * sysdeps/ieee754/flt-32/s_logbf.c: Include <libm-alias-float.h>.
10070         (logbf): Define using libm_alias_float.
10071         * sysdeps/ieee754/flt-32/s_lrintf.c: Include <libm-alias-float.h>.
10072         (lrintf): Define using libm_alias_float.
10073         * sysdeps/ieee754/flt-32/s_lroundf.c: Include <libm-alias-float.h>.
10074         (lroundf): Define using libm_alias_float.
10075         * sysdeps/ieee754/flt-32/s_modff.c: Include <libm-alias-float.h>.
10076         (modff): Define using libm_alias_float.
10077         * sysdeps/ieee754/flt-32/s_nearbyintf.c: Include
10078         <libm-alias-float.h>.
10079         (nearbyintf): Define using libm_alias_float.
10080         * sysdeps/ieee754/flt-32/s_nextafterf.c: Include
10081         <libm-alias-float.h>.
10082         (nextafterf): Define using libm_alias_float.
10083         * sysdeps/ieee754/flt-32/s_nextupf.c: Include
10084         <libm-alias-float.h>.
10085         (nextupf): Define using libm_alias_float.
10086         * sysdeps/ieee754/flt-32/s_remquof.c: Include
10087         <libm-alias-float.h>.
10088         (remquof): Define using libm_alias_float.
10089         * sysdeps/ieee754/flt-32/s_rintf.c: Include <libm-alias-float.h>.
10090         (rintf): Define using libm_alias_float.
10091         * sysdeps/ieee754/flt-32/s_roundevenf.c: Include
10092         <libm-alias-float.h>.
10093         (roundevenf): Define using libm_alias_float.
10094         * sysdeps/ieee754/flt-32/s_roundf.c: Include <libm-alias-float.h>.
10095         (roundf): Define using libm_alias_float.
10096         * sysdeps/ieee754/flt-32/s_setpayloadf.c (setpayloadf): Define
10097         using libm_alias_float.
10098         * sysdeps/ieee754/flt-32/s_setpayloadf_main.c: Include
10099         <libm-alias-float.h>.
10100         * sysdeps/ieee754/flt-32/s_setpayloadsigf.c (setpayloadsigf):
10101         Define using libm_alias_float.
10102         * sysdeps/ieee754/flt-32/s_sincosf.c: Include
10103         <libm-alias-float.h>.
10104         (sincosf): Define using libm_alias_float.
10105         * sysdeps/ieee754/flt-32/s_sinf.c: Include <libm-alias-float.h>.
10106         (sinf): Define using libm_alias_float.
10107         * sysdeps/ieee754/flt-32/s_tanf.c: Include <libm-alias-float.h>.
10108         (tanf): Define using libm_alias_float.
10109         * sysdeps/ieee754/flt-32/s_tanhf.c: Include <libm-alias-float.h>.
10110         (tanhf): Define using libm_alias_float.
10111         * sysdeps/ieee754/flt-32/s_totalorderf.c: Include
10112         <libm-alias-float.h>.
10113         (totalorderf): Define using libm_alias_float.
10114         * sysdeps/ieee754/flt-32/s_totalordermagf.c: Include
10115         <libm-alias-float.h>.
10116         (totalordermagf): Define using libm_alias_float.
10117         * sysdeps/ieee754/flt-32/s_truncf.c: Include <libm-alias-float.h>.
10118         (truncf): Define using libm_alias_float.
10119         * sysdeps/ieee754/flt-32/s_ufromfpf.c (ufromfpf): Define using
10120         libm_alias_float.
10121         * sysdeps/ieee754/flt-32/s_ufromfpxf.c (ufromfpxf): Define using
10122         libm_alias_float.
10124 2017-09-22  Gabriel F. T. Gomes  <gabriel@inconstante.eti.br>
10126         [BZ #22146]
10127         math/math.h: Let fpclassify use the builtin in C++ mode, even
10128         when optimazing for size.
10130 2017-09-22  Joseph Myers  <joseph@codesourcery.com>
10132         * csu/Makefile (generated): Do not add version-info.h.
10133         (before-compile): Likewise.
10134         (all-Banner-files): Remove variable.
10135         ($(objpfx)version-info.h): Remove rule.
10136         * csu/version.c (banner): Do not include "version-info.h".
10137         * libidn/Banner: Remove.
10138         * manual/contrib.texi (Simon Josefsson): New entry.
10140 2017-09-21  Gabriel F. T. Gomes  <gabriel@inconstante.eti.br>
10142         * sysdeps/ieee754/ldbl-128/e_lgammal_r.c (__ieee754_lgammal_r):
10143         Remove conditionals on LDBL_MANT_DIG.
10144         * sysdeps/ieee754/ldbl-128ibm/e_lgammal_r.c
10145         (__ieee754_lgammal_r): Likewise.
10147 2017-09-21  Gabriel F. T. Gomes  <gabriel@inconstante.eti.br>
10149         * sysdeps/ieee754/ldbl-128ibm/e_expl.c: Remove definitions of
10150         _Float128 and L().
10151         * sysdeps/ieee754/ldbl-128ibm/e_j0l.c: Remove definitions of
10152         _Float128 and L(). Replace _Float128 with long double and L(x)
10153         with xL, throughout the file.
10154         * sysdeps/ieee754/ldbl-128ibm/e_j1l.c: Likewise.
10155         * sysdeps/ieee754/ldbl-128ibm/e_lgammal_r.c: Likewise.
10156         * sysdeps/ieee754/ldbl-128ibm/s_cbrtl.c: Likewise.
10157         * sysdeps/ieee754/ldbl-128ibm/t_expl.h: Likewise.
10159 2017-09-21  Gabriel F. T. Gomes  <gabriel@inconstante.eti.br>
10161         * sysdeps/ieee754/ldbl-128ibm/e_expl.c: Include tables from
10162         sysdeps/ieee754/ldbl-128ibm.
10163         * sysdeps/ieee754/ldbl-128ibm/e_j0l.c: Copy contents from the
10164         equivalent implementation in sysdeps/ieee754/ldbl-128/ instead
10165         of including it.  Keep _Float128 and L() intact.  These will be
10166         reviewed by a separate patch.
10167         * sysdeps/ieee754/ldbl-128ibm/e_j1l.c: Likewise.
10168         * sysdeps/ieee754/ldbl-128ibm/e_lgammal_r.c: Likewise.
10169         * sysdeps/ieee754/ldbl-128ibm/s_cbrtl.c: Likewise.
10170         * sysdeps/ieee754/ldbl-128ibm/t_expl.h: Likewise.
10172 2017-09-21  Gabriel F. T. Gomes  <gabriel@inconstante.eti.br>
10174         * sysdeps/powerpc/powerpc64/fpu/multiarch/s_finite.c
10175         (__finitef128): Define to __redirect___finitef128.
10176         * sysdeps/powerpc/powerpc64/fpu/multiarch/s_isinf.c
10177         (__isinff128): Define to __redirect___isinff128.
10178         * sysdeps/powerpc/powerpc64/fpu/multiarch/s_isnan.c
10179         (__isnanf128): Define to __redirect___isnanf128.
10181 2017-09-21  Gabriel F. T. Gomes  <gabriel@inconstante.eti.br>
10183         * sysdeps/powerpc/powerpc64le/Makefile
10184         (CFLAGS-tst-strtod-nan-locale.c): New variable.
10185         (CFLAGS-tst-wcstod-nan-locale.c): New variable.
10187 2017-09-21  Paul Pluzhnikov  <ppluzhnikov@google.com>
10188             Carlos O'Donell  <carlos@redhat.com>
10190         [BZ #22180]
10191         * stdlib/Makefile (tests): Add test-dlclose-exit-race.
10192         * stdlib/test-dlclose-exit-race.c: New file.
10193         * stdlib/test-dlclose-exit-race-helper.c: New file.
10194         * stdlib/exit.c (__run_exit_handlers): Mark slot as free.
10196 2017-09-21  Joseph Myers  <joseph@codesourcery.com>
10198         * crypt/Banner: Remove file.
10199         * nptl/Banner: Likewise.
10200         * resolv/Banner: Likewise.
10201         * soft-fp/Banner: Likewise.
10202         * nptl/Makefile ($(objpfx)banner.h): Remove rule.
10203         ($(objpfx)version.d): Remove dependency on banner.h.
10204         ($(objpfx)version.os): Likewise.
10205         * nptl/version.c (banner): Do not include banner.h.
10206         * manual/contrib.texi: Update entries for Richard Henderson, Jakub
10207         Jelinek and BIND code.
10209 2017-09-20  Paul Pluzhnikov  <ppluzhnikov@google.com>
10210             Carlos O'Donell  <carlos@redhat.com>
10212         * support/xdlfcn.h: New file.
10213         * support/xdlfcn.c: New file.
10214         * support/Makefile (libsupport-routines): Add xdlfcn.
10215         * stdlib/tst-tls-atexit.c: Use xdlopen, xdlsym, xdlclose.
10217 2017-09-20  Joseph Myers  <joseph@codesourcery.com>
10219         [BZ #20142]
10220         * sysdeps/x86_64/fpu/multiarch/Makefile (libm-sysdep_routines):
10221         Add s_trunc-c, s_truncf-c, s_trunc-sse4_1 and s_truncf-sse4_1.
10222         * sysdeps/x86_64/fpu/multiarch/s_trunc-c.c: New file.
10223         * sysdeps/x86_64/fpu/multiarch/s_trunc-sse4_1.S: Likewise.
10224         * sysdeps/x86_64/fpu/multiarch/s_trunc.c: Likewise.
10225         * sysdeps/x86_64/fpu/multiarch/s_truncf-c.c: Likewise.
10226         * sysdeps/x86_64/fpu/multiarch/s_truncf-sse4_1.S: Likewise.
10227         * sysdeps/x86_64/fpu/multiarch/s_truncf.c: Likewise.
10229 2017-09-20  Paul Pluzhnikov  <ppluzhnikov@google.com>
10230             Ricky Zhou  <rickyz@google.com>
10231             Anoop V Chakkalakkal  <anoop.vijayan@in.ibm.com>
10233         [BZ #14333]
10234         * stdlib/cxa_atexit.c (__internal_atexit): Use __exit_funcs_lock.
10235         Remove atomics.
10236         (__new_exitfn): Fail registration when we finished at_exit processing.
10237         * stdlib/cxa_finalize.c (__cxa_finalize): Likewise.
10238         * stdlib/on_exit.c (__on_exit): Likewise.
10239         * stdlib/exit.c (__exit_funcs_done): New variable.
10240         (__run_exit_handlers): Use __exit_funcs_lock.
10241         * stdlib/exit.h (__exit_funcs_lock, __exit_funcs_done): New
10242         declarations.
10243         * stdlib/Makefile (test-atexit-race, test-quick_at_exit-race)
10244         (test-cxa_atexit-race, test-on_exit-race): New tests.
10245         * stdlib/test-atexit-race-common.c: New file.
10246         * stdlib/test-atexit-race.c: New file.
10247         * stdlib/test-at_quick_exit-race.c: New file.
10248         * stdlib/test-cxa_atexit-race.c: New file.
10249         * stdlib/test-on_exit-race.c: New file.
10251 2017-09-20  Szabolcs Nagy  <szabolcs.nagy@arm.com>
10253         * benchtests/Makefile: Add exp2f and log2f benchmarks.
10254         * benchtests/exp2f-inputs: Copy of expf-inputs.
10255         * benchtests/log2f-inputs: Copy of logf-inputs.
10257 2017-09-19  Joseph Myers  <joseph@codesourcery.com>
10259         * sysdeps/unix/sysv/linux/fexecve.c (fexecve) [__NR_execveat]:
10260         Explicitly take address of first element of array arguments in
10261         call to INLINE_SYSCALL.
10263 2017-09-19  Andreas Schwab  <schwab@suse.de>
10265         [BZ #22134]
10266         * sysdeps/unix/sysv/linux/fexecve.c (fexecve) [__NR_execveat]: Try
10267         execveat first.
10268         [!__ASSUME_EXECVEAT]: Fall back to /proc if execveat is
10269         unimplemented.
10270         * sysdeps/unix/sysv/linux/kernel-features.h (__ASSUME_EXECVEAT)
10271         [__LINUX_KERNEL_VERSION >= 0x031300]: Define.
10272         * sysdeps/unix/sysv/linux/alpha/kernel-features.h
10273         (__ASSUME_EXECVEAT) [__LINUX_KERNEL_VERSION < 0x040200]: Undef.
10274         * sysdeps/unix/sysv/linux/hppa/kernel-features.h
10275         (__ASSUME_EXECVEAT) [__LINUX_KERNEL_VERSION < 0x040000]: Undef.
10276         * sysdeps/unix/sysv/linux/microblaze/kernel-features.h
10277         (__ASSUME_EXECVEAT) [__LINUX_KERNEL_VERSION < 0x040000]: Undef.
10278         * posix/Makefile (tests): Add tst-fexecve.
10279         * posix/tst-fexecve.c: New file.
10281 2017-09-19  Wilco Dijkstra  <wdijkstr@arm.com>
10283         * benchtests/Makefile: Add logf benchmark.
10284         * benchtests/logf-inputs: Add reduced trace from wrf_r.
10286 2017-09-19  Wilco Dijkstra  <wdijkstr@arm.com>
10288         * benchtests/Makefile: Add expf benchmark.
10289         * benchtests/expf-inputs: Add reduced trace from wrf_r.
10291 2017-09-19  Wilco Dijkstra  <wdijkstr@arm.com>
10293         * csu/Makefile: Add -funwind-tables to libc-start.c.
10294         * debug/Makefile: Add -funwind-tables to backtrace.c.
10295         * sysdeps/aarch64/Makefile: Remove CFLAGS-backtrace.c.
10296         * sysdeps/arm/Makefile: Likewise.
10297         * sysdeps/i386/Makefile: Likewise.
10298         * sysdeps/m68k/Makefile: Likewise.
10299         * sysdeps/mips/Makefile: Likewise.
10300         * sysdeps/nios2/Makefile: Likewise.
10301         * sysdeps/sh/Makefile: Likewise.
10302         * sysdeps/sparc/Makefile: Likewise.
10304 2017-09-19  Joseph Myers  <joseph@codesourcery.com>
10306         * benchtests/Makefile (bench-math): Add trunc and truncf.
10307         (CFLAGS-bench-trunc.c): New variable.
10308         (CFLAGS-bench-truncf.c): Likewise.
10309         * benchtests/trunc-inputs: New file.
10310         * benchtests/truncf-inputs: Likewise.
10312 2017-09-19  Rajalakshmi Srinivasaraghavan  <raji@linux.vnet.ibm.com>
10314         * sysdeps/powerpc/powerpc64/power8/memset.S: Avoid misaligned stores.
10316 2017-09-18  Joseph Myers  <joseph@codesourcery.com>
10318         * sysdeps/ieee754/ldbl-opt/w_exp10l_compat.c [LIBM_SVID_COMPAT &&
10319         !LONG_DOUBLE_COMPAT (libm, GLIBC_2_1)] (weak_alias): Undefine and
10320         redefine.
10321         [LIBM_SVID_COMPAT && !LONG_DOUBLE_COMPAT (libm, GLIBC_2_1)]
10322         (exp10l): Define as weak alias.
10323         * sysdeps/ieee754/ldbl-opt/w_remainderl_compat.c [LIBM_SVID_COMPAT
10324         && !LONG_DOUBLE_COMPAT (libm, GLIBC_2_0)] (weak_alias): Undefine
10325         and redefine.
10326         [LIBM_SVID_COMPAT && !LONG_DOUBLE_COMPAT (libm, GLIBC_2_0)]
10327         (remainderl): Define as weak alias.
10329         * math/s_fmal.c: Include <libm-alias-ldouble.h>.
10330         (fmal): Define using libm_alias_ldouble.
10331         * math/w_acoshl_compat.c: Include <libm-alias-ldouble.h>.
10332         (acoshl): Define using libm_alias_ldouble.
10333         * math/w_acosl_compat.c: Include <libm-alias-ldouble.h>.
10334         (acosl): Define using libm_alias_ldouble.
10335         * math/w_asinl_compat.c: Include <libm-alias-ldouble.h>.
10336         (asinl): Define using libm_alias_ldouble.
10337         * math/w_atan2l_compat.c: Include <libm-alias-ldouble.h>.
10338         (atan2l): Define using libm_alias_ldouble.
10339         * math/w_atanhl_compat.c: Include <libm-alias-ldouble.h>.
10340         (atanhl): Define using libm_alias_ldouble.
10341         * math/w_coshl_compat.c: Include <libm-alias-ldouble.h>.
10342         (coshl): Define using libm_alias_ldouble.
10343         * math/w_exp10l_compat.c: Include <libm-alias-ldouble.h>.
10344         (exp10l): Define using libm_alias_ldouble.
10345         * math/w_exp2l_compat.c: Include <libm-alias-ldouble.h>.
10346         (exp2l): Define using libm_alias_ldouble.
10347         * math/w_expl_compat.c: Include <libm-alias-ldouble.h>.
10348         (expl): Define using libm_alias_ldouble.
10349         * math/w_fmodl_compat.c: Include <libm-alias-ldouble.h>.
10350         (fmodl): Define using libm_alias_ldouble.
10351         * math/w_hypotl_compat.c: Include <libm-alias-ldouble.h>.
10352         (hypotl): Define using libm_alias_ldouble.
10353         * math/w_j0l_compat.c: Include <libm-alias-ldouble.h>.
10354         (j0l): Define using libm_alias_ldouble.
10355         (y0l): Likewise.
10356         * math/w_j1l_compat.c: Include <libm-alias-ldouble.h>.
10357         (j1l): Define using libm_alias_ldouble.
10358         (y1l): Likewise.
10359         * math/w_jnl_compat.c: Include <libm-alias-ldouble.h>.
10360         (jnl): Define using libm_alias_ldouble.
10361         (ynl): Likewise.
10362         * math/w_log10l_compat.c: Include <libm-alias-ldouble.h>.
10363         (log10l): Define using libm_alias_ldouble.
10364         * math/w_log2l_compat.c: Include <libm-alias-ldouble.h>.
10365         (log2l): Define using libm_alias_ldouble.
10366         * math/w_logl_compat.c: Include <libm-alias-ldouble.h>.
10367         (logl): Define using libm_alias_ldouble.
10368         * math/w_powl_compat.c: Include <libm-alias-ldouble.h>.
10369         (powl): Define using libm_alias_ldouble.
10370         * math/w_remainderl_compat.c: Include <libm-alias-ldouble.h>.
10371         (remainderl): Define using libm_alias_ldouble.
10372         * math/w_sinhl_compat.c: Include <libm-alias-ldouble.h>.
10373         (sinhl): Define using libm_alias_ldouble.
10374         * math/w_sqrtl_compat.c: Include <libm-alias-ldouble.h>.
10375         (sqrtl): Define using libm_alias_ldouble.
10376         * math/w_tgammal_compat.c: Include <libm-alias-ldouble.h>.
10377         (tgammal): Define using libm_alias_ldouble.
10378         * sysdeps/ieee754/ldbl-opt/w_exp10l_compat.c [LIBM_SVID_COMPAT]
10379         (exp10l): Do not use long_double_symbol here.
10380         * sysdeps/ieee754/ldbl-opt/w_remainderl_compat.c
10381         [LIBM_SVID_COMPAT] (remainderl): Likewise.
10382         * sysdeps/ieee754/ldbl-opt/s_fmal.c: Remove.
10383         * sysdeps/ieee754/ldbl-opt/w_acoshl_compat.c: Likewise.
10384         * sysdeps/ieee754/ldbl-opt/w_acosl_compat.c: Likewise.
10385         * sysdeps/ieee754/ldbl-opt/w_asinl_compat.c: Likewise.
10386         * sysdeps/ieee754/ldbl-opt/w_atan2l_compat.c: Likewise.
10387         * sysdeps/ieee754/ldbl-opt/w_atanhl_compat.c: Likewise.
10388         * sysdeps/ieee754/ldbl-opt/w_coshl_compat.c: Likewise.
10389         * sysdeps/ieee754/ldbl-opt/w_expl_compat.c: Likewise.
10390         * sysdeps/ieee754/ldbl-opt/w_fmodl_compat.c: Likewise.
10391         * sysdeps/ieee754/ldbl-opt/w_hypotl_compat.c: Likewise.
10392         * sysdeps/ieee754/ldbl-opt/w_j0l_compat.c: Likewise.
10393         * sysdeps/ieee754/ldbl-opt/w_j1l_compat.c: Likewise.
10394         * sysdeps/ieee754/ldbl-opt/w_jnl_compat.c: Likewise.
10395         * sysdeps/ieee754/ldbl-opt/w_log10l_compat.c: Likewise.
10396         * sysdeps/ieee754/ldbl-opt/w_log2l_compat.c: Likewise.
10397         * sysdeps/ieee754/ldbl-opt/w_logl_compat.c: Likewise.
10398         * sysdeps/ieee754/ldbl-opt/w_powl_compat.c: Likewise.
10399         * sysdeps/ieee754/ldbl-opt/w_sinhl_compat.c: Likewise.
10400         * sysdeps/ieee754/ldbl-opt/w_sqrtl_compat.c: Likewise.
10401         * sysdeps/ieee754/ldbl-opt/w_tgammal_compat.c: Likewise.
10403 2017-09-18  Wang Boshi  <wangboshi@huawei.com>  (tiny change)
10405         * sysdeps/aarch64/start.S: Use MOVL instead of literal pools.
10406         * sysdeps/aarch64/sysdep.h (MOVL): Add MOVL macro.
10408 2017-09-17  Samuel Thibault  <samuel.thibault@ens-lyon.org>
10410         * io/read.c (read): Add libc_hidden_weak.
10411         * sysdeps/mach/hurd/read.c (read): Likewise.
10412         * io/write.c (write): Likewise.
10413         * sysdeps/mach/hurd/write.c (write): Likewise.
10414         * io/pread64.c (__pread64): Likewise.
10415         * sysdeps/mach/hurd/pread64.c (__pread64): Likewise.
10416         * posix/pread64.c (__pread64): Add libc_hidden_def.
10418 2017-09-16  Siddhesh Poyarekar  <siddhesh@sourceware.org>
10420         * benchtests/scripts/compare_strings.py: New option -g.
10421         (draw_graph): Print a message that a graph is being generated.
10422         (process_results): Generate graph only if -g is passed.
10423         (main): Process option -g.
10425         * benchtests/scripts/compare_strings.py (process_results):
10426         Better spacing for output.
10428         * benchtests/scripts/compare_strings.py: Use argparse.
10429         * benchtests/README: Document existence of compare_strings.py.
10431 2017-09-15  Joseph Myers  <joseph@codesourcery.com>
10433         * math/s_fma.c: Include <libm-alias-double.h>.
10434         (fma): Define using libm_alias_double.
10435         * math/s_nextafter.c: Include <libm-alias-double.h>.
10436         (nextafter): Define using libm_alias_double.
10437         * math/w_acos_compat.c: Include <libm-alias-double.h>.
10438         (acos): Define using libm_alias_double.
10439         * math/w_acosh_compat.c: Include <libm-alias-double.h>.
10440         (aocsh): Define using libm_alias_double.
10441         * math/w_asin_compat.c: Include <libm-alias-double.h>.
10442         (asin): Define using libm_alias_double.
10443         * math/w_atan2_compat.c: Include <libm-alias-double.h>.
10444         (atan2): Define using libm_alias_double.
10445         * math/w_atanh_compat.c: Include <libm-alias-double.h>.
10446         (atanh): Define using libm_alias_double.
10447         * math/w_cosh_compat.c: Include <libm-alias-double.h>.
10448         (cosh): Define using libm_alias_double.
10449         * math/w_exp10_compat.c: Include <libm-alias-double.h>.
10450         (exp10): Define using libm_alias_double.
10451         * math/w_exp2_compat.c: Include <libm-alias-double.h>.
10452         (exp2): Define using libm_alias_double.
10453         * math/w_exp_compat.c: Include <libm-alias-double.h>.
10454         (exp): Define using libm_alias_double.
10455         * math/w_fmod_compat.c: Include <libm-alias-double.h>.
10456         (fmod): Define using libm_alias_double.
10457         * math/w_hypot_compat.c: Include <libm-alias-double.h>.
10458         (hypot): Define using libm_alias_double.
10459         * math/w_j0_compat.c: Include <libm-alias-double.h>.
10460         (j0): Define using libm_alias_double.
10461         (y0): Likewise.
10462         * math/w_j1_compat.c: Include <libm-alias-double.h>.
10463         (j1): Define using libm_alias_double.
10464         (y1): Likewise.
10465         * math/w_jn_compat.c: Include <libm-alias-double.h>.
10466         (jn): Define using libm_alias_double.
10467         (yn): Likewise.
10468         * math/w_log10_compat.c: Include <libm-alias-double.h>.
10469         (log10): Define using libm_alias_double.
10470         * math/w_log2_compat.c: Include <libm-alias-double.h>.
10471         (log2): Define using libm_alias_double.
10472         * math/w_log_compat.c: Include <libm-alias-double.h>.
10473         (log): Define using libm_alias_double.
10474         * math/w_pow_compat.c: Include <libm-alias-double.h>.
10475         (pow): Define using libm_alias_double.
10476         * math/w_remainder_compat.c: Include <libm-alias-double.h>.
10477         (remainder): Define using libm_alias_double.
10478         * math/w_sinh_compat.c: Include <libm-alias-double.h>.
10479         (sinh): Define using libm_alias_double.
10480         * math/w_sqrt_compat.c: Include <libm-alias-double.h>.
10481         (sqrt): Define using libm_alias_double.
10482         * math/w_tgamma_compat.c: Include <libm-alias-double.h>.
10483         (tgamma): Define using libm_alias_double.
10484         * sysdeps/ieee754/ldbl-opt/s_nextafter.c [LONG_DOUBLE_COMPAT(libm,
10485         GLIBC_2_0)] (nextafterl): Do not define compat symbol here.
10486         * sysdeps/ieee754/ldbl-opt/w_exp10_compat.c
10487         [LONG_DOUBLE_COMPAT(libm, GLIBC_2_1)] (exp10l): Likewise.
10488         * sysdeps/ieee754/ldbl-opt/w_remainder_compat.c
10489         [LONG_DOUBLE_COMPAT(libm, GLIBC_2_0)] (remainderl): Likewise.
10490         * sysdeps/ieee754/ldbl-opt/w_acos_compat.c: Remove.
10491         * sysdeps/ieee754/ldbl-opt/w_acosh_compat.c: Likewise.
10492         * sysdeps/ieee754/ldbl-opt/w_asin_compat.c: Likewise.
10493         * sysdeps/ieee754/ldbl-opt/w_atan2_compat.c: Likewise.
10494         * sysdeps/ieee754/ldbl-opt/w_atanh_compat.c: Likewise.
10495         * sysdeps/ieee754/ldbl-opt/w_cosh_compat.c: Likewise.
10496         * sysdeps/ieee754/ldbl-opt/w_exp_compat.c: Likewise.
10497         * sysdeps/ieee754/ldbl-opt/w_fmod_compat.c: Likewise.
10498         * sysdeps/ieee754/ldbl-opt/w_hypot_compat.c: Likewise.
10499         * sysdeps/ieee754/ldbl-opt/w_j0_compat.c: Likewise.
10500         * sysdeps/ieee754/ldbl-opt/w_j1_compat.c: Likewise.
10501         * sysdeps/ieee754/ldbl-opt/w_jn_compat.c: Likewise.
10502         * sysdeps/ieee754/ldbl-opt/w_log10_compat.c: Likewise.
10503         * sysdeps/ieee754/ldbl-opt/w_log2_compat.c: Likewise.
10504         * sysdeps/ieee754/ldbl-opt/w_log_compat.c: Likewise.
10505         * sysdeps/ieee754/ldbl-opt/w_pow_compat.c: Likewise.
10506         * sysdeps/ieee754/ldbl-opt/w_sinh_compat.c: Likewise.
10507         * sysdeps/ieee754/ldbl-opt/w_sqrt_compat.c: Likewise.
10508         * sysdeps/ieee754/ldbl-opt/w_tgamma_compat.c: Likewise.
10510         * math/e_acoshl.c: Remove.
10511         * math/e_acosl.c: Likewise.
10512         * math/e_asinl.c: Likewise.
10513         * math/e_atan2l.c: Likewise.
10514         * math/e_atanhl.c: Likewise.
10515         * math/e_coshl.c: Likewise.
10516         * math/e_expl.c: Likewise.
10517         * math/e_fmodl.c: Likewise.
10518         * math/e_gammal_r.c: Likewise.
10519         * math/e_hypotl.c: Likewise.
10520         * math/e_j0l.c: Likewise.
10521         * math/e_j1l.c: Likewise.
10522         * math/e_jnl.c: Likewise.
10523         * math/e_lgammal_r.c: Likewise.
10524         * math/e_log10l.c: Likewise.
10525         * math/e_log2l.c: Likewise.
10526         * math/e_logl.c: Likewise.
10527         * math/e_powl.c: Likewise.
10528         * math/e_rem_pio2l.c: Likewise.
10529         * math/e_sinhl.c: Likewise.
10530         * math/e_sqrtf128.c: Likewise.
10531         * math/e_sqrtl.c: Likewise.
10532         * math/k_cosl.c: Likewise.
10533         * math/k_sinl.c: Likewise.
10534         * math/k_tanl.c: Likewise.
10535         * math/s_asinhl.c: Likewise.
10536         * math/s_atanl.c: Likewise.
10537         * math/s_cbrtl.c: Likewise.
10538         * math/s_erfl.c: Likewise.
10539         * math/s_expm1l.c: Likewise.
10540         * math/s_log1pl.c: Likewise.
10541         * math/s_tanhl.c: Likewise.
10543 2017-09-15  Tulio Magno Quites Machado Filho  <tuliom@linux.vnet.ibm.com>
10545         [BZ #21745]
10546         * sysdeps/powerpc/powerpc64/fpu/multiarch/Makefile:
10547         [$(subdir) = math] (sysdep_calls): New variable.  Has the
10548         previous contents of sysdep_routines, but re-sorted..
10549         [$(subdir) = math] (sysdep_routines): Re-use the contents from
10550         sysdep_calls.
10551         [$(subdir) = math] (libm-sysdep_routines): Remove the functions
10552         defined in sysdep_calls and replace by the respective m_* names.
10553         * sysdeps/powerpc/powerpc64/fpu/multiarch/s_isnan-ppc64.S:
10554         (compat_symbol): Undefine to avoid duplicated compat symbols in
10555         libc.
10557 2017-09-15  Joseph Myers  <joseph@codesourcery.com>
10559         * math/s_fmaf.c: Include <libm-alias-float.h>.
10560         (fmaf): Define using libm_alias_float.
10561         * math/w_acosf_compat.c: Include <libm-alias-float.h>.
10562         (acosf): Define using libm_alias_float.
10563         * math/w_acoshf_compat.c: Include <libm-alias-float.h>.
10564         (acoshf): Define using libm_alias_float.
10565         * math/w_asinf_compat.c: Include <libm-alias-float.h>.
10566         (asinf): Define using libm_alias_float.
10567         * math/w_atan2f_compat.c: Include <libm-alias-float.h>.
10568         (atan2f): Define using libm_alias_float.
10569         * math/w_atanhf_compat.c: Include <libm-alias-float.h>.
10570         (atanhf): Define using libm_alias_float.
10571         * math/w_coshf_compat.c: Include <libm-alias-float.h>.
10572         (coshf): Define using libm_alias_float.
10573         * math/w_exp10f_compat.c: Include <libm-alias-float.h>.
10574         (exp10f): Define using libm_alias_float.
10575         * math/w_fmodf_compat.c: Include <libm-alias-float.h>.
10576         (fmodf): Define using libm_alias_float.
10577         * math/w_hypotf_compat.c: Include <libm-alias-float.h>.
10578         (hypotf): Define using libm_alias_float.
10579         * math/w_j0f_compat.c: Include <libm-alias-float.h>.
10580         (j0f): Define using libm_alias_float.
10581         (y0f): Likewise.
10582         * math/w_j1f_compat.c: Include <libm-alias-float.h>.
10583         (j1f): Define using libm_alias_float.
10584         (y1f): Likewise.
10585         * math/w_jnf_compat.c: Include <libm-alias-float.h>.
10586         (jnf): Define using libm_alias_float.
10587         (ynf): Likewise.
10588         * math/w_log10f_compat.c: Include <libm-alias-float.h>.
10589         (log10f): Define using libm_alias_float.
10590         * math/w_log2f_compat.c: Include <libm-alias-float.h>.
10591         (log2f): Define using libm_alias_float.
10592         * math/w_logf_compat.c: Include <libm-alias-float.h>.
10593         (logf): Define using libm_alias_float.
10594         * math/w_powf_compat.c: Include <libm-alias-float.h>.
10595         (powf): Define using libm_alias_float.
10596         * math/w_remainderf_compat.c: Include <libm-alias-float.h>.
10597         (remainderf): Define using libm_alias_float.
10598         * math/w_sinhf_compat.c: Include <libm-alias-float.h>.
10599         (sinhf): Define using libm_alias_float.
10600         * math/w_sqrtf_compat.c: Include <libm-alias-float.h>.
10601         (sqrtf): Define using libm_alias_float.
10602         * math/w_tgammaf_compat.c: Include <libm-alias-float.h>.
10603         (tgammaf): Define using libm_alias_float.
10605 2017-09-14  Joseph Myers  <joseph@codesourcery.com>
10607         * include/math.h (roundeven): Change hidden_proto call to
10608         __roundeven.
10609         * math/w_j0_compat.c (j0): Rename to __j0 and define as weak
10610         alias.
10611         [NO_LONG_DOUBLE] (__j0l): New strong alias.
10612         (y0): Rename to __y0 and define as weak alias.
10613         [NO_LONG_DOUBLE] (__y0l): New strong alias.
10614         * math/w_j0f_compat.c (j0f): Rename to __j0f and define as weak
10615         alias.
10616         (y0f): Rename to __y0f and define as weak alias.
10617         * math/w_j1_compat.c (j1): Rename to __j1 and define as weak
10618         alias.
10619         [NO_LONG_DOUBLE] (__j1l): New strong alias.
10620         (y1): Rename to __y1 and define as weak alias.
10621         [NO_LONG_DOUBLE] (__y1l): New strong alias.
10622         * math/w_j1f_compat.c (j1f): Rename to __j1f and define as weak
10623         alias.
10624         (y1f): Rename to __y1f and define as weak alias.
10625         * math/w_jn_compat.c (jn): Rename to __jn and define as weak
10626         alias.
10627         [NO_LONG_DOUBLE] (__jnl): New strong alias.
10628         (yn): Rename to __yn and define as weak alias.
10629         [NO_LONG_DOUBLE] (__ynl): New strong alias.
10630         * math/w_jnf_compat.c (jnf): Rename to __jnf and define as weak
10631         alias.
10632         (ynf): Rename to __ynf and define as weak alias.
10633         * sysdeps/ieee754/dbl-64/s_fromfp.c (FUNC): Define to __fromfp.
10634         (fromfp): Define as weak alias.
10635         [NO_LONG_DOUBLE] (__fromfpl): New strong alias.
10636         * sysdeps/ieee754/dbl-64/s_fromfpx.c (FUNC): Define to __fromfpx.
10637         (fromfpx): Define as weak alias.
10638         [NO_LONG_DOUBLE] (__fromfpxl): New strong alias.
10639         * sysdeps/ieee754/dbl-64/s_getpayload.c (getpayload): Rename to
10640         __getpayload and define as weak alias.
10641         [NO_LONG_DOUBLE] (__getpayloadl): New strong alias.
10642         * sysdeps/ieee754/dbl-64/s_roundeven.c (roundeven): Rename to
10643         __roundeven and define as weak alias.
10644         [NO_LONG_DOUBLE] (__roundevenl): New strong alias.
10645         * sysdeps/ieee754/dbl-64/s_setpayload.c (FUNC): Define to
10646         __setpayload.
10647         (setpayload): Define as weak alias.
10648         [NO_LONG_DOUBLE] (__setpayloadl): New strong alias.
10649         * sysdeps/ieee754/dbl-64/s_setpayloadsig.c (FUNC): Define to
10650         __setpayloadsig.
10651         (setpayloadsig): Define as weak alias.
10652         [NO_LONG_DOUBLE] (__setpayloadsigl): New strong alias.
10653         * sysdeps/ieee754/dbl-64/s_totalorder.c (totalorder): Rename to
10654         __totalorder and define as weak alias.
10655         [NO_LONG_DOUBLE] (__totalorderl): New strong alias.
10656         * sysdeps/ieee754/dbl-64/s_totalordermag.c (totalordermag): Rename
10657         to __totalordermag and define as weak alias.
10658         [NO_LONG_DOUBLE] (__totalordermagl): New strong alias.
10659         * sysdeps/ieee754/dbl-64/s_ufromfp.c (FUNC): Define to __ufromfp.
10660         (ufromfp): Define as weak alias.
10661         [NO_LONG_DOUBLE] (__ufromfpl): New strong alias.
10662         * sysdeps/ieee754/dbl-64/s_ufromfpx.c (FUNC): Define to
10663         __ufromfpx.
10664         (ufromfpx): Define as weak alias.
10665         [NO_LONG_DOUBLE] (__ufromfpxl): New strong alias.
10666         * sysdeps/ieee754/dbl-64/wordsize-64/s_getpayload.c (getpayload):
10667         Rename to __getpayload and define as weak alias.
10668         [NO_LONG_DOUBLE] (__getpayloadl): New strong alias.
10669         * sysdeps/ieee754/dbl-64/wordsize-64/s_roundeven.c (roundeven):
10670         Rename to __roundeven and define as weak alias.
10671         [NO_LONG_DOUBLE] (__roundevenl): New strong alias.
10672         * sysdeps/ieee754/dbl-64/wordsize-64/s_totalorder.c (totalorder):
10673         Rename to __totalorder and define as weak alias.
10674         [NO_LONG_DOUBLE] (__totalorderl): New strong alias.
10675         * sysdeps/ieee754/dbl-64/wordsize-64/s_totalordermag.c
10676         (totalordermag): Rename to __totalordermag and define as weak
10677         alias.
10678         [NO_LONG_DOUBLE] (__totalordermagl): New strong alias.
10679         * sysdeps/ieee754/float128/float128_private.h (__getpayloadl): New
10680         macro.
10681         (__roundevenl): Likewise.
10682         (__totalorderl): Likewise.
10683         (__totalordermagl): Likewise
10684         * sysdeps/ieee754/float128/s_fromfpf128.c (FUNC): Define to
10685         __fromfpf128.
10686         (fromfpf128): Define as weak alias.
10687         * sysdeps/ieee754/float128/s_fromfpxf128.c (FUNC): Define to
10688         __fromfpxf128.
10689         (fromfpxf128): Define as weak alias.
10690         * sysdeps/ieee754/float128/s_setpayloadf128.c (FUNC): Define to
10691         __setpayloadf128.
10692         (setpayloadf128): Define as weak alias.
10693         * sysdeps/ieee754/float128/s_setpayloadsigf128.c (FUNC): Define to
10694         __setpayloadsigf128.
10695         (setpayloadsigf128): Define as weak alias.
10696         * sysdeps/ieee754/float128/s_ufromfpf128.c (FUNC): Define to
10697         __ufromfpf128.
10698         (ufromfpf128): Define as weak alias.
10699         * sysdeps/ieee754/float128/s_ufromfpxf128.c (FUNC): Define to
10700         __ufromfpxf128.
10701         (ufromfpxf128): Define as weak alias.
10702         * sysdeps/ieee754/flt-32/s_fromfpf.c (FUNC): Define to __fromfpf.
10703         (fromfpf): Define as weak alias.
10704         * sysdeps/ieee754/flt-32/s_fromfpxf.c (FUNC): Define to
10705         __fromfpxf.
10706         (fromfpxf): Define as weak alias.
10707         * sysdeps/ieee754/flt-32/s_getpayloadf.c (getpayloadf): Rename to
10708         __getpayloadf and define as weak alias.
10709         * sysdeps/ieee754/flt-32/s_roundevenf.c (roundevenf): Rename to
10710         __roundevenf and define as weak alias.
10711         * sysdeps/ieee754/flt-32/s_setpayloadf.c (FUNC): Define to
10712         __setpayloadf.
10713         (setpayloadf): Define as weak alias.
10714         * sysdeps/ieee754/flt-32/s_setpayloadsigf.c (FUNC): Define to
10715         __setpayloadsigf.
10716         (setpayloadsigf): Define as weak alias.
10717         * sysdeps/ieee754/flt-32/s_totalorderf.c (totalorderf): Rename to
10718         __totalorderf and define as weak alias.
10719         * sysdeps/ieee754/flt-32/s_totalordermagf.c (totalordermagf):
10720         Rename to __totalordermagf and define as weak alias.
10721         * sysdeps/ieee754/flt-32/s_ufromfpf.c (FUNC): Define to
10722         __ufromfpf.
10723         (ufromfpf): Define as weak alias.
10724         * sysdeps/ieee754/flt-32/s_ufromfpxf.c (FUNC): Define to
10725         __ufromfpxf.
10726         (ufromfpxf): Define as weak alias.
10727         * sysdeps/ieee754/ldbl-128/s_fromfpl.c (FUNC): Define to
10728         __fromfpl.
10729         (fromfpl): Define as weak alias.
10730         * sysdeps/ieee754/ldbl-128/s_fromfpxl.c (FUNC): Define to
10731         __fromfpxl.
10732         (fromfpxl): Define as weak alias.
10733         * sysdeps/ieee754/ldbl-128/s_getpayloadl.c (getpayloadl): Rename
10734         to __getpayloadl and define as weak alias.
10735         * sysdeps/ieee754/ldbl-128/s_roundevenl.c (roundevenl): Rename to
10736         __roundevenl and define as weak alias.
10737         * sysdeps/ieee754/ldbl-128/s_setpayloadl.c (FUNC): Define to
10738         __setpayloadl.
10739         (setpayloadl): Define as weak alias.
10740         * sysdeps/ieee754/ldbl-128/s_setpayloadsigl.c (FUNC): Define to
10741         __setpayloadsigl.
10742         (setpayloadsigl): Define as weak alias.
10743         * sysdeps/ieee754/ldbl-128/s_totalorderl.c (totalorderl): Rename
10744         to __totalorderl and define as weak alias.
10745         * sysdeps/ieee754/ldbl-128/s_totalordermagl.c (totalordermagl):
10746         Rename to __totalordermagl and define as weak alias.
10747         * sysdeps/ieee754/ldbl-128/s_ufromfpl.c (FUNC): Define to
10748         __ufromfpl.
10749         (ufromfpl): Define as weak alias.
10750         * sysdeps/ieee754/ldbl-128/s_ufromfpxl.c (FUNC): Define to
10751         __ufromfpxl.
10752         (ufromfpxl): Define as weak alias.
10753         * sysdeps/ieee754/ldbl-128ibm/s_fromfpl.c (FUNC): Define to
10754         __fromfpl.
10755         (fromfpl): Define as weak alias.
10756         * sysdeps/ieee754/ldbl-128ibm/s_fromfpxl.c (FUNC): Define to
10757         __fromfpxl.
10758         (fromfpxl): Define as weak alias.
10759         * sysdeps/ieee754/ldbl-128ibm/s_getpayloadl.c (getpayloadl):
10760         Rename to __getpayloadl and define as weak alias.
10761         * sysdeps/ieee754/ldbl-128ibm/s_roundevenl.c (roundevenl): Rename
10762         to __roundevenl and define as weak alias.  Call __roundeven
10763         instead of roundeven.
10764         * sysdeps/ieee754/ldbl-128ibm/s_setpayloadl.c (FUNC): Define to
10765         __setpayloadl.
10766         (setpayloadl): Define as weak alias.
10767         * sysdeps/ieee754/ldbl-128ibm/s_setpayloadsigl.c (FUNC): Define to
10768         __setpayloadsigl.
10769         (setpayloadsigl): Define as weak alias.
10770         * sysdeps/ieee754/ldbl-128ibm/s_totalorderl.c (totalorderl):
10771         Rename to __totalorderl and define as weak alias.
10772         * sysdeps/ieee754/ldbl-128ibm/s_totalordermagl.c (totalordermagl):
10773         Rename to __totalordermagl and define as weak alias.
10774         * sysdeps/ieee754/ldbl-128ibm/s_ufromfpl.c (FUNC): Define to
10775         __ufromfpl.
10776         (ufromfpl): Define as weak alias.
10777         * sysdeps/ieee754/ldbl-128ibm/s_ufromfpxl.c (FUNC): Define to
10778         __ufromfpxl.
10779         (ufromfpxl): Define as weak alias.
10780         * sysdeps/ieee754/ldbl-96/s_fromfpl.c (FUNC): Define to
10781         __fromfpl.
10782         (fromfpl): Define as weak alias.
10783         * sysdeps/ieee754/ldbl-96/s_fromfpxl.c (FUNC): Define to
10784         __fromfpxl.
10785         (fromfpxl): Define as weak alias.
10786         * sysdeps/ieee754/ldbl-96/s_getpayloadl.c (getpayloadl): Rename to
10787         __getpayloadl and define as weak alias.
10788         * sysdeps/ieee754/ldbl-96/s_roundevenl.c (roundevenl): Rename to
10789         __roundevenl and define as weak alias.
10790         * sysdeps/ieee754/ldbl-96/s_setpayloadl.c (FUNC): Define to
10791         __setpayloadl.
10792         (setpayloadl): Define as weak alias.
10793         * sysdeps/ieee754/ldbl-96/s_setpayloadsigl.c (FUNC): Define to
10794         __setpayloadsigl.
10795         (setpayloadsigl): Define as weak alias.
10796         * sysdeps/ieee754/ldbl-96/s_totalorderl.c (totalorderl): Rename to
10797         __totalorderl and define as weak alias.
10798         * sysdeps/ieee754/ldbl-96/s_totalordermagl.c (totalordermagl):
10799         Rename to __totalordermagl and define as weak alias.
10800         * sysdeps/ieee754/ldbl-96/s_ufromfpl.c (FUNC): Define to
10801         __ufromfpl.
10802         (ufromfpl): Define as weak alias.
10803         * sysdeps/ieee754/ldbl-96/s_ufromfpxl.c (FUNC): Define to
10804         __ufromfpxl.
10805         (ufromfpxl): Define as weak alias.
10807 2017-09-14  Siddhesh Poyarekar  <siddhesh@sourceware.org>
10809         * benchtests/bench-string.h (realloc_bufs): New function.
10810         (test_init): Call it.
10811         * benchtests/bench-memset-large.c (do_test): Likewise.
10812         * benchtests/bench-memset.c (do_test): Likewise.
10814         * benchtests/bench-memset-large.c: Print output in JSON
10815         format.
10816         * benchtests/bench-memset.c: Likewise.
10818 2017-09-14  Mike FABIAN  <mfabian@redhat.com>
10820         [BZ #21084]
10821         * benchtests/strcoll-inputs/filelist#en_US.UTF-8: Add IBM858 and ibm858.c.
10822         * iconvdata/Makefile: Add IBM858.
10823         * iconvdata/gconv-modules: Likewise.
10824         * iconvdata/tst-tables.sh: Likewise.
10825         * iconvdata/ibm858.c: New file.
10826         * localedata/charmaps/IBM858: Likewise.
10828 2017-09-14  Akhilesh Kumar  <akhilesh.k@samsung.com>
10830         [BZ #22023]
10831         * locales/niu_NZ (LC_TIME): copy "niu_NU".
10832         * locales/niu_NZ (LC_MESSAGES): copy "niu_NU".
10834 2017-09-14  Mike FABIAN  <mfabian@redhat.com>
10836         [BZ #22112]
10837         * localedata/locales/az_AZ(LC_TELEPHONE): Fix int_select
10838         and add tel_int_fmt.
10840 2017-09-14  Joseph Myers  <joseph@codesourcery.com>
10842         * sysdeps/generic/libm-alias-float128.h: New file.
10843         * sysdeps/generic/math-type-macros-float128.h: Include
10844         <libm-alias-float128.h>.
10845         [!declare_mgen_alias] (declare_mgen_alias): Define macro.
10847 2017-09-13  Joseph Myers  <joseph@codesourcery.com>
10849         * sysdeps/generic/libm-alias-ldouble.h: New file.
10850         * sysdeps/ieee754/ldbl-opt/libm-alias-ldouble.h: Likewise.
10851         * sysdeps/ieee754/ldbl-opt/math-type-macros-ldouble.h: Remove.
10852         * sysdeps/generic/math-type-macros-ldouble.h: Include
10853         <libm-alias-ldouble.h>.
10854         [!declare_mgen_alias] (declare_mgen_alias): Define to use
10855         libm_alias_ldouble.
10857 2017-09-13  Szabolcs Nagy  <szabolcs.nagy@arm.com>
10859         * sysdeps/ieee754/dbl-64/w_exp_compat.c: Move to...
10860         * math/w_exp_compat.c: ... here.
10861         * sysdeps/ieee754/flt-32/w_expf_compat.c: Move to...
10862         * math/w_expf_compat.c: ... here.
10863         * sysdeps/ieee754/ldbl-128/w_expl_compat.c: Move to...
10864         * math/w_expl_compat.c: ... here.
10865         * sysdeps/ieee754/ldbl-128ibm/w_expl_compat.c: Remove.
10866         * sysdeps/ieee754/ldbl-96/w_expl_compat.c: Remove.
10867         * sysdeps/ieee754/ldbl-opt/w_exp_compat.c: Use the new path.
10868         * sysdeps/ieee754/ldbl-opt/w_expl_compat.c: Likewise.
10870 2017-09-13  Joseph Myers  <joseph@codesourcery.com>
10872         * math/w_scalbln_template.c (strong_alias): Do not undefine and
10873         redefine.
10874         * sysdeps/ieee754/ldbl-opt/s_ldexp.c (declare_mgen_alias): Remove
10875         macro.
10876         (ldexpl): Only define as compat symbol for libc, not libm.
10877         (scalbnl): Define as compat symbol for libc here.
10878         * sysdeps/ieee754/ldbl-opt/s_ldexpl.c (declare_mgen_alias): Only
10879         define for [IS_IN (libc)].
10880         (__ldexpl_2): Remove alias.
10881         (ldexpl): Only define with long_double_symbol if [IS_IN (libc)].
10882         (scalbnl): Likewise.  Use __wrap_scalbnl not __ldexpl_2 as base
10883         name in long_double_symbol call.
10884         * sysdeps/ieee754/ldbl-opt/s_log1p.c: Remove file.
10885         * sysdeps/ieee754/ldbl-opt/s_scalbln.c: Likewise.
10886         * sysdeps/ieee754/ldbl-opt/s_scalbn.c: Likewise.
10887         * sysdeps/ieee754/ldbl-opt/w_log1p.c: Likewise.
10888         * sysdeps/ieee754/ldbl-opt/w_scalbln.c (declare_mgen_alias):
10889         Remove macro.
10890         [IS_IN (libc) && LONG_DOUBLE_COMPAT (libc, GLIBC_2_1)] (scalblnl):
10891         Define as compat symbol.
10893 2017-09-13  Adhemerval Zanella  <adhemerval.zanella@linaro.org>
10895         * sysdeps/unix/sysv/linux/s390/s390-32/oldglob.c: New file.
10896         * sysdeps/unix/sysv/linux/alpha/Makefile
10897         [$(subdir) = csu] (sysdep_routines): Remove rule.
10899 2017-09-13  Joseph Myers  <joseph@codesourcery.com>
10901         * sysdeps/generic/libm-alias-double.h: New file.
10902         * sysdeps/ieee754/ldbl-opt/libm-alias-double.h: Likewise.
10903         * sysdeps/generic/math-type-macros-double.h: Include
10904         <libm-alias-double.h>.
10905         [declare_mgen_alias] (declare_mgen_alias): Define to use
10906         libm_alias_double.
10907         * sysdeps/generic/math-type-macros.h [!M_LIBM_NEED_COMPAT]
10908         (M_LIBM_NEED_COMPAT): Remove macro.
10909         [!M_LIBM_NEED_COMPAT] (declare_mgen_libm_compat): Likewise.
10910         * sysdeps/ieee754/ldbl-opt/math-type-macros-double.h: Remove.
10911         * math/cabs_template.c [M_LIBM_NEED_COMPAT]: Remove conditional
10912         code.
10913         * math/carg_template.c [M_LIBM_NEED_COMPAT]: Likewise.
10914         * math/cimag_template.c [M_LIBM_NEED_COMPAT]: Likewise.
10915         * math/conj_template.c [M_LIBM_NEED_COMPAT]: Likewise.
10916         * math/creal_template.c [M_LIBM_NEED_COMPAT]: Likewise.
10917         * math/s_cacos_template.c [M_LIBM_NEED_COMPAT]: Likewise.
10918         * math/s_cacosh_template.c [M_LIBM_NEED_COMPAT]: Likewise.
10919         * math/s_casin_template.c [M_LIBM_NEED_COMPAT]: Likewise.
10920         * math/s_casinh_template.c [M_LIBM_NEED_COMPAT]: Likewise.
10921         * math/s_catan_template.c [M_LIBM_NEED_COMPAT]: Likewise.
10922         * math/s_catanh_template.c [M_LIBM_NEED_COMPAT]: Likewise.
10923         * math/s_ccos_template.c [M_LIBM_NEED_COMPAT]: Likewise.
10924         * math/s_ccosh_template.c [M_LIBM_NEED_COMPAT]: Likewise.
10925         * math/s_cexp_template.c [M_LIBM_NEED_COMPAT]: Likewise.
10926         * math/s_clog10_template.c [M_LIBM_NEED_COMPAT]: Likewise.
10927         * math/s_clog_template.c [M_LIBM_NEED_COMPAT]: Likewise.
10928         * math/s_cpow_template.c [M_LIBM_NEED_COMPAT]: Likewise.
10929         * math/s_cproj_template.c [M_LIBM_NEED_COMPAT]: Likewise.
10930         * math/s_csin_template.c [M_LIBM_NEED_COMPAT]: Likewise.
10931         * math/s_csinh_template.c [M_LIBM_NEED_COMPAT]: Likewise.
10932         * math/s_csqrt_template.c [M_LIBM_NEED_COMPAT]: Likewise.
10933         * math/s_ctan_template.c [M_LIBM_NEED_COMPAT]: Likewise.
10934         * math/s_ctanh_template.c [M_LIBM_NEED_COMPAT]: Likewise.
10935         * math/s_fdim_template.c [M_LIBM_NEED_COMPAT]: Likewise.
10936         * math/s_fmax_template.c [M_LIBM_NEED_COMPAT]: Likewise.
10937         * math/s_fmin_template.c [M_LIBM_NEED_COMPAT]: Likewise.
10938         * math/s_nan_template.c [M_LIBM_NEED_COMPAT]: Likewise.
10939         * math/w_ilogb_template.c [M_LIBM_NEED_COMPAT]: Likewise.
10940         * sysdeps/ieee754/ldbl-opt/s_clog10.c: New file.
10941         * sysdeps/ieee754/ldbl-opt/s_ldexp.c (M_LIBM_NEED_COMPAT): Remove
10942         macro.
10943         (declare_mgen_alias): New macro.
10944         * sysdeps/ieee754/ldbl-opt/w_log1p.c: New file.
10945         * sysdeps/ieee754/ldbl-opt/w_scalbln.c: Likewise.
10946         * sysdeps/sparc/sparc32/sparcv9/fpu/multiarch/s_fdim-vis3.c
10947         (M_LIBM_NEED_COMPAT): Remove macro.
10948         * sysdeps/sparc/sparc32/sparcv9/fpu/multiarch/s_fdim.c
10949         [HAVE_AS_VIS3_SUPPORT]: Include <math_ldbl_opt.h> and
10950         <first-versions.h>.
10951         [HAVE_AS_VIS3_SUPPORT && LONG_DOUBLE_COMPAT (libm,
10952         FIRST_VERSION_libm_fdiml)]: Define fdiml as compat symbol.
10954 2017-09-12  Joseph Myers  <joseph@codesourcery.com>
10956         * sysdeps/generic/math-type-macros.h [!declare_mgen_alias_2]
10957         (declare_mgen_alias_2): Remove.
10958         * sysdeps/generic/math-type-macros-double.h
10959         [NO_LONG_DOUBLE && !declare_mgen_alias_2] (declare_mgen_alias_2):
10960         Likewise.
10961         * math/s_ldexp_template.c (M_SUF (__wrap_scalbn)): Define strong
10962         alias.
10963         (ldexp): Define with declare_mgen_alias.
10964         (scalbn): Likewise.
10966 2017-09-12  Steve Ellcey  <sellcey@cavium.com>
10968         * grp/initgroups.c: Include config.h.
10969         (DEFAULT_CONFIG): New macro.
10970         (internal_getgrouplist): Use DEFAULT_CONFIG.
10971         * nscd/initgrcache.c (addinitgroupsX): Likewise.
10972         * nss/nsswitch.c (__nss_disable_nscd): Likewise.
10973         (DEFAULT_DEFCONFIG): New macro.
10974         (__nss_database_lookup): Use DEFAULT_DEFCONFIG.
10975         * nss/grp-lookup.c: Include config.h
10976         (DEFAULT_CONFIG): Set definition based on LINK_OBSOLETE_NSL.
10977         * nss/pwd-lookup.c (DEFAULT_CONFIG): Likewise.
10978         * nss/spwd-lookup.c (DEFAULT_CONFIG): Likewise.
10979         * manual/nss.texi: Update default values section.
10981 2017-09-12  H.J. Lu  <hongjiu.lu@intel.com>
10983         [BZ #21967]
10984         * sysdeps/x86/cpu-features.h (bit_arch_MathVec_Prefer_No_AVX512):
10985         New.
10986         (index_arch_MathVec_Prefer_No_AVX512): Likewise.
10987         * sysdeps/x86/cpu-tunables.c (TUNABLE_CALLBACK (set_hwcaps)):
10988         Handle MathVec_Prefer_No_AVX512.
10989         * sysdeps/x86_64/fpu/multiarch/ifunc-mathvec-avx512.h
10990         (IFUNC_SELECTOR): Return AVX2 version if MathVec_Prefer_No_AVX512
10991         is set.
10993 2017-09-12  Samuel Thibault  <samuel.thibault@ens-lyon.org>
10995         * posix/sched_primax.c (__sched_get_priority_max): Add
10996         libc_hidden_def.
10997         * posix/sched_primin.c (__sched_get_priority_min): Likewise.
10998         * sysdeps/mach/hurd/mmap.c (__mmap): Likewise.
10999         * sysdeps/mach/hurd/mmap64.c (__mmap64): Likewise.
11000         * sysdeps/mach/hurd/mprotect.c (__mprotect): Likewise.
11001         * sysdeps/mach/hurd/munmap.c (__munmap): Likewise.
11002         * sysdeps/mach/hurd/dl-sysdep.c (__GI___getpid,
11003         __GI___strtoul_internal, __GI_____strtoul_internal, __GI___chk_fail,
11004         __GI___fortify_fail, __GI___assert_fail, __GI___assert_perror_fail):
11005         Add aliases.
11007 2017-09-11  Joseph Myers  <joseph@codesourcery.com>
11009         * sysdeps/generic/libm-alias-float.h: New file.
11010         * sysdeps/generic/math-type-macros-float.h: Include
11011         <libm-alias-float.h>.
11012         [!declare_mgen_alias] (declare_mgen_alias): Define macro.
11014 2017-09-11  H.J. Lu  <hongjiu.lu@intel.com>
11016         [BZ #22093]
11017         * sysdeps/x86/cpu-features.c (init_cpu_features): Initialize
11018         GLRO(dl_hwcap) to HWCAP_X86_64 for x86-64.
11019         * sysdeps/x86/dl-hwcap.h (HWCAP_COUNT): Updated.
11020         (HWCAP_IMPORTANT): Likewise.
11021         (HWCAP_X86_64): New enum.
11022         (HWCAP_X86_AVX512_1): Updated.
11023         * sysdeps/x86/dl-procinfo.c (_dl_x86_hwcap_flags): Add "x86_64".
11024         * sysdeps/x86_64/Makefile (tests): Add tst-x86_64-1.
11025         (modules-names): Add x86_64/tst-x86_64mod-1.
11026         (LDFLAGS-tst-x86_64mod-1.so): New.
11027         ($(objpfx)tst-x86_64-1): Likewise.
11028         ($(objpfx)x86_64/tst-x86_64mod-1.os): Likewise.
11029         (tst-x86_64-1-clean): Likewise.
11030         * sysdeps/x86_64/tst-x86_64-1.c: New file.
11031         * sysdeps/x86_64/tst-x86_64mod-1.c: Likewise.
11033 2017-09-11  Siddhesh Poyarekar  <siddhesh@sourceware.org>
11035         * po/sv.po: Update translations.
11036         * po/fr.po: Likewise.
11038 2017-09-10  Samuel Thibault  <samuel.thibault@ens-lyon.org>
11040         * sunrpc/tst-udp-timeout.c (test_udp_server): Increase timeout to 2.5
11041         seconds.
11042         * sunrpc/tst-udp-nonblocking.c (do_test): Increase timeout to 0.75
11043         seconds.
11044         * elf/rtld-Rules: Fix $(error) use.
11046 2017-09-09  Mike FABIAN  <mfabian@redhat.com>
11048         [BZ #14925]
11049         * libio/tst-widetext.input: Change “Bengali” to “Bangla”.
11050         * locale/iso-639.def: Change “Bengali” to “Bangla”.
11051         * localedata/locales/bn_BD: “Bengali” was still used in some
11052         comments. Change it to “Bangla”.
11054 2017-09-08  Markus Trippelsdorf  <markus@trippelsdorf.de>
11056         * sysdeps/x86_64/fpu/libm-test-ulps: Update for AMD Ryzen.
11058 2017-09-08  Steve Ellcey  <sellcey@cavium.com>
11060         * manual/tunables.texi (glibc.tune.cpu): Add thunderx2t99 and
11061         thunderx2t99p1 to list of cpu names.
11062         * sysdeps/unix/sysv/linux/aarch64/cpu-features.c (cpu_list):
11063         Add thunderx2t99 and thunderx2t99p1 entries to cpu_list.
11065 2017-09-08  Steve Ellcey  <sellcey@cavium.com>
11067         * sysdeps/unix/sysv/linux/aarch64/cpu-features.c (get_midr_from_mcpu):
11068         Use strcmp instead of tunable_is_name.
11070 2017-09-08  Joseph Myers  <joseph@codesourcery.com>
11072         * sysdeps/unix/sysv/linux/bits/fcntl-linux.h [__USE_GNU]
11073         (F_GET_RW_HINT): New macro.
11074         [__USE_GNU] (F_SET_RW_HINT): Likewise.
11075         [__USE_GNU] (F_GET_FILE_RW_HINT): Likewise.
11076         [__USE_GNU] (F_SET_FILE_RW_HINT): Likewise.
11077         [__USE_GNU] (RWF_WRITE_LIFE_NOT_SET): Likewise.
11078         [__USE_GNU] (RWH_WRITE_LIFE_NONE): Likewise.
11079         [__USE_GNU] (RWH_WRITE_LIFE_SHORT): Likewise.
11080         [__USE_GNU] (RWH_WRITE_LIFE_MEDIUM): Likewise.
11081         [__USE_GNU] (RWH_WRITE_LIFE_LONG): Likewise.
11082         [__USE_GNU] (RWH_WRITE_LIFE_EXTREME): Likewise.
11084         * sysdeps/unix/sysv/linux/bits/fcntl-linux.h [__USE_GNU]
11085         (F_ADD_SEALS): New macro.
11086         [__USE_GNU] (F_GET_SEALS): Likewise.
11087         [__USE_GNU] (F_SEAL_SEAL): Likewise.
11088         [__USE_GNU] (F_SEAL_SHRINK): Likewise.
11089         [__USE_GNU] (F_SEAL_GROW): Likewise.
11090         [__USE_GNU] (F_SEAL_WRITE): Likewise.
11092 2017-09-08  Adhemerval Zanella  <adhemerval.zanella@linaro.org>
11094         * posix/glob_internal.h (GLOBPAT_NONE, GLOBPAT_SPECIAL)
11095         (GLOBPAT_BACKSLASH, GLOBPAT_BRACKET): New constants.
11096         * posix/glob_internal.h (__glob_pattern_type):
11097         * posix/glob.c (glob):
11098         * posix/glob_pattern_p.c (__glob_pattern_p):
11099         Use them.
11101         * sysdeps/unix/sysv/linux/arm/glob64.c: Remove file.
11102         * sysdeps/unix/sysv/linux/i386/glob64.c: Likewise.
11103         * sysdeps/unix/sysv/linux/m68k/glob64.c: Likewise.
11104         * sysdeps/unix/sysv/linux/mips/mips64/n64/glob64.c: Likewise.
11105         * sysdeps/unix/sysv/linux/mips/mips64/n64/globfree64.c: Likewise.
11106         * sysdeps/unix/sysv/linux/powerpc/powerpc32/glob64.c: Likewise.
11107         * sysdeps/unix/sysv/linux/sparc/sparc32/glob64.c: Likewise.
11108         * sysdeps/unix/sysv/linux/wordsize-64/glob64.c: Likewise.
11109         * sysdeps/unix/sysv/linux/wordsize-64/globfree64.c: Likewise.
11110         * sysdeps/unix/sysv/linux/x86_64/x32/glob.c: Likewise.
11111         * sysdeps/unix/sysv/linux/x86_64/x32/globfree.c: Likewise.
11112         * sysdeps/wordsize-64/glob.c: Likewise.
11113         * sysdeps/wordsize-64/glob64.c: Likewise.
11114         * sysdeps/wordsize-64/globfree.c: Likewise.
11115         * sysdeps/wordsize-64/globfree64.c: Likewise.
11116         * sysdeps/unix/sysv/linux/glob.c: New file.
11117         * sysdeps/unix/sysv/linux/glob64.c: Likewise.
11118         * sysdeps/unix/sysv/linux/globfree.c: Likewise.
11119         * sysdeps/unix/sysv/linux/globfree64.c: Likewise.
11120         * sysdeps/unix/sysv/linux/s390/s390-32/glob64.c: Likewise.
11121         * sysdeps/unix/sysv/linux/oldglob.c [SHLIB_COMPAT]: Also
11122         adds !GLOB_NO_OLD_VERSION as an extra condition.
11123         * sysdeps/unix/sysv/linux/i386/alphasort64.c: Include olddirent.h
11124         using relative path instead of absolute one.
11125         * sysdeps/unix/sysv/linux/i386/getdents64.c: Likewise.
11126         * sysdeps/unix/sysv/linux/i386/readdir64.c: Likewise.
11127         * sysdeps/unix/sysv/linux/i386/readdir64_r.c: Likewise.
11128         * sysdeps/unix/sysv/linux/i386/versionsort64.c: Likewise.
11129         * sysdeps/unix/sysv/linux/i386/olddirent.h: Move to ...
11130         * sysdeps/unix/sysv/linux//olddirent.h: ... here.
11132         [BZ #1062]
11133         * posix/glob.c (GET_LOGIN_NAME_MAX): Remove.
11134         (glob): Use the same scratch buffer for both getlogin_r and
11135         getpwnam_r.  Don’t require preallocation of the login name.  This
11136         simplifies storage allocation, and corrects the handling of
11137         long login names.
11139         [BZ #1062]
11140         * posix/glob.c (glob): Port recent patches to platforms
11141         lacking getpwnam_r.
11142         (glob): Fix longstanding misuse of errno after getpwnam_r, which
11143         returns an error number rather than setting errno.
11145         * include/scratch_buffer.h (scratch_buffer): Use a C99 align method
11146         instead of GCC extension.
11147         * malloc/scratch_buffer_grow.c [!_LIBC]: Include libc-config.h.
11148         * malloc/scratch_buffer_grow_preserve.c [!_LIBC]: Likewise.
11149         * malloc/scratch_buffer_set_array_size.c [!_LIBC]: Likewise.
11151         [BZ #866]
11152         [BZ #1062]
11153         * posix/Makefile (tests): Remove bug-glob1 and tst-glob_symlinks.
11154         * posix/bug-glob1.c: Remove file.
11155         * posix/tst-glob_symlinks.c: New file.
11156         * posix/glob.c (__lstat64): New macro.
11157         (is_dir): New function.
11158         (glob, glob_in_dir): Match symlinks even if they are dangling.
11159         (link_stat, link_exists_p): Remove.  All uses removed.
11161         [BZ #1062]
11162         [BZ #19971]
11163         * posix/glob.c (struct readdir_result): Remove skip_entry member.
11164         (readdir_result_skip_entry, D_INO_TO_RESULT): Remove.
11165         All uses removed.
11167         [BZ #1062]
11168         CVE-2017-15671
11169         * posix/Makefile (routines): Add globfree, globfree64, and
11170         glob_pattern_p.
11171         * posix/flexmember.h: New file.
11172         * posix/glob_internal.h: Likewise.
11173         * posix/glob_pattern_p.c: Likewise.
11174         * posix/globfree.c: Likewise.
11175         * posix/globfree64.c: Likewise.
11176         * sysdeps/gnu/globfree64.c: Likewise.
11177         * sysdeps/unix/sysv/linux/alpha/globfree.c: Likewise.
11178         * sysdeps/unix/sysv/linux/mips/mips64/n64/globfree64.c: Likewise.
11179         * sysdeps/unix/sysv/linux/oldglob.c: Likewise.
11180         * sysdeps/unix/sysv/linux/wordsize-64/globfree64.c: Likewise.
11181         * sysdeps/unix/sysv/linux/x86_64/x32/globfree.c: Likewise.
11182         * sysdeps/wordsize-64/globfree.c: Likewise.
11183         * sysdeps/wordsize-64/globfree64.c: Likewise.
11184         * posix/glob.c (HAVE_CONFIG_H): Use !_LIBC instead.
11185         [NDEBUG): Remove comments.
11186         (GLOB_ONLY_P, _AMIGA, VMS): Remove define.
11187         (dirent_type): New type.  Use uint_fast8_t not
11188         uint8_t, as C99 does not require uint8_t.
11189         (DT_UNKNOWN, DT_DIR, DT_LNK): New macros.
11190         (struct readdir_result): Use dirent_type.  Do not define skip_entry
11191         unless it is needed; this saves a byte on platforms lacking d_ino.
11192         (readdir_result_type, readdir_result_skip_entry):
11193         New functions, replacing ...
11194         (readdir_result_might_be_symlink, readdir_result_might_be_dir):
11195          these functions, which were removed.  This makes the callers
11196         easier to read.  All callers changed.
11197         (D_INO_TO_RESULT): Now empty if there is no d_ino.
11198         (size_add_wrapv, glob_use_alloca): New static functions.
11199         (glob, glob_in_dir): Check for size_t overflow in several places,
11200         and fix some size_t checks that were not quite right.
11201         Remove old code using SHELL since Bash no longer
11202         uses this.
11203         (glob, prefix_array): Separate MS code better.
11204         (glob_in_dir): Remove old Amiga and VMS code.
11205         (globfree, __glob_pattern_type, __glob_pattern_p): Move to
11206         separate files.
11207         (glob_in_dir): Do not rely on undefined behavior in accessing
11208         struct members beyond their bounds.  Use a flexible array member
11209         instead
11210         (link_stat): Rename from link_exists2_p and return -1/0 instead of
11211         0/1.  Caller changed.
11212         (glob): Fix memory leaks.
11213         * posix/glob64 (globfree64): Move to separate file.
11214         * sysdeps/gnu/glob64.c (NO_GLOB_PATTERN_P): Remove define.
11215         (globfree64): Remove hidden alias.
11216         * sysdeps/unix/sysv/linux/Makefile (sysdeps_routines): Add
11217         oldglob.
11218         * sysdeps/unix/sysv/linux/alpha/glob.c (__new_globfree): Move to
11219         separate file.
11220         * sysdeps/unix/sysv/linux/i386/glob64.c (NO_GLOB_PATTERN_P): Remove
11221         define.
11222         Move compat code to separate file.
11223         * sysdeps/wordsize-64/glob.c (globfree): Move definitions to
11224         separate file.
11226 2017-09-07  H.J. Lu  <hongjiu.lu@intel.com>
11228         * resolv/tst-resolv-qtypes.c (domain): Changed to
11229         "const char domain[] =".
11231 2017-09-07  Joseph Myers  <joseph@codesourcery.com>
11233         * scripts/build-many-glibcs.py (Context.checkout): Default MPFR
11234         version to 3.1.6.
11236         * sysdeps/gnu/netinet/tcp.h (TCP_ULP): New macro.
11237         (TCP_MD5SIG_EXT): Likewise.
11238         (TCP_MD5SIG_FLAG_PREFIX): Likewise.
11239         (struct tcp_md5sig): Replace __tcpm_pad1 by tcpm_flags and
11240         tcpm_prefixlen.  Rename __tcpm_pad2 to __tcpm_pad.
11242         * sysdeps/unix/sysv/linux/bits/socket.h (SOL_TLS): New macro.
11244 2017-09-07  Mike FABIAN  <mfabian@redhat.com>
11246         * localedata/locales/om_ET (LC_TIME): use ASCII for better readability.
11248 2017-09-07  Akhilesh Kumar  <akhilesh.k@samsung.com>
11250         [BZ #22100]
11251         * localedata/locales/om_KE (LC_TIME): copy "om_ET".
11253 2017-09-07  Samuel Thibault  <samuel.thibault@ens-lyon.org>
11255         * hurd/get-host.c (_hurd_get_host_config): Also check that more == 0
11256         before assuming that the file is empty.  Avoid testing buffer content
11257         when nread == 0.
11259 2017-09-06  Adhemerval Zanella  <adhemerval.zanella@linaro.org>
11261         [BZ #18858]
11262         * sysdeps/i386/i686/multiarch/strncpy.c (_HAVE_STRING_ARCH_strncpy):
11263         Remove define.
11264         * sysdeps/x86_64/multiarch/stpcpy.c (_HAVE_STRING_ARCH_stpcpy):
11265         Likewise.
11266         * sysdeps/x86_64/multiarch/strcspn.c (_HAVE_STRING_ARCH_strcspn):
11267         Likewise.
11268         * sysdeps/x86_64/multiarch/strncat.c (_HAVE_STRING_ARCH_strncat):
11269         Likewise.
11270         * sysdeps/x86_64/multiarch/strncpy.c (_HAVE_STRING_ARCH_strncpy):
11271         Likewise.
11272         * sysdeps/x86_64/multiarch/strpbrk.c (_HAVE_STRING_ARCH_strpbrk):
11273         Likewise.
11274         * sysdeps/x86_64/multiarch/strspn.c (_HAVE_STRING_ARCH_strspn):
11275         Likewise.
11277 2017-09-06  Florian Weimer  <fweimer@redhat.com>
11279         * malloc/dynarray_emplace_enlarge.c
11280         (__libc_dynarray_emplace_enlarge): Add missing else.
11282 2017-09-06  Florian Weimer  <fweimer@redhat.com>
11284         [BZ #22096]
11285         * resolv/resolv_conf.c (__resolv_conf_attach): Do not free conf in
11286         case of failure to obtain the global conf object.
11288 2017-09-06  Florian Weimer  <fweimer@redhat.com>
11290         [BZ #22095]
11291         * resolv/res_init.c (res_vinit_1): Avoid memory leak in case of
11292         dynarray allocation failure.
11294 2017-09-06  Florian Weimer  <fweimer@redhat.com>
11296         Remove dead PTR IPv4-to-IPv6 mapping code from nss_dns.
11297         * resolv/nss_dns/dns-host.c (getanswer_r): Remove dead code.
11298         * resolv/tst-res_use_inet6.c (response_ptr_v4, response_ptr_v6):
11299         New functions.
11300         (response): Call them.  Add 'p', '6' flag processing.
11301         (test_reverse): New function.
11302         (test_get2_any): Call it.
11303         (test_no_inet6): Add 'p' test.
11304         (test_inet6): Likewise.
11306 2017-09-06  Florian Weimer  <fweimer@redhat.com>
11308         Enhance tst-res_use_inet6 to test IPv4-to-IPv6 address mapping.
11309         * resolv/tst-res_use_inet6.c (response): Process flags embedded in
11310         the QNAME.
11311         (test_gai): Adjust query names.  Add additional tests.
11312         (test_get2_any, test_get2_no_inet6, test_get2_inet6): Split from
11313         test_get2.  Adjust query names.  Add additional tests.
11314         (test_no_inet6): New function, extracted from threadfunc.
11315         (threadfunc): Call test_get2_any, test_get2_inet6, test_no_inet6.
11316         Add additional tests.
11318 2017-09-06  Mike FABIAN  <mfabian@redhat.com>
11320         [BZ #22070]
11321         * localedata/unicode-gen/utf8_gen.py: Set the width for
11322         characters with Prepended_Concatenation_Mark property to 1
11323         * localedata/charmaps/UTF-8: Updated using the improved script.
11325 2017-09-06  Mike FABIAN  <mfabian@redhat.com>
11327         [BZ #21750]
11328         * localedata/unicode-gen/utf8_gen.py: Improve the script to
11329         use the range notation for all ranges of neighbouring characters
11330         with the same width.
11332 2017-09-05  Joseph Myers  <joseph@codesourcery.com>
11334         * sysdeps/generic/math-type-macros-double.h: Include
11335         <math-svid-compat.h>.
11336         (__USE_WRAPPER_TEMPLATE): Define to !LIBM_SVID_COMPAT.
11337         * sysdeps/generic/math-type-macros-float.h: Include
11338         <math-svid-compat.h>.
11339         (__USE_WRAPPER_TEMPLATE): Define to !LIBM_SVID_COMPAT.
11340         * sysdeps/generic/math-type-macros-ldouble.h: Include
11341         <math-svid-compat.h>.
11342         (__USE_WRAPPER_TEMPLATE): Define to !LIBM_SVID_COMPAT.
11343         * math/lgamma-compat.h (BUILD_LGAMMA): Include LIBM_SVID_COMPAT
11344         condition.
11345         * math/w_acos_compat.c: Condition contents on [LIBM_SVID_COMPAT].
11346         * math/w_acosf_compat.c: Likewise.
11347         * math/w_acosh_compat.c: Likewise.
11348         * math/w_acoshf_compat.c: Likewise.
11349         * math/w_acoshl_compat.c: Likewise.
11350         * math/w_acosl_compat.c: Likewise.
11351         * math/w_asin_compat.c: Likewise.
11352         * math/w_asinf_compat.c: Likewise.
11353         * math/w_asinl_compat.c: Likewise.
11354         * math/w_atan2_compat.c: Likewise.
11355         * math/w_atan2f_compat.c: Likewise.
11356         * math/w_atan2l_compat.c: Likewise.
11357         * math/w_atanh_compat.c: Likewise.
11358         * math/w_atanhf_compat.c: Likewise.
11359         * math/w_atanhl_compat.c: Likewise.
11360         * math/w_cosh_compat.c: Likewise.
11361         * math/w_coshf_compat.c: Likewise.
11362         * math/w_coshl_compat.c: Likewise.
11363         * math/w_exp10_compat.c: Likewise.
11364         * math/w_exp10f_compat.c: Likewise.
11365         * math/w_exp10l_compat.c: Likewise.
11366         * math/w_exp2_compat.c: Likewise.
11367         * math/w_exp2f_compat.c: Likewise.
11368         * math/w_exp2l_compat.c: Likewise.
11369         * math/w_fmod_compat.c: Likewise.
11370         * math/w_fmodf_compat.c: Likewise.
11371         * math/w_fmodl_compat.c: Likewise.
11372         * math/w_hypot_compat.c: Likewise.
11373         * math/w_hypotf_compat.c: Likewise.
11374         * math/w_hypotl_compat.c: Likewise.
11375         * math/w_j0_compat.c: Likewise.
11376         * math/w_j0f_compat.c: Likewise.
11377         * math/w_j0l_compat.c: Likewise.
11378         * math/w_j1_compat.c: Likewise.
11379         * math/w_j1f_compat.c: Likewise.
11380         * math/w_j1l_compat.c: Likewise.
11381         * math/w_jn_compat.c: Likewise.
11382         * math/w_jnf_compat.c: Likewise.
11383         * math/w_jnl_compat.c: Likewise.
11384         * math/w_lgamma_r_compat.c: Likewise.
11385         * math/w_lgammaf_r_compat.c: Likewise.
11386         * math/w_lgammal_r_compat.c: Likewise.
11387         * math/w_log10_compat.c: Likewise.
11388         * math/w_log10f_compat.c: Likewise.
11389         * math/w_log10l_compat.c: Likewise.
11390         * math/w_log2_compat.c: Likewise.
11391         * math/w_log2f_compat.c: Likewise.
11392         * math/w_log2l_compat.c: Likewise.
11393         * math/w_log_compat.c: Likewise.
11394         * math/w_logf_compat.c: Likewise.
11395         * math/w_logl_compat.c: Likewise.
11396         * math/w_pow_compat.c: Likewise.
11397         * math/w_powf_compat.c: Likewise.
11398         * math/w_powl_compat.c: Likewise.
11399         * math/w_remainder_compat.c: Likewise.
11400         * math/w_remainderf_compat.c: Likewise.
11401         * math/w_remainderl_compat.c: Likewise.
11402         * math/w_sinh_compat.c: Likewise.
11403         * math/w_sinhf_compat.c: Likewise.
11404         * math/w_sinhl_compat.c: Likewise.
11405         * math/w_sqrt_compat.c: Likewise.
11406         * math/w_sqrtf_compat.c: Likewise.
11407         * math/w_sqrtl_compat.c: Likewise.
11408         * math/w_tgamma_compat.c: Likewise.
11409         * math/w_tgammaf_compat.c: Likewise.
11410         * math/w_tgammal_compat.c: Likewise.
11411         * math/w_scalb_compat.c (sysv_scalb): Condition definition on
11412         [LIBM_SVID_COMPAT].
11413         (__scalb): Condition call to sysv_scalb on [LIBM_SVID_COMPAT].
11414         * math/w_scalbf_compat.c (sysv_scalbf): Condition definition on
11415         [LIBM_SVID_COMPAT].
11416         (__scalbf): Condition call to sysv_scalbf on [LIBM_SVID_COMPAT].
11417         * math/w_scalbl_compat.c (sysv_scalbl): Condition definition on
11418         [LIBM_SVID_COMPAT].
11419         (__scalbl): Condition call to sysv_scalbl on [LIBM_SVID_COMPAT].
11420         * sysdeps/i386/fpu/w_sqrt.c: New file.
11421         * sysdeps/ia64/fpu/w_acos.c: Likewise.
11422         * sysdeps/ia64/fpu/w_acosf.c: Likewise.
11423         * sysdeps/ia64/fpu/w_acosh.c: Likewise.
11424         * sysdeps/ia64/fpu/w_acoshf.c: Likewise.
11425         * sysdeps/ia64/fpu/w_acoshl.c: Likewise.
11426         * sysdeps/ia64/fpu/w_acosl.c: Likewise.
11427         * sysdeps/ia64/fpu/w_asin.c: Likewise.
11428         * sysdeps/ia64/fpu/w_asinf.c: Likewise.
11429         * sysdeps/ia64/fpu/w_asinl.c: Likewise.
11430         * sysdeps/ia64/fpu/w_atan2.c: Likewise.
11431         * sysdeps/ia64/fpu/w_atan2f.c: Likewise.
11432         * sysdeps/ia64/fpu/w_atan2l.c: Likewise.
11433         * sysdeps/ia64/fpu/w_atanh.c: Likewise.
11434         * sysdeps/ia64/fpu/w_atanhf.c: Likewise.
11435         * sysdeps/ia64/fpu/w_atanhl.c: Likewise.
11436         * sysdeps/ia64/fpu/w_cosh.c: Likewise.
11437         * sysdeps/ia64/fpu/w_coshf.c: Likewise.
11438         * sysdeps/ia64/fpu/w_coshl.c: Likewise.
11439         * sysdeps/ia64/fpu/w_exp.c: Likewise.
11440         * sysdeps/ia64/fpu/w_exp10.c: Likewise.
11441         * sysdeps/ia64/fpu/w_exp10f.c: Likewise.
11442         * sysdeps/ia64/fpu/w_exp10l.c: Likewise.
11443         * sysdeps/ia64/fpu/w_exp2.c: Likewise.
11444         * sysdeps/ia64/fpu/w_exp2f.c: Likewise.
11445         * sysdeps/ia64/fpu/w_exp2l.c: Likewise.
11446         * sysdeps/ia64/fpu/w_expf.c: Likewise.
11447         * sysdeps/ia64/fpu/w_expl.c: Likewise.
11448         * sysdeps/ia64/fpu/w_fmod.c: Likewise.
11449         * sysdeps/ia64/fpu/w_fmodf.c: Likewise.
11450         * sysdeps/ia64/fpu/w_fmodl.c: Likewise.
11451         * sysdeps/ia64/fpu/w_hypot.c: Likewise.
11452         * sysdeps/ia64/fpu/w_hypotf.c: Likewise.
11453         * sysdeps/ia64/fpu/w_hypotl.c: Likewise.
11454         * sysdeps/ia64/fpu/w_lgamma_r.c: Likewise.
11455         * sysdeps/ia64/fpu/w_lgammaf_r.c: Likewise.
11456         * sysdeps/ia64/fpu/w_lgammal_r.c: Likewise.
11457         * sysdeps/ia64/fpu/w_log.c: Likewise.
11458         * sysdeps/ia64/fpu/w_log10.c: Likewise.
11459         * sysdeps/ia64/fpu/w_log10f.c: Likewise.
11460         * sysdeps/ia64/fpu/w_log10l.c: Likewise.
11461         * sysdeps/ia64/fpu/w_log2.c: Likewise.
11462         * sysdeps/ia64/fpu/w_log2f.c: Likewise.
11463         * sysdeps/ia64/fpu/w_log2l.c: Likewise.
11464         * sysdeps/ia64/fpu/w_logf.c: Likewise.
11465         * sysdeps/ia64/fpu/w_logl.c: Likewise.
11466         * sysdeps/ia64/fpu/w_pow.c: Likewise.
11467         * sysdeps/ia64/fpu/w_powf.c: Likewise.
11468         * sysdeps/ia64/fpu/w_powl.c: Likewise.
11469         * sysdeps/ia64/fpu/w_remainder.c: Likewise.
11470         * sysdeps/ia64/fpu/w_remainderf.c: Likewise.
11471         * sysdeps/ia64/fpu/w_remainderl.c: Likewise.
11472         * sysdeps/ia64/fpu/w_sinh.c: Likewise.
11473         * sysdeps/ia64/fpu/w_sinhf.c: Likewise.
11474         * sysdeps/ia64/fpu/w_sinhl.c: Likewise.
11475         * sysdeps/ia64/fpu/w_sqrt.c: Likewise.
11476         * sysdeps/ia64/fpu/w_sqrtf.c: Likewise.
11477         * sysdeps/ia64/fpu/w_sqrtl.c: Likewise.
11478         * sysdeps/ia64/fpu/w_tgamma.c: Likewise.
11479         * sysdeps/ia64/fpu/w_tgammaf.c: Likewise.
11480         * sysdeps/ia64/fpu/w_tgammal.c: Likewise.
11481         * sysdeps/ieee754/dbl-64/w_exp_compat.c: Condition contents on
11482         [LIBM_SVID_COMPAT].
11483         * sysdeps/ieee754/flt-32/w_expf_compat.c: Likewise.
11484         * sysdeps/ieee754/k_standard.c: Likewise.
11485         * sysdeps/ieee754/k_standardf.c: Likewise.
11486         * sysdeps/ieee754/k_standardl.c: Likewise.
11487         * sysdeps/ieee754/ldbl-128/w_expl_compat.c: Likewise.
11488         * sysdeps/ieee754/ldbl-128ibm/w_expl_compat.c: Likewise.
11489         * sysdeps/ieee754/ldbl-96/w_expl_compat.c: Likewise.
11490         * sysdeps/ieee754/ldbl-64-128/w_expl_compat.c: Condition
11491         long_double_symbol call on [LIBM_SVID_COMPAT].
11492         * sysdeps/ieee754/ldbl-opt/w_acoshl_compat.c: Likewise.
11493         * sysdeps/ieee754/ldbl-opt/w_acosl_compat.c: Likewise.
11494         * sysdeps/ieee754/ldbl-opt/w_asinl_compat.c: Likewise.
11495         * sysdeps/ieee754/ldbl-opt/w_atan2l_compat.c: Likewise.
11496         * sysdeps/ieee754/ldbl-opt/w_atanhl_compat.c: Likewise.
11497         * sysdeps/ieee754/ldbl-opt/w_coshl_compat.c: Likewise.
11498         * sysdeps/ieee754/ldbl-opt/w_fmodl_compat.c: Likewise.
11499         * sysdeps/ieee754/ldbl-opt/w_hypotl_compat.c: Likewise.
11500         * sysdeps/ieee754/ldbl-opt/w_j0l_compat.c: Likewise.
11501         * sysdeps/ieee754/ldbl-opt/w_j1l_compat.c: Likewise.
11502         * sysdeps/ieee754/ldbl-opt/w_jnl_compat.c: Likewise.
11503         * sysdeps/ieee754/ldbl-opt/w_lgammal_r_compat.c: Likewise.
11504         * sysdeps/ieee754/ldbl-opt/w_log10l_compat.c: Likewise.
11505         * sysdeps/ieee754/ldbl-opt/w_log2l_compat.c: Likewise.
11506         * sysdeps/ieee754/ldbl-opt/w_logl_compat.c: Likewise.
11507         * sysdeps/ieee754/ldbl-opt/w_powl_compat.c: Likewise.
11508         * sysdeps/ieee754/ldbl-opt/w_remainderl_compat.c: Likewise.
11509         * sysdeps/ieee754/ldbl-opt/w_sinhl_compat.c: Likewise.
11510         * sysdeps/ieee754/ldbl-opt/w_sqrtl_compat.c: Likewise.
11511         * sysdeps/ieee754/ldbl-opt/w_tgammal_compat.c: Likewise.
11512         * sysdeps/ieee754/ldbl-opt/w_exp10l_compat.c: Condition
11513         long_double_symbol and compat_symbol calls on [LIBM_SVID_COMPAT].
11515 2017-09-05  Steve Ellcey  <sellcey@cavium.com>
11517         * include/shlib-compat.h (TEST_COMPAT): New Macro.
11518         * malloc/tst-mallocstate.c: Convert from test-skeleton
11519         to test-driver.  Ifdef code using TEST_COMPAT macro.
11520         * math/test-matherr-2.c: Ifdef test using TEST_COMPAT macro.
11521         * math/test-matherr.c: Likewise.
11523 2017-09-05  Joseph Myers  <joseph@codesourcery.com>
11525         [BZ #22086]
11526         * debug/pcprofiledump.c (main): Use byte-swapped mask when
11527         comparing word with byte-swapped constant.
11529 2017-09-05  Chris Leonard  <cjlhomeaddress@gmail.com>
11531         [BZ #20498]
11532         * locale/iso-639.def: add Miskito.
11533         * localedata/SUPPORTED: Add miq_NI/UTF-8.
11534         * localedata/locales/miq_NI: New file.
11536 2017-09-04  H.J. Lu  <hongjiu.lu@intel.com>
11538         [BZ #18822]
11539         * include/sys/stat.h (__chmod): Add libc_hidden_proto.
11540         (__mkdir): Likewise.
11541         * io/chmod.c (__chmod): Add libc_hidden_def.
11542         * io/mkdir.c (__mkdir): Likewise.
11543         * sysdeps/mach/hurd/chmod.c (__chmod): Likewise.
11544         * sysdeps/mach/hurd/mkdir.c (__mkdir): Likewise.
11545         * sysdeps/unix/sysv/linux/generic/chmod.c (__chmod): Likewise.
11546         * sysdeps/unix/sysv/linux/generic/mkdir.c (__mkdir): Likewise.
11548 2017-09-04  Joseph Myers  <joseph@codesourcery.com>
11550         * sysdeps/unix/sysv/linux/syscall-names.list: Update kernel
11551         version to 4.13.
11553         [BZ #22082]
11554         * math/bits/math-finite.h (exp10): Redirect if [__GLIBC_USE
11555         (IEC_60559_FUNCS_EXT)], not [__USE_GNU].
11557 2017-09-04  Florian Weimer  <fweimer@redhat.com>
11559         * math/math.h: Issue warning if log is defined.
11561 2017-09-04  Joseph Myers  <joseph@codesourcery.com>
11563         * scripts/build-many-glibcs.py (Context.checkout): Default Linux
11564         kernel version to 4.13.
11566 2017-09-03  Samuel Thibault  <samuel.thibault@ens-lyon.org>
11568         * sysdeps/generic/sigsetops.h: Remove spurious #endif.
11569         (__sigismember, __sigaddset, __sigdelset): Fix referencing set
11570         parameter.
11571         * sysdeps/mach/hurd/bits/socket.h: Include <sys/types.h> instead of
11572         just <bits/types.h>.
11573         * sysdeps/posix/preadv2.c: Use off_t instead of OFF_T.
11574         * sysdeps/posix/preadv64v2.c: Use off64_t instead of OFF_T.
11575         * sysdeps/posix/pwritev2.c: Use off_t instead of OFF_T.
11576         * sysdeps/posix/pwritev64v2.c: Use off64_t instead of OFF_T.
11577         * misc/preadv2.c: Include <errno.h>.
11578         * misc/preadv64v2.c: Include <errno.h>.
11579         * misc/pwritev2.c: Include <errno.h>.
11580         * misc/pwritev64v2.c: Include <errno.h>.
11581         * sysdeps/posix/preadv2.c: Include <errno.h>.
11582         * sysdeps/posix/preadv64v2.c: Include <errno.h>.
11583         Fix <unistd.h> inclusion.
11584         * sysdeps/posix/pwritev2.c: Include <errno.h>.
11585         * sysdeps/posix/pwritev64v2.c: Include <errno.h>.
11586         * sysdeps/mach/hurd/dl-sysdep.c (__access_noerrno, __sbrk,
11587         __strtoul_internal): New functions.
11588         * sysdeps/posix/pause.c: Include <sigsetops.h>.
11589         * sysdeps/posix/system.c: Include <sigsetops.h>.
11590         * sysdeps/mach/hurd/i386/Makefile
11591         [$(subdir) = csu] (sysdep_routines): New rule: divdi3 object.
11592         [$(subdir) = csu] (sysdep-only-routines): Likewise.
11593         [$(subdir) = csu] (CFLAGS-divdi3.c): Likewise.
11594         * sysdeps/x86/fpu/include/bits/fenv.h [NO_HIDDEN]: Redirect
11595         __feraiseexcept_renamed to feraiseexcept instead of
11596         __GI_feraiseexcept.
11597         * sysdeps/mach/hurd/i386/Implies: Add mach/hurd/x86.
11598         * sysdeps/mach/hurd/x86/dl-sysdep.c: New file.
11599         * misc/tst-preadvwritev2-common.c (RWF_HIPRI, RWF_DSYNC, RWF_SYNC,
11600         RWF_NOWAIT): Define to 0 if undefined already.
11601         (do_test_with_invalid_flags): Set invalid_flag to 2 if RWF_SUPPORTED
11602         boils down to 0.
11603         * resolv/tst-resolv-res_init-skeleton.c (run_res_init)
11604         [!CLONE_NEWUTS]: Fail as unsupported if hostname is not NULL.
11606 2017-09-01  Joseph Myers  <joseph@codesourcery.com>
11608         * manual/math.texi (pow10): Do not document.
11609         (pow10f): Likewise.
11610         (pow10l): Likewise.
11611         * math/bits/mathcalls.h [__USE_GNU] (pow10): Do not declare.
11612         * math/bits/math-finite.h [__USE_GNU] (pow10): Likewise.
11613         * math/libm-test-exp10.inc (pow10_test): Remove.
11614         (do_test): Do not call pow10.
11615         * math/w_exp10_compat.c (pow10): Make into compat symbol.
11616         [NO_LONG_DOUBLE] (pow10l): Likewise.
11617         * math/w_exp10f_compat.c (pow10f): Likewise.
11618         * math/w_exp10l_compat.c (pow10l): Likewise.
11619         * sysdeps/ia64/fpu/e_exp10.S: Include <shlib-compat.h>.
11620         (pow10): Make into compat symbol.
11621         * sysdeps/ia64/fpu/e_exp10f.S: Include <shlib-compat.h>.
11622         (pow10f): Make into compat symbol.
11623         * sysdeps/ia64/fpu/e_exp10l.S: Include <shlib-compat.h>.
11624         (pow10l): Make into compat symbol.
11625         * sysdeps/ieee754/ldbl-opt/Makefile (libnldbl-calls): Remove
11626         pow10.
11627         (CFLAGS-nldbl-pow10.c): Remove variable..
11628         * sysdeps/ieee754/ldbl-opt/nldbl-pow10.c: Remove file.
11629         * sysdeps/ieee754/ldbl-opt/w_exp10_compat.c (pow10l): Condition on
11630         [SHLIB_COMPAT (libm, GLIBC_2_1, GLIBC_2_27)].
11631         * sysdeps/ieee754/ldbl-opt/w_exp10l_compat.c (compat_symbol):
11632         Undefine and redefine.
11633         (pow10l): Make into compat symbol.
11634         * sysdeps/aarch64/libm-test-ulps: Remove pow10 ulps.
11635         * sysdeps/alpha/fpu/libm-test-ulps: Likewise.
11636         * sysdeps/arm/libm-test-ulps: Likewise.
11637         * sysdeps/hppa/fpu/libm-test-ulps: Likewise.
11638         * sysdeps/i386/fpu/libm-test-ulps: Likewise.
11639         * sysdeps/i386/i686/fpu/multiarch/libm-test-ulps: Likewise.
11640         * sysdeps/microblaze/libm-test-ulps: Likewise.
11641         * sysdeps/mips/mips32/libm-test-ulps: Likewise.
11642         * sysdeps/mips/mips64/libm-test-ulps: Likewise.
11643         * sysdeps/nios2/libm-test-ulps: Likewise.
11644         * sysdeps/powerpc/fpu/libm-test-ulps: Likewise.
11645         * sysdeps/powerpc/nofpu/libm-test-ulps: Likewise.
11646         * sysdeps/s390/fpu/libm-test-ulps: Likewise.
11647         * sysdeps/sh/libm-test-ulps: Likewise.
11648         * sysdeps/sparc/fpu/libm-test-ulps: Likewise.
11649         * sysdeps/tile/libm-test-ulps: Likewise.
11650         * sysdeps/x86_64/fpu/libm-test-ulps: Likewise.
11652 2017-09-01  Paul Pluzhnikov  <ppluzhnikov@google.com>
11654         * stdlib/tst-atexit-common.c (crumbs): Ensure correct size.
11656 2017-09-01  H.J. Lu  <hongjiu.lu@intel.com>
11658         * posix/tst-regex.c (do_test): Replace "../ChangeLog.8" with
11659         "../ChangeLog.old/ChangeLog.8".
11660         * posix/tst-regex2.c (do_test): Replace "../ChangeLog.14" with
11661         "../ChangeLog.old/ChangeLog.14".
11663 2017-09-01  H.J. Lu  <hongjiu.lu@intel.com>
11665         * manual/contrib.texi: Credit Ulrich Drepper for the POSIX
11666         Threads Library.
11668 2017-09-01  Joseph Myers  <joseph@codesourcery.com>
11670         * sysdeps/unix/sysv/linux/gentempfd.c: Include <string.h>.
11672 2017-09-01  H.J. Lu  <hongjiu.lu@intel.com>
11674         * csu/version.c (banner): Remove "by Roland McGrath et al.".
11675         * nptl/Banner: Remove "by Ulrich Drepper et al.".
11677 2017-09-01  Paul Pluzhnikov  <ppluzhnikov@google.com>
11679         * stdlib/tst-atexit-common.c (do_test): Test support for at least
11680         32 atexit handlers.
11682 2017-09-01  Zack Weinberg  <zackw@panix.com>
11684         * math/math.h (HUGE_VAL): Improve commentary.
11686 2017-09-01  Adhemerval Zanella  <adhemerval.zanella@linaro.org>
11687             Andreas Schwab  <schwab@suse.de>
11689         [BZ #21530]
11690         * include/stdio.h (__gen_tempfd): New function.
11691         * stdio-common/Makefile (routines): Add gentempfd.
11692         * stdio-common/gentempfd.c: New file.
11693         * sysdeps/unix/sysv/linux/gentempfd.c: Likewise.
11694         * stdio-common/tmpfile.c (tmpfile): First try to use a system specific
11695         unnamed file first.
11697 2017-09-01  Florian Weimer  <fweimer@redhat.com>
11699         [BZ #21915]
11700         [BZ #21922]
11701         * sysdeps/posix/getaddrinfo.c (gethosts): Look at NSS function
11702         result to determine success or failure, not the errno value.
11703         * nss/Makefile (tests): Add tst-nss-files-hosts-erange.
11704         (tst-nss-files-hosts-erange): Link with -ldl.
11705         * nss/tst-nss-files-hosts-erange.c: New file.
11706         * nss/tst-resolv-basic.c (response): Handle nodata.example.
11707         (do_test): Add NO_DATA tests.
11708         * resolv/tst-resolv-basic.c (test_nodata_nxdomain): New function.
11709         (do_test): Call it.
11711 2017-09-01  Florian Weimer  <fweimer@redhat.com>
11713         [BZ #21922]
11714         * sysdeps/posix/getaddrinfo.c (gaih_inet): Report EAI_NODATA error
11715         coming from gethostbyname2_r.
11717 2017-09-01  Florian Weimer  <fweimer@redhat.com>
11719         * support/namespace.h (struct support_chroot_configuration): Add
11720         hosts, host_conf.
11721         (struct support_chroot): Add path_hosts, path_host_conf.
11722         * support/support_chroot.c (write_file): New function.
11723         (support_chroot_create): Call it to process /etc/resolv.conf,
11724         /etc/hosts, /etc/host.conf.
11725         (support_chroot_free): Update.
11727 2017-09-01  Florian Weimer  <fweimer@redhat.com>
11729         * sysdeps/posix/getaddrinfo.c (gaih_inet): Only use h_errno if
11730         status indicates it is set.
11732 2017-09-01  Florian Weimer  <fweimer@redhat.com>
11734         [BZ #20532]
11735         * sysdeps/posix/getaddrinfo.c (gaih_inet): Make reporting of NSS
11736         function lookup failures more reliable.
11738 2017-09-01  Florian Weimer  <fweimer@redhat.com>
11740         * sysdeps/posix/getaddrinfo.c (gethosts): Use h_errno directly.
11741         (getcanonname): Likewise.
11742         (gaih_inet): Likewise.
11744 2017-09-01  Florian Weimer  <fweimer@redhat.com>
11746         * sysdeps/posix/getaddrinfo.c (gethosts): Use errno directly.
11747         (getcanonname): Likewise.
11748         (gaih_inet): Likewise.
11750 2017-08-31  Steve Ellcey  <sellcey@cavium.com>
11751             Richard Henderson <rth@twiddle.net>
11753         * sysdeps/aarch64/fpu/s_llrint.c (OREG_SIZE): New macro.
11754         * sysdeps/aarch64/fpu/s_llround.c (OREG_SIZE): Likewise.
11755         * sysdeps/aarch64/fpu/s_llrintf.c (OREGS, IREGS): Remove.
11756         (IREG_SIZE, OREG_SIZE): New macros.
11757         * sysdeps/aarch64/fpu/s_llroundf.c: (OREGS, IREGS): Remove.
11758         (IREG_SIZE, OREG_SIZE): New macros.
11759         * sysdeps/aarch64/fpu/s_lrintf.c (IREGS): Remove.
11760         (IREG_SIZE): New macro.
11761         * sysdeps/aarch64/fpu/s_lroundf.c (IREGS): Remove.
11762         (IREG_SIZE): New macro.
11763         * sysdeps/aarch64/fpu/s_lrint.c (get-rounding-mode.h, stdint.h):
11764         New includes.
11765         (IREG_SIZE, OREG_SIZE): Initialize if not already set.
11766         (OREGS, IREGS): Set based on IREG_SIZE and OREG_SIZE.
11767         (__CONCATX): Handle exceptions correctly on large values that may
11768         set FE_INVALID.
11769         * sysdeps/aarch64/fpu/s_lround.c (IREG_SIZE, OREG_SIZE):
11770         Initialize if not already set.
11771         (OREGS, IREGS): Set based on IREG_SIZE and OREG_SIZE.
11773 2017-08-31  Adhemerval Zanella  <adhemerval.zanella@linaro.org>
11775         * sysdeps/generic/not-cancel.h (NO_CANCELLATION): Remove macro.
11776         * sysdeps/unix/sysv/linux/aarch64/sysdep-cancel.h (NO_CANCELLATION):
11777         Likewise.
11778         * sysdeps/unix/sysv/linux/alpha/sysdep-cancel.h (NO_CANCELLATION):
11779         Likewise.
11780         * sysdeps/unix/sysv/linux/arm/sysdep-cancel.h (NO_CANCELLATION):
11781         Likewise.
11782         * sysdeps/unix/sysv/linux/hppa/sysdep-cancel.h (NO_CANCELLATION):
11783         Likewise.
11784         * sysdeps/unix/sysv/linux/i386/sysdep-cancel.h (NO_CANCELLATION):
11785         Likewise.
11786         * sysdeps/unix/sysv/linux/ia64/sysdep-cancel.h (NO_CANCELLATION):
11787         Likewise.
11788         * sysdeps/unix/sysv/linux/m68k/sysdep-cancel.h (NO_CANCELLATION):
11789         Likewise.
11790         * sysdeps/unix/sysv/linux/microblaze/sysdep-cancel.h
11791         (NO_CANCELLATION): Likewise.
11792         * sysdeps/unix/sysv/linux/mips/sysdep-cancel.h (NO_CANCELLATION):
11793         Likewise.
11794         * sysdeps/unix/sysv/linux/nios2/sysdep-cancel.h (NO_CANCELLATION):
11795         Likewise.
11796         * sysdeps/unix/sysv/linux/powerpc/sysdep-cancel.h (NO_CANCELLATION):
11797         Likewise.
11798         * sysdeps/unix/sysv/linux/s390/s390-32/sysdep-cancel.h
11799         (NO_CANCELLATION): Likewise.
11800         * sysdeps/unix/sysv/linux/s390/s390-64/sysdep-cancel.h
11801         (NO_CANCELLATION): Likewise.
11802         * sysdeps/unix/sysv/linux/sh/sysdep-cancel.h (NO_CANCELLATION):
11803         Likewise
11804         * sysdeps/unix/sysv/linux/sparc/sysdep-cancel.h (NO_CANCELLATION):
11805         Likewise.
11806         * sysdeps/unix/sysv/linux/tile/sysdep-cancel.h (NO_CANCELLATION):
11807         Likewise.
11808         * sysdeps/unix/sysv/linux/x86_64/sysdep-cancel.h (NO_CANCELLATION):
11809         Likewise.
11810         * sysdeps/unix/sysv/linux/not-cancel.h (__fcntl_nocancel): Add
11811         hidden prototype.
11812         * sysdeps/unix/sysv/linux/fcntl.c (__fcntl_nocancel): Define only
11813         for !IS_IN (rtld) and remove NO_CANCELLATION usage.
11815 2017-08-31  Steve Ellcey  <sellcey@cavium.com>
11817         * sysdeps/aarch64/dl-irel.h: (elf_ifunc_invoke): Change argument type
11818         in resolver call.
11820 2017-08-31  Florian Weimer  <fweimer@redhat.com>
11822         * include/libc-symbols.h (internal_function): Remove.
11824 2017-08-31  Florian Weimer  <fweimer@redhat.com>
11826         * stdlib/fmtmsg.c (internal_addseverity): Remove
11827         internal_function.
11829 2017-08-31  Florian Weimer  <fweimer@redhat.com>
11831         * stdio-common/printf_fp.c (group_number): Remove
11832         internal_function.
11833         * stdio-common/vfprintf.c (buffered_vfprintf): Likewise.
11835 2017-08-31  Florian Weimer  <fweimer@redhat.com>
11837         * posix/fnmatch.c (internal_function): Remove definition.
11838         * posix/fnmatch_loop.c (FCT, EXT, END): Remove internal_function.
11839         * posix/regcomp.c (peek_token, init_word_char)
11840         (duplicate_node_closure, fetch_token, peek_token)
11841         (peek_token_bracket, build_range_exp, build_collating_symbol):
11842         Likewise.
11843         * posix/regex_internal.c (re_string_construct_common)
11844         (create_ci_newstate, create_cd_newstate, re_string_allocate)
11845         (re_string_construct, re_string_realloc_buffers, build_wcs_buffer)
11846         (build_wcs_upper_buffer, re_string_skip_chars, build_upper_buffer)
11847         (re_string_translate_buffer, re_string_reconstruct)
11848         (re_string_peek_byte_case, re_string_fetch_byte_case)
11849         (re_string_destruct, re_string_context_at, re_node_set_alloc)
11850         (re_node_set_init_1, re_node_set_init_2, re_node_set_init_copy)
11851         (re_node_set_add_intersect, re_node_set_init_union)
11852         (re_node_set_merge, re_node_set_insert, re_node_set_insert_last)
11853         (re_node_set_compare, re_node_set_contains, re_node_set_remove_at)
11854         (re_dfa_add_node, calc_state_hash, re_acquire_state)
11855         (re_acquire_state_context): Likewise.
11856         * posix/regex_internal.h (internal_function): Remove definition.
11857         (re_string_realloc_buffers, build_wcs_buffer)
11858         (build_wcs_upper_buffer, build_upper_buffer)
11859         (re_string_translate_buffer, re_string_context_at)
11860         (re_string_char_size_at, re_string_wchar_at)
11861         (re_string_elem_size_at): Likewise.
11862         * posix/regexec.c (match_ctx_init, match_ctx_clean)
11863         (match_ctx_free, match_ctx_add_entry, search_cur_bkref_entry)
11864         (match_ctx_add_subtop, match_ctx_add_sublast, sift_ctx_init)
11865         (re_search_internal, re_search_2_stub, re_search_stub)
11866         (re_copy_regs, prune_impossible_nodes, check_matching)
11867         (check_halt_state_context, update_regs, push_fail_stack, set_regs)
11868         (free_fail_stack_return, sift_states_iter_mb)
11869         (sift_states_backward, build_sifted_states)
11870         (update_cur_sifted_state, add_epsilon_src_nodes, check_dst_limits)
11871         (check_dst_limits_calc_pos_1, check_dst_limits_calc_pos)
11872         (check_subexp_limits, sift_states_bkref, merge_state_array)
11873         (find_recover_state, transit_state, merge_state_with_log)
11874         (check_subexp_matching_top, transit_state_sb, transit_state_sb)
11875         (transit_state_mb, transit_state_bkref, get_subexp)
11876         (get_subexp_sub, find_subexp_node, check_arrival)
11877         (check_arrival_add_next_nodes, check_arrival_expand_ecl)
11878         (check_arrival_expand_ecl_sub, expand_bkref_cache, build_trtable)
11879         (check_node_accept_bytes, find_collation_sequence_value)
11880         (group_nodes_into_DFAstates, check_node_accept, extend_buffers)
11881         (acquire_init_state_context, check_halt_node_context)
11882         (proceed_next_node, pop_fail_stack, clean_state_log_if_needed)
11883         (sub_epsilon_src_nodes): Likewise.
11884         * posix/spawn_int.h (__spawn_valid_fd): Likewise.
11885         * posix/spawn_valid_fd (__spawn_valid_fd): Likewise.
11886         * posix/wordexp.c (parse_dollars, parse_backtick, parse_dquote)
11887         (eval_expr, w_addmem, w_addstr, w_addword, parse_backslash)
11888         (parse_qtd_backslash, parse_tilde, do_parse_glob, parse_glob)
11889         (parse_squote, eval_expr_val, eval_expr_multdiv, parse_arith)
11890         (exec_comm_child, exec_comm, parse_comm, parse_param): Likewise.
11891         * sysdeps/posix/ttyname.c (getttyname): Likewise.
11892         * sysdeps/posix/ttyname_r.c (getttyname_r): Likewise.
11893         * sysdeps/unix/sysv/linux/preadv.c (__atomic_preadv_replacement)
11894         (PREADV): Likewise.
11895         * sysdeps/unix/sysv/linux/preadv64.c (__atomic_preadv64_replacement)
11896         (PREADV): Likewise.
11897         * sysdeps/unix/sysv/linux/pwritev.c (__atomic_pwritev_replacement)
11898         (PWRITEV): Likewise.
11899         * sysdeps/unix/sysv/linux/pwritev64.c (__atomic_pwritev64_replacement)
11900         (PWRITEV): Likewise.
11901         * sysdeps/unix/sysv/linux/ttyname.c (getttyname): Likewise.
11902         * sysdeps/unix/sysv/linux/ttyname_r.c (getttyname_r): Likewise.
11904 2017-08-31  Florian Weimer  <fweimer@redhat.com>
11906         * nptl/allocatestack.c (change_stack_perm, __deallocate_stack)
11907         (setxid_mark_thread, setxid_unmark_thread, setxid_signal_thread):
11908         Remove internal_function.
11909         * nptl/cancellation.c (__pthread_disable_asynccancel): Likewise.
11910         * nptl/libc_pthread_init.c (__libc_pthread_init): Likewise.
11911         * nptl/pthreadP.h (__find_in_stack_list, __free_tcb)
11912         (__deallocate_stack, __libc_pthread_init)
11913         (__pthread_mutex_cond_lock, __pthread_mutex_cond_lock_adjust)
11914         (__pthread_mutex_unlock_usercnt, __pthread_disable_asynccancel)
11915         (__libc_disable_asynccancel, __librt_disable_asynccancel):
11916         Likewise.
11917         * nptl/pthread_create.c (__find_in_stack_list, __free_tcb): Likewise.
11918         * nptl/pthread_mutex_cond_lock.c (__pthread_mutex_lock): Likewise.
11919         * nptl/pthread_mutex_lock.c (__pthread_mutex_cond_lock_adjust):
11920         Likewise.
11921         * nptl/pthread_mutex_unlock.c (__pthread_mutex_unlock_full)
11922         (__pthread_mutex_unlock_usercnt): Likewise.
11924 2017-08-31  Florian Weimer  <fweimer@redhat.com>
11926         * io/fts.c (fts_alloc, fts_build, fts_lfree, fts_load)
11927         (fts_maxarglen, fts_padjust, fts_palloc, fts_sort, fts_stat)
11928         (fts_safe_changedir): Remove internal_function.
11929         * io/ftw.c (internal_function): Remove definition.
11930         (ftw_dir, process_entry, ftw_startup): Remove internal_function.
11932 2017-08-31  Florian Weimer  <fweimer@redhat.com>
11934         * inet/deadline.c (__deadline_current_time)
11935         (__deadline_from_timeval, __deadline_to_ms): Remove
11936         internal_function.
11937         * inet/getnameinfo.c (nrl_domainname): Likewise.
11938         * inet/getnetgrent_r.c (__internal_setnetgrent_reuse): Likewise.
11939         * inet/inet6_option.c (add_pad): Likewise.
11940         * inet/net-internal.h (__deadline_current_time)
11941         (__deadline_from_timeval, __deadline_to_ms): Likewise.
11942         * inet/rcmd.c (__checkhost_sa, __icheckuser): Likewise.
11943         * sysdeps/mach/hurd/if_index.c (__protocol_available): Likewise.
11944         * sysdeps/unix/sysv/linux/ifaddrs.c (map_newlink): Likewise.
11946 2017-08-31  Joseph Myers  <joseph@codesourcery.com>
11948         *  math/math.h [__USE_ISOC99] (NAN): Define directly here.  Do not
11949         include <bits/nan.h>.
11950         * math/Makefile (headers): Remove bits/nan.h.
11951         * bits/nan.h: Remove.
11952         * sysdeps/ieee754/bits/nan.h: Likewise.
11953         * sysdeps/mips/bits/nan.h: Likewise.
11955         * math/math.h [__USE_ISOC99] (INFINITY): Define directly here.  Do
11956         not include <bits/inf.h>.
11957         * math/Makefile (headers): Remove bits/inf.h.
11958         * bits/inf.h: Remove.
11959         * sysdeps/ieee754/bits/inf.h: Likewise.
11961         * math/math.h: Do not include bits/huge_val.h, bits/huge_valf.h,
11962         bits/huge_vall.h or bits/huge_val_flt128.h.
11963         (HUGE_VAL): Define directly here.
11964         [__USE_ISOC99] (HUGE_VALF): Likewise.
11965         [__USE_ISOC99] (HUGE_VALL): Likewise.
11966         [__HAVE_FLOAT128 && __GLIBC_USE (IEC_60559_TYPES_EXT)]
11967         (HUGE_VAL_F128): Likewise.
11968         * math/Makefile (headers): Remove bits/huge_val.h,
11969         bits/huge_valf.h, bits/huge_vall.h and bits/huge_val_flt128.h.
11970         * bits/huge_val.h: Remove.
11971         * bits/huge_val_flt128.h: Likewise.
11972         * bits/huge_valf.h: Likewise.
11973         * bits/huge_vall.h: Likewise.
11974         * sysdeps/ia64/bits/huge_vall.h: Likewise.
11975         * sysdeps/ieee754/bits/huge_val.h: Likewise.
11976         * sysdeps/ieee754/bits/huge_valf.h: Likewise.
11977         * sysdeps/m68k/m680x0/bits/huge_vall.h: Likewise.
11978         * sysdeps/sh/bits/huge_val.h: Likewise.
11979         * sysdeps/sparc/bits/huge_vall.h: Likewise.
11980         * sysdeps/x86/bits/huge_vall.h: Likewise.
11982 2017-08-31  Florian Weimer  <fweimer@redhat.com>
11984         * elf/dl-addr-obj.c (_dl_addr_inside_object): Remove
11985         internal_function.
11986         * elf/dl-cache.c (_dl_cache_libcmp, _dl_load_cache_lookup):
11987         Likewise.
11988         * elf/dl-debug.c (_dl_debug_initialize): Likewise.
11989         * elf/dl-deps.c (_dl_build_local_scope, _dl_map_object_deps): Likewise.
11990         * elf/dl-environ.c (_dl_next_ld_env_entry): Likewise.
11991         * elf/dl-execstack.c (_dl_make_stack_executable): Likewise.
11992         * elf/dl-fini.c (_dl_sort_fini): Likewise.
11993         * elf/dl-hwcaps.c (_dl_important_hwcaps): Likewise.
11994         * elf/dl-libc.c (dlerror_run): Likewise.
11995         * elf/dl-load.c (add_name_to_object, decompose_rpath)
11996         (_dl_init_paths, _dl_map_object, _dl_rtld_di_serinfo): Likewise.
11997         * elf/dl-lookup.c (add_dependency, _dl_debug_bindings)
11998         (_dl_lookup_symbol_x, _dl_setup_hash, _dl_debug_bindings):
11999         Likewise.
12000         * elf/dl-misc.c (_dl_sysdep_read_whole_file, _dl_name_match_p)
12001         (_dl_higher_prime_number, _dl_strtoul): Likewise.
12002         * elf/dl-object.c (_dl_add_to_namespace_list, _dl_new_object): Likewise.
12003         * elf/dl-profile.c (_dl_start_profile): Likewise.
12004         * elf/dl-reloc.c (_dl_try_allocate_static_tls)
12005         (_dl_allocate_static_tls, _dl_protect_relro, _dl_reloc_bad_type):
12006         Likewise.
12007         * elf/dl-support.c (_dl_aux_init, _dl_non_dynamic_init): Likewise.
12008         * elf/dl-sym.c (_dl_tls_symaddr, do_sym): Likewise.
12009         * elf/dl-sysdep.c (_dl_sysdep_start_cleanup, _dl_show_auxv): Likewise.
12010         * elf/dl-tls.c (_dl_next_tls_modid, _dl_count_modids)
12011         (_dl_determine_tlsoffset, allocate_dtv, _dl_get_tls_static_info)
12012         (_dl_allocate_tls_storage): Likewise.
12013         * elf/dl-version.c (match_symbol, _dl_check_map_versions)
12014         (_dl_check_all_versions): Likewise.
12015         * elf/dynamic-link.h (_dl_try_allocate_static_tls): Likewise.
12016         * elf/tlsdeschtab.h (_dl_make_tlsdesc_dynamic): Likewise.
12017         * elf/tst-_dl_addr_inside_object.c (_dl_addr_inside_object): Likewise.
12018         * sysdeps/aarch64/dl-tlsdesc.h (_dl_make_tlsdesc_dynamic): Likewise.
12019         * sysdeps/aarch64/tlsdesc.c (_dl_unmap): Likewise.
12020         * sysdeps/arm/dl-lookupcfg.h (_dl_unmap): Likewise.
12021         * sysdeps/arm/dl-machine.h (elf_machine_load_address): Remove
12022         internal_function from __dl_start.
12023         * sysdeps/arm/dl-tlsdesc.h (_dl_unmap): Remove internal_function.
12024         * sysdeps/generic/dl-cache.h (_dl_cache_libcmp): Likewise.
12025         * sysdeps/generic/ldsodefs.h (_dl_name_match_p)
12026         (_dl_higher_prime_number, _dl_strtoul, _dl_map_object)
12027         (_dl_map_object_deps, _dl_setup_hash, _dl_rtld_di_serinfo)
12028         (_dl_lookup_symbol_x, _dl_add_to_namespace_list, _dl_new_object)
12029         (_dl_protect_relro, _dl_reloc_bad_type, _dl_check_all_versions)
12030         (_dl_check_map_versions, _dl_sort_fini, _dl_debug_initialize)
12031         (_dl_init_paths, _dl_start_profile, _dl_show_auxv)
12032         (_dl_next_ld_env_entry, _dl_important_hwcaps)
12033         (_dl_load_cache_lookup, _dl_sysdep_read_whole_file)
12034         (_dl_sysdep_start_cleanup, _dl_next_tls_modid, _dl_count_modids)
12035         (_dl_determine_tlsoffset, _dl_get_tls_static_info)
12036         (_dl_allocate_static_tls, _dl_allocate_tls_storage)
12037         (_dl_addr_inside_object, _dl_non_dynamic_init, _dl_aux_init):
12038         Likewise.
12039         (struct rtld_global_ro): Remove internal_function from the
12040         _dl_lookup_symbol_x member.
12041         (_dl_symbol_value): Remove.  No longer defined anywhere.
12042         * sysdeps/i386/dl-lookupcfg.h (_dl_unmap): Remove
12043         internal_function.
12044         * sysdeps/i386/dl-tlsdesc.h (_dl_make_tlsdesc_dynamic): Likewise.
12045         * sysdeps/i386/tlsdesc.c (_dl_unmap): Likewise.
12046         * sysdeps/mach/hurd/dl-sysdep.c (_dl_show_auxv): Likewise.
12047         * sysdeps/nios2/dl-init.c (_dl_nios2_get_gp_value): Likewise.
12048         * sysdeps/tile/dl-lookupcfg.h (_dl_unmap): Likewise.
12049         * sysdeps/tile/dl-machine.h (_dl_after_load): Likewise.
12050         * sysdeps/tile/dl-runtime.c (_dl_after_load, _dl_unmap): Likewise.
12051         * sysdeps/unix/sysv/linux/dl-vdso.c (_dl_vdso_vsym): Likewise.
12052         * sysdeps/unix/sysv/linux/dl-vdso.h (_dl_vdso_vsym): Likewise.
12053         * sysdeps/x86_64/dl-lookupcfg.h (_dl_unmap): Likewise.
12054         * sysdeps/x86_64/dl-tlsdesc.h (_dl_make_tlsdesc_dynamic): Likewise.
12055         * sysdeps/x86_64/tlsdesc.c (_dl_unmap): Likewise.
12057 2017-08-31  Florian Weimer  <fweimer@redhat.com>
12059         * gmon/gmon.c (write_hist, write_call_graph, write_bb_counts):
12060         Remove internal_function.
12061         * sysdeps/arm/machine-gmon.h (mcount_internal, _MCOUNT_DECL):
12062         Likewise.
12063         * sysdeps/sparc/machine-gmon.h (mcount_internal, _MCOUNT_DECL):
12064         Likewise.
12066 2017-08-31  Florian Weimer  <fweimer@redhat.com>
12068         * dlfcn/dlerror.c (_dlerror_run): Remove internal_function.
12069         * elf/dl-sym.c (_dl_vsym, _dl_sym): Likewise.
12070         * include/dlfcn.h (_dl_sym, _dl_vsym, _dlerror_run): Likewise.
12072 2017-08-31  Florian Weimer  <fweimer@redhat.com>
12074         * resolv/gai_misc.c (__gai_find_request, __gai_remove_request)
12075         (__gai_enqueue_request): Remove internal_function.
12076         * resolv/gai_misc.h (__gai_enqueue_request, __gai_find_request)
12077         (__gai_remove_request, __gai_notify, __gai_notify_only)
12078         (__gai_sigqueue): Likewise.
12079         * resolv/gai_notify.c (__gai_notify_only, __gai_notify): Likewise.
12080         * resolv/gai_sigqueue.c (__gai_sigqueue): Likewise.
12081         * resolv/inet_ntop.c (inet_ntop4, inet_ntop6): Likewise.
12082         * sysdeps/unix/sysv/linux/gai_sigqueue.c (__gai_sigqueue):
12083         Likewise.
12085 2017-08-31  Florian Weimer  <fweimer@redhat.com>
12087         * dirent/scandir-tail.c (SCANDIR_TAIL): Remove internal_function.
12088         * include/dirent.h (__opendirat, __getdents, __getdents64)
12089         (__alloc_dir, __scandir_tail, __scandir64_tail): Likewise.
12090         * sysdeps/posix/opendir.c (__opendirat, __alloc_dir): Likewise.
12091         * sysdeps/mach/hurd/opendir.c (__opendirat): Likewise.
12092         * sysdeps/unix/sysv/linux/i386/olddirent.h (__old_getdents64):
12093         Likewise.
12094         * sysdeps/unix/sysv/linux/getdents.c (__GETDENTS): Likewise.
12096 2017-08-31  Florian Weimer  <fweimer@redhat.com>
12098         * sysdeps/unix/sysv/linux/getcwd.c (generic_getcwd): Remove
12099         internal_function.
12100         (GETCWD_RETURN_TYPE): Likewise.
12102 2017-08-31  Florian Weimer  <fweimer@redhat.com>
12104         * include/time.h (__tz_compute, __strptime_internal): Remove
12105         internal_function.
12106         * time/strptime_l.c (__strptime_internal): Likewise.
12107         * time/tzset.c (compute_change, update_vars, __tz_compute): Likewise.
12109 2017-08-31  Florian Weimer  <fweimer@redhat.com>
12111         * iconv/gconv.c (__gconv): Remove internal_function.
12112         * iconv/gconv_builtin.c (__gconv_get_builtin_trans): Likewise.
12113         * iconv/gconv_cache.c (__gconv_load_cache, find_module_idx)
12114         (find_module, __gconv_compare_alias_cache, __gconv_lookup_cache)
12115         (__gconv_release_cache): Likewise.
12116         * iconv/gconv_close.c (__gconv_close): Likewise.
12117         * iconv/gconv_conf.c (detect_conflict, insert_module, add_module)
12118         (read_conf_file, __gconv_get_path): Likewise.
12119         * iconv/gconv_db.c (derivation_lookup, add_derivation)
12120         (__gconv_release_step, gen_steps, increment_counter)
12121         (find_derivation, __gconv_compare_alias, __gconv_find_transform)
12122         (__gconv_close_transform, free_modules_db): Likewise.
12123         * iconv/gconv_dl.c (__gconv_find_shlib, __gconv_release_shlib):
12124         Likewise.
12125         * iconv/gconv_int.h (__gconv_open, __gconv_close, __gconv)
12126         (__gconv_find_transform, __gconv_lookup_cache)
12127         (__gconv_release_step, __gconv_load_cache, __gconv_get_path)
12128         (__gconv_close_transform, __gconv_release_cache)
12129         (__gconv_loaded_object, __gconv_release_shlib)
12130         (__gconv_compare_alias): Likewise.
12131         * iconv/gconv_open.c (__gconv_open): Likewise.
12132         * iconv/iconv_prog.c (print_known_names, add_known_names): Likewise.
12133         * iconv/iconvconfig.c (add_module): Likewise.
12134         * intl/dcigettext.c (plural_lookup, guess_category_value)
12135         (category_to_name, get_output_charset, _nl_find_msg): Likewise.
12136         * intl/eval-plural.h (plural_eval): Likewise.
12137         * intl/finddomain.c (_nl_find_domain): Likewise.
12138         * intl/gettextP.h (_nl_unload_domain, _nl_find_domain)
12139         (_nl_load_domain, _nl_find_msg): Likewise.
12140         (internal_function): Remove definition.
12141         * intl/loadinfo.h (internal_function): Likewise.
12142         * intl/loadmsgcat.c (_nl_load_domain, _nl_unload_domain): Remove
12143         internal_function.
12144         * intl/localealias.c (internal_function): Remove definition.
12145         (read_alias_file): Remove internal_function.
12146         * intl/plural-exp.c (EXTRACT_PLURAL_EXPRESSION): Likewise.
12147         * intl/plural-exp.h (internal_function): Remove definition.
12148         (FREE_EXPRESSION, EXTRACT_PLURAL_EXPRESSION): Remove
12149         internal_function.
12150         * intl/plural.c: Regenerate.
12151         * intl/plural.y (FREE_EXPRESSION): Remove internal_function.
12152         * locale/coll-lookup.c (__collidx_table_lookup)
12153         (__collseq_table_lookup): Likewise.
12154         * locale/coll-lookup.h (__collidx_table_lookup)
12155         (__collseq_table_lookup): Likewise.
12156         * locale/findlocale.c (_nl_find_locale, _nl_remove_locale): Likewise.
12157         * locale/loadarchive.c (_nl_load_locale_from_archive): Likewise.
12158         * locale/loadlocale.c (_nl_intern_locale_data, _nl_load_locale)
12159         (_nl_unload_locale): Likewise.
12160         * locale/localeinfo.h (struct __locale_data): Remove
12161         internal_function from cleanup member.
12162         (_nl_find_locale, _nl_load_locale, _nl_unload_locale)
12163         (_nl_remove_locale, _nl_load_locale_from_archive)
12164         (_nl_intern_locale_data, _nl_get_era_entry, _nl_select_era_entry)
12165         (_nl_get_alt_digit, _nl_get_walt_digit, _nl_parse_alt_digit)
12166         (_nl_cleanup_time): Remove internal_function.
12167         * time/alt_digit.c (_nl_get_alt_digit, _nl_get_walt_digit)
12168         (_nl_parse_alt_digit): Likewise.
12169         * time/era.c (_nl_init_era_entries, _nl_get_era_entry)
12170         (_nl_select_era_entry): Likewise.
12171         * time/lc-time-cleanup.c (_nl_cleanup_time): Likewise.
12172         * wcsmbs/wcsmbsload.c (__wcsmbs_load_conv, __wcsmbs_clone_conv)
12173         (__wcsmbs_named_conv, _nl_cleanup_ctype): Likewise.
12174         * wcsmbs/wcsmbsload.h (__wcsmbs_load_conv, __wcsmbs_clone_conv)
12175         (__wcsmbs_named_conv, _nl_cleanup_ctype): Likewise.
12177 2017-08-31  Florian Weimer  <fweimer@redhat.com>
12179         * rt/aio_sigqueue.c (__aio_sigqueue): Remove internal_function.
12180         * sysdeps/generic/aio_misc.h (__aio_sigqueue): Likewise.
12181         * sysdeps/pthread/aio_misc.c (__aio_free_request, __aio_find_req)
12182         (__aio_find_req_fd, __aio_remove_request, __aio_enqueue_request):
12183         Likewise.
12184         * sysdeps/pthread/aio_misc.h (__aio_enqueue_request)
12185         (__aio_find_req, __aio_find_req_fd, __aio_free_request)
12186         (__aio_notify, __aio_notify_only, __aio_sigqueue): Likewise.
12187         * sysdeps/pthread/aio_notify.c (__aio_notify_only, __aio_notify):
12188         Likewise.
12189         * sysdeps/unix/sysv/linux/aio_sigqueue.c (__aio_sigqueue): Likewise.
12191 2017-08-31  Florian Weimer  <fweimer@redhat.com>
12193         * misc/getttyent.c (skip, value): Remove internal_function.
12194         * misc/syslog.c (openlog_internal): Likewise.
12195         * misc/tsearch.c (trecurse, tdestroy_recurse): Likewise.
12197 2017-08-31  Florian Weimer  <fweimer@redhat.com>
12199         * include/nss.h (__nss_valid_field, __nss_valid_list_field)
12200         (__nss_rewrite_field): Remove internal_function.
12201         * nscd/nscd_getgr_r.c (nscd_getgr_r): Likewise.
12202         * nscd/nscd_gethst_r.c (nscd_gethst_r): Likewise.
12203         * nscd/nscd_getpw_r.c (nscd_getpw_r): Likewise.
12204         * nss/nsswitch.c (nss_parse_file, nss_getline)
12205         (nss_parse_service_list, nss_new_service): Likewise.
12206         * nss/rewrite_field.c (__nss_rewrite_field): Likewise.
12207         * nss/valid_field.c (__nss_valid_field): Likewise.
12208         * nss/valid_list_field.c (__nss_valid_list_field): Likewise.
12210 2017-08-31  Florian Weimer  <fweimer@redhat.com>
12212         * malloc/arena.c (__malloc_fork_lock_parent)
12213         (__malloc_fork_unlock_parent, __malloc_fork_unlock_child)
12214         (next_env_entry, new_heap, heap_trim, arena_get2): Remove
12215         internal_function from defintions.
12216         * malloc/hooks.c (mem2mem_check, mem2chunk_check): Likewise.
12217         * malloc/malloc-internal.h (__malloc_fork_lock_parent)
12218         (__malloc_fork_unlock_parent, __malloc_fork_unlock_child): Remove
12219         internal_function from declarations.
12220         * malloc/malloc.c (internal_function): Do not define.
12221         (mem2mem_check): Remove internal_function from declaration.
12222         (munmap_chunk, mremap_chunk): Remove internal_function.
12223         * malloc/mtrace.c (tr_where): Likewise.
12225 2017-08-31  Florian Weimer  <fweimer@redhat.com>
12227         * include/rpc/pmap_clnt.h (__get_socket): Remove
12228         internal_function.
12229         * sunrpc/auth_des.c (synchronize): Likewise.
12230         * sunrpc/auth_unix.c (marshal_new_auth): Likewise.
12231         * sunrpc/clnt_perr.c (auth_errmsg): Likewise.
12232         * sunrpc/des_impl.c (des_encrypt, des_set_key): Likewise.
12233         * sunrpc/key_call.c (key_call_keyenvoy, key_call_socket)
12234         (key_call): Likewise.
12235         * sunrpc/pm_getport.c (__get_socket): Likewise.
12236         * sunrpc/pmap_rmt.c (getbroadcastnets): Likewise.
12237         * sunrpc/svc_unix.c (makefd_xprt): Likewise.
12238         * sunrpc/svc_tcp.c (makefd_xprt): Likewise.
12239         * sunrpc/svcauth_des.c (cache_init, cache_spot, cache_ref)
12240         (invalidate): Likewise.
12241         * sunrpc/xcrypt.c (hexval, hex2bin, bin2hex): Likewise.
12242         * sunrpc/xdr_rec.c (fix_buf_size, skip_input_bytes, flush_out)
12243         (set_input_fragment, get_input_bytes): Likewise.
12245 2017-08-31  Florian Weimer  <fweimer@redhat.com>
12247         * malloc/malloc.c (_int_free): Remove locked variable and related
12248         asserts.
12250 2017-08-31  H.J. Lu  <hongjiu.lu@intel.com>
12252         [BZ #22051]
12253         * Makerules (build-module-helper-objlist): Filter out
12254         $(elf-objpfx)sofini.os.
12255         (build-shlib-objlist): Append $(elf-objpfx)sofini.os if it is
12256         needed.
12258 2017-08-31  Florian Weimer  <fweimer@redhat.com>
12260         * libio/fcloseall.c: Assume weak_alias is defined.
12261         * libio/feof.c: Likewise.
12262         * libio/fileno.c: Likewise.
12263         * libio/fileops.c: Assume _LIBC, errno, __set_errno are defined.
12264         (_POSIX_SOURCE, open, lseek, read, write): Remove macro
12265         definitions.
12266         (_IO_file_open): Call __open directly.
12267         (_IO_new_file_sync): Assume ESPIPE is defined.
12268         (_IO_file_seekoff_maybe_mmap): Call __read directly.
12269         (_IO_new_file_write): Call __write directly.
12270         * libio/ftello.c (__ftello): Assume EIO, EOVERFLOW are defined.
12271         * libio/ftello64.c (__ftello64): Assume EIO is defined.
12272         * libio/genops.c: Assume _LIBC is defined.
12273         (save_for_backup): Remove internal_function.
12274         * libio/getc.c: Assume weak_alias is defined.
12275         * libio/getwc.c: Likewise.
12276         * libio/iofclose.c: Assume _LIBC is defined.
12277         * libio/iofdopen.c: Likewise.
12278         (_IO_fcntl): Remove macro definition.
12279         (_IO_new_fdopen): Assume F_GETFL, F_SETFL, O_ACCMODE are defined.
12280         Call __fcntl directly.
12281         * libio/iofflush.c: Assume weak_alias is defined.
12282         * libio/iofgetpos.c (_IO_new_fgetpos): Assume EIO, EOVERFLOW are
12283         defined.
12284         * libio/iofgetpos64.c (_IO_new_fgetpos64): Assume EIO is defined.
12285         * libio/iofgets.c: Likewise.
12286         * libio/iofopen.c: Assume _LIBC is defined.
12287         * libio/iofopen64.c: Assume _LIBC, weak_alias are defined.
12288         * libio/iofputs.c: Assume weak_alias is defined.
12289         * libio/iofread.c: Likewise.
12290         * libio/iofsetpos.c (_IO_new_fsetpos): Assume EIO is defined.
12291         * libio/iofsetpos64.c (_IO_new_fsetpos64): Likewise.
12292         * libio/ioftell.c: Assume weak_alias is defined.
12293         (_IO_ftell): Assume EIO, EOVERFLOW are defined.
12294         * libio/iofwide.c: Assume _LIBC is defined.
12295         (_IO_fwide): Drop SHARED conditional because it is implied by
12296         SHLIB_COMPAT.
12297         * libio/iofwrite.c: Assume weak_alias is defined.
12298         * libio/iogetdelim.c: Likewise.
12299         * libio/iogets.c: Assume _LIBC, weak_alias are defined.
12300         * libio/iogetwline.c (wmemcpy): Remove macro definition.
12301         (_IO_getwline): Call __wmemcpy directly.
12302         * libio/iopopen.c: Assume _LIBC is defined.
12303         (_POSIX_SOURCE, _IO_fork, _IO_dup2, _IO_waitpid, _IO_execl)
12304         (_IO_close): Remove macro definitions.
12305         (_IO_new_proc_open): Call __fork, __dup2, __close_nocancel, execl,
12306         _exit directly.
12307         (_IO_new_proc_close): Call __close_nocancel, __waitpid_nocancel
12308         directly.
12309         * libio/ioputs.c: Assume weak_alias is defined.
12310         * libio/ioseekoff.c: Assume errno, __set_errno are defined.
12311         * libio/iosetbuffer.c: Assume weak_alias is defined.
12312         * libio/iosetvbuf.c: Likewise.
12313         * libio/ioungetc.c: Likewise.
12314         * libio/libioP.h: Assume _LIBC, __GLIBC__, libc_hidden_proto,
12315         libc_hidden_def, libc_hidden_weak, NULL are defined.
12316         (mmap, munmap, ftruncate, OS_FSTAT): Remove macro definitions.
12317         * libio/oldfilepos.c: Assume _LIBC, errno, __set_errno are
12318         defined.
12319         (_POSIX_SOURCE, open, lseek, read, write): Remove macro
12320         definitions.
12321         (_IO_old_file_init_internal): Drop SHARED conditional because it
12322         is implied by SHLIB_COMPAT.
12323         (_IO_old_file_fopen): Call __open directly.
12324         (_IO_old_file_sync): Assume ESPIPE is defined.
12325         (_IO_old_file_write): Call __write directly.
12326         * libio/oldfdopen.c (_IO_fcntl): Remove macro definition.
12327         (_IO_old_fdopen): Assume F_GETFL, O_ACCMODE, F_SETFL are defined.
12328         Call __fcntl directly.
12329         * libio/oldiofgetpos.c: Assume weak_alias is defined.
12330         (_IO_old_fgetpos): Assume EIO is defined.
12331         * libio/oldiofgetpos64.c: Assume weak_alias is defined.
12332         (_IO_old_fgetpos64): Assume EIO is defined.
12333         * libio/oldiofsetpos.c: Assume weak_alias is defined.
12334         (_IO_old_fsetpos): Assume EIO is defined.
12335         * libio/oldiofsetpos64.c: Assume weak_alias is defined.
12336         (_IO_old_fsetpos64): Assume EIO is defined.
12337         * libio/oldiopopen.c:  Assume _LIBC is defined.
12338         (_POSIX_SOURCE, _IO_fork, _IO_dup2, _IO_waitpid, _IO_execl)
12339         (_IO_close): Remove macro definitions.
12340         (_IO_old_proc_open): Call __pipe, __close, __dup2, execl, _exit
12341         directly.
12342         (_IO_old_proc_close): Call __close, __waitpid directly.
12343         * libio/put.c: Assume weak_alias is defined.
12344         * libio/stdfiles.c: Assume _LIBC is defined.
12345         * libio/stdio.c: Likewise.
12346         * libio/wfileops.c: Likewise.
12347         (_IO_wfile_sync): Assume ESPIPE is defined.
12348         * libio/wgenops.c: Assume _LIBC is defined.
12349         (save_for_wbackup): Remove internal_function.
12351 2017-08-31  Florian Weimer  <fweimer@redhat.com>
12353         * malloc/malloc.c (top_check): Change return type to void.  Remove
12354         internal_function.
12355         * malloc/hooks.c (top_check): Likewise.
12356         (malloc_check, realloc_check, memalign_check): Adjust.
12358 2017-08-30  Joseph Myers  <joseph@codesourcery.com>
12360         [BZ #21457]
12361         * sysdeps/arm/sys/ucontext.h: Do not include <bits/sigcontext.h>.
12362         * sysdeps/generic/sys/ucontext.h: Add comment about use of struct
12363         sigcontext and namespace requirements.
12364         * sysdeps/i386/sys/ucontext.h: Do not include <bits/sigcontext.h>.
12365         * sysdeps/m68k/sys/ucontext.h: Likewise.
12366         * sysdeps/mips/sys/ucontext.h: Likewise.  Include <bits/types.h>.
12367         * sysdeps/unix/sysv/linux/aarch64/sys/ucontext.h: Do not include
12368         <bits/sigcontext.h>.
12369         (__ctx): Define earlier.
12370         (mcontext_t): Define structure contents rather than using struct
12371         sigcontext.
12372         * sysdeps/unix/sysv/linux/aarch64/ucontext_i.sym (oEXTENSION): Use
12373         __glibc_reserved1 instead of __reserved.
12374         * sysdeps/unix/sysv/linux/alpha/sys/ucontext.h: Do not include
12375         <bits/sigcontext.h>.
12376         (__ctx): Define earlier.
12377         (mcontext_t): Define structure contents rather than using struct
12378         sigcontext.
12379         * sysdeps/unix/sysv/linux/alpha/ucontext-offsets.sym: Use
12380         mcontext_t instead of struct sigcontext.
12381         * sysdeps/unix/sysv/linux/arm/sys/ucontext.h: Do not include
12382         <bits/sigcontext.h>.
12383         (__ctx): Define earlier.
12384         (mcontext_t): Define structure contents rather than using struct
12385         sigcontext.
12386         * sysdeps/unix/sysv/linux/hppa/sys/ucontext.h: Do not include
12387         <bits/sigcontext.h>.
12388         (__ctx): Define earlier.
12389         (mcontext_t): Define structure contents rather than using struct
12390         sigcontext.
12391         * sysdeps/unix/sysv/linux/ia64/makecontext.c (__makecontext): Use
12392         mcontext_t instead of struct sigcontext.
12393         * sysdeps/unix/sysv/linux/ia64/sigcontext-offsets.sym: Use
12394         mcontext_t instead of struct sigcontext.
12395         * sysdeps/unix/sysv/linux/ia64/sys/ucontext.h: Do not include
12396         <bits/sigcontext.h>.
12397         (__ctx): New macro.
12398         (struct __ia64_fpreg_mcontext): New type.
12399         (mcontext_t): Define structure contents rather than using struct
12400         sigcontext.
12401         (_SC_GR0_OFFSET): Use mcontext_t instead of struct sigcontext.
12402         (uc_sigmask): Define using __ctx.
12403         (uc_stack): Likewise.
12404         * sysdeps/unix/sysv/linux/ia64/sys/procfs.h: Include
12405         <bits/sigcontext.h>.
12406         * sysdeps/unix/sysv/linux/ia64/sys/ptrace.h: Likewise.
12407         * sysdeps/unix/sysv/linux/m68k/sys/ucontext.h: Do not include
12408         <bits/sigcontext.h>.
12409         * sysdeps/unix/sysv/linux/microblaze/sys/ucontext.h: New file.
12410         * sysdeps/unix/sysv/linux/mips/sys/ucontext.h: Do not include
12411         <bits/sigcontext.h>.
12412         * sysdeps/unix/sysv/linux/nios2/sys/ucontext.h: Do not include
12413         <bits/sigcontext.h>.
12414         * sysdeps/unix/sysv/linux/powerpc/sys/ucontext.h: Do not include
12415         <bits/sigcontext.h>.
12416         * sysdeps/unix/sysv/linux/s390/sys/ucontext.h: Do not include
12417         <bits/sigcontext.h>.
12418         * sysdeps/unix/sysv/linux/sh/sys/ucontext.h: Do not include
12419         <bits/sigcontext.h>.
12420         * sysdeps/unix/sysv/linux/sparc/sys/ucontext.h: Do not include
12421         <bits/sigcontext.h>.
12422         * sysdeps/unix/sysv/linux/tile/sys/ucontext.h: Do not include
12423         <bits/sigcontext.h>.
12424         (__ctx): Define earlier.
12425         (mcontext_t): Define structure contents rather than using struct
12426         sigcontext.
12427         * sysdeps/unix/sysv/linux/x86/sys/ucontext.h: Do not include
12428         <bits/sigcontext.h>.  Include <bits/types.h>.
12429         * conform/Makefile (test-xfail-XPG42/signal.h/conform): Remove.
12430         (test-xfail-XPG42/sys/wait.h/conform): Likewise.
12431         (test-xfail-XPG42/ucontext.h/conform): Likewise.
12432         (test-xfail-UNIX98/signal.h/conform): Likewise.
12433         (test-xfail-UNIX98/sys/wait.h/conform): Likewise.
12434         (test-xfail-UNIX98/ucontext.h/conform): Likewise.
12435         (test-xfail-XOPEN2K/signal.h/conform): Likewise.
12436         (test-xfail-XOPEN2K/sys/wait.h/conform): Likewise.
12437         (test-xfail-XOPEN2K/ucontext.h/conform): Likewise.
12438         (test-xfail-POSIX2008/signal.h/conform): Likewise.
12439         (test-xfail-POSIX2008/sys/wait.h/conform): Likewise.
12440         (test-xfail-XOPEN2K8/signal.h/conform): Likewise.
12441         (test-xfail-XOPEN2K8/sys/wait.h/conform): Likewise.
12443 2017-08-30  Florian Weimer  <fweimer@redhat.com>
12445         * malloc/dynarray_emplace_enlarge.c
12446         (__libc_dynarray_emplace_enlarge): Set errno on overflow.
12447         * malloc/dynarray_resize.c (__libc_dynarray_resize): Likewise.
12448         * malloc/tst-dynarray.c (test_long_overflow): New function.
12449         (do_test): Call it.
12451 2017-08-30  Florian Weimer  <fweimer@redhat.com>
12453         * malloc/malloc.c (ARENA_CORRUPTION_BIT, arena_is_corrupt)
12454         (set_arena_corrupt): Remove definitions.
12455         (mtrim): Do not check for corrupt arena.
12456         * malloc/arena.c (arena_lock, reused_arena, arena_get_retry):
12457         Likewise.
12459 2017-08-30  Florian Weimer  <fweimer@redhat.com>
12461         [BZ #21754]
12462         * malloc/arena.c (TUNABLE_CALLBACK set_mallopt_check): Do not set
12463         check_action.
12464         (ptmalloc_init): Do not set or use check_action.
12465         * malloc/hooks.c (malloc_check_get_size, realloc_check): Adjust
12466         call to malloc_printerr.  Remove return statement.
12467         (free_check): Likewise.  Remove arena unlock.
12468         (top_check): Update comment.  Adjust call to malloc_printerr.
12469         Remove heap repair code.
12470         * malloc/malloc.c (unlink): Adjust calls to malloc_printerr.
12471         (DEFAULT_CHECK_ACTION, check_action): Remove definitions.
12472         (sysmalloc): Adjust call to malloc_printerr.
12473         (munmap_chunk, __libc_realloc): Likewise.  Remove return
12474         statement.
12475         (_int_malloc, int_realloc): Likewise.  Remove errstr variable.
12476         Remove errout label and corresponding gotos.
12477         (_int_free): Likewise.  Remove arena unlock.
12478         (do_set_mallopt_check): Do not set check_action.
12479         (malloc_printerr): Adjust parameter list.  Do not mark arena as
12480         corrupt.
12481         * manual/memory.texi (Malloc Tunable Parameters): Remove TODO
12482         comment.
12483         * manual/probes.texi (Memory Allocation Probes): Remove
12484         memory_mallopt_check_action.
12486 2017-08-30  Steve Ellcey  <sellcey@cavium.com>
12488         * sysdeps/unix/sysv/linux/aarch64/makecontext.c (__makecontext):
12489         Use pointer to uint64_t instead of long int for sp.
12491 2017-08-30  Florian Weimer  <fweimer@redhat.com>
12493         [BZ #21754]
12494         * malloc/malloc.c (malloc_printerr): Always terminate the process,
12495         without printing a backtrace.  Do not leak any information in the
12496         error message.
12497         * manual/memory.texi (Heap Consistency Checking): Update.
12498         * manual/tunables.texi (Memory Allocation Tunables): Likewise.
12500 2017-08-30  Florian Weimer  <fweimer@redhat.com>
12502         Do not scale NPTL tests with available number of CPUs.
12503         * nptl/tst-cond16.c (count): Set to constant value of 8.
12504         * nptl/tst-cond18.c (count): Likewise.
12506 2017-08-29  Joseph Myers  <joseph@codesourcery.com>
12508         [BZ #22035]
12509         * sysdeps/m68k/m680x0/fpu/bits/mathinline.h (__inline_functions):
12510         Define to take a second argument that is a macro that
12511         concatentates a suffix, not the suffix itself.
12512         (__CONCAT_d): New macro.
12513         (__CONCAT_f): Likewise.
12514         (__CONCAT_l): Likewise.
12516 2017-08-29  Paul Pluzhnikov  <ppluzhnikov@google.com>
12518         * stdlib/tst-atexit-common.c (do_test): Test handler inheritance
12519         by child.
12521 2017-08-29  Adhemerval Zanella  <adhemerval.zanella@linaro.org>
12522             Aurelien Jarno  <aurelien@aurel32.net>
12523             Maciej W. Rozycki  <macro@imgtec.com>
12525         [BZ #21956]
12526         * sysdeps/unix/sysv/linux/mips/mips32/mips16/Makefile
12527         [subdir = misc] (sysdep_routines): Remove `mips16-syscall5',
12528         `mips16-syscall6' and `mips16-syscall7'.
12529         (CFLAGS-mips16-syscall5.c, CFLAGS-mips16-syscall6.c)
12530         (CFLAGS-mips16-syscall7.c): Remove.
12531         * sysdeps/unix/sysv/linux/mips/mips32/mips16/Versions (libc):
12532         Remove `__mips16_syscall5', `__mips16_syscall6' and
12533         `__mips16_syscall7'.
12534         * sysdeps/unix/sysv/linux/mips/mips32/mips16/mips16-syscall0.c
12535         (__mips16_syscall0): Rename `__mips16_syscall_return' to
12536         `__mips_syscall_return'.
12537         * sysdeps/unix/sysv/linux/mips/mips32/mips16/mips16-syscall1.c
12538         (__mips16_syscall1): Likewise.
12539         * sysdeps/unix/sysv/linux/mips/mips32/mips16/mips16-syscall2.c
12540         (__mips16_syscall2): Likewise.
12541         * sysdeps/unix/sysv/linux/mips/mips32/mips16/mips16-syscall3.c
12542         (__mips16_syscall3): Likewise.
12543         * sysdeps/unix/sysv/linux/mips/mips32/mips16/mips16-syscall4.c
12544         (__mips16_syscall4): Likewise.
12545         * sysdeps/unix/sysv/linux/mips/mips32/mips16/mips16-syscall5.c:
12546         Remove.
12547         * sysdeps/unix/sysv/linux/mips/mips32/mips16/mips16-syscall6.c:
12548         Remove.
12549         * sysdeps/unix/sysv/linux/mips/mips32/mips16/mips16-syscall7.c:
12550         Remove.
12551         * sysdeps/unix/sysv/linux/mips/mips32/mips16/mips16-syscall.h
12552         (__mips16_syscall5): Expand to `__mips_syscall5' rather than
12553         `__mips16_syscall5'.  Remove prototype.
12554         (__mips16_syscall6): Expand to `__mips_syscall6' rather than
12555         `__mips16_syscall6'.  Remove prototype.
12556         (__mips16_syscall7): Expand to `__mips_syscall7' rather than
12557         `__mips16_syscall7'.  Remove prototype.
12558         (__nomips16, __mips16_syscall_return): Move to...
12559         * sysdeps/unix/sysv/linux/mips/mips32/sysdep.h
12560         (__nomips16, __mips_syscall_return): ... here.
12561         [__mips16] (INTERNAL_SYSCALL_NCS): Rename
12562         `__mips16_syscall_return' to `__mips_syscall_return'.
12563         [__mips16] (INTERNAL_SYSCALL_MIPS16): Pass `number' to
12564         `internal_syscall##nr'.
12565         [!__mips16] (INTERNAL_SYSCALL): Pass `SYS_ify (name)' to
12566         `internal_syscall##nr'.
12567         (FORCE_FRAME_POINTER): Remove.
12568         (__mips_syscall5): New prototype.
12569         (internal_syscall5): Rewrite to call `__mips_syscall5'.
12570         (__mips_syscall6): New prototype.
12571         (internal_syscall6): Rewrite to call `__mips_syscall6'.
12572         (__mips_syscall7): New prototype.
12573         (internal_syscall7): Rewrite to call `__mips_syscall7'.
12574         * sysdeps/unix/sysv/linux/mips/mips32/mips-syscall5.S: New file.
12575         * sysdeps/unix/sysv/linux/mips/mips32/mips-syscall6.S: New file.
12576         * sysdeps/unix/sysv/linux/mips/mips32/mips-syscall7.S: New file.
12577         * sysdeps/unix/sysv/linux/mips/mips32/Makefile [subdir = misc]
12578         (sysdep_routines): Add libc-do-syscall.
12579         * sysdeps/unix/sysv/linux/mips/mips32/Versions (libc): Add
12580         `__mips_syscall5', `__mips_syscall6' and `__mips_syscall7'.
12582 2017-08-29  Adhemerval Zanella  <adhemerval.zanella@linaro.org>
12584         [BZ #21672]
12585         * nptl/allocatestack.c [_STACK_GROWS_DOWN] (setup_stack_prot):
12586         Set to use !NEED_SEPARATE_REGISTER_STACK as well.
12587         (advise_stack_range): New function.
12588         * nptl/pthread_create.c (START_THREAD_DEFN): Move logic to mark
12589         stack non required to advise_stack_range at allocatestack.c
12591 2017-08-29  Szabolcs Nagy  <szabolcs.nagy@arm.com>
12593         * sysdeps/unix/sysv/linux/aarch64/sys/procfs.h: Use __uint64_t.
12595 2017-08-29  Florian Weimer  <fweimer@redhat.com>
12597         [BZ #22026]
12598         * iconv/gconv_db.c (gen_steps): Decrement step_cnt after resetting
12599         __end_fct.  Mangle __end_fct after setting it to NULL.
12600         * iconv/Makefile (tests): Add tst-gconv-init-failure.
12601         (modules-names, modules-names-tests): Add
12602         tst-gconv-init-failure-mod.
12603         (gconv-modules): New target.
12604         (tst-gconv-init-failure-mod.so): Link against libsupport.
12605         (tst-gconv-init-failure): Depend on gconv-modules,
12606         tst-gconv-init-failure-mod.so.
12607         * iconv/tst-gconv-init-failure-mod.c: New file.
12608         * iconv/tst-gconv-init-failure.c: Likewise.
12609         * iconv/test-gconv-modules: Likewise.
12611 2017-08-29  Florian Weimer  <fweimer@redhat.com>
12613         [BZ #22025]
12614         * iconv/gconv_db.c (free_derivation): Remove redundant
12615         parentheses.
12616         (gen_steps): Unconditionally mangle __btowc_fct after
12617         initialization.
12618         (increment_counter): Likewise.  Do not call init_fct for internal
12619         modules.
12621 2017-08-29  Joseph Myers  <joseph@codesourcery.com>
12623         [BZ #22028]
12624         * math/math.h [__FINITE_MATH_ONLY__ && __FINITE_MATH_ONLY__ > 0]
12625         (_MSUF_): Remove macro.
12626         [__FINITE_MATH_ONLY__ && __FINITE_MATH_ONLY__ > 0] (_MSUFTO_):
12627         Likewise.
12628         [__FINITE_MATH_ONLY__ && __FINITE_MATH_ONLY__ > 0]
12629         (__REDIRFROM_X): New macro.
12630         [__FINITE_MATH_ONLY__ && __FINITE_MATH_ONLY__ > 0] (__REDIRTO_X):
12631         Likewise.
12632         * math/bits/math-finite.h (__REDIRFROM_X): Remove macro.
12633         (__REDIRTO_X): Likewise.
12634         (__MATH_REDIRCALL): Do not pass _MSUF_ or _MSUFTO_ macro
12635         arguments.
12636         (__MATH_REDIRCALL_2): Likewise.
12637         (__MATH_REDIRCALL_INTERNAL): Likewise.
12638         (__REDIRFROM (lgamma, , _MSUF_)): Likewise.
12639         (__REDIRFROM (gamma, , _MSUF_)): Likweise.
12640         (__REDIRFROM (__gamma, _r_finite, _MSUF_)): Likewise.
12641         (__REDIRFROM (tgamma, , _MSUF_)): Likewise.
12642         * math/test-finite-macros.c: New file.
12643         * math/Makefile (tests): Add test-finite-macros.
12644         (CFLAGS-test-finite-macros.c): New variable.
12646 2017-08-29  Patsy Franklin  <pfrankli@redhat.com>
12647             Jeff Law  <law@redhat.com>
12649         [BZ #22025]
12650         Mangle NULL pointers in iconv/gconv.
12651         * iconv/gconv_cache.c (find_module): Demangle init_fct before
12652         checking for NULL. Mangle __btowc_fct if init_fct is non-NULL.
12653         * iconv/gconv_db.c (free_derivation): Check that __shlib_handle
12654         is non-NULL before demangling the end_fct.  Check for NULL
12655         end_fct after demangling.
12656         (__gconv_release_step): Demangle the end_fct before checking
12657         it for NULL.   Remove assert on __shlibc_handle != NULL.
12658         (gen_steps): Don't check btowc_fct for NULL before mangling.
12659         Demangle init_fct before checking for NULL.
12660         (increment_counter): Likewise.
12661         * gconv_dl.c (__gconv_find_shlib): Don't check init_fct or
12662         end_fct for NULL before mangling.
12663         * wcsmbs/btowc.c (__btowc): Demangle btowc_fct before checking
12664         for NULL.
12666 2017-08-29  Akhilesh Kumar  <akhilesh.k@samsung.com>
12668         [BZ #21971]
12669         * locale/iso-639.def: add Morisyen.
12671 2017-08-28  Gabriel F. T. Gomes  <gftg@linux.vnet.ibm.com>
12673         [BZ #21930]
12674         * math/math.h [defined __cplusplus && defined __SUPPORT_SNAN__]
12675         (iszero): New C++ implementation that does not use
12676         fpclassify/__MATH_TG/__builtin_types_compatible_p, when
12677         signaling nans are enabled, since __builtin_types_compatible_p
12678         is a C-only feature.
12679         * math/test-math-iszero.cc: When __HAVE_DISTINCT_FLOAT128 is
12680         defined, include ieee754_float128.h for access to the union and
12681         member ieee854_float128.ieee.
12682         [__HAVE_DISTINCT_FLOAT128] (do_test): Call check_float128.
12683         [__HAVE_DISTINCT_FLOAT128] (check_float128): New function.
12684         * sysdeps/powerpc/powerpc64le/Makefile [subdir == math]
12685         (CXXFLAGS-test-math-iszero.cc): Add -mfloat128 to the build
12686         options of test-math-zero on powerpc64le.
12688 2017-08-28  H.J. Lu  <hongjiu.lu@intel.com>
12690         * sysdeps/x86_64/fpu/multiarch/e_expf.c (__redirect_ieee754_expf):
12691         Change double to float.
12693 2017-08-28  Joseph Myers  <joseph@codesourcery.com>
12695         * math/math-svid-compat.h [!__ASSEMBLER__]: Make code
12696         unconditional.
12697         * sysdeps/ieee754/s_lib_version.c [!defined SHARED]: Remove
12698         conditional code; define contents only for [LIBM_SVID_COMPAT].
12700 2017-08-28  Florian Weimer  <fweimer@redhat.com>
12702         * sysdeps/unix/sysv/linux/aarch64/Makefile (abi-lp64-options)
12703         (abi-lp64_be-options): Remove.
12704         * sysdeps/unix/sysv/linux/arm/Makefile (abi-soft-options)
12705         (abi-hard-options): Likewise.
12706         * sysdeps/unix/sysv/linux/mips/Makefile(abi-o32_soft-options)
12707         (abi-o32_hard-options, abi-o32_soft_2008-options)
12708         (abi-o32_hard_2008-options, abi-n32_soft-options)
12709         (abi-n32_hard-options, abi-n32_soft_2008-options)
12710         (abi-n32_hard_2008-options, abi-n64_soft-options)
12711         (abi-n64_hard-options, abi-n64_soft_2008-options)
12712         (abi-n64_hard_2008-options): Likewise.
12713         * sysdeps/unix/sysv/linux/powerpc/Makefile (abi-32-options)
12714         (abi-64-v1-options, abi-64-v2-options): Likewise.
12715         * sysdeps/unix/sysv/linux/s390/Makefile (abi-32-options)
12716         (abi-64-options): Likewise.
12717         * sysdeps/unix/sysv/linux/sparc/Makefile (abi-32-options)
12718         (abi-64-options): Likewise.
12719         * sysdeps/unix/sysv/linux/tile/tilegx/Makefile (abi-32-options)
12720         (abi-64-options): Likewise.
12721         * sysdeps/unix/sysv/linux/x86/Makefile (abi-32-options)
12722         (abi-64-options, abi-x32-options): Likewise.
12724 2017-08-28  Florian Weimer  <fweimer@redhat.com>
12726         Store supported list of SYS_* system calls in the source tree.
12727         * sysdeps/unix/sysv/linux/Makefile [$(subdir) = misc]
12728         (bits/syscall.h): Generate from list file.
12729         [$(subdir) = misc] (before-compile): Add bits/syscall.h.
12730         [$(subdir) = misc] (tests): Add tst-syscall-list.
12731         [$(subdir) = misc] (tests-special): Add tst-syscall-list.out
12732         [$(subdir) = misc] (tst-syscall-list-macros.list)
12733         [$(subdir) = misc] (tst-syscall-list-nr.list)
12734         (tst-syscall-list-sys.list): Helper targets for new
12735         tst-syscall-list test.
12736         [$(subdir) = misc] (tst-syscall-list.out): Run test script
12737         tst-syscall-list.sh.
12738         [$(subdir) = misc] (bits/syscall%h, bits/syscall%d): Remove
12739         target. Do not include bits/syscall.d.
12740         [$(subdir) = misc] (generated): Do not update.
12741         * sysdeps/unix/sysv/linux/syscall-names.list: New file.
12742         * sysdeps/unix/sysv/linux/gen-syscall-h.awk: Likewise.
12743         * sysdeps/unix/sysv/linux/filter-nr-syscalls.awk: Likewise.
12744         * sysdeps/unix/sysv/linux/tst-syscall-list.sh: Likewise.
12746 2017-08-27  Paul Pluzhnikov  <ppluzhnikov@google.com>
12748         * stdlib/Makefile (tst-atexit, tst-at_quick_exit): New tests.
12749         (tst-cxa_atexit, tst-on_exit): Likewise.
12750         * stdlib/Makefile (tests): Add tst-atexit, tst-at_quick_exit,
12751         tst-cxa_atexit, and tst-on_exit.
12752         * stdlib/tst-atexit-common.c: New file.
12753         * stdlib/tst-atexit.c: New file.
12754         * stdlib/tst-at_quick_exit.c: New file.
12755         * stdlib/tst-cxa_atexit.c: New file.
12756         * stdlib/tst-on_exit.c: New file.
12758 2017-08-27  Samuel Thibault  <samuel.thibault@ens-lyon.org>
12760         * sysdeps/mach/hurd/bits/sysmacros.h: New file.
12761         * mach/stack_chk_fail_local.c: New file.
12762         * hurd/stack_chk_fail_local.c: New file.
12763         * mach/Machrules ($(interface-library)-routines): Add
12764         stack_chk_fail_local.
12765         * mach/Makefile (CFLAGS-mach_init.o, CFLAGS-RPC_vm_statistics.o,
12766         CFLAGS-RPC_vm_map.o, CFLAGS-RPC_vm_protect.o,
12767         CFLAGS-RPC_i386_set_gdt.o, CFLAGS-RPC_i386_set_ldt.o,
12768         CFLAGS-RPC_task_get_special_port.o): Add $(no-stack-protector).
12769         * hurd/Makefile (CFLAGS-hurdstartup.o,
12770         CFLAGS-RPC_exec_startup_get_info.o): Add $(no-stack-protector).
12772 2017-08-25  H.J. Lu  <hongjiu.lu@intel.com>
12774         * sysdeps/x86/cpu-features.h [__ASSEMBLER__]
12775         (index_cpu_*, index_arch_*): Removed.
12777 2017-08-25  Szabolcs Nagy  <szabolcs.nagy@arm.com>
12779         * sysdeps/unix/sysv/linux/aarch64/sys/procfs.h (elf_greg_t):
12780         Use uint64_t instead of unsigned long.
12782 2017-08-25  Joseph Myers  <joseph@codesourcery.com>
12784         * math/tgmath.h [__HAVE_FLOAT128]: Change conditional to
12785         [__HAVE_DISTINCT_FLOAT128].
12787         * math/math.h (_MSUFTO_): Define and undefine for each inclusion
12788         of <bits/math-finite.h>.
12789         (__MATH_DECLARING_LDOUBLE): Do not define and undefine for each
12790         inclusion of <bits/math-finite.h>.
12791         * math/bits/math-finite.h (__REDIRTO_X): Do not define
12792         conditionally on [__MATH_DECLARING_LDOUBLE && defined
12793         __NO_LONG_DOUBLE_MATH].
12794         (__MATH_REDIRCALL): Use _MSUFTO_ in __REDIRTO call.
12795         (__MATH_REDIRCALL_2): Likewise.
12796         (__MATH_REDIRCALL_INTERNAL): Likewise.
12797         (__REDIRFROM (lgamma, , _MSUF_)): Likewise.
12798         (__REDIRFROM (gamma, , _MSUF_)): Likewise.
12799         (__REDIRFROM (tgamma, , _MSUF_)): Likewise.
12801         * sysdeps/powerpc/powerpc32/power4/fpu/multiarch/w_sqrt_compat-power5.S:
12802         Remove file.
12803         * sysdeps/powerpc/powerpc32/power4/fpu/multiarch/w_sqrt_compat-ppc32.S:
12804         Likewise.
12805         * sysdeps/powerpc/powerpc32/power4/fpu/multiarch/w_sqrt_compat.c:
12806         Likewise.
12807         * sysdeps/powerpc/powerpc32/power4/fpu/multiarch/w_sqrtf_compat-power5.S:
12808         Likewise.
12809         * sysdeps/powerpc/powerpc32/power4/fpu/multiarch/w_sqrtf_compat-ppc32.S:
12810         Likewise.
12811         * sysdeps/powerpc/powerpc32/power4/fpu/multiarch/w_sqrtf_compat.c:
12812         Likewise.
12813         * sysdeps/powerpc/powerpc32/power4/fpu/w_sqrt_compat.S: Likewise.
12814         * sysdeps/powerpc/powerpc32/power4/fpu/w_sqrtf_compat.S: Likewise.
12815         * sysdeps/powerpc/powerpc32/power5/fpu/w_sqrt_compat.S: Likewise.
12816         * sysdeps/powerpc/powerpc32/power5/fpu/w_sqrtf_compat.S: Likewise.
12817         * sysdeps/powerpc/powerpc32/power4/fpu/multiarch/Makefile
12818         (libm-sysdep-routines): Remove w_sqrt_compat-power5,
12819         w_sqrt_compat-ppc32, w_sqrtf_compat-power5 and
12820         w_sqrtf_compat-ppc32.
12822 2017-08-24  Gabriel F. T. Gomes  <gftg@linux.vnet.ibm.com>
12824         * math/math.h [defined __cplusplus] (issignaling): In the long
12825         double case, call __issignalingl only if __NO_LONG_DOUBLE_MATH
12826         is not defined.  Call __issignaling, otherwise.
12828 2017-08-24  Adhemerval Zanella  <adhemerval.zanella@linaro.org>
12830         * sysdeps/unix/make-syscalls.sh: Remove cancellable tagging for
12831         syscall definitions and replace __builtin_expect with __glibc_likely.
12832         * sysdeps/unix/syscall-template.S: Update comment about cancellable
12833         syscall.
12834          (SYSCALL_CANCELLABLE): Removedefinition
12835         * sysdeps/unix/sysv/linux/aarch64/sysdep-cancel.h (PSEUDO): Remove
12836         definition.
12837         (PSEUDO_END): Likewise.
12838         [IS_IN (libpthread)] (CENABLE): Likewise.
12839         [IS_IN (libpthread)] (CDISABLE): Likewise.
12840         [IS_IN (libc)] (CENABLE): Likewise.
12841         [IS_IN (libc)] (CENABLE): Likewise.
12842         [IS_IN (librt)] (CDISABLE): Likewise.
12843         [IS_IN (librt)] (CDISABLE): Likewise.
12844         [__ASSEMBLER__] (SINGLE_THREAD_P): Likewise.
12845         * sysdeps/unix/sysv/linux/alpha/sysdep-cancel.h (PSEUDO): Remove
12846         definition.
12847         (PSEUDO_END): Likewise.
12848         [IS_IN (libpthread)] (__local_enable_asynccancel): Likewise.
12849         [IS_IN (libpthread)] (__local_disable_asynccancel): Likewise.
12850         [IS_IN (libc)] (__local_enable_asynccancel): Likewise.
12851         [IS_IN (libc)] (__local_enable_asynccancel): Likewise.
12852         [IS_IN (librt)] (__local_disable_asynccancel): Likewise.
12853         [IS_IN (librt)] (__local_disable_asynccancel): Likewise.
12854         (CENABLE): Likewise.
12855         (CDISABLE): Likewise.
12856         [__ASSEMBLER__] (SINGLE_THREAD_P): Likewise.
12857         * sysdeps/unix/sysv/linux/arm/sysdep-cancel.h (PSEUDO): Remove
12858         defintion.
12859         (PSEUDO_END): Likewise.
12860         [IS_IN (libpthread)] (CENABLE): Likewise.
12861         [IS_IN (libpthread)] (CDISABLE): Likewise.
12862         [IS_IN (libc)] (CENABLE): Likewise.
12863         [IS_IN (libc)] (CENABLE): Likewise.
12864         [IS_IN (librt)] (CDISABLE): Likewise.
12865         [IS_IN (librt)] (CDISABLE): Likewise.
12866         [__ASSEMBLER__] (SINGLE_THREAD_P): Likewise.
12867         * sysdeps/unix/sysv/linux/hppa/sysdep-cancel.h (PSEUDO): Remove
12868         definition.
12869         (PSEUDO_END): Likewise.
12870         [IS_IN (libpthread)] (CENABLE): Likewise.
12871         [IS_IN (libpthread)] (CDISABLE): Likewise.
12872         [IS_IN (libc)] (CENABLE): Likewise.
12873         [IS_IN (libc)] (CENABLE): Likewise.
12874         [IS_IN (librt)] (CDISABLE): Likewise.
12875         [IS_IN (librt)] (CDISABLE): Likewise.
12876         [__ASSEMBLER__] (SINGLE_THREAD_P): Likewise.
12877         * sysdeps/unix/sysv/linux/i386/sysdep-cancel.h (PSEUDO): Remove
12878         definition.
12879         (PSEUDO_END): Likewise.
12880         [IS_IN (libpthread)] (CENABLE): Likewise.
12881         [IS_IN (libpthread)] (CDISABLE): Likewise.
12882         [IS_IN (libc)] (CENABLE): Likewise.
12883         [IS_IN (libc)] (CENABLE): Likewise.
12884         [IS_IN (librt)] (CDISABLE): Likewise.
12885         [IS_IN (librt)] (CDISABLE): Likewise.
12886         [__ASSEMBLER__] (SINGLE_THREAD_P): Likewise.
12887         * sysdeps/unix/sysv/linux/ia64/sysdep-cancel.h (PSEUDO): Remove
12888         definition.
12889         (PSEUDO_END): Likewise.
12890         [IS_IN (libpthread)] (CENABLE): Likewise.
12891         [IS_IN (libpthread)] (CDISABLE): Likewise.
12892         [IS_IN (libc)] (CENABLE): Likewise.
12893         [IS_IN (libc)] (CENABLE): Likewise.
12894         [IS_IN (librt)] (CDISABLE): Likewise.
12895         [IS_IN (librt)] (CDISABLE): Likewise.
12896         [__ASSEMBLER__] (SINGLE_THREAD_P): Likewise.
12897         * sysdeps/unix/sysv/linux/m68k/sysdep-cancel.h (PSEUDO): Remove
12898         definition.
12899         (PSEUDO_END): Likewise.
12900         [IS_IN (libpthread)] (CENABLE): Likewise.
12901         [IS_IN (libpthread)] (CDISABLE): Likewise.
12902         [IS_IN (libc)] (CENABLE): Likewise.
12903         [IS_IN (libc)] (CENABLE): Likewise.
12904         [IS_IN (librt)] (CDISABLE): Likewise.
12905         [IS_IN (librt)] (CDISABLE): Likewise.
12906         [__ASSEMBLER__] (SINGLE_THREAD_P): Likewise.
12907         * sysdeps/unix/sysv/linux/microblaze/sysdep-cancel.h (PSEUDO): Remove
12908         definition.
12909         (PSEUDO_END): Likewise.
12910         [IS_IN (libpthread)] (CENABLE): Likewise.
12911         [IS_IN (libpthread)] (CDISABLE): Likewise.
12912         [IS_IN (libc)] (CENABLE): Likewise.
12913         [IS_IN (libc)] (CENABLE): Likewise.
12914         [IS_IN (librt)] (CDISABLE): Likewise.
12915         [IS_IN (librt)] (CDISABLE): Likewise.
12916         [__ASSEMBLER__] (SINGLE_THREAD_P): Likewise.
12917         * sysdeps/unix/sysv/linux/mips/mips64/sysdep-cancel.h (PSEUDO):
12918         Remove definition.
12919         (PSEUDO_END): Likewise.
12920         [IS_IN (libpthread)] (CENABLE): Likewise.
12921         [IS_IN (libpthread)] (CDISABLE): Likewise.
12922         [IS_IN (libc)] (CENABLE): Likewise.
12923         [IS_IN (libc)] (CENABLE): Likewise.
12924         [IS_IN (librt)] (CDISABLE): Likewise.
12925         [IS_IN (librt)] (CDISABLE): Likewise.
12926         (SINGLE_THREAD_P): Likewise.
12927         * sysdeps/unix/sysv/linux/mips/sysdep-cancel.h (PSEUDO): Remove
12928         definition.
12929         (PSEUDO_END): Likewise.
12930         [IS_IN (libpthread)] (CENABLE): Likewise.
12931         [IS_IN (libpthread)] (CDISABLE): Likewise.
12932         [IS_IN (libc)] (CENABLE): Likewise.
12933         [IS_IN (libc)] (CENABLE): Likewise.
12934         [IS_IN (librt)] (CDISABLE): Likewise.
12935         [IS_IN (librt)] (CDISABLE): Likewise.
12936         [__ASSEMBLER__] (SINGLE_THREAD_P): Likewise.
12937         * sysdeps/unix/sysv/linux/nios2/sysdep-cancel.h (PSEUDO): Remove
12938         definition.
12939         (PSEUDO_END): Likewise.
12940         [IS_IN (libpthread)] (CENABLE): Likewise.
12941         [IS_IN (libpthread)] (CDISABLE): Likewise.
12942         [IS_IN (libc)] (CENABLE): Likewise.
12943         [IS_IN (libc)] (CENABLE): Likewise.
12944         [IS_IN (librt)] (CDISABLE): Likewise.
12945         [IS_IN (librt)] (CDISABLE): Likewise.
12946         [__ASSEMBLER__] (SINGLE_THREAD_P): Likewise.
12947         * sysdeps/sysv/linux/powerpc/powerpc32/sysdep-cancel.h: Remove file.
12948         * sysdeps/sysv/linux/powerpc/powerpc64/sysdep-cancel.h: Likewise.
12949         * sysdeps/unix/sysv/linux/powerpc/sysdep-cancel.h: New file.
12950         * sysdeps/unix/sysv/linux/s390/s390-32/sysdep-cancel.h (PSEUDO): Remove
12951         definition.
12952         (PSEUDO_END): Likewise.
12953         [IS_IN (libpthread)] (CENABLE): Likewise.
12954         [IS_IN (libpthread)] (CDISABLE): Likewise.
12955         [IS_IN (libc)] (CENABLE): Likewise.
12956         [IS_IN (libc)] (CENABLE): Likewise.
12957         [IS_IN (librt)] (CDISABLE): Likewise.
12958         [IS_IN (librt)] (CDISABLE): Likewise.
12959         [__ASSEMBLER__] (SINGLE_THREAD_P): Likewise.
12960         * sysdeps/unix/sysv/linux/s390/s390-64/sysdep-cancel.h (PSEUDO): Remove
12961         definition.
12962         (PSEUDO_END): Likewise.
12963         [IS_IN (libpthread)] (CENABLE): Likewise.
12964         [IS_IN (libpthread)] (CDISABLE): Likewise.
12965         [IS_IN (libc)] (CENABLE): Likewise.
12966         [IS_IN (libc)] (CENABLE): Likewise.
12967         [IS_IN (librt)] (CDISABLE): Likewise.
12968         [IS_IN (librt)] (CDISABLE): Likewise.
12969         [__ASSEMBLER__] (SINGLE_THREAD_P): Likewise.
12970         * sysdeps/unix/sysv/linux/sh/sysdep-cancel.h (PSEUDO): Remove
12971         definition.
12972         (PSEUDO_END): Likewise.
12973         [IS_IN (libpthread)] (CENABLE): Likewise.
12974         [IS_IN (libpthread)] (CDISABLE): Likewise.
12975         [IS_IN (libc)] (CENABLE): Likewise.
12976         [IS_IN (libc)] (CENABLE): Likewise.
12977         [IS_IN (librt)] (CDISABLE): Likewise.
12978         [IS_IN (librt)] (CDISABLE): Likewise.
12979         [__ASSEMBLER__] (SINGLE_THREAD_P): Likewise.
12980         * sysdeps/unix/sysv/linux/sparc/sparc32/sysdep-cancel.h: Remove file.
12981         * sysdeps/unix/sysv/linux/sparc/sparc64/sysdep-cancel.h: Likewise.
12982         * sysdeps/unix/sysv/linux/sparc/sysdep-cancel.h: New file.
12983         * sysdeps/unix/sysv/linux/tile/sysdep-cancel.h (PSEUDO): Remove
12984         definition.
12985         (PSEUDO_END): Likewise.
12986         [IS_IN (libpthread)] (CENABLE): Likewise.
12987         [IS_IN (libpthread)] (CDISABLE): Likewise.
12988         [IS_IN (libc)] (CENABLE): Likewise.
12989         [IS_IN (libc)] (CENABLE): Likewise.
12990         [IS_IN (librt)] (CDISABLE): Likewise.
12991         [IS_IN (librt)] (CDISABLE): Likewise.
12992         [__ASSEMBLER__] (SINGLE_THREAD_P): Likewise.
12993         * sysdeps/unix/sysv/linux/x86_64/sysdep-cancel.h (PSEUDO): Remove
12994         definition.
12995         (PSEUDO_END): Likewise.
12996         [IS_IN (libpthread)] (CENABLE): Likewise.
12997         [IS_IN (libpthread)] (CDISABLE): Likewise.
12998         [IS_IN (libc)] (CENABLE): Likewise.
12999         [IS_IN (libc)] (CENABLE): Likewise.
13000         [IS_IN (librt)] (CDISABLE): Likewise.
13001         [IS_IN (librt)] (CDISABLE): Likewise.
13002         [__ASSEMBLER__] (SINGLE_THREAD_P): Likewise.
13004 2017-08-24  Szabolcs Nagy  <szabolcs.nagy@arm.com>
13006         * sysdeps/ieee754/dbl-64/Makefile: Don't override CFLAGS.
13008 2017-08-23  H.J. Lu  <hongjiu.lu@intel.com>
13010         * sysdeps/x86_64/fpu/libm-test-ulps: Regenerated.
13012 2017-08-23  H.J. Lu  <hongjiu.lu@intel.com>
13014         [BZ #21982]
13015         * string/stratcliff.c (do_test): Declare size, nchars, inner,
13016         middle and outer with size_t instead of int.  Repleace %d and
13017         %Zd with %zu in printf.  Update "MAX (0, nchars - 128)" and
13018         "MAX (outer, nchars - 64)" to support unsigned outer and
13019         nchars.  Also exit loop when outer == 0.
13021 2017-08-23  Adhemerval Zanella  <adhemerval.zanella@linaro.org>
13023         * include/fcntl.h (__fcntl_nocancel): Remove definition.
13024         * include/signal.h (__sigsuspend_nocancel): Likewise.
13025         * include/time.h (__nanosleep_nocancel): Likewise.
13026         * sysdeps/generic/not-cancel.h (__fcntl_nocancel): New macro.
13027         * login/utmp_file.c: Include non cancellable syscall header.
13028         * sysdeps/unix/sysv/linux/not-cancel.h (__fcntl_nocancel): New
13029         prototype.
13031 2017-08-23  H.J. Lu  <hongjiu.lu@intel.com>
13033         * sysdeps/x86_64/fpu/svml_d_sincos8_core.S: Replace AVX512F
13034         .byte sequences with AVX512F instructions.
13035         * sysdeps/x86_64/fpu/svml_d_wrapper_impl.h: Likewise.
13036         * sysdeps/x86_64/fpu/svml_s_sincosf16_core.S: Likewise.
13037         * sysdeps/x86_64/fpu/svml_s_wrapper_impl.h: Likewise.
13038         * sysdeps/x86_64/fpu/multiarch/svml_d_sincos8_core_avx512.S:
13039         Likewise.
13040         * sysdeps/x86_64/fpu/multiarch/svml_s_sincosf16_core_avx512.S:
13041         Likewise.
13043 2017-08-22  Szabolcs Nagy  <szabolcs.nagy@arm.com>
13044             Steve Ellcey  <sellcey@cavium.com>
13046         * sysdeps/aarch64/dl-tlsdesc.S (_dl_tlsdesc_dynamic):
13047         Use PTR_REG macro in cmp instruction.
13049 2017-08-22  Gabriel F. T. Gomes  <gftg@linux.vnet.ibm.com>
13051         * include/libc-symbols.h: [!defined HAVE_GCC_IFUNC] (__ifunc):
13052         Change the return type of the ifunc resolver to match the return
13053         type of the target function.
13055 2017-08-22  Adhemerval Zanella  <adhemerval.zanella@linaro.org>
13057         * sysdeps/unix/sysv/linux/x86_64/syscalls.list (pread64): Remove.
13058         (preadv64): Likewise.
13059         (pwrite64(: Likewise.
13060         (pwritev64): Likewise.
13062         * sysdeps/unix/sysv/linux/x86_64/sysdep.h
13063         (INTERNAL_SYSCALL_NCS_TYPES): Remove define.
13064         (LOAD_ARGS_0): Likewise.
13065         (LOAD_ARGS_1): Likewise.
13066         (LOAD_ARGS_2): Likewise.
13067         (LOAD_ARGS_3): Likewise.
13068         (LOAD_ARGS_4): Likewise.
13069         (LOAD_ARGS_5): Likewise.
13070         (LOAD_ARGS_6): Likewise.
13071         (LOAD_REGS_0): Likewise.
13072         (LOAD_REGS_1): Likewise.
13073         (LOAD_REGS_2): Likewise.
13074         (LOAD_REGS_3): Likewise.
13075         (LOAD_REGS_4): Likewise.
13076         (LOAD_REGS_5): Likewise.
13077         (LOAD_REGS_6): Likewise.
13078         (ASM_ARGS_0): Likewise.
13079         (ASM_ARGS_1): Likewise.
13080         (ASM_ARGS_2): Likewise.
13081         (ASM_ARGS_3): Likewise.
13082         (ASM_ARGS_4): Likewise.
13083         (ASM_ARGS_5): Likewise.
13084         (ASM_ARGS_6): Likewise.
13085         (LOAD_ARGS_TYPES_1): Likewise.
13086         (LOAD_ARGS_TYPES_2): Likewise.
13087         (LOAD_ARGS_TYPES_3): Likewise.
13088         (LOAD_ARGS_TYPES_4): Likewise.
13089         (LOAD_ARGS_TYPES_5): Likewise.
13090         (LOAD_ARGS_TYPES_6): Likewise.
13091         (LOAD_REGS_TYPES_1): Likewise.
13092         (LOAD_REGS_TYPES_2): Likewise.
13093         (LOAD_REGS_TYPES_3): Likewise.
13094         (LOAD_REGS_TYPES_4): Likewise.
13095         (LOAD_REGS_TYPES_5): Likewise.
13096         (LOAD_REGS_TYPES_6): Likewise.
13097         (TYPEFY): New define.
13098         (ARGIFY): Likewise.
13099         (internal_syscall0): Likewise.
13100         (internal_syscall1): Likewise.
13101         (internal_syscall2): Likewise.
13102         (internal_syscall3): Likewise.
13103         (internal_syscall4): Likewise.
13104         (internal_syscall5): Likewise.
13105         (internal_syscall6): Likewise.
13106         * sysdeps/unix/sysv/linux/x86_64/x32/times.c
13107         (INTERNAL_SYSCALL_NCS): Remove define.
13108         (internal_syscall1): Add define.
13110 2017-08-22  Gabriel F. T. Gomes  <gftg@linux.vnet.ibm.com>
13112         * math/w_remainder_compat.c: Remove duplicate inclusion of
13113         math-svid-compat.h.
13114         * math/w_remainderf_compat.c: Likewise.
13115         * math/w_remainderl_compat.c: Likewise.
13117 2017-08-22  Gabriel F. T. Gomes  <gftg@linux.vnet.ibm.com>
13119         * sysdeps/powerpc/fpu/libm-test-ulps: Update.
13121 2017-08-22  Joseph Myers  <joseph@codesourcery.com>
13123         [BZ #21684]
13124         * math/tgmath.h (__floating_type): Simplify definitions.
13125         (__real_integer_type): New macro.
13126         (__complex_integer_type): Likewise.
13127         (__expr_is_real): Likewise.
13128         (__tgmath_real_type_sub): Update comment to describe handling of
13129         complex types.
13130         (__tgmath_complex_type_sub): New macro.
13131         (__tgmath_complex_type): Likewise.
13132         [__HAVE_FLOAT128 && __GLIBC_USE (IEC_60559_TYPES_EXT)]
13133         (__TGMATH_CF128): Use __expr_is_real.
13134         (__TGMATH_UNARY_REAL_IMAG): Use __tgmath_complex_type and
13135         __expr_is_real.
13136         (__TGMATH_BINARY_REAL_IMAG): Likewise.
13137         (__TGMATH_UNARY_REAL_IMAG_RET_REAL): Use __expr_is_real.
13138         * math/gen-tgmath-tests.py (Type.create_type): Create complex
13139         integer types.
13141 2017-08-22  Adhemerval Zanella  <adhemerval.zanella@linaro.org>
13143         * sysdeps/generic/not-cancel.h (sigsuspend_not_cancel): Remove
13144         macro.
13145         * sysdeps/mach/hurd/sigsuspend.c (sigsuspend_not_cancel): Remove
13146         alias.
13147         * sysdeps/unix/sysv/linux/not-cancel.h (sigsuspend_not_cancel):
13148         Likewise.
13150         * nptl/pthread_mutex_timedlock.c (__pthread_mutex_timedlock): Replace
13151         nanosleep_not_cancel with __nanosleep_nocancel.
13152         * sysdeps/generic/not-cancel.h (nanosleep_not_cancel): Remove macro.
13153         (__nanosleep_nocancel): New macro.
13154         * sysdeps/unix/sysv/linux/nanosleep.c (__nanosleep_nocancel): New
13155         function.
13156         * sysdeps/unix/sysv/linux/not-cancel.h (nanosleep_not_cancel): Remove
13157         macro.
13158         (__nanosleep_nocancel): New prototype.
13160         * nptl/pthread_mutex_lock.c (__pthread_mutex_lock_full): Replace
13161         pause_not_cancel with __pause_nocancel.
13162         * sysdeps/generic/not-cancel.h (pause_not_cancel): Remove macro.
13163         (__pause_nocancel): New macro.
13164         * sysdeps/unix/sysv/linux/not-cancel.h (pause_not_cancel): Remove
13165         macro.
13166         (__pause_nocancel): New prototype.
13167         * sysdeps/unix/sysv/linux/pause.c (__pause_nocancel): New function.
13169 2017-08-22  Martin Sebor  <msebor@redhat.com>
13171         * include/libc-symbols.h (__ifunc_resolver): Declare resolver
13172         to return a pointer to the same type as the target function.
13174 2017-08-22  H.J. Lu  <hongjiu.lu@intel.com>
13176         [BZ #18822]
13177         [BZ #21986]
13178         * include/printf.h (__printf_fphex): Add attribute_hidden.
13179         (__guess_grouping): New prototype.
13180         * stdio-common/printf_fp.c (__guess_grouping): Removed.
13181         * stdio-common/reg-printf.c (__register_printf_specifier): Add
13182         libc_hidden_proto and libc_hidden_def.
13183         * stdlib/strfmon_l.c (__guess_grouping): Removed.
13184         (__vstrfmon_l): Remove the third argument passed to
13185         __guess_grouping.
13187 2017-08-22  Gabriel F. T. Gomes  <gftg@linux.vnet.ibm.com>
13189         * math/math.h [defined __cplusplus] (issignaling): Provide a C++
13190         definition for issignaling that does not rely on __MATH_TG,
13191         since __MATH_TG uses __builtin_types_compatible_p, which is only
13192         available in C mode.
13193         (CFLAGS-test-math-issignaling.cc): New variable.
13194         * math/Makefile [CXX] (tests): Add test-math-issignaling.
13195         * math/test-math-issignaling.cc: New test for C++ implementation
13196         of type-generic issignaling.
13197         * sysdeps/powerpc/powerpc64le/Makefile [subdir == math]
13198         (CXXFLAGS-test-math-issignaling.cc): Add -mfloat128 to the build
13199         options of test-math-issignaling on powerpc64le.
13201 2017-08-22  H.J. Lu  <hongjiu.lu@intel.com>
13203         * include/libc-symbols.h (__hidden_proto_hiddenattr): New for
13204         building libc.a.
13205         (hidden_proto): Likewise.
13206         (hidden_tls_proto): Likewise.
13207         (__hidden_proto): Likewise.
13209 2017-08-22  Florian Weimer  <fweimer@redhat.com>
13211         math: Statically link tests of internal functionality.
13212         * math/Makefile (tests): Remove atest-exp, atest-sincos,
13213         atest-exp2.
13214         (tests-static): Add atest-exp, atest-sincos, atest-exp2.
13215         (gmp-objs): Remove assignment.
13216         (atest-exp, atest-sincos, atest-exp2): Remove targets.
13218 2017-08-22  Joseph Myers  <joseph@codesourcery.com>
13220         [BZ #21987]
13221         * sysdeps/unix/sysv/linux/sparc/bits/long-double.h: Remove file
13222         and copy to ...
13223         * sysdeps/unix/sysv/linux/sparc/sparc32/bits/long-double.h:
13224         ... here.
13225         * sysdeps/unix/sysv/linux/sparc/sparc64/bits/long-double.h:
13226         ... and here.
13228         * assert/Makefile [$(have-cxx-thread_local)]: Move conditional
13229         variable definitions above inclusion of ../Rules.
13231 2017-08-21  Joseph Myers  <joseph@codesourcery.com>
13233         * sysdeps/ieee754/k_standard.c (__kernel_standard): Add default
13234         case calling __builtin_unreachable.
13236 2017-08-21  Adhemerval Zanella  <adhemerval.zanella@linaro.org>
13238         * libio/ioopen.c (_IO_waitpid): Replace waitpid_not_cancel with
13239         __waitpid_nocancel.
13240         * sysdeps/generic/not-cancel.h (waitpid_not_cancel): Remove macro.
13241         (__waitpid_nocancel): New macro.
13242         * sysdeps/unix/sysv/linux/not-cancel.h (waitpid_not_cancel): Remove
13243         macro.
13244         (__waitpid_nocancel): Replace macro with a function.
13245         * sysdeps/unix/sysv/linux/waitpid.c (__waitpid_nocancel): New
13246         function.
13248         * login/utmp_file.c (timeout_handler): Replace fcntl_not_cancel with
13249         __fcntl_nocancel.
13250         * sysdeps/generic/not-cancel.h (fcntl_not_cancel): Remove macro.
13251         * sysdeps/unix/sysv/linux/not-cancel.h (fcntl_not_cancel): Likewise.
13253         * gmon/gmon.c (write_hist): Replace writev_not_cancel_no_status with
13254         __writev_nocancel_nostatus.
13255         (write_call_graph): Likewise.
13256         (write_bb_counts): Likewise.
13257         * resolv/herror.c (herror): Likewise.
13258         * sysdeps/generic/not-cancel.h (writev_not_cancel_no_status): Remove
13259         macro.
13260         (__writev_nocancel_nostatus): New macro.
13261         * sysdeps/unix/sysv/linux/not-cancel.h (writev_not_cancel_no_status):
13262         Remove macro.
13263         (__writev_nocancel_nostatus): New function.
13265 2017-08-21  Joseph Myers  <joseph@codesourcery.com>
13267         Revert:
13268         2017-08-21  H.J. Lu  <hongjiu.lu@intel.com>
13270         * include/libc-symbols.h (__hidden_proto_hiddenattr): New for
13271         building libc.a.
13272         (hidden_proto): Likewise.
13273         (hidden_tls_proto): Likewise.
13274         (__hidden_proto): Likewise.
13276         [BZ #21973]
13277         * sysdeps/sparc/sparc32/fpu/w_sqrt_compat.S: Remove file.
13278         * sysdeps/sparc/sparc32/fpu/w_sqrtf_compat.S: Likewise.
13279         * sysdeps/sparc/sparc32/sparcv9/fpu/multiarch/w_sqrt_compat-vis3.S:
13280         Likewise.
13281         * sysdeps/sparc/sparc32/sparcv9/fpu/multiarch/w_sqrt_compat.S:
13282         Likewise.
13283         * sysdeps/sparc/sparc32/sparcv9/fpu/multiarch/w_sqrtf_compat-vis3.S:
13284         Likewise.
13285         * sysdeps/sparc/sparc32/sparcv9/fpu/multiarch/w_sqrtf_compat.S:
13286         Likewise.
13287         * sysdeps/sparc/sparc32/sparcv9/fpu/w_sqrt_compat.S : Likewise.
13288         * sysdeps/sparc/sparc32/sparcv9/fpu/w_sqrtf_compat.S: Likewise.
13289         * sysdeps/sparc/sparc64/fpu/w_sqrt_compat.S: Likewise.
13290         * sysdeps/sparc/sparc64/fpu/w_sqrtf_compat.S: Likewise.
13291         * sysdeps/unix/sysv/linux/sparc/sparc32/libm.abilist: Add
13292         GLIBC_2.0 sqrtl symbol.
13294         * math/math.h [__USE_MISC] (_LIB_VERSION_TYPE): Remove.
13295         [__USE_MISC] (_LIB_VERSION): Likewise.
13296         [__USE_MISC] (struct exception): Likewise.
13297         [__USE_MISC] (matherr): Likewise.
13298         [__USE_MISC] (DOMAIN): Likewise.
13299         [__USE_MISC] (SING): Likewise.
13300         [__USE_MISC] (OVERFLOW): Likewise.
13301         [__USE_MISC] (UNDERFLOW): Likewise.
13302         [__USE_MISC] (TLOSS): Likewise.
13303         [__USE_MISC] (PLOSS): Likewise.
13304         [__USE_MISC] (HUGE): Likewise.
13305         [__USE_XOPEN] (MAXFLOAT): Define even if [__USE_MISC].
13306         * math/math-svid-compat.h: New file.
13307         * conform/linknamespace.pl (@whitelist): Remove matherr, matherrf
13308         and matherrl.
13309         * include/math.h [!_ISOMAC] (__matherr): Remove.
13310         * manual/arith.texi (FP Exceptions): Do not document matherr.
13311         * math/Makefile (tests): Change test-matherr to test-matherr-3.
13312         (tests-internal): New variable.
13313         (install-lib): Do not add libieee.a.
13314         (non-lib.a): Likewise.
13315         (extra-objs): Do not add libieee.a and ieee-math.o.
13316         (CPPFLAGS-s_lib_version.c): Remove variable.
13317         ($(objpfx)libieee.a): Remove rule.
13318         ($(addprefix $(objpfx), $(tests-internal)): Depend on $(libm).
13319         * math/ieee-math.c: Remove.
13320         * math/libm-test-support.c (matherr): Remove.
13321         * math/test-matherr.c: Use <support/test-driver.c>.  Add copyright
13322         and license notices.  Include <math-svid-compat.h> and
13323         <shlib-compat.h>.
13324         (matherr): Undefine as macro.  Use compat_symbol_reference.
13325         (_LIB_VERSION): Likewise.
13326         * math/test-matherr-2.c: New file.
13327         * math/test-matherr-3.c: Likewise.
13328         * sysdeps/generic/math_private.h (__kernel_standard): Remove
13329         declaration.
13330         (__kernel_standard_f): Likewise.
13331         (__kernel_standard_l): Likewise.
13332         * sysdeps/ieee754/s_lib_version.c: Do not include <math.h> or
13333         <math_private.h>.  Include <math-svid-compat.h>.
13334         (_LIB_VERSION): Undefine as macro.
13335         (_LIB_VERSION_INTERNAL): Always initialize to _POSIX_.  Define
13336         only if [LIBM_SVID_COMPAT || !defined SHARED].  If
13337         [LIBM_SVID_COMPAT], use compat_symbol.
13338         * sysdeps/ieee754/s_matherr.c: Do not include <math.h> or
13339         <math_private.h>.  Include <math-svid-compat.h>.
13340         (matherr): Undefine as macro.
13341         (__matherr): Define only if [LIBM_SVID_COMPAT].  Use
13342         compat_symbol.
13343         * sysdeps/ia64/fpu/libm_error.c: Include <math-svid-compat.h>.
13344         [_LIBC && LIBM_SVID_COMPAT] (matherrf): Use
13345         compat_symbol_reference.
13346         [_LIBC && LIBM_SVID_COMPAT] (matherrl): Likewise.
13347         [_LIBC && !LIBM_SVID_COMPAT] (matherrf): Define as macro.
13348         [_LIBC && !LIBM_SVID_COMPAT] (matherrl): Likewise.
13349         * sysdeps/ia64/fpu/libm_support.h: Include <math-svid-compat.h>.
13350         (MATHERR_D): Remove declaration.
13351         [!_LIBC] (_LIB_VERSION_TYPE): Likewise
13352         [!LIBM_BUILD] (_LIB_VERSIONIMF): Likewise.
13353         [LIBM_BUILD] (pmatherrf): Likewise.
13354         [LIBM_BUILD] (pmatherr): Likewise.
13355         [LIBM_BUILD] (pmatherrl): Likewise.
13356         (DOMAIN): Likewise.
13357         (SING): Likewise.
13358         (OVERFLOW): Likewise.
13359         (UNDERFLOW): Likewise.
13360         (TLOSS): Likewise.
13361         (PLOSS): Likewise.
13362         * sysdeps/ia64/fpu/s_matherrf.c: Include <math-svid-compat.h>.
13363         (__matherrf): Define only if [LIBM_SVID_COMPAT].  Use
13364         compat_symbol.
13365         * sysdeps/ia64/fpu/s_matherrl.c: Include <math-svid-compat.h>.
13366         (__matherrl): Define only if [LIBM_SVID_COMPAT].  Use
13367         compat_symbol.
13368         * math/lgamma-compat.h: Include <math-svid-compat.h>.
13369         * math/w_acos_compat.c: Likewise.
13370         * math/w_acosf_compat.c: Likewise.
13371         * math/w_acosh_compat.c: Likewise.
13372         * math/w_acoshf_compat.c: Likewise.
13373         * math/w_acoshl_compat.c: Likewise.
13374         * math/w_acosl_compat.c: Likewise.
13375         * math/w_asin_compat.c: Likewise.
13376         * math/w_asinf_compat.c: Likewise.
13377         * math/w_asinl_compat.c: Likewise.
13378         * math/w_atan2_compat.c: Likewise.
13379         * math/w_atan2f_compat.c: Likewise.
13380         * math/w_atan2l_compat.c: Likewise.
13381         * math/w_atanh_compat.c: Likewise.
13382         * math/w_atanhf_compat.c: Likewise.
13383         * math/w_atanhl_compat.c: Likewise.
13384         * math/w_cosh_compat.c: Likewise.
13385         * math/w_coshf_compat.c: Likewise.
13386         * math/w_coshl_compat.c: Likewise.
13387         * math/w_exp10_compat.c: Likewise.
13388         * math/w_exp10f_compat.c: Likewise.
13389         * math/w_exp10l_compat.c: Likewise.
13390         * math/w_exp2_compat.c: Likewise.
13391         * math/w_exp2f_compat.c: Likewise.
13392         * math/w_exp2l_compat.c: Likewise.
13393         * math/w_fmod_compat.c: Likewise.
13394         * math/w_fmodf_compat.c: Likewise.
13395         * math/w_fmodl_compat.c: Likewise.
13396         * math/w_hypot_compat.c: Likewise.
13397         * math/w_hypotf_compat.c: Likewise.
13398         * math/w_hypotl_compat.c: Likewise.
13399         * math/w_j0_compat.c: Likewise.
13400         * math/w_j0f_compat.c: Likewise.
13401         * math/w_j0l_compat.c: Likewise.
13402         * math/w_j1_compat.c: Likewise.
13403         * math/w_j1f_compat.c: Likewise.
13404         * math/w_j1l_compat.c: Likewise.
13405         * math/w_jn_compat.c: Likewise.
13406         * math/w_jnf_compat.c: Likewise.
13407         * math/w_jnl_compat.c: Likewise.
13408         * math/w_lgamma_main.c: Likewise.
13409         * math/w_lgamma_r_compat.c: Likewise.
13410         * math/w_lgammaf_main.c: Likewise.
13411         * math/w_lgammaf_r_compat.c: Likewise.
13412         * math/w_lgammal_main.c: Likewise.
13413         * math/w_lgammal_r_compat.c: Likewise.
13414         * math/w_log10_compat.c: Likewise.
13415         * math/w_log10f_compat.c: Likewise.
13416         * math/w_log10l_compat.c: Likewise.
13417         * math/w_log2_compat.c: Likewise.
13418         * math/w_log2f_compat.c: Likewise.
13419         * math/w_log2l_compat.c: Likewise.
13420         * math/w_log_compat.c: Likewise.
13421         * math/w_logf_compat.c: Likewise.
13422         * math/w_logl_compat.c: Likewise.
13423         * math/w_pow_compat.c: Likewise.
13424         * math/w_powf_compat.c: Likewise.
13425         * math/w_powl_compat.c: Likewise.
13426         * math/w_remainder_compat.c: Likewise.
13427         * math/w_remainderf_compat.c: Likewise.
13428         * math/w_remainderl_compat.c: Likewise.
13429         * math/w_scalb_compat.c: Likewise.
13430         * math/w_scalbf_compat.c: Likewise.
13431         * math/w_scalbl_compat.c: Likewise.
13432         * math/w_sinh_compat.c: Likewise.
13433         * math/w_sinhf_compat.c: Likewise.
13434         * math/w_sinhl_compat.c: Likewise.
13435         * math/w_sqrt_compat.c: Likewise.
13436         * math/w_sqrtf_compat.c: Likewise.
13437         * math/w_sqrtl_compat.c: Likewise.
13438         * math/w_tgamma_compat.c: Likewise.
13439         * math/w_tgammaf_compat.c: Likewise.
13440         * math/w_tgammal_compat.c: Likewise.
13441         * sysdeps/ieee754/dbl-64/w_exp_compat.c: Likewise.
13442         * sysdeps/ieee754/flt-32/w_expf_compat.c: Likewise.
13443         * sysdeps/ieee754/k_standard.c: Likewise.
13444         * sysdeps/ieee754/k_standardf.c: Likewise.
13445         * sysdeps/ieee754/k_standardl.c: Likewise.
13446         * sysdeps/ieee754/ldbl-128/w_expl_compat.c: Likewise.
13447         * sysdeps/ieee754/ldbl-128ibm/w_expl_compat.c: Likewise.
13448         * sysdeps/ieee754/ldbl-96/w_expl_compat.c: Likewise.
13449         * sysdeps/powerpc/powerpc32/power4/fpu/w_sqrt_compat.S: Likewise.
13450         * sysdeps/powerpc/powerpc32/power4/fpu/w_sqrtf_compat.S: Likewise.
13451         * sysdeps/powerpc/powerpc32/power5/fpu/w_sqrt_compat.S: Likewise.
13452         * sysdeps/powerpc/powerpc32/power5/fpu/w_sqrtf_compat.S: Likewise.
13453         * sysdeps/sparc/sparc32/fpu/w_sqrt_compat.S: Likewise.
13454         * sysdeps/sparc/sparc32/fpu/w_sqrtf_compat.S: Likewise.
13455         * sysdeps/sparc/sparc32/sparcv9/fpu/multiarch/w_sqrt_compat-vis3.S:
13456         Likewise.
13457         * sysdeps/sparc/sparc32/sparcv9/fpu/multiarch/w_sqrtf_compat-vis3.S:
13458         Likewise.
13459         * sysdeps/sparc/sparc32/sparcv9/fpu/w_sqrt_compat.S: Likewise.
13460         * sysdeps/sparc/sparc32/sparcv9/fpu/w_sqrtf_compat.S: Likewise.
13461         * sysdeps/sparc/sparc64/fpu/w_sqrt_compat.S: Likewise.
13462         * sysdeps/sparc/sparc64/fpu/w_sqrtf_compat.S: Likewise.
13464 2017-08-21  Florian Weimer  <fweimer@redhat.com>
13466         [BZ #21864]
13467         Do not compile benchmark helper objects with -DMODULE_NAME=libc.
13468         * benchtests/Makefile (others-extras): Set to $(bench-extra-objs).
13469         Move before inclusion of ../Rules.
13471 2017-08-21  Florian Weimer  <fweimer@redhat.com>
13473         [BZ #21972]
13474         * assert/assert.h (assert): Use static_cast (bool) for C++.
13475         Use the ternary operator in the warning branch for GNU C.
13476         * assert/Makefile (tests): Add tst-assert-c++, tst-assert-g++.
13477         (CFLAGS-tst-assert-c++.o): Compile in C++11 mode.
13478         (CFLAGS-tst-assert-g++.o): Compile in GnU C++11 mode.
13479         (LDLIBS-tst-assert-c++, LDLIBS-tst-assert-g++): Link with libstdc++.
13480         * assert/tst-assert-c++.cc, assert/tst-assert-g++.cc: New files.
13482 2017-08-21  H.J. Lu  <hongjiu.lu@intel.com>
13484         [BZ #18822]
13485         * sysdeps/unix/sysv/linux/x86_64/init-first.c
13486         (__syscall_clock_gettime): Add attribute_hidden.
13487         * sysdeps/unix/sysv/linux/x86_64/makecontext.c
13488         (__start_context): Likewise.
13490 2017-08-21  H.J. Lu  <hongjiu.lu@intel.com>
13492         * include/libc-symbols.h (__hidden_proto_hiddenattr): New for
13493         building libc.a.
13494         (hidden_proto): Likewise.
13495         (hidden_tls_proto): Likewise.
13496         (__hidden_proto): Likewise.
13498 2017-08-21  H.J. Lu  <hongjiu.lu@intel.com>
13500         * include/libc-symbols.h (attribute_hidden): Enable hidden
13501         visibility in libc.a compiled with PIE.
13503 2017-08-21  H.J. Lu  <hongjiu.lu@intel.com>
13505         [BZ #18822]
13506         * sysdeps/unix/sysv/linux/x86/libc-vdso.h (VDSO_SYMBOL(getcpu)):
13507         Add attribute_hidden.
13509 2017-08-21  H.J. Lu  <hongjiu.lu@intel.com>
13511         [BZ #21864]
13512         * Makerules (all-nonlib): Add $(others-extras).
13513         * catgets/Makefile (others-extras): New.
13514         * elf/Makefile (others-extras): Likewise.
13515         * nss/Makefile (others-extras): Likewise.
13517 2017-08-21  H.J. Lu  <hongjiu.lu@intel.com>
13519         [BZ #18822]
13520         * csu/libc-start.c (__libc_multiple_libcs): Removed.
13521         * elf/dl-open.c: Include <libc-internal.h>.
13522         (__libc_multiple_libcs): Removed.
13523         * elf/dl-sysdep.c: Include <libc-internal.h> instead of
13524         <hp-timing.h>.
13525         * include/libc-internal.h (__libc_multiple_libcs): New.
13526         * misc/sbrk.c: Include <libc-internal.h>.
13527         (__libc_multiple_libcs): Removed.
13529 2017-08-21  H.J. Lu  <hongjiu.lu@intel.com>
13531         [BZ #18822]
13532         * grp/initgroups.c (__nss_group_database): Removed.
13533         (__nss_initgroups_database): Likewise.
13534         * nscd/gai.c (__nss_hosts_database): Likewise.
13535         * nss/XXX-lookup.c (DATABASE_NAME_SYMBOL): Likewise.
13536         * posix/tst-rfc3484-2.c (__nss_hosts_database): Likewise.
13537         * posix/tst-rfc3484-3.c (__nss_hosts_database): Likewise.
13538         * posix/tst-rfc3484.c (__nss_hosts_database): Likewise.
13539         * sysdeps/posix/getaddrinfo.c (__nss_hosts_database): Likewise.
13540         * nss/getXXent.c (INTERNAL (REENTRANT_GETNAME)): Add
13541         attribute_hidden.
13542         * nss/nsswitch.c (__nss_database_custom): Define only if
13543         USE_NSCD is defined.
13544         (__nss_configure_lookup): Use __nss_database_custom only if
13545         USE_NSCD is defined.
13546         * nss/nsswitch.h (__nss_database_custom): Declare only if
13547         USE_NSCD is defined.  Add attribute_hidden.
13548         (__nss_setent): Add attribute_hidden.
13549         (__nss_endent): Likewise.
13550         (__nss_getent_r): Likewise.
13551         (__nss_getent): Likewise.
13552         (DEFINE_DATABASE): Declare __nss_##arg##_database.
13554 2017-08-20  H.J. Lu  <hongjiu.lu@intel.com>
13556         [BZ #18822]
13557         * sysdeps/unix/sysv/linux/i386/glob64.c (__old_glob64): Add
13558         libc_hidden_proto and libc_hidden_def.
13560 2017-08-20  H.J. Lu  <hongjiu.lu@intel.com>
13562         [BZ #18822]
13563         * sysdeps/unix/sysv/linux/i386/olddirent.h (__old_readdir64):
13564         Add libc_hidden_proto.
13565         * sysdeps/unix/sysv/linux/i386/readdir64.c (__old_readdir64):
13566         Add libc_hidden_def.
13568 2017-08-20  H.J. Lu  <hongjiu.lu@intel.com>
13570         [BZ #21974]
13571         * gmon/Makefile (routines): Remove bb_init_func and
13572         bb_exit_func.
13573         (elide-routines.os): Removed.
13574         * gmon/bb_exit_func.c: Likewise.
13575         * gmon/bb_init_func.c: Likewise.
13576         * include/sys/gmon.h (__bb): Likewise.
13577         (__bb_init_func): Likewise.
13578         (__bb_exit_func): Likewise.
13579         * sysdeps/alpha/bb_init_func.S: Likewise.
13581 2017-08-20  H.J. Lu  <hongjiu.lu@intel.com>
13583         * debug/longjmp_chk.c (____longjmp_chk): Moved to ...
13584         * include/setjmp.h (____longjmp_chk): Here.  Add
13585         attribute_hidden.
13587 2017-08-19  H.J. Lu  <hongjiu.lu@intel.com>
13589         [BZ #18822]
13590         * sysdeps/x86_64/multiarch/strcspn-c.c (STRCSPN_SSE2): Add
13591         attribute_hidden.
13592         (__strspn_sse2): Likewise.
13594 2017-08-18  Adhemerval Zanella  <adhemerval.zanella@linaro.org>
13596         * sysdeps/generic/not-cancel.h (close_not_cancel): Remove macro.
13597         (close_not_cancel_no_status): Likewise.
13598         (__close_nocancel): New macro.
13599         (__close_nocancel_nostatus): Likewise.
13600         * sysdeps/unix/sysv/linux/not-cancel.h (__close_nocancel): Remove
13601         macro.
13602         (close_not_cancel): Likewise.
13603         (close_not_cancel_no_status): Likewise.
13604         (__close_nocancel): New prototype.
13605         (__close_nocancel_nostatus): New function.
13606         * sysdeps/unix/sysv/linux/close.c (__close_nocancel): New function.
13607         * catgets/open_catalog.c (__open_catalog): Replace
13608         close_not_cancel{_no_status) with __close_nocancel{_nostatus}.
13609         * gmon/gmon.c (write_gmon): Likewise.
13610         * iconv/gconv_cache.c (__gconv_load_cache): Likewise.
13611         * intl/loadmsgcat.c (close): Likewise.
13612         * io/ftw.c (open_dir_stream): Likewise.
13613         (ftw_startup): Likewise.
13614         * libio/fileops.c (_IO_file_open): Likewise.
13615         (_IO_file_close_mmap): Likewise.
13616         (_IO_file_close): Likewise.
13617         * libio/iopopen.c (_IO_dup2): Likewise.
13618         * locale/loadarchive.c (_nl_load_locale_from_archive): Likewise.
13619         * locale/loadlocale.c (_nl_load_locale): Likewise.
13620         * login/utmp_file.c (pututline_file): Likewise.
13621         (endutent_file): Likewise.
13622         * misc/daemon.c (daemon): Likewise.
13623         * nscd/nscd_getai.c (__nscd_getai): Likewise.
13624         * nscd/nscd_getgr_r.c (nscd_getgr_r): Likewise.
13625         * nscd/nscd_gethst_r.c (nscd_gethst_r): Likewise.
13626         * nscd/nscd_getpw_r.c (nscd_getpw_r): Likewise.
13627         * nscd/nscd_getserv_r.c (nscd_getserv_r): Likewise.
13628         * nscd/nscd_helper.c (open_socket): Likewise.
13629         (__nscd_open_socket): Likewise.
13630         * nscd/nscd_initgroups.c (__nscd_getgrouplist): Likewise.
13631         * nscd/nscd_netgroup.c (__nscd_setnetgrent): Likewise.
13632         (__nscd_innetgr): Likewise.
13633         * nss/nss_db/db-open.c (internal_setent): Likewise.
13634         * resolv/res-close.c (__res_iclose): Likewise.
13635         * sunrpc/pm_getmaps.c (pmap_getmaps): Likewise.
13636         * sysdeps/posix/closedir.c (__closedir): Likewise.
13637         * sysdeps/posix/getaddrinfo.c (getaddrinfo): Likewise.
13638         * sysdeps/posix/getcwd.c (__getcwd): Likewise.
13639         * sysdeps/posix/opendir.c (tryopen_o_directory): Likewise.
13640         (opendir_tail): Likewise.
13641         * sysdeps/posix/spawni.c (__spawni_child): Likewise.
13642         * sysdeps/unix/sysv/linux/check_native.c (__check_native): Likewise.
13643         * sysdeps/unix/sysv/linux/check_pf.c (__check_pf): Likewise.
13644         * sysdeps/unix/sysv/linux/fips-private.h (fips_enabled_p): Likewise.
13645         * sysdeps/unix/sysv/linux/gethostid.c (sethostid): Likewise.
13646         (gethostid): Likewise.
13647         * sysdeps/unix/sysv/linux/getloadavg.c (getloadavg): Likewise.
13648         * sysdeps/unix/sysv/linux/getlogin_r.c (__getlogin_r_loginuid):
13649         Likewise.
13650         * sysdeps/unix/sysv/linux/getsysstats.c (__get_nprocs): Likewise.
13651         * sysdeps/unix/sysv/linux/grantpt.c (close_all_fds): Likewise.
13652         * sysdeps/unix/sysv/linux/i386/smp.h (is_smp_system): Likewise.
13653         * sysdeps/unix/sysv/linux/ia64/has_cpuclock.c (has_cpuclock):
13654         Likewise.
13655         * sysdeps/unix/sysv/linux/if_index.c (__if_nametoindex): Likewise.
13656         * sysdeps/unix/sysv/linux/libc_fatal.c (backtrace_and_maps): Likewise.
13657         * sysdeps/unix/sysv/linux/malloc-sysdep.h (check_may_shrink_heap):
13658         Likewise.
13659         * sysdeps/unix/sysv/linux/mq_notify.c (init_mq_netlink): Likewise.
13660         * sysdeps/unix/sysv/linux/pthread_getname.c (pthread_getname_np):
13661         Likewise.
13662         * sysdeps/unix/sysv/linux/pthread_setname.c (pthread_setname_np):
13663         Likewise.
13664         * sysdeps/unix/sysv/linux/spawni.c (__spawni_child): Likewise.
13665         * sysdeps/unix/sysv/linux/sysconf.c (__sysconf): Likewise.
13666         * sysdeps/unix/sysv/linux/Versions (libc) [GLIBC_PRIVATE]: Add
13667         __close_nocancel.
13669         * sysdeps/generic/not-cancel.h (openat_not_cancel): Remove macro.
13670         (openat_not_cancel_3): Likewise.
13671         (openat64_not_cancel_3): Likewise).
13672         (openat_not_cancel_3): Likewise).
13673         * sysdeps/unix/sysv/linux/not-cancel.h (openat_not_cancel): Remove
13674         macro.
13675         (openat_not_cancel_3): Likewise.
13676         (openat64_not_cancel): Likewise.
13677         (openat64_not_cancel_3): Likewise.
13678         * sysdeps/unix/sysv/linux/openat.c (__openat_nocancel): New function.
13679         * sysdeps/unix/sysv/linux/openat64.c (__openat64_nocancel): Likewise.
13680         * io/ftw.c (open_dir_stream): Replace openat{64}_not_cancel{_3} with
13681         __open{64}_nocancel.
13682         * sysdeps/mach/hurd/opendir.c (__opendirat): Likewise.
13683         * sysdeps/posix/getcwd.c (__getcwd): Likewise.
13684         * sysdeps/posix/opendir.c (__opendirat): Likewise.
13686 2017-08-18  H.J. Lu  <hongjiu.lu@intel.com>
13688         [BZ #18822]
13689         * include/argz.h (__argz_create_sep): New function prototype.
13690         (__argz_append): Likewise.
13691         (__argz_add): Likewise.
13692         (__argz_add_sep): Likewise.
13693         (__argz_delete): Likewise.
13694         (__argz_insert): Likewise.
13695         (__argz_replace): Likewise.
13696         * string/argz.h (__argz_create_sep): Removed.
13697         (__argz_append): Likewise.
13698         (__argz_add): Likewise.
13699         (__argz_add_sep): Likewise.
13700         (__argz_delete): Likewise.
13701         (__argz_insert): Likewise.
13702         (__argz_replace): Likewise.
13704 2017-08-18  H.J. Lu  <hongjiu.lu@intel.com>
13706         * elf/elf.h (NT_GNU_PROPERTY_TYPE_0): New.
13707         (NOTE_GNU_PROPERTY_SECTION_NAME): Likewise.
13708         (GNU_PROPERTY_STACK_SIZE): Likewie.
13709         (GNU_PROPERTY_NO_COPY_ON_PROTECTED): Likewie.
13710         (GNU_PROPERTY_LOPROC): Likewise.
13711         (GNU_PROPERTY_HIPROC): Likewise.
13712         (GNU_PROPERTY_LOUSER): Likewise.
13713         (GNU_PROPERTY_HIUSER): Likewise.
13714         (GNU_PROPERTY_X86_ISA_1_USED): Likwise.
13715         (GNU_PROPERTY_X86_ISA_1_NEEDED): Likwise.
13716         (GNU_PROPERTY_X86_FEATURE_1_AND): Likwise.
13717         (GNU_PROPERTY_X86_ISA_1_486): Likwise.
13718         (GNU_PROPERTY_X86_ISA_1_586): Likwise.
13719         (GNU_PROPERTY_X86_ISA_1_686): Likwise.
13720         (GNU_PROPERTY_X86_ISA_1_SSE): Likwise.
13721         (GNU_PROPERTY_X86_ISA_1_SSE2): Likwise.
13722         (GNU_PROPERTY_X86_ISA_1_SSE3): Likwise.
13723         (GNU_PROPERTY_X86_ISA_1_SSSE3): Likwise.
13724         (GNU_PROPERTY_X86_ISA_1_SSE4_1): Likwise.
13725         (GNU_PROPERTY_X86_ISA_1_SSE4_2): Likwise.
13726         (GNU_PROPERTY_X86_ISA_1_AVX): Likwise.
13727         (GNU_PROPERTY_X86_ISA_1_AVX2): Likwise.
13728         (GNU_PROPERTY_X86_ISA_1_AVX512F): Likwise.
13729         (GNU_PROPERTY_X86_ISA_1_AVX512CD): Likwise.
13730         (GNU_PROPERTY_X86_ISA_1_AVX512ER): Likwise.
13731         (GNU_PROPERTY_X86_ISA_1_AVX512PF): Likwise.
13732         (GNU_PROPERTY_X86_ISA_1_AVX512VL): Likwise.
13733         (GNU_PROPERTY_X86_ISA_1_AVX512DQ): Likwise.
13734         (GNU_PROPERTY_X86_ISA_1_AVX512BW): Likwise.
13735         (GNU_PROPERTY_X86_FEATURE_1_IBT): Likwise.
13736         (GNU_PROPERTY_X86_FEATURE_1_SHSTK): Likwise.
13738 2017-08-18  Gabriel F. T. Gomes  <gftg@linux.vnet.ibm.com>
13740         * misc/sys/cdefs.h (__HAVE_GENERIC_SELECTION): Define to 0, if
13741         in C++ mode.
13743 2017-08-18  Gabriel F. T. Gomes  <gftg@linux.vnet.ibm.com>
13745         [BZ #21930]
13746         * math/math.h (isinf): Check if in C or C++ mode before using
13747         __builtin_types_compatible_p, since this is a C mode feature.
13749 2017-08-18  Adhemerval Zanella  <adhemerval.zanella@linaro.org>
13751         * sysdeps/generic/not-cancel.h (write_not_cancel): Remove macro.
13752         (__write_nocancel): New macro.
13753         * sysdeps/unix/sysv/linux/not-cancel.h (__write_nocancel):
13754         Rewrite as a function prototype.
13755         (write_not_cancel): Remove macro.
13756         * sysdeps/unix/sysv/linux/write.c (__write_nocancel): New function.
13757         * gmon/gmon.c (ERR): Replace write_not_cancel with __write_nocancel.
13758         (write_gmon): Likewise.
13759         * libio/fileops.c (_IO_new_file_write): Likewise.
13760         * login/utmp_file.c (pututline_file): Likewise.
13761         (updwtmp_file): Likewise.
13762         * stdio-common/psiginfo.c (psiginfo): Likewise.
13763         * sysdeps/posix/spawni.c (__spawni_child): Likewise.
13764         * sysdeps/unix/sysv/linux/gethostid.c (sethostid): Likewise.
13765         * sysdeps/unix/sysv/linux/libc_fatal.c (backtrace_and_maps):
13766         Likewise.
13767         * sysdeps/unix/sysv/linux/pthread_setname.c (pthread_setname_np):
13768         Likewise.
13770         * sysdeps/generic/not-cancel.h (read_not_cancel): Remove macro.
13771         (__read_nocancel): New macro.
13772         * sysdeps/unix/sysv/linux/Versions (libc) [GLIBC_PRIVATE]: Add
13773         __read_nocancel.
13774         * sysdeps/unix/sysv/linux/not-cancel.h (__read_nocancel): Remove
13775         macro.
13776         (__read_nocancel): New prototype.
13777         * sysdeps/unix/sysv/linux/read.c (__read_nocancel): New function.
13778         * catgets/open_catalog.c (__open_catalog): Replace read_not_cancel
13779         with __read_nocancel.
13780         * intl/loadmsgcat.c (read): Likewise.
13781         * libio/fileops.c (_IO_file_read): Likewise.
13782         * locale/loadlocale.c (_nl_load_locale): Likewise.
13783         * login/utmp_file.c (getutent_r_file): Likewise.
13784         (internal_getut_r): Likewise.
13785         (getutline_r_file): Likewise.
13786         * sysdeps/unix/sysv/linux/fips-private.h (fips_enable_p): Likewise.
13787         * sysdeps/unix/sysv/linux/gethostid.c (gethostid): Likewise.
13788         * sysdeps/unix/sysv/linux/getloadavg.c (getloadavg): Likewise.
13789         * sysdeps/unix/sysv/linux/getlogin_r.c (__getlogin_r_loginuid):
13790         Likewise.
13791         * sysdeps/unix/sysv/linux/getsysstats.c (next_line): Likewise.
13792         * sysdeps/unix/sysv/linux/i386/smp.h (is_smp_system): Likewise.
13793         * sysdeps/unix/sysv/linux/ia64/has_cpuclock.c (has_cpuclock):
13794         Likewise.
13795         * sysdeps/unix/sysv/linux/libc_fatal.c (backtrace_and_maps):
13796         Likewise.
13797         * sysdeps/unix/sysv/linux/malloc-sysdep.h (check_may_shrink_heap):
13798         Likewise.
13799         * sysdeps/unix/sysv/linux/pthread_getname.c (pthread_getname_np):
13800         Likewise.
13801         * sysdeps/unix/sysv/linux/sysconf.c (__sysconf): Likewise.
13803 2017-08-18  H.J. Lu  <hongjiu.lu@intel.com>
13805         [BZ #21966]
13806         * sysdeps/x86_64/fpu/multiarch/ifunc-mathvec-avx2.h
13807         (IFUNC_SELECTOR): Don't use the AVX2 version if FMA isn't
13808         usable.
13810 2017-08-17  DJ Delorie  <dj@redhat.com>
13812         * bug17079.c: Update to new test harness.
13813         * test-digits-dots.c: Likewise.
13814         * test-netdb.c: Likewise.
13815         * tst-field.c: Likewise.
13816         * tst-nss-getpwent.c: Likewise.
13817         * tst-nss-static.c: Likewise.
13818         * tst-nss-test1.c: Likewise.
13819         * tst-nss-test2.c: Likewise.
13820         * tst-nss-test3.c: Likewise.
13821         * tst-nss-test4.c: Likewise.
13822         * tst-nss-test5.c: Likewise.
13824 2017-08-17  Adhemerval Zanella  <adhemerval.zanella@linaro.org>
13826         * sysdeps/generic/not-cancel.h (open_not_cancel): Remove macro.
13827         (open_not_cancel_2): Likewise.
13828         (open_nocancel): New macro.
13829         (open64_nocancel): Likewise.
13830         * sysdeps/unix/sysv/linux/not-cancel.h (open_not_cancel): Remove macro.
13831         (open_not_cancel_2): Likewise.
13832         (__open_nocancel): New prototype.
13833         (__open64_nocancel): Likewise.
13834         * sysdeps/unix/sysv/linux/Versions (libc) [GLIBC_PRIVATE]: Add
13835         __open_nocancel.
13836         * sysdeps/unix/sysv/linux/open.c (__open_nocancel): New function.
13837         * sysdeps/unix/sysv/linux/open64.c (__open64_nocancel): Likewise.
13838         * catgets/open_catalog.c (__open_catalog): Replace open_not_cancel{_2}
13839         with __open_nocancel.
13840         * csu/check_fds.c (check_one_fd): Likewise.
13841         * gmon/gmon.c (write_gmon): Likewise.
13842         * iconv/gconv_cache.c (__gconv_load_cached): Likewise.
13843         * intl/loadmsgcat.c (open): Likewise.
13844         * libio/fileops.c (_IO_file_open): Likewise.
13845         * locale/loadarchive.c (_nl_load_locale_from_archive): Likewise.
13846         * locale/loadlocale.c (_nl_load_locale): Likewise.
13847         * login/utmp_file.c (setutent_file): Likewise.
13848         * misc/daemon.c (daemon): Likewise.
13849         * nss/nss_db/db-open.c (internal_setent): Likewise.
13850         * sysdeps/mach/hurd/opendir.c (__opendirat): Likewise.
13851         * sysdeps/posix/libc_fatal.c (__libc_message): Likewise.
13852         * sysdeps/posix/opendir.c (tryopen_o_directory): Likewise.
13853         (__opendir): Likewise.
13854         * sysdeps/posix/spawni.c (__spawni_child): Likewise.
13855         * sysdeps/unix/sysv/linux/fips-private.h (fips_enable_p): Likewise.
13856         * sysdeps/unix/sysv/linux/gethostid.c (sethostid): Likewise.
13857         (gethostid): Likewise.
13858         * sysdeps/unix/sysv/linux/getloadavg.c (getloadavg): Likewise.
13859         * sysdeps/unix/sysv/linux/getlogin_r.c (__getlogin_r_loginuid):
13860         Likewise.
13861         * sysdeps/unix/sysv/linux/getsysstats.c (__get_nprocs): Likewise.
13862         * sysdeps/unix/sysv/linux/grantpt.c (__close_all_fds): Likewise.
13863         * sysdeps/unix/sysv/linux/i386/smp.h (is_smp_system): Likewise.
13864         * sysdeps/unix/sysv/linux/ia64/has_cpuclock.c (has_cpuclock):
13865         Likewise.
13866         * sysdeps/unix/sysv/linux/libc_fatal.c (backtrace_and_maps):
13867         Likewise.
13868         * sysdeps/unix/sysv/linux/malloc-sysdep.h (check_may_shrink_heap):
13869         Likewise.
13870         * sysdeps/unix/sysv/linux/powerpc/get_clockfreq.c (__get_clockfreq):
13871         Likewise.
13872         * sysdeps/unix/sysv/linux/pthread_getname.c (pthread_getname_np):
13873         Likewise.
13874         * sysdeps/unix/sysv/linux/pthread_setname.c (pthread_setname_np):
13875         Likewise.
13876         * sysdeps/unix/sysv/linux/spawni.c (__spawni_child): Likewise.
13877         * sysdeps/unix/sysv/linux/sysconf.c (__sysconf): Likewise.
13879 2017-08-17  Wilco Dijkstra  <wdijkstr@arm.com>
13881         * benchtests/bench-skeleton.c (main): Add support for
13882         latency benchmarking.
13883         * benchtests/scripts/bench.py: Add support for latency benchmarking.
13885 2017-08-17  H.J. Lu  <hongjiu.lu@intel.com>
13887         * Makeconfig (+link-pie-before-libc): Add CRT-* hook to override
13888         the startup object.
13890 2017-08-17  Florian Weimer  <fweimer@redhat.com>
13892         * include/sys/socket.h (__opensock): Remove internal_function.
13893         * socket/opensock.c (__opensock): Likewise.
13894         * sysdeps/unix/sysv/linux/opensock.c (__opensock): Likewise.
13896 2017-08-16  Joseph Myers  <joseph@codesourcery.com>
13898         [BZ #21944]
13899         * signal/bits/types/__sigval_t.h: New file.
13900         * signal/Makefile (headers): Add bits/types/__sigval_t.h.
13901         * signal/bits/types/sigval_t.h: Include <bits/types/__sigval_t.h>
13902         and define sigval_t using __sigval_t.
13903         * include/bits/types/__sigval_t.h: New file.
13904         * bits/types/sigevent_t.h: Include <bits/types/__sigval_t.h>
13905         instead of <bits/types/__sigval_t.h>.
13906         (struct sigevent): Use __sigval_t instead of sigval_t.
13907         * bits/types/siginfo_t.h: Include <bits/types/__sigval_t.h>
13908         instead of <bits/types/__sigval_t.h>.
13909         (siginfo_t): Use __sigval_t instead of sigval_t.
13910         * sysdeps/unix/sysv/linux/bits/types/sigevent_t.h: Include
13911         <bits/types/__sigval_t.h> instead of <bits/types/__sigval_t.h>.
13912         (struct sigevent): Use __sigval_t instead of sigval_t.
13913         * sysdeps/unix/sysv/linux/bits/types/siginfo_t.h: Include
13914         <bits/types/__sigval_t.h> instead of <bits/types/__sigval_t.h>.
13915         (siginfo_t): Use __sigval_t instead of sigval_t.
13916         * signal/signal.h [__USE_MISC]: Include <bits/types/sigval_t.h>.
13918 2017-08-16  H.J. Lu  <hongjiu.lu@intel.com>
13920         * NEWS: Remove "[Add new features here]" for 2.27.
13922 2017-08-16  Joseph Myers  <joseph@codesourcery.com>
13924         * sysdeps/unix/sysv/linux/sh/localplt.data: Allow abort in
13925         libc.so.
13927 2017-08-16  H.J. Lu  <hongjiu.lu@intel.com>
13929         * NEWS: Mention x86-64 FMA optimization.
13931 2017-08-16  H.J. Lu  <hongjiu.lu@intel.com>
13933         [BZ #21912]
13934         * sysdeps/x86_64/fpu/multiarch/Makefile (libm-sysdep_routines):
13935         Add e_expf-fma.
13936         * sysdeps/x86_64/fpu/multiarch/e_expf-fma.S: New file.
13937         * sysdeps/x86_64/fpu/multiarch/e_expf.c: Likewise.
13938         * sysdeps/x86_64/fpu/multiarch/ifunc-fma.h: Likewise.
13940 2017-08-16  Andreas Schwab  <schwab@suse.de>
13942         [BZ #16750]
13943         CVE-2009-5064
13944         * elf/ldd.bash.in: Never run file directly.
13946 2017-08-15  H.J. Lu  <hongjiu.lu@intel.com>
13948         [BZ #21955]
13949         * sysdeps/x86_64/fpu/e_expf.S (L(SP_RANGE)): Aligned to 8 bytes.
13950         (L(SP_INF_0)): Likewise.
13952 2017-08-15  Florian Weimer  <fweimer@redhat.com>
13954         * gmon/Makefile (tests-special): Add tst-gmon-prof only if
13955         run-built-tests.
13957 2017-08-15  Florian Weimer  <fweimer@redhat.com>
13959         Remove BROKEN_THREAD_SIGNALS support for LinuxThreads.
13960         * sysdeps/pthread/aio_misc.c (__aio_enqueue_request): Remove
13961         BROKEN_THREAD_SIGNALS code.
13962         * sysdeps/ppthread/aio_misc.h (struct waitlist, struct
13963         request_list): Remove caller_pid member used for
13964         BROKEN_THREAD_SIGNALS.
13965         [BROKEN_THREAD_SIGNALS] (__aio_notify_only): Remove declaration.
13966         * sysdeps/pthread/aio_notify.c (__aio_notify_only, __aio_notify):
13967         Remove BROKEN_THREAD_SIGNALS support.
13968         * sysdeps/pthread/aio_suspend.c (aio_suspend): Likewise.
13969         * sysdeps/pthread/lio_listio.c (lio_listio_internal): Likewise.
13971 2017-08-15  Florian Weimer  <fweimer@redhat.com>
13973         * gmon/Makefile (tests): Add tst-gmon.
13974         (CFLAGS-tst-gmon.c, LDFLAGS-tst-gmon, CRT-tst-gmon, tst-gmon-ENV):
13975         Set.
13976         (tests-special): Add tst-gmon-prof.out.
13977         (tst-gmon.out): Depend on clean-tst-gmon-data.
13978         (clean-tst-gmon-data, tst-gmon-gprof.out): New targets.
13979         * gmon/tst-gmon.c, gmon/tst-gmon-gprof.sh: New files.
13980         * Makeconfig (+link-before-libc): Add CRT-* hook to override the
13981         startup object.
13982         * aclocal.m4 (GPROF): Set and substitute.
13983         * config.amke.in (GPROF): Set.
13984         * configure: Regenerate.
13986 2017-08-15  Gustavo Romero  <gromero@linux.vnet.ibm.com>
13988         * elf/elf.h A (NT_PPC_TAR): New macro.
13989         (NT_PPC_PPR): Likewise.
13990         (NT_PPC_DSCR): Likewise.
13991         (NT_PPC_EBB): Likewise.
13992         (NT_PPC_PMU): Likewise.
13993         (NT_PPC_TM_CGPR): Likewise.
13994         (NT_PPC_TM_CFPR): Likewise.
13995         (NT_PPC_TM_CVMX): Likewise.
13996         (NT_PPC_TM_CVSX): Likewise.
13997         (NT_PPC_TM_SPR): Likewise.
13998         (NT_PPC_TM_CTAR): Likewise.
13999         (NT_PPC_TM_CPPR): Likewise.
14000         (NT_PPC_TM_CDSCR): Likewise.
14002 2017-08-15  Florian Weimer  <fweimer@redhat.com>
14004         * sysdeps/i386/machine-gmon.h (mcount_internal): Declare with
14005         regparm (2) instead of internal_function.
14006         (_MCOUNT_DECL): Adjust.
14008 2017-08-15  Stefan Liebler  <stli@linux.vnet.ibm.com>
14010         * sysdeps/s390/dl-procinfo.c (_dl_s390_cap_flags): Add z14.
14011         * sysdeps/s390/dl-procinfo.h (_DL_PLATFORMS_COUNT): Increased.
14013 2017-08-14  Joseph Myers  <joseph@codesourcery.com>
14015         * conform/data/sys/wait.h-data (si_value): Do not expect for
14016         XPG42.
14018 2017-08-14  Florian Weimer  <fweimer@redhat.com>
14020         [BZ #21962]
14021         NSS: Create stubs for accidentally exported lookup functions.
14022         * grp/initgroups.c (__nss_group_lookup, __nss_lookup_function):
14023         Remove declaration.
14024         * inet/ether_hton.c (__nss_ethers_lookup): Likewise.
14025         (ether_hostton): Call __nss_ethers_lookup2 instead.
14026         * inet/ether_ntoh.c (__nss_ethers_lookup): Remove declaration.
14027         (ether_ntohost): Call __nss_ethers_lookup2 instead.
14028         * inet/getnetgrent_r.c (__nss_netgroup_lookup): Remove declaration.
14029         (setup): Call __nss_netgroup_lookup2 instead.
14030         * nss/Makefile (routines): Add compat-lookup.
14031         * nss/Versions (GLIBC_2.27): Add symbol version.
14032         * nss/XXX-lookup (DB_LOOKUP_FCT): Remove declaration.  Now provided by <nsswitch.h>.
14033         (DB_COMPAT_FCT): Remove.
14034         * nss/compat-lookup.c: New file.
14035         * nss/nsswitch.h: Generate __nss_*_lookup2 function prototypes
14036         from databases.def.
14037         * nss/service-lookup.c (NO_COMPAT): Remove definition.
14038         * sunrpc/netname.c (__nss_publickey_lookup): Remove declaration.
14039         (netname2user): Call __nss_publickey_lookup2 instead.
14040         * sunrpc/publickey.c (__nss_publickey_lookup): Remove declaration.
14041         (getpublickey, getsecretkey): Call __nss_publickey_lookup2
14042         instead.
14044 2017-08-14  Adhemerval Zanella  <adhemerval.zanella@linaro.org>
14045             Sergei Trofimovich  <slyfox@inbox.ru>
14047         [BZ #21908]
14048         * sysdeps/unix/sysv/linux/m68k/mmap_internal.h (MMAP2_PAGE_SHIFT):
14049         Rename to MMAP2_PAGE_UNIT.
14050         * sysdeps/unix/sysv/linux/mmap.c: Include mmap_internal iff
14051         __OFF_T_MATCHES_OFF64_T is not defined.
14052         * sysdeps/unix/sysv/linux/mmap_internal.h (page_unit): Declare as
14053         uint64_t.
14054         (MMAP2_PAGE_UNIT) [MMAP2_PAGE_UNIT == -1]: Redefine to page_unit.
14055         (page_unit) [MMAP2_PAGE_UNIT != -1]: Remove definition.
14057 2017-08-14  Florian Weimer  <fweimer@redhat.com>
14059         i386: Do not set internal_function.
14060         * config.h.in (USE_REGPARMS, internal_function): Remove.
14061         * sysdeps/i386/configure.ac (USE_REGPARMS): Likewise.
14062         * sysdeps/i386/configure (USE_REGPARMS): Likewise.
14064 2017-08-14  Florian Weimer  <fweimer@redhat.com>
14066         * elf/dl-init.c (_dl_init): Remove internal_function.
14067         * sysdeps/generic/ldsodefs.h (_dl_init): Likewise.
14068         * sysdeps/i386/dl-machine.h (RTLD_START): Adjust call to _dl_init.
14070 2017-08-14  Florian Weimer  <fweimer@redhat.com>
14072         * elf/rtld.c (_dl_start): Remove internal_function.
14073         * sysdeps/i386/dl-machine.h (RTLD_START): Adjust call to
14074         _dl_start.
14076 2017-08-14  Florian Weimer  <fweimer@redhat.com>
14078         * elf/dl-fini.c (_dl_fini): Remove internal_function
14079         * sysdeps/generic/ldsodefs.h (_dl_fini): Likewise.
14081 2017-08-14  H.J. Lu  <hongjiu.lu@intel.com>
14083         * sysdeps/x86/cpu-features.h (bit_cpu_BIT): New.
14084         (bit_cpu_SHSTK): Likewise.
14085         (index_cpu_IBT): Likewise.
14086         (index_cpu_SHSTK): Likewise.
14087         (reg_IBT): Likewise.
14088         (reg_SHSTK): Likewise.
14089         * sysdeps/x86/cpu-tunables.c (TUNABLE_CALLBACK (set_hwcaps)):
14090         Handle index_cpu_IBT and index_cpu_SHSTK.
14092 2017-08-14  Mike FABIAN  <mfabian@redhat.com>
14094         [BZ #19982]
14095         * po/fr.po: Fix spelling mistake.
14097 2017-08-13  Florian Weimer  <fweimer@redhat.com>
14099         * elf/dl-addr.c (_dl_addr): Remove internal_function.
14100         * elf/dl-error-skeleton.c (_dl_signal_error, _dl_signal_cerror)
14101         (_dl_catch_error, _dl_receive_error): Likewise.
14102         * elf/dl-open.c (_dl_find_dso_for_object): Likewise.
14103         * elf/dl-tls.c (_dl_allocate_tls_init, _dl_allocate_tls)
14104         (_dl_deallocate_tls): Likewise.
14105         * include/dlfcn.h (_dl_addr): Likewise.
14106         * sysdeps/generic/ldsodefs.h (_dl_signal_error, _dl_signal_cerror)
14107         (_dl_catch_error, _dl_receive_error, _dl_find_dso_for_object)
14108         (_dl_allocate_tls_init, _dl_allocate_tls, _dl_deallocate_tls):
14109         Likewise.
14111 2017-08-13  Florian Weimer  <fweimer@redhat.com>
14113         * include/stdlib.h: (__strtof_nan, __strtod_nan, __strtold_nan)
14114         (__wcstof_nan, __wcstod_nan, __wcstold_nan): Remove
14115         internal_function.
14116         * stdlib/sttod_nan_main.c (STRTOD_NAN): Likewise.
14118 2017-08-13  Florian Weimer  <fweimer@redhat.com>
14120         * elf/dl-support.c (_dl_make_stack_executable_hook): Remove
14121         internal_function.
14122         * nptl/allocatestack.c (__make_stacks_executable): Likewise.
14123         * nptl/pthreadP.h (__make_stacks_executable): Likewise.
14124         * sysdeps/generic/ldsodefs.h (_rtld_global): Remove
14125         internal_function from _dl_make_stack_executable_hook member.
14126         (_dl_make_stack_executable): Remove internal_function.
14127         * sysdeps/mach/hurd/dl-execstack.c (_dl_make_stack_executable):
14128         Likewise.
14129         * sysdeps/unix/sysv/linux/dl-execstack.c
14130         (_dl_make_stack_executable): Likewise.
14132 2017-08-13  Florian Weimer  <fweimer@redhat.com>
14134         * sysdeps/unix/sysv/linux/netlinkaccess.h
14135         (__netlink_assert_response): Remove internal_function.
14136         * sysdeps/unix/sysv/linux/netlink_assert_response.c
14137         (__netlink_assert_response): Likewise.
14139 2017-08-13  Florian Weimer  <fweimer@redhat.com>
14141         * include/rpc/pmap_clnt.h (__libc_rpc_getport): Remove
14142         internal_function.
14143         * sunrpoc/pm_getport.c (__libc_rpc_getport): Likewise.
14145 2017-08-13  Florian Weimer  <fweimer@redhat.com>
14147         * grp/grp-merge.h (__copy_grp, __merge_grp): Remove
14148         internal_function.
14149         * grp/grp-merge.c (__copy_grp, __merge_grp): Likewise.
14150         * inet/netgroup.h (__internal_setnetgrent)
14151         (__internal_endnetgrent,__internal_getnetgrent_r): Likewise.
14152         * inet/getnetgrent_r.c (__internal_setnetgrent)
14153         (__internal_endnetgrent,__internal_getnetgrent_r): Likewise.
14154         * nss/XXX-lookup.c (DB_LOOKUP_FCT, DB_COMPAT_FCT): Likewise.
14155         * nss/getXXbyYY_r.c (DB_LOOKUP_FCT): Likewise.
14156         * nss/getXXent_r.c (DB_LOOKUP_FCT): Likewise.
14157         * nss/nsswitch.h (db_lookup_function): Likewise.
14159 2017-08-13  Florian Weimer  <fweimer@redhat.com>
14161         * debug/fortify_fail.c (__fortify_fail, __fortify_fail_abort):
14162         Remove internal_function.
14163         * include/stdio.h (__fortify_fail, __fortify_fail_abort): Likewise.
14164         * sysdeps/mach/hurd/i386/____longjmp_chk.S (CALL_FAIL): Pass
14165         message argument on the stack.
14166         * sysdeps/unix/sysv/linux/i386/____longjmp_chk.S (CALL_FAIL):
14167         Likeweise.
14169 2017-08-12  Mike FABIAN  <mfabian@redhat.com>
14171         Adapt test case data to the changes in the thousands
14172         separators.
14174         [BZ #20756]
14175         * localedata/tst-langinfo.sh: Adapt test case data.
14176         * stdlib/tst-strfmon_l.c: Likewise.
14177         * stdlib/tst-strtod4.c: Likewise.
14178         * stdlib/tst-strtod5i.c: Likewise.
14180 2017-08-11  Florian Weimer  <fweimer@redhat.com>
14182         [BZ #21242]
14183         * assert/assert.h [__GNUC__ && !__STRICT_ANSI__] (assert):
14184         Suppress pedantic warning resulting from statement expression.
14185         (__ASSERT_FUNCTION): Add missing __extension__.
14187 2017-08-11  Siddhesh Poyarekar  <siddhesh@sourceware.org>
14189         * benchtests/bench-memmove-large.c: Print output in JSON
14190         format.
14191         * benchtests/bench-memmove.c: Likewise.
14193         * benchtests/bench-memccpy.c (do_one_test): Remove checks.
14194         * benchtests/bench-memchr.c (do_one_test): Likewise.
14195         * benchtests/bench-memcpy-large.c (do_one_test): Likewise.
14196         * benchtests/bench-memcpy.c (do_one_test): Likewise.
14197         * benchtests/bench-memmove-large.c (do_one_test): Likewise.
14198         * benchtests/bench-memmove.c (do_one_test): Likewise.
14199         * benchtests/bench-memset-large.c (do_one_test): Likewise.
14200         * benchtests/bench-memset.c (do_one_test): Likewise.
14201         * benchtests/bench-string.h (test_init): Remove memsets.
14203 2017-08-10  Rical Jasan  <ricaljasan@pacific.net>
14205         * manual/lang.texi
14206         (Computing the Width of an Integer Data Type): Rename section to
14207         "Width of an Integer Type".  Remove inaccurate statement regarding
14208         lack of C language facilities for determining width of integer
14209         types, and reorder content to improve flow and context of
14210         discussion.
14212 2017-08-10  Rical Jasan  <ricaljasan@pacific.net>
14214         * lang.texi (va_copy): Change standard from ISO to C99.
14215         (__va_copy): Add standard and header annotation.
14216         Update description for clarity of origins and current use.
14218 2017-08-10  Gabriel F. T. Gomes  <gftg@linux.vnet.ibm.com>
14220         [BZ #21941]
14221         * sysdeps/powerpc/fpu/math_private.h (__ieee754_sqrtf128): Since
14222         xssqrtqp requires operands to be in Vector Registers
14223         (Altivec/VMX), replace the register constraint 'wq' with 'v'.
14224         * sysdeps/powerpc/powerpc64le/power9/fpu/e_sqrtf128.c
14225         (__ieee754_sqrtf128): Likewise.
14227 2017-08-10  Wilco Dijkstra  <wdijkstr@arm.com>
14229         * sysdeps/aarch64/memcmp.S (memcmp):
14230         Rewrite of optimized memcmp.
14232 2017-08-10  Florian Weimer  <fweimer@redhat.com>
14234         Introduce ld.so exceptions.
14235         * sysdeps/generic/ldsodefs.h (struct dl_exception): Define.
14236         (_dl_exception_create, _dl_exception_create_format)
14237         (_dl_exception_free, _dl_signal_exception, _dl_signal_cexception)
14238         (_dl_catch_exception): Declare.
14239         (_dl_catch_error): Update comment.
14240         * elf/dl-error-skeleton.c (struct catch): Replace objname,
14241         errstring, malloced members with exception member.
14242         (_dl_out_of_memory): Remove.
14243         (fatal_error): New function, extracted from _dl_signal_error.
14244         (_dl_signal_exception, _dl_signal_cexception): New functions.
14245         (_dl_signal_error): Call _dl_exception_create to allocate an
14246         exception object.
14247         (_dl_catch_exception): New function, based on _dl_catch_error.
14248         (_dl_catch_error): Implement using _dl_catch_exception.
14249         * elf/dl-exception.c: New file.
14250         * elf/Makefile (dl-routines): Add dl-exception.
14251         (elide-routines.os): Likewise.
14252         * elf/Version (ld/GLIBC_PRIVATE): Add _dl_exception_create,
14253         _dl_exception_create_format, _dl_exception_free.
14254         * elf/dl-deps.c (_dl_map_object_deps): Use _dl_catch_exception and
14255         _dl_signal_exception.
14256         * elf/dl-lookup.c (make_string): Remove.
14257         (_dl_lookup_symbol_x): Use _dl_exception_create_format,
14258         _dl_signal_cexception, _dl_exception_free.
14259         * elf/dl-open.c (_dl_open): Use _dl_catch_exception and
14260         _dl_signal_exception.
14261         * elf/dl-sym.c (do_sym): Likewise.
14262         * elf/dl-version.c (make_string): Remove.
14263         (match_symbol): Use _dl_exception_create_format,
14264         _dl_signal_cexception, _dl_exception_free.
14265         (_dl_check_map_versions): Likewise.
14266         * sysdeps/generic/localplt.data (ld.so): Add _dl_signal_exception,
14267         _dl_catch_exception.
14268         * sysdeps/unix/sysv/linux/aarch64/localplt.data (ld.so): Likewise.
14269         * sysdeps/unix/sysv/linux/alpha/localplt.data (ld.so): Likewise.
14270         * sysdeps/unix/sysv/linux/arm/localplt.data (ld.so): Likewise.
14271         * sysdeps/unix/sysv/linux/hppa/localplt.data (ld.so): Likewise.
14272         * sysdeps/unix/sysv/linux/i386/localplt.data (ld.so): Likewise.
14273         * sysdeps/unix/sysv/linux/ia64/localplt.data (ld.so): Likewise.
14274         * sysdeps/unix/sysv/linux/m68k/localplt.data (ld.so): Likewise.
14275         * sysdeps/unix/sysv/linux/microblaze/localplt.data (ld.so):
14276         Likewise.
14277         * sysdeps/unix/sysv/linux/nios2/localplt.data (ld.so): Likewise.
14278         * sysdeps/unix/sysv/linux/powerpc/powerpc32/fpu/localplt.data
14279         (ld.so): Likewise.
14280         * sysdeps/unix/sysv/linux/powerpc/powerpc32/nofpu/localplt.data
14281         (ld.so): Likewise.
14282         * sysdeps/unix/sysv/linux/powerpc/powerpc64/localplt.data (ld.so):
14283         Likewise.
14284         * sysdeps/unix/sysv/linux/s390/localplt.data (ld.so): Likewise.
14285         * sysdeps/unix/sysv/linux/sh/localplt.data (ld.so): Likewise.
14286         * sysdeps/unix/sysv/linux/sparc/sparc32/localplt.data (ld.so):
14287         Likewise.
14288         * sysdeps/unix/sysv/linux/sparc/sparc64/localplt.data (ld.so):
14289         Likewise.
14290         * sysdeps/x86_64/localplt.data (ld.so): Likewise.
14292 2017-08-10  Florian Weimer  <fweimer@redhat.com>
14294         * inet/net-internal.h (__inet6_scopeid_pton): Remove
14295         attribute_hidden, internal_function.
14296         * inet/inet6_scopeid_pton.c (__inet6_scopeid_pton): Remove
14297         internal_function.
14299 2017-08-10  Florian Weimer  <fweimer@redhat.com>
14301         * malloc/malloc.c (get_max_fast): Reimplement as an inline
14302         function which calls __builtin_unreachable.
14304 2017-08-10  Mike FABIAN  <mfabian@redhat.com>
14306         * stdlib/tst-strfmon_l.c: Fix test cases to agree with the changes in
14307         Indian monetary formatting
14308         * stdlib/Makefile: Adapt list of locales needed for the tst-strfmon_l.c
14309         test cases.
14311 2017-08-09  Dmitry V. Levin  <ldv@altlinux.org>
14313         * sysdeps/unix/sysv/linux/aarch64/sys/ptrace.h (enum __ptrace_request):
14314         Fix typo in comment.
14316         [BZ #21928]
14317         * sysdeps/unix/sysv/linux/sys/ptrace.h (enum __ptrace_flags,
14318         PTRACE_SEIZE_DEVEL): Remove.
14319         * sysdeps/unix/sysv/linux/aarch64/sys/ptrace.h: Likewise.
14320         * sysdeps/unix/sysv/linux/ia64/sys/ptrace.h: Likewise.
14321         * sysdeps/unix/sysv/linux/powerpc/sys/ptrace.h: Likewise.
14322         * sysdeps/unix/sysv/linux/s390/sys/ptrace.h: Likewise.
14323         * sysdeps/unix/sysv/linux/sparc/sys/ptrace.h: Likewise.
14325 2017-08-09  Joseph Myers  <joseph@codesourcery.com>
14327         * posix/bits/types.h (__qaddr_t): Remove.
14329         [BZ #21457]
14330         * sysdeps/arm/sys/ucontext.h (__ctx): Move undefine further down.
14331         (ucontext_t): Use __ctx with uc_flags.  Rename uc_filler to
14332         __glibc_reserved1.
14333         * sysdeps/generic/sys/ucontext.h (__ctx): New macro.
14334         (ucontext_t): Use __ctx with uc_flags.
14335         * sysdeps/i386/sys/ucontext.h (__ctx): Move undefine further down.
14336         (__ctxt): Likewise.
14337         (ucontext_t): Use __ctx with uc_flags.  Rename uc_filler to
14338         __glibc_reserved1.
14339         * sysdeps/m68k/sys/ucontext.h (__ctx): Move undefine further down.
14340         (ucontext_t): Use __ctx with uc_flags.  Rename uc_filler to
14341         __glibc_reserved1.
14342         * sysdeps/mips/sys/ucontext.h (__ctx): Move undefine further down.
14343         (ucontext_t): Use __ctx with uc_flags.  Rename uc_filler to
14344         __glibc_reserved1.
14345         * sysdeps/unix/sysv/linux/aarch64/sys/ucontext.h (__ctx): New
14346         macro.
14347         (ucontext_t): Use __ctx with uc_flags.
14348         * sysdeps/unix/sysv/linux/alpha/sys/ucontext.h (__ctx): New macro.
14349         (ucontext_t): Use __ctx with uc_flags.
14350         * sysdeps/unix/sysv/linux/arm/sys/ucontext.h (__ctx): New macro.
14351         (ucontext_t): Use __ctx with uc_flags and uc_regspace.
14352         * sysdeps/unix/sysv/linux/hppa/sys/ucontext.h (__ctx): New macro.
14353         (ucontext_t): Use __ctx with uc_flags.
14354         * sysdeps/unix/sysv/linux/m68k/sys/ucontext.h (__ctx): Move
14355         undefine further down.
14356         (ucontext_t): Use __ctx with uc_flags.  Rename uc_filler to
14357         __glibc_reserved1.
14358         * sysdeps/unix/sysv/linux/mips/sys/ucontext.h (__ctx): Move
14359         undefine further down.
14360         (ucontext_t): Use __ctx with uc_flags.
14361         * sysdeps/unix/sysv/linux/nios2/sys/ucontext.h (__ctx): Move
14362         undefine further down.
14363         (ucontext_t): Use __ctx with uc_flags.
14364         * sysdeps/unix/sysv/linux/powerpc/sys/ucontext.h (ucontext_t): Use
14365         __ctx with uc_flags, uc_regs_ptr, uc_regs and uc_reg_space.
14366         Rename uc_pad to __glibc_reserved1.
14367         * sysdeps/unix/sysv/linux/s390/sys/ucontext.h (__ctx): Move
14368         undefine further down.
14369         (ucontext_t): Use __ctx with uc_flags.
14370         * sysdeps/unix/sysv/linux/sh/sys/ucontext.h (__ctx): Move undefine
14371         further down.
14372         (ucontext_t): Use __ctx with uc_flags.
14373         * sysdeps/unix/sysv/linux/sparc/sys/ucontext.h (ucontext_t): Use
14374         __ctx with uc_flags.
14375         * sysdeps/unix/sysv/linux/tile/sys/ucontext.h (__ctx): New macro.
14376         (ucontext_t): Use __ctx with uc_flags.
14377         * sysdeps/unix/sysv/linux/x86/sys/ucontext.h (ucontext_t): Use
14378         __ctx with uc_flags.
14380 2017-08-09  Florian Weimer  <fweimer@redhat.com>
14382         [BZ #21932]
14383         * nss/getXXbyYY_r.c (REENTRANT_NAME): Call __resolv_context_put
14384         before early return.
14386 2017-08-09  Andreas Schwab  <schwab@suse.de>
14388         [BZ #21041]
14389         * sysdeps/unix/sysv/linux/s390/pt-longjmp.c: Update reference to
14390         renamed alias.
14392         [BZ #21041]
14393         * nptl/Makefile (tests) [$(build-shared) = yes]: Add
14394         tst-compat-forwarder.
14395         (modules-names): Add tst-compat-forwarder-mod.
14396         ($(objpfx)tst-compat-forwarder): Depend on
14397         $(objpfx)tst-compat-forwarder-mod.so.
14398         * nptl/tst-compat-forwarder.c: New file.
14399         * nptl/tst-compat-forwarder-mod.c: New file.
14401 2017-08-09  Siddhesh Poyarekar  <siddhesh@sourceware.org>
14403         * sysdeps/aarch64/multiarch/memcpy_falkor.S: Fix code style in
14404         comments.
14406         * manual/tunables.texi (Tunable glibc.tune.cpu): Add falkor.
14407         * sysdeps/aarch64/multiarch/Makefile (sysdep_routines): Add
14408         memcpy_falkor.
14409         * sysdeps/aarch64/multiarch/ifunc-impl-list.c (MAX_IFUNC):
14410         Bump.
14411         (__libc_ifunc_impl_list): Add __memcpy_falkor.
14412         * sysdeps/aarch64/multiarch/memcpy.c: Likewise.
14413         * sysdeps/aarch64/multiarch/memcpy_falkor.S: New file.
14414         * sysdeps/unix/sysv/linux/aarch64/cpu-features.c (cpu_list):
14415         Add falkor.
14416         * sysdeps/unix/sysv/linux/aarch64/cpu-features.h (IS_FALKOR):
14417         New macro.
14419 2017-08-08  Adhemerval Zanella  <adhemerval.zanella@linaro.org>
14421         [BZ #759]
14422         * manual/setjmp.texi (getcontex): Document uc_stack value
14423         compatibility differences.
14425 2017-08-08  Joseph Myers  <joseph@codesourcery.com>
14427         * malloc/mcheck.c (old_free_hook): Use void * instead of __ptr_t.
14428         (old_malloc_hook): Likewise.
14429         (old_memalign_hook): Likewise.
14430         (old_realloc_hook): Likewise.
14431         (struct hdr): Likewise.
14432         (flood): Likewise.
14433         (freehook): Likewise.
14434         (mallochook): Likewise.
14435         (memalignhook): Likewise.
14436         (reallochook): Likewise.
14437         (mprobe): Likewise.
14438         * malloc/mtrace.c (mallwatch): Likewise.
14439         (tr_old_free_hook): Likewise.
14440         (tr_old_malloc_hook): Likewise.
14441         (tr_old_realloc_hook): Likewise.
14442         (tr_old_memalign_hook): Likewise.
14443         (tr_where): Likewise.
14444         (lock_and_info): Likewise.
14445         (tr_freehook): Likewise.
14446         (tr_mallochook): Likewise.
14447         (tr_reallochook): Likewise.
14448         (tr_memalignhook): Likewise.
14449         * misc/err.h [!__GNUC_VA_LIST] (__gnuc_va_list): Likewise.
14450         * misc/mmap.c (__mmap): Likewise.
14451         * misc/mmap64.c (__mmap64): Likewise.
14452         * misc/mprotect.c (__mprotect): Likewise.
14453         * misc/msync.c (msync): Likewise.
14454         * misc/munmap.c (__munmap): Likewise.
14455         * posix/posix_madvise.c (posix_madvise): Likewise.
14456         * socket/send.c (__send): Likewise.
14457         * socket/sendto.c (__sendto): Likewise.
14458         * socket/setsockopt.c (__setsockopt): Likewise.
14459         * string/memcmp.c (__ptr_t): Remove macro.
14460         (MEMCMP): Use void * instead of ptr_t.
14461         * string/memrchr.c (__ptr_t): Remove macro.
14462         (__memrchr): Use void * instead of ptr_t.
14463         * sysdeps/mach/hurd/dl-sysdep.c (__mmap): Likewise.
14464         * sysdeps/mach/hurd/mmap.c (__mmap): Likewise.
14465         * sysdeps/mach/hurd/mmap64.c (__mmap64): Likewise.
14466         * sysdeps/mach/mprotect.c (__mprotect): Likewise.
14467         * sysdeps/mach/msync.c (msync): Likewise.
14468         * sysdeps/mach/munmap.c (__munmap): Likewise.
14469         * sysdeps/mips/bits/setjmp.h (struct __jmp_buf_internal_tag):
14470         Likewise.
14471         * sysdeps/posix/getcwd.c (__getcwd): Likewise.
14472         * sysdeps/powerpc/powerpc32/memset.S (memset): Likewise.
14473         * sysdeps/powerpc/powerpc32/power4/memcpy.S (memcpy): Likewise.
14474         * sysdeps/powerpc/powerpc32/power4/memset.S (memset): Likewise.
14475         * sysdeps/powerpc/powerpc32/power6/memcpy.S (memcpy): Likewise.
14476         * sysdeps/powerpc/powerpc32/power6/memset.S (memset): Likewise.
14477         * sysdeps/powerpc/powerpc32/power7/memcpy.S (memcpy): Likewise.
14478         * sysdeps/powerpc/powerpc32/power7/mempcpy.S (__mempcpy):
14479         Likewise.
14480         * sysdeps/powerpc/powerpc32/power7/memset.S (memset): Likewise.
14481         * sysdeps/powerpc/powerpc64/memcpy.S (memcpy): Likewise.
14482         * sysdeps/powerpc/powerpc64/memset.S (memset): Likewise.
14483         * sysdeps/powerpc/powerpc64/power4/memcpy.S (memcpy): Likewise.
14484         * sysdeps/powerpc/powerpc64/power4/memset.S (memset): Likewise.
14485         * sysdeps/powerpc/powerpc64/power6/memcpy.S (memcpy): Likewise.
14486         * sysdeps/powerpc/powerpc64/power6/memset.S (memset): Likewise.
14487         * sysdeps/powerpc/powerpc64/power7/memcpy.S (memcpy): Likewise.
14488         * sysdeps/powerpc/powerpc64/power7/mempcpy.S (__mempcpy):
14489         Likewise.
14490         * sysdeps/powerpc/powerpc64/power7/memset.S (memset): Likewise.
14491         * sysdeps/powerpc/powerpc64/power8/memset.S (memset): Likewise.
14492         * sysdeps/tile/memcmp.c (__ptr_t): Remove macro.
14493         (MEMCMP): Use void * instead of ptr_t.
14494         * sysdeps/unix/sysv/linux/alpha/oldglob.c (old_glob_t): Likewise.
14495         * sysdeps/unix/sysv/linux/mmap.c (__mmap): Likewise.
14497 2017-08-08  Florian Weimer  <fweimer@redhat.com>
14499         * sysdeps/posix/getaddrinfo.c (gaih_inet): Remove unreachable
14500         return statement.
14502 2017-08-08  H.J. Lu  <hongjiu.lu@intel.com>
14504         [BZ #21913]
14505         * csu/libc-tls.c: Include <startup.h> first.
14506         (__libc_setup_tls): Call _startup_fatal instead of __libc_fatal.
14507         * elf/dl-tunables.c: Include <startup.h> first.
14508         * include/libc-symbols.h (BUILD_PIE_DEFAULT): New.
14509         * sysdeps/generic/startup.h: New file.
14510         * sysdeps/unix/sysv/linux/i386/startup.h: Likewise.
14511         * sysdeps/unix/sysv/linux/i386/brk.c [BUILD_PIE_DEFAULT != 0]
14512         (I386_USE_SYSENTER): New.  Defined to 0.
14514 2017-08-08  Andreas Schwab  <schwab@suse.de>
14516         [BZ #21041]
14517         * nptl/pt-longjmp.c (longjmp, siglongjmp): Don't use IFUNC resolver.
14518         * nptl/pt-system.c (system): Likewise.
14520 2017-08-07  Adhemerval Zanella  <adhemerval.zanella@linaro.org>
14522         [BZ #21780]
14523         * sysdeps/posix/preadv2.c (preadv2): Use ENOTSUP instead of
14524         EOPNOTSUPP.
14525         * sysdeps/posix/preadv64v2.c (preadv64v2): Likewise.
14526         * sysdeps/posix/pwritev2.c (pwritev2): Likewise.
14527         * sysdeps/posix/pwritev64v2.c (pwritev64v2): Likewise.
14528         * sysdeps/unix/sysv/linux/preadv2.c (preadv2): Likewise.
14529         * sysdeps/unix/sysv/linux/preadv64v2.c (preadv64v2): Likewise.
14530         * sysdeps/unix/sysv/linux/pwritev2.c (pwritev2): Likewise.
14531         * sysdeps/unix/sysv/linux/pwritev64v2.c (pwritev64v2): Likewise.
14533 2017-08-07  Joseph Myers  <joseph@codesourcery.com>
14535         [BZ #21899]
14536         * bits/sigaction.h (struct sigaction): Define sa_handler and
14537         sa_sigaction using union also for [__USE_XOPEN_EXTENDED].
14538         (SA_ONSTACK): Change [__USE_UNIX98] condition to
14539         [__USE_XOPEN_EXTENDED].
14540         (SA_RESTART): Likewise.
14541         (SA_NODEFER): Likewise.
14542         (SA_RESETHAND): Likewise.
14543         * sysdeps/unix/sysv/linux/alpha/bits/sigaction.h
14544         (struct sigaction): Define sa_handler and sa_sigaction using union
14545         also for [__USE_XOPEN_EXTENDED].
14546         (SA_ONSTACK): Change [__USE_UNIX98] condition to
14547         [__USE_XOPEN_EXTENDED].
14548         (SA_RESTART): Likewise.
14549         (SA_NODEFER): Likewise.
14550         (SA_RESETHAND): Likewise.
14551         * sysdeps/unix/sysv/linux/bits/sigaction.h
14552         (struct sigaction): Define sa_handler and sa_sigaction using union
14553         also for [__USE_XOPEN_EXTENDED].
14554         (SA_ONSTACK): Change [__USE_UNIX98] condition to
14555         [__USE_XOPEN_EXTENDED].
14556         (SA_RESTART): Likewise.
14557         (SA_NODEFER): Likewise.
14558         (SA_RESETHAND): Likewise.
14559         * sysdeps/unix/sysv/linux/hppa/bits/sigaction.h
14560         (struct sigaction): Define sa_handler and sa_sigaction using union
14561         also for [__USE_XOPEN_EXTENDED].
14562         (SA_ONSTACK): Change [__USE_UNIX98] condition to
14563         [__USE_XOPEN_EXTENDED].
14564         (SA_RESTART): Likewise.
14565         (SA_NODEFER): Likewise.
14566         (SA_RESETHAND): Likewise.
14567         * sysdeps/unix/sysv/linux/ia64/bits/sigaction.h
14568         (struct sigaction): Define sa_handler and sa_sigaction using union
14569         also for [__USE_XOPEN_EXTENDED].
14570         (SA_ONSTACK): Change [__USE_UNIX98] condition to
14571         [__USE_XOPEN_EXTENDED].
14572         (SA_RESTART): Likewise.
14573         (SA_NODEFER): Likewise.
14574         (SA_RESETHAND): Likewise.
14575         * sysdeps/unix/sysv/linux/mips/bits/sigaction.h
14576         (struct sigaction): Define sa_handler and sa_sigaction using union
14577         also for [__USE_XOPEN_EXTENDED].
14578         (SA_ONSTACK): Change [__USE_UNIX98] condition to
14579         [__USE_XOPEN_EXTENDED].
14580         (SA_RESTART): Likewise.
14581         (SA_NODEFER): Likewise.
14582         (SA_RESETHAND): Likewise.
14583         * sysdeps/unix/sysv/linux/s390/bits/sigaction.h
14584         (struct sigaction): Define sa_handler and sa_sigaction using union
14585         also for [__USE_XOPEN_EXTENDED].
14586         (SA_ONSTACK): Change [__USE_UNIX98] condition to
14587         [__USE_XOPEN_EXTENDED].
14588         (SA_RESTART): Likewise.
14589         (SA_NODEFER): Likewise.
14590         (SA_RESETHAND): Likewise.
14591         * sysdeps/unix/sysv/linux/sparc/bits/sigaction.h
14592         (struct sigaction): Define sa_handler and sa_sigaction using union
14593         also for [__USE_XOPEN_EXTENDED].
14594         (SA_ONSTACK): Change [__USE_UNIX98] condition to
14595         [__USE_XOPEN_EXTENDED].
14596         (SA_RESTART): Likewise.
14597         (SA_NODEFER): Likewise.  Define directly rather than as alias.
14598         (SA_RESETHAND): Likewise.
14599         (SA_INTERRUPT): Define only for [__USE_MISC].
14600         (SA_NOMASK): Define as alias of SA_NODEFER, only for [__USE_MISC].
14601         (SA_ONESHOT): Define as alias of SA_RESETHAND, only for
14602         [__USE_MISC].
14603         (SA_STACK): Define only for [__USE_MISC].
14604         * sysdeps/unix/sysv/linux/tile/bits/sigaction.h
14605         (struct sigaction): Define sa_handler and sa_sigaction using union
14606         also for [__USE_XOPEN_EXTENDED].
14607         (SA_ONSTACK): Change [__USE_UNIX98] condition to
14608         [__USE_XOPEN_EXTENDED].
14609         (SA_RESTART): Likewise.
14610         (SA_NODEFER): Likewise.
14611         (SA_RESETHAND): Likewise.
14612         (SA_NOPTRACE): Define only for [__USE_MISC].
14614         * catgets/catgets.c (catgets): Use uintN_t instead of u_intN_t.
14615         * catgets/catgetsinfo.h (struct catalog_obj): Likewise.
14616         (struct catalog_info): Likewise.
14617         * inet/htontest.c (lo): Likewise.
14618         (foo): Likewise.
14619         * inet/inet_lnaof.c (inet_lnaof): Likewise.
14620         * inet/inet_net.c (inet_network): Likewise.
14621         * inet/inet_netof.c (inet_netof): Likewise.
14622         * inet/rcmd.c (__ivaliduser): Likewise.
14623         (iruserok): Likewise.
14624         * locale/loadlocale.c (_nl_intern_locale_data): Likewise.
14625         * locale/programs/locale-spec.c (locale_special): Likewise.
14626         * nis/nis_findserv.c (struct findserv_req): Likewise.
14627         (__nis_findfastest_with_timeout): Likewise.
14628         * nss/test-netdb.c (test_network): Likewise.
14629         * resolv/inet_neta.c (inet_neta): Likewise.
14630         * resolv/ns_date.c (ns_datetosecs): Likewise.
14631         (SECS_PER_DAY): Likewise.
14632         * resolv/nss_dns/dns-network.c (_nss_dns_getnetbyaddr_r):
14633         Likewise.
14634         * resolv/res_comp.c (__putlong): Likewise.
14635         (__putshort): Likewise.
14636         (_getlong): Likewise.
14637         (_getshort): Likewise.
14638         * resolv/res_debug.c (p_time): Likewise.
14639         (precsize_ntoa): Likewise.
14640         (precsize_aton): Likewise.
14641         (latlon2ul): Likewise.
14642         (loc_aton): Likewise.
14643         (loc_ntoa): Likewise.
14644         * resolv/res_hconf.c (struct netaddr): Likewise.
14645         (_res_hconf_reorder_addrs): Likewise.
14646         * sunrpc/clnt_tcp.c (clnttcp_call): Likewise.
14647         (clnttcp_control): Likewise.
14648         * sunrpc/clnt_udp.c (clntudp_call): Likewise.
14649         (clntudp_control): Likewise.
14650         * sunrpc/clnt_unix.c (clntunix_call): Likewise.
14651         (clntunix_control): Likewise.
14652         * sunrpc/pmap_rmt.c (clnt_broadcast): Likewise.
14653         * sunrpc/rpc/auth.h (union des_block): Likewise.
14654         * sunrpc/tst-udp-nonblocking.c (do_test): Likewise.
14655         * sunrpc/xdr_rec.c (struct rec_strm): Likewise.
14656         (xdrrec_create): Likewise.
14657         (xdrrec_endofrecord): Likewise.
14658         (flush_out): Likewise.
14659         * sunrpc/xdr_stdio.c (xdrstdio_getlong): Likewise.
14660         (xdrstdio_putlong): Likewise.
14661         * sysdeps/unix/sysv/linux/errqueue.h (struct sock_extended_err):
14662         Likewise.
14664         * misc/sys/cdefs.h (__long_double_t): Remove.
14665         * stdio-common/printf_fp.c (__printf_fp_l): Use long double
14666         instead of __long_double_t,
14667         * stdlib/strfmon_l.c (__vstrfmon_l): Likewise.
14669 2017-08-07  Siddhesh Poyarekar  <siddhesh@sourceware.org>
14671         * benchtests/scripts/compare_strings.py: Avoid display error when
14672         running on a text terminal.
14674         * benchtests/scripts/compare_strings.py (main): Add an
14675         optional -base option.
14676         (process_results): New argument base_func.
14678         * benchtests/bench-memcpy.c (test_main): Use TEST_NAME instead of
14679         hardcoding memcpy.
14680         * benchtests/bench-memcpy-large.c (test_name): Likewise.
14681         * benchtests/bench-memcpy-random.c (test_name): Likewise.
14683 2017-08-07  Andreas Schwab  <schwab@suse.de>
14685         * elf/Makefile ($(objpfx)tst-pathopt.out): Redirect output to target.
14686         * grp/Makefile ($(objpfx)tst_fgetgrent.out): Likewise.
14687         * intl/Makefile ($(objpfx)tst-gettext.out)
14688         ($(objpfx)tst-translit.out, $(objpfx)tst-gettext2.out)
14689         ($(objpfx)tst-gettext4.out, $(objpfx)tst-gettext6.out): Likewise.
14690         * libio/Makefile ($(objpfx)test-freopen.out): Likewise.
14691         * malloc/Makefile ($(objpfx)tst-mtrace.out): Likewise.
14692         * nptl/Makefile ($(objpfx)tst-tls6.out): Likewise.
14693         * posix/Makefile ($(objpfx)globtest.out)
14694         ($(objpfx)wordexp-tst.out, $(objpfx)tst-getconf.out): Likewise.
14695         * stdio-common/Makefile ($(objpfx)tst-unbputc.out)
14696         ($(objpfx)tst-printf.out): Likewise.
14697         * stdlib/Makefile ($(objpfx)tst-fmtmsg.out)
14698         ($(objpfx)tst-setcontext3.out): Likewise.
14700 2017-08-07  H.J. Lu  <hongjiu.lu@intel.com>
14702         * sysdeps/x86_64/fpu/multiarch/Makefile (libm-sysdep_routines):
14703         Add e_exp-fma, e_log-fma, e_pow-fma, s_atan-fma, e_asin-fma,
14704         e_atan2-fma, s_sin-fma, s_tan-fma, mplog-fma, mpa-fma,
14705         slowexp-fma, slowpow-fma, sincos32-fma, doasin-fma, dosincos-fma,
14706         halfulp-fma, mpexp-fma, mpatan2-fma, mpatan-fma, mpsqrt-fma,
14707         and mptan-fma.
14708         (CFLAGS-doasin-fma.c): New.
14709         (CFLAGS-dosincos-fma.c): Likewise.
14710         (CFLAGS-e_asin-fma.c): Likewise.
14711         (CFLAGS-e_atan2-fma.c): Likewise.
14712         (CFLAGS-e_exp-fma.c): Likewise.
14713         (CFLAGS-e_log-fma.c): Likewise.
14714         (CFLAGS-e_pow-fma.c): Likewise.
14715         (CFLAGS-halfulp-fma.c): Likewise.
14716         (CFLAGS-mpa-fma.c): Likewise.
14717         (CFLAGS-mpatan-fma.c): Likewise.
14718         (CFLAGS-mpatan2-fma.c): Likewise.
14719         (CFLAGS-mpexp-fma.c): Likewise.
14720         (CFLAGS-mplog-fma.c): Likewise.
14721         (CFLAGS-mpsqrt-fma.c): Likewise.
14722         (CFLAGS-mptan-fma.c): Likewise.
14723         (CFLAGS-s_atan-fma.c): Likewise.
14724         (CFLAGS-sincos32-fma.c): Likewise.
14725         (CFLAGS-slowexp-fma.c): Likewise.
14726         (CFLAGS-slowpow-fma.c): Likewise.
14727         (CFLAGS-s_sin-fma.c): Likewise.
14728         (CFLAGS-s_tan-fma.c): Likewise.
14729         * sysdeps/x86_64/fpu/multiarch/doasin-fma.c: New file.
14730         * sysdeps/x86_64/fpu/multiarch/dosincos-fma.c: Likewise.
14731         * sysdeps/x86_64/fpu/multiarch/e_asin-fma.c: Likewise.
14732         * sysdeps/x86_64/fpu/multiarch/e_atan2-fma.c: Likewise.
14733         * sysdeps/x86_64/fpu/multiarch/e_exp-fma.c: Likewise.
14734         * sysdeps/x86_64/fpu/multiarch/e_log-fma.c: Likewise.
14735         * sysdeps/x86_64/fpu/multiarch/e_pow-fma.c: Likewise.
14736         * sysdeps/x86_64/fpu/multiarch/halfulp-fma.c: Likewise.
14737         * sysdeps/x86_64/fpu/multiarch/ifunc-avx-fma4.h: Likewise.
14738         * sysdeps/x86_64/fpu/multiarch/ifunc-fma4.h: Likewise.
14739         * sysdeps/x86_64/fpu/multiarch/mpa-fma.c: Likewise.
14740         * sysdeps/x86_64/fpu/multiarch/mpatan-fma.c: Likewise.
14741         * sysdeps/x86_64/fpu/multiarch/mpatan2-fma.c: Likewise.
14742         * sysdeps/x86_64/fpu/multiarch/mpexp-fma.c: Likewise.
14743         * sysdeps/x86_64/fpu/multiarch/mplog-fma.c: Likewise.
14744         * sysdeps/x86_64/fpu/multiarch/mpsqrt-fma.c: Likewise.
14745         * sysdeps/x86_64/fpu/multiarch/mptan-fma.c: Likewise.
14746         * sysdeps/x86_64/fpu/multiarch/s_atan-fma.c: Likewise.
14747         * sysdeps/x86_64/fpu/multiarch/s_sin-fma.c: Likewise.
14748         * sysdeps/x86_64/fpu/multiarch/s_tan-fma.c: Likewise.
14749         * sysdeps/x86_64/fpu/multiarch/sincos32-fma.c: Likewise.
14750         * sysdeps/x86_64/fpu/multiarch/slowexp-fma.c: Likewise.
14751         * sysdeps/x86_64/fpu/multiarch/slowpow-fma.c: Likewise.
14752         * sysdeps/x86_64/fpu/multiarch/e_asin.c: Rewrite.
14753         * sysdeps/x86_64/fpu/multiarch/e_atan2.c: Likewise.
14754         * sysdeps/x86_64/fpu/multiarch/e_exp.c: Likewise.
14755         * sysdeps/x86_64/fpu/multiarch/e_log.c: Likewise.
14756         * sysdeps/x86_64/fpu/multiarch/e_pow.c: Likewise.
14757         * sysdeps/x86_64/fpu/multiarch/s_atan.c: Likewise.
14758         * sysdeps/x86_64/fpu/multiarch/s_sin.c: Likewise.
14759         * sysdeps/x86_64/fpu/multiarch/s_tan.c: Likewise.
14761 2017-08-04  Joseph Myers  <joseph@codesourcery.com>
14763         * sysdeps/generic/math_private.h (__EXPR_FLT128): Remove macro.
14764         (min_of_type_f): New macro.
14765         (min_of_type_): Likewise.
14766         (min_of_type_l): Likewise.
14767         (min_of_type_f128): Likewise.
14768         (min_of_type): Define using __MATH_TG and taking an expression
14769         argument.
14770         (math_check_force_underflow): Pass expression instead of type to
14771         min_of_type.
14772         (math_check_force_underflow_nonneg): Likewise.
14774 2017-08-04  H.J. Lu  <hongjiu.lu@intel.com>
14776         * sysdeps/x86/cpu-features.h [__ASSEMBLER__]
14777         (LOAD_RTLD_GLOBAL_RO_RDX, HAS_FEATURE, LOAD_FUNC_GOT_EAX,
14778         HAS_CPU_FEATURE, HAS_ARCH_FEATURE): Removed.
14780 2017-08-04  H.J. Lu  <hongjiu.lu@intel.com>
14782         * sysdeps/i386/i686/multiarch/Makefile (sysdep_routines): Add
14783         bcopy-ia32, bzero-ia32, rawmemchr-ia32 memchr-ia32,
14784         memcmp-ia32, memcpy-ia32, memmove-ia32, mempcpy-ia32,
14785         memset-ia32, strcat-ia32, strchr-ia32, strrchr-ia32,
14786         strcpy-ia32, strcmp-ia32, strcspn-ia32, strpbrk-ia32,
14787         strspn-ia32, strlen-ia32, stpcpy-ia32, stpncpy-ia32,
14788         memcpy_chk-nonshared, mempcpy_chk-nonshared,
14789         memmove_chk-nonshared and memset_chk-nonshared
14790         * sysdeps/i386/i686/multiarch/bcopy-ia32.S: New file.
14791         * sysdeps/i386/i686/multiarch/bcopy.c: Likewise.
14792         * sysdeps/i386/i686/multiarch/bzero-ia32.S: Likewise.
14793         * sysdeps/i386/i686/multiarch/bzero.c: Likewise.
14794         * sysdeps/i386/i686/multiarch/ifunc-memmove.h: Likewise.
14795         * sysdeps/i386/i686/multiarch/ifunc-memset.h: Likewise.
14796         * sysdeps/i386/i686/multiarch/ifunc-sse2-bsf.h: Likewise.
14797         * sysdeps/i386/i686/multiarch/ifunc-sse2-ssse3.h: Likewise.
14798         * sysdeps/i386/i686/multiarch/ifunc-sse2.h: Likewise.
14799         * sysdeps/i386/i686/multiarch/ifunc-sse4_2.h: Likewise.
14800         * sysdeps/i386/i686/multiarch/ifunc-ssse3-sse4_2.h: Likewise.
14801         * sysdeps/i386/i686/multiarch/memchr-ia32.S: Likewise.
14802         * sysdeps/i386/i686/multiarch/memchr.c: Likewise.
14803         * sysdeps/i386/i686/multiarch/memcmp-ia32.S: Likewise.
14804         * sysdeps/i386/i686/multiarch/memcmp.c: Likewise.
14805         * sysdeps/i386/i686/multiarch/memcpy-ia32.S: Likewise.
14806         * sysdeps/i386/i686/multiarch/memcpy.c: Likewise.
14807         * sysdeps/i386/i686/multiarch/memcpy_chk-nonshared.S: Likewise.
14808         * sysdeps/i386/i686/multiarch/memcpy_chk.c: Likewise.
14809         * sysdeps/i386/i686/multiarch/memmove-ia32.S: Likewise.
14810         * sysdeps/i386/i686/multiarch/memmove.c: Likewise.
14811         * sysdeps/i386/i686/multiarch/memmove_chk-nonshared.S: Likewise.
14812         * sysdeps/i386/i686/multiarch/memmove_chk.c: Likewise.
14813         * sysdeps/i386/i686/multiarch/mempcpy-ia32.S: Likewise.
14814         * sysdeps/i386/i686/multiarch/mempcpy.c: Likewise.
14815         * sysdeps/i386/i686/multiarch/mempcpy_chk-nonshared.S: Likewise.
14816         * sysdeps/i386/i686/multiarch/mempcpy_chk.c: Likewise.
14817         * sysdeps/i386/i686/multiarch/memrchr.c: Likewise.
14818         * sysdeps/i386/i686/multiarch/memset-ia32.S: Likewise.
14819         * sysdeps/i386/i686/multiarch/memset.c: Likewise.
14820         * sysdeps/i386/i686/multiarch/memset_chk-nonshared.S: Likewise.
14821         * sysdeps/i386/i686/multiarch/rawmemchr-ia32.S: Likewise.
14822         * sysdeps/i386/i686/multiarch/rawmemchr.c: Likewise.
14823         * sysdeps/i386/i686/multiarch/stpcpy-ia32.S: Likewise.
14824         * sysdeps/i386/i686/multiarch/stpcpy-ia32.S: Likewise.
14825         * sysdeps/i386/i686/multiarch/stpcpy.c: Likewise.
14826         * sysdeps/i386/i686/multiarch/stpncpy-ia32.S: Likewise.
14827         * sysdeps/i386/i686/multiarch/stpncpy.c: Likewise.
14828         * sysdeps/i386/i686/multiarch/strcasecmp.c: Likewise.
14829         * sysdeps/i386/i686/multiarch/strcasecmp_l.c: Likewise.
14830         * sysdeps/i386/i686/multiarch/strcat-ia32.S: Likewise.
14831         * sysdeps/i386/i686/multiarch/strcat.c: Likewise.
14832         * sysdeps/i386/i686/multiarch/strchr-ia32.S: Likewise.
14833         * sysdeps/i386/i686/multiarch/strchr.c: Likewise.
14834         * sysdeps/i386/i686/multiarch/strcmp-ia32.S: Likewise.
14835         * sysdeps/i386/i686/multiarch/strcmp.c: Likewise.
14836         * sysdeps/i386/i686/multiarch/strcpy-ia32.S: Likewise.
14837         * sysdeps/i386/i686/multiarch/strcpy.c: Likewise.
14838         * sysdeps/i386/i686/multiarch/strcspn-ia32.S: Likewise.
14839         * sysdeps/i386/i686/multiarch/strcspn.c: Likewise.
14840         * sysdeps/i386/i686/multiarch/strlen-ia32.S: Likewise.
14841         * sysdeps/i386/i686/multiarch/strlen.c: Likewise.
14842         * sysdeps/i386/i686/multiarch/strncase.c: Likewise.
14843         * sysdeps/i386/i686/multiarch/strncase_l.c: Likewise.
14844         * sysdeps/i386/i686/multiarch/strncat.c: Likewise.
14845         * sysdeps/i386/i686/multiarch/strncmp.c: Likewise.
14846         * sysdeps/i386/i686/multiarch/strncpy.c: Likewise.
14847         * sysdeps/i386/i686/multiarch/strnlen.c: Likewise.
14848         * sysdeps/i386/i686/multiarch/strpbrk-ia32.S: Likewise.
14849         * sysdeps/i386/i686/multiarch/strpbrk.c: Likewise.
14850         * sysdeps/i386/i686/multiarch/strrchr-ia32.S: Likewise.
14851         * sysdeps/i386/i686/multiarch/strrchr.c: Likewise.
14852         * sysdeps/i386/i686/multiarch/strspn-ia32.S: Likewise.
14853         * sysdeps/i386/i686/multiarch/strspn.c: Likewise.
14854         * sysdeps/i386/i686/multiarch/wcschr.c: Likewise.
14855         * sysdeps/i386/i686/multiarch/wcscmp.c: Likewise.
14856         * sysdeps/i386/i686/multiarch/wcscpy.c: Likewise.
14857         * sysdeps/i386/i686/multiarch/wcslen.c: Likewise.
14858         * sysdeps/i386/i686/multiarch/wcsrchr.c: Likewise.
14859         * sysdeps/i386/i686/multiarch/wmemcmp.c: Likewise.
14860         * sysdeps/i386/i686/multiarch/bcopy.S: Removed.
14861         * sysdeps/i386/i686/multiarch/bzero.S: Likewise.
14862         * sysdeps/i386/i686/multiarch/memchr.S: Likewise.
14863         * sysdeps/i386/i686/multiarch/memcmp.S: Likewise.
14864         * sysdeps/i386/i686/multiarch/memcpy.S: Likewise.
14865         * sysdeps/i386/i686/multiarch/memcpy_chk.S: Likewise.
14866         * sysdeps/i386/i686/multiarch/memmove.S: Likewise.
14867         * sysdeps/i386/i686/multiarch/memmove_chk.S: Likewise.
14868         * sysdeps/i386/i686/multiarch/mempcpy.S: Likewise.
14869         * sysdeps/i386/i686/multiarch/mempcpy_chk.S: Likewise.
14870         * sysdeps/i386/i686/multiarch/memrchr.S: Likewise.
14871         * sysdeps/i386/i686/multiarch/memset.S: Likewise.
14872         * sysdeps/i386/i686/multiarch/memset_chk.S: Likewise.
14873         * sysdeps/i386/i686/multiarch/rawmemchr.S: Likewise.
14874         * sysdeps/i386/i686/multiarch/stpcpy.S: Likewise.
14875         * sysdeps/i386/i686/multiarch/stpncpy.S: Likewise.
14876         * sysdeps/i386/i686/multiarch/strcasecmp.S: Likewise.
14877         * sysdeps/i386/i686/multiarch/strcasecmp_l.S: Likewise.
14878         * sysdeps/i386/i686/multiarch/strcat.S: Likewise.
14879         * sysdeps/i386/i686/multiarch/strcmp.S: Likewise.
14880         * sysdeps/i386/i686/multiarch/strcpy.S: Likewise.
14881         * sysdeps/i386/i686/multiarch/strcspn.S: Likewise.
14882         * sysdeps/i386/i686/multiarch/strlen.S: Likewise.
14883         * sysdeps/i386/i686/multiarch/strncase.S: Likewise.
14884         * sysdeps/i386/i686/multiarch/strncase_l.S: Likewise.
14885         * sysdeps/i386/i686/multiarch/strncat.S: Likewise.
14886         * sysdeps/i386/i686/multiarch/strncmp.S: Likewise.
14887         * sysdeps/i386/i686/multiarch/strncpy.S: Likewise.
14888         * sysdeps/i386/i686/multiarch/strnlen.S: Likewise.
14889         * sysdeps/i386/i686/multiarch/strpbrk.S: Likewise.
14890         * sysdeps/i386/i686/multiarch/strrchr.S: Likewise.
14891         * sysdeps/i386/i686/multiarch/strspn.S: Likewise.
14892         * sysdeps/i386/i686/multiarch/wcschr.S: Likewise.
14893         * sysdeps/i386/i686/multiarch/wcscmp.S: Likewise.
14894         * sysdeps/i386/i686/multiarch/wcscpy.S: Likewise.
14895         * sysdeps/i386/i686/multiarch/wcslen.S: Likewise.
14896         * sysdeps/i386/i686/multiarch/wcsrchr.S: Likewise.
14897         * sysdeps/i386/i686/multiarch/wmemcmp.S: Likewise.
14899 2017-08-04  H.J. Lu  <hongjiu.lu@intel.com>
14901         * sysdeps/x86_64/fpu/multiarch/Makefile (libmvec-sysdep_routines)
14902         Add svml_d_cos2_core-sse2, svml_d_cos4_core-sse,
14903         svml_d_cos8_core-avx2, svml_d_exp2_core-sse2,
14904         svml_d_exp4_core-sse, svml_d_exp8_core-avx2,
14905         svml_d_log2_core-sse2, svml_d_log4_core-sse,
14906         svml_d_log8_core-avx2, svml_d_pow2_core-sse2,
14907         svml_d_pow4_core-sse, svml_d_pow8_core-avx2
14908         svml_d_sin2_core-sse2, svml_d_sin4_core-sse,
14909         svml_d_sin8_core-avx2, svml_d_sincos2_core-sse2,
14910         svml_d_sincos4_core-sse, svml_d_sincos8_core-avx2,
14911         svml_s_cosf16_core-avx2, svml_s_cosf4_core-sse2,
14912         svml_s_cosf8_core-sse, svml_s_expf16_core-avx2,
14913         svml_s_expf4_core-sse2, svml_s_expf8_core-sse,
14914         svml_s_logf16_core-avx2, svml_s_logf4_core-sse2,
14915         svml_s_logf8_core-sse, svml_s_powf16_core-avx2,
14916         svml_s_powf4_core-sse2, svml_s_powf8_core-sse,
14917         svml_s_sincosf16_core-avx2, svml_s_sincosf4_core-sse2,
14918         svml_s_sincosf8_core-sse, svml_s_sinf16_core-avx2,
14919         svml_s_sinf4_core-sse2 and svml_s_sinf8_core-sse.
14920         * sysdeps/x86_64/fpu/multiarch/ifunc-mathvec-avx2.h: New file.
14921         * sysdeps/x86_64/fpu/multiarch/ifunc-mathvec-avx512.h: Likewise.
14922         * sysdeps/x86_64/fpu/multiarch/ifunc-mathvec-sse4_1.h: Likewise.
14923         * sysdeps/x86_64/fpu/multiarch/svml_d_cos2_core.c: Likewise.
14924         * sysdeps/x86_64/fpu/multiarch/svml_d_cos4_core.c: Likewise.
14925         * sysdeps/x86_64/fpu/multiarch/svml_d_cos8_core.c: Likewise.
14926         * sysdeps/x86_64/fpu/multiarch/svml_d_exp2_core.c: Likewise.
14927         * sysdeps/x86_64/fpu/multiarch/svml_d_exp4_core.c: Likewise.
14928         * sysdeps/x86_64/fpu/multiarch/svml_d_exp8_core.c: Likewise.
14929         * sysdeps/x86_64/fpu/multiarch/svml_d_log2_core.c: Likewise.
14930         * sysdeps/x86_64/fpu/multiarch/svml_d_log4_core.c: Likewise.
14931         * sysdeps/x86_64/fpu/multiarch/svml_d_log8_core.c: Likewise.
14932         * sysdeps/x86_64/fpu/multiarch/svml_d_pow2_core.c: Likewise.
14933         * sysdeps/x86_64/fpu/multiarch/svml_d_pow4_core.c: Likewise.
14934         * sysdeps/x86_64/fpu/multiarch/svml_d_pow8_core.c: Likewise.
14935         * sysdeps/x86_64/fpu/multiarch/svml_d_sin2_core.c: Likewise.
14936         * sysdeps/x86_64/fpu/multiarch/svml_d_sin4_core.c: Likewise.
14937         * sysdeps/x86_64/fpu/multiarch/svml_d_sin8_core.c: Likewise.
14938         * sysdeps/x86_64/fpu/multiarch/svml_d_sincos2_core.c: Likewise.
14939         * sysdeps/x86_64/fpu/multiarch/svml_d_sincos4_core.c: Likewise.
14940         * sysdeps/x86_64/fpu/multiarch/svml_d_sincos8_core.c: Likewise.
14941         * sysdeps/x86_64/fpu/multiarch/svml_d_cosf16_core.c: Likewise.
14942         * sysdeps/x86_64/fpu/multiarch/svml_d_cosf4_core.c: Likewise.
14943         * sysdeps/x86_64/fpu/multiarch/svml_d_cosf8_core.c: Likewise.
14944         * sysdeps/x86_64/fpu/multiarch/svml_d_expf16_core.c: Likewise.
14945         * sysdeps/x86_64/fpu/multiarch/svml_d_expf4_core.c: Likewise.
14946         * sysdeps/x86_64/fpu/multiarch/svml_d_expf8_core.c: Likewise.
14947         * sysdeps/x86_64/fpu/multiarch/svml_d_logf16_core.c: Likewise.
14948         * sysdeps/x86_64/fpu/multiarch/svml_d_logf4_core.c: Likewise.
14949         * sysdeps/x86_64/fpu/multiarch/svml_d_logf8_core.c: Likewise.
14950         * sysdeps/x86_64/fpu/multiarch/svml_d_powf16_core.c: Likewise.
14951         * sysdeps/x86_64/fpu/multiarch/svml_d_powf4_core.c: Likewise.
14952         * sysdeps/x86_64/fpu/multiarch/svml_d_powf8_core.c: Likewise.
14953         * sysdeps/x86_64/fpu/multiarch/svml_d_sincosf16_core.c: Likewise.
14954         * sysdeps/x86_64/fpu/multiarch/svml_d_sincosf4_core.c: Likewise.
14955         * sysdeps/x86_64/fpu/multiarch/svml_d_sincosf8_core.c: Likewise.
14956         * sysdeps/x86_64/fpu/multiarch/svml_d_sinf16_core.c: Likewise.
14957         * sysdeps/x86_64/fpu/multiarch/svml_d_sinf4_core.c: Likewise.
14958         * sysdeps/x86_64/fpu/multiarch/svml_d_sinf8_core.c: Likewise.
14959         * sysdeps/x86_64/fpu/multiarch/svml_d_cos2_core.S:  Renamed to
14960         ...
14961         * sysdeps/x86_64/fpu/multiarch/svml_d_cos2_core-sse2.S: This.
14962         Don't include <sysdep.h> nor <init-arch.h>.
14963         (_ZGVbN2v_cos): Removed.
14964         * sysdeps/x86_64/fpu/multiarch/svml_d_cos4_core.S:  Renamed to
14965         ...
14966         * sysdeps/x86_64/fpu/multiarch/svml_d_cos4_core-sse.S: This.
14967         Don't include <sysdep.h> nor <init-arch.h>.
14968         (_ZGVdN4v_cos): Removed.
14969         * sysdeps/x86_64/fpu/multiarch/svml_d_cos8_core.S:  Renamed to
14970         ...
14971         * sysdeps/x86_64/fpu/multiarch/svml_d_cos8_core-avx2.S: This.
14972         Don't include <sysdep.h> nor <init-arch.h>.
14973         (_ZGVeN8v_cos): Removed.
14974         * sysdeps/x86_64/fpu/multiarch/svml_d_exp2_core.S:  Renamed to
14975         ...
14976         * sysdeps/x86_64/fpu/multiarch/svml_d_exp2_core-sse2.S: This.
14977         Don't include <sysdep.h> nor <init-arch.h>.
14978         (_ZGVbN2v_exp): Removed.
14979         * sysdeps/x86_64/fpu/multiarch/svml_d_exp4_core.S:  Renamed to
14980         ...
14981         * sysdeps/x86_64/fpu/multiarch/svml_d_exp4_core-sse.S: This.
14982         Don't include <sysdep.h> nor <init-arch.h>.
14983         (_ZGVdN4v_exp): Removed.
14984         * sysdeps/x86_64/fpu/multiarch/svml_d_exp8_core.S:  Renamed to
14985         ...
14986         * sysdeps/x86_64/fpu/multiarch/svml_d_exp8_core-avx2.S: This.
14987         Don't include <sysdep.h> nor <init-arch.h>.
14988         (_ZGVeN8v_exp): Removed.
14989         * sysdeps/x86_64/fpu/multiarch/svml_d_log2_core.S:  Renamed to
14990         ...
14991         * sysdeps/x86_64/fpu/multiarch/svml_d_log2_core-sse2.S: This.
14992         Don't include <sysdep.h> nor <init-arch.h>.
14993         (_ZGVbN2v_log): Removed.
14994         * sysdeps/x86_64/fpu/multiarch/svml_d_log4_core.S:  Renamed to
14995         ...
14996         * sysdeps/x86_64/fpu/multiarch/svml_d_log4_core-sse.S: This.
14997         Don't include <sysdep.h> nor <init-arch.h>.
14998         (_ZGVdN4v_log): Removed.
14999         * sysdeps/x86_64/fpu/multiarch/svml_d_log8_core.S:  Renamed to
15000         ...
15001         * sysdeps/x86_64/fpu/multiarch/svml_d_log8_core-avx2.S: This.
15002         Don't include <sysdep.h> nor <init-arch.h>.
15003         (_ZGVeN8v_log): Removed.
15004         * sysdeps/x86_64/fpu/multiarch/svml_d_pow2_core.S:  Renamed to
15005         ...
15006         * sysdeps/x86_64/fpu/multiarch/svml_d_pow2_core-sse2.S: This.
15007         Don't include <sysdep.h> nor <init-arch.h>.
15008         (_ZGVbN2vv_pow): Removed.
15009         * sysdeps/x86_64/fpu/multiarch/svml_d_pow4_core.S:  Renamed to
15010         ...
15011         * sysdeps/x86_64/fpu/multiarch/svml_d_pow4_core-sse.S: This.
15012         Don't include <sysdep.h> nor <init-arch.h>.
15013         (_ZGVdN4vv_pow): Removed.
15014         * sysdeps/x86_64/fpu/multiarch/svml_d_pow8_core.S:  Renamed to
15015         ...
15016         * sysdeps/x86_64/fpu/multiarch/svml_d_pow8_core-avx2.S: This.
15017         Don't include <sysdep.h> nor <init-arch.h>.
15018         (_ZGVeN8vv_pow): Removed.
15019         * sysdeps/x86_64/fpu/multiarch/svml_d_sin2_core.S:  Renamed to
15020         ...
15021         * sysdeps/x86_64/fpu/multiarch/svml_d_sin2_core-sse2.S: This.
15022         Don't include <sysdep.h> nor <init-arch.h>.
15023         (_ZGVbN2v_sin): Removed.
15024         * sysdeps/x86_64/fpu/multiarch/svml_d_sin4_core.S:  Renamed to
15025         ...
15026         * sysdeps/x86_64/fpu/multiarch/svml_d_sin4_core-sse.S: This.
15027         Don't include <sysdep.h> nor <init-arch.h>.
15028         (_ZGVbN4v_sin): Removed.
15029         * sysdeps/x86_64/fpu/multiarch/svml_d_sin8_core.S:  Renamed to
15030         ...
15031         * sysdeps/x86_64/fpu/multiarch/svml_d_sin8_core-avx2.S: This.
15032         Don't include <sysdep.h> nor <init-arch.h>.
15033         (_ZGVbN8v_sin): Removed.
15034         * sysdeps/x86_64/fpu/multiarch/svml_d_sincos2_core.S:  Renamed to
15035         ...
15036         * sysdeps/x86_64/fpu/multiarch/svml_d_sincos2_core-sse2.S: This.
15037         Don't include <sysdep.h> nor <init-arch.h>.
15038         (_ZGVbN2vvv_sincos): Removed.
15039         * sysdeps/x86_64/fpu/multiarch/svml_d_sincos4_core.S:  Renamed to
15040         ...
15041         * sysdeps/x86_64/fpu/multiarch/svml_d_sincos4_core-sse.S: This.
15042         Don't include <sysdep.h> nor <init-arch.h>.
15043         (_ZGVdN4vvv_sincos): Removed.
15044         * sysdeps/x86_64/fpu/multiarch/svml_d_sincos8_core.S:  Renamed to
15045         ...
15046         * sysdeps/x86_64/fpu/multiarch/svml_d_sincos8_core-avx2.S: This.
15047         Don't include <sysdep.h> nor <init-arch.h>.
15048         (_ZGVeN8vvv_sincos): Removed.
15049         * sysdeps/x86_64/fpu/multiarch/svml_d_cosf16_core.S:  Renamed to
15050         ...
15051         * sysdeps/x86_64/fpu/multiarch/svml_d_cosf16_core-avx2.S: This.
15052         Don't include <sysdep.h> nor <init-arch.h>.
15053         (_ZGVeN16v_cosf): Removed.
15054         * sysdeps/x86_64/fpu/multiarch/svml_d_cosf4_core.S:  Renamed to
15055         ...
15056         * sysdeps/x86_64/fpu/multiarch/svml_d_cosf4_core-sse2.S: This.
15057         Don't include <sysdep.h> nor <init-arch.h>.
15058         (_ZGVbN4v_cosf): Removed.
15059         * sysdeps/x86_64/fpu/multiarch/svml_d_cosf8_core.S:  Renamed to
15060         ...
15061         * sysdeps/x86_64/fpu/multiarch/svml_d_cosf8_core-sse.S: This.
15062         Don't include <sysdep.h> nor <init-arch.h>.
15063         (_ZGVdN8v_cosf): Removed.
15064         * sysdeps/x86_64/fpu/multiarch/svml_d_expf16_core.S:  Renamed to
15065         ...
15066         * sysdeps/x86_64/fpu/multiarch/svml_d_expf16_core-avx2.S: This.
15067         Don't include <sysdep.h> nor <init-arch.h>.
15068         (_ZGVeN16v_expf): Removed.
15069         * sysdeps/x86_64/fpu/multiarch/svml_d_expf4_core.S:  Renamed to
15070         ...
15071         * sysdeps/x86_64/fpu/multiarch/svml_d_expf4_core-sse2.S: This.
15072         Don't include <sysdep.h> nor <init-arch.h>.
15073         (_ZGVbN4v_expf): Removed.
15074         * sysdeps/x86_64/fpu/multiarch/svml_d_expf8_core.S:  Renamed to
15075         ...
15076         * sysdeps/x86_64/fpu/multiarch/svml_d_expf8_core-sse.S: This.
15077         Don't include <sysdep.h> nor <init-arch.h>.
15078         (_ZGVdN8v_expf): Removed.
15079         * sysdeps/x86_64/fpu/multiarch/svml_d_logf16_core.S:  Renamed to
15080         ...
15081         * sysdeps/x86_64/fpu/multiarch/svml_d_logf16_core-avx2.S: This.
15082         Don't include <sysdep.h> nor <init-arch.h>.
15083         (_ZGVeN16v_logf): Removed.
15084         * sysdeps/x86_64/fpu/multiarch/svml_d_logf4_core.S:  Renamed to
15085         ...
15086         * sysdeps/x86_64/fpu/multiarch/svml_d_logf4_core-sse2.S: This.
15087         Don't include <sysdep.h> nor <init-arch.h>.
15088         (_ZGVbN4v_logf): Removed.
15089         * sysdeps/x86_64/fpu/multiarch/svml_d_logf8_core.S:  Renamed to
15090         ...
15091         * sysdeps/x86_64/fpu/multiarch/svml_d_logf8_core-sse.S: This.
15092         Don't include <sysdep.h> nor <init-arch.h>.
15093         (_ZGVdN8v_logf): Removed.
15094         * sysdeps/x86_64/fpu/multiarch/svml_d_powf16_core.S:  Renamed to
15095         ...
15096         * sysdeps/x86_64/fpu/multiarch/svml_d_powf16_core-avx2.S: This.
15097         Don't include <sysdep.h> nor <init-arch.h>.
15098         (_ZGVeN16vv_powf): Removed.
15099         * sysdeps/x86_64/fpu/multiarch/svml_d_powf4_core.S:  Renamed to
15100         ...
15101         * sysdeps/x86_64/fpu/multiarch/svml_d_powf4_core-sse2.S: This.
15102         Don't include <sysdep.h> nor <init-arch.h>.
15103         (_ZGVbN4vv_powf): Removed.
15104         * sysdeps/x86_64/fpu/multiarch/svml_d_powf8_core.S:  Renamed to
15105         ...
15106         * sysdeps/x86_64/fpu/multiarch/svml_d_powf8_core-sse.S: This.
15107         Don't include <sysdep.h> nor <init-arch.h>.
15108         (_ZGVdN8vv_powf): Removed.
15109         * sysdeps/x86_64/fpu/multiarch/svml_d_sincosf16_core.S:  Renamed to
15110         ...
15111         * sysdeps/x86_64/fpu/multiarch/svml_d_sincosf16_core-avx2.S: This.
15112         Don't include <sysdep.h> nor <init-arch.h>.
15113         (_ZGVeN16vvv_sincosf): Removed.
15114         * sysdeps/x86_64/fpu/multiarch/svml_d_sincosf4_core.S:  Renamed to
15115         ...
15116         * sysdeps/x86_64/fpu/multiarch/svml_d_sincosf4_core-sse2.S: This.
15117         Don't include <sysdep.h> nor <init-arch.h>.
15118         (_ZGVbN4vvv_sincosf): Removed.
15119         * sysdeps/x86_64/fpu/multiarch/svml_d_sincosf8_core.S:  Renamed to
15120         ...
15121         * sysdeps/x86_64/fpu/multiarch/svml_d_sincosf8_core-sse.S: This.
15122         Don't include <sysdep.h> nor <init-arch.h>.
15123         (_ZGVdN8vvv_sincosf): Removed.
15124         * sysdeps/x86_64/fpu/multiarch/svml_d_sinf16_core.S:  Renamed to
15125         ...
15126         * sysdeps/x86_64/fpu/multiarch/svml_d_sinf16_core-avx2.S: This.
15127         Don't include <sysdep.h> nor <init-arch.h>.
15128         (_ZGVeN16v_sinf): Removed.
15129         * sysdeps/x86_64/fpu/multiarch/svml_d_sinf4_core.S:  Renamed to
15130         ...
15131         * sysdeps/x86_64/fpu/multiarch/svml_d_sinf4_core-sse2.S: This.
15132         Don't include <sysdep.h> nor <init-arch.h>.
15133         (_ZGVbN4v_sinf): Removed.
15134         * sysdeps/x86_64/fpu/multiarch/svml_d_sinf8_core.S:  Renamed to
15135         ...
15136         * sysdeps/x86_64/fpu/multiarch/svml_d_sinf8_core-sse.S: This.
15137         Don't include <sysdep.h> nor <init-arch.h>.
15138         (_ZGVdN8v_sinf): Removed.
15140 2017-08-04  H.J. Lu  <hongjiu.lu@intel.com>
15142         * sysdeps/x86_64/fpu/multiarch/Makefile (libm-sysdep_routines):
15143         Add s_ceil-sse4_1, s_ceilf-sse4_1, s_floor-sse4_1,
15144         s_floorf-sse4_1, s_nearbyint-sse4_1, s_nearbyintf-sse4_1,
15145         s_rint-sse4_1 and s_rintf-sse4_1.
15146         * sysdeps/x86_64/fpu/multiarch/ifunc-sse4_1.h: New file.
15147         * sysdeps/x86_64/fpu/multiarch/s_ceil.c: Likewise.
15148         * sysdeps/x86_64/fpu/multiarch/s_ceilf.c: Likewise.
15149         * sysdeps/x86_64/fpu/multiarch/s_floor.c: Likewise.
15150         * sysdeps/x86_64/fpu/multiarch/s_floorf.c: Likewise.
15151         * sysdeps/x86_64/fpu/multiarch/s_nearbyint.c: Likewise.
15152         * sysdeps/x86_64/fpu/multiarch/s_nearbyintf.c: Likewise.
15153         * sysdeps/x86_64/fpu/multiarch/s_rint.c: Likewise.
15154         * sysdeps/x86_64/fpu/multiarch/s_rintf.c: Likewise.
15155         * sysdeps/x86_64/fpu/multiarch/s_ceil.S: Renamed to ...
15156         * sysdeps/x86_64/fpu/multiarch/s_ceil-sse4_1.S: This.  Don't
15157         include <machine/asm.h> nor <init-arch.h>.  Include <sysdep.h>.
15158         (__ceil): Removed.
15159         * sysdeps/x86_64/fpu/multiarch/s_ceilf.S: Renamed to ...
15160         * sysdeps/x86_64/fpu/multiarch/s_ceilf-sse4_1.S: This.  Don't
15161         include <machine/asm.h> nor <init-arch.h>.  Include <sysdep.h>.
15162         (__ceilf): Removed.
15163         * sysdeps/x86_64/fpu/multiarch/s_floor.S: Renamed to ...
15164         * sysdeps/x86_64/fpu/multiarch/s_floor-sse4_1.S: This.  Don't
15165         include <machine/asm.h> nor <init-arch.h>.  Include <sysdep.h>.
15166         (__floor): Removed.
15167         * sysdeps/x86_64/fpu/multiarch/s_floorf.S: Renamed to ...
15168         * sysdeps/x86_64/fpu/multiarch/s_floorf-sse4_1.S: This.  Don't
15169         include <machine/asm.h> nor <init-arch.h>.  Include <sysdep.h>.
15170         (__floorf): Removed.
15171         * sysdeps/x86_64/fpu/multiarch/s_nearbyint.S: Renamed to ...
15172         * sysdeps/x86_64/fpu/multiarch/s_nearbyint-sse4_1.S: This.  Don't
15173         include <machine/asm.h> nor <init-arch.h>.  Include <sysdep.h>.
15174         (__nearbyint): Removed.
15175         * sysdeps/x86_64/fpu/multiarch/s_nearbyintf.S: Renamed to ...
15176         * sysdeps/x86_64/fpu/multiarch/s_nearbyintf-sse4_1.S: This.  Don't
15177         include <machine/asm.h> nor <init-arch.h>.  Include <sysdep.h>.
15178         (__nearbyintf): Removed.
15179         * sysdeps/x86_64/fpu/multiarch/s_rint.S: Renamed to ...
15180         * sysdeps/x86_64/fpu/multiarch/s_rint-sse4_1.S: This.  Don't
15181         include <machine/asm.h> nor <init-arch.h>.  Include <sysdep.h>.
15182         (__rint): Removed.
15183         * sysdeps/x86_64/fpu/multiarch/s_rintf.S: Renamed to ...
15184         * sysdeps/x86_64/fpu/multiarch/s_rintf-sse4_1.S: This.  Don't
15185         include <machine/asm.h> nor <init-arch.h>.  Include <sysdep.h>.
15186         (__rintf): Removed.
15188 2017-08-04  H.J. Lu  <hongjiu.lu@intel.com>
15190         * sysdeps/i386/start.S (_start): Check Check PIC instead of
15191         SHARED.  Avoid dynamic relocation against main in static PIE.
15193 2017-08-04  H.J. Lu  <hongjiu.lu@intel.com>
15195         [BZ #21815]
15196         * elf/Makefile (CFLAGS-tst-prelink.c): New.
15197         (LDFLAGS-tst-prelink): Likewise.
15199 2017-08-04  H.J. Lu  <hongjiu.lu@intel.com>
15201         * sysdeps/unix/sysv/linux/i386/sysdep.h (I386_USE_SYSENTER):
15202         Define to I386_USE_SYSENTER to 0 or 1 if not defined.
15203         (ENTER_KERNEL): Check if I386_USE_SYSENTER is 1 and check PIC.
15204         (INTERNAL_SYSCALL_MAIN_INLINE): Likewise.
15205         (INTERNAL_SYSCALL_NCS): Likewise.
15206         (LOADARGS_1): Likewise.
15207         (LOADARGS_5): Likewise.
15208         (RESTOREARGS_1): Likewise.
15209         (RESTOREARGS_5): Likewise.
15211 2017-08-04  H.J. Lu  <hongjiu.lu@intel.com>
15213         * sysdeps/x86_64/memmove.S (MEMCPY_SYMBOL): Don't check SHARED.
15214         (MEMPCPY_SYMBOL): Likewise.
15215         * sysdeps/x86_64/multiarch/ifunc-impl-list.c
15216         (__libc_ifunc_impl_list): Test memcpy and mempcpy in libc.a.
15217         * sysdeps/x86_64/multiarch/memcpy-ssse3-back.S: Also include
15218         in libc.a.
15219         * sysdeps/x86_64/multiarch/memcpy-ssse3.S: Likewise.
15220         * sysdeps/x86_64/multiarch/memmove-avx512-no-vzeroupper.S:
15221         Likewise.
15222         * sysdeps/x86_64/multiarch/memcpy.c: Also include in libc.a.
15223         (__hidden_ver1): Don't use in libc.a.
15224         * sysdeps/x86_64/multiarch/memmove-sse2-unaligned-erms.S
15225         (__mempcpy): Don't create a weak alias in libc.a.
15226         * sysdeps/x86_64/multiarch/memmove-vec-unaligned-erms.S: Support
15227         libc.a.
15228         * sysdeps/x86_64/multiarch/mempcpy.c: Also include in libc.a.
15229         (__hidden_ver1): Don't use in libc.a.
15231 2017-08-04  H.J. Lu  <hongjiu.lu@intel.com>
15233         * config.make.in (have-insert): New.
15234         * configure.ac (libc_cv_insert): New.  Set to yes if linker
15235         supports INSERT in linker script.
15236         (AC_SUBST(libc_cv_insert): New.
15237         * configure: Regenerated.
15238         * sysdeps/x86_64/Makefile (tests): Add tst-split-dynreloc only
15239         if $(have-insert) == yes.
15241 2017-08-04  H.J. Lu  <hongjiu.lu@intel.com>
15243         * elf/Makefile (tests): Add vismain only if
15244         $(have-protected-data) == yes.
15245         (tests-pie): Likewise.
15247 2017-08-04  H.J. Lu  <hongjiu.lu@intel.com>
15249         [BZ #21871]
15250         * sysdeps/x86/cpu-features.c (init_cpu_features): Set
15251         bit_arch_Use_dl_runtime_resolve_opt only with AVX512F.
15253 2017-08-04  H.J. Lu  <hongjiu.lu@intel.com>
15255         [BZ #21790]
15256         * sysdeps/i386/i586/memset.S
15257         (__memset_zero_constant_len_parameter): Removed.
15258         * sysdeps/i386/i686/memset.S
15259         (__memset_zero_constant_len_parameter): Likewise.
15260         * sysdeps/i386/i686/multiarch/memset_chk.S
15261         (__memset_zero_constant_len_parameter): Likewise.
15262         * sysdeps/x86_64/memset.S (__memset_zero_constant_len_parameter):
15263         Likewise.
15265 2017-08-03  Aurelien Jarno  <aurelien@aurel32.net>
15267         * stdlib/getentropy.c (getentropy): Change return type to int.
15269 2017-08-03  Aurelien Jarno  <aurelien@aurel32.net>
15271         * sysdeps/i386/i686/fpu/multiarch/libm-test-ulps: Regenerated.
15273 2017-08-03  Joseph Myers  <joseph@codesourcery.com>
15275         * math/s_nextafter.c (__nextafter): Use uintN_t instead of
15276         u_intN_t.
15277         * math/s_nexttowardf.c (__nexttowardf): Likewise.
15278         * sysdeps/generic/math_private.h (ieee_double_shape_type):
15279         Likewise.
15280         (ieee_float_shape_type): Likewise.
15281         * sysdeps/i386/fpu/s_fpclassifyl.c (__fpclassifyl): Likewise.
15282         * sysdeps/i386/fpu/s_isnanl.c (__isnanl): Likewise.
15283         * sysdeps/i386/fpu/s_nextafterl.c (__nextafterl): Likewise.
15284         * sysdeps/i386/fpu/s_nexttoward.c (__nexttoward): Likewise.
15285         * sysdeps/i386/fpu/s_nexttowardf.c (__nexttowardf): Likewise.
15286         * sysdeps/ieee754/dbl-64/e_acosh.c (__ieee754_acosh): Likewise.
15287         * sysdeps/ieee754/dbl-64/e_cosh.c (__ieee754_cosh): Likewise.
15288         * sysdeps/ieee754/dbl-64/e_fmod.c (__ieee754_fmod): Likewise.
15289         * sysdeps/ieee754/dbl-64/e_gamma_r.c (__ieee754_gamma_r):
15290         Likewise.
15291         * sysdeps/ieee754/dbl-64/e_hypot.c (__ieee754_hypot): Likewise.
15292         * sysdeps/ieee754/dbl-64/e_jn.c (__ieee754_jn): Likewise.
15293         (__ieee754_yn): Likewise.
15294         * sysdeps/ieee754/dbl-64/e_log10.c (__ieee754_log10): Likewise.
15295         * sysdeps/ieee754/dbl-64/e_log2.c (__ieee754_log2): Likewise.
15296         * sysdeps/ieee754/dbl-64/e_rem_pio2.c (__ieee754_rem_pio2):
15297         Likewise.
15298         * sysdeps/ieee754/dbl-64/e_sinh.c (__ieee754_sinh): Likewise.
15299         * sysdeps/ieee754/dbl-64/s_ceil.c (__ceil): Likewise.
15300         * sysdeps/ieee754/dbl-64/s_copysign.c (__copysign): Likewise.
15301         * sysdeps/ieee754/dbl-64/s_erf.c (__erf): Likewise.
15302         (__erfc): Likewise.
15303         * sysdeps/ieee754/dbl-64/s_expm1.c (__expm1): Likewise.
15304         * sysdeps/ieee754/dbl-64/s_finite.c (FINITE): Likewise.
15305         * sysdeps/ieee754/dbl-64/s_floor.c (__floor): Likewise.
15306         * sysdeps/ieee754/dbl-64/s_fpclassify.c (__fpclassify): Likewise.
15307         * sysdeps/ieee754/dbl-64/s_isnan.c (__isnan): Likewise.
15308         * sysdeps/ieee754/dbl-64/s_issignaling.c (__issignaling):
15309         Likewise.
15310         * sysdeps/ieee754/dbl-64/s_llrint.c (__llrint): Likewise.
15311         * sysdeps/ieee754/dbl-64/s_llround.c (__llround): Likewise.
15312         * sysdeps/ieee754/dbl-64/s_lrint.c (__lrint): Likewise.
15313         * sysdeps/ieee754/dbl-64/s_lround.c (__lround): Likewise.
15314         * sysdeps/ieee754/dbl-64/s_modf.c (__modf): Likewise.
15315         * sysdeps/ieee754/dbl-64/s_nextup.c (__nextup): Likewise.
15316         * sysdeps/ieee754/dbl-64/s_remquo.c (__remquo): Likewise.
15317         * sysdeps/ieee754/dbl-64/s_round.c (__round): Likewise.
15318         * sysdeps/ieee754/dbl-64/s_trunc.c (__trunc): Likewise.
15319         * sysdeps/ieee754/dbl-64/wordsize-64/s_issignaling.c
15320         (__issignaling): Likewise.
15321         * sysdeps/ieee754/flt-32/e_atan2f.c (__ieee754_atan2f): Likewise.
15322         * sysdeps/ieee754/flt-32/e_fmodf.c (__ieee754_fmodf): Likewise.
15323         * sysdeps/ieee754/flt-32/e_gammaf_r.c (__ieee754_gammaf_r):
15324         Likewise.
15325         * sysdeps/ieee754/flt-32/e_jnf.c (__ieee754_ynf): Likewise.
15326         * sysdeps/ieee754/flt-32/e_log10f.c (__ieee754_log10f): Likewise.
15327         * sysdeps/ieee754/flt-32/e_powf.c (__ieee754_powf): Likewise.
15328         * sysdeps/ieee754/flt-32/e_rem_pio2f.c (__ieee754_rem_pio2f):
15329         Likewise.
15330         * sysdeps/ieee754/flt-32/e_remainderf.c (__ieee754_remainderf):
15331         Likewise.
15332         * sysdeps/ieee754/flt-32/e_sqrtf.c (__ieee754_sqrtf): Likewise.
15333         * sysdeps/ieee754/flt-32/s_ceilf.c (__ceilf): Likewise.
15334         * sysdeps/ieee754/flt-32/s_copysignf.c (__copysignf): Likewise.
15335         * sysdeps/ieee754/flt-32/s_erff.c (__erff): Likewise.
15336         (__erfcf): Likewise.
15337         * sysdeps/ieee754/flt-32/s_expm1f.c (__expm1f): Likewise.
15338         * sysdeps/ieee754/flt-32/s_finitef.c (FINITEF): Likewise.
15339         * sysdeps/ieee754/flt-32/s_floorf.c (__floorf): Likewise.
15340         * sysdeps/ieee754/flt-32/s_fpclassifyf.c (__fpclassifyf):
15341         Likewise.
15342         * sysdeps/ieee754/flt-32/s_isnanf.c (__isnanf): Likewise.
15343         * sysdeps/ieee754/flt-32/s_issignalingf.c (__issignalingf):
15344         Likewise.
15345         * sysdeps/ieee754/flt-32/s_llrintf.c (__llrintf): Likewise.
15346         * sysdeps/ieee754/flt-32/s_llroundf.c (__llroundf): Likewise.
15347         * sysdeps/ieee754/flt-32/s_lrintf.c (__lrintf): Likewise.
15348         * sysdeps/ieee754/flt-32/s_lroundf.c (__lroundf): Likewise.
15349         * sysdeps/ieee754/flt-32/s_modff.c (__modff): Likewise.
15350         * sysdeps/ieee754/flt-32/s_remquof.c (__remquof): Likewise.
15351         * sysdeps/ieee754/flt-32/s_roundf.c (__roundf): Likewise.
15352         * sysdeps/ieee754/ldbl-128/e_acoshl.c (__ieee754_acoshl):
15353         Likewise.
15354         * sysdeps/ieee754/ldbl-128/e_atan2l.c (__ieee754_atan2l):
15355         Likewise.
15356         * sysdeps/ieee754/ldbl-128/e_atanhl.c (__ieee754_atanhl):
15357         Likewise.
15358         * sysdeps/ieee754/ldbl-128/e_fmodl.c (__ieee754_fmodl): Likewise.
15359         * sysdeps/ieee754/ldbl-128/e_gammal_r.c (__ieee754_gammal_r):
15360         Likewise.
15361         * sysdeps/ieee754/ldbl-128/e_hypotl.c (__ieee754_hypotl):
15362         Likewise.
15363         * sysdeps/ieee754/ldbl-128/e_jnl.c (__ieee754_jnl): Likewise.
15364         (__ieee754_ynl): Likewise.
15365         * sysdeps/ieee754/ldbl-128/e_powl.c (__ieee754_powl): Likewise.
15366         * sysdeps/ieee754/ldbl-128/e_rem_pio2l.c (__ieee754_rem_pio2l):
15367         Likewise.
15368         * sysdeps/ieee754/ldbl-128/e_remainderl.c (__ieee754_remainderl):
15369         Likewise.
15370         * sysdeps/ieee754/ldbl-128/e_sinhl.c (__ieee754_sinhl): Likewise.
15371         * sysdeps/ieee754/ldbl-128/k_cosl.c (__kernel_cosl): Likewise.
15372         * sysdeps/ieee754/ldbl-128/k_sincosl.c (__kernel_sincosl):
15373         Likewise.
15374         * sysdeps/ieee754/ldbl-128/k_sinl.c (__kernel_sinl): Likewise.
15375         * sysdeps/ieee754/ldbl-128/s_ceill.c (__ceill): Likewise.
15376         * sysdeps/ieee754/ldbl-128/s_copysignl.c (__copysignl): Likewise.
15377         * sysdeps/ieee754/ldbl-128/s_erfl.c (__erfcl): Likewise.
15378         * sysdeps/ieee754/ldbl-128/s_fabsl.c (__fabsl): Likewise.
15379         * sysdeps/ieee754/ldbl-128/s_finitel.c (__finitel): Likewise.
15380         * sysdeps/ieee754/ldbl-128/s_floorl.c (__floorl): Likewise.
15381         * sysdeps/ieee754/ldbl-128/s_fpclassifyl.c (__fpclassifyl):
15382         Likewise.
15383         * sysdeps/ieee754/ldbl-128/s_frexpl.c (__frexpl): Likewise.
15384         * sysdeps/ieee754/ldbl-128/s_isnanl.c (__isnanl): Likewise.
15385         * sysdeps/ieee754/ldbl-128/s_issignalingl.c (__issignalingl):
15386         Likewise.
15387         * sysdeps/ieee754/ldbl-128/s_llrintl.c (__llrintl): Likewise.
15388         * sysdeps/ieee754/ldbl-128/s_llroundl.c (__llroundl): Likewise.
15389         * sysdeps/ieee754/ldbl-128/s_lrintl.c (__lrintl): Likewise.
15390         * sysdeps/ieee754/ldbl-128/s_lroundl.c (__lroundl): Likewise.
15391         * sysdeps/ieee754/ldbl-128/s_modfl.c (__modfl): Likewise.
15392         * sysdeps/ieee754/ldbl-128/s_nearbyintl.c (__nearbyintl):
15393         Likewise.
15394         * sysdeps/ieee754/ldbl-128/s_nextafterl.c (__nextafterl):
15395         Likewise.
15396         * sysdeps/ieee754/ldbl-128/s_nexttoward.c (__nexttoward):
15397         Likewise.
15398         * sysdeps/ieee754/ldbl-128/s_nexttowardf.c (__nexttowardf):
15399         Likewise.
15400         * sysdeps/ieee754/ldbl-128/s_nextupl.c (__nextupl): Likewise.
15401         * sysdeps/ieee754/ldbl-128/s_remquol.c (__remquol): Likewise.
15402         * sysdeps/ieee754/ldbl-128/s_rintl.c (__rintl): Likewise.
15403         * sysdeps/ieee754/ldbl-128/s_roundl.c (__roundl): Likewise.
15404         * sysdeps/ieee754/ldbl-128/s_tanhl.c (__tanhl): Likewise.
15405         * sysdeps/ieee754/ldbl-128/s_truncl.c (__truncl): Likewise.
15406         * sysdeps/ieee754/ldbl-128ibm/e_fmodl.c (__ieee754_fmodl):
15407         Likewise.
15408         * sysdeps/ieee754/ldbl-128ibm/e_gammal_r.c (__ieee754_gammal_r):
15409         Likewise.
15410         * sysdeps/ieee754/ldbl-128ibm/e_powl.c (__ieee754_powl): Likewise.
15411         * sysdeps/ieee754/ldbl-128ibm/e_rem_pio2l.c (__ieee754_rem_pio2l):
15412         Likewise.
15413         * sysdeps/ieee754/ldbl-128ibm/e_remainderl.c
15414         (__ieee754_remainderl): Likewise.
15415         * sysdeps/ieee754/ldbl-128ibm/k_cosl.c (__kernel_cosl): Likewise.
15416         * sysdeps/ieee754/ldbl-128ibm/k_sinl.c (__kernel_sinl): Likewise.
15417         * sysdeps/ieee754/ldbl-128ibm/s_fabsl.c (__fabsl): Likewise.
15418         * sysdeps/ieee754/ldbl-128ibm/s_fpclassifyl.c (___fpclassifyl):
15419         Likewise.
15420         * sysdeps/ieee754/ldbl-128ibm/s_modfl.c (__modfl): Likewise.
15421         * sysdeps/ieee754/ldbl-128ibm/s_nexttowardf.c (__nexttowardf):
15422         Likewise.
15423         * sysdeps/ieee754/ldbl-128ibm/s_remquol.c (__remquol): Likewise.
15424         * sysdeps/ieee754/ldbl-96/e_acoshl.c (__ieee754_acoshl): Likewise.
15425         * sysdeps/ieee754/ldbl-96/e_asinl.c (__ieee754_asinl): Likewise.
15426         * sysdeps/ieee754/ldbl-96/e_atanhl.c (__ieee754_atanhl): Likewise.
15427         * sysdeps/ieee754/ldbl-96/e_coshl.c (__ieee754_coshl): Likewise.
15428         * sysdeps/ieee754/ldbl-96/e_gammal_r.c (__ieee754_gammal_r):
15429         Likewise.
15430         * sysdeps/ieee754/ldbl-96/e_hypotl.c (__ieee754_hypotl): Likewise.
15431         * sysdeps/ieee754/ldbl-96/e_j0l.c (__ieee754_j0l): Likewise.
15432         (__ieee754_y0l): Likewise.
15433         (pzero): Likewise.
15434         (qzero): Likewise.
15435         * sysdeps/ieee754/ldbl-96/e_j1l.c (__ieee754_j1l): Likewise.
15436         (__ieee754_y1l): Likewise.
15437         (pone): Likewise.
15438         (qone): Likewise.
15439         * sysdeps/ieee754/ldbl-96/e_jnl.c (__ieee754_jnl): Likewise.
15440         (__ieee754_ynl): Likewise.
15441         * sysdeps/ieee754/ldbl-96/e_lgammal_r.c (sin_pi): Likewise.
15442         (__ieee754_lgammal_r): Likewise.
15443         * sysdeps/ieee754/ldbl-96/e_rem_pio2l.c (__ieee754_rem_pio2l):
15444         Likewise.
15445         * sysdeps/ieee754/ldbl-96/e_sinhl.c (__ieee754_sinhl): Likewise.
15446         * sysdeps/ieee754/ldbl-96/s_copysignl.c (__copysignl): Likewise.
15447         * sysdeps/ieee754/ldbl-96/s_erfl.c (__erfl): Likewise.
15448         (__erfcl): Likewise.
15449         * sysdeps/ieee754/ldbl-96/s_frexpl.c (__frexpl): Likewise.
15450         * sysdeps/ieee754/ldbl-96/s_issignalingl.c (__issignalingl):
15451         Likewise.
15452         * sysdeps/ieee754/ldbl-96/s_llrintl.c (__llrintl): Likewise.
15453         * sysdeps/ieee754/ldbl-96/s_llroundl.c (__llroundl): Likewise.
15454         * sysdeps/ieee754/ldbl-96/s_lrintl.c (__lrintl): Likewise.
15455         * sysdeps/ieee754/ldbl-96/s_lroundl.c (__lroundl): Likewise.
15456         * sysdeps/ieee754/ldbl-96/s_modfl.c (__modfl): Likewise.
15457         * sysdeps/ieee754/ldbl-96/s_nexttoward.c (__nexttoward): Likewise.
15458         * sysdeps/ieee754/ldbl-96/s_nexttowardf.c (__nexttowardf):
15459         Likewise.
15460         * sysdeps/ieee754/ldbl-96/s_nextupl.c (__nextupl): Likewise.
15461         * sysdeps/ieee754/ldbl-96/s_remquol.c (__remquol): Likewise.
15462         * sysdeps/ieee754/ldbl-96/s_roundl.c (__roundl): Likewise.
15463         * sysdeps/ieee754/ldbl-96/s_tanhl.c (__tanhl): Likewise.
15464         * sysdeps/ieee754/ldbl-opt/s_nexttowardfd.c (__nldbl_nexttowardf):
15465         Likewise.
15466         * sysdeps/m68k/m680x0/fpu/e_pow.c (s(__ieee754_pow)): Likewise.
15467         * sysdeps/m68k/m680x0/fpu/s_fpclassifyl.c (__fpclassifyl):
15468         Likewise.
15469         * sysdeps/m68k/m680x0/fpu/s_llrint.c (__llrint): Likewise.
15470         * sysdeps/m68k/m680x0/fpu/s_llrintf.c (__llrintf): Likewise.
15471         * sysdeps/m68k/m680x0/fpu/s_llrintl.c (__llrintl): Likewise.
15472         * sysdeps/m68k/m680x0/fpu/s_nextafterl.c (__nextafterl): Likewise.
15473         * sysdeps/x86/fpu/powl_helper.c (__powl_helper): Likewise.
15475 2017-08-03  Florian Weimer  <fweimer@redhat.com>
15477         [BZ #21885]
15478         * sysdeps/posix/getaddrinfo.c (gethosts): Release resolver context
15479         on memory allocation failure.
15481 2017-08-03  Alan Modra  <amodra@gmail.com>
15483         * sysdeps/powerpc/mod-tlsopt-powerpc.c: Extract from
15484         tst-tlsopt-powerpc.c with function name change and no test harness.
15485         * sysdeps/powerpc/tst-tlsopt-powerpc.c: Remove body of test.
15486         Call tls_get_addr_opt_test.
15487         * sysdeps/powerpc/Makefile (LDFLAGS-tst-tlsopt-powerpc): Don't define.
15488         (modules-names): Add mod-tlsopt-powerpc.
15489         (mod-tlsopt-powerpc.so-no-z-defs): Define.
15490         (tst-tlsopt-powerpc): Depend on .so.
15491         * sysdeps/powerpc/powerpc64/tls-macros.h (__TLS_GET_ADDR): Don't
15492         define.  Expand use in TLS_GD and TLS_LD.
15494 2017-08-02  Samuel Thibault  <samuel.thibault@ens-lyon.org>
15496         * sysdeps/mach/hurd/enbl-secure.c (__libc_init_secure): Define
15497         function.
15498         * sysdeps/posix/shm_open.c: Include <pthread.h>.
15500 2017-08-02  Joseph Myers  <joseph@codesourcery.com>
15502         [BZ #21686]
15503         * math/tgmath.h (__TGMATH_BINARY_REAL_ONLY): Add arguments before
15504         comparing size with that of double.
15505         (__TGMATH_BINARY_REAL_STD_ONLY): Likewise.
15506         (__TGMATH_BINARY_REAL_RET_ONLY): Likewise.
15507         (__TGMATH_TERNARY_FIRST_SECOND_REAL_ONLY): Likewise.
15508         (__TGMATH_TERNARY_REAL_ONLY): Likewise.
15509         (__TGMATH_BINARY_REAL_IMAG): Likewise.
15510         * math/gen-tgmath-tests.py (Type.init_types): Create __int128 and
15511         unsigned __int128 types.
15513 2017-08-02  Steve Ellcey  <sellcey@cavium.com>
15515         * localedata/Makefile (CFLAGS-tst_iswalnum.c, CFLAGS-tst_iswalpha.c
15516         CFLAGS-tst_iswcntrl.c, CFLAGS-tst_iswdigit.c, CFLAGS-tst_iswgraph.c,
15517         CFLAGS-tst_iswlower.c, CFLAGS-tst_iswprint.c, CFLAGS-tst_iswpunct.c,
15518         CFLAGS-tst_iswspace.c, CFLAGS-tst_iswupper.c, CFLAGS-tst_iswxdigit.c,
15519         CFLAGS-tst_towlower.c, CFLAGS-tst_towupper.c): Remove.
15521 2017-08-02  H.J. Lu  <hongjiu.lu@intel.com>
15523         * sysdeps/x86_64/start.S (_start): Check PIC instead of SHARED.
15525 2017-08-02  H.J. Lu  <hongjiu.lu@intel.com>
15527         * sysdeps/i386/i686/multiarch/memcmp-sse4.S: Check PIC instead
15528         of SHARED.
15529         * sysdeps/i386/i686/multiarch/memcpy-sse2-unaligned.S: Likewise.
15530         * sysdeps/i386/i686/multiarch/memcpy-ssse3-rep.S: Likewise.
15531         * sysdeps/i386/i686/multiarch/memcpy-ssse3.S: Likewise.
15532         * sysdeps/i386/i686/multiarch/memset-sse2-rep.S: Likewise.
15533         * sysdeps/i386/i686/multiarch/memset-sse2.S: Likewise.
15534         * sysdeps/i386/i686/multiarch/strcat-sse2.S: Likewise.
15535         * sysdeps/i386/i686/multiarch/strcpy-sse2.S: Likewise.
15537 2017-08-02  Joseph Myers  <joseph@codesourcery.com>
15539         [BZ #21685]
15540         * math/tgmath.h (__tgmath_real_type): Use unary + on potentially
15541         bit-field expressions passed to sizeof or typeof.
15542         [__HAVE_FLOAT128 && __GLIBC_USE (IEC_60559_TYPES_EXT)]
15543         (__TGMATH_F128): Likewise.
15544         [__HAVE_FLOAT128 && __GLIBC_USE (IEC_60559_TYPES_EXT)]
15545         (__TGMATH_CF128): Likewise.
15546         (__TGMATH_UNARY_REAL_ONLY): Likewise.
15547         (__TGMATH_UNARY_REAL_RET_ONLY): Likewise.
15548         (__TGMATH_BINARY_FIRST_REAL_ONLY): Likewise.
15549         (__TGMATH_BINARY_FIRST_REAL_STD_ONLY): Likewise.
15550         (__TGMATH_BINARY_REAL_ONLY): Likewise.
15551         (__TGMATH_BINARY_REAL_STD_ONLY): Likewise.
15552         (__TGMATH_BINARY_REAL_RET_ONLY): Likewise.
15553         (__TGMATH_TERNARY_FIRST_SECOND_REAL_ONLY): Likewise.
15554         (__TGMATH_TERNARY_REAL_ONLY): Likewise.
15555         (__TGMATH_TERNARY_FIRST_REAL_RET_ONLY): Likewise.
15556         (__TGMATH_UNARY_REAL_IMAG): Likewise.
15557         (__TGMATH_UNARY_IMAG): Likewise.
15558         (__TGMATH_UNARY_REAL_IMAG_RET_REAL): Likewise.
15559         (__TGMATH_BINARY_REAL_IMAG): Likewise.
15560         * math/gen-tgmath-tests.py (Type.init_types): Create bit_field
15561         type.
15562         (define_vars_for_type): Handle bit_field type specially.
15563         (Tests.__init__): Declare structure with bit-field element.
15565 2017-08-02  H.J. Lu  <hongjiu.lu@intel.com>
15567         [BZ #21791]
15568         * sysdeps/i386/i686/multiarch/memcpy-sse2-unaligned.S
15569         (MEMCPY_CHK): Define only if SHARED is defined.
15570         * sysdeps/i386/i686/multiarch/memcpy-ssse3-rep.S (MEMCPY_CHK):
15571         Likewise.
15572         * sysdeps/i386/i686/multiarch/memcpy-ssse3.S (MEMCPY_CHK):
15573         Likewise.
15575 See ChangeLog.18 for earlier changes.