Revert exp reimplementation (causes test failures).
[glibc.git] / ChangeLog
blob4f836e3f675cec00eaffede0f77c66e9b97c2bd3
1 2017-12-19  Joseph Myers  <joseph@codesourcery.com>
3         Revert:
5         2017-12-19  Joseph Myers  <joseph@codesourcery.com>
7         * sysdeps/x86_64/fpu/libm-test-ulps: Update.
9         2017-12-19  Patrick McGehearty  <patrick.mcgehearty@oracle.com>
11         * sysdeps/ieee754/dbl-64/e_exp.c: Include <math-svid-compat.h> and
12         <errno.h>.  Include "eexp.tbl".
13         (half): New constant.
14         (one): Likewise.
15         (__ieee754_exp): Rewrite.
16         (__slowexp): Remove prototype.
17         * sysdeps/ieee754/dbl-64/eexp.tbl: New file.
18         * sysdeps/ieee754/dbl-64/slowexp.c: Remove file.
19         * sysdeps/i386/fpu/slowexp.c: Likewise.
20         * sysdeps/ia64/fpu/slowexp.c: Likewise.
21         * sysdeps/m68k/m680x0/fpu/slowexp.c: Likewise.
22         * sysdeps/x86_64/fpu/multiarch/slowexp-avx.c: Likewise.
23         * sysdeps/x86_64/fpu/multiarch/slowexp-fma.c: Likewise.
24         * sysdeps/x86_64/fpu/multiarch/slowexp-fma4.c: Likewise.
25         * sysdeps/generic/math_private.h (__slowexp): Remove prototype.
26         * sysdeps/ieee754/dbl-64/e_pow.c: Remove mention of slowexp.c in
27         comment.
28         * sysdeps/powerpc/power4/fpu/Makefile [$(subdir) = math]
29         (CPPFLAGS-slowexp.c): Remove variable.
30         * sysdeps/x86_64/fpu/multiarch/Makefile (libm-sysdep_routines):
31         Remove slowexp-fma, slowexp-fma4 and slowexp-avx.
32         (CFLAGS-slowexp-fma.c): Remove variable.
33         (CFLAGS-slowexp-fma4.c): Likewise.
34         (CFLAGS-slowexp-avx.c): Likewise.
35         * sysdeps/x86_64/fpu/multiarch/e_exp-avx.c (__slowexp): Do not
36         define as macro.
37         * sysdeps/x86_64/fpu/multiarch/e_exp-fma.c (__slowexp): Likewise.
38         * sysdeps/x86_64/fpu/multiarch/e_exp-fma4.c (__slowexp): Likewise.
39         * math/Makefile (type-double-routines): Remove slowexp.
40         * manual/probes.texi (slowexp_p6): Remove.
41         (slowexp_p32): Likewise.
43 2017-12-19  Adhemerval Zanella  <adhemerval.zanella@linaro.org>
45         * lib/glob.c (glob): Use a 'char *', not a 'void *', in pointer
46         arithmetic.
48         * lib/glob.c (glob): Do not pass NULL to mempcpy.
50 2017-12-19  Joseph Myers  <joseph@codesourcery.com>
52         * sysdeps/x86_64/fpu/libm-test-ulps: Update.
54 2017-12-19  Patrick McGehearty  <patrick.mcgehearty@oracle.com>
56         * sysdeps/ieee754/dbl-64/e_exp.c: Include <math-svid-compat.h> and
57         <errno.h>.  Include "eexp.tbl".
58         (half): New constant.
59         (one): Likewise.
60         (__ieee754_exp): Rewrite.
61         (__slowexp): Remove prototype.
62         * sysdeps/ieee754/dbl-64/eexp.tbl: New file.
63         * sysdeps/ieee754/dbl-64/slowexp.c: Remove file.
64         * sysdeps/i386/fpu/slowexp.c: Likewise.
65         * sysdeps/ia64/fpu/slowexp.c: Likewise.
66         * sysdeps/m68k/m680x0/fpu/slowexp.c: Likewise.
67         * sysdeps/x86_64/fpu/multiarch/slowexp-avx.c: Likewise.
68         * sysdeps/x86_64/fpu/multiarch/slowexp-fma.c: Likewise.
69         * sysdeps/x86_64/fpu/multiarch/slowexp-fma4.c: Likewise.
70         * sysdeps/generic/math_private.h (__slowexp): Remove prototype.
71         * sysdeps/ieee754/dbl-64/e_pow.c: Remove mention of slowexp.c in
72         comment.
73         * sysdeps/powerpc/power4/fpu/Makefile [$(subdir) = math]
74         (CPPFLAGS-slowexp.c): Remove variable.
75         * sysdeps/x86_64/fpu/multiarch/Makefile (libm-sysdep_routines):
76         Remove slowexp-fma, slowexp-fma4 and slowexp-avx.
77         (CFLAGS-slowexp-fma.c): Remove variable.
78         (CFLAGS-slowexp-fma4.c): Likewise.
79         (CFLAGS-slowexp-avx.c): Likewise.
80         * sysdeps/x86_64/fpu/multiarch/e_exp-avx.c (__slowexp): Do not
81         define as macro.
82         * sysdeps/x86_64/fpu/multiarch/e_exp-fma.c (__slowexp): Likewise.
83         * sysdeps/x86_64/fpu/multiarch/e_exp-fma4.c (__slowexp): Likewise.
84         * math/Makefile (type-double-routines): Remove slowexp.
85         * manual/probes.texi (slowexp_p6): Remove.
86         (slowexp_p32): Likewise.
88 2017-12-19  Adhemerval Zanella  <adhemerval.zanella@linaro.org>
89             James Clarke <jrtc27@jrtc27.com>
91         [BZ #22603]
92         * sysdeps/ia64/memchr.S (__memchr): Avoid overflow in pointer
93         addition.
95 2017-12-19  Adhemerval Zanella  <adhemerval.zanella@linaro.org>
97         [BZ #22605]
98         * sysdeps/unix/sysv/linux/sh/clone.S (__clone): Fix exit return
99         code.
101 2017-12-19  H.J. Lu  <hongjiu.lu@intel.com>
103         [BZ #22563]
104         * sysdeps/i386/nptl/tcb-offsets.sym (FEATURE_1_OFFSET): New.
105         * sysdeps/i386/nptl/tls.h (tcbhead_t): Add feature_1.
106         * sysdeps/x86_64/nptl/tcb-offsets.sym (FEATURE_1_OFFSET): New.
107         * sysdeps/x86_64/nptl/tls.h (tcbhead_t): Rename __glibc_unused1
108         to feature_1.
110 2017-12-19  H.J. Lu  <hongjiu.lu@intel.com>
112         [BZ #22563]
113         * bits/types/__cancel_jmp_buf_tag.h: New file.
114         * sysdeps/unix/sysv/linux/x86/bits/types/__cancel_jmp_buf_tag.h
115         * sysdeps/unix/sysv/linux/x86/pthreaddef.h: Likewise.
116         * sysdeps/unix/sysv/linux/x86/nptl/pthreadP.h: Likewise.
117         * nptl/Makefile (headers): Add
118         bits/types/__cancel_jmp_buf_tag.h.
119         * nptl/descr.h [NEED_SAVED_MASK_IN_CANCEL_JMP_BUF]
120         (pthread_unwind_buf): Add saved_mask to cancel_jmp_buf.
121         * sysdeps/nptl/pthread.h: Include
122         <bits/types/__cancel_jmp_buf_tag.h>.
123         (__pthread_unwind_buf_t): Use struct __cancel_jmp_buf_tag with
124         __cancel_jmp_buf.
125         * sysdeps/unix/sysv/linux/hppa/pthread.h: Likewise.
127 2017-12-18  H.J. Lu  <hongjiu.lu@intel.com>
129         * scripts/build-many-glibcs.py (Context.add_all_configs): Add
130         --enable-static-pie variants to x86_64, x32 and i686.
132 2017-12-19  Joseph Myers  <joseph@codesourcery.com>
134         [BZ #22631]
135         * sysdeps/m68k/m680x0/fpu/bits/mathinline.h (__m81_defun): Add
136         argument for attrubutes.  All callers changed.
137         (__inline_mathop1): Likewise.  All callers changed.
138         (__inline_mathop): Likewise.  All callers changed.
139         [__USE_MISC] (scalbn): Use __inline_forward instead of
140         __inline_forward_c.
141         [__USE_ISOC99] (scalbln): Likewise.
142         [__USE_ISOC99] (nearbyint): Likewise.
143         [__USE_ISOC99] (lrint): Likewise.
144         [__USE_MISC] (scalbnf): Likewise.
145         [__USE_ISOC99] (scalblnf): Likewise.
146         [__USE_ISOC99] (nearbyintf): Likewise.
147         [__USE_ISOC99] (lrintf): Likewise.
148         [__USE_MISC] (scalbnl): Likewise.
149         [__USE_ISOC99] (scalblnl): Likewise.
150         [__USE_ISOC99] (nearbyintl): Likewise.
151         [__USE_ISOC99] (lrintl): Likewise.
152         * sysdeps/m68k/m680x0/fpu/mathimpl.h: All callers of
153         __inline_mathop and __m81_defun changed.
155         * scripts/build-many-glibcs.py (Context.add_all_configs): Specify
156         CPU or FPU for ARM hard-float configurations.
158 2017-12-18  Joseph Myers  <joseph@codesourcery.com>
160         * nptl/tst-attr3.c: Include <libc-diag.h>.
161         (do_test) [__GNUC_PREREQ (7, 0)]: Ignore -Wrestrict for two tests.
163         * posix/tst-glob_symlinks.c (do_test): Increase size of buf.
165         * string/tester.c (test_strncat): Also disable -Warray-bounds
166         warnings for two tests.
168 2017-12-18  H.J. Lu  <hongjiu.lu@intel.com>
170         [BZ #22614]
171         * Makeconfig (no-pie-ldflag): Set to -no-pie only if
172         $(cc-pie-default) == yes.
173         * config.make.in (cc-pie-default): New.
174         * configure.ac (libc_cv_pie_default): Renamed to ...
175         (libc_cv_cc_pie_default): This.
176         (libc_cv_pie_default): Set to $libc_cv_cc_pie_default.
177         * configure: Regenerated.
179 2017-12-18  Florian Weimer  <fweimer@redhat.com>
181         [BZ #20204]
182         ld.so: Harden dl-libc/libdl hooks.
183         * sysdeps/generic/ldsodefs.h (_dl_init_all_dirs): Update comment.
184         (rtld_active): New function.
185         * dlfcn/dladdr.c (__dladdr): Call it.
186         * dlfcn/dladdr1.c (__dladdr1): Likewise.
187         * dlfcn/dlclose.c (__dlcose): Likewise.
188         * dlfcn/dlerror.c (__dlerror): Likewise.
189         * dlfcn/dlinfo.c (__dlinfo): Likewise.
190         * dlfcn/dlmopen.c (__dlmopen): Likewise.
191         * dlfcn/dlopen.c (__dlopen): Likewise.
192         * dlfcn/dlopenold.c (__dlopen_nocheck): Likewise.
193         * dlfcn/dlsym.c (__dlsym): Likewise.
194         * dlfcn/dlvsym.c (__dlvsym): Likewise.
195         * libio/vtables.c (_IO_vtable_check): Likewise.
196         * elf/dl-libc.c (__libc_dlopen_mode, __libc_dlsym)
197         (__libc_dlclose): Likewise.
198         * elf/rtld.c (dl_main): Update comment on the _dl_init_all_dirs
199         assignment.
201 2017-12-18  Joseph Myers  <joseph@codesourcery.com>
203         [BZ #22446]
204         * nscd/connections.c (handle_request) [SO_PEERCRED]: Use separate
205         buffers for readlink input and output.
207 2017-12-18  Sergei Trofimovich  <slyfox@gentoo.org>
209         [BZ #22624]
210         * sysdeps/mips/setjmp_aux.c (__sigsetjmp_aux): Use
211         inhibit_stack_protector.
213         [BZ #22624]
214         * sysdeps/mips/mips64/setjmp_aux.c (__sigsetjmp_aux): Use
215         inhibit_stack_protector.
217 2017-12-18  Dmitry V. Levin  <ldv@altlinux.org>
219         [BZ #22627]
220         * elf/dl-load.c (_dl_init_paths): Remove _dl_dst_substitute preparatory
221         code and invocation.
223 2017-12-18  Szabolcs Nagy  <szabolcs.nagy@arm.com>
225         * sysdeps/aarch64/start.S (_start): Handle PIC && !SHARED case.
227 2017-12-16  Aurelien Jarno  <aurelien@aurel32.net>
229         [BZ #22505]
230         * elf/ldconfig.c (main): Call setlocale to force LC_COLLATE to C.
232 2017-12-16  Rajalakshmi Srinivasaraghavan  <raji@linux.vnet.ibm.com>
234         * sysdeps/s390/fpu/libm-test-ulps: Update.
236 2017-12-16  Rajalakshmi Srinivasaraghavan  <raji@linux.vnet.ibm.com>
238         * sysdeps/powerpc/fpu/libm-test-ulps: Update.
240 2017-12-16  Rajalakshmi Srinivasaraghavan  <raji@linux.vnet.ibm.com>
242         * sysdeps/ieee754/flt-32/s_cosf.c: Move reduced() and
243         constants to s_sincosf.h file.
244         * sysdeps/ieee754/flt-32/s_sinf.c: Likewise.
245         * sysdeps/ieee754/flt-32/s_sincosf.c: New
246         implementation.
247         * sysdeps/ieee754/flt-32/s_sincosf.h:
248         New file.
250 2017-12-12  Carlos O'Donell <carlos@redhat.com>
252         [BZ #14681]
253         * elf/tst-leaks1.c (do_test): Call one dlopen with $ORIGIN expansion
254         before mtrace.
256 2017-12-15  H.J. Lu  <hongjiu.lu@intel.com>
258         [BZ #19574]
259         * INSTALL: Regenerated.
260         * Makeconfig (real-static-start-installed-name): New.
261         (pic-default): Updated for --enable-static-pie.
262         (pie-default): New for --enable-static-pie.
263         (default-pie-ldflag): Likewise.
264         (+link-static-before-libc): Replace $(DEFAULT-LDFLAGS-$(@F))
265         with $(if $($(@F)-no-pie),$(no-pie-ldflag),$(default-pie-ldflag)).
266         Replace $(static-start-installed-name) with
267         $(real-static-start-installed-name).
268         (+prectorT): Updated for --enable-static-pie.
269         (+postctorT): Likewise.
270         (CFLAGS-.o): Add $(pie-default).
271         (CFLAGS-.op): Likewise.
272         * NEWS: Mention --enable-static-pie.
273         * config.h.in (ENABLE_STATIC_PIE): New.
274         * configure.ac (--enable-static-pie): New configure option.
275         (have-no-dynamic-linker): New LIBC_CONFIG_VAR.
276         (have-static-pie): Likewise.
277         Enable static PIE if linker supports --no-dynamic-linker.
278         (ENABLE_STATIC_PIE): New AC_DEFINE.
279         (enable-static-pie): New LIBC_CONFIG_VAR.
280         * configure: Regenerated.
281         * csu/Makefile (omit-deps): Add r$(start-installed-name) and
282         gr$(start-installed-name) for --enable-static-pie.
283         (extra-objs): Likewise.
284         (install-lib): Likewise.
285         (extra-objs): Add static-reloc.o and static-reloc.os
286         ($(objpfx)$(start-installed-name)): Also depend on
287         $(objpfx)static-reloc.o.
288         ($(objpfx)r$(start-installed-name)): New.
289         ($(objpfx)g$(start-installed-name)): Also depend on
290         $(objpfx)static-reloc.os.
291         ($(objpfx)gr$(start-installed-name)): New.
292         * csu/libc-start.c (LIBC_START_MAIN): Call _dl_relocate_static_pie
293         in libc.a.
294         * csu/libc-tls.c (__libc_setup_tls): Add main_map->l_addr to
295         initimage.
296         * csu/static-reloc.c: New file.
297         * elf/Makefile (routines): Add dl-reloc-static-pie.
298         (elide-routines.os): Likewise.
299         (DEFAULT-LDFLAGS-tst-tls1-static-non-pie): Removed.
300         (tst-tls1-static-non-pie-no-pie): New.
301         * elf/dl-reloc-static-pie.c: New file.
302         * elf/dl-support.c (_dl_get_dl_main_map): New function.
303         * elf/dynamic-link.h (ELF_DURING_STARTUP): Also check
304         STATIC_PIE_BOOTSTRAP.
305         * elf/get-dynamic-info.h (elf_get_dynamic_info): Likewise.
306         * gmon/Makefile (tests): Add tst-gmon-static-pie.
307         (tests-static): Likewise.
308         (DEFAULT-LDFLAGS-tst-gmon-static): Removed.
309         (tst-gmon-static-no-pie): New.
310         (CFLAGS-tst-gmon-static-pie.c): Likewise.
311         (CRT-tst-gmon-static-pie): Likewise.
312         (tst-gmon-static-pie-ENV): Likewise.
313         (tests-special): Likewise.
314         ($(objpfx)tst-gmon-static-pie.out): Likewise.
315         (clean-tst-gmon-static-pie-data): Likewise.
316         ($(objpfx)tst-gmon-static-pie-gprof.out): Likewise.
317         * gmon/tst-gmon-static-pie.c: New file.
318         * manual/install.texi: Document --enable-static-pie.
319         * sysdeps/generic/ldsodefs.h (_dl_relocate_static_pie): New.
320         (_dl_get_dl_main_map): Likewise.
321         * sysdeps/i386/configure.ac: Check if linker supports static PIE.
322         * sysdeps/x86_64/configure.ac: Likewise.
323         * sysdeps/i386/configure: Regenerated.
324         * sysdeps/x86_64/configure: Likewise.
325         * sysdeps/mips/Makefile (ASFLAGS-.o): Add $(pie-default).
326         (ASFLAGS-.op): Likewise.
328 2017-12-15  Joseph Myers  <joseph@codesourcery.com>
330         * io/Makefile (tst-open-tmpfile-ARGS): New variable.
331         * posix/tst-mmap-offset.c (fname): Use /tmp.
332         * stdlib/tst-setcontext3.sh (tempfile): Use ${objpfx}.
334 2017-12-15  Steve Ellcey  <sellcey@cavium.com>
336         * nscd/dbg_log.c (dbg_log): Increase msg buffer size.
338 2017-12-15  Thomas Schwinge  <thomas@codesourcery.com>
340         * sysdeps/mach/hurd/dl-sysdep.c (__access_noerrno): Don't set
341         errno.
343 2017-12-15  Joseph Myers  <joseph@codesourcery.com>
345         * scripts/build-many-glibcs.py (Context.add_all_configs): Use
346         --with-float=hard for arm-linux-gnueabihf configurations.
348         [BZ #14121]
349         * po/Makefile (generated): Add $(ALL_LINGUAS:%=%.mo).
350         (%.mo): Change to $(objpfx)%.mo.  Use $(make-target-directory).
351         ($(mo-installed)): Use $(objpfx)%.mo.
352         (realclean): Remove rule.
354         * po/Makefile (linguas): Remove rule and dependencies.
355         (linguas.mo): Likewise.
356         (.PHONY): Do not depend on linguas and linguas.mo.
357         (podir): Remove variable.
358         (pofiles): Likewise.
359         [$(pofiles)] (%.po): Remove rule.
361         * sysdeps/sparc/sparc32/Makefile
362         ($(divrem:%=$(sysdep_dir)/sparc/sparc32/%.S)): Do not include
363         start-of-line whitespace in argument of echo.
364         * sysdeps/sparc/sparc32/divrem.m4: Avoid generating lines starting
365         with whitespace.  Generate __wrap_.udiv alias.
366         * sysdeps/sparc/sparc32/rem.S: Regenerated.
367         * sysdeps/sparc/sparc32/sdiv.S: Likewise.
368         * sysdeps/sparc/sparc32/udiv.S: Likewise.
369         * sysdeps/sparc/sparc32/urem.S: Likewise.
371 2017-12-15  Rajalakshmi Srinivasaraghavan  <raji@linux.vnet.ibm.com>
373         * sysdeps/powerpc/powerpc64/power8/strcpy.S: Use vectors
374         for aligned inputs.
376 2017-12-14  Siddhesh Poyarekar  <siddhesh@sourceware.org>
378         * benchtests/bench-strcmp.c: Print output in JSON format.
380         * elf/dl-tunables.list: Remove redundant SXID_ERASE.
382 2017-12-14  Florian Weimer  <fweimer@redhat.com>
384         [BZ #22607]
385         CVE-2017-1000409
386         * elf/dl-load.c (_dl_init_paths): Compute number of components in
387         the expanded path string.
389 2017-12-14  Florian Weimer  <fweimer@redhat.com>
391         [BZ #22606]
392         CVE-2017-1000408
393         * elf/dl-load.c (system_dirs): Update comment.
394         (nsystem_dirs_len): Use array_length.
395         (_dl_init_paths): Use nsystem_dirs_len to compute the array size.
397 2017-12-14  Florian Weimer  <fweimer@redhat.com>
399         Simplify compiling most of support/ outside of glibc.
400         * support/check_addrinfo.c: Include <string.h>.
401         * support/check_dns_packet.c: Likewise.
402         * support/check_hostent.c: Likewise.
403         * support/support_can_chroot.c: Include <support/xunistd.h>.
404         * support/support_format_addrinfo.c: Include <stdlib.h>
405         * support/support_format_dns_packet.c: Include <stdbool.h>.
406         * support/support_format_hostent.c: Include <stdlib.h>.
407         * support/support_format_netent.c: Likewise.
408         * support/support_write_string.c: Include <support/xunistd.h>.
409         * support/xdlfcn.c: Include <stddef.h>.
411 2017-12-14  H.J. Lu  <hongjiu.lu@intel.com>
413         * sysdeps/x86_64/fpu/s_cosf.S: Removed.
415 2017-12-14  Patrick McGehearty  <patrick.mcgehearty@oracle.com>
416             Adhemerval Zanella  <adhemerval.zanella@linaro.org>
418         * sysdeps/sparc/sparc32/sparcv9/multiarch/Makefile
419         (sysdeps_routines): Add memset-niagara7.
420         * sysdeps/sparc/sparc64/multiarch/Makefile (sysdes_rotuines):
421         Likewise.
422         * sysdeps/sparc/sparc32/sparcv9/multiarch/memset-niagara7.S: New
423         file.
424         * sysdeps/sparc/sparc64/multiarch/memset-niagara7.S: Likewise.
425         * sysdeps/sparc/sparc64/multiarch/ifunc-impl-list.c
426         (__libc_ifunc_impl_list): Add __bzero_niagara7 and __memset_niagara7.
427         * sysdeps/sparc/sparc64/multiarch/ifunc-memset.h (IFUNC_SELECTOR):
428         Add niagara7 option.
429         * NEWS: Mention sparc m7 optimized memcpy, mempcpy, memmove, and
430         memset.
432         * sysdeps/sparc/sparc32/sparcv9/multiarch/Makefile
433         (sysdeps_routines): Add memcpy-memmove-niagara7 and memmove-ultra1.
434         * sysdeps/sparc/sparc64/multiarch/Makefile (sysdeps_routines):
435         Likewise.
436         * sysdeps/sparc/sparc32/sparcv9/multiarch/memcpy-memmove-niagara7.S:
437         New file.
438         * sysdeps/sparc/sparc32/sparcv9/multiarch/memmove-ultra1.S: Likewise.
439         * sysdeps/sparc/sparc32/sparcv9/multiarch/rtld-memmove.c: Likewise.
440         * sysdeps/sparc/sparc64/multiarch/ifunc-impl-list.c
441         (__libc_ifunc_impl_list): Add __memcpy_niagara7, __mempcpy_niagara7,
442         and __memmove_niagara7.
443         * sysdeps/sparc/sparc64/multiarch/ifunc-memcpy.h (IFUNC_SELECTOR):
444         Add niagara7 option.
445         * sysdeps/sparc/sparc64/multiarch/memmove.c: New file.
446         * sysdeps/sparc/sparc64/multiarch/ifunc-memmove.h: Likewise.
447         * sysdeps/sparc/sparc64/multiarch/memcpy-memmove-niagara7.S: Likewise.
448         * sysdeps/sparc/sparc64/multiarch/memmove-ultra1.S: Likewise.
449         * sysdeps/sparc/sparc64/multiarch/rtld-memmove.c: Likewise.
451 2017-12-14  Jose E. Marchesi  <jose.marchesi@oracle.com>
453         * sysdeps/sparc/sparc32/sparcv9/memmove.S: New file.
454         * sysdeps/sparc/sparc32/sparcv9/rtld-memmove.c: Likewise.
455         * sysdeps/sparc/sparc64/memmove.S: Likewise.
456         * sysdeps/sparc/sparc64/rtld-memmove.c: Likewise.
458         * sysdeps/sparc/bits/hwcap.h (HWCAP_SPARC_ADP): Defined.
459         * sysdeps/sparc/dl-procinfo.c: Added "adp" to the
460         _dl_sparc_cap_flags array.
461         * sysdeps/sparc/dl-procinfo.h (_DL_HWCAP_COUNT): Increment.
463 2017-12-13  Siddhesh Poyarekar  <siddhesh@sourceware.org>
465         * sysdeps/aarch64/strcmp.S (misaligned8): Compare dword at a
466         time whenever possible.
468 2017-12-12  Carlos O'Donell <carlos@redhat.com>
470         * elf/Makefile [$(nss-crypt)$(static-nss-crypt) == yesno]
471         (CFLAGS-tst-linkall-static.c): Undefine USE_CRYPT first.
473 2017-12-12  Joseph Myers  <joseph@codesourcery.com>
475         * soft-fp/fmadf4.c: Move to ....
476         * sysdeps/ieee754/soft-fp/s_fma.c: ... here.
477         * soft-fp/fmasf4.c: Move to ....
478         * sysdeps/ieee754/soft-fp/s_fmaf.c: ... here.
479         * soft-fp/fmatf4.c: Move to ....
480         * sysdeps/ieee754/soft-fp/s_fmal.c: ... here.
481         * sysdeps/ieee754/soft-fp/Makefile: New file.
482         * sysdeps/arm/preconfigure.ac: Define with_fp_cond.
483         * sysdeps/arm/preconfigure: Regenerated.
484         * sysdeps/arm/nofpu/Implies: New file.
485         * sysdeps/arm/s_fma.c: Remove file.
486         * sysdeps/arm/s_fmaf.c: Likewise.
487         * sysdeps/m68k/coldfire/nofpu/Implies: New file.
488         * sysdeps/m68k/coldfire/nofpu/s_fma.c: Remove file.
489         * sysdeps/m68k/coldfire/nofpu/s_fmaf.c: Likewise.
490         * sysdeps/microblaze/Implies: Add ieee754/soft-fp.
491         * sysdeps/microblaze/s_fma.c: Remove file.
492         * sysdeps/microblaze/s_fmaf.c: Likewise.
493         * sysdeps/mips/mips32/nofpu/Implies: New file.
494         * sysdeps/mips/mips64/n32/fpu/s_fma.c: Likewise.
495         * sysdeps/mips/mips64/n32/nofpu/Implies: Likewise.
496         * sysdeps/mips/mips64/n64/fpu/s_fma.c: Likewise.
497         * sysdeps/mips/mips64/n64/nofpu/Implies: Likewise.
498         * sysdeps/mips/ieee754/s_fma.c: Remove file.
499         * sysdeps/mips/ieee754/s_fmaf.c: Likewise.
500         * sysdeps/mips/ieee754/s_fmal.c: Update include for move of fmal
501         implementation.
502         * sysdeps/nios2/Implies: Add ieee754/soft-fp.
503         * sysdeps/nios2/s_fma.c: Remove file.
504         * sysdeps/nios2/s_fmaf.c: Likewise.
505         * sysdeps/sh/nofpu/Implies: New file.
506         * sysdeps/sh/s_fma.c: Remove file.
507         * sysdeps/sh/s_fmaf.c: Likewise.
508         * sysdeps/tile/Implies: Add ieee754/soft-fp.
509         * sysdeps/tile/s_fma.c: Remove file.
510         * sysdeps/tile/s_fmaf.c: Likewise.
512 2017-12-12  H.J. Lu  <hongjiu.lu@intel.com>
514         * sysdeps/x86_64/fpu/multiarch/Makefile (libm-sysdep_routines):
515         Add s_cosf-sse2 and s_cosf-fma.
516         (CFLAGS-s_cosf-fma.c): New.
517         * sysdeps/x86_64/fpu/multiarch/s_cosf-fma.c: New file.
518         * sysdeps/x86_64/fpu/multiarch/s_cosf-sse2.c: Likewise.
519         * sysdeps/x86_64/fpu/multiarch/s_cosf.c: Likewise.
521 2017-12-12  Steve Ellcey  <sellcey@cavium.com>
523         * nscd/nscd.h (init_traced_file): Change strncpy to memcpy.
525 2017-12-12  Adhemerval Zanella  <adhemerval.zanella@linaro.org>
527         * libio/Makefile (tests): Add tst-bz22415.
528         (tst-bz22415-ENV): New rule.
529         (generated): Add tst-bz22415.mtrace and tst-bz22415.check.
530         (tests-special): Add tst-bz22415-mem.out.
531         ($(objpfx)tst-bz22415-mem.out): New rule.
532         * libio/fileops.c (_IO_new_file_seekoff): Call _IO_free_backup_area
533         in case of a successful seek operation.
534         * libio/wfileops.c (_IO_wfile_seekoff): Likewise.
535         (_IO_wfile_overflow): Call _IO_free_wbackup_area in case a write
536         buffer is required.
537         * libio/tst-bz22415.c: New test.
539         * sysdeps/ia64/fpu/libm-test-ulps: Update.
541 2017-12-12  James Clarke <jrtc27@jrtc27.com>
543         * sysdeps/unix/sysv/linux/ia64/ipc_priv.h: New file defining
544         __IPC_64 to 0 to avoid IPC_64 being set.
546 2017-12-12  Szabolcs Nagy  <szabolcs.nagy@arm.com>
548         [BZ #22593]
549         * math/bits/mathcalls.h (nextafter): Remove const.
550         (nexttoward): Likewise.
552 2017-12-12  Joseph Myers  <joseph@codesourcery.com>
554         * configure.ac (--with-fp): Remove configure option.
555         (with_fp_cond): New variable.
556         (libc_cv_with_fp): New configure test.  Use this variable instead
557         of with_fp.
558         * configure: Regenerated.
559         * config.make.in (with-fp): Use @libc_cv_with_fp@.
560         * manual/install.texi (Configuring and compiling): Remove
561         --without-fp.
562         * INSTALL: Regenerated.
563         * sysdeps/m68k/preconfigure (with_fp_cond): Define for ColdFire.
564         * sysdeps/mips/preconfigure (with_fp_cond): Define.
565         * sysdeps/powerpc/preconfigure (with_fp_cond): Define for 32-bit.
566         * sysdeps/sh/preconfigure (with_fp_cond): Define.
567         * scripts/build-many-glibcs.py (Context.add_all_configs): Do not
568         use --without-fp to configure glibc.
570 2017-12-12  Rical Jasan  <ricaljasan@pacific.net>
572         * manual/locale.texi (nl_langinfo): Fix a typo.
574 2017-12-12  Aurelien Jarno <aurelien@aurel32.net>
576         [BZ #22588]
577         * manual/conf.texi (SC_SSIZE_MAX): Rename into _SC_SSIZE_MAX.
579 2017-12-11  H.J. Lu  <hongjiu.lu@intel.com>
581         * argp/Makefile (CFLAGS-argp-help.c): Replace = with +=.
582         (CFLAGS-argp-parse.c): Likewise.
583         (CFLAGS-argp-fmtstream.c): Likewise.
584         * crypt/Makefile (CPPFLAGS-sha256-crypt.c): Likewise.
585         (CPPFLAGS-sha512-crypt.c): Likewise.
586         (CPPFLAGS-md5-crypt.c): Likewise.
587         * debug/Makefile (CFLAGS-stack_chk_fail.c): Likewise.
588         (CFLAGS-stack_chk_fail_local.c): Likewise.
589         (CFLAGS-backtrace.c): Likewise.
590         (CFLAGS-sprintf_chk.c): Likewise.
591         (CFLAGS-snprintf_chk.c): Likewise.
592         (CFLAGS-vsprintf_chk.c): Likewise.
593         (CFLAGS-vsnprintf_chk.c): Likewise.
594         (CFLAGS-asprintf_chk.c): Likewise.
595         (CFLAGS-vasprintf_chk.c): Likewise.
596         (CFLAGS-obprintf_chk.c): Likewise.
597         (CFLAGS-dprintf_chk.c): Likewise.
598         (CFLAGS-vdprintf_chk.c): Likewise.
599         (CFLAGS-printf_chk.c): Likewise.
600         (CFLAGS-fprintf_chk.c): Likewise.
601         (CFLAGS-vprintf_chk.c): Likewise.
602         (CFLAGS-vfprintf_chk.c): Likewise.
603         (CFLAGS-gets_chk.c): Likewise.
604         (CFLAGS-fgets_chk.c): Likewise.
605         (CFLAGS-fgets_u_chk.c): Likewise.
606         (CFLAGS-fread_chk.c): Likewise.
607         (CFLAGS-fread_u_chk.c): Likewise.
608         (CFLAGS-swprintf_chk.c): Likewise.
609         (CFLAGS-vswprintf_chk.c): Likewise.
610         (CFLAGS-wprintf_chk.c): Likewise.
611         (CFLAGS-fwprintf_chk.c): Likewise.
612         (CFLAGS-vwprintf_chk.c): Likewise.
613         (CFLAGS-vfwprintf_chk.c): Likewise.
614         (CFLAGS-fgetws_chk.c): Likewise.
615         (CFLAGS-fgetws_u_chk.c): Likewise.
616         (CFLAGS-read_chk.c): Likewise.
617         (CFLAGS-pread_chk.c): Likewise.
618         (CFLAGS-pread64_chk.c): Likewise.
619         (CFLAGS-recv_chk.c): Likewise.
620         (CFLAGS-recvfrom_chk.c): Likewise.
621         (CFLAGS-tst-longjmp_chk.c): Likewise.
622         (CPPFLAGS-tst-longjmp_chk.c): Likewise.
623         (CFLAGS-tst-longjmp_chk2.c): Likewise.
624         (CPPFLAGS-tst-longjmp_chk2.c): Likewise.
625         (CFLAGS-tst-longjmp_chk3.c): Likewise.
626         (CPPFLAGS-tst-longjmp_chk3.c): Likewise.
627         (CFLAGS-tst-chk1.c): Likewise.
628         (CFLAGS-tst-chk2.c): Likewise.
629         (CFLAGS-tst-chk3.c): Likewise.
630         (CFLAGS-tst-chk4.cc): Likewise.
631         (CFLAGS-tst-chk5.cc): Likewise.
632         (CFLAGS-tst-chk6.cc): Likewise.
633         (CFLAGS-tst-lfschk1.c): Likewise.
634         (CFLAGS-tst-lfschk2.c): Likewise.
635         (CFLAGS-tst-lfschk3.c): Likewise.
636         (CFLAGS-tst-lfschk4.cc): Likewise.
637         (CFLAGS-tst-lfschk5.cc): Likewise.
638         (CFLAGS-tst-lfschk6.cc): Likewise.
639         (CFLAGS-tst-ssp-1.c): Likewise.
640         * dirent/Makefile (CFLAGS-scandir.c): Likewise.
641         (CFLAGS-scandir64.c): Likewise.
642         (CFLAGS-scandir-tail.c): Likewise.
643         (CFLAGS-scandir64-tail.c): Likewise.
644         * elf/Makefile (CPPFLAGS-dl-tunables.c): Likewise.
645         (CFLAGS-dl-tunables.c): Likewise.
646         (CFLAGS-dl-runtime.c): Likewise.
647         (CFLAGS-dl-lookup.c): Likewise.
648         (CFLAGS-dl-iterate-phdr.c): Likewise.
649         (CFLAGS-vismain.c): Likewise.
650         (CFLAGS-tst-linkall-static.c): Likewise.
651         (CFLAGS-tst-linkall-static.c): Likewise.
652         (CPPFLAGS-dl-load.c): Likewise.
653         (CFLAGS-ldconfig.c): Likewise.
654         (CFLAGS-dl-cache.c): Likewise.
655         (CFLAGS-cache.c): Likewise.
656         (CFLAGS-rtld.c): Likewise.
657         (CFLAGS-multiload.c): Likewise.
658         (CFLAGS-filtmod1.c): Likewise.
659         (CFLAGS-tst-align.c): Likewise.
660         (CFLAGS-tst-align2.c): Likewise.
661         (CFLAGS-tst-alignmod.c): Likewise.
662         (CFLAGS-tst-alignmod2.c): Likewise.
663         (CPPFLAGS-tst-execstack.c): Likewise.
664         (CFLAGS-tst-ptrguard1-static.c): Likewise.
665         (CFLAGS-tst-latepthreadmod.c): Likewise.
666         * grp/Makefile (CFLAGS-getgrgid_r.c): Likewise.
667         (CFLAGS-getgrnam_r.c): Likewise.
668         (CFLAGS-getgrent_r.c): Likewise.
669         (CFLAGS-getgrent.c): Likewise.
670         (CFLAGS-fgetgrent.c): Likewise.
671         (CFLAGS-fgetgrent_r.c): Likewise.
672         (CFLAGS-putgrent.c): Likewise.
673         (CFLAGS-initgroups.c): Likewise.
674         (CFLAGS-getgrgid.c): Likewise.
675         * gshadow/Makefile (CFLAGS-getsgent_r.c): Likewise.
676         (CFLAGS-getsgent.c): Likewise.
677         (CFLAGS-fgetsgent.c): Likewise.
678         (CFLAGS-fgetsgent_r.c): Likewise.
679         (CFLAGS-putsgent.c): Likewise.
680         (CFLAGS-getsgnam.c): Likewise.
681         (CFLAGS-getsgnam_r.c): Likewise.
682         * iconv/Makefile (CFLAGS-iconv_prog.c): Likewise.
683         (CFLAGS-iconv_charmap.c): Likewise.
684         (CFLAGS-dummy-repertoire.c): Likewise.
685         (CFLAGS-charmap.c): Likewise.
686         (CFLAGS-linereader.c): Likewise.
687         (CFLAGS-simple-hash.c): Likewise.
688         (CFLAGS-gconv_conf.c): Likewise.
689         (CFLAGS-iconvconfig.c): Likewise.
690         * inet/Makefile (CFLAGS-gethstbyad_r.c): Likewise.
691         (CFLAGS-gethstbyad.c): Likewise.
692         (CFLAGS-gethstbynm_r.c): Likewise.
693         (CFLAGS-gethstbynm.c): Likewise.
694         (CFLAGS-gethstbynm2_r.c): Likewise.
695         (CFLAGS-gethstbynm2.c): Likewise.
696         (CFLAGS-gethstent_r.c): Likewise.
697         (CFLAGS-gethstent.c): Likewise.
698         (CFLAGS-rcmd.c): Likewise.
699         (CFLAGS-getnetbynm_r.c): Likewise.
700         (CFLAGS-getnetbynm.c): Likewise.
701         (CFLAGS-getnetbyad_r.c): Likewise.
702         (CFLAGS-getnetbyad.c): Likewise.
703         (CFLAGS-getnetent_r.c): Likewise.
704         (CFLAGS-getnetent.c): Likewise.
705         (CFLAGS-getaliasent_r.c): Likewise.
706         (CFLAGS-getaliasent.c): Likewise.
707         (CFLAGS-getrpcent_r.c): Likewise.
708         (CFLAGS-getrpcent.c): Likewise.
709         (CFLAGS-getservent_r.c): Likewise.
710         (CFLAGS-getservent.c): Likewise.
711         (CFLAGS-getprtent_r.c): Likewise.
712         (CFLAGS-getprtent.c): Likewise.
713         (CFLAGS-either_ntoh.c): Likewise.
714         (CFLAGS-either_hton.c): Likewise.
715         (CFLAGS-getnetgrent.c): Likewise.
716         (CFLAGS-getnetgrent_r.c): Likewise.
717         (CFLAGS-tst-checks-posix.c): Likewise.
718         (CFLAGS-tst-sockaddr.c): Likewise.
719         * intl/Makefile (CFLAGS-tst-gettext.c): Likewise.
720         (CFLAGS-tst-translit.c): Likewise.
721         (CFLAGS-tst-gettext2.c): Likewise.
722         (CFLAGS-tst-codeset.c): Likewise.
723         (CFLAGS-tst-gettext3.c): Likewise.
724         (CFLAGS-tst-gettext4.c): Likewise.
725         (CFLAGS-tst-gettext5.c): Likewise.
726         (CFLAGS-tst-gettext6.c): Likewise.
727         * io/Makefile (CFLAGS-open.c): Likewise.
728         (CFLAGS-open64.c): Likewise.
729         (CFLAGS-creat.c): Likewise.
730         (CFLAGS-creat64.c): Likewise.
731         (CFLAGS-fcntl.c): Likewise.
732         (CFLAGS-poll.c): Likewise.
733         (CFLAGS-ppoll.c): Likewise.
734         (CFLAGS-lockf.c): Likewise.
735         (CFLAGS-statfs.c): Likewise.
736         (CFLAGS-fstatfs.c): Likewise.
737         (CFLAGS-statvfs.c): Likewise.
738         (CFLAGS-fstatvfs.c): Likewise.
739         (CFLAGS-fts.c): Likewise.
740         (CFLAGS-fts64.c): Likewise.
741         (CFLAGS-ftw.c): Likewise.
742         (CFLAGS-ftw64.c): Likewise.
743         (CFLAGS-lockf.c): Likewise.
744         (CFLAGS-posix_fallocate.c): Likewise.
745         (CFLAGS-posix_fallocate64.c): Likewise.
746         (CFLAGS-fallocate.c): Likewise.
747         (CFLAGS-fallocate64.c): Likewise.
748         (CFLAGS-read.c): Likewise.
749         (CFLAGS-write.c): Likewise.
750         (CFLAGS-test-stat.c): Likewise.
751         (CFLAGS-test-lfs.c): Likewise.
752         * libio/Makefile (CFLAGS-fileops.c): Likewise.
753         (CFLAGS-fputc.c): Likewise.
754         (CFLAGS-fputwc.c): Likewise.
755         (CFLAGS-freopen64.c): Likewise.
756         (CFLAGS-freopen.c): Likewise.
757         (CFLAGS-fseek.c): Likewise.
758         (CFLAGS-fseeko64.c): Likewise.
759         (CFLAGS-fseeko.c): Likewise.
760         (CFLAGS-ftello64.c): Likewise.
761         (CFLAGS-ftello.c): Likewise.
762         (CFLAGS-fwide.c): Likewise.
763         (CFLAGS-genops.c): Likewise.
764         (CFLAGS-getc.c): Likewise.
765         (CFLAGS-getchar.c): Likewise.
766         (CFLAGS-getwc.c): Likewise.
767         (CFLAGS-getwchar.c): Likewise.
768         (CFLAGS-iofclose.c): Likewise.
769         (CFLAGS-iofflush.c): Likewise.
770         (CFLAGS-iofgetpos64.c): Likewise.
771         (CFLAGS-iofgetpos.c): Likewise.
772         (CFLAGS-iofgets.c): Likewise.
773         (CFLAGS-iofgetws.c): Likewise.
774         (CFLAGS-iofputs.c): Likewise.
775         (CFLAGS-iofputws.c): Likewise.
776         (CFLAGS-iofread.c): Likewise.
777         (CFLAGS-iofsetpos64.c): Likewise.
778         (CFLAGS-iofsetpos.c): Likewise.
779         (CFLAGS-ioftell.c): Likewise.
780         (CFLAGS-iofwrite.c): Likewise.
781         (CFLAGS-iogetdelim.c): Likewise.
782         (CFLAGS-iogetline.c): Likewise.
783         (CFLAGS-iogets.c): Likewise.
784         (CFLAGS-iogetwline.c): Likewise.
785         (CFLAGS-ioputs.c): Likewise.
786         (CFLAGS-ioseekoff.c): Likewise.
787         (CFLAGS-ioseekpos.c): Likewise.
788         (CFLAGS-iosetbuffer.c): Likewise.
789         (CFLAGS-iosetvbuf.c): Likewise.
790         (CFLAGS-ioungetc.c): Likewise.
791         (CFLAGS-ioungetwc.c): Likewise.
792         (CFLAGS-oldfileops.c): Likewise.
793         (CFLAGS-oldiofclose.c): Likewise.
794         (CFLAGS-oldiofgetpos64.c): Likewise.
795         (CFLAGS-oldiofgetpos.c): Likewise.
796         (CFLAGS-oldiofsetpos64.c): Likewise.
797         (CFLAGS-oldiofsetpos.c): Likewise.
798         (CFLAGS-peekc.c): Likewise.
799         (CFLAGS-putc.c): Likewise.
800         (CFLAGS-putchar.c): Likewise.
801         (CFLAGS-putwc.c): Likewise.
802         (CFLAGS-putwchar.c): Likewise.
803         (CFLAGS-rewind.c): Likewise.
804         (CFLAGS-wfileops.c): Likewise.
805         (CFLAGS-wgenops.c): Likewise.
806         (CFLAGS-oldiofopen.c): Likewise.
807         (CFLAGS-iofopen.c): Likewise.
808         (CFLAGS-iofopen64.c): Likewise.
809         (CFLAGS-oldtmpfile.c): Likewise.
810         (CFLAGS-tst_putwc.c): Likewise.
811         * locale/Makefile (CFLAGS-md5.c): Likewise.
812         (CFLAGS-charmap.c): Likewise.
813         (CFLAGS-locfile.c): Likewise.
814         (CFLAGS-charmap-dir.c): Likewise.
815         * login/Makefile (CFLAGS-grantpt.c): Likewise.
816         (CFLAGS-getpt.c): Likewise.
817         (CFLAGS-pt_chown.c): Likewise.
818         * malloc/Makefile (CFLAGS-mcheck-init.c): Likewise.
819         (CFLAGS-obstack.c): Likewise.
820         * math/Makefile (CFLAGS-test-tgmath3.c): Likewise.
821         (CFLAGS-test-double-vlen4-wrappers.c): Likewise.
822         (CFLAGS-test-double-vlen8-wrappers.c): Likewise.
823         (CFLAGS-test-float-vlen8-wrappers.c): Likewise.
824         (CFLAGS-test-float-vlen16-wrappers.c): Likewise.
825         (CFLAGS-test-tgmath.c): Likewise.
826         (CFLAGS-test-tgmath2.c): Likewise.
827         (CFLAGS-test-tgmath-ret.c): Likewise.
828         (CFLAGS-test-powl.c): Likewise.
829         (CFLAGS-test-snan.c): Likewise.
830         (CFLAGS-test-signgam-finite.c): Likewise.
831         (CFLAGS-test-signgam-finite-c99.c): Likewise.
832         (CFLAGS-test-signgam-finite-c11.c): Likewise.
833         (CFLAGS-test-signgam-uchar.c): Likewise.
834         (CFLAGS-test-signgam-uchar-init.c): Likewise.
835         (CFLAGS-test-signgam-uchar-static.c): Likewise.
836         (CFLAGS-test-signgam-uchar-init-static.c): Likewise.
837         (CFLAGS-test-signgam-uint.c): Likewise.
838         (CFLAGS-test-signgam-uint-init.c): Likewise.
839         (CFLAGS-test-signgam-uint-static.c): Likewise.
840         (CFLAGS-test-signgam-uint-init-static.c): Likewise.
841         (CFLAGS-test-signgam-ullong.c): Likewise.
842         (CFLAGS-test-signgam-ullong-init.c): Likewise.
843         (CFLAGS-test-signgam-ullong-static.c): Likewise.
844         (CFLAGS-test-signgam-ullong-init-static.c): Likewise.
845         (CFLAGS-test-math-cxx11.cc): Likewise.
846         (CFLAGS-test-math-isinff.cc): Likewise.
847         (CFLAGS-test-math-iszero.cc): Likewise.
848         (CFLAGS-test-math-issignaling.cc): Likewise.
849         (CFLAGS-test-math-iscanonical.cc): Likewise.
850         (CFLAGS-test-iszero-excess-precision.c): Likewise.
851         (CFLAGS-test-iseqsig-excess-precision.c): Likewise.
852         (CFLAGS-test-flt-eval-method.c): Likewise.
853         (CFLAGS-test-fe-snans-always-signal.c): Likewise.
854         (CFLAGS-test-finite-macros.c): Likewise.
855         * misc/Makefile (CFLAGS-select.c): Likewise.
856         (CFLAGS-tsearch.c): Likewise.
857         (CFLAGS-lsearch.c): Likewise.
858         (CFLAGS-pselect.c): Likewise.
859         (CFLAGS-readv.c): Likewise.
860         (CFLAGS-writev.c): Likewise.
861         (CFLAGS-preadv.c): Likewise.
862         (CFLAGS-preadv64.c): Likewise.
863         (CFLAGS-pwritev.c): Likewise.
864         (CFLAGS-pwritev64.c): Likewise.
865         (CFLAGS-preadv2.c): Likewise.
866         (CFLAGS-preadv64v2.c): Likewise.
867         (CFLAGS-pwritev2.c): Likewise.
868         (CFLAGS-pwritev64v2.c): Likewise.
869         (CFLAGS-usleep.c): Likewise.
870         (CFLAGS-syslog.c): Likewise.
871         (CFLAGS-error.c): Likewise.
872         (CFLAGS-getpass.c): Likewise.
873         (CFLAGS-mkstemp.c): Likewise.
874         (CFLAGS-mkstemp64.c): Likewise.
875         (CFLAGS-getsysstats.c): Likewise.
876         (CFLAGS-getusershell.c): Likewise.
877         (CFLAGS-err.c): Likewise.
878         (CFLAGS-tst-tsearch.c): Likewise.
879         (CFLAGS-msync.c): Likewise.
880         (CFLAGS-fdatasync.c): Likewise.
881         (CFLAGS-fsync.c): Likewise.
882         * nptl/Makefile (CFLAGS-nptl-init.c): Likewise.
883         (CFLAGS-unwind.c): Likewise.
884         (CFLAGS-unwind-forcedunwind.c): Likewise.
885         (CFLAGS-pthread_cancel.c): Likewise.
886         (CFLAGS-pthread_setcancelstate.c): Likewise.
887         (CFLAGS-pthread_setcanceltype.c): Likewise.
888         (CFLAGS-cancellation.c): Likewise.
889         (CFLAGS-libc-cancellation.c): Likewise.
890         (CFLAGS-pthread_exit.c): Likewise.
891         (CFLAGS-forward.c): Likewise.
892         (CFLAGS-pthread_testcancel.c): Likewise.
893         (CFLAGS-pthread_join.c): Likewise.
894         (CFLAGS-pthread_timedjoin.c): Likewise.
895         (CFLAGS-pthread_once.c): Likewise.
896         (CFLAGS-pthread_cond_wait.c): Likewise.
897         (CFLAGS-sem_wait.c): Likewise.
898         (CFLAGS-sem_timedwait.c): Likewise.
899         (CFLAGS-fcntl.c): Likewise.
900         (CFLAGS-lockf.c): Likewise.
901         (CFLAGS-pread.c): Likewise.
902         (CFLAGS-pread64.c): Likewise.
903         (CFLAGS-pwrite.c): Likewise.
904         (CFLAGS-pwrite64.c): Likewise.
905         (CFLAGS-wait.c): Likewise.
906         (CFLAGS-waitpid.c): Likewise.
907         (CFLAGS-sigwait.c): Likewise.
908         (CFLAGS-msgrcv.c): Likewise.
909         (CFLAGS-msgsnd.c): Likewise.
910         (CFLAGS-tcdrain.c): Likewise.
911         (CFLAGS-open.c): Likewise.
912         (CFLAGS-open64.c): Likewise.
913         (CFLAGS-pause.c): Likewise.
914         (CFLAGS-recv.c): Likewise.
915         (CFLAGS-send.c): Likewise.
916         (CFLAGS-accept.c): Likewise.
917         (CFLAGS-sendto.c): Likewise.
918         (CFLAGS-connect.c): Likewise.
919         (CFLAGS-recvfrom.c): Likewise.
920         (CFLAGS-recvmsg.c): Likewise.
921         (CFLAGS-sendmsg.c): Likewise.
922         (CFLAGS-close.c): Likewise.
923         (CFLAGS-read.c): Likewise.
924         (CFLAGS-write.c): Likewise.
925         (CFLAGS-nanosleep.c): Likewise.
926         (CFLAGS-sigsuspend.c): Likewise.
927         (CFLAGS-msync.c): Likewise.
928         (CFLAGS-fdatasync.c): Likewise.
929         (CFLAGS-fsync.c): Likewise.
930         (CFLAGS-pt-system.c): Likewise.
931         (CFLAGS-tst-cleanup2.c): Likewise.
932         (CFLAGS-tst-cleanupx2.c): Likewise.
933         (CFLAGS-flockfile.c): Likewise.
934         (CFLAGS-ftrylockfile.c): Likewise.
935         (CFLAGS-funlockfile.c): Likewise.
936         (CFLAGS-tst-initializers1.c): Likewise.
937         (CFLAGS-tst-initializers1-c89.c): Likewise.
938         (CFLAGS-tst-initializers1-c99.c): Likewise.
939         (CFLAGS-tst-initializers1-c11.c): Likewise.
940         (CFLAGS-tst-initializers1-gnu89.c): Likewise.
941         (CFLAGS-tst-initializers1-gnu99.c): Likewise.
942         (CFLAGS-tst-initializers1-gnu11.c): Likewise.
943         * nscd/Makefile (CFLAGS-nscd_getpw_r.c): Likewise.
944         (CFLAGS-nscd_getgr_r.c): Likewise.
945         (CFLAGS-nscd_gethst_r.c): Likewise.
946         (CFLAGS-nscd_getai.c): Likewise.
947         (CFLAGS-nscd_initgroups.c): Likewise.
948         * posix/Makefile (CFLAGS-getaddrinfo.c): Likewise.
949         (CFLAGS-pause.c): Likewise.
950         (CFLAGS-pread.c): Likewise.
951         (CFLAGS-pread64.c): Likewise.
952         (CFLAGS-pwrite.c): Likewise.
953         (CFLAGS-pwrite64.c): Likewise.
954         (CFLAGS-sleep.c): Likewise.
955         (CFLAGS-wait.c): Likewise.
956         (CFLAGS-waitid.c): Likewise.
957         (CFLAGS-waitpid.c): Likewise.
958         (CFLAGS-getopt.c): Likewise.
959         (CFLAGS-wordexp.c): Likewise.
960         (CFLAGS-sysconf.c): Likewise.
961         (CFLAGS-pathconf.c): Likewise.
962         (CFLAGS-fpathconf.c): Likewise.
963         (CFLAGS-spawn.c): Likewise.
964         (CFLAGS-spawnp.c): Likewise.
965         (CFLAGS-spawni.c): Likewise.
966         (CFLAGS-glob.c): Likewise.
967         (CFLAGS-glob64.c): Likewise.
968         (CFLAGS-getconf.c): Likewise.
969         (CFLAGS-nanosleep.c): Likewise.
970         * pwd/Makefile (CFLAGS-getpwent_r.c): Likewise.
971         (CFLAGS-getpwent.c): Likewise.
972         (CFLAGS-getpw.c): Likewise.
973         (CFLAGS-fgetpwent_r.c): Likewise.
974         * resolv/Makefile (CFLAGS-res_hconf.c): Likewise.
975         * rt/Makefile (CFLAGS-aio_suspend.c): Likewise.
976         (CFLAGS-mq_timedreceive.c): Likewise.
977         (CFLAGS-mq_timedsend.c): Likewise.
978         (CFLAGS-clock_nanosleep.c): Likewise.
979         (CFLAGS-librt-cancellation.c): Likewise.
980         * shadow/Makefile (CFLAGS-getspent_r.c): Likewise.
981         (CFLAGS-getspent.c): Likewise.
982         (CFLAGS-fgetspent.c): Likewise.
983         (CFLAGS-fgetspent_r.c): Likewise.
984         (CFLAGS-putspent.c): Likewise.
985         (CFLAGS-getspnam.c): Likewise.
986         (CFLAGS-getspnam_r.c): Likewise.
987         * signal/Makefile (CFLAGS-sigpause.c): Likewise.
988         (CFLAGS-sigsuspend.c): Likewise.
989         (CFLAGS-sigtimedwait.c): Likewise.
990         (CFLAGS-sigwait.c): Likewise.
991         (CFLAGS-sigwaitinfo.c): Likewise.
992         (CFLAGS-sigreturn.c): Likewise.
993         * stdio-common/Makefile (CFLAGS-vfprintf.c): Likewise.
994         (CFLAGS-vfwprintf.c): Likewise.
995         (CFLAGS-tmpfile.c): Likewise.
996         (CFLAGS-tmpfile64.c): Likewise.
997         (CFLAGS-tempname.c): Likewise.
998         (CFLAGS-psignal.c): Likewise.
999         (CFLAGS-vprintf.c): Likewise.
1000         (CFLAGS-cuserid.c): Likewise.
1001         (CFLAGS-errlist.c): Likewise.
1002         (CFLAGS-siglist.c): Likewise.
1003         (CFLAGS-scanf15.c): Likewise.
1004         (CFLAGS-scanf17.c): Likewise.
1005         * stdlib/Makefile (CFLAGS-bsearch.c): Likewise.
1006         (CFLAGS-msort.c): Likewise.
1007         (CFLAGS-qsort.c): Likewise.
1008         (CFLAGS-system.c): Likewise.
1009         (CFLAGS-fmtmsg.c): Likewise.
1010         (CFLAGS-strfmon.c): Likewise.
1011         (CFLAGS-strfmon_l.c): Likewise.
1012         (CFLAGS-strfromd.c): Likewise.
1013         (CFLAGS-strfromf.c): Likewise.
1014         (CFLAGS-strfroml.c): Likewise.
1015         (CFLAGS-tst-bsearch.c): Likewise.
1016         (CFLAGS-tst-qsort.c): Likewise.
1017         (CFLAGS-tst-makecontext2.c): Likewise.
1018         * sunrpc/Makefile (CFLAGS-xbootparam_prot.c): Likewise.
1019         (CFLAGS-xnlm_prot.c): Likewise.
1020         (CFLAGS-xrstat.c): Likewise.
1021         (CFLAGS-xyppasswd.c): Likewise.
1022         (CFLAGS-xklm_prot.c): Likewise.
1023         (CFLAGS-xrex.c): Likewise.
1024         (CFLAGS-xsm_inter.c): Likewise.
1025         (CFLAGS-xmount.c): Likewise.
1026         (CFLAGS-xrusers.c): Likewise.
1027         (CFLAGS-xspray.c): Likewise.
1028         (CFLAGS-xnfs_prot.c): Likewise.
1029         (CFLAGS-xrquota.c): Likewise.
1030         (CFLAGS-xkey_prot.c): Likewise.
1031         (CFLAGS-auth_unix.c): Likewise.
1032         (CFLAGS-key_call.c): Likewise.
1033         (CFLAGS-pmap_rmt.c): Likewise.
1034         (CFLAGS-clnt_perr.c): Likewise.
1035         (CFLAGS-openchild.c): Likewise.
1036         * sysvipc/Makefile (CFLAGS-msgrcv.c): Likewise.
1037         (CFLAGS-msgsnd.c): Likewise.
1038         * termios/Makefile (CFLAGS-tcdrain.c): Likewise.
1039         * time/Makefile (CFLAGS-tzfile.c): Likewise.
1040         (CFLAGS-tzset.c): Likewise.
1041         (CFLAGS-getdate.c): Likewise.
1042         (CFLAGS-test_time.c): Likewise.
1043         (CPPFLAGS-tst-tzname.c): Likewise.
1044         * timezone/Makefile (CFLAGS-zdump.c): Likewise.
1045         (CFLAGS-zic.c): Likewise.
1046         * wcsmbs/Makefile (CFLAGS-wcwidth.c): Likewise.
1047         (CFLAGS-wcswidth.c): Likewise.
1048         (CFLAGS-wcstol.c): Likewise.
1049         (CFLAGS-wcstoul.c): Likewise.
1050         (CFLAGS-wcstoll.c): Likewise.
1051         (CFLAGS-wcstoull.c): Likewise.
1052         (CFLAGS-wcstod.c): Likewise.
1053         (CFLAGS-wcstold.c): Likewise.
1054         (CFLAGS-wcstof128.c): Likewise.
1055         (CFLAGS-wcstof.c): Likewise.
1056         (CFLAGS-wcstol_l.c): Likewise.
1057         (CFLAGS-wcstoul_l.c): Likewise.
1058         (CFLAGS-wcstoll_l.c): Likewise.
1059         (CFLAGS-wcstoull_l.c): Likewise.
1060         (CFLAGS-wcstod_l.c): Likewise.
1061         (CFLAGS-wcstold_l.c): Likewise.
1062         (CFLAGS-wcstof128_l.c): Likewise.
1063         (CFLAGS-wcstof_l.c): Likewise.
1064         (CPPFLAGS-tst-wchar-h.c): Likewise.
1065         (CPPFLAGS-wcstold_l.c): Likewise.
1067 2017-12-11  Paul A. Clarke  <pc@us.ibm.com>
1069         * sysdeps/ieee754/flt-32/s_cosf.c: New implementation.
1071 2017-12-11  Adhemerval Zanella  <azanella@linux.vnet.ibm.com>
1072             Tulio Magno Quites Machado Filho  <tuliom@linux.vnet.ibm.com>
1074         * manual/tunables.texi (Hardware Capability Tunables): Document
1075         glibc.tune.cached_memopt.
1076         * sysdeps/powerpc/cpu-features.c: New file.
1077         * sysdeps/powerpc/cpu-features.h: New file.
1078         * sysdeps/powerpc/dl-procinfo.c [!IS_IN(ldconfig)]: Add
1079         _dl_powerpc_cpu_features.
1080         * sysdeps/powerpc/dl-tunables.list: New file.
1081         * sysdeps/powerpc/ldsodefs.h: Include cpu-features.h.
1082         * sysdeps/powerpc/powerpc32/power4/multiarch/init-arch.h
1083         (INIT_ARCH): Initialize use_aligned_memopt.
1084         * sysdeps/powerpc/powerpc64/dl-machine.h [defined(SHARED &&
1085         IS_IN(rtld))]: Restrict dl_platform_init availability and
1086         initialize CPU features used by tunables.
1087         * sysdeps/powerpc/powerpc64/multiarch/Makefile (sysdep_routines):
1088         Add memcpy-power8-cached.
1089         * sysdeps/powerpc/powerpc64/multiarch/ifunc-impl-list.c: Add
1090         __memcpy_power8_cached.
1091         * sysdeps/powerpc/powerpc64/multiarch/memcpy.c: Likewise.
1092         * sysdeps/powerpc/powerpc64/multiarch/memcpy-power8-cached.S:
1093         New file.
1095 2017-12-11  H.J. Lu  <hongjiu.lu@intel.com>
1097         * string/Makefile (CFLAGS-inl-tester.c): Replace = with +=.
1098         (CFLAGS-noinl-tester.c): Likewise.
1099         (CFLAGS-tst-strlen.c): Likewise.
1100         (CFLAGS-stratcliff.c): Likewise.
1101         (CFLAGS-test-ffs.c): Likewise.
1102         (CFLAGS-tst-inlcall.c): Likewise.
1103         (CFLAGS-tst-xbzero-opt.c): Likewise.
1104         (CFLAGS-memcpy.c): Likewise.
1105         (CFLAGS-wordcopy.c): Likewise.
1107 2017-12-11  Stefan Liebler  <stli@linux.vnet.ibm.com>
1109         * sysdeps/s390/s390-64/dl-trampoline.h (_dl_runtime_resolve):
1110         Store r15 on stack and add cfi rule.
1111         * sysdeps/s390/s390-32/dl-trampoline.h (_dl_runtime_resolve):
1112         Likewise.
1114 2017-12-10  Aurelien Jarno <aurelien@aurel32.net>
1116         [BZ #22577]
1117         * elf/rtld.c (init_tls): Add missing new line to the _dl_fatal_printf
1118         call.
1120 2017-12-07  H.J. Lu  <hongjiu.lu@intel.com>
1122         * sysdeps/x86_64/fpu/multiarch/Makefile (libm-sysdep_routines):
1123         Add s_sinf-sse2 and s_sinf-fma.
1124         (CFLAGS-s_sinf-fma.c): New.
1125         * sysdeps/x86_64/fpu/multiarch/s_sinf-fma.c: New file.
1126         * sysdeps/x86_64/fpu/multiarch/s_sinf-sse2.c: Likewise.
1127         * sysdeps/x86_64/fpu/multiarch/s_sinf.c: Likewise.
1129 2017-12-07  H.J. Lu  <hongjiu.lu@intel.com>
1131         * sysdeps/x86_64/fpu/s_sinf.S: Removed.
1133 2017-12-07  Joseph Myers  <joseph@codesourcery.com>
1135         [BZ #22568]
1136         * math/s_ctan_template.c (M_DECL_FUNC (__ctan)): Set imaginary
1137         part of result to imaginary part of argument if it is zero and the
1138         real part of the argument is not finite.
1139         * math/s_ctanh_template.c (M_DECL_FUNC (__ctanh)): Set real part
1140         of result to real part of argument if it is zero and the imaginary
1141         part of the argument is not finite.
1143 2017-12-07  Mike FABIAN  <mfabian@redhat.com>
1145         [BZ #22524]
1146         * localedata/Makefile: Add lt_LT.UTF-8 to test-input
1147         and to the list of locales to be built for testing.
1148         * localedata/lt_LT.UTF-8.in: New file for testing the collation.
1149         * localedata/locales/lt_LT (LC_COLLATE): Use “copy "iso14651_t1"”
1150         and build the collation rules upon that.
1152 2017-12-07  Joseph Myers  <joseph@codesourcery.com>
1154         * bits/floatn-common.h (__HAVE_FLOAT32): Define to 1.
1155         * manual/math.texi (Mathematics): Document support for _Float32.
1156         * math/Makefile (test-types): Add float32.
1157         * math/Versions (GLIBC_2.27): Add _Float32 functions.
1158         * stdlib/Versions (GLIBC_2.27): Likewise.
1159         * wcsmbs/Versions (GLIBC_2.27): Likewise.
1160         * sysdeps/unix/sysv/linux/aarch64/libc.abilist: Update.
1161         * sysdeps/unix/sysv/linux/aarch64/libm.abilist: Likewise.
1162         * sysdeps/unix/sysv/linux/alpha/libc.abilist: Likewise.
1163         * sysdeps/unix/sysv/linux/alpha/libm.abilist: Likewise.
1164         * sysdeps/unix/sysv/linux/arm/libc.abilist: Likewise.
1165         * sysdeps/unix/sysv/linux/arm/libm.abilist: Likewise.
1166         * sysdeps/unix/sysv/linux/hppa/libc.abilist: Likewise.
1167         * sysdeps/unix/sysv/linux/hppa/libm.abilist: Likewise.
1168         * sysdeps/unix/sysv/linux/i386/libc.abilist: Likewise.
1169         * sysdeps/unix/sysv/linux/i386/libm.abilist: Likewise.
1170         * sysdeps/unix/sysv/linux/ia64/libc.abilist: Likewise.
1171         * sysdeps/unix/sysv/linux/ia64/libm.abilist: Likewise.
1172         * sysdeps/unix/sysv/linux/m68k/coldfire/libc.abilist: Likewise.
1173         * sysdeps/unix/sysv/linux/m68k/coldfire/libm.abilist: Likewise.
1174         * sysdeps/unix/sysv/linux/m68k/m680x0/libc.abilist: Likewise.
1175         * sysdeps/unix/sysv/linux/m68k/m680x0/libm.abilist: Likewise.
1176         * sysdeps/unix/sysv/linux/microblaze/libc.abilist: Likewise.
1177         * sysdeps/unix/sysv/linux/microblaze/libm.abilist: Likewise.
1178         * sysdeps/unix/sysv/linux/mips/mips32/fpu/libc.abilist: Likewise.
1179         * sysdeps/unix/sysv/linux/mips/mips32/libm.abilist: Likewise.
1180         * sysdeps/unix/sysv/linux/mips/mips32/nofpu/libc.abilist:
1181         Likewise.
1182         * sysdeps/unix/sysv/linux/mips/mips64/libm.abilist: Likewise.
1183         * sysdeps/unix/sysv/linux/mips/mips64/n32/libc.abilist: Likewise.
1184         * sysdeps/unix/sysv/linux/mips/mips64/n64/libc.abilist: Likewise.
1185         * sysdeps/unix/sysv/linux/nios2/libc.abilist: Likewise.
1186         * sysdeps/unix/sysv/linux/nios2/libm.abilist: Likewise.
1187         * sysdeps/unix/sysv/linux/powerpc/powerpc32/fpu/libc.abilist:
1188         Likewise.
1189         * sysdeps/unix/sysv/linux/powerpc/powerpc32/fpu/libm.abilist:
1190         Likewise.
1191         * sysdeps/unix/sysv/linux/powerpc/powerpc32/nofpu/libc.abilist:
1192         Likewise.
1193         * sysdeps/unix/sysv/linux/powerpc/powerpc32/nofpu/libm.abilist:
1194         Likewise.
1196         * sysdeps/unix/sysv/linux/powerpc/powerpc64/libc-le.abilist:
1197         Likewise.
1198         * sysdeps/unix/sysv/linux/powerpc/powerpc64/libc.abilist:
1199         Likewise.
1200         * sysdeps/unix/sysv/linux/powerpc/powerpc64/libm-le.abilist:
1201         Likewise.
1202         * sysdeps/unix/sysv/linux/powerpc/powerpc64/libm.abilist:
1203         Likewise.
1204         * sysdeps/unix/sysv/linux/s390/s390-32/libc.abilist: Likewise.
1205         * sysdeps/unix/sysv/linux/s390/s390-32/libm.abilist: Likewise.
1206         * sysdeps/unix/sysv/linux/s390/s390-64/libc.abilist: Likewise.
1207         * sysdeps/unix/sysv/linux/s390/s390-64/libm.abilist: Likewise.
1208         * sysdeps/unix/sysv/linux/sh/libc.abilist: Likewise.
1209         * sysdeps/unix/sysv/linux/sh/libm.abilist: Likewise.
1210         * sysdeps/unix/sysv/linux/sparc/sparc32/libc.abilist: Likewise.
1211         * sysdeps/unix/sysv/linux/sparc/sparc32/libm.abilist: Likewise.
1212         * sysdeps/unix/sysv/linux/sparc/sparc64/libc.abilist: Likewise.
1213         * sysdeps/unix/sysv/linux/sparc/sparc64/libm.abilist: Likewise.
1214         * sysdeps/unix/sysv/linux/tile/tilegx/tilegx32/libc.abilist:
1215         Likewise.
1216         * sysdeps/unix/sysv/linux/tile/tilegx/tilegx32/libm.abilist:
1217         Likewise.
1218         * sysdeps/unix/sysv/linux/tile/tilegx/tilegx64/libc.abilist:
1219         Likewise.
1220         * sysdeps/unix/sysv/linux/tile/tilegx/tilegx64/libm.abilist:
1221         Likewise.
1222         * sysdeps/unix/sysv/linux/tile/tilepro/libc.abilist: Likewise.
1223         * sysdeps/unix/sysv/linux/tile/tilepro/libm.abilist: Likewise.
1224         * sysdeps/unix/sysv/linux/x86_64/64/libc.abilist: Likewise.
1225         * sysdeps/unix/sysv/linux/x86_64/64/libm.abilist: Likewise.
1226         * sysdeps/unix/sysv/linux/x86_64/x32/libc.abilist: Likewise.
1227         * sysdeps/unix/sysv/linux/x86_64/x32/libm.abilist: Likewise.
1228         * sysdeps/i386/fpu/libm-test-ulps: Likewise.
1229         * sysdeps/i386/i686/fpu/multiarch/libm-test-ulps: Likewise.
1231 2017-12-06  Joseph Myers  <joseph@codesourcery.com>
1233         * stdlib/strtof.c: Include <bits/floatn.h>
1234         [__HAVE_FLOAT32 && !__HAVE_DISTINCT_FLOAT32] (strtof32): Define
1235         and later undefine as macro.  Define as weak alias if
1236         [!USE_WIDE_CHAR].
1237         [__HAVE_FLOAT32 && !__HAVE_DISTINCT_FLOAT32] (wcstof32): Define
1238         and later undefine as macro.  Define as weak alias if
1239         [USE_WIDE_CHAR].
1240         * stdlib/strtof_l.c: Include <bits/floatn.h>
1241         [__HAVE_FLOAT32 && !__HAVE_DISTINCT_FLOAT32] (strtof32_l): Define
1242         and later undefine as macro.  Define as weak alias if
1243         [!USE_WIDE_CHAR].
1244         [__HAVE_FLOAT32 && !__HAVE_DISTINCT_FLOAT32] (wcstof32_l): Define
1245         and later undefine as macro.  Define as weak alias if
1246         [USE_WIDE_CHAR].
1248         * stdlib/strfromf.c: Include <bits/floatn.h>.
1249         [__HAVE_FLOAT32 && !__HAVE_DISTINCT_FLOAT32] (strfromf32): Define
1250         and later undefine as macro and define as weak alias.
1252         * math/test-float32.h: New file.
1254         * sysdeps/generic/libm-alias-float.h: Include <bits/floatn.h>.
1255         [__HAVE_FLOAT32 && !__HAVE_DISTINCT_FLOAT32]
1256         (libm_alias_float_other_r): Create f32 alias.
1257         (libm_alias_float_r): Use semicolon before call to
1258         libm_alias_float_other_r.
1260         * sysdeps/ia64/fpu/e_exp2f.S (__exp2f): Use exp2 not __exp2 as
1261         second argument to libm_alias_float_other.
1262         * sysdeps/ia64/fpu/e_log2f.S (__log2f): Use log2 not __log2 as
1263         second argument to libm_alias_float_other.
1264         * sysdeps/ia64/fpu/e_powf.S (__powf): Use pow not __pow as second
1265         argument to libm_alias_float_other.
1267         [BZ #22561]
1268         * math/s_cacosh_template.c (M_DECL_FUNC (__cacosh)): Use pi/2 for
1269         real part of result for argument 0 + i * NaN.
1270         * math/libm-test-cacosh.inc (cacosh_test_data): Update expected
1271         results for tests of 0 + i * NaN.
1273 2017-12-06  Adhemerval Zanella  <adhemerval.zanella@linaro.org>
1275         * sysdeps/alpha/fpu/libm-test-ulps: Update.
1277 2017-12-06  David S. Miller  <davem@davemloft.net>
1279         * sysdeps/sparc/fpu/libm-test-ulps: Update
1280         exp_{downward,towardzero,upward} ulps.
1282 2017-12-06  Joseph Myers  <joseph@codesourcery.com>
1284         * sysdeps/ieee754/ldbl-96/e_j1l.c (qone): Don't make local
1285         variables static.
1287         * sysdeps/ieee754/ldbl-128/e_j0l.c (Y0_2N): Make const.
1288         (Y0_2D): Likewise.
1289         * sysdeps/ieee754/ldbl-128/e_j1l.c (Y0_2N): Likewise.
1290         (Y0_2D): Likewise.
1291         * sysdeps/ieee754/ldbl-128ibm/e_j0l.c (Y0_2N): Likewise.
1292         (Y0_2D): Likewise.
1293         * sysdeps/ieee754/ldbl-128ibm/e_j1l.c (Y0_2N): Likewise.
1294         (Y0_2D): Likewise.
1296 2017-12-06  Mike FABIAN  <mfabian@redhat.com>
1298         [BZ #22515]
1299         * localedata/Makefile: Add hsb_DE.UTF-8 to test-input
1300         and to the list of locales to be built for testing.
1301         * localedata/hsb_DE.UTF-8.in: New file for testing the collation.
1302         * localedata/locales/hsb_DE (LC_COLLATE): Use “copy "iso14651_t1"”
1303         and build the collation rules upon that.
1305 2017-12-06  Rajalakshmi Srinivasaraghavan  <raji@linux.vnet.ibm.com>
1307         * NEWS: Add sinf to list of optimized functions.
1309 2017-12-06  Joseph Myers  <joseph@codesourcery.com>
1311         * bits/floatn-common.h (__HAVE_FLOAT64): Define to 1.
1312         (__HAVE_FLOAT32X): Likewise.
1313         * manual/math.texi (Mathematics): Document support for _Float64
1314         and _Float32x.
1315         * math/Makefile (test-types): Add float64 and float32x.
1316         * math/Versions (GLIBC_2.27): Add _Float64 and _Float32x
1317         functions.
1318         * stdlib/Versions (GLIBC_2.27): Likewise.
1319         * wcsmbs/Versions (GLIBC_2.27): Likewise.
1320         * sysdeps/unix/sysv/linux/aarch64/libc.abilist: Update.
1321         * sysdeps/unix/sysv/linux/aarch64/libm.abilist: Likewise.
1322         * sysdeps/unix/sysv/linux/alpha/libc.abilist: Likewise.
1323         * sysdeps/unix/sysv/linux/alpha/libm.abilist: Likewise.
1324         * sysdeps/unix/sysv/linux/arm/libc.abilist: Likewise.
1325         * sysdeps/unix/sysv/linux/arm/libm.abilist: Likewise.
1326         * sysdeps/unix/sysv/linux/hppa/libc.abilist: Likewise.
1327         * sysdeps/unix/sysv/linux/hppa/libm.abilist: Likewise.
1328         * sysdeps/unix/sysv/linux/i386/libc.abilist: Likewise.
1329         * sysdeps/unix/sysv/linux/i386/libm.abilist: Likewise.
1330         * sysdeps/unix/sysv/linux/ia64/libc.abilist: Likewise.
1331         * sysdeps/unix/sysv/linux/ia64/libm.abilist: Likewise.
1332         * sysdeps/unix/sysv/linux/m68k/coldfire/libc.abilist: Likewise.
1333         * sysdeps/unix/sysv/linux/m68k/coldfire/libm.abilist: Likewise.
1334         * sysdeps/unix/sysv/linux/m68k/m680x0/libc.abilist: Likewise.
1335         * sysdeps/unix/sysv/linux/m68k/m680x0/libm.abilist: Likewise.
1336         * sysdeps/unix/sysv/linux/microblaze/libc.abilist: Likewise.
1337         * sysdeps/unix/sysv/linux/microblaze/libm.abilist: Likewise.
1338         * sysdeps/unix/sysv/linux/mips/mips32/fpu/libc.abilist: Likewise.
1339         * sysdeps/unix/sysv/linux/mips/mips32/libm.abilist: Likewise.
1340         * sysdeps/unix/sysv/linux/mips/mips32/nofpu/libc.abilist:
1341         Likewise.
1342         * sysdeps/unix/sysv/linux/mips/mips64/libm.abilist: Likewise.
1343         * sysdeps/unix/sysv/linux/mips/mips64/n32/libc.abilist: Likewise.
1344         * sysdeps/unix/sysv/linux/mips/mips64/n64/libc.abilist: Likewise.
1345         * sysdeps/unix/sysv/linux/nios2/libc.abilist: Likewise.
1346         * sysdeps/unix/sysv/linux/nios2/libm.abilist: Likewise.
1347         * sysdeps/unix/sysv/linux/powerpc/powerpc32/fpu/libc.abilist:
1348         Likewise.
1349         * sysdeps/unix/sysv/linux/powerpc/powerpc32/fpu/libm.abilist:
1350         Likewise.
1351         * sysdeps/unix/sysv/linux/powerpc/powerpc32/nofpu/libc.abilist:
1352         Likewise.
1353         * sysdeps/unix/sysv/linux/powerpc/powerpc32/nofpu/libm.abilist:
1354         Likewise.
1355         * sysdeps/unix/sysv/linux/powerpc/powerpc64/libc-le.abilist:
1356         Likewise.
1357         * sysdeps/unix/sysv/linux/powerpc/powerpc64/libc.abilist:
1358         Likewise.
1359         * sysdeps/unix/sysv/linux/powerpc/powerpc64/libm-le.abilist:
1360         Likewise.
1361         * sysdeps/unix/sysv/linux/powerpc/powerpc64/libm.abilist:
1362         Likewise.
1363         * sysdeps/unix/sysv/linux/s390/s390-32/libc.abilist: Likewise.
1364         * sysdeps/unix/sysv/linux/s390/s390-32/libm.abilist: Likewise.
1365         * sysdeps/unix/sysv/linux/s390/s390-64/libc.abilist: Likewise.
1366         * sysdeps/unix/sysv/linux/s390/s390-64/libm.abilist: Likewise.
1367         * sysdeps/unix/sysv/linux/sh/libc.abilist: Likewise.
1368         * sysdeps/unix/sysv/linux/sh/libm.abilist: Likewise.
1369         * sysdeps/unix/sysv/linux/sparc/sparc32/libc.abilist: Likewise.
1370         * sysdeps/unix/sysv/linux/sparc/sparc32/libm.abilist: Likewise.
1371         * sysdeps/unix/sysv/linux/sparc/sparc64/libc.abilist: Likewise.
1372         * sysdeps/unix/sysv/linux/sparc/sparc64/libm.abilist: Likewise.
1373         * sysdeps/unix/sysv/linux/tile/tilegx/tilegx32/libc.abilist:
1374         Likewise.
1375         * sysdeps/unix/sysv/linux/tile/tilegx/tilegx32/libm.abilist:
1376         Likewise.
1377         * sysdeps/unix/sysv/linux/tile/tilegx/tilegx64/libc.abilist:
1378         Likewise.
1379         * sysdeps/unix/sysv/linux/tile/tilegx/tilegx64/libm.abilist:
1380         Likewise.
1381         * sysdeps/unix/sysv/linux/tile/tilepro/libc.abilist: Likewise.
1382         * sysdeps/unix/sysv/linux/tile/tilepro/libm.abilist: Likewise.
1383         * sysdeps/unix/sysv/linux/x86_64/64/libc.abilist: Likewise.
1384         * sysdeps/unix/sysv/linux/x86_64/64/libm.abilist: Likewise.
1385         * sysdeps/unix/sysv/linux/x86_64/x32/libc.abilist: Likewise.
1386         * sysdeps/unix/sysv/linux/x86_64/x32/libm.abilist: Likewise.
1387         * sysdeps/i386/fpu/libm-test-ulps: Likewise.
1388         * sysdeps/i386/i686/fpu/multiarch/libm-test-ulps: Likewise.
1390 2017-12-05  Joseph Myers  <joseph@codesourcery.com>
1392         * bits/floatn-common.h: Include <bits/long-double.h>.
1393         [__HAVE_FLOAT64 && (!__GNUC_PREREQ (7, 0) || defined __cplusplus)
1394         && __NO_LONG_DOUBLE_MATH] (__f64): Use suffix 'l'.
1395         [__HAVE_FLOAT64 && (!__GNUC_PREREQ (7, 0) || defined __cplusplus)
1396         && __NO_LONG_DOUBLE_MATH] (__CFLOAT64): Use _Complex long double.
1397         [__HAVE_FLOAT64 && (!__GNUC_PREREQ (7, 0) || defined __cplusplus)
1398         && __NO_LONG_DOUBLE_MATH] (_Float64): Use long double.
1399         [__HAVE_FLOAT64 && !__GNUC_PREREQ (7, 0) && __NO_LONG_DOUBLE_MATH]
1400         (__builtin_huge_valf64): Use __builtin_huge_vall.
1401         [__HAVE_FLOAT64 && !__GNUC_PREREQ (7, 0) && __NO_LONG_DOUBLE_MATH]
1402         (__builtin_inff64): Use __builtin_infl.
1403         [__HAVE_FLOAT64 && !__GNUC_PREREQ (7, 0) && __NO_LONG_DOUBLE_MATH]
1404         (__builtin_nanf64): Use __builtin_nanl.
1405         [__HAVE_FLOAT64 && !__GNUC_PREREQ (7, 0) && __NO_LONG_DOUBLE_MATH]
1406         (__builtin_nansf64): Use __builtin_nansl.
1408 2017-12-05  Rogerio A. Cardoso  <rcardoso@linux.vnet.ibm.com>,
1409             Paul E. Murphy  <murphyp@linux.vnet.ibm.com>,
1410             Carlos O'Donnell <carlos@redhat.com>
1412         * elf/dl-tunables.list: Add elision parameters.
1413         * manual/tunables.texi: Add entries about elision tunable.
1414         * sysdeps/unix/sysv/linux/powerpc/elision-conf.c:
1415         Add callback functions to dynamically enable/disable elision.
1416         Add multiple callbacks functions to set elision parameters.
1417         Deleted __libc_enable_secure check.
1418         * sysdeps/unix/sysv/linux/s390/elision-conf.c: Likewise.
1419         * sysdeps/unix/sysv/linux/x86/elision-conf.c: Likewise.
1420         * configure: Regenerated.
1421         * configure.ac: Option enable_lock_elision was deleted.
1422         * config.h.in: ENABLE_LOCK_ELISION flag was deleted.
1423         * config.make.in: Remove references to enable_lock_elision.
1424         * manual/install.texi: Elision configure option was removed.
1425         * INSTALL: Regenerated to remove enable_lock_elision.
1426         * nptl/Makefile:
1427         Disable elision so it can verify error case for destroying a mutex.
1428         * sysdeps/powerpc/nptl/elide.h:
1429         Cleanup ENABLE_LOCK_ELISION check.
1430         Deleted macros for the case when ENABLE_LOCK_ELISION was not defined.
1431         * sysdeps/s390/configure: Regenerated.
1432         * sysdeps/s390/configure.ac: Remove references to enable_lock_elision..
1433         * nptl/tst-mutex8.c:
1434         Deleted all #ifndef ENABLE_LOCK_ELISION from the test.
1435         * sysdeps/powerpc/powerpc32/sysdep.h:
1436         Deleted all ENABLE_LOCK_ELISION checks.
1437         * sysdeps/powerpc/powerpc64/sysdep.h: Likewise.
1438         * sysdeps/powerpc/sysdep.h: Likewise.
1439         * sysdeps/s390/nptl/bits/pthreadtypes-arch.h: Likewise.
1440         * sysdeps/unix/sysv/linux/powerpc/force-elision.h: Likewise.
1441         * sysdeps/unix/sysv/linux/s390/elision-conf.h: Likewise.
1442         * sysdeps/unix/sysv/linux/s390/force-elision.h: Likewise.
1443         * sysdeps/unix/sysv/linux/s390/lowlevellock.h: Likewise.
1444         * sysdeps/unix/sysv/linux/s390/Makefile: Remove references to
1445         enable-lock-elision.
1447 2017-12-05  Joseph Myers  <joseph@codesourcery.com>
1449         * stdlib/strtod.c: Include <bits/floatn.h>.
1450         (BUILD_DOUBLE): New macro.
1451         [BUILD_DOUBLE && __HAVE_FLOAT64 && !__HAVE_DISTINCT_FLOAT64]
1452         (strtof64): Define and later undefine as macro.  Define as weak
1453         alias if [!USE_WIDE_CHAR].
1454         [BUILD_DOUBLE && __HAVE_FLOAT64 && !__HAVE_DISTINCT_FLOAT64]
1455         (wcstof64): Define and later undefine as macro.  Define as weak
1456         alias if [USE_WIDE_CHAR].
1457         [BUILD_DOUBLE && __HAVE_FLOAT32X && !__HAVE_DISTINCT_FLOAT32X]
1458         (strtof32x): Define and later undefine as macro.  Define as weak
1459         alias if [!USE_WIDE_CHAR].
1460         [BUILD_DOUBLE && __HAVE_FLOAT32X && !__HAVE_DISTINCT_FLOAT32X]
1461         (wcstof32x): Define and later undefine as macro.  Define as weak
1462         alias if [USE_WIDE_CHAR].
1463         * stdlib/strtod_l.c: Include <bits/floatn.h>.
1464         (BUILD_DOUBLE): New macro.
1465         [BUILD_DOUBLE && __HAVE_FLOAT64 && !__HAVE_DISTINCT_FLOAT64]
1466         (strtof64_l): Define and later undefine as macro.  Define as weak
1467         alias if [!USE_WIDE_CHAR].
1468         [BUILD_DOUBLE && __HAVE_FLOAT64 && !__HAVE_DISTINCT_FLOAT64]
1469         (wcstof64_l): Define and later undefine as macro.  Define as weak
1470         alias if [USE_WIDE_CHAR].
1471         [BUILD_DOUBLE && __HAVE_FLOAT32X && !__HAVE_DISTINCT_FLOAT32X]
1472         (strtof32x_l): Define and later undefine as macro.  Define as weak
1473         alias if [!USE_WIDE_CHAR].
1474         [BUILD_DOUBLE && __HAVE_FLOAT32X && !__HAVE_DISTINCT_FLOAT32X]
1475         (wcstof32x_l): Define and later undefine as macro.  Define as weak
1476         alias if [USE_WIDE_CHAR].
1478 2017-12-05  Adhemerval Zanella  <adhemerval.zanella@linaro.org>
1480         * sysdeps/ieee754/flt-32/s_sinf.c (ones): Define as double.
1481         (reduced): Use ones as double instead of integer.
1483 2017-12-05  Szabolcs Nagy  <szabolcs.nagy@arm.com>
1485         * sysdeps/ieee754/flt-32/s_sinf.c (sinf): Use isless.
1487 2017-12-05  Joseph Myers  <joseph@codesourcery.com>
1489         * stdlib/strfromd.c: Include <bits/floatn.h>.
1490         [__HAVE_FLOAT64 && !__HAVE_DISTINCT_FLOAT64] (strfromf64): Define
1491         and later undefine as macro and define as weak alias.
1492         [__HAVE_FLOAT32X && !__HAVE_DISTINCT_FLOAT32X] (strfromf32x):
1493         Likewise.
1495         * math/test-float32x.h: New file.
1496         * math/test-float64.h: Likewise.
1498         * sysdeps/generic/libm-alias-double.h: Include <bits/floatn.h>.
1499         (libm_alias_double_other_r_f64): New macro.
1500         (libm_alias_double_other_r_f32x): Likewise.
1501         (libm_alias_double_other_r): Use libm_alias_double_other_r_f64 and
1502         libm_alias_double_other_r_f32x.
1503         (libm_alias_double_r): Use semicolon before call to
1504         libm_alias_double_other_r.
1505         * sysdeps/ieee754/ldbl-opt/libm-alias-double.h: Include
1506         <bits/floatn.h>.
1507         (libm_alias_double_other_r_f64): New macro.
1508         (libm_alias_double_other_r_f32x): Likewise.
1509         (libm_alias_double_other_r): Use libm_alias_double_other_r_f64 and
1510         libm_alias_double_other_r_f32x.
1512 2017-12-05  H.J. Lu  <hongjiu.lu@intel.com>
1514         * sysdeps/ieee754/flt-32/s_sinf.c (reduced): Replace long with
1515         int.
1516         (SINF_FUNC): Likewise.  Replace floor with simple casts.
1518 2017-12-05  Mike FABIAN  <mfabian@redhat.com>
1520         [BZ #22517]
1521         * localedata/Makefile: Add et_EE.UTF-8 to test-input
1522         and to the list of locales to be built for testing.
1523         * localedata/et_EE.UTF-8.in: New file for testing the collation.
1524         * localedata/locales/et_EE (LC_COLLATE): Use “copy "iso14651_t1"”
1525         and build the collation rules upon that.
1527 2017-12-05  Chris Metcalf  <cmetcalf@mellanox.com>
1529         * sysdeps/tile/tilegx/string-endian.h (VECOP): Provide working
1530         replacements for __insn_xxx builtins for v1cmpeq, v1cmpltu,
1531         v1cmpne, v1add, v1shru, v1shl (register and immediate versions).
1532         * sysdeps/tile/tilegx/memchr.c (__memchr): Use VECOP function
1533         instead of __insn__xxx.
1534         * sysdeps/tile/tilegx/rawmemchr.c (__rawmemchr): Likewise.
1535         * sysdeps/tile/tilegx/strstr.c (strcasechr): Likewise.
1536         * sysdeps/tile/tilegx/strrchr.c (strrchr): Likewise.
1537         * sysdeps/tile/tilegx/strlen.c (strlen): Likewise.
1538         * sysdeps/tile/tilegx/strchrnul.c (__strchrnul): Likewise.
1539         * sysdeps/tile/tilegx/strchr.c (strchr): Likewise.
1541 2017-12-05  Florian Weimer  <fweimer@redhat.com>
1543         Linux: Implement interfaces for memory protection keys
1544         * support/Makefile (libsupport-routines): Add xraise, xsigaction,
1545         xsignal, xsysconf.
1546         * support/xsignal.h (xraise, xsignal, xsigaction): Declare.
1547         * support/xunistd.h (xsysconf): Declare.
1548         * support/xraise.c: New file.
1549         * support/xsigaction.c: Likewise.
1550         * support/xsignal.c: Likewise.
1551         * support/xsysconf.c: Likewise.
1552         * sysdeps/unix/sysv/linux/Makefile [misc] (routines): Add
1553         pkey_set, pkey_get, pkey_mprotect.
1554         [misc] (tests): Add tst-pkey.
1555         (tst-pkey): Link with -lpthread.
1556         * sysdeps/unix/sysv/linux/Versions (GLIBC_2.27): Add pkey_alloc,
1557         pkey_free, pkey_set, pkey_get, pkey_mprotect.
1558         * sysdeps/unix/sysv/linux/bits/mman-linux.h (PKEY_DISABLE_ACCESS)
1559         (PKEY_DISABLE_WRITE): Define.
1560         (pkey_alloc, pkey_free, pkey_set, pkey_get, pkey_mprotect):
1561         Declare.
1562         * sysdeps/unix/sysv/linux/bits/siginfo-consts.h (SEGV_BNDERR)
1563         (SEGV_PKUERR): Add.
1564         * sysdeps/unix/sysv/linux/pkey_get.c: New file.
1565         * sysdeps/unix/sysv/linux/pkey_set.c: Likewise.
1566         * sysdeps/unix/sysv/linux/pkey_mprotect.c: Likewise.
1567         * sysdeps/unix/sysv/linux/syscalls.list (pkey_alloc, pkey_free):
1568         Add.
1569         * sysdeps/unix/sysv/linux/tst-pkey.c: New file.
1570         * sysdeps/unix/sysv/linux/x86/arch-pkey.h: Likewise.
1571         * sysdeps/unix/sysv/linux/x86/pkey_get.c: Likewise.
1572         * sysdeps/unix/sysv/linux/x86/pkey_set.c: Likewise.
1573         * sysdeps/unix/sysv/linux/**.abilist: Update.
1575 2017-12-05  Florian Weimer  <fweimer@redhat.com>
1577         * support/tst-test_compare.c (subprocess): Use long long instead
1578         of long argument for consistent type width across 32-bit and
1579         64-bit architectures.
1580         (do_test): Adjust expected output.
1582 2017-12-05  Joseph Myers  <joseph@codesourcery.com>
1584         * sysdeps/powerpc/fpu/s_cosf.c: Include <libm-alias-float.h>.
1585         (cosf): Define using libm_alias_float.
1586         * sysdeps/powerpc/fpu/s_fabs.S: Include <libm-alias-float.h>.
1587         (fabsf): Define using libm_alias_float.
1588         * sysdeps/powerpc/fpu/s_fmaf.S: Include <libm-alias-float.h>.
1589         (fmaf): Define using libm_alias_float.
1590         * sysdeps/powerpc/fpu/s_rintf.c: Include <libm-alias-float.h>.
1591         (rintf): Define using libm_alias_float.
1592         * sysdeps/powerpc/fpu/s_sinf.c: Include <libm-alias-float.h>.
1593         (sinf): Define using libm_alias_float.
1594         * sysdeps/powerpc/power5+/fpu/s_modff.c: Include
1595         <libm-alias-float.h>.
1596         (modff): Define using libm_alias_float.
1597         * sysdeps/powerpc/power7/fpu/s_logbf.c: Include
1598         <libm-alias-float.h>.
1599         (logbf): Define using libm_alias_float.
1600         * sysdeps/powerpc/powerpc32/fpu/s_ceilf.S: Include
1601         <libm-alias-float.h>.
1602         (ceilf): Define using libm_alias_float.
1603         * sysdeps/powerpc/powerpc32/fpu/s_copysign.S: Include
1604         <libm-alias-float.h>.
1605         (copysignf): Define using libm_alias_float.
1606         * sysdeps/powerpc/powerpc32/fpu/s_floorf.S: Include
1607         <libm-alias-float.h>.
1608         (floorf): Define using libm_alias_float.
1609         * sysdeps/powerpc/powerpc32/fpu/s_llrintf.c: Include
1610         <libm-alias-float.h>.
1611         (llrintf): Define using libm_alias_float.
1612         * sysdeps/powerpc/powerpc32/fpu/s_llroundf.c: Include
1613         <libm-alias-float.h>.
1614         (llroundf): Define using libm_alias_float.
1615         * sysdeps/powerpc/powerpc32/fpu/s_lrint.S: Include
1616         <libm-alias-float.h>.
1617         (lrintf): Define using libm_alias_float.
1618         * sysdeps/powerpc/powerpc32/fpu/s_lround.S: Include
1619         <libm-alias-float.h>.
1620         (lroundf): Define using libm_alias_float.
1621         * sysdeps/powerpc/powerpc32/fpu/s_nearbyintf.S: Include
1622         <libm-alias-float.h>.
1623         (nearbyintf): Define using libm_alias_float.
1624         * sysdeps/powerpc/powerpc32/fpu/s_rintf.S: Include
1625         <libm-alias-float.h>.
1626         (rintf): Define using libm_alias_float.
1627         * sysdeps/powerpc/powerpc32/fpu/s_roundf.S: Include
1628         <libm-alias-float.h>.
1629         (roundf): Define using libm_alias_float.
1630         * sysdeps/powerpc/powerpc32/fpu/s_truncf.S: Include
1631         <libm-alias-float.h>.
1632         (truncf): Define using libm_alias_float.
1633         * sysdeps/powerpc/powerpc32/power4/fpu/multiarch/s_ceilf.c:
1634         Include <libm-alias-float.h>.
1635         (ceilf): Define using libm_alias_float.
1636         * sysdeps/powerpc/powerpc32/power4/fpu/multiarch/s_copysignf.c:
1637         Include <libm-alias-float.h>.
1638         (copysignf): Define using libm_alias_float.
1639         * sysdeps/powerpc/powerpc32/power4/fpu/multiarch/s_floorf.c:
1640         Include <libm-alias-float.h>.
1641         (floorf): Define using libm_alias_float.
1642         * sysdeps/powerpc/powerpc32/power4/fpu/multiarch/s_llrintf.c:
1643         Include <libm-alias-float.h>.
1644         (llrintf): Define using libm_alias_float.
1645         * sysdeps/powerpc/powerpc32/power4/fpu/multiarch/s_llroundf.c:
1646         Include <libm-alias-float.h>.
1647         (llroundf): Define using libm_alias_float.
1648         * sysdeps/powerpc/powerpc32/power4/fpu/multiarch/s_logbf.c:
1649         Include <libm-alias-float.h>.
1650         (logbf): Define using libm_alias_float.
1651         * sysdeps/powerpc/powerpc32/power4/fpu/multiarch/s_lrintf.c:
1652         Include <libm-alias-float.h>.
1653         (lrintf): Define using libm_alias_float.
1654         * sysdeps/powerpc/powerpc32/power4/fpu/multiarch/s_lroundf.c:
1655         Include <libm-alias-float.h>.
1656         (lroundf): Define using libm_alias_float.
1657         * sysdeps/powerpc/powerpc32/power4/fpu/multiarch/s_modff.c:
1658         Include <libm-alias-float.h>.
1659         (modff): Define using libm_alias_float.
1660         * sysdeps/powerpc/powerpc32/power4/fpu/multiarch/s_roundf.c:
1661         Include <libm-alias-float.h>.
1662         (roundf): Define using libm_alias_float.
1663         * sysdeps/powerpc/powerpc32/power4/fpu/multiarch/s_truncf.c:
1664         Include <libm-alias-float.h>.
1665         (truncf): Define using libm_alias_float.
1666         * sysdeps/powerpc/powerpc32/power4/fpu/s_llrintf.S: Include
1667         <libm-alias-float.h>.
1668         (llrintf): Define using libm_alias_float.
1669         * sysdeps/powerpc/powerpc32/power4/fpu/s_llround.S: Include
1670         <libm-alias-float.h>.
1671         (llroundf): Define using libm_alias_float.
1672         * sysdeps/powerpc/powerpc32/power5+/fpu/s_ceilf.S: Include
1673         <libm-alias-float.h>.
1674         (ceilf): Define using libm_alias_float.
1675         * sysdeps/powerpc/powerpc32/power5+/fpu/s_floorf.S: Include
1676         <libm-alias-float.h>.
1677         (floorf): Define using libm_alias_float.
1678         * sysdeps/powerpc/powerpc32/power5+/fpu/s_llround.S: Include
1679         <libm-alias-float.h>.
1680         (llroundf): Define using libm_alias_float.
1681         * sysdeps/powerpc/powerpc32/power5+/fpu/s_lround.S: Include
1682         <libm-alias-float.h>.
1683         (lroundf): Define using libm_alias_float.
1684         * sysdeps/powerpc/powerpc32/power5+/fpu/s_roundf.S: Include
1685         <libm-alias-float.h>.
1686         (roundf): Define using libm_alias_float.
1687         * sysdeps/powerpc/powerpc32/power5+/fpu/s_truncf.S: Include
1688         <libm-alias-float.h>.
1689         (truncf): Define using libm_alias_float.
1690         * sysdeps/powerpc/powerpc32/power6/fpu/s_copysign.S: Include
1691         <libm-alias-float.h>.
1692         (copysignf): Define using libm_alias_float.
1693         * sysdeps/powerpc/powerpc32/power6/fpu/s_llrintf.S: Include
1694         <libm-alias-float.h>.
1695         (llrintf): Define using libm_alias_float.
1696         * sysdeps/powerpc/powerpc32/power6/fpu/s_llround.S: Include
1697         <libm-alias-float.h>.
1698         (llroundf): Define using libm_alias_float.
1699         * sysdeps/powerpc/powerpc32/power6x/fpu/s_lrint.S: Include
1700         <libm-alias-float.h>.
1701         (lrintf): Define using libm_alias_float.
1702         * sysdeps/powerpc/powerpc32/power6x/fpu/s_lround.S: Include
1703         <libm-alias-float.h>.
1704         (lroundf): Define using libm_alias_float.
1705         * sysdeps/powerpc/powerpc64/fpu/multiarch/s_ceilf.c: Include
1706         <libm-alias-float.h>.
1707         (ceilf): Define using libm_alias_float.
1708         * sysdeps/powerpc/powerpc64/fpu/multiarch/s_copysignf.c: Include
1709         <libm-alias-float.h>.
1710         (copysignf): Define using libm_alias_float.
1711         * sysdeps/powerpc/powerpc64/fpu/multiarch/s_cosf.c: Include
1712         <libm-alias-float.h>.
1713         (cosf): Define using libm_alias_float.
1714         * sysdeps/powerpc/powerpc64/fpu/multiarch/s_floorf.c: Include
1715         <libm-alias-float.h>.
1716         (floorf): Define using libm_alias_float.
1717         * sysdeps/powerpc/powerpc64/fpu/multiarch/s_llrintf.c: Include
1718         <libm-alias-float.h>.
1719         (llrintf): Define using libm_alias_float.
1720         * sysdeps/powerpc/powerpc64/fpu/multiarch/s_llroundf.c: Include
1721         <libm-alias-float.h>.
1722         (llroundf): Define using libm_alias_float.
1723         * sysdeps/powerpc/powerpc64/fpu/multiarch/s_logbf.c: Include
1724         <libm-alias-float.h>.
1725         (logbf): Define using libm_alias_float.
1726         * sysdeps/powerpc/powerpc64/fpu/multiarch/s_modff.c: Include
1727         <libm-alias-float.h>.
1728         (modff): Define using libm_alias_float.
1729         * sysdeps/powerpc/powerpc64/fpu/multiarch/s_roundf.c: Include
1730         <libm-alias-float.h>.
1731         (roundf): Define using libm_alias_float.
1732         * sysdeps/powerpc/powerpc64/fpu/multiarch/s_sinf.c: Include
1733         <libm-alias-float.h>.
1734         (sinf): Define using libm_alias_float.
1735         * sysdeps/powerpc/powerpc64/fpu/multiarch/s_truncf.c: Include
1736         <libm-alias-float.h>.
1737         (truncf): Define using libm_alias_float.
1738         * sysdeps/powerpc/powerpc64/fpu/s_ceilf.S: Include
1739         <libm-alias-float.h>.
1740         (ceilf): Define using libm_alias_float.
1741         * sysdeps/powerpc/powerpc64/fpu/s_copysign.S: Include
1742         <libm-alias-float.h>.
1743         (copysignf): Define using libm_alias_float.
1744         * sysdeps/powerpc/powerpc64/fpu/s_floorf.S: Include
1745         <libm-alias-float.h>.
1746         (floorf): Define using libm_alias_float.
1747         * sysdeps/powerpc/powerpc64/fpu/s_llrint.S: Include
1748         <libm-alias-float.h>.
1749         (llrintf): Define using libm_alias_float.
1750         * sysdeps/powerpc/powerpc64/fpu/s_llroundf.S: Include
1751         <libm-alias-float.h>.
1752         (llroundf): Define using libm_alias_float.
1753         * sysdeps/powerpc/powerpc64/fpu/s_nearbyintf.S: Include
1754         <libm-alias-float.h>.
1755         (nearbyintf): Define using libm_alias_float.
1756         * sysdeps/powerpc/powerpc64/fpu/s_rintf.S: Include
1757         <libm-alias-float.h>.
1758         (rintf): Define using libm_alias_float.
1759         * sysdeps/powerpc/powerpc64/fpu/s_roundf.S: Include
1760         <libm-alias-float.h>.
1761         (roundf): Define using libm_alias_float.
1762         * sysdeps/powerpc/powerpc64/fpu/s_truncf.S: Include
1763         <libm-alias-float.h>.
1764         (truncf): Define using libm_alias_float.
1765         * sysdeps/powerpc/powerpc64/power5+/fpu/s_ceilf.S: Include
1766         <libm-alias-float.h>.
1767         (ceilf): Define using libm_alias_float.
1768         * sysdeps/powerpc/powerpc64/power5+/fpu/s_floorf.S: Include
1769         <libm-alias-float.h>.
1770         (floorf): Define using libm_alias_float.
1771         * sysdeps/powerpc/powerpc64/power5+/fpu/s_llround.S: Include
1772         <libm-alias-float.h>.
1773         (llroundf): Define using libm_alias_float.
1774         * sysdeps/powerpc/powerpc64/power5+/fpu/s_roundf.S: Include
1775         <libm-alias-float.h>.
1776         (roundf): Define using libm_alias_float.
1777         * sysdeps/powerpc/powerpc64/power5+/fpu/s_truncf.S: Include
1778         <libm-alias-float.h>.
1779         (truncf): Define using libm_alias_float.
1780         * sysdeps/powerpc/powerpc64/power6/fpu/s_copysign.S: Include
1781         <libm-alias-float.h>.
1782         (copysignf): Define using libm_alias_float.
1783         * sysdeps/powerpc/powerpc64/power6x/fpu/s_llrint.S: Include
1784         <libm-alias-float.h>.
1785         (llrintf): Define using libm_alias_float.
1786         * sysdeps/powerpc/powerpc64/power6x/fpu/s_llround.S: Include
1787         <libm-alias-float.h>.
1788         (llroundf): Define using libm_alias_float.
1789         * sysdeps/powerpc/powerpc64/power8/fpu/s_cosf.S: Include
1790         <libm-alias-float.h>.
1791         (cosf): Define using libm_alias_float.
1792         * sysdeps/powerpc/powerpc64/power8/fpu/s_llrint.S: Include
1793         <libm-alias-float.h>.
1794         (llrintf): Define using libm_alias_float.
1795         * sysdeps/powerpc/powerpc64/power8/fpu/s_llround.S: Include
1796         <libm-alias-float.h>.
1797         (llroundf): Define using libm_alias_float.
1798         * sysdeps/powerpc/powerpc64/power8/fpu/s_sinf.S: Include
1799         <libm-alias-float.h>.
1800         (sinf): Define using libm_alias_float.
1802 2017-12-04  Florian Weimer  <fweimer@redhat.com>
1804         * support/check.h (TEST_COMPARE): Define.
1805         (support_test_compare_failure): Declare.
1806         * support/Makefile (libsupport-routines): Add
1807         support_test_compare_failure.
1808         (tests): Add tst-test_compare.
1809         * support /support_test_compare_failure.c: New file.
1810         * support/tst-test_compare.c: Likewise.
1812 2017-12-04  Mike FABIAN  <mfabian@redhat.com>
1814         [BZ #22527]
1815         *  localedata/locales/tr_TR (LC_COLLATE): Base collation rules
1816         on iso14651_t1. A test file localedata/tr_TR.UTF-8.in is already
1817         available, this rewrite of the collation rules does reproduce
1818         the test file in the same order.
1820 2017-12-04  Mike FABIAN  <mfabian@redhat.com>
1822         [BZ #10580]
1823         * localedata/locales/hr_HR (LC_TIME): Use two letters for the
1824         digraphs in the month and day names. Using single code points for
1825         digraphs is deprecated.  While there are dedicated Unicode
1826         codepoints, for the digraphs, these are included for backwards
1827         compatibility and modern texts use a sequence of Basic Latin
1828         characters. See: https://www.unicode.org/faq/ligature_digraph.html
1829         This makes the month and day names agree exactly with CLDR now,
1830         CLDR does not use the single code points for the digraphs either.
1832 2017-12-04  Chris Metcalf  <cmetcalf@mellanox.com>
1834         * sysdeps/tile/libm-test-ulps: Update ca{cos,sin,tan}{,h} ulps.
1836 2017-12-04  Joseph Myers  <joseph@codesourcery.com>
1838         * sysdeps/ieee754/flt-32/s_sinf.c (SINF_FUNC): Use __floor instead
1839         of floor.
1841 2017-12-04  Siddhesh Poyarekar  <siddhesh@sourceware.org>
1843         * sysdeps/aarch64/multiarch/memcpy_generic.S (__GI_memcpy):
1844         Define only for libc.so.
1846 2017-12-04  Stefan Liebler  <stli@linux.vnet.ibm.com>
1848         * sysdeps/unix/sysv/linux/s390/s390-64/sysdep.h
1849         (INTERNAL_VSYSCALL_CALL, CLOBBER_0, CLOBBER_1, CLOBBER_2,
1850          CLOBBER_3, CLOBBER_4, CLOBBER_5, CLOBBER_6,
1851         INTERNAL_VSYSCALL_NO_SYSCALL_FALLBACK): Remove.
1852         * sysdeps/unix/sysv/linux/s390/s390-32/sysdep.h: Likewise.
1854 2017-12-04  Rajalakshmi Srinivasaraghavan  <raji@linux.vnet.ibm.com>
1856         [BZ #5997]
1857         * sysdeps/ieee754/flt-32/s_sinf.c: New implementation.
1859 2017-12-02  John David Anglin  <danglin@gcc.gnu.org>
1861         [BZ libc/19170]
1862         * sysdeps/hppa/crti.S: Declare PREINIT_FUNCTION weak_extern when
1863         PREINIT_FUNCTION_WEAK is nonzero.
1864         (gmon_initializer): New function.  Put procedure label for it in
1865         .init_array section.
1866         (_init): Don't call PREINIT_FUNCTION.
1867         * sysdeps/hppa/crtn.S (__gmon_start__): Remove.
1868         * sysdeps/hppa/dl-lookupcfg.h (DL_FIXUP_MAKE_VALUE): Create null fixup
1869         value when map argument is null.
1871         * sysdeps/hppa/dl-fptr.c (elf_machine_resolve): Remove unnecessary
1872         depi instruction from PIC pc-relative sequence.
1873         * sysdeps/hppa/dl-fptr.h (ELF_MACHINE_LOAD_ADDRESS): Likewise.
1874         * sysdeps/hppa/dl-machine.h (elf_machine_dynamic): Likewise.
1875         (elf_machine_load_address): Likewise.
1876         (elf_machine_runtime_setup): Likewise.
1878 2017-12-02  Joseph Myers  <joseph@codesourcery.com>
1880         * sysdeps/powerpc/power7/fpu/s_logb.c: Include
1881         <libm-alias-double.h>.
1882         (logb): Define using libm_alias_double.
1883         * sysdeps/powerpc/powerpc32/fpu/s_copysign.S: Include
1884         <libm-alias-double.h>.
1885         (copysign): Define using libm_alias_double.
1886         * sysdeps/powerpc/powerpc32/fpu/s_llrint.c: Include
1887         <libm-alias-double.h>.
1888         (llrint): Define using libm_alias_double.
1889         * sysdeps/powerpc/powerpc32/fpu/s_llround.c: Include
1890         <libm-alias-double.h>.
1891         (llround): Define using libm_alias_double.
1892         * sysdeps/powerpc/powerpc32/fpu/s_lrint.S: Include
1893         <libm-alias-double.h>.
1894         (lrint): Define using libm_alias_double.
1895         * sysdeps/powerpc/powerpc32/fpu/s_lround.S: Include
1896         <libm-alias-double.h>.
1897         (lround): Define using libm_alias_double.
1898         * sysdeps/powerpc/powerpc32/power4/fpu/multiarch/s_copysign.c:
1899         Include <libm-alias-double.h>.
1900         (copysign): Define using libm_alias_double.
1901         * sysdeps/powerpc/powerpc32/power4/fpu/multiarch/s_llrint.c:
1902         Include <libm-alias-double.h>.
1903         (llrint): Define using libm_alias_double.
1904         * sysdeps/powerpc/powerpc32/power4/fpu/multiarch/s_llround.c:
1905         Include <libm-alias-double.h>.
1906         (llround): Define using libm_alias_double.
1907         * sysdeps/powerpc/powerpc32/power4/fpu/multiarch/s_logb.c: Include
1908         <libm-alias-double.h>.
1909         (logb): Define using libm_alias_double.
1910         * sysdeps/powerpc/powerpc32/power4/fpu/multiarch/s_lrint.c:
1911         Include <libm-alias-double.h>.
1912         (lrint): Define using libm_alias_double.
1913         * sysdeps/powerpc/powerpc32/power4/fpu/multiarch/s_lround.c:
1914         Include <libm-alias-double.h>.
1915         (lround): Define using libm_alias_double.
1916         * sysdeps/powerpc/powerpc32/power4/fpu/s_llrint.S: Include
1917         <libm-alias-double.h>.
1918         (llrint): Define using libm_alias_double.
1919         * sysdeps/powerpc/powerpc32/power4/fpu/s_llround.S: Include
1920         <libm-alias-double.h>.
1921         (llround): Define using libm_alias_double.
1922         * sysdeps/powerpc/powerpc32/power5+/fpu/s_llround.S: Include
1923         <libm-alias-double.h>.
1924         (llround): Define using libm_alias_double.
1925         * sysdeps/powerpc/powerpc32/power5+/fpu/s_lround.S: Include
1926         <libm-alias-double.h>.
1927         (lround): Define using libm_alias_double.
1928         * sysdeps/powerpc/powerpc32/power6/fpu/s_copysign.S: Include
1929         <libm-alias-double.h>.
1930         (copysign): Define using libm_alias_double.
1931         * sysdeps/powerpc/powerpc32/power6/fpu/s_llrint.S: Include
1932         <libm-alias-double.h>.
1933         (llrint): Define using libm_alias_double.
1934         * sysdeps/powerpc/powerpc32/power6/fpu/s_llround.S: Include
1935         <libm-alias-double.h>.
1936         (llround): Define using libm_alias_double.
1937         * sysdeps/powerpc/powerpc32/power6x/fpu/s_lrint.S: Include
1938         <libm-alias-double.h>.
1939         (lrint): Define using libm_alias_double.
1940         * sysdeps/powerpc/powerpc32/power6x/fpu/s_lround.S: Include
1941         <libm-alias-double.h>.
1942         (lround): Define using libm_alias_double.
1943         * sysdeps/powerpc/powerpc64/fpu/multiarch/s_copysign.c: Include
1944         <libm-alias-double.h>.
1945         (copysign): Define using libm_alias_double.
1946         * sysdeps/powerpc/powerpc64/fpu/multiarch/s_llrint.c: Include
1947         <libm-alias-double.h>.
1948         (llrint): Define using libm_alias_double.
1949         (lrint): Likewise.
1950         * sysdeps/powerpc/powerpc64/fpu/multiarch/s_llround.c: Include
1951         <libm-alias-double.h>.
1952         (llround): Define using libm_alias_double.
1953         (lround): Likewise.
1954         * sysdeps/powerpc/powerpc64/fpu/multiarch/s_logb.c: Include
1955         <libm-alias-double.h>.
1956         (logb): Define using libm_alias_double.
1957         * sysdeps/powerpc/powerpc64/fpu/s_copysign.S: Include
1958         <libm-alias-double.h>.
1959         (copysign): Define using libm_alias_double.
1960         * sysdeps/powerpc/powerpc64/fpu/s_llrint.S: Include
1961         <libm-alias-double.h>.
1962         (llrint): Define using libm_alias_double.
1963         (lrint): Likewise.
1964         * sysdeps/powerpc/powerpc64/fpu/s_llround.S: Include
1965         <libm-alias-double.h>.
1966         (llround): Define using libm_alias_double.
1967         (lround): Likewise.
1968         * sysdeps/powerpc/powerpc64/power5+/fpu/s_llround.S: Include
1969         <libm-alias-double.h>.
1970         (llround): Define using libm_alias_double.
1971         (lround): Likewise.
1972         * sysdeps/powerpc/powerpc64/power6/fpu/s_copysign.S: Include
1973         <libm-alias-double.h>.
1974         (copysign): Define using libm_alias_double.
1975         * sysdeps/powerpc/powerpc64/power6x/fpu/s_llrint.S: Include
1976         <libm-alias-double.h>.
1977         (llrint): Define using libm_alias_double.
1978         (lrint): Likewise.
1979         * sysdeps/powerpc/powerpc64/power6x/fpu/s_llround.S: Include
1980         <libm-alias-double.h>.
1981         (llround): Define using libm_alias_double.
1982         (lround): Likewise.
1983         * sysdeps/powerpc/powerpc64/power8/fpu/s_llrint.S: Include
1984         <libm-alias-double.h>.
1985         (llrint): Define using libm_alias_double.
1986         (lrint): Likewise.
1987         * sysdeps/powerpc/powerpc64/power8/fpu/s_llround.S: Include
1988         <libm-alias-double.h>.
1989         (llround): Define using libm_alias_double.
1990         (lround): Likewise.
1992 2017-12-01  Joseph Myers  <joseph@codesourcery.com>
1994         * sysdeps/powerpc/powerpc64/fpu/multiarch/s_llround.c
1995         [LONG_DOUBLE_COMPAT(libm, GLIBC_2_1)] (lroundl): Do not define
1996         compat symbol based on llround.
1998         * sysdeps/powerpc/power7/fpu/s_logb.c
1999         [LONG_DOUBLE_COMPAT (libm, GLIBC_2_0)] (logbl): Define as compat
2000         symbol based on __logb, not on logb.
2001         * sysdeps/powerpc/powerpc32/power4/fpu/multiarch/s_logb.c
2002         [LONG_DOUBLE_COMPAT (libm, GLIBC_2_0)] (logbl): Likewise.
2003         * sysdeps/powerpc/powerpc64/fpu/multiarch/s_logb.c
2004         [LONG_DOUBLE_COMPAT (libm, GLIBC_2_0)] (logbl): Likewise.
2006         * sysdeps/powerpc/fpu/s_rint.c: Include <libm-alias-double.h>.
2007         (rint): Define using libm_alias_double.
2008         * sysdeps/powerpc/power5+/fpu/s_modf.c: Include
2009         <libm-alias-double.h>.
2010         (modf): Define using libm_alias_double.
2011         * sysdeps/powerpc/powerpc32/fpu/s_ceil.S: Include
2012         <libm-alias-double.h>.
2013         (ceil): Define using libm_alias_double.
2014         * sysdeps/powerpc/powerpc32/fpu/s_floor.S: Include
2015         <libm-alias-double.h>.
2016         (floor): Define using libm_alias_double.
2017         * sysdeps/powerpc/powerpc32/fpu/s_nearbyint.S: Include
2018         <libm-alias-double.h>.
2019         (nearbyint): Define using libm_alias_double.
2020         * sysdeps/powerpc/powerpc32/fpu/s_rint.S: Include
2021         <libm-alias-double.h>.
2022         (rint): Define using libm_alias_double.
2023         * sysdeps/powerpc/powerpc32/fpu/s_round.S: Include
2024         <libm-alias-double.h>.
2025         (round): Define using libm_alias_double.
2026         * sysdeps/powerpc/powerpc32/fpu/s_trunc.S: Include
2027         <libm-alias-double.h>.
2028         (trunc): Define using libm_alias_double.
2029         * sysdeps/powerpc/powerpc32/power4/fpu/multiarch/s_ceil.c: Include
2030         <libm-alias-double.h>.
2031         (ceil): Define using libm_alias_double.
2032         * sysdeps/powerpc/powerpc32/power4/fpu/multiarch/s_floor.c:
2033         Include <libm-alias-double.h>.
2034         (floor): Define using libm_alias_double.
2035         * sysdeps/powerpc/powerpc32/power4/fpu/multiarch/s_modf.c: Include
2036         <libm-alias-double.h>.
2037         (modf): Define using libm_alias_double.
2038         * sysdeps/powerpc/powerpc32/power4/fpu/multiarch/s_round.c:
2039         Include <libm-alias-double.h>.
2040         (round): Define using libm_alias_double.
2041         * sysdeps/powerpc/powerpc32/power4/fpu/multiarch/s_trunc.c:
2042         Include <libm-alias-double.h>.
2043         (trunc): Define using libm_alias_double.
2044         * sysdeps/powerpc/powerpc32/power5+/fpu/s_ceil.S: Include
2045         <libm-alias-double.h>.
2046         (ceil): Define using libm_alias_double.
2047         * sysdeps/powerpc/powerpc32/power5+/fpu/s_floor.S: Include
2048         <libm-alias-double.h>.
2049         (floor): Define using libm_alias_double.
2050         * sysdeps/powerpc/powerpc32/power5+/fpu/s_round.S: Include
2051         <libm-alias-double.h>.
2052         (round): Define using libm_alias_double.
2053         * sysdeps/powerpc/powerpc32/power5+/fpu/s_trunc.S: Include
2054         <libm-alias-double.h>.
2055         (trunc): Define using libm_alias_double.
2056         * sysdeps/powerpc/powerpc64/fpu/multiarch/s_ceil.c: Include
2057         <libm-alias-double.h>.
2058         (ceil): Define using libm_alias_double.
2059         * sysdeps/powerpc/powerpc64/fpu/multiarch/s_floor.c: Include
2060         <libm-alias-double.h>.
2061         (floor): Define using libm_alias_double.
2062         * sysdeps/powerpc/powerpc64/fpu/multiarch/s_modf.c: Include
2063         <libm-alias-double.h>.
2064         (modf): Define using libm_alias_double.
2065         * sysdeps/powerpc/powerpc64/fpu/multiarch/s_round.c: Include
2066         <libm-alias-double.h>.
2067         (round): Define using libm_alias_double.
2068         * sysdeps/powerpc/powerpc64/fpu/multiarch/s_trunc.c: Include
2069         <libm-alias-double.h>.
2070         (trunc): Define using libm_alias_double.
2071         * sysdeps/powerpc/powerpc64/fpu/s_ceil.S: Include
2072         <libm-alias-double.h>.
2073         (ceil): Define using libm_alias_double.
2074         * sysdeps/powerpc/powerpc64/fpu/s_floor.S: Include
2075         <libm-alias-double.h>.
2076         (floor): Define using libm_alias_double.
2077         * sysdeps/powerpc/powerpc64/fpu/s_nearbyint.S: Include
2078         <libm-alias-double.h>.
2079         (nearbyint): Define using libm_alias_double.
2080         * sysdeps/powerpc/powerpc64/fpu/s_rint.S: Include
2081         <libm-alias-double.h>.
2082         (rint): Define using libm_alias_double.
2083         * sysdeps/powerpc/powerpc64/fpu/s_round.S: Include
2084         <libm-alias-double.h>.
2085         (round): Define using libm_alias_double.
2086         * sysdeps/powerpc/powerpc64/fpu/s_trunc.S: Include
2087         <libm-alias-double.h>.
2088         (trunc): Define using libm_alias_double.
2089         * sysdeps/powerpc/powerpc64/power5+/fpu/s_ceil.S: Include
2090         <libm-alias-double.h>.
2091         (ceil): Define using libm_alias_double.
2092         * sysdeps/powerpc/powerpc64/power5+/fpu/s_floor.S: Include
2093         <libm-alias-double.h>.
2094         (floor): Define using libm_alias_double.
2095         * sysdeps/powerpc/powerpc64/power5+/fpu/s_round.S: Include
2096         <libm-alias-double.h>.
2097         (round): Define using libm_alias_double.
2098         * sysdeps/powerpc/powerpc64/power5+/fpu/s_trunc.S: Include
2099         <libm-alias-double.h>.
2100         (trunc): Define using libm_alias_double.
2102         * sysdeps/powerpc/fpu/s_fabs.S: Include <libm-alias-double.h>.
2103         (fabs): Define using libm_alias_double.
2104         * sysdeps/powerpc/fpu/s_fma.S: Include <libm-alias-double.h>.
2105         (fma): Define using libm_alias_double.
2106         * sysdeps/powerpc/powerpc32/fpu/s_fabs.S: Remove file.
2107         * sysdeps/powerpc/powerpc32/fpu/s_fma.S: Likewise.
2108         * sysdeps/powerpc/powerpc64/fpu/s_fabs.S: Likewise.
2109         * sysdeps/powerpc/powerpc64/fpu/s_fma.S: Likewise.
2111 2017-12-01  Adhemerval Zanella  <adhemerval.zanella@linaro.org>
2113         * sysdeps/unix/sysv/linux/x86_64/x32/getcpu.c: Remove file.
2115         * sysdeps/sparc/sparc-ifunc.h (SPARC_ASM_IFUNC_DFLT,
2116         SPARC_ASM_IFUNC1, SPARC_ASM_IFUNC2, SET, SPARC_ASM_VIS2_IFUNC,
2117         SPARC_ASM_VIS3_IFUNC, SPARC_ASM_VIS3_VIS2_IFUNC): Remove macros.
2119         * sysdeps/sparc/sparc32/sparcv9/fpu/multiarch/s_copysign.c: Fix build
2120         due redirect macro.
2122 2017-12-01  Andreas Schwab  <schwab@linux-m68k.org>
2124         * intl/Makefile ($(objpfx)plural.c): Add $(make-target-directory).
2126 2017-12-01  Adhemerval Zanella  <adhemerval.zanella@linaro.org>
2128         * sysdeps/sparc/sparc64/cpu_relax.c: New file.
2129         * sysdeps/sparc/sparc32/sparcv9/cpu_relax.c: Likewise.
2130         * sysdeps/sparc/sparc64/cpu_relax.S: Remove file.
2131         * sysdeps/sparc/sparc32/sparcv9/cpu_relax.S: Likewise.
2133         * sysdeps/sparc/sparc32/sparcv9/fpu/multiarch/Makefile
2134         (libm-sysdep_routines): Add s_nearbyintf-generic and
2135         s_nearbyint-generic.
2136         * sysdeps/sparc/sparc32/sparcv9/fpu/multiarch/s_nearbyint-generic.S:
2137         New file.
2138         * sysdeps/sparc/sparc32/sparcv9/fpu/multiarch/s_nearbyint.c: Likewise.
2139         * sysdeps/sparc/sparc32/sparcv9/fpu/multiarch/s_nearbyintf-generic.S:
2140         Likewise.
2141         * sysdeps/sparc/sparc32/sparcv9/fpu/multiarch/s_nearbyintf.c:
2142         Likewise.
2143         * sysdeps/sparc/sparc32/sparcv9/fpu/multiarch/s_nearbyint.S: Remove
2144         file.
2145         * sysdeps/sparc/sparc32/sparcv9/fpu/multiarch/s_nearbyintf.S:
2146         Likewise.
2148         * sysdeps/sparc/sparc32/sparcv9/fpu/multiarch/Makefile
2149         (libm-sysdep_routines): Add s_rintf-generic and s_rint-generic.
2150         * sysdeps/sparc/sparc32/sparcv9/fpu/multiarch/s_rint-generic.S: New
2151         file.
2152         * sysdeps/sparc/sparc32/sparcv9/fpu/multiarch/s_rint.c: Likewise.
2153         * sysdeps/sparc/sparc32/sparcv9/fpu/multiarch/s_rintf-generic.S:
2154         Likewise.
2155         * sysdeps/sparc/sparc32/sparcv9/fpu/multiarch/s_rintf.c: Likewise.
2156         * sysdeps/sparc/sparc32/sparcv9/fpu/multiarch/s_rint.S: Remove file.
2157         * sysdeps/sparc/sparc32/sparcv9/fpu/multiarch/s_rintf.S: Likewise.
2159         * sysdeps/sparc/sparc32/sparcv9/fpu/multiarch/Makefile
2160         (libm-sysdep_routines): Add s_llrintf-generic and s_llrint-generic.
2161         * sysdeps/sparc/sparc32/sparcv9/fpu/multiarch/s_llrint-generic.S: New
2162         file.
2163         * sysdeps/sparc/sparc32/sparcv9/fpu/multiarch/s_llrint.c: Likewise.
2164         * sysdeps/sparc/sparc32/sparcv9/fpu/multiarch/s_llrintf-generic.S:
2165         Likewise.
2166         * sysdeps/sparc/sparc32/sparcv9/fpu/multiarch/s_llrintf.c: Likewise.
2167         * sysdeps/sparc/sparc32/sparcv9/fpu/multiarch/s_llrint.S: Remove file.
2168         * sysdeps/sparc/sparc32/sparcv9/fpu/multiarch/s_llrintf.S: Likewise.
2170         * sysdeps/sparc/sparc32/sparcv9/fpu/multiarch/Makefile
2171         (libm-sysdep_routines): Add s_fabsf-generic and s_fabs-generic.
2172         * sysdeps/sparc/sparc32/sparcv9/fpu/multiarch/s_fabs-generic.S: New
2173         file.
2174         * sysdeps/sparc/sparc32/sparcv9/fpu/multiarch/s_fabs.c: Likewise.
2175         * sysdeps/sparc/sparc32/sparcv9/fpu/multiarch/s_fabsf-generic.S:
2176         Likewise.
2177         * sysdeps/sparc/sparc32/sparcv9/fpu/multiarch/s_fabsf.c: Likewise.
2178         * sysdeps/sparc/sparc32/sparcv9/fpu/multiarch/s_fabs.S: Remove file.
2179         * sysdeps/sparc/sparc32/sparcv9/fpu/multiarch/s_fabsf.S: Likewise.
2181         * sysdeps/sparc/sparc32/sparcv9/fpu/multiarch/Makefile
2182         (sysdep_calls): New rule.
2183         (sysdep_routines): Use sysdep_calls as base.
2184         (libm-sysdep_routines): Add generic rule for symbols shared with
2185         libc.  Add s_copysign-generic and s_copysign-generic objects.
2186         * sysdeps/sparc/sparc32/sparcv9/fpu/multiarch/s_copysign-generic.S:
2187         New file.
2188         * sysdeps/sparc/sparc32/sparcv9/fpu/multiarch/s_copysign.c: Likewise.
2189         * sysdeps/sparc/sparc32/sparcv9/fpu/multiarch/s_copysignf-generic.S:
2190         Likewise.
2191         * sysdeps/sparc/sparc32/sparcv9/fpu/multiarch/s_copysignf.c: Likewise.
2192         * sysdeps/sparc/sparc32/sparcv9/fpu/multiarch/s_copysign.S: Remove file.
2193         * sysdeps/sparc/sparc32/sparcv9/fpu/multiarch/s_copysignf.S: Likewise.
2195 2017-12-01  Mike FABIAN  <mfabian@redhat.com>
2197         [BZ #22519]
2198         * localedata/Makefile: Add is_IS.UTF-8 to test-input and to
2199         the list of locales to be built for testing.
2200         * localedata/is_IS.UTF-8.in: New file.
2201         * localedata/locales/is_IS (LC_COLLATE): Base collation rules
2202         on iso14651_t1.
2204 2017-12-01  Joseph Myers  <joseph@codesourcery.com>
2206         * sysdeps/powerpc/powerpc32/e500/nofpu/s_fabsf.S: Include
2207         <libm-alias-float.h>.
2208         (fabsf): Define using libm_alias_float.
2210 2017-11-30  H.J. Lu  <hongjiu.lu@intel.com>
2212         * sysdeps/mips/dl-machine.h (elf_machine_reloc): Expand MIN.
2214 2017-11-30  Joseph Myers  <joseph@codesourcery.com>
2216         * sysdeps/m68k/coldfire/fpu/s_fabsf.c: Include
2217         <libm-alias-float.h>.
2218         (fabsf): Define using libm_alias_float.
2219         * sysdeps/m68k/coldfire/fpu/s_lrintf.c: Include
2220         <libm-alias-float.h>.
2221         (lrintf): Define using libm_alias_float.
2222         * sysdeps/m68k/coldfire/fpu/s_rintf.c: Include
2223         <libm-alias-float.h>.
2224         (rintf): Define using libm_alias_float.
2226         * sysdeps/m68k/coldfire/fpu/s_fabs.c: Include
2227         <libm-alias-double.h>.
2228         (fabs): Define using libm_alias_double.
2229         * sysdeps/m68k/coldfire/fpu/s_lrint.c: Include
2230         <libm-alias-double.h>.
2231         (lrint): Define using libm_alias_double.
2232         * sysdeps/m68k/coldfire/fpu/s_rint.c: Include
2233         <libm-alias-double.h>.
2234         (rint): Define using libm_alias_double.
2236         * sysdeps/m68k/m680x0/fpu/s_atan_template.c: New file.
2237         * sysdeps/m68k/m680x0/fpu/s_ceil_template.c: Likewise.
2238         * sysdeps/m68k/m680x0/fpu/s_cos_template.c: Likewise.
2239         * sysdeps/m68k/m680x0/fpu/s_expm1_template.c: Likewise.
2240         * sysdeps/m68k/m680x0/fpu/s_fabs_template.c: Likewise.
2241         * sysdeps/m68k/m680x0/fpu/s_floor_template.c: Likewise.
2242         * sysdeps/m68k/m680x0/fpu/s_frexp_template.c: Likewise.
2243         * sysdeps/m68k/m680x0/fpu/s_lrint_template.c: Likewise.
2244         * sysdeps/m68k/m680x0/fpu/s_modf_template.c: Likewise.
2245         * sysdeps/m68k/m680x0/fpu/s_nearbyint_template.c: Likewise.
2246         * sysdeps/m68k/m680x0/fpu/s_remquo_template.c: Likewise.
2247         * sysdeps/m68k/m680x0/fpu/s_rint_template.c: Likewise.
2248         * sysdeps/m68k/m680x0/fpu/s_sin_template.c: Likewise.
2249         * sysdeps/m68k/m680x0/fpu/s_sincos_template.c: Likewise.
2250         * sysdeps/m68k/m680x0/fpu/s_tan_template.c: Likewise.
2251         * sysdeps/m68k/m680x0/fpu/s_tanh_template.c: Likewise.
2252         * sysdeps/m68k/m680x0/fpu/s_trunc_template.c: Likewise.
2253         * sysdeps/m68k/m680x0/fpu/s_atan.c: Reimplement to use
2254         s_atan_template.c.
2255         * sysdeps/m68k/m680x0/fpu/s_atanf.c: Likewise.
2256         * sysdeps/m68k/m680x0/fpu/s_atanl.c: Likewise.
2257         * sysdeps/m68k/m680x0/fpu/s_ceil.c: Reimplement to use
2258         s_ceil_template.c.
2259         * sysdeps/m68k/m680x0/fpu/s_ceilf.c: Likewise.
2260         * sysdeps/m68k/m680x0/fpu/s_ceill.c: Likewise.
2261         * sysdeps/m68k/m680x0/fpu/s_cos.c: Reimplement to use
2262         s_cos_template.c.
2263         * sysdeps/m68k/m680x0/fpu/s_cosf.c: Likewise.
2264         * sysdeps/m68k/m680x0/fpu/s_cosl.c: Likewise.
2265         * sysdeps/m68k/m680x0/fpu/s_expm1.c: Reimplement to use
2266         s_expm1_template.c.
2267         * sysdeps/m68k/m680x0/fpu/s_expm1f.c: Likewise.
2268         * sysdeps/m68k/m680x0/fpu/s_expm1l.c: Likewise.
2269         * sysdeps/m68k/m680x0/fpu/s_fabs.c: Reimplement to use
2270         s_fabs_template.c.
2271         * sysdeps/m68k/m680x0/fpu/s_fabsf.c: Likewise.
2272         * sysdeps/m68k/m680x0/fpu/s_fabsl.c: Likewise.
2273         * sysdeps/m68k/m680x0/fpu/s_floor.c: Reimplement to use
2274         s_floor_template.c.
2275         * sysdeps/m68k/m680x0/fpu/s_floorf.c: Likewise.
2276         * sysdeps/m68k/m680x0/fpu/s_floorl.c: Likewise.
2277         * sysdeps/m68k/m680x0/fpu/s_frexp.c: Reimplement to use
2278         s_frexp_template.c.
2279         * sysdeps/m68k/m680x0/fpu/s_frexpf.c: Likewise.
2280         * sysdeps/m68k/m680x0/fpu/s_lrint.c: Reimplement to use
2281         s_lrint_template.c.
2282         * sysdeps/m68k/m680x0/fpu/s_lrintf.c: Likewise.
2283         * sysdeps/m68k/m680x0/fpu/s_lrintl.c: Likewise.
2284         * sysdeps/m68k/m680x0/fpu/s_modf.c: Reimplement to use
2285         s_modf_template.c.
2286         * sysdeps/m68k/m680x0/fpu/s_modff.c: Likewise.
2287         * sysdeps/m68k/m680x0/fpu/s_modfl.c: Likewise.
2288         * sysdeps/m68k/m680x0/fpu/s_nearbyint.c: Reimplement to use
2289         s_nearbyint_template.c.
2290         * sysdeps/m68k/m680x0/fpu/s_nearbyintf.c: Likewise.
2291         * sysdeps/m68k/m680x0/fpu/s_nearbyintl.c: Likewise.
2292         * sysdeps/m68k/m680x0/fpu/s_remquo.c: Reimplement to use
2293         s_remquo_template.c.
2294         * sysdeps/m68k/m680x0/fpu/s_remquof.c: Likewise.
2295         * sysdeps/m68k/m680x0/fpu/s_remquol.c: Likewise.
2296         * sysdeps/m68k/m680x0/fpu/s_rint.c: Reimplement to use
2297         s_rint_template.c.
2298         * sysdeps/m68k/m680x0/fpu/s_rintf.c: Likewise.
2299         * sysdeps/m68k/m680x0/fpu/s_rintl.c: Likewise.
2300         * sysdeps/m68k/m680x0/fpu/s_sin.c: Reimplement to use
2301         s_sin_template.c.
2302         * sysdeps/m68k/m680x0/fpu/s_sinf.c: Likewise.
2303         * sysdeps/m68k/m680x0/fpu/s_sinl.c: Likewise.
2304         * sysdeps/m68k/m680x0/fpu/s_sincos.c: Reimplement to use
2305         s_sincos_template.c.
2306         * sysdeps/m68k/m680x0/fpu/s_sincosf.c: Likewise.
2307         * sysdeps/m68k/m680x0/fpu/s_sincosl.c: Likewise.
2308         * sysdeps/m68k/m680x0/fpu/s_tan.c: Reimplement to use
2309         s_tan_template.c.
2310         * sysdeps/m68k/m680x0/fpu/s_tanf.c: Likewise.
2311         * sysdeps/m68k/m680x0/fpu/s_tanl.c: Likewise.
2312         * sysdeps/m68k/m680x0/fpu/s_tanh.c: Reimplement to use
2313         s_tanh_template.c.
2314         * sysdeps/m68k/m680x0/fpu/s_tanhf.c: Likewise.
2315         * sysdeps/m68k/m680x0/fpu/s_tanhl.c: Likewise.
2316         * sysdeps/m68k/m680x0/fpu/s_trunc.c: Reimplement to use
2317         s_trunc_template.c.
2318         * sysdeps/m68k/m680x0/fpu/s_truncf.c: Likewise.
2319         * sysdeps/m68k/m680x0/fpu/s_truncl.c: Likewise.
2320         * sysdeps/m68k/m680x0/fpu/s_significand.c: Reimplement based on
2321         s_atan.c instead of including s_atan.c.
2322         * sysdeps/m68k/m680x0/fpu/s_significandf.c: Reimplement based on
2323         s_atanf.c instead of including s_atanf.c.
2324         * sysdeps/m68k/m680x0/fpu/s_significandl.c: Reimplement based on
2325         s_atanl.c instead of including s_atanl.c.
2326         * sysdeps/m68k/m680x0/fpu/s_log1p.c: Include s_significand.c
2327         instead of s_atan.c.
2328         * sysdeps/m68k/m680x0/fpu/s_log1pf.c: Include s_significandf.c
2329         instead of s_atanf.c.
2330         * sysdeps/m68k/m680x0/fpu/s_log1pl.c: Include s_significandl.c
2331         instead of s_atanl.c.
2333         * scripts/update-copyrights: Do not handle intl/plural.c
2334         specially.
2336 2017-11-30  Juro Bystricky  <juro.bystricky@linux.intel.com>
2338         [BZ #22432]
2339         * configure.ac (BISON): Require to be present.
2340         * configure: Regenerated.
2341         * intl/Makefile (generated): Add plural.c.
2342         [$(BISON) != no]: Make code unconditional.
2343         (plural.c): Change rule to $(objpfx)plural.c.
2344         ($(objpfx)plural.o): Depend on $(objpfx)plural.c.
2345         * intl/plural.c: Remove.
2346         * manual/install.texi (Tools for Compilation): Document bison as
2347         required.
2348         * INSTALL: Regenerated.
2350 2017-11-30  Joseph Myers  <joseph@codesourcery.com>
2352         * sysdeps/m68k/m680x0/fpu/s_llrint.c: Include
2353         <libm-alias-double.h>.
2354         (llrint): Define using libm_alias_double.
2355         * sysdeps/m68k/m680x0/fpu/s_llrintf.c: Include
2356         <libm-alias-float.h>.
2357         (llrintf): Define using libm_alias_float.
2358         * sysdeps/m68k/m680x0/fpu/s_llrintl.c: Include
2359         <libm-alias-ldouble.h>.
2360         (llrintl): Define using libm_alias_ldouble.
2362         * sysdeps/m68k/m680x0/fpu/s_ccosh_template.c (ccosh): Use
2363         declare_mgen_alias instead of weak_alias.
2364         * sysdeps/m68k/m680x0/fpu/s_cexp_template.c (cexp): Likewise.
2365         * sysdeps/m68k/m680x0/fpu/s_csin_template.c (csin): Likewise.
2366         * sysdeps/m68k/m680x0/fpu/s_csinh_template.c (csinh): Likewise.
2368 2017-11-30  Adhemerval Zanella  <adhemerval.zanella@linaro.org>
2370         * sysdeps/sparc/sparc64/multiarch/Makefile (sysdep_routines):
2371         Add add_n-generic.
2372         * sysdeps/sparc/sparc64/multiarch/add_n-generic.S: New file.
2373         * sysdeps/sparc/sparc64/multiarch/add_n.c: Likewise.
2374         * sysdeps/sparc/sparc64/multiarch/add_n.S: Remove file.
2376         * sysdeps/sparc/sparc64/multiarch/Makefile (sysdep_routines):
2377         Add submul_1-generic.
2378         * sysdeps/sparc/sparc64/multiarch/submul_1-generic.S: New file.
2379         * sysdeps/sparc/sparc64/multiarch/submul_1.c: Likewise.
2380         * sysdeps/sparc/sparc64/multiarch/submul_1.S: Remove file.
2382         * sysdeps/sparc/sparc64/multiarch/Makefile (sysdep_routines):
2383         Add addmul_1-generic.
2384         * sysdeps/sparc/sparc64/multiarch/addmul_1-generic.S: New file.
2385         * sysdeps/sparc/sparc64/multiarch/addmul_1.c: Likewise.
2386         * sysdeps/sparc/sparc64/multiarch/addmul_1.S: Remove file.
2388         * sysdeps/sparc/sparc64/multiarch/Makefile (sysdep_routines):
2389         Add sub_n-generic.
2390         * sysdeps/sparc/sparc64/multiarch/sub_n-generic.S: New file.
2391         * sysdeps/sparc/sparc64/multiarch/sub_n.c: Likewise.
2392         * sysdeps/sparc/sparc64/multiarch/sub_n.S: Remove file.
2394         * sysdeps/sparc/sparc64/multiarch/Makefile (sysdep_routines):
2395         Add mul_1-generic.
2396         * sysdeps/sparc/sparc64/multiarch/mul_1-generic.S: New file.
2397         * sysdeps/sparc/sparc64/multiarch/mul_1.c: Likewise.
2398         * sysdeps/sparc/sparc64/multiarch/mul_1.S: Remove file.
2400 2017-11-30  Mike FABIAN  <mfabian@redhat.com>
2402         According to CLDR, collation rules for Serbian and Bosnian
2403         should be the same as for Croatian.
2405         [BZ #22534]
2406         * localedata/Makefile: Add sr_RS.UTF-8 and bs_BA.UTF-8 to test-input
2407         and to the list of locales to be built for testing.
2408         * localedata/bs_BA.UTF-8.in: New file (same as hr_HR.UTF-8.in).
2409         * localedata/sr_RS.UTF-8.in: New file (same as hr_HR.UTF-8.in).
2410         * localedata/locales/bs_BA (LC_COLLATE): Use “copy "hr_HR"”.
2411         * localedata/locales/sr_RS (LC_COLLATE): Use “copy "hr_HR"”.
2413 2017-11-30  Mike FABIAN  <mfabian@redhat.com>
2415         * localedata/locales/hr_HR (LC_COLLATE): Fix collation
2416         to make test case pass.
2417         * localedata/hr_HR.UTF-8.in: Add more test strings.
2419 2017-11-30  Mike FABIAN  <mfabian@redhat.com>
2421         * stdlib/tst-strfmon_l.c: Fix testcase. Needed because of [BZ #10580]
2423 2017-11-30  Dragan Stanojević - Nevidljivi <invisible@hidden-city.net>
2425         * localedata/Makefile: Add hr_HR.UTF-8 to test-input and to
2426         the list of locales to built for testing.
2427         * localedata/hr_HR.UTF-8.in: New file.
2429 2017-11-30  Dragan Stanojević - Nevidljivi <invisible@hidden-city.net>
2431         [BZ #10580]
2432         * localedata/locales/hr_HR (LC_COLLATE): Base collation rules on
2433         iso14651_t1.
2434         * localedata/locales/hr_HR (LC_TIME): Sync month and day names with
2435         CLDR (except use ligatures for the digraphs, CLDR does not use
2436         the ligatures), add first_workday, some fixes in the date and time
2437         formats.
2438         * localedata/locales/hr_HR (LC_CTYPE): Add transliteration rules
2439         for Đ and đ.
2440         * localedata/locales/hr_HR (LC_MONETARY): Change currency_symbol to
2441         lower case. p_cs_precedes and n_cs_precedes should be 0 instead of 1.
2442         Add int_p_cs_precedes and int_n_cs_precedes.
2443         * localedata/locales/hr_HR (LC_NUMERIC): Change thousands_sep to
2444         "<U202F>" (NARROW NO-BREAK SPACE) and grouping to 3;3 (Agrees with
2445         LC_MONETARY now).
2446         * localedata/locales/hr_HR (LC_TELEPHONE): Add tel_dom_fmt.
2447         * localedata/locales/hr_HR (LC_NAME): Add name_mr, name_mrs, and
2448         name_miss.
2449         * localedata/locales/hr_HR (LC_ADDRESS): Add country_post, country_isbn,
2450         and lang_lib. Change postal_fmt.
2452 2017-11-30  H.J. Lu  <hongjiu.lu@intel.com>
2454         * debug/longjmp_chk.c: Include <setjmpP.h> instead of
2455         <setjmp.h>.
2456         * setjmp/longjmp.c: Include <setjmpP.h> instead of <setjmp.h>.
2457         (__libc_siglongjmp): Cast &env[0].__saved_mask to "sigset_t *".
2458         * setjmp/sigjmp.c: Include <setjmpP.h> instead of <setjmp.h>.
2459         (__sigjmp_save): Cast &env[0].__saved_mask to "sigset_t *".
2460         * sysdeps/generic/setjmpP.h: New file.
2461         * sysdeps/unix/sysv/linux/x86/jmp_buf-ssp.sym: Likewise.
2462         * sysdeps/unix/sysv/linux/x86/setjmpP.h: Likewise.
2463         * sysdeps/unix/sysv/linux/x86/tst-saved_mask-1.c: Likewise.
2464         * sysdeps/unix/sysv/linux/x86/Makefile (gen-as-const-headers):
2465         Add jmp_buf-ssp.sym.
2466         (tests): Add tst-saved_mask-1.
2468 2017-11-30  Arjun Shankar  <arjun@redhat.com>
2470         [BZ #22375]
2471         CVE-2017-17426
2472         * malloc/malloc.c (__libc_malloc): Use checked_request2size
2473         instead of request2size.
2475 2017-11-30  Joseph Myers  <joseph@codesourcery.com>
2477         * sysdeps/sparc/sparc32/sparcv9/fpu/multiarch/s_llrint.S
2478         (__lllrint): Remove alias.
2479         (lllrint): Likewise.
2480         * sysdeps/sparc/sparc32/sparcv9/fpu/multiarch/s_llrintf.S
2481         (__lllrintf): Likewise.
2482         (lllrintf): Likewise.
2484         * sysdeps/sparc/sparc32/fpu/s_copysignf.S: Include
2485         <libm-alias-float.h>.
2486         (copysignf): Define using libm_alias_float.
2487         * sysdeps/sparc/sparc32/fpu/s_fabsf.S: Include
2488         <libm-alias-float.h>.
2489         (fabsf): Define using libm_alias_float.
2490         * sysdeps/sparc/sparc32/sparcv9/fpu/multiarch/s_copysignf.S:
2491         Include <libm-alias-float.h>.
2492         (copysignf): Define using libm_alias_float.
2493         * sysdeps/sparc/sparc32/sparcv9/fpu/multiarch/s_fabsf.S: Include
2494         <libm-alias-float.h>.
2495         (fabsf): Define using libm_alias_float.
2496         * sysdeps/sparc/sparc32/sparcv9/fpu/multiarch/s_fdimf.c: Include
2497         <libm-alias-float.h>.
2498         (fdimf): Define using libm_alias_float.
2499         * sysdeps/sparc/sparc32/sparcv9/fpu/multiarch/s_fmaf.c: Include
2500         <libm-alias-float.h>.
2501         (fmaf): Define using libm_alias_float.
2502         * sysdeps/sparc/sparc32/sparcv9/fpu/multiarch/s_llrintf.S: Include
2503         <libm-alias-float.h>.
2504         (llrintf): Define using libm_alias_float.
2505         * sysdeps/sparc/sparc32/sparcv9/fpu/multiarch/s_nearbyintf.S:
2506         Include <libm-alias-float.h>.
2507         (nearbyintf): Define using libm_alias_float.
2508         * sysdeps/sparc/sparc32/sparcv9/fpu/multiarch/s_rintf.S: Include
2509         <libm-alias-float.h>.
2510         (rintf): Define using libm_alias_float.
2511         * sysdeps/sparc/sparc32/sparcv9/fpu/s_llrintf.S: Include
2512         <libm-alias-float.h>.
2513         (llrintf): Define using libm_alias_float.
2514         * sysdeps/sparc/sparc32/sparcv9/fpu/s_lrintf.S: Include
2515         <libm-alias-float.h>.
2516         (lrintf): Define using libm_alias_float.
2517         * sysdeps/sparc/sparc32/sparcv9/fpu/s_nearbyintf.S: Include
2518         <libm-alias-float.h>.
2519         (nearbyintf): Define using libm_alias_float.
2520         * sysdeps/sparc/sparc32/sparcv9/fpu/s_rintf.S: Include
2521         <libm-alias-float.h>.
2522         (rintf): Define using libm_alias_float.
2523         * sysdeps/sparc/sparc64/fpu/multiarch/s_ceilf.c: Include
2524         <libm-alias-float.h>.
2525         (ceilf): Define using libm_alias_float.
2526         * sysdeps/sparc/sparc64/fpu/multiarch/s_floorf.c: Include
2527         <libm-alias-float.h>.
2528         (floorf): Define using libm_alias_float.
2529         * sysdeps/sparc/sparc64/fpu/multiarch/s_fmaf.c: Include
2530         <libm-alias-float.h>.
2531         (fmaf): Define using libm_alias_float.
2532         * sysdeps/sparc/sparc64/fpu/multiarch/s_lrintf.c: Include
2533         <libm-alias-float.h>.
2534         (lrintf): Define using libm_alias_float.
2535         (llrintf): Likewise.
2536         * sysdeps/sparc/sparc64/fpu/multiarch/s_nearbyintf.c: Include
2537         <libm-alias-float.h>.
2538         (nearbyintf): Define using libm_alias_float.
2539         * sysdeps/sparc/sparc64/fpu/multiarch/s_rintf.c: Include
2540         <libm-alias-float.h>.
2541         (rintf): Define using libm_alias_float.
2542         * sysdeps/sparc/sparc64/fpu/multiarch/s_truncf.c: Include
2543         <libm-alias-float.h>.
2544         (truncf): Define using libm_alias_float.
2545         * sysdeps/sparc/sparc64/fpu/s_copysignf.S: Include
2546         <libm-alias-float.h>.
2547         (copysignf): Define using libm_alias_float.
2548         * sysdeps/sparc/sparc64/fpu/s_fabsf.c: Include
2549         <libm-alias-float.h>.
2550         (fabsf): Define using libm_alias_float.
2551         * sysdeps/sparc/sparc64/fpu/s_lrintf.S: Include
2552         <libm-alias-float.h>.
2553         (lrintf): Define using libm_alias_float.
2554         (llrintf): Likewise.
2555         * sysdeps/sparc/sparc64/fpu/s_nearbyintf.S: Include
2556         <libm-alias-float.h>.
2557         (nearbyintf): Define using libm_alias_float.
2558         * sysdeps/sparc/sparc64/fpu/s_rintf.S: Include
2559         <libm-alias-float.h>.
2560         (rintf): Define using libm_alias_float.
2562 2017-11-29  Joseph Myers  <joseph@codesourcery.com>
2564         * sysdeps/sparc/sparc32/fpu/s_copysign.S: Include
2565         <libm-alias-double.h>.
2566         (copysign): Define using libm_alias_double.
2567         * sysdeps/sparc/sparc32/fpu/s_fabs.S: Include
2568         <libm-alias-double.h>.
2569         (fabs): Define using libm_alias_double.
2570         * sysdeps/sparc/sparc32/sparcv9/fpu/multiarch/s_copysign.S:
2571         Include <libm-alias-double.h>.
2572         (copysign): Define using libm_alias_double.
2573         * sysdeps/sparc/sparc32/sparcv9/fpu/multiarch/s_fabs.S: Include
2574         <libm-alias-double.h>.
2575         (fabs): Define using libm_alias_double.
2576         * sysdeps/sparc/sparc32/sparcv9/fpu/multiarch/s_fdim.c: Include
2577         <libm-alias-double.h>.
2578         (fdim): Define using libm_alias_double.
2579         * sysdeps/sparc/sparc32/sparcv9/fpu/multiarch/s_fma.c: Include
2580         <libm-alias-double.h>.
2581         (fma): Define using libm_alias_double.
2582         * sysdeps/sparc/sparc32/sparcv9/fpu/multiarch/s_llrint.S: Include
2583         <libm-alias-double.h>.
2584         (llrint): Define using libm_alias_double.
2585         * sysdeps/sparc/sparc32/sparcv9/fpu/multiarch/s_nearbyint.S:
2586         Include <libm-alias-double.h>.
2587         (nearbyint): Define using libm_alias_double.
2588         * sysdeps/sparc/sparc32/sparcv9/fpu/multiarch/s_rint.S: Include
2589         <libm-alias-double.h>.
2590         (rint): Define using libm_alias_double.
2591         * sysdeps/sparc/sparc32/sparcv9/fpu/s_fabs.S: Include
2592         <libm-alias-double.h>.
2593         (fabs): Define using libm_alias_double.
2594         * sysdeps/sparc/sparc32/sparcv9/fpu/s_llrint.S: Include
2595         <libm-alias-double.h>.
2596         (llrint): Define using libm_alias_double.
2597         * sysdeps/sparc/sparc32/sparcv9/fpu/s_nearbyint.S: Include
2598         <libm-alias-double.h>.
2599         (nearbyint): Define using libm_alias_double.
2600         * sysdeps/sparc/sparc32/sparcv9/fpu/s_rint.S: Include
2601         <libm-alias-double.h>.
2602         (rint): Define using libm_alias_double.
2603         * sysdeps/sparc/sparc64/fpu/multiarch/s_ceil.c: Include
2604         <libm-alias-double.h>.
2605         (ceil): Define using libm_alias_double.
2606         * sysdeps/sparc/sparc64/fpu/multiarch/s_floor.c: Include
2607         <libm-alias-double.h>.
2608         (floor): Define using libm_alias_double.
2609         * sysdeps/sparc/sparc64/fpu/multiarch/s_fma.c: Include
2610         <libm-alias-double.h>.
2611         (fma): Define using libm_alias_double.
2612         * sysdeps/sparc/sparc64/fpu/multiarch/s_lrint.c: Include
2613         <libm-alias-double.h>.
2614         (lrint): Define using libm_alias_double.
2615         (llrint): Likewise.
2616         * sysdeps/sparc/sparc64/fpu/multiarch/s_nearbyint.c: Include
2617         <libm-alias-double.h>.
2618         (nearbyint): Define using libm_alias_double.
2619         * sysdeps/sparc/sparc64/fpu/multiarch/s_rint.c: Include
2620         <libm-alias-double.h>.
2621         (rint): Define using libm_alias_double.
2622         * sysdeps/sparc/sparc64/fpu/multiarch/s_trunc.c: Include
2623         <libm-alias-double.h>.
2624         (trunc): Define using libm_alias_double.
2625         * sysdeps/sparc/sparc64/fpu/s_copysign.S: Include
2626         <libm-alias-double.h>.
2627         (copysign): Define using libm_alias_double.
2628         * sysdeps/sparc/sparc64/fpu/s_fabs.c: Include
2629         <libm-alias-double.h>.
2630         (fabs): Define using libm_alias_double.
2631         * sysdeps/sparc/sparc64/fpu/s_lrint.S: Include
2632         <libm-alias-double.h>.
2633         (lrint): Define using libm_alias_double.
2634         (llrint): Likewise.
2635         * sysdeps/sparc/sparc64/fpu/s_nearbyint.S: Include
2636         <libm-alias-double.h>.
2637         (nearbyint): Define using libm_alias_double.
2638         * sysdeps/sparc/sparc64/fpu/s_rint.S: Include
2639         <libm-alias-double.h>.
2640         (rint): Define using libm_alias_double.
2642         [BZ #22229]
2643         * sysdeps/sparc/sparc32/sparcv9/fpu/s_fabs.S: Include
2644         <math_ldbl_opt.h>.
2645         (fabsl): Define as compat symbol at version GLIBC_2_0 for libm.
2647         * scripts/build-many-glibcs.py (Context.add_all_configs): Add
2648         SPARC --disable-multi-arch glibc variants.
2650         * sysdeps/x86_64/fpu/multiarch/e_exp2f.c: Include
2651         <libm-alias-float.h>.
2652         (exp2f): Define using libm_alias_float, or libm_alias_float_other
2653         if [SHARED].
2654         * sysdeps/x86_64/fpu/multiarch/e_expf.c: Include
2655         <libm-alias-float.h>.
2656         (exp2f): Define using libm_alias_float, or libm_alias_float_other
2657         if [SHARED].
2658         * sysdeps/x86_64/fpu/multiarch/e_log2f.c: Include
2659         <libm-alias-float.h>.
2660         (exp2f): Define using libm_alias_float, or libm_alias_float_other
2661         if [SHARED].
2662         * sysdeps/x86_64/fpu/multiarch/e_logf.c: Include
2663         <libm-alias-float.h>.
2664         (exp2f): Define using libm_alias_float, or libm_alias_float_other
2665         if [SHARED].
2666         * sysdeps/x86_64/fpu/multiarch/e_powf.c: Include
2667         <libm-alias-float.h>.
2668         (exp2f): Define using libm_alias_float, or libm_alias_float_other
2669         if [SHARED].
2670         * sysdeps/x86_64/fpu/multiarch/s_ceilf.c: Include
2671         <libm-alias-float.h>.
2672         (ceilf): Define using libm_alias_float.
2673         * sysdeps/x86_64/fpu/multiarch/s_floorf.c: Include
2674         <libm-alias-float.h>.
2675         (floorf): Define using libm_alias_float.
2676         * sysdeps/x86_64/fpu/multiarch/s_fmaf.c: Include
2677         <libm-alias-float.h>.
2678         (fmaf): Define using libm_alias_float.
2679         * sysdeps/x86_64/fpu/multiarch/s_nearbyintf.c: Include
2680         <libm-alias-float.h>.
2681         (nearbyintf): Define using libm_alias_float.
2682         * sysdeps/x86_64/fpu/multiarch/s_rintf.c: Include
2683         <libm-alias-float.h>.
2684         (rintf): Define using libm_alias_float.
2685         * sysdeps/x86_64/fpu/multiarch/s_truncf.c: Include
2686         <libm-alias-float.h>.
2687         (truncf): Define using libm_alias_float.
2688         * sysdeps/x86_64/fpu/s_copysignf.S: Include <libm-alias-float.h>.
2689         (copysignf): Define using libm_alias_float.
2690         * sysdeps/x86_64/fpu/s_cosf.S: Include <libm-alias-float.h>.
2691         (cosf): Define using libm_alias_float.
2692         * sysdeps/x86_64/fpu/s_fabsf.c: Include <libm-alias-float.h>.
2693         (fabsf): Define using libm_alias_float.
2694         * sysdeps/x86_64/fpu/s_fmaxf.S: Include <libm-alias-float.h>.
2695         (fmaxf): Define using libm_alias_float.
2696         * sysdeps/x86_64/fpu/s_fminf.S: Include <libm-alias-float.h>.
2697         (fminf): Define using libm_alias_float.
2698         * sysdeps/x86_64/fpu/s_llrintf.S: Include <libm-alias-float.h>.
2699         (llrintf): Define using libm_alias_float.
2700         [!__ILP32__] (lrintf): Likewise.
2701         * sysdeps/x86_64/fpu/s_sincosf.S: Include <libm-alias-float.h>.
2702         (sincosf): Define using libm_alias_float.
2703         * sysdeps/x86_64/fpu/s_sinf.S: Include <libm-alias-float.h>.
2704         (sinf): Define using libm_alias_float.
2705         * sysdeps/x86_64/x32/fpu/s_lrintf.S: Include <libm-alias-float.h>.
2706         (lrintf): Define using libm_alias_float.
2708         * sysdeps/x86_64/fpu/multiarch/s_atan.c: Include
2709         <libm-alias-double.h>.
2710         (atan): Define using libm_alias_double.
2711         * sysdeps/x86_64/fpu/multiarch/s_ceil.c: Include
2712         <libm-alias-double.h>.
2713         (ceil): Define using libm_alias_double.
2714         * sysdeps/x86_64/fpu/multiarch/s_floor.c: Include
2715         <libm-alias-double.h>.
2716         (floor): Define using libm_alias_double.
2717         * sysdeps/x86_64/fpu/multiarch/s_fma.c: Include
2718         <libm-alias-double.h>.
2719         (fma): Define using libm_alias_double.
2720         * sysdeps/x86_64/fpu/multiarch/s_nearbyint.c: Include
2721         <libm-alias-double.h>.
2722         (nearbyint): Define using libm_alias_double.
2723         * sysdeps/x86_64/fpu/multiarch/s_rint.c: Include
2724         <libm-alias-double.h>.
2725         (rint): Define using libm_alias_double.
2726         * sysdeps/x86_64/fpu/multiarch/s_sin.c: Include
2727         <libm-alias-double.h>.
2728         (sin): Define using libm_alias_double.
2729         (cos): Likewise.
2730         * sysdeps/x86_64/fpu/multiarch/s_tan.c: Include
2731         <libm-alias-double.h>.
2732         (tan): Define using libm_alias_double.
2733         * sysdeps/x86_64/fpu/multiarch/s_trunc.c: Include
2734         <libm-alias-double.h>.
2735         (trunc): Define using libm_alias_double.
2736         * sysdeps/x86_64/fpu/s_copysign.S: Include <libm-alias-double.h>.
2737         (copysign): Define using libm_alias_double.
2738         * sysdeps/x86_64/fpu/s_fabs.c: Include <libm-alias-double.h>.
2739         (fabs): Define using libm_alias_double.
2740         * sysdeps/x86_64/fpu/s_fmax.S: Include <libm-alias-double.h>.
2741         (fmax): Define using libm_alias_double.
2742         * sysdeps/x86_64/fpu/s_fmin.S: Include <libm-alias-double.h>.
2743         (fmin): Define using libm_alias_double.
2744         * sysdeps/x86_64/fpu/s_llrint.S: Include <libm-alias-double.h>.
2745         (llrint): Define using libm_alias_double.
2746         [!__ILP32__] (lrint): Likewise.
2747         * sysdeps/x86_64/x32/fpu/s_lrint.S: Include <libm-alias-double.h>.
2748         (lrint): Define using libm_alias_double.
2750 2017-11-29  Adhemerval Zanella  <adhemerval.zanella@linaro.org>
2752         * sysdeps/sparc/sparc64/fpu/multiarch/Makefile
2753         (libm-sysdep_routines): Add s_rintf-generic and s_rint-generic
2754         objects.
2755         * sysdeps/sparc/sparc64/fpu/multiarch/s_rint-generic.S: New file.
2756         * sysdeps/sparc/sparc64/fpu/multiarch/s_rint.c: Likewise.
2757         * sysdeps/sparc/sparc64/fpu/multiarch/s_rintf-generic.S: Likewise.
2758         * sysdeps/sparc/sparc64/fpu/multiarch/s_rintf.c: Likewise.
2759         * sysdeps/sparc/sparc64/fpu/multiarch/s_rint.S: Remove file.
2760         * sysdeps/sparc/sparc64/fpu/multiarch/s_rintf.S: Likewise.
2762         * sysdeps/sparc/sparc64/fpu/multiarch/Makefile
2763         (libm-sysdep_routines): Add s_lrint-generic and s_lrintf-generic
2764         objects.
2765         * sysdeps/sparc/sparc64/fpu/multiarch/s_lrint-generic.S: New file.
2766         * sysdeps/sparc/sparc64/fpu/multiarch/s_lrint.c: Likewise.
2767         * sysdeps/sparc/sparc64/fpu/multiarch/s_lrintf-generic.S: Likewise.
2768         * sysdeps/sparc/sparc64/fpu/multiarch/s_lrintf.c: Likewise.
2769         * sysdeps/sparc/sparc64/fpu/multiarch/s_lrint.S: Remove file.
2770         * sysdeps/sparc/sparc64/fpu/multiarch/s_lrintf.S: Likewise.
2772         * sysdeps/sparc/sparc64/fpu/multiarch/Makefile
2773         (libm-sysdep_routines): Add s_nearbyint-generic and
2774         s_nearbyintf-generic objects.
2775         * sysdeps/sparc/sparc64/fpu/multiarch/s_nearbyint-generic.S: New file.
2776         * sysdeps/sparc/sparc64/fpu/multiarch/s_nearbyint.c: Likewise.
2777         * sysdeps/sparc/sparc64/fpu/multiarch/s_nearbyintf-generic.S: Likewise.
2778         * sysdeps/sparc/sparc64/fpu/multiarch/s_nearbyintf.c: Likewise.
2779         * sysdeps/sparc/sparc64/fpu/multiarch/s_nearbyint.S: Remove file.
2780         * sysdeps/sparc/sparc64/fpu/multiarch/s_nearbyintf.S: Likewise.
2782         * sysdeps/sparc/sparc64/fpu/multiarch/Makefile (sysdeps_calls):
2783         Add s_finitef-generic and s_finite-generic objects.
2784         * sysdeps/sparc/sparc64/fpu/multiarch/s_finite-generic.S: New file.
2785         * sysdeps/sparc/sparc64/fpu/multiarch/s_finite.c: Likewise.
2786         * sysdeps/sparc/sparc64/fpu/multiarch/s_finitef-generic.S: Likewise.
2787         * sysdeps/sparc/sparc64/fpu/multiarch/s_finitef.c: Likewise.
2788         * sysdeps/sparc/sparc64/fpu/multiarch/s_finite.S: Remove file.
2789         * sysdeps/sparc/sparc64/fpu/multiarch/s_finitef.S: Remove file.
2791         * sysdeps/sparc/sparc64/fpu/multiarch/Makefile (sysdeps_calls):
2792         Add s_isinff-generic and s_isinf-generic objects.
2793         * sysdeps/sparc/sparc64/fpu/multiarch/s_isinf-generic.S: New file.
2794         * sysdeps/sparc/sparc64/fpu/multiarch/s_isinf.c: Likewise.
2795         * sysdeps/sparc/sparc64/fpu/multiarch/s_isinff-generic.S: Likewise.
2796         * sysdeps/sparc/sparc64/fpu/multiarch/s_isinff.c: Likewise.
2797         * sysdeps/sparc/sparc64/fpu/multiarch/s_isinf.S: Remove file.
2798         * sysdeps/sparc/sparc64/fpu/multiarch/s_isinff.S: Likewise.
2800         * sysdeps/sparc/sparc64/fpu/multiarch/Makefile (sysdeps_calls):
2801         Add s_isnanf-generic and s_isnan-generic objects.
2802         * sysdeps/sparc/sparc64/fpu/multiarch/s_isnan-generic.S: New file.
2803         * sysdeps/sparc/sparc64/fpu/multiarch/s_isnanf-generic.S: Likewise.
2804         * sysdeps/sparc/sparc64/fpu/multiarch/s_isnan.c: Likewise.
2805         * sysdeps/sparc/sparc64/fpu/multiarch/s_isnanf.c: Likewise.
2806         * sysdeps/sparc/sparc64/fpu/multiarch/s_isnan.S: Remove file.
2807         * sysdeps/sparc/sparc64/fpu/multiarch/s_isnanf.S: Likewise.
2809         * sysdeps/sparc/sparc-ifunc.h (sparc_libm_ifunc_redirected): New
2810         macro.
2811         * sysdeps/sparc/sparc64/fpu/multiarch/Makefile (sysdep_calls): New
2812         rule.
2813         (sysdep_routines): Use sysdep_calls as base.
2814         (libm-sysdep_routines): Add generic rule for symbols shared with
2815         libc.  Add s_signbit-generic and s_signbitf-generic objects.
2816         * sysdeps/sparc/sparc64/fpu/multiarch/s_signbit.c: New file.
2817         * sysdeps/sparc/sparc64/fpu/multiarch/s_signbitf.c: Likewise.
2818         * sysdeps/sparc/sparc64/fpu/multiarch/s_signbit-generic.S: Likewise.
2819         * sysdeps/sparc/sparc64/fpu/multiarch/s_signbitf-generic.S: Likewise.
2820         * sysdeps/sparc/sparc64/fpu/multiarch/s_signbit.S: Remove file.
2821         * sysdeps/sparc/sparc64/fpu/multiarch/s_signbitf.S: Likewise.
2823 2017-11-29  Joseph Myers  <joseph@codesourcery.com>
2825         * sysdeps/ia64/fpu/libm-symbols.h: Include <libm-alias-float.h>.
2826         * sysdeps/ia64/fpu/e_acosf.S (acosf): Use libm_alias_float_other.
2827         * sysdeps/ia64/fpu/e_acoshf.S (acoshf): Likewise.
2828         * sysdeps/ia64/fpu/e_asinf.S (asinf): Likewise.
2829         * sysdeps/ia64/fpu/e_atan2f.S (atan2f): Likewise.
2830         * sysdeps/ia64/fpu/e_atanhf.S (atanhf): Likewise.
2831         * sysdeps/ia64/fpu/e_coshf.S (coshf): Likewise.
2832         * sysdeps/ia64/fpu/e_exp10f.S (exp10f): Likewise.
2833         * sysdeps/ia64/fpu/e_exp2f.S (exp2f): Likewise.
2834         * sysdeps/ia64/fpu/e_expf.S (expf): Likewise.
2835         * sysdeps/ia64/fpu/e_fmodf.S (fmodf): Likewise.
2836         * sysdeps/ia64/fpu/e_hypotf.S (hypotf): Likewise.
2837         * sysdeps/ia64/fpu/e_lgammaf_r.c (lgammaf_r): Define using
2838         libm_alias_float_r.
2839         * sysdeps/ia64/fpu/e_log2f.S (log2f): Use libm_alias_float_other.
2840         * sysdeps/ia64/fpu/e_logf.S (log10f): Likewise.
2841         (logf): Likewise.
2842         * sysdeps/ia64/fpu/e_powf.S (powf): Likewise.
2843         * sysdeps/ia64/fpu/e_remainderf.S (remainderf): Likewise.
2844         * sysdeps/ia64/fpu/e_sinhf.S (sinhf): Likewise.
2845         * sysdeps/ia64/fpu/e_sqrtf.S (sqrtf): Likewise.
2846         * sysdeps/ia64/fpu/libm_sincosf.S (sincosf): Likewise.
2847         * sysdeps/ia64/fpu/s_asinhf.S (asinhf): Likewise.
2848         * sysdeps/ia64/fpu/s_atanf.S (atanf): Likewise.
2849         * sysdeps/ia64/fpu/s_cbrtf.S (cbrtf): Likewise.
2850         * sysdeps/ia64/fpu/s_ceilf.S (ceilf): Likewise.
2851         * sysdeps/ia64/fpu/s_copysign.S (copysignf): Define using
2852         libm_alias_float.
2853         * sysdeps/ia64/fpu/s_cosf.S (sinf): Use libm_alias_float_other.
2854         (cosf): Likewise.
2855         * sysdeps/ia64/fpu/s_erfcf.S (erfcf): Likewise.
2856         * sysdeps/ia64/fpu/s_erff.S (erff): Likewise.
2857         * sysdeps/ia64/fpu/s_expm1f.S (expm1f): Likewise.
2858         * sysdeps/ia64/fpu/s_fabsf.S (fabsf): Likewise.
2859         * sysdeps/ia64/fpu/s_fdimf.S (fdimf): Likewise.
2860         * sysdeps/ia64/fpu/s_floorf.S (floorf): Likewise.
2861         * sysdeps/ia64/fpu/s_fmaf.S (fmaf): Likewise.
2862         * sysdeps/ia64/fpu/s_fmaxf.S (fmaxf): Likewise.
2863         * sysdeps/ia64/fpu/s_frexpf.c (frexpf): Likewise.
2864         * sysdeps/ia64/fpu/s_ldexpf.c (ldexpf): Likewise.
2865         * sysdeps/ia64/fpu/s_log1pf.S (log1pf): Likewise.
2866         * sysdeps/ia64/fpu/s_logbf.S (logbf): Likewise.
2867         * sysdeps/ia64/fpu/s_modff.S (modff): Likewise.
2868         * sysdeps/ia64/fpu/s_nearbyintf.S (nearbyintf): Likewise.
2869         * sysdeps/ia64/fpu/s_nextafterf.S (nextafterf): Likewise.
2870         * sysdeps/ia64/fpu/s_rintf.S (rintf): Likewise.
2871         * sysdeps/ia64/fpu/s_roundf.S (roundf): Likewise.
2872         * sysdeps/ia64/fpu/s_scalblnf.c (scalblnf): Likewise.
2873         * sysdeps/ia64/fpu/s_scalbnf.c (scalbnf): Define using
2874         libm_alias_float.
2875         * sysdeps/ia64/fpu/s_tanf.S (tanf): Use libm_alias_float_other.
2876         * sysdeps/ia64/fpu/s_tanhf.S (tanhf): Likewise.
2877         * sysdeps/ia64/fpu/s_truncf.S (truncf): Likewise.
2878         * sysdeps/ia64/fpu/w_lgammaf_main.c
2879         [BUILD_LGAMMA && !USE_AS_COMPAT] (lgammaf): Likewise.
2880         * sysdeps/ia64/fpu/w_tgammaf_compat.S (tgammaf): Likewise.
2882 2017-11-28  Mike FABIAN  <mfabian@redhat.com>, Alexandre Oliva <aoliva@redhat.com>
2884         [BZ #17750]
2885         * Makefile: add fr_CA.UTF-8 to test-input and LOCALES.
2886         * localedata/fr_CA.UTF-8.in: New file with test data for backward
2887         accents sorting.
2888         * localedata/fr_FR.UTF-8.in: Fix test data for forward accents
2889         sorting.
2890         * localedata/locales/cs_CZ (LC_COLLATE): Remove “define DIACRIT_FORWARD”
2891         * localedata/locales/de_DE (LC_COLLATE): Likewise.
2892         * localedata/locales/hu_HU (LC_COLLATE): Likewise.
2893         * localedata/locales/lb_LU (LC_COLLATE): Likewise.
2894         * localedata/locales/yuw_PG (LC_COLLATE): Likewise.
2895         * localedata/locales/fr_CA (LC_COLLATE): Add “define DIACRIT_BACKWARD”
2896         * localedata/locales/iso14651_t1_common: Use “ifdef DIACRIT_FORWARD”
2897         instead of “ifdef DIACRIT_BACKWARD”.
2899 2017-11-29  Adhemerval Zanella  <adhemerval.zanella@linaro.org>
2901         * config.h.in (HAVE_AS_VIS3_SUPPORT): Remove check for VIS3 support.
2902         * sysdeps/sparc/configure.ac (HAVE_AS_VIS3_SUPPORT): Likewise.
2903         * sysdeps//sparc/sparc32/sparcv9/fpu/multiarch/s_fdim.c: Likewise.
2904         * sysdeps//sparc/sparc32/sparcv9/fpu/multiarch/s_fdimf.c: Likewise.
2905         * sysdeps//sparc/sparc32/sparcv9/fpu/multiarch/s_fma.c: Likewise.
2906         * sysdeps//sparc/sparc32/sparcv9/fpu/multiarch/s_fmaf.c: Likewise.
2907         * sysdeps/sparc/sparc64/fpu/multiarch/s_ceil.c: Likewise.
2908         * sysdeps/sparc/sparc64/fpu/multiarch/s_ceilf.c: Likewise.
2909         * sysdeps/sparc/sparc64/fpu/multiarch/s_floor.c: Likewise.
2910         * sysdeps/sparc/sparc64/fpu/multiarch/s_floorf.c: Likewise.
2911         * sysdeps/sparc/sparc64/fpu/multiarch/s_fma.c: Likewise.
2912         * sysdeps/sparc/sparc64/fpu/multiarch/s_fmaf.c: Likewise.
2913         * sysdeps/sparc/sparc64/fpu/multiarch/s_trunc.c: Likewise.
2914         * sysdeps/sparc/sparc64/fpu/multiarch/s_truncf.c: Likewise.
2915         * sysdeps/sparc/sparc-ifunc.h [!HAVE_AS_VIS3_SUPPORT]
2916         (SPARC_ASM_VIS3_IFUNC, SPARC_ASM_VIS3_VIS2_IFUNC): Remove macros.
2917         * sysdeps/sparc/sparc32/sparcv9/Makefile [$(have-as-vis3) != yes]
2918         (ASFLAGS.o, ASFLAGS-.os, ASFLAGS-.op, ASFLAGS-.oS): Remove rules.
2919         * sysdeps/sparc/sparc32/sparcv9/fpu/multiarch/Makefile
2920         ($(have-as-vis3) == yes): Remove conditional.
2921         * sysdeps/sparc/sparc64/Makefile (($(have-as-vis3) == yes)):
2922         Likewise.
2923         * sysdeps/sparc/sparc32/sparcv9/fpu/multiarch/s_fdim-generic.c: New
2924         file.
2925         * sysdeps/sparc/sparc32/sparcv9/fpu/multiarch/s_fdimf-generic.c: New
2926         file.
2927         * sysdeps/sparc/sparc32/sparcv9/fpu/multiarch/s_fma-generic.c: New
2928         file.
2929         * sysdeps/sparc/sparc32/sparcv9/fpu/multiarch/s_fmaf-generic.c: New
2930         file.
2931         * sysdeps/sparc/sparc64/fpu/multiarch/s_ceil-generic.c: New file.
2932         * sysdeps/sparc/sparc64/fpu/multiarch/s_ceilf-generic.c: New file.
2933         * sysdeps/sparc/sparc64/fpu/multiarch/s_floor-generic.c: New file.
2934         * sysdeps/sparc/sparc64/fpu/multiarch/s_floorf-generic.c: New file.
2935         * sysdeps/sparc/sparc64/fpu/multiarch/s_fma-generic.c: New file.
2936         * sysdeps/sparc/sparc64/fpu/multiarch/s_fmaf-generic.c: New file.
2937         * sysdeps/sparc/sparc64/fpu/multiarch/s_trunc-generic.c: New file.
2938         * sysdeps/sparc/sparc64/fpu/multiarch/s_truncf-generic.c: New file.
2940 2017-11-29  Joseph Myers  <joseph@codesourcery.com>
2942         * sysdeps/ia64/fpu/libm-symbols.h: Include <libm-alias-double.h>.
2943         * sysdeps/ia64/fpu/e_acos.S (acos): Use libm_alias_double_other.
2944         * sysdeps/ia64/fpu/e_acosh.S (acosh): Likewise.
2945         * sysdeps/ia64/fpu/e_asin.S (asin): Likewise.
2946         * sysdeps/ia64/fpu/e_atan2.S (atan2): Likewise.
2947         * sysdeps/ia64/fpu/e_atanh.S (atanh): Likewise.
2948         * sysdeps/ia64/fpu/e_cosh.S (cosh): Likewise.
2949         * sysdeps/ia64/fpu/e_exp.S (exp): Likewise.
2950         * sysdeps/ia64/fpu/e_exp10.S (exp10): Likewise.
2951         * sysdeps/ia64/fpu/e_exp2.S (exp2): Likewise.
2952         * sysdeps/ia64/fpu/e_fmod.S (fmod): Likewise.
2953         * sysdeps/ia64/fpu/e_hypot.S (hypot): Likewise.
2954         * sysdeps/ia64/fpu/e_lgamma_r.c (lgamma_r): Define using
2955         libm_alias_double_r.
2956         * sysdeps/ia64/fpu/e_log.S (log10): Use libm_alias_double_other.
2957         (log): Likewise.
2958         * sysdeps/ia64/fpu/e_log2.S (log2): Likewise.
2959         * sysdeps/ia64/fpu/e_pow.S (pow): Likewise.
2960         * sysdeps/ia64/fpu/e_remainder.S (remainder): Likewise.
2961         * sysdeps/ia64/fpu/e_sinh.S (sinh): Likewise.
2962         * sysdeps/ia64/fpu/e_sqrt.S (sqrt): Likewise.
2963         * sysdeps/ia64/fpu/libm_sincos.S (sincos): Likewise.
2964         * sysdeps/ia64/fpu/s_asinh.S (asinh): Likewise.
2965         * sysdeps/ia64/fpu/s_atan.S (atan): Likewise.
2966         * sysdeps/ia64/fpu/s_cbrt.S (cbrt): Likewise.
2967         * sysdeps/ia64/fpu/s_ceil.S (ceil): Likewise.
2968         * sysdeps/ia64/fpu/s_copysign.S (copysign): Define using
2969         libm_alias_double.
2970         * sysdeps/ia64/fpu/s_cos.S (sin): Use libm_alias_double_other.
2971         (cos): Likewise.
2972         * sysdeps/ia64/fpu/s_erf.S (erf): Likewise.
2973         * sysdeps/ia64/fpu/s_erfc.S (erfc): Likewise.
2974         * sysdeps/ia64/fpu/s_expm1.S (expm1): Likewise.
2975         * sysdeps/ia64/fpu/s_fabs.S (fabs): Likewise.
2976         * sysdeps/ia64/fpu/s_fdim.S (fdim): Likewise.
2977         * sysdeps/ia64/fpu/s_floor.S (floor): Likewise.
2978         * sysdeps/ia64/fpu/s_fma.S (fma): Likewise.
2979         * sysdeps/ia64/fpu/s_fmax.S (fmax): Likewise.
2980         * sysdeps/ia64/fpu/s_frexp.c (frexp): Likewise.
2981         * sysdeps/ia64/fpu/s_ldexp.c (ldexp): Likewise.
2982         * sysdeps/ia64/fpu/s_log1p.S (log1p): Likewise.
2983         * sysdeps/ia64/fpu/s_logb.S (logb): Likewise.
2984         * sysdeps/ia64/fpu/s_modf.S (modf): Likewise.
2985         * sysdeps/ia64/fpu/s_nearbyint.S (nearbyint): Likewise.
2986         * sysdeps/ia64/fpu/s_nextafter.S (nextafter): Likewise.
2987         * sysdeps/ia64/fpu/s_rint.S (rint): Likewise.
2988         * sysdeps/ia64/fpu/s_round.S (round): Likewise.
2989         * sysdeps/ia64/fpu/s_scalbn.c (scalbn): Define using
2990         libm_alias_double.
2991         * sysdeps/ia64/fpu/s_tan.S (tan): Use libm_alias_double_other.
2992         * sysdeps/ia64/fpu/s_tanh.S (tanh): Likewise.
2993         * sysdeps/ia64/fpu/s_trunc.S (trunc): Likewise.
2994         * sysdeps/ia64/fpu/w_lgamma_main.c
2995         [BUILD_LGAMMA && !USE_AS_COMPAT] (lgamma): Likewise.
2996         * sysdeps/ia64/fpu/w_tgamma_compat.S (tgamma): Likewise.
2998 2017-11-28  John David Anglin  <danglin@gcc.gnu.org>
3000         * sysdeps/hppa/start.S (_start): Check PIC instead of SHARED.  Load
3001         address of $global$ into %dp register earlier.  Use pc-relative
3002         instruction sequence for PIC case.
3004 2017-11-28  Joseph Myers  <joseph@codesourcery.com>
3006         * sysdeps/i386/fpu/s_asinhf.S: Include <libm-alias-float.h>.
3007         (asinhf): Define using libm_alias_float.
3008         * sysdeps/i386/fpu/s_atanf.S: Include <libm-alias-float.h>.
3009         (atanf): Define using libm_alias_float.
3010         * sysdeps/i386/fpu/s_cbrtf.S: Include <libm-alias-float.h>.
3011         (cbrtf): Define using libm_alias_float.
3012         * sysdeps/i386/fpu/s_ceilf.S: Include <libm-alias-float.h>.
3013         (ceilf): Define using libm_alias_float.
3014         * sysdeps/i386/fpu/s_copysignf.S: Include <libm-alias-float.h>.
3015         (copysignf): Define using libm_alias_float.
3016         * sysdeps/i386/fpu/s_expm1f.S: Include <libm-alias-float.h>.
3017         (expm1f): Define using libm_alias_float.
3018         * sysdeps/i386/fpu/s_fabsf.S: Include <libm-alias-float.h>.
3019         (fabsf): Define using libm_alias_float.
3020         * sysdeps/i386/fpu/s_floorf.S: Include <libm-alias-float.h>.
3021         (floorf): Define using libm_alias_float.
3022         * sysdeps/i386/fpu/s_fmaxf.S: Include <libm-alias-float.h>.
3023         (fmaxf): Define using libm_alias_float.
3024         * sysdeps/i386/fpu/s_fminf.S: Include <libm-alias-float.h>.
3025         (fminf): Define using libm_alias_float.
3026         * sysdeps/i386/fpu/s_frexpf.S: Include <libm-alias-float.h>.
3027         (frexpf): Define using libm_alias_float.
3028         * sysdeps/i386/fpu/s_llrintf.S: Include <libm-alias-float.h>.
3029         (llrintf): Define using libm_alias_float.
3030         * sysdeps/i386/fpu/s_logbf.S: Include <libm-alias-float.h>.
3031         (logbf): Define using libm_alias_float.
3032         * sysdeps/i386/fpu/s_lrintf.S: Include <libm-alias-float.h>.
3033         (lrintf): Define using libm_alias_float.
3034         * sysdeps/i386/fpu/s_nearbyintf.S: Include <libm-alias-float.h>.
3035         (nearbyintf): Define using libm_alias_float.
3036         * sysdeps/i386/fpu/s_remquof.S: Include <libm-alias-float.h>.
3037         (remquof): Define using libm_alias_float.
3038         * sysdeps/i386/fpu/s_rintf.S: Include <libm-alias-float.h>.
3039         (rintf): Define using libm_alias_float.
3040         * sysdeps/i386/fpu/s_truncf.S: Include <libm-alias-float.h>.
3041         (truncf): Define using libm_alias_float.
3042         * sysdeps/i386/i686/fpu/multiarch/e_exp2f.c: Include
3043         <libm-alias-float.h>.
3044         (exp2f): Define using libm_alias_float, or libm_alias_float_other
3045         if [SHARED].
3046         * sysdeps/i386/i686/fpu/multiarch/e_expf.c: Include
3047         <libm-alias-float.h>.
3048         (expf): Define using libm_alias_float, or libm_alias_float_other
3049         if [SHARED].
3050         * sysdeps/i386/i686/fpu/multiarch/e_log2f.c: Include
3051         <libm-alias-float.h>.
3052         (log2f): Define using libm_alias_float, or libm_alias_float_other
3053         if [SHARED].
3054         * sysdeps/i386/i686/fpu/multiarch/e_logf.c: Include
3055         <libm-alias-float.h>.
3056         (logf): Define using libm_alias_float, or libm_alias_float_other
3057         if [SHARED].
3058         * sysdeps/i386/i686/fpu/multiarch/e_powf.c: Include
3059         <libm-alias-float.h>.
3060         (powf): Define using libm_alias_float, or libm_alias_float_other
3061         if [SHARED].
3062         * sysdeps/i386/i686/fpu/multiarch/s_cosf.c: Include
3063         <libm-alias-float.h>.
3064         (cosf): Define using libm_alias_float.
3065         * sysdeps/i386/i686/fpu/multiarch/s_sincosf.c: Include
3066         <libm-alias-float.h>.
3067         (sincosf): Define using libm_alias_float.
3068         * sysdeps/i386/i686/fpu/multiarch/s_sinf.c: Include
3069         <libm-alias-float.h>.
3070         (sinf): Define using libm_alias_float.
3071         * sysdeps/i386/i686/fpu/s_fmaxf.S: Include <libm-alias-float.h>.
3072         (fmaxf): Define using libm_alias_float.
3073         * sysdeps/i386/i686/fpu/s_fminf.S: Include <libm-alias-float.h>.
3074         (fminf): Define using libm_alias_float.
3075         * sysdeps/i386/i686/multiarch/s_fmaf.c: Include
3076         <libm-alias-float.h>.
3077         (fmaf): Define using libm_alias_float.
3079         * sysdeps/i386/fpu/s_asinh.S: Include <libm-alias-double.h>.
3080         (asinh): Define using libm_alias_double.
3081         * sysdeps/i386/fpu/s_atan.S: Include <libm-alias-double.h>.
3082         (atan): Define using libm_alias_double.
3083         * sysdeps/i386/fpu/s_cbrt.S: Include <libm-alias-double.h>.
3084         (cbrt): Define using libm_alias_double.
3085         * sysdeps/i386/fpu/s_ceil.S: Include <libm-alias-double.h>.
3086         (ceil): Define using libm_alias_double.
3087         * sysdeps/i386/fpu/s_copysign.S: Include <libm-alias-double.h>.
3088         (copysign): Define using libm_alias_double.
3089         * sysdeps/i386/fpu/s_expm1.S: Include <libm-alias-double.h>.
3090         (expm1): Define using libm_alias_double.
3091         * sysdeps/i386/fpu/s_fabs.S: Include <libm-alias-double.h>.
3092         (fabs): Define using libm_alias_double.
3093         * sysdeps/i386/fpu/s_fdim.c: Include <libm-alias-double.h>.
3094         (fdim): Define using libm_alias_double.
3095         * sysdeps/i386/fpu/s_floor.S: Include <libm-alias-double.h>.
3096         (floor): Define using libm_alias_double.
3097         * sysdeps/i386/fpu/s_fmax.S: Include <libm-alias-double.h>.
3098         (fmax): Define using libm_alias_double.
3099         * sysdeps/i386/fpu/s_fmin.S: Include <libm-alias-double.h>.
3100         (fmin): Define using libm_alias_double.
3101         * sysdeps/i386/fpu/s_frexp.S: Include <libm-alias-double.h>.
3102         (frexp): Define using libm_alias_double.
3103         * sysdeps/i386/fpu/s_llrint.S: Include <libm-alias-double.h>.
3104         (llrint): Define using libm_alias_double.
3105         * sysdeps/i386/fpu/s_logb.S: Include <libm-alias-double.h>.
3106         (logb): Define using libm_alias_double.
3107         * sysdeps/i386/fpu/s_lrint.S: Include <libm-alias-double.h>.
3108         (lrint): Define using libm_alias_double.
3109         * sysdeps/i386/fpu/s_nearbyint.S: Include <libm-alias-double.h>.
3110         (nearbyint): Define using libm_alias_double.
3111         * sysdeps/i386/fpu/s_remquo.S: Include <libm-alias-double.h>.
3112         (remquo): Define using libm_alias_double.
3113         * sysdeps/i386/fpu/s_rint.S: Include <libm-alias-double.h>.
3114         (rint): Define using libm_alias_double.
3115         * sysdeps/i386/fpu/s_trunc.S: Include <libm-alias-double.h>.
3116         (trunc): Define using libm_alias_double.
3117         * sysdeps/i386/i686/fpu/s_fmax.S: Include <libm-alias-double.h>.
3118         (fmax): Define using libm_alias_double.
3119         * sysdeps/i386/i686/fpu/s_fmin.S: Include <libm-alias-double.h>.
3120         (fmin): Define using libm_alias_double.
3121         * sysdeps/i386/i686/multiarch/s_fma.c: Include <libm-alias-double.h>.
3122         (fma): Define using libm_alias_double.
3124 2017-11-28  H.J. Lu  <hongjiu.lu@intel.com>
3126         [BZ #22370]
3127         * elf/dl-hwcaps.c (ROUND): Removed.
3128         (_dl_important_hwcaps): Replace ROUND with ELF_NOTE_DESC_OFFSET
3129         and ELF_NOTE_NEXT_OFFSET.
3130         * elf/dl-load.c (ROUND): Removed.
3131         (open_verify): Replace ROUND with ELF_NOTE_NEXT_OFFSET.
3132         * elf/readelflib.c (ROUND): Removed.
3133         (process_elf_file): Replace ROUND with ELF_NOTE_NEXT_OFFSET.
3134         * include/elf.h [!_ISOMAC]: Include <libc-pointer-arith.h>.
3135         [!_ISOMAC] (ELF_NOTE_DESC_OFFSET): New.
3136         [!_ISOMAC] (ELF_NOTE_NEXT_OFFSET): Likewise.
3138 2017-11-28  Joseph Myers  <joseph@codesourcery.com>
3140         * sysdeps/s390/fpu/s_fmaf.c: Include <libm-alias-float.h>.
3141         [!__fmaf] (fmaf): Define using libm_alias_float.
3143         * sysdeps/s390/fpu/s_fma.c: Include <libm-alias-double.h>.
3144         [!__fma] (fma): Define using libm_alias_double.
3145         * sysdeps/unix/sysv/linux/s390/fpu/s_fma.c: Remove.
3147 2017-11-28  Mike FABIAN  <mfabian@redhat.com>
3149         [BZ #22336]
3150         * localedata/locales/cs_CZ (LC_COLLATE): Use “copy "iso14651_t1"”
3151         and implement the collation rules for cs from CLDR on top of that.
3152         * Makefile: Add cs_CZ.UTF-8 to test-input.
3153         * cs_CZ.UTF-8.in: New file with test data to test the Czech sorting.
3155 2017-11-28  Siddhesh Poyarekar  <siddhesh@sourceware.org>
3157         * localedata/Makefile (LOCALES): Remove duplicate cs_CZ.UTF-8.
3159 2017-11-28  Victor Rodriguez  <victor.rodriguez.bahena@intel.com>
3160             Icarus Sparry  <icarus.w.sparry@intel.com>
3162         * benchtests/Makefile:Add BENCHSET to allow subsets of
3163         benchmarks to be run.
3164         * benchtests/README: Add documentation for: Running subsets of
3165         benchmarks.
3167 2017-11-28  Victor Rodriguez  <victor.rodriguez.bahena@intel.com>
3169         * benchtests/scripts/benchout.schema.json: Fix regex to accept a wider
3170         range of tests names.
3172         * benchtests/scripts/benchout.schema.json: Add throughput as accepted
3173         result from property and remove "max", min" and "mean" from
3174         required properties based on benchtests/bench-skeleton.c.
3176 2017-11-28  Florian Weimer  <fweimer@redhat.com>
3178         [BZ #20826]
3179         Turn posix/tst-getaddrinfo4, posix/tst-getaddrinfo5 into xtests
3180         due to Internet requirement.
3181         * posix/Makefile (tests): Remove tst-getaddrinfo4,
3182         tst-getaddrinfo5.
3183         (xtests): Add tst-getaddrinfo4, tst-getaddrinfo5.
3185 2017-11-28  Adhemerval Zanella  <adhemerval.zanella@linaro.org>
3187         * sysdeps/sparc/sparc32/sparcv9/multiarch/Makefile
3188         [$(subdir) = string] (sysdep_routines): Add memset-ultra1.
3189         * sysdeps/sparc/sparc64/multiarch/Makefile [$(subdir) = string]
3190         (sysdep_routines): Add memset-ultra1.
3191         * sysdeps/sparc/sparc32/sparcv9/multiarch/memset-ultra1.S: New
3192         file.
3193         * sysdeps/sparc/sparc32/sparcv9/multiarch/memset.c: Likewise.
3194         * sysdeps/sparc/sparc32/sparcv9/multiarch/bzero.c: Likewise.
3195         * sysdeps/sparc/sparc64/multiarch/ifunc-memset.h: Likewise.
3196         * sysdeps/sparc/sparc64/multiarch/memset-ultra1.S: Likewise.
3197         * sysdeps/sparc/sparc64/multiarch/memset.c: Likewise.
3198         * sysdeps/sparc/sparc64/multiarch/bzero.c: Likewise.
3199         * sysdeps/sparc/sparc32/sparcv9/multiarch/memset.S: Remove file.
3200         * sysdeps/sparc/sparc64/multiarch/memset.S: Likewise.
3202         * sysdeps/sparc/sparc32/sparcv9/multiarch/memcpy-ultra1.S: New
3203         file.
3204         * sysdeps/sparc/sparc32/sparcv9/multiarch/memcpy.c: Likewise.
3205         * sysdeps/sparc/sparc32/sparcv9/multiarch/mempcpy.c: Likewise.
3206         * sysdeps/sparc/sparc64/multiarch/ifunc-memcpy.h: Likewise.
3207         * sysdeps/sparc/sparc64/multiarch/memcpy-ultra1.S: Likewise.
3208         * sysdeps/sparc/sparc64/multiarch/memcpy.c: Likewise.
3209         * sysdeps/sparc/sparc64/multiarch/mempcpy.c: Likewise.
3210         * sysdeps/sparc/sparc-ifunc.h (sparc_libc_ifunc_redirected): New
3211         macro.
3212         * sysdeps/sparc/sparc32/sparcv9/multiarch/Makefile
3213         [$(subdir) = string] (sysdep_routines): Add memcpy-ultra1.
3214         * sysdeps/sparc/sparc64/multiarch/Makefile [$(subdir) = string]
3215         (sysdep_routines): Add memcpy-ultra1.
3216         * sysdeps/sparc/sparc64/multiarch/memcpy.S: Remove file.
3217         * sysdeps/sparc/sparc32/sparcv9/multiarch/memcpy.S: Likewise.
3219 2017-11-28  Joseph Myers  <joseph@codesourcery.com>
3221         * sysdeps/alpha/fpu/cfloat-compat.h: Include <libm-alias-float.h>.
3222         (cfloat_versions): Take function argument without trailing 'f'.
3223         Call libm_alias_float_other.
3224         * sysdeps/alpha/fpu/cabsf.c: Update call to cfloat_versions.
3225         * sysdeps/alpha/fpu/cargf.c: Likewise.
3226         * sysdeps/alpha/fpu/cimagf.c: Likewise.
3227         * sysdeps/alpha/fpu/conjf.c: Likewise.
3228         * sysdeps/alpha/fpu/crealf.c: Likewise.
3229         * sysdeps/alpha/fpu/s_cacosf.c: Likewise.
3230         * sysdeps/alpha/fpu/s_cacoshf.c: Likewise.
3231         * sysdeps/alpha/fpu/s_casinf.c: Likewise.
3232         * sysdeps/alpha/fpu/s_casinhf.c: Likewise.
3233         * sysdeps/alpha/fpu/s_catanf.c: Likewise.
3234         * sysdeps/alpha/fpu/s_catanhf.c: Likewise.
3235         * sysdeps/alpha/fpu/s_ccosf.c: Likewise.
3236         * sysdeps/alpha/fpu/s_ccoshf.c: Likewise.
3237         * sysdeps/alpha/fpu/s_cexpf.c: Likewise.
3238         * sysdeps/alpha/fpu/s_clogf.c: Likewise.
3239         * sysdeps/alpha/fpu/s_cpowf.c: Likewise.
3240         * sysdeps/alpha/fpu/s_cprojf.c: Likewise.
3241         * sysdeps/alpha/fpu/s_csinf.c: Likewise.
3242         * sysdeps/alpha/fpu/s_csinhf.c: Likewise.
3243         * sysdeps/alpha/fpu/s_csqrtf.c: Likewise.
3244         * sysdeps/alpha/fpu/s_ctanf.c: Likewise.
3245         * sysdeps/alpha/fpu/s_ctanhf.c: Likewise.
3246         * sysdeps/alpha/fpu/s_clog10f.c: Include <libm-alias-float.h>.
3247         (clog10f): Use libm_alias_float_other.
3248         * sysdeps/alpha/fpu/s_ceilf.c: Include <libm-alias-float.h>.
3249         (ceilf): Define using libm_alias_float.
3250         * sysdeps/alpha/fpu/s_copysignf.c: Include <libm-alias-float.h>.
3251         (copysignf): Define using libm_alias_float.
3252         * sysdeps/alpha/fpu/s_fabsf.c: Include <libm-alias-float.h>.
3253         (fabsf): Define using libm_alias_float.
3254         * sysdeps/alpha/fpu/s_floorf.c: Include <libm-alias-float.h>.
3255         (floorf): Define using libm_alias_float.
3256         * sysdeps/alpha/fpu/s_fmax.S: Include <libm-alias-float.h>.
3257         (fmaxf): Define using libm_alias_float.
3258         * sysdeps/alpha/fpu/s_fmin.S: Include <libm-alias-float.h>.
3259         (fminf): Define using libm_alias_float.
3260         * sysdeps/alpha/fpu/s_lrintf.c: Include <libm-alias-float.h>.
3261         (lrintf): Define using libm_alias_float.
3262         (llrintf): Likewise.
3263         * sysdeps/alpha/fpu/s_lroundf.c: Include <libm-alias-float.h>.
3264         (lroundf): Define using libm_alias_float.
3265         (llroundf): Likewise.
3266         * sysdeps/alpha/fpu/s_rintf.c: Include <libm-alias-float.h>.
3267         (rintf): Define using libm_alias_float.
3268         * sysdeps/alpha/fpu/s_truncf.c: Include <libm-alias-float.h>.
3269         (truncf): Define using libm_alias_float.
3271         * sysdeps/aarch64/fpu/s_ceilf.c: Include <libm-alias-float.h>.
3272         (ceilf): Define using libm_alias_float.
3273         * sysdeps/aarch64/fpu/s_floorf.c: Include <libm-alias-float.h>.
3274         (floorf): Define using libm_alias_float.
3275         * sysdeps/aarch64/fpu/s_fmaf.c: Include <libm-alias-float.h>.
3276         (fmaf): Define using libm_alias_float.
3277         * sysdeps/aarch64/fpu/s_fmaxf.c: Include <libm-alias-float.h>.
3278         (fmaxf): Define using libm_alias_float.
3279         * sysdeps/aarch64/fpu/s_fminf.c: Include <libm-alias-float.h>.
3280         (fminf): Define using libm_alias_float.
3281         * sysdeps/aarch64/fpu/s_llrintf.c: Include <libm-alias-float.h>.
3282         (llrintf): Define using libm_alias_float.
3283         * sysdeps/aarch64/fpu/s_llroundf.c: Include <libm-alias-float.h>.
3284         (llroundf): Define using libm_alias_float.
3285         * sysdeps/aarch64/fpu/s_lrintf.c: Include <libm-alias-float.h>.
3286         (lrintf): Define using libm_alias_float.
3287         * sysdeps/aarch64/fpu/s_lroundf.c: Include <libm-alias-float.h>.
3288         (lroundf): Define using libm_alias_float.
3289         * sysdeps/aarch64/fpu/s_nearbyintf.c: Include
3290         <libm-alias-float.h>.
3291         (nearbyintf): Define using libm_alias_float.
3292         * sysdeps/aarch64/fpu/s_rintf.c: Include <libm-alias-float.h>.
3293         (rintf): Define using libm_alias_float.
3294         * sysdeps/aarch64/fpu/s_roundf.c: Include <libm-alias-float.h>.
3295         (roundf): Define using libm_alias_float.
3296         * sysdeps/aarch64/fpu/s_truncf.c: Include <libm-alias-float.h>.
3297         (truncf): Define using libm_alias_float.
3299         * sysdeps/alpha/fpu/s_ceil.c: Include <libm-alias-double.h>.
3300         (ceil): Define using libm_alias_double.
3301         * sysdeps/alpha/fpu/s_copysign.c: Include <libm-alias-double.h>.
3302         (copysign): Define using libm_alias_double.
3303         * sysdeps/alpha/fpu/s_fabs.c: Include <libm-alias-double.h>.
3304         (fabs): Define using libm_alias_double.
3305         * sysdeps/alpha/fpu/s_floor.c: Include <libm-alias-double.h>.
3306         (floor): Define using libm_alias_double.
3307         * sysdeps/alpha/fpu/s_fmax.S: Include <libm-alias-double.h>.
3308         (fmax): Define using libm_alias_double.
3309         * sysdeps/alpha/fpu/s_fmin.S: Include <libm-alias-double.h>.
3310         (fmin): Define using libm_alias_double.
3311         * sysdeps/alpha/fpu/s_lrint.c: Include <libm-alias-double.h>.
3312         (lrint): Define using libm_alias_double.
3313         (llrint): Likewise.
3314         * sysdeps/alpha/fpu/s_lround.c: Include <libm-alias-double.h>.
3315         (lround): Define using libm_alias_double.
3316         (llround): Likewise.
3317         * sysdeps/alpha/fpu/s_rint.c: Include <libm-alias-double.h>.
3318         (rint): Define using libm_alias_double.
3319         * sysdeps/alpha/fpu/s_trunc.c: Include <libm-alias-double.h>.
3320         (trunc): Define using libm_alias_double.
3322         * sysdeps/ieee754/ldbl-opt/libm-alias-double.h
3323         (libm_alias_double_r): Add semicolon after weak_alias call.
3325 2017-11-27  Joseph Myers  <joseph@codesourcery.com>
3327         * sysdeps/aarch64/fpu/s_ceil.c: Include <libm-alias-double.h>.
3328         (ceil): Define using libm_alias_double.
3329         * sysdeps/aarch64/fpu/s_floor.c: Include <libm-alias-double.h>.
3330         (floor): Define using libm_alias_double.
3331         * sysdeps/aarch64/fpu/s_fma.c: Include <libm-alias-double.h>.
3332         (fma): Define using libm_alias_double.
3333         * sysdeps/aarch64/fpu/s_fmax.c: Include <libm-alias-double.h>.
3334         (fmax): Define using libm_alias_double.
3335         * sysdeps/aarch64/fpu/s_fmin.c: Include <libm-alias-double.h>.
3336         (fmin): Define using libm_alias_double.
3337         * sysdeps/aarch64/fpu/s_llrint.c: Include <libm-alias-double.h>.
3338         (llrint): Define using libm_alias_double.
3339         * sysdeps/aarch64/fpu/s_llround.c: Include <libm-alias-double.h>.
3340         (llround): Define using libm_alias_double.
3341         * sysdeps/aarch64/fpu/s_lrint.c: Include <libm-alias-double.h>.
3342         (lrint): Define using libm_alias_double.
3343         * sysdeps/aarch64/fpu/s_lround.c: Include <libm-alias-double.h>.
3344         (lround): Define using libm_alias_double.
3345         * sysdeps/aarch64/fpu/s_nearbyint.c: Include <libm-alias-double.h>.
3346         (nearbyint): Define using libm_alias_double.
3347         * sysdeps/aarch64/fpu/s_rint.c: Include <libm-alias-double.h>.
3348         (rint): Define using libm_alias_double.
3349         * sysdeps/aarch64/fpu/s_round.c: Include <libm-alias-double.h>.
3350         (round): Define using libm_alias_double.
3351         * sysdeps/aarch64/fpu/s_trunc.c: Include <libm-alias-double.h>.
3352         (trunc): Define using libm_alias_double.
3354 2017-11-27  Florian Weimer  <fweimer@redhat.com>
3356         * sysdeps/unix/sysv/linux/mlock2.c: New file.
3357         * sysdeps/unix/sysv/linux/tst-mlock2.c: Likewise.
3358         * sysdeps/unix/sysv/linux/Makefile (routines): Add mlock2.
3359         (tests): Add tst-mlock2.
3360         * sysdeps/unix/sysv/linux/Versions (GLIBC_2.27): Export mlock2.
3361         * sysdeps/unix/sysv/linux/kernel-features.h (__ASSUME_MLOCK2)
3362         [__LINUX_KERNEL_VERSION >= 4.4]: Define.
3363         * sysdeps/unix/sysv/linux/libc**.abilist: Update.
3364         * manual/memory.texi (Page Lock Functions): Move @end deftypefun
3365         for mlock.  Document mlock2.
3367 2017-11-27  Joseph Myers  <joseph@codesourcery.com>
3369         * sysdeps/ia64/Makeconfig (float64x-alias-fcts): New variable.
3370         * sysdeps/ieee754/float128/Makeconfig (float64x-alias-fcts):
3371         Likewise.
3372         * sysdeps/ieee754/ldbl-128/Makeconfig (float64x-alias-fcts):
3373         Likewise.
3374         * sysdeps/x86/Makeconfig: New file.
3375         * bits/floatn-common.h (__HAVE_FLOAT64X): Remove macro.
3376         (__HAVE_FLOAT64X_LONG_DOUBLE): Likewise.
3377         * bits/floatn.h (__HAVE_FLOAT64X): New macro.
3378         (__HAVE_FLOAT64X_LONG_DOUBLE): Likewise.
3379         * sysdeps/ia64/bits/floatn.h (__HAVE_FLOAT64X): Likewise.
3380         (__HAVE_FLOAT64X_LONG_DOUBLE): Likewise.
3381         * sysdeps/ieee754/ldbl-128/bits/floatn.h (__HAVE_FLOAT64X):
3382         Likewise.
3383         (__HAVE_FLOAT64X_LONG_DOUBLE): Likewise.
3384         * sysdeps/mips/ieee754/bits/floatn.h (__HAVE_FLOAT64X): Likewise.
3385         (__HAVE_FLOAT64X_LONG_DOUBLE): Likewise.
3386         * sysdeps/powerpc/bits/floatn.h (__HAVE_FLOAT64X): Likewise.
3387         (__HAVE_FLOAT64X_LONG_DOUBLE): Likewise.
3388         * sysdeps/x86/bits/floatn.h (__HAVE_FLOAT64X): Likewise.
3389         (__HAVE_FLOAT64X_LONG_DOUBLE): Likewise.
3390         * manual/math.texi (Mathematics): Document support for _Float64x.
3391         * math/Versions (GLIBC_2.27): Add _Float64x functions.
3392         * stdlib/Versions (GLIBC_2.27): Likewise.
3393         * wcsmbs/Versions (GLIBC_2.27): Likewise.
3394         * sysdeps/unix/sysv/linux/aarch64/libc.abilist: Update.
3395         * sysdeps/unix/sysv/linux/aarch64/libm.abilist: Likewise.
3396         * sysdeps/unix/sysv/linux/alpha/libc.abilist: Likewise.
3397         * sysdeps/unix/sysv/linux/alpha/libm.abilist: Likewise.
3398         * sysdeps/unix/sysv/linux/i386/libc.abilist: Likewise.
3399         * sysdeps/unix/sysv/linux/i386/libm.abilist: Likewise.
3400         * sysdeps/unix/sysv/linux/ia64/libc.abilist: Likewise.
3401         * sysdeps/unix/sysv/linux/ia64/libm.abilist: Likewise.
3402         * sysdeps/unix/sysv/linux/mips/mips64/libm.abilist: Likewise.
3403         * sysdeps/unix/sysv/linux/mips/mips64/n32/libc.abilist: Likewise.
3404         * sysdeps/unix/sysv/linux/mips/mips64/n64/libc.abilist: Likewise.
3405         * sysdeps/unix/sysv/linux/powerpc/powerpc64/libc-le.abilist:
3406         Likewise.
3407         * sysdeps/unix/sysv/linux/powerpc/powerpc64/libm-le.abilist:
3408         Likewise.
3409         * sysdeps/unix/sysv/linux/s390/s390-32/libc.abilist: Likewise.
3410         * sysdeps/unix/sysv/linux/s390/s390-32/libm.abilist: Likewise.
3411         * sysdeps/unix/sysv/linux/s390/s390-64/libc.abilist: Likewise.
3412         * sysdeps/unix/sysv/linux/s390/s390-64/libm.abilist: Likewise.
3413         * sysdeps/unix/sysv/linux/sparc/sparc32/libc.abilist: Likewise.
3414         * sysdeps/unix/sysv/linux/sparc/sparc32/libm.abilist: Likewise.
3415         * sysdeps/unix/sysv/linux/sparc/sparc64/libc.abilist: Likewise.
3416         * sysdeps/unix/sysv/linux/sparc/sparc64/libm.abilist: Likewise.
3417         * sysdeps/unix/sysv/linux/x86_64/64/libc.abilist: Likewise.
3418         * sysdeps/unix/sysv/linux/x86_64/64/libm.abilist: Likewise.
3419         * sysdeps/unix/sysv/linux/x86_64/x32/libc.abilist: Likewise.
3420         * sysdeps/unix/sysv/linux/x86_64/x32/libm.abilist: Likewise.
3421         * sysdeps/i386/fpu/libm-test-ulps: Likewise.
3422         * sysdeps/i386/i686/fpu/multiarch/libm-test-ulps: Likewise.
3424 2017-11-27  Andreas Schwab  <schwab@suse.de>
3426         * elf/Makefile (dl-routines): Add dl-sort-maps.
3427         * elf/dl-sort-maps.c: New file.
3428         * sysdeps/generic/ldsodefs.h (_dl_sort_fini): Don't declare.
3429         (_dl_sort_maps): Declare.
3430         * elf/dl-fini.c (_dl_sort_fini): Remove.
3431         (_dl_fini): Use _dl_sort_maps instead of _dl_sort_fini.
3432         * elf/dl-close.c (_dl_close_worker): Likewise.
3433         * elf/dl-deps.c (_dl_map_object_deps): Use _dl_sort_maps instead of
3434         open-coding it.
3435         * elf/dl-open.c (dl_open_worker): Likewise.
3437 2017-11-24  Joseph Myers  <joseph@codesourcery.com>
3439         * sysdeps/ieee754/float128/s_fromfpf128.c (fromfpf128): Define
3440         using libm_alias_float128.
3441         * sysdeps/ieee754/float128/s_fromfpxf128.c (fromfpxf128):
3442         Likewise.
3443         * sysdeps/ieee754/float128/s_setpayloadf128.c (setpayloadf128):
3444         Likewise.
3445         * sysdeps/ieee754/float128/s_setpayloadsigf128.c
3446         (setpayloadsigf128): Likewise.
3447         * sysdeps/ieee754/float128/s_ufromfpf128.c (ufromfpf128):
3448         Likewise.
3449         * sysdeps/ieee754/float128/s_ufromfpxf128.c (ufromfpxf128):
3450         Likewise.
3452         * sysdeps/powerpc/powerpc64le/Makefile ($(foreach
3453         suf,$(all-object-suffixes),$(objpfx)test-float64x%$(suf))): Add
3454         -mfloat128 to CFLAGS.
3455         ($(foreach
3456         suf,$(all-object-suffixes),$(objpfx)test-ifloat64x%$(suf))):
3457         Likewise.
3458         (CFLAGS-libm-test-support-float64x.c): New variable.
3459         ($(objpfx)test-float64x% $(objpfx)test-ifloat64x%): Add
3460         $(f128-loader-link) to gnulib-tests.
3462         * sysdeps/generic/libm-alias-float128.h: Include <bits/floatn.h>.
3463         (libm_alias_float128_other_r): If
3464         [__HAVE_FLOAT64X && !__HAVE_FLOAT64X_LONG_DOUBLE], define f64x
3465         alias.
3466         (libm_alias_float128_r): Add semicolon after weak_alias call.
3467         * sysdeps/generic/libm-alias-ldouble.h
3468         (libm_alias_ldouble_other_r_f128): New macro.
3469         (libm_alias_ldouble_other_r_f64x): Likewise.
3470         (libm_alias_ldouble_other_r): Use libm_alias_ldouble_other_r_f128
3471         and libm_alias_ldouble_other_r_f64x.
3472         (libm_alias_ldouble_r): Add semicolon after weak_alias call.
3473         * sysdeps/ieee754/ldbl-opt/libm-alias-ldouble.h
3474         (libm_alias_ldouble_other_r_f128): New macro.
3475         (libm_alias_ldouble_other_r_f64x): Likewise.
3476         (libm_alias_ldouble_other_r): Use libm_alias_ldouble_other_r_f128
3477         and libm_alias_ldouble_other_r_f64x.
3479         * stdlib/strfroml.c: Always include <stdlib.h>.
3480         [__HAVE_FLOAT64X_LONG_DOUBLE] (strfromf64x): Define and later
3481         undefine as macro and define as weak alias.
3482         * sysdeps/ieee754/float128/strfromf128.c: Include <bits/floatn.h>.
3483         [__HAVE_FLOAT64X && !__HAVE_FLOAT64X_LONG_DOUBLE]: Include
3484         <stdlib.h>.
3485         [__HAVE_FLOAT64X && !__HAVE_FLOAT64X_LONG_DOUBLE] (strfromf64x):
3486         Define and later undefine as macro and define as weak alias.
3488         * stdlib/strtold.c [__HAVE_FLOAT64X_LONG_DOUBLE] (strtof64x):
3489         Define and later undefine as macro.  Define as weak alias if
3490         [!USE_WIDE_CHAR].
3491         [__HAVE_FLOAT64X_LONG_DOUBLE] (wcstof64x): Define and later
3492         undefine as macro.  Define as weak alias if [USE_WIDE_CHAR].
3493         * sysdeps/ieee754/float128/strtof128.c: Include <bits/floatn.h>.
3494         [__HAVE_FLOAT64X && !__HAVE_FLOAT64X_LONG_DOUBLE] (strtof64x):
3495         Define and later undefine as macro.  Define as weak alias if
3496         [!USE_WIDE_CHAR].
3497         [__HAVE_FLOAT64X && !__HAVE_FLOAT64X_LONG_DOUBLE] (wcstof64x):
3498         Define and later undefine as macro.  Define as weak alias if
3499         [USE_WIDE_CHAR].
3500         * sysdeps/ieee754/float128/strtof128_l.c
3501         [__HAVE_FLOAT64X && !__HAVE_FLOAT64X_LONG_DOUBLE] (strtof64x_l):
3502         Define and later undefine as macro.  Define as weak alias if
3503         [!USE_WIDE_CHAR].
3504         [__HAVE_FLOAT64X && !__HAVE_FLOAT64X_LONG_DOUBLE] (wcstof64x_l):
3505         Define and later undefine as macro.  Define as weak alias if
3506         [USE_WIDE_CHAR].
3507         * sysdeps/ieee754/ldbl-128/strtold_l.c
3508         [__HAVE_FLOAT64X_LONG_DOUBLE] (strtof64x_l): Define and later
3509         undefine as macro.  Define as weak alias if [!USE_WIDE_CHAR].
3510         [__HAVE_FLOAT64X_LONG_DOUBLE] (wcstof64x_l): Define and later
3511         undefine as macro.  Define as weak alias if [USE_WIDE_CHAR].
3512         * sysdeps/ieee754/ldbl-64-128/strtold_l.c
3513         [__HAVE_FLOAT64X_LONG_DOUBLE] (strtof64x_l): Define and later
3514         undefine as macro.  Define as weak alias if [!USE_WIDE_CHAR].
3515         [__HAVE_FLOAT64X_LONG_DOUBLE] (wcstof64x_l): Define and later
3516         undefine as macro.  Define as weak alias if [USE_WIDE_CHAR].
3517         * sysdeps/ieee754/ldbl-96/strtold_l.c
3518         [__HAVE_FLOAT64X_LONG_DOUBLE] (strtof64x_l): Define and later
3519         undefine as macro.  Define as weak alias if [!USE_WIDE_CHAR].
3520         [__HAVE_FLOAT64X_LONG_DOUBLE] (wcstof64x_l): Define and later
3521         undefine as macro.  Define as weak alias if [USE_WIDE_CHAR].
3523         * math/test-float64x.h: New file.
3524         * math/Makefile (type-float64x-yes): New variable.
3525         (test-types): Add $(type-float64x-$(float64x-alias-fcts)).
3527         * sysdeps/generic/math_private.h (min_of_type_f): Make into a
3528         function-like macro.
3529         (min_of_type_): Likewise.
3530         (min_of_type_l): Likewise.
3531         (min_of_type_f128): Likewise.
3532         (min_of_type): Pass () as last argument of __MATH_TG.
3534         * stdlib/tst-strtod-round-skeleton.c
3535         (__STDC_WANT_IEC_60559_TYPES_EXT__): Define before including
3536         headers.
3538         * math/gen-tgmath-tests.py (Type.init_types): Pass suffix argument
3539         for combinations of long double with _Float64 and _Float64x.
3541         * bits/libm-simd-decl-stubs.h (__DECL_SIMD_cosf16): New macro.
3542         (__DECL_SIMD_cosf32): Likewise.
3543         (__DECL_SIMD_cosf64): Likewise.
3544         (__DECL_SIMD_cosf32x): Likewise.
3545         (__DECL_SIMD_cosf64x): Likewise.
3546         (__DECL_SIMD_cosf128x): Likewise.
3547         (__DECL_SIMD_sinf16): Likewise.
3548         (__DECL_SIMD_sinf32): Likewise.
3549         (__DECL_SIMD_sinf64): Likewise.
3550         (__DECL_SIMD_sinf32x): Likewise.
3551         (__DECL_SIMD_sinf64x): Likewise.
3552         (__DECL_SIMD_sinf128x): Likewise.
3553         (__DECL_SIMD_sincosf16): Likewise.
3554         (__DECL_SIMD_sincosf32): Likewise.
3555         (__DECL_SIMD_sincosf64): Likewise.
3556         (__DECL_SIMD_sincosf32x): Likewise.
3557         (__DECL_SIMD_sincosf64x): Likewise.
3558         (__DECL_SIMD_sincosf128x): Likewise.
3559         (__DECL_SIMD_logf16): Likewise.
3560         (__DECL_SIMD_logf32): Likewise.
3561         (__DECL_SIMD_logf64): Likewise.
3562         (__DECL_SIMD_logf32x): Likewise.
3563         (__DECL_SIMD_logf64x): Likewise.
3564         (__DECL_SIMD_logf128x): Likewise.
3565         (__DECL_SIMD_expf16): Likewise.
3566         (__DECL_SIMD_expf32): Likewise.
3567         (__DECL_SIMD_expf64): Likewise.
3568         (__DECL_SIMD_expf32x): Likewise.
3569         (__DECL_SIMD_expf64x): Likewise.
3570         (__DECL_SIMD_expf128x): Likewise.
3571         (__DECL_SIMD_powf16): Likewise.
3572         (__DECL_SIMD_powf32): Likewise.
3573         (__DECL_SIMD_powf64): Likewise.
3574         (__DECL_SIMD_powf32x): Likewise.
3575         (__DECL_SIMD_powf64x): Likewise.
3576         (__DECL_SIMD_powf128x): Likewise.
3578         * stdlib/Versions (libc): Move entries for wcstof128 and
3579         wcstof128_l to ....
3580         * wcsmbs/Versions (libc): ... here.
3581         Include <float128-abi.h>.
3583 2017-11-24  Florian Weimer  <fweimer@redhat.com>
3585         * sysdeps/unix/sysv/linux/Makefile (sysdep_headers): Add
3586         bits/mman-shared.h.
3587         * sysdeps/unix/sysv/linux/bits/mman-linux.h: Include
3588         <bits/mman-shared.h>.
3589         (MFD_CLOEXEC, MFD_ALLOW_SEALING, MFD_HUGETLB, memfd_create): Move
3590         to ...
3591         * sysdeps/unix/sysv/linux/bits/mman-shared.h: ... this new file.
3592         Add #ifndef guard for the MFD_* constants based on MFD_CLOEXEC.
3593         * sysdeps/unix/sysv/linux/hppa/bits/mman.h: Include
3594         <bits/mman-shared.h>.
3596 2017-11-24  Adhemerval Zanella  <adhemerval.zanella@linaro.org>
3598         [BZ #22457]
3599         * sysdeps/posix/preadv_common.c (PREADV): Use mmap/munmap instead of
3600         posix_memalign/free.
3601         * sysdeps/posix/pwritev_common.c (PWRITEV): Likewise.
3603 2017-11-22  Mike FABIAN  <mfabian@redhat.com>
3605         [BZ #22469]
3606         * localedata/locales/pl_PL (LC_COLLATE): Use “copy "iso14651_t1"”
3607         and implement the collation rules for pl from CLDR on top of that.
3608         * Makefile: Add pl_PL.UTF-8 to test-input and to the list
3609         of locales to be built for testing.
3610         * pl_PL.UTF-8.in: New file with test data to test the Polish sorting.
3612 2017-11-23  Joseph Myers  <joseph@codesourcery.com>
3614         * sysdeps/ia64/fpu/libm-symbols.h: Include <libm-alias-ldouble.h>.
3615         * sysdeps/ia64/fpu/e_acoshl.S (acoshl): Use
3616         libm_alias_ldouble_other.
3617         * sysdeps/ia64/fpu/e_acosl.S (acosl): Likewise.
3618         * sysdeps/ia64/fpu/e_asinl.S (asinl): Likewise.
3619         * sysdeps/ia64/fpu/e_atanhl.S (atanhl): Likewise.
3620         * sysdeps/ia64/fpu/e_coshl.S (coshl): Likewise.
3621         * sysdeps/ia64/fpu/e_exp10l.S (exp10l): Likewise.
3622         * sysdeps/ia64/fpu/e_exp2l.S (exp2l): Likewise.
3623         * sysdeps/ia64/fpu/e_fmodl.S (fmodl): Likewise.
3624         * sysdeps/ia64/fpu/e_hypotl.S (hypotl): Likewise.
3625         * sysdeps/ia64/fpu/e_lgammal_r.c (lgammal_r): Define using
3626         libm_alias_ldouble_r.
3627         * sysdeps/ia64/fpu/e_log2l.S (log2l): Use
3628         libm_alias_ldouble_other.
3629         * sysdeps/ia64/fpu/e_logl.S (logl): Likewise.
3630         (log10l): Likewise.
3631         * sysdeps/ia64/fpu/e_powl.S (powl): Likewise.
3632         * sysdeps/ia64/fpu/e_remainderl.S (remainderl): Likewise.
3633         * sysdeps/ia64/fpu/e_sinhl.S (sinhl): Likewise.
3634         * sysdeps/ia64/fpu/e_sqrtl.S (sqrtl): Likewise.
3635         * sysdeps/ia64/fpu/libm_sincosl.S (sincosl): Likewise.
3636         * sysdeps/ia64/fpu/s_asinhl.S (asinhl): Likewise.
3637         * sysdeps/ia64/fpu/s_atanl.S (atanl): Likewise.
3638         (atan2l): Likewise.
3639         * sysdeps/ia64/fpu/s_cbrtl.S (cbrtl): Likewise.
3640         * sysdeps/ia64/fpu/s_ceill.S (ceill): Likewise.
3641         * sysdeps/ia64/fpu/s_copysign.S (copysignl): Define using
3642         libm_alias_ldouble.
3643         * sysdeps/ia64/fpu/s_cosl.S (sinl): Use libm_alias_ldouble_other.
3644         (cosl): Likewise.
3645         * sysdeps/ia64/fpu/s_erfcl.S (erfcl): Likewise.
3646         * sysdeps/ia64/fpu/s_erfl.S (erfl): Likewise.
3647         * sysdeps/ia64/fpu/s_expm1l.S (expm1l): Likewise.
3648         (expl): Likewise.
3649         * sysdeps/ia64/fpu/s_fabsl.S (fabsl): Likewise.
3650         * sysdeps/ia64/fpu/s_fdiml.S (fdiml): Likewise.
3651         * sysdeps/ia64/fpu/s_floorl.S (floorl): Likewise.
3652         * sysdeps/ia64/fpu/s_fmal.S (fmal): Likewise.
3653         * sysdeps/ia64/fpu/s_fmaxl.S (fmaxl): Likewise.
3654         * sysdeps/ia64/fpu/s_frexpl.c (frexpl): Likewise.
3655         * sysdeps/ia64/fpu/s_ldexpl.c (ldexpl): Likewise.
3656         * sysdeps/ia64/fpu/s_log1pl.S (log1pl): Likewise.
3657         * sysdeps/ia64/fpu/s_logbl.S (logbl): Likewise.
3658         * sysdeps/ia64/fpu/s_modfl.S (modfl): Likewise.
3659         * sysdeps/ia64/fpu/s_nearbyintl.S (nearbyintl): Define using
3660         libm_alias_ldouble.
3661         * sysdeps/ia64/fpu/s_nextafterl.S (nextafterl): Use
3662         libm_alias_ldouble_other.
3663         * sysdeps/ia64/fpu/s_rintl.S (rintl): Likewise.
3664         * sysdeps/ia64/fpu/s_roundl.S (roundl): Likewise.
3665         * sysdeps/ia64/fpu/s_scalbnl.c (scalbnl): Define using
3666         libm_alias_ldouble.
3667         * sysdeps/ia64/fpu/s_tanhl.S (tanhl): Use
3668         libm_alias_ldouble_other.
3669         * sysdeps/ia64/fpu/s_tanl.S (tanl): Likewise.
3670         * sysdeps/ia64/fpu/s_truncl.S (truncl): Likewise.
3671         * sysdeps/ia64/fpu/w_lgammal_main.c
3672         [BUILD_LGAMMA && !USE_AS_COMPAT] (lgammal): Likewise.
3673         * sysdeps/ia64/fpu/w_tgammal_compat.S (tgammal): Likewise.
3675 2017-11-23  Florian Weimer  <fweimer@redhat.com>
3677         * malloc/malloc.c (tcache_thread_shutdown): Rename from
3678         tcache_thread_freeres.  Define for USE_TCACHE and !USE_TCACHE
3679         alike.  Remove freeres marker.
3680         * malloc/arena.c (arena_thread_freeres): Call
3681         tcache_thread_shutdown.
3683 2017-11-23  Florian Weimer  <fweimer@redhat.com>
3685         [BZ #22459]
3686         Export nscd hash function as __nss_hash.
3687         * include/nss.h (__nss_hash): Declare.
3688         * nis/nis_hash.c (__nis_hash): Call __nss_hash.  Turn into compat
3689         symbol.
3690         * nscd/Makefile (aux, nscd-modules): Remove nscd_hash.
3691         * nscd/cache.c (cache_search, cache_add): Call __nss_hash instead
3692         of __nscd_hash.
3693         * nscd/nscd_helper.c (__nscd_cache_search): Likewise.
3694         * nscd/nscd_hash.h, nscd/nscd_hash.c: Remove files.
3695         * nss/Makefiles (routines): Add nss_hash.
3696         * nss/Versions (GLIBC_PRIVATE): Export __nss_hash.
3697         * nss/nss_hash.c: Rename from nis/nis_hash.c.
3698         (__nss_hash): Rename from __nis_hash.  Define hidden alias.
3699         * nis/rpcsvc/nislib.h (__nis_hash): Remove declaration.
3701 2017-11-23  Florian Weimer  <fweimer@redhat.com>
3703         [BZ #22478]
3704         * sysdeps/unix/sysv/linux/sigwait.c (__sigwait): Retry on EINTR.
3705         Return error code, not -1.
3706         * signal/tst-sigwait-eintr.c: New file.
3707         * signal/Makefile (tests): Add tst-sigwait-eintr.
3709 2017-11-23  Florian Weimer  <fweimer@redhat.com>
3711         Linux: Add memfd_create system call wrapper
3712         * sysdeps/unix/sysv/linux/Makefile [misc] (tests): Add
3713         tst-memfd_create.
3714         * sysdeps/unix/sysv/linux/bits/mman-linux.h [__USE_GNU]
3715         (MFD_CLOEXEC, MFD_ALLOW_SEALING): Define.
3716         [__USE_GNU] (memfd_create): Declare.
3717         * sysdeps/unix/sysv/linux/Versions (GLIBC_2.27): Add memfd_create.
3718         * sysdeps/unix/sysv/linux/syscalls.list (memfd_create): Add.
3719         * sysdeps/unix/sysv/linux/tst-memfd_create.c: New file.
3720         * sysdeps/unix/sysv/linux/**.abilist: Update.
3721         * manual/llio.texi (Memory-mapped I/O): Document memfd_create.
3723 2017-11-22  Joseph Myers  <joseph@codesourcery.com>
3725         * localedata/gen-locale.sh: Fix typo in variable name.
3727         * resolv/res_debug.c (p_secstodate): Condition definition on
3728         [SHLIB_COMPAT (libresolv, GLIBC_2_0, GLIBC_2_27)].  Define
3729         directly as __p_secstodate, and as a compat symbol.  Do not use
3730         libresolv_hidden_def.
3731         * resolv/resolv.h (p_secstodate): Remove macro and function
3732         declaration.
3733         * resolv/ns_print.c (ns_sprintrrf): Print times with %lu, not
3734         using p_secstodate.
3735         * include/resolv.h (__p_secstodate): Do not use
3736         libresolv_hidden_proto.
3737         * resolv/Makefile (tests): Move tst-p_secstodate to ....
3738         (tests-internal): ... here.
3739         * resolv/tst-p_secstodate.c: Include <shlib-compat.h>.  Condition
3740         all contents on [TEST_COMPAT (libresolv, GLIBC_2_0, GLIBC_2_27)]
3741         and declare and use __p_secstodate and use compat_symbol_reference
3742         in that case.
3743         [!TEST_COMPAT (libresolv, GLIBC_2_0, GLIBC_2_27)] (do_test): Add
3744         implementation returning 77.
3746         [BZ #22463]
3747         * resolv/res_debug.c: Include <libc-diag.h>.
3748         (p_secstodate): Assert time_t at least as wide as u_long.  On
3749         overflow, use integer seconds since the epoch as output, or use
3750         "<overflow>" as output and set errno to EOVERFLOW if integer
3751         seconds since the epoch would be 14 or more characters.
3752         (p_secstodate) [__GNUC_PREREQ (7, 0)]: Disable -Wformat-overflow=
3753         for sprintf call.
3754         * resolv/tst-p_secstodate.c: New file.
3755         * resolv/Makefile (tests): Add tst-p_secstodate.
3756         ($(objpfx)tst-p_secstodate): Depend on $(objpfx)libresolv.so.
3758         * sysdeps/sparc/sparc64/soft-fp/s_frexpl.c: Remove file.
3759         * sysdeps/sparc/sparc64/soft-fp/s_scalblnl.c: Likewise.
3760         * sysdeps/sparc/sparc64/soft-fp/s_scalbnl.c: Likewise.
3762 2017-11-22  Paul Eggert  <eggert@cs.ucla.edu>
3764         * posix/regcomp.c (init_word_char): Add comments.
3766 2017-11-22  Joseph Myers  <joseph@codesourcery.com>
3768         [BZ #22447]
3769         * sysdeps/unix/getlogin_r.c (__getlogin_r): Use __strnlen not
3770         strlen to compute length of ut_user and set trailing NUL byte of
3771         result explicitly.
3773 2017-11-21  Mike FABIAN  <mfabian@redhat.com>
3775         [BZ #15537]
3776         * localedata/locales/lv_LV (LC_COLLATE): Fix collation by
3777         using “copy "iso14651_t1"” and then implementing the
3778         collation rules for lv from CLDR on top of that.
3779         * Makefile: Add lv_LV.UTF-8 to test-input and to the list
3780         of locales to be built for testing.
3781         * lv_LV.UTF-8.in: New file with test data to test the Latvian
3782         sorting.
3784 2017-11-21  Joseph Myers  <joseph@codesourcery.com>
3786         * sysdeps/unix/sysv/linux/hppa/bits/mman.h
3787         [__USE_MISC] (MADV_SPACEAVAIL): Remove macro.
3788         [__USE_MISC] (MADV_VPS_PURGE): Likewise.
3789         [__USE_MISC] (MADV_VPS_INHERIT): Likewise.
3790         [__USE_MISC] (MADV_HWPOISON): New macro.
3791         [__USE_MISC] (MADV_SOFT_OFFLINE): Likewise.
3793 2017-11-21  Adhemerval Zanella  <adhemerval.zanella@linaro.org>
3795         * nptl/pthreadP.h (ASSERT_PTHREAD_INTERNAL_SIZE): Add workarond for
3796         -Wmissing-braces on GCC 4.9.
3798 2017-11-21  Stefan Liebler  <stli@linux.vnet.ibm.com>
3800         * sysdeps/s390/s390-64/start.S (_start): Add cfi information for r14.
3801         * sysdeps/s390/s390-32/start.S (_start): Likewise
3802         * sysdeps/unix/sysv/linux/s390/s390-64/clone.S
3803         (thread_start): Likewise.
3804         * sysdeps/unix/sysv/linux/s390/s390-32/clone.S
3805         (thread_start): Likewise.
3806         * sysdeps/unix/sysv/linux/s390/s390-64/__makecontext_ret.S
3807         (__makecontext_ret): Likewise.
3808         * sysdeps/unix/sysv/linux/s390/s390-32/__makecontext_ret.S
3809         (__makecontext_ret): Likewise.
3811 2017-11-21  Stefan Liebler  <stli@linux.vnet.ibm.com>
3813         * include/wchar.h (__wcsnlen, __wcscat, __wcsncpy, __wcpncpy,
3814         __wcschrnul): Remove attribute_hidden.
3816 2017-11-20  Paul Eggert  <eggert@cs.ucla.edu>
3818         regex: don't assume uint64_t or uint32_t
3819         This avoids -Werror=overflow errors for 32-bit systems in
3820         the 64-bit case.  Problem reported by Joseph Myers in:
3821         https://sourceware.org/ml/libc-alpha/2017-11/msg00694.html
3822         Also, when this code is used in Gnulib it ports to platforms
3823         that lack uint64_t and uint32_t.  The C standard doesn't guarantee
3824         them, and on some 32-bit compilers there is no uint64_t.
3825         Problem reported by Gianluigi Tiesi in:
3826         http://lists.gnu.org/archive/html/bug-gnulib/2012-03/msg00154.html
3827         * posix/regcomp.c (init_word_char): Don't assume that the types
3828         uint64_t and uint32_t exist.  Adapted from Gnulib patch
3829         2012-05-27T06:40:00!eggert@cs.ucla.edu.  See:
3830         https://git.savannah.gnu.org/cgit/gnulib.git/commit/?id=252b52457da7887667c036d18cc5169777615bb0
3832 2017-11-20  Siddhesh Poyarekar  <siddhesh@sourceware.org>
3834         * sysdeps/aarch64/memset-reg.h: New file.
3835         * sysdeps/aarch64/memset.S: Use it.
3836         (__memset): Rename to MEMSET macro.
3837         [ZVA_MACRO]: Use zva_macro.
3838         * sysdeps/aarch64/multiarch/Makefile (sysdep_routines):
3839         Add memset_generic and memset_falkor.
3840         * sysdeps/aarch64/multiarch/ifunc-impl-list.c
3841         (__libc_ifunc_impl_list): Add memset ifuncs.
3842         * sysdeps/aarch64/multiarch/init-arch.h (INIT_ARCH): New
3843         local variable zva_size.
3844         * sysdeps/aarch64/multiarch/memset.c: New file.
3845         * sysdeps/aarch64/multiarch/memset_generic.S: New file.
3846         * sysdeps/aarch64/multiarch/memset_falkor.S: New file.
3847         * sysdeps/aarch64/multiarch/rtld-memset.S: New file.
3848         * sysdeps/unix/sysv/linux/aarch64/cpu-features.c
3849         (DCZID_DZP_MASK): New macro.
3850         (DCZID_BS_MASK): Likewise.
3851         (init_cpu_features): Read and set zva_size.
3852         * sysdeps/unix/sysv/linux/aarch64/cpu-features.h
3853         (struct cpu_features): New member zva_size.
3855         * benchtests/bench-memcpy-walk.c (START_SIZE): Set to 128.
3856         * benchtests/bench-memmove-walk.c (START_SIZE): Likewise.
3857         * benchtests/bench-memset-walk.c (START_SIZE): Likewise.
3859         * benchtests/bench-memcpy-walk.c (do_one_test): Copy only
3860         backwards.  Fix timing computation.
3861         * benchtests/bench-memmove-walk.c (do_one_test): Likewise.
3862         * benchtests/bench-memset-walk.c (do_one_test): Walk backwards
3863         on memset by N at a time.  Fix timing computation.
3865 2017-11-20  Florian Weimer  <fweimer@redhat.com>
3867         * manual/llio.texi (Memory-mapped I/O): Document MAP_HUGETLB,
3868         MADV_HUGEPAGE, MADV_NOHUGEPAGE.
3870 2017-11-19  Florian Weimer  <fweimer@redhat.com>
3872         manual: Document mprotect
3873         * manual/memory.texi (Memory Protection): New section.
3874         * manual/llio.texi (Memory-mapped I/O): Remove duplicate
3875         documentation of PROT_* flags and reference the Memory Protection
3876         section instead.
3878 2017-11-19  Florian Weimer  <fweimer@redhat.com>
3880         * manual/llio.texi (I/O Primitives): Move preadv, preadv64,
3881         pwritev, pwritev64, preadv2, preadv64v2, pwritev2, pwritev64v2 ...
3882         (Scatter-Gather): ... to here.  Remove misleading comment.
3884 2017-11-18  Christian Brauner <christian.brauner@ubuntu.com>
3886         * support/support_become_root.c (setup_uid_gid_mapping): Fix comment
3887         style.
3889         * support/support_become_root.c (setup_uid_gid_mapping): Don't fail
3890         when /proc/<pid>/setgroups does not exist.
3892 2017-11-18  Florian Weimer  <fweimer@redhat.com>
3894         * sysdeps/unix/sysv/linux/tst-ttyname.c
3895         (become_root_in_mount_ns): Remove.
3896         (do_in_chroot_1): Call support_enter_mount_namespace.
3897         (do_in_chroot_2): Likewise.
3898         (do_test): Call support_become_root early.
3900 2017-11-18  Florian Weimer  <fweimer@redhat.com>
3902         * support/namespace.h (support_enter_mount_namespace): Declare.
3903         * support/support_enter_mount_namespace.c: New file.
3904         * support/Makefile (libsupport-routines): Add
3905         support_enter_mount_namespace.
3907 2017-11-18  Florian Weimer  <fweimer@redhat.com>
3909         * support/temp_file.c (support_create_temp_directory): Use
3910         test_dir and do not rely on the presence of the XXXXXX suffix.
3911         * support/temp_file.h (support_create_temp_directory): Update
3912         comment.
3913         * support/tst-xreadlink.c (do_test): Adjust.
3914         * support/support_chroot.c (support_chroot_create): Likewise.
3916 2017-11-17  Tulio Magno Quites Machado Filho  <tuliom@linux.vnet.ibm.com>
3918         * sysdeps/powerpc/bits/hwcap.h (PPC_FEATURE2_HTM_NO_SUSPEND): New
3919         macro.
3920         * sysdeps/powerpc/dl-procinfo.c (_dl_powerpc_cap_flags): Add
3921         htm-no-suspend.
3923 2017-11-17  Joseph Myers  <joseph@codesourcery.com>
3925         * sysdeps/x86_64/fpu/e_expl.S: Include <libm-alias-ldouble.h>.
3926         [USE_AS_EXPM1L] (expm1l): Define using libm_alias_ldouble.
3927         * sysdeps/x86_64/fpu/s_ceill.S: Include <libm-alias-ldouble.h>.
3928         (ceill): Define using libm_alias_ldouble.
3929         * sysdeps/x86_64/fpu/s_copysignl.S: Include
3930         <libm-alias-ldouble.h>.
3931         (copysignl): Define using libm_alias_ldouble.
3932         * sysdeps/x86_64/fpu/s_fabsl.S: Include <libm-alias-ldouble.h>.
3933         (fabsl): Define using libm_alias_ldouble.
3934         * sysdeps/x86_64/fpu/s_floorl.S: Include <libm-alias-ldouble.h>.
3935         (floorl): Define using libm_alias_ldouble.
3936         * sysdeps/x86_64/fpu/s_fmaxl.S: Include <libm-alias-ldouble.h>.
3937         (fmaxl): Define using libm_alias_ldouble.
3938         * sysdeps/x86_64/fpu/s_fminl.S: Include <libm-alias-ldouble.h>.
3939         (fminl): Define using libm_alias_ldouble.
3940         * sysdeps/x86_64/fpu/s_llrintl.S: Include <libm-alias-ldouble.h>.
3941         (llrintl): Define using libm_alias_ldouble.
3942         (lrintl): Likewise.
3943         * sysdeps/x86_64/fpu/s_nearbyintl.S: Include
3944         <libm-alias-ldouble.h>.
3945         (nearbyintl): Define using libm_alias_ldouble.
3946         * sysdeps/x86_64/fpu/s_truncl.S: Include <libm-alias-ldouble.h>.
3947         (truncl): Define using libm_alias_ldouble.
3948         * sysdeps/x86_64/x32/fpu/s_lrintl.S: Include
3949         <libm-alias-ldouble.h>.
3950         (lrintl): Define using libm_alias_ldouble.
3952         * sysdeps/i386/fpu/e_expl.S: Include <libm-alias-ldouble.h>.
3953         [USE_AS_EXPM1L] (expm1l): Define using libm_alias_ldouble.
3954         * sysdeps/i386/fpu/s_asinhl.S: Include <libm-alias-ldouble.h>.
3955         (asinhl): Define using libm_alias_ldouble.
3956         * sysdeps/i386/fpu/s_atanl.c: Include <libm-alias-ldouble.h>.
3957         (atanl): Define using libm_alias_ldouble.
3958         * sysdeps/i386/fpu/s_cbrtl.S: Include <libm-alias-ldouble.h>.
3959         (cbrtl): Define using libm_alias_ldouble.
3960         * sysdeps/i386/fpu/s_ceill.S: Include <libm-alias-ldouble.h>.
3961         (ceill): Define using libm_alias_ldouble.
3962         * sysdeps/i386/fpu/s_copysignl.S: Include <libm-alias-ldouble.h>.
3963         (copysignl): Define using libm_alias_ldouble.
3964         * sysdeps/i386/fpu/s_fabsl.S: Include <libm-alias-ldouble.h>.
3965         (fabsl): Define using libm_alias_ldouble.
3966         * sysdeps/i386/fpu/s_floorl.S: Include <libm-alias-ldouble.h>.
3967         (floorl): Define using libm_alias_ldouble.
3968         * sysdeps/i386/fpu/s_fmaxl.S: Include <libm-alias-ldouble.h>.
3969         (fmaxl): Define using libm_alias_ldouble.
3970         * sysdeps/i386/fpu/s_fminl.S: Include <libm-alias-ldouble.h>.
3971         (fminl): Define using libm_alias_ldouble.
3972         * sysdeps/i386/fpu/s_frexpl.S: Include <libm-alias-ldouble.h>.
3973         (frexpl): Define using libm_alias_ldouble.
3974         * sysdeps/i386/fpu/s_llrintl.S: Include <libm-alias-ldouble.h>.
3975         (llrintl): Define using libm_alias_ldouble.
3976         * sysdeps/i386/fpu/s_logbl.c: Include <libm-alias-ldouble.h>.
3977         (logbl): Define using libm_alias_ldouble.
3978         * sysdeps/i386/fpu/s_lrintl.S: Include <libm-alias-ldouble.h>.
3979         (lrintl): Define using libm_alias_ldouble.
3980         * sysdeps/i386/fpu/s_nearbyintl.S: Include <libm-alias-ldouble.h>.
3981         (nearbyintl): Define using libm_alias_ldouble.
3982         * sysdeps/i386/fpu/s_nextafterl.c: Include <libm-alias-ldouble.h>.
3983         (nextafterl): Define using libm_alias_ldouble.
3984         * sysdeps/i386/fpu/s_remquol.S: Include <libm-alias-ldouble.h>.
3985         (remquol): Define using libm_alias_ldouble.
3986         * sysdeps/i386/fpu/s_rintl.c: Include <libm-alias-ldouble.h>.
3987         (rintl): Define using libm_alias_ldouble.
3988         * sysdeps/i386/fpu/s_truncl.S: Include <libm-alias-ldouble.h>.
3989         (truncl): Define using libm_alias_ldouble.
3990         * sysdeps/i386/i686/fpu/s_fmaxl.S: Include <libm-alias-ldouble.h>.
3991         (fmaxl): Define using libm_alias_ldouble.
3992         * sysdeps/i386/i686/fpu/s_fminl.S: Include <libm-alias-ldouble.h>.
3993         (fminl): Define using libm_alias_ldouble.
3995         * bits/floatn-common.h [!__ASSEMBLER]: Disable everything related
3996         to C syntax instead of availability and properties of types.
3997         * bits/floatn.h [!__ASSEMBLER]: Likewise.
3998         * sysdeps/ia64/bits/floatn.h [!__ASSEMBLER]: Likewise.
3999         * sysdeps/ieee754/ldbl-128/bits/floatn.h [!__ASSEMBLER]: Likewise.
4000         * sysdeps/mips/ieee754/bits/floatn.h [!__ASSEMBLER]: Likewise.
4001         * sysdeps/powerpc/bits/floatn.h [!__ASSEMBLER]: Likewise.
4002         * sysdeps/x86/bits/floatn.h [!__ASSEMBLER]: Likewise.
4004 2017-11-17  Florian Weimer  <fweimer@redhat.com>
4006         support_become_root: Enable file creation in namespaces.
4007         * support/support_become_root.c (setup_mapping): New function.
4008         (support_become_root): Call it.
4010 2017-11-17  Joseph Myers  <joseph@codesourcery.com>
4012         * sysdeps/unix/sysv/linux/aarch64/bits/hwcap.h (HWCAP_DCPOP): New
4013         macro.
4015 2017-11-16  Adhemerval Zanella  <adhemerval.zanella@linaro.org>
4017         * sysdeps/aarch64/fpu/Makefile (CFLAGS-s_fmax.c, CFLAGS-s_fmaxf.c,
4018         CFLAGS-s_fmin.c, CFLAGS-s_fminf.c): New rule: add -ffinite-math-only.
4020 2017-11-16  Joseph Myers  <joseph@codesourcery.com>
4022         * sysdeps/unix/sysv/linux/net/if_arp.h (ARPHRD_RAWIP): New macro.
4024         * sysdeps/unix/sysv/linux/syscall-names.list: Update kernel
4025         version to 4.14.
4027 2017-11-16  Siddhesh Poyarekar  <siddhesh@sourceware.org>
4029         * INSTALL: Fix botched up regeneration.
4031         * NEWS: Update sourceare link to https.
4032         * configure.ac: Likewise.
4033         * crypt/md5test-giant.c: Likewise.
4034         * dlfcn/bug-atexit1.c: Likewise.
4035         * dlfcn/bug-atexit2.c: Likewise.
4036         * localedata/README: Likewise.
4037         * malloc/tst-mallocfork.c: Likewise.
4038         * manual/install.texi: Likewise.
4039         * nptl/tst-pthread-getattr.c: Likewise.
4040         * stdio-common/tst-fgets.c: Likewise.
4041         * stdio-common/tst-fwrite.c: Likewise.
4042         * sunrpc/Makefile: Likewise.
4043         * sysdeps/arm/armv7/multiarch/memcpy_impl.S: Likewise.
4044         * wcsmbs/tst-mbrtowc2.c: Likewise.
4045         * configure: Regenerate.
4046         * INSTALL: Regenerate.
4048 2017-11-15  Martin Sebor  <msebor@redhat.com>
4050         * misc/sys/cdefs.h (__attribute_nonstring__): New macro.
4051         * sysdeps/gnu/bits/utmp.h (struct utmp): Use it.
4052         * sysdeps/unix/sysv/linux/s390/bits/utmp.h (struct utmp): Same.
4054 2017-11-15  Luke Shumaker  <lukeshu@parabola.nu>
4056         [BZ #22145]
4057         * sysdeps/unix/sysv/linux/tst-ttyname.c: New file.
4058         * sysdeps/unix/sysv/linux/Makefile: Add tst-ttyname to tests.
4060         [BZ #22145]
4061         * sysdeps/unix/sysv/linux/ttyname.c (ttyname):
4062         Defer is_pty check until end of the function.
4063         * sysdeps/unix/sysv/linux/ttyname_r.c (__ttyname_r): Likewise.
4065         [BZ #22145]
4066         * sysdeps/unix/sysv/linux/ttyname.h (is_mytty): New function.
4067         * sysdeps/unix/sysv/linux/ttyname.c (getttyname): Call is_mytty.
4068         (ttyname): Likewise.
4069         * sysdeps/unix/sysv/linux/ttyname_r.c (getttyname_r): Likewise.
4070         (__ttyname_r): Likewise.
4072         * sysdeps/unix/sysv/linux/ttyname.h (is_pty): Change return type from
4073         int to bool.
4075         * sysdeps/unix/sysv/linux/ttyname.h (is_pty): Update doc reference.
4077         * manual/terminal.texi (Is It a Terminal):
4078         Mention ENODEV for ttyname and ttyname_r.
4080 2017-11-15  Joseph Myers  <joseph@codesourcery.com>
4082         * sysdeps/unix/sysv/linux/bits/socket.h (MSG_ZEROCOPY): New enum
4083         constant and macro.
4085         * sysdeps/unix/sysv/linux/bits/mman-linux.h
4086         [__USE_MISC] (MADV_WIPEONFORK): New macro.
4087         [__USE_MISC] (MADV_KEEPONFORK): Likewise.
4088         * sysdeps/unix/sysv/linux/hppa/bits/mman.h
4089         [__USE_MISC] (MADV_WIPEONFORK): Likewise.
4090         [__USE_MISC] (MADV_KEEPONFORK): Likewise.
4092 2017-11-15  Adhemerval Zanella  <adhemerval.zanella@linaro.org>
4094         * signal/sigrelse.c (sigrelse): Optimize implementation.
4096         * sysdeps/posix/sigpause.c (do_sigpause): Remove.
4097         (__sigpause): Rely on __sigsuspend to implement single thread
4098         optimization.  Add LIBC_CANCEL_HANDLED for cancellation marking.
4100 2017-11-15  Joseph Myers  <joseph@codesourcery.com>
4102         * scripts/build-many-glibcs.py (Context.checkout): Default Linux
4103         kernel version to 4.14.
4105 2017-11-15  Steve Ellcey  <sellcey@cavium.com>
4107         [BZ #22442]
4108         * sysdeps/unix/sysv/linux/if_index.c (__if_nametoindex):
4109         Check if ifname is too long.
4111 2017-11-15  Luke Shumaker  <lukeshu@parabola.nu>
4113         * sysdeps/unix/sysv/linux/epoll_wait.c: Include <sysdep-cancel.h>.
4115 2017-11-15  Mike FABIAN  <mfabian@redhat.com>
4117         * localedata/locales/ka_GE (LC_MESSAGES): Add “X” back to yesexpr,
4118         was accidentally lost.
4120 2017-11-15  Mike FABIAN  <mfabian@redhat.com>
4122         * localedata/locales/az_IR: Add standard copyright header.
4124 2017-11-15  Florian Weimer  <fweimer@redhat.com>
4126         [BZ #22439]
4127         * malloc/malloc.c (__malloc_info): Count all heaps in an arena,
4128         not just the top one.  Output a new "subheaps" statistic.
4130 2017-11-15  Florian Weimer  <fweimer@redhat.com>
4132         [BZ #22408]
4133         * malloc/malloc.c (__malloc_info): Obtain arena heap statistics
4134         under the per-arena lock.
4135         * malloc/Makefile (tests): Add tst-malloc_info.
4136         (tst-malloc_info): Link with libpthread.
4137         * malloc/tst-malloc_info.c: New file.
4139 2017-11-15  Joseph Myers  <joseph@codesourcery.com>
4141         [BZ #21660]
4142         * math/tgmath.h (__HAVE_BUILTIN_TGMATH): New macro.
4143         [__HAVE_BUILTIN_TGMATH] (__TG_F16_ARG): Likewise.
4144         [__HAVE_BUILTIN_TGMATH] (__TG_F32_ARG): Likewise.
4145         [__HAVE_BUILTIN_TGMATH] (__TG_F64_ARG): Likewise.
4146         [__HAVE_BUILTIN_TGMATH] (__TG_F128_ARG): Likewise.
4147         [__HAVE_BUILTIN_TGMATH] (__TG_F32X_ARG): Likewise.
4148         [__HAVE_BUILTIN_TGMATH] (__TG_F64X_ARG): Likewise.
4149         [__HAVE_BUILTIN_TGMATH] (__TG_F128X_ARG): Likewise.
4150         [__HAVE_BUILTIN_TGMATH] (__TGMATH_FUNCS): Likewise.
4151         [__HAVE_BUILTIN_TGMATH] (__TGMATH_RCFUNCS): Likewise.
4152         [__HAVE_BUILTIN_TGMATH] (__TGMATH_1): Likewise.
4153         [__HAVE_BUILTIN_TGMATH] (__TGMATH_2): Likewise.
4154         [__HAVE_BUILTIN_TGMATH] (__TGMATH_2STD): Likewise.
4155         [__HAVE_BUILTIN_TGMATH] (__TGMATH_3): Likewise.
4156         [__HAVE_BUILTIN_TGMATH] (__TGMATH_1C): Likewise.
4157         [__HAVE_BUILTIN_TGMATH] (__TGMATH_2C): Likewise.
4158         (__tgml): Make conditional on [!__HAVE_BUILTIN_TGMATH].
4159         (__floating_type): Likewise.
4160         (__real_integer_type): Likewise.
4161         (__complex_integer_type): Likewise.
4162         (__expr_is_real): Likewise.
4163         (__tgmath_real_type_sub): Likewise.
4164         (__tgmath_real_type): Likewise.
4165         (__tgmath_complex_type_sub): Likewise.
4166         (__tgmath_complex_type): Likewise.
4167         (__TGMATH_F128): Likewise.
4168         (__TGMATH_CF128): Likewise.
4169         [__HAVE_BUILTIN_TGMATH] (__TGMATH_UNARY_REAL_ONLY): Define using
4170         new macros.
4171         [__HAVE_BUILTIN_TGMATH] (__TGMATH_UNARY_REAL_RET_ONLY): Likewise.
4172         [__HAVE_BUILTIN_TGMATH] (__TGMATH_BINARY_FIRST_REAL_ONLY):
4173         Likewise.
4174         [__HAVE_BUILTIN_TGMATH] (__TGMATH_BINARY_FIRST_REAL_STD_ONLY):
4175         Likewise.
4176         [__HAVE_BUILTIN_TGMATH] (__TGMATH_BINARY_REAL_ONLY): Likewise.
4177         [__HAVE_BUILTIN_TGMATH] (__TGMATH_BINARY_REAL_STD_ONLY): Likewise.
4178         [__HAVE_BUILTIN_TGMATH] (__TGMATH_BINARY_REAL_RET_ONLY): Likewise.
4179         [__HAVE_BUILTIN_TGMATH] (__TGMATH_TERNARY_FIRST_SECOND_REAL_ONLY):
4180         Likewise.
4181         [__HAVE_BUILTIN_TGMATH] (__TGMATH_TERNARY_REAL_ONLY): Likewise.
4182         [__HAVE_BUILTIN_TGMATH] (__TGMATH_TERNARY_FIRST_REAL_RET_ONLY):
4183         Likewise.
4184         [__HAVE_BUILTIN_TGMATH] (__TGMATH_UNARY_REAL_IMAG): Likewise.
4185         [__HAVE_BUILTIN_TGMATH] (__TGMATH_UNARY_IMAG): Likewise.
4186         [__HAVE_BUILTIN_TGMATH] (__TGMATH_UNARY_REAL_IMAG_RET_REAL):
4187         Likewise.
4188         [__HAVE_BUILTIN_TGMATH] (__TGMATH_BINARY_REAL_IMAG): Likewise.
4189         (__TGMATH_UNARY_REAL_IMAG_RET_REAL_SAME): New macro.
4190         (carg): Use __TGMATH_UNARY_REAL_IMAG_RET_REAL_SAME.
4191         (cimag): Likewise.
4192         (creal): Likewise.
4194 2017-11-14  Joseph Myers  <joseph@codesourcery.com>
4196         * string/tester.c (test_stpncpy): Disable -Wstringop-truncation
4197         for stpncpy calls for GCC 8.
4198         (test_strncat): Disable -Wstringop-truncation warning for strncat
4199         calls for GCC 8.  Disable -Wstringop-overflow= warning for one
4200         strncat call for GCC 7.
4201         (test_strncpy): Disable -Wstringop-truncation warning for strncpy
4202         calls for GCC 8.
4203         (test_memcmp): Use memcpy instead of strncpy for calls not copying
4204         trailing NUL.
4206         * string/bug-strncat1.c: Include <libc-diag.h>.
4207         (main): Disable -Wstringop-truncation for strncat call for GCC 8.
4209 2017-11-13  Claude Paroz <claude@2xlibre.net>
4211         [BZ #22387]
4212         * localedata/locales/aa_DJ: Improved readibility by replacing
4213         <Uxxxx> sequences in the ASCII printable range by their ASCII
4214         character equivalents.
4215         * localedata/locales/aa_ER: Likewise.
4216         * localedata/locales/aa_ER@saaho: Likewise.
4217         * localedata/locales/aa_ET: Likewise.
4218         * localedata/locales/af_ZA: Likewise.
4219         * localedata/locales/agr_PE: Likewise.
4220         * localedata/locales/ak_GH: Likewise.
4221         * localedata/locales/am_ET: Likewise.
4222         * localedata/locales/anp_IN: Likewise.
4223         * localedata/locales/ar_AE: Likewise.
4224         * localedata/locales/ar_BH: Likewise.
4225         * localedata/locales/ar_DZ: Likewise.
4226         * localedata/locales/ar_EG: Likewise.
4227         * localedata/locales/ar_IN: Likewise.
4228         * localedata/locales/ar_IQ: Likewise.
4229         * localedata/locales/ar_JO: Likewise.
4230         * localedata/locales/ar_KW: Likewise.
4231         * localedata/locales/ar_LB: Likewise.
4232         * localedata/locales/ar_LY: Likewise.
4233         * localedata/locales/ar_MA: Likewise.
4234         * localedata/locales/ar_OM: Likewise.
4235         * localedata/locales/ar_QA: Likewise.
4236         * localedata/locales/ar_SA: Likewise.
4237         * localedata/locales/ar_SD: Likewise.
4238         * localedata/locales/ar_SS: Likewise.
4239         * localedata/locales/ar_SY: Likewise.
4240         * localedata/locales/ar_TN: Likewise.
4241         * localedata/locales/ar_YE: Likewise.
4242         * localedata/locales/as_IN: Likewise.
4243         * localedata/locales/ast_ES: Likewise.
4244         * localedata/locales/ayc_PE: Likewise.
4245         * localedata/locales/az_AZ: Likewise.
4246         * localedata/locales/az_IR: Likewise.
4247         * localedata/locales/be_BY: Likewise.
4248         * localedata/locales/be_BY@latin: Likewise.
4249         * localedata/locales/bem_ZM: Likewise.
4250         * localedata/locales/ber_DZ: Likewise.
4251         * localedata/locales/ber_MA: Likewise.
4252         * localedata/locales/bg_BG: Likewise.
4253         * localedata/locales/bhb_IN: Likewise.
4254         * localedata/locales/bho_IN: Likewise.
4255         * localedata/locales/bi_VU: Likewise.
4256         * localedata/locales/bn_BD: Likewise.
4257         * localedata/locales/bn_IN: Likewise.
4258         * localedata/locales/bo_CN: Likewise.
4259         * localedata/locales/bo_IN: Likewise.
4260         * localedata/locales/br_FR: Likewise.
4261         * localedata/locales/brx_IN: Likewise.
4262         * localedata/locales/bs_BA: Likewise.
4263         * localedata/locales/byn_ER: Likewise.
4264         * localedata/locales/ca_AD: Likewise.
4265         * localedata/locales/ca_ES: Likewise.
4266         * localedata/locales/ca_FR: Likewise.
4267         * localedata/locales/ca_IT: Likewise.
4268         * localedata/locales/ce_RU: Likewise.
4269         * localedata/locales/chr_US: Likewise.
4270         * localedata/locales/cmn_TW: Likewise.
4271         * localedata/locales/crh_UA: Likewise.
4272         * localedata/locales/cs_CZ: Likewise.
4273         * localedata/locales/csb_PL: Likewise.
4274         * localedata/locales/cv_RU: Likewise.
4275         * localedata/locales/cy_GB: Likewise.
4276         * localedata/locales/da_DK: Likewise.
4277         * localedata/locales/de_AT: Likewise.
4278         * localedata/locales/de_BE: Likewise.
4279         * localedata/locales/de_CH: Likewise.
4280         * localedata/locales/de_DE: Likewise.
4281         * localedata/locales/de_IT: Likewise.
4282         * localedata/locales/de_LI: Likewise.
4283         * localedata/locales/de_LU: Likewise.
4284         * localedata/locales/doi_IN: Likewise.
4285         * localedata/locales/dv_MV: Likewise.
4286         * localedata/locales/dz_BT: Likewise.
4287         * localedata/locales/el_CY: Likewise.
4288         * localedata/locales/el_GR: Likewise.
4289         * localedata/locales/en_AG: Likewise.
4290         * localedata/locales/en_AU: Likewise.
4291         * localedata/locales/en_BW: Likewise.
4292         * localedata/locales/en_CA: Likewise.
4293         * localedata/locales/en_DK: Likewise.
4294         * localedata/locales/en_GB: Likewise.
4295         * localedata/locales/en_HK: Likewise.
4296         * localedata/locales/en_IE: Likewise.
4297         * localedata/locales/en_IL: Likewise.
4298         * localedata/locales/en_IN: Likewise.
4299         * localedata/locales/en_NG: Likewise.
4300         * localedata/locales/en_NZ: Likewise.
4301         * localedata/locales/en_PH: Likewise.
4302         * localedata/locales/en_SG: Likewise.
4303         * localedata/locales/en_US: Likewise.
4304         * localedata/locales/en_ZA: Likewise.
4305         * localedata/locales/en_ZM: Likewise.
4306         * localedata/locales/en_ZW: Likewise.
4307         * localedata/locales/eo: Likewise.
4308         * localedata/locales/es_AR: Likewise.
4309         * localedata/locales/es_BO: Likewise.
4310         * localedata/locales/es_CL: Likewise.
4311         * localedata/locales/es_CO: Likewise.
4312         * localedata/locales/es_CR: Likewise.
4313         * localedata/locales/es_CU: Likewise.
4314         * localedata/locales/es_DO: Likewise.
4315         * localedata/locales/es_EC: Likewise.
4316         * localedata/locales/es_ES: Likewise.
4317         * localedata/locales/es_GT: Likewise.
4318         * localedata/locales/es_HN: Likewise.
4319         * localedata/locales/es_MX: Likewise.
4320         * localedata/locales/es_NI: Likewise.
4321         * localedata/locales/es_PA: Likewise.
4322         * localedata/locales/es_PE: Likewise.
4323         * localedata/locales/es_PR: Likewise.
4324         * localedata/locales/es_PY: Likewise.
4325         * localedata/locales/es_SV: Likewise.
4326         * localedata/locales/es_US: Likewise.
4327         * localedata/locales/es_UY: Likewise.
4328         * localedata/locales/es_VE: Likewise.
4329         * localedata/locales/et_EE: Likewise.
4330         * localedata/locales/eu_ES: Likewise.
4331         * localedata/locales/eu_ES@euro: Likewise.
4332         * localedata/locales/fa_IR: Likewise.
4333         * localedata/locales/ff_SN: Likewise.
4334         * localedata/locales/fi_FI: Likewise.
4335         * localedata/locales/fil_PH: Likewise.
4336         * localedata/locales/fo_FO: Likewise.
4337         * localedata/locales/fr_BE: Likewise.
4338         * localedata/locales/fr_CA: Likewise.
4339         * localedata/locales/fr_CH: Likewise.
4340         * localedata/locales/fr_FR: Likewise.
4341         * localedata/locales/fr_LU: Likewise.
4342         * localedata/locales/fur_IT: Likewise.
4343         * localedata/locales/fy_DE: Likewise.
4344         * localedata/locales/fy_NL: Likewise.
4345         * localedata/locales/ga_IE: Likewise.
4346         * localedata/locales/gd_GB: Likewise.
4347         * localedata/locales/gez_ER: Likewise.
4348         * localedata/locales/gez_ET: Likewise.
4349         * localedata/locales/gl_ES: Likewise.
4350         * localedata/locales/gu_IN: Likewise.
4351         * localedata/locales/gv_GB: Likewise.
4352         * localedata/locales/ha_NG: Likewise.
4353         * localedata/locales/hak_TW: Likewise.
4354         * localedata/locales/he_IL: Likewise.
4355         * localedata/locales/hi_IN: Likewise.
4356         * localedata/locales/hif_FJ: Likewise.
4357         * localedata/locales/hne_IN: Likewise.
4358         * localedata/locales/hr_HR: Likewise.
4359         * localedata/locales/hsb_DE: Likewise.
4360         * localedata/locales/ht_HT: Likewise.
4361         * localedata/locales/hu_HU: Likewise.
4362         * localedata/locales/hy_AM: Likewise.
4363         * localedata/locales/i18n: Likewise.
4364         * localedata/locales/ia_FR: Likewise.
4365         * localedata/locales/id_ID: Likewise.
4366         * localedata/locales/ig_NG: Likewise.
4367         * localedata/locales/ik_CA: Likewise.
4368         * localedata/locales/is_IS: Likewise.
4369         * localedata/locales/it_CH: Likewise.
4370         * localedata/locales/it_IT: Likewise.
4371         * localedata/locales/iu_CA: Likewise.
4372         * localedata/locales/ja_JP: Likewise.
4373         * localedata/locales/ka_GE: Likewise.
4374         * localedata/locales/kk_KZ: Likewise.
4375         * localedata/locales/kl_GL: Likewise.
4376         * localedata/locales/kn_IN: Likewise.
4377         * localedata/locales/ko_KR: Likewise.
4378         * localedata/locales/kok_IN: Likewise.
4379         * localedata/locales/ks_IN: Likewise.
4380         * localedata/locales/ks_IN@devanagari: Likewise.
4381         * localedata/locales/ku_TR: Likewise.
4382         * localedata/locales/kw_GB: Likewise.
4383         * localedata/locales/ky_KG: Likewise.
4384         * localedata/locales/lb_LU: Likewise.
4385         * localedata/locales/lg_UG: Likewise.
4386         * localedata/locales/li_BE: Likewise.
4387         * localedata/locales/li_NL: Likewise.
4388         * localedata/locales/lij_IT: Likewise.
4389         * localedata/locales/ln_CD: Likewise.
4390         * localedata/locales/lo_LA: Likewise.
4391         * localedata/locales/lt_LT: Likewise.
4392         * localedata/locales/lv_LV: Likewise.
4393         * localedata/locales/lzh_TW: Likewise.
4394         * localedata/locales/mag_IN: Likewise.
4395         * localedata/locales/mai_IN: Likewise.
4396         * localedata/locales/mg_MG: Likewise.
4397         * localedata/locales/mhr_RU: Likewise.
4398         * localedata/locales/mi_NZ: Likewise.
4399         * localedata/locales/mk_MK: Likewise.
4400         * localedata/locales/ml_IN: Likewise.
4401         * localedata/locales/mn_MN: Likewise.
4402         * localedata/locales/mni_IN: Likewise.
4403         * localedata/locales/mr_IN: Likewise.
4404         * localedata/locales/ms_MY: Likewise.
4405         * localedata/locales/mt_MT: Likewise.
4406         * localedata/locales/my_MM: Likewise.
4407         * localedata/locales/nan_TW: Likewise.
4408         * localedata/locales/nan_TW@latin: Likewise.
4409         * localedata/locales/nb_NO: Likewise.
4410         * localedata/locales/nds_DE: Likewise.
4411         * localedata/locales/nds_NL: Likewise.
4412         * localedata/locales/ne_NP: Likewise.
4413         * localedata/locales/nhn_MX: Likewise.
4414         * localedata/locales/niu_NU: Likewise.
4415         * localedata/locales/niu_NZ: Likewise.
4416         * localedata/locales/nl_AW: Likewise.
4417         * localedata/locales/nl_BE: Likewise.
4418         * localedata/locales/nl_NL: Likewise.
4419         * localedata/locales/nn_NO: Likewise.
4420         * localedata/locales/nr_ZA: Likewise.
4421         * localedata/locales/nso_ZA: Likewise.
4422         * localedata/locales/oc_FR: Likewise.
4423         * localedata/locales/om_ET: Likewise.
4424         * localedata/locales/om_KE: Likewise.
4425         * localedata/locales/or_IN: Likewise.
4426         * localedata/locales/os_RU: Likewise.
4427         * localedata/locales/pa_IN: Likewise.
4428         * localedata/locales/pa_PK: Likewise.
4429         * localedata/locales/pap_AW: Likewise.
4430         * localedata/locales/pap_CW: Likewise.
4431         * localedata/locales/pl_PL: Likewise.
4432         * localedata/locales/ps_AF: Likewise.
4433         * localedata/locales/pt_BR: Likewise.
4434         * localedata/locales/pt_PT: Likewise.
4435         * localedata/locales/quz_PE: Likewise.
4436         * localedata/locales/raj_IN: Likewise.
4437         * localedata/locales/ro_RO: Likewise.
4438         * localedata/locales/ru_RU: Likewise.
4439         * localedata/locales/ru_UA: Likewise.
4440         * localedata/locales/rw_RW: Likewise.
4441         * localedata/locales/sa_IN: Likewise.
4442         * localedata/locales/sat_IN: Likewise.
4443         * localedata/locales/sc_IT: Likewise.
4444         * localedata/locales/sd_IN: Likewise.
4445         * localedata/locales/sd_IN@devanagari: Likewise.
4446         * localedata/locales/se_NO: Likewise.
4447         * localedata/locales/sgs_LT: Likewise.
4448         * localedata/locales/shs_CA: Likewise.
4449         * localedata/locales/si_LK: Likewise.
4450         * localedata/locales/sid_ET: Likewise.
4451         * localedata/locales/sk_SK: Likewise.
4452         * localedata/locales/sl_SI: Likewise.
4453         * localedata/locales/sm_WS: Likewise.
4454         * localedata/locales/so_DJ: Likewise.
4455         * localedata/locales/so_ET: Likewise.
4456         * localedata/locales/so_KE: Likewise.
4457         * localedata/locales/so_SO: Likewise.
4458         * localedata/locales/sq_AL: Likewise.
4459         * localedata/locales/sq_MK: Likewise.
4460         * localedata/locales/sr_ME: Likewise.
4461         * localedata/locales/sr_RS: Likewise.
4462         * localedata/locales/sr_RS@latin: Likewise.
4463         * localedata/locales/ss_ZA: Likewise.
4464         * localedata/locales/st_ZA: Likewise.
4465         * localedata/locales/sv_FI: Likewise.
4466         * localedata/locales/sv_SE: Likewise.
4467         * localedata/locales/sw_KE: Likewise.
4468         * localedata/locales/sw_TZ: Likewise.
4469         * localedata/locales/szl_PL: Likewise.
4470         * localedata/locales/ta_IN: Likewise.
4471         * localedata/locales/ta_LK: Likewise.
4472         * localedata/locales/tcy_IN: Likewise.
4473         * localedata/locales/te_IN: Likewise.
4474         * localedata/locales/tg_TJ: Likewise.
4475         * localedata/locales/th_TH: Likewise.
4476         * localedata/locales/the_NP: Likewise.
4477         * localedata/locales/ti_ER: Likewise.
4478         * localedata/locales/ti_ET: Likewise.
4479         * localedata/locales/tig_ER: Likewise.
4480         * localedata/locales/tk_TM: Likewise.
4481         * localedata/locales/tl_PH: Likewise.
4482         * localedata/locales/tn_ZA: Likewise.
4483         * localedata/locales/to_TO: Likewise.
4484         * localedata/locales/tpi_PG: Likewise.
4485         * localedata/locales/tr_CY: Likewise.
4486         * localedata/locales/tr_TR: Likewise.
4487         * localedata/locales/ts_ZA: Likewise.
4488         * localedata/locales/tt_RU: Likewise.
4489         * localedata/locales/tt_RU@iqtelif: Likewise.
4490         * localedata/locales/ug_CN: Likewise.
4491         * localedata/locales/uk_UA: Likewise.
4492         * localedata/locales/unm_US: Likewise.
4493         * localedata/locales/ur_IN: Likewise.
4494         * localedata/locales/ur_PK: Likewise.
4495         * localedata/locales/uz_UZ: Likewise.
4496         * localedata/locales/uz_UZ@cyrillic: Likewise.
4497         * localedata/locales/ve_ZA: Likewise.
4498         * localedata/locales/vi_VN: Likewise.
4499         * localedata/locales/wa_BE: Likewise.
4500         * localedata/locales/wae_CH: Likewise.
4501         * localedata/locales/wal_ET: Likewise.
4502         * localedata/locales/wo_SN: Likewise.
4503         * localedata/locales/xh_ZA: Likewise.
4504         * localedata/locales/yi_US: Likewise.
4505         * localedata/locales/yo_NG: Likewise.
4506         * localedata/locales/yue_HK: Likewise.
4507         * localedata/locales/yuw_PG: Likewise.
4508         * localedata/locales/zh_CN: Likewise.
4509         * localedata/locales/zh_HK: Likewise.
4510         * localedata/locales/zh_SG: Likewise.
4511         * localedata/locales/zh_TW: Likewise.
4512         * localedata/locales/zu_ZA: Likewise.
4514 2017-11-13  Florian Weimer  <fweimer@redhat.com>
4516         * support/next_to_fault.h, support/next_to_fault.c: New files.
4517         * support/Makefile (libsupport-routines): Add next_to_fault.
4518         * resolv/tst-inet_pton.c (struct next_to_fault)
4519         (next_to_fault_allocate, next_to_fault_free): Remove.
4520         (run_one_test): Switch to <support/next_to_fault.h> interfaces.
4522 2017-11-13  H.J. Lu  <hongjiu.lu@intel.com>
4524         * elf/dl-support.c: Include <dl-procruntime.c>.
4525         * include/link.h: Include <link_map.h>.
4526         * sysdeps/generic/dl-procruntime.c: New file.
4527         * sysdeps/generic/link_map.h: Likewise.
4528         * sysdeps/generic/ldsodefs.h: Include <dl-procruntime.c> in
4529         the writable ld.so namespace.
4531 2017-11-12  Paul Eggert  <eggert@cs.ucla.edu>
4533         timezone: pacify GCC -Wstringop-truncation
4534         Problem reported by Martin Sebor in:
4535         https://sourceware.org/ml/libc-alpha/2017-11/msg00336.html
4536         * timezone/zic.c (writezone): Use memcpy, not strncpy.
4538 2017-11-12  Florian Weimer  <fweimer@redhat.com>
4540         * support/Makefile (libsupport-routines): Add xreadlink, xstrndup,
4541         tst-xreadlink.
4542         (tests): Add tst-xreadlink.
4543         * support/support.h (xstrndup): Declare.
4544         * support/xunistd.h (xunlink, xreadlink): Declare.
4545         * support/temp_file.h (support_create_temp_directory): Declare.
4546         * support/temp_file.c (support_create_temp_directory): New function.
4547         * support/support_chroot.c (support_chroot_create): Use it.
4548         * support/xreadlink.c: New file.
4549         * support/xstrndup.c: Likewise.
4550         * support/xunlink.c: Likewise.
4551         * support/tst-xreadlink.c: Likewise.
4553 2017-11-11  John David Anglin  <danglin@gcc.gnu.org>
4555         * sysdeps/hppa/fpu/libm-test-ulps: Update clog10_downward ulps.
4557 2017-11-11  Florian Weimer  <fweimer@redhat.com>
4559         [BZ #22409]
4560         [BZ #22412]
4561         * resolv/res_comp.c (printable_string, binary_hnok)
4562         (binary_leading_dash): New functions.
4563         (res_hnok): Reimplement using these functions and ns_name_pton.
4564         (res_ownok): Likewise.
4565         (res_mailok): Reimplement using printable_string, ns_name_pton and
4566         binary_hnok.
4567         (res_dnok): Reimplement using printable_string and ns_name_pton.
4568         * resolv/tst-res_hnok.c (tests): Add additional tests.
4569         (LETTERDIGITS, PRINTABLE): Define.
4570         (do_test): Adjust one_char results.
4572 2017-11-11  Florian Weimer  <fweimer@redhat.com>
4574         [BZ #22413]
4575         * resolv/ns_name.c (ns_name_pton): Treat trailing backslash as error.
4576         * resolv/tst-ns_name_pton.c (tests): Add trailing backslash tests.
4578 2017-11-11  Florian Weimer  <fweimer@redhat.com>
4580         * resolv/tst-ns_name_pton.c: New file.
4581         * resolv/Makefile (tests): Add tst-ns_name_pton.
4582         (tst-ns_name_pton): Link against libresolv.
4584 2017-11-11  Florian Weimer  <fweimer@redhat.com>
4586         * resolv/tst-res_hnok.c: New file.
4587         * resolv/Makefile (tests): Add tst-res_hnok.
4588         (tst-res_hnok): Link against libresolv.
4590 2017-11-11  Florian Weimer  <fweimer@redhat.com>
4592         * resolv/tst-resolv-network.c: Use test framework instead explicit
4593         main function.
4595 2017-11-09  H.J. Lu  <hongjiu.lu@intel.com>
4597         * include/setjmp.h [!_ISOMAC]: Include <stddef.h> and
4598         <jmp_buf-macros.h>.
4599         [!_ISOMAC] (STR_HELPER): New.
4600         [!_ISOMAC] (STR): Likewise.
4601         [!_ISOMAC] (TEST_SIZE): Likewise.
4602         [!_ISOMAC] (TEST_ALIGN): Likewise.
4603         [!_ISOMAC] (TEST_OFFSET): Likewise.
4604         [!_ISOMAC] Add _Static_assert to check sizes, alignments and
4605         field offsets of jmp_buf as well as sigjmp_buf.
4606         * sysdeps/unix/sysv/linux/aarch64/jmp_buf-macros.h: Likewise.
4607         * sysdeps/unix/sysv/linux/alpha/jmp_buf-macros.h: Likewise.
4608         * sysdeps/unix/sysv/linux/arm/jmp_buf-macros.h: Likewise.
4609         * sysdeps/unix/sysv/linux/hppa/jmp_buf-macros.h: Likewise.
4610         * sysdeps/unix/sysv/linux/i386/jmp_buf-macros.h: Likewise.
4611         * sysdeps/unix/sysv/linux/ia64/jmp_buf-macros.h: Likewise.
4612         * sysdeps/unix/sysv/linux/m68k/jmp_buf-macros.h: Likewise.
4613         * sysdeps/unix/sysv/linux/microblaze/jmp_buf-macros.h: Likewise.
4614         * sysdeps/unix/sysv/linux/mips/mips32/jmp_buf-macros.h: Likewise.
4615         * sysdeps/unix/sysv/linux/mips/mips64/n32/jmp_buf-macros.h:
4616         Likewise.
4617         * sysdeps/unix/sysv/linux/mips/mips64/n64/jmp_buf-macros.h:
4618         Likewise.
4619         * sysdeps/unix/sysv/linux/nios2/jmp_buf-macros.h: Likewise.
4620         * sysdeps/unix/sysv/linux/powerpc/powerpc32/jmp_buf-macros.h:
4621         Likewise.
4622         * sysdeps/unix/sysv/linux/powerpc/powerpc64/jmp_buf-macros.h:
4623         Likewise.
4624         * sysdeps/unix/sysv/linux/s390/s390-32/jmp_buf-macros.h: Likewise.
4625         * sysdeps/unix/sysv/linux/s390/s390-64/jmp_buf-macros.h: Likewise.
4626         * sysdeps/unix/sysv/linux/sh/jmp_buf-macros.h: Likewise.
4627         * sysdeps/unix/sysv/linux/sparc/sparc32/jmp_buf-macros.h: Likewise.
4628         * sysdeps/unix/sysv/linux/sparc/sparc64/jmp_buf-macros.h: Likewise.
4629         * sysdeps/unix/sysv/linux/tile/tilegx/tilegx32/jmp_buf-macros.h:
4630         Likewise.
4631         * sysdeps/unix/sysv/linux/tile/tilegx/tilegx64/jmp_buf-macros.h:
4632         Likewise.
4633         * sysdeps/unix/sysv/linux/tile/tilepro/jmp_buf-macros.h: Likewise.
4634         * sysdeps/unix/sysv/linux/x86_64/64/jmp_buf-macros.h: Likewise.
4635         * sysdeps/unix/sysv/linux/x86_64/x32/jmp_buf-macros.h: Likewise.
4637 2017-11-07  Joseph Myers  <joseph@codesourcery.com>
4639         * include/float.h
4640         [!__GNUC_PREREQ (7, 0) && __GLIBC_USE (IEC_60559_TYPES_EXT)
4641         && __HAVE_FLOAT32] (FLT32_MANT_DIG): New macro.
4642         [!__GNUC_PREREQ (7, 0) && __GLIBC_USE (IEC_60559_TYPES_EXT)
4643         && __HAVE_FLOAT32] (FLT32_DECIMAL_DIG): Likewise.
4644         [!__GNUC_PREREQ (7, 0) && __GLIBC_USE (IEC_60559_TYPES_EXT)
4645         && __HAVE_FLOAT32] (FLT32_DIG): Likewise.
4646         [!__GNUC_PREREQ (7, 0) && __GLIBC_USE (IEC_60559_TYPES_EXT)
4647         && __HAVE_FLOAT32] (FLT32_MIN_EXP): Likewise.
4648         [!__GNUC_PREREQ (7, 0) && __GLIBC_USE (IEC_60559_TYPES_EXT)
4649         && __HAVE_FLOAT32] (FLT32_MIN_10_EXP): Likewise.
4650         [!__GNUC_PREREQ (7, 0) && __GLIBC_USE (IEC_60559_TYPES_EXT)
4651         && __HAVE_FLOAT32] (FLT32_MAX_EXP): Likewise.
4652         [!__GNUC_PREREQ (7, 0) && __GLIBC_USE (IEC_60559_TYPES_EXT)
4653         && __HAVE_FLOAT32] (FLT32_MAX_10_EXP): Likewise.
4654         [!__GNUC_PREREQ (7, 0) && __GLIBC_USE (IEC_60559_TYPES_EXT)
4655         && __HAVE_FLOAT32] (FLT32_MAX): Likewise.
4656         [!__GNUC_PREREQ (7, 0) && __GLIBC_USE (IEC_60559_TYPES_EXT)
4657         && __HAVE_FLOAT32] (FLT32_EPSILON): Likewise.
4658         [!__GNUC_PREREQ (7, 0) && __GLIBC_USE (IEC_60559_TYPES_EXT)
4659         && __HAVE_FLOAT32] (FLT32_MIN): Likewise.
4660         [!__GNUC_PREREQ (7, 0) && __GLIBC_USE (IEC_60559_TYPES_EXT)
4661         && __HAVE_FLOAT32] (FLT32_TRUE_MIN): Likewise.
4662         [!__GNUC_PREREQ (7, 0) && __GLIBC_USE (IEC_60559_TYPES_EXT)
4663         && __HAVE_FLOAT64] (FLT64_MANT_DIG): Likewise.
4664         [!__GNUC_PREREQ (7, 0) && __GLIBC_USE (IEC_60559_TYPES_EXT)
4665         && __HAVE_FLOAT64] (FLT64_DECIMAL_DIG): Likewise.
4666         [!__GNUC_PREREQ (7, 0) && __GLIBC_USE (IEC_60559_TYPES_EXT)
4667         && __HAVE_FLOAT64] (FLT64_DIG): Likewise.
4668         [!__GNUC_PREREQ (7, 0) && __GLIBC_USE (IEC_60559_TYPES_EXT)
4669         && __HAVE_FLOAT64] (FLT64_MIN_EXP): Likewise.
4670         [!__GNUC_PREREQ (7, 0) && __GLIBC_USE (IEC_60559_TYPES_EXT)
4671         && __HAVE_FLOAT64] (FLT64_MIN_10_EXP): Likewise.
4672         [!__GNUC_PREREQ (7, 0) && __GLIBC_USE (IEC_60559_TYPES_EXT)
4673         && __HAVE_FLOAT64] (FLT64_MAX_EXP): Likewise.
4674         [!__GNUC_PREREQ (7, 0) && __GLIBC_USE (IEC_60559_TYPES_EXT)
4675         && __HAVE_FLOAT64] (FLT64_MAX_10_EXP): Likewise.
4676         [!__GNUC_PREREQ (7, 0) && __GLIBC_USE (IEC_60559_TYPES_EXT)
4677         && __HAVE_FLOAT64] (FLT64_MAX): Likewise.
4678         [!__GNUC_PREREQ (7, 0) && __GLIBC_USE (IEC_60559_TYPES_EXT)
4679         && __HAVE_FLOAT64] (FLT64_EPSILON): Likewise.
4680         [!__GNUC_PREREQ (7, 0) && __GLIBC_USE (IEC_60559_TYPES_EXT)
4681         && __HAVE_FLOAT64] (FLT64_MIN): Likewise.
4682         [!__GNUC_PREREQ (7, 0) && __GLIBC_USE (IEC_60559_TYPES_EXT)
4683         && __HAVE_FLOAT64] (FLT64_TRUE_MIN): Likewise.
4684         [!__GNUC_PREREQ (7, 0) && __GLIBC_USE (IEC_60559_TYPES_EXT)
4685         && __HAVE_FLOAT32X] (FLT32X_MANT_DIG): Likewise.
4686         [!__GNUC_PREREQ (7, 0) && __GLIBC_USE (IEC_60559_TYPES_EXT)
4687         && __HAVE_FLOAT32X] (FLT32X_DECIMAL_DIG): Likewise.
4688         [!__GNUC_PREREQ (7, 0) && __GLIBC_USE (IEC_60559_TYPES_EXT)
4689         && __HAVE_FLOAT32X] (FLT32X_DIG): Likewise.
4690         [!__GNUC_PREREQ (7, 0) && __GLIBC_USE (IEC_60559_TYPES_EXT)
4691         && __HAVE_FLOAT32X] (FLT32X_MIN_EXP): Likewise.
4692         [!__GNUC_PREREQ (7, 0) && __GLIBC_USE (IEC_60559_TYPES_EXT)
4693         && __HAVE_FLOAT32X] (FLT32X_MIN_10_EXP): Likewise.
4694         [!__GNUC_PREREQ (7, 0) && __GLIBC_USE (IEC_60559_TYPES_EXT)
4695         && __HAVE_FLOAT32X] (FLT32X_MAX_EXP): Likewise.
4696         [!__GNUC_PREREQ (7, 0) && __GLIBC_USE (IEC_60559_TYPES_EXT)
4697         && __HAVE_FLOAT32X] (FLT32X_MAX_10_EXP): Likewise.
4698         [!__GNUC_PREREQ (7, 0) && __GLIBC_USE (IEC_60559_TYPES_EXT)
4699         && __HAVE_FLOAT32X] (FLT32X_MAX): Likewise.
4700         [!__GNUC_PREREQ (7, 0) && __GLIBC_USE (IEC_60559_TYPES_EXT)
4701         && __HAVE_FLOAT32X] (FLT32X_EPSILON): Likewise.
4702         [!__GNUC_PREREQ (7, 0) && __GLIBC_USE (IEC_60559_TYPES_EXT)
4703         && __HAVE_FLOAT32X] (FLT32X_MIN): Likewise.
4704         [!__GNUC_PREREQ (7, 0) && __GLIBC_USE (IEC_60559_TYPES_EXT)
4705         && __HAVE_FLOAT32X] (FLT32X_TRUE_MIN): Likewise.
4706         [!__GNUC_PREREQ (7, 0) && __GLIBC_USE (IEC_60559_TYPES_EXT)
4707         && __HAVE_FLOAT64X] (FLT64X_MANT_DIG): Likewise.
4708         [!__GNUC_PREREQ (7, 0) && __GLIBC_USE (IEC_60559_TYPES_EXT)
4709         && __HAVE_FLOAT64X] (FLT64X_DECIMAL_DIG): Likewise.
4710         [!__GNUC_PREREQ (7, 0) && __GLIBC_USE (IEC_60559_TYPES_EXT)
4711         && __HAVE_FLOAT64X] (FLT64X_DIG): Likewise.
4712         [!__GNUC_PREREQ (7, 0) && __GLIBC_USE (IEC_60559_TYPES_EXT)
4713         && __HAVE_FLOAT64X] (FLT64X_MIN_EXP): Likewise.
4714         [!__GNUC_PREREQ (7, 0) && __GLIBC_USE (IEC_60559_TYPES_EXT)
4715         && __HAVE_FLOAT64X] (FLT64X_MIN_10_EXP): Likewise.
4716         [!__GNUC_PREREQ (7, 0) && __GLIBC_USE (IEC_60559_TYPES_EXT)
4717         && __HAVE_FLOAT64X] (FLT64X_MAX_EXP): Likewise.
4718         [!__GNUC_PREREQ (7, 0) && __GLIBC_USE (IEC_60559_TYPES_EXT)
4719         && __HAVE_FLOAT64X] (FLT64X_MAX_10_EXP): Likewise.
4720         [!__GNUC_PREREQ (7, 0) && __GLIBC_USE (IEC_60559_TYPES_EXT)
4721         && __HAVE_FLOAT64X] (FLT64X_MAX): Likewise.
4722         [!__GNUC_PREREQ (7, 0) && __GLIBC_USE (IEC_60559_TYPES_EXT)
4723         && __HAVE_FLOAT64X] (FLT64X_EPSILON): Likewise.
4724         [!__GNUC_PREREQ (7, 0) && __GLIBC_USE (IEC_60559_TYPES_EXT)
4725         && __HAVE_FLOAT64X] (FLT64X_MIN): Likewise.
4726         [!__GNUC_PREREQ (7, 0) && __GLIBC_USE (IEC_60559_TYPES_EXT)
4727         && __HAVE_FLOAT64X] (FLT64X_TRUE_MIN): Likewise.
4729         * stdlib/tst-strtod.h (F16): New macro.
4730         (F32): Likewise.
4731         (F64): Likewise.
4732         (F32X): Likewise.
4733         (F64X): Likewise.
4734         (F128X): Likewise.
4735         (IF_FLOAT16): Likewise.
4736         (IF_FLOAT32): Likewise.
4737         (IF_FLOAT64): Likewise.
4738         (IF_FLOAT32X): Likewise.
4739         (IF_FLOAT64X): Likewise.
4740         (IF_FLOAT128X): Likewise.
4741         (GEN_TEST_STRTOD_FOREACH): Conditionally call macros for _Float16,
4742         _Float32, _Float64, _Float32x, _Float64x and _Float128x.
4743         (STRTOD_TEST_FOREACH): Likewise.
4744         * stdlib/tst-strtod-round-skeleton.c (CHOOSE_f32): New macro.
4745         (CHOOSE_f64): Likewise.
4746         (CHOOSE_f32x): Likewise.
4747         (CHOOSE_f64x): Likewise.
4749 2017-11-07  Andreas Schwab  <schwab@suse.de>
4751         * nptl/Makefile (tests-internal): Remove tst-typesizes.
4753 2017-11-07  Mike FABIAN  <mfabian@redhat.com>
4755         [BZ #22403]
4756         * localedata/locales/mfe_MU (LC_TIME): Fix wrong d_fmt, / needs
4757         to be escaped.
4758         * localedata/locales/miq_NI (LC_TIME): Fix wrong d_fmt, / needs
4759         to be escaped.
4761 2017-11-07  Claude Paroz <claude@2xlibre.net>
4763         [BZ #22403]
4764         * localedata/locales/an_ES (LC_TIME): Fix wrong d_fmt, / needs
4765         to be escaped.
4766         * localedata/locales/kab_DZ (LC_TIME): Fix wrong d_fmt, / needs
4767         to be escaped.
4768         * localedata/locales/om_ET (LC_TIME): Fix wrong d_fmt, / needs
4769         to be escaped.
4771 2017-11-07  Adhemerval Zanella  <adhemerval.zanella@linaro.org>
4773         [BZ #22298]
4774         * nptl/allocatestack.c (allocate_stack): Check if
4775         __PTHREAD_MUTEX_HAVE_PREV is non-zero, instead if
4776         __PTHREAD_MUTEX_HAVE_PREV is defined.
4777         * nptl/descr.h (pthread): Likewise.
4778         * nptl/nptl-init.c (__pthread_initialize_minimal_internal):
4779         Likewise.
4780         * nptl/pthread_create.c (START_THREAD_DEFN): Likewise.
4781         * sysdeps/nptl/fork.c (__libc_fork): Likewise.
4782         * sysdeps/nptl/pthread.h (PTHREAD_MUTEX_INITIALIZER): Likewise.
4783         * sysdeps/nptl/bits/thread-shared-types.h
4784         (__PTHREAD_MUTEX_NUSERS_AFTER_KIND, __PTHREAD_MUTEX_USE_UNION): New
4785         defines.
4786         (__pthread_internal_list): Check __PTHREAD_MUTEX_USE_UNION instead
4787         of __WORDSIZE for internal layout.
4788         (__pthread_mutex_s): Check __PTHREAD_MUTEX_NUSERS_AFTER_KIND instead
4789         of __WORDSIZE for internal __nusers layout and __PTHREAD_MUTEX_USE_UNION
4790         instead of __WORDSIZE whether to use an union for __spins and __list
4791         fields.
4792         (__PTHREAD_MUTEX_HAVE_PREV): Define also for __PTHREAD_MUTEX_USE_UNION
4793         case.
4794         * sysdeps/aarch64/nptl/bits/pthreadtypes-arch.h
4795         (__PTHREAD_MUTEX_NUSERS_AFTER_KIND, __PTHREAD_MUTEX_USE_UNION): New
4796         defines.
4797         * sysdeps/alpha/nptl/bits/pthreadtypes-arch.h
4798         (__PTHREAD_MUTEX_NUSERS_AFTER_KIND, __PTHREAD_MUTEX_USE_UNION):
4799         Likewise.
4800         * sysdeps/arm/nptl/bits/pthreadtypes-arch.h
4801         (__PTHREAD_MUTEX_NUSERS_AFTER_KIND, __PTHREAD_MUTEX_USE_UNION):
4802         Likewise.
4803         * sysdeps/hppa/nptl/bits/pthreadtypes-arch.h
4804         (__PTHREAD_MUTEX_NUSERS_AFTER_KIND, __PTHREAD_MUTEX_USE_UNION):
4805         Likewise.
4806         * sysdeps/ia64/nptl/bits/pthreadtypes-arch.h
4807         (__PTHREAD_MUTEX_NUSERS_AFTER_KIND, __PTHREAD_MUTEX_USE_UNION):
4808         Likewise.
4809         * sysdeps/m68k/nptl/bits/pthreadtypes-arch.h
4810         (__PTHREAD_MUTEX_NUSERS_AFTER_KIND, __PTHREAD_MUTEX_USE_UNION):
4811         Likewise.
4812         * sysdeps/microblaze/nptl/bits/pthreadtypes-arch.h
4813         (__PTHREAD_MUTEX_NUSERS_AFTER_KIND, __PTHREAD_MUTEX_USE_UNION):
4814         Likewise.
4815         * sysdeps/mips/nptl/bits/pthreadtypes-arch.h
4816         (__PTHREAD_MUTEX_NUSERS_AFTER_KIND, __PTHREAD_MUTEX_USE_UNION):
4817         Likewise.
4818         * sysdeps/nios2/nptl/bits/pthreadtypes-arch.h
4819         (__PTHREAD_MUTEX_NUSERS_AFTER_KIND, __PTHREAD_MUTEX_USE_UNION):
4820         Likewise.
4821         * sysdeps/powerpc/nptl/bits/pthreadtypes-arch.h
4822         (__PTHREAD_MUTEX_NUSERS_AFTER_KIND, __PTHREAD_MUTEX_USE_UNION):
4823         Likewise.
4824         * sysdeps/s390/nptl/bits/pthreadtypes-arch.h
4825         (__PTHREAD_MUTEX_NUSERS_AFTER_KIND, __PTHREAD_MUTEX_USE_UNION):
4826         Likewise.
4827         * sysdeps/sh/nptl/bits/pthreadtypes-arch.h
4828         (__PTHREAD_MUTEX_NUSERS_AFTER_KIND, __PTHREAD_MUTEX_USE_UNION):
4829         Likewise.
4830         * sysdeps/sparc/nptl/bits/pthreadtypes-arch.h
4831         (__PTHREAD_MUTEX_NUSERS_AFTER_KIND, __PTHREAD_MUTEX_USE_UNION):
4832         Likewise.
4833         * sysdeps/tile/nptl/bits/pthreadtypes-arch.h
4834         (__PTHREAD_MUTEX_NUSERS_AFTER_KIND, __PTHREAD_MUTEX_USE_UNION):
4835         Likewise.
4836         * sysdeps/x86/nptl/bits/pthreadtypes-arch.h
4837         (__PTHREAD_MUTEX_NUSERS_AFTER_KIND, __PTHREAD_MUTEX_USE_UNION):
4838         Likewise.
4840         * nptl/pthreadP.h (ASSERT_TYPE_SIZE, ASSERT_PTHREAD_INTERNAL_SIZE):
4841         New macros.
4842         * nptl/pthread_attr_init.c (__pthread_mutex_init): Add build time
4843         checks for expected input type size.
4844         * nptl/pthread_barrier_init.c (__pthread_barrier_init): Likewise.
4845         * nptl/pthread_barrierattr_init.c (pthread_barrierattr_init):
4846         Likewise.
4847         * nptl/pthread_cond_init.c (__pthread_cond_init): Likewise.
4848         * nptl/pthread_condattr_init.c (__pthread_condattr_init): Likewise.
4849         * nptl/pthread_mutex_init.c (__pthread_mutex_init): Likewise.
4850         * nptl/pthread_mutexattr_init.c (__pthread_mutexattr_init): Likewise.
4851         * nptl/pthread_rwlock_init.c (__pthread_rwlock_init): Likewise.
4852         * nptl/pthread_rwlockattr_init.c (pthread_rwlockattr_init): Likewise.
4853         * nptl/sem_init.c (__new_sem_init, __old_sem_init): Likewise
4854         * nptl/pthread_attr_destroy.c (__pthread_attr_destroy): Remove
4855         superflous runtime assert check.
4856         * nptl/pthread_attr_getaffinity.c (__pthread_attr_getaffinity_new):
4857         Likewise.
4858         * nptl/pthread_attr_getdetachstate.c (__pthread_attr_getdetachstate):
4859         Likewise.
4860         * nptl/pthread_attr_getguardsize.c (pthread_attr_getguardsize):
4861         Likewise.
4862         * nptl/pthread_attr_getinheritsched.c (__pthread_attr_getinheritsched):
4863         Likewise.
4864         * nptl/pthread_attr_getschedparam.c (__pthread_attr_getschedparam):
4865         Likewise.
4866         * nptl/pthread_attr_getschedpolicy.c (__pthread_attr_getschedpolicy):
4867         Likewise.
4868         * nptl/pthread_attr_getscope.c (__pthread_attr_getscope): Likewise.
4869         * nptl/pthread_attr_getstack.c (__pthread_attr_getstack): Likewise.
4870         * nptl/pthread_attr_getstackaddr.c (__pthread_attr_getstackaddr):
4871         Likewise.
4872         * nptl/pthread_attr_getstacksize.c (__pthread_attr_getstacksize):
4873         Likewise.
4874         * nptl/pthread_attr_setaffinity.c (__pthread_attr_setaffinity_new):
4875         Likewise.
4876         * nptl/pthread_attr_setdetachstate.c (__pthread_attr_setdetachstate):
4877         Likewise.
4878         * nptl/pthread_attr_setguardsize.c (pthread_attr_setguardsize):
4879         Likewise.
4880         * nptl/pthread_attr_setinheritsched.c
4881         (__pthread_attr_setinheritsched): Likewise.
4882         * nptl/pthread_attr_setschedparam.c (__pthread_attr_setschedparam):
4883         Likewise.
4884         * nptl/pthread_attr_setschedpolicy.c (__pthread_attr_setschedpolicy):
4885         Likewise.
4886         * nptl/pthread_attr_setscope.c (__pthread_attr_setscope): Likewise.
4887         * nptl/pthread_attr_setstack.c (__pthread_attr_setstack,
4888         __old_pthread_attr_setstack): Likewise.
4889         * nptl/pthread_attr_setstackaddr.c (__pthread_attr_setstackaddr):
4890         Likewise.
4891         * nptl/pthread_attr_setstacksize.c (__pthread_attr_setstacksize):
4892         Likewise.
4893         * nptl/pthread_getattr_default_np.c (pthread_getattr_default_np):
4894         Likewise.
4895         * nptl/pthread_mutex_lock.c (__pthread_mutex_lock): Likewise.
4896         * nptl/pthread_setattr_default_np.c (pthread_setattr_default_np):
4897         Likewise.
4898         * nptl/tst-typesizes.c: Remove file.
4900         * nptl/pthreadP.h (ASSERT_PTHREAD_STRING,
4901         ASSERT_PTHREAD_INTERNAL_OFFSET): New macro.
4902         * nptl/pthread_mutex_init.c (__pthread_mutex_init): Add build time
4903         checks for internal pthread_mutex_t offsets.
4904         * sysdeps/aarch64/nptl/pthread-offsets.h
4905         (__PTHREAD_MUTEX_NUSERS_OFFSET, __PTHREAD_MUTEX_KIND_OFFSET,
4906         __PTHREAD_MUTEX_SPINS_OFFSET, __PTHREAD_MUTEX_ELISION_OFFSET,
4907         __PTHREAD_MUTEX_LIST_OFFSET): New macro.
4908         * sysdeps/alpha/nptl/pthread-offsets.h: Likewise.
4909         * sysdeps/arm/nptl/pthread-offsets.h: Likewise.
4910         * sysdeps/hppa/nptl/pthread-offsets.h: Likewise.
4911         * sysdeps/i386/nptl/pthread-offsets.h: Likewise.
4912         * sysdeps/ia64/nptl/pthread-offsets.h: Likewise.
4913         * sysdeps/m68k/nptl/pthread-offsets.h: Likewise.
4914         * sysdeps/microblaze/nptl/pthread-offsets.h: Likewise.
4915         * sysdeps/mips/nptl/pthread-offsets.h: Likewise.
4916         * sysdeps/nios2/nptl/pthread-offsets.h: Likewise.
4917         * sysdeps/powerpc/nptl/pthread-offsets.h: Likewise.
4918         * sysdeps/s390/nptl/pthread-offsets.h: Likewise.
4919         * sysdeps/sh/nptl/pthread-offsets.h: Likewise.
4920         * sysdeps/sparc/nptl/pthread-offsets.h: Likewise.
4921         * sysdeps/tile/nptl/pthread-offsets.h: Likewise.
4922         * sysdeps/x86_64/nptl/pthread-offsets.h: Likewise.
4924 2017-11-07  Florian Weimer  <fweimer@redhat.com>
4926         * bits/mman-linux.h: Move ...
4927         * sysdeps/unix/sysv/linux/bits/mman-linux.h: ... here.  Update
4928         comment.
4929         * sysdeps/unix/sysv/linux/bits/Makefile (sysdep_headers): Remove
4930         outdated comment.
4932 2017-11-07  Rajalakshmi Srinivasaraghavan  <raji@linux.vnet.ibm.com>
4934         * sysdeps/powerpc/powerpc64/multiarch/strcasestr-power8.S (STRNLEN):
4935         Redefine STRNLEN as __strnlen_power8.
4937 2017-11-06  Adhemerval Zanella  <adhemerval.zanella@linaro.org>
4939         * signal/sighold.c (sighold): Optimize implementation.
4941         * sysdeps/unix/sysv/linux/sigqueue.c (__sigqueue): Asssume
4942         __NR_rt_sigqueueinfo.
4944         * sysdeps/unix/sysv/linux/Versions (libc) [GLIBC_PRIVATE]: Add
4945         __sigtimedwait.
4946         * sysdeps/unix/sysv/linux/sigtimedwait.c: Simplify includes and
4947         assume __NR_rt_sigtimedwait.
4948         * sysdeps/unix/sysv/linux/sigwait.c (__sigwait): Call __sigtimedwait
4949         and add LIBC_CANCEL_HANDLED for cancellation marking.
4950         * sysdeps/unix/sysv/linux/sigwaitinfo.c (__sigwaitinfo): Likewise.
4952         * sysdeps/arm/armv7/multiarch/Makefile [$(subdir) = string]
4953         (sysdeps_routines): Add memchr_noneon.
4954         * sysdeps/arm/armv7/multiarch/ifunc-memchr.h: New file.
4955         * sysdeps/arm/armv7/multiarch/memchr_noneon.S: Likewise.
4956         * sysdeps/arm/armv7/multiarch/rtld-memchr.S: Likewise.
4957         * sysdeps/arm/armv7/multiarch/memchr.S: Remove file.
4958         * sysdeps/arm/armv7/multiarch/memchr.c: New file.
4959         * sysdeps/arm/armv7/multiarch/memchr_impl.S: Move to ...
4960         * sysdeps/arm/armv7/multiarch/memchr_neon.S: ... here.
4962         * sysdeps/arm/arm-ifunc.h: New file.
4963         * sysdeps/arm/armv7/multiarch/ifunc-memcpy.h: Likewise.
4964         * sysdeps/arm/armv7/multiarch/memcpy.c: Likewise.
4965         * sysdeps/arm/armv7/multiarch/memcpy_arm.S: Likewise.
4966         * sysdeps/arm/armv7/multiarch/rtld-memcpy.S: Likewise.
4967         * sysdeps/arm/armv7/multiarch/memcpy_neon.S [!__ARM_NEON__]
4968         (__memcpy_neon): Avoid create hidden alias.
4969         * sysdeps/arm/armv7/multiarch/memcpy_vfp.S [!__ARM_NEON_]
4970         (__memcpy_vfp): Likewise.
4971         * sysdeps/arm/armv7/multiarch/Makefile [$(subdir) = string]
4972         (sysdep_routines): Add memcpy_arm.
4973         * sysdeps/arm/armv7/multiarch/memcpy.S: Remove file.
4975 2017-11-06  H.J. Lu  <hongjiu.lu@intel.com>
4977         [BZ #22362]
4978         * Makerules (make-link-multidir): New.
4979         * config.make.in (multidir): New.
4980         * configure.ac (libc_cv_multidir): New.  AC_SUBST.
4981         * configure: Regenerated.
4982         * csu/Makefile [$(multidir) != .](multilib-extra-objs): New.
4983         [$(multidir) != .](extra-objs): Add $(multilib-extra-objs).
4984         [$(multidir) != .]($(addprefix $(objpfx)$(multidir)/, $(install-lib))):
4985         New target.
4987 2017-11-06  Joseph Myers  <joseph@codesourcery.com>
4989         [BZ #22402]
4990         * sysdeps/powerpc/bits/floatn.h: Include <bits/long-double.h>.
4991         [__NO_LONG_DOUBLE_MATH] (__HAVE_FLOAT128): Define to 0.
4993 2017-11-04  Mike FABIAN  <mfabian@redhat.com>
4995         * localedata/locales/tpi_PG (LC_TIME): Fix wrong d_fmt, / needs
4996         to be escaped.
4998 2017-11-04  Florian Weimer  <fweimer@redhat.com>
5000         * manual/llio.texi (Open-time Flags): Document O_TMPFILE.
5002 2017-11-03  Joseph Myers  <joseph@codesourcery.com>
5004         * math/math.h [__HAVE_DISTINCT_FLOAT16
5005         || __HAVE_DISTINCT_FLOAT32 || __HAVE_DISTINCT_FLOAT64
5006         || __HAVE_DISTINCT_FLOAT32X || __HAVE_DISTINCT_FLOAT64X
5007         || __HAVE_DISTINCT_FLOAT128X]: Use #error.
5008         [__NO_LONG_DOUBLE_MATH && __HAVE_DISTINCT_FLOAT128]: Likewise.
5009         [__HAVE_DISTINCT_FLOAT128 && !__HAVE_GENERIC_SELECTION
5010         && __HAVE_FLOATN_NOT_TYPEDEF]: Likewise.
5011         [__HAVE_DISTINCT_FLOAT128 && __HAVE_GENERIC_SELECTION]
5012         (__MATH_TG_F32): New macro.
5013         [__HAVE_DISTINCT_FLOAT128 && __HAVE_GENERIC_SELECTION]
5014         (__MATH_TG_F64X): Likewise.
5015         [__HAVE_DISTINCT_FLOAT128 && __HAVE_GENERIC_SELECTION]
5016         (__MATH_TG): Use __MATH_TG_F32 and __MATH_TG_F64X.
5018 2017-11-03  Dmitry V. Levin  <ldv@altlinux.org>
5020         * po/de.po: Update translations.
5021         * po/ru.po: Likewise.
5023 2017-11-03  Florian Weimer  <fweimer@redhat.com>
5025         * manual/filesys.texi (Hard Links): Document linkat.
5027 2017-11-03  Joseph Myers  <joseph@codesourcery.com>
5029         * math/tgmath.h [__HAVE_DISTINCT_FLOAT16
5030         || __HAVE_DISTINCT_FLOAT32 || __HAVE_DISTINCT_FLOAT64
5031         || __HAVE_DISTINCT_FLOAT32X || __HAVE_DISTINCT_FLOAT64X
5032         || __HAVE_DISTINCT_FLOAT128X]: Use #error.
5033         [__HAVE_DISTINCT_FLOAT128 && __GLIBC_USE (IEC_60559_TYPES_EXT)
5034         && __HAVE_FLOAT64X && !__HAVE_FLOAT64X_LONG_DOUBLE
5035         && __HAVE_FLOATN_NOT_TYPEDEF] (__TGMATH_F128): Handle _Float64x
5036         the same as _Float128.
5037         [__HAVE_DISTINCT_FLOAT128 && __GLIBC_USE (IEC_60559_TYPES_EXT)
5038         && __HAVE_FLOAT64X && !__HAVE_FLOAT64X_LONG_DOUBLE
5039         && __HAVE_FLOATN_NOT_TYPEDEF] (__TGMATH_CF128): Likewise.
5041         * stdlib/stdlib.h
5042         [__HAVE_FLOAT16 && __GLIBC_USE (IEC_60559_TYPES_EXT)] (strtof16):
5043         Declare.
5044         [__HAVE_FLOAT32 && __GLIBC_USE (IEC_60559_TYPES_EXT)] (strtof32):
5045         Likewise.
5046         [__HAVE_FLOAT64 && __GLIBC_USE (IEC_60559_TYPES_EXT)] (strtof64):
5047         Likewise.
5048         [__HAVE_FLOAT32X && __GLIBC_USE (IEC_60559_TYPES_EXT)]
5049         (strtof32x): Likewise.
5050         [__HAVE_FLOAT64X && __GLIBC_USE (IEC_60559_TYPES_EXT)]
5051         (strtof64x): Likewise.
5052         [__HAVE_FLOAT128X && __GLIBC_USE (IEC_60559_TYPES_EXT)]
5053         (strtof128x): Likewise.
5054         [__HAVE_FLOAT16 && __GLIBC_USE (IEC_60559_TYPES_EXT)]
5055         (strfromf16): Likewise.
5056         [__HAVE_FLOAT32 && __GLIBC_USE (IEC_60559_TYPES_EXT)]
5057         (strfromf32): Likewise.
5058         [__HAVE_FLOAT64 && __GLIBC_USE (IEC_60559_TYPES_EXT)]
5059         (strfromf64): Likewise.
5060         [__HAVE_FLOAT32X && __GLIBC_USE (IEC_60559_TYPES_EXT)]
5061         (strfromf32x): Likewise.
5062         [__HAVE_FLOAT64X && __GLIBC_USE (IEC_60559_TYPES_EXT)]
5063         (strfromf64x): Likewise.
5064         [__HAVE_FLOAT128X && __GLIBC_USE (IEC_60559_TYPES_EXT)]
5065         (strfromf128x): Likewise.
5066         [__USE_GNU && __HAVE_FLOAT16] (strtof16_l): Likewise.
5067         [__USE_GNU && __HAVE_FLOAT32] (strtof32_l): Likewise.
5068         [__USE_GNU && __HAVE_FLOAT64] (strtof64_l): Likewise.
5069         [__USE_GNU && __HAVE_FLOAT32X] (strtof32x_l): Likewise.
5070         [__USE_GNU && __HAVE_FLOAT64X] (strtof64x_l): Likewise.
5071         [__USE_GNU && __HAVE_FLOAT128X] (strtof128x_l): Likewise.
5073 2017-11-03  Richard Henderson  <rth@twiddle.net>
5075         * sysdeps/unix/sysv/linux/aarch64/sysconf.c: New file.
5077 2017-11-03  Szabolcs Nagy  <szabolcs.nagy@arm.com>
5079         * sysdeps/aarch64/dl-tlsdesc.S (_dl_tlsdesc_dynamic): Optimize.
5081 2017-11-03  Szabolcs Nagy  <szabolcs.nagy@arm.com>
5083         * sysdeps/arm/dl-machine.h (elf_machine_runtime_setup): Remove
5084         DT_TLSDESC_GOT initialization.
5085         * sysdeps/arm/dl-tlsdesc.S (_dl_tlsdesc_lazy_resolver): Remove.
5086         (_dl_tlsdesc_resolve_hold): Likewise.
5087         * sysdeps/aarch64/dl-tlsdesc.h (_dl_tlsdesc_lazy_resolver): Remove.
5088         (_dl_tlsdesc_resolve_hold): Likewise.
5089         * sysdeps/aarch64/tlsdesc.c (_dl_tlsdesc_lazy_resolver_fixup): Remove.
5090         (_dl_tlsdesc_resolve_hold_fixup): Likewise.
5092 2017-11-03  Szabolcs Nagy  <szabolcs.nagy@arm.com>
5094         * sysdeps/arm/dl-machine.h (elf_machine_rel): Remove volatile.
5096 2017-11-03  Szabolcs Nagy  <szabolcs.nagy@arm.com>
5098         [BZ #18572]
5099         * sysdeps/arm/dl-machine.h (elf_machine_lazy_rel): Do symbol binding
5100         non-lazily for R_ARM_TLS_DESC.
5102 2017-11-03  Szabolcs Nagy  <szabolcs.nagy@arm.com>
5104         [BZ #17078]
5105         * sysdeps/arm/dl-machine.h (elf_machine_rela): Remove the
5106         R_ARM_TLS_DESC case.
5107         (elf_machine_lazy_rel): Remove the prelink check.
5109 2017-11-03  Szabolcs Nagy  <szabolcs.nagy@arm.com>
5111         * sysdeps/aarch64/dl-machine.h (elf_machine_runtime_setup): Remove
5112         DT_TLSDESC_GOT initialization.
5113         * sysdeps/aarch64/dl-tlsdesc.S (_dl_tlsdesc_return_lazy): Remove.
5114         (_dl_tlsdesc_resolve_rela): Likewise.
5115         (_dl_tlsdesc_resolve_hold): Likewise.
5116         (_dl_tlsdesc_undefweak): Remove ldar.
5117         (_dl_tlsdesc_dynamic): Likewise.
5118         * sysdeps/aarch64/dl-tlsdesc.h (_dl_tlsdesc_return_lazy): Remove.
5119         (_dl_tlsdesc_resolve_rela): Likewise.
5120         (_dl_tlsdesc_resolve_hold): Likewise.
5121         * sysdeps/aarch64/tlsdesc.c (_dl_tlsdesc_resolve_rela_fixup): Remove.
5122         (_dl_tlsdesc_resolve_hold_fixup): Likewise.
5123         (_dl_tlsdesc_resolve_rela): Likewise.
5124         (_dl_tlsdesc_resolve_hold): Likewise.
5126 2017-11-03  Szabolcs Nagy  <szabolcs.nagy@arm.com>
5128         * sysdeps/aarch64/dl-machine.h (elf_machine_lazy_rel): Do symbol
5129         binding and initialization non-lazily for R_AARCH64_TLSDESC.
5131 2017-11-03  Szabolcs Nagy  <szabolcs.nagy@arm.com>
5133         * elf/tlsdeschtab.h (_dl_tls_resolve_early_return_p): Mark unused.
5134         (_dl_tlsdesc_wake_up_held_fixups): Likewise.
5136 2017-11-02  Joseph Myers  <joseph@codesourcery.com>
5138         * wcsmbs/wchar.h [__HAVE_FLOAT16 && __USE_GNU] (wcstof16):
5139         Declare.
5140         [__HAVE_FLOAT32 && __USE_GNU] (wcstof32): Likewise.
5141         [__HAVE_FLOAT64 && __USE_GNU] (wcstof64): Likewise.
5142         [__HAVE_FLOAT32X && __USE_GNU] (wcstof32x): Likewise.
5143         [__HAVE_FLOAT64X && __USE_GNU] (wcstof64x): Likewise.
5144         [__HAVE_FLOAT128X && __USE_GNU] (wcstof128x): Likewise.
5145         [__HAVE_FLOAT16 && __USE_GNU] (wcstof16_l): Likewise.
5146         [__HAVE_FLOAT32 && __USE_GNU] (wcstof32_l): Likewise.
5147         [__HAVE_FLOAT64 && __USE_GNU] (wcstof64_l): Likewise.
5148         [__HAVE_FLOAT32X && __USE_GNU] (wcstof32x_l): Likewise.
5149         [__HAVE_FLOAT64X && __USE_GNU] (wcstof64x_l): Likewise.
5150         [__HAVE_FLOAT128X && __USE_GNU] (wcstof128x_l): Likewise.
5152 2017-11-02  Mike FABIAN  <mfabian@redhat.com>
5154         [BZ #22382]
5155         * localedata/locales/tpi_PG (LC_TIME): Fix syntax error.
5156         * localedata/locales/tpi_PG: Add standard header.
5158 2017-11-02  Florian Weimer  <fweimer@redhat.com>
5160         test-errno-linux: quotactl can fail with EPERM in containers.
5161         * sysdeps/unix/sysv/linux/test-errno-linux.c
5162         (LIST, LIST_FORWARD): New macros.
5163         (check_error_in_list): New function.
5164         (test_wrp_rv): Accept list of permitted error codes.
5165         (test_wrp_rv2): Remove.
5166         (test_wrp): Call test_wrp_rv with list of error codes.
5167         (test_wrp2): Accept list of error codes.
5168         (do_test): Adjust.  Allow EPERM for quotactl.
5170 2017-11-02  Florian Weimer  <fweimer@redhat.com>
5172         * stdio-common/bug16.c (do_test): Use array_length.
5173         * stdio-common/errlist.c (_sys_nerr): Likewise.
5174         * stdio-common/printf_fp.c (PRINTF_FP_FETCH): Likewise.
5175         * stdio-common/printf_fphex.c (__printf_fphex): Use array_end.
5176         * stdio-common/psiginfo.c (psiginfo): Use array_length.
5177         * stdio-common/test-vfprintf.c (nlocs): Remove definition.
5178         (do_test): Use array_length.
5179         * stdio-common/tst-fphex.c (do_test): Use array_end, array_length.
5180         * stdio-common/tst-long-dbl-fphex.c (do_test): Use array_length.
5181         * stdio-common/tst-printf-round.c (do_test): Likewise.
5182         * stdio-common/tst-swprintf.c (nbuf): Remove definition.
5183         (CHECK): Use array_length.
5184         * stdio-common/tstdiomisc.c (t3, F): Likewise.
5185         * stdio-common/tstscanf.c (main): Likewise.
5186         * stdio-common/vfprintf.c (process_string_arg): Likewise.
5188 2017-11-02  Florian Weimer  <fweimer@redhat.com>
5190         Add array_length and array_end macros.
5191         * include/array_length.h: New file.
5193 2017-11-02  Florian Weimer  <fweimer@redhat.com>
5195         [BZ #22332]
5196         * posix/tst-glob-tilde.c (do_noescape): New variable.
5197         (one_test): Process it.
5198         (do_test): Set do_noescape.  Add unescaping test case.
5200 2017-11-01  Joseph Myers  <joseph@codesourcery.com>
5202         * math/complex.h
5203         [(__HAVE_DISTINCT_FLOAT16 || (__HAVE_FLOAT16 && !_LIBC))
5204         && __GLIBC_USE (IEC_60559_TYPES_EXT)]: Include <bits/cmathcalls.h>
5205         with appropriate macros defined and undefined.
5206         [(__HAVE_DISTINCT_FLOAT32 || (__HAVE_FLOAT32 && !_LIBC))
5207         && __GLIBC_USE (IEC_60559_TYPES_EXT)]: Likewise.
5208         [(__HAVE_DISTINCT_FLOAT64 || (__HAVE_FLOAT64 && !_LIBC))
5209         && __GLIBC_USE (IEC_60559_TYPES_EXT)]: Likewise.
5210         [(__HAVE_DISTINCT_FLOAT32X || (__HAVE_FLOAT32X && !_LIBC))
5211         && __GLIBC_USE (IEC_60559_TYPES_EXT)]: Likewise.
5212         [(__HAVE_DISTINCT_FLOAT64X || (__HAVE_FLOAT64X && !_LIBC))
5213         && __GLIBC_USE (IEC_60559_TYPES_EXT)]: Likewise.
5214         [(__HAVE_DISTINCT_FLOAT128X || (__HAVE_FLOAT128X && !_LIBC))
5215         && __GLIBC_USE (IEC_60559_TYPES_EXT)]: Likewise.
5217         * math/complex.h
5218         [(__HAVE_DISTINCT_FLOAT128 || (__HAVE_FLOAT128 && !LIBC))
5219         && __GLIBC_USE (IEC_60559_TYPES_EXT)]: Move conditional code after
5220         that for long double.  Do not condition define and undefine of
5221         _Mdouble_complex_ on [__CFLOAT128].
5223 2017-11-01  H.J. Lu  <hongjiu.lu@intel.com>
5225         * sysdeps/i386/sysdep.h: Include <sysdeps/x86/sysdep.h> instead
5226         of <sysdeps/generic/sysdep.h>.
5227         (ALIGNARG): Removed.
5228         (ASM_SIZE_DIRECTIVE): Likewise.
5229         (ENTRY): Likewise.
5230         (END): Likewise.
5231         (ENTRY_CHK): Likewise.
5232         (END_CHK): Likewise.
5233         (syscall_error): Likewise.
5234         (mcount): Likewise.
5235         (PSEUDO_END): Likewise.
5236         (L): Likewise.
5237         (atom_text_section): Likewise.
5238         * sysdeps/x86/sysdep.h: New file.
5239         * sysdeps/x86_64/sysdep.h: Include <sysdeps/x86/sysdep.h> instead
5240         of <sysdeps/generic/sysdep.h>.
5241         (ALIGNARG): Removed.
5242         (ASM_SIZE_DIRECTIVE): Likewise.
5243         (ENTRY): Likewise.
5244         (END): Likewise.
5245         (ENTRY_CHK): Likewise.
5246         (END_CHK): Likewise.
5247         (syscall_error): Likewise.
5248         (mcount): Likewise.
5249         (PSEUDO_END): Likewise.
5250         (L): Likewise.
5251         (atom_text_section): Likewise.
5253 2017-10-31  Rafal Luzynski  <digitalfreak@lingonborough.com>
5255         * localedata/unicode-gen/gen_unicode_ctype.py (output_head):
5256         category of LC_CTYPE set to "i18n:2012".
5257         * localedata/locales/i18n_ctype: Regenerate.
5259 2017-10-31  Yury Norov  <ynorov@caviumnetworks.com>
5261         * sysdeps/unix/sysv/linux/sigprocmask.c: Remove useless #ifdefs.
5262         * sysdeps/unix/sysv/linux/sigtimedwait.c: Likewise.
5263         * sysdeps/unix/sysv/linux/sigwait.c: Likewise.
5264         * sysdeps/unix/sysv/linux/sigwaitinfo.c: Likewise.
5266         * sysdeps/unix/sysv/linux/ia64/sigpending.c: Remove file.
5267         * sysdeps/unix/sysv/linux/s390/s390-64/sigpending.c: Likewise.
5268         * sysdeps/unix/sysv/linux/sparc/sparc64/sigpending.c: Likewise.
5269         * sysdeps/unix/sysv/linux/x86_64/sigpending.c: Likewise.
5271 2017-10-31  Joseph Myers  <joseph@codesourcery.com>
5273         * math/complex.h
5274         [__HAVE_FLOAT16 && __GLIBC_USE (IEC_60559_TYPES_EXT)] (CMPLXF16):
5275         New macro.
5276         [__HAVE_FLOAT32 && __GLIBC_USE (IEC_60559_TYPES_EXT)] (CMPLXF32):
5277         Likewise.
5278         [__HAVE_FLOAT64 && __GLIBC_USE (IEC_60559_TYPES_EXT)] (CMPLXF64):
5279         Likewise.
5280         [__HAVE_FLOAT32X && __GLIBC_USE (IEC_60559_TYPES_EXT)]
5281         (CMPLXF32X): Likewise.
5282         [__HAVE_FLOAT64X && __GLIBC_USE (IEC_60559_TYPES_EXT)]
5283         (CMPLXF64X): Likewise.
5284         [__HAVE_FLOAT128X && __GLIBC_USE (IEC_60559_TYPES_EXT)]
5285         (CMPLXF128X): Likewise.
5287         * math/math.h
5288         [__FLT_EVAL_METHOD__ == 0 || __FLT_EVAL_METHOD__ == 32]
5289         (__MATH_EVAL_FMT2): Define to add 0.0f.
5291 2017-10-31  Alan Modra  <amodra@gmail.com>
5293         * sysdeps/powerpc/powerpc64/fpu/multiarch/e_expf-power8.S: Don't
5294         include sysdep.h.
5295         * sysdeps/powerpc/powerpc64/fpu/multiarch/s_ceilf-power5+.S: Likewise.
5296         * sysdeps/powerpc/powerpc64/fpu/multiarch/s_ceilf-ppc64.S: Likewise.
5297         * sysdeps/powerpc/powerpc64/fpu/multiarch/s_cosf-power8.S: Likewise.
5298         * sysdeps/powerpc/powerpc64/fpu/multiarch/s_cosf-ppc64.c: Likewise.
5299         * sysdeps/powerpc/powerpc64/fpu/multiarch/s_finite-power7.S: Likewise.
5300         * sysdeps/powerpc/powerpc64/fpu/multiarch/s_finite-power8.S: Likewise.
5301         * sysdeps/powerpc/powerpc64/fpu/multiarch/s_floor-power5+.S: Likewise.
5302         * sysdeps/powerpc/powerpc64/fpu/multiarch/s_floor-ppc64.S: Likewise.
5303         * sysdeps/powerpc/powerpc64/fpu/multiarch/s_roundf-power5+.S: Likewise.
5304         * sysdeps/powerpc/powerpc64/fpu/multiarch/s_roundf-ppc64.S: Likewise.
5305         * sysdeps/powerpc/powerpc64/fpu/multiarch/s_sinf-power8.S: Likewise.
5306         * sysdeps/powerpc/powerpc64/fpu/multiarch/s_sinf-ppc64.c: Likewise.
5307         * sysdeps/powerpc/powerpc64/fpu/multiarch/s_truncf-power5+.S: Likewise.
5308         * sysdeps/powerpc/powerpc64/fpu/multiarch/s_truncf-ppc64.S: Likewise.
5309         * sysdeps/powerpc/powerpc64/multiarch/memchr-power7.S: Likewise.
5310         * sysdeps/powerpc/powerpc64/multiarch/memchr-power8.S: Likewise.
5311         * sysdeps/powerpc/powerpc64/multiarch/memcmp-power4.S: Likewise.
5312         * sysdeps/powerpc/powerpc64/multiarch/memcmp-power7.S: Likewise.
5313         * sysdeps/powerpc/powerpc64/multiarch/memcmp-power8.S: Likewise.
5314         * sysdeps/powerpc/powerpc64/multiarch/memcpy-a2.S: Likewise.
5315         * sysdeps/powerpc/powerpc64/multiarch/memcpy-cell.S: Likewise.
5316         * sysdeps/powerpc/powerpc64/multiarch/memcpy-power4.S: Likewise.
5317         * sysdeps/powerpc/powerpc64/multiarch/memcpy-power6.S: Likewise.
5318         * sysdeps/powerpc/powerpc64/multiarch/memcpy-power7.S: Likewise.
5319         * sysdeps/powerpc/powerpc64/multiarch/memcpy-ppc64.S: Likewise.
5320         * sysdeps/powerpc/powerpc64/multiarch/memmove-power7.S: Likewise.
5321         * sysdeps/powerpc/powerpc64/multiarch/mempcpy-power7.S: Likewise.
5322         * sysdeps/powerpc/powerpc64/multiarch/memrchr-power7.S: Likewise.
5323         * sysdeps/powerpc/powerpc64/multiarch/memrchr-power8.S: Likewise.
5324         * sysdeps/powerpc/powerpc64/multiarch/memset-power4.S: Likewise.
5325         * sysdeps/powerpc/powerpc64/multiarch/memset-power6.S: Likewise.
5326         * sysdeps/powerpc/powerpc64/multiarch/memset-power7.S: Likewise.
5327         * sysdeps/powerpc/powerpc64/multiarch/memset-power8.S: Likewise.
5328         * sysdeps/powerpc/powerpc64/multiarch/rawmemchr-power7.S: Likewise.
5329         * sysdeps/powerpc/powerpc64/multiarch/stpcpy-power8.S: Likewise.
5330         * sysdeps/powerpc/powerpc64/multiarch/stpncpy-power7.S: Likewise.
5331         * sysdeps/powerpc/powerpc64/multiarch/stpncpy-power8.S: Likewise.
5332         * sysdeps/powerpc/powerpc64/multiarch/strcasecmp-power7.S: Likewise.
5333         * sysdeps/powerpc/powerpc64/multiarch/strcasecmp-power8.S: Likewise.
5334         * sysdeps/powerpc/powerpc64/multiarch/strcasecmp_l-power7.S: Likewise.
5335         * sysdeps/powerpc/powerpc64/multiarch/strcasestr-power8.S: Likewise.
5336         * sysdeps/powerpc/powerpc64/multiarch/strchr-power7.S: Likewise.
5337         * sysdeps/powerpc/powerpc64/multiarch/strchr-power8.S: Likewise.
5338         * sysdeps/powerpc/powerpc64/multiarch/strchr-ppc64.S: Likewise.
5339         * sysdeps/powerpc/powerpc64/multiarch/strchrnul-power7.S: Likewise.
5340         * sysdeps/powerpc/powerpc64/multiarch/strchrnul-power8.S: Likewise.
5341         * sysdeps/powerpc/powerpc64/multiarch/strcmp-power7.S: Likewise.
5342         * sysdeps/powerpc/powerpc64/multiarch/strcmp-power8.S: Likewise.
5343         * sysdeps/powerpc/powerpc64/multiarch/strcmp-power9.S: Likewise.
5344         * sysdeps/powerpc/powerpc64/multiarch/strcmp-ppc64.S: Likewise.
5345         * sysdeps/powerpc/powerpc64/multiarch/strcpy-power8.S: Likewise.
5346         * sysdeps/powerpc/powerpc64/multiarch/strcspn-power8.S: Likewise.
5347         * sysdeps/powerpc/powerpc64/multiarch/strlen-power7.S: Likewise.
5348         * sysdeps/powerpc/powerpc64/multiarch/strlen-power8.S: Likewise.
5349         * sysdeps/powerpc/powerpc64/multiarch/strlen-ppc64.S: Likewise.
5350         * sysdeps/powerpc/powerpc64/multiarch/strncase-power8.S: Likewise.
5351         * sysdeps/powerpc/powerpc64/multiarch/strncmp-power4.S: Likewise.
5352         * sysdeps/powerpc/powerpc64/multiarch/strncmp-power7.S: Likewise.
5353         * sysdeps/powerpc/powerpc64/multiarch/strncmp-power8.S: Likewise.
5354         * sysdeps/powerpc/powerpc64/multiarch/strncmp-power9.S: Likewise.
5355         * sysdeps/powerpc/powerpc64/multiarch/strncmp-ppc64.S: Likewise.
5356         * sysdeps/powerpc/powerpc64/multiarch/strncpy-power7.S: Likewise.
5357         * sysdeps/powerpc/powerpc64/multiarch/strncpy-power8.S: Likewise.
5358         * sysdeps/powerpc/powerpc64/multiarch/strnlen-power7.S: Likewise.
5359         * sysdeps/powerpc/powerpc64/multiarch/strnlen-power8.S: Likewise.
5360         * sysdeps/powerpc/powerpc64/multiarch/strrchr-power7.S: Likewise.
5361         * sysdeps/powerpc/powerpc64/multiarch/strrchr-power8.S: Likewise.
5362         * sysdeps/powerpc/powerpc64/multiarch/strspn-power8.S: Likewise.
5363         * sysdeps/powerpc/powerpc64/multiarch/strstr-power7.S: Likewise.
5365         * sysdeps/powerpc/powerpc64/fpu/multiarch/s_floorf-ppc64.S: Don't
5366         include sysdep.h and math_ldbl_opt.h.
5368         * sysdeps/powerpc/powerpc64/fpu/multiarch/s_ceil-power5+.S: Don't
5369         include sysdep.h and math_ldbl_opt.h.  Include shlib-compat.h.
5370         * sysdeps/powerpc/powerpc64/fpu/multiarch/s_ceil-ppc64.S: Likewise.
5371         * sysdeps/powerpc/powerpc64/fpu/multiarch/s_copysign-power6.S: Likewise.
5372         * sysdeps/powerpc/powerpc64/fpu/multiarch/s_copysign-ppc64.S: Likewise.
5373         * sysdeps/powerpc/powerpc64/fpu/multiarch/s_floorf-power5+.S: Likewise.
5374         * sysdeps/powerpc/powerpc64/fpu/multiarch/s_isinf-power7.S: Likewise.
5375         * sysdeps/powerpc/powerpc64/fpu/multiarch/s_isinf-power8.S: Likewise.
5376         * sysdeps/powerpc/powerpc64/fpu/multiarch/s_isnan-power5.S: Likewise.
5377         * sysdeps/powerpc/powerpc64/fpu/multiarch/s_isnan-power6.S: Likewise.
5378         * sysdeps/powerpc/powerpc64/fpu/multiarch/s_isnan-power6x.S: Likewise.
5379         * sysdeps/powerpc/powerpc64/fpu/multiarch/s_isnan-power7.S: Likewise.
5380         * sysdeps/powerpc/powerpc64/fpu/multiarch/s_isnan-power8.S: Likewise.
5381         * sysdeps/powerpc/powerpc64/fpu/multiarch/s_isnan-ppc64.S: Likewise.
5382         * sysdeps/powerpc/powerpc64/fpu/multiarch/s_llrint-power6x.S: Likewise.
5383         * sysdeps/powerpc/powerpc64/fpu/multiarch/s_llrint-power8.S: Likewise.
5384         * sysdeps/powerpc/powerpc64/fpu/multiarch/s_llrint-ppc64.S: Likewise.
5385         * sysdeps/powerpc/powerpc64/fpu/multiarch/s_llround-power5+.S: Likewise.
5386         * sysdeps/powerpc/powerpc64/fpu/multiarch/s_llround-power6x.S: Likewise.
5387         * sysdeps/powerpc/powerpc64/fpu/multiarch/s_llround-power8.S: Likewise.
5388         * sysdeps/powerpc/powerpc64/fpu/multiarch/s_llround-ppc64.S: Likewise.
5389         * sysdeps/powerpc/powerpc64/fpu/multiarch/s_llroundf-ppc64.S: Likewise.
5390         * sysdeps/powerpc/powerpc64/fpu/multiarch/s_round-power5+.S: Likewise.
5391         * sysdeps/powerpc/powerpc64/fpu/multiarch/s_round-ppc64.S: Likewise.
5392         * sysdeps/powerpc/powerpc64/fpu/multiarch/s_trunc-power5+.S: Likewise.
5393         * sysdeps/powerpc/powerpc64/fpu/multiarch/s_trunc-ppc64.S: Likewise.
5395 2017-10-31  Alan Modra  <amodra@gmail.com>
5397         * sysdeps/powerpc/powerpc64/multiarch/strncase_l-power7.c: Include
5398         string/strncase_l.c, not string/strncase.c.
5399         (USE_IN_EXTENDED_LOCALE_MODEL): Don't define.
5400         (libc_hidden_def): Redefine.
5402 2017-10-31  Alan Modra  <amodra@gmail.com>
5404         * sysdeps/powerpc/powerpc64/multiarch/strcasecmp_l-power7.S:
5405         (__STRCMP, STRCMP, __strcasecmp_l): Define.
5406         (__strcasecmp): Don't define.
5408 2017-10-31  Alan Modra  <amodra@gmail.com>
5410         * sysdeps/powerpc/powerpc64/multiarch/strcmp-power8.S: Wrap in
5411         IS_IN (libc).
5412         * sysdeps/powerpc/powerpc64/multiarch/strcmp-power9.S: Likewise.
5413         * sysdeps/powerpc/powerpc64/multiarch/strncmp-power8.S: Likewise.
5414         * sysdeps/powerpc/powerpc64/multiarch/strncmp-power9.S: Likewise.
5416 2017-10-31  Alan Modra  <amodra@gmail.com>
5418         * sysdeps/powerpc/powerpc64/multiarch/stpncpy-power8.S: Don't define
5419         USE_AS_STPNCPY.
5421 2017-10-31  Alan Modra  <amodra@gmail.com>
5423         * sysdeps/powerpc/powerpc64/fpu/multiarch/s_isnan-ppc64.S (hidden_def):
5424         Redefine only when SHARED.
5426 2017-10-30  Joseph Myers  <joseph@codesourcery.com>
5428         * math/math.h [__HAVE_DISTINCT_FLOAT16 || (__HAVE_FLOAT16 && !_LIBC)]:
5429         Include <bits/math-finite.h> with appropriate macros defined and
5430         undefined.
5431         [__HAVE_DISTINCT_FLOAT32 || (__HAVE_FLOAT32 && !_LIBC)]: Likewise.
5432         [__HAVE_DISTINCT_FLOAT64 || (__HAVE_FLOAT64 && !_LIBC)]: Likewise.
5433         [__HAVE_DISTINCT_FLOAT32X || (__HAVE_FLOAT32X && !_LIBC)]: Likewise.
5434         [__HAVE_DISTINCT_FLOAT64X || (__HAVE_FLOAT64X && !_LIBC)]: Likewise.
5435         [__HAVE_DISTINCT_FLOAT128X || (__HAVE_FLOAT128X && !_LIBC)]: Likewise.
5437         * math/math.h [!_Mfloat_] (_Mfloat_): Do not define.
5438         [!_Mlong_double_] (_Mlong_double_): Likewise.
5439         [!_Mfloat16_] (_Mfloat16_): Likewise.
5440         [!_Mfloat32_] (_Mfloat32_): Likewise.
5441         [!_Mfloat64_] (_Mfloat64_): Likewise.
5442         [!_Mfloat128_] (_Mfloat128_): Likewise.
5443         [!_Mfloat32x_] (_Mfloat32x_): Likewise.
5444         [!_Mfloat64x_] (_Mfloat64x_): Likewise.
5445         [!_Mfloat128x_] (_Mfloat128x_): Likewise.
5446         (_Mdouble_): Define without indirection through those macros.
5447         * math/complex.h [!_Mfloat_] (_Mfloat_): Do not define.
5448         [!_Mfloat128_] (_Mfloat128_): Likewise.
5449         [_Mlong_double_] (_Mlong_double_): Likewise.
5450         (_Mdouble_): Define without indirection through those macros.
5451         * math/Makefile [$(long-double-fcts) != yes] (math-CPPFLAGS): Do
5452         not add -D_Mlong_double_=double.
5453         * include/math.h [_ISOMAC] (_Mlong_double_): Do not undefine.
5454         * math/test-signgam-finite-c99.c (_Mlong_double_): Likewise.
5456 2017-10-30  H.J. Lu  <hongjiu.lu@intel.com>
5458         * sysdeps/x86/libc-start.c: Add /* !SHARED */.
5460 2017-10-30  H.J. Lu  <hongjiu.lu@intel.com>
5462         * sysdeps/x86/libc-start.c: Reformat.
5464 2017-10-30  H.J. Lu  <hongjiu.lu@intel.com>
5466         [BZ #22353]
5467         * sysdeps/i386/i586/strcpy.S (STRCPY): Use conditional branches.
5468         (1): Renamed to ...
5469         (L(Src0)): This.
5470         (L(Src1)): New.
5471         (L(Src2)): Likewise.
5472         (L(1)): Renamed to ...
5473         (L(Src3)): This.
5475 2017-10-30  Joseph Myers  <joseph@codesourcery.com>
5477         * math/math.h [__HAVE_FLOAT16 && __USE_GNU] (M_Ef16): New macro.
5478         [__HAVE_FLOAT16 && __USE_GNU] (M_LOG2Ef16): Likewise.
5479         [__HAVE_FLOAT16 && __USE_GNU] (M_LOG10Ef16): Likewise.
5480         [__HAVE_FLOAT16 && __USE_GNU] (M_LN2f16): Likewise.
5481         [__HAVE_FLOAT16 && __USE_GNU] (M_LN10f16): Likewise.
5482         [__HAVE_FLOAT16 && __USE_GNU] (M_PIf16): Likewise.
5483         [__HAVE_FLOAT16 && __USE_GNU] (M_PI_2f16): Likewise.
5484         [__HAVE_FLOAT16 && __USE_GNU] (M_PI_4f16): Likewise.
5485         [__HAVE_FLOAT16 && __USE_GNU] (M_1_PIf16): Likewise.
5486         [__HAVE_FLOAT16 && __USE_GNU] (M_2_PIf16): Likewise.
5487         [__HAVE_FLOAT16 && __USE_GNU] (M_2_SQRTPIf16): Likewise.
5488         [__HAVE_FLOAT16 && __USE_GNU] (M_SQRT2f16): Likewise.
5489         [__HAVE_FLOAT16 && __USE_GNU] (M_SQRT1_2f16): Likewise.
5490         [__HAVE_FLOAT32 && __USE_GNU] (M_Ef32): Likewise.
5491         [__HAVE_FLOAT32 && __USE_GNU] (M_LOG2Ef32): Likewise.
5492         [__HAVE_FLOAT32 && __USE_GNU] (M_LOG10Ef32): Likewise.
5493         [__HAVE_FLOAT32 && __USE_GNU] (M_LN2f32): Likewise.
5494         [__HAVE_FLOAT32 && __USE_GNU] (M_LN10f32): Likewise.
5495         [__HAVE_FLOAT32 && __USE_GNU] (M_PIf32): Likewise.
5496         [__HAVE_FLOAT32 && __USE_GNU] (M_PI_2f32): Likewise.
5497         [__HAVE_FLOAT32 && __USE_GNU] (M_PI_4f32): Likewise.
5498         [__HAVE_FLOAT32 && __USE_GNU] (M_1_PIf32): Likewise.
5499         [__HAVE_FLOAT32 && __USE_GNU] (M_2_PIf32): Likewise.
5500         [__HAVE_FLOAT32 && __USE_GNU] (M_2_SQRTPIf32): Likewise.
5501         [__HAVE_FLOAT32 && __USE_GNU] (M_SQRT2f32): Likewise.
5502         [__HAVE_FLOAT32 && __USE_GNU] (M_SQRT1_2f32): Likewise.
5503         [__HAVE_FLOAT64 && __USE_GNU] (M_Ef64): Likewise.
5504         [__HAVE_FLOAT64 && __USE_GNU] (M_LOG2Ef64): Likewise.
5505         [__HAVE_FLOAT64 && __USE_GNU] (M_LOG10Ef64): Likewise.
5506         [__HAVE_FLOAT64 && __USE_GNU] (M_LN2f64): Likewise.
5507         [__HAVE_FLOAT64 && __USE_GNU] (M_LN10f64): Likewise.
5508         [__HAVE_FLOAT64 && __USE_GNU] (M_PIf64): Likewise.
5509         [__HAVE_FLOAT64 && __USE_GNU] (M_PI_2f64): Likewise.
5510         [__HAVE_FLOAT64 && __USE_GNU] (M_PI_4f64): Likewise.
5511         [__HAVE_FLOAT64 && __USE_GNU] (M_1_PIf64): Likewise.
5512         [__HAVE_FLOAT64 && __USE_GNU] (M_2_PIf64): Likewise.
5513         [__HAVE_FLOAT64 && __USE_GNU] (M_2_SQRTPIf64): Likewise.
5514         [__HAVE_FLOAT64 && __USE_GNU] (M_SQRT2f64): Likewise.
5515         [__HAVE_FLOAT64 && __USE_GNU] (M_SQRT1_2f64): Likewise.
5516         [__HAVE_FLOAT32X && __USE_GNU] (M_Ef32x): Likewise.
5517         [__HAVE_FLOAT32X && __USE_GNU] (M_LOG2Ef32x): Likewise.
5518         [__HAVE_FLOAT32X && __USE_GNU] (M_LOG10Ef32x): Likewise.
5519         [__HAVE_FLOAT32X && __USE_GNU] (M_LN2f32x): Likewise.
5520         [__HAVE_FLOAT32X && __USE_GNU] (M_LN10f32x): Likewise.
5521         [__HAVE_FLOAT32X && __USE_GNU] (M_PIf32x): Likewise.
5522         [__HAVE_FLOAT32X && __USE_GNU] (M_PI_2f32x): Likewise.
5523         [__HAVE_FLOAT32X && __USE_GNU] (M_PI_4f32x): Likewise.
5524         [__HAVE_FLOAT32X && __USE_GNU] (M_1_PIf32x): Likewise.
5525         [__HAVE_FLOAT32X && __USE_GNU] (M_2_PIf32x): Likewise.
5526         [__HAVE_FLOAT32X && __USE_GNU] (M_2_SQRTPIf32x): Likewise.
5527         [__HAVE_FLOAT32X && __USE_GNU] (M_SQRT2f32x): Likewise.
5528         [__HAVE_FLOAT32X && __USE_GNU] (M_SQRT1_2f32x): Likewise.
5529         [__HAVE_FLOAT64X && __USE_GNU] (M_Ef64x): Likewise.
5530         [__HAVE_FLOAT64X && __USE_GNU] (M_LOG2Ef64x): Likewise.
5531         [__HAVE_FLOAT64X && __USE_GNU] (M_LOG10Ef64x): Likewise.
5532         [__HAVE_FLOAT64X && __USE_GNU] (M_LN2f64x): Likewise.
5533         [__HAVE_FLOAT64X && __USE_GNU] (M_LN10f64x): Likewise.
5534         [__HAVE_FLOAT64X && __USE_GNU] (M_PIf64x): Likewise.
5535         [__HAVE_FLOAT64X && __USE_GNU] (M_PI_2f64x): Likewise.
5536         [__HAVE_FLOAT64X && __USE_GNU] (M_PI_4f64x): Likewise.
5537         [__HAVE_FLOAT64X && __USE_GNU] (M_1_PIf64x): Likewise.
5538         [__HAVE_FLOAT64X && __USE_GNU] (M_2_PIf64x): Likewise.
5539         [__HAVE_FLOAT64X && __USE_GNU] (M_2_SQRTPIf64x): Likewise.
5540         [__HAVE_FLOAT64X && __USE_GNU] (M_SQRT2f64x): Likewise.
5541         [__HAVE_FLOAT64X && __USE_GNU] (M_SQRT1_2f64x): Likewise.
5542         [__HAVE_FLOAT128X && __USE_GNU]: Use #error.
5544 2017-10-30  Florian Weimer  <fweimer@redhat.com>
5546         * elf/ldconfig.c (search_dir): Assume that _DIRENT_HAVE_D_TYPE is
5547         always defined.
5548         * io/tst-mkdirat.c (do_test): Likewise.
5549         * io/tst-mkfifoat.c (do_test): Likewise.
5550         * io/tst-mknodat.c (do_test): Likewise.
5551         * locale/programs/charmap-dir.c (charmap_readdir): Likewise.
5552         * locale/programs/locale.c (select_dirs): Likewise.
5553         * locale/programs/locarchive.c (add_locales_to_archive): Likewise.
5554         * posix/bug-glob2.c (my_readdir): Likewise.
5555         * posix/tst-dir.c (main): Likewise.
5556         * posix/tst-glob_lstat_compat.c (my_readdir): Likewise.
5557         * posix/tst-gnuglob-skeleton.c (my_readdir): Likewise.
5559 2017-10-30  Florian Weimer  <fweimer@redhat.com>
5561         * string/strings.h (ffsl, ffsll): Declare under __USE_MISC, not
5562         just __USE_GNU.
5564 2017-10-30  Florian Weimer  <fweimer@redhat.com>
5566         * posix/tst-gnuglob-skeleton.c: Renamed from tst-gnuglob.c.
5567         Convert to support/test-driver.c.
5568         (GLOB_FUNC, GLOB_TYPE, GLOBFREE_FUNC, DIRENT_STRUCT, STAT_STRUCT):
5569         New macro parameters.
5570         (PRINTF): Remove macro.  Use test_verbose conditionals instead.
5571         * posix/tst-gnuglob.c: New file.
5572         * posix/tst-gnuglob64.c: Likewise.
5573         * posix/Makefile (tests): Add tst-gnuglob64.
5575 2017-10-30  Michal Ostrowski <ostrowski.michal@gmail.com>
5577         [BZ #19485]
5578         * localedata/locales/csb_PL (LC_TIME): Fix “abmon” for March
5579         and use a better translation for March in “mon”.
5580         * localedata/locales/csb_PL: Use more ASCII to improve the
5581         readability of the source.
5583 2017-10-30  Mike FABIAN  <mfabian@redhat.com>
5585         [BZ #13953]
5586         * localedata/locales/km_KH: Use ASCII as much
5587         as possible for better readability of the source and
5588         remove useless comments.
5589         * localedata/locales/km_KH (LC_TIME): Remove era stuff, it
5590         was commented out and apparently wrong anyway because it was
5591         using Lao characters. If Buddhist era should be used
5592         for km_KH, a native speaker should write the correct formaat
5593         for Khmer.
5594         * localedata/locales/km_KH (LC_TIME): Add first_weekday 1
5595         (According to CLDR, the first weekday for Cambodia is Sunday).
5596         * localedata/locales/km_KH (LC_NAME): Remove name_mr and name_mrs
5597         (These were using Lao characters which must be wrong. If we get
5598         the correct data from a native speaker, we could add it back, until
5599         then it is better not to have name_mr and name_mrs at all than
5600         having it wrong).
5602 2017-10-27  Rafal Luzynski  <digitalfreak@lingonborough.com>
5604         * locale/loadlocale.c: Correct size of
5605         _nl_value_type_LC_<category> arrays.
5607 2017-10-27  Joseph Myers  <joseph@codesourcery.com>
5609         * math/math.h [__HAVE_DISTINCT_FLOAT16 || (__HAVE_FLOAT16 && !_LIBC)]:
5610         Include <bits/mathcalls-helper-functions.h> and <bits/mathcalls.h>
5611         with appropriate macros defined and undefined.
5612         [__HAVE_DISTINCT_FLOAT32 || (__HAVE_FLOAT32 && !_LIBC)]: Likewise.
5613         [__HAVE_DISTINCT_FLOAT64 || (__HAVE_FLOAT64 && !_LIBC)]: Likewise.
5614         [__HAVE_DISTINCT_FLOAT32X || (__HAVE_FLOAT32X && !_LIBC)]: Likewise.
5615         [__HAVE_DISTINCT_FLOAT64X || (__HAVE_FLOAT64X && !_LIBC)]: Likewise.
5616         [__HAVE_DISTINCT_FLOAT128X || (__HAVE_FLOAT128X && !_LIBC)]: Likewise.
5618 2017-10-27  H.J. Lu  <hongjiu.lu@intel.com>
5620         * sysdeps/i386/fpu/libm-test-ulps: Regenerated for GCC 7 with
5621         "-O2 -march=i586".
5623 2017-10-27  Mike FABIAN  <mfabian@redhat.com>
5625         * localedata/locales/tt_RU (LC_MESSAGES): Start yesstr and nostr
5626         with lowercase letters to make it agree with CLDR.
5628 2017-10-27  Mike FABIAN  <mfabian@redhat.com>
5630         [BZ #15260]
5631         * localedata/locales/doi_IN (LC_MESSAGES): Match only for the
5632         first letters of yesstr and nostr in yesexpr and noexpr,
5633         not for the full words.
5634         * localedata/locales/hne_IN (LC_MESSAGES): Likewise.
5635         * localedata/locales/kok_IN (LC_MESSAGES): Likewise.
5636         * localedata/locales/mr_IN (LC_MESSAGES): Likewise.
5637         * localedata/locales/sat_IN (LC_MESSAGES): Likewise.
5638         * localedata/locales/km_KH (LC_MESSAGES): Match also for the
5639         first letters of yesstr and nostr in yesexpr and noexpr,
5640         until now only English was matched in yesexpr and noexpr.
5641         * localedata/locales/tl_PH (LC_MESSAGES): Use “copy "fil_PH"”
5642         instead of “copy "en_US"”. CLDR has yesstr and nostr data for
5643         fil but not for tl. As tl and fil are very similar, using fil
5644         is probably better than using English.
5646 2017-10-27  Thierry Vignaud <thierry.vignaud@gmail.com>
5648         [BZ #21706]
5649         * localedata/locales/br_FR (LC_MESSAGES): Use all lowercase
5650         in yesstr and nostr.
5652 2017-10-26  Joseph Myers  <joseph@codesourcery.com>
5654         * math/math.h [__HAVE_FLOAT16 && __GLIBC_USE
5655         (IEC_60559_TYPES_EXT)] (SNANF16): New macro.
5656         [__HAVE_FLOAT32 && __GLIBC_USE (IEC_60559_TYPES_EXT)] (SNANF32):
5657         Likewise.
5658         [__HAVE_FLOAT64 && __GLIBC_USE (IEC_60559_TYPES_EXT)] (SNANF64):
5659         Likewise.
5660         [__HAVE_FLOAT32X && __GLIBC_USE (IEC_60559_TYPES_EXT)] (SNANF32X):
5661         Likewise.
5662         [__HAVE_FLOAT64X && __GLIBC_USE (IEC_60559_TYPES_EXT)] (SNANF64X):
5663         Likewise.
5664         [__HAVE_FLOAT128X && __GLIBC_USE (IEC_60559_TYPES_EXT)]
5665         (SNANF128X): Likewise.
5667         * math/math.h [__HAVE_FLOAT16 && __GLIBC_USE
5668         (IEC_60559_TYPES_EXT)] (HUGE_VAL_F16): New macro.
5669         [__HAVE_FLOAT32 && __GLIBC_USE (IEC_60559_TYPES_EXT)]
5670         (HUGE_VAL_F32): Likewise.
5671         [__HAVE_FLOAT64 && __GLIBC_USE (IEC_60559_TYPES_EXT)]
5672         (HUGE_VAL_F64): Likewise.
5673         [__HAVE_FLOAT32X && __GLIBC_USE (IEC_60559_TYPES_EXT)]
5674         (HUGE_VAL_F32X): Likewise.
5675         [__HAVE_FLOAT64X && __GLIBC_USE (IEC_60559_TYPES_EXT)]
5676         (HUGE_VAL_F64X): Likewise.
5677         [__HAVE_FLOAT128X && __GLIBC_USE (IEC_60559_TYPES_EXT)]
5678         (HUGE_VAL_F128X): Likewise.
5680 2017-10-26  Thierry Vignaud <thierry.vignaud@gmail.com>
5682         * localedata/locales/br_FR (LC_IDENTIFICATON): Add
5683         Thierry Vignaud <thierry.vignaud@gmail.com> as the contact
5684         for the br_FR locale.
5686 2017-10-26  Thierry Vignaud <thierry.vignaud@gmail.com>
5688         [BZ #21706]
5689         * localedata/locales/br_FR (LC_MESSAGES): Fix nostr.
5691 2017-10-25  Carlos O'Donell  <carlos@redhat.com>
5693         * locale/programs/record-status.h: Define globals, and function
5694         prototypes. Move function bodies...
5695         * locale/programs/record-status.c: ... to here. New file.
5696         * iconv/Makefile (iconv_prog-modules): Add record-status.
5697         * locale/Makefile (lib-modules): Likewise.
5698         * iconv/iconv_prog.c: Remove verbose.
5699         * iconv/iconv_prog.h: Include record-status.h (defines verbose).
5700         * locale/programs/charmap.c (charmap_read): If warn_ascii is true then
5701         record a warning about ASCII compatibility.
5702         * locale/programs/ld-monetary.c (monetary_finish): If
5703         warn_int_curr_symbol is true then record a warning about the symbol
5704         not being in our ISO 4217 list.
5705         * locale/programs/locale.c: Include record-status.h. Remove verbose.
5706         * locale/programs/localedef.c: Include ctype.h. Remove delcaration of
5707         verbose, recorded_warning_count, recorded_error_count, and be_quiet.
5708         (OPT_NO_WARN): Define.
5709         (OPT_WARN): Define.
5710         (options): Add entry for --no-warnings, and --warnings.
5711         (set_warnings): New function to enable/disable warnings.
5712         (parse_opt): Call set_warnings for OPT_NO_WARN and OPT_WARN.
5713         * locale/programs/localedef.h: Remove warn_int_curr_symbol.
5714         * localedata/gen-locale.sh: Default flags to `--quiet -c'.
5715         Add `--no-warnings=ascii' to locales using SHIFT_JIS or SHIFT_JIXX0213.
5716         Pass flags to generate_locale.
5717         (generate_locale): Accept new flag argument and pass it to localedef
5718         invocation.
5719         * localedata/Makefile (INSTALL-SUPPORTED-LOCALES): Use
5720         --no-warnings=ascii for SHIFT_JIS and SHIFT_JISX0213 charmaps.
5722         * localedata/Makefile (test-input-data): Use full file name.
5723         * localedata/da_DK.in: Rename to...
5724         * localedata/da_DK.ISO-8859-1.in: ...this.
5725         * localedata/de_DE.in: Rename to...
5726         * localedata/de_DE.ISO-8859-1.in: ...this.
5727         * localedata/en_US.in: Rename to...
5728         * localedata/en_US.ISO-8859-1.in: ...this.
5729         * localedata/fr_FR.in: Rename to...
5730         * localedata/fr_FR.UTF-8.in: ... this.
5731         * localedata/hr_HR.in: Rename to...
5732         * localedata/hr_HR.ISO-8859-2.in: ...this.
5733         * localedata/hu_HU.in: Rename to...
5734         * localedata/hu_HU.UTF-8.in: ...this.
5735         * localedata/si_LK.in: Rename to...
5736         * localedata/si_LK.UTF-8.in: ...this.
5737         * localedata/sv_SE.in: Rename to...
5738         * localedata/sv_SE.ISO-8859-1.in: ...this.
5739         * localedata/tr_TR.in: Rename to...
5740         * localedata/tr_TR.UTF-8.in: ...this.
5741         * localedata/uk_UA.in: Rename to...
5742         * localedata/uk_UA.UTF-8.in: ...this.
5743         * localedata/sort-test.sh: Test file is locale name with the
5744         suffix.
5746         * localedata/unicode-gen/Makefile (check_i18n): Rename to
5747         check_i18n_ctype. Depend on i18n_ctype-report. Check i18n_ctype-report
5748         file.
5749         * localedata/locales/i18n_ctype: Regenerate.
5750         * localedata/locales/tr_TR: Likewise.
5751         * localedata/locales/translit_circle: Likewise.
5752         * localedata/locales/translit_cjk_compat: Likewise.
5753         * localedata/locales/translit_combining: Likewise.
5754         * localedata/locales/translit_compat: Likewise.
5755         * localedata/locales/translit_font: Likewise.
5756         * localedata/locales/translit_fraction: Likewise.
5758 2017-10-25  Rajalakshmi Srinivasaraghavan  <raji@linux.vnet.ibm.com>
5760         * sysdeps/powerpc/powerpc64/power7/memcpy.S: Replace
5761         lxvd2x/stxvd2x with lvx/stvx.
5762         * sysdeps/powerpc/powerpc64/power7/memmove.S: Likewise.
5764 2017-10-25  H.J. Lu  <hongjiu.lu@intel.com>
5766         * include/alloc_buffer.h: Replace "if if " with "if " in
5767         comments.
5768         * sysdeps/mips/memcpy.S: Likkewise.
5769         * sysdeps/mips/memset.S: Likewise.
5770         * sysdeps/x86_64/fpu/multiarch/svml_s_sincosf16_core_avx512.S:
5771         Likewise.
5772         * sysdeps/x86_64/fpu/multiarch/svml_s_sincosf4_core_sse4.S:
5773         Likewise.
5774         * sysdeps/x86_64/fpu/multiarch/svml_s_sincosf8_core_avx2.S:
5775         Likewise.
5777 2017-10-25  Mike FABIAN  <mfabian@redhat.com>
5779         [BZ #15261]
5780         * localedata/locales/cmn_TW (LC_MESSAGES): Add fullwidth yYnN to
5781         yesexpr and noexpr.
5782         * localedata/locales/hak_TW (LC_MESSAGES): Likewise.
5783         * localedata/locales/ko_KR (LC_MESSAGES): Likewise.
5784         * localedata/locales/lzh_TW (LC_MESSAGES): Likewise.
5785         * localedata/locales/nan_TW (LC_MESSAGES): Likewise.
5786         * localedata/locales/zh_CN (LC_MESSAGES): Likewise.
5787         * localedata/locales/zh_HK (LC_MESSAGES): Likewise.
5788         * localedata/locales/zh_TW (LC_MESSAGES): Likewise.
5790 2017-10-25  Mike FABIAN  <mfabian@redhat.com>
5792         * localedata/locales/am_ET (LC_MESSAGES): Sync with CLDR.
5793         * localedata/locales/az_AZ (LC_MESSAGES): Likewise.
5794         * localedata/locales/el_GR (LC_MESSAGES): Likewise.
5795         * localedata/locales/ha_NG (LC_MESSAGES): Likewise.
5796         * localedata/locales/ln_CD (LC_MESSAGES): Likewise.
5797         * localedata/locales/mfe_MU (LC_MESSAGES): Likewise.
5798         * localedata/locales/ml_IN (LC_MESSAGES): Likewise.
5799         * localedata/locales/mt_MT (LC_MESSAGES): Likewise.
5800         * localedata/locales/os_RU (LC_MESSAGES): Likewise.
5801         * localedata/locales/tg_TJ (LC_MESSAGES): Likewise.
5802         * localedata/locales/tt_RU (LC_MESSAGES): Likewise.
5803         * localedata/locales/wo_SN (LC_MESSAGES): Likewise.
5805 2017-10-25  Mike FABIAN  <mfabian@redhat.com>
5807         * localedata/locales/aa_ET (LC_MESSAGES): Use ASCII as much
5808         as possible for better readability of the source.
5809         * localedata/locales/af_ZA (LC_MESSAGES): Likewise.
5810         * localedata/locales/ak_GH (LC_MESSAGES): Likewise.
5811         * localedata/locales/am_ET (LC_MESSAGES): Likewise.
5812         * localedata/locales/anp_IN (LC_MESSAGES): Likewise.
5813         * localedata/locales/ar_EG (LC_MESSAGES): Likewise.
5814         * localedata/locales/as_IN (LC_MESSAGES): Likewise.
5815         * localedata/locales/ast_ES (LC_MESSAGES): Likewise.
5816         * localedata/locales/ayc_PE (LC_MESSAGES): Likewise.
5817         * localedata/locales/az_AZ (LC_MESSAGES): Likewise.
5818         * localedata/locales/az_IR (LC_MESSAGES): Likewise.
5819         * localedata/locales/be_BY (LC_MESSAGES): Likewise.
5820         * localedata/locales/be_BY@latin (LC_MESSAGES): Likewise.
5821         * localedata/locales/bem_ZM (LC_MESSAGES): Likewise.
5822         * localedata/locales/ber_MA (LC_MESSAGES): Likewise.
5823         * localedata/locales/bg_BG (LC_MESSAGES): Likewise.
5824         * localedata/locales/bhb_IN (LC_MESSAGES): Likewise.
5825         * localedata/locales/bi_VU (LC_MESSAGES): Likewise.
5826         * localedata/locales/bo_CN (LC_MESSAGES): Likewise.
5827         * localedata/locales/br_FR (LC_MESSAGES): Likewise.
5828         * localedata/locales/bs_BA (LC_MESSAGES): Likewise.
5829         * localedata/locales/ca_ES (LC_MESSAGES): Likewise.
5830         * localedata/locales/ce_RU (LC_MESSAGES): Likewise.
5831         * localedata/locales/crh_UA (LC_MESSAGES): Likewise.
5832         * localedata/locales/cs_CZ (LC_MESSAGES): Likewise.
5833         * localedata/locales/csb_PL (LC_MESSAGES): Likewise.
5834         * localedata/locales/cv_RU (LC_MESSAGES): Likewise.
5835         * localedata/locales/cy_GB (LC_MESSAGES): Likewise.
5836         * localedata/locales/da_DK (LC_MESSAGES): Likewise.
5837         * localedata/locales/de_DE (LC_MESSAGES): Likewise.
5838         * localedata/locales/dv_MV (LC_MESSAGES): Likewise.
5839         * localedata/locales/dz_BT (LC_MESSAGES): Likewise.
5840         * localedata/locales/el_GR (LC_MESSAGES): Likewise.
5841         * localedata/locales/en_CA (LC_MESSAGES): Likewise.
5842         * localedata/locales/en_US (LC_MESSAGES): Likewise.
5843         * localedata/locales/es_ES (LC_MESSAGES): Likewise.
5844         * localedata/locales/et_EE (LC_MESSAGES): Likewise.
5845         * localedata/locales/eu_ES (LC_MESSAGES): Likewise.
5846         * localedata/locales/fa_IR (LC_MESSAGES): Likewise.
5847         * localedata/locales/ff_SN (LC_MESSAGES): Likewise.
5848         * localedata/locales/fi_FI (LC_MESSAGES): Likewise.
5849         * localedata/locales/fil_PH (LC_MESSAGES): Likewise.
5850         * localedata/locales/fo_FO (LC_MESSAGES): Likewise.
5851         * localedata/locales/fr_BE (LC_MESSAGES): Likewise.
5852         * localedata/locales/fr_CH (LC_MESSAGES): Likewise.
5853         * localedata/locales/fr_FR (LC_MESSAGES): Likewise.
5854         * localedata/locales/fr_LU (LC_MESSAGES): Likewise.
5855         * localedata/locales/fur_IT (LC_MESSAGES): Likewise.
5856         * localedata/locales/fy_DE (LC_MESSAGES): Likewise.
5857         * localedata/locales/ga_IE (LC_MESSAGES): Likewise.
5858         * localedata/locales/gd_GB (LC_MESSAGES): Likewise.
5859         * localedata/locales/gl_ES (LC_MESSAGES): Likewise.
5860         * localedata/locales/gu_IN (LC_MESSAGES): Likewise.
5861         * localedata/locales/gv_GB (LC_MESSAGES): Likewise.
5862         * localedata/locales/ha_NG (LC_MESSAGES): Likewise.
5863         * localedata/locales/hak_TW (LC_MESSAGES): Likewise.
5864         * localedata/locales/he_IL (LC_MESSAGES): Likewise.
5865         * localedata/locales/hif_FJ (LC_MESSAGES): Likewise.
5866         * localedata/locales/hne_IN (LC_MESSAGES): Likewise.
5867         * localedata/locales/hr_HR (LC_MESSAGES): Likewise.
5868         * localedata/locales/hsb_DE (LC_MESSAGES): Likewise.
5869         * localedata/locales/ht_HT (LC_MESSAGES): Likewise.
5870         * localedata/locales/hu_HU (LC_MESSAGES): Likewise.
5871         * localedata/locales/hy_AM (LC_MESSAGES): Likewise.
5872         * localedata/locales/ia_FR (LC_MESSAGES): Likewise.
5873         * localedata/locales/id_ID (LC_MESSAGES): Likewise.
5874         * localedata/locales/ig_NG (LC_MESSAGES): Likewise.
5875         * localedata/locales/ik_CA (LC_MESSAGES): Likewise.
5876         * localedata/locales/is_IS (LC_MESSAGES): Likewise.
5877         * localedata/locales/it_CH (LC_MESSAGES): Likewise.
5878         * localedata/locales/it_IT (LC_MESSAGES): Likewise.
5879         * localedata/locales/iu_CA (LC_MESSAGES): Likewise.
5880         * localedata/locales/ja_JP (LC_MESSAGES): Likewise.
5881         * localedata/locales/kk_KZ (LC_MESSAGES): Likewise.
5882         * localedata/locales/kl_GL (LC_MESSAGES): Likewise.
5883         * localedata/locales/ko_KR (LC_MESSAGES): Likewise.
5884         * localedata/locales/ks_IN (LC_MESSAGES): Likewise.
5885         * localedata/locales/ku_TR (LC_MESSAGES): Likewise.
5886         * localedata/locales/kw_GB (LC_MESSAGES): Likewise.
5887         * localedata/locales/ky_KG (LC_MESSAGES): Likewise.
5888         * localedata/locales/lb_LU (LC_MESSAGES): Likewise.
5889         * localedata/locales/lg_UG (LC_MESSAGES): Likewise.
5890         * localedata/locales/li_NL (LC_MESSAGES): Likewise.
5891         * localedata/locales/lij_IT (LC_MESSAGES): Likewise.
5892         * localedata/locales/ln_CD (LC_MESSAGES): Likewise.
5893         * localedata/locales/lo_LA (LC_MESSAGES): Likewise.
5894         * localedata/locales/lt_LT (LC_MESSAGES): Likewise.
5895         * localedata/locales/lv_LV (LC_MESSAGES): Likewise.
5896         * localedata/locales/lzh_TW (LC_MESSAGES): Likewise.
5897         * localedata/locales/mg_MG (LC_MESSAGES): Likewise.
5898         * localedata/locales/mhr_RU (LC_MESSAGES): Likewise.
5899         * localedata/locales/mi_NZ (LC_MESSAGES): Likewise.
5900         * localedata/locales/mk_MK (LC_MESSAGES): Likewise.
5901         * localedata/locales/ml_IN (LC_MESSAGES): Likewise.
5902         * localedata/locales/mn_MN (LC_MESSAGES): Likewise.
5903         * localedata/locales/ms_MY (LC_MESSAGES): Likewise.
5904         * localedata/locales/mt_MT (LC_MESSAGES): Likewise.
5905         * localedata/locales/my_MM (LC_MESSAGES): Likewise.
5906         * localedata/locales/nan_TW (LC_MESSAGES): Likewise.
5907         * localedata/locales/nan_TW@latin (LC_MESSAGES): Likewise.
5908         * localedata/locales/nb_NO (LC_MESSAGES): Likewise.
5909         * localedata/locales/nds_DE (LC_MESSAGES): Likewise.
5910         * localedata/locales/nds_NL (LC_MESSAGES): Likewise.
5911         * localedata/locales/ne_NP (LC_MESSAGES): Likewise.
5912         * localedata/locales/nhn_MX (LC_MESSAGES): Likewise.
5913         * localedata/locales/niu_NU (LC_MESSAGES): Likewise.
5914         * localedata/locales/nl_NL (LC_MESSAGES): Likewise.
5915         * localedata/locales/nn_NO (LC_MESSAGES): Likewise.
5916         * localedata/locales/nr_ZA (LC_MESSAGES): Likewise.
5917         * localedata/locales/nso_ZA (LC_MESSAGES): Likewise.
5918         * localedata/locales/oc_FR (LC_MESSAGES): Likewise.
5919         * localedata/locales/om_ET (LC_MESSAGES): Likewise.
5920         * localedata/locales/or_IN (LC_MESSAGES): Likewise.
5921         * localedata/locales/os_RU (LC_MESSAGES): Likewise.
5922         * localedata/locales/pa_IN (LC_MESSAGES): Likewise.
5923         * localedata/locales/pa_PK (LC_MESSAGES): Likewise.
5924         * localedata/locales/pap_AW (LC_MESSAGES): Likewise.
5925         * localedata/locales/pap_CW (LC_MESSAGES): Likewise.
5926         * localedata/locales/pl_PL (LC_MESSAGES): Likewise.
5927         * localedata/locales/ps_AF (LC_MESSAGES): Likewise.
5928         * localedata/locales/pt_BR (LC_MESSAGES): Likewise.
5929         * localedata/locales/quz_PE (LC_MESSAGES): Likewise.
5930         * localedata/locales/raj_IN (LC_MESSAGES): Likewise.
5931         * localedata/locales/ro_RO (LC_MESSAGES): Likewise.
5932         * localedata/locales/ru_RU (LC_MESSAGES): Likewise.
5933         * localedata/locales/ru_UA (LC_MESSAGES): Likewise.
5934         * localedata/locales/rw_RW (LC_MESSAGES): Likewise.
5935         * localedata/locales/sa_IN (LC_MESSAGES): Likewise.
5936         * localedata/locales/sc_IT (LC_MESSAGES): Likewise.
5937         * localedata/locales/sd_IN@devanagari (LC_MESSAGES): Likewise.
5938         * localedata/locales/se_NO (LC_MESSAGES): Likewise.
5939         * localedata/locales/sgs_LT (LC_MESSAGES): Likewise.
5940         * localedata/locales/si_LK (LC_MESSAGES): Likewise.
5941         * localedata/locales/sk_SK (LC_MESSAGES): Likewise.
5942         * localedata/locales/sl_SI (LC_MESSAGES): Likewise.
5943         * localedata/locales/sm_WS (LC_MESSAGES): Likewise.
5944         * localedata/locales/so_DJ (LC_MESSAGES): Likewise.
5945         * localedata/locales/sq_AL (LC_MESSAGES): Likewise.
5946         * localedata/locales/sr_RS (LC_MESSAGES): Likewise.
5947         * localedata/locales/sr_RS@latin (LC_MESSAGES): Likewise.
5948         * localedata/locales/ss_ZA (LC_MESSAGES): Likewise.
5949         * localedata/locales/st_ZA (LC_MESSAGES): Likewise.
5950         * localedata/locales/sv_SE (LC_MESSAGES): Likewise.
5951         * localedata/locales/sw_KE (LC_MESSAGES): Likewise.
5952         * localedata/locales/szl_PL (LC_MESSAGES): Likewise.
5953         * localedata/locales/tcy_IN (LC_MESSAGES): Likewise.
5954         * localedata/locales/tg_TJ (LC_MESSAGES): Likewise.
5955         * localedata/locales/th_TH (LC_MESSAGES): Likewise.
5956         * localedata/locales/the_NP (LC_MESSAGES): Likewise.
5957         * localedata/locales/ti_ER (LC_MESSAGES): Likewise.
5958         * localedata/locales/tk_TM (LC_MESSAGES): Likewise.
5959         * localedata/locales/tn_ZA (LC_MESSAGES): Likewise.
5960         * localedata/locales/to_TO (LC_MESSAGES): Likewise.
5961         * localedata/locales/tr_TR (LC_MESSAGES): Likewise.
5962         * localedata/locales/ts_ZA (LC_MESSAGES): Likewise.
5963         * localedata/locales/tt_RU (LC_MESSAGES): Likewise.
5964         * localedata/locales/tt_RU@iqtelif (LC_MESSAGES): Likewise.
5965         * localedata/locales/uk_UA (LC_MESSAGES): Likewise.
5966         * localedata/locales/unm_US (LC_MESSAGES): Likewise.
5967         * localedata/locales/ur_IN (LC_MESSAGES): Likewise.
5968         * localedata/locales/ur_PK (LC_MESSAGES): Likewise.
5969         * localedata/locales/uz_UZ (LC_MESSAGES): Likewise.
5970         * localedata/locales/uz_UZ@cyrillic (LC_MESSAGES): Likewise.
5971         * localedata/locales/ve_ZA (LC_MESSAGES): Likewise.
5972         * localedata/locales/vi_VN (LC_MESSAGES): Likewise.
5973         * localedata/locales/wa_BE (LC_MESSAGES): Likewise.
5974         * localedata/locales/wo_SN (LC_MESSAGES): Likewise.
5975         * localedata/locales/xh_ZA (LC_MESSAGES): Likewise.
5976         * localedata/locales/yi_US (LC_MESSAGES): Likewise.
5977         * localedata/locales/yo_NG (LC_MESSAGES): Likewise.
5978         * localedata/locales/yue_HK (LC_MESSAGES): Likewise.
5979         * localedata/locales/zh_CN (LC_MESSAGES): Likewise.
5980         * localedata/locales/zh_HK (LC_MESSAGES): Likewise.
5981         * localedata/locales/zh_TW (LC_MESSAGES): Likewise.
5982         * localedata/locales/zu_ZA (LC_MESSAGES): Likewise.
5984 2017-10-25  Mike FABIAN  <mfabian@redhat.com>
5986         * localedata/locales/brx_IN (LC_MESSAGES): Fix yesexpr and noexpr
5987         (Use first letters of yesstr and nostr correctly instead of using
5988         full words).
5990 2017-10-25  Mike FABIAN  <mfabian@redhat.com>
5992         * localedata/locales/ta_IN (LC_MESSAGES): Fix yesexpr and noexpr
5993         (Use first letters of yesstr and nostr correctly).
5995 2017-10-25  Mike FABIAN  <mfabian@redhat.com>
5997         * localedata/locales/hi_IN (LC_MESSAGES): In yesexpr and noexpr,
5998         also check for the first characters of yesstr and nostr.
5999         * localedata/locales/kn_IN (LC_MESSAGES): Likewise.
6000         * localedata/locales/ks_IN@devanagari (LC_MESSAGES): Likewise.
6002 2017-10-25  Mike FABIAN  <mfabian@redhat.com>
6004         * localedata/locales/cmn_TW (LC_MESSAGES): In yesexpr and noexpr,
6005         also check for Chinese characters.
6007 2017-10-25  Mike FABIAN  <mfabian@redhat.com>
6009         * localedata/locales/chr_US (LC_MESSAGES): In yesexpr and noexpr,
6010         match also for the contents of yesstr and nostr. As the first letter
6011         of yesstr and nostr is equal, checking only for the first letter
6012         is not enough.
6014 2017-10-25  Mike FABIAN  <mfabian@redhat.com>
6016         * localedata/locales/ber_DZ (LC_MESSAGES): Use copy "kab_DZ",
6017         it is the same according to  Belkacem Mohammed <belkacem77@gmail.com>.
6019 2017-10-25  Mike FABIAN  <mfabian@redhat.com>
6021         * localedata/locales/kab_DZ (LC_IDENTIFICATION): Add e-mail
6022         of main contributor.
6024 2017-10-25  Mike FABIAN  <mfabian@redhat.com>
6026         * localedata/locales/zh_SG (LC_MESSAGES): Use copy "zh_CN"
6027         instead of using English.
6029 2017-10-25  Mike FABIAN  <mfabian@redhat.com>
6031         * localedata/locales/ug_CN (LC_MESSAGES): Fix noexpr and yesexpr
6032         by including the first letters of nostr and yesexpr in the regexp.
6033         Also make it more readable by using ASCII where possible.
6035 2017-10-25  Mike FABIAN  <mfabian@redhat.com>
6037         * localedata/locales/te_IN (LC_MESSAGES): Fix noexpr by including
6038         the first letter of nostr in the regexp. It agrees with CLDR now.
6039         Also make it more readable by using ASCII where possible.
6041 2017-10-24  Mike FABIAN  <mfabian@redhat.com>
6043         * localedata/locales/km_KH (LC_MESSAGES): Fix yestr and nostr.
6044         The yesstr and nostr apparently came from CLDR. And CLDR has a bug there:
6045         these strings contain a U+17D6 (which somewhat looks like a colon)
6046         instead of a real colon to separate the full words for “yes”
6047         and “no” from the single letter responses.
6049 2017-10-24  Mike FABIAN  <mfabian@redhat.com>
6051         * localedata/locales/ka_GE (LC_MESSAGES): Fix yesexp to make
6052         it agree with CLDR (include the first letter of yesstr).
6053         Also make it more readable by using ASCII where possible.
6055 2017-10-24  Mike FABIAN  <mfabian@redhat.com>
6057         * localedata/locales/mr_IN (LC_MESSAGES): Fix yesstr and nostr
6058         and improve yesexpr and noexpr. The yesstr and nostr apparently
6059         came from CLDR. And CLDR has a bug there: these strings contain
6060         a U+0903 (which looks like a colon) instead of a real colon
6061         to separate the full words for “yes” and “no” from the single
6062         letter responses.
6064 2017-10-24  Mike FABIAN  <mfabian@redhat.com>
6066         * localedata/locales/bn_BD (LC_MESSAGES): Use only the first
6067         letters of the full yesstr and nostr in yesexpr and noexpr.
6069 2017-10-24  Mike FABIAN  <mfabian@redhat.com>
6071         * localedata/locales/an_ES (LC_MESSAGES): Add yesstr and nostr.
6072         * localedata/locales/an_ES (LC_ADDRESS): Add lang_term and lang_lib.
6073         * localedata/locales/an_ES: Make source more readable by using ASCII
6074         where possible.
6076 2017-10-24  Mike FABIAN  <mfabian@redhat.com>
6078         [BZ #20952]
6079         * localedata/locales/yuw_PG: New file.
6080         * localedata/SUPPORTED: Add yuw_PG/UTF-8.
6081         * locale/iso-639.def: Add Yau (Uruwa).
6083 2017-10-23  Wilco Dijkstra  <wdijkstr@arm.com>
6085         * malloc/malloc.c (_int_malloc): Add SINGLE_THREAD_P path.
6087 2017-10-23  Wilco Dijkstra  <wdijkstr@arm.com>
6089         * malloc/malloc.c (__libc_malloc): Add SINGLE_THREAD_P path.
6090         (__libc_realloc): Likewise.
6091         (_mid_memalign): Likewise.
6092         (__libc_calloc): Likewise.
6094 2017-10-23  Mike FABIAN  <mfabian@redhat.com>
6096         * localedata/locales/tpi_PG (LC_MESSAGES): Fix yesexpr and noexpr
6097         by adding the generic +1 and -0 as in all other locales.
6098         * localedata/locales/tpi_PG (LC_TIME): Fix some typos in the month and
6099         day names and make it more readable by using ASCII where possible.
6101 2017-10-24  Joseph Myers  <joseph@codesourcery.com>
6103         * sysdeps/x86/fpu/fix-fp-int-compare-invalid.h
6104         (FIX_COMPARE_INVALID): Define to 0 if [__GNUC_PREREQ (8, 0)].
6106 2017-10-23  Adhemerval Zanella  <adhemerval.zanella@linaro.org>
6108         * sysdeps/unix/sysv/linux/spawni.c (__spawnix): Use 0 instead of
6109         WNOHANG in waitpid call.
6111 2017-10-23  Siddhesh Poyarekar  <siddhesh@sourceware.org>
6113         * manual/conf.texi (_SC_LEVEL1_DCACHE_LINESIZE,
6114         _SC_LEVEL1_ICACHE_LINESIZE): Document aarch64 caveat.
6116         * manual/conf.texi (_SC_LEVEL1_ICACHE_SIZE,
6117         _SC_LEVEL1_ICACHE_ASSOC, _SC_LEVEL1_ICACHE_LINESIZE,
6118         _SC_LEVEL1_DCACHE_SIZE, _SC_LEVEL1_DCACHE_ASSOC,
6119         _SC_LEVEL1_DCACHE_LINESIZE, _SC_LEVEL2_CACHE_SIZE,
6120         _SC_LEVEL2_CACHE_ASSOC, _SC_LEVEL2_CACHE_LINESIZE,
6121         _SC_LEVEL3_CACHE_SIZE, _SC_LEVEL3_CACHE_ASSOC,
6122         _SC_LEVEL3_CACHE_LINESIZE, _SC_LEVEL4_CACHE_SIZE,
6123         _SC_LEVEL4_CACHE_ASSOC, _SC_LEVEL4_CACHE_LINESIZE): New
6124         variables.
6126 2017-10-23  Michael Collison  <michael.collison@arm.com>
6128         * sysdeps/aarch64/fpu/e_sqrt.c (ieee754_sqrt): Replace asm statements
6129         with __builtin_sqrt.
6130         * sysdeps/aarch64/fpu/e_sqrtf.c (ieee754_sqrtf): Replace asm statements
6131         with __builtin_sqrtf.
6132         * sysdeps/aarch64/fpu/s_ceil.c (__ceil): Replace asm statements
6133         with __builtin_ceil.
6134         * sysdeps/aarch64/fpu/s_ceilf.c (__ceilf): Replace asm statements
6135         with __builtin_ceilf.
6136         * sysdeps/aarch64/fpu/s_floor.c (__floor): Replace asm statements
6137         with __builtin_floor.
6138         * sysdeps/aarch64/fpu/s_floorf.c (__floorf): Replace asm statements
6139         with __builtin_floorf.
6140         * sysdeps/aarch64/fpu/s_fma.c (__fma): Replace asm statements
6141         with __builtin_fma.
6142         * sysdeps/aarch64/fpu/s_fmaf.c (__fmaf): Replace asm statements
6143         with __builtin_fmaf.
6144         * sysdeps/aarch64/fpu/s_fmax.c (__fmax): Replace asm statements
6145         with __builtin_fmax.
6146         * sysdeps/aarch64/fpu/s_fmaxf.c (__fmaxf): Replace asm statements
6147         with __builtin_fmaxf.
6148         * sysdeps/aarch64/fpu/s_fmin.c (__fmin): Replace asm statements
6149         with __builtin_fmin.
6150         * sysdeps/aarch64/fpu/s_fminf.c (__fminf): Replace asm statements
6151         with __builtin_fminf.
6152         * sysdeps/aarch64/fpu/s_frint.c: Delete file.
6153         * sysdeps/aarch64/fpu/s_frintf.c: Delete file.
6154         * sysdeps/aarch64/fpu/s_llrint.c (__llrint): Replace asm statements
6155         with builtin_rint and conversion to int.
6156         * sysdeps/aarch64/fpu/s_llrintf.c (__llrintf): Likewise.
6157         * sysdeps/aarch64/fpu/s_llround.c (__llround): Replace asm statements
6158         with builtin_llround.
6159         * sysdeps/aarch64/fpu/s_llroundf.c (__llroundf): Likewise.
6160         * sysdeps/aarch64/fpu/s_lrint.c (__lrint): Replace asm statements
6161         with builtin_rint and conversion to long int.
6162         * sysdeps/aarch64/fpu/s_lrintf.c (__lrintf): Likewise.
6163         * sysdeps/aarch64/fpu/s_lround.c (__lround): Replace asm statements
6164         with builtin_lround.
6165         * sysdeps/aarch64/fpu/s_lroundf.c (__lroundf): Replace asm statements
6166         with builtin_lroundf.
6167         * sysdeps/aarch64/fpu/s_nearbyint.c (__nearbyint): Replace asm
6168         statements with __builtin_nearbyint.
6169         * sysdeps/aarch64/fpu/s_nearbyintf.c (__nearbyintf): Replace asm
6170         statements with __builtin_nearbyintf.
6171         * sysdeps/aarch64/fpu/s_rint.c (__rint): Replace asm statements
6172         with __builtin_rint.
6173         * sysdeps/aarch64/fpu/s_rintf.c (__rintf): Replace asm statements
6174         with __builtin_rintf.
6175         * sysdeps/aarch64/fpu/s_round.c (__round): Replace asm statements
6176         with __builtin_round.
6177         * sysdeps/aarch64/fpu/s_roundf.c (__roundf): Replace asm statements
6178         with __builtin_roundf.
6179         * sysdeps/aarch64/fpu/s_trunc.c (__trunc): Replace asm statements
6180         with __builtin_trunc.
6181         * sysdeps/aarch64/fpu/s_truncf.c (__truncf): Replace asm statements
6182         with __builtin_truncf.
6183         * sysdeps/aarch64/fpu/Makefile: Build e_sqrt[f].c with -fno-math-errno,
6184         and s_l[l]round[f].c too.
6186 2017-10-23  Alan Modra  <amodra@gmail.com>
6188         * sysdeps/powerpc/powerpc64/power8/strncpy.S: Move LR cfi.
6189         Adjust stack after restoring regs.  Add missing LR cfi_restore.
6191 2017-10-23  Alan Modra  <amodra@gmail.com>
6193         * sysdeps/powerpc/powerpc64/power7/strncpy.S: Decrease FRAMESIZE.
6194         Move LR save and frame setup/teardown and LR restore to
6195         immediately around memset call.  Provide cfi.
6197 2017-10-22  H.J. Lu  <hongjiu.lu@intel.com>
6199         * sysdeps/i386/fpu/e_powf.S: Removed.
6200         * sysdeps/i386/fpu/e_powf_log2_data.c: Likewise.
6201         * sysdeps/i386/fpu/w_powf.c: Likewise.
6202         * sysdeps/i386/fpu/libm-test-ulps: Updated for generic e_powf.c.
6203         * sysdeps/i386/i686/fpu/multiarch/libm-test-ulps: Likewise.
6204         * sysdeps/i386/i686/fpu/multiarch/Makefile (libm-sysdep_routines):
6205         Add e_powf-sse2.
6206         (CFLAGS-e_powf-sse2.c): New.
6207         * sysdeps/i386/i686/fpu/multiarch/e_powf-sse2.c: New file.
6208         * sysdeps/i386/i686/fpu/multiarch/e_powf.c: Likewise.
6210 2017-10-22  H.J. Lu  <hongjiu.lu@intel.com>
6212         * sysdeps/i386/fpu/e_log2f.S: Removed.
6213         * sysdeps/i386/fpu/e_log2f_data.c: Likewise.
6214         * sysdeps/i386/fpu/w_log2f.c: Likewise.
6215         * sysdeps/i386/fpu/libm-test-ulps: Updated for generic e_log2f.c.
6216         * sysdeps/i386/i686/fpu/multiarch/libm-test-ulps: Likewise.
6217         * sysdeps/i386/i686/fpu/multiarch/Makefile (libm-sysdep_routines):
6218         Add e_log2f-sse2.
6219         (CFLAGS-e_log2f-sse2.c): New.
6220         * sysdeps/i386/i686/fpu/multiarch/e_log2f-sse2.c: New file.
6221         * sysdeps/i386/i686/fpu/multiarch/e_log2f.c: Likewise.
6223 2017-10-22  H.J. Lu  <hongjiu.lu@intel.com>
6225         * sysdeps/x86_64/fpu/multiarch/Makefile (libm-sysdep_routines):
6226         Add e_powf-fma.
6227         (CFLAGS-e_powf-fma.c): New.
6228         * sysdeps/x86_64/fpu/multiarch/e_powf-fma.c: New file.
6229         * sysdeps/x86_64/fpu/multiarch/e_powf.c: Likewise.
6231 2017-10-22  H.J. Lu  <hongjiu.lu@intel.com>
6233         * sysdeps/x86_64/fpu/multiarch/Makefile (libm-sysdep_routines):
6234         Add e_log2f-fma.
6235         (CFLAGS-e_log2f-fma.c): New.
6236         * sysdeps/x86_64/fpu/multiarch/e_log2f-fma.c: New file.
6237         * sysdeps/x86_64/fpu/multiarch/e_log2f.c: Likewise.
6239 2017-10-22  H.J. Lu  <hongjiu.lu@intel.com>
6241         * sysdeps/x86_64/fpu/multiarch/Makefile (libm-sysdep_routines):
6242         Add e_logf-fma.
6243         (CFLAGS-e_logf-fma.c): New.
6244         * sysdeps/x86_64/fpu/multiarch/e_logf-fma.c: New file.
6245         * sysdeps/x86_64/fpu/multiarch/e_logf.c: Likewise.
6247 2017-10-22  H.J. Lu  <hongjiu.lu@intel.com>
6249         * sysdeps/i386/fpu/e_logf.S: Removed.
6250         * sysdeps/i386/fpu/e_logf_data.c: Likewise.
6251         * sysdeps/i386/fpu/w_logf.c: Likewise.
6252         * sysdeps/i386/i686/fpu/e_logf.S: Likewise.
6253         * sysdeps/i386/fpu/libm-test-ulps: Updated for generic e_logf.c.
6254         * sysdeps/i386/i686/fpu/multiarch/libm-test-ulps: Likewise.
6255         * sysdeps/i386/i686/fpu/multiarch/Makefile (libm-sysdep_routines):
6256         Add e_logf-sse2.
6257         (CFLAGS-e_logf-sse2.c): New.
6258         * sysdeps/i386/i686/fpu/multiarch/e_logf-sse2.c: New file.
6259         * sysdeps/i386/i686/fpu/multiarch/e_logf.c: Likewise.
6261 2017-10-22  H.J. Lu  <hongjiu.lu@intel.com>
6263         * sysdeps/i386/fpu/e_exp2f.S: Removed.
6264         * sysdeps/i386/fpu/w_exp2f.c: Likewise.
6265         * sysdeps/i386/fpu/libm-test-ulps: Updated for generic e_exp2f.c.
6266         * sysdeps/i386/i686/fpu/multiarch/libm-test-ulps: Likewise.
6267         * sysdeps/i386/i686/fpu/multiarch/Makefile (libm-sysdep_routines):
6268         Add e_exp2f-sse2.
6269         (CFLAGS-e_exp2f-sse2.c): New.
6270         * sysdeps/i386/i686/fpu/multiarch/e_exp2f-sse2.c: New file.
6271         * sysdeps/i386/i686/fpu/multiarch/e_exp2f.c: Likewise.
6273 2017-10-22  H.J. Lu  <hongjiu.lu@intel.com>
6275         * sysdeps/x86_64/fpu/multiarch/Makefile (libm-sysdep_routines):
6276         Add e_exp2f-fma.
6277         (CFLAGS-e_exp2f-fma.c): New.
6278         * sysdeps/x86_64/fpu/multiarch/e_exp2f-fma.c: New file.
6279         * sysdeps/x86_64/fpu/multiarch/e_exp2f.c: Likewise.
6281 2017-10-22  H.J. Lu  <hongjiu.lu@intel.com>
6283         * sysdeps/i386/fpu/e_exp2f_data.c: Removed.
6284         * sysdeps/i386/fpu/e_expf.S: Likewise.
6285         * sysdeps/i386/fpu/math_errf.c: Likewise.
6286         * sysdeps/i386/fpu/w_expf.c: Likewise.
6287         * sysdeps/i386/i686/fpu/multiarch/e_expf-ia32.S: Likewise.
6288         * sysdeps/i386/i686/fpu/multiarch/e_expf-sse2.S: Likewise.
6289         * sysdeps/i386/i686/fpu/multiarch/w_expf.c: Likewise.
6290         * sysdeps/i386/fpu/libm-test-ulps: Updated for generic e_expf.c.
6291         * sysdeps/i386/i686/fpu/multiarch/libm-test-ulps: Likewise.
6292         * sysdeps/i386/i686/fpu/multiarch/Makefile (libm-sysdep_routines):
6293         Remove e_expf-ia32.
6294         (CFLAGS-e_expf-sse2.c): New.
6295         * sysdeps/i386/i686/fpu/multiarch/e_expf-sse2.c: New file.
6296         * sysdeps/i386/i686/fpu/multiarch/e_expf.c: Rewritten.
6298 2017-10-22  H.J. Lu  <hongjiu.lu@intel.com>
6300         * sysdeps/x86_64/fpu/e_expf.S: Removed.
6301         * sysdeps/x86_64/fpu/multiarch/e_expf-fma.S: Likewise.
6302         * sysdeps/x86_64/fpu/w_expf.c: Likewise.
6303         * sysdeps/x86_64/fpu/libm-test-ulps: Updated for generic
6304         e_expf.c.
6305         * sysdeps/x86_64/fpu/multiarch/Makefile (CFLAGS-e_expf-fma.c):
6306         New.
6307         * sysdeps/x86_64/fpu/multiarch/e_expf-fma.c: New file.
6308         * sysdeps/x86_64/fpu/multiarch/e_expf.c (__redirect_ieee754_expf):
6309         Renamed to ...
6310         (__redirect_expf): This.
6311         (SYMBOL_NAME): Changed to expf.
6312         (__ieee754_expf): Renamed to ...
6313         (__expf): This.
6314         (__GI___expf): This.
6315         (__ieee754_expf): Add strong_alias.
6316         (__expf_finite): Likewise.
6317         (__expf): New.
6318         Include <sysdeps/ieee754/flt-32/e_expf.c>.
6320 2017-10-22  Paul Eggert <eggert@cs.ucla.edu>
6322         [BZ #22332]
6323         * posix/glob.c (__glob): Fix buffer overflow during GLOB_TILDE
6324         unescaping.
6326 2017-10-21  Florian Weimer  <fweimer@redhat.com>
6328         * posix/Makefile (tests): Add tst-glob-tilde.
6329         (tests-special): Add tst-glob-tilde-mem.out
6330         (tst-glob-tilde-ENV): Set MALLOC_TRACE.
6331         (tst-glob-tilde-mem.out): Add mtrace check.
6332         * posix/tst-glob-tilde.c: New file.
6334 2017-10-20  Joseph Myers  <joseph@codesourcery.com>
6336         * bits/floatn-common.h: New file.
6337         * math/Makefile (headers): Add bits/floatn-common.h.
6338         * bits/floatn.h: Include <bits/floatn-common.h>.
6339         * sysdeps/ia64/bits/floatn.h: Likewise.
6340         * sysdeps/ieee754/ldbl-128/bits/floatn.h: Likewise.
6341         * sysdeps/mips/ieee754/bits/floatn.h: Likewise.
6342         * sysdeps/powerpc/bits/floatn.h: Likewise.
6343         * sysdeps/x86/bits/floatn.h: Likewise.
6345 2017-10-20  Adhemerval Zanella  <adhemerval.zanella@linaro.org>
6347         * configure.ac (libc_cv_gcc_incompatbile_alias): New define:
6348         indicates whether compiler emits an warning for alias for
6349         functions with incompatible types.
6351         [BZ #22273]
6352         * sysdeps/unix/sysv/linux/spawni.c (__spawnix): Handle the case where
6353         the auxiliary process is terminated by a signal before calling _exit
6354         or execve.
6356 2017-10-20  H.J. Lu  <hongjiu.lu@intel.com>
6358         [BZ #21265]
6359         * sysdeps/x86/cpu-features-offsets.sym (XSAVE_STATE_SIZE_OFFSET):
6360         New.
6361         * sysdeps/x86/cpu-features.c: Include <libc-pointer-arith.h>.
6362         (get_common_indeces): Set xsave_state_size, xsave_state_full_size
6363         and bit_arch_XSAVEC_Usable if needed.
6364         (init_cpu_features): Remove bit_arch_Use_dl_runtime_resolve_slow
6365         and bit_arch_Use_dl_runtime_resolve_opt.
6366         * sysdeps/x86/cpu-features.h (bit_arch_Use_dl_runtime_resolve_opt):
6367         Removed.
6368         (bit_arch_Use_dl_runtime_resolve_slow): Likewise.
6369         (bit_arch_Prefer_No_AVX512): Updated.
6370         (bit_arch_MathVec_Prefer_No_AVX512): Likewise.
6371         (bit_arch_XSAVEC_Usable): New.
6372         (STATE_SAVE_OFFSET): Likewise.
6373         (STATE_SAVE_MASK): Likewise.
6374         [__ASSEMBLER__]: Include <cpu-features-offsets.h>.
6375         (cpu_features): Add xsave_state_size and xsave_state_full_size.
6376         (index_arch_Use_dl_runtime_resolve_opt): Removed.
6377         (index_arch_Use_dl_runtime_resolve_slow): Likewise.
6378         (index_arch_XSAVEC_Usable): New.
6379         * sysdeps/x86/cpu-tunables.c (TUNABLE_CALLBACK (set_hwcaps)):
6380         Support XSAVEC_Usable.  Remove Use_dl_runtime_resolve_slow.
6381         * sysdeps/x86_64/Makefile (tst-x86_64-1-ENV): New if tunables
6382         is enabled.
6383         * sysdeps/x86_64/dl-machine.h (elf_machine_runtime_setup):
6384         Replace _dl_runtime_resolve_sse, _dl_runtime_resolve_avx,
6385         _dl_runtime_resolve_avx_slow, _dl_runtime_resolve_avx_opt,
6386         _dl_runtime_resolve_avx512 and _dl_runtime_resolve_avx512_opt
6387         with _dl_runtime_resolve_fxsave, _dl_runtime_resolve_xsave and
6388         _dl_runtime_resolve_xsavec.
6389         * sysdeps/x86_64/dl-trampoline.S (DL_RUNTIME_UNALIGNED_VEC_SIZE):
6390         Removed.
6391         (DL_RUNTIME_RESOLVE_REALIGN_STACK): Check STATE_SAVE_ALIGNMENT
6392         instead of VEC_SIZE.
6393         (REGISTER_SAVE_BND0): Removed.
6394         (REGISTER_SAVE_BND1): Likewise.
6395         (REGISTER_SAVE_BND3): Likewise.
6396         (REGISTER_SAVE_RAX): Always defined to 0.
6397         (VMOV): Removed.
6398         (_dl_runtime_resolve_avx): Likewise.
6399         (_dl_runtime_resolve_avx_slow): Likewise.
6400         (_dl_runtime_resolve_avx_opt): Likewise.
6401         (_dl_runtime_resolve_avx512): Likewise.
6402         (_dl_runtime_resolve_avx512_opt): Likewise.
6403         (_dl_runtime_resolve_sse): Likewise.
6404         (_dl_runtime_resolve_sse_vex): Likewise.
6405         (USE_FXSAVE): New.
6406         (_dl_runtime_resolve_fxsave): Likewise.
6407         (USE_XSAVE): Likewise.
6408         (_dl_runtime_resolve_xsave): Likewise.
6409         (USE_XSAVEC): Likewise.
6410         (_dl_runtime_resolve_xsavec): Likewise.
6411         * sysdeps/x86_64/dl-trampoline.h (_dl_runtime_resolve_avx512):
6412         Removed.
6413         (_dl_runtime_resolve_avx512_opt): Likewise.
6414         (_dl_runtime_resolve_avx): Likewise.
6415         (_dl_runtime_resolve_avx_opt): Likewise.
6416         (_dl_runtime_resolve_sse): Likewise.
6417         (_dl_runtime_resolve_sse_vex): Likewise.
6418         (_dl_runtime_resolve_fxsave): New.
6419         (_dl_runtime_resolve_xsave): Likewise.
6420         (_dl_runtime_resolve_xsavec): Likewise.
6422 2017-10-20  Paul Eggert <eggert@cs.ucla.edu>
6424         [BZ #22320]
6425         CVE-2017-15670
6426         * posix/glob.c (__glob): Fix one-byte overflow.
6428 2017-10-20  Wilco Dijkstra  <wdijkstr@arm.com>
6430         * malloc/malloc.c (sysdep-cancel.h): Add include.
6432 2017-10-20  Wilco Dijkstra  <wdijkstr@arm.com>
6434         * malloc/malloc.c (_int_free): Add SINGLE_THREAD_P fast paths.
6436 2017-10-20  Will Hawkins  <hawkinsw@borlaugic.com>
6438         * resolv/Makefile [$(build-shared)$(have-thread-library) == yesyes]
6439         (tests): Remove $(objpfx)ga_test depdendency.
6440         * resolv/ga_test.c: Remove file.
6442 2017-10-20  Mike FABIAN  <mfabian@redhat.com>
6444         [BZ #18812]
6445         * localedata/SUPPORTED: Add kab_DZ/UTF-8.
6446         * localedata/locales/kab_DZ: New file.
6448 2017-10-20  H.J. Lu  <hongjiu.lu@intel.com>
6450         * sysdeps/m68k/dl-machine.h (elf_machine_load_address): Use
6451         _dl_relocate_static_pie instead of _dl_start to compute load
6452         address in static PIE.
6454 2017-10-20  H.J. Lu  <hongjiu.lu@intel.com>
6456         * sysdeps/m68k/start.S (_start): Check PIC instead of SHARED.
6458 2017-10-20  Mike FABIAN  <mfabian@redhat.com>
6460         [BZ #13605]
6461         * localedata/SUPPORTED: Add shn_MM/UTF-8.
6462         * localedata/locales/shn_MM: New file.
6464 2017-10-20  Florian Weimer  <fweimer@redhat.com>
6466         [BZ #22321]
6467         sysconf: Fix missing definition of UIO_MAXIOV on Linux.
6468         * sysdeps/posix/sysconf.c: Include <sys/uio.h>.
6469         * sysdeps/unix/sysv/linux/Makefile (tests): Add tst-sysconf-iov_max.
6470         (tst-sysconf-iov_max): Link with tst-sysconf-iov_max-uapi.o.
6471         * sysdeps/unix/sysv/linux/tst-sysconf-iov_max.c: New file.
6472         * sysdeps/unix/sysv/linux/tst-sysconf-iov_max-uapi.c: Likewise.
6474 2017-10-19  H.J. Lu  <hongjiu.lu@intel.com>
6476         * sysdeps/i386/fpu/libm-test-ulps: Regenerated.
6478 2017-10-19  Joseph Myers  <joseph@codesourcery.com>
6480         * sysdeps/mips/ieee754/bits/floatn.h: New file.
6482         [BZ #22322]
6483         * sysdeps/mips/bits/long-double.h: Move to ....
6484         * sysdeps/mips/ieee754/bits/long-double.h: ... here.
6486 2017-10-19  Wilco Dijkstra  <wdijkstr@arm.com>
6488         * malloc/malloc.c (_int_free): Fix deadlock bug in consistency check.
6490 2017-10-19  Valery Reznic <valery_reznic@yahoo.com>
6491             H.J. Lu  <hongjiu.lu@intel.com>
6493         [BZ #22299]
6494         * sysdeps/x86/cpu-features.c (init_cpu_features): Don't set
6495         GLRO(dl_platform) to NULL.
6496         * sysdeps/x86_64/Makefile (tests): Add tst-platform-1.
6497         (modules-names): Add tst-platformmod-1 and
6498         x86_64/tst-platformmod-2.
6499         (CFLAGS-tst-platform-1.c): New.
6500         (CFLAGS-tst-platformmod-1.c): Likewise.
6501         (CFLAGS-tst-platformmod-2.c): Likewise.
6502         (LDFLAGS-tst-platformmod-2.so): Likewise.
6503         ($(objpfx)tst-platform-1): Likewise.
6504         ($(objpfx)tst-platform-1.out): Likewise.
6505         (tst-platform-1-ENV): Likewise.
6506         ($(objpfx)x86_64/tst-platformmod-2.os): Likewise.
6507         * sysdeps/x86_64/tst-platform-1.c: New file.
6508         * sysdeps/x86_64/tst-platformmod-1.c: Likewise.
6509         * sysdeps/x86_64/tst-platformmod-2.c: Likewise.
6511 2017-10-19  Mike FABIAN  <mfabian@redhat.com>
6513         [BZ #13994]
6514         * locale/iso-639.def: Add Karbi.
6515         * localedata/SUPPORTED: Add mjw_IN/UTF-8.
6516         * localedata/locales/mjw_IN: New file.
6518 2017-10-18  Joseph Myers  <joseph@codesourcery.com>
6520         * sysdeps/ieee754/ldbl-128/Makeconfig: New file.
6521         * sysdeps/ieee754/ldbl-128/bits/floatn.h: Likewise.
6522         * sysdeps/ieee754/ldbl-128/float128-abi.h: Likewise.
6523         * sysdeps/generic/libm-alias-ldouble.h: Include <bits/floatn.h>.
6524         [__HAVE_FLOAT128 && !__HAVE_DISTINCT_FLOAT128]
6525         (libm_alias_ldouble_other_r): Also create _Float128 alias.
6526         * sysdeps/ieee754/ldbl-opt/libm-alias-ldouble.h: Include
6527         <bits/floatn.h>.
6528         [__HAVE_FLOAT128 && !__HAVE_DISTINCT_FLOAT128]
6529         (libm_alias_ldouble_other_r): Also create _Float128 alias.
6530         * manual/math.texi (Mathematics): Document additional architecture
6531         support for _Float128.
6532         * sysdeps/unix/sysv/linux/aarch64/libc.abilist: Update.
6533         * sysdeps/unix/sysv/linux/aarch64/libm.abilist: Likewise.
6534         * sysdeps/unix/sysv/linux/alpha/libc.abilist: Likewise.
6535         * sysdeps/unix/sysv/linux/alpha/libm.abilist: Likewise.
6536         * sysdeps/unix/sysv/linux/mips/mips64/libm.abilist: Likewise.
6537         * sysdeps/unix/sysv/linux/mips/mips64/n32/libc.abilist: Likewise.
6538         * sysdeps/unix/sysv/linux/mips/mips64/n64/libc.abilist: Likewise.
6539         * sysdeps/unix/sysv/linux/s390/s390-32/libc.abilist: Likewise.
6540         * sysdeps/unix/sysv/linux/s390/s390-32/libm.abilist: Likewise.
6541         * sysdeps/unix/sysv/linux/s390/s390-64/libc.abilist: Likewise.
6542         * sysdeps/unix/sysv/linux/s390/s390-64/libm.abilist: Likewise.
6543         * sysdeps/unix/sysv/linux/sparc/sparc32/libc.abilist: Likewise.
6544         * sysdeps/unix/sysv/linux/sparc/sparc32/libm.abilist: Likewise.
6545         * sysdeps/unix/sysv/linux/sparc/sparc64/libc.abilist: Likewise.
6546         * sysdeps/unix/sysv/linux/sparc/sparc64/libm.abilist: Likewise.
6548 2017-10-18  Renlin Li  <renlin.li@arm.com>
6550         * sysdeps/aarch64/dl-machine.h (elf_machine_load_address): Use
6551         _DYNAMIC symbol to calculate load address.
6553 2017-10-18  Paul A. Clarke  <pc@us.ibm.com>
6555         * sysdeps/powerpc/fpu/fenv_private.h (_FPU_MASK_TRAPS_RN):
6556         (_FPU_MASK_FRAC_INEX_RET_CC): Fix masks to more properly handle
6557         summary bits.
6558         (_FPU_MASK_RN): Expand _FPU_MASK_RN to 64bit hex.
6559         (_FPU_MASK_NOT_RN_NI): Treat bit 52 (left-to-right) as reserved.
6561 2017-10-18  Mike FABIAN  <mfabian@redhat.com>
6563         [BZ #16777]
6564         * localedata/locales/pl_PL (LC_MONETARY): Use U+202F as mon_thousands_sep
6565         and improve readability by using more ASCII.
6566         * localedata/locales/pl_PL (LC_NUMERIC): Use U+202F as thousands_sep
6567         and improve readability by using more ASCII.
6569 2017-10-18  Wilco Dijkstra  <wdijkstr@arm.com>
6571         * malloc/malloc.c (malloc_state): Use int for have_fastchunks since
6572         not all targets support atomics on bool.
6574 2017-10-17  Joseph Myers  <joseph@codesourcery.com>
6576         * include/float.h [!__GNUC_PREREQ (7, 0) && __HAVE_FLOAT128 &&
6577         __GLIBC_USE (IEC_60559_TYPES_EXT)] (FLT128_MAX): Define using
6578         __f128.
6579         [!__GNUC_PREREQ (7, 0) && __HAVE_FLOAT128 && __GLIBC_USE
6580         (IEC_60559_TYPES_EXT)] (FLT128_EPSILON): Likewise.
6581         [!__GNUC_PREREQ (7, 0) && __HAVE_FLOAT128 && __GLIBC_USE
6582         (IEC_60559_TYPES_EXT)] (FLT128_MIN): Likewise.
6583         [!__GNUC_PREREQ (7, 0) && __HAVE_FLOAT128 && __GLIBC_USE
6584         (IEC_60559_TYPES_EXT)] (FLT128_TRUE_MIN): Likewise.
6586 2017-10-17  Adhemerval Zanella  <adhemerval.zanella@linaro.org>
6588         * bits/uio-ext.h (RWF_HIPRI, RWF_DSYNC, RWF_SYNC, RWF_NOWAIT): New
6589         defines.
6591 2017-10-17  Wilco Dijkstra  <wdijkstr@arm.com>
6593         [BZ #22159]
6594         * malloc/arena.c (ptmalloc_init): Call malloc_init_state.
6595         * malloc/malloc.c (do_check_free_chunk): Fix build bug.
6596         (do_check_remalloced_chunk): Fix build bug.
6597         (do_check_malloc_state): Add assert that checks arena->top.
6598         (malloc_consolidate): Remove initialization.
6599         (int_mallinfo): Remove call to malloc_consolidate.
6600          (__libc_mallopt): Clarify why malloc_consolidate is needed.
6602 2017-10-17  Wilco Dijkstra  <wdijkstr@arm.com>
6604         * malloc/malloc.c (FASTCHUNKS_BIT): Remove.
6605         (have_fastchunks): Remove.
6606         (clear_fastchunks): Remove.
6607         (set_fastchunks): Remove.
6608         (malloc_state): Add have_fastchunks.
6609         (malloc_init_state): Use have_fastchunks.
6610         (do_check_malloc_state): Remove incorrect invariant checks.
6611         (_int_malloc): Use have_fastchunks.
6612         (_int_free): Likewise.
6613         (malloc_consolidate): Likewise.
6615 2017-10-17  Wilco Dijkstra  <wdijkstr@arm.com>
6617         * malloc/malloc.c (tcache_put): Inline.
6618         (tcache_get): Inline.
6620 2017-10-17  Jordi Mallach  <jordi@gnu.org>
6622         Aurelien Jarno  <aurelien@aurel32.net>
6623         [BZ #2522]
6624         * localedata/locales/ca_ES@valencia: New file.
6625         * localedata/SUPPORTED: Add ca_ES@valencia/UTF-8.
6627 2017-10-17  Romain Naour  <romain.naour@gmail.com>  (tiny change)
6629         [BZ #22296]
6630         * math/math.h: Let signbit use the builtin in C++ mode with gcc
6631         < 6.x
6633 2017-10-17  Adhemerval Zanella  <adhemerval.zanella@linaro.org>
6635         * scripts/build-many-glibcs.py (Context.add_all_configs):
6636         Add arm-linux-gnueabihf multiarch extra_glibcs.
6638         * sysdeps/generic/ifunc-init.h: New file.
6639         * sysdeps/x86/init-arch.h: Use generic ifunc-init.h.
6641 2017-10-17  Mike FABIAN  <mfabian@redhat.com>
6643         [BZ #22019]
6644         * localedata/locales/el_GR: Set n_cs_precedes to 0.
6645         * localedata/locales/el_CY: copy "el_GR" because it is identical.
6646         * stdlib/tst-strfmon_l.c: adapt test case.
6648 2017-10-16  Joseph Myers  <joseph@codesourcery.com>
6650         * sysdeps/generic/float128-abi.h: New file.
6651         * sysdeps/ieee754/float128/Versions (FLOAT128_VERSION): Move
6652         non-__prefixed symbols to ....
6653         * math/Versions: ... here.  Include <float128-abi.h>.
6654         * stdlib/Versions ... and here.  Include <float128-abi.h>
6656 2017-10-16  Florian Weimer  <fweimer@redhat.com>
6658         * version.h (VERSION): Switch to ".9000" as the development
6659         version suffix.
6661 2017-10-16  Florian Weimer  <fweimer@redhat.com>
6663         [BZ #22050]
6664         * malloc/mcheck-init.c (__malloc_initialize_hook): Use
6665         compat_symbol_reference to access non-default version.
6667 2017-10-16  Florian Weimer  <fweimer@redhat.com>
6669         * malloc/Makefile (others-extras): Set to mcheck-init.o.
6671 2017-10-16  Carlos O'Donell  <carlos@redhat.com>
6673         * include/shlib-compat.h (compat_symbol_reference): Update
6674         comment.
6676 2017-10-16  Joseph Myers  <joseph@codesourcery.com>
6678         * math/Makefile (test-types): Add
6679         $(type-float128-$(float128-alias-fcts)).
6680         * math/test-float128.h (TYPE_STR): Define conditional on
6681         [FLT128_MANT_DIG == LDBL_MANT_DIG].
6682         (ULP_IDX): Likewise.
6683         (ULP_I_IDX): Likewise.
6685         * stdlib/strtold.c: Include <bits/floatn.h>
6686         [__HAVE_FLOAT128 && !__HAVE_DISTINCT_FLOAT128] (strtof128): Define
6687         and later undefine as macro.  Define as weak alias if
6688         [!USE_WIDE_CHAR].
6689         [__HAVE_FLOAT128 && !__HAVE_DISTINCT_FLOAT128] (wcstof128): Define
6690         and later undefine as macro.  Define as weak alias if
6691         [USE_WIDE_CHAR].
6692         * sysdeps/ieee754/ldbl-128/strtold_l.c [__HAVE_FLOAT128 &&
6693         !__HAVE_DISTINCT_FLOAT128] (strtof128_l): Define and later
6694         undefine as macro.  Define as weak alias if [!USE_WIDE_CHAR].
6695         [__HAVE_FLOAT128 && !__HAVE_DISTINCT_FLOAT128] (wcstof128_l):
6696         Define and later undefine as macro.  Define as weak alias if
6697         [USE_WIDE_CHAR].
6698         * sysdeps/ieee754/ldbl-64-128/strtold_l.c: Include
6699         <bits/floatn.h>.
6700         [__HAVE_FLOAT128 && !__HAVE_DISTINCT_FLOAT128] (strtof128_l):
6701         Define and later undefine as macro.  Define as weak alias if
6702         [!USE_WIDE_CHAR].
6703         [__HAVE_FLOAT128 && !__HAVE_DISTINCT_FLOAT128] (wcstof128_l):
6704         Define and later undefine as macro.  Define as weak alias if
6705         [USE_WIDE_CHAR].
6707 2017-10-15  Carlos O'Donell  <carlos@redhat.com>
6709         * localedata/collate-test.c (allocate_arrays): Don't use \n in
6710         record_verbose messages.
6712 2017-10-15  H.J. Lu  <hongjiu.lu@intel.com>
6714         [BZ #22052]
6715         * malloc/hooks.c (realloc_check): Use DIAG_IGNORE_NEEDS_COMMENT
6716         to silence -O3 -Wall warning with GCC 7.
6718 2017-10-14  H.J. Lu  <hongjiu.lu@intel.com>
6720         * Makeconfig (+link-static-before-libc): Use the first of
6721         $(CRT-$(@F)) and $(csu-objpfx)$(static-start-installed-name).
6722         * gmon/Makefile (tests): Add tst-gmon-static.
6723         (tests-static): Likewise.
6724         (CFLAGS-tst-gmon-static.c): New.
6725         (CRT-tst-gmon-static): Likewise.
6726         (DEFAULT-LDFLAGS-tst-gmon-static): Likewise.
6727         (tst-gmon-static-ENV): Likewise.
6728         (tests-special): Likewise.
6729         ($(objpfx)tst-gmon-static.out): Likewise.
6730         (clean-tst-gmon-static-data): Likewise.
6731         ($(objpfx)tst-gmon-static-gprof.out): Likewise.
6732         * gmon/tst-gmon-static-gprof.sh: New file.
6733         * gmon/tst-gmon-static.c: Likewise.
6735 2017-10-13  Carlos O'Donell  <carlos@redhat.com>
6737         [BZ #22295]
6738         * locale/programs/linereader.c (get_string): Don't warn on
6739         non-symbolic character.
6741         [BZ #22294]
6742         * locale/programs/ld-monetary.c (monetary_finish): Allow ""
6743         int_curr_symbol.
6745         [BZ #22292]
6746         * locale/programs/record-status.h: New file
6747         * locale/programs/locale.c: Add comment.
6748         * locale/programs/charmap-dir.c: Don't include error.h.
6749         (charmap_opendir): Use record_error.
6750         * locale/programs/charmap.c: Don't include error.h.
6751         (charmap_read): Use record_error, and record_warning.
6752         (parse_charmap): Likewise.
6753         * locale/programs/ld-address.c: Don't include error.h.
6754         (address_finish): Use record_error, and record_warning.
6755         * locale/programs/ld-collate.c: Don't include error.h.
6756         (collate_finish): Use record_error, and record_error_at_line.
6757         * locale/programs/ld-ctype.c (ctype_finish): Use record_error.
6758         (ctype_class_new): Likewise.
6759         (ctype_map_new): Likewise.
6760         (set_one_default): Likewise.
6761         (set_class_defaults): Likewise.
6762         (translit_flatten): Likewise.
6763         (allocate_arrays): Use record_error, and record_verbose.
6764         * locale/programs/ld-identification.c: Don't include error.h.
6765         (indentation_finish): Use record_error and record_warning.
6766         * locale/programs/ld-measurement.c: Don't include error.h.
6767         (measurement_finish): Use record_error.
6768         * locale/programs/ld-messages.c
6769         (message_finish): Likewise.
6770         * locale/programs/ld-monetary.c
6771         (monetary_finish): Likewise.
6772         * locale/programs/ld-name.c (name_finish): Use record_error
6773         and record_warning.
6774         * locale/programs/ld-numeric.c
6775         (numeric_finish): Use record_error.
6776         * locale/programs/ld-paper.c: Don't include error.h.
6777         (paper_finish): Use record_error.
6778         * locale/programs/ld-telephone.c: Don't include error.h.
6779         (telephone_finish): Use record_error.
6780         * locale/programs/ld-time.c (time_finish): Likewise.
6781         * locale/programs/linereader.h (lr_error): Make inline func.
6782         * locale/programs/localedef.c: Define recorded_warning_count,
6783         and recorded_error_count.
6784         (main): Use record_error. Use recorded_error_count and
6785         recorded_warning_count to issue correct error returns.
6786         (add_to_readlist): Use record_error.
6787         (find_locale): Likewise.
6788         (load_locale): Likewise.
6789         * locale/programs/localedef.h: Remove be_quiet
6790         and WITH_CUR_LOCALE.
6791         * locale/programs/locarchive.c (compare_from_file): Use
6792         record_error.
6793         * locale/programs/locfile.c (write_locale_data): Use
6794         record_error.
6795         * locale/programs/repertoire.c: Dont include error.h.
6796         (repertoire_complain): Use record_error.
6797         * localedata/tst-fmon.sh: Expect failures from localedef.
6798         * localedata/tst-locale.sh: Likewise.
6799         * localedata/gen-locale.sh: Expect failures from SHIFT_JIS.
6801         * localedata/unicode-gen/Makefile (GENERATED): Use i18n_ctype.
6802         (REPORTS): Likewise.
6803         (check): Likewise.
6804         (i18n): Rename to...
6805         (i18n_ctype): ...this.
6806         (i18n-report): Rename to...
6807         (i18n_ctype-report): ...this.
6808         * localedata/locales/i18n_ctype: Regenerate.
6809         * localedata/locales/i18n: copy i18n_ctype.
6811 2017-10-13  Joseph Myers  <joseph@codesourcery.com>
6813         * stdlib/strfroml.c: Include <bits/floatn.h>.
6814         [__HAVE_FLOAT128 && !__HAVE_DISTINCT_FLOAT128] (strfromf128):
6815         Define before include of <stdlib.h> and undefine afterwards, then
6816         define as weak alias.
6818         * sysdeps/ieee754/ldbl-64-128/s_nextafterl.c (weak_alias):
6819         Undefine and restore default definition.  Use
6820         libm_alias_ldouble_other.
6822 2017-10-13  Peter Zelezny  <peter.zelezny@dektech.com.au>
6824         [BZ #22153]
6825         * nptl/allocatestack.c (__nptl_setxid_error): Preserve error code
6826         in coredumps.
6828 2017-10-13  James Clarke  <jrtc27@jrtc27.com>
6830         * sysdeps/powerpc/powerpc32/dl-machine.h (elf_machine_rela):
6831         Assign sym_map to be map for local symbols, as TLS relocations
6832         use sym_map to determine whether the symbol is defined and to
6833         extract the TLS information.
6834         * sysdeps/sparc/sparc32/dl-machine.h (elf_machine_rela): Likewise.
6835         * sysdeps/sparc/sparc64/dl-machine.h (elf_machine_rela): Likewise.
6837 2017-10-13  Tulio Magno Quites Machado Filho  <tuliom@linux.vnet.ibm.com>
6839         [BZ #22189]
6840         * sysdeps/powerpc/fpu/math_private.h (math_opt_barrier):
6841         (math_force_eval): Add powerpc version.
6843         [BZ #22142]
6844         * stdio-common/tst-printf.c (fp_test): Add tests for DBL_MAX and
6845         -DBL_MAX.
6846         (do_test): Likewise.
6847         * stdio-common/tst-printf.sh: Likewise.
6848         * sysdeps/powerpc/powerpc64/power7/add_n.S: Invert the initial
6849         ifdef clause in order to set the carry bit right.  Replace r0 by
6850         0 without changing the behavior.
6852 2017-10-13  Joseph Myers  <joseph@codesourcery.com>
6854         * sysdeps/sparc/sparc32/fpu/s_fabsl.c: Include
6855         <libm-alias-ldouble.h>.
6856         (fabsl): Define using libm_alias_ldouble.
6857         * sysdeps/sparc/sparc64/fpu/s_fabsl.c: Include
6858         <libm-alias-ldouble.h>.
6859         (fabsl): Define using libm_alias_ldouble.
6861         * sysdeps/ieee754/ldbl-opt/w_lgamma_compatl.c [BUILD_LGAMMA]:
6862         Remove conditional code.
6864         * sysdeps/ieee754/ldbl-opt/s_clog10l.c (__clog10l__internal):
6865         Rename to __clog10_internal_l.
6866         (__clog10_internal_l): Define aliases using
6867         libm_alias_ldouble_other instead of using libm_alias_ldouble_other
6868         with __clog10.
6870 2017-10-13  Rajalakshmi Srinivasaraghavan  <raji@linux.vnet.ibm.com>
6872         * benchtests/Makefile (bench-math):  Add sinf, cosf and sincosf.
6873         * benchtests/sincosf-inputs: New file.
6874         * benchtests/cosf-inputs: New file.
6875         * benchtests/sinf-inputs: New file.
6877 2017-10-12  Szabolcs Nagy  <szabolcs.nagy@arm.com>
6879         * posix/tst-spawn.c (do_test): Wait for both children.
6881 2017-10-12  H.J. Lu  <hongjiu.lu@intel.com>
6883         [BZ #22284]
6884         * gmon/Makefile [$(have-fpie)$(build-shared) == yesyes] (tests,
6885         tests-pie): Add tst-gmon-pie.
6886         (CFLAGS-tst-gmon-pie.c): New.
6887         (CRT-tst-gmon-pie): Likewise.
6888         (tst-gmon-pie-ENV): Likewise.
6889         [$(have-fpie)$(build-shared) == yesyes] (tests-special): Likewise.
6890         ($(objpfx)tst-gmon-pie.out): Likewise.
6891         (clean-tst-gmon-pie-data): Likewise.
6892         ($(objpfx)tst-gmon-pie-gprof.out): Likewise.
6893         * gmon/gmon.c [PIC]: Include <link.h>.
6894         [PIC] (callback): New function.
6895         (write_hist): Add an argument for load address.  Subtract load
6896         address from PCs.
6897         (write_call_graph): Likewise.
6898         (write_gmon): Call __dl_iterate_phdr to get load address, pass
6899         it to write_hist and write_call_graph.
6900         * gmon/tst-gmon-pie.c: New file.
6902 2017-10-11  Joseph Myers  <joseph@codesourcery.com>
6904         * math/Makefile (test-types-basic): New variable.
6905         (test-types): Likewise.
6906         (libm-test-support): Use $(test-types) instead of $(types).
6907         (libm-tests-base-normal): Likewise.
6908         (libm-tests-base-finite): Likewise.
6909         (libm-tests-base-inline): Likewise.
6910         (generated): Likewise.
6911         ($(objpfx)libm-test-support-$(t).c): Likewise.
6912         (libm-tests-for-type iterator): Likewise.
6913         (libm-test-support iterator): Likewise.
6914         * math/libm-test-support.c (ulp_i_idx): Use ULP_I_IDX.
6915         (ulp_idx): Use ULP_IDX.
6916         * math/test-ldouble.h: Include <float.h>.
6917         (TYPE_STR): Define conditional on [LDBL_MANT_DIG == DBL_MANT_DIG].
6918         (ULP_IDX): New macro.
6919         (ULP_I_IDX): Likewise.
6920         * math/test-double.h (ULP_IDX): Likewise.
6921         (ULP_I_IDX): Likewise.
6922         * math/test-float.h (ULP_IDX): Likewise.
6923         (ULP_I_IDX): Likewise.
6924         * math/test-float128.h (ULP_IDX): Likewise.
6925         (ULP_I_IDX): Likewise.
6927 2017-10-11  Adhemerval Zanella  <adhemerval.zanella@linaro.org>
6929         * sysdeps/unix/sysv/linux/aarch64/sysdep-cancel.h: Remove file.
6930         * sysdeps/unix/sysv/linux/alpha/sysdep-cancel.h: Likewise.
6931         * sysdeps/unix/sysv/linux/arm/sysdep-cancel.h: Likewise.
6932         * sysdeps/unix/sysv/linux/hppa/sysdep-cancel.h: Likewise.
6933         * sysdeps/unix/sysv/linux/mips/sysdep-cancel.h: Likewise.
6934         * sysdeps/unix/sysv/linux/nios2/sysdep-cancel.h: Likewise.
6935         * sysdeps/unix/sysv/linux/powerpc/sysdep-cancel.h: Likewise.
6936         * sysdeps/unix/sysv/linux/s390/s390-32/sysdep-cancel.h: Likewise.
6937         * sysdeps/unix/sysv/linux/s390/s390-64/sysdep-cancel.h: Likewise.
6938         * sysdeps/unix/sysv/linux/sh/sysdep-cancel.h: Likewise.
6939         * sysdeps/unix/sysv/linux/sparc/sysdep-cancel.h: Likewise.
6940         * sysdeps/unix/sysv/linux/tile/sysdep-cancel.h: Likewise.
6941         * sysdeps/unix/sysv/linux/x86_64/sysdep-cancel.h: Likewise.
6942         * sysdeps/unix/sysv/linux/s390/s390-64/sysdep.h
6943         (SINGLE_THREAD_BY_GLOBAL): Define.
6944         * sysdeps/unix/sysv/linux/aarch64/sysdep.h (SINGLE_THREAD_BY_GLOBAL):
6945         Likewise.
6946         * sysdeps/unix/sysv/linux/alpha/sysdep.h (SINGLE_THREAD_BY_GLOBAL):
6947         Likewise.
6948         * sysdeps/unix/sysv/linux/arm/sysdep.h (SINGLE_THREAD_BY_GLOBAL):
6949         Likewise.
6950         * sysdeps/unix/sysv/linux/hppa/sysdep.h (SINGLE_THREAD_BY_GLOBAL):
6951         Likewise.
6952         * sysdeps/unix/sysv/linux/microblaze/sysdep.h
6953         (SINGLE_THREAD_BY_GLOBAL): Likewise.
6954         * sysdeps/unix/sysv/linux/x86_64/sysdep.h (SINGLE_THREAD_BY_GLOBAL):
6955         Likewise.
6957 2017-10-11  Andreas Schwab  <schwab@suse.de>
6959         * nis/Makefile (aux): Remove.
6960         * nscd/Makefile (aux): Add nscd_hash.
6961         (nscd-modules): Likewise.
6962         ($(objpfx)nscd): Don't depend on libnsl.
6963         * nscd/nscd_hash.c: New file.
6964         * nscd/nscd_hash.h: Likewise.
6965         * nscd/cache.c: Include "nscd_hash.h" instead of <rpcsvc/nis.h>.
6966         (cache_search, cache_add): Use __nscd_hash instead of __nis_hash.
6967         * nscd/nscd_helper.c: Include <sys/param.h> and "nscd_hash.h"
6968         instead of <nis/rpcsvc/nis.h>.
6969         (__nscd_cache_search): Use __nscd_hash instead of __nis_hash.
6971 2017-10-11  Florian Weimer  <fweimer@redhat.com>
6973         [BZ #22078]
6974         Avoid large NSS buffers with many addresses, aliases.
6975         * nss/nss_files/files-hosts.c (gethostbyname3_multi): Rewrite
6976         using dynarrays and struct alloc_buffer.
6977         * nss/Makefile (tests): Add tst-nss-files-hosts-multi.
6978         (tst-nss-files-hosts-multi): Link with -ldl.
6979         * nss/tst-nss-files-hosts-multi.c: New file.
6981 2017-10-11  Florian Weimer  <fweimer@redhat.com>
6983         [BZ #18023]
6984         * nss/nss_files/files-hosts.c (gethostbyname3_multi): Use struct
6985         scratch_buffer.  Eliminate gotos.
6987 2017-10-11  Joseph Myers  <joseph@codesourcery.com>
6989         * sysdeps/ieee754/ldbl-opt/s_clog10l.c: Use
6990         libm_alias_ldouble_other.
6991         * sysdeps/ieee754/ldbl-opt/w_exp10l_compat.c (weak_alias): Do not
6992         undefine and redefine.
6993         [LIBM_SVID_COMPAT && !LONG_DOUBLE_COMPAT (libm, GLIBC_2_1)]
6994         (exp10l): Do not define here.
6995         * sysdeps/ieee754/ldbl-opt/w_lgamma_compatl.c [BUILD_LGAMMA]
6996         (weak_alias): Undefine and redefine.
6997         [BUILD_LGAMMA]: Use libm_alias_ldouble_other.
6998         * sysdeps/ieee754/ldbl-opt/w_remainderl_compat.c
6999         [LIBM_SVID_COMPAT] (weak_alias): Undefine and redefine here.
7000         [LIBM_SVID_COMPAT]: Use libm_alias_ldouble_other.
7002         * soft-fp/fmadf4.c: Include <libm-alias-double.h>.
7003         [!__fma] (fma): Define using libm_alias_double.
7004         * soft-fp/fmasf4.c: Include <libm-alias-float.h>.
7005         [!__fmaf] (fmaf): Define using libm_alias_float.
7006         * soft-fp/fmatf4.c: Include <libm-alias-ldouble.h>.
7007         (fmal): Define using libm_alias_ldouble.
7009 2017-10-10  Joseph Myers  <joseph@codesourcery.com>
7011         * sysdeps/generic/libm-alias-double.h (libm_alias_double_other_r):
7012         New macro.
7013         (libm_alias_double_other): Likewise.
7014         (libm_alias_double_r): Use libm_alias_double_other_r.
7015         * sysdeps/generic/libm-alias-float.h (libm_alias_float_other_r):
7016         New macro.
7017         (libm_alias_float_other): Likewise.
7018         (libm_alias_float_r): Use libm_alias_float_other_r.
7019         * sysdeps/generic/libm-alias-float128.h
7020         (libm_alias_float128_other_r): New macro.
7021         (libm_alias_float128_other): Likewise.
7022         (libm_alias_float128_r): Use libm_alias_float128_other_r.
7023         * sysdeps/generic/libm-alias-ldouble.h
7024         (libm_alias_ldouble_other_r): New macro.
7025         (libm_alias_ldouble_other): Likewise.
7026         (libm_alias_ldouble_r): Use libm_alias_ldouble_other_r.
7027         * sysdeps/ieee754/ldbl-opt/libm-alias-double.h
7028         (libm_alias_double_other_r): New macro.
7029         (libm_alias_double_other): Likewise.
7030         (libm_alias_double_r): Use libm_alias_double_other_r.
7031         * sysdeps/ieee754/ldbl-opt/libm-alias-ldouble.h
7032         (libm_alias_ldouble_other_r): New macro.
7033         (libm_alias_ldouble_other): Likewise.
7034         (libm_alias_ldouble_r): Use libm_alias_ldouble_other_r.
7035         * math/w_lgamma_main.c: Include <libm-alias-double.h>.
7036         [!USE_AS_COMPAT]: Use libm_alias_double_other.
7037         * math/w_lgammaf_main.c: Include <libm-alias-float.h>.
7038         [!USE_AS_COMPAT]: Use libm_alias_float_other.
7039         * math/w_lgammal_main.c: Include <libm-alias-ldouble.h>.
7040         [!USE_AS_COMPAT]: Use libm_alias_ldouble_other.
7041         * math/w_exp2f.c: Use libm_alias_float_other.
7042         * math/w_expf.c: Likewise.
7043         * math/w_log2f.c: Likewise.
7044         * math/w_logf.c: Likewise.
7045         * math/w_powf.c: Likewise.
7046         * sysdeps/ieee754/flt-32/e_exp2f.c: Include <libm-alias-float.h>.
7047         [!__exp2f]: Use libm_alias_float_other.
7048         * sysdeps/ieee754/flt-32/e_expf.c: Include <libm-alias-float.h>.
7049         [!__expf]: Use libm_alias_float_other.
7050         * sysdeps/ieee754/flt-32/e_log2f.c: Include <libm-alias-float.h>.
7051         [!__log2f]: Use libm_alias_float_other.
7052         * sysdeps/ieee754/flt-32/e_logf.c: Include <libm-alias-float.h>.
7053         [!__logf]: Use libm_alias_float_other.
7054         * sysdeps/ieee754/flt-32/e_powf.c: Include <libm-alias-float.h>.
7055         [!__powf]: Use libm_alias_float_other.
7057 2017-10-10  Florian Weimer  <fweimer@redhat.com>
7059         * nss/nss_files/files-hosts.c (gethostbyname3_multi): New
7060         function.
7061         (_nss_files_gethostbyname3_r): Call it.
7063 2017-10-09  Joseph Myers  <joseph@codesourcery.com>
7065         * sysdeps/generic/math-type-macros.h [!declare_mgen_alias]: Give
7066         error.  Remove default definition of declare_mgen_alias.
7067         [!declare_mgen_alias_r]: Likewise.
7068         * sysdeps/generic/math-type-macros-double.h
7069         [!declare_mgen_alias_r] (declare_mgen_alias_r): New macro.
7070         * sysdeps/generic/math-type-macros-float.h [!declare_mgen_alias_r]
7071         (declare_mgen_alias_r): Likewise.
7072         * sysdeps/generic/math-type-macros-float128.h
7073         [!declare_mgen_alias_r] (declare_mgen_alias_r): Likewise.
7074         * sysdeps/generic/math-type-macros-ldouble.h
7075         [!declare_mgen_alias_r] (declare_mgen_alias_r): Likewise.
7076         * math/w_lgamma_r_template.c (declare_mgen_alias_r_x): Remove
7077         macro.
7078         (declare_mgen_alias_r_s): Likewise.
7079         (declare_mgen_alias_r): Likewise.
7080         * math/w_lgamma_r_compat.c: Include <libm-alias-double.h>.
7081         (lgamma_r): Define using libm_alias_double_r.
7082         * math/w_lgammaf_r_compat.c: Include <libm-alias-float.h>.
7083         (lgammaf_r): Define using libm_alias_float_r.
7084         * math/w_lgammal_r_compat.c: Include <libm-alias-ldouble.h>.
7085         (lgammal_r): Define using libm_alias_ldouble_r.
7086         * sysdeps/ieee754/ldbl-opt/w_lgamma_r_compat.c: Remove file.
7087         * sysdeps/ieee754/ldbl-opt/w_lgammal_r_compat.c: Likewise.
7089 2017-10-09  Adhemerval Zanella  <adhemerval.zanella@linaro.org>
7091         * lib/glob.c (__glob_pattern_type): Remove now-spurious
7092         extern declaration.
7094 2017-10-09  Joseph Myers  <joseph@codesourcery.com>
7096         * sysdeps/ieee754/ldbl-opt/w_scalbln.c: Remove file.
7098 2017-10-09  Jonathan Wakely  <jwakely@redhat.com>
7100         [BZ #21326]
7101         * include/features.h [__cplusplus >= 201703] (__USE_ISOC11): Define.
7102         [__cplusplus >= 201103] (__USE_ISOC99): Define.
7103         * math/Makefile (test-math-cxx11): New test.
7104         * math/test-math-cxx11.cc: New file.
7106 2017-10-08  Christian Brauner  <christian.brauner@ubuntu.com>
7108         * login/openpty.c (openpty): Close slave pty file descriptor on error.
7110         * login/openpty.c (openpty): If defined, use the TIOCGPTPEER ioctl()
7111         call to allocate the slave pty file descriptor.
7113 2017-10-06  Joseph Myers  <joseph@codesourcery.com>
7115         * sysdeps/ieee754/ldbl-128/s_fma.c: Include <libm-alias-double.h>.
7116         [!__fma] (fma): Define using libm_alias_double.
7117         * sysdeps/ieee754/ldbl-96/s_fma.c: Include <libm-alias-double.h>.
7118         [!__fma] (fma): Define using libm_alias_double.
7120         * sysdeps/ieee754/float128/float128_private.h: Include
7121         <libm-alias-ldouble.h> and <libm-alias-float128.h>.
7122         (libm_alias_ldouble_r): Undefine and redefine.
7123         * sysdeps/ieee754/ldbl-128/s_asinhl.c: Include
7124         <libm-alias-ldouble.h>.
7125         (asinhl): Define using libm_alias_ldouble.
7126         * sysdeps/ieee754/ldbl-128/s_atanl.c: Include
7127         <libm-alias-ldouble.h>.
7128         (atanl): Define using libm_alias_ldouble.
7129         * sysdeps/ieee754/ldbl-128/s_cbrtl.c: Include
7130         <libm-alias-ldouble.h>.
7131         (cbrtl): Define using libm_alias_ldouble.
7132         * sysdeps/ieee754/ldbl-128/s_ceill.c: Include
7133         <libm-alias-ldouble.h>.
7134         (ceill): Define using libm_alias_ldouble.
7135         * sysdeps/ieee754/ldbl-128/s_copysignl.c: Include
7136         <libm-alias-ldouble.h>.
7137         (copysignl): Define using libm_alias_ldouble.
7138         * sysdeps/ieee754/ldbl-128/s_cosl.c: Include
7139         <libm-alias-ldouble.h>.
7140         (cosl): Define using libm_alias_ldouble.
7141         * sysdeps/ieee754/ldbl-128/s_erfl.c: Include
7142         <libm-alias-ldouble.h>.
7143         (erfl): Define using libm_alias_ldouble.
7144         (erfcl): Likewise.
7145         * sysdeps/ieee754/ldbl-128/s_expm1l.c: Include
7146         <libm-alias-ldouble.h>.
7147         (expm1l): Define using libm_alias_ldouble.
7148         * sysdeps/ieee754/ldbl-128/s_fabsl.c: Include
7149         <libm-alias-ldouble.h>.
7150         (fabsl): Define using libm_alias_ldouble.
7151         * sysdeps/ieee754/ldbl-128/s_floorl.c: Include
7152         <libm-alias-ldouble.h>.
7153         (floorl): Define using libm_alias_ldouble.
7154         * sysdeps/ieee754/ldbl-128/s_fmal.c: Include
7155         <libm-alias-ldouble.h>.
7156         (fmal): Define using libm_alias_ldouble.
7157         * sysdeps/ieee754/ldbl-128/s_frexpl.c: Include
7158         <libm-alias-ldouble.h>.
7159         (frexpl): Define using libm_alias_ldouble.
7160         * sysdeps/ieee754/ldbl-128/s_fromfpl.c (fromfpl): Define using
7161         libm_alias_ldouble.
7162         * sysdeps/ieee754/ldbl-128/s_fromfpl_main.c: Include
7163         <libm-alias-ldouble.h>.
7164         * sysdeps/ieee754/ldbl-128/s_fromfpxl.c (fromfpxl): Define using
7165         libm_alias_ldouble.
7166         * sysdeps/ieee754/ldbl-128/s_getpayloadl.c: Include
7167         <libm-alias-ldouble.h>.
7168         (getpayloadl): Define using libm_alias_ldouble.
7169         * sysdeps/ieee754/ldbl-128/s_llrintl.c: Include
7170         <libm-alias-ldouble.h>.
7171         (llrintl): Define using libm_alias_ldouble.
7172         * sysdeps/ieee754/ldbl-128/s_llroundl.c: Include
7173         <libm-alias-ldouble.h>.
7174         (llroundl): Define using libm_alias_ldouble.
7175         * sysdeps/ieee754/ldbl-128/s_logbl.c: Include
7176         <libm-alias-ldouble.h>.
7177         (logbl): Define using libm_alias_ldouble.
7178         * sysdeps/ieee754/ldbl-128/s_lrintl.c: Include
7179         <libm-alias-ldouble.h>.
7180         (lrintl): Define using libm_alias_ldouble.
7181         * sysdeps/ieee754/ldbl-128/s_lroundl.c: Include
7182         <libm-alias-ldouble.h>.
7183         (lroundl): Define using libm_alias_ldouble.
7184         * sysdeps/ieee754/ldbl-128/s_modfl.c: Include
7185         <libm-alias-ldouble.h>.
7186         (modfl): Define using libm_alias_ldouble.
7187         * sysdeps/ieee754/ldbl-128/s_nearbyintl.c: Include
7188         <libm-alias-ldouble.h>.
7189         (nearbyintl): Define using libm_alias_ldouble.
7190         * sysdeps/ieee754/ldbl-128/s_nextafterl.c: Include
7191         <libm-alias-ldouble.h>.
7192         (nextafterl): Define using libm_alias_ldouble.
7193         * sysdeps/ieee754/ldbl-128/s_nextupl.c: Include
7194         <libm-alias-ldouble.h>.
7195         (nextupl): Define using libm_alias_ldouble.
7196         * sysdeps/ieee754/ldbl-128/s_remquol.c: Include
7197         <libm-alias-ldouble.h>.
7198         (remquol): Define using libm_alias_ldouble.
7199         * sysdeps/ieee754/ldbl-128/s_rintl.c: Include
7200         <libm-alias-ldouble.h>.
7201         (rintl): Define using libm_alias_ldouble.
7202         * sysdeps/ieee754/ldbl-128/s_roundevenl.c: Include
7203         <libm-alias-ldouble.h>.
7204         (roundevenl): Define using libm_alias_ldouble.
7205         * sysdeps/ieee754/ldbl-128/s_roundl.c: Include
7206         <libm-alias-ldouble.h>.
7207         (roundl): Define using libm_alias_ldouble.
7208         * sysdeps/ieee754/ldbl-128/s_setpayloadl.c (setpayloadl): Define
7209         using libm_alias_ldouble.
7210         * sysdeps/ieee754/ldbl-128/s_setpayloadl_main.c: Include
7211         <libm-alias-ldouble.h>.
7212         * sysdeps/ieee754/ldbl-128/s_setpayloadsigl.c (setpayloadsigl):
7213         Define using libm_alias_ldouble.
7214         * sysdeps/ieee754/ldbl-128/s_sincosl.c: Include
7215         <libm-alias-ldouble.h>.
7216         (sincosl): Define using libm_alias_ldouble.
7217         * sysdeps/ieee754/ldbl-128/s_sinl.c: Include
7218         <libm-alias-ldouble.h>.
7219         (sinl): Define using libm_alias_ldouble.
7220         * sysdeps/ieee754/ldbl-128/s_tanhl.c: Include
7221         <libm-alias-ldouble.h>.
7222         (tanhl): Define using libm_alias_ldouble.
7223         * sysdeps/ieee754/ldbl-128/s_tanl.c: Include
7224         <libm-alias-ldouble.h>.
7225         (tanl): Define using libm_alias_ldouble.
7226         * sysdeps/ieee754/ldbl-128/s_totalorderl.c: Include
7227         <libm-alias-ldouble.h>.
7228         (totalorderl): Define using libm_alias_ldouble.
7229         * sysdeps/ieee754/ldbl-128/s_totalordermagl.c: Include
7230         <libm-alias-ldouble.h>.
7231         (totalordermagl): Define using libm_alias_ldouble.
7232         * sysdeps/ieee754/ldbl-128/s_truncl.c: Include
7233         <libm-alias-ldouble.h>.
7234         (truncl): Define using libm_alias_ldouble.
7235         * sysdeps/ieee754/ldbl-128/s_ufromfpl.c (ufromfpl): Define using
7236         libm_alias_ldouble.
7237         * sysdeps/ieee754/ldbl-128/s_ufromfpxl.c (ufromfpxl): Define using
7238         libm_alias_ldouble.
7239         * sysdeps/ieee754/ldbl-64-128/s_copysignl.c: Include
7240         <libm-alias-ldouble.h>.
7241         (weak_alias): Do not undefine and redefine.
7242         [IS_IN (libc)] (libm_alias_ldouble): Undefine and redefine.
7243         (copysignl): Define with long_double_symbol only if [IS_IN
7244         (libc)].
7245         * sysdeps/ieee754/ldbl-64-128/s_frexpl.c: Include
7246         <libm-alias-ldouble.h>.
7247         (weak_alias): Do not undefine and redefine.
7248         [IS_IN (libc)] (libm_alias_ldouble): Undefine and redefine.
7249         (frexpl): Define with long_double_symbol only if [IS_IN (libc)].
7250         * sysdeps/ieee754/ldbl-64-128/s_modfl.c: Include
7251         <libm-alias-ldouble.h>.
7252         (weak_alias): Do not undefine and redefine.
7253         [IS_IN (libc)] (libm_alias_ldouble): Undefine and redefine.
7254         (modfl): Define with long_double_symbol only if [IS_IN (libc)].
7255         * sysdeps/ieee754/ldbl-64-128/s_asinhl.c: Remove file.
7256         * sysdeps/ieee754/ldbl-64-128/s_atanl.c: Likewise.
7257         * sysdeps/ieee754/ldbl-64-128/s_cbrtl.c: Likewise.
7258         * sysdeps/ieee754/ldbl-64-128/s_ceill.c: Likewise.
7259         * sysdeps/ieee754/ldbl-64-128/s_cosl.c: Likewise.
7260         * sysdeps/ieee754/ldbl-64-128/s_erfl.c: Likewise.
7261         * sysdeps/ieee754/ldbl-64-128/s_expm1l.c: Likewise.
7262         * sysdeps/ieee754/ldbl-64-128/s_fabsl.c: Likewise.
7263         * sysdeps/ieee754/ldbl-64-128/s_floorl.c: Likewise.
7264         * sysdeps/ieee754/ldbl-64-128/s_fmal.c: Likewise.
7265         * sysdeps/ieee754/ldbl-64-128/s_llrintl.c: Likewise.
7266         * sysdeps/ieee754/ldbl-64-128/s_llroundl.c: Likewise.
7267         * sysdeps/ieee754/ldbl-64-128/s_logbl.c: Likewise.
7268         * sysdeps/ieee754/ldbl-64-128/s_lrintl.c: Likewise.
7269         * sysdeps/ieee754/ldbl-64-128/s_lroundl.c: Likewise.
7270         * sysdeps/ieee754/ldbl-64-128/s_nearbyintl.c: Likewise.
7271         * sysdeps/ieee754/ldbl-64-128/s_remquol.c: Likewise.
7272         * sysdeps/ieee754/ldbl-64-128/s_rintl.c: Likewise.
7273         * sysdeps/ieee754/ldbl-64-128/s_roundl.c: Likewise.
7274         * sysdeps/ieee754/ldbl-64-128/s_sincosl.c: Likewise.
7275         * sysdeps/ieee754/ldbl-64-128/s_sinl.c: Likewise.
7276         * sysdeps/ieee754/ldbl-64-128/s_tanhl.c: Likewise.
7277         * sysdeps/ieee754/ldbl-64-128/s_tanl.c: Likewise.
7278         * sysdeps/ieee754/ldbl-64-128/s_truncl.c: Likewise.
7280 2017-10-06  Carlos O'Donell  <carlos@redhat.com>
7282         [BZ #22111]
7283         * malloc/malloc.c (tcache_shutting_down): Use bool type.
7284         (tcache_thread_freeres): Set tcache_shutting_down before
7285         freeing the tcache.
7286         * malloc/Makefile (tests): Add tst-malloc-tcache-leak.
7287         * malloc/tst-malloc-tcache-leak.c: New file.
7289 2017-10-06  Rajalakshmi Srinivasaraghavan  <raji@linux.vnet.ibm.com>
7291         * sysdeps/powerpc/powerpc64/multiarch/memrchr-ppc64.c: Revert
7292         back to powerpc32 file.
7293         * sysdeps/powerpc/powerpc64/multiarch/memrchr.c
7294         (memrchr): Add __memrchr_power8 to ifunc list.
7295         * sysdeps/powerpc/powerpc64/power8/memrchr.S: Mask
7296         extra bytes for unaligned inputs.
7298 2017-10-06  Joseph Myers  <joseph@codesourcery.com>
7300         * sysdeps/ieee754/ldbl-64-128/e_ilogbl.c: Remove file.
7301         * sysdeps/ieee754/ldbl-64-128/s_log1pl.c: Likewise.
7302         * sysdeps/ieee754/ldbl-64-128/s_scalblnl.c: Likewise.
7303         * sysdeps/ieee754/ldbl-64-128/s_scalbnl.c: Likewise.
7304         * sysdeps/ieee754/ldbl-64-128/w_scalblnl.c: Likewise.
7306 2017-10-05  Joseph Myers  <joseph@codesourcery.com>
7308         * sysdeps/arm/libm-test-ulps: Update.
7310         * sysdeps/ieee754/ldbl-96/s_asinhl.c: Include
7311         <libm-alias-ldouble.h>.
7312         (asinhl): Define using libm_alias_ldouble.
7313         * sysdeps/ieee754/ldbl-96/s_cbrtl.c: Include
7314         <libm-alias-ldouble.h>.
7315         (cbrtl): Define using libm_alias_ldouble.
7316         * sysdeps/ieee754/ldbl-96/s_copysignl.c: Include
7317         <libm-alias-ldouble.h>.
7318         (copysignl): Define using libm_alias_ldouble.
7319         * sysdeps/ieee754/ldbl-96/s_cosl.c: Include
7320         <libm-alias-ldouble.h>.
7321         (cosl): Define using libm_alias_ldouble.
7322         * sysdeps/ieee754/ldbl-96/s_erfl.c: Include
7323         <libm-alias-ldouble.h>.
7324         (erfl): Define using libm_alias_ldouble.
7325         (erfcl): Likewise.
7326         * sysdeps/ieee754/ldbl-96/s_fmal.c: Include
7327         <libm-alias-ldouble.h>.
7328         (fmal): Define using libm_alias_ldouble.
7329         * sysdeps/ieee754/ldbl-96/s_frexpl.c: Include
7330         <libm-alias-ldouble.h>.
7331         (frexpl): Define using libm_alias_ldouble.
7332         * sysdeps/ieee754/ldbl-96/s_fromfpl.c (fromfpl): Define using
7333         libm_alias_ldouble.
7334         * sysdeps/ieee754/ldbl-96/s_fromfpl_main.c: Include
7335         <libm-alias-ldouble.h>.
7336         * sysdeps/ieee754/ldbl-96/s_fromfpxl.c (fromfpxl): Define using
7337         libm_alias_ldouble.
7338         * sysdeps/ieee754/ldbl-96/s_getpayloadl.c: Include
7339         <libm-alias-ldouble.h>.
7340         (getpayloadl): Define using libm_alias_ldouble.
7341         * sysdeps/ieee754/ldbl-96/s_llrintl.c: Include
7342         <libm-alias-ldouble.h>.
7343         (llrintl): Define using libm_alias_ldouble.
7344         * sysdeps/ieee754/ldbl-96/s_llroundl.c: Include
7345         <libm-alias-ldouble.h>.
7346         (llroundl): Define using libm_alias_ldouble.
7347         * sysdeps/ieee754/ldbl-96/s_lrintl.c: Include
7348         <libm-alias-ldouble.h>.
7349         (lrintl): Define using libm_alias_ldouble.
7350         * sysdeps/ieee754/ldbl-96/s_lroundl.c: Include
7351         <libm-alias-ldouble.h>.
7352         (lroundl): Define using libm_alias_ldouble.
7353         * sysdeps/ieee754/ldbl-96/s_modfl.c: Include
7354         <libm-alias-ldouble.h>.
7355         (modfl): Define using libm_alias_ldouble.
7356         * sysdeps/ieee754/ldbl-96/s_nextupl.c: Include
7357         <libm-alias-ldouble.h>.
7358         (nextupl): Define using libm_alias_ldouble.
7359         * sysdeps/ieee754/ldbl-96/s_remquol.c: Include
7360         <libm-alias-ldouble.h>.
7361         (remquol): Define using libm_alias_ldouble.
7362         * sysdeps/ieee754/ldbl-96/s_roundevenl.c: Include
7363         <libm-alias-ldouble.h>.
7364         (roundevenl): Define using libm_alias_ldouble.
7365         * sysdeps/ieee754/ldbl-96/s_roundl.c: Include
7366         <libm-alias-ldouble.h>.
7367         (roundl): Define using libm_alias_ldouble.
7368         * sysdeps/ieee754/ldbl-96/s_setpayloadl.c (setpayloadl): Define
7369         using libm_alias_ldouble.
7370         * sysdeps/ieee754/ldbl-96/s_setpayloadl_main.c: Include
7371         <libm-alias-ldouble.h>.
7372         * sysdeps/ieee754/ldbl-96/s_setpayloadsigl.c: Include
7373         <libm-alias-ldouble.h>.
7374         (setpayloadsigl): Define using libm_alias_ldouble.
7375         * sysdeps/ieee754/ldbl-96/s_sincosl.c: Include
7376         <libm-alias-ldouble.h>.
7377         (sincosl): Define using libm_alias_ldouble.
7378         * sysdeps/ieee754/ldbl-96/s_sinl.c: Include
7379         <libm-alias-ldouble.h>.
7380         (sinl): Define using libm_alias_ldouble.
7381         * sysdeps/ieee754/ldbl-96/s_tanhl.c: Include
7382         <libm-alias-ldouble.h>.
7383         (tanhl): Define using libm_alias_ldouble.
7384         * sysdeps/ieee754/ldbl-96/s_tanl.c: Include
7385         <libm-alias-ldouble.h>.
7386         (tanl): Define using libm_alias_ldouble.
7387         * sysdeps/ieee754/ldbl-96/s_totalorderl.c: Include
7388         <libm-alias-ldouble.h>.
7389         (totalorderl): Define using libm_alias_ldouble.
7390         * sysdeps/ieee754/ldbl-96/s_totalordermagl.c: Include
7391         <libm-alias-ldouble.h>.
7392         (totalordermagl): Define using libm_alias_ldouble.
7393         * sysdeps/ieee754/ldbl-96/s_ufromfpl.c (ufromfpl): Define using
7394         libm_alias_ldouble.
7395         * sysdeps/ieee754/ldbl-96/s_ufromfpxl.c (ufromfpxl): Define using
7396         libm_alias_ldouble.
7398 2017-10-05  Siddhesh Poyarekar  <siddhesh@sourceware.org>
7400         * sysdeps/aarch64/multiarch/Makefile (sysdep_routines): Add
7401         memmove_falkor.
7402         * sysdeps/aarch64/multiarch/ifunc-impl-list.c
7403         (__libc_ifunc_impl_list): Likewise.
7404         * sysdeps/aarch64/multiarch/memmove.c: Likewise.
7405         * sysdeps/aarch64/multiarch/memmove_falkor.S: New file.
7407         * benchtests/bench-memmove-walk.c: New file.
7408         * benchtests/Makefile (string-benchset): Add it.
7410         * benchtests/bench-memset-walk.c: New file.
7411         * benchtests/Makefile (string-benchset): Add it.
7413         * benchtests/bench-memcpy-walk.c: New file.
7414         * benchtests/Makefile (string-benchset): Add it.
7416 2017-10-05  Florian Weimer  <fweimer@redhat.com>
7418         nscd: Eliminate compilation time dependency in the build output.
7419         * nscd/nscd_stat.c (STATDATA_VERSION)
7420         (STATDATA_VERSION_SELINUX_FLAG, STATDATA_VERSION_FLAGS)
7421         (STATDATA_VERSION_FULL): New macro definitions.
7422         (compilation): Remove.
7423         (struct statdata): Adjust version member.
7424         (send_stats): Set version from STATDATA_VERSION_FULL.
7425         (receive_print_stats): Verify version against STATDATA_VERSION_FULL.
7427 2017-10-05  Joseph Myers  <joseph@codesourcery.com>
7429         * configure.ac (--enable-add-ons): Remove option.
7430         (machine): Do not mention add-ons in comment.
7431         (LIBC_PRECONFIGURE): Likewise.
7432         (add_ons): Remove variable and sanity checks and logic to locate
7433         add-ons.
7434         (add_ons_automatic): Remove variable.
7435         (configured_add_ons): Likewise.
7436         (add_ons_sfx): Likewise.
7437         (add_ons_pfx): Likewise.
7438         (add_on_subdirs): Likewise.
7439         (sysnames_add_ons): Likewise.  Remove loop over add-ons and
7440         consideration of add-ons in Implies handling.
7441         (sysdeps_add_ons): Likewise.
7442         * configure: Regenerated.
7443         * libidn/configure.ac: Remove.
7444         * libidn/configure: Likewise.
7445         * sysdeps/unix/inet/configure.ac: New file.
7446         * sysdeps/unix/inet/configure: New generated file.
7447         * sysdeps/unix/inet/Subdirs: Add libidn.
7448         * Makeconfig (sysdeps-srcdirs): Remove variable.
7449         (+sysdep_dirs): Do not include $(sysdeps-srcdirs).
7450         ($(common-objpfx)config.status): Do not depend on add-on files.
7451         ($(common-objpfx)shlib-versions.v.i): Do not mention add-ons in
7452         comment.
7453         (all-subdirs): Do not include $(add-on-subdirs).
7454         * Makefile (dist-prepare): Do not use $(sysdeps-add-ons).
7455         * config.make.in (add-ons): Remove variable.
7456         (add-on-subdirs): Likewise.
7457         (sysdeps-add-ons): Likewise.
7458         * manual/Makefile (add-chapters): Remove.
7459         ($(objpfx)texis): Do not depend on $(add-chapters).
7460         (nonexamples): Do not handle $(add-chapters).
7461         (examples): Do not handle $(add-ons).
7462         (chapters.% top-menu.%): Do not pass '$(add-chapters)' to
7463         libc-texinfo.sh.
7464         * manual/install.texi (Installation): Do not mention add-ons.
7465         (--enable-add-ons): Do not document configure option.
7466         * INSTALL: Regenerated.
7467         * manual/libc-texinfo.sh: Do not handle $2 add-ons argument.
7468         * manual/maint.texi (Hierarchy Conventions): Do not mention
7469         add-ons.
7470         * scripts/build-many-glibcs.py (Glibc.build_glibc): Do not use
7471         --enable-add-ons.
7472         * scripts/gen-sorted.awk: Do not handle Subdirs files from
7473         add-ons.
7474         * scripts/test-installation.pl: Do not handle glibc-compat add-on.
7475         * sysdeps/nptl/Makeconfig: Do not mention add-ons in comment.
7477 2017-10-05  Andreas Schwab  <schwab@suse.de>
7479         [BZ #15142]
7480         * libio/genops.c (_IO_list_all_stamp): Delete.  All uses removed.
7481         (_IO_flush_all_lockp): Always lock list_all_lock.
7482         (_IO_flush_all_linebuffered): Likewise.
7483         (_IO_unbuffer_all): Likewise.
7485 2017-10-05  Florian Weimer  <fweimer@redhat.com>
7487         [BZ #15436]
7488         Do not flush stdio streams on abort.
7489         * stdlib/abort.c (fflush): Remove macro definition.
7490         (abort): Remove stages related to stdio flushing.
7492 2017-10-05  Florian Weimer  <fweimer@redhat.com>
7494         * gmon/Makefile (CFLAGS-tst-gmon.c): Add -fno-omit-frame-pointer.
7496 2017-10-05  Stefan Liebler  <stli@linux.vnet.ibm.com>
7498         * sysdeps/s390/fpu/libm-test-ulps: Regenerated.
7500 2017-10-05  Florian Weimer  <fweimer@redhat.com>
7502         * support/support_format_hostent.c (support_format_hostent): Add
7503         more error information for NETDB_INTERNAL.
7505 2017-10-04  H.J. Lu  <hongjiu.lu@intel.com>
7507         * config.h.in (NO_HIDDEN_EXTERN_FUNC_IN_PIE): New.
7508         * include/libc-symbols.h (__hidden_proto_hiddenattr): Add check
7509         for PIC and NO_HIDDEN_EXTERN_FUNC_IN_PIE.
7510         * sysdeps/i386/configure.ac (NO_HIDDEN_EXTERN_FUNC_IN_PIE): New
7511         AC_DEFINE if multi-arch is enabled.
7512         * sysdeps/i386/configure: Regenerated.
7514 2017-10-04  H.J. Lu  <hongjiu.lu@intel.com>
7516         * Makeconfig (+link-static-before-libc): Use
7517         $(DEFAULT-LDFLAGS-$(@F)).
7518         * elf/Makefile (CRT-tst-tls1-static-non-pie): New.
7519         (LDFLAGS-tst-tls1-static-non-pie): Renamed to ...
7520         (DEFAULT-LDFLAGS-tst-tls1-static-non-pie): This.
7522 2017-10-04  H.J. Lu  <hongjiu.lu@intel.com>
7524         * elf/Makefile (tests): Add tst-main1.
7525         (modules-names): Add tst-main1mod.
7526         ($(objpfx)tst-main1): New.
7527         (CRT-tst-main1): Likewise.
7528         (LDFLAGS-tst-main1): Likewise.
7529         (LDLIBS-tst-main1): Likewise.
7530         (tst-main1mod.so-no-z-defs): Likewise.
7531         * elf/tst-main1.c: New file.
7532         * elf/tst-main1mod.c: Likewise.
7534 2017-10-04  H.J. Lu  <hongjiu.lu@intel.com>
7536         * math/test-math-iscanonical.cc (do_test): Return errors != 0.
7538 2017-10-04  Joseph Myers  <joseph@codesourcery.com>
7540         * sysdeps/ieee754/dbl-64/s_fma.c: Include <libm-alias-double.h>.
7541         (fma): Define using libm_alias_double.
7542         * sysdeps/ieee754/ldbl-opt/s_fma.c: Remove file.
7543         * sysdeps/sparc/sparc32/fpu/s_fma.c: Do not include
7544         <math_ldbl_opt.h>.
7545         (fmal): Do not define as compat symbol here.
7546         * sysdeps/alpha/fpu/s_fma.c: New file.
7548 2017-10-04  Szabolcs Nagy  <szabolcs.nagy@arm.com>
7550         * sysdeps/aarch64/dl-machine.h (elf_machine_rela): Expand MIN.
7552 2017-10-04  Joseph Myers  <joseph@codesourcery.com>
7554         [BZ #22229]
7555         * sysdeps/sparc/sparc32/fpu/s_copysign.S: Include
7556         <math_ldbl_opt.h>
7557         (copysignl): Define as compat symbol at version GLIBC_2_0 for libm
7558         and libc.
7559         * sysdeps/sparc/sparc32/fpu/s_fabs.S: Include <math_ldbl_opt.h>.
7560         (fabsl): Define as compat symbol at version GLIBC_2_0 for libm.
7561         * sysdeps/sparc/sparc32/fpu/s_fma.c: Include <math_ldbl_opt.h>.
7562         (fmal): Define as compat symbol at version GLIBC_2_1 for libm.
7563         * sysdeps/sparc/sparc32/sparcv9/fpu/multiarch/s_copysign.S:
7564         Include <math_ldbl_opt.h>
7565         (copysignl): Define as compat symbol at version GLIBC_2_0 for libm
7566         and libc.
7567         (compat_symbol): Undefine and redefine.
7568         * sysdeps/sparc/sparc32/sparcv9/fpu/multiarch/s_fabs.S: Include
7569         <math_ldbl_opt.h>
7570         (fabsl): Define as compat symbol at version GLIBC_2_0 for libm.
7571         (compat_symbol): Undefine and redefine.
7572         * sysdeps/sparc/sparc32/sparcv9/fpu/multiarch/s_fma.c
7573         [HAVE_AS_VIS3_SUPPORT]: Include <math_ldbl_opt.h>.
7574         [HAVE_AS_VIS3_SUPPORT] (fmal): Define as compat symbol at version
7575         GLIBC_2_1 for libm.
7576         * sysdeps/unix/sysv/linux/sparc/sparc32/libc.abilist: Add
7577         GLIBC_2.0 copysignl symbol.
7578         * sysdeps/unix/sysv/linux/sparc/sparc32/libm.abilist: Add
7579         GLIBC_2.0 copysignl and fabsl and GLIBC_2.1 fmal symbols.
7581         * sysdeps/alpha/fpu/s_nearbyint.c: Remove file.
7583 2017-10-04  Florian Weimer  <fweimer@redhat.com>
7585         * scripts/check-local-headers.sh: Ignore nspr4 header file
7586         directory in addition to nspr.
7588 2017-10-04  Guido Trentalancia  <guido@trentalancia.net>
7590         [BZ #17956]
7591         * configure.ac (--enable-nss-crypt): Use NSPR include directory.
7592         * configure: Regenerate.
7593         * crypt/Makefile (nss-cpp-flags): New variable.
7594         (CPPFLAGS-sha256-crypt.c, CPPFLAGS-sha512-crypt.c)
7595         (CPPFLAGS-md5-crypt.c): Use it.
7596         * scripts/check-local-headers.sh: Ignore nspr header file
7597         directory.
7599 2017-10-04  Andreas Schwab  <schwab@suse.de>
7601         * nis/Makefile (services): Remove compat.
7602         (libnss_compat-routines, libnss_compat-inhibit-o): Don't define.
7603         ($(objpfx)libnss_compat.so): Remove rule.
7604         * nis/Versions (libnss_compat): Remove.
7605         * nss/Makefile (services): Add compat.
7606         (libnss_compat-routines, libnss_compat-inhibit-o): Define.
7607         * nss/Versions (libnss_compat): Define.
7608         * nss/nss_compat/compat-grp.c: Moved here from nis/nss_compat.
7609         Don't include <rpc/types.h>.  Replace bool_t by bool.
7610         * nss/nss_compat/compat-initgroups.c: Likewise.
7611         * nss/nss_compat/compat-pwd.c: Likewise.  Include "nisdomain.h"
7612         instead of <rpcsrv/ypclnt.h>.
7613         (getpwent_next_nss_netgr): Use __nss_get_default_domain instead of
7614         yp_get_default_domain.
7615         * nss/nss_compat/compat-pwd.c: Likewise.
7616         (getspent_next_nss_netgr): Use __nss_get_default_domain instead of
7617         yp_get_default_domain.
7618         * nss/nss_compat/nisdomain.c: New file.
7619         * nss/nss_compat/nisdomain.h: Likewise.
7621 2017-10-04  Szabolcs Nagy  <szabolcs.nagy@arm.com>
7623         [BZ #22244]
7624         * sysdeps/ieee754/dbl-64/e_jn.c (__ieee754_yn): Fix x == 0 case.
7625         * sysdeps/ieee754/flt-32/e_jnf.c (__ieee754_ynf): Likewise.
7627 2017-10-04  Szabolcs Nagy  <szabolcs.nagy@arm.com>
7629         [BZ #22243]
7630         * sysdeps/ieee754/dbl-64/wordsize-64/e_log10.c (__ieee754_log10): Use fabs.
7631         * sysdeps/ieee754/dbl-64/wordsize-64/e_log2.c (__ieee754_log2): Likewise.
7633 2017-10-03  H.J. Lu  <hongjiu.lu@intel.com>
7635         * sysdeps/i386/start.S: Replace "leal main@GOT(%ebx), %eax" with
7636         "movl main@GOTOFF(%ebx), %eax".
7638 2017-10-03  H.J. Lu  <hongjiu.lu@intel.com>
7640         * sysdeps/i386/dl-machine.h (elf_machine_load_address): Don't
7641         allow undefined _DYNAMIC in PIE libc.a.
7642         * sysdeps/x86_64/dl-machine.h (elf_machine_load_address):
7643         Likewse.
7645 2017-10-03  H.J. Lu  <hongjiu.lu@intel.com>
7647         * sysdeps/mips/dl-machine.h (elf_machine_load_address): Don't
7648         check _DYNAMIC.
7650 2017-10-03  H.J. Lu  <hongjiu.lu@intel.com>
7652         * sysdeps/arm/dl-machine.h (elf_machine_load_address): Don't
7653         check _DYNAMIC.
7655 2017-10-03  H.J. Lu  <hongjiu.lu@intel.com>
7657         * math/test-math-iscanonical.cc (error): Replace bool with int.
7659 2017-10-03  Joseph Myers  <joseph@codesourcery.com>
7661         * sysdeps/ieee754/dbl-64/s_modf.c: Include <libm-alias-double.h>.
7662         (modf): Define using libm_alias_double, only if [!__modf].
7663         * sysdeps/ieee754/dbl-64/wordsize-64/s_modf.c: Include
7664         <libm-alias-double.h>.
7665         (modf): Define using libm_alias_double, only if [!__modf].
7666         * sysdeps/ieee754/ldbl-opt/s_modf.c (modfl): Only define libc
7667         compat symbol here.
7668         * sysdeps/powerpc/powerpc32/power4/fpu/multiarch/s_modf-ppc32.c
7669         (weak_alias): Do not undefine and redefine.
7670         (strong_alias): Likewise.
7671         * sysdeps/powerpc/powerpc64/fpu/multiarch/s_modf-ppc64.c
7672         (weak_alias): Likewise.
7673         (strong_alias): Likewise.
7675         * sysdeps/ieee754/dbl-64/s_logb.c: Include <libm-alias-double.h>.
7676         (logb): Define using libm_alias_double, only if [!__logb].
7677         * sysdeps/ieee754/dbl-64/wordsize-64/s_logb.c: Include
7678         <libm-alias-double.h>.
7679         (logb): Define using libm_alias_double, only if [!__logb].
7680         * sysdeps/ieee754/ldbl-opt/s_logb.c: Remove file.
7681         * sysdeps/powerpc/powerpc32/power4/fpu/multiarch/s_logb-ppc32.c
7682         (weak_alias): Do not undefine and redefine.
7683         (strong_alias): Likewise.
7684         * sysdeps/powerpc/powerpc64/fpu/multiarch/s_logb-ppc64.c
7685         (weak_alias): Likewise.
7686         (strong_alias): Likewise.
7688 2017-10-03  H.J. Lu  <hongjiu.lu@intel.com>
7690         * sysdeps/unix/sysv/linux/tile/sysdep.h (SYSCALL_ERROR_NAME):
7691         Check SHARED instead PIC.
7693 2017-10-03  Joseph Myers  <joseph@codesourcery.com>
7695         * sysdeps/ieee754/dbl-64/s_fmaf.c: Include <libm-alias-float.h>.
7696         [!__fmaf] (fmaf): Define using libm_alias_float.
7698         * sysdeps/ieee754/dbl-64/s_frexp.c: Include <libm-alias-double.h>.
7699         (frexp): Define using libm_alias_double.
7700         * sysdeps/ieee754/dbl-64/wordsize-64/s_frexp.c: Include
7701         <libm-alias-double.h>.
7702         (frexp): Define using libm_alias_double.
7703         * sysdeps/ieee754/ldbl-opt/s_frexp.c (frexpl): Only define libc
7704         compat symbol here.
7706 2017-10-03  Gabriel F. T. Gomes  <gabriel@inconstante.eti.br>
7708         [BZ #22235]
7709         * math/math.h: Trivial fix for unbalanced parentheses in comment.
7710         * math/Makefile [CXX] (tests): Add test-math-iscanonical.cc.
7711         (CFLAGS-test-math-iscanonical.cc): New variable.
7712         * math/test-math-iscanonical.cc: New file.
7713         * sysdeps/ieee754/ldbl-96/bits/iscanonical.h (iscanonical):
7714         Provide a C++ implementation based on function overloading,
7715         rather than using __MATH_TG, which uses C-only builtins.
7716         * sysdeps/ieee754/ldbl-128ibm/bits/iscanonical.h (iscanonical):
7717         Likewise.
7718         * sysdeps/powerpc/powerpc64le/Makefile
7719         (CFLAGS-test-math-iscanonical.cc): New variable.
7721 2017-10-03  Joseph Myers  <joseph@codesourcery.com>
7723         * sysdeps/ieee754/dbl-64/s_ceil.c: Include <libm-alias-double.h>.
7724         (ceil): Define using libm_alias_double.
7725         * sysdeps/ieee754/dbl-64/s_floor.c: Include <libm-alias-double.h>.
7726         (floor): Define using libm_alias_double.
7727         * sysdeps/ieee754/dbl-64/s_llround.c: Include
7728         <libm-alias-double.h>.
7729         (llround): Define using libm_alias_double.
7730         * sysdeps/ieee754/dbl-64/s_lround.c: Include
7731         <libm-alias-double.h>.
7732         (lround): Define using libm_alias_double.
7733         * sysdeps/ieee754/dbl-64/s_nearbyint.c: Include
7734         <libm-alias-double.h>.
7735         (nearbyint): Define using libm_alias_double.
7736         * sysdeps/ieee754/dbl-64/s_remquo.c: Include
7737         <libm-alias-double.h>.
7738         (remquo): Define using libm_alias_double.
7739         * sysdeps/ieee754/dbl-64/s_rint.c: Include <libm-alias-double.h>.
7740         (rint): Define using libm_alias_double.
7741         * sysdeps/ieee754/dbl-64/s_round.c: Include <libm-alias-double.h>.
7742         (round): Define using libm_alias_double.
7743         * sysdeps/ieee754/dbl-64/s_trunc.c: Include <libm-alias-double.h>.
7744         (trunc): Define using libm_alias_double.
7745         * sysdeps/ieee754/dbl-64/wordsize-64/s_ceil.c: Include
7746         <libm-alias-double.h>.
7747         (ceil): Define using libm_alias_double.
7748         * sysdeps/ieee754/dbl-64/wordsize-64/s_floor.c: Include
7749         <libm-alias-double.h>.
7750         (floor): Define using libm_alias_double.
7751         * sysdeps/ieee754/dbl-64/wordsize-64/s_llround.c: Include
7752         <libm-alias-double.h>.
7753         (llround): Define using libm_alias_double.
7754         [_LP64] (lround): Likewise.
7755         * sysdeps/ieee754/dbl-64/wordsize-64/s_lround.c: Include
7756         <libm-alias-double.h>.
7757         [!_LP64] (lround): Define using libm_alias_double.
7758         * sysdeps/ieee754/dbl-64/wordsize-64/s_nearbyint.c: Include
7759         <libm-alias-double.h>.
7760         (nearbyint): Define using libm_alias_double.
7761         * sysdeps/ieee754/dbl-64/wordsize-64/s_remquo.c: Include
7762         <libm-alias-double.h>.
7763         (remquo): Define using libm_alias_double.
7764         * sysdeps/ieee754/dbl-64/wordsize-64/s_rint.c: Include
7765         <libm-alias-double.h>.
7766         (rint): Define using libm_alias_double.
7767         * sysdeps/ieee754/dbl-64/wordsize-64/s_round.c: Include
7768         <libm-alias-double.h>.
7769         (round): Define using libm_alias_double.
7770         * sysdeps/ieee754/dbl-64/wordsize-64/s_trunc.c: Include
7771         <libm-alias-double.h>.
7772         (trunc): Define using libm_alias_double.
7773         * sysdeps/ieee754/ldbl-opt/s_ceil.c: Remove file.
7774         * sysdeps/ieee754/ldbl-opt/s_floor.c: Likewise.
7775         * sysdeps/ieee754/ldbl-opt/s_llround.c: Likewise.
7776         * sysdeps/ieee754/ldbl-opt/s_lround.c: Likewise.
7777         * sysdeps/ieee754/ldbl-opt/s_nearbyint.c: Likewise.
7778         * sysdeps/ieee754/ldbl-opt/s_remquo.c: Likewise.
7779         * sysdeps/ieee754/ldbl-opt/s_rint.c: Likewise.
7780         * sysdeps/ieee754/ldbl-opt/s_round.c: Likewise.
7781         * sysdeps/ieee754/ldbl-opt/s_trunc.c: Likewise.
7783 2017-10-03  Szabolcs Nagy  <szabolcs.nagy@arm.com>
7785         * math/w_remainder.c: New file.
7786         * math/w_remainderf.c: New file.
7787         * math/w_remainderl.c: New file.
7789 2017-10-03  H.J. Lu  <hongjiu.lu@intel.com>
7791         * elf/rtld.c (BOOTSTRAP_MAP): New.
7792         (RESOLVE_MAP): Replace (&bootstrap_map) with BOOTSTRAP_MAP.
7793         * sysdeps/hppa/dl-machine.h (ELF_MACHINE_BEFORE_RTLD_RELOC):
7794         Likewise.
7795         * sysdeps/ia64/dl-machine.h (ELF_MACHINE_BEFORE_RTLD_RELOC):
7796         Likewise.
7797         * sysdeps/mips/dl-machine.h (ELF_MACHINE_BEFORE_RTLD_RELOC):
7798         Likewise.
7800 2017-10-03  Samuel Thibault  <samuel.thibault@ens-lyon.org>
7802         * include/libc-symbols.h [NO_RTLD_HIDDEN] (rtld_hidden_proto,
7803         rtld_hidden_tls_proto, rtld_hidden_def, rtld_hidden_weak,
7804         rtld_hidden_rtld_hidden_ver, data_def, rtld_hidden_data_weak,
7805         rtld_hidden_data_ver): Define to empty.
7806         * include/assert.h [IS_IN(rtld) && NO_RTLD_HIDDEN] (__assert_fail,
7807         __assert_perror_fail): Likewise.
7808         * include/dirent.h [IS_IN(rtld) && NO_RTLD_HIDDEN]
7809         (__rewinddir): Likewise.
7810         * include/libc-internal.h [IS_IN(rtld) && NO_RTLD_HIDDEN]
7811         (__profile_frequency): Likewise.
7812         * include/setjmp.h (__sigsetjmp): Likewise.
7813         * include/signal.h [IS_IN(rtld) && NO_RTLD_HIDDEN] (__sigaction,
7814         __libc_sigaction): Likewise.
7815         * include/stdlib.h [NO_RTLD_HIDDEN] (unsetenv, __strtoul_internal): Do
7816         not set hidden attribute.
7817         * include/string.h [IS_IN(rtld) && NO_RTLD_HIDDEN] (__stpcpy, __strdup,
7818         __strerror_t, __strsep_g, memchr, memcmp, memcpy, memmove, memset,
7819         rawmemchr, stpcpy, strchr, strcmp, strlen, strnlen, strsep): Likewise.
7820         * include/sys/stat.h [IS_IN(rtld) && NO_RTLD_HIDDEN] (__fxstat,
7821         __fxstat64, __lxstat, __lxstat64, __xstat, __xstat64,
7822         __fxstatat64): Likewise.
7823         * include/sys/utsname.h [IS_IN(rtld) && NO_RTLD_HIDDEN]
7824         (__uname): Likewise.
7825         * include/sysdeps/generic/_itoa.h [IS_IN(rtld) && NO_RTLD_HIDDEN]
7826         (_itoa_upper_digits, _itoa_lower_digits): Likewise.
7827         * sysdeps/mach/hurd/configure.ac (NO_HIDDEN): Do not set.
7828         (NO_RTLD_HIDDEN): Set.
7829         * sysdeps/mach/hurd/configure: Refresh.
7830         * config.h.in: Refresh.
7832 2017-10-02  Joseph Myers  <joseph@codesourcery.com>
7834         * sysdeps/ieee754/dbl-64/s_atan.c: Include <libm-alias-double.h>.
7835         (atan): Define using libm_alias_double.
7836         * sysdeps/ieee754/dbl-64/s_tan.c: Include <libm-alias-double.h>.
7837         (tan): Define using libm_alias_double.
7838         * sysdeps/ieee754/ldbl-opt/s_atan.c: Remove file.
7839         * sysdeps/ieee754/ldbl-opt/s_tan.c: Likewise.
7841         * sysdeps/ieee754/dbl-64/s_atan.c (atan): Rename to __atan and
7842         define as weak alias of __atan.  Do not define any aliases if
7843         [__atan].
7844         [NO_LONG_DOUBLE] (__atanl): Define as strong alias of __atan.
7845         [NO_LONG_DOUBLE] (atanl): Define as weak alias of __atanl.
7846         * sysdeps/ieee754/dbl-64/s_tan.c (tan): Rename to __tan and define
7847         as weak alias of __tan.  Do not define any aliases if [__tan].
7848         [NO_LONG_DOUBLE] (__tanl): Define as strong alias of __tan.
7849         [NO_LONG_DOUBLE] (tanl): Define as weak alias of __tanl.
7850         * sysdeps/x86_64/fpu/multiarch/s_atan-avx.c (atan): Rename to
7851         __atan.
7852         * sysdeps/x86_64/fpu/multiarch/s_atan-fma.c (atan): Likewise.
7853         * sysdeps/x86_64/fpu/multiarch/s_atan-fma4.c (atan): Likewise.
7854         * sysdeps/x86_64/fpu/multiarch/s_atan.c (atan): Rename to __atan
7855         and define as weak alias of __atan.
7856         * sysdeps/x86_64/fpu/multiarch/s_tan-avx.c (tan): Rename to
7857         __atan.
7858         * sysdeps/x86_64/fpu/multiarch/s_tan-fma.c (tan): Likewise.
7859         * sysdeps/x86_64/fpu/multiarch/s_tan-fma4.c (tan): Likewise.
7860         * sysdeps/x86_64/fpu/multiarch/s_tan.c (tan): Rename to __tan and
7861         define as weak alias of __tan.
7863 2017-10-02  Szabolcs Nagy  <szabolcs.nagy@arm.com>
7865         * math/w_lgamma.c: New file.
7866         * math/w_lgammaf.c: New file.
7867         * math/w_lgammal.c: New file.
7869 2017-10-02  Szabolcs Nagy  <szabolcs.nagy@arm.com>
7871         * sysdeps/ieee754/flt-32/e_log2f.c (__log2f): Define without wrapper.
7872         * sysdeps/ieee754/flt-32/e_logf.c (__logf): Likewise
7873         * sysdeps/ieee754/flt-32/e_powf.c (__powf): Likewise
7874         * sysdeps/ieee754/flt-32/w_log2f.c: New file.
7875         * sysdeps/ieee754/flt-32/w_logf.c: New file.
7876         * sysdeps/ieee754/flt-32/w_powf.c: New file.
7877         * sysdeps/i386/fpu/w_log2f.c: New file.
7878         * sysdeps/i386/fpu/w_logf.c: New file.
7879         * sysdeps/i386/fpu/w_powf.c: New file.
7880         * sysdeps/m68k/m680x0/fpu/w_log2f.c: New file.
7881         * sysdeps/m68k/m680x0/fpu/w_logf.c: New file.
7882         * sysdeps/m68k/m680x0/fpu/w_powf.c: New file.
7884 2017-10-02  Szabolcs Nagy  <szabolcs.nagy@arm.com>
7885             H.J. Lu  <hongjiu.lu@intel.com>
7887         * sysdeps/ieee754/flt-32/e_exp2f.c (__exp2f): Define without wrapper.
7888         * sysdeps/ieee754/flt-32/e_expf.c (__expf): Likewise
7889         * sysdeps/ieee754/flt-32/w_exp2f.c: New file.
7890         * sysdeps/ieee754/flt-32/w_expf.c: New file.
7891         * sysdeps/powerpc/powerpc64/fpu/multiarch/e_expf-ppc64.c: Update for
7892         the new expf code.
7893         * sysdeps/powerpc/powerpc64/fpu/multiarch/w_expf.c: New file.
7894         * sysdeps/powerpc/powerpc64/power8/fpu/w_expf.c: New file.
7895         * sysdeps/m68k/m680x0/fpu/w_exp2f.c: New file.
7896         * sysdeps/m68k/m680x0/fpu/w_expf.c: New file.
7897         * sysdeps/i386/fpu/w_exp2f.c: New file.
7898         * sysdeps/i386/fpu/w_expf.c: New file.
7899         * sysdeps/i386/i686/fpu/multiarch/w_expf.c: New file.
7900         * sysdeps/x86_64/fpu/w_expf.c: New file.
7902 2017-10-02  Szabolcs Nagy  <szabolcs.nagy@arm.com>
7904         * math/Versions (logf): New libm symbol at GLIBC_2.27.
7905         (log2f): Likewise.
7906         (powf): Likewise.
7907         * math/w_log2f.c: New file.
7908         * math/w_logf.c: New file.
7909         * math/w_powf.c: New file.
7910         * math/w_log2f_compat.c (__log2f_compat): For compat symbol only.
7911         * math/w_logf_compat.c (__logf_compat): Likewise.
7912         * math/w_powf_compat.c (__powf_compat): Likewise.
7913         * sysdeps/ia64/fpu/e_log2f.S: Add versioned symbols.
7914         * sysdeps/ia64/fpu/e_logf.S: Likewise.
7915         * sysdeps/ia64/fpu/e_powf.S: Likewise.
7916         * sysdeps/unix/sysv/linux/aarch64/libm.abilist: Update.
7917         * sysdeps/unix/sysv/linux/alpha/libm.abilist: Likewise.
7918         * sysdeps/unix/sysv/linux/arm/libm.abilist: Likewise.
7919         * sysdeps/unix/sysv/linux/hppa/libm.abilist: Likewise.
7920         * sysdeps/unix/sysv/linux/i386/libm.abilist: Likewise.
7921         * sysdeps/unix/sysv/linux/ia64/libm.abilist: Likewise.
7922         * sysdeps/unix/sysv/linux/m68k/coldfire/libm.abilist: Likewise.
7923         * sysdeps/unix/sysv/linux/m68k/m680x0/libm.abilist: Likewise.
7924         * sysdeps/unix/sysv/linux/microblaze/libm.abilist: Likewise.
7925         * sysdeps/unix/sysv/linux/mips/mips32/libm.abilist: Likewise.
7926         * sysdeps/unix/sysv/linux/mips/mips64/libm.abilist: Likewise.
7927         * sysdeps/unix/sysv/linux/nios2/libm.abilist: Likewise.
7928         * sysdeps/unix/sysv/linux/powerpc/powerpc32/fpu/libm.abilist:
7929         Likewise.
7930         * sysdeps/unix/sysv/linux/powerpc/powerpc32/nofpu/libm.abilist:
7931         Likewise.
7932         * sysdeps/unix/sysv/linux/powerpc/powerpc64/libm-le.abilist:
7933         Likewise.
7934         * sysdeps/unix/sysv/linux/powerpc/powerpc64/libm.abilist:
7935         Likewise.
7936         * sysdeps/unix/sysv/linux/s390/s390-32/libm.abilist: Likewise.
7937         * sysdeps/unix/sysv/linux/s390/s390-64/libm.abilist: Likewise.
7938         * sysdeps/unix/sysv/linux/sh/libm.abilist: Likewise.
7939         * sysdeps/unix/sysv/linux/sparc/sparc32/libm.abilist: Likewise.
7940         * sysdeps/unix/sysv/linux/sparc/sparc64/libm.abilist: Likewise.
7941         * sysdeps/unix/sysv/linux/tile/tilegx/tilegx32/libm.abilist:
7942         Likewise.
7943         * sysdeps/unix/sysv/linux/tile/tilegx/tilegx64/libm.abilist:
7944         Likewise.
7945         * sysdeps/unix/sysv/linux/tile/tilepro/libm.abilist: Likewise.
7946         * sysdeps/unix/sysv/linux/x86_64/64/libm.abilist: Likewise.
7947         * sysdeps/unix/sysv/linux/x86_64/x32/libm.abilist: Likewise.
7949 2017-10-02  Rajalakshmi Srinivasaraghavan  <raji@linux.vnet.ibm.com>
7951         * sysdeps/powerpc/powerpc64/multiarch/Makefile
7952         (sysdep_routines): Add memrchr_power8.
7953         * sysdeps/powerpc/powerpc64/multiarch/ifunc-impl-list.c
7954         (memrchr): Add __memrchr_power8 to list of memrchr functions.
7955         * sysdeps/powerpc/powerpc64/multiarch/memrchr-power8.S:
7956         New file.
7957         * sysdeps/powerpc/powerpc64/multiarch/memrchr.c
7958         (memrchr): Add __memrchr_power8 to ifunc list.
7959         * sysdeps/powerpc/powerpc64/power8/memrchr.S: New file.
7961 2017-10-01  H.J. Lu  <hongjiu.lu@intel.com>
7963         [BZ #18822]
7964         * sysdeps/unix/sysv/linux/posix_fadvise64.c
7965         (__posix_fadvise64_l64): Add Add libc_hidden_proto and
7966         libc_hidden_def.
7967         * sysdeps/unix/sysv/linux/posix_fallocate64.c
7968         (__posix_fallocate64_l64): Likewise.
7970 2017-10-01  H.J. Lu  <hongjiu.lu@intel.com>
7972         [BZ #18822]
7973         * sysdeps/unix/sysv/linux/sched_setaffinity.c
7974         (__sched_setaffinity_new): Add libc_hidden_proto and
7975         libc_hidden_def.
7977 2017-10-01  H.J. Lu  <hongjiu.lu@intel.com>
7979         [BZ #18822]
7980         * include/glob.h (__glob64): Add libc_hidden_proto.
7981         * sysdeps/unix/sysv/linux/glob64.c (__glob64): Add
7982         libc_hidden_def.
7984 2017-10-01  H.J. Lu  <hongjiu.lu@intel.com>
7986         [BZ #18822]
7987         * sysdeps/unix/sysv/linux/getrlimit64.c (__new_getrlimit): Add
7988         attribute_hidden.
7990 2017-10-01  H.J. Lu  <hongjiu.lu@intel.com>
7992         [BZ #18822]
7993         * stdlib/exit.h (__new_exitfn): Add attribute_hidden.
7995 2017-10-01  H.J. Lu  <hongjiu.lu@intel.com>
7997         [BZ #18822]
7998         * mon/gmon.c (__moncontrol): Add libc_hidden_proto and
7999         libc_hidden_def.
8001 2017-10-01  H.J. Lu  <hongjiu.lu@intel.com>
8003         [BZ #18822]
8004         * csu/version.c (__libc_print_version): Add attribute_hidden.
8006 2017-10-01  H.J. Lu  <hongjiu.lu@intel.com>
8008         [BZ #18822]
8009         * include/libc-internal.h (__init_misc): Add attribute_hidden.
8011 2017-10-01  H.J. Lu  <hongjiu.lu@intel.com>
8013         [BZ #18822]
8014         * include/fpu_control.h (__setfpucw): Add attribute_hidden.
8016 2017-10-01  H.J. Lu  <hongjiu.lu@intel.com>
8018         [BZ #18822]
8019         * nscd/nscd_helper.c (__nis_hash): New prototype.
8021 2017-10-01  H.J. Lu  <hongjiu.lu@intel.com>
8023         [BZ #18822]
8024         * include/termios.h (__tcgetattr): Add libc_hidden_proto.
8025         * sysdeps/unix/bsd/tcgetattr.c (__tcgetattr): Add
8026         libc_hidden_def.
8027         * sysdeps/unix/sysv/linux/tcgetattr.c (__tcgetattr): Likewise.
8028         * termios/tcgetattr.c (__tcgetattr): Likewise.
8030 2017-10-01  H.J. Lu  <hongjiu.lu@intel.com>
8032         [BZ #18822]
8033         * include/sys/resource.h (__setrlimit): Add libc_hidden_proto.
8034         * resource/setrlimit.c (__setrlimit): Add libc_hidden_def.
8035         * sysdeps/mach/hurd/setrlimit.c (__setrlimit): Likewise.
8036         * sysdeps/unix/sysv/linux/setrlimit.c (__setrlimit): Likewise.
8037         * sysdeps/unix/sysv/linux/setrlimit64.c (__GI___setrlimit): New.
8039 2017-10-01  H.J. Lu  <hongjiu.lu@intel.com>
8041         [BZ #18822]
8042         * include/monetary.h (__vstrfmon_l): Add attribute_hidden.
8044 2017-10-01  H.J. Lu  <hongjiu.lu@intel.com>
8046         [BZ #18822]
8047         * include/sched.h (__sched_setparam): Add libc_hidden_proto.
8048         * posix/sched_setp.c (__sched_setparam): Add libc_hidden_def.
8050 2017-10-01  H.J. Lu  <hongjiu.lu@intel.com>
8052         [BZ #18822]
8053         * intl/hash-string.h (__hash_string): Add attribute_hidden.
8055 2017-10-01  H.J. Lu  <hongjiu.lu@intel.com>
8057         [BZ #18822]
8058         * include/mntent.h (__hasmntopt): Add libc_hidden_proto.
8059         * misc/mntent_r.c (__hasmntopt): Add libc_hidden_def.
8061 2017-10-01  H.J. Lu  <hongjiu.lu@intel.com>
8063         [BZ #18822]
8064         * include/ifreq.h: New file.
8065         * sysdeps/generic/ifreq.h (__if_nextreq): Removed.
8066         (__ifreq): Likewise.
8067         * sysdeps/mach/hurd/ifreq.h (__if_nextreq): Removed.
8068         (__ifreq): Likewise.
8070 2017-10-01  H.J. Lu  <hongjiu.lu@intel.com>
8072         [BZ #18822]
8073         * include/idna.h: New file.
8074         * inet/getnameinfo.c: Include <idna.h> instead of
8075         <libidn/idna.h>.
8076         (__idna_to_unicode_lzlz): Removed.
8077         * sysdeps/posix/getaddrinfo.c: Include <idna.h> instead of
8078         <libidn/idna.h>.
8079         (__idna_to_ascii_lz): Removed.
8080         (__idna_to_unicode_lzlz): Likewise.
8082 2017-10-01  H.J. Lu  <hongjiu.lu@intel.com>
8084         [BZ #18822]
8085         * include/plural-exp.h: New file.
8086         * intl/plural-exp.c: Include <plural-exp.h> instead of
8087         "plural-exp.h".
8089 2017-10-01  H.J. Lu  <hongjiu.lu@intel.com>
8091         [BZ #18822]
8092         * sysdeps/unix/sysv/linux/getsourcefilter.c: Include
8093         "getsourcefilter.h".
8094         * sysdeps/unix/sysv/linux/getsourcefilter.h: New file.
8095         * sysdeps/unix/sysv/linux/setsourcefilter.c: Include
8096         "getsourcefilter.h".
8097         (__get_sol): Removed.
8099 2017-10-01  H.J. Lu  <hongjiu.lu@intel.com>
8101         [BZ #18822]
8102         * elf/dl-iteratephdr.c (hidden_proto (__dl_iterate_phdr)): Moved
8103         to ...
8104         * include/link.h (hidden_proto (__dl_iterate_phdr)): Here.
8106 2017-10-01  H.J. Lu  <hongjiu.lu@intel.com>
8108         [BZ #18822]
8109         * sysdeps/unix/sysv/linux/getpt.c (__bsd_getpt): Add
8110         attribute_hidden.
8112 2017-10-01  H.J. Lu  <hongjiu.lu@intel.com>
8114         [BZ #18822]
8115         * libio/iolibio.h (__fopen_maybe_mmap): Add attribute_hidden.
8117 2017-10-01  H.J. Lu  <hongjiu.lu@intel.com>
8119         [BZ #18822]
8120         * include/search.h (__tdestroy): Add libc_hidden_proto.
8121         * misc/tsearch.c (__tdestroy): Add libc_hidden_def.
8123 2017-10-01  H.J. Lu  <hongjiu.lu@intel.com>
8125         [BZ #18822]
8126         * include/assert.h (__assert_fail_base): Add attribute_hidden.
8128 2017-10-01  H.J. Lu  <hongjiu.lu@intel.com>
8130         [BZ #18822]
8131         * sysdeps/unix/sysv/linux/include/sys/sysinfo.h (__sysinfo): Add
8132         attribute_hidden.
8134 2017-10-01  H.J. Lu  <hongjiu.lu@intel.com>
8136         [BZ #18822]
8137         * include/signal.h (__kill): Add libc_hidden_proto.
8138         (__sigblock): Likewise.
8139         (__sigprocmask): Likewise.
8140         (__sigaltstack): Likewise.
8141         * signal/kill.c (__kill): Add libc_hidden_def.
8142         * signal/sigblock.c (__sigblock): Likewise.
8143         * signal/sigprocmask.c (__sigprocmask): Likewise.
8144         * sysdeps/mach/hurd/kill.c (__kill): Likewise.
8145         * sysdeps/mach/hurd/sigaltstack.c (__sigaltstack): Likewise.
8146         * sysdeps/mach/hurd/sigprocmask.c (__sigprocmask): Likewise.
8147         * sysdeps/posix/sigblock.c (__sigblock): Likewise.
8148         * sysdeps/unix/sysv/linux/alpha/sigprocmask.c (__sigprocmask):
8149         Likewise.
8150         * sysdeps/unix/sysv/linux/ia64/sigprocmask.c (__sigprocmask):
8151         Likewise.
8152         * sysdeps/unix/sysv/linux/s390/s390-64/sigprocmask.c
8153         (__sigprocmask): Likewise.
8154         * sysdeps/unix/sysv/linux/sigprocmask.c (__sigprocmask):
8155         Likewise.
8156         * /sysdeps/unix/sysv/linux/sparc/sparc64/sigprocmask.c
8157         (__sigprocmask): Likewise.
8158         * sysdeps/unix/sysv/linux/x86_64/sigprocmask.c (__sigprocmask):
8159         Likewise.
8161 2017-10-01  H.J. Lu  <hongjiu.lu@intel.com>
8163         [BZ #18822]
8164         * include/string.h (__strsep): Add libc_hidden_proto.
8165         * string/strsep.c (__strsep): Add libc_hidden_def.
8167 2017-10-01  H.J. Lu  <hongjiu.lu@intel.com>
8169         [BZ #18822]
8170         * posix/spawn_int.h (__posix_spawn_file_actions_realloc): Add
8171         attribute_hidden.
8172         (__spawni): Likewise.
8174 2017-10-01  H.J. Lu  <hongjiu.lu@intel.com>
8176         [BZ #18822]
8177         * include/sys/mman.h (__mremap): Add libc_hidden_proto.
8178         * sysdeps/unix/sysv/linux/m68k/mremap.S (__mremap): Add
8179         libc_hidden_def.
8181 2017-10-01  H.J. Lu  <hongjiu.lu@intel.com>
8183         [BZ #18822]
8184         * include/malloc.h (__malloc_check_init): Add attribute_hidden.
8186 2017-10-01  H.J. Lu  <hongjiu.lu@intel.com>
8188         [BZ #18822]
8189         * include/sys/ioctl.h (__ioctl): Add libc_hidden_proto.
8190         * misc/ioctl.c (__ioctl): Add libc_hidden_def.
8191         * sysdeps/mach/hurd/ioctl.c (__ioctl): Likewise.
8192         * sysdeps/unix/sysv/linux/aarch64/ioctl.S (__ioctl): Likewise.
8193         * sysdeps/unix/sysv/linux/mips/mips64/n64/ioctl.S (__ioctl):
8194         Likewise.
8195         * sysdeps/unix/sysv/linux/powerpc/ioctl.c (__ioctl): Likewise.
8196         * sysdeps/unix/sysv/linux/tile/tilegx/ioctl.S (__ioctl): Likewise.
8198 2017-10-01  H.J. Lu  <hongjiu.lu@intel.com>
8200         [BZ #18822]
8201         * intl/gettextP.h (__dcngettext): Add attribute_hidden.
8202         (__dcigettext): Likewise.
8204 2017-10-01  H.J. Lu  <hongjiu.lu@intel.com>
8206         [BZ #18822]
8207         * include/sys/sysinfo.h (__get_nprocs_conf): Add
8208         libc_hidden_proto.
8209         (__get_nprocs): Likewise.
8210         (__get_phys_pages): Likewise.
8211         (__get_avphys_pages): Likewise.
8212         (__get_child_max): Add attribute_hidden.
8213         * misc/getsysstats.c (__get_nprocs_conf): Add libc_hidden_def.
8214         (__get_nprocs): Likewise.
8215         (__get_phys_pages): Likewise.
8216         (__get_avphys_pages): Likewise.
8217         * sysdeps/mach/getsysstats.c (__get_nprocs_conf): Add
8218         libc_hidden_def.
8219         (__get_nprocs): Likewise.
8220         (__get_phys_pages): Likewise.
8221         (__get_avphys_pages): Likewise.
8222         * sysdeps/unix/sysv/linux/getsysstats.c (__get_nprocs): Add
8223         libc_hidden_def.
8224         (__get_nprocs_conf): Likewise.
8225         (__get_phys_pages): Likewise.
8226         (__get_avphys_pages): Likewise.
8228 2017-10-01  H.J. Lu  <hongjiu.lu@intel.com>
8230         [BZ #18822]
8231         * sysdeps/unix/sysv/linux/netlinkaccess.h (__netlink_open): Add
8232         attribute_hidden.
8233         (__netlink_close): Likewise.
8234         (__netlink_free_handle): Likewise.
8235         (__netlink_request): Likewise.
8237 2017-10-01  H.J. Lu  <hongjiu.lu@intel.com>
8239         [BZ #18822]
8240         * include/rpc/rpc.h (__rpc_thread_variables): Add
8241         attribute_hidden.
8242         (__rpc_thread_svc_cleanup): Likewise.
8243         (__rpc_thread_clnt_cleanup): Likewise.
8244         (__rpc_thread_key_cleanup): Likewise.
8246 2017-10-01  H.J. Lu  <hongjiu.lu@intel.com>
8248         [BZ #18822]
8249         * include/sys/uio.h (__readv): Add libc_hidden_proto.
8250         (__writev): Likewise.
8251         * misc/readv.c (__readv): Add libc_hidden_def.
8252         * misc/writev.c (__writev): Likewise.
8253         * sysdeps/posix/readv.c (__readv): Likewise.
8254         * sysdeps/posix/writev.c (__writev): Likewise.
8255         * sysdeps/unix/sysv/linux/readv.c: Include <sys/uio.h>.
8256         (__readv): Likewise.
8257         * sysdeps/unix/sysv/linux/writev.c: Include <sys/uio.h>.
8258         (__writev): Likewise.
8260 2017-10-01  H.J. Lu  <hongjiu.lu@intel.com>
8262         [BZ #18822]
8263         * include/regex.h (__re_compile_fastmap): Add attribute_hidden.
8264         (__regcomp): Add libc_hidden_proto.
8265         (__regexec): Likewise.
8266         (__regfree): Likewise.
8267         * posix/regcomp.c (__regcomp): Add libc_hidden_def.
8268         (__regfree): Likewise.
8269         * posix/regexec.c (__regexec): Likewise.
8271 2017-10-01  H.J. Lu  <hongjiu.lu@intel.com>
8273         [BZ #18822]
8274         * include/utmp.h (__updwtmp): Add libc_hidden_proto.
8275         (__getutent): Likewise.
8276         (__getutid): Likewise.
8277         (__getutline): Likewise.
8278         (__pututline): Likewise.
8279         (__getutent_r): Likewise.
8280         (__getutid_r): Likewise.
8281         (__getutline_r): Likewise.
8282         (__utmpname): Add attribute_hidden.
8283         (__setutent): Likewise.
8284         (__endutent): Likewise.
8285         * login/getutent.c (__getutent): Add libc_hidden_def.
8286         * login/getutent_r.c (__getutent_r): Likewise.
8287         (__pututline): Likewise.
8288         * login/getutid.c (__getutid): Likewise.
8289         * login/getutid_r.c (__getutid_r): Likewise.
8290         * login/getutline.c (__getutline): Likewise.
8291         * login/getutline_r.c (__getutline_r): Likewise.
8292         * login/updwtmp.c (__updwtmp): Likewise.
8294 2017-10-01  H.J. Lu  <hongjiu.lu@intel.com>
8296         [BZ #18822]
8297         * include/dirent.h (__opendir): Always add attribute_hidden.
8298         (__fdopendir): Likewise.
8299         (__closedir): Likewise.
8300         (__readdir): Likewise.
8301         (__readdir64): Add libc_hidden_proto.
8302         * sysdeps/mach/hurd/readdir64.c (__readdir64): Add libc_hidden_def.
8303         * sysdeps/unix/sysv/linux/i386/readdir64.c (__readdir64): Likewise.
8304         * sysdeps/unix/sysv/linux/readdir64.c (__readdir64): Likewise.
8305         * sysdeps/unix/sysv/linux/wordsize-64/readdir.c (__GI___readdir64):
8306         New alias.
8308 2017-10-01  H.J. Lu  <hongjiu.lu@intel.com>
8310         [BZ #18822]
8311         * include/aliases.h (__getaliasbyname_r): Add attribute_hidden.
8312         * include/netdb.h (__gethostbyaddr_r): Likewise.
8313         (__gethostbyname_r): Likewise.
8314         (__gethostbyname2_r): Likewise.
8315         (__getnetbyaddr_r): Likewise.
8316         (__getnetbyname_r): Likewise.
8317         (__getservbyname_r): Likewise.
8318         (__getservbyport_r): Likewise.
8319         (__getprotobyname_r): Likewise.
8320         (__getprotobynumber_r): Likewise.
8321         (__getnetgrent_r): Likewise.
8322         * include/rpc/netdb.h (__getrpcbyname_r): Likewise.
8323         (__getrpcbynumber_r): Likewise.
8324         * nss/getXXbyYY.c (INTERNAL (REENTRANT_NAME)): Likewise.
8326 2017-10-01  H.J. Lu  <hongjiu.lu@intel.com>
8328         [BZ #18822]
8329         * include/stdio.h (__fcloseall): Add attribute_hidden.
8330         (__getline): Likewise.
8331         (__path_search): Likewise.
8332         (__gen_tempname): Likewise.
8333         (__libc_message): Likewise.
8334         (__flockfile): Likewise.
8335         (__funlockfile): Likewise.
8336         (__fxprintf): Likewise.
8337         (__fxprintf_nocancel): Likewise.
8339 2017-10-01  H.J. Lu  <hongjiu.lu@intel.com>
8341         [BZ #18822]
8342         * include/gshadow.h (__fgetsgent_r): Add attribute_hidden.
8343         (__sgetsgent_r): Likewise.
8345 2017-10-01  H.J. Lu  <hongjiu.lu@intel.com>
8347         [BZ #18822]
8348         * include/sys/statfs.h (__fstatfs): Add attribute_hidden.
8349         (__statfs64): Likewise.
8350         (__fstatfs64): Likewise.
8351         * include/sys/statvfs.h (__statvfs64): Likewise.
8352         (__fstatvfs64): Likewise.
8353         * sysdeps/unix/sysv/linux/pathconf.h (__statfs_link_max): Likewise.
8354         (__statfs_filesize_max): Likewise.
8355         (__statfs_symlinks): Likewise.
8356         (__statfs_chown_restricted): Likewise.
8358 2017-10-01  H.J. Lu  <hongjiu.lu@intel.com>
8360         [BZ #18822]
8361         * include/time.h (__tzstring): Add attribute_hidden.
8362         (__tzfile_read): Likewise.
8363         (__tzfile_compute): Likewise.
8364         (__tzfile_default): Likewise.
8365         (__tzset_parse_tz): Likewise.
8366         (__offtime): Likewise.
8367         (__asctime_r): Likewise.
8368         (__tzset): Likewise.
8369         (__tz_convert): Likewise.
8370         (__getdate_r): Likewise.
8371         (__getclktck): Likewise.
8373 2017-10-01  H.J. Lu  <hongjiu.lu@intel.com>
8375         [BZ #18822]
8376         * nscd/nscd-client.h (__nscd_get_map_ref): Add attribute_hidden.
8377         (__nscd_unmap): Likewise.
8378         (__nscd_cache_search): Likewise.
8379         (__nscd_get_nl_timestamp): Likewise.
8380         (__nscd_getpwnam_r): Likewise.
8381         (__nscd_getpwuid_r): Likewise.
8382         (__nscd_getgrnam_r): Likewise.
8383         (__nscd_getgrgid_r): Likewise.
8384         (__nscd_gethostbyname_r): Likewise.
8385         (__nscd_gethostbyname2_r): Likewise.
8386         (__nscd_gethostbyaddr_r): Likewise.
8387         (__nscd_getai): Likewise.
8388         (__nscd_getgrouplist): Likewise.
8389         (__nscd_getservbyname_r): Likewise.
8390         (__nscd_getservbyport_r): Likewise.
8391         (__nscd_innetgr): Likewise.
8392         (__nscd_setnetgrent): Likewise.
8394 2017-10-01  H.J. Lu  <hongjiu.lu@intel.com>
8396         [BZ #18822]
8397         * include/gmp.h: Declare internal functions only if _ISOMAC is
8398         undefined.
8399         (__mpn_extract_double): Add attribute_hidden.
8400         (__mpn_extract_long_double): Likewise.
8401         (__mpn_extract_float128): Likewise.
8402         (__mpn_construct_float): Likewise.
8403         (__mpn_construct_double): Likewise.
8404         (__mpn_construct_long_double): Likewise.
8405         (__mpn_construct_float128): Likewise.
8406         (mpn_add_1): Likewise.
8407         (mpn_addmul_1): Likewise.
8408         (mpn_add_n): Likewise.
8409         (mpn_cmp): Likewise.
8410         (mpn_divrem): Likewise.
8411         (mpn_lshift): Likewise.
8412         (mpn_mul): Likewise.
8413         (mpn_mul_1): Likewise.
8414         (mpn_rshift): Likewise.
8415         (mpn_sub_1): Likewise.
8416         (mpn_submul_1): Likewise.
8417         (mpn_sub_n): Likewise.
8419 2017-10-01  H.J. Lu  <hongjiu.lu@intel.com>
8421         [BZ #18822]
8422         * include/wchar.h (__wcsnlen): Add attribute_hidden.
8423         (__wcscat): Likewise.
8424         (__btowc): Likewise.
8425         (__wcrtomb): Likewise.
8426         (__mbsrtowcs): Likewise.
8427         (__wcsrtombs): Likewise.
8428         (__mbsnrtowcs): Likewise.
8429         (__wcsnrtombs): Likewise.
8430         (__wcsncpy): Likewise.
8431         (__wcpncpy): Likewise.
8432         (__wmemcpy): Likewise.
8433         (__wmempcpy): Likewise.
8434         (__wmemmove): Likewise.
8435         (__wcschrnul): Likewise.
8436         (__vfwscanf): Likewise.
8437         (__vswprintf): Likewise.
8438         (__fwprintf): Likewise.
8439         (__vfwprintf): Likewise.
8441 2017-10-01  H.J. Lu  <hongjiu.lu@intel.com>
8443         [BZ #18822]
8444         * include/grp.h (__fgetgrent_r): Add attribute_hidden.
8445         (__getgrgid_r): Likewise.
8446         (__getgrnam_r): Likewise.
8447         * include/pwd.h (__getpwuid_r): Likewise.
8448         (__getpwnam_r): Likewise.
8449         (__fgetpwent_r): Likewise.
8450         * include/shadow.h (__getspnam_r): Likewise.
8451         (__sgetspent_r): Likewise.
8452         (__fgetspent_r): Likewise.
8454 2017-10-01  H.J. Lu  <hongjiu.lu@intel.com>
8456         [BZ #18822]
8457         * include/unistd.h (__access): Add attribute_hidden.
8458         (__lseek64): Likewise.
8459         (__libc_pread64): Likewise.
8460         (__pipe2): Likewise.
8461         (__sleep): Likewise.
8462         (__chdir): Likewise.
8463         (__fchdir): Likewise.
8464         (__getcwd): Likewise.
8465         (__rmdir): Likewise.
8466         (__execvpe): Likewise.
8467         (__execve): Likewise.
8468         (__setsid): Likewise.
8469         (__getuid): Likewise.
8470         (__geteuid): Likewise.
8471         (__getgid): Likewise.
8472         (__getegid): Likewise.
8473         (__getgroups): Likewise.
8474         (__group_member): Likewise.
8475         (__ttyname_r): Likewise.
8476         (__isatty): Likewise.
8477         (__readlink): Likewise.
8478         (__unlink): Likewise.
8479         (__gethostname): Likewise.
8480         (__profil): Likewise.
8481         (__getdtablesize): Likewise.
8482         (__brk): Likewise.
8483         (__ftruncate): Likewise.
8484         (__ftruncate64): Likewise.
8486 2017-10-01  H.J. Lu  <hongjiu.lu@intel.com>
8488         [BZ #18822]
8489         * argp/argp-fmtstream.c: Include <argp-fmtstream.h>.
8490         * argp/argp-fs-xinl.c: Likewise.
8491         * argp/argp-help.c: Include <argp.h> and <argp-fmtstream.h>.
8492         * argp/argp-parse.c: Include <argp.h>.
8493         * argp/argp-xinl.c: Likewise.
8494         * include/argp-fmtstream.h: New file.
8495         * include/argp.h (__argp_error): Add attribute_hidden.
8496         (__argp_failure): Likewise.
8497         (__argp_input): Likewise.
8498         (__argp_state_help): Likewise.
8500 2017-10-01  H.J. Lu  <hongjiu.lu@intel.com>
8502         [BZ #18822]
8503         * include/wchar.h (____wcstof_l_internal): New prototype.
8504         (____wcstod_l_internal): Likewise.
8505         (____wcstold_l_internal): Likewise.
8506         (____wcstol_l_internal): Likewise.
8507         (____wcstoul_l_internal): Likewise.
8508         (____wcstoll_l_internal): Likewise.
8509         (____wcstoull_l_internal): Likewise.
8510         (____wcstof128_l_internal): Likewise.
8511         * sysdeps/ieee754/float128/wcstof128.c
8512         (____wcstof128_l_internal): Removed.
8513         * sysdeps/ieee754/float128/wcstof128_l.c
8514         (____wcstof128_l_internal): Likewise.
8515         * wcsmbs/wcstod.c (____wcstod_l_internal): Likewise.
8516         * wcsmbs/wcstod_l.c (____wcstod_l_internal): Likewise.
8517         * wcsmbs/wcstof.c (____wcstof_l_internal): Likewise.
8518         * wcsmbs/wcstof_l.c (____wcstof_l_internal): Likewise.
8519         * wcsmbs/wcstol_l.c (____wcstol_l_internal): Likewise.
8520         * wcsmbs/wcstold.c (____wcstold_l_internal): Likewise.
8521         * wcsmbs/wcstold_l.c (____wcstold_l_internal): Likewise.
8522         * wcsmbs/wcstoll_l.c (____wcstoll_l_internal): Likewise.
8523         * wcsmbs/wcstoul_l.c (____wcstoul_l_internal): Likewise.
8524         * wcsmbs/wcstoull_l.c (____wcstoull_l_internal): Likewise.
8526 2017-10-01  H.J. Lu  <hongjiu.lu@intel.com>
8528         [BZ #18822]
8529         * sysdeps/unix/sysv/linux/fstatvfs.c: Include "internal_statvfs.h"
8530         instead of <sys/statvfs.h>.
8531         (__internal_statvfs): Removed.
8532         * sysdeps/unix/sysv/linux/fstatvfs64.c Include "internal_statvfs.h"
8533         instead of <sys/statvfs.h>.
8534         (__internal_statvfs64): Removed.
8535         * sysdeps/unix/sysv/linux/internal_statvfs.c: Include
8536         "internal_statvfs.h" instead of <sys/statvfs.h>.
8537         * sysdeps/unix/sysv/linux/internal_statvfs.h: New file.
8538         * sysdeps/unix/sysv/linux/statvfs.c Include "internal_statvfs.h"
8539         instead of <sys/statvfs.h>.
8540         (__internal_statvfs): Removed.
8541         * sysdeps/unix/sysv/linux/statvfs64.c Include "internal_statvfs.h"
8542         instead of <sys/statvfs.h>.
8543         (__internal_statvfs64): Removed.
8545 2017-10-01  H.J. Lu  <hongjiu.lu@intel.com>
8547         [BZ #18822]
8548         * iconv/gconv_int.h (__gconv_open): Add attribute_hidden.
8549         (__gconv_close): Likewise.
8550         (__gconv): Likewise.
8551         (__gconv_find_transform): Likewise.
8552         (__gconv_lookup_cache): Likewise.
8553         (__gconv_compare_alias_cache): Likewise.
8554         (__gconv_load_cache): Likewise.
8555         (__gconv_get_path): Likewise.
8556         (__gconv_close_transform): Likewise.
8557         (__gconv_release_cache): Likewise.
8558         (__gconv_find_shlib): Likewise.
8559         (__gconv_release_shlib): Likewise.
8560         (__gconv_get_builtin_trans): Likewise.
8561         (__gconv_compare_alias): Likewise.
8562         * include/dlfcn.h (_dlerror_run): Likewise.
8563         * include/stdio.h (__fortify_fail_abort): Likewise.
8564         * include/time.h (__tz_compute): Likewise.
8565         (__strptime_internal): Likewise.
8566         * intl/gettextP.h (_nl_find_domain): Likewise.
8567         (_nl_load_domain): Likewise.
8568         (_nl_find_msg): Likewise.
8569         * intl/plural-exp.h (FREE_EXPRESSION): Likewise.
8570         (EXTRACT_PLURAL_EXPRESSION): Likewise.
8571         * locale/coll-lookup.h (__collidx_table_lookup): Likewise.
8572         * resolv/gai_misc.h (__gai_enqueue_request): Likewise.
8573         (__gai_find_request): Likewise.
8574         (__gai_remove_request): Likewise.
8575         (__gai_notify): Likewise.
8576         (__gai_notify_only): Likewise.
8577         * sysdeps/generic/aio_misc.h (__aio_sigqueue): Likewise.
8578         * sysdeps/generic/ldsodefs.h (_dl_fini): Likewise.
8579         (_dl_non_dynamic_init): Likewise.
8580         (_dl_aux_init): Likewise.
8581         * sysdeps/i386/machine-gmon.h (mcount_internal): Likewise.
8582         * sysdeps/unix/sysv/linux/i386/olddirent.h (__old_getdents64):
8583         Likewise.
8584         * wcsmbs/wcsmbsload.h (__wcsmbs_load_conv): Likewise.
8585         (__wcsmbs_clone_conv): Likewise.
8586         (__wcsmbs_named_conv): Likewise.
8588 2017-10-01  H.J. Lu  <hongjiu.lu@intel.com>
8590         [BZ #18822]
8591         * include/stdlib.h (__random): Add attribute_hidden.
8592         (__random_r): Likewise.
8593         (__srandom_r): Likewise.
8594         (__initstate_r): Likewise.
8595         (__setstate_r): Likewise.
8596         (__erand48_r): Likewise.
8597         (__nrand48_r): Likewise.
8598         (__jrand48_r): Likewise.
8599         (__srand48_r): Likewise.
8600         (__seed48_r): Likewise.
8601         (__lcong48_r): Likewise.
8602         (__drand48_iterate): Likewise.
8603         (__setenv): Likewise.
8604         (__unsetenv): Likewise.
8605         (__clearenv): Likewise.
8606         (__ptsname_r): Likewise.
8607         (__posix_openpt): Likewise.
8608         (__add_to_environ): Likewise.
8609         (__realpath): Add libc_hidden_proto.
8610         (__ecvt_r): Likewise.
8611         (__fcvt_r): Likewise.
8612         (__qecvt_r): Likewise.
8613         (__qfcvt_r): Likewise.
8614         * misc/efgcvt_r.c (cvt_symbol_1): Add libc_hidden_def (local).
8615         * stdlib/canonicalize.c (__realpath): Add libc_hidden_def.
8617 2017-10-01  H.J. Lu  <hongjiu.lu@intel.com>
8619         [BZ #18822]
8620         * include/stdlib.h (__ptsname_internal): Add attribute_hidden.
8621         * include/time.h (__mktime_internal): Likewise.
8622         * libio/iolibio.h (__fopen_internal): Likewise.
8624 2017-10-01  John David Anglin  <danglin@gcc.gnu.org>
8626         * sysdeps/unix/sysv/linux/hppa/getcontext.S (__getcontext): Save return
8627         pointer in frame.
8628         * sysdeps/unix/sysv/linux/hppa/setcontext.S (__setcontext): Likewise.
8629         Correct offset used to restore PIC register.
8631 2017-09-30  John David Anglin  <danglin@gcc.gnu.org>
8633         [BZ libc/22165]
8634         * sysdeps/unix/sysv/linux/hppa/getcontext.S (__getcontext): Use PIC
8635         code to load address of __getcontext_ret when generating PIC code.
8637 2017-09-30  H.J. Lu  <hongjiu.lu@intel.com>
8639         * elf/Makefile (tests-static-internal): Add
8640         tst-tls1-static-non-pie.
8641         (LDFLAGS-tst-tls1-static-non-pie): New.
8642         * elf/tst-tls1-static-non-pie.c: New file.
8644 2017-09-29  Joseph Myers  <joseph@codesourcery.com>
8646         * sysdeps/ieee754/dbl-64/s_asinh.c: Include <libm-alias-double.h>.
8647         (asinh): Define using libm_alias_double.
8648         * sysdeps/ieee754/dbl-64/s_cbrt.c: Include <libm-alias-double.h>.
8649         (cbrt): Define using libm_alias_double.
8650         * sysdeps/ieee754/dbl-64/s_copysign.c: Include
8651         <libm-alias-double.h>.
8652         (copysign): Define using libm_alias_double.
8653         * sysdeps/ieee754/dbl-64/s_erf.c: Include <libm-alias-double.h>.
8654         (erf): Define using libm_alias_double.
8655         (erfc): Likewise.
8656         * sysdeps/ieee754/dbl-64/s_expm1.c: Include <libm-alias-double.h>.
8657         (expm1): Define using libm_alias_double.
8658         * sysdeps/ieee754/dbl-64/s_fabs.c: Include <libm-alias-double.h>.
8659         (fabs): Define using libm_alias_double.
8660         * sysdeps/ieee754/dbl-64/s_fromfp.c (fromfp): Define using
8661         libm_alias_double.
8662         * sysdeps/ieee754/dbl-64/s_fromfp_main.c: Include
8663         <libm-alias-double.h>.
8664         * sysdeps/ieee754/dbl-64/s_fromfpx.c (fromfpx): Define using
8665         libm_alias_double.
8666         * sysdeps/ieee754/dbl-64/s_getpayload.c: Include
8667         <libm-alias-double.h>.
8668         (getpayload): Define using libm_alias_double.
8669         * sysdeps/ieee754/dbl-64/s_llrint.c: Include
8670         <libm-alias-double.h>.
8671         (llrint): Define using libm_alias_double.
8672         * sysdeps/ieee754/dbl-64/s_lrint.c: Include <libm-alias-double.h>.
8673         (lrint): Define using libm_alias_double.
8674         * sysdeps/ieee754/dbl-64/s_nextup.c: Include
8675         <libm-alias-double.h>.
8676         (nextup): Define using libm_alias_double.
8677         * sysdeps/ieee754/dbl-64/s_roundeven.c: Include
8678         <libm-alias-double.h>.
8679         (roundeven): Define using libm_alias_double.
8680         * sysdeps/ieee754/dbl-64/s_setpayload.c (setpayload): Define using
8681         libm_alias_double.
8682         * sysdeps/ieee754/dbl-64/s_setpayload_main.c: Include
8683         <libm-alias-double.h>.
8684         * sysdeps/ieee754/dbl-64/s_setpayloadsig.c (setpayloadsig): Define
8685         using libm_alias_double.
8686         * sysdeps/ieee754/dbl-64/s_sin.c: Include <libm-alias-double.h>.
8687         (cos): Define using libm_alias_double.
8688         (sin): Likewise.
8689         * sysdeps/ieee754/dbl-64/s_sincos.c: Include
8690         <libm-alias-double.h>.
8691         (sincos): Define using libm_alias_double.
8692         * sysdeps/ieee754/dbl-64/s_tanh.c: Include <libm-alias-double.h>.
8693         (tanh): Define using libm_alias_double.
8694         * sysdeps/ieee754/dbl-64/s_totalorder.c: Include
8695         <libm-alias-double.h>.
8696         (totalorder): Define using libm_alias_double.
8697         * sysdeps/ieee754/dbl-64/s_totalordermag.c: Include
8698         <libm-alias-double.h>.
8699         (totalordermag): Define using libm_alias_double.
8700         * sysdeps/ieee754/dbl-64/s_ufromfp.c (ufromfp): Define using
8701         libm_alias_double.
8702         * sysdeps/ieee754/dbl-64/s_ufromfpx.c (ufromfpx): Define using
8703         libm_alias_double.
8704         * sysdeps/ieee754/dbl-64/wordsize-64/s_getpayload.c: Include
8705         <libm-alias-double.h>.
8706         (getpayload): Define using libm_alias_double.
8707         * sysdeps/ieee754/dbl-64/wordsize-64/s_roundeven.c: Include
8708         <libm-alias-double.h>.
8709         (roundeven): Define using libm_alias_double.
8710         * sysdeps/ieee754/dbl-64/wordsize-64/s_setpayload_main.c: Include
8711         <libm-alias-double.h>.
8712         * sysdeps/ieee754/dbl-64/wordsize-64/s_totalorder.c: Include
8713         <libm-alias-double.h>.
8714         (totalorder): Define using libm_alias_double.
8715         * sysdeps/ieee754/dbl-64/wordsize-64/s_totalordermag.c: Include
8716         <libm-alias-double.h>.
8717         (totalordermag): Define using libm_alias_double.
8718         * sysdeps/ieee754/ldbl-opt/s_copysign.c (copysignl): Only define
8719         libc compat symbol here.
8720         * sysdeps/ieee754/ldbl-opt/s_asinh.c: Remove file.
8721         * sysdeps/ieee754/ldbl-opt/s_cbrt.c: Likewise.
8722         * sysdeps/ieee754/ldbl-opt/s_erf.c: Likewise.
8723         * sysdeps/ieee754/ldbl-opt/s_expm1.c: Likewise.
8724         * sysdeps/ieee754/ldbl-opt/s_fabs.c: Likewise.
8725         * sysdeps/ieee754/ldbl-opt/s_llrint.c: Likewise.
8726         * sysdeps/ieee754/ldbl-opt/s_lrint.c: Likewise.
8727         * sysdeps/ieee754/ldbl-opt/s_sin.c: Likewise.
8728         * sysdeps/ieee754/ldbl-opt/s_sincos.c: Likewise.
8729         * sysdeps/ieee754/ldbl-opt/s_tanh.c: Likewise.
8731 2017-09-29  H.J. Lu  <hongjiu.lu@intel.com>
8733         * sysdeps/arm/dl-machine.h (elf_machine_load_address): Use
8734         _dl_relocate_static_pie instead of _dl_start to compute load
8735         address in static PIE.  Return 0 if _DYNAMIC is undefined for
8736         static executable.
8738 2017-09-29  H.J. Lu  <hongjiu.lu@intel.com>
8740         * sysdeps/mips/dl-machine.h (elf_machine_dynamic): Return 0 if
8741         _DYNAMIC is undefined for static executable.
8743 2017-09-29  H.J. Lu  <hongjiu.lu@intel.com>
8745         * sysdeps/arm/start.S (_start): Check PIC instead of SHARED.
8747 2017-09-29  Joseph Myers  <joseph@codesourcery.com>
8749         * sysdeps/x86_64/fpu/libm-test-ulps: Update.
8751 2017-09-29  Wilco Dijkstra  <wdijkstr@arm.com>
8753         * sysdeps/ieee754/dbl-64/e_lgamma_r.c
8754         (__ieee754_lgamma_r): Use fabs rather than __fabs.
8755         * sysdeps/ieee754/dbl-64/e_log10.c (__ieee754_log10): Likewise.
8756         * sysdeps/ieee754/dbl-64/e_log2.c (__ieee754_log2): Likewise.
8757         * sysdeps/ieee754/flt-32/e_lgammaf_r.c
8758         (__ieee754_lgammaf_r): Use fabsf rather than __fabsf.
8759         * sysdeps/ieee754/flt-32/e_log10f.c (__ieee754_log10f): Likewise.
8760         * sysdeps/ieee754/flt-32/e_log2f.c (__ieee754_log2f): Likewise.
8761         * sysdeps/ieee754/ldbl-128/e_lgammal_r.c
8762         (__ieee754_lgammal_r): Use fabsl rather than __fabsl.
8763         * sysdeps/ieee754/ldbl-128/e_log10l.c (__ieee754_log10l): Likewise.
8764         * sysdeps/ieee754/ldbl-128/e_log2l.c (__ieee754_log2l): Likewise.
8765         * sysdeps/ieee754/ldbl-128ibm/e_lgammal_r.c
8766         (__ieee754_lgammal_r): Use fabsl rather than __fabsl.
8767         * sysdeps/ieee754/ldbl-128ibm/e_log10l.c (__ieee754_log10l): Likewise.
8768         * sysdeps/ieee754/ldbl-128ibm/e_log2l.c (__ieee754_log2l): Likewise.
8769         * sysdeps/powerpc/nofpu/Makefile: Add -fno-builtin-fabsl for BZ #29253.
8771 2017-09-29  Wilco Dijkstra  <wdijkstr@arm.com>
8773         * math/bits/cmathcalls.h (cimag): Remove inline.
8774         (creal): Remove inline.
8775         (conj): Remove inline.
8777 2017-09-29  Szabolcs Nagy  <szabolcs.nagy@arm.com>
8779         * math/Makefile (type-float-routines): Add e_powf_log2_data.
8780         * sysdeps/ieee754/flt-32/e_powf.c: New implementation.
8781         * sysdeps/ieee754/flt-32/e_powf_log2_data.c: New file.
8782         * sysdeps/ieee754/flt-32/math_config.h (__powf_log2_data): Define.
8783         (issignalingf_inline): Likewise.
8784         (POWF_LOG2_TABLE_BITS): Likewise.
8785         (POWF_LOG2_POLY_ORDER): Likewise.
8786         (POWF_SCALE_BITS): Likewise.
8787         (POWF_SCALE): Likewise.
8788         * sysdeps/i386/fpu/e_powf_log2_data.c: New file.
8789         * sysdeps/ia64/fpu/e_powf_log2_data.c: New file.
8790         * sysdeps/m68k/m680x0/fpu/e_powf_log2_data.c: New file.
8792 2017-09-29  Szabolcs Nagy  <szabolcs.nagy@arm.com>
8794         * math/Makefile (type-float-routines): Add e_log2f_data.
8795         * sysdeps/ieee754/flt-32/e_log2f.c: New implementation.
8796         * sysdeps/ieee754/flt-32/e_log2f_data.c: New file.
8797         * sysdeps/ieee754/flt-32/math_config.h (__log2f_data): Define.
8798         (LOG2F_TABLE_BITS, LOG2F_POLY_ORDER): Define.
8799         * sysdeps/i386/fpu/e_log2f_data.c: New file.
8800         * sysdeps/ia64/fpu/e_log2f_data.c: New file.
8801         * sysdeps/m68k/m680x0/fpu/e_log2f_data.c: New file.
8803 2017-09-29  Szabolcs Nagy  <szabolcs.nagy@arm.com>
8805         * math/Makefile (type-float-routines): Add e_logf_data.
8806         * sysdeps/ieee754/flt-32/e_logf.c: New implementation.
8807         * sysdeps/ieee754/flt-32/e_logf_data.c: New file.
8808         * sysdeps/ieee754/flt-32/math_config.h (__logf_data): Define.
8809         (LOGF_TABLE_BITS, LOGF_POLY_ORDER): Define.
8810         * sysdeps/i386/fpu/e_logf_data.c: New file.
8811         * sysdeps/ia64/fpu/e_logf_data.c: New file.
8812         * sysdeps/m68k/m680x0/fpu/e_logf_data.c: New file.
8814 2017-09-28  H.J. Lu  <hongjiu.lu@intel.com>
8816         * sysdeps/i386/dl-machine.h (elf_machine_load_address): Allow
8817         undefined _DYNAMIC in PIE libc.a.
8818         * sysdeps/x86_64/dl-machine.h (elf_machine_load_address):
8819         Likewse.
8821 2017-09-28  Wilco Dijkstra  <wdijkstr@arm.com>
8823         * sysdeps/alpha/fpu/bits/mathinline.h: Delete file.
8824         * sysdeps/ia64/fpu/bits/mathinline.h: Delete file.
8825         * sysdeps/m68k/coldfire/fpu/bits/mathinline.h: Delete file.
8826         * sysdeps/m68k/m680x0/fpu/bits/mathinline.h: (__signbitf): Remove.
8827         (__signbit): Remove.
8828         (__signbitl): Remove.
8829         * sysdeps/powerpc/bits/mathinline.h (__signbitf): Remove.
8830         (__signbit): Remove.
8831         (__signbitl): Remove.
8832         * sysdeps/s390/fpu/bits/mathinline.h: (__signbitf): Remove.
8833         (__signbit): Remove.
8834         (__signbitl): Remove.
8835         * sysdeps/sparc/fpu/bits/mathinline.h (__signbitf): Remove.
8836         (__signbit): Remove.
8837         (__signbitl): Remove.
8838         * sysdeps/tile/bits/mathinline.h: Delete file.
8839         * sysdeps/x86/fpu/bits/mathinline.h (__signbitf): Remove.
8840         (__signbit): Remove.
8841         (__signbitl): Remove.
8843 2017-09-28  Wilco Dijkstra  <wdijkstr@arm.com>
8845         * math/math.h: Improve handling of C99 isgreater macros.
8846         * sysdeps/alpha/fpu/bits/mathinline.h: Remove isgreater macros.
8847         * sysdeps/m68k/m680x0/fpu/bits/mathinline.h: Likewise.
8848         * sysdeps/powerpc/bits/mathinline.h: Likewise.
8849         * sysdeps/sparc/fpu/bits/mathinline.h: Likewise.
8850         * sysdeps/x86/fpu/bits/mathinline.h: Likewise.
8852 2017-09-28  Szabolcs Nagy  <szabolcs.nagy@arm.com>
8854         * sysdeps/aarch64/libm-test-ulps: Update.
8856 2017-09-28  Joseph Myers  <joseph@codesourcery.com>
8858         [BZ #22225]
8859         * sysdeps/ieee754/dbl-64/s_nearbyint.c (__nearbyint): Use
8860         math_opt_barrier on argument when doing arithmetic on it.
8861         * sysdeps/ieee754/dbl-64/wordsize-64/s_nearbyint.c (__nearbyint):
8862         Likewise.  Use math_force_eval not math_opt_barrier after
8863         arithmetic.
8864         * sysdeps/ieee754/flt-32/s_nearbyintf.c (__nearbyintf): Use
8865         math_opt_barrier on argument when doing arithmetic on it.
8866         * sysdeps/ieee754/ldbl-128/s_nearbyintl.c (__nearbyintl):
8867         Likewise.
8869 2017-09-27  H.J. Lu  <hongjiu.lu@intel.com>
8871         * sysdeps/unix/sysv/linux/ifaddrs.c (__getifaddrs): Add
8872         libc_hidden_def.
8873         (__freeifaddrs): Likewise.
8875 2017-09-27  Samuel Thibault  <samuel.thibault@ens-lyon.org>
8877         * include/dirent.h (__dirfd): New declaration.
8878         * dirent/dirfd.c (dirfd): Rename to __dirfd, and redefine as weak
8879         alias.
8880         * sysdeps/posix/dirfd/dirfd.c (dirfd): Likewise.
8881         * sysdeps/mach/hurd/dirfd.c (dirfd): Likewise.
8882         * io/ftw.c (open_dir_stream, ftw_dir): Use __dirfd instead of dirfd.
8883         * include/unistd.h (__revoke): New declaration.
8884         * misc/revoke.c (revoke): Rename to __revoke, and redefine as weak
8885         alias.
8886         * sysdeps/mach/hurd/revoke.c (revoke): Likewise.
8887         * sysdeps/unix/bsd/unlockpt.c (unlockpt): Use __revoke instead of
8888         revoke.
8889         * include/dirent.h (__seekdir): New declaration.
8890         * sysdeps/mach/hurd/seekdir.c (seekdir): Rename to __seekdir and
8891         redefine as weak alias.
8892         * sysdeps/mach/hurd/rewinddir.c (__rewinddir): Use __seekdir instead
8893         of seekdir.
8894         * include/ifaddrs.h (__getifaddrs, __freeifaddrs): New declarations,
8895         and use libc_hidden_def on them.
8896         * inet/ifaddrs.c (__getifaddrs, __freeifaddrs): Use libc_hidden_def on
8897         them.
8898         * sysdeps/gnu/ifaddrs.c (__getifaddrs, __freeifaddrs): Likewise.
8899         * inet/check_pf.c (__check_pf): Use __getifaddrs and __freeifaddrs
8900         instead of getifaddrs and freeifaddrs.
8902 2017-09-26  H.J. Lu  <hongjiu.lu@intel.com>
8904         [BZ #18822]
8905         * dlfcn/modatexit.c (foo): Remove __dso_handle check.
8906         * dlfcn/modcxaatexit.c: Include <dso_handle.h>.
8907         (__dso_handle): Remove declaration.
8908         * dlfcn/tstatexit.c (__dso_handle): Removed.
8909         (main): Don't check __dso_handle.
8910         * dlfcn/tstcxaatexit.c (__dso_handle): Removed.
8911         (main): Don't check __dso_handle.
8912         * include/dso_handle.h: New file.
8913         * malloc/mtrace.c: Include <dso_handle.h>.
8914         (mtrace): Pass __dso_handle directly.
8915         * nptl/pthread_atfork.c: Include <dso_handle.h>.
8916         (__dso_handle): Remove declaration.
8917         (__pthread_atfork): Pass __dso_handle directly.
8918         * nptl/tst-atfork2mod.c: Include <dso_handle.h>.
8919         (__dso_handle): Removed.
8920         * posix/wordexp-test.c: Include <dso_handle.h>.
8921         (__dso_handle): Remove declaration.
8922         (__app_register_atfork): Pass __dso_handle directly.
8923         * stdlib/at_quick_exit.c: Include <dso_handle.h>.
8924         (__dso_handle): Remove declaration.
8925         (at_quick_exit): Pass __dso_handle directly.
8926         * stdlib/atexit.c: Include <dso_handle.h>.
8927         (__dso_handle): Remove declaration.
8928         (atexit): Pass __dso_handle directly.
8929         * stdlib/tst-tls-atexit-lib.c: Include <dso_handle.h>.
8930         (__dso_handle): Removed.
8932 2017-09-26  Joseph Myers  <joseph@codesourcery.com>
8934         * sysdeps/unix/make-syscalls.sh: Use __ifunc to define symbols
8935         using VDSO.
8937 2017-09-26  Alexey Makhalov  <amakhalov@vmware.com>
8939         * elf/dl-tunables.c (do_tunable_update_val): Range checking fix.
8940         * scripts/gen-tunables.awk: Set unspecified minval and/or maxval
8941         values to correct default value for given type.
8943 2017-09-26  H.J. Lu  <hongjiu.lu@intel.com>
8945         [BZ #22101]
8946         * elf/Makefile (tests): Add tst-debug1.
8947         ($(objpfx)tst-debug1): New.
8948         ($(objpfx)tst-debug1.out): Likewise.
8949         ($(objpfx)tst-debug1mod1.so): Likewise.
8950         * elf/dl-load.c (_dl_map_object_from_fd): Skip PT_DYNAMIC segment
8951         with p_filesz == 0.
8952         * elf/tst-debug1.c: New file.
8954 2017-09-26  Joseph Myers  <joseph@codesourcery.com>
8956         * sysdeps/sparc/sparc-ifunc.h [!__ASSEMBLER__] (sparc_libm_ifunc):
8957         Define using __ifunc.
8959 2017-09-26  Tulio Magno Quites Machado Filho  <tuliom@linux.vnet.ibm.com>
8961         * sysdeps/powerpc/fpu/libm-test-ulps: Regenerate expf() and
8962         exp2f() values.
8964 2017-09-26  Joseph Myers  <joseph@codesourcery.com>
8966         [BZ #22156]
8967         * sysdeps/ia64/stackinfo.h (DEFAULT_STACK_PERMS): Likewise.
8969 2017-09-26  Florian Weimer  <fweimer@redhat.com>
8971         * resolv/Makefile (tests-internal): Fix typo in comment.
8973 2017-09-26  Florian Weimer  <fweimer@redhat.com>
8975         * resolv/nss_dns/dns-host.c: Fix typo in comment.
8977 2017-09-25  Adhemerval Zanella  <adhemerval.zanella@linaro.org>
8979         * lib/malloc/scratch_buffer.h (struct scratch_buffer):
8980         Use an union instead of a max_align_t array for __space,
8981         so that __space is the same size on all platforms.
8982         * malloc/scratch_buffer_grow_preserve.c
8983         (__libc_scratch_buffer_grow_preserve): Likewise.
8985         [BZ #22183]
8986         * include/gnu-versions.h (_GNU_GLOB_INTERFACE_VERSION): Increase
8987         version to 2.
8988         * posix/Makefile (routines): Add glob-lstat-compat and
8989         glob64-lstat-compat.
8990         * posix/Versions (GLIBC_2.27, glob, glob64): Add symbol version.
8991         * posix/glob-lstat-compat.c: New file.
8992         * posix/glob64-lstat-compat.c: Likewise.
8993         * posix/tst-glob_lstat_compat.c: Likewise.
8994         * sysdeps/unix/sysv/linux/glob-lstat-compat.c: Likewise.
8995         * sysdeps/unix/sysv/linux/alpha/glob-lstat-compat.c: Likewise.
8996         * sysdeps/unix/sysv/linux/glob64-lstat-compat.c: Likewise.
8997         * sysdeps/unix/sysv/linux/s390/s390-32/glob64-lstat-compat.c:
8998         Likewise.
8999         * sysdeps/unix/sysv/linux/alpha/glob.c: Remove file.
9000         * sysdeps/unix/sysv/linux/s390/s390-32/glob64.c: Likewise.
9001         * posix/glob.c (glob_lstat): New function.
9002         (glob): Rename to __glob and add versioned symbol to 2.27.
9003         (glob_in_dir): Use glob_lstat.
9004         * posix/glob64.c (glob64): Add GLOB_ATTRIBUTE.
9005         * sysdeps/unix/sysv/linux/arm/libc.abilist: Likewise.
9006         * sysdeps/unix/sysv/linux/glob.c (glob): Add versioned symbol for
9007         2.27.
9008         * sysdeps/unix/sysv/linux/glob64.c (glob64): Likewise.
9009         * sysdeps/unix/sysv/linux/oldglob.c (GLOB_NO_LSTAT): Define.
9010         * sysdeps/unix/sysv/linux/alpha/oldglob.c (__old_glob): Do not use
9011         gl_lstat on glob call.
9012         * sysdeps/unix/sysv/linux/aarch64/libc.abilist: Add GLIBC_2.27 glob
9013         and glob64 symbols.
9014         * sysdeps/unix/sysv/linux/alpha/libc.abilist: Likewise.
9015         * sysdeps/unix/sysv/linux/hppa/libc.abilist: Likewise.
9016         * sysdeps/unix/sysv/linux/i386/libc.abilist: Likewise.
9017         * sysdeps/unix/sysv/linux/ia64/libc.abilist: Likewise.
9018         * sysdeps/unix/sysv/linux/m68k/coldfire/libc.abilist: Likewise.
9019         * sysdeps/unix/sysv/linux/m68k/m680x0/libc.abilist: Likewise.
9020         * sysdeps/unix/sysv/linux/microblaze/libc.abilist: Likewise.
9021         * sysdeps/unix/sysv/linux/mips/mips32/fpu/libc.abilist: Likewise.
9022         * sysdeps/unix/sysv/linux/mips/mips32/nofpu/libc.abilist: Likewise.
9023         * sysdeps/unix/sysv/linux/mips/mips64/n32/libc.abilist: Likewise.
9024         * sysdeps/unix/sysv/linux/mips/mips64/n64/libc.abilist: Likewise.
9025         * sysdeps/unix/sysv/linux/nios2/libc.abilist: Likewise.
9026         * sysdeps/unix/sysv/linux/powerpc/powerpc32/fpu/libc.abilist:
9027         Likewise.
9028         * sysdeps/unix/linux/powerpc/powerpc32/nofpu/libc.abilist: Likewise.
9029         * sysdeps/unix/sysv/linux/powerpc/powerpc64/libc.abilist: Likewise.
9030         * sysdeps/unix/sysv/linux/s390/s390-32/libc.abilist: Likewise.
9031         * sysdeps/unix/sysv/linux/s390/s390-64/libc.abilist: Likewise.
9032         * sysdeps/unix/sysv/linux/sh/libc.abilist: Likewise.
9033         * sysdeps/unix/sysv/linux/sparc/sparc32/libc.abilist: Likewise.
9034         * sysdeps/unix/sysv/linux/sparc/sparc64/libc.abilist: Likewise.
9035         * sysdeps/unix/sysv/linux/tile/tilegx/tilegx32/libc.abilist: Likewise.
9036         * sysdeps/unix/sysv/linux/tile/tilegx/tilegx64/libc.abilist: Likewise.
9037         * sysdeps/unix/sysv/linux/tile/tilepro/libc.abilist: Likewise.
9038         * sysdeps/unix/sysv/linux/x86_64/64/libc.abilist: Likewise.
9039         * sysdeps/unix/sysv/linux/x86_64/x32/libc.abilist: Likewise.
9041 2017-09-25  H.J. Lu  <hongjiu.lu@intel.com>
9043         * configure.ac (AS): Require binutils 2.25 or later.
9044         * configure: Regenerated.
9046 2017-09-25  Paul Pluzhnikov  <ppluzhnikov@google.com>
9048         [BZ #22207]
9049         * stdlib/test-atexit-race-common.c (do_test): Minimize required
9050         VM size.
9052 2017-09-25  DJ Delorie  <dj@redhat.com>
9054         [BZ #22161]
9055         * nscd/netgroupcache.c (addinnetgrX): Release read lock after
9056         resetting timeout.
9058 2017-09-25  Stefan Liebler  <stli@linux.vnet.ibm.com>
9060         * sysdeps/ieee754/dbl-64/sincos32.h
9061         [SINCCOS32_H]: Remove define.
9062         [SINCOS32_H]: Define.
9064 2017-09-25  Szabolcs Nagy  <szabolcs.nagy@arm.com>
9066         * math/Versions (expf): New libm symbol at GLIBC_2.27.
9067         (exp2f): Likewise.
9068         * math/w_exp2f.c: New file.
9069         * math/w_expf.c: New file.
9070         * math/w_exp2f_compat.c (__exp2f_compat): For compat symbol only.
9071         * math/w_expf_compat.c (__expf_compat): Likewise.
9072         * sysdeps/ia64/fpu/e_exp2f.S: Add versioned symbols.
9073         * sysdeps/ia64/fpu/e_expf.S: Likewise.
9074         * sysdeps/unix/sysv/linux/aarch64/libm.abilist: Update.
9075         * sysdeps/unix/sysv/linux/alpha/libm.abilist: Likewise.
9076         * sysdeps/unix/sysv/linux/arm/libm.abilist: Likewise.
9077         * sysdeps/unix/sysv/linux/hppa/libm.abilist: Likewise.
9078         * sysdeps/unix/sysv/linux/i386/libm.abilist: Likewise.
9079         * sysdeps/unix/sysv/linux/ia64/libm.abilist: Likewise.
9080         * sysdeps/unix/sysv/linux/m68k/coldfire/libm.abilist: Likewise.
9081         * sysdeps/unix/sysv/linux/m68k/m680x0/libm.abilist: Likewise.
9082         * sysdeps/unix/sysv/linux/microblaze/libm.abilist: Likewise.
9083         * sysdeps/unix/sysv/linux/mips/mips32/libm.abilist: Likewise.
9084         * sysdeps/unix/sysv/linux/mips/mips64/libm.abilist: Likewise.
9085         * sysdeps/unix/sysv/linux/nios2/libm.abilist: Likewise.
9086         * sysdeps/unix/sysv/linux/powerpc/powerpc32/fpu/libm.abilist:
9087         Likewise.
9088         * sysdeps/unix/sysv/linux/powerpc/powerpc32/nofpu/libm.abilist:
9089         Likewise.
9090         * sysdeps/unix/sysv/linux/powerpc/powerpc64/libm-le.abilist:
9091         Likewise.
9092         * sysdeps/unix/sysv/linux/powerpc/powerpc64/libm.abilist:
9093         Likewise.
9094         * sysdeps/unix/sysv/linux/s390/s390-32/libm.abilist: Likewise.
9095         * sysdeps/unix/sysv/linux/s390/s390-64/libm.abilist: Likewise.
9096         * sysdeps/unix/sysv/linux/sh/libm.abilist: Likewise.
9097         * sysdeps/unix/sysv/linux/sparc/sparc32/libm.abilist: Likewise.
9098         * sysdeps/unix/sysv/linux/sparc/sparc64/libm.abilist: Likewise.
9099         * sysdeps/unix/sysv/linux/tile/tilegx/tilegx32/libm.abilist:
9100         Likewise.
9101         * sysdeps/unix/sysv/linux/tile/tilegx/tilegx64/libm.abilist:
9102         Likewise.
9103         * sysdeps/unix/sysv/linux/tile/tilepro/libm.abilist: Likewise.
9104         * sysdeps/unix/sysv/linux/x86_64/64/libm.abilist: Likewise.
9105         * sysdeps/unix/sysv/linux/x86_64/x32/libm.abilist: Likewise.
9107 2017-09-25  Szabolcs Nagy  <szabolcs.nagy@arm.com>
9109         * math/Makefile (type-float-routines): Add math_errf and e_exp2f_data.
9110         * sysdeps/aarch64/fpu/math_private.h (TOINT_INTRINSICS): Define.
9111         (roundtoint, converttoint): Likewise.
9112         * sysdeps/ieee754/flt-32/e_expf.c: New implementation.
9113         * sysdeps/ieee754/flt-32/e_exp2f.c: New implementation.
9114         * sysdeps/ieee754/flt-32/e_exp2f_data.c: New file.
9115         * sysdeps/ieee754/flt-32/math_config.h: New file.
9116         * sysdeps/ieee754/flt-32/math_errf.c: New file.
9117         * sysdeps/ieee754/flt-32/t_exp2f.h: Remove.
9118         * sysdeps/i386/fpu/e_exp2f_data.c: New file.
9119         * sysdeps/i386/fpu/math_errf.c: New file.
9120         * sysdeps/ia64/fpu/e_exp2f_data.c: New file.
9121         * sysdeps/ia64/fpu/math_errf.c: New file.
9122         * sysdeps/m68k/m680x0/fpu/e_exp2f_data.c: New file.
9123         * sysdeps/m68k/m680x0/fpu/math_errf.c: New file.
9125 2017-09-24  Samuel Thibault  <samuel.thibault@ens-lyon.org>
9127         * sysdeps/mach/hurd/dl-sysdep.c (check_no_hidden): New macro.
9128         (__open, __close, __libc_read, __libc_write, __writev, __libc_lseek64,
9129         __mmap, __fxstat64, __xstat64, __access, __access_noerrno, __getpid,
9130         __getcwd, __sbrk, __strtoul_internal, _exit, abort): Use check_no_hidden
9131         to make sure that these symbols are defined.
9132         * sysdeps/mach/hurd/bits/socket.h: Include <bits/wordsize.h> instead
9133         of <limits.h>
9134         (__need_NULL): Do not define.
9135         (__ss_aligntype): Use __WORDSIZE instead of ULONG_MAX to determine
9136         alignment.
9137         [!__USE_MISC] (pseudo_AF_XTP, pseudo_AF_RTIP, pseudo_AF_PIP,
9138         CMGROUP_MAX, cmsgcred): Do not define.
9139         (CMSG_FIRSTHDR, __cmsg_nxthdr): Use (struct cmsghdr *) 0 instead of
9140         NULL.
9141         * bits/socket.h: Likewise.
9142         * sysdeps/unix/clock_gettime.c (realtime_gettime, __clock_gettime): Use
9143         __gettimeofday instead of gettimeofday.
9144         * sysdeps/unix/clock_settime.c (__clock_settime): Use __settimeofday
9145         instead of settimeofday.
9147 2017-09-22  Joseph Myers  <joseph@codesourcery.com>
9149         * sysdeps/ieee754/flt-32/s_asinhf.c: Include <libm-alias-float.h>.
9150         (asinhf): Define using libm_alias_float.
9151         * sysdeps/ieee754/flt-32/s_atanf.c: Include <libm-alias-float.h>.
9152         (atanf): Define using libm_alias_float.
9153         * sysdeps/ieee754/flt-32/s_cbrtf.c: Include <libm-alias-float.h>.
9154         (cbrtf): Define using libm_alias_float.
9155         * sysdeps/ieee754/flt-32/s_ceilf.c: Include <libm-alias-float.h>.
9156         (ceilf): Define using libm_alias_float.
9157         * sysdeps/ieee754/flt-32/s_copysignf.c: Include
9158         <libm-alias-float.h>.
9159         (copysignf): Define using libm_alias_float.
9160         * sysdeps/ieee754/flt-32/s_cosf.c: Include <libm-alias-float.h>.
9161         (cosf): Define using libm_alias_float.
9162         * sysdeps/ieee754/flt-32/s_erff.c: Include <libm-alias-float.h>.
9163         (erff): Define using libm_alias_float.
9164         (erfcf): Likewise.
9165         * sysdeps/ieee754/flt-32/s_expm1f.c: Include <libm-alias-float.h>.
9166         (expm1f): Define using libm_alias_float.
9167         * sysdeps/ieee754/flt-32/s_fabsf.c: Include <libm-alias-float.h>.
9168         (fabsf): Define using libm_alias_float.
9169         * sysdeps/ieee754/flt-32/s_floorf.c: Include <libm-alias-float.h>.
9170         (floorf): Define using libm_alias_float.
9171         * sysdeps/ieee754/flt-32/s_frexpf.c: Include <libm-alias-float.h>.
9172         (frexpf): Define using libm_alias_float.
9173         * sysdeps/ieee754/flt-32/s_fromfpf.c (fromfpf): Define using
9174         libm_alias_float.
9175         * sysdeps/ieee754/flt-32/s_fromfpf_main.c: Include
9176         <libm-alias-float.h>.
9177         * sysdeps/ieee754/flt-32/s_fromfpxf.c (fromfpxf): Define using
9178         libm_alias_float.
9179         * sysdeps/ieee754/flt-32/s_getpayloadf.c: Include
9180         <libm-alias-float.h>.
9181         (getpayloadf): Define using libm_alias_float.
9182         * sysdeps/ieee754/flt-32/s_llrintf.c: Include
9183         <libm-alias-float.h>.
9184         (llrintf): Define using libm_alias_float.
9185         * sysdeps/ieee754/flt-32/s_llroundf.c: Include
9186         <libm-alias-float.h>.
9187         (llroundf): Define using libm_alias_float.
9188         * sysdeps/ieee754/flt-32/s_logbf.c: Include <libm-alias-float.h>.
9189         (logbf): Define using libm_alias_float.
9190         * sysdeps/ieee754/flt-32/s_lrintf.c: Include <libm-alias-float.h>.
9191         (lrintf): Define using libm_alias_float.
9192         * sysdeps/ieee754/flt-32/s_lroundf.c: Include <libm-alias-float.h>.
9193         (lroundf): Define using libm_alias_float.
9194         * sysdeps/ieee754/flt-32/s_modff.c: Include <libm-alias-float.h>.
9195         (modff): Define using libm_alias_float.
9196         * sysdeps/ieee754/flt-32/s_nearbyintf.c: Include
9197         <libm-alias-float.h>.
9198         (nearbyintf): Define using libm_alias_float.
9199         * sysdeps/ieee754/flt-32/s_nextafterf.c: Include
9200         <libm-alias-float.h>.
9201         (nextafterf): Define using libm_alias_float.
9202         * sysdeps/ieee754/flt-32/s_nextupf.c: Include
9203         <libm-alias-float.h>.
9204         (nextupf): Define using libm_alias_float.
9205         * sysdeps/ieee754/flt-32/s_remquof.c: Include
9206         <libm-alias-float.h>.
9207         (remquof): Define using libm_alias_float.
9208         * sysdeps/ieee754/flt-32/s_rintf.c: Include <libm-alias-float.h>.
9209         (rintf): Define using libm_alias_float.
9210         * sysdeps/ieee754/flt-32/s_roundevenf.c: Include
9211         <libm-alias-float.h>.
9212         (roundevenf): Define using libm_alias_float.
9213         * sysdeps/ieee754/flt-32/s_roundf.c: Include <libm-alias-float.h>.
9214         (roundf): Define using libm_alias_float.
9215         * sysdeps/ieee754/flt-32/s_setpayloadf.c (setpayloadf): Define
9216         using libm_alias_float.
9217         * sysdeps/ieee754/flt-32/s_setpayloadf_main.c: Include
9218         <libm-alias-float.h>.
9219         * sysdeps/ieee754/flt-32/s_setpayloadsigf.c (setpayloadsigf):
9220         Define using libm_alias_float.
9221         * sysdeps/ieee754/flt-32/s_sincosf.c: Include
9222         <libm-alias-float.h>.
9223         (sincosf): Define using libm_alias_float.
9224         * sysdeps/ieee754/flt-32/s_sinf.c: Include <libm-alias-float.h>.
9225         (sinf): Define using libm_alias_float.
9226         * sysdeps/ieee754/flt-32/s_tanf.c: Include <libm-alias-float.h>.
9227         (tanf): Define using libm_alias_float.
9228         * sysdeps/ieee754/flt-32/s_tanhf.c: Include <libm-alias-float.h>.
9229         (tanhf): Define using libm_alias_float.
9230         * sysdeps/ieee754/flt-32/s_totalorderf.c: Include
9231         <libm-alias-float.h>.
9232         (totalorderf): Define using libm_alias_float.
9233         * sysdeps/ieee754/flt-32/s_totalordermagf.c: Include
9234         <libm-alias-float.h>.
9235         (totalordermagf): Define using libm_alias_float.
9236         * sysdeps/ieee754/flt-32/s_truncf.c: Include <libm-alias-float.h>.
9237         (truncf): Define using libm_alias_float.
9238         * sysdeps/ieee754/flt-32/s_ufromfpf.c (ufromfpf): Define using
9239         libm_alias_float.
9240         * sysdeps/ieee754/flt-32/s_ufromfpxf.c (ufromfpxf): Define using
9241         libm_alias_float.
9243 2017-09-22  Gabriel F. T. Gomes  <gabriel@inconstante.eti.br>
9245         [BZ #22146]
9246         math/math.h: Let fpclassify use the builtin in C++ mode, even
9247         when optimazing for size.
9249 2017-09-22  Joseph Myers  <joseph@codesourcery.com>
9251         * csu/Makefile (generated): Do not add version-info.h.
9252         (before-compile): Likewise.
9253         (all-Banner-files): Remove variable.
9254         ($(objpfx)version-info.h): Remove rule.
9255         * csu/version.c (banner): Do not include "version-info.h".
9256         * libidn/Banner: Remove.
9257         * manual/contrib.texi (Simon Josefsson): New entry.
9259 2017-09-21  Gabriel F. T. Gomes  <gabriel@inconstante.eti.br>
9261         * sysdeps/ieee754/ldbl-128/e_lgammal_r.c (__ieee754_lgammal_r):
9262         Remove conditionals on LDBL_MANT_DIG.
9263         * sysdeps/ieee754/ldbl-128ibm/e_lgammal_r.c
9264         (__ieee754_lgammal_r): Likewise.
9266 2017-09-21  Gabriel F. T. Gomes  <gabriel@inconstante.eti.br>
9268         * sysdeps/ieee754/ldbl-128ibm/e_expl.c: Remove definitions of
9269         _Float128 and L().
9270         * sysdeps/ieee754/ldbl-128ibm/e_j0l.c: Remove definitions of
9271         _Float128 and L(). Replace _Float128 with long double and L(x)
9272         with xL, throughout the file.
9273         * sysdeps/ieee754/ldbl-128ibm/e_j1l.c: Likewise.
9274         * sysdeps/ieee754/ldbl-128ibm/e_lgammal_r.c: Likewise.
9275         * sysdeps/ieee754/ldbl-128ibm/s_cbrtl.c: Likewise.
9276         * sysdeps/ieee754/ldbl-128ibm/t_expl.h: Likewise.
9278 2017-09-21  Gabriel F. T. Gomes  <gabriel@inconstante.eti.br>
9280         * sysdeps/ieee754/ldbl-128ibm/e_expl.c: Include tables from
9281         sysdeps/ieee754/ldbl-128ibm.
9282         * sysdeps/ieee754/ldbl-128ibm/e_j0l.c: Copy contents from the
9283         equivalent implementation in sysdeps/ieee754/ldbl-128/ instead
9284         of including it.  Keep _Float128 and L() intact.  These will be
9285         reviewed by a separate patch.
9286         * sysdeps/ieee754/ldbl-128ibm/e_j1l.c: Likewise.
9287         * sysdeps/ieee754/ldbl-128ibm/e_lgammal_r.c: Likewise.
9288         * sysdeps/ieee754/ldbl-128ibm/s_cbrtl.c: Likewise.
9289         * sysdeps/ieee754/ldbl-128ibm/t_expl.h: Likewise.
9291 2017-09-21  Gabriel F. T. Gomes  <gabriel@inconstante.eti.br>
9293         * sysdeps/powerpc/powerpc64/fpu/multiarch/s_finite.c
9294         (__finitef128): Define to __redirect___finitef128.
9295         * sysdeps/powerpc/powerpc64/fpu/multiarch/s_isinf.c
9296         (__isinff128): Define to __redirect___isinff128.
9297         * sysdeps/powerpc/powerpc64/fpu/multiarch/s_isnan.c
9298         (__isnanf128): Define to __redirect___isnanf128.
9300 2017-09-21  Gabriel F. T. Gomes  <gabriel@inconstante.eti.br>
9302         * sysdeps/powerpc/powerpc64le/Makefile
9303         (CFLAGS-tst-strtod-nan-locale.c): New variable.
9304         (CFLAGS-tst-wcstod-nan-locale.c): New variable.
9306 2017-09-21  Paul Pluzhnikov  <ppluzhnikov@google.com>
9307             Carlos O'Donell  <carlos@redhat.com>
9309         [BZ #22180]
9310         * stdlib/Makefile (tests): Add test-dlclose-exit-race.
9311         * stdlib/test-dlclose-exit-race.c: New file.
9312         * stdlib/test-dlclose-exit-race-helper.c: New file.
9313         * stdlib/exit.c (__run_exit_handlers): Mark slot as free.
9315 2017-09-21  Joseph Myers  <joseph@codesourcery.com>
9317         * crypt/Banner: Remove file.
9318         * nptl/Banner: Likewise.
9319         * resolv/Banner: Likewise.
9320         * soft-fp/Banner: Likewise.
9321         * nptl/Makefile ($(objpfx)banner.h): Remove rule.
9322         ($(objpfx)version.d): Remove dependency on banner.h.
9323         ($(objpfx)version.os): Likewise.
9324         * nptl/version.c (banner): Do not include banner.h.
9325         * manual/contrib.texi: Update entries for Richard Henderson, Jakub
9326         Jelinek and BIND code.
9328 2017-09-20  Paul Pluzhnikov  <ppluzhnikov@google.com>
9329             Carlos O'Donell  <carlos@redhat.com>
9331         * support/xdlfcn.h: New file.
9332         * support/xdlfcn.c: New file.
9333         * support/Makefile (libsupport-routines): Add xdlfcn.
9334         * stdlib/tst-tls-atexit.c: Use xdlopen, xdlsym, xdlclose.
9336 2017-09-20  Joseph Myers  <joseph@codesourcery.com>
9338         [BZ #20142]
9339         * sysdeps/x86_64/fpu/multiarch/Makefile (libm-sysdep_routines):
9340         Add s_trunc-c, s_truncf-c, s_trunc-sse4_1 and s_truncf-sse4_1.
9341         * sysdeps/x86_64/fpu/multiarch/s_trunc-c.c: New file.
9342         * sysdeps/x86_64/fpu/multiarch/s_trunc-sse4_1.S: Likewise.
9343         * sysdeps/x86_64/fpu/multiarch/s_trunc.c: Likewise.
9344         * sysdeps/x86_64/fpu/multiarch/s_truncf-c.c: Likewise.
9345         * sysdeps/x86_64/fpu/multiarch/s_truncf-sse4_1.S: Likewise.
9346         * sysdeps/x86_64/fpu/multiarch/s_truncf.c: Likewise.
9348 2017-09-20  Paul Pluzhnikov  <ppluzhnikov@google.com>
9349             Ricky Zhou  <rickyz@google.com>
9350             Anoop V Chakkalakkal  <anoop.vijayan@in.ibm.com>
9352         [BZ #14333]
9353         * stdlib/cxa_atexit.c (__internal_atexit): Use __exit_funcs_lock.
9354         Remove atomics.
9355         (__new_exitfn): Fail registration when we finished at_exit processing.
9356         * stdlib/cxa_finalize.c (__cxa_finalize): Likewise.
9357         * stdlib/on_exit.c (__on_exit): Likewise.
9358         * stdlib/exit.c (__exit_funcs_done): New variable.
9359         (__run_exit_handlers): Use __exit_funcs_lock.
9360         * stdlib/exit.h (__exit_funcs_lock, __exit_funcs_done): New
9361         declarations.
9362         * stdlib/Makefile (test-atexit-race, test-quick_at_exit-race)
9363         (test-cxa_atexit-race, test-on_exit-race): New tests.
9364         * stdlib/test-atexit-race-common.c: New file.
9365         * stdlib/test-atexit-race.c: New file.
9366         * stdlib/test-at_quick_exit-race.c: New file.
9367         * stdlib/test-cxa_atexit-race.c: New file.
9368         * stdlib/test-on_exit-race.c: New file.
9370 2017-09-20  Szabolcs Nagy  <szabolcs.nagy@arm.com>
9372         * benchtests/Makefile: Add exp2f and log2f benchmarks.
9373         * benchtests/exp2f-inputs: Copy of expf-inputs.
9374         * benchtests/log2f-inputs: Copy of logf-inputs.
9376 2017-09-19  Joseph Myers  <joseph@codesourcery.com>
9378         * sysdeps/unix/sysv/linux/fexecve.c (fexecve) [__NR_execveat]:
9379         Explicitly take address of first element of array arguments in
9380         call to INLINE_SYSCALL.
9382 2017-09-19  Andreas Schwab  <schwab@suse.de>
9384         [BZ #22134]
9385         * sysdeps/unix/sysv/linux/fexecve.c (fexecve) [__NR_execveat]: Try
9386         execveat first.
9387         [!__ASSUME_EXECVEAT]: Fall back to /proc if execveat is
9388         unimplemented.
9389         * sysdeps/unix/sysv/linux/kernel-features.h (__ASSUME_EXECVEAT)
9390         [__LINUX_KERNEL_VERSION >= 0x031300]: Define.
9391         * sysdeps/unix/sysv/linux/alpha/kernel-features.h
9392         (__ASSUME_EXECVEAT) [__LINUX_KERNEL_VERSION < 0x040200]: Undef.
9393         * sysdeps/unix/sysv/linux/hppa/kernel-features.h
9394         (__ASSUME_EXECVEAT) [__LINUX_KERNEL_VERSION < 0x040000]: Undef.
9395         * sysdeps/unix/sysv/linux/microblaze/kernel-features.h
9396         (__ASSUME_EXECVEAT) [__LINUX_KERNEL_VERSION < 0x040000]: Undef.
9397         * posix/Makefile (tests): Add tst-fexecve.
9398         * posix/tst-fexecve.c: New file.
9400 2017-09-19  Wilco Dijkstra  <wdijkstr@arm.com>
9402         * benchtests/Makefile: Add logf benchmark.
9403         * benchtests/logf-inputs: Add reduced trace from wrf_r.
9405 2017-09-19  Wilco Dijkstra  <wdijkstr@arm.com>
9407         * benchtests/Makefile: Add expf benchmark.
9408         * benchtests/expf-inputs: Add reduced trace from wrf_r.
9410 2017-09-19  Wilco Dijkstra  <wdijkstr@arm.com>
9412         * csu/Makefile: Add -funwind-tables to libc-start.c.
9413         * debug/Makefile: Add -funwind-tables to backtrace.c.
9414         * sysdeps/aarch64/Makefile: Remove CFLAGS-backtrace.c.
9415         * sysdeps/arm/Makefile: Likewise.
9416         * sysdeps/i386/Makefile: Likewise.
9417         * sysdeps/m68k/Makefile: Likewise.
9418         * sysdeps/mips/Makefile: Likewise.
9419         * sysdeps/nios2/Makefile: Likewise.
9420         * sysdeps/sh/Makefile: Likewise.
9421         * sysdeps/sparc/Makefile: Likewise.
9423 2017-09-19  Joseph Myers  <joseph@codesourcery.com>
9425         * benchtests/Makefile (bench-math): Add trunc and truncf.
9426         (CFLAGS-bench-trunc.c): New variable.
9427         (CFLAGS-bench-truncf.c): Likewise.
9428         * benchtests/trunc-inputs: New file.
9429         * benchtests/truncf-inputs: Likewise.
9431 2017-09-19  Rajalakshmi Srinivasaraghavan  <raji@linux.vnet.ibm.com>
9433         * sysdeps/powerpc/powerpc64/power8/memset.S: Avoid misaligned stores.
9435 2017-09-18  Joseph Myers  <joseph@codesourcery.com>
9437         * sysdeps/ieee754/ldbl-opt/w_exp10l_compat.c [LIBM_SVID_COMPAT &&
9438         !LONG_DOUBLE_COMPAT (libm, GLIBC_2_1)] (weak_alias): Undefine and
9439         redefine.
9440         [LIBM_SVID_COMPAT && !LONG_DOUBLE_COMPAT (libm, GLIBC_2_1)]
9441         (exp10l): Define as weak alias.
9442         * sysdeps/ieee754/ldbl-opt/w_remainderl_compat.c [LIBM_SVID_COMPAT
9443         && !LONG_DOUBLE_COMPAT (libm, GLIBC_2_0)] (weak_alias): Undefine
9444         and redefine.
9445         [LIBM_SVID_COMPAT && !LONG_DOUBLE_COMPAT (libm, GLIBC_2_0)]
9446         (remainderl): Define as weak alias.
9448         * math/s_fmal.c: Include <libm-alias-ldouble.h>.
9449         (fmal): Define using libm_alias_ldouble.
9450         * math/w_acoshl_compat.c: Include <libm-alias-ldouble.h>.
9451         (acoshl): Define using libm_alias_ldouble.
9452         * math/w_acosl_compat.c: Include <libm-alias-ldouble.h>.
9453         (acosl): Define using libm_alias_ldouble.
9454         * math/w_asinl_compat.c: Include <libm-alias-ldouble.h>.
9455         (asinl): Define using libm_alias_ldouble.
9456         * math/w_atan2l_compat.c: Include <libm-alias-ldouble.h>.
9457         (atan2l): Define using libm_alias_ldouble.
9458         * math/w_atanhl_compat.c: Include <libm-alias-ldouble.h>.
9459         (atanhl): Define using libm_alias_ldouble.
9460         * math/w_coshl_compat.c: Include <libm-alias-ldouble.h>.
9461         (coshl): Define using libm_alias_ldouble.
9462         * math/w_exp10l_compat.c: Include <libm-alias-ldouble.h>.
9463         (exp10l): Define using libm_alias_ldouble.
9464         * math/w_exp2l_compat.c: Include <libm-alias-ldouble.h>.
9465         (exp2l): Define using libm_alias_ldouble.
9466         * math/w_expl_compat.c: Include <libm-alias-ldouble.h>.
9467         (expl): Define using libm_alias_ldouble.
9468         * math/w_fmodl_compat.c: Include <libm-alias-ldouble.h>.
9469         (fmodl): Define using libm_alias_ldouble.
9470         * math/w_hypotl_compat.c: Include <libm-alias-ldouble.h>.
9471         (hypotl): Define using libm_alias_ldouble.
9472         * math/w_j0l_compat.c: Include <libm-alias-ldouble.h>.
9473         (j0l): Define using libm_alias_ldouble.
9474         (y0l): Likewise.
9475         * math/w_j1l_compat.c: Include <libm-alias-ldouble.h>.
9476         (j1l): Define using libm_alias_ldouble.
9477         (y1l): Likewise.
9478         * math/w_jnl_compat.c: Include <libm-alias-ldouble.h>.
9479         (jnl): Define using libm_alias_ldouble.
9480         (ynl): Likewise.
9481         * math/w_log10l_compat.c: Include <libm-alias-ldouble.h>.
9482         (log10l): Define using libm_alias_ldouble.
9483         * math/w_log2l_compat.c: Include <libm-alias-ldouble.h>.
9484         (log2l): Define using libm_alias_ldouble.
9485         * math/w_logl_compat.c: Include <libm-alias-ldouble.h>.
9486         (logl): Define using libm_alias_ldouble.
9487         * math/w_powl_compat.c: Include <libm-alias-ldouble.h>.
9488         (powl): Define using libm_alias_ldouble.
9489         * math/w_remainderl_compat.c: Include <libm-alias-ldouble.h>.
9490         (remainderl): Define using libm_alias_ldouble.
9491         * math/w_sinhl_compat.c: Include <libm-alias-ldouble.h>.
9492         (sinhl): Define using libm_alias_ldouble.
9493         * math/w_sqrtl_compat.c: Include <libm-alias-ldouble.h>.
9494         (sqrtl): Define using libm_alias_ldouble.
9495         * math/w_tgammal_compat.c: Include <libm-alias-ldouble.h>.
9496         (tgammal): Define using libm_alias_ldouble.
9497         * sysdeps/ieee754/ldbl-opt/w_exp10l_compat.c [LIBM_SVID_COMPAT]
9498         (exp10l): Do not use long_double_symbol here.
9499         * sysdeps/ieee754/ldbl-opt/w_remainderl_compat.c
9500         [LIBM_SVID_COMPAT] (remainderl): Likewise.
9501         * sysdeps/ieee754/ldbl-opt/s_fmal.c: Remove.
9502         * sysdeps/ieee754/ldbl-opt/w_acoshl_compat.c: Likewise.
9503         * sysdeps/ieee754/ldbl-opt/w_acosl_compat.c: Likewise.
9504         * sysdeps/ieee754/ldbl-opt/w_asinl_compat.c: Likewise.
9505         * sysdeps/ieee754/ldbl-opt/w_atan2l_compat.c: Likewise.
9506         * sysdeps/ieee754/ldbl-opt/w_atanhl_compat.c: Likewise.
9507         * sysdeps/ieee754/ldbl-opt/w_coshl_compat.c: Likewise.
9508         * sysdeps/ieee754/ldbl-opt/w_expl_compat.c: Likewise.
9509         * sysdeps/ieee754/ldbl-opt/w_fmodl_compat.c: Likewise.
9510         * sysdeps/ieee754/ldbl-opt/w_hypotl_compat.c: Likewise.
9511         * sysdeps/ieee754/ldbl-opt/w_j0l_compat.c: Likewise.
9512         * sysdeps/ieee754/ldbl-opt/w_j1l_compat.c: Likewise.
9513         * sysdeps/ieee754/ldbl-opt/w_jnl_compat.c: Likewise.
9514         * sysdeps/ieee754/ldbl-opt/w_log10l_compat.c: Likewise.
9515         * sysdeps/ieee754/ldbl-opt/w_log2l_compat.c: Likewise.
9516         * sysdeps/ieee754/ldbl-opt/w_logl_compat.c: Likewise.
9517         * sysdeps/ieee754/ldbl-opt/w_powl_compat.c: Likewise.
9518         * sysdeps/ieee754/ldbl-opt/w_sinhl_compat.c: Likewise.
9519         * sysdeps/ieee754/ldbl-opt/w_sqrtl_compat.c: Likewise.
9520         * sysdeps/ieee754/ldbl-opt/w_tgammal_compat.c: Likewise.
9522 2017-09-18  Wang Boshi  <wangboshi@huawei.com>  (tiny change)
9524         * sysdeps/aarch64/start.S: Use MOVL instead of literal pools.
9525         * sysdeps/aarch64/sysdep.h (MOVL): Add MOVL macro.
9527 2017-09-17  Samuel Thibault  <samuel.thibault@ens-lyon.org>
9529         * io/read.c (read): Add libc_hidden_weak.
9530         * sysdeps/mach/hurd/read.c (read): Likewise.
9531         * io/write.c (write): Likewise.
9532         * sysdeps/mach/hurd/write.c (write): Likewise.
9533         * io/pread64.c (__pread64): Likewise.
9534         * sysdeps/mach/hurd/pread64.c (__pread64): Likewise.
9535         * posix/pread64.c (__pread64): Add libc_hidden_def.
9537 2017-09-16  Siddhesh Poyarekar  <siddhesh@sourceware.org>
9539         * benchtests/scripts/compare_strings.py: New option -g.
9540         (draw_graph): Print a message that a graph is being generated.
9541         (process_results): Generate graph only if -g is passed.
9542         (main): Process option -g.
9544         * benchtests/scripts/compare_strings.py (process_results):
9545         Better spacing for output.
9547         * benchtests/scripts/compare_strings.py: Use argparse.
9548         * benchtests/README: Document existence of compare_strings.py.
9550 2017-09-15  Joseph Myers  <joseph@codesourcery.com>
9552         * math/s_fma.c: Include <libm-alias-double.h>.
9553         (fma): Define using libm_alias_double.
9554         * math/s_nextafter.c: Include <libm-alias-double.h>.
9555         (nextafter): Define using libm_alias_double.
9556         * math/w_acos_compat.c: Include <libm-alias-double.h>.
9557         (acos): Define using libm_alias_double.
9558         * math/w_acosh_compat.c: Include <libm-alias-double.h>.
9559         (aocsh): Define using libm_alias_double.
9560         * math/w_asin_compat.c: Include <libm-alias-double.h>.
9561         (asin): Define using libm_alias_double.
9562         * math/w_atan2_compat.c: Include <libm-alias-double.h>.
9563         (atan2): Define using libm_alias_double.
9564         * math/w_atanh_compat.c: Include <libm-alias-double.h>.
9565         (atanh): Define using libm_alias_double.
9566         * math/w_cosh_compat.c: Include <libm-alias-double.h>.
9567         (cosh): Define using libm_alias_double.
9568         * math/w_exp10_compat.c: Include <libm-alias-double.h>.
9569         (exp10): Define using libm_alias_double.
9570         * math/w_exp2_compat.c: Include <libm-alias-double.h>.
9571         (exp2): Define using libm_alias_double.
9572         * math/w_exp_compat.c: Include <libm-alias-double.h>.
9573         (exp): Define using libm_alias_double.
9574         * math/w_fmod_compat.c: Include <libm-alias-double.h>.
9575         (fmod): Define using libm_alias_double.
9576         * math/w_hypot_compat.c: Include <libm-alias-double.h>.
9577         (hypot): Define using libm_alias_double.
9578         * math/w_j0_compat.c: Include <libm-alias-double.h>.
9579         (j0): Define using libm_alias_double.
9580         (y0): Likewise.
9581         * math/w_j1_compat.c: Include <libm-alias-double.h>.
9582         (j1): Define using libm_alias_double.
9583         (y1): Likewise.
9584         * math/w_jn_compat.c: Include <libm-alias-double.h>.
9585         (jn): Define using libm_alias_double.
9586         (yn): Likewise.
9587         * math/w_log10_compat.c: Include <libm-alias-double.h>.
9588         (log10): Define using libm_alias_double.
9589         * math/w_log2_compat.c: Include <libm-alias-double.h>.
9590         (log2): Define using libm_alias_double.
9591         * math/w_log_compat.c: Include <libm-alias-double.h>.
9592         (log): Define using libm_alias_double.
9593         * math/w_pow_compat.c: Include <libm-alias-double.h>.
9594         (pow): Define using libm_alias_double.
9595         * math/w_remainder_compat.c: Include <libm-alias-double.h>.
9596         (remainder): Define using libm_alias_double.
9597         * math/w_sinh_compat.c: Include <libm-alias-double.h>.
9598         (sinh): Define using libm_alias_double.
9599         * math/w_sqrt_compat.c: Include <libm-alias-double.h>.
9600         (sqrt): Define using libm_alias_double.
9601         * math/w_tgamma_compat.c: Include <libm-alias-double.h>.
9602         (tgamma): Define using libm_alias_double.
9603         * sysdeps/ieee754/ldbl-opt/s_nextafter.c [LONG_DOUBLE_COMPAT(libm,
9604         GLIBC_2_0)] (nextafterl): Do not define compat symbol here.
9605         * sysdeps/ieee754/ldbl-opt/w_exp10_compat.c
9606         [LONG_DOUBLE_COMPAT(libm, GLIBC_2_1)] (exp10l): Likewise.
9607         * sysdeps/ieee754/ldbl-opt/w_remainder_compat.c
9608         [LONG_DOUBLE_COMPAT(libm, GLIBC_2_0)] (remainderl): Likewise.
9609         * sysdeps/ieee754/ldbl-opt/w_acos_compat.c: Remove.
9610         * sysdeps/ieee754/ldbl-opt/w_acosh_compat.c: Likewise.
9611         * sysdeps/ieee754/ldbl-opt/w_asin_compat.c: Likewise.
9612         * sysdeps/ieee754/ldbl-opt/w_atan2_compat.c: Likewise.
9613         * sysdeps/ieee754/ldbl-opt/w_atanh_compat.c: Likewise.
9614         * sysdeps/ieee754/ldbl-opt/w_cosh_compat.c: Likewise.
9615         * sysdeps/ieee754/ldbl-opt/w_exp_compat.c: Likewise.
9616         * sysdeps/ieee754/ldbl-opt/w_fmod_compat.c: Likewise.
9617         * sysdeps/ieee754/ldbl-opt/w_hypot_compat.c: Likewise.
9618         * sysdeps/ieee754/ldbl-opt/w_j0_compat.c: Likewise.
9619         * sysdeps/ieee754/ldbl-opt/w_j1_compat.c: Likewise.
9620         * sysdeps/ieee754/ldbl-opt/w_jn_compat.c: Likewise.
9621         * sysdeps/ieee754/ldbl-opt/w_log10_compat.c: Likewise.
9622         * sysdeps/ieee754/ldbl-opt/w_log2_compat.c: Likewise.
9623         * sysdeps/ieee754/ldbl-opt/w_log_compat.c: Likewise.
9624         * sysdeps/ieee754/ldbl-opt/w_pow_compat.c: Likewise.
9625         * sysdeps/ieee754/ldbl-opt/w_sinh_compat.c: Likewise.
9626         * sysdeps/ieee754/ldbl-opt/w_sqrt_compat.c: Likewise.
9627         * sysdeps/ieee754/ldbl-opt/w_tgamma_compat.c: Likewise.
9629         * math/e_acoshl.c: Remove.
9630         * math/e_acosl.c: Likewise.
9631         * math/e_asinl.c: Likewise.
9632         * math/e_atan2l.c: Likewise.
9633         * math/e_atanhl.c: Likewise.
9634         * math/e_coshl.c: Likewise.
9635         * math/e_expl.c: Likewise.
9636         * math/e_fmodl.c: Likewise.
9637         * math/e_gammal_r.c: Likewise.
9638         * math/e_hypotl.c: Likewise.
9639         * math/e_j0l.c: Likewise.
9640         * math/e_j1l.c: Likewise.
9641         * math/e_jnl.c: Likewise.
9642         * math/e_lgammal_r.c: Likewise.
9643         * math/e_log10l.c: Likewise.
9644         * math/e_log2l.c: Likewise.
9645         * math/e_logl.c: Likewise.
9646         * math/e_powl.c: Likewise.
9647         * math/e_rem_pio2l.c: Likewise.
9648         * math/e_sinhl.c: Likewise.
9649         * math/e_sqrtf128.c: Likewise.
9650         * math/e_sqrtl.c: Likewise.
9651         * math/k_cosl.c: Likewise.
9652         * math/k_sinl.c: Likewise.
9653         * math/k_tanl.c: Likewise.
9654         * math/s_asinhl.c: Likewise.
9655         * math/s_atanl.c: Likewise.
9656         * math/s_cbrtl.c: Likewise.
9657         * math/s_erfl.c: Likewise.
9658         * math/s_expm1l.c: Likewise.
9659         * math/s_log1pl.c: Likewise.
9660         * math/s_tanhl.c: Likewise.
9662 2017-09-15  Tulio Magno Quites Machado Filho  <tuliom@linux.vnet.ibm.com>
9664         [BZ #21745]
9665         * sysdeps/powerpc/powerpc64/fpu/multiarch/Makefile:
9666         [$(subdir) = math] (sysdep_calls): New variable.  Has the
9667         previous contents of sysdep_routines, but re-sorted..
9668         [$(subdir) = math] (sysdep_routines): Re-use the contents from
9669         sysdep_calls.
9670         [$(subdir) = math] (libm-sysdep_routines): Remove the functions
9671         defined in sysdep_calls and replace by the respective m_* names.
9672         * sysdeps/powerpc/powerpc64/fpu/multiarch/s_isnan-ppc64.S:
9673         (compat_symbol): Undefine to avoid duplicated compat symbols in
9674         libc.
9676 2017-09-15  Joseph Myers  <joseph@codesourcery.com>
9678         * math/s_fmaf.c: Include <libm-alias-float.h>.
9679         (fmaf): Define using libm_alias_float.
9680         * math/w_acosf_compat.c: Include <libm-alias-float.h>.
9681         (acosf): Define using libm_alias_float.
9682         * math/w_acoshf_compat.c: Include <libm-alias-float.h>.
9683         (acoshf): Define using libm_alias_float.
9684         * math/w_asinf_compat.c: Include <libm-alias-float.h>.
9685         (asinf): Define using libm_alias_float.
9686         * math/w_atan2f_compat.c: Include <libm-alias-float.h>.
9687         (atan2f): Define using libm_alias_float.
9688         * math/w_atanhf_compat.c: Include <libm-alias-float.h>.
9689         (atanhf): Define using libm_alias_float.
9690         * math/w_coshf_compat.c: Include <libm-alias-float.h>.
9691         (coshf): Define using libm_alias_float.
9692         * math/w_exp10f_compat.c: Include <libm-alias-float.h>.
9693         (exp10f): Define using libm_alias_float.
9694         * math/w_fmodf_compat.c: Include <libm-alias-float.h>.
9695         (fmodf): Define using libm_alias_float.
9696         * math/w_hypotf_compat.c: Include <libm-alias-float.h>.
9697         (hypotf): Define using libm_alias_float.
9698         * math/w_j0f_compat.c: Include <libm-alias-float.h>.
9699         (j0f): Define using libm_alias_float.
9700         (y0f): Likewise.
9701         * math/w_j1f_compat.c: Include <libm-alias-float.h>.
9702         (j1f): Define using libm_alias_float.
9703         (y1f): Likewise.
9704         * math/w_jnf_compat.c: Include <libm-alias-float.h>.
9705         (jnf): Define using libm_alias_float.
9706         (ynf): Likewise.
9707         * math/w_log10f_compat.c: Include <libm-alias-float.h>.
9708         (log10f): Define using libm_alias_float.
9709         * math/w_log2f_compat.c: Include <libm-alias-float.h>.
9710         (log2f): Define using libm_alias_float.
9711         * math/w_logf_compat.c: Include <libm-alias-float.h>.
9712         (logf): Define using libm_alias_float.
9713         * math/w_powf_compat.c: Include <libm-alias-float.h>.
9714         (powf): Define using libm_alias_float.
9715         * math/w_remainderf_compat.c: Include <libm-alias-float.h>.
9716         (remainderf): Define using libm_alias_float.
9717         * math/w_sinhf_compat.c: Include <libm-alias-float.h>.
9718         (sinhf): Define using libm_alias_float.
9719         * math/w_sqrtf_compat.c: Include <libm-alias-float.h>.
9720         (sqrtf): Define using libm_alias_float.
9721         * math/w_tgammaf_compat.c: Include <libm-alias-float.h>.
9722         (tgammaf): Define using libm_alias_float.
9724 2017-09-14  Joseph Myers  <joseph@codesourcery.com>
9726         * include/math.h (roundeven): Change hidden_proto call to
9727         __roundeven.
9728         * math/w_j0_compat.c (j0): Rename to __j0 and define as weak
9729         alias.
9730         [NO_LONG_DOUBLE] (__j0l): New strong alias.
9731         (y0): Rename to __y0 and define as weak alias.
9732         [NO_LONG_DOUBLE] (__y0l): New strong alias.
9733         * math/w_j0f_compat.c (j0f): Rename to __j0f and define as weak
9734         alias.
9735         (y0f): Rename to __y0f and define as weak alias.
9736         * math/w_j1_compat.c (j1): Rename to __j1 and define as weak
9737         alias.
9738         [NO_LONG_DOUBLE] (__j1l): New strong alias.
9739         (y1): Rename to __y1 and define as weak alias.
9740         [NO_LONG_DOUBLE] (__y1l): New strong alias.
9741         * math/w_j1f_compat.c (j1f): Rename to __j1f and define as weak
9742         alias.
9743         (y1f): Rename to __y1f and define as weak alias.
9744         * math/w_jn_compat.c (jn): Rename to __jn and define as weak
9745         alias.
9746         [NO_LONG_DOUBLE] (__jnl): New strong alias.
9747         (yn): Rename to __yn and define as weak alias.
9748         [NO_LONG_DOUBLE] (__ynl): New strong alias.
9749         * math/w_jnf_compat.c (jnf): Rename to __jnf and define as weak
9750         alias.
9751         (ynf): Rename to __ynf and define as weak alias.
9752         * sysdeps/ieee754/dbl-64/s_fromfp.c (FUNC): Define to __fromfp.
9753         (fromfp): Define as weak alias.
9754         [NO_LONG_DOUBLE] (__fromfpl): New strong alias.
9755         * sysdeps/ieee754/dbl-64/s_fromfpx.c (FUNC): Define to __fromfpx.
9756         (fromfpx): Define as weak alias.
9757         [NO_LONG_DOUBLE] (__fromfpxl): New strong alias.
9758         * sysdeps/ieee754/dbl-64/s_getpayload.c (getpayload): Rename to
9759         __getpayload and define as weak alias.
9760         [NO_LONG_DOUBLE] (__getpayloadl): New strong alias.
9761         * sysdeps/ieee754/dbl-64/s_roundeven.c (roundeven): Rename to
9762         __roundeven and define as weak alias.
9763         [NO_LONG_DOUBLE] (__roundevenl): New strong alias.
9764         * sysdeps/ieee754/dbl-64/s_setpayload.c (FUNC): Define to
9765         __setpayload.
9766         (setpayload): Define as weak alias.
9767         [NO_LONG_DOUBLE] (__setpayloadl): New strong alias.
9768         * sysdeps/ieee754/dbl-64/s_setpayloadsig.c (FUNC): Define to
9769         __setpayloadsig.
9770         (setpayloadsig): Define as weak alias.
9771         [NO_LONG_DOUBLE] (__setpayloadsigl): New strong alias.
9772         * sysdeps/ieee754/dbl-64/s_totalorder.c (totalorder): Rename to
9773         __totalorder and define as weak alias.
9774         [NO_LONG_DOUBLE] (__totalorderl): New strong alias.
9775         * sysdeps/ieee754/dbl-64/s_totalordermag.c (totalordermag): Rename
9776         to __totalordermag and define as weak alias.
9777         [NO_LONG_DOUBLE] (__totalordermagl): New strong alias.
9778         * sysdeps/ieee754/dbl-64/s_ufromfp.c (FUNC): Define to __ufromfp.
9779         (ufromfp): Define as weak alias.
9780         [NO_LONG_DOUBLE] (__ufromfpl): New strong alias.
9781         * sysdeps/ieee754/dbl-64/s_ufromfpx.c (FUNC): Define to
9782         __ufromfpx.
9783         (ufromfpx): Define as weak alias.
9784         [NO_LONG_DOUBLE] (__ufromfpxl): New strong alias.
9785         * sysdeps/ieee754/dbl-64/wordsize-64/s_getpayload.c (getpayload):
9786         Rename to __getpayload and define as weak alias.
9787         [NO_LONG_DOUBLE] (__getpayloadl): New strong alias.
9788         * sysdeps/ieee754/dbl-64/wordsize-64/s_roundeven.c (roundeven):
9789         Rename to __roundeven and define as weak alias.
9790         [NO_LONG_DOUBLE] (__roundevenl): New strong alias.
9791         * sysdeps/ieee754/dbl-64/wordsize-64/s_totalorder.c (totalorder):
9792         Rename to __totalorder and define as weak alias.
9793         [NO_LONG_DOUBLE] (__totalorderl): New strong alias.
9794         * sysdeps/ieee754/dbl-64/wordsize-64/s_totalordermag.c
9795         (totalordermag): Rename to __totalordermag and define as weak
9796         alias.
9797         [NO_LONG_DOUBLE] (__totalordermagl): New strong alias.
9798         * sysdeps/ieee754/float128/float128_private.h (__getpayloadl): New
9799         macro.
9800         (__roundevenl): Likewise.
9801         (__totalorderl): Likewise.
9802         (__totalordermagl): Likewise
9803         * sysdeps/ieee754/float128/s_fromfpf128.c (FUNC): Define to
9804         __fromfpf128.
9805         (fromfpf128): Define as weak alias.
9806         * sysdeps/ieee754/float128/s_fromfpxf128.c (FUNC): Define to
9807         __fromfpxf128.
9808         (fromfpxf128): Define as weak alias.
9809         * sysdeps/ieee754/float128/s_setpayloadf128.c (FUNC): Define to
9810         __setpayloadf128.
9811         (setpayloadf128): Define as weak alias.
9812         * sysdeps/ieee754/float128/s_setpayloadsigf128.c (FUNC): Define to
9813         __setpayloadsigf128.
9814         (setpayloadsigf128): Define as weak alias.
9815         * sysdeps/ieee754/float128/s_ufromfpf128.c (FUNC): Define to
9816         __ufromfpf128.
9817         (ufromfpf128): Define as weak alias.
9818         * sysdeps/ieee754/float128/s_ufromfpxf128.c (FUNC): Define to
9819         __ufromfpxf128.
9820         (ufromfpxf128): Define as weak alias.
9821         * sysdeps/ieee754/flt-32/s_fromfpf.c (FUNC): Define to __fromfpf.
9822         (fromfpf): Define as weak alias.
9823         * sysdeps/ieee754/flt-32/s_fromfpxf.c (FUNC): Define to
9824         __fromfpxf.
9825         (fromfpxf): Define as weak alias.
9826         * sysdeps/ieee754/flt-32/s_getpayloadf.c (getpayloadf): Rename to
9827         __getpayloadf and define as weak alias.
9828         * sysdeps/ieee754/flt-32/s_roundevenf.c (roundevenf): Rename to
9829         __roundevenf and define as weak alias.
9830         * sysdeps/ieee754/flt-32/s_setpayloadf.c (FUNC): Define to
9831         __setpayloadf.
9832         (setpayloadf): Define as weak alias.
9833         * sysdeps/ieee754/flt-32/s_setpayloadsigf.c (FUNC): Define to
9834         __setpayloadsigf.
9835         (setpayloadsigf): Define as weak alias.
9836         * sysdeps/ieee754/flt-32/s_totalorderf.c (totalorderf): Rename to
9837         __totalorderf and define as weak alias.
9838         * sysdeps/ieee754/flt-32/s_totalordermagf.c (totalordermagf):
9839         Rename to __totalordermagf and define as weak alias.
9840         * sysdeps/ieee754/flt-32/s_ufromfpf.c (FUNC): Define to
9841         __ufromfpf.
9842         (ufromfpf): Define as weak alias.
9843         * sysdeps/ieee754/flt-32/s_ufromfpxf.c (FUNC): Define to
9844         __ufromfpxf.
9845         (ufromfpxf): Define as weak alias.
9846         * sysdeps/ieee754/ldbl-128/s_fromfpl.c (FUNC): Define to
9847         __fromfpl.
9848         (fromfpl): Define as weak alias.
9849         * sysdeps/ieee754/ldbl-128/s_fromfpxl.c (FUNC): Define to
9850         __fromfpxl.
9851         (fromfpxl): Define as weak alias.
9852         * sysdeps/ieee754/ldbl-128/s_getpayloadl.c (getpayloadl): Rename
9853         to __getpayloadl and define as weak alias.
9854         * sysdeps/ieee754/ldbl-128/s_roundevenl.c (roundevenl): Rename to
9855         __roundevenl and define as weak alias.
9856         * sysdeps/ieee754/ldbl-128/s_setpayloadl.c (FUNC): Define to
9857         __setpayloadl.
9858         (setpayloadl): Define as weak alias.
9859         * sysdeps/ieee754/ldbl-128/s_setpayloadsigl.c (FUNC): Define to
9860         __setpayloadsigl.
9861         (setpayloadsigl): Define as weak alias.
9862         * sysdeps/ieee754/ldbl-128/s_totalorderl.c (totalorderl): Rename
9863         to __totalorderl and define as weak alias.
9864         * sysdeps/ieee754/ldbl-128/s_totalordermagl.c (totalordermagl):
9865         Rename to __totalordermagl and define as weak alias.
9866         * sysdeps/ieee754/ldbl-128/s_ufromfpl.c (FUNC): Define to
9867         __ufromfpl.
9868         (ufromfpl): Define as weak alias.
9869         * sysdeps/ieee754/ldbl-128/s_ufromfpxl.c (FUNC): Define to
9870         __ufromfpxl.
9871         (ufromfpxl): Define as weak alias.
9872         * sysdeps/ieee754/ldbl-128ibm/s_fromfpl.c (FUNC): Define to
9873         __fromfpl.
9874         (fromfpl): Define as weak alias.
9875         * sysdeps/ieee754/ldbl-128ibm/s_fromfpxl.c (FUNC): Define to
9876         __fromfpxl.
9877         (fromfpxl): Define as weak alias.
9878         * sysdeps/ieee754/ldbl-128ibm/s_getpayloadl.c (getpayloadl):
9879         Rename to __getpayloadl and define as weak alias.
9880         * sysdeps/ieee754/ldbl-128ibm/s_roundevenl.c (roundevenl): Rename
9881         to __roundevenl and define as weak alias.  Call __roundeven
9882         instead of roundeven.
9883         * sysdeps/ieee754/ldbl-128ibm/s_setpayloadl.c (FUNC): Define to
9884         __setpayloadl.
9885         (setpayloadl): Define as weak alias.
9886         * sysdeps/ieee754/ldbl-128ibm/s_setpayloadsigl.c (FUNC): Define to
9887         __setpayloadsigl.
9888         (setpayloadsigl): Define as weak alias.
9889         * sysdeps/ieee754/ldbl-128ibm/s_totalorderl.c (totalorderl):
9890         Rename to __totalorderl and define as weak alias.
9891         * sysdeps/ieee754/ldbl-128ibm/s_totalordermagl.c (totalordermagl):
9892         Rename to __totalordermagl and define as weak alias.
9893         * sysdeps/ieee754/ldbl-128ibm/s_ufromfpl.c (FUNC): Define to
9894         __ufromfpl.
9895         (ufromfpl): Define as weak alias.
9896         * sysdeps/ieee754/ldbl-128ibm/s_ufromfpxl.c (FUNC): Define to
9897         __ufromfpxl.
9898         (ufromfpxl): Define as weak alias.
9899         * sysdeps/ieee754/ldbl-96/s_fromfpl.c (FUNC): Define to
9900         __fromfpl.
9901         (fromfpl): Define as weak alias.
9902         * sysdeps/ieee754/ldbl-96/s_fromfpxl.c (FUNC): Define to
9903         __fromfpxl.
9904         (fromfpxl): Define as weak alias.
9905         * sysdeps/ieee754/ldbl-96/s_getpayloadl.c (getpayloadl): Rename to
9906         __getpayloadl and define as weak alias.
9907         * sysdeps/ieee754/ldbl-96/s_roundevenl.c (roundevenl): Rename to
9908         __roundevenl and define as weak alias.
9909         * sysdeps/ieee754/ldbl-96/s_setpayloadl.c (FUNC): Define to
9910         __setpayloadl.
9911         (setpayloadl): Define as weak alias.
9912         * sysdeps/ieee754/ldbl-96/s_setpayloadsigl.c (FUNC): Define to
9913         __setpayloadsigl.
9914         (setpayloadsigl): Define as weak alias.
9915         * sysdeps/ieee754/ldbl-96/s_totalorderl.c (totalorderl): Rename to
9916         __totalorderl and define as weak alias.
9917         * sysdeps/ieee754/ldbl-96/s_totalordermagl.c (totalordermagl):
9918         Rename to __totalordermagl and define as weak alias.
9919         * sysdeps/ieee754/ldbl-96/s_ufromfpl.c (FUNC): Define to
9920         __ufromfpl.
9921         (ufromfpl): Define as weak alias.
9922         * sysdeps/ieee754/ldbl-96/s_ufromfpxl.c (FUNC): Define to
9923         __ufromfpxl.
9924         (ufromfpxl): Define as weak alias.
9926 2017-09-14  Siddhesh Poyarekar  <siddhesh@sourceware.org>
9928         * benchtests/bench-string.h (realloc_bufs): New function.
9929         (test_init): Call it.
9930         * benchtests/bench-memset-large.c (do_test): Likewise.
9931         * benchtests/bench-memset.c (do_test): Likewise.
9933         * benchtests/bench-memset-large.c: Print output in JSON
9934         format.
9935         * benchtests/bench-memset.c: Likewise.
9937 2017-09-14  Mike FABIAN  <mfabian@redhat.com>
9939         [BZ #21084]
9940         * benchtests/strcoll-inputs/filelist#en_US.UTF-8: Add IBM858 and ibm858.c.
9941         * iconvdata/Makefile: Add IBM858.
9942         * iconvdata/gconv-modules: Likewise.
9943         * iconvdata/tst-tables.sh: Likewise.
9944         * iconvdata/ibm858.c: New file.
9945         * localedata/charmaps/IBM858: Likewise.
9947 2017-09-14  Akhilesh Kumar  <akhilesh.k@samsung.com>
9949         [BZ #22023]
9950         * locales/niu_NZ (LC_TIME): copy "niu_NU".
9951         * locales/niu_NZ (LC_MESSAGES): copy "niu_NU".
9953 2017-09-14  Mike FABIAN  <mfabian@redhat.com>
9955         [BZ #22112]
9956         * localedata/locales/az_AZ(LC_TELEPHONE): Fix int_select
9957         and add tel_int_fmt.
9959 2017-09-14  Joseph Myers  <joseph@codesourcery.com>
9961         * sysdeps/generic/libm-alias-float128.h: New file.
9962         * sysdeps/generic/math-type-macros-float128.h: Include
9963         <libm-alias-float128.h>.
9964         [!declare_mgen_alias] (declare_mgen_alias): Define macro.
9966 2017-09-13  Joseph Myers  <joseph@codesourcery.com>
9968         * sysdeps/generic/libm-alias-ldouble.h: New file.
9969         * sysdeps/ieee754/ldbl-opt/libm-alias-ldouble.h: Likewise.
9970         * sysdeps/ieee754/ldbl-opt/math-type-macros-ldouble.h: Remove.
9971         * sysdeps/generic/math-type-macros-ldouble.h: Include
9972         <libm-alias-ldouble.h>.
9973         [!declare_mgen_alias] (declare_mgen_alias): Define to use
9974         libm_alias_ldouble.
9976 2017-09-13  Szabolcs Nagy  <szabolcs.nagy@arm.com>
9978         * sysdeps/ieee754/dbl-64/w_exp_compat.c: Move to...
9979         * math/w_exp_compat.c: ... here.
9980         * sysdeps/ieee754/flt-32/w_expf_compat.c: Move to...
9981         * math/w_expf_compat.c: ... here.
9982         * sysdeps/ieee754/ldbl-128/w_expl_compat.c: Move to...
9983         * math/w_expl_compat.c: ... here.
9984         * sysdeps/ieee754/ldbl-128ibm/w_expl_compat.c: Remove.
9985         * sysdeps/ieee754/ldbl-96/w_expl_compat.c: Remove.
9986         * sysdeps/ieee754/ldbl-opt/w_exp_compat.c: Use the new path.
9987         * sysdeps/ieee754/ldbl-opt/w_expl_compat.c: Likewise.
9989 2017-09-13  Joseph Myers  <joseph@codesourcery.com>
9991         * math/w_scalbln_template.c (strong_alias): Do not undefine and
9992         redefine.
9993         * sysdeps/ieee754/ldbl-opt/s_ldexp.c (declare_mgen_alias): Remove
9994         macro.
9995         (ldexpl): Only define as compat symbol for libc, not libm.
9996         (scalbnl): Define as compat symbol for libc here.
9997         * sysdeps/ieee754/ldbl-opt/s_ldexpl.c (declare_mgen_alias): Only
9998         define for [IS_IN (libc)].
9999         (__ldexpl_2): Remove alias.
10000         (ldexpl): Only define with long_double_symbol if [IS_IN (libc)].
10001         (scalbnl): Likewise.  Use __wrap_scalbnl not __ldexpl_2 as base
10002         name in long_double_symbol call.
10003         * sysdeps/ieee754/ldbl-opt/s_log1p.c: Remove file.
10004         * sysdeps/ieee754/ldbl-opt/s_scalbln.c: Likewise.
10005         * sysdeps/ieee754/ldbl-opt/s_scalbn.c: Likewise.
10006         * sysdeps/ieee754/ldbl-opt/w_log1p.c: Likewise.
10007         * sysdeps/ieee754/ldbl-opt/w_scalbln.c (declare_mgen_alias):
10008         Remove macro.
10009         [IS_IN (libc) && LONG_DOUBLE_COMPAT (libc, GLIBC_2_1)] (scalblnl):
10010         Define as compat symbol.
10012 2017-09-13  Adhemerval Zanella  <adhemerval.zanella@linaro.org>
10014         * sysdeps/unix/sysv/linux/s390/s390-32/oldglob.c: New file.
10015         * sysdeps/unix/sysv/linux/alpha/Makefile
10016         [$(subdir) = csu] (sysdep_routines): Remove rule.
10018 2017-09-13  Joseph Myers  <joseph@codesourcery.com>
10020         * sysdeps/generic/libm-alias-double.h: New file.
10021         * sysdeps/ieee754/ldbl-opt/libm-alias-double.h: Likewise.
10022         * sysdeps/generic/math-type-macros-double.h: Include
10023         <libm-alias-double.h>.
10024         [declare_mgen_alias] (declare_mgen_alias): Define to use
10025         libm_alias_double.
10026         * sysdeps/generic/math-type-macros.h [!M_LIBM_NEED_COMPAT]
10027         (M_LIBM_NEED_COMPAT): Remove macro.
10028         [!M_LIBM_NEED_COMPAT] (declare_mgen_libm_compat): Likewise.
10029         * sysdeps/ieee754/ldbl-opt/math-type-macros-double.h: Remove.
10030         * math/cabs_template.c [M_LIBM_NEED_COMPAT]: Remove conditional
10031         code.
10032         * math/carg_template.c [M_LIBM_NEED_COMPAT]: Likewise.
10033         * math/cimag_template.c [M_LIBM_NEED_COMPAT]: Likewise.
10034         * math/conj_template.c [M_LIBM_NEED_COMPAT]: Likewise.
10035         * math/creal_template.c [M_LIBM_NEED_COMPAT]: Likewise.
10036         * math/s_cacos_template.c [M_LIBM_NEED_COMPAT]: Likewise.
10037         * math/s_cacosh_template.c [M_LIBM_NEED_COMPAT]: Likewise.
10038         * math/s_casin_template.c [M_LIBM_NEED_COMPAT]: Likewise.
10039         * math/s_casinh_template.c [M_LIBM_NEED_COMPAT]: Likewise.
10040         * math/s_catan_template.c [M_LIBM_NEED_COMPAT]: Likewise.
10041         * math/s_catanh_template.c [M_LIBM_NEED_COMPAT]: Likewise.
10042         * math/s_ccos_template.c [M_LIBM_NEED_COMPAT]: Likewise.
10043         * math/s_ccosh_template.c [M_LIBM_NEED_COMPAT]: Likewise.
10044         * math/s_cexp_template.c [M_LIBM_NEED_COMPAT]: Likewise.
10045         * math/s_clog10_template.c [M_LIBM_NEED_COMPAT]: Likewise.
10046         * math/s_clog_template.c [M_LIBM_NEED_COMPAT]: Likewise.
10047         * math/s_cpow_template.c [M_LIBM_NEED_COMPAT]: Likewise.
10048         * math/s_cproj_template.c [M_LIBM_NEED_COMPAT]: Likewise.
10049         * math/s_csin_template.c [M_LIBM_NEED_COMPAT]: Likewise.
10050         * math/s_csinh_template.c [M_LIBM_NEED_COMPAT]: Likewise.
10051         * math/s_csqrt_template.c [M_LIBM_NEED_COMPAT]: Likewise.
10052         * math/s_ctan_template.c [M_LIBM_NEED_COMPAT]: Likewise.
10053         * math/s_ctanh_template.c [M_LIBM_NEED_COMPAT]: Likewise.
10054         * math/s_fdim_template.c [M_LIBM_NEED_COMPAT]: Likewise.
10055         * math/s_fmax_template.c [M_LIBM_NEED_COMPAT]: Likewise.
10056         * math/s_fmin_template.c [M_LIBM_NEED_COMPAT]: Likewise.
10057         * math/s_nan_template.c [M_LIBM_NEED_COMPAT]: Likewise.
10058         * math/w_ilogb_template.c [M_LIBM_NEED_COMPAT]: Likewise.
10059         * sysdeps/ieee754/ldbl-opt/s_clog10.c: New file.
10060         * sysdeps/ieee754/ldbl-opt/s_ldexp.c (M_LIBM_NEED_COMPAT): Remove
10061         macro.
10062         (declare_mgen_alias): New macro.
10063         * sysdeps/ieee754/ldbl-opt/w_log1p.c: New file.
10064         * sysdeps/ieee754/ldbl-opt/w_scalbln.c: Likewise.
10065         * sysdeps/sparc/sparc32/sparcv9/fpu/multiarch/s_fdim-vis3.c
10066         (M_LIBM_NEED_COMPAT): Remove macro.
10067         * sysdeps/sparc/sparc32/sparcv9/fpu/multiarch/s_fdim.c
10068         [HAVE_AS_VIS3_SUPPORT]: Include <math_ldbl_opt.h> and
10069         <first-versions.h>.
10070         [HAVE_AS_VIS3_SUPPORT && LONG_DOUBLE_COMPAT (libm,
10071         FIRST_VERSION_libm_fdiml)]: Define fdiml as compat symbol.
10073 2017-09-12  Joseph Myers  <joseph@codesourcery.com>
10075         * sysdeps/generic/math-type-macros.h [!declare_mgen_alias_2]
10076         (declare_mgen_alias_2): Remove.
10077         * sysdeps/generic/math-type-macros-double.h
10078         [NO_LONG_DOUBLE && !declare_mgen_alias_2] (declare_mgen_alias_2):
10079         Likewise.
10080         * math/s_ldexp_template.c (M_SUF (__wrap_scalbn)): Define strong
10081         alias.
10082         (ldexp): Define with declare_mgen_alias.
10083         (scalbn): Likewise.
10085 2017-09-12  Steve Ellcey  <sellcey@cavium.com>
10087         * grp/initgroups.c: Include config.h.
10088         (DEFAULT_CONFIG): New macro.
10089         (internal_getgrouplist): Use DEFAULT_CONFIG.
10090         * nscd/initgrcache.c (addinitgroupsX): Likewise.
10091         * nss/nsswitch.c (__nss_disable_nscd): Likewise.
10092         (DEFAULT_DEFCONFIG): New macro.
10093         (__nss_database_lookup): Use DEFAULT_DEFCONFIG.
10094         * nss/grp-lookup.c: Include config.h
10095         (DEFAULT_CONFIG): Set definition based on LINK_OBSOLETE_NSL.
10096         * nss/pwd-lookup.c (DEFAULT_CONFIG): Likewise.
10097         * nss/spwd-lookup.c (DEFAULT_CONFIG): Likewise.
10098         * manual/nss.texi: Update default values section.
10100 2017-09-12  H.J. Lu  <hongjiu.lu@intel.com>
10102         [BZ #21967]
10103         * sysdeps/x86/cpu-features.h (bit_arch_MathVec_Prefer_No_AVX512):
10104         New.
10105         (index_arch_MathVec_Prefer_No_AVX512): Likewise.
10106         * sysdeps/x86/cpu-tunables.c (TUNABLE_CALLBACK (set_hwcaps)):
10107         Handle MathVec_Prefer_No_AVX512.
10108         * sysdeps/x86_64/fpu/multiarch/ifunc-mathvec-avx512.h
10109         (IFUNC_SELECTOR): Return AVX2 version if MathVec_Prefer_No_AVX512
10110         is set.
10112 2017-09-12  Samuel Thibault  <samuel.thibault@ens-lyon.org>
10114         * posix/sched_primax.c (__sched_get_priority_max): Add
10115         libc_hidden_def.
10116         * posix/sched_primin.c (__sched_get_priority_min): Likewise.
10117         * sysdeps/mach/hurd/mmap.c (__mmap): Likewise.
10118         * sysdeps/mach/hurd/mmap64.c (__mmap64): Likewise.
10119         * sysdeps/mach/hurd/mprotect.c (__mprotect): Likewise.
10120         * sysdeps/mach/hurd/munmap.c (__munmap): Likewise.
10121         * sysdeps/mach/hurd/dl-sysdep.c (__GI___getpid,
10122         __GI___strtoul_internal, __GI_____strtoul_internal, __GI___chk_fail,
10123         __GI___fortify_fail, __GI___assert_fail, __GI___assert_perror_fail):
10124         Add aliases.
10126 2017-09-11  Joseph Myers  <joseph@codesourcery.com>
10128         * sysdeps/generic/libm-alias-float.h: New file.
10129         * sysdeps/generic/math-type-macros-float.h: Include
10130         <libm-alias-float.h>.
10131         [!declare_mgen_alias] (declare_mgen_alias): Define macro.
10133 2017-09-11  H.J. Lu  <hongjiu.lu@intel.com>
10135         [BZ #22093]
10136         * sysdeps/x86/cpu-features.c (init_cpu_features): Initialize
10137         GLRO(dl_hwcap) to HWCAP_X86_64 for x86-64.
10138         * sysdeps/x86/dl-hwcap.h (HWCAP_COUNT): Updated.
10139         (HWCAP_IMPORTANT): Likewise.
10140         (HWCAP_X86_64): New enum.
10141         (HWCAP_X86_AVX512_1): Updated.
10142         * sysdeps/x86/dl-procinfo.c (_dl_x86_hwcap_flags): Add "x86_64".
10143         * sysdeps/x86_64/Makefile (tests): Add tst-x86_64-1.
10144         (modules-names): Add x86_64/tst-x86_64mod-1.
10145         (LDFLAGS-tst-x86_64mod-1.so): New.
10146         ($(objpfx)tst-x86_64-1): Likewise.
10147         ($(objpfx)x86_64/tst-x86_64mod-1.os): Likewise.
10148         (tst-x86_64-1-clean): Likewise.
10149         * sysdeps/x86_64/tst-x86_64-1.c: New file.
10150         * sysdeps/x86_64/tst-x86_64mod-1.c: Likewise.
10152 2017-09-11  Siddhesh Poyarekar  <siddhesh@sourceware.org>
10154         * po/sv.po: Update translations.
10155         * po/fr.po: Likewise.
10157 2017-09-10  Samuel Thibault  <samuel.thibault@ens-lyon.org>
10159         * sunrpc/tst-udp-timeout.c (test_udp_server): Increase timeout to 2.5
10160         seconds.
10161         * sunrpc/tst-udp-nonblocking.c (do_test): Increase timeout to 0.75
10162         seconds.
10163         * elf/rtld-Rules: Fix $(error) use.
10165 2017-09-09  Mike FABIAN  <mfabian@redhat.com>
10167         [BZ #14925]
10168         * libio/tst-widetext.input: Change “Bengali” to “Bangla”.
10169         * locale/iso-639.def: Change “Bengali” to “Bangla”.
10170         * localedata/locales/bn_BD: “Bengali” was still used in some
10171         comments. Change it to “Bangla”.
10173 2017-09-08  Markus Trippelsdorf  <markus@trippelsdorf.de>
10175         * sysdeps/x86_64/fpu/libm-test-ulps: Update for AMD Ryzen.
10177 2017-09-08  Steve Ellcey  <sellcey@cavium.com>
10179         * manual/tunables.texi (glibc.tune.cpu): Add thunderx2t99 and
10180         thunderx2t99p1 to list of cpu names.
10181         * sysdeps/unix/sysv/linux/aarch64/cpu-features.c (cpu_list):
10182         Add thunderx2t99 and thunderx2t99p1 entries to cpu_list.
10184 2017-09-08  Steve Ellcey  <sellcey@cavium.com>
10186         * sysdeps/unix/sysv/linux/aarch64/cpu-features.c (get_midr_from_mcpu):
10187         Use strcmp instead of tunable_is_name.
10189 2017-09-08  Joseph Myers  <joseph@codesourcery.com>
10191         * sysdeps/unix/sysv/linux/bits/fcntl-linux.h [__USE_GNU]
10192         (F_GET_RW_HINT): New macro.
10193         [__USE_GNU] (F_SET_RW_HINT): Likewise.
10194         [__USE_GNU] (F_GET_FILE_RW_HINT): Likewise.
10195         [__USE_GNU] (F_SET_FILE_RW_HINT): Likewise.
10196         [__USE_GNU] (RWF_WRITE_LIFE_NOT_SET): Likewise.
10197         [__USE_GNU] (RWH_WRITE_LIFE_NONE): Likewise.
10198         [__USE_GNU] (RWH_WRITE_LIFE_SHORT): Likewise.
10199         [__USE_GNU] (RWH_WRITE_LIFE_MEDIUM): Likewise.
10200         [__USE_GNU] (RWH_WRITE_LIFE_LONG): Likewise.
10201         [__USE_GNU] (RWH_WRITE_LIFE_EXTREME): Likewise.
10203         * sysdeps/unix/sysv/linux/bits/fcntl-linux.h [__USE_GNU]
10204         (F_ADD_SEALS): New macro.
10205         [__USE_GNU] (F_GET_SEALS): Likewise.
10206         [__USE_GNU] (F_SEAL_SEAL): Likewise.
10207         [__USE_GNU] (F_SEAL_SHRINK): Likewise.
10208         [__USE_GNU] (F_SEAL_GROW): Likewise.
10209         [__USE_GNU] (F_SEAL_WRITE): Likewise.
10211 2017-09-08  Adhemerval Zanella  <adhemerval.zanella@linaro.org>
10213         * posix/glob_internal.h (GLOBPAT_NONE, GLOBPAT_SPECIAL)
10214         (GLOBPAT_BACKSLASH, GLOBPAT_BRACKET): New constants.
10215         * posix/glob_internal.h (__glob_pattern_type):
10216         * posix/glob.c (glob):
10217         * posix/glob_pattern_p.c (__glob_pattern_p):
10218         Use them.
10220         * sysdeps/unix/sysv/linux/arm/glob64.c: Remove file.
10221         * sysdeps/unix/sysv/linux/i386/glob64.c: Likewise.
10222         * sysdeps/unix/sysv/linux/m68k/glob64.c: Likewise.
10223         * sysdeps/unix/sysv/linux/mips/mips64/n64/glob64.c: Likewise.
10224         * sysdeps/unix/sysv/linux/mips/mips64/n64/globfree64.c: Likewise.
10225         * sysdeps/unix/sysv/linux/powerpc/powerpc32/glob64.c: Likewise.
10226         * sysdeps/unix/sysv/linux/sparc/sparc32/glob64.c: Likewise.
10227         * sysdeps/unix/sysv/linux/wordsize-64/glob64.c: Likewise.
10228         * sysdeps/unix/sysv/linux/wordsize-64/globfree64.c: Likewise.
10229         * sysdeps/unix/sysv/linux/x86_64/x32/glob.c: Likewise.
10230         * sysdeps/unix/sysv/linux/x86_64/x32/globfree.c: Likewise.
10231         * sysdeps/wordsize-64/glob.c: Likewise.
10232         * sysdeps/wordsize-64/glob64.c: Likewise.
10233         * sysdeps/wordsize-64/globfree.c: Likewise.
10234         * sysdeps/wordsize-64/globfree64.c: Likewise.
10235         * sysdeps/unix/sysv/linux/glob.c: New file.
10236         * sysdeps/unix/sysv/linux/glob64.c: Likewise.
10237         * sysdeps/unix/sysv/linux/globfree.c: Likewise.
10238         * sysdeps/unix/sysv/linux/globfree64.c: Likewise.
10239         * sysdeps/unix/sysv/linux/s390/s390-32/glob64.c: Likewise.
10240         * sysdeps/unix/sysv/linux/oldglob.c [SHLIB_COMPAT]: Also
10241         adds !GLOB_NO_OLD_VERSION as an extra condition.
10242         * sysdeps/unix/sysv/linux/i386/alphasort64.c: Include olddirent.h
10243         using relative path instead of absolute one.
10244         * sysdeps/unix/sysv/linux/i386/getdents64.c: Likewise.
10245         * sysdeps/unix/sysv/linux/i386/readdir64.c: Likewise.
10246         * sysdeps/unix/sysv/linux/i386/readdir64_r.c: Likewise.
10247         * sysdeps/unix/sysv/linux/i386/versionsort64.c: Likewise.
10248         * sysdeps/unix/sysv/linux/i386/olddirent.h: Move to ...
10249         * sysdeps/unix/sysv/linux//olddirent.h: ... here.
10251         [BZ #1062]
10252         * posix/glob.c (GET_LOGIN_NAME_MAX): Remove.
10253         (glob): Use the same scratch buffer for both getlogin_r and
10254         getpwnam_r.  Don’t require preallocation of the login name.  This
10255         simplifies storage allocation, and corrects the handling of
10256         long login names.
10258         [BZ #1062]
10259         * posix/glob.c (glob): Port recent patches to platforms
10260         lacking getpwnam_r.
10261         (glob): Fix longstanding misuse of errno after getpwnam_r, which
10262         returns an error number rather than setting errno.
10264         * include/scratch_buffer.h (scratch_buffer): Use a C99 align method
10265         instead of GCC extension.
10266         * malloc/scratch_buffer_grow.c [!_LIBC]: Include libc-config.h.
10267         * malloc/scratch_buffer_grow_preserve.c [!_LIBC]: Likewise.
10268         * malloc/scratch_buffer_set_array_size.c [!_LIBC]: Likewise.
10270         [BZ #866]
10271         [BZ #1062]
10272         * posix/Makefile (tests): Remove bug-glob1 and tst-glob_symlinks.
10273         * posix/bug-glob1.c: Remove file.
10274         * posix/tst-glob_symlinks.c: New file.
10275         * posix/glob.c (__lstat64): New macro.
10276         (is_dir): New function.
10277         (glob, glob_in_dir): Match symlinks even if they are dangling.
10278         (link_stat, link_exists_p): Remove.  All uses removed.
10280         [BZ #1062]
10281         [BZ #19971]
10282         * posix/glob.c (struct readdir_result): Remove skip_entry member.
10283         (readdir_result_skip_entry, D_INO_TO_RESULT): Remove.
10284         All uses removed.
10286         [BZ #1062]
10287         CVE-2017-15671
10288         * posix/Makefile (routines): Add globfree, globfree64, and
10289         glob_pattern_p.
10290         * posix/flexmember.h: New file.
10291         * posix/glob_internal.h: Likewise.
10292         * posix/glob_pattern_p.c: Likewise.
10293         * posix/globfree.c: Likewise.
10294         * posix/globfree64.c: Likewise.
10295         * sysdeps/gnu/globfree64.c: Likewise.
10296         * sysdeps/unix/sysv/linux/alpha/globfree.c: Likewise.
10297         * sysdeps/unix/sysv/linux/mips/mips64/n64/globfree64.c: Likewise.
10298         * sysdeps/unix/sysv/linux/oldglob.c: Likewise.
10299         * sysdeps/unix/sysv/linux/wordsize-64/globfree64.c: Likewise.
10300         * sysdeps/unix/sysv/linux/x86_64/x32/globfree.c: Likewise.
10301         * sysdeps/wordsize-64/globfree.c: Likewise.
10302         * sysdeps/wordsize-64/globfree64.c: Likewise.
10303         * posix/glob.c (HAVE_CONFIG_H): Use !_LIBC instead.
10304         [NDEBUG): Remove comments.
10305         (GLOB_ONLY_P, _AMIGA, VMS): Remove define.
10306         (dirent_type): New type.  Use uint_fast8_t not
10307         uint8_t, as C99 does not require uint8_t.
10308         (DT_UNKNOWN, DT_DIR, DT_LNK): New macros.
10309         (struct readdir_result): Use dirent_type.  Do not define skip_entry
10310         unless it is needed; this saves a byte on platforms lacking d_ino.
10311         (readdir_result_type, readdir_result_skip_entry):
10312         New functions, replacing ...
10313         (readdir_result_might_be_symlink, readdir_result_might_be_dir):
10314          these functions, which were removed.  This makes the callers
10315         easier to read.  All callers changed.
10316         (D_INO_TO_RESULT): Now empty if there is no d_ino.
10317         (size_add_wrapv, glob_use_alloca): New static functions.
10318         (glob, glob_in_dir): Check for size_t overflow in several places,
10319         and fix some size_t checks that were not quite right.
10320         Remove old code using SHELL since Bash no longer
10321         uses this.
10322         (glob, prefix_array): Separate MS code better.
10323         (glob_in_dir): Remove old Amiga and VMS code.
10324         (globfree, __glob_pattern_type, __glob_pattern_p): Move to
10325         separate files.
10326         (glob_in_dir): Do not rely on undefined behavior in accessing
10327         struct members beyond their bounds.  Use a flexible array member
10328         instead
10329         (link_stat): Rename from link_exists2_p and return -1/0 instead of
10330         0/1.  Caller changed.
10331         (glob): Fix memory leaks.
10332         * posix/glob64 (globfree64): Move to separate file.
10333         * sysdeps/gnu/glob64.c (NO_GLOB_PATTERN_P): Remove define.
10334         (globfree64): Remove hidden alias.
10335         * sysdeps/unix/sysv/linux/Makefile (sysdeps_routines): Add
10336         oldglob.
10337         * sysdeps/unix/sysv/linux/alpha/glob.c (__new_globfree): Move to
10338         separate file.
10339         * sysdeps/unix/sysv/linux/i386/glob64.c (NO_GLOB_PATTERN_P): Remove
10340         define.
10341         Move compat code to separate file.
10342         * sysdeps/wordsize-64/glob.c (globfree): Move definitions to
10343         separate file.
10345 2017-09-07  H.J. Lu  <hongjiu.lu@intel.com>
10347         * resolv/tst-resolv-qtypes.c (domain): Changed to
10348         "const char domain[] =".
10350 2017-09-07  Joseph Myers  <joseph@codesourcery.com>
10352         * scripts/build-many-glibcs.py (Context.checkout): Default MPFR
10353         version to 3.1.6.
10355         * sysdeps/gnu/netinet/tcp.h (TCP_ULP): New macro.
10356         (TCP_MD5SIG_EXT): Likewise.
10357         (TCP_MD5SIG_FLAG_PREFIX): Likewise.
10358         (struct tcp_md5sig): Replace __tcpm_pad1 by tcpm_flags and
10359         tcpm_prefixlen.  Rename __tcpm_pad2 to __tcpm_pad.
10361         * sysdeps/unix/sysv/linux/bits/socket.h (SOL_TLS): New macro.
10363 2017-09-07  Mike FABIAN  <mfabian@redhat.com>
10365         * localedata/locales/om_ET (LC_TIME): use ASCII for better readability.
10367 2017-09-07  Akhilesh Kumar  <akhilesh.k@samsung.com>
10369         [BZ #22100]
10370         * localedata/locales/om_KE (LC_TIME): copy "om_ET".
10372 2017-09-07  Samuel Thibault  <samuel.thibault@ens-lyon.org>
10374         * hurd/get-host.c (_hurd_get_host_config): Also check that more == 0
10375         before assuming that the file is empty.  Avoid testing buffer content
10376         when nread == 0.
10378 2017-09-06  Adhemerval Zanella  <adhemerval.zanella@linaro.org>
10380         [BZ #18858]
10381         * sysdeps/i386/i686/multiarch/strncpy.c (_HAVE_STRING_ARCH_strncpy):
10382         Remove define.
10383         * sysdeps/x86_64/multiarch/stpcpy.c (_HAVE_STRING_ARCH_stpcpy):
10384         Likewise.
10385         * sysdeps/x86_64/multiarch/strcspn.c (_HAVE_STRING_ARCH_strcspn):
10386         Likewise.
10387         * sysdeps/x86_64/multiarch/strncat.c (_HAVE_STRING_ARCH_strncat):
10388         Likewise.
10389         * sysdeps/x86_64/multiarch/strncpy.c (_HAVE_STRING_ARCH_strncpy):
10390         Likewise.
10391         * sysdeps/x86_64/multiarch/strpbrk.c (_HAVE_STRING_ARCH_strpbrk):
10392         Likewise.
10393         * sysdeps/x86_64/multiarch/strspn.c (_HAVE_STRING_ARCH_strspn):
10394         Likewise.
10396 2017-09-06  Florian Weimer  <fweimer@redhat.com>
10398         * malloc/dynarray_emplace_enlarge.c
10399         (__libc_dynarray_emplace_enlarge): Add missing else.
10401 2017-09-06  Florian Weimer  <fweimer@redhat.com>
10403         [BZ #22096]
10404         * resolv/resolv_conf.c (__resolv_conf_attach): Do not free conf in
10405         case of failure to obtain the global conf object.
10407 2017-09-06  Florian Weimer  <fweimer@redhat.com>
10409         [BZ #22095]
10410         * resolv/res_init.c (res_vinit_1): Avoid memory leak in case of
10411         dynarray allocation failure.
10413 2017-09-06  Florian Weimer  <fweimer@redhat.com>
10415         Remove dead PTR IPv4-to-IPv6 mapping code from nss_dns.
10416         * resolv/nss_dns/dns-host.c (getanswer_r): Remove dead code.
10417         * resolv/tst-res_use_inet6.c (response_ptr_v4, response_ptr_v6):
10418         New functions.
10419         (response): Call them.  Add 'p', '6' flag processing.
10420         (test_reverse): New function.
10421         (test_get2_any): Call it.
10422         (test_no_inet6): Add 'p' test.
10423         (test_inet6): Likewise.
10425 2017-09-06  Florian Weimer  <fweimer@redhat.com>
10427         Enhance tst-res_use_inet6 to test IPv4-to-IPv6 address mapping.
10428         * resolv/tst-res_use_inet6.c (response): Process flags embedded in
10429         the QNAME.
10430         (test_gai): Adjust query names.  Add additional tests.
10431         (test_get2_any, test_get2_no_inet6, test_get2_inet6): Split from
10432         test_get2.  Adjust query names.  Add additional tests.
10433         (test_no_inet6): New function, extracted from threadfunc.
10434         (threadfunc): Call test_get2_any, test_get2_inet6, test_no_inet6.
10435         Add additional tests.
10437 2017-09-06  Mike FABIAN  <mfabian@redhat.com>
10439         [BZ #22070]
10440         * localedata/unicode-gen/utf8_gen.py: Set the width for
10441         characters with Prepended_Concatenation_Mark property to 1
10442         * localedata/charmaps/UTF-8: Updated using the improved script.
10444 2017-09-06  Mike FABIAN  <mfabian@redhat.com>
10446         [BZ #21750]
10447         * localedata/unicode-gen/utf8_gen.py: Improve the script to
10448         use the range notation for all ranges of neighbouring characters
10449         with the same width.
10451 2017-09-05  Joseph Myers  <joseph@codesourcery.com>
10453         * sysdeps/generic/math-type-macros-double.h: Include
10454         <math-svid-compat.h>.
10455         (__USE_WRAPPER_TEMPLATE): Define to !LIBM_SVID_COMPAT.
10456         * sysdeps/generic/math-type-macros-float.h: Include
10457         <math-svid-compat.h>.
10458         (__USE_WRAPPER_TEMPLATE): Define to !LIBM_SVID_COMPAT.
10459         * sysdeps/generic/math-type-macros-ldouble.h: Include
10460         <math-svid-compat.h>.
10461         (__USE_WRAPPER_TEMPLATE): Define to !LIBM_SVID_COMPAT.
10462         * math/lgamma-compat.h (BUILD_LGAMMA): Include LIBM_SVID_COMPAT
10463         condition.
10464         * math/w_acos_compat.c: Condition contents on [LIBM_SVID_COMPAT].
10465         * math/w_acosf_compat.c: Likewise.
10466         * math/w_acosh_compat.c: Likewise.
10467         * math/w_acoshf_compat.c: Likewise.
10468         * math/w_acoshl_compat.c: Likewise.
10469         * math/w_acosl_compat.c: Likewise.
10470         * math/w_asin_compat.c: Likewise.
10471         * math/w_asinf_compat.c: Likewise.
10472         * math/w_asinl_compat.c: Likewise.
10473         * math/w_atan2_compat.c: Likewise.
10474         * math/w_atan2f_compat.c: Likewise.
10475         * math/w_atan2l_compat.c: Likewise.
10476         * math/w_atanh_compat.c: Likewise.
10477         * math/w_atanhf_compat.c: Likewise.
10478         * math/w_atanhl_compat.c: Likewise.
10479         * math/w_cosh_compat.c: Likewise.
10480         * math/w_coshf_compat.c: Likewise.
10481         * math/w_coshl_compat.c: Likewise.
10482         * math/w_exp10_compat.c: Likewise.
10483         * math/w_exp10f_compat.c: Likewise.
10484         * math/w_exp10l_compat.c: Likewise.
10485         * math/w_exp2_compat.c: Likewise.
10486         * math/w_exp2f_compat.c: Likewise.
10487         * math/w_exp2l_compat.c: Likewise.
10488         * math/w_fmod_compat.c: Likewise.
10489         * math/w_fmodf_compat.c: Likewise.
10490         * math/w_fmodl_compat.c: Likewise.
10491         * math/w_hypot_compat.c: Likewise.
10492         * math/w_hypotf_compat.c: Likewise.
10493         * math/w_hypotl_compat.c: Likewise.
10494         * math/w_j0_compat.c: Likewise.
10495         * math/w_j0f_compat.c: Likewise.
10496         * math/w_j0l_compat.c: Likewise.
10497         * math/w_j1_compat.c: Likewise.
10498         * math/w_j1f_compat.c: Likewise.
10499         * math/w_j1l_compat.c: Likewise.
10500         * math/w_jn_compat.c: Likewise.
10501         * math/w_jnf_compat.c: Likewise.
10502         * math/w_jnl_compat.c: Likewise.
10503         * math/w_lgamma_r_compat.c: Likewise.
10504         * math/w_lgammaf_r_compat.c: Likewise.
10505         * math/w_lgammal_r_compat.c: Likewise.
10506         * math/w_log10_compat.c: Likewise.
10507         * math/w_log10f_compat.c: Likewise.
10508         * math/w_log10l_compat.c: Likewise.
10509         * math/w_log2_compat.c: Likewise.
10510         * math/w_log2f_compat.c: Likewise.
10511         * math/w_log2l_compat.c: Likewise.
10512         * math/w_log_compat.c: Likewise.
10513         * math/w_logf_compat.c: Likewise.
10514         * math/w_logl_compat.c: Likewise.
10515         * math/w_pow_compat.c: Likewise.
10516         * math/w_powf_compat.c: Likewise.
10517         * math/w_powl_compat.c: Likewise.
10518         * math/w_remainder_compat.c: Likewise.
10519         * math/w_remainderf_compat.c: Likewise.
10520         * math/w_remainderl_compat.c: Likewise.
10521         * math/w_sinh_compat.c: Likewise.
10522         * math/w_sinhf_compat.c: Likewise.
10523         * math/w_sinhl_compat.c: Likewise.
10524         * math/w_sqrt_compat.c: Likewise.
10525         * math/w_sqrtf_compat.c: Likewise.
10526         * math/w_sqrtl_compat.c: Likewise.
10527         * math/w_tgamma_compat.c: Likewise.
10528         * math/w_tgammaf_compat.c: Likewise.
10529         * math/w_tgammal_compat.c: Likewise.
10530         * math/w_scalb_compat.c (sysv_scalb): Condition definition on
10531         [LIBM_SVID_COMPAT].
10532         (__scalb): Condition call to sysv_scalb on [LIBM_SVID_COMPAT].
10533         * math/w_scalbf_compat.c (sysv_scalbf): Condition definition on
10534         [LIBM_SVID_COMPAT].
10535         (__scalbf): Condition call to sysv_scalbf on [LIBM_SVID_COMPAT].
10536         * math/w_scalbl_compat.c (sysv_scalbl): Condition definition on
10537         [LIBM_SVID_COMPAT].
10538         (__scalbl): Condition call to sysv_scalbl on [LIBM_SVID_COMPAT].
10539         * sysdeps/i386/fpu/w_sqrt.c: New file.
10540         * sysdeps/ia64/fpu/w_acos.c: Likewise.
10541         * sysdeps/ia64/fpu/w_acosf.c: Likewise.
10542         * sysdeps/ia64/fpu/w_acosh.c: Likewise.
10543         * sysdeps/ia64/fpu/w_acoshf.c: Likewise.
10544         * sysdeps/ia64/fpu/w_acoshl.c: Likewise.
10545         * sysdeps/ia64/fpu/w_acosl.c: Likewise.
10546         * sysdeps/ia64/fpu/w_asin.c: Likewise.
10547         * sysdeps/ia64/fpu/w_asinf.c: Likewise.
10548         * sysdeps/ia64/fpu/w_asinl.c: Likewise.
10549         * sysdeps/ia64/fpu/w_atan2.c: Likewise.
10550         * sysdeps/ia64/fpu/w_atan2f.c: Likewise.
10551         * sysdeps/ia64/fpu/w_atan2l.c: Likewise.
10552         * sysdeps/ia64/fpu/w_atanh.c: Likewise.
10553         * sysdeps/ia64/fpu/w_atanhf.c: Likewise.
10554         * sysdeps/ia64/fpu/w_atanhl.c: Likewise.
10555         * sysdeps/ia64/fpu/w_cosh.c: Likewise.
10556         * sysdeps/ia64/fpu/w_coshf.c: Likewise.
10557         * sysdeps/ia64/fpu/w_coshl.c: Likewise.
10558         * sysdeps/ia64/fpu/w_exp.c: Likewise.
10559         * sysdeps/ia64/fpu/w_exp10.c: Likewise.
10560         * sysdeps/ia64/fpu/w_exp10f.c: Likewise.
10561         * sysdeps/ia64/fpu/w_exp10l.c: Likewise.
10562         * sysdeps/ia64/fpu/w_exp2.c: Likewise.
10563         * sysdeps/ia64/fpu/w_exp2f.c: Likewise.
10564         * sysdeps/ia64/fpu/w_exp2l.c: Likewise.
10565         * sysdeps/ia64/fpu/w_expf.c: Likewise.
10566         * sysdeps/ia64/fpu/w_expl.c: Likewise.
10567         * sysdeps/ia64/fpu/w_fmod.c: Likewise.
10568         * sysdeps/ia64/fpu/w_fmodf.c: Likewise.
10569         * sysdeps/ia64/fpu/w_fmodl.c: Likewise.
10570         * sysdeps/ia64/fpu/w_hypot.c: Likewise.
10571         * sysdeps/ia64/fpu/w_hypotf.c: Likewise.
10572         * sysdeps/ia64/fpu/w_hypotl.c: Likewise.
10573         * sysdeps/ia64/fpu/w_lgamma_r.c: Likewise.
10574         * sysdeps/ia64/fpu/w_lgammaf_r.c: Likewise.
10575         * sysdeps/ia64/fpu/w_lgammal_r.c: Likewise.
10576         * sysdeps/ia64/fpu/w_log.c: Likewise.
10577         * sysdeps/ia64/fpu/w_log10.c: Likewise.
10578         * sysdeps/ia64/fpu/w_log10f.c: Likewise.
10579         * sysdeps/ia64/fpu/w_log10l.c: Likewise.
10580         * sysdeps/ia64/fpu/w_log2.c: Likewise.
10581         * sysdeps/ia64/fpu/w_log2f.c: Likewise.
10582         * sysdeps/ia64/fpu/w_log2l.c: Likewise.
10583         * sysdeps/ia64/fpu/w_logf.c: Likewise.
10584         * sysdeps/ia64/fpu/w_logl.c: Likewise.
10585         * sysdeps/ia64/fpu/w_pow.c: Likewise.
10586         * sysdeps/ia64/fpu/w_powf.c: Likewise.
10587         * sysdeps/ia64/fpu/w_powl.c: Likewise.
10588         * sysdeps/ia64/fpu/w_remainder.c: Likewise.
10589         * sysdeps/ia64/fpu/w_remainderf.c: Likewise.
10590         * sysdeps/ia64/fpu/w_remainderl.c: Likewise.
10591         * sysdeps/ia64/fpu/w_sinh.c: Likewise.
10592         * sysdeps/ia64/fpu/w_sinhf.c: Likewise.
10593         * sysdeps/ia64/fpu/w_sinhl.c: Likewise.
10594         * sysdeps/ia64/fpu/w_sqrt.c: Likewise.
10595         * sysdeps/ia64/fpu/w_sqrtf.c: Likewise.
10596         * sysdeps/ia64/fpu/w_sqrtl.c: Likewise.
10597         * sysdeps/ia64/fpu/w_tgamma.c: Likewise.
10598         * sysdeps/ia64/fpu/w_tgammaf.c: Likewise.
10599         * sysdeps/ia64/fpu/w_tgammal.c: Likewise.
10600         * sysdeps/ieee754/dbl-64/w_exp_compat.c: Condition contents on
10601         [LIBM_SVID_COMPAT].
10602         * sysdeps/ieee754/flt-32/w_expf_compat.c: Likewise.
10603         * sysdeps/ieee754/k_standard.c: Likewise.
10604         * sysdeps/ieee754/k_standardf.c: Likewise.
10605         * sysdeps/ieee754/k_standardl.c: Likewise.
10606         * sysdeps/ieee754/ldbl-128/w_expl_compat.c: Likewise.
10607         * sysdeps/ieee754/ldbl-128ibm/w_expl_compat.c: Likewise.
10608         * sysdeps/ieee754/ldbl-96/w_expl_compat.c: Likewise.
10609         * sysdeps/ieee754/ldbl-64-128/w_expl_compat.c: Condition
10610         long_double_symbol call on [LIBM_SVID_COMPAT].
10611         * sysdeps/ieee754/ldbl-opt/w_acoshl_compat.c: Likewise.
10612         * sysdeps/ieee754/ldbl-opt/w_acosl_compat.c: Likewise.
10613         * sysdeps/ieee754/ldbl-opt/w_asinl_compat.c: Likewise.
10614         * sysdeps/ieee754/ldbl-opt/w_atan2l_compat.c: Likewise.
10615         * sysdeps/ieee754/ldbl-opt/w_atanhl_compat.c: Likewise.
10616         * sysdeps/ieee754/ldbl-opt/w_coshl_compat.c: Likewise.
10617         * sysdeps/ieee754/ldbl-opt/w_fmodl_compat.c: Likewise.
10618         * sysdeps/ieee754/ldbl-opt/w_hypotl_compat.c: Likewise.
10619         * sysdeps/ieee754/ldbl-opt/w_j0l_compat.c: Likewise.
10620         * sysdeps/ieee754/ldbl-opt/w_j1l_compat.c: Likewise.
10621         * sysdeps/ieee754/ldbl-opt/w_jnl_compat.c: Likewise.
10622         * sysdeps/ieee754/ldbl-opt/w_lgammal_r_compat.c: Likewise.
10623         * sysdeps/ieee754/ldbl-opt/w_log10l_compat.c: Likewise.
10624         * sysdeps/ieee754/ldbl-opt/w_log2l_compat.c: Likewise.
10625         * sysdeps/ieee754/ldbl-opt/w_logl_compat.c: Likewise.
10626         * sysdeps/ieee754/ldbl-opt/w_powl_compat.c: Likewise.
10627         * sysdeps/ieee754/ldbl-opt/w_remainderl_compat.c: Likewise.
10628         * sysdeps/ieee754/ldbl-opt/w_sinhl_compat.c: Likewise.
10629         * sysdeps/ieee754/ldbl-opt/w_sqrtl_compat.c: Likewise.
10630         * sysdeps/ieee754/ldbl-opt/w_tgammal_compat.c: Likewise.
10631         * sysdeps/ieee754/ldbl-opt/w_exp10l_compat.c: Condition
10632         long_double_symbol and compat_symbol calls on [LIBM_SVID_COMPAT].
10634 2017-09-05  Steve Ellcey  <sellcey@cavium.com>
10636         * include/shlib-compat.h (TEST_COMPAT): New Macro.
10637         * malloc/tst-mallocstate.c: Convert from test-skeleton
10638         to test-driver.  Ifdef code using TEST_COMPAT macro.
10639         * math/test-matherr-2.c: Ifdef test using TEST_COMPAT macro.
10640         * math/test-matherr.c: Likewise.
10642 2017-09-05  Joseph Myers  <joseph@codesourcery.com>
10644         [BZ #22086]
10645         * debug/pcprofiledump.c (main): Use byte-swapped mask when
10646         comparing word with byte-swapped constant.
10648 2017-09-05  Chris Leonard  <cjlhomeaddress@gmail.com>
10650         [BZ #20498]
10651         * locale/iso-639.def: add Miskito.
10652         * localedata/SUPPORTED: Add miq_NI/UTF-8.
10653         * localedata/locales/miq_NI: New file.
10655 2017-09-04  H.J. Lu  <hongjiu.lu@intel.com>
10657         [BZ #18822]
10658         * include/sys/stat.h (__chmod): Add libc_hidden_proto.
10659         (__mkdir): Likewise.
10660         * io/chmod.c (__chmod): Add libc_hidden_def.
10661         * io/mkdir.c (__mkdir): Likewise.
10662         * sysdeps/mach/hurd/chmod.c (__chmod): Likewise.
10663         * sysdeps/mach/hurd/mkdir.c (__mkdir): Likewise.
10664         * sysdeps/unix/sysv/linux/generic/chmod.c (__chmod): Likewise.
10665         * sysdeps/unix/sysv/linux/generic/mkdir.c (__mkdir): Likewise.
10667 2017-09-04  Joseph Myers  <joseph@codesourcery.com>
10669         * sysdeps/unix/sysv/linux/syscall-names.list: Update kernel
10670         version to 4.13.
10672         [BZ #22082]
10673         * math/bits/math-finite.h (exp10): Redirect if [__GLIBC_USE
10674         (IEC_60559_FUNCS_EXT)], not [__USE_GNU].
10676 2017-09-04  Florian Weimer  <fweimer@redhat.com>
10678         * math/math.h: Issue warning if log is defined.
10680 2017-09-04  Joseph Myers  <joseph@codesourcery.com>
10682         * scripts/build-many-glibcs.py (Context.checkout): Default Linux
10683         kernel version to 4.13.
10685 2017-09-03  Samuel Thibault  <samuel.thibault@ens-lyon.org>
10687         * sysdeps/generic/sigsetops.h: Remove spurious #endif.
10688         (__sigismember, __sigaddset, __sigdelset): Fix referencing set
10689         parameter.
10690         * sysdeps/mach/hurd/bits/socket.h: Include <sys/types.h> instead of
10691         just <bits/types.h>.
10692         * sysdeps/posix/preadv2.c: Use off_t instead of OFF_T.
10693         * sysdeps/posix/preadv64v2.c: Use off64_t instead of OFF_T.
10694         * sysdeps/posix/pwritev2.c: Use off_t instead of OFF_T.
10695         * sysdeps/posix/pwritev64v2.c: Use off64_t instead of OFF_T.
10696         * misc/preadv2.c: Include <errno.h>.
10697         * misc/preadv64v2.c: Include <errno.h>.
10698         * misc/pwritev2.c: Include <errno.h>.
10699         * misc/pwritev64v2.c: Include <errno.h>.
10700         * sysdeps/posix/preadv2.c: Include <errno.h>.
10701         * sysdeps/posix/preadv64v2.c: Include <errno.h>.
10702         Fix <unistd.h> inclusion.
10703         * sysdeps/posix/pwritev2.c: Include <errno.h>.
10704         * sysdeps/posix/pwritev64v2.c: Include <errno.h>.
10705         * sysdeps/mach/hurd/dl-sysdep.c (__access_noerrno, __sbrk,
10706         __strtoul_internal): New functions.
10707         * sysdeps/posix/pause.c: Include <sigsetops.h>.
10708         * sysdeps/posix/system.c: Include <sigsetops.h>.
10709         * sysdeps/mach/hurd/i386/Makefile
10710         [$(subdir) = csu] (sysdep_routines): New rule: divdi3 object.
10711         [$(subdir) = csu] (sysdep-only-routines): Likewise.
10712         [$(subdir) = csu] (CFLAGS-divdi3.c): Likewise.
10713         * sysdeps/x86/fpu/include/bits/fenv.h [NO_HIDDEN]: Redirect
10714         __feraiseexcept_renamed to feraiseexcept instead of
10715         __GI_feraiseexcept.
10716         * sysdeps/mach/hurd/i386/Implies: Add mach/hurd/x86.
10717         * sysdeps/mach/hurd/x86/dl-sysdep.c: New file.
10718         * misc/tst-preadvwritev2-common.c (RWF_HIPRI, RWF_DSYNC, RWF_SYNC,
10719         RWF_NOWAIT): Define to 0 if undefined already.
10720         (do_test_with_invalid_flags): Set invalid_flag to 2 if RWF_SUPPORTED
10721         boils down to 0.
10722         * resolv/tst-resolv-res_init-skeleton.c (run_res_init)
10723         [!CLONE_NEWUTS]: Fail as unsupported if hostname is not NULL.
10725 2017-09-01  Joseph Myers  <joseph@codesourcery.com>
10727         * manual/math.texi (pow10): Do not document.
10728         (pow10f): Likewise.
10729         (pow10l): Likewise.
10730         * math/bits/mathcalls.h [__USE_GNU] (pow10): Do not declare.
10731         * math/bits/math-finite.h [__USE_GNU] (pow10): Likewise.
10732         * math/libm-test-exp10.inc (pow10_test): Remove.
10733         (do_test): Do not call pow10.
10734         * math/w_exp10_compat.c (pow10): Make into compat symbol.
10735         [NO_LONG_DOUBLE] (pow10l): Likewise.
10736         * math/w_exp10f_compat.c (pow10f): Likewise.
10737         * math/w_exp10l_compat.c (pow10l): Likewise.
10738         * sysdeps/ia64/fpu/e_exp10.S: Include <shlib-compat.h>.
10739         (pow10): Make into compat symbol.
10740         * sysdeps/ia64/fpu/e_exp10f.S: Include <shlib-compat.h>.
10741         (pow10f): Make into compat symbol.
10742         * sysdeps/ia64/fpu/e_exp10l.S: Include <shlib-compat.h>.
10743         (pow10l): Make into compat symbol.
10744         * sysdeps/ieee754/ldbl-opt/Makefile (libnldbl-calls): Remove
10745         pow10.
10746         (CFLAGS-nldbl-pow10.c): Remove variable..
10747         * sysdeps/ieee754/ldbl-opt/nldbl-pow10.c: Remove file.
10748         * sysdeps/ieee754/ldbl-opt/w_exp10_compat.c (pow10l): Condition on
10749         [SHLIB_COMPAT (libm, GLIBC_2_1, GLIBC_2_27)].
10750         * sysdeps/ieee754/ldbl-opt/w_exp10l_compat.c (compat_symbol):
10751         Undefine and redefine.
10752         (pow10l): Make into compat symbol.
10753         * sysdeps/aarch64/libm-test-ulps: Remove pow10 ulps.
10754         * sysdeps/alpha/fpu/libm-test-ulps: Likewise.
10755         * sysdeps/arm/libm-test-ulps: Likewise.
10756         * sysdeps/hppa/fpu/libm-test-ulps: Likewise.
10757         * sysdeps/i386/fpu/libm-test-ulps: Likewise.
10758         * sysdeps/i386/i686/fpu/multiarch/libm-test-ulps: Likewise.
10759         * sysdeps/microblaze/libm-test-ulps: Likewise.
10760         * sysdeps/mips/mips32/libm-test-ulps: Likewise.
10761         * sysdeps/mips/mips64/libm-test-ulps: Likewise.
10762         * sysdeps/nios2/libm-test-ulps: Likewise.
10763         * sysdeps/powerpc/fpu/libm-test-ulps: Likewise.
10764         * sysdeps/powerpc/nofpu/libm-test-ulps: Likewise.
10765         * sysdeps/s390/fpu/libm-test-ulps: Likewise.
10766         * sysdeps/sh/libm-test-ulps: Likewise.
10767         * sysdeps/sparc/fpu/libm-test-ulps: Likewise.
10768         * sysdeps/tile/libm-test-ulps: Likewise.
10769         * sysdeps/x86_64/fpu/libm-test-ulps: Likewise.
10771 2017-09-01  Paul Pluzhnikov  <ppluzhnikov@google.com>
10773         * stdlib/tst-atexit-common.c (crumbs): Ensure correct size.
10775 2017-09-01  H.J. Lu  <hongjiu.lu@intel.com>
10777         * posix/tst-regex.c (do_test): Replace "../ChangeLog.8" with
10778         "../ChangeLog.old/ChangeLog.8".
10779         * posix/tst-regex2.c (do_test): Replace "../ChangeLog.14" with
10780         "../ChangeLog.old/ChangeLog.14".
10782 2017-09-01  H.J. Lu  <hongjiu.lu@intel.com>
10784         * manual/contrib.texi: Credit Ulrich Drepper for the POSIX
10785         Threads Library.
10787 2017-09-01  Joseph Myers  <joseph@codesourcery.com>
10789         * sysdeps/unix/sysv/linux/gentempfd.c: Include <string.h>.
10791 2017-09-01  H.J. Lu  <hongjiu.lu@intel.com>
10793         * csu/version.c (banner): Remove "by Roland McGrath et al.".
10794         * nptl/Banner: Remove "by Ulrich Drepper et al.".
10796 2017-09-01  Paul Pluzhnikov  <ppluzhnikov@google.com>
10798         * stdlib/tst-atexit-common.c (do_test): Test support for at least
10799         32 atexit handlers.
10801 2017-09-01  Zack Weinberg  <zackw@panix.com>
10803         * math/math.h (HUGE_VAL): Improve commentary.
10805 2017-09-01  Adhemerval Zanella  <adhemerval.zanella@linaro.org>
10806             Andreas Schwab  <schwab@suse.de>
10808         [BZ #21530]
10809         * include/stdio.h (__gen_tempfd): New function.
10810         * stdio-common/Makefile (routines): Add gentempfd.
10811         * stdio-common/gentempfd.c: New file.
10812         * sysdeps/unix/sysv/linux/gentempfd.c: Likewise.
10813         * stdio-common/tmpfile.c (tmpfile): First try to use a system specific
10814         unnamed file first.
10816 2017-09-01  Florian Weimer  <fweimer@redhat.com>
10818         [BZ #21915]
10819         [BZ #21922]
10820         * sysdeps/posix/getaddrinfo.c (gethosts): Look at NSS function
10821         result to determine success or failure, not the errno value.
10822         * nss/Makefile (tests): Add tst-nss-files-hosts-erange.
10823         (tst-nss-files-hosts-erange): Link with -ldl.
10824         * nss/tst-nss-files-hosts-erange.c: New file.
10825         * nss/tst-resolv-basic.c (response): Handle nodata.example.
10826         (do_test): Add NO_DATA tests.
10827         * resolv/tst-resolv-basic.c (test_nodata_nxdomain): New function.
10828         (do_test): Call it.
10830 2017-09-01  Florian Weimer  <fweimer@redhat.com>
10832         [BZ #21922]
10833         * sysdeps/posix/getaddrinfo.c (gaih_inet): Report EAI_NODATA error
10834         coming from gethostbyname2_r.
10836 2017-09-01  Florian Weimer  <fweimer@redhat.com>
10838         * support/namespace.h (struct support_chroot_configuration): Add
10839         hosts, host_conf.
10840         (struct support_chroot): Add path_hosts, path_host_conf.
10841         * support/support_chroot.c (write_file): New function.
10842         (support_chroot_create): Call it to process /etc/resolv.conf,
10843         /etc/hosts, /etc/host.conf.
10844         (support_chroot_free): Update.
10846 2017-09-01  Florian Weimer  <fweimer@redhat.com>
10848         * sysdeps/posix/getaddrinfo.c (gaih_inet): Only use h_errno if
10849         status indicates it is set.
10851 2017-09-01  Florian Weimer  <fweimer@redhat.com>
10853         * sysdeps/posix/getaddrinfo.c (gaih_inet): Make reporting of NSS
10854         function lookup failures more reliable.
10856 2017-09-01  Florian Weimer  <fweimer@redhat.com>
10858         * sysdeps/posix/getaddrinfo.c (gethosts): Use h_errno directly.
10859         (getcanonname): Likewise.
10860         (gaih_inet): Likewise.
10862 2017-09-01  Florian Weimer  <fweimer@redhat.com>
10864         * sysdeps/posix/getaddrinfo.c (gethosts): Use errno directly.
10865         (getcanonname): Likewise.
10866         (gaih_inet): Likewise.
10868 2017-08-31  Steve Ellcey  <sellcey@cavium.com>
10869             Richard Henderson <rth@twiddle.net>
10871         * sysdeps/aarch64/fpu/s_llrint.c (OREG_SIZE): New macro.
10872         * sysdeps/aarch64/fpu/s_llround.c (OREG_SIZE): Likewise.
10873         * sysdeps/aarch64/fpu/s_llrintf.c (OREGS, IREGS): Remove.
10874         (IREG_SIZE, OREG_SIZE): New macros.
10875         * sysdeps/aarch64/fpu/s_llroundf.c: (OREGS, IREGS): Remove.
10876         (IREG_SIZE, OREG_SIZE): New macros.
10877         * sysdeps/aarch64/fpu/s_lrintf.c (IREGS): Remove.
10878         (IREG_SIZE): New macro.
10879         * sysdeps/aarch64/fpu/s_lroundf.c (IREGS): Remove.
10880         (IREG_SIZE): New macro.
10881         * sysdeps/aarch64/fpu/s_lrint.c (get-rounding-mode.h, stdint.h):
10882         New includes.
10883         (IREG_SIZE, OREG_SIZE): Initialize if not already set.
10884         (OREGS, IREGS): Set based on IREG_SIZE and OREG_SIZE.
10885         (__CONCATX): Handle exceptions correctly on large values that may
10886         set FE_INVALID.
10887         * sysdeps/aarch64/fpu/s_lround.c (IREG_SIZE, OREG_SIZE):
10888         Initialize if not already set.
10889         (OREGS, IREGS): Set based on IREG_SIZE and OREG_SIZE.
10891 2017-08-31  Adhemerval Zanella  <adhemerval.zanella@linaro.org>
10893         * sysdeps/generic/not-cancel.h (NO_CANCELLATION): Remove macro.
10894         * sysdeps/unix/sysv/linux/aarch64/sysdep-cancel.h (NO_CANCELLATION):
10895         Likewise.
10896         * sysdeps/unix/sysv/linux/alpha/sysdep-cancel.h (NO_CANCELLATION):
10897         Likewise.
10898         * sysdeps/unix/sysv/linux/arm/sysdep-cancel.h (NO_CANCELLATION):
10899         Likewise.
10900         * sysdeps/unix/sysv/linux/hppa/sysdep-cancel.h (NO_CANCELLATION):
10901         Likewise.
10902         * sysdeps/unix/sysv/linux/i386/sysdep-cancel.h (NO_CANCELLATION):
10903         Likewise.
10904         * sysdeps/unix/sysv/linux/ia64/sysdep-cancel.h (NO_CANCELLATION):
10905         Likewise.
10906         * sysdeps/unix/sysv/linux/m68k/sysdep-cancel.h (NO_CANCELLATION):
10907         Likewise.
10908         * sysdeps/unix/sysv/linux/microblaze/sysdep-cancel.h
10909         (NO_CANCELLATION): Likewise.
10910         * sysdeps/unix/sysv/linux/mips/sysdep-cancel.h (NO_CANCELLATION):
10911         Likewise.
10912         * sysdeps/unix/sysv/linux/nios2/sysdep-cancel.h (NO_CANCELLATION):
10913         Likewise.
10914         * sysdeps/unix/sysv/linux/powerpc/sysdep-cancel.h (NO_CANCELLATION):
10915         Likewise.
10916         * sysdeps/unix/sysv/linux/s390/s390-32/sysdep-cancel.h
10917         (NO_CANCELLATION): Likewise.
10918         * sysdeps/unix/sysv/linux/s390/s390-64/sysdep-cancel.h
10919         (NO_CANCELLATION): Likewise.
10920         * sysdeps/unix/sysv/linux/sh/sysdep-cancel.h (NO_CANCELLATION):
10921         Likewise
10922         * sysdeps/unix/sysv/linux/sparc/sysdep-cancel.h (NO_CANCELLATION):
10923         Likewise.
10924         * sysdeps/unix/sysv/linux/tile/sysdep-cancel.h (NO_CANCELLATION):
10925         Likewise.
10926         * sysdeps/unix/sysv/linux/x86_64/sysdep-cancel.h (NO_CANCELLATION):
10927         Likewise.
10928         * sysdeps/unix/sysv/linux/not-cancel.h (__fcntl_nocancel): Add
10929         hidden prototype.
10930         * sysdeps/unix/sysv/linux/fcntl.c (__fcntl_nocancel): Define only
10931         for !IS_IN (rtld) and remove NO_CANCELLATION usage.
10933 2017-08-31  Steve Ellcey  <sellcey@cavium.com>
10935         * sysdeps/aarch64/dl-irel.h: (elf_ifunc_invoke): Change argument type
10936         in resolver call.
10938 2017-08-31  Florian Weimer  <fweimer@redhat.com>
10940         * include/libc-symbols.h (internal_function): Remove.
10942 2017-08-31  Florian Weimer  <fweimer@redhat.com>
10944         * stdlib/fmtmsg.c (internal_addseverity): Remove
10945         internal_function.
10947 2017-08-31  Florian Weimer  <fweimer@redhat.com>
10949         * stdio-common/printf_fp.c (group_number): Remove
10950         internal_function.
10951         * stdio-common/vfprintf.c (buffered_vfprintf): Likewise.
10953 2017-08-31  Florian Weimer  <fweimer@redhat.com>
10955         * posix/fnmatch.c (internal_function): Remove definition.
10956         * posix/fnmatch_loop.c (FCT, EXT, END): Remove internal_function.
10957         * posix/regcomp.c (peek_token, init_word_char)
10958         (duplicate_node_closure, fetch_token, peek_token)
10959         (peek_token_bracket, build_range_exp, build_collating_symbol):
10960         Likewise.
10961         * posix/regex_internal.c (re_string_construct_common)
10962         (create_ci_newstate, create_cd_newstate, re_string_allocate)
10963         (re_string_construct, re_string_realloc_buffers, build_wcs_buffer)
10964         (build_wcs_upper_buffer, re_string_skip_chars, build_upper_buffer)
10965         (re_string_translate_buffer, re_string_reconstruct)
10966         (re_string_peek_byte_case, re_string_fetch_byte_case)
10967         (re_string_destruct, re_string_context_at, re_node_set_alloc)
10968         (re_node_set_init_1, re_node_set_init_2, re_node_set_init_copy)
10969         (re_node_set_add_intersect, re_node_set_init_union)
10970         (re_node_set_merge, re_node_set_insert, re_node_set_insert_last)
10971         (re_node_set_compare, re_node_set_contains, re_node_set_remove_at)
10972         (re_dfa_add_node, calc_state_hash, re_acquire_state)
10973         (re_acquire_state_context): Likewise.
10974         * posix/regex_internal.h (internal_function): Remove definition.
10975         (re_string_realloc_buffers, build_wcs_buffer)
10976         (build_wcs_upper_buffer, build_upper_buffer)
10977         (re_string_translate_buffer, re_string_context_at)
10978         (re_string_char_size_at, re_string_wchar_at)
10979         (re_string_elem_size_at): Likewise.
10980         * posix/regexec.c (match_ctx_init, match_ctx_clean)
10981         (match_ctx_free, match_ctx_add_entry, search_cur_bkref_entry)
10982         (match_ctx_add_subtop, match_ctx_add_sublast, sift_ctx_init)
10983         (re_search_internal, re_search_2_stub, re_search_stub)
10984         (re_copy_regs, prune_impossible_nodes, check_matching)
10985         (check_halt_state_context, update_regs, push_fail_stack, set_regs)
10986         (free_fail_stack_return, sift_states_iter_mb)
10987         (sift_states_backward, build_sifted_states)
10988         (update_cur_sifted_state, add_epsilon_src_nodes, check_dst_limits)
10989         (check_dst_limits_calc_pos_1, check_dst_limits_calc_pos)
10990         (check_subexp_limits, sift_states_bkref, merge_state_array)
10991         (find_recover_state, transit_state, merge_state_with_log)
10992         (check_subexp_matching_top, transit_state_sb, transit_state_sb)
10993         (transit_state_mb, transit_state_bkref, get_subexp)
10994         (get_subexp_sub, find_subexp_node, check_arrival)
10995         (check_arrival_add_next_nodes, check_arrival_expand_ecl)
10996         (check_arrival_expand_ecl_sub, expand_bkref_cache, build_trtable)
10997         (check_node_accept_bytes, find_collation_sequence_value)
10998         (group_nodes_into_DFAstates, check_node_accept, extend_buffers)
10999         (acquire_init_state_context, check_halt_node_context)
11000         (proceed_next_node, pop_fail_stack, clean_state_log_if_needed)
11001         (sub_epsilon_src_nodes): Likewise.
11002         * posix/spawn_int.h (__spawn_valid_fd): Likewise.
11003         * posix/spawn_valid_fd (__spawn_valid_fd): Likewise.
11004         * posix/wordexp.c (parse_dollars, parse_backtick, parse_dquote)
11005         (eval_expr, w_addmem, w_addstr, w_addword, parse_backslash)
11006         (parse_qtd_backslash, parse_tilde, do_parse_glob, parse_glob)
11007         (parse_squote, eval_expr_val, eval_expr_multdiv, parse_arith)
11008         (exec_comm_child, exec_comm, parse_comm, parse_param): Likewise.
11009         * sysdeps/posix/ttyname.c (getttyname): Likewise.
11010         * sysdeps/posix/ttyname_r.c (getttyname_r): Likewise.
11011         * sysdeps/unix/sysv/linux/preadv.c (__atomic_preadv_replacement)
11012         (PREADV): Likewise.
11013         * sysdeps/unix/sysv/linux/preadv64.c (__atomic_preadv64_replacement)
11014         (PREADV): Likewise.
11015         * sysdeps/unix/sysv/linux/pwritev.c (__atomic_pwritev_replacement)
11016         (PWRITEV): Likewise.
11017         * sysdeps/unix/sysv/linux/pwritev64.c (__atomic_pwritev64_replacement)
11018         (PWRITEV): Likewise.
11019         * sysdeps/unix/sysv/linux/ttyname.c (getttyname): Likewise.
11020         * sysdeps/unix/sysv/linux/ttyname_r.c (getttyname_r): Likewise.
11022 2017-08-31  Florian Weimer  <fweimer@redhat.com>
11024         * nptl/allocatestack.c (change_stack_perm, __deallocate_stack)
11025         (setxid_mark_thread, setxid_unmark_thread, setxid_signal_thread):
11026         Remove internal_function.
11027         * nptl/cancellation.c (__pthread_disable_asynccancel): Likewise.
11028         * nptl/libc_pthread_init.c (__libc_pthread_init): Likewise.
11029         * nptl/pthreadP.h (__find_in_stack_list, __free_tcb)
11030         (__deallocate_stack, __libc_pthread_init)
11031         (__pthread_mutex_cond_lock, __pthread_mutex_cond_lock_adjust)
11032         (__pthread_mutex_unlock_usercnt, __pthread_disable_asynccancel)
11033         (__libc_disable_asynccancel, __librt_disable_asynccancel):
11034         Likewise.
11035         * nptl/pthread_create.c (__find_in_stack_list, __free_tcb): Likewise.
11036         * nptl/pthread_mutex_cond_lock.c (__pthread_mutex_lock): Likewise.
11037         * nptl/pthread_mutex_lock.c (__pthread_mutex_cond_lock_adjust):
11038         Likewise.
11039         * nptl/pthread_mutex_unlock.c (__pthread_mutex_unlock_full)
11040         (__pthread_mutex_unlock_usercnt): Likewise.
11042 2017-08-31  Florian Weimer  <fweimer@redhat.com>
11044         * io/fts.c (fts_alloc, fts_build, fts_lfree, fts_load)
11045         (fts_maxarglen, fts_padjust, fts_palloc, fts_sort, fts_stat)
11046         (fts_safe_changedir): Remove internal_function.
11047         * io/ftw.c (internal_function): Remove definition.
11048         (ftw_dir, process_entry, ftw_startup): Remove internal_function.
11050 2017-08-31  Florian Weimer  <fweimer@redhat.com>
11052         * inet/deadline.c (__deadline_current_time)
11053         (__deadline_from_timeval, __deadline_to_ms): Remove
11054         internal_function.
11055         * inet/getnameinfo.c (nrl_domainname): Likewise.
11056         * inet/getnetgrent_r.c (__internal_setnetgrent_reuse): Likewise.
11057         * inet/inet6_option.c (add_pad): Likewise.
11058         * inet/net-internal.h (__deadline_current_time)
11059         (__deadline_from_timeval, __deadline_to_ms): Likewise.
11060         * inet/rcmd.c (__checkhost_sa, __icheckuser): Likewise.
11061         * sysdeps/mach/hurd/if_index.c (__protocol_available): Likewise.
11062         * sysdeps/unix/sysv/linux/ifaddrs.c (map_newlink): Likewise.
11064 2017-08-31  Joseph Myers  <joseph@codesourcery.com>
11066         *  math/math.h [__USE_ISOC99] (NAN): Define directly here.  Do not
11067         include <bits/nan.h>.
11068         * math/Makefile (headers): Remove bits/nan.h.
11069         * bits/nan.h: Remove.
11070         * sysdeps/ieee754/bits/nan.h: Likewise.
11071         * sysdeps/mips/bits/nan.h: Likewise.
11073         * math/math.h [__USE_ISOC99] (INFINITY): Define directly here.  Do
11074         not include <bits/inf.h>.
11075         * math/Makefile (headers): Remove bits/inf.h.
11076         * bits/inf.h: Remove.
11077         * sysdeps/ieee754/bits/inf.h: Likewise.
11079         * math/math.h: Do not include bits/huge_val.h, bits/huge_valf.h,
11080         bits/huge_vall.h or bits/huge_val_flt128.h.
11081         (HUGE_VAL): Define directly here.
11082         [__USE_ISOC99] (HUGE_VALF): Likewise.
11083         [__USE_ISOC99] (HUGE_VALL): Likewise.
11084         [__HAVE_FLOAT128 && __GLIBC_USE (IEC_60559_TYPES_EXT)]
11085         (HUGE_VAL_F128): Likewise.
11086         * math/Makefile (headers): Remove bits/huge_val.h,
11087         bits/huge_valf.h, bits/huge_vall.h and bits/huge_val_flt128.h.
11088         * bits/huge_val.h: Remove.
11089         * bits/huge_val_flt128.h: Likewise.
11090         * bits/huge_valf.h: Likewise.
11091         * bits/huge_vall.h: Likewise.
11092         * sysdeps/ia64/bits/huge_vall.h: Likewise.
11093         * sysdeps/ieee754/bits/huge_val.h: Likewise.
11094         * sysdeps/ieee754/bits/huge_valf.h: Likewise.
11095         * sysdeps/m68k/m680x0/bits/huge_vall.h: Likewise.
11096         * sysdeps/sh/bits/huge_val.h: Likewise.
11097         * sysdeps/sparc/bits/huge_vall.h: Likewise.
11098         * sysdeps/x86/bits/huge_vall.h: Likewise.
11100 2017-08-31  Florian Weimer  <fweimer@redhat.com>
11102         * elf/dl-addr-obj.c (_dl_addr_inside_object): Remove
11103         internal_function.
11104         * elf/dl-cache.c (_dl_cache_libcmp, _dl_load_cache_lookup):
11105         Likewise.
11106         * elf/dl-debug.c (_dl_debug_initialize): Likewise.
11107         * elf/dl-deps.c (_dl_build_local_scope, _dl_map_object_deps): Likewise.
11108         * elf/dl-environ.c (_dl_next_ld_env_entry): Likewise.
11109         * elf/dl-execstack.c (_dl_make_stack_executable): Likewise.
11110         * elf/dl-fini.c (_dl_sort_fini): Likewise.
11111         * elf/dl-hwcaps.c (_dl_important_hwcaps): Likewise.
11112         * elf/dl-libc.c (dlerror_run): Likewise.
11113         * elf/dl-load.c (add_name_to_object, decompose_rpath)
11114         (_dl_init_paths, _dl_map_object, _dl_rtld_di_serinfo): Likewise.
11115         * elf/dl-lookup.c (add_dependency, _dl_debug_bindings)
11116         (_dl_lookup_symbol_x, _dl_setup_hash, _dl_debug_bindings):
11117         Likewise.
11118         * elf/dl-misc.c (_dl_sysdep_read_whole_file, _dl_name_match_p)
11119         (_dl_higher_prime_number, _dl_strtoul): Likewise.
11120         * elf/dl-object.c (_dl_add_to_namespace_list, _dl_new_object): Likewise.
11121         * elf/dl-profile.c (_dl_start_profile): Likewise.
11122         * elf/dl-reloc.c (_dl_try_allocate_static_tls)
11123         (_dl_allocate_static_tls, _dl_protect_relro, _dl_reloc_bad_type):
11124         Likewise.
11125         * elf/dl-support.c (_dl_aux_init, _dl_non_dynamic_init): Likewise.
11126         * elf/dl-sym.c (_dl_tls_symaddr, do_sym): Likewise.
11127         * elf/dl-sysdep.c (_dl_sysdep_start_cleanup, _dl_show_auxv): Likewise.
11128         * elf/dl-tls.c (_dl_next_tls_modid, _dl_count_modids)
11129         (_dl_determine_tlsoffset, allocate_dtv, _dl_get_tls_static_info)
11130         (_dl_allocate_tls_storage): Likewise.
11131         * elf/dl-version.c (match_symbol, _dl_check_map_versions)
11132         (_dl_check_all_versions): Likewise.
11133         * elf/dynamic-link.h (_dl_try_allocate_static_tls): Likewise.
11134         * elf/tlsdeschtab.h (_dl_make_tlsdesc_dynamic): Likewise.
11135         * elf/tst-_dl_addr_inside_object.c (_dl_addr_inside_object): Likewise.
11136         * sysdeps/aarch64/dl-tlsdesc.h (_dl_make_tlsdesc_dynamic): Likewise.
11137         * sysdeps/aarch64/tlsdesc.c (_dl_unmap): Likewise.
11138         * sysdeps/arm/dl-lookupcfg.h (_dl_unmap): Likewise.
11139         * sysdeps/arm/dl-machine.h (elf_machine_load_address): Remove
11140         internal_function from __dl_start.
11141         * sysdeps/arm/dl-tlsdesc.h (_dl_unmap): Remove internal_function.
11142         * sysdeps/generic/dl-cache.h (_dl_cache_libcmp): Likewise.
11143         * sysdeps/generic/ldsodefs.h (_dl_name_match_p)
11144         (_dl_higher_prime_number, _dl_strtoul, _dl_map_object)
11145         (_dl_map_object_deps, _dl_setup_hash, _dl_rtld_di_serinfo)
11146         (_dl_lookup_symbol_x, _dl_add_to_namespace_list, _dl_new_object)
11147         (_dl_protect_relro, _dl_reloc_bad_type, _dl_check_all_versions)
11148         (_dl_check_map_versions, _dl_sort_fini, _dl_debug_initialize)
11149         (_dl_init_paths, _dl_start_profile, _dl_show_auxv)
11150         (_dl_next_ld_env_entry, _dl_important_hwcaps)
11151         (_dl_load_cache_lookup, _dl_sysdep_read_whole_file)
11152         (_dl_sysdep_start_cleanup, _dl_next_tls_modid, _dl_count_modids)
11153         (_dl_determine_tlsoffset, _dl_get_tls_static_info)
11154         (_dl_allocate_static_tls, _dl_allocate_tls_storage)
11155         (_dl_addr_inside_object, _dl_non_dynamic_init, _dl_aux_init):
11156         Likewise.
11157         (struct rtld_global_ro): Remove internal_function from the
11158         _dl_lookup_symbol_x member.
11159         (_dl_symbol_value): Remove.  No longer defined anywhere.
11160         * sysdeps/i386/dl-lookupcfg.h (_dl_unmap): Remove
11161         internal_function.
11162         * sysdeps/i386/dl-tlsdesc.h (_dl_make_tlsdesc_dynamic): Likewise.
11163         * sysdeps/i386/tlsdesc.c (_dl_unmap): Likewise.
11164         * sysdeps/mach/hurd/dl-sysdep.c (_dl_show_auxv): Likewise.
11165         * sysdeps/nios2/dl-init.c (_dl_nios2_get_gp_value): Likewise.
11166         * sysdeps/tile/dl-lookupcfg.h (_dl_unmap): Likewise.
11167         * sysdeps/tile/dl-machine.h (_dl_after_load): Likewise.
11168         * sysdeps/tile/dl-runtime.c (_dl_after_load, _dl_unmap): Likewise.
11169         * sysdeps/unix/sysv/linux/dl-vdso.c (_dl_vdso_vsym): Likewise.
11170         * sysdeps/unix/sysv/linux/dl-vdso.h (_dl_vdso_vsym): Likewise.
11171         * sysdeps/x86_64/dl-lookupcfg.h (_dl_unmap): Likewise.
11172         * sysdeps/x86_64/dl-tlsdesc.h (_dl_make_tlsdesc_dynamic): Likewise.
11173         * sysdeps/x86_64/tlsdesc.c (_dl_unmap): Likewise.
11175 2017-08-31  Florian Weimer  <fweimer@redhat.com>
11177         * gmon/gmon.c (write_hist, write_call_graph, write_bb_counts):
11178         Remove internal_function.
11179         * sysdeps/arm/machine-gmon.h (mcount_internal, _MCOUNT_DECL):
11180         Likewise.
11181         * sysdeps/sparc/machine-gmon.h (mcount_internal, _MCOUNT_DECL):
11182         Likewise.
11184 2017-08-31  Florian Weimer  <fweimer@redhat.com>
11186         * dlfcn/dlerror.c (_dlerror_run): Remove internal_function.
11187         * elf/dl-sym.c (_dl_vsym, _dl_sym): Likewise.
11188         * include/dlfcn.h (_dl_sym, _dl_vsym, _dlerror_run): Likewise.
11190 2017-08-31  Florian Weimer  <fweimer@redhat.com>
11192         * resolv/gai_misc.c (__gai_find_request, __gai_remove_request)
11193         (__gai_enqueue_request): Remove internal_function.
11194         * resolv/gai_misc.h (__gai_enqueue_request, __gai_find_request)
11195         (__gai_remove_request, __gai_notify, __gai_notify_only)
11196         (__gai_sigqueue): Likewise.
11197         * resolv/gai_notify.c (__gai_notify_only, __gai_notify): Likewise.
11198         * resolv/gai_sigqueue.c (__gai_sigqueue): Likewise.
11199         * resolv/inet_ntop.c (inet_ntop4, inet_ntop6): Likewise.
11200         * sysdeps/unix/sysv/linux/gai_sigqueue.c (__gai_sigqueue):
11201         Likewise.
11203 2017-08-31  Florian Weimer  <fweimer@redhat.com>
11205         * dirent/scandir-tail.c (SCANDIR_TAIL): Remove internal_function.
11206         * include/dirent.h (__opendirat, __getdents, __getdents64)
11207         (__alloc_dir, __scandir_tail, __scandir64_tail): Likewise.
11208         * sysdeps/posix/opendir.c (__opendirat, __alloc_dir): Likewise.
11209         * sysdeps/mach/hurd/opendir.c (__opendirat): Likewise.
11210         * sysdeps/unix/sysv/linux/i386/olddirent.h (__old_getdents64):
11211         Likewise.
11212         * sysdeps/unix/sysv/linux/getdents.c (__GETDENTS): Likewise.
11214 2017-08-31  Florian Weimer  <fweimer@redhat.com>
11216         * sysdeps/unix/sysv/linux/getcwd.c (generic_getcwd): Remove
11217         internal_function.
11218         (GETCWD_RETURN_TYPE): Likewise.
11220 2017-08-31  Florian Weimer  <fweimer@redhat.com>
11222         * include/time.h (__tz_compute, __strptime_internal): Remove
11223         internal_function.
11224         * time/strptime_l.c (__strptime_internal): Likewise.
11225         * time/tzset.c (compute_change, update_vars, __tz_compute): Likewise.
11227 2017-08-31  Florian Weimer  <fweimer@redhat.com>
11229         * iconv/gconv.c (__gconv): Remove internal_function.
11230         * iconv/gconv_builtin.c (__gconv_get_builtin_trans): Likewise.
11231         * iconv/gconv_cache.c (__gconv_load_cache, find_module_idx)
11232         (find_module, __gconv_compare_alias_cache, __gconv_lookup_cache)
11233         (__gconv_release_cache): Likewise.
11234         * iconv/gconv_close.c (__gconv_close): Likewise.
11235         * iconv/gconv_conf.c (detect_conflict, insert_module, add_module)
11236         (read_conf_file, __gconv_get_path): Likewise.
11237         * iconv/gconv_db.c (derivation_lookup, add_derivation)
11238         (__gconv_release_step, gen_steps, increment_counter)
11239         (find_derivation, __gconv_compare_alias, __gconv_find_transform)
11240         (__gconv_close_transform, free_modules_db): Likewise.
11241         * iconv/gconv_dl.c (__gconv_find_shlib, __gconv_release_shlib):
11242         Likewise.
11243         * iconv/gconv_int.h (__gconv_open, __gconv_close, __gconv)
11244         (__gconv_find_transform, __gconv_lookup_cache)
11245         (__gconv_release_step, __gconv_load_cache, __gconv_get_path)
11246         (__gconv_close_transform, __gconv_release_cache)
11247         (__gconv_loaded_object, __gconv_release_shlib)
11248         (__gconv_compare_alias): Likewise.
11249         * iconv/gconv_open.c (__gconv_open): Likewise.
11250         * iconv/iconv_prog.c (print_known_names, add_known_names): Likewise.
11251         * iconv/iconvconfig.c (add_module): Likewise.
11252         * intl/dcigettext.c (plural_lookup, guess_category_value)
11253         (category_to_name, get_output_charset, _nl_find_msg): Likewise.
11254         * intl/eval-plural.h (plural_eval): Likewise.
11255         * intl/finddomain.c (_nl_find_domain): Likewise.
11256         * intl/gettextP.h (_nl_unload_domain, _nl_find_domain)
11257         (_nl_load_domain, _nl_find_msg): Likewise.
11258         (internal_function): Remove definition.
11259         * intl/loadinfo.h (internal_function): Likewise.
11260         * intl/loadmsgcat.c (_nl_load_domain, _nl_unload_domain): Remove
11261         internal_function.
11262         * intl/localealias.c (internal_function): Remove definition.
11263         (read_alias_file): Remove internal_function.
11264         * intl/plural-exp.c (EXTRACT_PLURAL_EXPRESSION): Likewise.
11265         * intl/plural-exp.h (internal_function): Remove definition.
11266         (FREE_EXPRESSION, EXTRACT_PLURAL_EXPRESSION): Remove
11267         internal_function.
11268         * intl/plural.c: Regenerate.
11269         * intl/plural.y (FREE_EXPRESSION): Remove internal_function.
11270         * locale/coll-lookup.c (__collidx_table_lookup)
11271         (__collseq_table_lookup): Likewise.
11272         * locale/coll-lookup.h (__collidx_table_lookup)
11273         (__collseq_table_lookup): Likewise.
11274         * locale/findlocale.c (_nl_find_locale, _nl_remove_locale): Likewise.
11275         * locale/loadarchive.c (_nl_load_locale_from_archive): Likewise.
11276         * locale/loadlocale.c (_nl_intern_locale_data, _nl_load_locale)
11277         (_nl_unload_locale): Likewise.
11278         * locale/localeinfo.h (struct __locale_data): Remove
11279         internal_function from cleanup member.
11280         (_nl_find_locale, _nl_load_locale, _nl_unload_locale)
11281         (_nl_remove_locale, _nl_load_locale_from_archive)
11282         (_nl_intern_locale_data, _nl_get_era_entry, _nl_select_era_entry)
11283         (_nl_get_alt_digit, _nl_get_walt_digit, _nl_parse_alt_digit)
11284         (_nl_cleanup_time): Remove internal_function.
11285         * time/alt_digit.c (_nl_get_alt_digit, _nl_get_walt_digit)
11286         (_nl_parse_alt_digit): Likewise.
11287         * time/era.c (_nl_init_era_entries, _nl_get_era_entry)
11288         (_nl_select_era_entry): Likewise.
11289         * time/lc-time-cleanup.c (_nl_cleanup_time): Likewise.
11290         * wcsmbs/wcsmbsload.c (__wcsmbs_load_conv, __wcsmbs_clone_conv)
11291         (__wcsmbs_named_conv, _nl_cleanup_ctype): Likewise.
11292         * wcsmbs/wcsmbsload.h (__wcsmbs_load_conv, __wcsmbs_clone_conv)
11293         (__wcsmbs_named_conv, _nl_cleanup_ctype): Likewise.
11295 2017-08-31  Florian Weimer  <fweimer@redhat.com>
11297         * rt/aio_sigqueue.c (__aio_sigqueue): Remove internal_function.
11298         * sysdeps/generic/aio_misc.h (__aio_sigqueue): Likewise.
11299         * sysdeps/pthread/aio_misc.c (__aio_free_request, __aio_find_req)
11300         (__aio_find_req_fd, __aio_remove_request, __aio_enqueue_request):
11301         Likewise.
11302         * sysdeps/pthread/aio_misc.h (__aio_enqueue_request)
11303         (__aio_find_req, __aio_find_req_fd, __aio_free_request)
11304         (__aio_notify, __aio_notify_only, __aio_sigqueue): Likewise.
11305         * sysdeps/pthread/aio_notify.c (__aio_notify_only, __aio_notify):
11306         Likewise.
11307         * sysdeps/unix/sysv/linux/aio_sigqueue.c (__aio_sigqueue): Likewise.
11309 2017-08-31  Florian Weimer  <fweimer@redhat.com>
11311         * misc/getttyent.c (skip, value): Remove internal_function.
11312         * misc/syslog.c (openlog_internal): Likewise.
11313         * misc/tsearch.c (trecurse, tdestroy_recurse): Likewise.
11315 2017-08-31  Florian Weimer  <fweimer@redhat.com>
11317         * include/nss.h (__nss_valid_field, __nss_valid_list_field)
11318         (__nss_rewrite_field): Remove internal_function.
11319         * nscd/nscd_getgr_r.c (nscd_getgr_r): Likewise.
11320         * nscd/nscd_gethst_r.c (nscd_gethst_r): Likewise.
11321         * nscd/nscd_getpw_r.c (nscd_getpw_r): Likewise.
11322         * nss/nsswitch.c (nss_parse_file, nss_getline)
11323         (nss_parse_service_list, nss_new_service): Likewise.
11324         * nss/rewrite_field.c (__nss_rewrite_field): Likewise.
11325         * nss/valid_field.c (__nss_valid_field): Likewise.
11326         * nss/valid_list_field.c (__nss_valid_list_field): Likewise.
11328 2017-08-31  Florian Weimer  <fweimer@redhat.com>
11330         * malloc/arena.c (__malloc_fork_lock_parent)
11331         (__malloc_fork_unlock_parent, __malloc_fork_unlock_child)
11332         (next_env_entry, new_heap, heap_trim, arena_get2): Remove
11333         internal_function from defintions.
11334         * malloc/hooks.c (mem2mem_check, mem2chunk_check): Likewise.
11335         * malloc/malloc-internal.h (__malloc_fork_lock_parent)
11336         (__malloc_fork_unlock_parent, __malloc_fork_unlock_child): Remove
11337         internal_function from declarations.
11338         * malloc/malloc.c (internal_function): Do not define.
11339         (mem2mem_check): Remove internal_function from declaration.
11340         (munmap_chunk, mremap_chunk): Remove internal_function.
11341         * malloc/mtrace.c (tr_where): Likewise.
11343 2017-08-31  Florian Weimer  <fweimer@redhat.com>
11345         * include/rpc/pmap_clnt.h (__get_socket): Remove
11346         internal_function.
11347         * sunrpc/auth_des.c (synchronize): Likewise.
11348         * sunrpc/auth_unix.c (marshal_new_auth): Likewise.
11349         * sunrpc/clnt_perr.c (auth_errmsg): Likewise.
11350         * sunrpc/des_impl.c (des_encrypt, des_set_key): Likewise.
11351         * sunrpc/key_call.c (key_call_keyenvoy, key_call_socket)
11352         (key_call): Likewise.
11353         * sunrpc/pm_getport.c (__get_socket): Likewise.
11354         * sunrpc/pmap_rmt.c (getbroadcastnets): Likewise.
11355         * sunrpc/svc_unix.c (makefd_xprt): Likewise.
11356         * sunrpc/svc_tcp.c (makefd_xprt): Likewise.
11357         * sunrpc/svcauth_des.c (cache_init, cache_spot, cache_ref)
11358         (invalidate): Likewise.
11359         * sunrpc/xcrypt.c (hexval, hex2bin, bin2hex): Likewise.
11360         * sunrpc/xdr_rec.c (fix_buf_size, skip_input_bytes, flush_out)
11361         (set_input_fragment, get_input_bytes): Likewise.
11363 2017-08-31  Florian Weimer  <fweimer@redhat.com>
11365         * malloc/malloc.c (_int_free): Remove locked variable and related
11366         asserts.
11368 2017-08-31  H.J. Lu  <hongjiu.lu@intel.com>
11370         [BZ #22051]
11371         * Makerules (build-module-helper-objlist): Filter out
11372         $(elf-objpfx)sofini.os.
11373         (build-shlib-objlist): Append $(elf-objpfx)sofini.os if it is
11374         needed.
11376 2017-08-31  Florian Weimer  <fweimer@redhat.com>
11378         * libio/fcloseall.c: Assume weak_alias is defined.
11379         * libio/feof.c: Likewise.
11380         * libio/fileno.c: Likewise.
11381         * libio/fileops.c: Assume _LIBC, errno, __set_errno are defined.
11382         (_POSIX_SOURCE, open, lseek, read, write): Remove macro
11383         definitions.
11384         (_IO_file_open): Call __open directly.
11385         (_IO_new_file_sync): Assume ESPIPE is defined.
11386         (_IO_file_seekoff_maybe_mmap): Call __read directly.
11387         (_IO_new_file_write): Call __write directly.
11388         * libio/ftello.c (__ftello): Assume EIO, EOVERFLOW are defined.
11389         * libio/ftello64.c (__ftello64): Assume EIO is defined.
11390         * libio/genops.c: Assume _LIBC is defined.
11391         (save_for_backup): Remove internal_function.
11392         * libio/getc.c: Assume weak_alias is defined.
11393         * libio/getwc.c: Likewise.
11394         * libio/iofclose.c: Assume _LIBC is defined.
11395         * libio/iofdopen.c: Likewise.
11396         (_IO_fcntl): Remove macro definition.
11397         (_IO_new_fdopen): Assume F_GETFL, F_SETFL, O_ACCMODE are defined.
11398         Call __fcntl directly.
11399         * libio/iofflush.c: Assume weak_alias is defined.
11400         * libio/iofgetpos.c (_IO_new_fgetpos): Assume EIO, EOVERFLOW are
11401         defined.
11402         * libio/iofgetpos64.c (_IO_new_fgetpos64): Assume EIO is defined.
11403         * libio/iofgets.c: Likewise.
11404         * libio/iofopen.c: Assume _LIBC is defined.
11405         * libio/iofopen64.c: Assume _LIBC, weak_alias are defined.
11406         * libio/iofputs.c: Assume weak_alias is defined.
11407         * libio/iofread.c: Likewise.
11408         * libio/iofsetpos.c (_IO_new_fsetpos): Assume EIO is defined.
11409         * libio/iofsetpos64.c (_IO_new_fsetpos64): Likewise.
11410         * libio/ioftell.c: Assume weak_alias is defined.
11411         (_IO_ftell): Assume EIO, EOVERFLOW are defined.
11412         * libio/iofwide.c: Assume _LIBC is defined.
11413         (_IO_fwide): Drop SHARED conditional because it is implied by
11414         SHLIB_COMPAT.
11415         * libio/iofwrite.c: Assume weak_alias is defined.
11416         * libio/iogetdelim.c: Likewise.
11417         * libio/iogets.c: Assume _LIBC, weak_alias are defined.
11418         * libio/iogetwline.c (wmemcpy): Remove macro definition.
11419         (_IO_getwline): Call __wmemcpy directly.
11420         * libio/iopopen.c: Assume _LIBC is defined.
11421         (_POSIX_SOURCE, _IO_fork, _IO_dup2, _IO_waitpid, _IO_execl)
11422         (_IO_close): Remove macro definitions.
11423         (_IO_new_proc_open): Call __fork, __dup2, __close_nocancel, execl,
11424         _exit directly.
11425         (_IO_new_proc_close): Call __close_nocancel, __waitpid_nocancel
11426         directly.
11427         * libio/ioputs.c: Assume weak_alias is defined.
11428         * libio/ioseekoff.c: Assume errno, __set_errno are defined.
11429         * libio/iosetbuffer.c: Assume weak_alias is defined.
11430         * libio/iosetvbuf.c: Likewise.
11431         * libio/ioungetc.c: Likewise.
11432         * libio/libioP.h: Assume _LIBC, __GLIBC__, libc_hidden_proto,
11433         libc_hidden_def, libc_hidden_weak, NULL are defined.
11434         (mmap, munmap, ftruncate, OS_FSTAT): Remove macro definitions.
11435         * libio/oldfilepos.c: Assume _LIBC, errno, __set_errno are
11436         defined.
11437         (_POSIX_SOURCE, open, lseek, read, write): Remove macro
11438         definitions.
11439         (_IO_old_file_init_internal): Drop SHARED conditional because it
11440         is implied by SHLIB_COMPAT.
11441         (_IO_old_file_fopen): Call __open directly.
11442         (_IO_old_file_sync): Assume ESPIPE is defined.
11443         (_IO_old_file_write): Call __write directly.
11444         * libio/oldfdopen.c (_IO_fcntl): Remove macro definition.
11445         (_IO_old_fdopen): Assume F_GETFL, O_ACCMODE, F_SETFL are defined.
11446         Call __fcntl directly.
11447         * libio/oldiofgetpos.c: Assume weak_alias is defined.
11448         (_IO_old_fgetpos): Assume EIO is defined.
11449         * libio/oldiofgetpos64.c: Assume weak_alias is defined.
11450         (_IO_old_fgetpos64): Assume EIO is defined.
11451         * libio/oldiofsetpos.c: Assume weak_alias is defined.
11452         (_IO_old_fsetpos): Assume EIO is defined.
11453         * libio/oldiofsetpos64.c: Assume weak_alias is defined.
11454         (_IO_old_fsetpos64): Assume EIO is defined.
11455         * libio/oldiopopen.c:  Assume _LIBC is defined.
11456         (_POSIX_SOURCE, _IO_fork, _IO_dup2, _IO_waitpid, _IO_execl)
11457         (_IO_close): Remove macro definitions.
11458         (_IO_old_proc_open): Call __pipe, __close, __dup2, execl, _exit
11459         directly.
11460         (_IO_old_proc_close): Call __close, __waitpid directly.
11461         * libio/put.c: Assume weak_alias is defined.
11462         * libio/stdfiles.c: Assume _LIBC is defined.
11463         * libio/stdio.c: Likewise.
11464         * libio/wfileops.c: Likewise.
11465         (_IO_wfile_sync): Assume ESPIPE is defined.
11466         * libio/wgenops.c: Assume _LIBC is defined.
11467         (save_for_wbackup): Remove internal_function.
11469 2017-08-31  Florian Weimer  <fweimer@redhat.com>
11471         * malloc/malloc.c (top_check): Change return type to void.  Remove
11472         internal_function.
11473         * malloc/hooks.c (top_check): Likewise.
11474         (malloc_check, realloc_check, memalign_check): Adjust.
11476 2017-08-30  Joseph Myers  <joseph@codesourcery.com>
11478         [BZ #21457]
11479         * sysdeps/arm/sys/ucontext.h: Do not include <bits/sigcontext.h>.
11480         * sysdeps/generic/sys/ucontext.h: Add comment about use of struct
11481         sigcontext and namespace requirements.
11482         * sysdeps/i386/sys/ucontext.h: Do not include <bits/sigcontext.h>.
11483         * sysdeps/m68k/sys/ucontext.h: Likewise.
11484         * sysdeps/mips/sys/ucontext.h: Likewise.  Include <bits/types.h>.
11485         * sysdeps/unix/sysv/linux/aarch64/sys/ucontext.h: Do not include
11486         <bits/sigcontext.h>.
11487         (__ctx): Define earlier.
11488         (mcontext_t): Define structure contents rather than using struct
11489         sigcontext.
11490         * sysdeps/unix/sysv/linux/aarch64/ucontext_i.sym (oEXTENSION): Use
11491         __glibc_reserved1 instead of __reserved.
11492         * sysdeps/unix/sysv/linux/alpha/sys/ucontext.h: Do not include
11493         <bits/sigcontext.h>.
11494         (__ctx): Define earlier.
11495         (mcontext_t): Define structure contents rather than using struct
11496         sigcontext.
11497         * sysdeps/unix/sysv/linux/alpha/ucontext-offsets.sym: Use
11498         mcontext_t instead of struct sigcontext.
11499         * sysdeps/unix/sysv/linux/arm/sys/ucontext.h: Do not include
11500         <bits/sigcontext.h>.
11501         (__ctx): Define earlier.
11502         (mcontext_t): Define structure contents rather than using struct
11503         sigcontext.
11504         * sysdeps/unix/sysv/linux/hppa/sys/ucontext.h: Do not include
11505         <bits/sigcontext.h>.
11506         (__ctx): Define earlier.
11507         (mcontext_t): Define structure contents rather than using struct
11508         sigcontext.
11509         * sysdeps/unix/sysv/linux/ia64/makecontext.c (__makecontext): Use
11510         mcontext_t instead of struct sigcontext.
11511         * sysdeps/unix/sysv/linux/ia64/sigcontext-offsets.sym: Use
11512         mcontext_t instead of struct sigcontext.
11513         * sysdeps/unix/sysv/linux/ia64/sys/ucontext.h: Do not include
11514         <bits/sigcontext.h>.
11515         (__ctx): New macro.
11516         (struct __ia64_fpreg_mcontext): New type.
11517         (mcontext_t): Define structure contents rather than using struct
11518         sigcontext.
11519         (_SC_GR0_OFFSET): Use mcontext_t instead of struct sigcontext.
11520         (uc_sigmask): Define using __ctx.
11521         (uc_stack): Likewise.
11522         * sysdeps/unix/sysv/linux/ia64/sys/procfs.h: Include
11523         <bits/sigcontext.h>.
11524         * sysdeps/unix/sysv/linux/ia64/sys/ptrace.h: Likewise.
11525         * sysdeps/unix/sysv/linux/m68k/sys/ucontext.h: Do not include
11526         <bits/sigcontext.h>.
11527         * sysdeps/unix/sysv/linux/microblaze/sys/ucontext.h: New file.
11528         * sysdeps/unix/sysv/linux/mips/sys/ucontext.h: Do not include
11529         <bits/sigcontext.h>.
11530         * sysdeps/unix/sysv/linux/nios2/sys/ucontext.h: Do not include
11531         <bits/sigcontext.h>.
11532         * sysdeps/unix/sysv/linux/powerpc/sys/ucontext.h: Do not include
11533         <bits/sigcontext.h>.
11534         * sysdeps/unix/sysv/linux/s390/sys/ucontext.h: Do not include
11535         <bits/sigcontext.h>.
11536         * sysdeps/unix/sysv/linux/sh/sys/ucontext.h: Do not include
11537         <bits/sigcontext.h>.
11538         * sysdeps/unix/sysv/linux/sparc/sys/ucontext.h: Do not include
11539         <bits/sigcontext.h>.
11540         * sysdeps/unix/sysv/linux/tile/sys/ucontext.h: Do not include
11541         <bits/sigcontext.h>.
11542         (__ctx): Define earlier.
11543         (mcontext_t): Define structure contents rather than using struct
11544         sigcontext.
11545         * sysdeps/unix/sysv/linux/x86/sys/ucontext.h: Do not include
11546         <bits/sigcontext.h>.  Include <bits/types.h>.
11547         * conform/Makefile (test-xfail-XPG42/signal.h/conform): Remove.
11548         (test-xfail-XPG42/sys/wait.h/conform): Likewise.
11549         (test-xfail-XPG42/ucontext.h/conform): Likewise.
11550         (test-xfail-UNIX98/signal.h/conform): Likewise.
11551         (test-xfail-UNIX98/sys/wait.h/conform): Likewise.
11552         (test-xfail-UNIX98/ucontext.h/conform): Likewise.
11553         (test-xfail-XOPEN2K/signal.h/conform): Likewise.
11554         (test-xfail-XOPEN2K/sys/wait.h/conform): Likewise.
11555         (test-xfail-XOPEN2K/ucontext.h/conform): Likewise.
11556         (test-xfail-POSIX2008/signal.h/conform): Likewise.
11557         (test-xfail-POSIX2008/sys/wait.h/conform): Likewise.
11558         (test-xfail-XOPEN2K8/signal.h/conform): Likewise.
11559         (test-xfail-XOPEN2K8/sys/wait.h/conform): Likewise.
11561 2017-08-30  Florian Weimer  <fweimer@redhat.com>
11563         * malloc/dynarray_emplace_enlarge.c
11564         (__libc_dynarray_emplace_enlarge): Set errno on overflow.
11565         * malloc/dynarray_resize.c (__libc_dynarray_resize): Likewise.
11566         * malloc/tst-dynarray.c (test_long_overflow): New function.
11567         (do_test): Call it.
11569 2017-08-30  Florian Weimer  <fweimer@redhat.com>
11571         * malloc/malloc.c (ARENA_CORRUPTION_BIT, arena_is_corrupt)
11572         (set_arena_corrupt): Remove definitions.
11573         (mtrim): Do not check for corrupt arena.
11574         * malloc/arena.c (arena_lock, reused_arena, arena_get_retry):
11575         Likewise.
11577 2017-08-30  Florian Weimer  <fweimer@redhat.com>
11579         [BZ #21754]
11580         * malloc/arena.c (TUNABLE_CALLBACK set_mallopt_check): Do not set
11581         check_action.
11582         (ptmalloc_init): Do not set or use check_action.
11583         * malloc/hooks.c (malloc_check_get_size, realloc_check): Adjust
11584         call to malloc_printerr.  Remove return statement.
11585         (free_check): Likewise.  Remove arena unlock.
11586         (top_check): Update comment.  Adjust call to malloc_printerr.
11587         Remove heap repair code.
11588         * malloc/malloc.c (unlink): Adjust calls to malloc_printerr.
11589         (DEFAULT_CHECK_ACTION, check_action): Remove definitions.
11590         (sysmalloc): Adjust call to malloc_printerr.
11591         (munmap_chunk, __libc_realloc): Likewise.  Remove return
11592         statement.
11593         (_int_malloc, int_realloc): Likewise.  Remove errstr variable.
11594         Remove errout label and corresponding gotos.
11595         (_int_free): Likewise.  Remove arena unlock.
11596         (do_set_mallopt_check): Do not set check_action.
11597         (malloc_printerr): Adjust parameter list.  Do not mark arena as
11598         corrupt.
11599         * manual/memory.texi (Malloc Tunable Parameters): Remove TODO
11600         comment.
11601         * manual/probes.texi (Memory Allocation Probes): Remove
11602         memory_mallopt_check_action.
11604 2017-08-30  Steve Ellcey  <sellcey@cavium.com>
11606         * sysdeps/unix/sysv/linux/aarch64/makecontext.c (__makecontext):
11607         Use pointer to uint64_t instead of long int for sp.
11609 2017-08-30  Florian Weimer  <fweimer@redhat.com>
11611         [BZ #21754]
11612         * malloc/malloc.c (malloc_printerr): Always terminate the process,
11613         without printing a backtrace.  Do not leak any information in the
11614         error message.
11615         * manual/memory.texi (Heap Consistency Checking): Update.
11616         * manual/tunables.texi (Memory Allocation Tunables): Likewise.
11618 2017-08-30  Florian Weimer  <fweimer@redhat.com>
11620         Do not scale NPTL tests with available number of CPUs.
11621         * nptl/tst-cond16.c (count): Set to constant value of 8.
11622         * nptl/tst-cond18.c (count): Likewise.
11624 2017-08-29  Joseph Myers  <joseph@codesourcery.com>
11626         [BZ #22035]
11627         * sysdeps/m68k/m680x0/fpu/bits/mathinline.h (__inline_functions):
11628         Define to take a second argument that is a macro that
11629         concatentates a suffix, not the suffix itself.
11630         (__CONCAT_d): New macro.
11631         (__CONCAT_f): Likewise.
11632         (__CONCAT_l): Likewise.
11634 2017-08-29  Paul Pluzhnikov  <ppluzhnikov@google.com>
11636         * stdlib/tst-atexit-common.c (do_test): Test handler inheritance
11637         by child.
11639 2017-08-29  Adhemerval Zanella  <adhemerval.zanella@linaro.org>
11640             Aurelien Jarno  <aurelien@aurel32.net>
11641             Maciej W. Rozycki  <macro@imgtec.com>
11643         [BZ #21956]
11644         * sysdeps/unix/sysv/linux/mips/mips32/mips16/Makefile
11645         [subdir = misc] (sysdep_routines): Remove `mips16-syscall5',
11646         `mips16-syscall6' and `mips16-syscall7'.
11647         (CFLAGS-mips16-syscall5.c, CFLAGS-mips16-syscall6.c)
11648         (CFLAGS-mips16-syscall7.c): Remove.
11649         * sysdeps/unix/sysv/linux/mips/mips32/mips16/Versions (libc):
11650         Remove `__mips16_syscall5', `__mips16_syscall6' and
11651         `__mips16_syscall7'.
11652         * sysdeps/unix/sysv/linux/mips/mips32/mips16/mips16-syscall0.c
11653         (__mips16_syscall0): Rename `__mips16_syscall_return' to
11654         `__mips_syscall_return'.
11655         * sysdeps/unix/sysv/linux/mips/mips32/mips16/mips16-syscall1.c
11656         (__mips16_syscall1): Likewise.
11657         * sysdeps/unix/sysv/linux/mips/mips32/mips16/mips16-syscall2.c
11658         (__mips16_syscall2): Likewise.
11659         * sysdeps/unix/sysv/linux/mips/mips32/mips16/mips16-syscall3.c
11660         (__mips16_syscall3): Likewise.
11661         * sysdeps/unix/sysv/linux/mips/mips32/mips16/mips16-syscall4.c
11662         (__mips16_syscall4): Likewise.
11663         * sysdeps/unix/sysv/linux/mips/mips32/mips16/mips16-syscall5.c:
11664         Remove.
11665         * sysdeps/unix/sysv/linux/mips/mips32/mips16/mips16-syscall6.c:
11666         Remove.
11667         * sysdeps/unix/sysv/linux/mips/mips32/mips16/mips16-syscall7.c:
11668         Remove.
11669         * sysdeps/unix/sysv/linux/mips/mips32/mips16/mips16-syscall.h
11670         (__mips16_syscall5): Expand to `__mips_syscall5' rather than
11671         `__mips16_syscall5'.  Remove prototype.
11672         (__mips16_syscall6): Expand to `__mips_syscall6' rather than
11673         `__mips16_syscall6'.  Remove prototype.
11674         (__mips16_syscall7): Expand to `__mips_syscall7' rather than
11675         `__mips16_syscall7'.  Remove prototype.
11676         (__nomips16, __mips16_syscall_return): Move to...
11677         * sysdeps/unix/sysv/linux/mips/mips32/sysdep.h
11678         (__nomips16, __mips_syscall_return): ... here.
11679         [__mips16] (INTERNAL_SYSCALL_NCS): Rename
11680         `__mips16_syscall_return' to `__mips_syscall_return'.
11681         [__mips16] (INTERNAL_SYSCALL_MIPS16): Pass `number' to
11682         `internal_syscall##nr'.
11683         [!__mips16] (INTERNAL_SYSCALL): Pass `SYS_ify (name)' to
11684         `internal_syscall##nr'.
11685         (FORCE_FRAME_POINTER): Remove.
11686         (__mips_syscall5): New prototype.
11687         (internal_syscall5): Rewrite to call `__mips_syscall5'.
11688         (__mips_syscall6): New prototype.
11689         (internal_syscall6): Rewrite to call `__mips_syscall6'.
11690         (__mips_syscall7): New prototype.
11691         (internal_syscall7): Rewrite to call `__mips_syscall7'.
11692         * sysdeps/unix/sysv/linux/mips/mips32/mips-syscall5.S: New file.
11693         * sysdeps/unix/sysv/linux/mips/mips32/mips-syscall6.S: New file.
11694         * sysdeps/unix/sysv/linux/mips/mips32/mips-syscall7.S: New file.
11695         * sysdeps/unix/sysv/linux/mips/mips32/Makefile [subdir = misc]
11696         (sysdep_routines): Add libc-do-syscall.
11697         * sysdeps/unix/sysv/linux/mips/mips32/Versions (libc): Add
11698         `__mips_syscall5', `__mips_syscall6' and `__mips_syscall7'.
11700 2017-08-29  Adhemerval Zanella  <adhemerval.zanella@linaro.org>
11702         [BZ #21672]
11703         * nptl/allocatestack.c [_STACK_GROWS_DOWN] (setup_stack_prot):
11704         Set to use !NEED_SEPARATE_REGISTER_STACK as well.
11705         (advise_stack_range): New function.
11706         * nptl/pthread_create.c (START_THREAD_DEFN): Move logic to mark
11707         stack non required to advise_stack_range at allocatestack.c
11709 2017-08-29  Szabolcs Nagy  <szabolcs.nagy@arm.com>
11711         * sysdeps/unix/sysv/linux/aarch64/sys/procfs.h: Use __uint64_t.
11713 2017-08-29  Florian Weimer  <fweimer@redhat.com>
11715         [BZ #22026]
11716         * iconv/gconv_db.c (gen_steps): Decrement step_cnt after resetting
11717         __end_fct.  Mangle __end_fct after setting it to NULL.
11718         * iconv/Makefile (tests): Add tst-gconv-init-failure.
11719         (modules-names, modules-names-tests): Add
11720         tst-gconv-init-failure-mod.
11721         (gconv-modules): New target.
11722         (tst-gconv-init-failure-mod.so): Link against libsupport.
11723         (tst-gconv-init-failure): Depend on gconv-modules,
11724         tst-gconv-init-failure-mod.so.
11725         * iconv/tst-gconv-init-failure-mod.c: New file.
11726         * iconv/tst-gconv-init-failure.c: Likewise.
11727         * iconv/test-gconv-modules: Likewise.
11729 2017-08-29  Florian Weimer  <fweimer@redhat.com>
11731         [BZ #22025]
11732         * iconv/gconv_db.c (free_derivation): Remove redundant
11733         parentheses.
11734         (gen_steps): Unconditionally mangle __btowc_fct after
11735         initialization.
11736         (increment_counter): Likewise.  Do not call init_fct for internal
11737         modules.
11739 2017-08-29  Joseph Myers  <joseph@codesourcery.com>
11741         [BZ #22028]
11742         * math/math.h [__FINITE_MATH_ONLY__ && __FINITE_MATH_ONLY__ > 0]
11743         (_MSUF_): Remove macro.
11744         [__FINITE_MATH_ONLY__ && __FINITE_MATH_ONLY__ > 0] (_MSUFTO_):
11745         Likewise.
11746         [__FINITE_MATH_ONLY__ && __FINITE_MATH_ONLY__ > 0]
11747         (__REDIRFROM_X): New macro.
11748         [__FINITE_MATH_ONLY__ && __FINITE_MATH_ONLY__ > 0] (__REDIRTO_X):
11749         Likewise.
11750         * math/bits/math-finite.h (__REDIRFROM_X): Remove macro.
11751         (__REDIRTO_X): Likewise.
11752         (__MATH_REDIRCALL): Do not pass _MSUF_ or _MSUFTO_ macro
11753         arguments.
11754         (__MATH_REDIRCALL_2): Likewise.
11755         (__MATH_REDIRCALL_INTERNAL): Likewise.
11756         (__REDIRFROM (lgamma, , _MSUF_)): Likewise.
11757         (__REDIRFROM (gamma, , _MSUF_)): Likweise.
11758         (__REDIRFROM (__gamma, _r_finite, _MSUF_)): Likewise.
11759         (__REDIRFROM (tgamma, , _MSUF_)): Likewise.
11760         * math/test-finite-macros.c: New file.
11761         * math/Makefile (tests): Add test-finite-macros.
11762         (CFLAGS-test-finite-macros.c): New variable.
11764 2017-08-29  Patsy Franklin  <pfrankli@redhat.com>
11765             Jeff Law  <law@redhat.com>
11767         [BZ #22025]
11768         Mangle NULL pointers in iconv/gconv.
11769         * iconv/gconv_cache.c (find_module): Demangle init_fct before
11770         checking for NULL. Mangle __btowc_fct if init_fct is non-NULL.
11771         * iconv/gconv_db.c (free_derivation): Check that __shlib_handle
11772         is non-NULL before demangling the end_fct.  Check for NULL
11773         end_fct after demangling.
11774         (__gconv_release_step): Demangle the end_fct before checking
11775         it for NULL.   Remove assert on __shlibc_handle != NULL.
11776         (gen_steps): Don't check btowc_fct for NULL before mangling.
11777         Demangle init_fct before checking for NULL.
11778         (increment_counter): Likewise.
11779         * gconv_dl.c (__gconv_find_shlib): Don't check init_fct or
11780         end_fct for NULL before mangling.
11781         * wcsmbs/btowc.c (__btowc): Demangle btowc_fct before checking
11782         for NULL.
11784 2017-08-29  Akhilesh Kumar  <akhilesh.k@samsung.com>
11786         [BZ #21971]
11787         * locale/iso-639.def: add Morisyen.
11789 2017-08-28  Gabriel F. T. Gomes  <gftg@linux.vnet.ibm.com>
11791         [BZ #21930]
11792         * math/math.h [defined __cplusplus && defined __SUPPORT_SNAN__]
11793         (iszero): New C++ implementation that does not use
11794         fpclassify/__MATH_TG/__builtin_types_compatible_p, when
11795         signaling nans are enabled, since __builtin_types_compatible_p
11796         is a C-only feature.
11797         * math/test-math-iszero.cc: When __HAVE_DISTINCT_FLOAT128 is
11798         defined, include ieee754_float128.h for access to the union and
11799         member ieee854_float128.ieee.
11800         [__HAVE_DISTINCT_FLOAT128] (do_test): Call check_float128.
11801         [__HAVE_DISTINCT_FLOAT128] (check_float128): New function.
11802         * sysdeps/powerpc/powerpc64le/Makefile [subdir == math]
11803         (CXXFLAGS-test-math-iszero.cc): Add -mfloat128 to the build
11804         options of test-math-zero on powerpc64le.
11806 2017-08-28  H.J. Lu  <hongjiu.lu@intel.com>
11808         * sysdeps/x86_64/fpu/multiarch/e_expf.c (__redirect_ieee754_expf):
11809         Change double to float.
11811 2017-08-28  Joseph Myers  <joseph@codesourcery.com>
11813         * math/math-svid-compat.h [!__ASSEMBLER__]: Make code
11814         unconditional.
11815         * sysdeps/ieee754/s_lib_version.c [!defined SHARED]: Remove
11816         conditional code; define contents only for [LIBM_SVID_COMPAT].
11818 2017-08-28  Florian Weimer  <fweimer@redhat.com>
11820         * sysdeps/unix/sysv/linux/aarch64/Makefile (abi-lp64-options)
11821         (abi-lp64_be-options): Remove.
11822         * sysdeps/unix/sysv/linux/arm/Makefile (abi-soft-options)
11823         (abi-hard-options): Likewise.
11824         * sysdeps/unix/sysv/linux/mips/Makefile(abi-o32_soft-options)
11825         (abi-o32_hard-options, abi-o32_soft_2008-options)
11826         (abi-o32_hard_2008-options, abi-n32_soft-options)
11827         (abi-n32_hard-options, abi-n32_soft_2008-options)
11828         (abi-n32_hard_2008-options, abi-n64_soft-options)
11829         (abi-n64_hard-options, abi-n64_soft_2008-options)
11830         (abi-n64_hard_2008-options): Likewise.
11831         * sysdeps/unix/sysv/linux/powerpc/Makefile (abi-32-options)
11832         (abi-64-v1-options, abi-64-v2-options): Likewise.
11833         * sysdeps/unix/sysv/linux/s390/Makefile (abi-32-options)
11834         (abi-64-options): Likewise.
11835         * sysdeps/unix/sysv/linux/sparc/Makefile (abi-32-options)
11836         (abi-64-options): Likewise.
11837         * sysdeps/unix/sysv/linux/tile/tilegx/Makefile (abi-32-options)
11838         (abi-64-options): Likewise.
11839         * sysdeps/unix/sysv/linux/x86/Makefile (abi-32-options)
11840         (abi-64-options, abi-x32-options): Likewise.
11842 2017-08-28  Florian Weimer  <fweimer@redhat.com>
11844         Store supported list of SYS_* system calls in the source tree.
11845         * sysdeps/unix/sysv/linux/Makefile [$(subdir) = misc]
11846         (bits/syscall.h): Generate from list file.
11847         [$(subdir) = misc] (before-compile): Add bits/syscall.h.
11848         [$(subdir) = misc] (tests): Add tst-syscall-list.
11849         [$(subdir) = misc] (tests-special): Add tst-syscall-list.out
11850         [$(subdir) = misc] (tst-syscall-list-macros.list)
11851         [$(subdir) = misc] (tst-syscall-list-nr.list)
11852         (tst-syscall-list-sys.list): Helper targets for new
11853         tst-syscall-list test.
11854         [$(subdir) = misc] (tst-syscall-list.out): Run test script
11855         tst-syscall-list.sh.
11856         [$(subdir) = misc] (bits/syscall%h, bits/syscall%d): Remove
11857         target. Do not include bits/syscall.d.
11858         [$(subdir) = misc] (generated): Do not update.
11859         * sysdeps/unix/sysv/linux/syscall-names.list: New file.
11860         * sysdeps/unix/sysv/linux/gen-syscall-h.awk: Likewise.
11861         * sysdeps/unix/sysv/linux/filter-nr-syscalls.awk: Likewise.
11862         * sysdeps/unix/sysv/linux/tst-syscall-list.sh: Likewise.
11864 2017-08-27  Paul Pluzhnikov  <ppluzhnikov@google.com>
11866         * stdlib/Makefile (tst-atexit, tst-at_quick_exit): New tests.
11867         (tst-cxa_atexit, tst-on_exit): Likewise.
11868         * stdlib/Makefile (tests): Add tst-atexit, tst-at_quick_exit,
11869         tst-cxa_atexit, and tst-on_exit.
11870         * stdlib/tst-atexit-common.c: New file.
11871         * stdlib/tst-atexit.c: New file.
11872         * stdlib/tst-at_quick_exit.c: New file.
11873         * stdlib/tst-cxa_atexit.c: New file.
11874         * stdlib/tst-on_exit.c: New file.
11876 2017-08-27  Samuel Thibault  <samuel.thibault@ens-lyon.org>
11878         * sysdeps/mach/hurd/bits/sysmacros.h: New file.
11879         * mach/stack_chk_fail_local.c: New file.
11880         * hurd/stack_chk_fail_local.c: New file.
11881         * mach/Machrules ($(interface-library)-routines): Add
11882         stack_chk_fail_local.
11883         * mach/Makefile (CFLAGS-mach_init.o, CFLAGS-RPC_vm_statistics.o,
11884         CFLAGS-RPC_vm_map.o, CFLAGS-RPC_vm_protect.o,
11885         CFLAGS-RPC_i386_set_gdt.o, CFLAGS-RPC_i386_set_ldt.o,
11886         CFLAGS-RPC_task_get_special_port.o): Add $(no-stack-protector).
11887         * hurd/Makefile (CFLAGS-hurdstartup.o,
11888         CFLAGS-RPC_exec_startup_get_info.o): Add $(no-stack-protector).
11890 2017-08-25  H.J. Lu  <hongjiu.lu@intel.com>
11892         * sysdeps/x86/cpu-features.h [__ASSEMBLER__]
11893         (index_cpu_*, index_arch_*): Removed.
11895 2017-08-25  Szabolcs Nagy  <szabolcs.nagy@arm.com>
11897         * sysdeps/unix/sysv/linux/aarch64/sys/procfs.h (elf_greg_t):
11898         Use uint64_t instead of unsigned long.
11900 2017-08-25  Joseph Myers  <joseph@codesourcery.com>
11902         * math/tgmath.h [__HAVE_FLOAT128]: Change conditional to
11903         [__HAVE_DISTINCT_FLOAT128].
11905         * math/math.h (_MSUFTO_): Define and undefine for each inclusion
11906         of <bits/math-finite.h>.
11907         (__MATH_DECLARING_LDOUBLE): Do not define and undefine for each
11908         inclusion of <bits/math-finite.h>.
11909         * math/bits/math-finite.h (__REDIRTO_X): Do not define
11910         conditionally on [__MATH_DECLARING_LDOUBLE && defined
11911         __NO_LONG_DOUBLE_MATH].
11912         (__MATH_REDIRCALL): Use _MSUFTO_ in __REDIRTO call.
11913         (__MATH_REDIRCALL_2): Likewise.
11914         (__MATH_REDIRCALL_INTERNAL): Likewise.
11915         (__REDIRFROM (lgamma, , _MSUF_)): Likewise.
11916         (__REDIRFROM (gamma, , _MSUF_)): Likewise.
11917         (__REDIRFROM (tgamma, , _MSUF_)): Likewise.
11919         * sysdeps/powerpc/powerpc32/power4/fpu/multiarch/w_sqrt_compat-power5.S:
11920         Remove file.
11921         * sysdeps/powerpc/powerpc32/power4/fpu/multiarch/w_sqrt_compat-ppc32.S:
11922         Likewise.
11923         * sysdeps/powerpc/powerpc32/power4/fpu/multiarch/w_sqrt_compat.c:
11924         Likewise.
11925         * sysdeps/powerpc/powerpc32/power4/fpu/multiarch/w_sqrtf_compat-power5.S:
11926         Likewise.
11927         * sysdeps/powerpc/powerpc32/power4/fpu/multiarch/w_sqrtf_compat-ppc32.S:
11928         Likewise.
11929         * sysdeps/powerpc/powerpc32/power4/fpu/multiarch/w_sqrtf_compat.c:
11930         Likewise.
11931         * sysdeps/powerpc/powerpc32/power4/fpu/w_sqrt_compat.S: Likewise.
11932         * sysdeps/powerpc/powerpc32/power4/fpu/w_sqrtf_compat.S: Likewise.
11933         * sysdeps/powerpc/powerpc32/power5/fpu/w_sqrt_compat.S: Likewise.
11934         * sysdeps/powerpc/powerpc32/power5/fpu/w_sqrtf_compat.S: Likewise.
11935         * sysdeps/powerpc/powerpc32/power4/fpu/multiarch/Makefile
11936         (libm-sysdep-routines): Remove w_sqrt_compat-power5,
11937         w_sqrt_compat-ppc32, w_sqrtf_compat-power5 and
11938         w_sqrtf_compat-ppc32.
11940 2017-08-24  Gabriel F. T. Gomes  <gftg@linux.vnet.ibm.com>
11942         * math/math.h [defined __cplusplus] (issignaling): In the long
11943         double case, call __issignalingl only if __NO_LONG_DOUBLE_MATH
11944         is not defined.  Call __issignaling, otherwise.
11946 2017-08-24  Adhemerval Zanella  <adhemerval.zanella@linaro.org>
11948         * sysdeps/unix/make-syscalls.sh: Remove cancellable tagging for
11949         syscall definitions and replace __builtin_expect with __glibc_likely.
11950         * sysdeps/unix/syscall-template.S: Update comment about cancellable
11951         syscall.
11952          (SYSCALL_CANCELLABLE): Removedefinition
11953         * sysdeps/unix/sysv/linux/aarch64/sysdep-cancel.h (PSEUDO): Remove
11954         definition.
11955         (PSEUDO_END): Likewise.
11956         [IS_IN (libpthread)] (CENABLE): Likewise.
11957         [IS_IN (libpthread)] (CDISABLE): Likewise.
11958         [IS_IN (libc)] (CENABLE): Likewise.
11959         [IS_IN (libc)] (CENABLE): Likewise.
11960         [IS_IN (librt)] (CDISABLE): Likewise.
11961         [IS_IN (librt)] (CDISABLE): Likewise.
11962         [__ASSEMBLER__] (SINGLE_THREAD_P): Likewise.
11963         * sysdeps/unix/sysv/linux/alpha/sysdep-cancel.h (PSEUDO): Remove
11964         definition.
11965         (PSEUDO_END): Likewise.
11966         [IS_IN (libpthread)] (__local_enable_asynccancel): Likewise.
11967         [IS_IN (libpthread)] (__local_disable_asynccancel): Likewise.
11968         [IS_IN (libc)] (__local_enable_asynccancel): Likewise.
11969         [IS_IN (libc)] (__local_enable_asynccancel): Likewise.
11970         [IS_IN (librt)] (__local_disable_asynccancel): Likewise.
11971         [IS_IN (librt)] (__local_disable_asynccancel): Likewise.
11972         (CENABLE): Likewise.
11973         (CDISABLE): Likewise.
11974         [__ASSEMBLER__] (SINGLE_THREAD_P): Likewise.
11975         * sysdeps/unix/sysv/linux/arm/sysdep-cancel.h (PSEUDO): Remove
11976         defintion.
11977         (PSEUDO_END): Likewise.
11978         [IS_IN (libpthread)] (CENABLE): Likewise.
11979         [IS_IN (libpthread)] (CDISABLE): Likewise.
11980         [IS_IN (libc)] (CENABLE): Likewise.
11981         [IS_IN (libc)] (CENABLE): Likewise.
11982         [IS_IN (librt)] (CDISABLE): Likewise.
11983         [IS_IN (librt)] (CDISABLE): Likewise.
11984         [__ASSEMBLER__] (SINGLE_THREAD_P): Likewise.
11985         * sysdeps/unix/sysv/linux/hppa/sysdep-cancel.h (PSEUDO): Remove
11986         definition.
11987         (PSEUDO_END): Likewise.
11988         [IS_IN (libpthread)] (CENABLE): Likewise.
11989         [IS_IN (libpthread)] (CDISABLE): Likewise.
11990         [IS_IN (libc)] (CENABLE): Likewise.
11991         [IS_IN (libc)] (CENABLE): Likewise.
11992         [IS_IN (librt)] (CDISABLE): Likewise.
11993         [IS_IN (librt)] (CDISABLE): Likewise.
11994         [__ASSEMBLER__] (SINGLE_THREAD_P): Likewise.
11995         * sysdeps/unix/sysv/linux/i386/sysdep-cancel.h (PSEUDO): Remove
11996         definition.
11997         (PSEUDO_END): Likewise.
11998         [IS_IN (libpthread)] (CENABLE): Likewise.
11999         [IS_IN (libpthread)] (CDISABLE): Likewise.
12000         [IS_IN (libc)] (CENABLE): Likewise.
12001         [IS_IN (libc)] (CENABLE): Likewise.
12002         [IS_IN (librt)] (CDISABLE): Likewise.
12003         [IS_IN (librt)] (CDISABLE): Likewise.
12004         [__ASSEMBLER__] (SINGLE_THREAD_P): Likewise.
12005         * sysdeps/unix/sysv/linux/ia64/sysdep-cancel.h (PSEUDO): Remove
12006         definition.
12007         (PSEUDO_END): Likewise.
12008         [IS_IN (libpthread)] (CENABLE): Likewise.
12009         [IS_IN (libpthread)] (CDISABLE): Likewise.
12010         [IS_IN (libc)] (CENABLE): Likewise.
12011         [IS_IN (libc)] (CENABLE): Likewise.
12012         [IS_IN (librt)] (CDISABLE): Likewise.
12013         [IS_IN (librt)] (CDISABLE): Likewise.
12014         [__ASSEMBLER__] (SINGLE_THREAD_P): Likewise.
12015         * sysdeps/unix/sysv/linux/m68k/sysdep-cancel.h (PSEUDO): Remove
12016         definition.
12017         (PSEUDO_END): Likewise.
12018         [IS_IN (libpthread)] (CENABLE): Likewise.
12019         [IS_IN (libpthread)] (CDISABLE): Likewise.
12020         [IS_IN (libc)] (CENABLE): Likewise.
12021         [IS_IN (libc)] (CENABLE): Likewise.
12022         [IS_IN (librt)] (CDISABLE): Likewise.
12023         [IS_IN (librt)] (CDISABLE): Likewise.
12024         [__ASSEMBLER__] (SINGLE_THREAD_P): Likewise.
12025         * sysdeps/unix/sysv/linux/microblaze/sysdep-cancel.h (PSEUDO): Remove
12026         definition.
12027         (PSEUDO_END): Likewise.
12028         [IS_IN (libpthread)] (CENABLE): Likewise.
12029         [IS_IN (libpthread)] (CDISABLE): Likewise.
12030         [IS_IN (libc)] (CENABLE): Likewise.
12031         [IS_IN (libc)] (CENABLE): Likewise.
12032         [IS_IN (librt)] (CDISABLE): Likewise.
12033         [IS_IN (librt)] (CDISABLE): Likewise.
12034         [__ASSEMBLER__] (SINGLE_THREAD_P): Likewise.
12035         * sysdeps/unix/sysv/linux/mips/mips64/sysdep-cancel.h (PSEUDO):
12036         Remove definition.
12037         (PSEUDO_END): Likewise.
12038         [IS_IN (libpthread)] (CENABLE): Likewise.
12039         [IS_IN (libpthread)] (CDISABLE): Likewise.
12040         [IS_IN (libc)] (CENABLE): Likewise.
12041         [IS_IN (libc)] (CENABLE): Likewise.
12042         [IS_IN (librt)] (CDISABLE): Likewise.
12043         [IS_IN (librt)] (CDISABLE): Likewise.
12044         (SINGLE_THREAD_P): Likewise.
12045         * sysdeps/unix/sysv/linux/mips/sysdep-cancel.h (PSEUDO): Remove
12046         definition.
12047         (PSEUDO_END): Likewise.
12048         [IS_IN (libpthread)] (CENABLE): Likewise.
12049         [IS_IN (libpthread)] (CDISABLE): Likewise.
12050         [IS_IN (libc)] (CENABLE): Likewise.
12051         [IS_IN (libc)] (CENABLE): Likewise.
12052         [IS_IN (librt)] (CDISABLE): Likewise.
12053         [IS_IN (librt)] (CDISABLE): Likewise.
12054         [__ASSEMBLER__] (SINGLE_THREAD_P): Likewise.
12055         * sysdeps/unix/sysv/linux/nios2/sysdep-cancel.h (PSEUDO): Remove
12056         definition.
12057         (PSEUDO_END): Likewise.
12058         [IS_IN (libpthread)] (CENABLE): Likewise.
12059         [IS_IN (libpthread)] (CDISABLE): Likewise.
12060         [IS_IN (libc)] (CENABLE): Likewise.
12061         [IS_IN (libc)] (CENABLE): Likewise.
12062         [IS_IN (librt)] (CDISABLE): Likewise.
12063         [IS_IN (librt)] (CDISABLE): Likewise.
12064         [__ASSEMBLER__] (SINGLE_THREAD_P): Likewise.
12065         * sysdeps/sysv/linux/powerpc/powerpc32/sysdep-cancel.h: Remove file.
12066         * sysdeps/sysv/linux/powerpc/powerpc64/sysdep-cancel.h: Likewise.
12067         * sysdeps/unix/sysv/linux/powerpc/sysdep-cancel.h: New file.
12068         * sysdeps/unix/sysv/linux/s390/s390-32/sysdep-cancel.h (PSEUDO): Remove
12069         definition.
12070         (PSEUDO_END): Likewise.
12071         [IS_IN (libpthread)] (CENABLE): Likewise.
12072         [IS_IN (libpthread)] (CDISABLE): Likewise.
12073         [IS_IN (libc)] (CENABLE): Likewise.
12074         [IS_IN (libc)] (CENABLE): Likewise.
12075         [IS_IN (librt)] (CDISABLE): Likewise.
12076         [IS_IN (librt)] (CDISABLE): Likewise.
12077         [__ASSEMBLER__] (SINGLE_THREAD_P): Likewise.
12078         * sysdeps/unix/sysv/linux/s390/s390-64/sysdep-cancel.h (PSEUDO): Remove
12079         definition.
12080         (PSEUDO_END): Likewise.
12081         [IS_IN (libpthread)] (CENABLE): Likewise.
12082         [IS_IN (libpthread)] (CDISABLE): Likewise.
12083         [IS_IN (libc)] (CENABLE): Likewise.
12084         [IS_IN (libc)] (CENABLE): Likewise.
12085         [IS_IN (librt)] (CDISABLE): Likewise.
12086         [IS_IN (librt)] (CDISABLE): Likewise.
12087         [__ASSEMBLER__] (SINGLE_THREAD_P): Likewise.
12088         * sysdeps/unix/sysv/linux/sh/sysdep-cancel.h (PSEUDO): Remove
12089         definition.
12090         (PSEUDO_END): Likewise.
12091         [IS_IN (libpthread)] (CENABLE): Likewise.
12092         [IS_IN (libpthread)] (CDISABLE): Likewise.
12093         [IS_IN (libc)] (CENABLE): Likewise.
12094         [IS_IN (libc)] (CENABLE): Likewise.
12095         [IS_IN (librt)] (CDISABLE): Likewise.
12096         [IS_IN (librt)] (CDISABLE): Likewise.
12097         [__ASSEMBLER__] (SINGLE_THREAD_P): Likewise.
12098         * sysdeps/unix/sysv/linux/sparc/sparc32/sysdep-cancel.h: Remove file.
12099         * sysdeps/unix/sysv/linux/sparc/sparc64/sysdep-cancel.h: Likewise.
12100         * sysdeps/unix/sysv/linux/sparc/sysdep-cancel.h: New file.
12101         * sysdeps/unix/sysv/linux/tile/sysdep-cancel.h (PSEUDO): Remove
12102         definition.
12103         (PSEUDO_END): Likewise.
12104         [IS_IN (libpthread)] (CENABLE): Likewise.
12105         [IS_IN (libpthread)] (CDISABLE): Likewise.
12106         [IS_IN (libc)] (CENABLE): Likewise.
12107         [IS_IN (libc)] (CENABLE): Likewise.
12108         [IS_IN (librt)] (CDISABLE): Likewise.
12109         [IS_IN (librt)] (CDISABLE): Likewise.
12110         [__ASSEMBLER__] (SINGLE_THREAD_P): Likewise.
12111         * sysdeps/unix/sysv/linux/x86_64/sysdep-cancel.h (PSEUDO): Remove
12112         definition.
12113         (PSEUDO_END): Likewise.
12114         [IS_IN (libpthread)] (CENABLE): Likewise.
12115         [IS_IN (libpthread)] (CDISABLE): Likewise.
12116         [IS_IN (libc)] (CENABLE): Likewise.
12117         [IS_IN (libc)] (CENABLE): Likewise.
12118         [IS_IN (librt)] (CDISABLE): Likewise.
12119         [IS_IN (librt)] (CDISABLE): Likewise.
12120         [__ASSEMBLER__] (SINGLE_THREAD_P): Likewise.
12122 2017-08-24  Szabolcs Nagy  <szabolcs.nagy@arm.com>
12124         * sysdeps/ieee754/dbl-64/Makefile: Don't override CFLAGS.
12126 2017-08-23  H.J. Lu  <hongjiu.lu@intel.com>
12128         * sysdeps/x86_64/fpu/libm-test-ulps: Regenerated.
12130 2017-08-23  H.J. Lu  <hongjiu.lu@intel.com>
12132         [BZ #21982]
12133         * string/stratcliff.c (do_test): Declare size, nchars, inner,
12134         middle and outer with size_t instead of int.  Repleace %d and
12135         %Zd with %zu in printf.  Update "MAX (0, nchars - 128)" and
12136         "MAX (outer, nchars - 64)" to support unsigned outer and
12137         nchars.  Also exit loop when outer == 0.
12139 2017-08-23  Adhemerval Zanella  <adhemerval.zanella@linaro.org>
12141         * include/fcntl.h (__fcntl_nocancel): Remove definition.
12142         * include/signal.h (__sigsuspend_nocancel): Likewise.
12143         * include/time.h (__nanosleep_nocancel): Likewise.
12144         * sysdeps/generic/not-cancel.h (__fcntl_nocancel): New macro.
12145         * login/utmp_file.c: Include non cancellable syscall header.
12146         * sysdeps/unix/sysv/linux/not-cancel.h (__fcntl_nocancel): New
12147         prototype.
12149 2017-08-23  H.J. Lu  <hongjiu.lu@intel.com>
12151         * sysdeps/x86_64/fpu/svml_d_sincos8_core.S: Replace AVX512F
12152         .byte sequences with AVX512F instructions.
12153         * sysdeps/x86_64/fpu/svml_d_wrapper_impl.h: Likewise.
12154         * sysdeps/x86_64/fpu/svml_s_sincosf16_core.S: Likewise.
12155         * sysdeps/x86_64/fpu/svml_s_wrapper_impl.h: Likewise.
12156         * sysdeps/x86_64/fpu/multiarch/svml_d_sincos8_core_avx512.S:
12157         Likewise.
12158         * sysdeps/x86_64/fpu/multiarch/svml_s_sincosf16_core_avx512.S:
12159         Likewise.
12161 2017-08-22  Szabolcs Nagy  <szabolcs.nagy@arm.com>
12162             Steve Ellcey  <sellcey@cavium.com>
12164         * sysdeps/aarch64/dl-tlsdesc.S (_dl_tlsdesc_dynamic):
12165         Use PTR_REG macro in cmp instruction.
12167 2017-08-22  Gabriel F. T. Gomes  <gftg@linux.vnet.ibm.com>
12169         * include/libc-symbols.h: [!defined HAVE_GCC_IFUNC] (__ifunc):
12170         Change the return type of the ifunc resolver to match the return
12171         type of the target function.
12173 2017-08-22  Adhemerval Zanella  <adhemerval.zanella@linaro.org>
12175         * sysdeps/unix/sysv/linux/x86_64/syscalls.list (pread64): Remove.
12176         (preadv64): Likewise.
12177         (pwrite64(: Likewise.
12178         (pwritev64): Likewise.
12180         * sysdeps/unix/sysv/linux/x86_64/sysdep.h
12181         (INTERNAL_SYSCALL_NCS_TYPES): Remove define.
12182         (LOAD_ARGS_0): Likewise.
12183         (LOAD_ARGS_1): Likewise.
12184         (LOAD_ARGS_2): Likewise.
12185         (LOAD_ARGS_3): Likewise.
12186         (LOAD_ARGS_4): Likewise.
12187         (LOAD_ARGS_5): Likewise.
12188         (LOAD_ARGS_6): Likewise.
12189         (LOAD_REGS_0): Likewise.
12190         (LOAD_REGS_1): Likewise.
12191         (LOAD_REGS_2): Likewise.
12192         (LOAD_REGS_3): Likewise.
12193         (LOAD_REGS_4): Likewise.
12194         (LOAD_REGS_5): Likewise.
12195         (LOAD_REGS_6): Likewise.
12196         (ASM_ARGS_0): Likewise.
12197         (ASM_ARGS_1): Likewise.
12198         (ASM_ARGS_2): Likewise.
12199         (ASM_ARGS_3): Likewise.
12200         (ASM_ARGS_4): Likewise.
12201         (ASM_ARGS_5): Likewise.
12202         (ASM_ARGS_6): Likewise.
12203         (LOAD_ARGS_TYPES_1): Likewise.
12204         (LOAD_ARGS_TYPES_2): Likewise.
12205         (LOAD_ARGS_TYPES_3): Likewise.
12206         (LOAD_ARGS_TYPES_4): Likewise.
12207         (LOAD_ARGS_TYPES_5): Likewise.
12208         (LOAD_ARGS_TYPES_6): Likewise.
12209         (LOAD_REGS_TYPES_1): Likewise.
12210         (LOAD_REGS_TYPES_2): Likewise.
12211         (LOAD_REGS_TYPES_3): Likewise.
12212         (LOAD_REGS_TYPES_4): Likewise.
12213         (LOAD_REGS_TYPES_5): Likewise.
12214         (LOAD_REGS_TYPES_6): Likewise.
12215         (TYPEFY): New define.
12216         (ARGIFY): Likewise.
12217         (internal_syscall0): Likewise.
12218         (internal_syscall1): Likewise.
12219         (internal_syscall2): Likewise.
12220         (internal_syscall3): Likewise.
12221         (internal_syscall4): Likewise.
12222         (internal_syscall5): Likewise.
12223         (internal_syscall6): Likewise.
12224         * sysdeps/unix/sysv/linux/x86_64/x32/times.c
12225         (INTERNAL_SYSCALL_NCS): Remove define.
12226         (internal_syscall1): Add define.
12228 2017-08-22  Gabriel F. T. Gomes  <gftg@linux.vnet.ibm.com>
12230         * math/w_remainder_compat.c: Remove duplicate inclusion of
12231         math-svid-compat.h.
12232         * math/w_remainderf_compat.c: Likewise.
12233         * math/w_remainderl_compat.c: Likewise.
12235 2017-08-22  Gabriel F. T. Gomes  <gftg@linux.vnet.ibm.com>
12237         * sysdeps/powerpc/fpu/libm-test-ulps: Update.
12239 2017-08-22  Joseph Myers  <joseph@codesourcery.com>
12241         [BZ #21684]
12242         * math/tgmath.h (__floating_type): Simplify definitions.
12243         (__real_integer_type): New macro.
12244         (__complex_integer_type): Likewise.
12245         (__expr_is_real): Likewise.
12246         (__tgmath_real_type_sub): Update comment to describe handling of
12247         complex types.
12248         (__tgmath_complex_type_sub): New macro.
12249         (__tgmath_complex_type): Likewise.
12250         [__HAVE_FLOAT128 && __GLIBC_USE (IEC_60559_TYPES_EXT)]
12251         (__TGMATH_CF128): Use __expr_is_real.
12252         (__TGMATH_UNARY_REAL_IMAG): Use __tgmath_complex_type and
12253         __expr_is_real.
12254         (__TGMATH_BINARY_REAL_IMAG): Likewise.
12255         (__TGMATH_UNARY_REAL_IMAG_RET_REAL): Use __expr_is_real.
12256         * math/gen-tgmath-tests.py (Type.create_type): Create complex
12257         integer types.
12259 2017-08-22  Adhemerval Zanella  <adhemerval.zanella@linaro.org>
12261         * sysdeps/generic/not-cancel.h (sigsuspend_not_cancel): Remove
12262         macro.
12263         * sysdeps/mach/hurd/sigsuspend.c (sigsuspend_not_cancel): Remove
12264         alias.
12265         * sysdeps/unix/sysv/linux/not-cancel.h (sigsuspend_not_cancel):
12266         Likewise.
12268         * nptl/pthread_mutex_timedlock.c (__pthread_mutex_timedlock): Replace
12269         nanosleep_not_cancel with __nanosleep_nocancel.
12270         * sysdeps/generic/not-cancel.h (nanosleep_not_cancel): Remove macro.
12271         (__nanosleep_nocancel): New macro.
12272         * sysdeps/unix/sysv/linux/nanosleep.c (__nanosleep_nocancel): New
12273         function.
12274         * sysdeps/unix/sysv/linux/not-cancel.h (nanosleep_not_cancel): Remove
12275         macro.
12276         (__nanosleep_nocancel): New prototype.
12278         * nptl/pthread_mutex_lock.c (__pthread_mutex_lock_full): Replace
12279         pause_not_cancel with __pause_nocancel.
12280         * sysdeps/generic/not-cancel.h (pause_not_cancel): Remove macro.
12281         (__pause_nocancel): New macro.
12282         * sysdeps/unix/sysv/linux/not-cancel.h (pause_not_cancel): Remove
12283         macro.
12284         (__pause_nocancel): New prototype.
12285         * sysdeps/unix/sysv/linux/pause.c (__pause_nocancel): New function.
12287 2017-08-22  Martin Sebor  <msebor@redhat.com>
12289         * include/libc-symbols.h (__ifunc_resolver): Declare resolver
12290         to return a pointer to the same type as the target function.
12292 2017-08-22  H.J. Lu  <hongjiu.lu@intel.com>
12294         [BZ #18822]
12295         [BZ #21986]
12296         * include/printf.h (__printf_fphex): Add attribute_hidden.
12297         (__guess_grouping): New prototype.
12298         * stdio-common/printf_fp.c (__guess_grouping): Removed.
12299         * stdio-common/reg-printf.c (__register_printf_specifier): Add
12300         libc_hidden_proto and libc_hidden_def.
12301         * stdlib/strfmon_l.c (__guess_grouping): Removed.
12302         (__vstrfmon_l): Remove the third argument passed to
12303         __guess_grouping.
12305 2017-08-22  Gabriel F. T. Gomes  <gftg@linux.vnet.ibm.com>
12307         * math/math.h [defined __cplusplus] (issignaling): Provide a C++
12308         definition for issignaling that does not rely on __MATH_TG,
12309         since __MATH_TG uses __builtin_types_compatible_p, which is only
12310         available in C mode.
12311         (CFLAGS-test-math-issignaling.cc): New variable.
12312         * math/Makefile [CXX] (tests): Add test-math-issignaling.
12313         * math/test-math-issignaling.cc: New test for C++ implementation
12314         of type-generic issignaling.
12315         * sysdeps/powerpc/powerpc64le/Makefile [subdir == math]
12316         (CXXFLAGS-test-math-issignaling.cc): Add -mfloat128 to the build
12317         options of test-math-issignaling on powerpc64le.
12319 2017-08-22  H.J. Lu  <hongjiu.lu@intel.com>
12321         * include/libc-symbols.h (__hidden_proto_hiddenattr): New for
12322         building libc.a.
12323         (hidden_proto): Likewise.
12324         (hidden_tls_proto): Likewise.
12325         (__hidden_proto): Likewise.
12327 2017-08-22  Florian Weimer  <fweimer@redhat.com>
12329         math: Statically link tests of internal functionality.
12330         * math/Makefile (tests): Remove atest-exp, atest-sincos,
12331         atest-exp2.
12332         (tests-static): Add atest-exp, atest-sincos, atest-exp2.
12333         (gmp-objs): Remove assignment.
12334         (atest-exp, atest-sincos, atest-exp2): Remove targets.
12336 2017-08-22  Joseph Myers  <joseph@codesourcery.com>
12338         [BZ #21987]
12339         * sysdeps/unix/sysv/linux/sparc/bits/long-double.h: Remove file
12340         and copy to ...
12341         * sysdeps/unix/sysv/linux/sparc/sparc32/bits/long-double.h:
12342         ... here.
12343         * sysdeps/unix/sysv/linux/sparc/sparc64/bits/long-double.h:
12344         ... and here.
12346         * assert/Makefile [$(have-cxx-thread_local)]: Move conditional
12347         variable definitions above inclusion of ../Rules.
12349 2017-08-21  Joseph Myers  <joseph@codesourcery.com>
12351         * sysdeps/ieee754/k_standard.c (__kernel_standard): Add default
12352         case calling __builtin_unreachable.
12354 2017-08-21  Adhemerval Zanella  <adhemerval.zanella@linaro.org>
12356         * libio/ioopen.c (_IO_waitpid): Replace waitpid_not_cancel with
12357         __waitpid_nocancel.
12358         * sysdeps/generic/not-cancel.h (waitpid_not_cancel): Remove macro.
12359         (__waitpid_nocancel): New macro.
12360         * sysdeps/unix/sysv/linux/not-cancel.h (waitpid_not_cancel): Remove
12361         macro.
12362         (__waitpid_nocancel): Replace macro with a function.
12363         * sysdeps/unix/sysv/linux/waitpid.c (__waitpid_nocancel): New
12364         function.
12366         * login/utmp_file.c (timeout_handler): Replace fcntl_not_cancel with
12367         __fcntl_nocancel.
12368         * sysdeps/generic/not-cancel.h (fcntl_not_cancel): Remove macro.
12369         * sysdeps/unix/sysv/linux/not-cancel.h (fcntl_not_cancel): Likewise.
12371         * gmon/gmon.c (write_hist): Replace writev_not_cancel_no_status with
12372         __writev_nocancel_nostatus.
12373         (write_call_graph): Likewise.
12374         (write_bb_counts): Likewise.
12375         * resolv/herror.c (herror): Likewise.
12376         * sysdeps/generic/not-cancel.h (writev_not_cancel_no_status): Remove
12377         macro.
12378         (__writev_nocancel_nostatus): New macro.
12379         * sysdeps/unix/sysv/linux/not-cancel.h (writev_not_cancel_no_status):
12380         Remove macro.
12381         (__writev_nocancel_nostatus): New function.
12383 2017-08-21  Joseph Myers  <joseph@codesourcery.com>
12385         Revert:
12386         2017-08-21  H.J. Lu  <hongjiu.lu@intel.com>
12388         * include/libc-symbols.h (__hidden_proto_hiddenattr): New for
12389         building libc.a.
12390         (hidden_proto): Likewise.
12391         (hidden_tls_proto): Likewise.
12392         (__hidden_proto): Likewise.
12394         [BZ #21973]
12395         * sysdeps/sparc/sparc32/fpu/w_sqrt_compat.S: Remove file.
12396         * sysdeps/sparc/sparc32/fpu/w_sqrtf_compat.S: Likewise.
12397         * sysdeps/sparc/sparc32/sparcv9/fpu/multiarch/w_sqrt_compat-vis3.S:
12398         Likewise.
12399         * sysdeps/sparc/sparc32/sparcv9/fpu/multiarch/w_sqrt_compat.S:
12400         Likewise.
12401         * sysdeps/sparc/sparc32/sparcv9/fpu/multiarch/w_sqrtf_compat-vis3.S:
12402         Likewise.
12403         * sysdeps/sparc/sparc32/sparcv9/fpu/multiarch/w_sqrtf_compat.S:
12404         Likewise.
12405         * sysdeps/sparc/sparc32/sparcv9/fpu/w_sqrt_compat.S : Likewise.
12406         * sysdeps/sparc/sparc32/sparcv9/fpu/w_sqrtf_compat.S: Likewise.
12407         * sysdeps/sparc/sparc64/fpu/w_sqrt_compat.S: Likewise.
12408         * sysdeps/sparc/sparc64/fpu/w_sqrtf_compat.S: Likewise.
12409         * sysdeps/unix/sysv/linux/sparc/sparc32/libm.abilist: Add
12410         GLIBC_2.0 sqrtl symbol.
12412         * math/math.h [__USE_MISC] (_LIB_VERSION_TYPE): Remove.
12413         [__USE_MISC] (_LIB_VERSION): Likewise.
12414         [__USE_MISC] (struct exception): Likewise.
12415         [__USE_MISC] (matherr): Likewise.
12416         [__USE_MISC] (DOMAIN): Likewise.
12417         [__USE_MISC] (SING): Likewise.
12418         [__USE_MISC] (OVERFLOW): Likewise.
12419         [__USE_MISC] (UNDERFLOW): Likewise.
12420         [__USE_MISC] (TLOSS): Likewise.
12421         [__USE_MISC] (PLOSS): Likewise.
12422         [__USE_MISC] (HUGE): Likewise.
12423         [__USE_XOPEN] (MAXFLOAT): Define even if [__USE_MISC].
12424         * math/math-svid-compat.h: New file.
12425         * conform/linknamespace.pl (@whitelist): Remove matherr, matherrf
12426         and matherrl.
12427         * include/math.h [!_ISOMAC] (__matherr): Remove.
12428         * manual/arith.texi (FP Exceptions): Do not document matherr.
12429         * math/Makefile (tests): Change test-matherr to test-matherr-3.
12430         (tests-internal): New variable.
12431         (install-lib): Do not add libieee.a.
12432         (non-lib.a): Likewise.
12433         (extra-objs): Do not add libieee.a and ieee-math.o.
12434         (CPPFLAGS-s_lib_version.c): Remove variable.
12435         ($(objpfx)libieee.a): Remove rule.
12436         ($(addprefix $(objpfx), $(tests-internal)): Depend on $(libm).
12437         * math/ieee-math.c: Remove.
12438         * math/libm-test-support.c (matherr): Remove.
12439         * math/test-matherr.c: Use <support/test-driver.c>.  Add copyright
12440         and license notices.  Include <math-svid-compat.h> and
12441         <shlib-compat.h>.
12442         (matherr): Undefine as macro.  Use compat_symbol_reference.
12443         (_LIB_VERSION): Likewise.
12444         * math/test-matherr-2.c: New file.
12445         * math/test-matherr-3.c: Likewise.
12446         * sysdeps/generic/math_private.h (__kernel_standard): Remove
12447         declaration.
12448         (__kernel_standard_f): Likewise.
12449         (__kernel_standard_l): Likewise.
12450         * sysdeps/ieee754/s_lib_version.c: Do not include <math.h> or
12451         <math_private.h>.  Include <math-svid-compat.h>.
12452         (_LIB_VERSION): Undefine as macro.
12453         (_LIB_VERSION_INTERNAL): Always initialize to _POSIX_.  Define
12454         only if [LIBM_SVID_COMPAT || !defined SHARED].  If
12455         [LIBM_SVID_COMPAT], use compat_symbol.
12456         * sysdeps/ieee754/s_matherr.c: Do not include <math.h> or
12457         <math_private.h>.  Include <math-svid-compat.h>.
12458         (matherr): Undefine as macro.
12459         (__matherr): Define only if [LIBM_SVID_COMPAT].  Use
12460         compat_symbol.
12461         * sysdeps/ia64/fpu/libm_error.c: Include <math-svid-compat.h>.
12462         [_LIBC && LIBM_SVID_COMPAT] (matherrf): Use
12463         compat_symbol_reference.
12464         [_LIBC && LIBM_SVID_COMPAT] (matherrl): Likewise.
12465         [_LIBC && !LIBM_SVID_COMPAT] (matherrf): Define as macro.
12466         [_LIBC && !LIBM_SVID_COMPAT] (matherrl): Likewise.
12467         * sysdeps/ia64/fpu/libm_support.h: Include <math-svid-compat.h>.
12468         (MATHERR_D): Remove declaration.
12469         [!_LIBC] (_LIB_VERSION_TYPE): Likewise
12470         [!LIBM_BUILD] (_LIB_VERSIONIMF): Likewise.
12471         [LIBM_BUILD] (pmatherrf): Likewise.
12472         [LIBM_BUILD] (pmatherr): Likewise.
12473         [LIBM_BUILD] (pmatherrl): Likewise.
12474         (DOMAIN): Likewise.
12475         (SING): Likewise.
12476         (OVERFLOW): Likewise.
12477         (UNDERFLOW): Likewise.
12478         (TLOSS): Likewise.
12479         (PLOSS): Likewise.
12480         * sysdeps/ia64/fpu/s_matherrf.c: Include <math-svid-compat.h>.
12481         (__matherrf): Define only if [LIBM_SVID_COMPAT].  Use
12482         compat_symbol.
12483         * sysdeps/ia64/fpu/s_matherrl.c: Include <math-svid-compat.h>.
12484         (__matherrl): Define only if [LIBM_SVID_COMPAT].  Use
12485         compat_symbol.
12486         * math/lgamma-compat.h: Include <math-svid-compat.h>.
12487         * math/w_acos_compat.c: Likewise.
12488         * math/w_acosf_compat.c: Likewise.
12489         * math/w_acosh_compat.c: Likewise.
12490         * math/w_acoshf_compat.c: Likewise.
12491         * math/w_acoshl_compat.c: Likewise.
12492         * math/w_acosl_compat.c: Likewise.
12493         * math/w_asin_compat.c: Likewise.
12494         * math/w_asinf_compat.c: Likewise.
12495         * math/w_asinl_compat.c: Likewise.
12496         * math/w_atan2_compat.c: Likewise.
12497         * math/w_atan2f_compat.c: Likewise.
12498         * math/w_atan2l_compat.c: Likewise.
12499         * math/w_atanh_compat.c: Likewise.
12500         * math/w_atanhf_compat.c: Likewise.
12501         * math/w_atanhl_compat.c: Likewise.
12502         * math/w_cosh_compat.c: Likewise.
12503         * math/w_coshf_compat.c: Likewise.
12504         * math/w_coshl_compat.c: Likewise.
12505         * math/w_exp10_compat.c: Likewise.
12506         * math/w_exp10f_compat.c: Likewise.
12507         * math/w_exp10l_compat.c: Likewise.
12508         * math/w_exp2_compat.c: Likewise.
12509         * math/w_exp2f_compat.c: Likewise.
12510         * math/w_exp2l_compat.c: Likewise.
12511         * math/w_fmod_compat.c: Likewise.
12512         * math/w_fmodf_compat.c: Likewise.
12513         * math/w_fmodl_compat.c: Likewise.
12514         * math/w_hypot_compat.c: Likewise.
12515         * math/w_hypotf_compat.c: Likewise.
12516         * math/w_hypotl_compat.c: Likewise.
12517         * math/w_j0_compat.c: Likewise.
12518         * math/w_j0f_compat.c: Likewise.
12519         * math/w_j0l_compat.c: Likewise.
12520         * math/w_j1_compat.c: Likewise.
12521         * math/w_j1f_compat.c: Likewise.
12522         * math/w_j1l_compat.c: Likewise.
12523         * math/w_jn_compat.c: Likewise.
12524         * math/w_jnf_compat.c: Likewise.
12525         * math/w_jnl_compat.c: Likewise.
12526         * math/w_lgamma_main.c: Likewise.
12527         * math/w_lgamma_r_compat.c: Likewise.
12528         * math/w_lgammaf_main.c: Likewise.
12529         * math/w_lgammaf_r_compat.c: Likewise.
12530         * math/w_lgammal_main.c: Likewise.
12531         * math/w_lgammal_r_compat.c: Likewise.
12532         * math/w_log10_compat.c: Likewise.
12533         * math/w_log10f_compat.c: Likewise.
12534         * math/w_log10l_compat.c: Likewise.
12535         * math/w_log2_compat.c: Likewise.
12536         * math/w_log2f_compat.c: Likewise.
12537         * math/w_log2l_compat.c: Likewise.
12538         * math/w_log_compat.c: Likewise.
12539         * math/w_logf_compat.c: Likewise.
12540         * math/w_logl_compat.c: Likewise.
12541         * math/w_pow_compat.c: Likewise.
12542         * math/w_powf_compat.c: Likewise.
12543         * math/w_powl_compat.c: Likewise.
12544         * math/w_remainder_compat.c: Likewise.
12545         * math/w_remainderf_compat.c: Likewise.
12546         * math/w_remainderl_compat.c: Likewise.
12547         * math/w_scalb_compat.c: Likewise.
12548         * math/w_scalbf_compat.c: Likewise.
12549         * math/w_scalbl_compat.c: Likewise.
12550         * math/w_sinh_compat.c: Likewise.
12551         * math/w_sinhf_compat.c: Likewise.
12552         * math/w_sinhl_compat.c: Likewise.
12553         * math/w_sqrt_compat.c: Likewise.
12554         * math/w_sqrtf_compat.c: Likewise.
12555         * math/w_sqrtl_compat.c: Likewise.
12556         * math/w_tgamma_compat.c: Likewise.
12557         * math/w_tgammaf_compat.c: Likewise.
12558         * math/w_tgammal_compat.c: Likewise.
12559         * sysdeps/ieee754/dbl-64/w_exp_compat.c: Likewise.
12560         * sysdeps/ieee754/flt-32/w_expf_compat.c: Likewise.
12561         * sysdeps/ieee754/k_standard.c: Likewise.
12562         * sysdeps/ieee754/k_standardf.c: Likewise.
12563         * sysdeps/ieee754/k_standardl.c: Likewise.
12564         * sysdeps/ieee754/ldbl-128/w_expl_compat.c: Likewise.
12565         * sysdeps/ieee754/ldbl-128ibm/w_expl_compat.c: Likewise.
12566         * sysdeps/ieee754/ldbl-96/w_expl_compat.c: Likewise.
12567         * sysdeps/powerpc/powerpc32/power4/fpu/w_sqrt_compat.S: Likewise.
12568         * sysdeps/powerpc/powerpc32/power4/fpu/w_sqrtf_compat.S: Likewise.
12569         * sysdeps/powerpc/powerpc32/power5/fpu/w_sqrt_compat.S: Likewise.
12570         * sysdeps/powerpc/powerpc32/power5/fpu/w_sqrtf_compat.S: Likewise.
12571         * sysdeps/sparc/sparc32/fpu/w_sqrt_compat.S: Likewise.
12572         * sysdeps/sparc/sparc32/fpu/w_sqrtf_compat.S: Likewise.
12573         * sysdeps/sparc/sparc32/sparcv9/fpu/multiarch/w_sqrt_compat-vis3.S:
12574         Likewise.
12575         * sysdeps/sparc/sparc32/sparcv9/fpu/multiarch/w_sqrtf_compat-vis3.S:
12576         Likewise.
12577         * sysdeps/sparc/sparc32/sparcv9/fpu/w_sqrt_compat.S: Likewise.
12578         * sysdeps/sparc/sparc32/sparcv9/fpu/w_sqrtf_compat.S: Likewise.
12579         * sysdeps/sparc/sparc64/fpu/w_sqrt_compat.S: Likewise.
12580         * sysdeps/sparc/sparc64/fpu/w_sqrtf_compat.S: Likewise.
12582 2017-08-21  Florian Weimer  <fweimer@redhat.com>
12584         [BZ #21864]
12585         Do not compile benchmark helper objects with -DMODULE_NAME=libc.
12586         * benchtests/Makefile (others-extras): Set to $(bench-extra-objs).
12587         Move before inclusion of ../Rules.
12589 2017-08-21  Florian Weimer  <fweimer@redhat.com>
12591         [BZ #21972]
12592         * assert/assert.h (assert): Use static_cast (bool) for C++.
12593         Use the ternary operator in the warning branch for GNU C.
12594         * assert/Makefile (tests): Add tst-assert-c++, tst-assert-g++.
12595         (CFLAGS-tst-assert-c++.o): Compile in C++11 mode.
12596         (CFLAGS-tst-assert-g++.o): Compile in GnU C++11 mode.
12597         (LDLIBS-tst-assert-c++, LDLIBS-tst-assert-g++): Link with libstdc++.
12598         * assert/tst-assert-c++.cc, assert/tst-assert-g++.cc: New files.
12600 2017-08-21  H.J. Lu  <hongjiu.lu@intel.com>
12602         [BZ #18822]
12603         * sysdeps/unix/sysv/linux/x86_64/init-first.c
12604         (__syscall_clock_gettime): Add attribute_hidden.
12605         * sysdeps/unix/sysv/linux/x86_64/makecontext.c
12606         (__start_context): Likewise.
12608 2017-08-21  H.J. Lu  <hongjiu.lu@intel.com>
12610         * include/libc-symbols.h (__hidden_proto_hiddenattr): New for
12611         building libc.a.
12612         (hidden_proto): Likewise.
12613         (hidden_tls_proto): Likewise.
12614         (__hidden_proto): Likewise.
12616 2017-08-21  H.J. Lu  <hongjiu.lu@intel.com>
12618         * include/libc-symbols.h (attribute_hidden): Enable hidden
12619         visibility in libc.a compiled with PIE.
12621 2017-08-21  H.J. Lu  <hongjiu.lu@intel.com>
12623         [BZ #18822]
12624         * sysdeps/unix/sysv/linux/x86/libc-vdso.h (VDSO_SYMBOL(getcpu)):
12625         Add attribute_hidden.
12627 2017-08-21  H.J. Lu  <hongjiu.lu@intel.com>
12629         [BZ #21864]
12630         * Makerules (all-nonlib): Add $(others-extras).
12631         * catgets/Makefile (others-extras): New.
12632         * elf/Makefile (others-extras): Likewise.
12633         * nss/Makefile (others-extras): Likewise.
12635 2017-08-21  H.J. Lu  <hongjiu.lu@intel.com>
12637         [BZ #18822]
12638         * csu/libc-start.c (__libc_multiple_libcs): Removed.
12639         * elf/dl-open.c: Include <libc-internal.h>.
12640         (__libc_multiple_libcs): Removed.
12641         * elf/dl-sysdep.c: Include <libc-internal.h> instead of
12642         <hp-timing.h>.
12643         * include/libc-internal.h (__libc_multiple_libcs): New.
12644         * misc/sbrk.c: Include <libc-internal.h>.
12645         (__libc_multiple_libcs): Removed.
12647 2017-08-21  H.J. Lu  <hongjiu.lu@intel.com>
12649         [BZ #18822]
12650         * grp/initgroups.c (__nss_group_database): Removed.
12651         (__nss_initgroups_database): Likewise.
12652         * nscd/gai.c (__nss_hosts_database): Likewise.
12653         * nss/XXX-lookup.c (DATABASE_NAME_SYMBOL): Likewise.
12654         * posix/tst-rfc3484-2.c (__nss_hosts_database): Likewise.
12655         * posix/tst-rfc3484-3.c (__nss_hosts_database): Likewise.
12656         * posix/tst-rfc3484.c (__nss_hosts_database): Likewise.
12657         * sysdeps/posix/getaddrinfo.c (__nss_hosts_database): Likewise.
12658         * nss/getXXent.c (INTERNAL (REENTRANT_GETNAME)): Add
12659         attribute_hidden.
12660         * nss/nsswitch.c (__nss_database_custom): Define only if
12661         USE_NSCD is defined.
12662         (__nss_configure_lookup): Use __nss_database_custom only if
12663         USE_NSCD is defined.
12664         * nss/nsswitch.h (__nss_database_custom): Declare only if
12665         USE_NSCD is defined.  Add attribute_hidden.
12666         (__nss_setent): Add attribute_hidden.
12667         (__nss_endent): Likewise.
12668         (__nss_getent_r): Likewise.
12669         (__nss_getent): Likewise.
12670         (DEFINE_DATABASE): Declare __nss_##arg##_database.
12672 2017-08-20  H.J. Lu  <hongjiu.lu@intel.com>
12674         [BZ #18822]
12675         * sysdeps/unix/sysv/linux/i386/glob64.c (__old_glob64): Add
12676         libc_hidden_proto and libc_hidden_def.
12678 2017-08-20  H.J. Lu  <hongjiu.lu@intel.com>
12680         [BZ #18822]
12681         * sysdeps/unix/sysv/linux/i386/olddirent.h (__old_readdir64):
12682         Add libc_hidden_proto.
12683         * sysdeps/unix/sysv/linux/i386/readdir64.c (__old_readdir64):
12684         Add libc_hidden_def.
12686 2017-08-20  H.J. Lu  <hongjiu.lu@intel.com>
12688         [BZ #21974]
12689         * gmon/Makefile (routines): Remove bb_init_func and
12690         bb_exit_func.
12691         (elide-routines.os): Removed.
12692         * gmon/bb_exit_func.c: Likewise.
12693         * gmon/bb_init_func.c: Likewise.
12694         * include/sys/gmon.h (__bb): Likewise.
12695         (__bb_init_func): Likewise.
12696         (__bb_exit_func): Likewise.
12697         * sysdeps/alpha/bb_init_func.S: Likewise.
12699 2017-08-20  H.J. Lu  <hongjiu.lu@intel.com>
12701         * debug/longjmp_chk.c (____longjmp_chk): Moved to ...
12702         * include/setjmp.h (____longjmp_chk): Here.  Add
12703         attribute_hidden.
12705 2017-08-19  H.J. Lu  <hongjiu.lu@intel.com>
12707         [BZ #18822]
12708         * sysdeps/x86_64/multiarch/strcspn-c.c (STRCSPN_SSE2): Add
12709         attribute_hidden.
12710         (__strspn_sse2): Likewise.
12712 2017-08-18  Adhemerval Zanella  <adhemerval.zanella@linaro.org>
12714         * sysdeps/generic/not-cancel.h (close_not_cancel): Remove macro.
12715         (close_not_cancel_no_status): Likewise.
12716         (__close_nocancel): New macro.
12717         (__close_nocancel_nostatus): Likewise.
12718         * sysdeps/unix/sysv/linux/not-cancel.h (__close_nocancel): Remove
12719         macro.
12720         (close_not_cancel): Likewise.
12721         (close_not_cancel_no_status): Likewise.
12722         (__close_nocancel): New prototype.
12723         (__close_nocancel_nostatus): New function.
12724         * sysdeps/unix/sysv/linux/close.c (__close_nocancel): New function.
12725         * catgets/open_catalog.c (__open_catalog): Replace
12726         close_not_cancel{_no_status) with __close_nocancel{_nostatus}.
12727         * gmon/gmon.c (write_gmon): Likewise.
12728         * iconv/gconv_cache.c (__gconv_load_cache): Likewise.
12729         * intl/loadmsgcat.c (close): Likewise.
12730         * io/ftw.c (open_dir_stream): Likewise.
12731         (ftw_startup): Likewise.
12732         * libio/fileops.c (_IO_file_open): Likewise.
12733         (_IO_file_close_mmap): Likewise.
12734         (_IO_file_close): Likewise.
12735         * libio/iopopen.c (_IO_dup2): Likewise.
12736         * locale/loadarchive.c (_nl_load_locale_from_archive): Likewise.
12737         * locale/loadlocale.c (_nl_load_locale): Likewise.
12738         * login/utmp_file.c (pututline_file): Likewise.
12739         (endutent_file): Likewise.
12740         * misc/daemon.c (daemon): Likewise.
12741         * nscd/nscd_getai.c (__nscd_getai): Likewise.
12742         * nscd/nscd_getgr_r.c (nscd_getgr_r): Likewise.
12743         * nscd/nscd_gethst_r.c (nscd_gethst_r): Likewise.
12744         * nscd/nscd_getpw_r.c (nscd_getpw_r): Likewise.
12745         * nscd/nscd_getserv_r.c (nscd_getserv_r): Likewise.
12746         * nscd/nscd_helper.c (open_socket): Likewise.
12747         (__nscd_open_socket): Likewise.
12748         * nscd/nscd_initgroups.c (__nscd_getgrouplist): Likewise.
12749         * nscd/nscd_netgroup.c (__nscd_setnetgrent): Likewise.
12750         (__nscd_innetgr): Likewise.
12751         * nss/nss_db/db-open.c (internal_setent): Likewise.
12752         * resolv/res-close.c (__res_iclose): Likewise.
12753         * sunrpc/pm_getmaps.c (pmap_getmaps): Likewise.
12754         * sysdeps/posix/closedir.c (__closedir): Likewise.
12755         * sysdeps/posix/getaddrinfo.c (getaddrinfo): Likewise.
12756         * sysdeps/posix/getcwd.c (__getcwd): Likewise.
12757         * sysdeps/posix/opendir.c (tryopen_o_directory): Likewise.
12758         (opendir_tail): Likewise.
12759         * sysdeps/posix/spawni.c (__spawni_child): Likewise.
12760         * sysdeps/unix/sysv/linux/check_native.c (__check_native): Likewise.
12761         * sysdeps/unix/sysv/linux/check_pf.c (__check_pf): Likewise.
12762         * sysdeps/unix/sysv/linux/fips-private.h (fips_enabled_p): Likewise.
12763         * sysdeps/unix/sysv/linux/gethostid.c (sethostid): Likewise.
12764         (gethostid): Likewise.
12765         * sysdeps/unix/sysv/linux/getloadavg.c (getloadavg): Likewise.
12766         * sysdeps/unix/sysv/linux/getlogin_r.c (__getlogin_r_loginuid):
12767         Likewise.
12768         * sysdeps/unix/sysv/linux/getsysstats.c (__get_nprocs): Likewise.
12769         * sysdeps/unix/sysv/linux/grantpt.c (close_all_fds): Likewise.
12770         * sysdeps/unix/sysv/linux/i386/smp.h (is_smp_system): Likewise.
12771         * sysdeps/unix/sysv/linux/ia64/has_cpuclock.c (has_cpuclock):
12772         Likewise.
12773         * sysdeps/unix/sysv/linux/if_index.c (__if_nametoindex): Likewise.
12774         * sysdeps/unix/sysv/linux/libc_fatal.c (backtrace_and_maps): Likewise.
12775         * sysdeps/unix/sysv/linux/malloc-sysdep.h (check_may_shrink_heap):
12776         Likewise.
12777         * sysdeps/unix/sysv/linux/mq_notify.c (init_mq_netlink): Likewise.
12778         * sysdeps/unix/sysv/linux/pthread_getname.c (pthread_getname_np):
12779         Likewise.
12780         * sysdeps/unix/sysv/linux/pthread_setname.c (pthread_setname_np):
12781         Likewise.
12782         * sysdeps/unix/sysv/linux/spawni.c (__spawni_child): Likewise.
12783         * sysdeps/unix/sysv/linux/sysconf.c (__sysconf): Likewise.
12784         * sysdeps/unix/sysv/linux/Versions (libc) [GLIBC_PRIVATE]: Add
12785         __close_nocancel.
12787         * sysdeps/generic/not-cancel.h (openat_not_cancel): Remove macro.
12788         (openat_not_cancel_3): Likewise.
12789         (openat64_not_cancel_3): Likewise).
12790         (openat_not_cancel_3): Likewise).
12791         * sysdeps/unix/sysv/linux/not-cancel.h (openat_not_cancel): Remove
12792         macro.
12793         (openat_not_cancel_3): Likewise.
12794         (openat64_not_cancel): Likewise.
12795         (openat64_not_cancel_3): Likewise.
12796         * sysdeps/unix/sysv/linux/openat.c (__openat_nocancel): New function.
12797         * sysdeps/unix/sysv/linux/openat64.c (__openat64_nocancel): Likewise.
12798         * io/ftw.c (open_dir_stream): Replace openat{64}_not_cancel{_3} with
12799         __open{64}_nocancel.
12800         * sysdeps/mach/hurd/opendir.c (__opendirat): Likewise.
12801         * sysdeps/posix/getcwd.c (__getcwd): Likewise.
12802         * sysdeps/posix/opendir.c (__opendirat): Likewise.
12804 2017-08-18  H.J. Lu  <hongjiu.lu@intel.com>
12806         [BZ #18822]
12807         * include/argz.h (__argz_create_sep): New function prototype.
12808         (__argz_append): Likewise.
12809         (__argz_add): Likewise.
12810         (__argz_add_sep): Likewise.
12811         (__argz_delete): Likewise.
12812         (__argz_insert): Likewise.
12813         (__argz_replace): Likewise.
12814         * string/argz.h (__argz_create_sep): Removed.
12815         (__argz_append): Likewise.
12816         (__argz_add): Likewise.
12817         (__argz_add_sep): Likewise.
12818         (__argz_delete): Likewise.
12819         (__argz_insert): Likewise.
12820         (__argz_replace): Likewise.
12822 2017-08-18  H.J. Lu  <hongjiu.lu@intel.com>
12824         * elf/elf.h (NT_GNU_PROPERTY_TYPE_0): New.
12825         (NOTE_GNU_PROPERTY_SECTION_NAME): Likewise.
12826         (GNU_PROPERTY_STACK_SIZE): Likewie.
12827         (GNU_PROPERTY_NO_COPY_ON_PROTECTED): Likewie.
12828         (GNU_PROPERTY_LOPROC): Likewise.
12829         (GNU_PROPERTY_HIPROC): Likewise.
12830         (GNU_PROPERTY_LOUSER): Likewise.
12831         (GNU_PROPERTY_HIUSER): Likewise.
12832         (GNU_PROPERTY_X86_ISA_1_USED): Likwise.
12833         (GNU_PROPERTY_X86_ISA_1_NEEDED): Likwise.
12834         (GNU_PROPERTY_X86_FEATURE_1_AND): Likwise.
12835         (GNU_PROPERTY_X86_ISA_1_486): Likwise.
12836         (GNU_PROPERTY_X86_ISA_1_586): Likwise.
12837         (GNU_PROPERTY_X86_ISA_1_686): Likwise.
12838         (GNU_PROPERTY_X86_ISA_1_SSE): Likwise.
12839         (GNU_PROPERTY_X86_ISA_1_SSE2): Likwise.
12840         (GNU_PROPERTY_X86_ISA_1_SSE3): Likwise.
12841         (GNU_PROPERTY_X86_ISA_1_SSSE3): Likwise.
12842         (GNU_PROPERTY_X86_ISA_1_SSE4_1): Likwise.
12843         (GNU_PROPERTY_X86_ISA_1_SSE4_2): Likwise.
12844         (GNU_PROPERTY_X86_ISA_1_AVX): Likwise.
12845         (GNU_PROPERTY_X86_ISA_1_AVX2): Likwise.
12846         (GNU_PROPERTY_X86_ISA_1_AVX512F): Likwise.
12847         (GNU_PROPERTY_X86_ISA_1_AVX512CD): Likwise.
12848         (GNU_PROPERTY_X86_ISA_1_AVX512ER): Likwise.
12849         (GNU_PROPERTY_X86_ISA_1_AVX512PF): Likwise.
12850         (GNU_PROPERTY_X86_ISA_1_AVX512VL): Likwise.
12851         (GNU_PROPERTY_X86_ISA_1_AVX512DQ): Likwise.
12852         (GNU_PROPERTY_X86_ISA_1_AVX512BW): Likwise.
12853         (GNU_PROPERTY_X86_FEATURE_1_IBT): Likwise.
12854         (GNU_PROPERTY_X86_FEATURE_1_SHSTK): Likwise.
12856 2017-08-18  Gabriel F. T. Gomes  <gftg@linux.vnet.ibm.com>
12858         * misc/sys/cdefs.h (__HAVE_GENERIC_SELECTION): Define to 0, if
12859         in C++ mode.
12861 2017-08-18  Gabriel F. T. Gomes  <gftg@linux.vnet.ibm.com>
12863         [BZ #21930]
12864         * math/math.h (isinf): Check if in C or C++ mode before using
12865         __builtin_types_compatible_p, since this is a C mode feature.
12867 2017-08-18  Adhemerval Zanella  <adhemerval.zanella@linaro.org>
12869         * sysdeps/generic/not-cancel.h (write_not_cancel): Remove macro.
12870         (__write_nocancel): New macro.
12871         * sysdeps/unix/sysv/linux/not-cancel.h (__write_nocancel):
12872         Rewrite as a function prototype.
12873         (write_not_cancel): Remove macro.
12874         * sysdeps/unix/sysv/linux/write.c (__write_nocancel): New function.
12875         * gmon/gmon.c (ERR): Replace write_not_cancel with __write_nocancel.
12876         (write_gmon): Likewise.
12877         * libio/fileops.c (_IO_new_file_write): Likewise.
12878         * login/utmp_file.c (pututline_file): Likewise.
12879         (updwtmp_file): Likewise.
12880         * stdio-common/psiginfo.c (psiginfo): Likewise.
12881         * sysdeps/posix/spawni.c (__spawni_child): Likewise.
12882         * sysdeps/unix/sysv/linux/gethostid.c (sethostid): Likewise.
12883         * sysdeps/unix/sysv/linux/libc_fatal.c (backtrace_and_maps):
12884         Likewise.
12885         * sysdeps/unix/sysv/linux/pthread_setname.c (pthread_setname_np):
12886         Likewise.
12888         * sysdeps/generic/not-cancel.h (read_not_cancel): Remove macro.
12889         (__read_nocancel): New macro.
12890         * sysdeps/unix/sysv/linux/Versions (libc) [GLIBC_PRIVATE]: Add
12891         __read_nocancel.
12892         * sysdeps/unix/sysv/linux/not-cancel.h (__read_nocancel): Remove
12893         macro.
12894         (__read_nocancel): New prototype.
12895         * sysdeps/unix/sysv/linux/read.c (__read_nocancel): New function.
12896         * catgets/open_catalog.c (__open_catalog): Replace read_not_cancel
12897         with __read_nocancel.
12898         * intl/loadmsgcat.c (read): Likewise.
12899         * libio/fileops.c (_IO_file_read): Likewise.
12900         * locale/loadlocale.c (_nl_load_locale): Likewise.
12901         * login/utmp_file.c (getutent_r_file): Likewise.
12902         (internal_getut_r): Likewise.
12903         (getutline_r_file): Likewise.
12904         * sysdeps/unix/sysv/linux/fips-private.h (fips_enable_p): Likewise.
12905         * sysdeps/unix/sysv/linux/gethostid.c (gethostid): Likewise.
12906         * sysdeps/unix/sysv/linux/getloadavg.c (getloadavg): Likewise.
12907         * sysdeps/unix/sysv/linux/getlogin_r.c (__getlogin_r_loginuid):
12908         Likewise.
12909         * sysdeps/unix/sysv/linux/getsysstats.c (next_line): Likewise.
12910         * sysdeps/unix/sysv/linux/i386/smp.h (is_smp_system): Likewise.
12911         * sysdeps/unix/sysv/linux/ia64/has_cpuclock.c (has_cpuclock):
12912         Likewise.
12913         * sysdeps/unix/sysv/linux/libc_fatal.c (backtrace_and_maps):
12914         Likewise.
12915         * sysdeps/unix/sysv/linux/malloc-sysdep.h (check_may_shrink_heap):
12916         Likewise.
12917         * sysdeps/unix/sysv/linux/pthread_getname.c (pthread_getname_np):
12918         Likewise.
12919         * sysdeps/unix/sysv/linux/sysconf.c (__sysconf): Likewise.
12921 2017-08-18  H.J. Lu  <hongjiu.lu@intel.com>
12923         [BZ #21966]
12924         * sysdeps/x86_64/fpu/multiarch/ifunc-mathvec-avx2.h
12925         (IFUNC_SELECTOR): Don't use the AVX2 version if FMA isn't
12926         usable.
12928 2017-08-17  DJ Delorie  <dj@redhat.com>
12930         * bug17079.c: Update to new test harness.
12931         * test-digits-dots.c: Likewise.
12932         * test-netdb.c: Likewise.
12933         * tst-field.c: Likewise.
12934         * tst-nss-getpwent.c: Likewise.
12935         * tst-nss-static.c: Likewise.
12936         * tst-nss-test1.c: Likewise.
12937         * tst-nss-test2.c: Likewise.
12938         * tst-nss-test3.c: Likewise.
12939         * tst-nss-test4.c: Likewise.
12940         * tst-nss-test5.c: Likewise.
12942 2017-08-17  Adhemerval Zanella  <adhemerval.zanella@linaro.org>
12944         * sysdeps/generic/not-cancel.h (open_not_cancel): Remove macro.
12945         (open_not_cancel_2): Likewise.
12946         (open_nocancel): New macro.
12947         (open64_nocancel): Likewise.
12948         * sysdeps/unix/sysv/linux/not-cancel.h (open_not_cancel): Remove macro.
12949         (open_not_cancel_2): Likewise.
12950         (__open_nocancel): New prototype.
12951         (__open64_nocancel): Likewise.
12952         * sysdeps/unix/sysv/linux/Versions (libc) [GLIBC_PRIVATE]: Add
12953         __open_nocancel.
12954         * sysdeps/unix/sysv/linux/open.c (__open_nocancel): New function.
12955         * sysdeps/unix/sysv/linux/open64.c (__open64_nocancel): Likewise.
12956         * catgets/open_catalog.c (__open_catalog): Replace open_not_cancel{_2}
12957         with __open_nocancel.
12958         * csu/check_fds.c (check_one_fd): Likewise.
12959         * gmon/gmon.c (write_gmon): Likewise.
12960         * iconv/gconv_cache.c (__gconv_load_cached): Likewise.
12961         * intl/loadmsgcat.c (open): Likewise.
12962         * libio/fileops.c (_IO_file_open): Likewise.
12963         * locale/loadarchive.c (_nl_load_locale_from_archive): Likewise.
12964         * locale/loadlocale.c (_nl_load_locale): Likewise.
12965         * login/utmp_file.c (setutent_file): Likewise.
12966         * misc/daemon.c (daemon): Likewise.
12967         * nss/nss_db/db-open.c (internal_setent): Likewise.
12968         * sysdeps/mach/hurd/opendir.c (__opendirat): Likewise.
12969         * sysdeps/posix/libc_fatal.c (__libc_message): Likewise.
12970         * sysdeps/posix/opendir.c (tryopen_o_directory): Likewise.
12971         (__opendir): Likewise.
12972         * sysdeps/posix/spawni.c (__spawni_child): Likewise.
12973         * sysdeps/unix/sysv/linux/fips-private.h (fips_enable_p): Likewise.
12974         * sysdeps/unix/sysv/linux/gethostid.c (sethostid): Likewise.
12975         (gethostid): Likewise.
12976         * sysdeps/unix/sysv/linux/getloadavg.c (getloadavg): Likewise.
12977         * sysdeps/unix/sysv/linux/getlogin_r.c (__getlogin_r_loginuid):
12978         Likewise.
12979         * sysdeps/unix/sysv/linux/getsysstats.c (__get_nprocs): Likewise.
12980         * sysdeps/unix/sysv/linux/grantpt.c (__close_all_fds): Likewise.
12981         * sysdeps/unix/sysv/linux/i386/smp.h (is_smp_system): Likewise.
12982         * sysdeps/unix/sysv/linux/ia64/has_cpuclock.c (has_cpuclock):
12983         Likewise.
12984         * sysdeps/unix/sysv/linux/libc_fatal.c (backtrace_and_maps):
12985         Likewise.
12986         * sysdeps/unix/sysv/linux/malloc-sysdep.h (check_may_shrink_heap):
12987         Likewise.
12988         * sysdeps/unix/sysv/linux/powerpc/get_clockfreq.c (__get_clockfreq):
12989         Likewise.
12990         * sysdeps/unix/sysv/linux/pthread_getname.c (pthread_getname_np):
12991         Likewise.
12992         * sysdeps/unix/sysv/linux/pthread_setname.c (pthread_setname_np):
12993         Likewise.
12994         * sysdeps/unix/sysv/linux/spawni.c (__spawni_child): Likewise.
12995         * sysdeps/unix/sysv/linux/sysconf.c (__sysconf): Likewise.
12997 2017-08-17  Wilco Dijkstra  <wdijkstr@arm.com>
12999         * benchtests/bench-skeleton.c (main): Add support for
13000         latency benchmarking.
13001         * benchtests/scripts/bench.py: Add support for latency benchmarking.
13003 2017-08-17  H.J. Lu  <hongjiu.lu@intel.com>
13005         * Makeconfig (+link-pie-before-libc): Add CRT-* hook to override
13006         the startup object.
13008 2017-08-17  Florian Weimer  <fweimer@redhat.com>
13010         * include/sys/socket.h (__opensock): Remove internal_function.
13011         * socket/opensock.c (__opensock): Likewise.
13012         * sysdeps/unix/sysv/linux/opensock.c (__opensock): Likewise.
13014 2017-08-16  Joseph Myers  <joseph@codesourcery.com>
13016         [BZ #21944]
13017         * signal/bits/types/__sigval_t.h: New file.
13018         * signal/Makefile (headers): Add bits/types/__sigval_t.h.
13019         * signal/bits/types/sigval_t.h: Include <bits/types/__sigval_t.h>
13020         and define sigval_t using __sigval_t.
13021         * include/bits/types/__sigval_t.h: New file.
13022         * bits/types/sigevent_t.h: Include <bits/types/__sigval_t.h>
13023         instead of <bits/types/__sigval_t.h>.
13024         (struct sigevent): Use __sigval_t instead of sigval_t.
13025         * bits/types/siginfo_t.h: Include <bits/types/__sigval_t.h>
13026         instead of <bits/types/__sigval_t.h>.
13027         (siginfo_t): Use __sigval_t instead of sigval_t.
13028         * sysdeps/unix/sysv/linux/bits/types/sigevent_t.h: Include
13029         <bits/types/__sigval_t.h> instead of <bits/types/__sigval_t.h>.
13030         (struct sigevent): Use __sigval_t instead of sigval_t.
13031         * sysdeps/unix/sysv/linux/bits/types/siginfo_t.h: Include
13032         <bits/types/__sigval_t.h> instead of <bits/types/__sigval_t.h>.
13033         (siginfo_t): Use __sigval_t instead of sigval_t.
13034         * signal/signal.h [__USE_MISC]: Include <bits/types/sigval_t.h>.
13036 2017-08-16  H.J. Lu  <hongjiu.lu@intel.com>
13038         * NEWS: Remove "[Add new features here]" for 2.27.
13040 2017-08-16  Joseph Myers  <joseph@codesourcery.com>
13042         * sysdeps/unix/sysv/linux/sh/localplt.data: Allow abort in
13043         libc.so.
13045 2017-08-16  H.J. Lu  <hongjiu.lu@intel.com>
13047         * NEWS: Mention x86-64 FMA optimization.
13049 2017-08-16  H.J. Lu  <hongjiu.lu@intel.com>
13051         [BZ #21912]
13052         * sysdeps/x86_64/fpu/multiarch/Makefile (libm-sysdep_routines):
13053         Add e_expf-fma.
13054         * sysdeps/x86_64/fpu/multiarch/e_expf-fma.S: New file.
13055         * sysdeps/x86_64/fpu/multiarch/e_expf.c: Likewise.
13056         * sysdeps/x86_64/fpu/multiarch/ifunc-fma.h: Likewise.
13058 2017-08-16  Andreas Schwab  <schwab@suse.de>
13060         [BZ #16750]
13061         CVE-2009-5064
13062         * elf/ldd.bash.in: Never run file directly.
13064 2017-08-15  H.J. Lu  <hongjiu.lu@intel.com>
13066         [BZ #21955]
13067         * sysdeps/x86_64/fpu/e_expf.S (L(SP_RANGE)): Aligned to 8 bytes.
13068         (L(SP_INF_0)): Likewise.
13070 2017-08-15  Florian Weimer  <fweimer@redhat.com>
13072         * gmon/Makefile (tests-special): Add tst-gmon-prof only if
13073         run-built-tests.
13075 2017-08-15  Florian Weimer  <fweimer@redhat.com>
13077         Remove BROKEN_THREAD_SIGNALS support for LinuxThreads.
13078         * sysdeps/pthread/aio_misc.c (__aio_enqueue_request): Remove
13079         BROKEN_THREAD_SIGNALS code.
13080         * sysdeps/ppthread/aio_misc.h (struct waitlist, struct
13081         request_list): Remove caller_pid member used for
13082         BROKEN_THREAD_SIGNALS.
13083         [BROKEN_THREAD_SIGNALS] (__aio_notify_only): Remove declaration.
13084         * sysdeps/pthread/aio_notify.c (__aio_notify_only, __aio_notify):
13085         Remove BROKEN_THREAD_SIGNALS support.
13086         * sysdeps/pthread/aio_suspend.c (aio_suspend): Likewise.
13087         * sysdeps/pthread/lio_listio.c (lio_listio_internal): Likewise.
13089 2017-08-15  Florian Weimer  <fweimer@redhat.com>
13091         * gmon/Makefile (tests): Add tst-gmon.
13092         (CFLAGS-tst-gmon.c, LDFLAGS-tst-gmon, CRT-tst-gmon, tst-gmon-ENV):
13093         Set.
13094         (tests-special): Add tst-gmon-prof.out.
13095         (tst-gmon.out): Depend on clean-tst-gmon-data.
13096         (clean-tst-gmon-data, tst-gmon-gprof.out): New targets.
13097         * gmon/tst-gmon.c, gmon/tst-gmon-gprof.sh: New files.
13098         * Makeconfig (+link-before-libc): Add CRT-* hook to override the
13099         startup object.
13100         * aclocal.m4 (GPROF): Set and substitute.
13101         * config.amke.in (GPROF): Set.
13102         * configure: Regenerate.
13104 2017-08-15  Gustavo Romero  <gromero@linux.vnet.ibm.com>
13106         * elf/elf.h A (NT_PPC_TAR): New macro.
13107         (NT_PPC_PPR): Likewise.
13108         (NT_PPC_DSCR): Likewise.
13109         (NT_PPC_EBB): Likewise.
13110         (NT_PPC_PMU): Likewise.
13111         (NT_PPC_TM_CGPR): Likewise.
13112         (NT_PPC_TM_CFPR): Likewise.
13113         (NT_PPC_TM_CVMX): Likewise.
13114         (NT_PPC_TM_CVSX): Likewise.
13115         (NT_PPC_TM_SPR): Likewise.
13116         (NT_PPC_TM_CTAR): Likewise.
13117         (NT_PPC_TM_CPPR): Likewise.
13118         (NT_PPC_TM_CDSCR): Likewise.
13120 2017-08-15  Florian Weimer  <fweimer@redhat.com>
13122         * sysdeps/i386/machine-gmon.h (mcount_internal): Declare with
13123         regparm (2) instead of internal_function.
13124         (_MCOUNT_DECL): Adjust.
13126 2017-08-15  Stefan Liebler  <stli@linux.vnet.ibm.com>
13128         * sysdeps/s390/dl-procinfo.c (_dl_s390_cap_flags): Add z14.
13129         * sysdeps/s390/dl-procinfo.h (_DL_PLATFORMS_COUNT): Increased.
13131 2017-08-14  Joseph Myers  <joseph@codesourcery.com>
13133         * conform/data/sys/wait.h-data (si_value): Do not expect for
13134         XPG42.
13136 2017-08-14  Florian Weimer  <fweimer@redhat.com>
13138         [BZ #21962]
13139         NSS: Create stubs for accidentally exported lookup functions.
13140         * grp/initgroups.c (__nss_group_lookup, __nss_lookup_function):
13141         Remove declaration.
13142         * inet/ether_hton.c (__nss_ethers_lookup): Likewise.
13143         (ether_hostton): Call __nss_ethers_lookup2 instead.
13144         * inet/ether_ntoh.c (__nss_ethers_lookup): Remove declaration.
13145         (ether_ntohost): Call __nss_ethers_lookup2 instead.
13146         * inet/getnetgrent_r.c (__nss_netgroup_lookup): Remove declaration.
13147         (setup): Call __nss_netgroup_lookup2 instead.
13148         * nss/Makefile (routines): Add compat-lookup.
13149         * nss/Versions (GLIBC_2.27): Add symbol version.
13150         * nss/XXX-lookup (DB_LOOKUP_FCT): Remove declaration.  Now provided by <nsswitch.h>.
13151         (DB_COMPAT_FCT): Remove.
13152         * nss/compat-lookup.c: New file.
13153         * nss/nsswitch.h: Generate __nss_*_lookup2 function prototypes
13154         from databases.def.
13155         * nss/service-lookup.c (NO_COMPAT): Remove definition.
13156         * sunrpc/netname.c (__nss_publickey_lookup): Remove declaration.
13157         (netname2user): Call __nss_publickey_lookup2 instead.
13158         * sunrpc/publickey.c (__nss_publickey_lookup): Remove declaration.
13159         (getpublickey, getsecretkey): Call __nss_publickey_lookup2
13160         instead.
13162 2017-08-14  Adhemerval Zanella  <adhemerval.zanella@linaro.org>
13163             Sergei Trofimovich  <slyfox@inbox.ru>
13165         [BZ #21908]
13166         * sysdeps/unix/sysv/linux/m68k/mmap_internal.h (MMAP2_PAGE_SHIFT):
13167         Rename to MMAP2_PAGE_UNIT.
13168         * sysdeps/unix/sysv/linux/mmap.c: Include mmap_internal iff
13169         __OFF_T_MATCHES_OFF64_T is not defined.
13170         * sysdeps/unix/sysv/linux/mmap_internal.h (page_unit): Declare as
13171         uint64_t.
13172         (MMAP2_PAGE_UNIT) [MMAP2_PAGE_UNIT == -1]: Redefine to page_unit.
13173         (page_unit) [MMAP2_PAGE_UNIT != -1]: Remove definition.
13175 2017-08-14  Florian Weimer  <fweimer@redhat.com>
13177         i386: Do not set internal_function.
13178         * config.h.in (USE_REGPARMS, internal_function): Remove.
13179         * sysdeps/i386/configure.ac (USE_REGPARMS): Likewise.
13180         * sysdeps/i386/configure (USE_REGPARMS): Likewise.
13182 2017-08-14  Florian Weimer  <fweimer@redhat.com>
13184         * elf/dl-init.c (_dl_init): Remove internal_function.
13185         * sysdeps/generic/ldsodefs.h (_dl_init): Likewise.
13186         * sysdeps/i386/dl-machine.h (RTLD_START): Adjust call to _dl_init.
13188 2017-08-14  Florian Weimer  <fweimer@redhat.com>
13190         * elf/rtld.c (_dl_start): Remove internal_function.
13191         * sysdeps/i386/dl-machine.h (RTLD_START): Adjust call to
13192         _dl_start.
13194 2017-08-14  Florian Weimer  <fweimer@redhat.com>
13196         * elf/dl-fini.c (_dl_fini): Remove internal_function
13197         * sysdeps/generic/ldsodefs.h (_dl_fini): Likewise.
13199 2017-08-14  H.J. Lu  <hongjiu.lu@intel.com>
13201         * sysdeps/x86/cpu-features.h (bit_cpu_BIT): New.
13202         (bit_cpu_SHSTK): Likewise.
13203         (index_cpu_IBT): Likewise.
13204         (index_cpu_SHSTK): Likewise.
13205         (reg_IBT): Likewise.
13206         (reg_SHSTK): Likewise.
13207         * sysdeps/x86/cpu-tunables.c (TUNABLE_CALLBACK (set_hwcaps)):
13208         Handle index_cpu_IBT and index_cpu_SHSTK.
13210 2017-08-14  Mike FABIAN  <mfabian@redhat.com>
13212         [BZ #19982]
13213         * po/fr.po: Fix spelling mistake.
13215 2017-08-13  Florian Weimer  <fweimer@redhat.com>
13217         * elf/dl-addr.c (_dl_addr): Remove internal_function.
13218         * elf/dl-error-skeleton.c (_dl_signal_error, _dl_signal_cerror)
13219         (_dl_catch_error, _dl_receive_error): Likewise.
13220         * elf/dl-open.c (_dl_find_dso_for_object): Likewise.
13221         * elf/dl-tls.c (_dl_allocate_tls_init, _dl_allocate_tls)
13222         (_dl_deallocate_tls): Likewise.
13223         * include/dlfcn.h (_dl_addr): Likewise.
13224         * sysdeps/generic/ldsodefs.h (_dl_signal_error, _dl_signal_cerror)
13225         (_dl_catch_error, _dl_receive_error, _dl_find_dso_for_object)
13226         (_dl_allocate_tls_init, _dl_allocate_tls, _dl_deallocate_tls):
13227         Likewise.
13229 2017-08-13  Florian Weimer  <fweimer@redhat.com>
13231         * include/stdlib.h: (__strtof_nan, __strtod_nan, __strtold_nan)
13232         (__wcstof_nan, __wcstod_nan, __wcstold_nan): Remove
13233         internal_function.
13234         * stdlib/sttod_nan_main.c (STRTOD_NAN): Likewise.
13236 2017-08-13  Florian Weimer  <fweimer@redhat.com>
13238         * elf/dl-support.c (_dl_make_stack_executable_hook): Remove
13239         internal_function.
13240         * nptl/allocatestack.c (__make_stacks_executable): Likewise.
13241         * nptl/pthreadP.h (__make_stacks_executable): Likewise.
13242         * sysdeps/generic/ldsodefs.h (_rtld_global): Remove
13243         internal_function from _dl_make_stack_executable_hook member.
13244         (_dl_make_stack_executable): Remove internal_function.
13245         * sysdeps/mach/hurd/dl-execstack.c (_dl_make_stack_executable):
13246         Likewise.
13247         * sysdeps/unix/sysv/linux/dl-execstack.c
13248         (_dl_make_stack_executable): Likewise.
13250 2017-08-13  Florian Weimer  <fweimer@redhat.com>
13252         * sysdeps/unix/sysv/linux/netlinkaccess.h
13253         (__netlink_assert_response): Remove internal_function.
13254         * sysdeps/unix/sysv/linux/netlink_assert_response.c
13255         (__netlink_assert_response): Likewise.
13257 2017-08-13  Florian Weimer  <fweimer@redhat.com>
13259         * include/rpc/pmap_clnt.h (__libc_rpc_getport): Remove
13260         internal_function.
13261         * sunrpoc/pm_getport.c (__libc_rpc_getport): Likewise.
13263 2017-08-13  Florian Weimer  <fweimer@redhat.com>
13265         * grp/grp-merge.h (__copy_grp, __merge_grp): Remove
13266         internal_function.
13267         * grp/grp-merge.c (__copy_grp, __merge_grp): Likewise.
13268         * inet/netgroup.h (__internal_setnetgrent)
13269         (__internal_endnetgrent,__internal_getnetgrent_r): Likewise.
13270         * inet/getnetgrent_r.c (__internal_setnetgrent)
13271         (__internal_endnetgrent,__internal_getnetgrent_r): Likewise.
13272         * nss/XXX-lookup.c (DB_LOOKUP_FCT, DB_COMPAT_FCT): Likewise.
13273         * nss/getXXbyYY_r.c (DB_LOOKUP_FCT): Likewise.
13274         * nss/getXXent_r.c (DB_LOOKUP_FCT): Likewise.
13275         * nss/nsswitch.h (db_lookup_function): Likewise.
13277 2017-08-13  Florian Weimer  <fweimer@redhat.com>
13279         * debug/fortify_fail.c (__fortify_fail, __fortify_fail_abort):
13280         Remove internal_function.
13281         * include/stdio.h (__fortify_fail, __fortify_fail_abort): Likewise.
13282         * sysdeps/mach/hurd/i386/____longjmp_chk.S (CALL_FAIL): Pass
13283         message argument on the stack.
13284         * sysdeps/unix/sysv/linux/i386/____longjmp_chk.S (CALL_FAIL):
13285         Likeweise.
13287 2017-08-12  Mike FABIAN  <mfabian@redhat.com>
13289         Adapt test case data to the changes in the thousands
13290         separators.
13292         [BZ #20756]
13293         * localedata/tst-langinfo.sh: Adapt test case data.
13294         * stdlib/tst-strfmon_l.c: Likewise.
13295         * stdlib/tst-strtod4.c: Likewise.
13296         * stdlib/tst-strtod5i.c: Likewise.
13298 2017-08-11  Florian Weimer  <fweimer@redhat.com>
13300         [BZ #21242]
13301         * assert/assert.h [__GNUC__ && !__STRICT_ANSI__] (assert):
13302         Suppress pedantic warning resulting from statement expression.
13303         (__ASSERT_FUNCTION): Add missing __extension__.
13305 2017-08-11  Siddhesh Poyarekar  <siddhesh@sourceware.org>
13307         * benchtests/bench-memmove-large.c: Print output in JSON
13308         format.
13309         * benchtests/bench-memmove.c: Likewise.
13311         * benchtests/bench-memccpy.c (do_one_test): Remove checks.
13312         * benchtests/bench-memchr.c (do_one_test): Likewise.
13313         * benchtests/bench-memcpy-large.c (do_one_test): Likewise.
13314         * benchtests/bench-memcpy.c (do_one_test): Likewise.
13315         * benchtests/bench-memmove-large.c (do_one_test): Likewise.
13316         * benchtests/bench-memmove.c (do_one_test): Likewise.
13317         * benchtests/bench-memset-large.c (do_one_test): Likewise.
13318         * benchtests/bench-memset.c (do_one_test): Likewise.
13319         * benchtests/bench-string.h (test_init): Remove memsets.
13321 2017-08-10  Rical Jasan  <ricaljasan@pacific.net>
13323         * manual/lang.texi
13324         (Computing the Width of an Integer Data Type): Rename section to
13325         "Width of an Integer Type".  Remove inaccurate statement regarding
13326         lack of C language facilities for determining width of integer
13327         types, and reorder content to improve flow and context of
13328         discussion.
13330 2017-08-10  Rical Jasan  <ricaljasan@pacific.net>
13332         * lang.texi (va_copy): Change standard from ISO to C99.
13333         (__va_copy): Add standard and header annotation.
13334         Update description for clarity of origins and current use.
13336 2017-08-10  Gabriel F. T. Gomes  <gftg@linux.vnet.ibm.com>
13338         [BZ #21941]
13339         * sysdeps/powerpc/fpu/math_private.h (__ieee754_sqrtf128): Since
13340         xssqrtqp requires operands to be in Vector Registers
13341         (Altivec/VMX), replace the register constraint 'wq' with 'v'.
13342         * sysdeps/powerpc/powerpc64le/power9/fpu/e_sqrtf128.c
13343         (__ieee754_sqrtf128): Likewise.
13345 2017-08-10  Wilco Dijkstra  <wdijkstr@arm.com>
13347         * sysdeps/aarch64/memcmp.S (memcmp):
13348         Rewrite of optimized memcmp.
13350 2017-08-10  Florian Weimer  <fweimer@redhat.com>
13352         Introduce ld.so exceptions.
13353         * sysdeps/generic/ldsodefs.h (struct dl_exception): Define.
13354         (_dl_exception_create, _dl_exception_create_format)
13355         (_dl_exception_free, _dl_signal_exception, _dl_signal_cexception)
13356         (_dl_catch_exception): Declare.
13357         (_dl_catch_error): Update comment.
13358         * elf/dl-error-skeleton.c (struct catch): Replace objname,
13359         errstring, malloced members with exception member.
13360         (_dl_out_of_memory): Remove.
13361         (fatal_error): New function, extracted from _dl_signal_error.
13362         (_dl_signal_exception, _dl_signal_cexception): New functions.
13363         (_dl_signal_error): Call _dl_exception_create to allocate an
13364         exception object.
13365         (_dl_catch_exception): New function, based on _dl_catch_error.
13366         (_dl_catch_error): Implement using _dl_catch_exception.
13367         * elf/dl-exception.c: New file.
13368         * elf/Makefile (dl-routines): Add dl-exception.
13369         (elide-routines.os): Likewise.
13370         * elf/Version (ld/GLIBC_PRIVATE): Add _dl_exception_create,
13371         _dl_exception_create_format, _dl_exception_free.
13372         * elf/dl-deps.c (_dl_map_object_deps): Use _dl_catch_exception and
13373         _dl_signal_exception.
13374         * elf/dl-lookup.c (make_string): Remove.
13375         (_dl_lookup_symbol_x): Use _dl_exception_create_format,
13376         _dl_signal_cexception, _dl_exception_free.
13377         * elf/dl-open.c (_dl_open): Use _dl_catch_exception and
13378         _dl_signal_exception.
13379         * elf/dl-sym.c (do_sym): Likewise.
13380         * elf/dl-version.c (make_string): Remove.
13381         (match_symbol): Use _dl_exception_create_format,
13382         _dl_signal_cexception, _dl_exception_free.
13383         (_dl_check_map_versions): Likewise.
13384         * sysdeps/generic/localplt.data (ld.so): Add _dl_signal_exception,
13385         _dl_catch_exception.
13386         * sysdeps/unix/sysv/linux/aarch64/localplt.data (ld.so): Likewise.
13387         * sysdeps/unix/sysv/linux/alpha/localplt.data (ld.so): Likewise.
13388         * sysdeps/unix/sysv/linux/arm/localplt.data (ld.so): Likewise.
13389         * sysdeps/unix/sysv/linux/hppa/localplt.data (ld.so): Likewise.
13390         * sysdeps/unix/sysv/linux/i386/localplt.data (ld.so): Likewise.
13391         * sysdeps/unix/sysv/linux/ia64/localplt.data (ld.so): Likewise.
13392         * sysdeps/unix/sysv/linux/m68k/localplt.data (ld.so): Likewise.
13393         * sysdeps/unix/sysv/linux/microblaze/localplt.data (ld.so):
13394         Likewise.
13395         * sysdeps/unix/sysv/linux/nios2/localplt.data (ld.so): Likewise.
13396         * sysdeps/unix/sysv/linux/powerpc/powerpc32/fpu/localplt.data
13397         (ld.so): Likewise.
13398         * sysdeps/unix/sysv/linux/powerpc/powerpc32/nofpu/localplt.data
13399         (ld.so): Likewise.
13400         * sysdeps/unix/sysv/linux/powerpc/powerpc64/localplt.data (ld.so):
13401         Likewise.
13402         * sysdeps/unix/sysv/linux/s390/localplt.data (ld.so): Likewise.
13403         * sysdeps/unix/sysv/linux/sh/localplt.data (ld.so): Likewise.
13404         * sysdeps/unix/sysv/linux/sparc/sparc32/localplt.data (ld.so):
13405         Likewise.
13406         * sysdeps/unix/sysv/linux/sparc/sparc64/localplt.data (ld.so):
13407         Likewise.
13408         * sysdeps/x86_64/localplt.data (ld.so): Likewise.
13410 2017-08-10  Florian Weimer  <fweimer@redhat.com>
13412         * inet/net-internal.h (__inet6_scopeid_pton): Remove
13413         attribute_hidden, internal_function.
13414         * inet/inet6_scopeid_pton.c (__inet6_scopeid_pton): Remove
13415         internal_function.
13417 2017-08-10  Florian Weimer  <fweimer@redhat.com>
13419         * malloc/malloc.c (get_max_fast): Reimplement as an inline
13420         function which calls __builtin_unreachable.
13422 2017-08-10  Mike FABIAN  <mfabian@redhat.com>
13424         * stdlib/tst-strfmon_l.c: Fix test cases to agree with the changes in
13425         Indian monetary formatting
13426         * stdlib/Makefile: Adapt list of locales needed for the tst-strfmon_l.c
13427         test cases.
13429 2017-08-09  Dmitry V. Levin  <ldv@altlinux.org>
13431         * sysdeps/unix/sysv/linux/aarch64/sys/ptrace.h (enum __ptrace_request):
13432         Fix typo in comment.
13434         [BZ #21928]
13435         * sysdeps/unix/sysv/linux/sys/ptrace.h (enum __ptrace_flags,
13436         PTRACE_SEIZE_DEVEL): Remove.
13437         * sysdeps/unix/sysv/linux/aarch64/sys/ptrace.h: Likewise.
13438         * sysdeps/unix/sysv/linux/ia64/sys/ptrace.h: Likewise.
13439         * sysdeps/unix/sysv/linux/powerpc/sys/ptrace.h: Likewise.
13440         * sysdeps/unix/sysv/linux/s390/sys/ptrace.h: Likewise.
13441         * sysdeps/unix/sysv/linux/sparc/sys/ptrace.h: Likewise.
13443 2017-08-09  Joseph Myers  <joseph@codesourcery.com>
13445         * posix/bits/types.h (__qaddr_t): Remove.
13447         [BZ #21457]
13448         * sysdeps/arm/sys/ucontext.h (__ctx): Move undefine further down.
13449         (ucontext_t): Use __ctx with uc_flags.  Rename uc_filler to
13450         __glibc_reserved1.
13451         * sysdeps/generic/sys/ucontext.h (__ctx): New macro.
13452         (ucontext_t): Use __ctx with uc_flags.
13453         * sysdeps/i386/sys/ucontext.h (__ctx): Move undefine further down.
13454         (__ctxt): Likewise.
13455         (ucontext_t): Use __ctx with uc_flags.  Rename uc_filler to
13456         __glibc_reserved1.
13457         * sysdeps/m68k/sys/ucontext.h (__ctx): Move undefine further down.
13458         (ucontext_t): Use __ctx with uc_flags.  Rename uc_filler to
13459         __glibc_reserved1.
13460         * sysdeps/mips/sys/ucontext.h (__ctx): Move undefine further down.
13461         (ucontext_t): Use __ctx with uc_flags.  Rename uc_filler to
13462         __glibc_reserved1.
13463         * sysdeps/unix/sysv/linux/aarch64/sys/ucontext.h (__ctx): New
13464         macro.
13465         (ucontext_t): Use __ctx with uc_flags.
13466         * sysdeps/unix/sysv/linux/alpha/sys/ucontext.h (__ctx): New macro.
13467         (ucontext_t): Use __ctx with uc_flags.
13468         * sysdeps/unix/sysv/linux/arm/sys/ucontext.h (__ctx): New macro.
13469         (ucontext_t): Use __ctx with uc_flags and uc_regspace.
13470         * sysdeps/unix/sysv/linux/hppa/sys/ucontext.h (__ctx): New macro.
13471         (ucontext_t): Use __ctx with uc_flags.
13472         * sysdeps/unix/sysv/linux/m68k/sys/ucontext.h (__ctx): Move
13473         undefine further down.
13474         (ucontext_t): Use __ctx with uc_flags.  Rename uc_filler to
13475         __glibc_reserved1.
13476         * sysdeps/unix/sysv/linux/mips/sys/ucontext.h (__ctx): Move
13477         undefine further down.
13478         (ucontext_t): Use __ctx with uc_flags.
13479         * sysdeps/unix/sysv/linux/nios2/sys/ucontext.h (__ctx): Move
13480         undefine further down.
13481         (ucontext_t): Use __ctx with uc_flags.
13482         * sysdeps/unix/sysv/linux/powerpc/sys/ucontext.h (ucontext_t): Use
13483         __ctx with uc_flags, uc_regs_ptr, uc_regs and uc_reg_space.
13484         Rename uc_pad to __glibc_reserved1.
13485         * sysdeps/unix/sysv/linux/s390/sys/ucontext.h (__ctx): Move
13486         undefine further down.
13487         (ucontext_t): Use __ctx with uc_flags.
13488         * sysdeps/unix/sysv/linux/sh/sys/ucontext.h (__ctx): Move undefine
13489         further down.
13490         (ucontext_t): Use __ctx with uc_flags.
13491         * sysdeps/unix/sysv/linux/sparc/sys/ucontext.h (ucontext_t): Use
13492         __ctx with uc_flags.
13493         * sysdeps/unix/sysv/linux/tile/sys/ucontext.h (__ctx): New macro.
13494         (ucontext_t): Use __ctx with uc_flags.
13495         * sysdeps/unix/sysv/linux/x86/sys/ucontext.h (ucontext_t): Use
13496         __ctx with uc_flags.
13498 2017-08-09  Florian Weimer  <fweimer@redhat.com>
13500         [BZ #21932]
13501         * nss/getXXbyYY_r.c (REENTRANT_NAME): Call __resolv_context_put
13502         before early return.
13504 2017-08-09  Andreas Schwab  <schwab@suse.de>
13506         [BZ #21041]
13507         * sysdeps/unix/sysv/linux/s390/pt-longjmp.c: Update reference to
13508         renamed alias.
13510         [BZ #21041]
13511         * nptl/Makefile (tests) [$(build-shared) = yes]: Add
13512         tst-compat-forwarder.
13513         (modules-names): Add tst-compat-forwarder-mod.
13514         ($(objpfx)tst-compat-forwarder): Depend on
13515         $(objpfx)tst-compat-forwarder-mod.so.
13516         * nptl/tst-compat-forwarder.c: New file.
13517         * nptl/tst-compat-forwarder-mod.c: New file.
13519 2017-08-09  Siddhesh Poyarekar  <siddhesh@sourceware.org>
13521         * sysdeps/aarch64/multiarch/memcpy_falkor.S: Fix code style in
13522         comments.
13524         * manual/tunables.texi (Tunable glibc.tune.cpu): Add falkor.
13525         * sysdeps/aarch64/multiarch/Makefile (sysdep_routines): Add
13526         memcpy_falkor.
13527         * sysdeps/aarch64/multiarch/ifunc-impl-list.c (MAX_IFUNC):
13528         Bump.
13529         (__libc_ifunc_impl_list): Add __memcpy_falkor.
13530         * sysdeps/aarch64/multiarch/memcpy.c: Likewise.
13531         * sysdeps/aarch64/multiarch/memcpy_falkor.S: New file.
13532         * sysdeps/unix/sysv/linux/aarch64/cpu-features.c (cpu_list):
13533         Add falkor.
13534         * sysdeps/unix/sysv/linux/aarch64/cpu-features.h (IS_FALKOR):
13535         New macro.
13537 2017-08-08  Adhemerval Zanella  <adhemerval.zanella@linaro.org>
13539         [BZ #759]
13540         * manual/setjmp.texi (getcontex): Document uc_stack value
13541         compatibility differences.
13543 2017-08-08  Joseph Myers  <joseph@codesourcery.com>
13545         * malloc/mcheck.c (old_free_hook): Use void * instead of __ptr_t.
13546         (old_malloc_hook): Likewise.
13547         (old_memalign_hook): Likewise.
13548         (old_realloc_hook): Likewise.
13549         (struct hdr): Likewise.
13550         (flood): Likewise.
13551         (freehook): Likewise.
13552         (mallochook): Likewise.
13553         (memalignhook): Likewise.
13554         (reallochook): Likewise.
13555         (mprobe): Likewise.
13556         * malloc/mtrace.c (mallwatch): Likewise.
13557         (tr_old_free_hook): Likewise.
13558         (tr_old_malloc_hook): Likewise.
13559         (tr_old_realloc_hook): Likewise.
13560         (tr_old_memalign_hook): Likewise.
13561         (tr_where): Likewise.
13562         (lock_and_info): Likewise.
13563         (tr_freehook): Likewise.
13564         (tr_mallochook): Likewise.
13565         (tr_reallochook): Likewise.
13566         (tr_memalignhook): Likewise.
13567         * misc/err.h [!__GNUC_VA_LIST] (__gnuc_va_list): Likewise.
13568         * misc/mmap.c (__mmap): Likewise.
13569         * misc/mmap64.c (__mmap64): Likewise.
13570         * misc/mprotect.c (__mprotect): Likewise.
13571         * misc/msync.c (msync): Likewise.
13572         * misc/munmap.c (__munmap): Likewise.
13573         * posix/posix_madvise.c (posix_madvise): Likewise.
13574         * socket/send.c (__send): Likewise.
13575         * socket/sendto.c (__sendto): Likewise.
13576         * socket/setsockopt.c (__setsockopt): Likewise.
13577         * string/memcmp.c (__ptr_t): Remove macro.
13578         (MEMCMP): Use void * instead of ptr_t.
13579         * string/memrchr.c (__ptr_t): Remove macro.
13580         (__memrchr): Use void * instead of ptr_t.
13581         * sysdeps/mach/hurd/dl-sysdep.c (__mmap): Likewise.
13582         * sysdeps/mach/hurd/mmap.c (__mmap): Likewise.
13583         * sysdeps/mach/hurd/mmap64.c (__mmap64): Likewise.
13584         * sysdeps/mach/mprotect.c (__mprotect): Likewise.
13585         * sysdeps/mach/msync.c (msync): Likewise.
13586         * sysdeps/mach/munmap.c (__munmap): Likewise.
13587         * sysdeps/mips/bits/setjmp.h (struct __jmp_buf_internal_tag):
13588         Likewise.
13589         * sysdeps/posix/getcwd.c (__getcwd): Likewise.
13590         * sysdeps/powerpc/powerpc32/memset.S (memset): Likewise.
13591         * sysdeps/powerpc/powerpc32/power4/memcpy.S (memcpy): Likewise.
13592         * sysdeps/powerpc/powerpc32/power4/memset.S (memset): Likewise.
13593         * sysdeps/powerpc/powerpc32/power6/memcpy.S (memcpy): Likewise.
13594         * sysdeps/powerpc/powerpc32/power6/memset.S (memset): Likewise.
13595         * sysdeps/powerpc/powerpc32/power7/memcpy.S (memcpy): Likewise.
13596         * sysdeps/powerpc/powerpc32/power7/mempcpy.S (__mempcpy):
13597         Likewise.
13598         * sysdeps/powerpc/powerpc32/power7/memset.S (memset): Likewise.
13599         * sysdeps/powerpc/powerpc64/memcpy.S (memcpy): Likewise.
13600         * sysdeps/powerpc/powerpc64/memset.S (memset): Likewise.
13601         * sysdeps/powerpc/powerpc64/power4/memcpy.S (memcpy): Likewise.
13602         * sysdeps/powerpc/powerpc64/power4/memset.S (memset): Likewise.
13603         * sysdeps/powerpc/powerpc64/power6/memcpy.S (memcpy): Likewise.
13604         * sysdeps/powerpc/powerpc64/power6/memset.S (memset): Likewise.
13605         * sysdeps/powerpc/powerpc64/power7/memcpy.S (memcpy): Likewise.
13606         * sysdeps/powerpc/powerpc64/power7/mempcpy.S (__mempcpy):
13607         Likewise.
13608         * sysdeps/powerpc/powerpc64/power7/memset.S (memset): Likewise.
13609         * sysdeps/powerpc/powerpc64/power8/memset.S (memset): Likewise.
13610         * sysdeps/tile/memcmp.c (__ptr_t): Remove macro.
13611         (MEMCMP): Use void * instead of ptr_t.
13612         * sysdeps/unix/sysv/linux/alpha/oldglob.c (old_glob_t): Likewise.
13613         * sysdeps/unix/sysv/linux/mmap.c (__mmap): Likewise.
13615 2017-08-08  Florian Weimer  <fweimer@redhat.com>
13617         * sysdeps/posix/getaddrinfo.c (gaih_inet): Remove unreachable
13618         return statement.
13620 2017-08-08  H.J. Lu  <hongjiu.lu@intel.com>
13622         [BZ #21913]
13623         * csu/libc-tls.c: Include <startup.h> first.
13624         (__libc_setup_tls): Call _startup_fatal instead of __libc_fatal.
13625         * elf/dl-tunables.c: Include <startup.h> first.
13626         * include/libc-symbols.h (BUILD_PIE_DEFAULT): New.
13627         * sysdeps/generic/startup.h: New file.
13628         * sysdeps/unix/sysv/linux/i386/startup.h: Likewise.
13629         * sysdeps/unix/sysv/linux/i386/brk.c [BUILD_PIE_DEFAULT != 0]
13630         (I386_USE_SYSENTER): New.  Defined to 0.
13632 2017-08-08  Andreas Schwab  <schwab@suse.de>
13634         [BZ #21041]
13635         * nptl/pt-longjmp.c (longjmp, siglongjmp): Don't use IFUNC resolver.
13636         * nptl/pt-system.c (system): Likewise.
13638 2017-08-07  Adhemerval Zanella  <adhemerval.zanella@linaro.org>
13640         [BZ #21780]
13641         * sysdeps/posix/preadv2.c (preadv2): Use ENOTSUP instead of
13642         EOPNOTSUPP.
13643         * sysdeps/posix/preadv64v2.c (preadv64v2): Likewise.
13644         * sysdeps/posix/pwritev2.c (pwritev2): Likewise.
13645         * sysdeps/posix/pwritev64v2.c (pwritev64v2): Likewise.
13646         * sysdeps/unix/sysv/linux/preadv2.c (preadv2): Likewise.
13647         * sysdeps/unix/sysv/linux/preadv64v2.c (preadv64v2): Likewise.
13648         * sysdeps/unix/sysv/linux/pwritev2.c (pwritev2): Likewise.
13649         * sysdeps/unix/sysv/linux/pwritev64v2.c (pwritev64v2): Likewise.
13651 2017-08-07  Joseph Myers  <joseph@codesourcery.com>
13653         [BZ #21899]
13654         * bits/sigaction.h (struct sigaction): Define sa_handler and
13655         sa_sigaction using union also for [__USE_XOPEN_EXTENDED].
13656         (SA_ONSTACK): Change [__USE_UNIX98] condition to
13657         [__USE_XOPEN_EXTENDED].
13658         (SA_RESTART): Likewise.
13659         (SA_NODEFER): Likewise.
13660         (SA_RESETHAND): Likewise.
13661         * sysdeps/unix/sysv/linux/alpha/bits/sigaction.h
13662         (struct sigaction): Define sa_handler and sa_sigaction using union
13663         also for [__USE_XOPEN_EXTENDED].
13664         (SA_ONSTACK): Change [__USE_UNIX98] condition to
13665         [__USE_XOPEN_EXTENDED].
13666         (SA_RESTART): Likewise.
13667         (SA_NODEFER): Likewise.
13668         (SA_RESETHAND): Likewise.
13669         * sysdeps/unix/sysv/linux/bits/sigaction.h
13670         (struct sigaction): Define sa_handler and sa_sigaction using union
13671         also for [__USE_XOPEN_EXTENDED].
13672         (SA_ONSTACK): Change [__USE_UNIX98] condition to
13673         [__USE_XOPEN_EXTENDED].
13674         (SA_RESTART): Likewise.
13675         (SA_NODEFER): Likewise.
13676         (SA_RESETHAND): Likewise.
13677         * sysdeps/unix/sysv/linux/hppa/bits/sigaction.h
13678         (struct sigaction): Define sa_handler and sa_sigaction using union
13679         also for [__USE_XOPEN_EXTENDED].
13680         (SA_ONSTACK): Change [__USE_UNIX98] condition to
13681         [__USE_XOPEN_EXTENDED].
13682         (SA_RESTART): Likewise.
13683         (SA_NODEFER): Likewise.
13684         (SA_RESETHAND): Likewise.
13685         * sysdeps/unix/sysv/linux/ia64/bits/sigaction.h
13686         (struct sigaction): Define sa_handler and sa_sigaction using union
13687         also for [__USE_XOPEN_EXTENDED].
13688         (SA_ONSTACK): Change [__USE_UNIX98] condition to
13689         [__USE_XOPEN_EXTENDED].
13690         (SA_RESTART): Likewise.
13691         (SA_NODEFER): Likewise.
13692         (SA_RESETHAND): Likewise.
13693         * sysdeps/unix/sysv/linux/mips/bits/sigaction.h
13694         (struct sigaction): Define sa_handler and sa_sigaction using union
13695         also for [__USE_XOPEN_EXTENDED].
13696         (SA_ONSTACK): Change [__USE_UNIX98] condition to
13697         [__USE_XOPEN_EXTENDED].
13698         (SA_RESTART): Likewise.
13699         (SA_NODEFER): Likewise.
13700         (SA_RESETHAND): Likewise.
13701         * sysdeps/unix/sysv/linux/s390/bits/sigaction.h
13702         (struct sigaction): Define sa_handler and sa_sigaction using union
13703         also for [__USE_XOPEN_EXTENDED].
13704         (SA_ONSTACK): Change [__USE_UNIX98] condition to
13705         [__USE_XOPEN_EXTENDED].
13706         (SA_RESTART): Likewise.
13707         (SA_NODEFER): Likewise.
13708         (SA_RESETHAND): Likewise.
13709         * sysdeps/unix/sysv/linux/sparc/bits/sigaction.h
13710         (struct sigaction): Define sa_handler and sa_sigaction using union
13711         also for [__USE_XOPEN_EXTENDED].
13712         (SA_ONSTACK): Change [__USE_UNIX98] condition to
13713         [__USE_XOPEN_EXTENDED].
13714         (SA_RESTART): Likewise.
13715         (SA_NODEFER): Likewise.  Define directly rather than as alias.
13716         (SA_RESETHAND): Likewise.
13717         (SA_INTERRUPT): Define only for [__USE_MISC].
13718         (SA_NOMASK): Define as alias of SA_NODEFER, only for [__USE_MISC].
13719         (SA_ONESHOT): Define as alias of SA_RESETHAND, only for
13720         [__USE_MISC].
13721         (SA_STACK): Define only for [__USE_MISC].
13722         * sysdeps/unix/sysv/linux/tile/bits/sigaction.h
13723         (struct sigaction): Define sa_handler and sa_sigaction using union
13724         also for [__USE_XOPEN_EXTENDED].
13725         (SA_ONSTACK): Change [__USE_UNIX98] condition to
13726         [__USE_XOPEN_EXTENDED].
13727         (SA_RESTART): Likewise.
13728         (SA_NODEFER): Likewise.
13729         (SA_RESETHAND): Likewise.
13730         (SA_NOPTRACE): Define only for [__USE_MISC].
13732         * catgets/catgets.c (catgets): Use uintN_t instead of u_intN_t.
13733         * catgets/catgetsinfo.h (struct catalog_obj): Likewise.
13734         (struct catalog_info): Likewise.
13735         * inet/htontest.c (lo): Likewise.
13736         (foo): Likewise.
13737         * inet/inet_lnaof.c (inet_lnaof): Likewise.
13738         * inet/inet_net.c (inet_network): Likewise.
13739         * inet/inet_netof.c (inet_netof): Likewise.
13740         * inet/rcmd.c (__ivaliduser): Likewise.
13741         (iruserok): Likewise.
13742         * locale/loadlocale.c (_nl_intern_locale_data): Likewise.
13743         * locale/programs/locale-spec.c (locale_special): Likewise.
13744         * nis/nis_findserv.c (struct findserv_req): Likewise.
13745         (__nis_findfastest_with_timeout): Likewise.
13746         * nss/test-netdb.c (test_network): Likewise.
13747         * resolv/inet_neta.c (inet_neta): Likewise.
13748         * resolv/ns_date.c (ns_datetosecs): Likewise.
13749         (SECS_PER_DAY): Likewise.
13750         * resolv/nss_dns/dns-network.c (_nss_dns_getnetbyaddr_r):
13751         Likewise.
13752         * resolv/res_comp.c (__putlong): Likewise.
13753         (__putshort): Likewise.
13754         (_getlong): Likewise.
13755         (_getshort): Likewise.
13756         * resolv/res_debug.c (p_time): Likewise.
13757         (precsize_ntoa): Likewise.
13758         (precsize_aton): Likewise.
13759         (latlon2ul): Likewise.
13760         (loc_aton): Likewise.
13761         (loc_ntoa): Likewise.
13762         * resolv/res_hconf.c (struct netaddr): Likewise.
13763         (_res_hconf_reorder_addrs): Likewise.
13764         * sunrpc/clnt_tcp.c (clnttcp_call): Likewise.
13765         (clnttcp_control): Likewise.
13766         * sunrpc/clnt_udp.c (clntudp_call): Likewise.
13767         (clntudp_control): Likewise.
13768         * sunrpc/clnt_unix.c (clntunix_call): Likewise.
13769         (clntunix_control): Likewise.
13770         * sunrpc/pmap_rmt.c (clnt_broadcast): Likewise.
13771         * sunrpc/rpc/auth.h (union des_block): Likewise.
13772         * sunrpc/tst-udp-nonblocking.c (do_test): Likewise.
13773         * sunrpc/xdr_rec.c (struct rec_strm): Likewise.
13774         (xdrrec_create): Likewise.
13775         (xdrrec_endofrecord): Likewise.
13776         (flush_out): Likewise.
13777         * sunrpc/xdr_stdio.c (xdrstdio_getlong): Likewise.
13778         (xdrstdio_putlong): Likewise.
13779         * sysdeps/unix/sysv/linux/errqueue.h (struct sock_extended_err):
13780         Likewise.
13782         * misc/sys/cdefs.h (__long_double_t): Remove.
13783         * stdio-common/printf_fp.c (__printf_fp_l): Use long double
13784         instead of __long_double_t,
13785         * stdlib/strfmon_l.c (__vstrfmon_l): Likewise.
13787 2017-08-07  Siddhesh Poyarekar  <siddhesh@sourceware.org>
13789         * benchtests/scripts/compare_strings.py: Avoid display error when
13790         running on a text terminal.
13792         * benchtests/scripts/compare_strings.py (main): Add an
13793         optional -base option.
13794         (process_results): New argument base_func.
13796         * benchtests/bench-memcpy.c (test_main): Use TEST_NAME instead of
13797         hardcoding memcpy.
13798         * benchtests/bench-memcpy-large.c (test_name): Likewise.
13799         * benchtests/bench-memcpy-random.c (test_name): Likewise.
13801 2017-08-07  Andreas Schwab  <schwab@suse.de>
13803         * elf/Makefile ($(objpfx)tst-pathopt.out): Redirect output to target.
13804         * grp/Makefile ($(objpfx)tst_fgetgrent.out): Likewise.
13805         * intl/Makefile ($(objpfx)tst-gettext.out)
13806         ($(objpfx)tst-translit.out, $(objpfx)tst-gettext2.out)
13807         ($(objpfx)tst-gettext4.out, $(objpfx)tst-gettext6.out): Likewise.
13808         * libio/Makefile ($(objpfx)test-freopen.out): Likewise.
13809         * malloc/Makefile ($(objpfx)tst-mtrace.out): Likewise.
13810         * nptl/Makefile ($(objpfx)tst-tls6.out): Likewise.
13811         * posix/Makefile ($(objpfx)globtest.out)
13812         ($(objpfx)wordexp-tst.out, $(objpfx)tst-getconf.out): Likewise.
13813         * stdio-common/Makefile ($(objpfx)tst-unbputc.out)
13814         ($(objpfx)tst-printf.out): Likewise.
13815         * stdlib/Makefile ($(objpfx)tst-fmtmsg.out)
13816         ($(objpfx)tst-setcontext3.out): Likewise.
13818 2017-08-07  H.J. Lu  <hongjiu.lu@intel.com>
13820         * sysdeps/x86_64/fpu/multiarch/Makefile (libm-sysdep_routines):
13821         Add e_exp-fma, e_log-fma, e_pow-fma, s_atan-fma, e_asin-fma,
13822         e_atan2-fma, s_sin-fma, s_tan-fma, mplog-fma, mpa-fma,
13823         slowexp-fma, slowpow-fma, sincos32-fma, doasin-fma, dosincos-fma,
13824         halfulp-fma, mpexp-fma, mpatan2-fma, mpatan-fma, mpsqrt-fma,
13825         and mptan-fma.
13826         (CFLAGS-doasin-fma.c): New.
13827         (CFLAGS-dosincos-fma.c): Likewise.
13828         (CFLAGS-e_asin-fma.c): Likewise.
13829         (CFLAGS-e_atan2-fma.c): Likewise.
13830         (CFLAGS-e_exp-fma.c): Likewise.
13831         (CFLAGS-e_log-fma.c): Likewise.
13832         (CFLAGS-e_pow-fma.c): Likewise.
13833         (CFLAGS-halfulp-fma.c): Likewise.
13834         (CFLAGS-mpa-fma.c): Likewise.
13835         (CFLAGS-mpatan-fma.c): Likewise.
13836         (CFLAGS-mpatan2-fma.c): Likewise.
13837         (CFLAGS-mpexp-fma.c): Likewise.
13838         (CFLAGS-mplog-fma.c): Likewise.
13839         (CFLAGS-mpsqrt-fma.c): Likewise.
13840         (CFLAGS-mptan-fma.c): Likewise.
13841         (CFLAGS-s_atan-fma.c): Likewise.
13842         (CFLAGS-sincos32-fma.c): Likewise.
13843         (CFLAGS-slowexp-fma.c): Likewise.
13844         (CFLAGS-slowpow-fma.c): Likewise.
13845         (CFLAGS-s_sin-fma.c): Likewise.
13846         (CFLAGS-s_tan-fma.c): Likewise.
13847         * sysdeps/x86_64/fpu/multiarch/doasin-fma.c: New file.
13848         * sysdeps/x86_64/fpu/multiarch/dosincos-fma.c: Likewise.
13849         * sysdeps/x86_64/fpu/multiarch/e_asin-fma.c: Likewise.
13850         * sysdeps/x86_64/fpu/multiarch/e_atan2-fma.c: Likewise.
13851         * sysdeps/x86_64/fpu/multiarch/e_exp-fma.c: Likewise.
13852         * sysdeps/x86_64/fpu/multiarch/e_log-fma.c: Likewise.
13853         * sysdeps/x86_64/fpu/multiarch/e_pow-fma.c: Likewise.
13854         * sysdeps/x86_64/fpu/multiarch/halfulp-fma.c: Likewise.
13855         * sysdeps/x86_64/fpu/multiarch/ifunc-avx-fma4.h: Likewise.
13856         * sysdeps/x86_64/fpu/multiarch/ifunc-fma4.h: Likewise.
13857         * sysdeps/x86_64/fpu/multiarch/mpa-fma.c: Likewise.
13858         * sysdeps/x86_64/fpu/multiarch/mpatan-fma.c: Likewise.
13859         * sysdeps/x86_64/fpu/multiarch/mpatan2-fma.c: Likewise.
13860         * sysdeps/x86_64/fpu/multiarch/mpexp-fma.c: Likewise.
13861         * sysdeps/x86_64/fpu/multiarch/mplog-fma.c: Likewise.
13862         * sysdeps/x86_64/fpu/multiarch/mpsqrt-fma.c: Likewise.
13863         * sysdeps/x86_64/fpu/multiarch/mptan-fma.c: Likewise.
13864         * sysdeps/x86_64/fpu/multiarch/s_atan-fma.c: Likewise.
13865         * sysdeps/x86_64/fpu/multiarch/s_sin-fma.c: Likewise.
13866         * sysdeps/x86_64/fpu/multiarch/s_tan-fma.c: Likewise.
13867         * sysdeps/x86_64/fpu/multiarch/sincos32-fma.c: Likewise.
13868         * sysdeps/x86_64/fpu/multiarch/slowexp-fma.c: Likewise.
13869         * sysdeps/x86_64/fpu/multiarch/slowpow-fma.c: Likewise.
13870         * sysdeps/x86_64/fpu/multiarch/e_asin.c: Rewrite.
13871         * sysdeps/x86_64/fpu/multiarch/e_atan2.c: Likewise.
13872         * sysdeps/x86_64/fpu/multiarch/e_exp.c: Likewise.
13873         * sysdeps/x86_64/fpu/multiarch/e_log.c: Likewise.
13874         * sysdeps/x86_64/fpu/multiarch/e_pow.c: Likewise.
13875         * sysdeps/x86_64/fpu/multiarch/s_atan.c: Likewise.
13876         * sysdeps/x86_64/fpu/multiarch/s_sin.c: Likewise.
13877         * sysdeps/x86_64/fpu/multiarch/s_tan.c: Likewise.
13879 2017-08-04  Joseph Myers  <joseph@codesourcery.com>
13881         * sysdeps/generic/math_private.h (__EXPR_FLT128): Remove macro.
13882         (min_of_type_f): New macro.
13883         (min_of_type_): Likewise.
13884         (min_of_type_l): Likewise.
13885         (min_of_type_f128): Likewise.
13886         (min_of_type): Define using __MATH_TG and taking an expression
13887         argument.
13888         (math_check_force_underflow): Pass expression instead of type to
13889         min_of_type.
13890         (math_check_force_underflow_nonneg): Likewise.
13892 2017-08-04  H.J. Lu  <hongjiu.lu@intel.com>
13894         * sysdeps/x86/cpu-features.h [__ASSEMBLER__]
13895         (LOAD_RTLD_GLOBAL_RO_RDX, HAS_FEATURE, LOAD_FUNC_GOT_EAX,
13896         HAS_CPU_FEATURE, HAS_ARCH_FEATURE): Removed.
13898 2017-08-04  H.J. Lu  <hongjiu.lu@intel.com>
13900         * sysdeps/i386/i686/multiarch/Makefile (sysdep_routines): Add
13901         bcopy-ia32, bzero-ia32, rawmemchr-ia32 memchr-ia32,
13902         memcmp-ia32, memcpy-ia32, memmove-ia32, mempcpy-ia32,
13903         memset-ia32, strcat-ia32, strchr-ia32, strrchr-ia32,
13904         strcpy-ia32, strcmp-ia32, strcspn-ia32, strpbrk-ia32,
13905         strspn-ia32, strlen-ia32, stpcpy-ia32, stpncpy-ia32,
13906         memcpy_chk-nonshared, mempcpy_chk-nonshared,
13907         memmove_chk-nonshared and memset_chk-nonshared
13908         * sysdeps/i386/i686/multiarch/bcopy-ia32.S: New file.
13909         * sysdeps/i386/i686/multiarch/bcopy.c: Likewise.
13910         * sysdeps/i386/i686/multiarch/bzero-ia32.S: Likewise.
13911         * sysdeps/i386/i686/multiarch/bzero.c: Likewise.
13912         * sysdeps/i386/i686/multiarch/ifunc-memmove.h: Likewise.
13913         * sysdeps/i386/i686/multiarch/ifunc-memset.h: Likewise.
13914         * sysdeps/i386/i686/multiarch/ifunc-sse2-bsf.h: Likewise.
13915         * sysdeps/i386/i686/multiarch/ifunc-sse2-ssse3.h: Likewise.
13916         * sysdeps/i386/i686/multiarch/ifunc-sse2.h: Likewise.
13917         * sysdeps/i386/i686/multiarch/ifunc-sse4_2.h: Likewise.
13918         * sysdeps/i386/i686/multiarch/ifunc-ssse3-sse4_2.h: Likewise.
13919         * sysdeps/i386/i686/multiarch/memchr-ia32.S: Likewise.
13920         * sysdeps/i386/i686/multiarch/memchr.c: Likewise.
13921         * sysdeps/i386/i686/multiarch/memcmp-ia32.S: Likewise.
13922         * sysdeps/i386/i686/multiarch/memcmp.c: Likewise.
13923         * sysdeps/i386/i686/multiarch/memcpy-ia32.S: Likewise.
13924         * sysdeps/i386/i686/multiarch/memcpy.c: Likewise.
13925         * sysdeps/i386/i686/multiarch/memcpy_chk-nonshared.S: Likewise.
13926         * sysdeps/i386/i686/multiarch/memcpy_chk.c: Likewise.
13927         * sysdeps/i386/i686/multiarch/memmove-ia32.S: Likewise.
13928         * sysdeps/i386/i686/multiarch/memmove.c: Likewise.
13929         * sysdeps/i386/i686/multiarch/memmove_chk-nonshared.S: Likewise.
13930         * sysdeps/i386/i686/multiarch/memmove_chk.c: Likewise.
13931         * sysdeps/i386/i686/multiarch/mempcpy-ia32.S: Likewise.
13932         * sysdeps/i386/i686/multiarch/mempcpy.c: Likewise.
13933         * sysdeps/i386/i686/multiarch/mempcpy_chk-nonshared.S: Likewise.
13934         * sysdeps/i386/i686/multiarch/mempcpy_chk.c: Likewise.
13935         * sysdeps/i386/i686/multiarch/memrchr.c: Likewise.
13936         * sysdeps/i386/i686/multiarch/memset-ia32.S: Likewise.
13937         * sysdeps/i386/i686/multiarch/memset.c: Likewise.
13938         * sysdeps/i386/i686/multiarch/memset_chk-nonshared.S: Likewise.
13939         * sysdeps/i386/i686/multiarch/rawmemchr-ia32.S: Likewise.
13940         * sysdeps/i386/i686/multiarch/rawmemchr.c: Likewise.
13941         * sysdeps/i386/i686/multiarch/stpcpy-ia32.S: Likewise.
13942         * sysdeps/i386/i686/multiarch/stpcpy-ia32.S: Likewise.
13943         * sysdeps/i386/i686/multiarch/stpcpy.c: Likewise.
13944         * sysdeps/i386/i686/multiarch/stpncpy-ia32.S: Likewise.
13945         * sysdeps/i386/i686/multiarch/stpncpy.c: Likewise.
13946         * sysdeps/i386/i686/multiarch/strcasecmp.c: Likewise.
13947         * sysdeps/i386/i686/multiarch/strcasecmp_l.c: Likewise.
13948         * sysdeps/i386/i686/multiarch/strcat-ia32.S: Likewise.
13949         * sysdeps/i386/i686/multiarch/strcat.c: Likewise.
13950         * sysdeps/i386/i686/multiarch/strchr-ia32.S: Likewise.
13951         * sysdeps/i386/i686/multiarch/strchr.c: Likewise.
13952         * sysdeps/i386/i686/multiarch/strcmp-ia32.S: Likewise.
13953         * sysdeps/i386/i686/multiarch/strcmp.c: Likewise.
13954         * sysdeps/i386/i686/multiarch/strcpy-ia32.S: Likewise.
13955         * sysdeps/i386/i686/multiarch/strcpy.c: Likewise.
13956         * sysdeps/i386/i686/multiarch/strcspn-ia32.S: Likewise.
13957         * sysdeps/i386/i686/multiarch/strcspn.c: Likewise.
13958         * sysdeps/i386/i686/multiarch/strlen-ia32.S: Likewise.
13959         * sysdeps/i386/i686/multiarch/strlen.c: Likewise.
13960         * sysdeps/i386/i686/multiarch/strncase.c: Likewise.
13961         * sysdeps/i386/i686/multiarch/strncase_l.c: Likewise.
13962         * sysdeps/i386/i686/multiarch/strncat.c: Likewise.
13963         * sysdeps/i386/i686/multiarch/strncmp.c: Likewise.
13964         * sysdeps/i386/i686/multiarch/strncpy.c: Likewise.
13965         * sysdeps/i386/i686/multiarch/strnlen.c: Likewise.
13966         * sysdeps/i386/i686/multiarch/strpbrk-ia32.S: Likewise.
13967         * sysdeps/i386/i686/multiarch/strpbrk.c: Likewise.
13968         * sysdeps/i386/i686/multiarch/strrchr-ia32.S: Likewise.
13969         * sysdeps/i386/i686/multiarch/strrchr.c: Likewise.
13970         * sysdeps/i386/i686/multiarch/strspn-ia32.S: Likewise.
13971         * sysdeps/i386/i686/multiarch/strspn.c: Likewise.
13972         * sysdeps/i386/i686/multiarch/wcschr.c: Likewise.
13973         * sysdeps/i386/i686/multiarch/wcscmp.c: Likewise.
13974         * sysdeps/i386/i686/multiarch/wcscpy.c: Likewise.
13975         * sysdeps/i386/i686/multiarch/wcslen.c: Likewise.
13976         * sysdeps/i386/i686/multiarch/wcsrchr.c: Likewise.
13977         * sysdeps/i386/i686/multiarch/wmemcmp.c: Likewise.
13978         * sysdeps/i386/i686/multiarch/bcopy.S: Removed.
13979         * sysdeps/i386/i686/multiarch/bzero.S: Likewise.
13980         * sysdeps/i386/i686/multiarch/memchr.S: Likewise.
13981         * sysdeps/i386/i686/multiarch/memcmp.S: Likewise.
13982         * sysdeps/i386/i686/multiarch/memcpy.S: Likewise.
13983         * sysdeps/i386/i686/multiarch/memcpy_chk.S: Likewise.
13984         * sysdeps/i386/i686/multiarch/memmove.S: Likewise.
13985         * sysdeps/i386/i686/multiarch/memmove_chk.S: Likewise.
13986         * sysdeps/i386/i686/multiarch/mempcpy.S: Likewise.
13987         * sysdeps/i386/i686/multiarch/mempcpy_chk.S: Likewise.
13988         * sysdeps/i386/i686/multiarch/memrchr.S: Likewise.
13989         * sysdeps/i386/i686/multiarch/memset.S: Likewise.
13990         * sysdeps/i386/i686/multiarch/memset_chk.S: Likewise.
13991         * sysdeps/i386/i686/multiarch/rawmemchr.S: Likewise.
13992         * sysdeps/i386/i686/multiarch/stpcpy.S: Likewise.
13993         * sysdeps/i386/i686/multiarch/stpncpy.S: Likewise.
13994         * sysdeps/i386/i686/multiarch/strcasecmp.S: Likewise.
13995         * sysdeps/i386/i686/multiarch/strcasecmp_l.S: Likewise.
13996         * sysdeps/i386/i686/multiarch/strcat.S: Likewise.
13997         * sysdeps/i386/i686/multiarch/strcmp.S: Likewise.
13998         * sysdeps/i386/i686/multiarch/strcpy.S: Likewise.
13999         * sysdeps/i386/i686/multiarch/strcspn.S: Likewise.
14000         * sysdeps/i386/i686/multiarch/strlen.S: Likewise.
14001         * sysdeps/i386/i686/multiarch/strncase.S: Likewise.
14002         * sysdeps/i386/i686/multiarch/strncase_l.S: Likewise.
14003         * sysdeps/i386/i686/multiarch/strncat.S: Likewise.
14004         * sysdeps/i386/i686/multiarch/strncmp.S: Likewise.
14005         * sysdeps/i386/i686/multiarch/strncpy.S: Likewise.
14006         * sysdeps/i386/i686/multiarch/strnlen.S: Likewise.
14007         * sysdeps/i386/i686/multiarch/strpbrk.S: Likewise.
14008         * sysdeps/i386/i686/multiarch/strrchr.S: Likewise.
14009         * sysdeps/i386/i686/multiarch/strspn.S: Likewise.
14010         * sysdeps/i386/i686/multiarch/wcschr.S: Likewise.
14011         * sysdeps/i386/i686/multiarch/wcscmp.S: Likewise.
14012         * sysdeps/i386/i686/multiarch/wcscpy.S: Likewise.
14013         * sysdeps/i386/i686/multiarch/wcslen.S: Likewise.
14014         * sysdeps/i386/i686/multiarch/wcsrchr.S: Likewise.
14015         * sysdeps/i386/i686/multiarch/wmemcmp.S: Likewise.
14017 2017-08-04  H.J. Lu  <hongjiu.lu@intel.com>
14019         * sysdeps/x86_64/fpu/multiarch/Makefile (libmvec-sysdep_routines)
14020         Add svml_d_cos2_core-sse2, svml_d_cos4_core-sse,
14021         svml_d_cos8_core-avx2, svml_d_exp2_core-sse2,
14022         svml_d_exp4_core-sse, svml_d_exp8_core-avx2,
14023         svml_d_log2_core-sse2, svml_d_log4_core-sse,
14024         svml_d_log8_core-avx2, svml_d_pow2_core-sse2,
14025         svml_d_pow4_core-sse, svml_d_pow8_core-avx2
14026         svml_d_sin2_core-sse2, svml_d_sin4_core-sse,
14027         svml_d_sin8_core-avx2, svml_d_sincos2_core-sse2,
14028         svml_d_sincos4_core-sse, svml_d_sincos8_core-avx2,
14029         svml_s_cosf16_core-avx2, svml_s_cosf4_core-sse2,
14030         svml_s_cosf8_core-sse, svml_s_expf16_core-avx2,
14031         svml_s_expf4_core-sse2, svml_s_expf8_core-sse,
14032         svml_s_logf16_core-avx2, svml_s_logf4_core-sse2,
14033         svml_s_logf8_core-sse, svml_s_powf16_core-avx2,
14034         svml_s_powf4_core-sse2, svml_s_powf8_core-sse,
14035         svml_s_sincosf16_core-avx2, svml_s_sincosf4_core-sse2,
14036         svml_s_sincosf8_core-sse, svml_s_sinf16_core-avx2,
14037         svml_s_sinf4_core-sse2 and svml_s_sinf8_core-sse.
14038         * sysdeps/x86_64/fpu/multiarch/ifunc-mathvec-avx2.h: New file.
14039         * sysdeps/x86_64/fpu/multiarch/ifunc-mathvec-avx512.h: Likewise.
14040         * sysdeps/x86_64/fpu/multiarch/ifunc-mathvec-sse4_1.h: Likewise.
14041         * sysdeps/x86_64/fpu/multiarch/svml_d_cos2_core.c: Likewise.
14042         * sysdeps/x86_64/fpu/multiarch/svml_d_cos4_core.c: Likewise.
14043         * sysdeps/x86_64/fpu/multiarch/svml_d_cos8_core.c: Likewise.
14044         * sysdeps/x86_64/fpu/multiarch/svml_d_exp2_core.c: Likewise.
14045         * sysdeps/x86_64/fpu/multiarch/svml_d_exp4_core.c: Likewise.
14046         * sysdeps/x86_64/fpu/multiarch/svml_d_exp8_core.c: Likewise.
14047         * sysdeps/x86_64/fpu/multiarch/svml_d_log2_core.c: Likewise.
14048         * sysdeps/x86_64/fpu/multiarch/svml_d_log4_core.c: Likewise.
14049         * sysdeps/x86_64/fpu/multiarch/svml_d_log8_core.c: Likewise.
14050         * sysdeps/x86_64/fpu/multiarch/svml_d_pow2_core.c: Likewise.
14051         * sysdeps/x86_64/fpu/multiarch/svml_d_pow4_core.c: Likewise.
14052         * sysdeps/x86_64/fpu/multiarch/svml_d_pow8_core.c: Likewise.
14053         * sysdeps/x86_64/fpu/multiarch/svml_d_sin2_core.c: Likewise.
14054         * sysdeps/x86_64/fpu/multiarch/svml_d_sin4_core.c: Likewise.
14055         * sysdeps/x86_64/fpu/multiarch/svml_d_sin8_core.c: Likewise.
14056         * sysdeps/x86_64/fpu/multiarch/svml_d_sincos2_core.c: Likewise.
14057         * sysdeps/x86_64/fpu/multiarch/svml_d_sincos4_core.c: Likewise.
14058         * sysdeps/x86_64/fpu/multiarch/svml_d_sincos8_core.c: Likewise.
14059         * sysdeps/x86_64/fpu/multiarch/svml_d_cosf16_core.c: Likewise.
14060         * sysdeps/x86_64/fpu/multiarch/svml_d_cosf4_core.c: Likewise.
14061         * sysdeps/x86_64/fpu/multiarch/svml_d_cosf8_core.c: Likewise.
14062         * sysdeps/x86_64/fpu/multiarch/svml_d_expf16_core.c: Likewise.
14063         * sysdeps/x86_64/fpu/multiarch/svml_d_expf4_core.c: Likewise.
14064         * sysdeps/x86_64/fpu/multiarch/svml_d_expf8_core.c: Likewise.
14065         * sysdeps/x86_64/fpu/multiarch/svml_d_logf16_core.c: Likewise.
14066         * sysdeps/x86_64/fpu/multiarch/svml_d_logf4_core.c: Likewise.
14067         * sysdeps/x86_64/fpu/multiarch/svml_d_logf8_core.c: Likewise.
14068         * sysdeps/x86_64/fpu/multiarch/svml_d_powf16_core.c: Likewise.
14069         * sysdeps/x86_64/fpu/multiarch/svml_d_powf4_core.c: Likewise.
14070         * sysdeps/x86_64/fpu/multiarch/svml_d_powf8_core.c: Likewise.
14071         * sysdeps/x86_64/fpu/multiarch/svml_d_sincosf16_core.c: Likewise.
14072         * sysdeps/x86_64/fpu/multiarch/svml_d_sincosf4_core.c: Likewise.
14073         * sysdeps/x86_64/fpu/multiarch/svml_d_sincosf8_core.c: Likewise.
14074         * sysdeps/x86_64/fpu/multiarch/svml_d_sinf16_core.c: Likewise.
14075         * sysdeps/x86_64/fpu/multiarch/svml_d_sinf4_core.c: Likewise.
14076         * sysdeps/x86_64/fpu/multiarch/svml_d_sinf8_core.c: Likewise.
14077         * sysdeps/x86_64/fpu/multiarch/svml_d_cos2_core.S:  Renamed to
14078         ...
14079         * sysdeps/x86_64/fpu/multiarch/svml_d_cos2_core-sse2.S: This.
14080         Don't include <sysdep.h> nor <init-arch.h>.
14081         (_ZGVbN2v_cos): Removed.
14082         * sysdeps/x86_64/fpu/multiarch/svml_d_cos4_core.S:  Renamed to
14083         ...
14084         * sysdeps/x86_64/fpu/multiarch/svml_d_cos4_core-sse.S: This.
14085         Don't include <sysdep.h> nor <init-arch.h>.
14086         (_ZGVdN4v_cos): Removed.
14087         * sysdeps/x86_64/fpu/multiarch/svml_d_cos8_core.S:  Renamed to
14088         ...
14089         * sysdeps/x86_64/fpu/multiarch/svml_d_cos8_core-avx2.S: This.
14090         Don't include <sysdep.h> nor <init-arch.h>.
14091         (_ZGVeN8v_cos): Removed.
14092         * sysdeps/x86_64/fpu/multiarch/svml_d_exp2_core.S:  Renamed to
14093         ...
14094         * sysdeps/x86_64/fpu/multiarch/svml_d_exp2_core-sse2.S: This.
14095         Don't include <sysdep.h> nor <init-arch.h>.
14096         (_ZGVbN2v_exp): Removed.
14097         * sysdeps/x86_64/fpu/multiarch/svml_d_exp4_core.S:  Renamed to
14098         ...
14099         * sysdeps/x86_64/fpu/multiarch/svml_d_exp4_core-sse.S: This.
14100         Don't include <sysdep.h> nor <init-arch.h>.
14101         (_ZGVdN4v_exp): Removed.
14102         * sysdeps/x86_64/fpu/multiarch/svml_d_exp8_core.S:  Renamed to
14103         ...
14104         * sysdeps/x86_64/fpu/multiarch/svml_d_exp8_core-avx2.S: This.
14105         Don't include <sysdep.h> nor <init-arch.h>.
14106         (_ZGVeN8v_exp): Removed.
14107         * sysdeps/x86_64/fpu/multiarch/svml_d_log2_core.S:  Renamed to
14108         ...
14109         * sysdeps/x86_64/fpu/multiarch/svml_d_log2_core-sse2.S: This.
14110         Don't include <sysdep.h> nor <init-arch.h>.
14111         (_ZGVbN2v_log): Removed.
14112         * sysdeps/x86_64/fpu/multiarch/svml_d_log4_core.S:  Renamed to
14113         ...
14114         * sysdeps/x86_64/fpu/multiarch/svml_d_log4_core-sse.S: This.
14115         Don't include <sysdep.h> nor <init-arch.h>.
14116         (_ZGVdN4v_log): Removed.
14117         * sysdeps/x86_64/fpu/multiarch/svml_d_log8_core.S:  Renamed to
14118         ...
14119         * sysdeps/x86_64/fpu/multiarch/svml_d_log8_core-avx2.S: This.
14120         Don't include <sysdep.h> nor <init-arch.h>.
14121         (_ZGVeN8v_log): Removed.
14122         * sysdeps/x86_64/fpu/multiarch/svml_d_pow2_core.S:  Renamed to
14123         ...
14124         * sysdeps/x86_64/fpu/multiarch/svml_d_pow2_core-sse2.S: This.
14125         Don't include <sysdep.h> nor <init-arch.h>.
14126         (_ZGVbN2vv_pow): Removed.
14127         * sysdeps/x86_64/fpu/multiarch/svml_d_pow4_core.S:  Renamed to
14128         ...
14129         * sysdeps/x86_64/fpu/multiarch/svml_d_pow4_core-sse.S: This.
14130         Don't include <sysdep.h> nor <init-arch.h>.
14131         (_ZGVdN4vv_pow): Removed.
14132         * sysdeps/x86_64/fpu/multiarch/svml_d_pow8_core.S:  Renamed to
14133         ...
14134         * sysdeps/x86_64/fpu/multiarch/svml_d_pow8_core-avx2.S: This.
14135         Don't include <sysdep.h> nor <init-arch.h>.
14136         (_ZGVeN8vv_pow): Removed.
14137         * sysdeps/x86_64/fpu/multiarch/svml_d_sin2_core.S:  Renamed to
14138         ...
14139         * sysdeps/x86_64/fpu/multiarch/svml_d_sin2_core-sse2.S: This.
14140         Don't include <sysdep.h> nor <init-arch.h>.
14141         (_ZGVbN2v_sin): Removed.
14142         * sysdeps/x86_64/fpu/multiarch/svml_d_sin4_core.S:  Renamed to
14143         ...
14144         * sysdeps/x86_64/fpu/multiarch/svml_d_sin4_core-sse.S: This.
14145         Don't include <sysdep.h> nor <init-arch.h>.
14146         (_ZGVbN4v_sin): Removed.
14147         * sysdeps/x86_64/fpu/multiarch/svml_d_sin8_core.S:  Renamed to
14148         ...
14149         * sysdeps/x86_64/fpu/multiarch/svml_d_sin8_core-avx2.S: This.
14150         Don't include <sysdep.h> nor <init-arch.h>.
14151         (_ZGVbN8v_sin): Removed.
14152         * sysdeps/x86_64/fpu/multiarch/svml_d_sincos2_core.S:  Renamed to
14153         ...
14154         * sysdeps/x86_64/fpu/multiarch/svml_d_sincos2_core-sse2.S: This.
14155         Don't include <sysdep.h> nor <init-arch.h>.
14156         (_ZGVbN2vvv_sincos): Removed.
14157         * sysdeps/x86_64/fpu/multiarch/svml_d_sincos4_core.S:  Renamed to
14158         ...
14159         * sysdeps/x86_64/fpu/multiarch/svml_d_sincos4_core-sse.S: This.
14160         Don't include <sysdep.h> nor <init-arch.h>.
14161         (_ZGVdN4vvv_sincos): Removed.
14162         * sysdeps/x86_64/fpu/multiarch/svml_d_sincos8_core.S:  Renamed to
14163         ...
14164         * sysdeps/x86_64/fpu/multiarch/svml_d_sincos8_core-avx2.S: This.
14165         Don't include <sysdep.h> nor <init-arch.h>.
14166         (_ZGVeN8vvv_sincos): Removed.
14167         * sysdeps/x86_64/fpu/multiarch/svml_d_cosf16_core.S:  Renamed to
14168         ...
14169         * sysdeps/x86_64/fpu/multiarch/svml_d_cosf16_core-avx2.S: This.
14170         Don't include <sysdep.h> nor <init-arch.h>.
14171         (_ZGVeN16v_cosf): Removed.
14172         * sysdeps/x86_64/fpu/multiarch/svml_d_cosf4_core.S:  Renamed to
14173         ...
14174         * sysdeps/x86_64/fpu/multiarch/svml_d_cosf4_core-sse2.S: This.
14175         Don't include <sysdep.h> nor <init-arch.h>.
14176         (_ZGVbN4v_cosf): Removed.
14177         * sysdeps/x86_64/fpu/multiarch/svml_d_cosf8_core.S:  Renamed to
14178         ...
14179         * sysdeps/x86_64/fpu/multiarch/svml_d_cosf8_core-sse.S: This.
14180         Don't include <sysdep.h> nor <init-arch.h>.
14181         (_ZGVdN8v_cosf): Removed.
14182         * sysdeps/x86_64/fpu/multiarch/svml_d_expf16_core.S:  Renamed to
14183         ...
14184         * sysdeps/x86_64/fpu/multiarch/svml_d_expf16_core-avx2.S: This.
14185         Don't include <sysdep.h> nor <init-arch.h>.
14186         (_ZGVeN16v_expf): Removed.
14187         * sysdeps/x86_64/fpu/multiarch/svml_d_expf4_core.S:  Renamed to
14188         ...
14189         * sysdeps/x86_64/fpu/multiarch/svml_d_expf4_core-sse2.S: This.
14190         Don't include <sysdep.h> nor <init-arch.h>.
14191         (_ZGVbN4v_expf): Removed.
14192         * sysdeps/x86_64/fpu/multiarch/svml_d_expf8_core.S:  Renamed to
14193         ...
14194         * sysdeps/x86_64/fpu/multiarch/svml_d_expf8_core-sse.S: This.
14195         Don't include <sysdep.h> nor <init-arch.h>.
14196         (_ZGVdN8v_expf): Removed.
14197         * sysdeps/x86_64/fpu/multiarch/svml_d_logf16_core.S:  Renamed to
14198         ...
14199         * sysdeps/x86_64/fpu/multiarch/svml_d_logf16_core-avx2.S: This.
14200         Don't include <sysdep.h> nor <init-arch.h>.
14201         (_ZGVeN16v_logf): Removed.
14202         * sysdeps/x86_64/fpu/multiarch/svml_d_logf4_core.S:  Renamed to
14203         ...
14204         * sysdeps/x86_64/fpu/multiarch/svml_d_logf4_core-sse2.S: This.
14205         Don't include <sysdep.h> nor <init-arch.h>.
14206         (_ZGVbN4v_logf): Removed.
14207         * sysdeps/x86_64/fpu/multiarch/svml_d_logf8_core.S:  Renamed to
14208         ...
14209         * sysdeps/x86_64/fpu/multiarch/svml_d_logf8_core-sse.S: This.
14210         Don't include <sysdep.h> nor <init-arch.h>.
14211         (_ZGVdN8v_logf): Removed.
14212         * sysdeps/x86_64/fpu/multiarch/svml_d_powf16_core.S:  Renamed to
14213         ...
14214         * sysdeps/x86_64/fpu/multiarch/svml_d_powf16_core-avx2.S: This.
14215         Don't include <sysdep.h> nor <init-arch.h>.
14216         (_ZGVeN16vv_powf): Removed.
14217         * sysdeps/x86_64/fpu/multiarch/svml_d_powf4_core.S:  Renamed to
14218         ...
14219         * sysdeps/x86_64/fpu/multiarch/svml_d_powf4_core-sse2.S: This.
14220         Don't include <sysdep.h> nor <init-arch.h>.
14221         (_ZGVbN4vv_powf): Removed.
14222         * sysdeps/x86_64/fpu/multiarch/svml_d_powf8_core.S:  Renamed to
14223         ...
14224         * sysdeps/x86_64/fpu/multiarch/svml_d_powf8_core-sse.S: This.
14225         Don't include <sysdep.h> nor <init-arch.h>.
14226         (_ZGVdN8vv_powf): Removed.
14227         * sysdeps/x86_64/fpu/multiarch/svml_d_sincosf16_core.S:  Renamed to
14228         ...
14229         * sysdeps/x86_64/fpu/multiarch/svml_d_sincosf16_core-avx2.S: This.
14230         Don't include <sysdep.h> nor <init-arch.h>.
14231         (_ZGVeN16vvv_sincosf): Removed.
14232         * sysdeps/x86_64/fpu/multiarch/svml_d_sincosf4_core.S:  Renamed to
14233         ...
14234         * sysdeps/x86_64/fpu/multiarch/svml_d_sincosf4_core-sse2.S: This.
14235         Don't include <sysdep.h> nor <init-arch.h>.
14236         (_ZGVbN4vvv_sincosf): Removed.
14237         * sysdeps/x86_64/fpu/multiarch/svml_d_sincosf8_core.S:  Renamed to
14238         ...
14239         * sysdeps/x86_64/fpu/multiarch/svml_d_sincosf8_core-sse.S: This.
14240         Don't include <sysdep.h> nor <init-arch.h>.
14241         (_ZGVdN8vvv_sincosf): Removed.
14242         * sysdeps/x86_64/fpu/multiarch/svml_d_sinf16_core.S:  Renamed to
14243         ...
14244         * sysdeps/x86_64/fpu/multiarch/svml_d_sinf16_core-avx2.S: This.
14245         Don't include <sysdep.h> nor <init-arch.h>.
14246         (_ZGVeN16v_sinf): Removed.
14247         * sysdeps/x86_64/fpu/multiarch/svml_d_sinf4_core.S:  Renamed to
14248         ...
14249         * sysdeps/x86_64/fpu/multiarch/svml_d_sinf4_core-sse2.S: This.
14250         Don't include <sysdep.h> nor <init-arch.h>.
14251         (_ZGVbN4v_sinf): Removed.
14252         * sysdeps/x86_64/fpu/multiarch/svml_d_sinf8_core.S:  Renamed to
14253         ...
14254         * sysdeps/x86_64/fpu/multiarch/svml_d_sinf8_core-sse.S: This.
14255         Don't include <sysdep.h> nor <init-arch.h>.
14256         (_ZGVdN8v_sinf): Removed.
14258 2017-08-04  H.J. Lu  <hongjiu.lu@intel.com>
14260         * sysdeps/x86_64/fpu/multiarch/Makefile (libm-sysdep_routines):
14261         Add s_ceil-sse4_1, s_ceilf-sse4_1, s_floor-sse4_1,
14262         s_floorf-sse4_1, s_nearbyint-sse4_1, s_nearbyintf-sse4_1,
14263         s_rint-sse4_1 and s_rintf-sse4_1.
14264         * sysdeps/x86_64/fpu/multiarch/ifunc-sse4_1.h: New file.
14265         * sysdeps/x86_64/fpu/multiarch/s_ceil.c: Likewise.
14266         * sysdeps/x86_64/fpu/multiarch/s_ceilf.c: Likewise.
14267         * sysdeps/x86_64/fpu/multiarch/s_floor.c: Likewise.
14268         * sysdeps/x86_64/fpu/multiarch/s_floorf.c: Likewise.
14269         * sysdeps/x86_64/fpu/multiarch/s_nearbyint.c: Likewise.
14270         * sysdeps/x86_64/fpu/multiarch/s_nearbyintf.c: Likewise.
14271         * sysdeps/x86_64/fpu/multiarch/s_rint.c: Likewise.
14272         * sysdeps/x86_64/fpu/multiarch/s_rintf.c: Likewise.
14273         * sysdeps/x86_64/fpu/multiarch/s_ceil.S: Renamed to ...
14274         * sysdeps/x86_64/fpu/multiarch/s_ceil-sse4_1.S: This.  Don't
14275         include <machine/asm.h> nor <init-arch.h>.  Include <sysdep.h>.
14276         (__ceil): Removed.
14277         * sysdeps/x86_64/fpu/multiarch/s_ceilf.S: Renamed to ...
14278         * sysdeps/x86_64/fpu/multiarch/s_ceilf-sse4_1.S: This.  Don't
14279         include <machine/asm.h> nor <init-arch.h>.  Include <sysdep.h>.
14280         (__ceilf): Removed.
14281         * sysdeps/x86_64/fpu/multiarch/s_floor.S: Renamed to ...
14282         * sysdeps/x86_64/fpu/multiarch/s_floor-sse4_1.S: This.  Don't
14283         include <machine/asm.h> nor <init-arch.h>.  Include <sysdep.h>.
14284         (__floor): Removed.
14285         * sysdeps/x86_64/fpu/multiarch/s_floorf.S: Renamed to ...
14286         * sysdeps/x86_64/fpu/multiarch/s_floorf-sse4_1.S: This.  Don't
14287         include <machine/asm.h> nor <init-arch.h>.  Include <sysdep.h>.
14288         (__floorf): Removed.
14289         * sysdeps/x86_64/fpu/multiarch/s_nearbyint.S: Renamed to ...
14290         * sysdeps/x86_64/fpu/multiarch/s_nearbyint-sse4_1.S: This.  Don't
14291         include <machine/asm.h> nor <init-arch.h>.  Include <sysdep.h>.
14292         (__nearbyint): Removed.
14293         * sysdeps/x86_64/fpu/multiarch/s_nearbyintf.S: Renamed to ...
14294         * sysdeps/x86_64/fpu/multiarch/s_nearbyintf-sse4_1.S: This.  Don't
14295         include <machine/asm.h> nor <init-arch.h>.  Include <sysdep.h>.
14296         (__nearbyintf): Removed.
14297         * sysdeps/x86_64/fpu/multiarch/s_rint.S: Renamed to ...
14298         * sysdeps/x86_64/fpu/multiarch/s_rint-sse4_1.S: This.  Don't
14299         include <machine/asm.h> nor <init-arch.h>.  Include <sysdep.h>.
14300         (__rint): Removed.
14301         * sysdeps/x86_64/fpu/multiarch/s_rintf.S: Renamed to ...
14302         * sysdeps/x86_64/fpu/multiarch/s_rintf-sse4_1.S: This.  Don't
14303         include <machine/asm.h> nor <init-arch.h>.  Include <sysdep.h>.
14304         (__rintf): Removed.
14306 2017-08-04  H.J. Lu  <hongjiu.lu@intel.com>
14308         * sysdeps/i386/start.S (_start): Check Check PIC instead of
14309         SHARED.  Avoid dynamic relocation against main in static PIE.
14311 2017-08-04  H.J. Lu  <hongjiu.lu@intel.com>
14313         [BZ #21815]
14314         * elf/Makefile (CFLAGS-tst-prelink.c): New.
14315         (LDFLAGS-tst-prelink): Likewise.
14317 2017-08-04  H.J. Lu  <hongjiu.lu@intel.com>
14319         * sysdeps/unix/sysv/linux/i386/sysdep.h (I386_USE_SYSENTER):
14320         Define to I386_USE_SYSENTER to 0 or 1 if not defined.
14321         (ENTER_KERNEL): Check if I386_USE_SYSENTER is 1 and check PIC.
14322         (INTERNAL_SYSCALL_MAIN_INLINE): Likewise.
14323         (INTERNAL_SYSCALL_NCS): Likewise.
14324         (LOADARGS_1): Likewise.
14325         (LOADARGS_5): Likewise.
14326         (RESTOREARGS_1): Likewise.
14327         (RESTOREARGS_5): Likewise.
14329 2017-08-04  H.J. Lu  <hongjiu.lu@intel.com>
14331         * sysdeps/x86_64/memmove.S (MEMCPY_SYMBOL): Don't check SHARED.
14332         (MEMPCPY_SYMBOL): Likewise.
14333         * sysdeps/x86_64/multiarch/ifunc-impl-list.c
14334         (__libc_ifunc_impl_list): Test memcpy and mempcpy in libc.a.
14335         * sysdeps/x86_64/multiarch/memcpy-ssse3-back.S: Also include
14336         in libc.a.
14337         * sysdeps/x86_64/multiarch/memcpy-ssse3.S: Likewise.
14338         * sysdeps/x86_64/multiarch/memmove-avx512-no-vzeroupper.S:
14339         Likewise.
14340         * sysdeps/x86_64/multiarch/memcpy.c: Also include in libc.a.
14341         (__hidden_ver1): Don't use in libc.a.
14342         * sysdeps/x86_64/multiarch/memmove-sse2-unaligned-erms.S
14343         (__mempcpy): Don't create a weak alias in libc.a.
14344         * sysdeps/x86_64/multiarch/memmove-vec-unaligned-erms.S: Support
14345         libc.a.
14346         * sysdeps/x86_64/multiarch/mempcpy.c: Also include in libc.a.
14347         (__hidden_ver1): Don't use in libc.a.
14349 2017-08-04  H.J. Lu  <hongjiu.lu@intel.com>
14351         * config.make.in (have-insert): New.
14352         * configure.ac (libc_cv_insert): New.  Set to yes if linker
14353         supports INSERT in linker script.
14354         (AC_SUBST(libc_cv_insert): New.
14355         * configure: Regenerated.
14356         * sysdeps/x86_64/Makefile (tests): Add tst-split-dynreloc only
14357         if $(have-insert) == yes.
14359 2017-08-04  H.J. Lu  <hongjiu.lu@intel.com>
14361         * elf/Makefile (tests): Add vismain only if
14362         $(have-protected-data) == yes.
14363         (tests-pie): Likewise.
14365 2017-08-04  H.J. Lu  <hongjiu.lu@intel.com>
14367         [BZ #21871]
14368         * sysdeps/x86/cpu-features.c (init_cpu_features): Set
14369         bit_arch_Use_dl_runtime_resolve_opt only with AVX512F.
14371 2017-08-04  H.J. Lu  <hongjiu.lu@intel.com>
14373         [BZ #21790]
14374         * sysdeps/i386/i586/memset.S
14375         (__memset_zero_constant_len_parameter): Removed.
14376         * sysdeps/i386/i686/memset.S
14377         (__memset_zero_constant_len_parameter): Likewise.
14378         * sysdeps/i386/i686/multiarch/memset_chk.S
14379         (__memset_zero_constant_len_parameter): Likewise.
14380         * sysdeps/x86_64/memset.S (__memset_zero_constant_len_parameter):
14381         Likewise.
14383 2017-08-03  Aurelien Jarno  <aurelien@aurel32.net>
14385         * stdlib/getentropy.c (getentropy): Change return type to int.
14387 2017-08-03  Aurelien Jarno  <aurelien@aurel32.net>
14389         * sysdeps/i386/i686/fpu/multiarch/libm-test-ulps: Regenerated.
14391 2017-08-03  Joseph Myers  <joseph@codesourcery.com>
14393         * math/s_nextafter.c (__nextafter): Use uintN_t instead of
14394         u_intN_t.
14395         * math/s_nexttowardf.c (__nexttowardf): Likewise.
14396         * sysdeps/generic/math_private.h (ieee_double_shape_type):
14397         Likewise.
14398         (ieee_float_shape_type): Likewise.
14399         * sysdeps/i386/fpu/s_fpclassifyl.c (__fpclassifyl): Likewise.
14400         * sysdeps/i386/fpu/s_isnanl.c (__isnanl): Likewise.
14401         * sysdeps/i386/fpu/s_nextafterl.c (__nextafterl): Likewise.
14402         * sysdeps/i386/fpu/s_nexttoward.c (__nexttoward): Likewise.
14403         * sysdeps/i386/fpu/s_nexttowardf.c (__nexttowardf): Likewise.
14404         * sysdeps/ieee754/dbl-64/e_acosh.c (__ieee754_acosh): Likewise.
14405         * sysdeps/ieee754/dbl-64/e_cosh.c (__ieee754_cosh): Likewise.
14406         * sysdeps/ieee754/dbl-64/e_fmod.c (__ieee754_fmod): Likewise.
14407         * sysdeps/ieee754/dbl-64/e_gamma_r.c (__ieee754_gamma_r):
14408         Likewise.
14409         * sysdeps/ieee754/dbl-64/e_hypot.c (__ieee754_hypot): Likewise.
14410         * sysdeps/ieee754/dbl-64/e_jn.c (__ieee754_jn): Likewise.
14411         (__ieee754_yn): Likewise.
14412         * sysdeps/ieee754/dbl-64/e_log10.c (__ieee754_log10): Likewise.
14413         * sysdeps/ieee754/dbl-64/e_log2.c (__ieee754_log2): Likewise.
14414         * sysdeps/ieee754/dbl-64/e_rem_pio2.c (__ieee754_rem_pio2):
14415         Likewise.
14416         * sysdeps/ieee754/dbl-64/e_sinh.c (__ieee754_sinh): Likewise.
14417         * sysdeps/ieee754/dbl-64/s_ceil.c (__ceil): Likewise.
14418         * sysdeps/ieee754/dbl-64/s_copysign.c (__copysign): Likewise.
14419         * sysdeps/ieee754/dbl-64/s_erf.c (__erf): Likewise.
14420         (__erfc): Likewise.
14421         * sysdeps/ieee754/dbl-64/s_expm1.c (__expm1): Likewise.
14422         * sysdeps/ieee754/dbl-64/s_finite.c (FINITE): Likewise.
14423         * sysdeps/ieee754/dbl-64/s_floor.c (__floor): Likewise.
14424         * sysdeps/ieee754/dbl-64/s_fpclassify.c (__fpclassify): Likewise.
14425         * sysdeps/ieee754/dbl-64/s_isnan.c (__isnan): Likewise.
14426         * sysdeps/ieee754/dbl-64/s_issignaling.c (__issignaling):
14427         Likewise.
14428         * sysdeps/ieee754/dbl-64/s_llrint.c (__llrint): Likewise.
14429         * sysdeps/ieee754/dbl-64/s_llround.c (__llround): Likewise.
14430         * sysdeps/ieee754/dbl-64/s_lrint.c (__lrint): Likewise.
14431         * sysdeps/ieee754/dbl-64/s_lround.c (__lround): Likewise.
14432         * sysdeps/ieee754/dbl-64/s_modf.c (__modf): Likewise.
14433         * sysdeps/ieee754/dbl-64/s_nextup.c (__nextup): Likewise.
14434         * sysdeps/ieee754/dbl-64/s_remquo.c (__remquo): Likewise.
14435         * sysdeps/ieee754/dbl-64/s_round.c (__round): Likewise.
14436         * sysdeps/ieee754/dbl-64/s_trunc.c (__trunc): Likewise.
14437         * sysdeps/ieee754/dbl-64/wordsize-64/s_issignaling.c
14438         (__issignaling): Likewise.
14439         * sysdeps/ieee754/flt-32/e_atan2f.c (__ieee754_atan2f): Likewise.
14440         * sysdeps/ieee754/flt-32/e_fmodf.c (__ieee754_fmodf): Likewise.
14441         * sysdeps/ieee754/flt-32/e_gammaf_r.c (__ieee754_gammaf_r):
14442         Likewise.
14443         * sysdeps/ieee754/flt-32/e_jnf.c (__ieee754_ynf): Likewise.
14444         * sysdeps/ieee754/flt-32/e_log10f.c (__ieee754_log10f): Likewise.
14445         * sysdeps/ieee754/flt-32/e_powf.c (__ieee754_powf): Likewise.
14446         * sysdeps/ieee754/flt-32/e_rem_pio2f.c (__ieee754_rem_pio2f):
14447         Likewise.
14448         * sysdeps/ieee754/flt-32/e_remainderf.c (__ieee754_remainderf):
14449         Likewise.
14450         * sysdeps/ieee754/flt-32/e_sqrtf.c (__ieee754_sqrtf): Likewise.
14451         * sysdeps/ieee754/flt-32/s_ceilf.c (__ceilf): Likewise.
14452         * sysdeps/ieee754/flt-32/s_copysignf.c (__copysignf): Likewise.
14453         * sysdeps/ieee754/flt-32/s_erff.c (__erff): Likewise.
14454         (__erfcf): Likewise.
14455         * sysdeps/ieee754/flt-32/s_expm1f.c (__expm1f): Likewise.
14456         * sysdeps/ieee754/flt-32/s_finitef.c (FINITEF): Likewise.
14457         * sysdeps/ieee754/flt-32/s_floorf.c (__floorf): Likewise.
14458         * sysdeps/ieee754/flt-32/s_fpclassifyf.c (__fpclassifyf):
14459         Likewise.
14460         * sysdeps/ieee754/flt-32/s_isnanf.c (__isnanf): Likewise.
14461         * sysdeps/ieee754/flt-32/s_issignalingf.c (__issignalingf):
14462         Likewise.
14463         * sysdeps/ieee754/flt-32/s_llrintf.c (__llrintf): Likewise.
14464         * sysdeps/ieee754/flt-32/s_llroundf.c (__llroundf): Likewise.
14465         * sysdeps/ieee754/flt-32/s_lrintf.c (__lrintf): Likewise.
14466         * sysdeps/ieee754/flt-32/s_lroundf.c (__lroundf): Likewise.
14467         * sysdeps/ieee754/flt-32/s_modff.c (__modff): Likewise.
14468         * sysdeps/ieee754/flt-32/s_remquof.c (__remquof): Likewise.
14469         * sysdeps/ieee754/flt-32/s_roundf.c (__roundf): Likewise.
14470         * sysdeps/ieee754/ldbl-128/e_acoshl.c (__ieee754_acoshl):
14471         Likewise.
14472         * sysdeps/ieee754/ldbl-128/e_atan2l.c (__ieee754_atan2l):
14473         Likewise.
14474         * sysdeps/ieee754/ldbl-128/e_atanhl.c (__ieee754_atanhl):
14475         Likewise.
14476         * sysdeps/ieee754/ldbl-128/e_fmodl.c (__ieee754_fmodl): Likewise.
14477         * sysdeps/ieee754/ldbl-128/e_gammal_r.c (__ieee754_gammal_r):
14478         Likewise.
14479         * sysdeps/ieee754/ldbl-128/e_hypotl.c (__ieee754_hypotl):
14480         Likewise.
14481         * sysdeps/ieee754/ldbl-128/e_jnl.c (__ieee754_jnl): Likewise.
14482         (__ieee754_ynl): Likewise.
14483         * sysdeps/ieee754/ldbl-128/e_powl.c (__ieee754_powl): Likewise.
14484         * sysdeps/ieee754/ldbl-128/e_rem_pio2l.c (__ieee754_rem_pio2l):
14485         Likewise.
14486         * sysdeps/ieee754/ldbl-128/e_remainderl.c (__ieee754_remainderl):
14487         Likewise.
14488         * sysdeps/ieee754/ldbl-128/e_sinhl.c (__ieee754_sinhl): Likewise.
14489         * sysdeps/ieee754/ldbl-128/k_cosl.c (__kernel_cosl): Likewise.
14490         * sysdeps/ieee754/ldbl-128/k_sincosl.c (__kernel_sincosl):
14491         Likewise.
14492         * sysdeps/ieee754/ldbl-128/k_sinl.c (__kernel_sinl): Likewise.
14493         * sysdeps/ieee754/ldbl-128/s_ceill.c (__ceill): Likewise.
14494         * sysdeps/ieee754/ldbl-128/s_copysignl.c (__copysignl): Likewise.
14495         * sysdeps/ieee754/ldbl-128/s_erfl.c (__erfcl): Likewise.
14496         * sysdeps/ieee754/ldbl-128/s_fabsl.c (__fabsl): Likewise.
14497         * sysdeps/ieee754/ldbl-128/s_finitel.c (__finitel): Likewise.
14498         * sysdeps/ieee754/ldbl-128/s_floorl.c (__floorl): Likewise.
14499         * sysdeps/ieee754/ldbl-128/s_fpclassifyl.c (__fpclassifyl):
14500         Likewise.
14501         * sysdeps/ieee754/ldbl-128/s_frexpl.c (__frexpl): Likewise.
14502         * sysdeps/ieee754/ldbl-128/s_isnanl.c (__isnanl): Likewise.
14503         * sysdeps/ieee754/ldbl-128/s_issignalingl.c (__issignalingl):
14504         Likewise.
14505         * sysdeps/ieee754/ldbl-128/s_llrintl.c (__llrintl): Likewise.
14506         * sysdeps/ieee754/ldbl-128/s_llroundl.c (__llroundl): Likewise.
14507         * sysdeps/ieee754/ldbl-128/s_lrintl.c (__lrintl): Likewise.
14508         * sysdeps/ieee754/ldbl-128/s_lroundl.c (__lroundl): Likewise.
14509         * sysdeps/ieee754/ldbl-128/s_modfl.c (__modfl): Likewise.
14510         * sysdeps/ieee754/ldbl-128/s_nearbyintl.c (__nearbyintl):
14511         Likewise.
14512         * sysdeps/ieee754/ldbl-128/s_nextafterl.c (__nextafterl):
14513         Likewise.
14514         * sysdeps/ieee754/ldbl-128/s_nexttoward.c (__nexttoward):
14515         Likewise.
14516         * sysdeps/ieee754/ldbl-128/s_nexttowardf.c (__nexttowardf):
14517         Likewise.
14518         * sysdeps/ieee754/ldbl-128/s_nextupl.c (__nextupl): Likewise.
14519         * sysdeps/ieee754/ldbl-128/s_remquol.c (__remquol): Likewise.
14520         * sysdeps/ieee754/ldbl-128/s_rintl.c (__rintl): Likewise.
14521         * sysdeps/ieee754/ldbl-128/s_roundl.c (__roundl): Likewise.
14522         * sysdeps/ieee754/ldbl-128/s_tanhl.c (__tanhl): Likewise.
14523         * sysdeps/ieee754/ldbl-128/s_truncl.c (__truncl): Likewise.
14524         * sysdeps/ieee754/ldbl-128ibm/e_fmodl.c (__ieee754_fmodl):
14525         Likewise.
14526         * sysdeps/ieee754/ldbl-128ibm/e_gammal_r.c (__ieee754_gammal_r):
14527         Likewise.
14528         * sysdeps/ieee754/ldbl-128ibm/e_powl.c (__ieee754_powl): Likewise.
14529         * sysdeps/ieee754/ldbl-128ibm/e_rem_pio2l.c (__ieee754_rem_pio2l):
14530         Likewise.
14531         * sysdeps/ieee754/ldbl-128ibm/e_remainderl.c
14532         (__ieee754_remainderl): Likewise.
14533         * sysdeps/ieee754/ldbl-128ibm/k_cosl.c (__kernel_cosl): Likewise.
14534         * sysdeps/ieee754/ldbl-128ibm/k_sinl.c (__kernel_sinl): Likewise.
14535         * sysdeps/ieee754/ldbl-128ibm/s_fabsl.c (__fabsl): Likewise.
14536         * sysdeps/ieee754/ldbl-128ibm/s_fpclassifyl.c (___fpclassifyl):
14537         Likewise.
14538         * sysdeps/ieee754/ldbl-128ibm/s_modfl.c (__modfl): Likewise.
14539         * sysdeps/ieee754/ldbl-128ibm/s_nexttowardf.c (__nexttowardf):
14540         Likewise.
14541         * sysdeps/ieee754/ldbl-128ibm/s_remquol.c (__remquol): Likewise.
14542         * sysdeps/ieee754/ldbl-96/e_acoshl.c (__ieee754_acoshl): Likewise.
14543         * sysdeps/ieee754/ldbl-96/e_asinl.c (__ieee754_asinl): Likewise.
14544         * sysdeps/ieee754/ldbl-96/e_atanhl.c (__ieee754_atanhl): Likewise.
14545         * sysdeps/ieee754/ldbl-96/e_coshl.c (__ieee754_coshl): Likewise.
14546         * sysdeps/ieee754/ldbl-96/e_gammal_r.c (__ieee754_gammal_r):
14547         Likewise.
14548         * sysdeps/ieee754/ldbl-96/e_hypotl.c (__ieee754_hypotl): Likewise.
14549         * sysdeps/ieee754/ldbl-96/e_j0l.c (__ieee754_j0l): Likewise.
14550         (__ieee754_y0l): Likewise.
14551         (pzero): Likewise.
14552         (qzero): Likewise.
14553         * sysdeps/ieee754/ldbl-96/e_j1l.c (__ieee754_j1l): Likewise.
14554         (__ieee754_y1l): Likewise.
14555         (pone): Likewise.
14556         (qone): Likewise.
14557         * sysdeps/ieee754/ldbl-96/e_jnl.c (__ieee754_jnl): Likewise.
14558         (__ieee754_ynl): Likewise.
14559         * sysdeps/ieee754/ldbl-96/e_lgammal_r.c (sin_pi): Likewise.
14560         (__ieee754_lgammal_r): Likewise.
14561         * sysdeps/ieee754/ldbl-96/e_rem_pio2l.c (__ieee754_rem_pio2l):
14562         Likewise.
14563         * sysdeps/ieee754/ldbl-96/e_sinhl.c (__ieee754_sinhl): Likewise.
14564         * sysdeps/ieee754/ldbl-96/s_copysignl.c (__copysignl): Likewise.
14565         * sysdeps/ieee754/ldbl-96/s_erfl.c (__erfl): Likewise.
14566         (__erfcl): Likewise.
14567         * sysdeps/ieee754/ldbl-96/s_frexpl.c (__frexpl): Likewise.
14568         * sysdeps/ieee754/ldbl-96/s_issignalingl.c (__issignalingl):
14569         Likewise.
14570         * sysdeps/ieee754/ldbl-96/s_llrintl.c (__llrintl): Likewise.
14571         * sysdeps/ieee754/ldbl-96/s_llroundl.c (__llroundl): Likewise.
14572         * sysdeps/ieee754/ldbl-96/s_lrintl.c (__lrintl): Likewise.
14573         * sysdeps/ieee754/ldbl-96/s_lroundl.c (__lroundl): Likewise.
14574         * sysdeps/ieee754/ldbl-96/s_modfl.c (__modfl): Likewise.
14575         * sysdeps/ieee754/ldbl-96/s_nexttoward.c (__nexttoward): Likewise.
14576         * sysdeps/ieee754/ldbl-96/s_nexttowardf.c (__nexttowardf):
14577         Likewise.
14578         * sysdeps/ieee754/ldbl-96/s_nextupl.c (__nextupl): Likewise.
14579         * sysdeps/ieee754/ldbl-96/s_remquol.c (__remquol): Likewise.
14580         * sysdeps/ieee754/ldbl-96/s_roundl.c (__roundl): Likewise.
14581         * sysdeps/ieee754/ldbl-96/s_tanhl.c (__tanhl): Likewise.
14582         * sysdeps/ieee754/ldbl-opt/s_nexttowardfd.c (__nldbl_nexttowardf):
14583         Likewise.
14584         * sysdeps/m68k/m680x0/fpu/e_pow.c (s(__ieee754_pow)): Likewise.
14585         * sysdeps/m68k/m680x0/fpu/s_fpclassifyl.c (__fpclassifyl):
14586         Likewise.
14587         * sysdeps/m68k/m680x0/fpu/s_llrint.c (__llrint): Likewise.
14588         * sysdeps/m68k/m680x0/fpu/s_llrintf.c (__llrintf): Likewise.
14589         * sysdeps/m68k/m680x0/fpu/s_llrintl.c (__llrintl): Likewise.
14590         * sysdeps/m68k/m680x0/fpu/s_nextafterl.c (__nextafterl): Likewise.
14591         * sysdeps/x86/fpu/powl_helper.c (__powl_helper): Likewise.
14593 2017-08-03  Florian Weimer  <fweimer@redhat.com>
14595         [BZ #21885]
14596         * sysdeps/posix/getaddrinfo.c (gethosts): Release resolver context
14597         on memory allocation failure.
14599 2017-08-03  Alan Modra  <amodra@gmail.com>
14601         * sysdeps/powerpc/mod-tlsopt-powerpc.c: Extract from
14602         tst-tlsopt-powerpc.c with function name change and no test harness.
14603         * sysdeps/powerpc/tst-tlsopt-powerpc.c: Remove body of test.
14604         Call tls_get_addr_opt_test.
14605         * sysdeps/powerpc/Makefile (LDFLAGS-tst-tlsopt-powerpc): Don't define.
14606         (modules-names): Add mod-tlsopt-powerpc.
14607         (mod-tlsopt-powerpc.so-no-z-defs): Define.
14608         (tst-tlsopt-powerpc): Depend on .so.
14609         * sysdeps/powerpc/powerpc64/tls-macros.h (__TLS_GET_ADDR): Don't
14610         define.  Expand use in TLS_GD and TLS_LD.
14612 2017-08-02  Samuel Thibault  <samuel.thibault@ens-lyon.org>
14614         * sysdeps/mach/hurd/enbl-secure.c (__libc_init_secure): Define
14615         function.
14616         * sysdeps/posix/shm_open.c: Include <pthread.h>.
14618 2017-08-02  Joseph Myers  <joseph@codesourcery.com>
14620         [BZ #21686]
14621         * math/tgmath.h (__TGMATH_BINARY_REAL_ONLY): Add arguments before
14622         comparing size with that of double.
14623         (__TGMATH_BINARY_REAL_STD_ONLY): Likewise.
14624         (__TGMATH_BINARY_REAL_RET_ONLY): Likewise.
14625         (__TGMATH_TERNARY_FIRST_SECOND_REAL_ONLY): Likewise.
14626         (__TGMATH_TERNARY_REAL_ONLY): Likewise.
14627         (__TGMATH_BINARY_REAL_IMAG): Likewise.
14628         * math/gen-tgmath-tests.py (Type.init_types): Create __int128 and
14629         unsigned __int128 types.
14631 2017-08-02  Steve Ellcey  <sellcey@cavium.com>
14633         * localedata/Makefile (CFLAGS-tst_iswalnum.c, CFLAGS-tst_iswalpha.c
14634         CFLAGS-tst_iswcntrl.c, CFLAGS-tst_iswdigit.c, CFLAGS-tst_iswgraph.c,
14635         CFLAGS-tst_iswlower.c, CFLAGS-tst_iswprint.c, CFLAGS-tst_iswpunct.c,
14636         CFLAGS-tst_iswspace.c, CFLAGS-tst_iswupper.c, CFLAGS-tst_iswxdigit.c,
14637         CFLAGS-tst_towlower.c, CFLAGS-tst_towupper.c): Remove.
14639 2017-08-02  H.J. Lu  <hongjiu.lu@intel.com>
14641         * sysdeps/x86_64/start.S (_start): Check PIC instead of SHARED.
14643 2017-08-02  H.J. Lu  <hongjiu.lu@intel.com>
14645         * sysdeps/i386/i686/multiarch/memcmp-sse4.S: Check PIC instead
14646         of SHARED.
14647         * sysdeps/i386/i686/multiarch/memcpy-sse2-unaligned.S: Likewise.
14648         * sysdeps/i386/i686/multiarch/memcpy-ssse3-rep.S: Likewise.
14649         * sysdeps/i386/i686/multiarch/memcpy-ssse3.S: Likewise.
14650         * sysdeps/i386/i686/multiarch/memset-sse2-rep.S: Likewise.
14651         * sysdeps/i386/i686/multiarch/memset-sse2.S: Likewise.
14652         * sysdeps/i386/i686/multiarch/strcat-sse2.S: Likewise.
14653         * sysdeps/i386/i686/multiarch/strcpy-sse2.S: Likewise.
14655 2017-08-02  Joseph Myers  <joseph@codesourcery.com>
14657         [BZ #21685]
14658         * math/tgmath.h (__tgmath_real_type): Use unary + on potentially
14659         bit-field expressions passed to sizeof or typeof.
14660         [__HAVE_FLOAT128 && __GLIBC_USE (IEC_60559_TYPES_EXT)]
14661         (__TGMATH_F128): Likewise.
14662         [__HAVE_FLOAT128 && __GLIBC_USE (IEC_60559_TYPES_EXT)]
14663         (__TGMATH_CF128): Likewise.
14664         (__TGMATH_UNARY_REAL_ONLY): Likewise.
14665         (__TGMATH_UNARY_REAL_RET_ONLY): Likewise.
14666         (__TGMATH_BINARY_FIRST_REAL_ONLY): Likewise.
14667         (__TGMATH_BINARY_FIRST_REAL_STD_ONLY): Likewise.
14668         (__TGMATH_BINARY_REAL_ONLY): Likewise.
14669         (__TGMATH_BINARY_REAL_STD_ONLY): Likewise.
14670         (__TGMATH_BINARY_REAL_RET_ONLY): Likewise.
14671         (__TGMATH_TERNARY_FIRST_SECOND_REAL_ONLY): Likewise.
14672         (__TGMATH_TERNARY_REAL_ONLY): Likewise.
14673         (__TGMATH_TERNARY_FIRST_REAL_RET_ONLY): Likewise.
14674         (__TGMATH_UNARY_REAL_IMAG): Likewise.
14675         (__TGMATH_UNARY_IMAG): Likewise.
14676         (__TGMATH_UNARY_REAL_IMAG_RET_REAL): Likewise.
14677         (__TGMATH_BINARY_REAL_IMAG): Likewise.
14678         * math/gen-tgmath-tests.py (Type.init_types): Create bit_field
14679         type.
14680         (define_vars_for_type): Handle bit_field type specially.
14681         (Tests.__init__): Declare structure with bit-field element.
14683 2017-08-02  H.J. Lu  <hongjiu.lu@intel.com>
14685         [BZ #21791]
14686         * sysdeps/i386/i686/multiarch/memcpy-sse2-unaligned.S
14687         (MEMCPY_CHK): Define only if SHARED is defined.
14688         * sysdeps/i386/i686/multiarch/memcpy-ssse3-rep.S (MEMCPY_CHK):
14689         Likewise.
14690         * sysdeps/i386/i686/multiarch/memcpy-ssse3.S (MEMCPY_CHK):
14691         Likewise.
14693 See ChangeLog.18 for earlier changes.